Version 1.13.25.
[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-26 14:08+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:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod: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:2877
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod: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:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod: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:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod: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:231
837 #: ../cat/virt-filesystems.pod:373 ../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:676
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:233
849 #: ../cat/virt-filesystems.pod:375 ../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:678
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:238
865 #: ../cat/virt-filesystems.pod:380 ../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:683 ../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 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
883 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
884 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
885 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
886 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
887 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
888 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
889 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
890 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
891 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
892 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
893 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
894 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
895 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
896 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
897 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
898 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
899 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
900 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
901 #: ../fish/guestfish-actions.pod:1216 ../fish/guestfish-actions.pod:1220
902 #: ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1228
903 #: ../fish/guestfish-actions.pod:1236 ../fish/guestfish-actions.pod:1240
904 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1254
905 #: ../fish/guestfish-actions.pod:1258 ../fish/guestfish-actions.pod:1262
906 #: ../fish/guestfish-actions.pod:1352 ../fish/guestfish-actions.pod:1356
907 #: ../fish/guestfish-actions.pod:1361 ../fish/guestfish-actions.pod:1366
908 #: ../fish/guestfish-actions.pod:1408 ../fish/guestfish-actions.pod:1412
909 #: ../fish/guestfish-actions.pod:1417 ../fish/guestfish-actions.pod:1673
910 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:1687
911 #: ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2096
912 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2111
913 #: ../fish/guestfish-actions.pod:2118 ../fish/guestfish.pod:445
914 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
915 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
916 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
917 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
918 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
919 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
920 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
921 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
922 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
923 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
924 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
925 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2028
926 #: ../src/guestfs-actions.pod:2032 ../src/guestfs-actions.pod:2036
927 #: ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2048
928 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2062
929 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2070
930 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:2212
931 #: ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2222
932 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2287
933 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2707
934 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2721
935 #: ../src/guestfs-actions.pod:3266 ../src/guestfs-actions.pod:3272
936 #: ../src/guestfs-actions.pod:3280 ../src/guestfs-actions.pod:3287
937 #: ../src/guestfs-actions.pod:3294 ../src/guestfs.pod:403
938 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
939 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
940 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
941 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
942 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
943 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
944 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
945 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
946 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
947 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
948 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
949 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
950 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
951 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
952 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
953 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
954 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
955 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
956 #: ../tools/virt-win-reg.pl:733
957 msgid "*"
958 msgstr ""
959
960 #. type: textblock
961 #: ../align/virt-alignment-scan.pod:311
962 msgid "0"
963 msgstr ""
964
965 #. type: textblock
966 #: ../align/virt-alignment-scan.pod:313
967 msgid ""
968 "successful exit, all partitions are aligned E<ge> 64K for best performance"
969 msgstr ""
970
971 #. type: textblock
972 #: ../align/virt-alignment-scan.pod:317
973 msgid "1"
974 msgstr ""
975
976 #. type: textblock
977 #: ../align/virt-alignment-scan.pod:319
978 msgid "an error scanning the disk image or guest"
979 msgstr ""
980
981 #. type: textblock
982 #: ../align/virt-alignment-scan.pod:323
983 msgid "2"
984 msgstr ""
985
986 #. type: textblock
987 #: ../align/virt-alignment-scan.pod:325
988 msgid ""
989 "successful exit, some partitions have alignment E<lt> 64K which can result "
990 "in poor performance on high end network storage"
991 msgstr ""
992
993 #. type: textblock
994 #: ../align/virt-alignment-scan.pod:330
995 msgid "3"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid ""
1001 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1002 "poor performance on most hypervisors"
1003 msgstr ""
1004
1005 #. type: =head1
1006 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:243
1007 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1008 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1009 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1010 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1011 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1012 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1013 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1014 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1015 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1016 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1017 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1018 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1019 #: ../test-tool/libguestfs-test-tool.pod:100
1020 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1021 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1022 #: ../tools/virt-win-reg.pl:757
1023 msgid "SEE ALSO"
1024 msgstr ""
1025
1026 #. type: textblock
1027 #: ../align/virt-alignment-scan.pod:339
1028 msgid ""
1029 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1030 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1031 msgstr ""
1032
1033 #. type: =head1
1034 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:252
1035 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1036 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1037 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1038 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1039 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1040 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1041 #: ../tools/virt-win-reg.pl:783
1042 msgid "AUTHOR"
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:254
1047 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1048 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1049 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1050 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1051 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1052 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1053 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1054 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:256
1059 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1060 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1061 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1062 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1063 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1064 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1065 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1066 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1067 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1068 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1069 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1070 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1071 #: ../test-tool/libguestfs-test-tool.pod:110
1072 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1073 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1074 #: ../tools/virt-win-reg.pl:787
1075 msgid "COPYRIGHT"
1076 msgstr ""
1077
1078 #. type: textblock
1079 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1080 #: ../sparsify/virt-sparsify.pod:270
1081 msgid "Copyright (C) 2011 Red Hat Inc."
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:260
1086 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1087 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1088 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1089 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1090 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1091 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1092 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1093 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1094 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1095 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1096 #: ../tools/virt-win-reg.pl:791
1097 msgid ""
1098 "This program is free software; you can redistribute it and/or modify it "
1099 "under the terms of the GNU General Public License as published by the Free "
1100 "Software Foundation; either version 2 of the License, or (at your option) "
1101 "any later version."
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:265
1106 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1107 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1108 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1109 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1110 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1111 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1112 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1113 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1114 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1115 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1116 #: ../tools/virt-win-reg.pl:796
1117 msgid ""
1118 "This program is distributed in the hope that it will be useful, but WITHOUT "
1119 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1120 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1121 "more details."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:270
1126 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1127 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1128 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1129 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1130 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1131 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1132 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1133 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1134 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1135 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1136 #: ../tools/virt-win-reg.pl:801
1137 msgid ""
1138 "You should have received a copy of the GNU General Public License along with "
1139 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1140 "Ave, Cambridge, MA 02139, USA."
1141 msgstr ""
1142
1143 #. type: textblock
1144 #: ../cat/virt-cat.pod:5
1145 msgid "virt-cat - Display files in a virtual machine"
1146 msgstr ""
1147
1148 #. type: verbatim
1149 #: ../cat/virt-cat.pod:9
1150 #, no-wrap
1151 msgid ""
1152 " virt-cat [--options] -d domname file [file ...]\n"
1153 "\n"
1154 msgstr ""
1155
1156 #. type: verbatim
1157 #: ../cat/virt-cat.pod:11
1158 #, no-wrap
1159 msgid ""
1160 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1161 "\n"
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1166 #: ../inspector/virt-inspector.pod:13
1167 msgid "Old-style:"
1168 msgstr ""
1169
1170 #. type: verbatim
1171 #: ../cat/virt-cat.pod:15
1172 #, no-wrap
1173 msgid ""
1174 " virt-cat domname file\n"
1175 "\n"
1176 msgstr ""
1177
1178 #. type: verbatim
1179 #: ../cat/virt-cat.pod:17
1180 #, no-wrap
1181 msgid ""
1182 " virt-cat disk.img file\n"
1183 "\n"
1184 msgstr ""
1185
1186 #. type: textblock
1187 #: ../cat/virt-cat.pod:21
1188 msgid ""
1189 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1190 "C<file> exists in the named virtual machine (or disk image)."
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../cat/virt-cat.pod:24
1195 msgid ""
1196 "Multiple filenames can be given, in which case they are concatenated "
1197 "together.  Each filename must be a full path, starting at the root directory "
1198 "(starting with '/')."
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-cat.pod:28
1203 msgid ""
1204 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1205 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1206 "(see L</USING GUESTFISH> below)."
1207 msgstr ""
1208
1209 #. type: =head1
1210 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1211 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1212 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1213 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1214 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1215 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1216 #: ../tools/virt-tar.pl:50
1217 msgid "EXAMPLES"
1218 msgstr ""
1219
1220 #. type: textblock
1221 #: ../cat/virt-cat.pod:34
1222 msgid ""
1223 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1224 msgstr ""
1225
1226 #. type: verbatim
1227 #: ../cat/virt-cat.pod:37
1228 #, no-wrap
1229 msgid ""
1230 " virt-cat -d mydomain /etc/fstab\n"
1231 "\n"
1232 msgstr ""
1233
1234 #. type: textblock
1235 #: ../cat/virt-cat.pod:39
1236 msgid "List syslog messages from a VM disk image file:"
1237 msgstr ""
1238
1239 #. type: verbatim
1240 #: ../cat/virt-cat.pod:41
1241 #, no-wrap
1242 msgid ""
1243 " virt-cat -a disk.img /var/log/messages | tail\n"
1244 "\n"
1245 msgstr ""
1246
1247 #. type: textblock
1248 #: ../cat/virt-cat.pod:43
1249 msgid "Find out what DHCP IP address a VM acquired:"
1250 msgstr ""
1251
1252 #. type: verbatim
1253 #: ../cat/virt-cat.pod:45
1254 #, no-wrap
1255 msgid ""
1256 " virt-cat -d mydomain /var/log/messages | \\\n"
1257 "   grep 'dhclient: bound to' | tail\n"
1258 "\n"
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../cat/virt-cat.pod:48
1263 msgid "Find out what packages were recently installed:"
1264 msgstr ""
1265
1266 #. type: verbatim
1267 #: ../cat/virt-cat.pod:50
1268 #, no-wrap
1269 msgid ""
1270 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1271 "\n"
1272 msgstr ""
1273
1274 #. type: textblock
1275 #: ../cat/virt-cat.pod:52
1276 msgid "Find out who is logged on inside a virtual machine:"
1277 msgstr ""
1278
1279 #. type: verbatim
1280 #: ../cat/virt-cat.pod:54
1281 #, no-wrap
1282 msgid ""
1283 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1284 " who /tmp/utmp\n"
1285 "\n"
1286 msgstr ""
1287
1288 #. type: textblock
1289 #: ../cat/virt-cat.pod:57
1290 msgid "or who was logged on:"
1291 msgstr ""
1292
1293 #. type: verbatim
1294 #: ../cat/virt-cat.pod:59
1295 #, no-wrap
1296 msgid ""
1297 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1298 " last -f /tmp/wtmp\n"
1299 "\n"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1304 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1305 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1306 msgid ""
1307 "Add I<file> which should be a disk image from a virtual machine.  If the "
1308 "virtual machine has multiple block devices, you must supply all of them with "
1309 "separate I<-a> options."
1310 msgstr ""
1311
1312 #. type: =item
1313 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1314 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1315 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1316 msgid "B<--echo-keys>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-cat.pod:100
1321 msgid ""
1322 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1323 "so you cannot see what you are typing.  If you are not worried about Tempest "
1324 "attacks and there is no one else in the room you can specify this flag to "
1325 "see what you are typing."
1326 msgstr ""
1327
1328 #. type: verbatim
1329 #: ../cat/virt-cat.pod:116
1330 #, no-wrap
1331 msgid ""
1332 " virt-cat --format=raw -a disk.img file\n"
1333 "\n"
1334 msgstr ""
1335
1336 #. type: verbatim
1337 #: ../cat/virt-cat.pod:120
1338 #, no-wrap
1339 msgid ""
1340 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1341 "\n"
1342 msgstr ""
1343
1344 #. type: =item
1345 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1346 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1347 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1348 msgid "B<--keys-from-stdin>"
1349 msgstr ""
1350
1351 #. type: textblock
1352 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1353 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1354 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1355 msgid ""
1356 "Read key or passphrase parameters from stdin.  The default is to try to read "
1357 "passphrases from the user by opening C</dev/tty>."
1358 msgstr ""
1359
1360 #. type: =head1
1361 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1362 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1363 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-cat.pod:154
1368 msgid "Previous versions of virt-cat allowed you to write either:"
1369 msgstr ""
1370
1371 #. type: verbatim
1372 #: ../cat/virt-cat.pod:156
1373 #, no-wrap
1374 msgid ""
1375 " virt-cat disk.img [disk.img ...] file\n"
1376 "\n"
1377 msgstr ""
1378
1379 #. type: textblock
1380 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1381 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1382 msgid "or"
1383 msgstr ""
1384
1385 #. type: verbatim
1386 #: ../cat/virt-cat.pod:160
1387 #, no-wrap
1388 msgid ""
1389 " virt-cat guestname file\n"
1390 "\n"
1391 msgstr ""
1392
1393 #. type: textblock
1394 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1395 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1396 msgid ""
1397 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1398 "the confusing case where a disk image might have the same name as a guest."
1399 msgstr ""
1400
1401 #. type: textblock
1402 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1403 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1404 msgid "For compatibility the old style is still supported."
1405 msgstr ""
1406
1407 #. type: =head1
1408 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1409 msgid "WINDOWS PATHS"
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-cat.pod:170
1414 msgid ""
1415 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1416 "paths (eg. C<E:\\foo\\bar.txt>)."
1417 msgstr ""
1418
1419 #. type: textblock
1420 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1421 msgid "If and only if the guest is running Windows then:"
1422 msgstr ""
1423
1424 #. type: textblock
1425 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1426 msgid ""
1427 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1428 "to the correct filesystem."
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1433 msgid ""
1434 "Any backslash (C<\\>) characters in the path are replaced with forward "
1435 "slashes so that libguestfs can process it."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-cat.pod:189
1440 msgid ""
1441 "The path is resolved case insensitively to locate the file that should be "
1442 "displayed."
1443 msgstr ""
1444
1445 #. type: textblock
1446 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1447 msgid "There are some known shortcomings:"
1448 msgstr ""
1449
1450 #. type: textblock
1451 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1452 msgid "Some NTFS symbolic links may not be followed correctly."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1457 msgid "NTFS junction points that cross filesystems are not followed."
1458 msgstr ""
1459
1460 #. type: =head1
1461 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1462 msgid "USING GUESTFISH"
1463 msgstr ""
1464
1465 #. type: textblock
1466 #: ../cat/virt-cat.pod:210
1467 msgid ""
1468 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1469 "C<virt-cat> doesn't work."
1470 msgstr ""
1471
1472 #. type: textblock
1473 #: ../cat/virt-cat.pod:213
1474 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1475 msgstr ""
1476
1477 #. type: verbatim
1478 #: ../cat/virt-cat.pod:215
1479 #, no-wrap
1480 msgid ""
1481 " guestfish --ro -i -d domname download file -\n"
1482 "\n"
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../cat/virt-cat.pod:217
1487 msgid ""
1488 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1489 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-cat.pod:221
1494 msgid ""
1495 "The command above uses libguestfs's guest inspection feature and so does not "
1496 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1497 "disk images that don't contain guests.  To display a file from a disk image "
1498 "directly, use:"
1499 msgstr ""
1500
1501 #. type: verbatim
1502 #: ../cat/virt-cat.pod:226
1503 #, no-wrap
1504 msgid ""
1505 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1506 "\n"
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-cat.pod:228
1511 msgid ""
1512 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1513 "the disk image, and C<file> is the full path to the file."
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1518 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1519 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1520 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1521 msgid ""
1522 "This program returns 0 if successful, or non-zero if there was an error."
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../cat/virt-cat.pod:245
1527 msgid ""
1528 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1529 "tar-out(1)>, L<http://libguestfs.org/>."
1530 msgstr ""
1531
1532 #. type: textblock
1533 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1534 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1535 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1536 msgstr ""
1537
1538 #. type: textblock
1539 #: ../cat/virt-filesystems.pod:5
1540 msgid ""
1541 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1542 "virtual machine or disk image"
1543 msgstr ""
1544
1545 #. type: verbatim
1546 #: ../cat/virt-filesystems.pod:9
1547 #, no-wrap
1548 msgid ""
1549 " virt-filesystems [--options] -d domname\n"
1550 "\n"
1551 msgstr ""
1552
1553 #. type: verbatim
1554 #: ../cat/virt-filesystems.pod:11
1555 #, no-wrap
1556 msgid ""
1557 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1558 "\n"
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-filesystems.pod:15
1563 msgid ""
1564 "This tool allows you to discover filesystems, partitions, logical volumes, "
1565 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1566 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1567 msgstr ""
1568
1569 #. type: textblock
1570 #: ../cat/virt-filesystems.pod:20
1571 msgid ""
1572 "One use for this tool is from shell scripts to iterate over all filesystems "
1573 "from a disk image:"
1574 msgstr ""
1575
1576 #. type: verbatim
1577 #: ../cat/virt-filesystems.pod:23
1578 #, no-wrap
1579 msgid ""
1580 " for fs in $(virt-filesystems -a disk.img); do\n"
1581 "   # ...\n"
1582 " done\n"
1583 "\n"
1584 msgstr ""
1585
1586 #. type: textblock
1587 #: ../cat/virt-filesystems.pod:27
1588 msgid ""
1589 "Another use is to list partitions before using another tool to modify those "
1590 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1591 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-filesystems.pod:32
1596 msgid ""
1597 "Various command line options control what this program displays.  You need "
1598 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1599 "guest respectively.  If you just specify that then the program shows "
1600 "filesystems found, one per line, like this:"
1601 msgstr ""
1602
1603 #. type: verbatim
1604 #: ../cat/virt-filesystems.pod:37
1605 #, no-wrap
1606 msgid ""
1607 " $ virt-filesystems -a disk.img\n"
1608 " /dev/sda1\n"
1609 " /dev/vg_guest/lv_root\n"
1610 "\n"
1611 msgstr ""
1612
1613 #. type: textblock
1614 #: ../cat/virt-filesystems.pod:41
1615 msgid ""
1616 "If you add I<-l> or I<--long> then the output includes extra information:"
1617 msgstr ""
1618
1619 #. type: verbatim
1620 #: ../cat/virt-filesystems.pod:44
1621 #, no-wrap
1622 msgid ""
1623 " $ virt-filesystems -a disk.img -l\n"
1624 " Name                   Type         VFS   Label  Size\n"
1625 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1626 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1627 "\n"
1628 msgstr ""
1629
1630 #. type: textblock
1631 #: ../cat/virt-filesystems.pod:49
1632 msgid ""
1633 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1634 "shown as well:"
1635 msgstr ""
1636
1637 #. type: verbatim
1638 #: ../cat/virt-filesystems.pod:52
1639 #, no-wrap
1640 msgid ""
1641 " $ virt-filesystems -a disk.img --extra\n"
1642 " /dev/sda1\n"
1643 " /dev/vg_guest/lv_root\n"
1644 " /dev/vg_guest/lv_swap\n"
1645 " /dev/vg_guest/lv_data\n"
1646 "\n"
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:58
1651 msgid ""
1652 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1653 msgstr ""
1654
1655 #. type: verbatim
1656 #: ../cat/virt-filesystems.pod:60
1657 #, no-wrap
1658 msgid ""
1659 " $ virt-filesystems -a disk.img --partitions\n"
1660 " /dev/sda1\n"
1661 " /dev/sda2\n"
1662 "\n"
1663 msgstr ""
1664
1665 #. type: textblock
1666 #: ../cat/virt-filesystems.pod:64
1667 msgid ""
1668 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1669 "volumes>, I<--block-devices> to list those items."
1670 msgstr ""
1671
1672 #. type: textblock
1673 #: ../cat/virt-filesystems.pod:67
1674 msgid ""
1675 "You can use these options in combination as well (if you want a combination "
1676 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1677 "items fall into several categories (eg. C</dev/sda1> might be both a "
1678 "partition and a filesystem).  These items are listed several times.  To get "
1679 "a list which includes absolutely everything that virt-filesystems knows "
1680 "about, use the I<--all> option."
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../cat/virt-filesystems.pod:74
1685 msgid ""
1686 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1687 "uuid> option to display device and filesystem UUIDs in the long output."
1688 msgstr ""
1689
1690 #. type: textblock
1691 #: ../cat/virt-filesystems.pod:78
1692 msgid ""
1693 "I<--all --long --uuid> is a useful combination to display all possible "
1694 "information about everything."
1695 msgstr ""
1696
1697 #. type: verbatim
1698 #: ../cat/virt-filesystems.pod:81
1699 #, no-wrap
1700 msgid ""
1701 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1702 " Name      Type       VFS  Label           Size Parent   UUID\n"
1703 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1704 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1705 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1706 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1707 " /dev/sda  device     -    -               20G  -        -\n"
1708 "\n"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:89
1713 msgid ""
1714 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1715 msgstr ""
1716
1717 #. type: =item
1718 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1719 msgid "B<--all>"
1720 msgstr ""
1721
1722 #. type: textblock
1723 #: ../cat/virt-filesystems.pod:112
1724 msgid ""
1725 "Display everything.  This is currently the same as specifying these options: "
1726 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1727 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1728 "added to this list in future)."
1729 msgstr ""
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:117
1733 msgid "See also I<--long>."
1734 msgstr ""
1735
1736 #. type: =item
1737 #: ../cat/virt-filesystems.pod:119
1738 msgid "B<--blkdevs>"
1739 msgstr ""
1740
1741 #. type: =item
1742 #: ../cat/virt-filesystems.pod:121
1743 msgid "B<--block-devices>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-filesystems.pod:123
1748 msgid "Display block devices."
1749 msgstr ""
1750
1751 #. type: =item
1752 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1753 msgid "B<--csv>"
1754 msgstr ""
1755
1756 #. type: textblock
1757 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1758 msgid ""
1759 "Write out the results in CSV format (comma-separated values).  This format "
1760 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1761 "ABOUT CSV FORMAT> below."
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:150
1766 msgid ""
1767 "When prompting for keys and passphrases, virt-filesystems normally turns "
1768 "echoing off so you cannot see what you are typing.  If you are not worried "
1769 "about Tempest attacks and there is no one else in the room you can specify "
1770 "this flag to see what you are typing."
1771 msgstr ""
1772
1773 #. type: =item
1774 #: ../cat/virt-filesystems.pod:155
1775 msgid "B<--extra>"
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-filesystems.pod:157
1780 msgid ""
1781 "This causes filesystems that are not ordinary, mountable filesystems to be "
1782 "displayed.  This category includes swapspace, and filesystems that are empty "
1783 "or contain unknown data."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:161
1788 msgid "This option implies I<--filesystems>."
1789 msgstr ""
1790
1791 #. type: =item
1792 #: ../cat/virt-filesystems.pod:163
1793 msgid "B<--filesystems>"
1794 msgstr ""
1795
1796 #. type: textblock
1797 #: ../cat/virt-filesystems.pod:165
1798 msgid ""
1799 "Display mountable filesystems.  If no display option was selected then this "
1800 "option is implied."
1801 msgstr ""
1802
1803 #. type: textblock
1804 #: ../cat/virt-filesystems.pod:168
1805 msgid "With I<--extra>, non-mountable filesystems are shown too."
1806 msgstr ""
1807
1808 #. type: verbatim
1809 #: ../cat/virt-filesystems.pod:181
1810 #, no-wrap
1811 msgid ""
1812 " virt-filesystems --format=raw -a disk.img\n"
1813 "\n"
1814 msgstr ""
1815
1816 #. type: verbatim
1817 #: ../cat/virt-filesystems.pod:185
1818 #, no-wrap
1819 msgid ""
1820 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1821 "\n"
1822 msgstr ""
1823
1824 #. type: =item
1825 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1826 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1827 #: ../tools/virt-list-partitions.pl:109
1828 msgid "B<-h>"
1829 msgstr ""
1830
1831 #. type: =item
1832 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1833 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1834 msgid "B<--human-readable>"
1835 msgstr ""
1836
1837 #. type: textblock
1838 #: ../cat/virt-filesystems.pod:198
1839 msgid "In I<--long> mode, display sizes in human-readable format."
1840 msgstr ""
1841
1842 #. type: =item
1843 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1844 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1845 msgid "B<-l>"
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1850 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1851 msgid "B<--long>"
1852 msgstr ""
1853
1854 #. type: textblock
1855 #: ../cat/virt-filesystems.pod:209
1856 msgid "Display extra columns of data (\"long format\")."
1857 msgstr ""
1858
1859 #. type: textblock
1860 #: ../cat/virt-filesystems.pod:211
1861 msgid "A title row is added unless you also specify I<--no-title>."
1862 msgstr ""
1863
1864 #. type: textblock
1865 #: ../cat/virt-filesystems.pod:213
1866 msgid ""
1867 "The extra columns displayed depend on what output you select, and the "
1868 "ordering of columns may change in future versions.  Use the title row, I<--"
1869 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1870 "programs."
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-filesystems.pod:218
1875 msgid ""
1876 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1877 "default is to show raw numbers of I<bytes>."
1878 msgstr ""
1879
1880 #. type: textblock
1881 #: ../cat/virt-filesystems.pod:221
1882 msgid "Use I<--uuid> to display UUIDs too."
1883 msgstr ""
1884
1885 #. type: =item
1886 #: ../cat/virt-filesystems.pod:223
1887 msgid "B<--lvs>"
1888 msgstr ""
1889
1890 #. type: =item
1891 #: ../cat/virt-filesystems.pod:225
1892 msgid "B<--logvols>"
1893 msgstr ""
1894
1895 #. type: =item
1896 #: ../cat/virt-filesystems.pod:227
1897 msgid "B<--logical-volumes>"
1898 msgstr ""
1899
1900 #. type: textblock
1901 #: ../cat/virt-filesystems.pod:229
1902 msgid ""
1903 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1904 "of whether the LVs contain filesystems."
1905 msgstr ""
1906
1907 #. type: =item
1908 #: ../cat/virt-filesystems.pod:232
1909 msgid "B<--no-title>"
1910 msgstr ""
1911
1912 #. type: textblock
1913 #: ../cat/virt-filesystems.pod:234
1914 msgid "In I<--long> mode, don't add a title row."
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-filesystems.pod:236
1919 msgid ""
1920 "Note that the order of the columns is not fixed, and may change in future "
1921 "versions of virt-filesystems, so using this option may give you unexpected "
1922 "surprises."
1923 msgstr ""
1924
1925 #. type: =item
1926 #: ../cat/virt-filesystems.pod:240
1927 msgid "B<--parts>"
1928 msgstr ""
1929
1930 #. type: =item
1931 #: ../cat/virt-filesystems.pod:242
1932 msgid "B<--partitions>"
1933 msgstr ""
1934
1935 #. type: textblock
1936 #: ../cat/virt-filesystems.pod:244
1937 msgid ""
1938 "Display partitions.  In this mode, these are displayed irrespective of "
1939 "whether the partitions contain filesystems."
1940 msgstr ""
1941
1942 #. type: =item
1943 #: ../cat/virt-filesystems.pod:247
1944 msgid "B<--pvs>"
1945 msgstr ""
1946
1947 #. type: =item
1948 #: ../cat/virt-filesystems.pod:249
1949 msgid "B<--physvols>"
1950 msgstr ""
1951
1952 #. type: =item
1953 #: ../cat/virt-filesystems.pod:251
1954 msgid "B<--physical-volumes>"
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:253
1959 msgid "Display LVM physical volumes."
1960 msgstr ""
1961
1962 #. type: =item
1963 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1964 msgid "B<--uuid>"
1965 msgstr ""
1966
1967 #. type: =item
1968 #: ../cat/virt-filesystems.pod:257
1969 msgid "B<--uuids>"
1970 msgstr ""
1971
1972 #. type: textblock
1973 #: ../cat/virt-filesystems.pod:259
1974 msgid "In I<--long> mode, display UUIDs as well."
1975 msgstr ""
1976
1977 #. type: =item
1978 #: ../cat/virt-filesystems.pod:273
1979 msgid "B<--vgs>"
1980 msgstr ""
1981
1982 #. type: =item
1983 #: ../cat/virt-filesystems.pod:275
1984 msgid "B<--volgroups>"
1985 msgstr ""
1986
1987 #. type: =item
1988 #: ../cat/virt-filesystems.pod:277
1989 msgid "B<--volume-groups>"
1990 msgstr ""
1991
1992 #. type: textblock
1993 #: ../cat/virt-filesystems.pod:279
1994 msgid "Display LVM volume groups."
1995 msgstr ""
1996
1997 #. type: =head1
1998 #: ../cat/virt-filesystems.pod:287
1999 msgid "COLUMNS"
2000 msgstr ""
2001
2002 #. type: textblock
2003 #: ../cat/virt-filesystems.pod:289
2004 msgid ""
2005 "Note that columns in the output are subject to reordering and change in "
2006 "future versions of this tool."
2007 msgstr ""
2008
2009 #. type: =item
2010 #: ../cat/virt-filesystems.pod:294
2011 msgid "B<Name>"
2012 msgstr ""
2013
2014 #. type: textblock
2015 #: ../cat/virt-filesystems.pod:296
2016 msgid "The filesystem, partition, block device or LVM name."
2017 msgstr ""
2018
2019 #. type: textblock
2020 #: ../cat/virt-filesystems.pod:298
2021 msgid ""
2022 "For device and partition names these are displayed as canonical libguestfs "
2023 "names, so that for example C</dev/sda2> is the second partition on the first "
2024 "device."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-filesystems.pod:302
2029 msgid ""
2030 "If the I<--long> option is B<not> specified, then only the name column is "
2031 "shown in the output."
2032 msgstr ""
2033
2034 #. type: =item
2035 #: ../cat/virt-filesystems.pod:305
2036 msgid "B<Type>"
2037 msgstr ""
2038
2039 #. type: textblock
2040 #: ../cat/virt-filesystems.pod:307
2041 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2042 msgstr ""
2043
2044 #. type: =item
2045 #: ../cat/virt-filesystems.pod:309
2046 msgid "B<VFS>"
2047 msgstr ""
2048
2049 #. type: textblock
2050 #: ../cat/virt-filesystems.pod:311
2051 msgid ""
2052 "If there is a filesystem, then this column displays the filesystem type if "
2053 "one could be detected, eg. C<ext4>."
2054 msgstr ""
2055
2056 #. type: =item
2057 #: ../cat/virt-filesystems.pod:314
2058 msgid "B<Label>"
2059 msgstr ""
2060
2061 #. type: textblock
2062 #: ../cat/virt-filesystems.pod:316
2063 msgid ""
2064 "If the object has a label (used for identifying and mounting filesystems) "
2065 "then this column contains the label."
2066 msgstr ""
2067
2068 #. type: =item
2069 #: ../cat/virt-filesystems.pod:319
2070 msgid "B<MBR>"
2071 msgstr ""
2072
2073 #. type: textblock
2074 #: ../cat/virt-filesystems.pod:321
2075 msgid ""
2076 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2077 "comprehensive list of partition types can be found here: L<http://www.win."
2078 "tue.nl/~aeb/partitions/partition_types-1.html>"
2079 msgstr ""
2080
2081 #. type: textblock
2082 #: ../cat/virt-filesystems.pod:325
2083 msgid "This is only applicable for DOS (MBR) partitions."
2084 msgstr ""
2085
2086 #. type: =item
2087 #: ../cat/virt-filesystems.pod:327
2088 msgid "B<Size>"
2089 msgstr ""
2090
2091 #. type: textblock
2092 #: ../cat/virt-filesystems.pod:329
2093 msgid ""
2094 "The size of the object in bytes.  If the I<--human> option is used then the "
2095 "size is displayed in a human-readable form."
2096 msgstr ""
2097
2098 #. type: =item
2099 #: ../cat/virt-filesystems.pod:332
2100 msgid "B<Parent>"
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-filesystems.pod:334
2105 msgid ""
2106 "The parent column records the parent relationship between objects.  For "
2107 "example, if the object is a partition, then this column contains the name of "
2108 "the containing device.  If the object is a logical volume, then this column "
2109 "is the name of the volume group."
2110 msgstr ""
2111
2112 #. type: =item
2113 #: ../cat/virt-filesystems.pod:339
2114 msgid "B<UUID>"
2115 msgstr ""
2116
2117 #. type: textblock
2118 #: ../cat/virt-filesystems.pod:341
2119 msgid ""
2120 "If the object has a UUID (used for identifying and mounting filesystems and "
2121 "block devices) then this column contains the UUID as a string."
2122 msgstr ""
2123
2124 #. type: textblock
2125 #: ../cat/virt-filesystems.pod:345
2126 msgid "The UUID is only displayed if the I<--uuid> option is given."
2127 msgstr ""
2128
2129 #. type: =head1
2130 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2131 #: ../df/virt-df.pod:191
2132 msgid "NOTE ABOUT CSV FORMAT"
2133 msgstr ""
2134
2135 #. type: textblock
2136 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2137 #: ../df/virt-df.pod:193
2138 msgid ""
2139 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2140 "should be easy to parse, but it is definitely not easy to parse."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2145 #: ../df/virt-df.pod:196
2146 msgid ""
2147 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2148 "reliably.  This example has two columns:"
2149 msgstr ""
2150
2151 #. type: verbatim
2152 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2153 #: ../df/virt-df.pod:199
2154 #, no-wrap
2155 msgid ""
2156 " \"foo,bar\",baz\n"
2157 "\n"
2158 msgstr ""
2159
2160 #. type: textblock
2161 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2162 #: ../df/virt-df.pod:201
2163 msgid ""
2164 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2165 "reliably.  This example has one row:"
2166 msgstr ""
2167
2168 #. type: verbatim
2169 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2170 #: ../df/virt-df.pod:204
2171 #, no-wrap
2172 msgid ""
2173 " \"foo\n"
2174 " bar\",baz\n"
2175 "\n"
2176 msgstr ""
2177
2178 #. type: textblock
2179 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2180 #: ../df/virt-df.pod:207
2181 msgid ""
2182 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2183 "packaged in major Linux distributions)."
2184 msgstr ""
2185
2186 #. type: textblock
2187 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2188 #: ../df/virt-df.pod:210
2189 msgid ""
2190 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2191 "or Python's built-in csv library)."
2192 msgstr ""
2193
2194 #. type: textblock
2195 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2196 #: ../df/virt-df.pod:213
2197 msgid "Most spreadsheets and databases can import CSV directly."
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../cat/virt-filesystems.pod:387
2202 msgid ""
2203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2204 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2205 "libguestfs.org/>."
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2210 msgid "Copyright (C) 2010 Red Hat Inc."
2211 msgstr ""
2212
2213 #. type: textblock
2214 #: ../cat/virt-ls.pod:5
2215 msgid "virt-ls - List files in a virtual machine"
2216 msgstr ""
2217
2218 #. type: verbatim
2219 #: ../cat/virt-ls.pod:9
2220 #, no-wrap
2221 msgid ""
2222 " virt-ls [--options] -d domname directory [directory ...]\n"
2223 "\n"
2224 msgstr ""
2225
2226 #. type: verbatim
2227 #: ../cat/virt-ls.pod:11
2228 #, no-wrap
2229 msgid ""
2230 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2231 "\n"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2236 msgid "Old style:"
2237 msgstr ""
2238
2239 #. type: verbatim
2240 #: ../cat/virt-ls.pod:15
2241 #, no-wrap
2242 msgid ""
2243 " virt-ls [--options] domname directory\n"
2244 "\n"
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:17
2249 #, no-wrap
2250 msgid ""
2251 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2252 "\n"
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../cat/virt-ls.pod:21
2257 msgid ""
2258 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2259 "more from a virtual machine or disk image."
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:24
2264 msgid ""
2265 "Multiple directory names can be given, in which case the output from each is "
2266 "concatenated."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../cat/virt-ls.pod:27
2271 msgid ""
2272 "To list directories from a libvirt guest use the I<-d> option to specify the "
2273 "name of the guest.  For a disk image, use the I<-a> option."
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:31
2278 msgid ""
2279 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2280 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2281 "(3)> API."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-ls.pod:37
2286 msgid "Get a list of all files and directories in a virtual machine:"
2287 msgstr ""
2288
2289 #. type: verbatim
2290 #: ../cat/virt-ls.pod:39
2291 #, no-wrap
2292 msgid ""
2293 " virt-ls -R -d guest /\n"
2294 "\n"
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:41
2299 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2300 msgstr ""
2301
2302 #. type: verbatim
2303 #: ../cat/virt-ls.pod:43
2304 #, no-wrap
2305 msgid ""
2306 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2307 "\n"
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../cat/virt-ls.pod:45
2312 msgid "List all public-writable directories in a Linux virtual machine:"
2313 msgstr ""
2314
2315 #. type: verbatim
2316 #: ../cat/virt-ls.pod:47
2317 #, no-wrap
2318 msgid ""
2319 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2320 "\n"
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:49
2325 msgid "List all Unix domain sockets in a Linux virtual machine:"
2326 msgstr ""
2327
2328 #. type: verbatim
2329 #: ../cat/virt-ls.pod:51
2330 #, no-wrap
2331 msgid ""
2332 " virt-ls -lR -d guest / | grep '^s'\n"
2333 "\n"
2334 msgstr ""
2335
2336 #. type: textblock
2337 #: ../cat/virt-ls.pod:53
2338 msgid "List all regular files with filenames ending in '.png':"
2339 msgstr ""
2340
2341 #. type: verbatim
2342 #: ../cat/virt-ls.pod:55
2343 #, no-wrap
2344 msgid ""
2345 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2346 "\n"
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../cat/virt-ls.pod:57
2351 msgid "To display files larger than 10MB in home directories:"
2352 msgstr ""
2353
2354 #. type: verbatim
2355 #: ../cat/virt-ls.pod:59
2356 #, no-wrap
2357 msgid ""
2358 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2359 "\n"
2360 msgstr ""
2361
2362 #. type: textblock
2363 #: ../cat/virt-ls.pod:61
2364 msgid "Find everything modified in the last 7 days:"
2365 msgstr ""
2366
2367 #. type: verbatim
2368 #: ../cat/virt-ls.pod:63
2369 #, no-wrap
2370 msgid ""
2371 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2372 "\n"
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../cat/virt-ls.pod:65
2377 msgid "Find regular files modified in the last 24 hours:"
2378 msgstr ""
2379
2380 #. type: verbatim
2381 #: ../cat/virt-ls.pod:67
2382 #, no-wrap
2383 msgid ""
2384 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2385 "\n"
2386 msgstr ""
2387
2388 #. type: =head2
2389 #: ../cat/virt-ls.pod:69
2390 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2391 msgstr ""
2392
2393 #. type: textblock
2394 #: ../cat/virt-ls.pod:71
2395 msgid ""
2396 "Find the differences between files in a guest and an earlier snapshot of the "
2397 "same guest."
2398 msgstr ""
2399
2400 #. type: verbatim
2401 #: ../cat/virt-ls.pod:74
2402 #, no-wrap
2403 msgid ""
2404 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2405 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2406 " diff -u old new | less\n"
2407 "\n"
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../cat/virt-ls.pod:78
2412 msgid ""
2413 "The commands above won't find files where the content has changed but the "
2414 "metadata (eg. file size and modification date) is the same.  To do that, you "
2415 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2416 "checksum> can be quite slow since it has to read and compute a checksum of "
2417 "every regular file in the virtual machine."
2418 msgstr ""
2419
2420 #. type: =head1
2421 #: ../cat/virt-ls.pod:84
2422 msgid "OUTPUT MODES"
2423 msgstr ""
2424
2425 #. type: textblock
2426 #: ../cat/virt-ls.pod:86
2427 msgid ""
2428 "C<virt-ls> has four output modes, controlled by different combinations of "
2429 "the I<-l> and I<-R> options."
2430 msgstr ""
2431
2432 #. type: =head2
2433 #: ../cat/virt-ls.pod:89
2434 msgid "SIMPLE LISTING"
2435 msgstr ""
2436
2437 #. type: textblock
2438 #: ../cat/virt-ls.pod:91
2439 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:93
2444 #, no-wrap
2445 msgid ""
2446 " $ virt-ls -d guest /\n"
2447 " bin\n"
2448 " boot\n"
2449 " [etc.]\n"
2450 "\n"
2451 msgstr ""
2452
2453 #. type: =head2
2454 #: ../cat/virt-ls.pod:98
2455 msgid "LONG LISTING"
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:100
2460 msgid ""
2461 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2462 "(more specifically, like the C<guestfs_ll> function)."
2463 msgstr ""
2464
2465 #. type: verbatim
2466 #: ../cat/virt-ls.pod:103
2467 #, no-wrap
2468 msgid ""
2469 " $ virt-ls -l -d guest /\n"
2470 " total 204\n"
2471 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2472 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2473 " [etc.]\n"
2474 "\n"
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../cat/virt-ls.pod:109
2479 msgid ""
2480 "Note that while this is useful for displaying a directory, do not try "
2481 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2482 "instead."
2483 msgstr ""
2484
2485 #. type: =head2
2486 #: ../cat/virt-ls.pod:113
2487 msgid "RECURSIVE LISTING"
2488 msgstr ""
2489
2490 #. type: textblock
2491 #: ../cat/virt-ls.pod:115
2492 msgid ""
2493 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2494 "and directories recursively:"
2495 msgstr ""
2496
2497 #. type: verbatim
2498 #: ../cat/virt-ls.pod:118
2499 #, no-wrap
2500 msgid ""
2501 " $ virt-ls -R -d guest /tmp\n"
2502 " foo\n"
2503 " foo/bar\n"
2504 " [etc.]\n"
2505 "\n"
2506 msgstr ""
2507
2508 #. type: textblock
2509 #: ../cat/virt-ls.pod:123
2510 msgid ""
2511 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2512 "converts C<\\0> characters to C<\\n>."
2513 msgstr ""
2514
2515 #. type: =head2
2516 #: ../cat/virt-ls.pod:126
2517 msgid "RECURSIVE LONG LISTING"
2518 msgstr ""
2519
2520 #. type: textblock
2521 #: ../cat/virt-ls.pod:128
2522 msgid ""
2523 "Using I<-lR> options together changes the output to display directories "
2524 "recursively, with file stats, and optionally other features such as "
2525 "checksums and extended attributes."
2526 msgstr ""
2527
2528 #. type: textblock
2529 #: ../cat/virt-ls.pod:132
2530 msgid ""
2531 "Most of the interesting features of C<virt-ls> are only available when using "
2532 "I<-lR> mode."
2533 msgstr ""
2534
2535 #. type: textblock
2536 #: ../cat/virt-ls.pod:135
2537 msgid ""
2538 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2539 "you cannot use the output in another program (because filenames can contain "
2540 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2541 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2542 "on you by creating filenames with embedded newline characters.  To B<safely> "
2543 "parse the output in another program, use the I<--csv> (Comma-Separated "
2544 "Values) option."
2545 msgstr ""
2546
2547 #. type: textblock
2548 #: ../cat/virt-ls.pod:143
2549 msgid ""
2550 "Note that this output format is completely unrelated to the C<ls -lR> "
2551 "command."
2552 msgstr ""
2553
2554 #. type: verbatim
2555 #: ../cat/virt-ls.pod:146
2556 #, no-wrap
2557 msgid ""
2558 " $ virt-ls -lR -d guest /bin\n"
2559 " d 0555       4096 /bin\n"
2560 " - 0755        123 /bin/alsaunmute\n"
2561 " - 0755      28328 /bin/arch\n"
2562 " l 0777          4 /bin/awk -> gawk\n"
2563 " - 0755      27216 /bin/basename\n"
2564 " - 0755     943360 /bin/bash\n"
2565 " [etc.]\n"
2566 "\n"
2567 msgstr ""
2568
2569 #. type: textblock
2570 #: ../cat/virt-ls.pod:155
2571 msgid "These basic fields are always shown:"
2572 msgstr ""
2573
2574 #. type: =item
2575 #: ../cat/virt-ls.pod:159
2576 msgid "type"
2577 msgstr ""
2578
2579 #. type: textblock
2580 #: ../cat/virt-ls.pod:161
2581 msgid ""
2582 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2583 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2584 "link), C<s> (socket) or C<u> (unknown)."
2585 msgstr ""
2586
2587 #. type: =item
2588 #: ../cat/virt-ls.pod:171
2589 msgid "permissions"
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../cat/virt-ls.pod:173
2594 msgid "The Unix permissions, displayed as a 4 digit octal number."
2595 msgstr ""
2596
2597 #. type: =item
2598 #: ../cat/virt-ls.pod:175
2599 msgid "size"
2600 msgstr ""
2601
2602 #. type: textblock
2603 #: ../cat/virt-ls.pod:177
2604 msgid ""
2605 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2606 "readable> option is given, in which case this is shown as a human-readable "
2607 "number."
2608 msgstr ""
2609
2610 #. type: =head2
2611 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4349
2612 msgid "path"
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../cat/virt-ls.pod:183
2617 msgid "The full path of the file or directory."
2618 msgstr ""
2619
2620 #. type: =item
2621 #: ../cat/virt-ls.pod:185
2622 msgid "link"
2623 msgstr ""
2624
2625 #. type: textblock
2626 #: ../cat/virt-ls.pod:187
2627 msgid "For symbolic links only, the link target."
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../cat/virt-ls.pod:191
2632 msgid ""
2633 "In I<-lR> mode, additional command line options enable the display of more "
2634 "fields."
2635 msgstr ""
2636
2637 #. type: textblock
2638 #: ../cat/virt-ls.pod:194
2639 msgid ""
2640 "With the I<--uids> flag, these additional fields are displayed before the "
2641 "path:"
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../cat/virt-ls.pod:199
2646 msgid "uid"
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../cat/virt-ls.pod:201
2651 msgid "gid"
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:203
2656 msgid ""
2657 "The UID and GID of the owner of the file (displayed numerically).  Note "
2658 "these only make sense in the context of a Unix-like guest."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../cat/virt-ls.pod:208
2663 msgid "With the I<--times> flag, these additional fields are displayed:"
2664 msgstr ""
2665
2666 #. type: =item
2667 #: ../cat/virt-ls.pod:212
2668 msgid "atime"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../cat/virt-ls.pod:214
2673 msgid "The time of last access."
2674 msgstr ""
2675
2676 #. type: =item
2677 #: ../cat/virt-ls.pod:216
2678 msgid "mtime"
2679 msgstr ""
2680
2681 #. type: textblock
2682 #: ../cat/virt-ls.pod:218
2683 msgid "The time of last modification."
2684 msgstr ""
2685
2686 #. type: =item
2687 #: ../cat/virt-ls.pod:220
2688 msgid "ctime"
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../cat/virt-ls.pod:222
2693 msgid "The time of last status change."
2694 msgstr ""
2695
2696 #. type: textblock
2697 #: ../cat/virt-ls.pod:226
2698 msgid ""
2699 "The time fields are displayed as string dates and times, unless one of the "
2700 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2701 msgstr ""
2702
2703 #. type: textblock
2704 #: ../cat/virt-ls.pod:229
2705 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2706 msgstr ""
2707
2708 #. type: =item
2709 #: ../cat/virt-ls.pod:233
2710 msgid "device"
2711 msgstr ""
2712
2713 #. type: textblock
2714 #: ../cat/virt-ls.pod:235
2715 msgid ""
2716 "The device containing the file (displayed as major:minor).  This may not "
2717 "match devices as known to the guest."
2718 msgstr ""
2719
2720 #. type: =item
2721 #: ../cat/virt-ls.pod:238
2722 msgid "inode"
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../cat/virt-ls.pod:240
2727 msgid "The inode number."
2728 msgstr ""
2729
2730 #. type: =item
2731 #: ../cat/virt-ls.pod:242
2732 msgid "nlink"
2733 msgstr ""
2734
2735 #. type: textblock
2736 #: ../cat/virt-ls.pod:244
2737 msgid "The number of hard links."
2738 msgstr ""
2739
2740 #. type: =item
2741 #: ../cat/virt-ls.pod:246
2742 msgid "rdev"
2743 msgstr ""
2744
2745 #. type: textblock
2746 #: ../cat/virt-ls.pod:248
2747 msgid ""
2748 "For block and char special files, the device (displayed as major:minor)."
2749 msgstr ""
2750
2751 #. type: =item
2752 #: ../cat/virt-ls.pod:251
2753 msgid "blocks"
2754 msgstr ""
2755
2756 #. type: textblock
2757 #: ../cat/virt-ls.pod:253
2758 msgid "The number of 512 byte blocks allocated to the file."
2759 msgstr ""
2760
2761 #. type: textblock
2762 #: ../cat/virt-ls.pod:257
2763 msgid ""
2764 "With the I<--checksum> flag, the checksum of the file contents is shown "
2765 "(only for regular files).  Computing file checksums can take a considerable "
2766 "amount of time."
2767 msgstr ""
2768
2769 #. type: =item
2770 #: ../cat/virt-ls.pod:280
2771 msgid "B<--checksum>"
2772 msgstr ""
2773
2774 #. type: =item
2775 #: ../cat/virt-ls.pod:282
2776 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../cat/virt-ls.pod:284
2781 msgid ""
2782 "Display checksum over file contents for regular files.  With no argument, "
2783 "this defaults to using I<md5>.  Using an argument, you can select the "
2784 "checksum type to use."
2785 msgstr ""
2786
2787 #. type: textblock
2788 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2789 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2790 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2791 msgid ""
2792 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2793 "LISTING> above."
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../cat/virt-ls.pod:316
2798 msgid ""
2799 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2800 "so you cannot see what you are typing.  If you are not worried about Tempest "
2801 "attacks and there is no one else in the room you can specify this flag to "
2802 "see what you are typing."
2803 msgstr ""
2804
2805 #. type: =item
2806 #: ../cat/virt-ls.pod:321
2807 msgid "B<--extra-stats>"
2808 msgstr ""
2809
2810 #. type: textblock
2811 #: ../cat/virt-ls.pod:323
2812 msgid "Display extra stats."
2813 msgstr ""
2814
2815 #. type: verbatim
2816 #: ../cat/virt-ls.pod:339
2817 #, no-wrap
2818 msgid ""
2819 " virt-ls --format=raw -a disk.img /dir\n"
2820 "\n"
2821 msgstr ""
2822
2823 #. type: verbatim
2824 #: ../cat/virt-ls.pod:343
2825 #, no-wrap
2826 msgid ""
2827 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2828 "\n"
2829 msgstr ""
2830
2831 #. type: textblock
2832 #: ../cat/virt-ls.pod:356
2833 msgid "Display file sizes in human-readable format."
2834 msgstr ""
2835
2836 #. type: =item
2837 #: ../cat/virt-ls.pod:370
2838 msgid "B<-R>"
2839 msgstr ""
2840
2841 #. type: =item
2842 #: ../cat/virt-ls.pod:372
2843 msgid "B<--recursive>"
2844 msgstr ""
2845
2846 #. type: textblock
2847 #: ../cat/virt-ls.pod:374
2848 msgid ""
2849 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2850 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2851 "LISTING>."
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../cat/virt-ls.pod:378
2856 msgid ""
2857 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2858 "LONG LISTING>."
2859 msgstr ""
2860
2861 #. type: textblock
2862 #: ../cat/virt-ls.pod:381
2863 msgid ""
2864 "C<virt-ls -R> produces a recursive list of files starting at the named "
2865 "directory.  See L</RECURSIVE LISTING>."
2866 msgstr ""
2867
2868 #. type: textblock
2869 #: ../cat/virt-ls.pod:384
2870 msgid ""
2871 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2872 "parsed.  See L</RECURSIVE LONG LISTING>."
2873 msgstr ""
2874
2875 #. type: =item
2876 #: ../cat/virt-ls.pod:387
2877 msgid "B<--times>"
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../cat/virt-ls.pod:389
2882 msgid "Display time fields."
2883 msgstr ""
2884
2885 #. type: =item
2886 #: ../cat/virt-ls.pod:394
2887 msgid "B<--time-days>"
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../cat/virt-ls.pod:396
2892 msgid "Display time fields as days before now (negative if in the future)."
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../cat/virt-ls.pod:398
2897 msgid ""
2898 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2899 "of the file is between 0 and 86399 seconds."
2900 msgstr ""
2901
2902 #. type: =item
2903 #: ../cat/virt-ls.pod:404
2904 msgid "B<--time-relative>"
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../cat/virt-ls.pod:406
2909 msgid "Display time fields as seconds before now (negative if in the future)."
2910 msgstr ""
2911
2912 #. type: =item
2913 #: ../cat/virt-ls.pod:411
2914 msgid "B<--time-t>"
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../cat/virt-ls.pod:413
2919 msgid "Display time fields as seconds since the Unix epoch."
2920 msgstr ""
2921
2922 #. type: =item
2923 #: ../cat/virt-ls.pod:418
2924 msgid "B<--uids>"
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../cat/virt-ls.pod:420
2929 msgid "Display UID and GID fields."
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../cat/virt-ls.pod:445
2934 msgid "Previous versions of virt-ls allowed you to write either:"
2935 msgstr ""
2936
2937 #. type: verbatim
2938 #: ../cat/virt-ls.pod:447
2939 #, no-wrap
2940 msgid ""
2941 " virt-ls disk.img [disk.img ...] /dir\n"
2942 "\n"
2943 msgstr ""
2944
2945 #. type: verbatim
2946 #: ../cat/virt-ls.pod:451
2947 #, no-wrap
2948 msgid ""
2949 " virt-ls guestname /dir\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: textblock
2954 #: ../cat/virt-ls.pod:497
2955 msgid ""
2956 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2957 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2958 "L<http://libguestfs.org/>."
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2963 #: ../rescue/virt-rescue.pod:302
2964 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../clone/virt-sysprep.pod:5
2969 msgid ""
2970 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2971 msgstr ""
2972
2973 #. type: verbatim
2974 #: ../clone/virt-sysprep.pod:9
2975 #, no-wrap
2976 msgid ""
2977 " virt-sysprep [--options] -d domname\n"
2978 "\n"
2979 msgstr ""
2980
2981 #. type: verbatim
2982 #: ../clone/virt-sysprep.pod:11
2983 #, no-wrap
2984 msgid ""
2985 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2986 "\n"
2987 msgstr ""
2988
2989 #. type: textblock
2990 #: ../clone/virt-sysprep.pod:15
2991 msgid ""
2992 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2993 "can be made from it.  Steps in this process include removing SSH host keys, "
2994 "removing persistent network MAC configuration, and removing user accounts.  "
2995 "Each step can be enabled or disabled as required."
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../clone/virt-sysprep.pod:21
3000 msgid ""
3001 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3002 "customization by the system administrator."
3003 msgstr ""
3004
3005 #. type: textblock
3006 #: ../clone/virt-sysprep.pod:24
3007 msgid ""
3008 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3009 "be shut down.  If you want to preserve the existing contents of the guest, "
3010 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:29
3015 msgid ""
3016 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3017 "recommend that you don't.  The time you might want to run it as root is when "
3018 "you need root in order to access the disk image, but even in this case it "
3019 "would be better to change the permissions on the disk image to be writable "
3020 "as the non-root user running virt-sysprep."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:35
3025 msgid ""
3026 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3027 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3028 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3029 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3030 "Windows sysprepping in a future version, and we already have code to do it."
3031 msgstr ""
3032
3033 #. type: =item
3034 #: ../clone/virt-sysprep.pod:76
3035 msgid "B<--enable=...>"
3036 msgstr ""
3037
3038 #. type: textblock
3039 #: ../clone/virt-sysprep.pod:78
3040 msgid ""
3041 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3042 "operations, for example:"
3043 msgstr ""
3044
3045 #. type: verbatim
3046 #: ../clone/virt-sysprep.pod:81
3047 #, no-wrap
3048 msgid ""
3049 " --enable=ssh-hostkeys,udev-persistent-net\n"
3050 "\n"
3051 msgstr ""
3052
3053 #. type: textblock
3054 #: ../clone/virt-sysprep.pod:83
3055 msgid ""
3056 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3057 msgstr ""
3058
3059 #. type: textblock
3060 #: ../clone/virt-sysprep.pod:85
3061 msgid ""
3062 "If the I<--enable> option is not given, then we default to trying all "
3063 "possible sysprep operations.  But some sysprep operations are skipped for "
3064 "some guest types."
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../clone/virt-sysprep.pod:89
3069 msgid ""
3070 "Use I<--list-operations> to list operations supported by a particular "
3071 "version of virt-sysprep."
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../clone/virt-sysprep.pod:92
3076 msgid ""
3077 "See L</OPERATIONS> below for a list and an explanation of each operation."
3078 msgstr ""
3079
3080 #. type: verbatim
3081 #: ../clone/virt-sysprep.pod:106
3082 #, no-wrap
3083 msgid ""
3084 " virt-sysprep --format=raw -a disk.img\n"
3085 "\n"
3086 msgstr ""
3087
3088 #. type: verbatim
3089 #: ../clone/virt-sysprep.pod:110
3090 #, no-wrap
3091 msgid ""
3092 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3093 "\n"
3094 msgstr ""
3095
3096 #. type: =item
3097 #: ../clone/virt-sysprep.pod:119
3098 msgid "B<--hostname> newhostname"
3099 msgstr ""
3100
3101 #. type: textblock
3102 #: ../clone/virt-sysprep.pod:121
3103 msgid ""
3104 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3105 "defaults to C<localhost.localdomain>."
3106 msgstr ""
3107
3108 #. type: =item
3109 #: ../clone/virt-sysprep.pod:124
3110 msgid "B<--list-operations>"
3111 msgstr ""
3112
3113 #. type: textblock
3114 #: ../clone/virt-sysprep.pod:126
3115 msgid "List the operations supported by the virt-sysprep program."
3116 msgstr ""
3117
3118 #. type: =item
3119 #: ../clone/virt-sysprep.pod:128
3120 msgid "B<--selinux-relabel>"
3121 msgstr ""
3122
3123 #. type: =item
3124 #: ../clone/virt-sysprep.pod:130
3125 msgid "B<--no-selinux-relabel>"
3126 msgstr ""
3127
3128 #. type: textblock
3129 #: ../clone/virt-sysprep.pod:132
3130 msgid ""
3131 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3132 "I<--no-selinux-relabel> disables relabelling."
3133 msgstr ""
3134
3135 #. type: textblock
3136 #: ../clone/virt-sysprep.pod:135
3137 msgid ""
3138 "The default is to try to detect if SELinux relabelling is required.  See L</"
3139 "SELINUX RELABELLING> below for more details."
3140 msgstr ""
3141
3142 #. type: =head1
3143 #: ../clone/virt-sysprep.pod:156
3144 msgid "OPERATIONS"
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../clone/virt-sysprep.pod:158
3149 msgid ""
3150 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3151 "enabled>, although some are skipped depending on the type of guest."
3152 msgstr ""
3153
3154 #. type: textblock
3155 #: ../clone/virt-sysprep.pod:162
3156 msgid ""
3157 "Operations can be individually enabled using the I<--enable> option.  Use a "
3158 "comma-separated list, for example:"
3159 msgstr ""
3160
3161 #. type: verbatim
3162 #: ../clone/virt-sysprep.pod:165
3163 #, no-wrap
3164 msgid ""
3165 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3166 "\n"
3167 msgstr ""
3168
3169 #. type: textblock
3170 #: ../clone/virt-sysprep.pod:167
3171 msgid ""
3172 "To list the operations supported by the current version of virt-sysprep, use "
3173 "I<--list-operations>."
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:170
3178 msgid ""
3179 "Future versions of virt-sysprep may add more operations.  If you are using "
3180 "virt-sysprep and want predictable behaviour, specify only the operations "
3181 "that you want to have enabled."
3182 msgstr ""
3183
3184 #. type: =head2
3185 #: ../clone/virt-sysprep.pod:174
3186 msgid "cron-spool"
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../clone/virt-sysprep.pod:176
3191 msgid "Remove user at-jobs and cron-jobs."
3192 msgstr ""
3193
3194 #. type: =head2
3195 #: ../clone/virt-sysprep.pod:178
3196 msgid "dhcp-client-state"
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../clone/virt-sysprep.pod:180
3201 msgid "Remove DHCP client leases."
3202 msgstr ""
3203
3204 #. type: =head2
3205 #: ../clone/virt-sysprep.pod:182
3206 msgid "dhcp-server-state"
3207 msgstr ""
3208
3209 #. type: textblock
3210 #: ../clone/virt-sysprep.pod:184
3211 msgid "Remove DHCP server leases."
3212 msgstr ""
3213
3214 #. type: =head2
3215 #: ../clone/virt-sysprep.pod:186
3216 msgid "hostname"
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../clone/virt-sysprep.pod:188
3221 msgid ""
3222 "Changes the hostname of the guest to the value given in the I<--hostname> "
3223 "parameter."
3224 msgstr ""
3225
3226 #. type: textblock
3227 #: ../clone/virt-sysprep.pod:191
3228 msgid ""
3229 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3230 "C<localhost.localdomain>."
3231 msgstr ""
3232
3233 #. type: =head2
3234 #: ../clone/virt-sysprep.pod:194
3235 msgid "logfiles"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../clone/virt-sysprep.pod:196
3240 msgid "Remove many log files."
3241 msgstr ""
3242
3243 #. type: =head2
3244 #: ../clone/virt-sysprep.pod:198
3245 msgid "mail-spool"
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../clone/virt-sysprep.pod:200
3250 msgid "Remove email from the local mail spool directory."
3251 msgstr ""
3252
3253 #. type: =head2
3254 #: ../clone/virt-sysprep.pod:202
3255 msgid "net-hwaddr"
3256 msgstr ""
3257
3258 #. type: textblock
3259 #: ../clone/virt-sysprep.pod:204
3260 msgid ""
3261 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3262 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3263 msgstr ""
3264
3265 #. type: =head2
3266 #: ../clone/virt-sysprep.pod:207
3267 msgid "random-seed"
3268 msgstr ""
3269
3270 #. type: textblock
3271 #: ../clone/virt-sysprep.pod:209
3272 msgid ""
3273 "Write some random bytes from the host into the random seed file of the guest."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:212
3278 msgid "See L</RANDOM SEED> below."
3279 msgstr ""
3280
3281 #. type: =head2
3282 #: ../clone/virt-sysprep.pod:214
3283 msgid "rhn-systemid"
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../clone/virt-sysprep.pod:216
3288 msgid "Remove the RHN system ID."
3289 msgstr ""
3290
3291 #. type: =head2
3292 #: ../clone/virt-sysprep.pod:218
3293 msgid "smolt-uuid"
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../clone/virt-sysprep.pod:220
3298 msgid "Remove the Smolt hardware UUID."
3299 msgstr ""
3300
3301 #. type: =head2
3302 #: ../clone/virt-sysprep.pod:222
3303 msgid "ssh-hostkeys"
3304 msgstr ""
3305
3306 #. type: textblock
3307 #: ../clone/virt-sysprep.pod:224
3308 msgid "Remove the SSH host keys in the guest."
3309 msgstr ""
3310
3311 #. type: textblock
3312 #: ../clone/virt-sysprep.pod:226
3313 msgid ""
3314 "The SSH host keys are regenerated (differently) next time the guest is "
3315 "booted."
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../clone/virt-sysprep.pod:229
3320 msgid ""
3321 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3322 "stark warning about the host key changing:"
3323 msgstr ""
3324
3325 #. type: verbatim
3326 #: ../clone/virt-sysprep.pod:232
3327 #, no-wrap
3328 msgid ""
3329 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3330 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3331 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3332 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3333 "\n"
3334 msgstr ""
3335
3336 #. type: =head2
3337 #: ../clone/virt-sysprep.pod:237
3338 msgid "udev-persistent-net"
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../clone/virt-sysprep.pod:239
3343 msgid ""
3344 "Remove udev persistent net rules which map the guest's existing MAC address "
3345 "to a fixed ethernet device (eg. eth0)."
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../clone/virt-sysprep.pod:242
3350 msgid ""
3351 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3352 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3353 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3354 "Erasing the udev persistent net rules avoids this."
3355 msgstr ""
3356
3357 #. type: =head2
3358 #: ../clone/virt-sysprep.pod:247
3359 msgid "utmp"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:249
3364 msgid "Remove the utmp file."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:251
3369 msgid ""
3370 "This records who is currently logged in on a machine.  In modern Linux "
3371 "distros it is stored in a ramdisk and hence not part of the virtual "
3372 "machine's disk, but it was stored on disk in older distros."
3373 msgstr ""
3374
3375 #. type: =head2
3376 #: ../clone/virt-sysprep.pod:255
3377 msgid "yum-uuid"
3378 msgstr ""
3379
3380 #. type: textblock
3381 #: ../clone/virt-sysprep.pod:257
3382 msgid "Remove the yum UUID."
3383 msgstr ""
3384
3385 #. type: textblock
3386 #: ../clone/virt-sysprep.pod:259
3387 msgid ""
3388 "Yum creates a fresh UUID the next time it runs when it notices that the "
3389 "original UUID has been erased."
3390 msgstr ""
3391
3392 #. type: =head1
3393 #: ../clone/virt-sysprep.pod:262
3394 msgid "COPYING AND CLONING"
3395 msgstr ""
3396
3397 #. type: textblock
3398 #: ../clone/virt-sysprep.pod:264
3399 msgid ""
3400 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3401 "prepare a template from which guests can be cloned.  There are many "
3402 "different ways to achieve this using the virt tools, and this section is "
3403 "just an introduction."
3404 msgstr ""
3405
3406 #. type: textblock
3407 #: ../clone/virt-sysprep.pod:269
3408 msgid "A virtual machine (when switched off) consists of two parts:"
3409 msgstr ""
3410
3411 #. type: =item
3412 #: ../clone/virt-sysprep.pod:273
3413 msgid "I<configuration>"
3414 msgstr ""
3415
3416 #. type: textblock
3417 #: ../clone/virt-sysprep.pod:275
3418 msgid ""
3419 "The configuration or description of the guest.  eg. The libvirt XML (see "
3420 "C<virsh dumpxml>), the running configuration of the guest, or another "
3421 "external format like OVF."
3422 msgstr ""
3423
3424 #. type: textblock
3425 #: ../clone/virt-sysprep.pod:279
3426 msgid "Some configuration items that might need to be changed:"
3427 msgstr ""
3428
3429 #. type: textblock
3430 #: ../clone/virt-sysprep.pod:285
3431 msgid "name"
3432 msgstr ""
3433
3434 #. type: textblock
3435 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3436 msgid "UUID"
3437 msgstr ""
3438
3439 #. type: textblock
3440 #: ../clone/virt-sysprep.pod:293
3441 msgid "path to block device(s)"
3442 msgstr ""
3443
3444 #. type: textblock
3445 #: ../clone/virt-sysprep.pod:297
3446 msgid "network card MAC address"
3447 msgstr ""
3448
3449 #. type: =item
3450 #: ../clone/virt-sysprep.pod:301
3451 msgid "I<block device(s)>"
3452 msgstr ""
3453
3454 #. type: textblock
3455 #: ../clone/virt-sysprep.pod:303
3456 msgid ""
3457 "One or more hard disk images, themselves containing files, directories, "
3458 "applications, kernels, configuration, etc."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../clone/virt-sysprep.pod:306
3463 msgid "Some things inside the block devices that might need to be changed:"
3464 msgstr ""
3465
3466 #. type: textblock
3467 #: ../clone/virt-sysprep.pod:312
3468 msgid "hostname and other net configuration"
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../clone/virt-sysprep.pod:320
3473 msgid "SSH host keys"
3474 msgstr ""
3475
3476 #. type: textblock
3477 #: ../clone/virt-sysprep.pod:324
3478 msgid "Windows unique security ID (SID)"
3479 msgstr ""
3480
3481 #. type: textblock
3482 #: ../clone/virt-sysprep.pod:328
3483 msgid "Puppet registration"
3484 msgstr ""
3485
3486 #. type: =head2
3487 #: ../clone/virt-sysprep.pod:334
3488 msgid "COPYING THE BLOCK DEVICE"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:336
3493 msgid ""
3494 "Starting with an original guest, you probably wish to copy the guest block "
3495 "device and its configuration to make a template.  Then once you are happy "
3496 "with the template, you will want to make many clones from it."
3497 msgstr ""
3498
3499 #. type: verbatim
3500 #: ../clone/virt-sysprep.pod:341
3501 #, no-wrap
3502 msgid ""
3503 "                        virt-sysprep\n"
3504 "                             |\n"
3505 "                             v\n"
3506 " original guest --------> template ---------->\n"
3507 "                                      \\------> cloned\n"
3508 "                                       \\-----> guests\n"
3509 "                                        \\---->\n"
3510 "\n"
3511 msgstr ""
3512
3513 #. type: textblock
3514 #: ../clone/virt-sysprep.pod:349
3515 msgid ""
3516 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3517 "L<dd(1)>."
3518 msgstr ""
3519
3520 #. type: verbatim
3521 #: ../clone/virt-sysprep.pod:352
3522 #, no-wrap
3523 msgid ""
3524 "                   dd                 dd\n"
3525 " original guest --------> template ---------->\n"
3526 "                                      \\------> cloned\n"
3527 "                                       \\-----> guests\n"
3528 "                                        \\---->\n"
3529 "\n"
3530 msgstr ""
3531
3532 #. type: textblock
3533 #: ../clone/virt-sysprep.pod:358
3534 msgid "There are some smarter (and faster) ways too:"
3535 msgstr ""
3536
3537 #. type: verbatim
3538 #: ../clone/virt-sysprep.pod:364
3539 #, no-wrap
3540 msgid ""
3541 "                          snapshot\n"
3542 "                template ---------->\n"
3543 "                            \\------> cloned\n"
3544 "                             \\-----> guests\n"
3545 "                              \\---->\n"
3546 "\n"
3547 msgstr ""
3548
3549 #. type: textblock
3550 #: ../clone/virt-sysprep.pod:370
3551 msgid ""
3552 "Use the block device as a backing file and create a snapshot on top for each "
3553 "guest.  The advantage is that you don't need to copy the block device (very "
3554 "fast) and only changes are stored (less storage required)."
3555 msgstr ""
3556
3557 #. type: textblock
3558 #: ../clone/virt-sysprep.pod:375
3559 msgid ""
3560 "Note that writing to the backing file once you have created guests on top of "
3561 "it is not possible: you will corrupt the guests."
3562 msgstr ""
3563
3564 #. type: textblock
3565 #: ../clone/virt-sysprep.pod:378
3566 msgid ""
3567 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3568 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3569 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3570 "also create cheap snapshots from files or LUNs."
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:386
3575 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:390
3580 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3581 msgstr ""
3582
3583 #. type: =head2
3584 #: ../clone/virt-sysprep.pod:394
3585 msgid "VIRT-CLONE"
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../clone/virt-sysprep.pod:396
3590 msgid ""
3591 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3592 "and/or modify the external libvirt configuration of a guest.  It will reset "
3593 "the name, UUID and MAC address of the guest in the libvirt XML."
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../clone/virt-sysprep.pod:401
3598 msgid ""
3599 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3600 "image.  This was the original motivation to write virt-sysprep."
3601 msgstr ""
3602
3603 #. type: =head2
3604 #: ../clone/virt-sysprep.pod:404
3605 msgid "SPARSIFY"
3606 msgstr ""
3607
3608 #. type: verbatim
3609 #: ../clone/virt-sysprep.pod:406
3610 #, no-wrap
3611 msgid ""
3612 "              virt-sparsify\n"
3613 " original guest --------> template\n"
3614 "\n"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../clone/virt-sysprep.pod:409
3619 msgid ""
3620 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3621 "it easier to compress and/or faster to copy."
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../clone/virt-sysprep.pod:412
3626 msgid ""
3627 "Notice that since virt-sparsify also copies the image, you can use it to "
3628 "make the initial copy (instead of C<dd>)."
3629 msgstr ""
3630
3631 #. type: =head2
3632 #: ../clone/virt-sysprep.pod:415
3633 msgid "RESIZE"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../clone/virt-sysprep.pod:417
3638 #, no-wrap
3639 msgid ""
3640 "                         virt-resize\n"
3641 "                template ---------->\n"
3642 "                            \\------> cloned\n"
3643 "                             \\-----> guests\n"
3644 "                              \\---->\n"
3645 "\n"
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../clone/virt-sysprep.pod:423
3650 msgid ""
3651 "If you want to give people cloned guests, but let them pick the size of the "
3652 "guest themselves (eg. depending on how much they are prepared to pay for "
3653 "disk space), then instead of copying the template, you can run L<virt-resize"
3654 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3655 "guests from a template."
3656 msgstr ""
3657
3658 #. type: =head1
3659 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3660 msgid "SECURITY"
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../clone/virt-sysprep.pod:431
3665 msgid ""
3666 "Although virt-sysprep removes some sensitive information from the guest, it "
3667 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3668 "above, and the implementation of the operations in the shell script.  You "
3669 "should also examine the guest afterwards."
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../clone/virt-sysprep.pod:436
3674 msgid ""
3675 "Sensitive files are simply removed.  The data they contained may still exist "
3676 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3677 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3678 "(1)> command to get rid of deleted content in directory entries and inodes."
3679 msgstr ""
3680
3681 #. type: =head2
3682 #: ../clone/virt-sysprep.pod:442
3683 msgid "RANDOM SEED"
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../clone/virt-sysprep.pod:444
3688 msgid "I<(This section applies to Linux guests only)>"
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../clone/virt-sysprep.pod:446
3693 msgid ""
3694 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3695 "from the host into the guest's random seed file."
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../clone/virt-sysprep.pod:449
3700 msgid ""
3701 "If this is just done once and the guest is cloned from the same template, "
3702 "then each guest will start with the same entropy, and things like SSH host "
3703 "keys and TCP sequence numbers may be predictable."
3704 msgstr ""
3705
3706 #. type: textblock
3707 #: ../clone/virt-sysprep.pod:453
3708 msgid ""
3709 "Therefore you should arrange to add more randomness I<after> cloning from a "
3710 "template too, which can be done by just enabling the C<random-seed> "
3711 "operation:"
3712 msgstr ""
3713
3714 #. type: verbatim
3715 #: ../clone/virt-sysprep.pod:457
3716 #, no-wrap
3717 msgid ""
3718 " cp template.img newguest.img\n"
3719 " virt-sysprep --enable=random-seed -a newguest.img\n"
3720 "\n"
3721 msgstr ""
3722
3723 #. type: =head2
3724 #: ../clone/virt-sysprep.pod:460
3725 msgid "SELINUX RELABELLING"
3726 msgstr ""
3727
3728 #. type: textblock
3729 #: ../clone/virt-sysprep.pod:462
3730 msgid "I<(This section applies to Linux guests using SELinux only)>"
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../clone/virt-sysprep.pod:464
3735 msgid ""
3736 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3737 "autorelabel> so that these will be correctly labelled by SELinux the next "
3738 "time the guest is booted.  This process interrupts boot and can take some "
3739 "time."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../clone/virt-sysprep.pod:469
3744 msgid ""
3745 "You can force relabelling for all guests by supplying the I<--selinux-"
3746 "relabel> option."
3747 msgstr ""
3748
3749 #. type: textblock
3750 #: ../clone/virt-sysprep.pod:472
3751 msgid ""
3752 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3753 "relabel> option."
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../clone/virt-sysprep.pod:484
3758 msgid "This program returns 0 on success, or 1 if there was an error."
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../clone/virt-sysprep.pod:488
3763 msgid ""
3764 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3765 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3766 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../df/virt-df.pod:5
3771 msgid "virt-df - Display free space on virtual filesystems"
3772 msgstr ""
3773
3774 #. type: verbatim
3775 #: ../df/virt-df.pod:9
3776 #, no-wrap
3777 msgid ""
3778 " virt-df [--options]\n"
3779 "\n"
3780 msgstr ""
3781
3782 #. type: verbatim
3783 #: ../df/virt-df.pod:11
3784 #, no-wrap
3785 msgid ""
3786 " virt-df [--options] -d domname\n"
3787 "\n"
3788 msgstr ""
3789
3790 #. type: verbatim
3791 #: ../df/virt-df.pod:13
3792 #, no-wrap
3793 msgid ""
3794 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3795 "\n"
3796 msgstr ""
3797
3798 #. type: verbatim
3799 #: ../df/virt-df.pod:17
3800 #, no-wrap
3801 msgid ""
3802 " virt-df [--options] domname\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../df/virt-df.pod:19
3808 #, no-wrap
3809 msgid ""
3810 " virt-df [--options] disk.img [disk.img ...]\n"
3811 "\n"
3812 msgstr ""
3813
3814 #. type: textblock
3815 #: ../df/virt-df.pod:23
3816 msgid ""
3817 "C<virt-df> is a command line tool to display free space on virtual machine "
3818 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3819 "allocated to a virtual machine, but can look inside disk images to see how "
3820 "much space is really being used."
3821 msgstr ""
3822
3823 #. type: textblock
3824 #: ../df/virt-df.pod:28
3825 msgid ""
3826 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3827 "to get a list of all active and inactive guests, and performs a C<df>-type "
3828 "operation on each one in turn, printing out the results."
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../df/virt-df.pod:32
3833 msgid ""
3834 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3835 "type operation on either the single named libvirt domain, or on the disk "
3836 "image(s) listed on the command line (which must all belong to a single VM).  "
3837 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3838 "guest>.  If you want to run on multiple guests, then you have to invoke "
3839 "C<virt-df> multiple times."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../df/virt-df.pod:39
3844 msgid ""
3845 "Use the I<--csv> option to get a format which can be easily parsed by other "
3846 "programs.  Other options are similar to the standard L<df(1)> command."
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../df/virt-df.pod:45
3851 msgid ""
3852 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3853 "output human-readable:"
3854 msgstr ""
3855
3856 #. type: verbatim
3857 #: ../df/virt-df.pod:48
3858 #, no-wrap
3859 msgid ""
3860 " # virt-df -d F14x64 -h\n"
3861 " Filesystem                       Size     Used  Available  Use%\n"
3862 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3863 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3864 "\n"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../df/virt-df.pod:53
3869 msgid "Show disk usage for a disk image file called C<test.img>:"
3870 msgstr ""
3871
3872 #. type: verbatim
3873 #: ../df/virt-df.pod:55
3874 #, no-wrap
3875 msgid ""
3876 " $ virt-df -a test1.img\n"
3877 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3878 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3879 "\n"
3880 msgstr ""
3881
3882 #. type: verbatim
3883 #: ../df/virt-df.pod:112
3884 #, no-wrap
3885 msgid ""
3886 " virt-df --format=raw -a disk.img\n"
3887 "\n"
3888 msgstr ""
3889
3890 #. type: verbatim
3891 #: ../df/virt-df.pod:116
3892 #, no-wrap
3893 msgid ""
3894 " virt-df --format=raw -a disk.img --format -a another.img\n"
3895 "\n"
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../df/virt-df.pod:129
3900 msgid "Print sizes in human-readable format."
3901 msgstr ""
3902
3903 #. type: textblock
3904 #: ../df/virt-df.pod:131
3905 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3906 msgstr ""
3907
3908 #. type: =item
3909 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3910 msgid "B<-i>"
3911 msgstr ""
3912
3913 #. type: =item
3914 #: ../df/virt-df.pod:135
3915 msgid "B<--inodes>"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../df/virt-df.pod:137
3920 msgid "Print inodes instead of blocks."
3921 msgstr ""
3922
3923 #. type: =item
3924 #: ../df/virt-df.pod:139
3925 msgid "B<--one-per-guest>"
3926 msgstr ""
3927
3928 #. type: textblock
3929 #: ../df/virt-df.pod:141
3930 msgid ""
3931 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3932 "disks from several guests to a single libguestfs appliance."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../df/virt-df.pod:144
3937 msgid "You might use this option in the following circumstances:"
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../df/virt-df.pod:150
3942 msgid ""
3943 "If you think an untrusted guest might actively try to exploit the libguestfs "
3944 "appliance kernel, then this prevents one guest from interfering with the "
3945 "stats printed for another guest."
3946 msgstr ""
3947
3948 #. type: textblock
3949 #: ../df/virt-df.pod:156
3950 msgid ""
3951 "If the kernel has a bug which stops it from accessing a filesystem in one "
3952 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3953 "and report stats for further guests."
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../df/virt-df.pod:165
3958 msgid ""
3959 "Print UUIDs instead of names.  This is useful for following a guest even "
3960 "when the guest is migrated or renamed, or when two guests happen to have the "
3961 "same name."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:169
3966 msgid ""
3967 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3968 "images, we still print the disk image name even when this option is "
3969 "specified."
3970 msgstr ""
3971
3972 #. type: textblock
3973 #: ../df/virt-df.pod:229
3974 msgid ""
3975 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3976 "libguestfs.org/>."
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../edit/virt-edit.pod:5
3981 msgid "virt-edit - Edit a file in a virtual machine"
3982 msgstr ""
3983
3984 #. type: verbatim
3985 #: ../edit/virt-edit.pod:9
3986 #, no-wrap
3987 msgid ""
3988 " virt-edit [--options] -d domname file [file ...]\n"
3989 "\n"
3990 msgstr ""
3991
3992 #. type: verbatim
3993 #: ../edit/virt-edit.pod:11
3994 #, no-wrap
3995 msgid ""
3996 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3997 "\n"
3998 msgstr ""
3999
4000 #. type: verbatim
4001 #: ../edit/virt-edit.pod:13
4002 #, no-wrap
4003 msgid ""
4004 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4005 "\n"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../edit/virt-edit.pod:17
4010 #, no-wrap
4011 msgid ""
4012 " virt-edit domname file\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4018 #, no-wrap
4019 msgid ""
4020 " virt-edit disk.img [disk.img ...] file\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: =head1
4025 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4026 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4027 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4028 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4029 msgid "WARNING"
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../edit/virt-edit.pod:23
4034 msgid ""
4035 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4036 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4037 "doing this, but doesn't catch all cases."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:29
4042 msgid ""
4043 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4044 "exists in the named virtual machine (or disk image)."
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../edit/virt-edit.pod:32
4049 msgid ""
4050 "Multiple filenames can be given, in which case they are each edited in "
4051 "turn.  Each filename must be a full path, starting at the root directory "
4052 "(starting with '/')."
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:36
4057 msgid "If you want to just view a file, use L<virt-cat(1)>."
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../edit/virt-edit.pod:38
4062 msgid ""
4063 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4064 "USING GUESTFISH> below)."
4065 msgstr ""
4066
4067 #. type: textblock
4068 #: ../edit/virt-edit.pod:41
4069 msgid ""
4070 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4071 "that and much more."
4072 msgstr ""
4073
4074 #. type: textblock
4075 #: ../edit/virt-edit.pod:46
4076 msgid "Edit the named files interactively:"
4077 msgstr ""
4078
4079 #. type: verbatim
4080 #: ../edit/virt-edit.pod:48
4081 #, no-wrap
4082 msgid ""
4083 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4084 "\n"
4085 msgstr ""
4086
4087 #. type: verbatim
4088 #: ../edit/virt-edit.pod:50
4089 #, no-wrap
4090 msgid ""
4091 " virt-edit -d mydomain /etc/passwd\n"
4092 "\n"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../edit/virt-edit.pod:52
4097 msgid "For Windows guests, some Windows paths are understood:"
4098 msgstr ""
4099
4100 #. type: verbatim
4101 #: ../edit/virt-edit.pod:54
4102 #, no-wrap
4103 msgid ""
4104 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4105 "\n"
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../edit/virt-edit.pod:56
4110 msgid ""
4111 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4112 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4113 msgstr ""
4114
4115 #. type: verbatim
4116 #: ../edit/virt-edit.pod:60
4117 #, no-wrap
4118 msgid ""
4119 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4120 "\n"
4121 msgstr ""
4122
4123 #. type: =item
4124 #: ../edit/virt-edit.pod:81
4125 msgid "B<-b> extension"
4126 msgstr ""
4127
4128 #. type: =item
4129 #: ../edit/virt-edit.pod:83
4130 msgid "B<--backup> extension"
4131 msgstr ""
4132
4133 #. type: textblock
4134 #: ../edit/virt-edit.pod:85
4135 msgid ""
4136 "Create a backup of the original file I<in the guest disk image>.  The backup "
4137 "has the original filename with C<extension> added."
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../edit/virt-edit.pod:88
4142 msgid ""
4143 "Usually the first character of C<extension> would be a dot C<.> so you would "
4144 "write:"
4145 msgstr ""
4146
4147 #. type: verbatim
4148 #: ../edit/virt-edit.pod:91
4149 #, no-wrap
4150 msgid ""
4151 " virt-edit -b .orig [etc]\n"
4152 "\n"
4153 msgstr ""
4154
4155 #. type: textblock
4156 #: ../edit/virt-edit.pod:93
4157 msgid "By default, no backup file is made."
4158 msgstr ""
4159
4160 #. type: =item
4161 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4162 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4163 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4164 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4165 msgid "B<-c URI>"
4166 msgstr ""
4167
4168 #. type: =item
4169 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4170 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4171 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4172 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4173 msgid "B<--connect URI>"
4174 msgstr ""
4175
4176 #. type: textblock
4177 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4178 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4179 #: ../tools/virt-win-reg.pl:135
4180 msgid ""
4181 "If you specify guest block devices directly, then libvirt is not used at all."
4182 msgstr ""
4183
4184 #. type: textblock
4185 #: ../edit/virt-edit.pod:114
4186 msgid ""
4187 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4188 "off so you cannot see what you are typing.  If you are not worried about "
4189 "Tempest attacks and there is no one else in the room you can specify this "
4190 "flag to see what you are typing."
4191 msgstr ""
4192
4193 #. type: =item
4194 #: ../edit/virt-edit.pod:119
4195 msgid "B<-e> EXPR"
4196 msgstr ""
4197
4198 #. type: =item
4199 #: ../edit/virt-edit.pod:121
4200 msgid "B<--expr> EXPR"
4201 msgstr ""
4202
4203 #. type: textblock
4204 #: ../edit/virt-edit.pod:123
4205 msgid ""
4206 "Instead of launching the external editor, non-interactively apply the Perl "
4207 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4208 "EDITING> below."
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../edit/virt-edit.pod:127
4213 msgid ""
4214 "Be careful to properly quote the expression to prevent it from being altered "
4215 "by the shell."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../edit/virt-edit.pod:130
4220 msgid "Note that this option is only available when Perl 5 is installed."
4221 msgstr ""
4222
4223 #. type: =item
4224 #: ../edit/virt-edit.pod:132
4225 msgid "B<--format> raw|qcow2|..."
4226 msgstr ""
4227
4228 #. type: verbatim
4229 #: ../edit/virt-edit.pod:143
4230 #, no-wrap
4231 msgid ""
4232 " virt-edit --format=raw -a disk.img file\n"
4233 "\n"
4234 msgstr ""
4235
4236 #. type: verbatim
4237 #: ../edit/virt-edit.pod:147
4238 #, no-wrap
4239 msgid ""
4240 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4241 "\n"
4242 msgstr ""
4243
4244 #. type: textblock
4245 #: ../edit/virt-edit.pod:181
4246 msgid "Previous versions of virt-edit allowed you to write either:"
4247 msgstr ""
4248
4249 #. type: verbatim
4250 #: ../edit/virt-edit.pod:187
4251 #, no-wrap
4252 msgid ""
4253 " virt-edit guestname file\n"
4254 "\n"
4255 msgstr ""
4256
4257 #. type: =head1
4258 #: ../edit/virt-edit.pod:195
4259 msgid "NON-INTERACTIVE EDITING"
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../edit/virt-edit.pod:197
4264 msgid ""
4265 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4266 "administrator can interactively edit the file."
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../edit/virt-edit.pod:200
4271 msgid ""
4272 "There are two ways also to use C<virt-edit> from scripts in order to make "
4273 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4274 "like this, it's less error-prone to write scripts directly using the "
4275 "libguestfs API and Augeas for configuration file editing.)"
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../edit/virt-edit.pod:206
4280 msgid ""
4281 "The first method is to temporarily set C<$EDITOR> to any script or program "
4282 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4283 "update C<tmpfile> in place however it likes."
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../edit/virt-edit.pod:210
4288 msgid ""
4289 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4290 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4291 "instances of C<foo> with C<bar> in a file:"
4292 msgstr ""
4293
4294 #. type: verbatim
4295 #: ../edit/virt-edit.pod:214
4296 #, no-wrap
4297 msgid ""
4298 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4299 "\n"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:216
4304 msgid ""
4305 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4306 "For example to delete root's password you could do:"
4307 msgstr ""
4308
4309 #. type: verbatim
4310 #: ../edit/virt-edit.pod:219
4311 #, no-wrap
4312 msgid ""
4313 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4314 "\n"
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../edit/virt-edit.pod:221
4319 msgid ""
4320 "What really happens is that the snippet is evaluated as a Perl expression "
4321 "for each line of the file.  The line, including the final C<\\n>, is passed "
4322 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../edit/virt-edit.pod:226
4327 msgid ""
4328 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4329 "C<apache> user account from the password file you can do:"
4330 msgstr ""
4331
4332 #. type: verbatim
4333 #: ../edit/virt-edit.pod:229
4334 #, no-wrap
4335 msgid ""
4336 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4337 "\n"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../edit/virt-edit.pod:231
4342 msgid ""
4343 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4344 "the end of the file is rather difficult this way since there is no concept "
4345 "of \"last line of the file\" - your expression just doesn't get called "
4346 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4347 "want to do this."
4348 msgstr ""
4349
4350 #. type: textblock
4351 #: ../edit/virt-edit.pod:237
4352 msgid ""
4353 "The variable C<$lineno> contains the current line number.  As is "
4354 "traditional, the first line in the file is number C<1>."
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../edit/virt-edit.pod:240
4359 msgid ""
4360 "The return value from the expression is ignored, but the expression may call "
4361 "C<die> in order to abort the whole program, leaving the original file "
4362 "untouched."
4363 msgstr ""
4364
4365 #. type: textblock
4366 #: ../edit/virt-edit.pod:244
4367 msgid ""
4368 "Remember when matching the end of a line that C<$_> may contain the final C<"
4369 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4370 "newline then neither of these.  Thus to match or substitute some text at the "
4371 "end of a line, use this regular expression:"
4372 msgstr ""
4373
4374 #. type: verbatim
4375 #: ../edit/virt-edit.pod:249
4376 #, no-wrap
4377 msgid ""
4378 " /some text(\\r?\\n)?$/\n"
4379 "\n"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../edit/virt-edit.pod:251
4384 msgid ""
4385 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4386 "$_> itself (since that would remove all newlines from the file):"
4387 msgstr ""
4388
4389 #. type: verbatim
4390 #: ../edit/virt-edit.pod:255
4391 #, no-wrap
4392 msgid ""
4393 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4394 "\n"
4395 msgstr ""
4396
4397 #. type: textblock
4398 #: ../edit/virt-edit.pod:259
4399 msgid ""
4400 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4401 "paths (eg. C<E:\\foo\\bar.txt>)."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:278
4406 msgid ""
4407 "The path is resolved case insensitively to locate the file that should be "
4408 "edited."
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../edit/virt-edit.pod:299
4413 msgid ""
4414 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4415 "C<virt-edit> doesn't work."
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../edit/virt-edit.pod:302
4420 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4421 msgstr ""
4422
4423 #. type: verbatim
4424 #: ../edit/virt-edit.pod:304
4425 #, no-wrap
4426 msgid ""
4427 " guestfish --rw -i -d domname edit /file\n"
4428 "\n"
4429 msgstr ""
4430
4431 #. type: textblock
4432 #: ../edit/virt-edit.pod:306
4433 msgid ""
4434 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4435 "path to the file."
4436 msgstr ""
4437
4438 #. type: textblock
4439 #: ../edit/virt-edit.pod:309
4440 msgid ""
4441 "The command above uses libguestfs's guest inspection feature and so does not "
4442 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4443 "disk images that don't contain guests.  To edit a file on a disk image "
4444 "directly, use:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../edit/virt-edit.pod:314
4449 #, no-wrap
4450 msgid ""
4451 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4452 "\n"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:316
4457 msgid ""
4458 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4459 "the disk image to edit, and C</file> is the full path to the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:320
4464 msgid ""
4465 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4466 "C<write> or C<upload> instead:"
4467 msgstr ""
4468
4469 #. type: verbatim
4470 #: ../edit/virt-edit.pod:323
4471 #, no-wrap
4472 msgid ""
4473 " guestfish --rw -i -d domname touch /newfile\n"
4474 "\n"
4475 msgstr ""
4476
4477 #. type: verbatim
4478 #: ../edit/virt-edit.pod:325
4479 #, no-wrap
4480 msgid ""
4481 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4482 "\n"
4483 msgstr ""
4484
4485 #. type: verbatim
4486 #: ../edit/virt-edit.pod:327
4487 #, no-wrap
4488 msgid ""
4489 " guestfish --rw -i -d domname upload localfile /newfile\n"
4490 "\n"
4491 msgstr ""
4492
4493 #. type: =head1
4494 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4495 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4496 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4497 msgid "ENVIRONMENT VARIABLES"
4498 msgstr ""
4499
4500 #. type: =item
4501 #: ../edit/virt-edit.pod:333
4502 msgid "C<EDITOR>"
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../edit/virt-edit.pod:335
4507 msgid ""
4508 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4509 "\"emacs -nw\">"
4510 msgstr ""
4511
4512 #. type: textblock
4513 #: ../edit/virt-edit.pod:338
4514 msgid "If not set, C<vi> is used."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../edit/virt-edit.pod:356
4519 msgid ""
4520 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4521 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4522 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4523 msgstr ""
4524
4525 #. type: textblock
4526 #: ../erlang/examples/guestfs-erlang.pod:5
4527 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4528 msgstr ""
4529
4530 #. type: verbatim
4531 #: ../erlang/examples/guestfs-erlang.pod:9
4532 #, no-wrap
4533 msgid ""
4534 " {ok, G} = guestfs:create(),\n"
4535 " ok = guestfs:add_drive_opts(G, Disk,\n"
4536 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4537 " ok = guestfs:launch(G),\n"
4538 " [Device] = guestfs:list_devices(G),\n"
4539 " ok = guestfs:close(G).\n"
4540 "\n"
4541 msgstr ""
4542
4543 #. type: textblock
4544 #: ../erlang/examples/guestfs-erlang.pod:18
4545 msgid ""
4546 "This manual page documents how to call libguestfs from the Erlang "
4547 "programming language.  This page just documents the differences from the C "
4548 "API and gives some examples.  If you are not familiar with using libguestfs, "
4549 "you also need to read L<guestfs(3)>."
4550 msgstr ""
4551
4552 #. type: =head2
4553 #: ../erlang/examples/guestfs-erlang.pod:23
4554 msgid "OPENING AND CLOSING THE HANDLE"
4555 msgstr ""
4556
4557 #. type: textblock
4558 #: ../erlang/examples/guestfs-erlang.pod:25
4559 msgid ""
4560 "The Erlang bindings are implemented using an external program called C<erl-"
4561 "guestfs>.  This program must be on the current PATH, or else you should "
4562 "specify the full path to the program:"
4563 msgstr ""
4564
4565 #. type: verbatim
4566 #: ../erlang/examples/guestfs-erlang.pod:29
4567 #, no-wrap
4568 msgid ""
4569 " {ok, G} = guestfs:create().\n"
4570 "\n"
4571 msgstr ""
4572
4573 #. type: verbatim
4574 #: ../erlang/examples/guestfs-erlang.pod:31
4575 #, no-wrap
4576 msgid ""
4577 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4578 "\n"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../erlang/examples/guestfs-erlang.pod:33
4583 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../erlang/examples/guestfs-erlang.pod:36
4588 msgid "To close the handle:"
4589 msgstr ""
4590
4591 #. type: verbatim
4592 #: ../erlang/examples/guestfs-erlang.pod:38
4593 #, no-wrap
4594 msgid ""
4595 " ok = guestfs:close(G).\n"
4596 "\n"
4597 msgstr ""
4598
4599 #. type: =head2
4600 #: ../erlang/examples/guestfs-erlang.pod:40
4601 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4602 msgstr ""
4603
4604 #. type: textblock
4605 #: ../erlang/examples/guestfs-erlang.pod:42
4606 msgid ""
4607 "For functions that take optional arguments, the first arguments are the non-"
4608 "optional ones.  The last argument is a list of tuples supplying the "
4609 "remaining optional arguments."
4610 msgstr ""
4611
4612 #. type: verbatim
4613 #: ../erlang/examples/guestfs-erlang.pod:46
4614 #, no-wrap
4615 msgid ""
4616 " ok = guestfs:add_drive_opts(G, Disk,\n"
4617 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4618 "\n"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../erlang/examples/guestfs-erlang.pod:49
4623 msgid "If the last argument would be an empty list, you can also omit it:"
4624 msgstr ""
4625
4626 #. type: verbatim
4627 #: ../erlang/examples/guestfs-erlang.pod:51
4628 #, no-wrap
4629 msgid ""
4630 " ok = guestfs:add_drive_opts(G, Disk).\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../erlang/examples/guestfs-erlang.pod:53
4636 msgid "RETURN VALUES AND ERRORS"
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../erlang/examples/guestfs-erlang.pod:55
4641 msgid ""
4642 "On success, most functions return a C<Result> term (which could be a list, "
4643 "string, tuple etc.).  If there is nothing for the function to return, then "
4644 "the atom C<ok> is returned."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../erlang/examples/guestfs-erlang.pod:59
4649 msgid "On error, you would see one of the following tuples:"
4650 msgstr ""
4651
4652 #. type: =item
4653 #: ../erlang/examples/guestfs-erlang.pod:63
4654 msgid "C<{error, Msg, Errno}>"
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../erlang/examples/guestfs-erlang.pod:65
4659 msgid "This indicates an ordinary error from the function."
4660 msgstr ""
4661
4662 #. type: textblock
4663 #: ../erlang/examples/guestfs-erlang.pod:67
4664 msgid ""
4665 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4666 "(integer)."
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../erlang/examples/guestfs-erlang.pod:70
4671 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4672 msgstr ""
4673
4674 #. type: =item
4675 #: ../erlang/examples/guestfs-erlang.pod:72
4676 msgid "C<{unknown, Function}>"
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../erlang/examples/guestfs-erlang.pod:74
4681 msgid ""
4682 "This indicates that the function you called is not known.  Generally this "
4683 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4684 "which you should not do."
4685 msgstr ""
4686
4687 #. type: textblock
4688 #: ../erlang/examples/guestfs-erlang.pod:78
4689 msgid "C<Function> is the name of the unknown function."
4690 msgstr ""
4691
4692 #. type: =item
4693 #: ../erlang/examples/guestfs-erlang.pod:80
4694 msgid "C<{unknownarg, Arg}>"
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../erlang/examples/guestfs-erlang.pod:82
4699 msgid ""
4700 "This indicates that you called a function with optional arguments, with an "
4701 "unknown argument name."
4702 msgstr ""
4703
4704 #. type: textblock
4705 #: ../erlang/examples/guestfs-erlang.pod:85
4706 msgid "C<Arg> is the name of the unknown argument."
4707 msgstr ""
4708
4709 #. type: =head1
4710 #: ../erlang/examples/guestfs-erlang.pod:89
4711 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4712 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4713 #: ../python/examples/guestfs-python.pod:34
4714 #: ../ruby/examples/guestfs-ruby.pod:28
4715 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../erlang/examples/guestfs-erlang.pod:91
4720 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4721 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4722 #: ../python/examples/guestfs-python.pod:36
4723 #: ../ruby/examples/guestfs-ruby.pod:30
4724 msgid "@EXAMPLE1@"
4725 msgstr ""
4726
4727 #. type: =head1
4728 #: ../erlang/examples/guestfs-erlang.pod:93
4729 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4730 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4731 #: ../python/examples/guestfs-python.pod:38
4732 #: ../ruby/examples/guestfs-ruby.pod:32
4733 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../erlang/examples/guestfs-erlang.pod:95
4738 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4739 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4740 #: ../python/examples/guestfs-python.pod:40
4741 #: ../ruby/examples/guestfs-ruby.pod:34
4742 msgid "@EXAMPLE2@"
4743 msgstr ""
4744
4745 #. type: textblock
4746 #: ../erlang/examples/guestfs-erlang.pod:99
4747 msgid ""
4748 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4749 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4750 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4751 msgstr ""
4752
4753 #. type: =head1
4754 #: ../erlang/examples/guestfs-erlang.pod:110
4755 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4756 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4757 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4758 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4759 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4760 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4761 #: ../python/examples/guestfs-python.pod:54
4762 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4763 #: ../test-tool/libguestfs-test-tool.pod:106
4764 msgid "AUTHORS"
4765 msgstr ""
4766
4767 #. type: textblock
4768 #: ../erlang/examples/guestfs-erlang.pod:112
4769 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4770 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4771 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4772 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4773 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4774 #: ../perl/examples/guestfs-perl.pod:54
4775 #: ../python/examples/guestfs-python.pod:56
4776 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4777 #: ../test-tool/libguestfs-test-tool.pod:108
4778 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../erlang/examples/guestfs-erlang.pod:116
4783 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4784 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../erlang/examples/guestfs-erlang.pod:118
4789 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4790 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4791 #: ../perl/examples/guestfs-perl.pod:60
4792 #: ../python/examples/guestfs-python.pod:62
4793 #: ../ruby/examples/guestfs-ruby.pod:56
4794 msgid ""
4795 "The examples in this manual page may be freely copied, modified and "
4796 "distributed without any restrictions."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../erlang/examples/guestfs-erlang.pod:121
4801 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4802 #: ../java/examples/guestfs-java.pod:69
4803 #: ../ocaml/examples/guestfs-ocaml.pod:102
4804 #: ../perl/examples/guestfs-perl.pod:63
4805 #: ../python/examples/guestfs-python.pod:65
4806 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4807 msgid ""
4808 "This library is free software; you can redistribute it and/or modify it "
4809 "under the terms of the GNU Lesser General Public License as published by the "
4810 "Free Software Foundation; either version 2 of the License, or (at your "
4811 "option) any later version."
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../erlang/examples/guestfs-erlang.pod:126
4816 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4817 #: ../java/examples/guestfs-java.pod:74
4818 #: ../ocaml/examples/guestfs-ocaml.pod:107
4819 #: ../perl/examples/guestfs-perl.pod:68
4820 #: ../python/examples/guestfs-python.pod:70
4821 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4822 msgid ""
4823 "This library is distributed in the hope that it will be useful, but WITHOUT "
4824 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4825 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4826 "for more details."
4827 msgstr ""
4828
4829 #. type: textblock
4830 #: ../erlang/examples/guestfs-erlang.pod:131
4831 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4832 #: ../java/examples/guestfs-java.pod:79
4833 #: ../ocaml/examples/guestfs-ocaml.pod:112
4834 #: ../perl/examples/guestfs-perl.pod:73
4835 #: ../python/examples/guestfs-python.pod:75
4836 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4837 msgid ""
4838 "You should have received a copy of the GNU Lesser General Public License "
4839 "along with this library; if not, write to the Free Software Foundation, "
4840 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../examples/guestfs-examples.pod:5
4845 msgid "guestfs-examples - Examples of using libguestfs from C"
4846 msgstr ""
4847
4848 #. type: verbatim
4849 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4850 #, no-wrap
4851 msgid ""
4852 " #include <guestfs.h>\n"
4853 " \n"
4854 msgstr "#include <guestfs.h>\n"
4855
4856 #. type: verbatim
4857 #: ../examples/guestfs-examples.pod:11
4858 #, no-wrap
4859 msgid ""
4860 " guestfs_h *g = guestfs_create ();\n"
4861 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4862 " guestfs_launch (g);\n"
4863 "\n"
4864 msgstr ""
4865
4866 #. type: verbatim
4867 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4868 #, no-wrap
4869 msgid ""
4870 " cc prog.c -o prog -lguestfs\n"
4871 "or:\n"
4872 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4873 "\n"
4874 msgstr ""
4875 " cc prog.c -o prog -lguestfs\n"
4876 "or:\n"
4877 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4878 "\n"
4879
4880 #. type: textblock
4881 #: ../examples/guestfs-examples.pod:21
4882 msgid ""
4883 "This manual page contains examples of calling libguestfs from the C "
4884 "programming language.  If you are not familiar with using libguestfs, you "
4885 "also need to read L<guestfs(3)>."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../examples/guestfs-examples.pod:35
4890 msgid ""
4891 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4892 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4893 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4898 #: ../python/examples/guestfs-python.pod:60
4899 #: ../ruby/examples/guestfs-ruby.pod:54
4900 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4901 msgstr ""
4902
4903 #. type: =end
4904 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4905 msgid "comment"
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../examples/guestfs-recipes.pod:5
4910 msgid ""
4911 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4912 "here.  The only way which works for both sorts of output is to just write "
4913 "the URL directly.  Do NOT use L<...> for URLs."
4914 msgstr ""
4915
4916 #. type: textblock
4917 #: ../examples/guestfs-recipes.pod:9
4918 msgid ""
4919 "We break with tradition here and don't use ALL CAPS for the section "
4920 "headings, as this makes them much easier to read."
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-recipes.pod:16
4925 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4926 msgstr ""
4927
4928 #. type: textblock
4929 #: ../examples/guestfs-recipes.pod:20
4930 msgid ""
4931 "This page contains recipes for and links to things you can do using "
4932 "libguestfs, L<guestfish(1)> and the virt tools."
4933 msgstr ""
4934
4935 #. type: =head1
4936 #: ../examples/guestfs-recipes.pod:23
4937 msgid "Audit a virtual machine for setuid files"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../examples/guestfs-recipes.pod:25
4942 msgid ""
4943 "The link below contains a small program which can be used to audit a Linux "
4944 "virtual machine to see what setuid and setgid files it contains."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../examples/guestfs-recipes.pod:28
4949 msgid ""
4950 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4951 "files/#content"
4952 msgstr ""
4953
4954 #. type: =head1
4955 #: ../examples/guestfs-recipes.pod:30
4956 msgid "Change the background image in a Windows XP VM"
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../examples/guestfs-recipes.pod:32
4961 msgid ""
4962 "The links below explain how to use L<guestfish(1)> to change the background "
4963 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4964 "be substantially different for each version of Windows."
4965 msgstr ""
4966
4967 #. type: textblock
4968 #: ../examples/guestfs-recipes.pod:37
4969 msgid ""
4970 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4971 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4972 msgstr ""
4973
4974 #. type: =head1
4975 #: ../examples/guestfs-recipes.pod:40
4976 msgid "Cloning a virtual machine (Linux)"
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../examples/guestfs-recipes.pod:42
4981 msgid ""
4982 "The guestfish technique described in the link below works well for most "
4983 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4984 "slightly."
4985 msgstr ""
4986
4987 #. type: textblock
4988 #: ../examples/guestfs-recipes.pod:46
4989 msgid ""
4990 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4991 "vm/#content"
4992 msgstr ""
4993
4994 #. type: textblock
4995 #: ../examples/guestfs-recipes.pod:48
4996 msgid ""
4997 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4998 "discussion."
4999 msgstr ""
5000
5001 #. type: textblock
5002 #: ../examples/guestfs-recipes.pod:51
5003 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5004 msgstr ""
5005
5006 #. type: =head1
5007 #: ../examples/guestfs-recipes.pod:53
5008 msgid "Cloning a virtual machine (Windows)"
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../examples/guestfs-recipes.pod:55
5013 msgid ""
5014 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5015 "straightforward.  Currently there is code in the Aeolus Oz project which "
5016 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5017 "we may add sysprepping ability."
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../examples/guestfs-recipes.pod:60
5022 msgid ""
5023 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5024 "list/2011-May/msg00019.html"
5025 msgstr ""
5026
5027 #. type: =head1
5028 #: ../examples/guestfs-recipes.pod:63
5029 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5030 msgstr ""
5031
5032 #. type: textblock
5033 #: ../examples/guestfs-recipes.pod:65
5034 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5035 msgstr ""
5036
5037 #. type: verbatim
5038 #: ../examples/guestfs-recipes.pod:67
5039 #, no-wrap
5040 msgid ""
5041 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5042 "\n"
5043 msgstr ""
5044
5045 #. type: textblock
5046 #: ../examples/guestfs-recipes.pod:69
5047 msgid "To export just a subdirectory, eg. C</files>, do:"
5048 msgstr ""
5049
5050 #. type: verbatim
5051 #: ../examples/guestfs-recipes.pod:71
5052 #, no-wrap
5053 msgid ""
5054 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5055 "\n"
5056 msgstr ""
5057
5058 #. type: =head1
5059 #: ../examples/guestfs-recipes.pod:73
5060 msgid "Create empty disk images"
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../examples/guestfs-recipes.pod:75
5065 msgid ""
5066 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5067 "The useful guide below explains the options available."
5068 msgstr ""
5069
5070 #. type: textblock
5071 #: ../examples/guestfs-recipes.pod:78
5072 msgid ""
5073 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5074 "#content"
5075 msgstr ""
5076
5077 #. type: =head1
5078 #: ../examples/guestfs-recipes.pod:80
5079 msgid "Dump raw filesystem content from inside a disk image or VM"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../examples/guestfs-recipes.pod:82
5084 msgid ""
5085 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5086 "filesystem content from any filesystem in a disk image or a VM (even one "
5087 "which is encrypted or buried inside an LV):"
5088 msgstr ""
5089
5090 #. type: verbatim
5091 #: ../examples/guestfs-recipes.pod:86
5092 #, no-wrap
5093 msgid ""
5094 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5095 "\n"
5096 msgstr ""
5097
5098 #. type: verbatim
5099 #: ../examples/guestfs-recipes.pod:88
5100 #, no-wrap
5101 msgid ""
5102 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5103 "\n"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:90
5108 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5109 msgstr ""
5110
5111 #. type: =head1
5112 #: ../examples/guestfs-recipes.pod:92
5113 msgid "Edit grub configuration in a VM"
5114 msgstr ""
5115
5116 #. type: textblock
5117 #: ../examples/guestfs-recipes.pod:94
5118 msgid "You can use this to:"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../examples/guestfs-recipes.pod:100
5123 msgid "Fix a virtual machine that does not boot."
5124 msgstr ""
5125
5126 #. type: textblock
5127 #: ../examples/guestfs-recipes.pod:104
5128 msgid "Change which kernel is used to boot the VM."
5129 msgstr ""
5130
5131 #. type: textblock
5132 #: ../examples/guestfs-recipes.pod:108
5133 msgid "Change kernel command line options."
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../examples/guestfs-recipes.pod:112
5138 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../examples/guestfs-recipes.pod:114
5143 #, no-wrap
5144 msgid ""
5145 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../examples/guestfs-recipes.pod:116
5151 msgid ""
5152 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5153 "this:"
5154 msgstr ""
5155
5156 #. type: verbatim
5157 #: ../examples/guestfs-recipes.pod:119
5158 #, no-wrap
5159 msgid ""
5160 " virt-rescue -d BrokenGuest\n"
5161 "\n"
5162 msgstr ""
5163
5164 #. type: =head1
5165 #: ../examples/guestfs-recipes.pod:121
5166 msgid "Export any directory from a VM"
5167 msgstr ""
5168
5169 #. type: textblock
5170 #: ../examples/guestfs-recipes.pod:123
5171 msgid ""
5172 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5173 msgstr ""
5174
5175 #. type: verbatim
5176 #: ../examples/guestfs-recipes.pod:126
5177 #, no-wrap
5178 msgid ""
5179 " virt-copy-out -d Guest /home .\n"
5180 "\n"
5181 msgstr ""
5182
5183 #. type: textblock
5184 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5185 #: ../fish/guestfish-actions.pod:1404 ../fish/guestfish-actions.pod:1669
5186 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:18
5187 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2703
5188 #: ../src/guestfs-actions.pod:3262 ../src/guestfs.pod:1685
5189 #: ../tools/virt-win-reg.pl:717
5190 msgid "Notes:"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../examples/guestfs-recipes.pod:134
5195 msgid ""
5196 "The final dot of the command is not a printing error.  It means we want to "
5197 "copy out to the current directory."
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../examples/guestfs-recipes.pod:139
5202 msgid "This creates a directory called C<home> under the current directory."
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../examples/guestfs-recipes.pod:143
5207 msgid ""
5208 "If the guest is a Windows guest then you can use drive letters and "
5209 "backslashes, but you must prefix the path with C<win:> and quote it to "
5210 "protect it from the shell, like this:"
5211 msgstr ""
5212
5213 #. type: verbatim
5214 #: ../examples/guestfs-recipes.pod:147
5215 #, no-wrap
5216 msgid ""
5217 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5218 "\n"
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../examples/guestfs-recipes.pod:149
5223 msgid "To get the output as a compressed tarball, do:"
5224 msgstr ""
5225
5226 #. type: verbatim
5227 #: ../examples/guestfs-recipes.pod:151
5228 #, no-wrap
5229 msgid ""
5230 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5231 "\n"
5232 msgstr ""
5233
5234 #. type: textblock
5235 #: ../examples/guestfs-recipes.pod:153
5236 msgid ""
5237 "Although it sounds tempting, this is usually not a reliable way to get a "
5238 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5239 "org/FAQ.html#backup"
5240 msgstr ""
5241
5242 #. type: =head1
5243 #: ../examples/guestfs-recipes.pod:157
5244 msgid "Find out which user is using the most space"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:159
5249 msgid ""
5250 "This simple script examines a Linux guest to find out which user is using "
5251 "the most space in their home directory:"
5252 msgstr ""
5253
5254 #. type: verbatim
5255 #: ../examples/guestfs-recipes.pod:162
5256 #, no-wrap
5257 msgid ""
5258 " #!/bin/sh -\n"
5259 " \n"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5264 #, no-wrap
5265 msgid ""
5266 " set -e\n"
5267 " \n"
5268 msgstr ""
5269
5270 #. type: verbatim
5271 #: ../examples/guestfs-recipes.pod:166
5272 #, no-wrap
5273 msgid ""
5274 " vm=\"$1\"\n"
5275 " dir=/home\n"
5276 " \n"
5277 msgstr ""
5278
5279 #. type: verbatim
5280 #: ../examples/guestfs-recipes.pod:169
5281 #, no-wrap
5282 msgid ""
5283 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5284 " \n"
5285 msgstr ""
5286
5287 #. type: verbatim
5288 #: ../examples/guestfs-recipes.pod:171
5289 #, no-wrap
5290 msgid ""
5291 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5292 "     echo -n \"$dir/$d\"\n"
5293 "     echo -ne '\\t'\n"
5294 "     guestfish --remote du \"$dir/$d\";\n"
5295 " done | sort -nr -k 2\n"
5296 " \n"
5297 msgstr ""
5298
5299 #. type: verbatim
5300 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5301 #, no-wrap
5302 msgid ""
5303 " guestfish --remote exit\n"
5304 "\n"
5305 msgstr ""
5306
5307 #. type: =head1
5308 #: ../examples/guestfs-recipes.pod:179
5309 msgid "Get DHCP address from a VM"
5310 msgstr ""
5311
5312 #. type: textblock
5313 #: ../examples/guestfs-recipes.pod:181
5314 msgid ""
5315 "The link below explains the many different possible techniques for getting "
5316 "the last assigned DHCP address of a virtual machine."
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../examples/guestfs-recipes.pod:184
5321 msgid ""
5322 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5323 "a-virtual-machine-disk-image/#content"
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-recipes.pod:186
5328 msgid ""
5329 "In the libguestfs source examples directory you will find the latest version "
5330 "of the C<virt-dhcp-address.c> program."
5331 msgstr ""
5332
5333 #. type: =head1
5334 #: ../examples/guestfs-recipes.pod:189
5335 msgid "Get the operating system product name string"
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-recipes.pod:191
5340 msgid "Save the following script into a file called C<product-name.sh>:"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../examples/guestfs-recipes.pod:193
5345 #, no-wrap
5346 msgid ""
5347 " #!/bin/sh -\n"
5348 " set -e\n"
5349 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5350 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5351 " guestfish --remote inspect-get-product-name \"$root\"\n"
5352 " guestfish --remote exit\n"
5353 "\n"
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../examples/guestfs-recipes.pod:200
5358 msgid "Make the script executable and run it on a named guest:"
5359 msgstr ""
5360
5361 #. type: verbatim
5362 #: ../examples/guestfs-recipes.pod:202
5363 #, no-wrap
5364 msgid ""
5365 " # product-name.sh RHEL60x64\n"
5366 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5367 "\n"
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../examples/guestfs-recipes.pod:205
5372 msgid ""
5373 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5374 "C<xpath> command line tool or from your favourite programming language:"
5375 msgstr ""
5376
5377 #. type: verbatim
5378 #: ../examples/guestfs-recipes.pod:209
5379 #, no-wrap
5380 msgid ""
5381 " # virt-inspector RHEL60x64 > xml\n"
5382 " # xpath '//product_name' < xml\n"
5383 " Found 1 nodes:\n"
5384 " -- NODE --\n"
5385 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5386 "\n"
5387 msgstr ""
5388
5389 #. type: =head1
5390 #: ../examples/guestfs-recipes.pod:215
5391 msgid "Get the default boot kernel for a Linux VM"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-recipes.pod:217
5396 msgid ""
5397 "The link below contains a program to print the default boot kernel for a "
5398 "Linux VM."
5399 msgstr ""
5400
5401 #. type: textblock
5402 #: ../examples/guestfs-recipes.pod:220
5403 msgid ""
5404 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5405 "kernel-for-a-vm/#content"
5406 msgstr ""
5407
5408 #. type: textblock
5409 #: ../examples/guestfs-recipes.pod:222
5410 msgid ""
5411 "It uses Augeas, and the technique is generally applicable for many different "
5412 "tasks, such as:"
5413 msgstr ""
5414
5415 #. type: textblock
5416 #: ../examples/guestfs-recipes.pod:229
5417 msgid "listing the user accounts in the guest"
5418 msgstr ""
5419
5420 #. type: textblock
5421 #: ../examples/guestfs-recipes.pod:233
5422 msgid "what repositories is it configured to use"
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../examples/guestfs-recipes.pod:237
5427 msgid "what NTP servers does it connect to"
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../examples/guestfs-recipes.pod:241
5432 msgid "what were the boot messages last time it booted"
5433 msgstr ""
5434
5435 #. type: textblock
5436 #: ../examples/guestfs-recipes.pod:245
5437 msgid "listing who was logged in recently"
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../examples/guestfs-recipes.pod:249
5442 msgid "http://augeas.net/"
5443 msgstr ""
5444
5445 #. type: =head1
5446 #: ../examples/guestfs-recipes.pod:251
5447 msgid "Install RPMs in a guest"
5448 msgstr ""
5449
5450 #. type: textblock
5451 #: ../examples/guestfs-recipes.pod:253
5452 msgid ""
5453 "The link below contains a method to install RPMs in a guest.  In fact the "
5454 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5455 "installs them next time the guest is booted.  You could use this technique "
5456 "to install vital security updates in an offline guest."
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:259
5461 msgid ""
5462 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5463 msgstr ""
5464
5465 #. type: =head1
5466 #: ../examples/guestfs-recipes.pod:261
5467 msgid "List applications installed in a VM"
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../examples/guestfs-recipes.pod:263
5472 msgid "Save the following to a file C<list-apps.sh>:"
5473 msgstr ""
5474
5475 #. type: verbatim
5476 #: ../examples/guestfs-recipes.pod:265
5477 #, no-wrap
5478 msgid ""
5479 " #!/bin/sh -\n"
5480 " set -e\n"
5481 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5482 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5483 " guestfish --remote inspect-list-applications \"$root\"\n"
5484 " guestfish --remote exit\n"
5485 "\n"
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../examples/guestfs-recipes.pod:272
5490 msgid ""
5491 "Make the file executable and then you can run it on any named virtual "
5492 "machine:"
5493 msgstr ""
5494
5495 #. type: verbatim
5496 #: ../examples/guestfs-recipes.pod:275
5497 #, no-wrap
5498 msgid ""
5499 " # list-apps.sh WinGuest\n"
5500 " [0] = {\n"
5501 "   app_name: Mozilla Firefox (3.6.12)\n"
5502 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5503 "   app_epoch: 0\n"
5504 "   app_version: 3.6.12 (en-GB)\n"
5505 "   app_release:\n"
5506 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5507 "   app_trans_path:\n"
5508 "   app_publisher: Mozilla\n"
5509 "   app_url: http://www.mozilla.com/en-GB/\n"
5510 "   app_source_package:\n"
5511 "   app_summary:\n"
5512 "   app_description: Mozilla Firefox\n"
5513 " }\n"
5514 " [1] = {\n"
5515 "   app_name: VLC media player\n"
5516 "   app_display_name: VLC media player 1.1.5\n"
5517 "   app_epoch: 0\n"
5518 "   app_version: 1.1.5\n"
5519 "   app_release:\n"
5520 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5521 "   app_trans_path:\n"
5522 "   app_publisher: VideoLAN\n"
5523 "   app_url: http://www.videolan.org/\n"
5524 "   app_source_package:\n"
5525 "   app_summary:\n"
5526 "   app_description:\n"
5527 " }\n"
5528 "\n"
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-recipes.pod:305
5533 msgid ""
5534 "If you want to run the script on disk images (instead of libvirt virtual "
5535 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5536 ">."
5537 msgstr ""
5538
5539 #. type: =head1
5540 #: ../examples/guestfs-recipes.pod:309
5541 msgid "List files and directories in a VM"
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../examples/guestfs-recipes.pod:311
5546 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5547 msgstr ""
5548
5549 #. type: verbatim
5550 #: ../examples/guestfs-recipes.pod:313
5551 #, no-wrap
5552 msgid ""
5553 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5554 "\n"
5555 msgstr ""
5556
5557 #. type: =head1
5558 #: ../examples/guestfs-recipes.pod:315
5559 msgid "List services in a Windows VM"
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../examples/guestfs-recipes.pod:317
5564 msgid ""
5565 "The link below contains a script that can be used to list out the services "
5566 "from a Windows VM, and whether those services run at boot time or are loaded "
5567 "on demand."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../examples/guestfs-recipes.pod:321
5572 msgid ""
5573 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5574 "#content"
5575 msgstr ""
5576
5577 #. type: =head1
5578 #: ../examples/guestfs-recipes.pod:323
5579 msgid "Make a disk image sparse"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../examples/guestfs-recipes.pod:325
5584 msgid ""
5585 "The link below contains some guides for making a disk image sparse (or "
5586 "reintroducing sparseness)."
5587 msgstr ""
5588
5589 #. type: textblock
5590 #: ../examples/guestfs-recipes.pod:328
5591 msgid ""
5592 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5593 msgstr ""
5594
5595 #. type: =head1
5596 #: ../examples/guestfs-recipes.pod:330
5597 msgid "Monitor disk usage over time"
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../examples/guestfs-recipes.pod:332
5602 msgid ""
5603 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5604 "The link below contains a guide."
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../examples/guestfs-recipes.pod:335
5609 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5610 msgstr ""
5611
5612 #. type: =head1
5613 #: ../examples/guestfs-recipes.pod:337
5614 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5615 msgstr ""
5616
5617 #. type: textblock
5618 #: ../examples/guestfs-recipes.pod:339
5619 msgid ""
5620 "L<guestfish(1)> plus the tools described in the link below can be used to "
5621 "read out the Windows Event Log from any virtual machine running Windows "
5622 "Vista or a later version."
5623 msgstr ""
5624
5625 #. type: textblock
5626 #: ../examples/guestfs-recipes.pod:343
5627 msgid ""
5628 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5629 "guestfish/#content"
5630 msgstr ""
5631
5632 #. type: =head1
5633 #: ../examples/guestfs-recipes.pod:345
5634 msgid "Remove root password (Linux)"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../examples/guestfs-recipes.pod:347
5639 msgid ""
5640 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5641 "files.  One use is to remove the root password from a Linux guest:"
5642 msgstr ""
5643
5644 #. type: verbatim
5645 #: ../examples/guestfs-recipes.pod:350
5646 #, no-wrap
5647 msgid ""
5648 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5649 "\n"
5650 msgstr ""
5651
5652 #. type: =head1
5653 #: ../examples/guestfs-recipes.pod:352
5654 msgid "Remove Administrator password (Windows)"
5655 msgstr ""
5656
5657 #. type: textblock
5658 #: ../examples/guestfs-recipes.pod:354
5659 msgid ""
5660 "The link below contains one technique for removing the Administrator "
5661 "password from a Windows VM, or to be more precise, it gives you a command "
5662 "prompt the next time you log in which you can use to bypass any security:"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../examples/guestfs-recipes.pod:359
5667 msgid ""
5668 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5669 "administrator-password-with-guestfish/"
5670 msgstr ""
5671
5672 #. type: =head1
5673 #: ../examples/guestfs-recipes.pod:361
5674 msgid "Unpack a live CD"
5675 msgstr ""
5676
5677 #. type: textblock
5678 #: ../examples/guestfs-recipes.pod:363
5679 msgid ""
5680 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5681 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5682 "layers, as outlined in the guide below."
5683 msgstr ""
5684
5685 #. type: textblock
5686 #: ../examples/guestfs-recipes.pod:367
5687 msgid ""
5688 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5689 "cd/#content"
5690 msgstr ""
5691
5692 #. type: =head1
5693 #: ../examples/guestfs-recipes.pod:369
5694 msgid "Uploading and downloading files"
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../examples/guestfs-recipes.pod:371
5699 msgid ""
5700 "The link below contains general tips on uploading (copying in)  and "
5701 "downloading (copying out) files from VMs."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../examples/guestfs-recipes.pod:374
5706 msgid ""
5707 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5708 msgstr ""
5709
5710 #. type: =head1
5711 #: ../examples/guestfs-recipes.pod:376
5712 msgid "Use libguestfs tools on VMware ESX guests"
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../examples/guestfs-recipes.pod:378
5717 msgid ""
5718 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5719 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-recipes.pod:382
5724 msgid ""
5725 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5726 "guests/#content"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../examples/guestfs-recipes.pod:386
5731 msgid ""
5732 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5733 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5734 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../examples/guestfs-recipes.pod:403
5739 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5740 msgstr ""
5741
5742 #. type: =head2
5743 #: ../fish/guestfish-actions.pod:1
5744 msgid "add-cdrom"
5745 msgstr ""
5746
5747 #. type: verbatim
5748 #: ../fish/guestfish-actions.pod:3
5749 #, no-wrap
5750 msgid ""
5751 " add-cdrom filename\n"
5752 "\n"
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5757 msgid "This function adds a virtual CD-ROM disk image to the guest."
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5762 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../fish/guestfish-actions.pod:15
5767 msgid ""
5768 "This call checks for the existence of C<filename>.  This stops you from "
5769 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5770 "and C<http:> URLs.  To specify those, use the general L</config> call "
5771 "instead."
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../fish/guestfish-actions.pod:22
5776 msgid ""
5777 "If you just want to add an ISO file (often you use this as an efficient way "
5778 "to transfer large files into the guest), then you should probably use L</add-"
5779 "drive-ro> instead."
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5784 #: ../fish/guestfish-actions.pod:182
5785 msgid ""
5786 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5787 "instead."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5792 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:895
5793 #: ../fish/guestfish-actions.pod:930 ../fish/guestfish-actions.pod:1103
5794 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1477
5795 #: ../fish/guestfish-actions.pod:3247 ../fish/guestfish-actions.pod:3558
5796 #: ../fish/guestfish-actions.pod:3606 ../fish/guestfish-actions.pod:4533
5797 #: ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4578
5798 #: ../fish/guestfish-actions.pod:4616 ../fish/guestfish-actions.pod:5265
5799 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:10
5800 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5801 #: ../src/guestfs-actions.pod:1525 ../src/guestfs-actions.pod:1582
5802 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:2364
5803 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:5030
5804 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5652
5805 #: ../src/guestfs-actions.pod:6952 ../src/guestfs-actions.pod:6996
5806 #: ../src/guestfs-actions.pod:7030 ../src/guestfs-actions.pod:7093
5807 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8134
5808 #: ../src/guestfs-actions.pod:8317
5809 msgid ""
5810 "Deprecated functions will not be removed from the API, but the fact that "
5811 "they are deprecated indicates that there are problems with correct use of "
5812 "these functions."
5813 msgstr ""
5814
5815 #. type: =head2
5816 #: ../fish/guestfish-actions.pod:35
5817 msgid "add-domain"
5818 msgstr ""
5819
5820 #. type: =head2
5821 #: ../fish/guestfish-actions.pod:37
5822 msgid "domain"
5823 msgstr ""
5824
5825 #. type: verbatim
5826 #: ../fish/guestfish-actions.pod:39
5827 #, no-wrap
5828 msgid ""
5829 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5830 "\n"
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../fish/guestfish-actions.pod:41
5835 msgid ""
5836 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5837 "It works by connecting to libvirt, requesting the domain and domain XML from "
5838 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5843 msgid ""
5844 "The number of disks added is returned.  This operation is atomic: if an "
5845 "error is returned, then no disks are added."
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5850 msgid ""
5851 "This function does some minimal checks to make sure the libvirt domain is "
5852 "not running (unless C<readonly> is true).  In a future version we will try "
5853 "to acquire the libvirt lock on each disk."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5858 msgid ""
5859 "Disks must be accessible locally.  This often means that adding disks from a "
5860 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5861 "unless those disks are accessible via the same device path locally too."
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5866 msgid ""
5867 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5868 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5869 "libvirt URI (or one set through an environment variable, see the libvirt "
5870 "documentation for full details)."
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5875 msgid ""
5876 "The optional C<live> flag controls whether this call will try to connect to "
5877 "a running virtual machine C<guestfsd> process if it sees a suitable "
5878 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5879 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5880 "DAEMONS> for more information."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5885 msgid ""
5886 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5887 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5888 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5889 "as usual."
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../fish/guestfish-actions.pod:76
5894 msgid ""
5895 "The other optional parameters are passed directly through to L</add-drive-"
5896 "opts>."
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5901 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5902 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:848
5903 #: ../fish/guestfish-actions.pod:857 ../fish/guestfish-actions.pod:866
5904 #: ../fish/guestfish-actions.pod:880 ../fish/guestfish-actions.pod:2125
5905 #: ../fish/guestfish-actions.pod:3296 ../fish/guestfish-actions.pod:3459
5906 #: ../fish/guestfish-actions.pod:3594
5907 msgid ""
5908 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5909 msgstr ""
5910
5911 #. type: =head2
5912 #: ../fish/guestfish-actions.pod:81
5913 msgid "add-drive"
5914 msgstr ""
5915
5916 #. type: verbatim
5917 #: ../fish/guestfish-actions.pod:83
5918 #, no-wrap
5919 msgid ""
5920 " add-drive filename\n"
5921 "\n"
5922 msgstr ""
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:85
5926 msgid ""
5927 "This function is the equivalent of calling L</add-drive-opts> with no "
5928 "optional parameters, so the disk is added writable, with the format being "
5929 "detected automatically."
5930 msgstr ""
5931
5932 #. type: textblock
5933 #: ../fish/guestfish-actions.pod:89
5934 msgid ""
5935 "Automatic detection of the format opens you up to a potential security hole "
5936 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5937 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5938 "you should think about replacing calls to this function with calls to L</add-"
5939 "drive-opts>, and specifying the format."
5940 msgstr ""
5941
5942 #. type: =head2
5943 #: ../fish/guestfish-actions.pod:96
5944 msgid "add-drive-opts"
5945 msgstr ""
5946
5947 #. type: =head2
5948 #: ../fish/guestfish-actions.pod:98
5949 msgid "add"
5950 msgstr ""
5951
5952 #. type: verbatim
5953 #: ../fish/guestfish-actions.pod:100
5954 #, no-wrap
5955 msgid ""
5956 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5957 "\n"
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
5962 msgid ""
5963 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5964 "The first time you call this function, the disk appears as C</dev/sda>, the "
5965 "second time as C</dev/sdb>, and so on."
5966 msgstr ""
5967
5968 #. type: textblock
5969 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
5970 msgid ""
5971 "You don't necessarily need to be root when using libguestfs.  However you "
5972 "obviously do need sufficient permissions to access the filename for whatever "
5973 "operations you want to perform (ie. read access if you just want to read the "
5974 "image or write access if you want to modify the image)."
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
5979 msgid "This call checks that C<filename> exists."
5980 msgstr ""
5981
5982 #. type: textblock
5983 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3258
5984 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:5067
5985 msgid "The optional arguments are:"
5986 msgstr ""
5987
5988 #. type: =item
5989 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
5990 msgid "C<readonly>"
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
5995 msgid ""
5996 "If true then the image is treated as read-only.  Writes are still allowed, "
5997 "but they are stored in a temporary snapshot overlay which is discarded at "
5998 "the end.  The disk that you add is not modified."
5999 msgstr ""
6000
6001 #. type: =item
6002 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6003 msgid "C<format>"
6004 msgstr ""
6005
6006 #. type: textblock
6007 #: ../fish/guestfish-actions.pod:127
6008 msgid ""
6009 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6010 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6011 "include C<raw> and C<qcow2>."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6016 msgid ""
6017 "Automatic detection of the format opens you up to a potential security hole "
6018 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6019 "RHBZ#642934.  Specifying the format closes this security hole."
6020 msgstr ""
6021
6022 #. type: =item
6023 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6024 msgid "C<iface>"
6025 msgstr ""
6026
6027 #. type: textblock
6028 #: ../fish/guestfish-actions.pod:138
6029 msgid ""
6030 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6031 "add-drive-with-if> call (q.v.)"
6032 msgstr ""
6033
6034 #. type: =item
6035 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6036 msgid "C<name>"
6037 msgstr ""
6038
6039 #. type: textblock
6040 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6041 msgid ""
6042 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6043 "a hint to the guest inspection process if it is available."
6044 msgstr ""
6045
6046 #. type: =head2
6047 #: ../fish/guestfish-actions.pod:150
6048 msgid "add-drive-ro"
6049 msgstr ""
6050
6051 #. type: =head2
6052 #: ../fish/guestfish-actions.pod:152
6053 msgid "add-ro"
6054 msgstr ""
6055
6056 #. type: verbatim
6057 #: ../fish/guestfish-actions.pod:154
6058 #, no-wrap
6059 msgid ""
6060 " add-drive-ro filename\n"
6061 "\n"
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../fish/guestfish-actions.pod:156
6066 msgid ""
6067 "This function is the equivalent of calling L</add-drive-opts> with the "
6068 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6069 "is added read-only, with the format being detected automatically."
6070 msgstr ""
6071
6072 #. type: =head2
6073 #: ../fish/guestfish-actions.pod:161
6074 msgid "add-drive-ro-with-if"
6075 msgstr ""
6076
6077 #. type: verbatim
6078 #: ../fish/guestfish-actions.pod:163
6079 #, no-wrap
6080 msgid ""
6081 " add-drive-ro-with-if filename iface\n"
6082 "\n"
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../fish/guestfish-actions.pod:165
6087 msgid ""
6088 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6089 "interface emulation to use at run time."
6090 msgstr ""
6091
6092 #. type: =head2
6093 #: ../fish/guestfish-actions.pod:175
6094 msgid "add-drive-with-if"
6095 msgstr ""
6096
6097 #. type: verbatim
6098 #: ../fish/guestfish-actions.pod:177
6099 #, no-wrap
6100 msgid ""
6101 " add-drive-with-if filename iface\n"
6102 "\n"
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:179
6107 msgid ""
6108 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6109 "interface emulation to use at run time."
6110 msgstr ""
6111
6112 #. type: =head2
6113 #: ../fish/guestfish-actions.pod:189
6114 msgid "aug-clear"
6115 msgstr ""
6116
6117 #. type: verbatim
6118 #: ../fish/guestfish-actions.pod:191
6119 #, no-wrap
6120 msgid ""
6121 " aug-clear augpath\n"
6122 "\n"
6123 msgstr ""
6124
6125 #. type: textblock
6126 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6127 msgid ""
6128 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6129 "L<augtool(1)> C<clear> command."
6130 msgstr ""
6131
6132 #. type: =head2
6133 #: ../fish/guestfish-actions.pod:196
6134 msgid "aug-close"
6135 msgstr ""
6136
6137 #. type: verbatim
6138 #: ../fish/guestfish-actions.pod:198
6139 #, no-wrap
6140 msgid ""
6141 " aug-close\n"
6142 "\n"
6143 msgstr ""
6144
6145 #. type: textblock
6146 #: ../fish/guestfish-actions.pod:200
6147 msgid ""
6148 "Close the current Augeas handle and free up any resources used by it.  After "
6149 "calling this, you have to call L</aug-init> again before you can use any "
6150 "other Augeas functions."
6151 msgstr ""
6152
6153 #. type: =head2
6154 #: ../fish/guestfish-actions.pod:205
6155 msgid "aug-defnode"
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../fish/guestfish-actions.pod:207
6160 #, no-wrap
6161 msgid ""
6162 " aug-defnode name expr val\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6168 msgid ""
6169 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6170 msgstr ""
6171
6172 #. type: textblock
6173 #: ../fish/guestfish-actions.pod:212
6174 msgid ""
6175 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6176 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6177 "containing that single node."
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6182 msgid ""
6183 "On success this returns a pair containing the number of nodes in the "
6184 "nodeset, and a boolean flag if a node was created."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:220
6189 msgid "aug-defvar"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:222
6194 #, no-wrap
6195 msgid ""
6196 " aug-defvar name expr\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6202 msgid ""
6203 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6204 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6209 msgid ""
6210 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6211 "evaluates to something which is not a nodeset."
6212 msgstr ""
6213
6214 #. type: =head2
6215 #: ../fish/guestfish-actions.pod:231
6216 msgid "aug-get"
6217 msgstr ""
6218
6219 #. type: verbatim
6220 #: ../fish/guestfish-actions.pod:233
6221 #, no-wrap
6222 msgid ""
6223 " aug-get augpath\n"
6224 "\n"
6225 msgstr ""
6226
6227 #. type: textblock
6228 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6229 msgid ""
6230 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6231 "node, the C<value> is returned."
6232 msgstr ""
6233
6234 #. type: =head2
6235 #: ../fish/guestfish-actions.pod:238
6236 msgid "aug-init"
6237 msgstr ""
6238
6239 #. type: verbatim
6240 #: ../fish/guestfish-actions.pod:240
6241 #, no-wrap
6242 msgid ""
6243 " aug-init root flags\n"
6244 "\n"
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6249 msgid ""
6250 "Create a new Augeas handle for editing configuration files.  If there was "
6251 "any previous Augeas handle associated with this guestfs session, then it is "
6252 "closed."
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../fish/guestfish-actions.pod:246
6257 msgid "You must call this before using any other L</aug-*> commands."
6258 msgstr ""
6259
6260 #. type: textblock
6261 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6262 msgid ""
6263 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6268 msgid ""
6269 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6270 "logical I<or> of the following integers:"
6271 msgstr ""
6272
6273 #. type: =item
6274 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6275 msgid "C<AUG_SAVE_BACKUP> = 1"
6276 msgstr ""
6277
6278 #. type: textblock
6279 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6280 msgid "Keep the original file with a C<.augsave> extension."
6281 msgstr ""
6282
6283 #. type: =item
6284 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6285 msgid "C<AUG_SAVE_NEWFILE> = 2"
6286 msgstr ""
6287
6288 #. type: textblock
6289 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6290 msgid ""
6291 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6292 "original.  Overrides C<AUG_SAVE_BACKUP>."
6293 msgstr ""
6294
6295 #. type: =item
6296 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6297 msgid "C<AUG_TYPE_CHECK> = 4"
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6302 msgid "Typecheck lenses."
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:271
6307 msgid ""
6308 "This option is only useful when debugging Augeas lenses.  Use of this option "
6309 "may require additional memory for the libguestfs appliance.  You may need to "
6310 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6311 msgstr ""
6312
6313 #. type: =item
6314 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6315 msgid "C<AUG_NO_STDINC> = 8"
6316 msgstr ""
6317
6318 #. type: textblock
6319 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6320 msgid "Do not use standard load path for modules."
6321 msgstr ""
6322
6323 #. type: =item
6324 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6325 msgid "C<AUG_SAVE_NOOP> = 16"
6326 msgstr ""
6327
6328 #. type: textblock
6329 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6330 msgid "Make save a no-op, just record what would have been changed."
6331 msgstr ""
6332
6333 #. type: =item
6334 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6335 msgid "C<AUG_NO_LOAD> = 32"
6336 msgstr ""
6337
6338 #. type: textblock
6339 #: ../fish/guestfish-actions.pod:286
6340 msgid "Do not load the tree in L</aug-init>."
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:290
6345 msgid "To close the handle, you can call L</aug-close>."
6346 msgstr ""
6347
6348 #. type: textblock
6349 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6350 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6351 msgstr ""
6352
6353 #. type: =head2
6354 #: ../fish/guestfish-actions.pod:294
6355 msgid "aug-insert"
6356 msgstr ""
6357
6358 #. type: verbatim
6359 #: ../fish/guestfish-actions.pod:296
6360 #, no-wrap
6361 msgid ""
6362 " aug-insert augpath label true|false\n"
6363 "\n"
6364 msgstr ""
6365
6366 #. type: textblock
6367 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6368 msgid ""
6369 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6370 "or after C<path> (depending on the boolean flag C<before>)."
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6375 msgid ""
6376 "C<path> must match exactly one existing node in the tree, and C<label> must "
6377 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6378 msgstr ""
6379
6380 #. type: =head2
6381 #: ../fish/guestfish-actions.pod:306
6382 msgid "aug-load"
6383 msgstr ""
6384
6385 #. type: verbatim
6386 #: ../fish/guestfish-actions.pod:308
6387 #, no-wrap
6388 msgid ""
6389 " aug-load\n"
6390 "\n"
6391 msgstr ""
6392
6393 #. type: textblock
6394 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6395 msgid "Load files into the tree."
6396 msgstr ""
6397
6398 #. type: textblock
6399 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6400 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6401 msgstr ""
6402
6403 #. type: =head2
6404 #: ../fish/guestfish-actions.pod:315
6405 msgid "aug-ls"
6406 msgstr ""
6407
6408 #. type: verbatim
6409 #: ../fish/guestfish-actions.pod:317
6410 #, no-wrap
6411 msgid ""
6412 " aug-ls augpath\n"
6413 "\n"
6414 msgstr ""
6415
6416 #. type: textblock
6417 #: ../fish/guestfish-actions.pod:319
6418 msgid ""
6419 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6420 "resulting nodes into alphabetical order."
6421 msgstr ""
6422
6423 #. type: =head2
6424 #: ../fish/guestfish-actions.pod:322
6425 msgid "aug-match"
6426 msgstr ""
6427
6428 #. type: verbatim
6429 #: ../fish/guestfish-actions.pod:324
6430 #, no-wrap
6431 msgid ""
6432 " aug-match augpath\n"
6433 "\n"
6434 msgstr ""
6435
6436 #. type: textblock
6437 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6438 msgid ""
6439 "Returns a list of paths which match the path expression C<path>.  The "
6440 "returned paths are sufficiently qualified so that they match exactly one "
6441 "node in the current tree."
6442 msgstr ""
6443
6444 #. type: =head2
6445 #: ../fish/guestfish-actions.pod:330
6446 msgid "aug-mv"
6447 msgstr ""
6448
6449 #. type: verbatim
6450 #: ../fish/guestfish-actions.pod:332
6451 #, no-wrap
6452 msgid ""
6453 " aug-mv src dest\n"
6454 "\n"
6455 msgstr ""
6456
6457 #. type: textblock
6458 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6459 msgid ""
6460 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6461 "C<dest> is overwritten if it exists."
6462 msgstr ""
6463
6464 #. type: =head2
6465 #: ../fish/guestfish-actions.pod:337
6466 msgid "aug-rm"
6467 msgstr ""
6468
6469 #. type: verbatim
6470 #: ../fish/guestfish-actions.pod:339
6471 #, no-wrap
6472 msgid ""
6473 " aug-rm augpath\n"
6474 "\n"
6475 msgstr ""
6476
6477 #. type: textblock
6478 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6479 msgid "Remove C<path> and all of its children."
6480 msgstr ""
6481
6482 #. type: textblock
6483 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6484 msgid "On success this returns the number of entries which were removed."
6485 msgstr ""
6486
6487 #. type: =head2
6488 #: ../fish/guestfish-actions.pod:345
6489 msgid "aug-save"
6490 msgstr ""
6491
6492 #. type: verbatim
6493 #: ../fish/guestfish-actions.pod:347
6494 #, no-wrap
6495 msgid ""
6496 " aug-save\n"
6497 "\n"
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6502 msgid "This writes all pending changes to disk."
6503 msgstr ""
6504
6505 #. type: textblock
6506 #: ../fish/guestfish-actions.pod:351
6507 msgid ""
6508 "The flags which were passed to L</aug-init> affect exactly how files are "
6509 "saved."
6510 msgstr ""
6511
6512 #. type: =head2
6513 #: ../fish/guestfish-actions.pod:354
6514 msgid "aug-set"
6515 msgstr ""
6516
6517 #. type: verbatim
6518 #: ../fish/guestfish-actions.pod:356
6519 #, no-wrap
6520 msgid ""
6521 " aug-set augpath val\n"
6522 "\n"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6527 msgid "Set the value associated with C<path> to C<val>."
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:360
6532 msgid ""
6533 "In the Augeas API, it is possible to clear a node by setting the value to "
6534 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6535 "this call.  Instead you must use the L</aug-clear> call."
6536 msgstr ""
6537
6538 #. type: =head2
6539 #: ../fish/guestfish-actions.pod:365
6540 msgid "available"
6541 msgstr ""
6542
6543 #. type: verbatim
6544 #: ../fish/guestfish-actions.pod:367
6545 #, no-wrap
6546 msgid ""
6547 " available 'groups ...'\n"
6548 "\n"
6549 msgstr ""
6550
6551 #. type: textblock
6552 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6553 msgid ""
6554 "This command is used to check the availability of some groups of "
6555 "functionality in the appliance, which not all builds of the libguestfs "
6556 "appliance will be able to provide."
6557 msgstr ""
6558
6559 #. type: textblock
6560 #: ../fish/guestfish-actions.pod:373
6561 msgid ""
6562 "The libguestfs groups, and the functions that those groups correspond to, "
6563 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6564 "runtime by calling L</available-all-groups>."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6569 msgid ""
6570 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6571 "\"]> would check for the availability of the Linux inotify functions and "
6572 "Augeas (configuration file editing) functions."
6573 msgstr ""
6574
6575 #. type: textblock
6576 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6577 msgid "The command returns no error if I<all> requested groups are available."
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6582 msgid ""
6583 "It fails with an error if one or more of the requested groups is unavailable "
6584 "in the appliance."
6585 msgstr ""
6586
6587 #. type: textblock
6588 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6589 msgid ""
6590 "If an unknown group name is included in the list of groups then an error is "
6591 "always returned."
6592 msgstr ""
6593
6594 #. type: textblock
6595 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6596 msgid "I<Notes:>"
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:397
6601 msgid "You must call L</launch> before calling this function."
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6606 msgid ""
6607 "The reason is because we don't know what groups are supported by the "
6608 "appliance/daemon until it is running and can be queried."
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6613 msgid ""
6614 "If a group of functions is available, this does not necessarily mean that "
6615 "they will work.  You still have to check for errors when calling individual "
6616 "API functions even if they are available."
6617 msgstr ""
6618
6619 #. type: textblock
6620 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6621 msgid ""
6622 "It is usually the job of distro packagers to build complete functionality "
6623 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6624 "with all requirements satisfied, will support everything."
6625 msgstr ""
6626
6627 #. type: textblock
6628 #: ../fish/guestfish-actions.pod:419
6629 msgid ""
6630 "This call was added in version C<1.0.80>.  In previous versions of "
6631 "libguestfs all you could do would be to speculatively execute a command to "
6632 "find out if the daemon implemented it.  See also L</version>."
6633 msgstr ""
6634
6635 #. type: =head2
6636 #: ../fish/guestfish-actions.pod:426
6637 msgid "available-all-groups"
6638 msgstr ""
6639
6640 #. type: verbatim
6641 #: ../fish/guestfish-actions.pod:428
6642 #, no-wrap
6643 msgid ""
6644 " available-all-groups\n"
6645 "\n"
6646 msgstr ""
6647
6648 #. type: textblock
6649 #: ../fish/guestfish-actions.pod:430
6650 msgid ""
6651 "This command returns a list of all optional groups that this daemon knows "
6652 "about.  Note this returns both supported and unsupported groups.  To find "
6653 "out which ones the daemon can actually support you have to call L</"
6654 "available> on each member of the returned list."
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:436
6659 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6660 msgstr ""
6661
6662 #. type: =head2
6663 #: ../fish/guestfish-actions.pod:438
6664 msgid "base64-in"
6665 msgstr ""
6666
6667 #. type: verbatim
6668 #: ../fish/guestfish-actions.pod:440
6669 #, no-wrap
6670 msgid ""
6671 " base64-in (base64file|-) filename\n"
6672 "\n"
6673 msgstr ""
6674
6675 #. type: textblock
6676 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6677 msgid ""
6678 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6683 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6684 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:979
6685 #: ../fish/guestfish-actions.pod:998 ../fish/guestfish-actions.pod:1372
6686 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4848
6687 #: ../fish/guestfish-actions.pod:4859 ../fish/guestfish-actions.pod:4870
6688 #: ../fish/guestfish-actions.pod:4922 ../fish/guestfish-actions.pod:4931
6689 #: ../fish/guestfish-actions.pod:4985 ../fish/guestfish-actions.pod:5008
6690 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:447
6695 msgid "base64-out"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:449
6700 #, no-wrap
6701 msgid ""
6702 " base64-out filename (base64file|-)\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6708 msgid ""
6709 "This command downloads the contents of C<filename>, writing it out to local "
6710 "file C<base64file> encoded as base64."
6711 msgstr ""
6712
6713 #. type: =head2
6714 #: ../fish/guestfish-actions.pod:456
6715 msgid "blockdev-flushbufs"
6716 msgstr ""
6717
6718 #. type: verbatim
6719 #: ../fish/guestfish-actions.pod:458
6720 #, no-wrap
6721 msgid ""
6722 " blockdev-flushbufs device\n"
6723 "\n"
6724 msgstr ""
6725
6726 #. type: textblock
6727 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6728 msgid ""
6729 "This tells the kernel to flush internal buffers associated with C<device>."
6730 msgstr ""
6731
6732 #. type: textblock
6733 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6734 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6735 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6736 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6737 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6738 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6739 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6740 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6741 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6742 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6743 msgid "This uses the L<blockdev(8)> command."
6744 msgstr ""
6745
6746 #. type: =head2
6747 #: ../fish/guestfish-actions.pod:465
6748 msgid "blockdev-getbsz"
6749 msgstr ""
6750
6751 #. type: verbatim
6752 #: ../fish/guestfish-actions.pod:467
6753 #, no-wrap
6754 msgid ""
6755 " blockdev-getbsz device\n"
6756 "\n"
6757 msgstr ""
6758
6759 #. type: textblock
6760 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6761 msgid "This returns the block size of a device."
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6766 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6767 msgid ""
6768 "(Note this is different from both I<size in blocks> and I<filesystem block "
6769 "size>)."
6770 msgstr ""
6771
6772 #. type: =head2
6773 #: ../fish/guestfish-actions.pod:476
6774 msgid "blockdev-getro"
6775 msgstr ""
6776
6777 #. type: verbatim
6778 #: ../fish/guestfish-actions.pod:478
6779 #, no-wrap
6780 msgid ""
6781 " blockdev-getro device\n"
6782 "\n"
6783 msgstr ""
6784
6785 #. type: textblock
6786 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6787 msgid ""
6788 "Returns a boolean indicating if the block device is read-only (true if read-"
6789 "only, false if not)."
6790 msgstr ""
6791
6792 #. type: =head2
6793 #: ../fish/guestfish-actions.pod:485
6794 msgid "blockdev-getsize64"
6795 msgstr ""
6796
6797 #. type: verbatim
6798 #: ../fish/guestfish-actions.pod:487
6799 #, no-wrap
6800 msgid ""
6801 " blockdev-getsize64 device\n"
6802 "\n"
6803 msgstr ""
6804
6805 #. type: textblock
6806 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6807 msgid "This returns the size of the device in bytes."
6808 msgstr ""
6809
6810 #. type: textblock
6811 #: ../fish/guestfish-actions.pod:491
6812 msgid "See also L</blockdev-getsz>."
6813 msgstr ""
6814
6815 #. type: =head2
6816 #: ../fish/guestfish-actions.pod:495
6817 msgid "blockdev-getss"
6818 msgstr ""
6819
6820 #. type: verbatim
6821 #: ../fish/guestfish-actions.pod:497
6822 #, no-wrap
6823 msgid ""
6824 " blockdev-getss device\n"
6825 "\n"
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6830 msgid ""
6831 "This returns the size of sectors on a block device.  Usually 512, but can be "
6832 "larger for modern devices."
6833 msgstr ""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:502
6837 msgid ""
6838 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6839 msgstr ""
6840
6841 #. type: =head2
6842 #: ../fish/guestfish-actions.pod:507
6843 msgid "blockdev-getsz"
6844 msgstr ""
6845
6846 #. type: verbatim
6847 #: ../fish/guestfish-actions.pod:509
6848 #, no-wrap
6849 msgid ""
6850 " blockdev-getsz device\n"
6851 "\n"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6856 msgid ""
6857 "This returns the size of the device in units of 512-byte sectors (even if "
6858 "the sectorsize isn't 512 bytes ... weird)."
6859 msgstr ""
6860
6861 #. type: textblock
6862 #: ../fish/guestfish-actions.pod:514
6863 msgid ""
6864 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6865 "blockdev-getsize64> for the more useful I<size in bytes>."
6866 msgstr ""
6867
6868 #. type: =head2
6869 #: ../fish/guestfish-actions.pod:520
6870 msgid "blockdev-rereadpt"
6871 msgstr ""
6872
6873 #. type: verbatim
6874 #: ../fish/guestfish-actions.pod:522
6875 #, no-wrap
6876 msgid ""
6877 " blockdev-rereadpt device\n"
6878 "\n"
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6883 msgid "Reread the partition table on C<device>."
6884 msgstr ""
6885
6886 #. type: =head2
6887 #: ../fish/guestfish-actions.pod:528
6888 msgid "blockdev-setbsz"
6889 msgstr ""
6890
6891 #. type: verbatim
6892 #: ../fish/guestfish-actions.pod:530
6893 #, no-wrap
6894 msgid ""
6895 " blockdev-setbsz device blocksize\n"
6896 "\n"
6897 msgstr ""
6898
6899 #. type: textblock
6900 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6901 msgid "This sets the block size of a device."
6902 msgstr ""
6903
6904 #. type: =head2
6905 #: ../fish/guestfish-actions.pod:539
6906 msgid "blockdev-setro"
6907 msgstr ""
6908
6909 #. type: verbatim
6910 #: ../fish/guestfish-actions.pod:541
6911 #, no-wrap
6912 msgid ""
6913 " blockdev-setro device\n"
6914 "\n"
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
6919 msgid "Sets the block device named C<device> to read-only."
6920 msgstr ""
6921
6922 #. type: =head2
6923 #: ../fish/guestfish-actions.pod:547
6924 msgid "blockdev-setrw"
6925 msgstr ""
6926
6927 #. type: verbatim
6928 #: ../fish/guestfish-actions.pod:549
6929 #, no-wrap
6930 msgid ""
6931 " blockdev-setrw device\n"
6932 "\n"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
6937 msgid "Sets the block device named C<device> to read-write."
6938 msgstr ""
6939
6940 #. type: =head2
6941 #: ../fish/guestfish-actions.pod:555
6942 msgid "btrfs-filesystem-resize"
6943 msgstr ""
6944
6945 #. type: verbatim
6946 #: ../fish/guestfish-actions.pod:557
6947 #, no-wrap
6948 msgid ""
6949 " btrfs-filesystem-resize mountpoint [size:..]\n"
6950 "\n"
6951 msgstr ""
6952
6953 #. type: textblock
6954 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
6955 msgid "This command resizes a btrfs filesystem."
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
6960 msgid ""
6961 "Note that unlike other resize calls, the filesystem has to be mounted and "
6962 "the parameter is the mountpoint not the device (this is a requirement of "
6963 "btrfs itself)."
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3569
6968 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5591
6969 msgid "The optional parameters are:"
6970 msgstr ""
6971
6972 #. type: =item
6973 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3573
6974 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5595
6975 msgid "C<size>"
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
6980 msgid ""
6981 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6982 "resized to the maximum size."
6983 msgstr ""
6984
6985 #. type: textblock
6986 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
6987 msgid "See also L<btrfs(8)>."
6988 msgstr ""
6989
6990 #. type: =head2
6991 #: ../fish/guestfish-actions.pod:580
6992 msgid "case-sensitive-path"
6993 msgstr ""
6994
6995 #. type: verbatim
6996 #: ../fish/guestfish-actions.pod:582
6997 #, no-wrap
6998 msgid ""
6999 " case-sensitive-path path\n"
7000 "\n"
7001 msgstr ""
7002
7003 #. type: textblock
7004 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7005 msgid ""
7006 "This can be used to resolve case insensitive paths on a filesystem which is "
7007 "case sensitive.  The use case is to resolve paths which you have read from "
7008 "Windows configuration files or the Windows Registry, to the true path."
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7013 msgid ""
7014 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7015 "(and probably others), which is that although the underlying filesystem is "
7016 "case-insensitive, the driver exports the filesystem to Linux as case-"
7017 "sensitive."
7018 msgstr ""
7019
7020 #. type: textblock
7021 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7022 msgid ""
7023 "One consequence of this is that special directories such as C<c:\\windows> "
7024 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7025 "precise details of how they were created.  In Windows itself this would not "
7026 "be a problem."
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7031 msgid ""
7032 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7033 "#posixfilenames1>"
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7038 msgid ""
7039 "This function resolves the true case of each element in the path and returns "
7040 "the case-sensitive path."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:606
7045 msgid ""
7046 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7047 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7048 "the directories were originally created under Windows)."
7049 msgstr ""
7050
7051 #. type: textblock
7052 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7053 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7054 msgstr ""
7055
7056 #. type: textblock
7057 #: ../fish/guestfish-actions.pod:614
7058 msgid "See also L</realpath>."
7059 msgstr ""
7060
7061 #. type: =head2
7062 #: ../fish/guestfish-actions.pod:616
7063 msgid "cat"
7064 msgstr ""
7065
7066 #. type: verbatim
7067 #: ../fish/guestfish-actions.pod:618
7068 #, no-wrap
7069 msgid ""
7070 " cat path\n"
7071 "\n"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:4003
7076 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:6252
7077 msgid "Return the contents of the file named C<path>."
7078 msgstr ""
7079
7080 #. type: textblock
7081 #: ../fish/guestfish-actions.pod:622
7082 msgid ""
7083 "Note that this function cannot correctly handle binary files (specifically, "
7084 "files containing C<\\0> character which is treated as end of string).  For "
7085 "those you need to use the L</read-file> or L</download> functions which have "
7086 "a more complex interface."
7087 msgstr ""
7088
7089 #. type: textblock
7090 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7091 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:1057
7092 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1134
7093 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1336
7094 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:1659
7095 #: ../fish/guestfish-actions.pod:1709 ../fish/guestfish-actions.pod:1724
7096 #: ../fish/guestfish-actions.pod:1734 ../fish/guestfish-actions.pod:1753
7097 #: ../fish/guestfish-actions.pod:3873 ../fish/guestfish-actions.pod:3888
7098 #: ../fish/guestfish-actions.pod:3964 ../fish/guestfish-actions.pod:3981
7099 #: ../fish/guestfish-actions.pod:3996 ../fish/guestfish-actions.pod:4677
7100 #: ../fish/guestfish-actions.pod:4723 ../fish/guestfish-actions.pod:4808
7101 #: ../fish/guestfish-actions.pod:4823 ../fish/guestfish-actions.pod:5229
7102 #: ../fish/guestfish-actions.pod:5241 ../fish/guestfish-actions.pod:5259
7103 #: ../fish/guestfish-actions.pod:5276 ../fish/guestfish-actions.pod:5286
7104 #: ../fish/guestfish-actions.pod:5343 ../fish/guestfish-actions.pod:5353
7105 #: ../fish/guestfish-actions.pod:5382 ../fish/guestfish-actions.pod:5392
7106 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7107 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1800
7108 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1922
7109 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:2187
7110 #: ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2688
7111 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:2777
7112 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2823
7113 #: ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:6060
7114 #: ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:6217
7115 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:7208
7116 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7409
7117 #: ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:8098
7118 #: ../src/guestfs-actions.pod:8118 ../src/guestfs-actions.pod:8151
7119 #: ../src/guestfs-actions.pod:8170 ../src/guestfs-actions.pod:8189
7120 #: ../src/guestfs-actions.pod:8283 ../src/guestfs-actions.pod:8302
7121 #: ../src/guestfs-actions.pod:8348 ../src/guestfs-actions.pod:8367
7122 msgid ""
7123 "Because of the message protocol, there is a transfer limit of somewhere "
7124 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7125 msgstr ""
7126
7127 #. type: =head2
7128 #: ../fish/guestfish-actions.pod:630
7129 msgid "checksum"
7130 msgstr ""
7131
7132 #. type: verbatim
7133 #: ../fish/guestfish-actions.pod:632
7134 #, no-wrap
7135 msgid ""
7136 " checksum csumtype path\n"
7137 "\n"
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7142 msgid ""
7143 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7144 msgstr ""
7145
7146 #. type: textblock
7147 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7148 msgid ""
7149 "The type of checksum to compute is given by the C<csumtype> parameter which "
7150 "must have one of the following values:"
7151 msgstr ""
7152
7153 #. type: =item
7154 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7155 msgid "C<crc>"
7156 msgstr ""
7157
7158 #. type: textblock
7159 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7160 msgid ""
7161 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7162 "C<cksum> command."
7163 msgstr ""
7164
7165 #. type: =item
7166 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7167 msgid "C<md5>"
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7172 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7173 msgstr ""
7174
7175 #. type: =item
7176 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7177 msgid "C<sha1>"
7178 msgstr ""
7179
7180 #. type: textblock
7181 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7182 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7183 msgstr ""
7184
7185 #. type: =item
7186 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7187 msgid "C<sha224>"
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7192 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7193 msgstr ""
7194
7195 #. type: =item
7196 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7197 msgid "C<sha256>"
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7202 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7203 msgstr ""
7204
7205 #. type: =item
7206 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7207 msgid "C<sha384>"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7212 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7213 msgstr ""
7214
7215 #. type: =item
7216 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7217 msgid "C<sha512>"
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7222 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7227 msgid "The checksum is returned as a printable string."
7228 msgstr ""
7229
7230 #. type: textblock
7231 #: ../fish/guestfish-actions.pod:675
7232 msgid "To get the checksum for a device, use L</checksum-device>."
7233 msgstr ""
7234
7235 #. type: textblock
7236 #: ../fish/guestfish-actions.pod:677
7237 msgid "To get the checksums for many files, use L</checksums-out>."
7238 msgstr ""
7239
7240 #. type: =head2
7241 #: ../fish/guestfish-actions.pod:679
7242 msgid "checksum-device"
7243 msgstr ""
7244
7245 #. type: verbatim
7246 #: ../fish/guestfish-actions.pod:681
7247 #, no-wrap
7248 msgid ""
7249 " checksum-device csumtype device\n"
7250 "\n"
7251 msgstr ""
7252
7253 #. type: textblock
7254 #: ../fish/guestfish-actions.pod:683
7255 msgid ""
7256 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7257 "device named C<device>.  For the types of checksums supported see the L</"
7258 "checksum> command."
7259 msgstr ""
7260
7261 #. type: =head2
7262 #: ../fish/guestfish-actions.pod:687
7263 msgid "checksums-out"
7264 msgstr ""
7265
7266 #. type: verbatim
7267 #: ../fish/guestfish-actions.pod:689
7268 #, no-wrap
7269 msgid ""
7270 " checksums-out csumtype directory (sumsfile|-)\n"
7271 "\n"
7272 msgstr ""
7273
7274 #. type: textblock
7275 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7276 msgid ""
7277 "This command computes the checksums of all regular files in C<directory> and "
7278 "then emits a list of those checksums to the local output file C<sumsfile>."
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7283 msgid ""
7284 "This can be used for verifying the integrity of a virtual machine.  However "
7285 "to be properly secure you should pay attention to the output of the checksum "
7286 "command (it uses the ones from GNU coreutils).  In particular when the "
7287 "filename is not printable, coreutils uses a special backslash syntax.  For "
7288 "more information, see the GNU coreutils info file."
7289 msgstr ""
7290
7291 #. type: =head2
7292 #: ../fish/guestfish-actions.pod:705
7293 msgid "chmod"
7294 msgstr ""
7295
7296 #. type: verbatim
7297 #: ../fish/guestfish-actions.pod:707
7298 #, no-wrap
7299 msgid ""
7300 " chmod mode path\n"
7301 "\n"
7302 msgstr ""
7303
7304 #. type: textblock
7305 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7306 msgid ""
7307 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7308 "supported."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7313 msgid ""
7314 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7315 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7316 "C<700>."
7317 msgstr ""
7318
7319 #. type: textblock
7320 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3222
7321 #: ../fish/guestfish-actions.pod:3361 ../fish/guestfish-actions.pod:3371
7322 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:1070
7323 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5207
7324 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5245
7325 msgid "The mode actually set is affected by the umask."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:718
7330 msgid "chown"
7331 msgstr ""
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:720
7335 #, no-wrap
7336 msgid ""
7337 " chown owner group path\n"
7338 "\n"
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7343 msgid "Change the file owner to C<owner> and group to C<group>."
7344 msgstr ""
7345
7346 #. type: textblock
7347 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2657
7348 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:4069
7349 msgid ""
7350 "Only numeric uid and gid are supported.  If you want to use names, you will "
7351 "need to locate and parse the password file yourself (Augeas support makes "
7352 "this relatively easy)."
7353 msgstr ""
7354
7355 #. type: =head2
7356 #: ../fish/guestfish-actions.pod:728
7357 msgid "command"
7358 msgstr ""
7359
7360 #. type: verbatim
7361 #: ../fish/guestfish-actions.pod:730
7362 #, no-wrap
7363 msgid ""
7364 " command 'arguments ...'\n"
7365 "\n"
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7370 msgid ""
7371 "This call runs a command from the guest filesystem.  The filesystem must be "
7372 "mounted, and must contain a compatible operating system (ie. something "
7373 "Linux, with the same or compatible processor architecture)."
7374 msgstr ""
7375
7376 #. type: textblock
7377 #: ../fish/guestfish-actions.pod:737
7378 msgid ""
7379 "The single parameter is an argv-style list of arguments.  The first element "
7380 "is the name of the program to run.  Subsequent elements are parameters.  The "
7381 "list must be non-empty (ie. must contain a program name).  Note that the "
7382 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7383 msgstr ""
7384
7385 #. type: textblock
7386 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7387 msgid "The return value is anything printed to I<stdout> by the command."
7388 msgstr ""
7389
7390 #. type: textblock
7391 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7392 msgid ""
7393 "If the command returns a non-zero exit status, then this function returns an "
7394 "error message.  The error message string is the content of I<stderr> from "
7395 "the command."
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7400 msgid ""
7401 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7402 "bin>.  If you require a program from another location, you should provide "
7403 "the full path in the first parameter."
7404 msgstr ""
7405
7406 #. type: textblock
7407 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7408 msgid ""
7409 "Shared libraries and data files required by the program must be available on "
7410 "filesystems which are mounted in the correct places.  It is the caller's "
7411 "responsibility to ensure all filesystems that are needed are mounted at the "
7412 "right locations."
7413 msgstr ""
7414
7415 #. type: =head2
7416 #: ../fish/guestfish-actions.pod:765
7417 msgid "command-lines"
7418 msgstr ""
7419
7420 #. type: verbatim
7421 #: ../fish/guestfish-actions.pod:767
7422 #, no-wrap
7423 msgid ""
7424 " command-lines 'arguments ...'\n"
7425 "\n"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:769
7430 msgid ""
7431 "This is the same as L</command>, but splits the result into a list of lines."
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:772
7436 msgid "See also: L</sh-lines>"
7437 msgstr ""
7438
7439 #. type: =head2
7440 #: ../fish/guestfish-actions.pod:777
7441 msgid "compress-device-out"
7442 msgstr ""
7443
7444 #. type: verbatim
7445 #: ../fish/guestfish-actions.pod:779
7446 #, no-wrap
7447 msgid ""
7448 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7449 "\n"
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7454 msgid ""
7455 "This command compresses C<device> and writes it out to the local file "
7456 "C<zdevice>."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:784
7461 msgid ""
7462 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7463 "compress-out>."
7464 msgstr ""
7465
7466 #. type: =head2
7467 #: ../fish/guestfish-actions.pod:791
7468 msgid "compress-out"
7469 msgstr ""
7470
7471 #. type: verbatim
7472 #: ../fish/guestfish-actions.pod:793
7473 #, no-wrap
7474 msgid ""
7475 " compress-out ctype file (zfile|-) [level:..]\n"
7476 "\n"
7477 msgstr ""
7478
7479 #. type: textblock
7480 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7481 msgid ""
7482 "This command compresses C<file> and writes it out to the local file C<zfile>."
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7487 msgid ""
7488 "The compression program used is controlled by the C<ctype> parameter.  "
7489 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7490 "Some compression types may not be supported by particular builds of "
7491 "libguestfs, in which case you will get an error containing the substring "
7492 "\"not supported\"."
7493 msgstr ""
7494
7495 #. type: textblock
7496 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7497 msgid ""
7498 "The optional C<level> parameter controls compression level.  The meaning and "
7499 "default for this parameter depends on the compression program being used."
7500 msgstr ""
7501
7502 #. type: =head2
7503 #: ../fish/guestfish-actions.pod:812
7504 msgid "config"
7505 msgstr ""
7506
7507 #. type: verbatim
7508 #: ../fish/guestfish-actions.pod:814
7509 #, no-wrap
7510 msgid ""
7511 " config qemuparam qemuvalue\n"
7512 "\n"
7513 msgstr ""
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7517 msgid ""
7518 "This can be used to add arbitrary qemu command line parameters of the form "
7519 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7520 "setting some parameters which would interfere with parameters that we use."
7521 msgstr ""
7522
7523 #. type: textblock
7524 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7525 msgid "The first character of C<param> string must be a C<-> (dash)."
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7530 msgid "C<value> can be NULL."
7531 msgstr ""
7532
7533 #. type: =head2
7534 #: ../fish/guestfish-actions.pod:825
7535 msgid "copy-device-to-device"
7536 msgstr ""
7537
7538 #. type: verbatim
7539 #: ../fish/guestfish-actions.pod:827
7540 #, no-wrap
7541 msgid ""
7542 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7543 "\n"
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:829
7548 msgid ""
7549 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7550 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7551 "(device|file) to a destination (device|file)."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1313
7556 msgid ""
7557 "Partial copies can be made since you can specify optionally the source "
7558 "offset, destination offset and size to copy.  These values are all specified "
7559 "in bytes.  If not given, the offsets both default to zero, and the size "
7560 "defaults to copying as much as possible until we hit the end of the source."
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1319
7565 msgid ""
7566 "The source and destination may be the same object.  However overlapping "
7567 "regions may not be copied correctly."
7568 msgstr ""
7569
7570 #. type: textblock
7571 #: ../fish/guestfish-actions.pod:845 ../src/guestfs-actions.pod:1322
7572 msgid ""
7573 "If the destination is a file, it is created if required.  If the destination "
7574 "file is not large enough, it is extended."
7575 msgstr ""
7576
7577 #. type: =head2
7578 #: ../fish/guestfish-actions.pod:850
7579 msgid "copy-device-to-file"
7580 msgstr ""
7581
7582 #. type: verbatim
7583 #: ../fish/guestfish-actions.pod:852
7584 #, no-wrap
7585 msgid ""
7586 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7587 "\n"
7588 msgstr ""
7589
7590 #. type: textblock
7591 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:863
7592 #: ../fish/guestfish-actions.pod:872
7593 msgid "See L</copy-device-to-device> for a general overview of this call."
7594 msgstr ""
7595
7596 #. type: =head2
7597 #: ../fish/guestfish-actions.pod:859
7598 msgid "copy-file-to-device"
7599 msgstr ""
7600
7601 #. type: verbatim
7602 #: ../fish/guestfish-actions.pod:861
7603 #, no-wrap
7604 msgid ""
7605 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7606 "\n"
7607 msgstr ""
7608
7609 #. type: =head2
7610 #: ../fish/guestfish-actions.pod:868
7611 msgid "copy-file-to-file"
7612 msgstr ""
7613
7614 #. type: verbatim
7615 #: ../fish/guestfish-actions.pod:870
7616 #, no-wrap
7617 msgid ""
7618 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7619 "\n"
7620 msgstr ""
7621
7622 #. type: textblock
7623 #: ../fish/guestfish-actions.pod:875
7624 msgid ""
7625 "This is B<not> the function you want for copying files.  This is for copying "
7626 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7627 "file copying and moving functions."
7628 msgstr ""
7629
7630 #. type: =head2
7631 #: ../fish/guestfish-actions.pod:882
7632 msgid "copy-size"
7633 msgstr ""
7634
7635 #. type: verbatim
7636 #: ../fish/guestfish-actions.pod:884
7637 #, no-wrap
7638 msgid ""
7639 " copy-size src dest size\n"
7640 "\n"
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:886 ../src/guestfs-actions.pod:1529
7645 msgid ""
7646 "This command copies exactly C<size> bytes from one source device or file "
7647 "C<src> to another destination device or file C<dest>."
7648 msgstr ""
7649
7650 #. type: textblock
7651 #: ../fish/guestfish-actions.pod:889 ../src/guestfs-actions.pod:1532
7652 msgid ""
7653 "Note this will fail if the source is too short or if the destination is not "
7654 "large enough."
7655 msgstr ""
7656
7657 #. type: textblock
7658 #: ../fish/guestfish-actions.pod:892 ../fish/guestfish-actions.pod:927
7659 msgid ""
7660 "I<This function is deprecated.> In new code, use the L</"
7661 "copy_device_to_device> call instead."
7662 msgstr ""
7663
7664 #. type: =head2
7665 #: ../fish/guestfish-actions.pod:899
7666 msgid "cp"
7667 msgstr ""
7668
7669 #. type: verbatim
7670 #: ../fish/guestfish-actions.pod:901
7671 #, no-wrap
7672 msgid ""
7673 " cp src dest\n"
7674 "\n"
7675 msgstr ""
7676
7677 #. type: textblock
7678 #: ../fish/guestfish-actions.pod:903 ../src/guestfs-actions.pod:1551
7679 msgid ""
7680 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7681 "destination filename or destination directory."
7682 msgstr ""
7683
7684 #. type: =head2
7685 #: ../fish/guestfish-actions.pod:906
7686 msgid "cp-a"
7687 msgstr ""
7688
7689 #. type: verbatim
7690 #: ../fish/guestfish-actions.pod:908
7691 #, no-wrap
7692 msgid ""
7693 " cp-a src dest\n"
7694 "\n"
7695 msgstr ""
7696
7697 #. type: textblock
7698 #: ../fish/guestfish-actions.pod:910 ../src/guestfs-actions.pod:1565
7699 msgid ""
7700 "This copies a file or directory from C<src> to C<dest> recursively using the "
7701 "C<cp -a> command."
7702 msgstr ""
7703
7704 #. type: =head2
7705 #: ../fish/guestfish-actions.pod:913
7706 msgid "dd"
7707 msgstr ""
7708
7709 #. type: verbatim
7710 #: ../fish/guestfish-actions.pod:915
7711 #, no-wrap
7712 msgid ""
7713 " dd src dest\n"
7714 "\n"
7715 msgstr ""
7716
7717 #. type: textblock
7718 #: ../fish/guestfish-actions.pod:917 ../src/guestfs-actions.pod:1586
7719 msgid ""
7720 "This command copies from one source device or file C<src> to another "
7721 "destination device or file C<dest>.  Normally you would use this to copy to "
7722 "or from a device or partition, for example to duplicate a filesystem."
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:922
7727 msgid ""
7728 "If the destination is a device, it must be as large or larger than the "
7729 "source file or device, otherwise the copy will fail.  This command cannot do "
7730 "partial copies (see L</copy-device-to-device>)."
7731 msgstr ""
7732
7733 #. type: =head2
7734 #: ../fish/guestfish-actions.pod:934
7735 msgid "df"
7736 msgstr ""
7737
7738 #. type: verbatim
7739 #: ../fish/guestfish-actions.pod:936
7740 #, no-wrap
7741 msgid ""
7742 " df\n"
7743 "\n"
7744 msgstr ""
7745
7746 #. type: textblock
7747 #: ../fish/guestfish-actions.pod:938 ../src/guestfs-actions.pod:1605
7748 msgid "This command runs the C<df> command to report disk space used."
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:951
7753 msgid ""
7754 "This command is mostly useful for interactive sessions.  It is I<not> "
7755 "intended that you try to parse the output string.  Use L</statvfs> from "
7756 "programs."
7757 msgstr ""
7758
7759 #. type: =head2
7760 #: ../fish/guestfish-actions.pod:944
7761 msgid "df-h"
7762 msgstr ""
7763
7764 #. type: verbatim
7765 #: ../fish/guestfish-actions.pod:946
7766 #, no-wrap
7767 msgid ""
7768 " df-h\n"
7769 "\n"
7770 msgstr ""
7771
7772 #. type: textblock
7773 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1621
7774 msgid ""
7775 "This command runs the C<df -h> command to report disk space used in human-"
7776 "readable format."
7777 msgstr ""
7778
7779 #. type: =head2
7780 #: ../fish/guestfish-actions.pod:955
7781 msgid "dmesg"
7782 msgstr ""
7783
7784 #. type: verbatim
7785 #: ../fish/guestfish-actions.pod:957
7786 #, no-wrap
7787 msgid ""
7788 " dmesg\n"
7789 "\n"
7790 msgstr ""
7791
7792 #. type: textblock
7793 #: ../fish/guestfish-actions.pod:959 ../src/guestfs-actions.pod:1638
7794 msgid ""
7795 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7796 "This is sometimes useful for extended debugging of problems."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:963
7801 msgid ""
7802 "Another way to get the same information is to enable verbose messages with "
7803 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7804 "before running the program."
7805 msgstr ""
7806
7807 #. type: =head2
7808 #: ../fish/guestfish-actions.pod:968
7809 msgid "download"
7810 msgstr ""
7811
7812 #. type: verbatim
7813 #: ../fish/guestfish-actions.pod:970
7814 #, no-wrap
7815 msgid ""
7816 " download remotefilename (filename|-)\n"
7817 "\n"
7818 msgstr ""
7819
7820 #. type: textblock
7821 #: ../fish/guestfish-actions.pod:972 ../fish/guestfish-actions.pod:985
7822 #: ../src/guestfs-actions.pod:1659 ../src/guestfs-actions.pod:1684
7823 msgid ""
7824 "Download file C<remotefilename> and save it as C<filename> on the local "
7825 "machine."
7826 msgstr ""
7827
7828 #. type: textblock
7829 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:4981
7830 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:7668
7831 msgid "C<filename> can also be a named pipe."
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:977
7836 msgid "See also L</upload>, L</cat>."
7837 msgstr ""
7838
7839 #. type: =head2
7840 #: ../fish/guestfish-actions.pod:981
7841 msgid "download-offset"
7842 msgstr ""
7843
7844 #. type: verbatim
7845 #: ../fish/guestfish-actions.pod:983
7846 #, no-wrap
7847 msgid ""
7848 " download-offset remotefilename (filename|-) offset size\n"
7849 "\n"
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:988 ../src/guestfs-actions.pod:1687
7854 msgid ""
7855 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7856 "region must be within the file or device)."
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:991
7861 msgid ""
7862 "Note that there is no limit on the amount of data that can be downloaded "
7863 "with this call, unlike with L</pread>, and this call always reads the full "
7864 "amount unless an error occurs."
7865 msgstr ""
7866
7867 #. type: textblock
7868 #: ../fish/guestfish-actions.pod:996
7869 msgid "See also L</download>, L</pread>."
7870 msgstr ""
7871
7872 #. type: =head2
7873 #: ../fish/guestfish-actions.pod:1000
7874 msgid "drop-caches"
7875 msgstr ""
7876
7877 #. type: verbatim
7878 #: ../fish/guestfish-actions.pod:1002
7879 #, no-wrap
7880 msgid ""
7881 " drop-caches whattodrop\n"
7882 "\n"
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:1004 ../src/guestfs-actions.pod:1712
7887 msgid ""
7888 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7889 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7890 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:1009 ../src/guestfs-actions.pod:1717
7895 msgid "Setting C<whattodrop> to 3 should drop everything."
7896 msgstr ""
7897
7898 #. type: textblock
7899 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1719
7900 msgid ""
7901 "This automatically calls L<sync(2)> before the operation, so that the "
7902 "maximum guest memory is freed."
7903 msgstr ""
7904
7905 #. type: =head2
7906 #: ../fish/guestfish-actions.pod:1014
7907 msgid "du"
7908 msgstr ""
7909
7910 #. type: verbatim
7911 #: ../fish/guestfish-actions.pod:1016
7912 #, no-wrap
7913 msgid ""
7914 " du path\n"
7915 "\n"
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../fish/guestfish-actions.pod:1018 ../src/guestfs-actions.pod:1732
7920 msgid ""
7921 "This command runs the C<du -s> command to estimate file space usage for "
7922 "C<path>."
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1021 ../src/guestfs-actions.pod:1735
7927 msgid ""
7928 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7929 "estimate includes the contents of the directory and all subdirectories "
7930 "(recursively)."
7931 msgstr ""
7932
7933 #. type: textblock
7934 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1739
7935 msgid ""
7936 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7937 msgstr ""
7938
7939 #. type: =head2
7940 #: ../fish/guestfish-actions.pod:1028
7941 msgid "e2fsck-f"
7942 msgstr ""
7943
7944 #. type: verbatim
7945 #: ../fish/guestfish-actions.pod:1030
7946 #, no-wrap
7947 msgid ""
7948 " e2fsck-f device\n"
7949 "\n"
7950 msgstr ""
7951
7952 #. type: textblock
7953 #: ../fish/guestfish-actions.pod:1032 ../src/guestfs-actions.pod:1757
7954 msgid ""
7955 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7956 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7957 "clean (I<-f>)."
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../fish/guestfish-actions.pod:1036
7962 msgid ""
7963 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7964 "should use L</fsck>."
7965 msgstr ""
7966
7967 #. type: =head2
7968 #: ../fish/guestfish-actions.pod:1039
7969 msgid "echo-daemon"
7970 msgstr ""
7971
7972 #. type: verbatim
7973 #: ../fish/guestfish-actions.pod:1041
7974 #, no-wrap
7975 msgid ""
7976 " echo-daemon 'words ...'\n"
7977 "\n"
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:1043 ../src/guestfs-actions.pod:1774
7982 msgid ""
7983 "This command concatenates the list of C<words> passed with single spaces "
7984 "between them and returns the resulting string."
7985 msgstr ""
7986
7987 #. type: textblock
7988 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1777
7989 msgid "You can use this command to test the connection through to the daemon."
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1048
7994 msgid "See also L</ping-daemon>."
7995 msgstr ""
7996
7997 #. type: =head2
7998 #: ../fish/guestfish-actions.pod:1050
7999 msgid "egrep"
8000 msgstr ""
8001
8002 #. type: verbatim
8003 #: ../fish/guestfish-actions.pod:1052
8004 #, no-wrap
8005 msgid ""
8006 " egrep regex path\n"
8007 "\n"
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1793
8012 msgid ""
8013 "This calls the external C<egrep> program and returns the matching lines."
8014 msgstr ""
8015
8016 #. type: =head2
8017 #: ../fish/guestfish-actions.pod:1060
8018 msgid "egrepi"
8019 msgstr ""
8020
8021 #. type: verbatim
8022 #: ../fish/guestfish-actions.pod:1062
8023 #, no-wrap
8024 msgid ""
8025 " egrepi regex path\n"
8026 "\n"
8027 msgstr ""
8028
8029 #. type: textblock
8030 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1812
8031 msgid ""
8032 "This calls the external C<egrep -i> program and returns the matching lines."
8033 msgstr ""
8034
8035 #. type: =head2
8036 #: ../fish/guestfish-actions.pod:1070
8037 msgid "equal"
8038 msgstr ""
8039
8040 #. type: verbatim
8041 #: ../fish/guestfish-actions.pod:1072
8042 #, no-wrap
8043 msgid ""
8044 " equal file1 file2\n"
8045 "\n"
8046 msgstr ""
8047
8048 #. type: textblock
8049 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1831
8050 msgid ""
8051 "This compares the two files C<file1> and C<file2> and returns true if their "
8052 "content is exactly equal, or false otherwise."
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1834
8057 msgid "The external L<cmp(1)> program is used for the comparison."
8058 msgstr ""
8059
8060 #. type: =head2
8061 #: ../fish/guestfish-actions.pod:1079
8062 msgid "exists"
8063 msgstr ""
8064
8065 #. type: verbatim
8066 #: ../fish/guestfish-actions.pod:1081
8067 #, no-wrap
8068 msgid ""
8069 " exists path\n"
8070 "\n"
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1846
8075 msgid ""
8076 "This returns C<true> if and only if there is a file, directory (or anything) "
8077 "with the given C<path> name."
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../fish/guestfish-actions.pod:1086
8082 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8083 msgstr ""
8084
8085 #. type: =head2
8086 #: ../fish/guestfish-actions.pod:1088
8087 msgid "fallocate"
8088 msgstr ""
8089
8090 #. type: verbatim
8091 #: ../fish/guestfish-actions.pod:1090
8092 #, no-wrap
8093 msgid ""
8094 " fallocate path len\n"
8095 "\n"
8096 msgstr ""
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1111
8100 #: ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1888
8101 msgid ""
8102 "This command preallocates a file (containing zero bytes) named C<path> of "
8103 "size C<len> bytes.  If the file exists already, it is overwritten."
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1096 ../src/guestfs-actions.pod:1873
8108 msgid ""
8109 "Do not confuse this with the guestfish-specific C<alloc> command which "
8110 "allocates a file in the host and attaches it as a device."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1100
8115 msgid ""
8116 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8117 "instead."
8118 msgstr ""
8119
8120 #. type: =head2
8121 #: ../fish/guestfish-actions.pod:1107
8122 msgid "fallocate64"
8123 msgstr ""
8124
8125 #. type: verbatim
8126 #: ../fish/guestfish-actions.pod:1109
8127 #, no-wrap
8128 msgid ""
8129 " fallocate64 path len\n"
8130 "\n"
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1115
8135 msgid ""
8136 "Note that this call allocates disk blocks for the file.  To create a sparse "
8137 "file use L</truncate-size> instead."
8138 msgstr ""
8139
8140 #. type: textblock
8141 #: ../fish/guestfish-actions.pod:1118
8142 msgid ""
8143 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8144 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8145 "maximum size of files created through that call to 1GB."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1900
8150 msgid ""
8151 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8152 "commands which create a file in the host and attach it as a device."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1127
8157 msgid "fgrep"
8158 msgstr ""
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1129
8162 #, no-wrap
8163 msgid ""
8164 " fgrep pattern path\n"
8165 "\n"
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1915
8170 msgid ""
8171 "This calls the external C<fgrep> program and returns the matching lines."
8172 msgstr ""
8173
8174 #. type: =head2
8175 #: ../fish/guestfish-actions.pod:1137
8176 msgid "fgrepi"
8177 msgstr ""
8178
8179 #. type: verbatim
8180 #: ../fish/guestfish-actions.pod:1139
8181 #, no-wrap
8182 msgid ""
8183 " fgrepi pattern path\n"
8184 "\n"
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1934
8189 msgid ""
8190 "This calls the external C<fgrep -i> program and returns the matching lines."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1147
8195 msgid "file"
8196 msgstr ""
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1149
8200 #, no-wrap
8201 msgid ""
8202 " file path\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1952
8208 msgid ""
8209 "This call uses the standard L<file(1)> command to determine the type or "
8210 "contents of the file."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1955
8215 msgid ""
8216 "This call will also transparently look inside various types of compressed "
8217 "file."
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1958
8222 msgid ""
8223 "The exact command which runs is C<file -zb path>.  Note in particular that "
8224 "the filename is not prepended to the output (the I<-b> option)."
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1962
8229 msgid ""
8230 "The output depends on the output of the underlying L<file(1)> command and it "
8231 "can change in future in ways beyond our control.  In other words, the output "
8232 "is not guaranteed by the ABI."
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../fish/guestfish-actions.pod:1165
8237 msgid ""
8238 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8239 "(etc), L</is-zero>."
8240 msgstr ""
8241
8242 #. type: =head2
8243 #: ../fish/guestfish-actions.pod:1168
8244 msgid "file-architecture"
8245 msgstr ""
8246
8247 #. type: verbatim
8248 #: ../fish/guestfish-actions.pod:1170
8249 #, no-wrap
8250 msgid ""
8251 " file-architecture filename\n"
8252 "\n"
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:1172 ../src/guestfs-actions.pod:1980
8257 msgid ""
8258 "This detects the architecture of the binary C<filename>, and returns it if "
8259 "known."
8260 msgstr ""
8261
8262 #. type: textblock
8263 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1983
8264 msgid "Currently defined architectures are:"
8265 msgstr ""
8266
8267 #. type: =item
8268 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1987
8269 msgid "\"i386\""
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1181 ../src/guestfs-actions.pod:1989
8274 msgid ""
8275 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8276 "irrespective of the precise processor requirements of the binary."
8277 msgstr ""
8278
8279 #. type: =item
8280 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1992
8281 msgid "\"x86_64\""
8282 msgstr ""
8283
8284 #. type: textblock
8285 #: ../fish/guestfish-actions.pod:1186 ../src/guestfs-actions.pod:1994
8286 msgid "64 bit x86-64."
8287 msgstr ""
8288
8289 #. type: =item
8290 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1996
8291 msgid "\"sparc\""
8292 msgstr ""
8293
8294 #. type: textblock
8295 #: ../fish/guestfish-actions.pod:1190 ../src/guestfs-actions.pod:1998
8296 msgid "32 bit SPARC."
8297 msgstr ""
8298
8299 #. type: =item
8300 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:2000
8301 msgid "\"sparc64\""
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:2002
8306 msgid "64 bit SPARC V9 and above."
8307 msgstr ""
8308
8309 #. type: =item
8310 #: ../fish/guestfish-actions.pod:1196 ../src/guestfs-actions.pod:2004
8311 msgid "\"ia64\""
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1198 ../src/guestfs-actions.pod:2006
8316 msgid "Intel Itanium."
8317 msgstr ""
8318
8319 #. type: =item
8320 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2008
8321 msgid "\"ppc\""
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:2010
8326 msgid "32 bit Power PC."
8327 msgstr ""
8328
8329 #. type: =item
8330 #: ../fish/guestfish-actions.pod:1204 ../src/guestfs-actions.pod:2012
8331 msgid "\"ppc64\""
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1206 ../src/guestfs-actions.pod:2014
8336 msgid "64 bit Power PC."
8337 msgstr ""
8338
8339 #. type: textblock
8340 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:2018
8341 msgid "Libguestfs may return other architecture strings in future."
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:2020
8346 msgid "The function works on at least the following types of files:"
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2026
8351 msgid "many types of Un*x and Linux binary"
8352 msgstr ""
8353
8354 #. type: textblock
8355 #: ../fish/guestfish-actions.pod:1222 ../src/guestfs-actions.pod:2030
8356 msgid "many types of Un*x and Linux shared library"
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:2034
8361 msgid "Windows Win32 and Win64 binaries"
8362 msgstr ""
8363
8364 #. type: textblock
8365 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2038
8366 msgid "Windows Win32 and Win64 DLLs"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2040
8371 msgid "Win32 binaries and DLLs return C<i386>."
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2042
8376 msgid "Win64 binaries and DLLs return C<x86_64>."
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2046
8381 msgid "Linux kernel modules"
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2050
8386 msgid "Linux new-style initrd images"
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2054
8391 msgid "some non-x86 Linux vmlinuz kernels"
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2058
8396 msgid "What it can't do currently:"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2064
8401 msgid "static libraries (libfoo.a)"
8402 msgstr ""
8403
8404 #. type: textblock
8405 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:2068
8406 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2072
8411 msgid "x86 Linux vmlinuz kernels"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:2074
8416 msgid ""
8417 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8418 "compressed code, and are horribly hard to unpack.  If you want to find the "
8419 "architecture of a kernel, use the architecture of the associated initrd or "
8420 "kernel module(s) instead."
8421 msgstr ""
8422
8423 #. type: =head2
8424 #: ../fish/guestfish-actions.pod:1273
8425 msgid "filesize"
8426 msgstr ""
8427
8428 #. type: verbatim
8429 #: ../fish/guestfish-actions.pod:1275
8430 #, no-wrap
8431 msgid ""
8432 " filesize file\n"
8433 "\n"
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2092
8438 msgid "This command returns the size of C<file> in bytes."
8439 msgstr ""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:1279
8443 msgid ""
8444 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8445 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8446 msgstr ""
8447
8448 #. type: =head2
8449 #: ../fish/guestfish-actions.pod:1283
8450 msgid "fill"
8451 msgstr ""
8452
8453 #. type: verbatim
8454 #: ../fish/guestfish-actions.pod:1285
8455 #, no-wrap
8456 msgid ""
8457 " fill c len path\n"
8458 "\n"
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2110
8463 msgid ""
8464 "This command creates a new file called C<path>.  The initial content of the "
8465 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8466 "[0..255]>."
8467 msgstr ""
8468
8469 #. type: textblock
8470 #: ../fish/guestfish-actions.pod:1291
8471 msgid ""
8472 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8473 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8474 "L</fill-pattern>."
8475 msgstr ""
8476
8477 #. type: =head2
8478 #: ../fish/guestfish-actions.pod:1296
8479 msgid "fill-pattern"
8480 msgstr ""
8481
8482 #. type: verbatim
8483 #: ../fish/guestfish-actions.pod:1298
8484 #, no-wrap
8485 msgid ""
8486 " fill-pattern pattern len path\n"
8487 "\n"
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1300
8492 msgid ""
8493 "This function is like L</fill> except that it creates a new file of length "
8494 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8495 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8496 "bytes."
8497 msgstr ""
8498
8499 #. type: =head2
8500 #: ../fish/guestfish-actions.pod:1305
8501 msgid "find"
8502 msgstr ""
8503
8504 #. type: verbatim
8505 #: ../fish/guestfish-actions.pod:1307
8506 #, no-wrap
8507 msgid ""
8508 " find directory\n"
8509 "\n"
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2156
8514 msgid ""
8515 "This command lists out all files and directories, recursively, starting at "
8516 "C<directory>.  It is essentially equivalent to running the shell command "
8517 "C<find directory -print> but some post-processing happens on the output, "
8518 "described below."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1314 ../src/guestfs-actions.pod:2161
8523 msgid ""
8524 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8525 "structure was:"
8526 msgstr ""
8527
8528 #. type: verbatim
8529 #: ../fish/guestfish-actions.pod:1317 ../src/guestfs-actions.pod:2164
8530 #, no-wrap
8531 msgid ""
8532 " /tmp/a\n"
8533 " /tmp/b\n"
8534 " /tmp/c/d\n"
8535 "\n"
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1321
8540 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8541 msgstr ""
8542
8543 #. type: verbatim
8544 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2171
8545 #, no-wrap
8546 msgid ""
8547 " a\n"
8548 " b\n"
8549 " c\n"
8550 " c/d\n"
8551 "\n"
8552 msgstr ""
8553
8554 #. type: textblock
8555 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2176
8556 msgid "If C<directory> is not a directory, then this command returns an error."
8557 msgstr ""
8558
8559 #. type: textblock
8560 #: ../fish/guestfish-actions.pod:1332 ../src/guestfs-actions.pod:2179
8561 msgid "The returned list is sorted."
8562 msgstr ""
8563
8564 #. type: textblock
8565 #: ../fish/guestfish-actions.pod:1334
8566 msgid "See also L</find0>."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../fish/guestfish-actions.pod:1339
8571 msgid "find0"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../fish/guestfish-actions.pod:1341
8576 #, no-wrap
8577 msgid ""
8578 " find0 directory (files|-)\n"
8579 "\n"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2199
8584 msgid ""
8585 "This command lists out all files and directories, recursively, starting at "
8586 "C<directory>, placing the resulting list in the external file called "
8587 "C<files>."
8588 msgstr ""
8589
8590 #. type: textblock
8591 #: ../fish/guestfish-actions.pod:1347
8592 msgid ""
8593 "This command works the same way as L</find> with the following exceptions:"
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2210
8598 msgid "The resulting list is written to an external file."
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2214
8603 msgid ""
8604 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8605 "L<find(1)> option I<-print0>."
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8610 msgid "This command is not limited in the number of names that it can return."
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2224
8615 msgid "The result list is not sorted."
8616 msgstr ""
8617
8618 #. type: =head2
8619 #: ../fish/guestfish-actions.pod:1374
8620 msgid "findfs-label"
8621 msgstr ""
8622
8623 #. type: verbatim
8624 #: ../fish/guestfish-actions.pod:1376
8625 #, no-wrap
8626 msgid ""
8627 " findfs-label label\n"
8628 "\n"
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2238
8633 msgid ""
8634 "This command searches the filesystems and returns the one which has the "
8635 "given label.  An error is returned if no such filesystem can be found."
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1382
8640 msgid "To find the label of a filesystem, use L</vfs-label>."
8641 msgstr ""
8642
8643 #. type: =head2
8644 #: ../fish/guestfish-actions.pod:1384
8645 msgid "findfs-uuid"
8646 msgstr ""
8647
8648 #. type: verbatim
8649 #: ../fish/guestfish-actions.pod:1386
8650 #, no-wrap
8651 msgid ""
8652 " findfs-uuid uuid\n"
8653 "\n"
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2255
8658 msgid ""
8659 "This command searches the filesystems and returns the one which has the "
8660 "given UUID.  An error is returned if no such filesystem can be found."
8661 msgstr ""
8662
8663 #. type: textblock
8664 #: ../fish/guestfish-actions.pod:1392
8665 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8666 msgstr ""
8667
8668 #. type: =head2
8669 #: ../fish/guestfish-actions.pod:1394
8670 msgid "fsck"
8671 msgstr ""
8672
8673 #. type: verbatim
8674 #: ../fish/guestfish-actions.pod:1396
8675 #, no-wrap
8676 msgid ""
8677 " fsck fstype device\n"
8678 "\n"
8679 msgstr ""
8680
8681 #. type: textblock
8682 #: ../fish/guestfish-actions.pod:1398 ../src/guestfs-actions.pod:2273
8683 msgid ""
8684 "This runs the filesystem checker (fsck) on C<device> which should have "
8685 "filesystem type C<fstype>."
8686 msgstr ""
8687
8688 #. type: textblock
8689 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2276
8690 msgid ""
8691 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8692 "codes from C<fsck>."
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2285
8697 msgid "Multiple status codes can be summed together."
8698 msgstr ""
8699
8700 #. type: textblock
8701 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2289
8702 msgid ""
8703 "A non-zero return code can mean \"success\", for example if errors have been "
8704 "corrected on the filesystem."
8705 msgstr ""
8706
8707 #. type: textblock
8708 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2294
8709 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8710 msgstr ""
8711
8712 #. type: textblock
8713 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2299
8714 msgid ""
8715 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8716 msgstr ""
8717
8718 #. type: =head2
8719 #: ../fish/guestfish-actions.pod:1426
8720 msgid "get-append"
8721 msgstr ""
8722
8723 #. type: verbatim
8724 #: ../fish/guestfish-actions.pod:1428
8725 #, no-wrap
8726 msgid ""
8727 " get-append\n"
8728 "\n"
8729 msgstr ""
8730
8731 #. type: textblock
8732 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2310
8733 msgid ""
8734 "Return the additional kernel options which are added to the guest kernel "
8735 "command line."
8736 msgstr ""
8737
8738 #. type: textblock
8739 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2313
8740 msgid "If C<NULL> then no options are added."
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../fish/guestfish-actions.pod:1435
8745 msgid "get-attach-method"
8746 msgstr ""
8747
8748 #. type: verbatim
8749 #: ../fish/guestfish-actions.pod:1437
8750 #, no-wrap
8751 msgid ""
8752 " get-attach-method\n"
8753 "\n"
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:1439
8758 msgid "Return the current attach method.  See L</set-attach-method>."
8759 msgstr ""
8760
8761 #. type: =head2
8762 #: ../fish/guestfish-actions.pod:1441
8763 msgid "get-autosync"
8764 msgstr ""
8765
8766 #. type: verbatim
8767 #: ../fish/guestfish-actions.pod:1443
8768 #, no-wrap
8769 msgid ""
8770 " get-autosync\n"
8771 "\n"
8772 msgstr ""
8773
8774 #. type: textblock
8775 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2338
8776 msgid "Get the autosync flag."
8777 msgstr ""
8778
8779 #. type: =head2
8780 #: ../fish/guestfish-actions.pod:1447
8781 msgid "get-direct"
8782 msgstr ""
8783
8784 #. type: verbatim
8785 #: ../fish/guestfish-actions.pod:1449
8786 #, no-wrap
8787 msgid ""
8788 " get-direct\n"
8789 "\n"
8790 msgstr ""
8791
8792 #. type: textblock
8793 #: ../fish/guestfish-actions.pod:1451 ../src/guestfs-actions.pod:2349
8794 msgid "Return the direct appliance mode flag."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:1453
8799 msgid "get-e2label"
8800 msgstr ""
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:1455
8804 #, no-wrap
8805 msgid ""
8806 " get-e2label device\n"
8807 "\n"
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:1457 ../src/guestfs-actions.pod:2368
8812 msgid ""
8813 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8814 msgstr ""
8815
8816 #. type: textblock
8817 #: ../fish/guestfish-actions.pod:1460
8818 msgid ""
8819 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8820 "instead."
8821 msgstr ""
8822
8823 #. type: =head2
8824 #: ../fish/guestfish-actions.pod:1467
8825 msgid "get-e2uuid"
8826 msgstr ""
8827
8828 #. type: verbatim
8829 #: ../fish/guestfish-actions.pod:1469
8830 #, no-wrap
8831 msgid ""
8832 " get-e2uuid device\n"
8833 "\n"
8834 msgstr ""
8835
8836 #. type: textblock
8837 #: ../fish/guestfish-actions.pod:1471 ../src/guestfs-actions.pod:2389
8838 msgid ""
8839 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../fish/guestfish-actions.pod:1474
8844 msgid ""
8845 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8846 "instead."
8847 msgstr ""
8848
8849 #. type: =head2
8850 #: ../fish/guestfish-actions.pod:1481
8851 msgid "get-memsize"
8852 msgstr ""
8853
8854 #. type: verbatim
8855 #: ../fish/guestfish-actions.pod:1483
8856 #, no-wrap
8857 msgid ""
8858 " get-memsize\n"
8859 "\n"
8860 msgstr ""
8861
8862 #. type: textblock
8863 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2402
8864 msgid ""
8865 "This gets the memory size in megabytes allocated to the qemu subprocess."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1488
8870 msgid ""
8871 "If L</set-memsize> was not called on this handle, and if "
8872 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8873 "value for memsize."
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1549
8878 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4431
8879 #: ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2501
8880 #: ../src/guestfs-actions.pod:6713 ../src/guestfs-actions.pod:6839
8881 msgid ""
8882 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8883 msgstr ""
8884
8885 #. type: =head2
8886 #: ../fish/guestfish-actions.pod:1495
8887 msgid "get-network"
8888 msgstr ""
8889
8890 #. type: verbatim
8891 #: ../fish/guestfish-actions.pod:1497
8892 #, no-wrap
8893 msgid ""
8894 " get-network\n"
8895 "\n"
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2421
8900 msgid "This returns the enable network flag."
8901 msgstr ""
8902
8903 #. type: =head2
8904 #: ../fish/guestfish-actions.pod:1501
8905 msgid "get-path"
8906 msgstr ""
8907
8908 #. type: verbatim
8909 #: ../fish/guestfish-actions.pod:1503
8910 #, no-wrap
8911 msgid ""
8912 " get-path\n"
8913 "\n"
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1505 ../src/guestfs-actions.pod:2432
8918 msgid "Return the current search path."
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2434
8923 msgid ""
8924 "This is always non-NULL.  If it wasn't set already, then this will return "
8925 "the default path."
8926 msgstr ""
8927
8928 #. type: =head2
8929 #: ../fish/guestfish-actions.pod:1510
8930 msgid "get-pgroup"
8931 msgstr ""
8932
8933 #. type: verbatim
8934 #: ../fish/guestfish-actions.pod:1512
8935 #, no-wrap
8936 msgid ""
8937 " get-pgroup\n"
8938 "\n"
8939 msgstr ""
8940
8941 #. type: textblock
8942 #: ../fish/guestfish-actions.pod:1514 ../src/guestfs-actions.pod:2447
8943 msgid "This returns the process group flag."
8944 msgstr ""
8945
8946 #. type: =head2
8947 #: ../fish/guestfish-actions.pod:1516
8948 msgid "get-pid"
8949 msgstr ""
8950
8951 #. type: =head2
8952 #: ../fish/guestfish-actions.pod:1518
8953 msgid "pid"
8954 msgstr ""
8955
8956 #. type: verbatim
8957 #: ../fish/guestfish-actions.pod:1520
8958 #, no-wrap
8959 msgid ""
8960 " get-pid\n"
8961 "\n"
8962 msgstr ""
8963
8964 #. type: textblock
8965 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2458
8966 msgid ""
8967 "Return the process ID of the qemu subprocess.  If there is no qemu "
8968 "subprocess, then this will return an error."
8969 msgstr ""
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:1525 ../src/guestfs-actions.pod:2461
8973 msgid "This is an internal call used for debugging and testing."
8974 msgstr ""
8975
8976 #. type: =head2
8977 #: ../fish/guestfish-actions.pod:1527
8978 msgid "get-qemu"
8979 msgstr ""
8980
8981 #. type: verbatim
8982 #: ../fish/guestfish-actions.pod:1529
8983 #, no-wrap
8984 msgid ""
8985 " get-qemu\n"
8986 "\n"
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2472
8991 msgid "Return the current qemu binary."
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2474
8996 msgid ""
8997 "This is always non-NULL.  If it wasn't set already, then this will return "
8998 "the default qemu binary name."
8999 msgstr ""
9000
9001 #. type: =head2
9002 #: ../fish/guestfish-actions.pod:1536
9003 msgid "get-recovery-proc"
9004 msgstr ""
9005
9006 #. type: verbatim
9007 #: ../fish/guestfish-actions.pod:1538
9008 #, no-wrap
9009 msgid ""
9010 " get-recovery-proc\n"
9011 "\n"
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1540 ../src/guestfs-actions.pod:2487
9016 msgid "Return the recovery process enabled flag."
9017 msgstr ""
9018
9019 #. type: =head2
9020 #: ../fish/guestfish-actions.pod:1542
9021 msgid "get-selinux"
9022 msgstr ""
9023
9024 #. type: verbatim
9025 #: ../fish/guestfish-actions.pod:1544
9026 #, no-wrap
9027 msgid ""
9028 " get-selinux\n"
9029 "\n"
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:1546
9034 msgid ""
9035 "This returns the current setting of the selinux flag which is passed to the "
9036 "appliance at boot time.  See L</set-selinux>."
9037 msgstr ""
9038
9039 #. type: =head2
9040 #: ../fish/guestfish-actions.pod:1552
9041 msgid "get-smp"
9042 msgstr ""
9043
9044 #. type: verbatim
9045 #: ../fish/guestfish-actions.pod:1554
9046 #, no-wrap
9047 msgid ""
9048 " get-smp\n"
9049 "\n"
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1556 ../src/guestfs-actions.pod:2513
9054 msgid "This returns the number of virtual CPUs assigned to the appliance."
9055 msgstr ""
9056
9057 #. type: =head2
9058 #: ../fish/guestfish-actions.pod:1558
9059 msgid "get-state"
9060 msgstr ""
9061
9062 #. type: verbatim
9063 #: ../fish/guestfish-actions.pod:1560
9064 #, no-wrap
9065 msgid ""
9066 " get-state\n"
9067 "\n"
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2524
9072 msgid ""
9073 "This returns the current state as an opaque integer.  This is only useful "
9074 "for printing debug and internal error messages."
9075 msgstr ""
9076
9077 #. type: textblock
9078 #: ../fish/guestfish-actions.pod:1565 ../fish/guestfish-actions.pod:2524
9079 #: ../fish/guestfish-actions.pod:2542 ../fish/guestfish-actions.pod:2580
9080 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:2527
9081 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3875
9082 #: ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:3963
9083 msgid "For more information on states, see L<guestfs(3)>."
9084 msgstr ""
9085
9086 #. type: =head2
9087 #: ../fish/guestfish-actions.pod:1567
9088 msgid "get-trace"
9089 msgstr ""
9090
9091 #. type: verbatim
9092 #: ../fish/guestfish-actions.pod:1569
9093 #, no-wrap
9094 msgid ""
9095 " get-trace\n"
9096 "\n"
9097 msgstr ""
9098
9099 #. type: textblock
9100 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2538
9101 msgid "Return the command trace flag."
9102 msgstr ""
9103
9104 #. type: =head2
9105 #: ../fish/guestfish-actions.pod:1573
9106 msgid "get-umask"
9107 msgstr ""
9108
9109 #. type: verbatim
9110 #: ../fish/guestfish-actions.pod:1575
9111 #, no-wrap
9112 msgid ""
9113 " get-umask\n"
9114 "\n"
9115 msgstr ""
9116
9117 #. type: textblock
9118 #: ../fish/guestfish-actions.pod:1577
9119 msgid ""
9120 "Return the current umask.  By default the umask is C<022> unless it has been "
9121 "set by calling L</umask>."
9122 msgstr ""
9123
9124 #. type: =head2
9125 #: ../fish/guestfish-actions.pod:1580
9126 msgid "get-verbose"
9127 msgstr ""
9128
9129 #. type: verbatim
9130 #: ../fish/guestfish-actions.pod:1582
9131 #, no-wrap
9132 msgid ""
9133 " get-verbose\n"
9134 "\n"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2561
9139 msgid "This returns the verbose messages flag."
9140 msgstr ""
9141
9142 #. type: =head2
9143 #: ../fish/guestfish-actions.pod:1586
9144 msgid "getcon"
9145 msgstr ""
9146
9147 #. type: verbatim
9148 #: ../fish/guestfish-actions.pod:1588
9149 #, no-wrap
9150 msgid ""
9151 " getcon\n"
9152 "\n"
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:1590 ../src/guestfs-actions.pod:2572
9157 msgid "This gets the SELinux security context of the daemon."
9158 msgstr ""
9159
9160 #. type: textblock
9161 #: ../fish/guestfish-actions.pod:1592
9162 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9163 msgstr ""
9164
9165 #. type: =head2
9166 #: ../fish/guestfish-actions.pod:1595
9167 msgid "getxattr"
9168 msgstr ""
9169
9170 #. type: verbatim
9171 #: ../fish/guestfish-actions.pod:1597
9172 #, no-wrap
9173 msgid ""
9174 " getxattr path name\n"
9175 "\n"
9176 msgstr ""
9177
9178 #. type: textblock
9179 #: ../fish/guestfish-actions.pod:1599
9180 msgid ""
9181 "Get a single extended attribute from file C<path> named C<name>.  This call "
9182 "follows symlinks.  If you want to lookup an extended attribute for the "
9183 "symlink itself, use L</lgetxattr>."
9184 msgstr ""
9185
9186 #. type: textblock
9187 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:2669
9188 msgid ""
9189 "Normally it is better to get all extended attributes from a file in one go "
9190 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9191 "buggy and do not provide a way to list out attributes.  For these "
9192 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9193 "attributes you want in advance and call this function."
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:1610 ../fish/guestfish-actions.pod:2676
9198 #: ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:4096
9199 msgid ""
9200 "Extended attribute values are blobs of binary data.  If there is no extended "
9201 "attribute named C<name>, this returns an error."
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:1613
9206 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9207 msgstr ""
9208
9209 #. type: =head2
9210 #: ../fish/guestfish-actions.pod:1615
9211 msgid "getxattrs"
9212 msgstr ""
9213
9214 #. type: verbatim
9215 #: ../fish/guestfish-actions.pod:1617
9216 #, no-wrap
9217 msgid ""
9218 " getxattrs path\n"
9219 "\n"
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2618
9224 msgid ""
9225 "This call lists the extended attributes of the file or directory C<path>."
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2621
9230 msgid ""
9231 "At the system call level, this is a combination of the L<listxattr(2)> and "
9232 "L<getxattr(2)> calls."
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../fish/guestfish-actions.pod:1625
9237 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9238 msgstr ""
9239
9240 #. type: =head2
9241 #: ../fish/guestfish-actions.pod:1627
9242 msgid "glob-expand"
9243 msgstr ""
9244
9245 #. type: verbatim
9246 #: ../fish/guestfish-actions.pod:1629
9247 #, no-wrap
9248 msgid ""
9249 " glob-expand pattern\n"
9250 "\n"
9251 msgstr ""
9252
9253 #. type: textblock
9254 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2638
9255 msgid ""
9256 "This command searches for all the pathnames matching C<pattern> according to "
9257 "the wildcard expansion rules used by the shell."
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2642
9262 msgid ""
9263 "If no paths match, then this returns an empty list (note: not an error)."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:1638 ../src/guestfs-actions.pod:2645
9268 msgid ""
9269 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9270 "GLOB_BRACE>.  See that manual page for more details."
9271 msgstr ""
9272
9273 #. type: =head2
9274 #: ../fish/guestfish-actions.pod:1642
9275 msgid "grep"
9276 msgstr ""
9277
9278 #. type: verbatim
9279 #: ../fish/guestfish-actions.pod:1644
9280 #, no-wrap
9281 msgid ""
9282 " grep regex path\n"
9283 "\n"
9284 msgstr ""
9285
9286 #. type: textblock
9287 #: ../fish/guestfish-actions.pod:1646 ../src/guestfs-actions.pod:2662
9288 msgid "This calls the external C<grep> program and returns the matching lines."
9289 msgstr ""
9290
9291 #. type: =head2
9292 #: ../fish/guestfish-actions.pod:1652
9293 msgid "grepi"
9294 msgstr ""
9295
9296 #. type: verbatim
9297 #: ../fish/guestfish-actions.pod:1654
9298 #, no-wrap
9299 msgid ""
9300 " grepi regex path\n"
9301 "\n"
9302 msgstr ""
9303
9304 #. type: textblock
9305 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2681
9306 msgid ""
9307 "This calls the external C<grep -i> program and returns the matching lines."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:1662
9312 msgid "grub-install"
9313 msgstr ""
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:1664
9317 #, no-wrap
9318 msgid ""
9319 " grub-install root device\n"
9320 "\n"
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:1666 ../src/guestfs-actions.pod:2700
9325 msgid ""
9326 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9327 "with the root directory being C<root>."
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1675 ../src/guestfs-actions.pod:2709
9332 msgid ""
9333 "There is currently no way in the API to install grub2, which is used by most "
9334 "modern Linux guests.  It is possible to run the grub2 command from the "
9335 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9336 msgstr ""
9337
9338 #. type: textblock
9339 #: ../fish/guestfish-actions.pod:1682 ../src/guestfs-actions.pod:2716
9340 msgid ""
9341 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9342 "compatible with itself, so this only works in rather narrow circumstances.  "
9343 "Careful testing with each guest version is advisable."
9344 msgstr ""
9345
9346 #. type: textblock
9347 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2723
9348 msgid ""
9349 "If grub-install reports the error \"No suitable drive was found in the "
9350 "generated device map.\" it may be that you need to create a C</boot/grub/"
9351 "device.map> file first that contains the mapping between grub device names "
9352 "and Linux device names.  It is usually sufficient to create a file "
9353 "containing:"
9354 msgstr ""
9355
9356 #. type: verbatim
9357 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2730
9358 #, no-wrap
9359 msgid ""
9360 " (hd0) /dev/vda\n"
9361 "\n"
9362 msgstr ""
9363
9364 #. type: textblock
9365 #: ../fish/guestfish-actions.pod:1698 ../src/guestfs-actions.pod:2732
9366 msgid "replacing C</dev/vda> with the name of the installation device."
9367 msgstr ""
9368
9369 #. type: =head2
9370 #: ../fish/guestfish-actions.pod:1702
9371 msgid "head"
9372 msgstr ""
9373
9374 #. type: verbatim
9375 #: ../fish/guestfish-actions.pod:1704
9376 #, no-wrap
9377 msgid ""
9378 " head path\n"
9379 "\n"
9380 msgstr ""
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:1706 ../src/guestfs-actions.pod:2746
9384 msgid ""
9385 "This command returns up to the first 10 lines of a file as a list of strings."
9386 msgstr ""
9387
9388 #. type: =head2
9389 #: ../fish/guestfish-actions.pod:1712
9390 msgid "head-n"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:1714
9395 #, no-wrap
9396 msgid ""
9397 " head-n nrlines path\n"
9398 "\n"
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2765
9403 msgid ""
9404 "If the parameter C<nrlines> is a positive number, this returns the first "
9405 "C<nrlines> lines of the file C<path>."
9406 msgstr ""
9407
9408 #. type: textblock
9409 #: ../fish/guestfish-actions.pod:1719 ../src/guestfs-actions.pod:2768
9410 msgid ""
9411 "If the parameter C<nrlines> is a negative number, this returns lines from "
9412 "the file C<path>, excluding the last C<nrlines> lines."
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:4821
9417 #: ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:7427
9418 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9419 msgstr ""
9420
9421 #. type: =head2
9422 #: ../fish/guestfish-actions.pod:1727
9423 msgid "hexdump"
9424 msgstr ""
9425
9426 #. type: verbatim
9427 #: ../fish/guestfish-actions.pod:1729
9428 #, no-wrap
9429 msgid ""
9430 " hexdump path\n"
9431 "\n"
9432 msgstr ""
9433
9434 #. type: textblock
9435 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2788
9436 msgid ""
9437 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9438 "readable, canonical hex dump of the file."
9439 msgstr ""
9440
9441 #. type: =head2
9442 #: ../fish/guestfish-actions.pod:1737
9443 msgid "initrd-cat"
9444 msgstr ""
9445
9446 #. type: verbatim
9447 #: ../fish/guestfish-actions.pod:1739
9448 #, no-wrap
9449 msgid ""
9450 " initrd-cat initrdpath filename\n"
9451 "\n"
9452 msgstr ""
9453
9454 #. type: textblock
9455 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2807
9456 msgid ""
9457 "This command unpacks the file C<filename> from the initrd file called "
9458 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9459 "character."
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2811
9464 msgid ""
9465 "For example, in guestfish you could use the following command to examine the "
9466 "boot script (usually called C</init>)  contained in a Linux initrd or "
9467 "initramfs image:"
9468 msgstr ""
9469
9470 #. type: verbatim
9471 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2815
9472 #, no-wrap
9473 msgid ""
9474 " initrd-cat /boot/initrd-<version>.img init\n"
9475 "\n"
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1751
9480 msgid "See also L</initrd-list>."
9481 msgstr ""
9482
9483 #. type: =head2
9484 #: ../fish/guestfish-actions.pod:1756
9485 msgid "initrd-list"
9486 msgstr ""
9487
9488 #. type: verbatim
9489 #: ../fish/guestfish-actions.pod:1758
9490 #, no-wrap
9491 msgid ""
9492 " initrd-list path\n"
9493 "\n"
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2834
9498 msgid "This command lists out files contained in an initrd."
9499 msgstr ""
9500
9501 #. type: textblock
9502 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2836
9503 msgid ""
9504 "The files are listed without any initial C</> character.  The files are "
9505 "listed in the order they appear (not necessarily alphabetical).  Directory "
9506 "names are listed as separate items."
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2840
9511 msgid ""
9512 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9513 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9514 "files)."
9515 msgstr ""
9516
9517 #. type: =head2
9518 #: ../fish/guestfish-actions.pod:1770
9519 msgid "inotify-add-watch"
9520 msgstr ""
9521
9522 #. type: verbatim
9523 #: ../fish/guestfish-actions.pod:1772
9524 #, no-wrap
9525 msgid ""
9526 " inotify-add-watch path mask\n"
9527 "\n"
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2857
9532 msgid "Watch C<path> for the events listed in C<mask>."
9533 msgstr ""
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2859
9537 msgid ""
9538 "Note that if C<path> is a directory then events within that directory are "
9539 "watched, but this does I<not> happen recursively (in subdirectories)."
9540 msgstr ""
9541
9542 #. type: textblock
9543 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2863
9544 msgid ""
9545 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9546 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9547 msgstr ""
9548
9549 #. type: =head2
9550 #: ../fish/guestfish-actions.pod:1784
9551 msgid "inotify-close"
9552 msgstr ""
9553
9554 #. type: verbatim
9555 #: ../fish/guestfish-actions.pod:1786
9556 #, no-wrap
9557 msgid ""
9558 " inotify-close\n"
9559 "\n"
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2876
9564 msgid ""
9565 "This closes the inotify handle which was previously opened by inotify_init.  "
9566 "It removes all watches, throws away any pending events, and deallocates all "
9567 "resources."
9568 msgstr ""
9569
9570 #. type: =head2
9571 #: ../fish/guestfish-actions.pod:1792
9572 msgid "inotify-files"
9573 msgstr ""
9574
9575 #. type: verbatim
9576 #: ../fish/guestfish-actions.pod:1794
9577 #, no-wrap
9578 msgid ""
9579 " inotify-files\n"
9580 "\n"
9581 msgstr ""
9582
9583 #. type: textblock
9584 #: ../fish/guestfish-actions.pod:1796
9585 msgid ""
9586 "This function is a helpful wrapper around L</inotify-read> which just "
9587 "returns a list of pathnames of objects that were touched.  The returned "
9588 "pathnames are sorted and deduplicated."
9589 msgstr ""
9590
9591 #. type: =head2
9592 #: ../fish/guestfish-actions.pod:1800
9593 msgid "inotify-init"
9594 msgstr ""
9595
9596 #. type: verbatim
9597 #: ../fish/guestfish-actions.pod:1802
9598 #, no-wrap
9599 msgid ""
9600 " inotify-init maxevents\n"
9601 "\n"
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2905
9606 msgid ""
9607 "This command creates a new inotify handle.  The inotify subsystem can be "
9608 "used to notify events which happen to objects in the guest filesystem."
9609 msgstr ""
9610
9611 #. type: textblock
9612 #: ../fish/guestfish-actions.pod:1808
9613 msgid ""
9614 "C<maxevents> is the maximum number of events which will be queued up between "
9615 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9616 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9617 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9618 "but records the fact that it threw them away by setting a flag "
9619 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:1818
9624 msgid ""
9625 "Before any events are generated, you have to add some watches to the "
9626 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9627 "L</inotify-watch-all>."
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1824
9632 msgid ""
9633 "Queued up events should be read periodically by calling L</inotify-read> (or "
9634 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9635 "If you don't read the events out often enough then you risk the internal "
9636 "queue overflowing."
9637 msgstr ""
9638
9639 #. type: textblock
9640 #: ../fish/guestfish-actions.pod:1831
9641 msgid ""
9642 "The handle should be closed after use by calling L</inotify-close>.  This "
9643 "also removes any watches automatically."
9644 msgstr ""
9645
9646 #. type: textblock
9647 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2936
9648 msgid ""
9649 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9650 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9651 "that there is one global inotify handle per libguestfs instance."
9652 msgstr ""
9653
9654 #. type: =head2
9655 #: ../fish/guestfish-actions.pod:1840
9656 msgid "inotify-read"
9657 msgstr ""
9658
9659 #. type: verbatim
9660 #: ../fish/guestfish-actions.pod:1842
9661 #, no-wrap
9662 msgid ""
9663 " inotify-read\n"
9664 "\n"
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2950
9669 msgid ""
9670 "Return the complete queue of events that have happened since the previous "
9671 "read call."
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2953
9676 msgid "If no events have happened, this returns an empty list."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2955
9681 msgid ""
9682 "I<Note>: In order to make sure that all events have been read, you must call "
9683 "this function repeatedly until it returns an empty list.  The reason is that "
9684 "the call will read events up to the maximum appliance-to-host message size "
9685 "and leave remaining events in the queue."
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../fish/guestfish-actions.pod:1855
9690 msgid "inotify-rm-watch"
9691 msgstr ""
9692
9693 #. type: verbatim
9694 #: ../fish/guestfish-actions.pod:1857
9695 #, no-wrap
9696 msgid ""
9697 " inotify-rm-watch wd\n"
9698 "\n"
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1859
9703 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9704 msgstr ""
9705
9706 #. type: =head2
9707 #: ../fish/guestfish-actions.pod:1862
9708 msgid "inspect-get-arch"
9709 msgstr ""
9710
9711 #. type: verbatim
9712 #: ../fish/guestfish-actions.pod:1864
9713 #, no-wrap
9714 msgid ""
9715 " inspect-get-arch root\n"
9716 "\n"
9717 msgstr ""
9718
9719 #. type: textblock
9720 #: ../fish/guestfish-actions.pod:1866
9721 msgid ""
9722 "This returns the architecture of the inspected operating system.  The "
9723 "possible return values are listed under L</file-architecture>."
9724 msgstr ""
9725
9726 #. type: textblock
9727 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2990
9728 msgid ""
9729 "If the architecture could not be determined, then the string C<unknown> is "
9730 "returned."
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:1968
9735 #: ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2059
9736 #: ../fish/guestfish-actions.pod:2143 ../fish/guestfish-actions.pod:2205
9737 #: ../fish/guestfish-actions.pod:2226 ../fish/guestfish-actions.pod:2240
9738 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2316
9739 #: ../fish/guestfish-actions.pod:2329 ../fish/guestfish-actions.pod:2342
9740 #: ../fish/guestfish-actions.pod:2352 ../fish/guestfish-actions.pod:2362
9741 #: ../fish/guestfish-actions.pod:2374 ../fish/guestfish-actions.pod:2470
9742 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:2993
9743 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3199
9744 #: ../src/guestfs-actions.pod:3218 ../src/guestfs-actions.pod:3349
9745 #: ../src/guestfs-actions.pod:3433 ../src/guestfs-actions.pod:3461
9746 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3535
9747 #: ../src/guestfs-actions.pod:3579 ../src/guestfs-actions.pod:3599
9748 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3636
9749 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3670
9750 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:3813
9751 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9752 msgstr ""
9753
9754 #. type: =head2
9755 #: ../fish/guestfish-actions.pod:1875
9756 msgid "inspect-get-distro"
9757 msgstr ""
9758
9759 #. type: verbatim
9760 #: ../fish/guestfish-actions.pod:1877
9761 #, no-wrap
9762 msgid ""
9763 " inspect-get-distro root\n"
9764 "\n"
9765 msgstr ""
9766
9767 #. type: textblock
9768 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:3006
9769 msgid ""
9770 "This returns the distro (distribution) of the inspected operating system."
9771 msgstr ""
9772
9773 #. type: textblock
9774 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:3009
9775 msgid "Currently defined distros are:"
9776 msgstr ""
9777
9778 #. type: =item
9779 #: ../fish/guestfish-actions.pod:1886 ../src/guestfs-actions.pod:3013
9780 msgid "\"archlinux\""
9781 msgstr ""
9782
9783 #. type: textblock
9784 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:3015
9785 msgid "Arch Linux."
9786 msgstr ""
9787
9788 #. type: =item
9789 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3017
9790 msgid "\"centos\""
9791 msgstr ""
9792
9793 #. type: textblock
9794 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:3019
9795 msgid "CentOS."
9796 msgstr ""
9797
9798 #. type: =item
9799 #: ../fish/guestfish-actions.pod:1894 ../src/guestfs-actions.pod:3021
9800 msgid "\"debian\""
9801 msgstr ""
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:3023
9805 msgid "Debian."
9806 msgstr ""
9807
9808 #. type: =item
9809 #: ../fish/guestfish-actions.pod:1898 ../src/guestfs-actions.pod:3025
9810 msgid "\"fedora\""
9811 msgstr ""
9812
9813 #. type: textblock
9814 #: ../fish/guestfish-actions.pod:1900 ../src/guestfs-actions.pod:3027
9815 msgid "Fedora."
9816 msgstr ""
9817
9818 #. type: =item
9819 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:3029
9820 msgid "\"gentoo\""
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:3031
9825 msgid "Gentoo."
9826 msgstr ""
9827
9828 #. type: =item
9829 #: ../fish/guestfish-actions.pod:1906 ../src/guestfs-actions.pod:3033
9830 msgid "\"linuxmint\""
9831 msgstr ""
9832
9833 #. type: textblock
9834 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:3035
9835 msgid "Linux Mint."
9836 msgstr ""
9837
9838 #. type: =item
9839 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:3037
9840 msgid "\"mageia\""
9841 msgstr ""
9842
9843 #. type: textblock
9844 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3039
9845 msgid "Mageia."
9846 msgstr ""
9847
9848 #. type: =item
9849 #: ../fish/guestfish-actions.pod:1914 ../src/guestfs-actions.pod:3041
9850 msgid "\"mandriva\""
9851 msgstr ""
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3043
9855 msgid "Mandriva."
9856 msgstr ""
9857
9858 #. type: =item
9859 #: ../fish/guestfish-actions.pod:1918 ../src/guestfs-actions.pod:3045
9860 msgid "\"meego\""
9861 msgstr ""
9862
9863 #. type: textblock
9864 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:3047
9865 msgid "MeeGo."
9866 msgstr ""
9867
9868 #. type: =item
9869 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:3049
9870 msgid "\"opensuse\""
9871 msgstr ""
9872
9873 #. type: textblock
9874 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3051
9875 msgid "OpenSUSE."
9876 msgstr ""
9877
9878 #. type: =item
9879 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3053
9880 msgid "\"pardus\""
9881 msgstr ""
9882
9883 #. type: textblock
9884 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3055
9885 msgid "Pardus."
9886 msgstr ""
9887
9888 #. type: =item
9889 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:3057
9890 msgid "\"redhat-based\""
9891 msgstr ""
9892
9893 #. type: textblock
9894 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3059
9895 msgid "Some Red Hat-derived distro."
9896 msgstr ""
9897
9898 #. type: =item
9899 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3061
9900 msgid "\"rhel\""
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3063
9905 msgid "Red Hat Enterprise Linux."
9906 msgstr ""
9907
9908 #. type: =item
9909 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3065
9910 msgid "\"scientificlinux\""
9911 msgstr ""
9912
9913 #. type: textblock
9914 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3067
9915 msgid "Scientific Linux."
9916 msgstr ""
9917
9918 #. type: =item
9919 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3069
9920 msgid "\"slackware\""
9921 msgstr ""
9922
9923 #. type: textblock
9924 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3071
9925 msgid "Slackware."
9926 msgstr ""
9927
9928 #. type: =item
9929 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3073
9930 msgid "\"ttylinux\""
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3075
9935 msgid "ttylinux."
9936 msgstr ""
9937
9938 #. type: =item
9939 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3077
9940 msgid "\"ubuntu\""
9941 msgstr ""
9942
9943 #. type: textblock
9944 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3079
9945 msgid "Ubuntu."
9946 msgstr ""
9947
9948 #. type: =item
9949 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:2038
9950 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3081
9951 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3570
9952 msgid "\"unknown\""
9953 msgstr ""
9954
9955 #. type: textblock
9956 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3083
9957 msgid "The distro could not be determined."
9958 msgstr ""
9959
9960 #. type: =item
9961 #: ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:2295
9962 #: ../src/guestfs-actions.pod:3085 ../src/guestfs-actions.pod:3558
9963 msgid "\"windows\""
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3087
9968 msgid ""
9969 "Windows does not have distributions.  This string is returned if the OS type "
9970 "is Windows."
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:2044
9975 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3092
9976 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3576
9977 msgid ""
9978 "Future versions of libguestfs may return other strings here.  The caller "
9979 "should be prepared to handle any string."
9980 msgstr ""
9981
9982 #. type: =head2
9983 #: ../fish/guestfish-actions.pod:1970
9984 msgid "inspect-get-drive-mappings"
9985 msgstr ""
9986
9987 #. type: verbatim
9988 #: ../fish/guestfish-actions.pod:1972
9989 #, no-wrap
9990 msgid ""
9991 " inspect-get-drive-mappings root\n"
9992 "\n"
9993 msgstr ""
9994
9995 #. type: textblock
9996 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3108
9997 msgid ""
9998 "This call is useful for Windows which uses a primitive system of assigning "
9999 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10000 "Windows Registry to find out how disks/partitions are mapped to drive "
10001 "letters, and returns a hash table as in the example below:"
10002 msgstr ""
10003
10004 #. type: verbatim
10005 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3114
10006 #, no-wrap
10007 msgid ""
10008 " C      =>     /dev/vda2\n"
10009 " E      =>     /dev/vdb1\n"
10010 " F      =>     /dev/vdc1\n"
10011 "\n"
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3118
10016 msgid ""
10017 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10018 "and just contains the drive letter, without the customary colon separator "
10019 "character."
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3122
10024 msgid ""
10025 "In future we may support other operating systems that also used drive "
10026 "letters, but the keys for those might not be case insensitive and might be "
10027 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10028 "C<h1> etc."
10029 msgstr ""
10030
10031 #. type: textblock
10032 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3127
10033 msgid ""
10034 "For Windows guests, currently only hard drive mappings are returned.  "
10035 "Removable disks (eg. DVD-ROMs) are ignored."
10036 msgstr ""
10037
10038 #. type: textblock
10039 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3130
10040 msgid ""
10041 "For guests that do not use drive mappings, or if the drive mappings could "
10042 "not be determined, this returns an empty hash table."
10043 msgstr ""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:1999
10047 msgid ""
10048 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10049 "get-mountpoints>, L</inspect-get-filesystems>."
10050 msgstr ""
10051
10052 #. type: =head2
10053 #: ../fish/guestfish-actions.pod:2003
10054 msgid "inspect-get-filesystems"
10055 msgstr ""
10056
10057 #. type: verbatim
10058 #: ../fish/guestfish-actions.pod:2005
10059 #, no-wrap
10060 msgid ""
10061 " inspect-get-filesystems root\n"
10062 "\n"
10063 msgstr ""
10064
10065 #. type: textblock
10066 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
10067 msgid ""
10068 "This returns a list of all the filesystems that we think are associated with "
10069 "this operating system.  This includes the root filesystem, other ordinary "
10070 "filesystems, and non-mounted devices like swap partitions."
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../fish/guestfish-actions.pod:2012 ../src/guestfs-actions.pod:3156
10075 msgid ""
10076 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10077 "to be shared between operating systems."
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:2015
10082 msgid ""
10083 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10084 "get-mountpoints>."
10085 msgstr ""
10086
10087 #. type: =head2
10088 #: ../fish/guestfish-actions.pod:2018
10089 msgid "inspect-get-format"
10090 msgstr ""
10091
10092 #. type: verbatim
10093 #: ../fish/guestfish-actions.pod:2020
10094 #, no-wrap
10095 msgid ""
10096 " inspect-get-format root\n"
10097 "\n"
10098 msgstr ""
10099
10100 #. type: textblock
10101 #: ../fish/guestfish-actions.pod:2022 ../src/guestfs-actions.pod:3174
10102 msgid ""
10103 "This returns the format of the inspected operating system.  You can use it "
10104 "to detect install images, live CDs and similar."
10105 msgstr ""
10106
10107 #. type: textblock
10108 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3177
10109 msgid "Currently defined formats are:"
10110 msgstr ""
10111
10112 #. type: =item
10113 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3181
10114 msgid "\"installed\""
10115 msgstr ""
10116
10117 #. type: textblock
10118 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:3183
10119 msgid "This is an installed operating system."
10120 msgstr ""
10121
10122 #. type: =item
10123 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3185
10124 msgid "\"installer\""
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3187
10129 msgid ""
10130 "The disk image being inspected is not an installed operating system, but a "
10131 "I<bootable> install disk, live CD, or similar."
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3192
10136 msgid "The format of this disk image is not known."
10137 msgstr ""
10138
10139 #. type: =head2
10140 #: ../fish/guestfish-actions.pod:2049
10141 msgid "inspect-get-hostname"
10142 msgstr ""
10143
10144 #. type: verbatim
10145 #: ../fish/guestfish-actions.pod:2051
10146 #, no-wrap
10147 msgid ""
10148 " inspect-get-hostname root\n"
10149 "\n"
10150 msgstr ""
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3212
10154 msgid ""
10155 "This function returns the hostname of the operating system as found by "
10156 "inspection of the guest's configuration files."
10157 msgstr ""
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:2056 ../src/guestfs-actions.pod:3215
10161 msgid ""
10162 "If the hostname could not be determined, then the string C<unknown> is "
10163 "returned."
10164 msgstr ""
10165
10166 #. type: =head2
10167 #: ../fish/guestfish-actions.pod:2061
10168 msgid "inspect-get-icon"
10169 msgstr ""
10170
10171 #. type: verbatim
10172 #: ../fish/guestfish-actions.pod:2063
10173 #, no-wrap
10174 msgid ""
10175 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10176 "\n"
10177 msgstr ""
10178
10179 #. type: textblock
10180 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3241
10181 msgid ""
10182 "This function returns an icon corresponding to the inspected operating "
10183 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10184 "to PNG if necessary)."
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:2069 ../src/guestfs-actions.pod:3245
10189 msgid ""
10190 "If it was not possible to get an icon this function returns a zero-length "
10191 "(non-NULL) buffer.  I<Callers must check for this case>."
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:2072 ../src/guestfs-actions.pod:3248
10196 msgid ""
10197 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10198 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10199 "this file will be returned.  You can disable favicons by passing the "
10200 "optional C<favicon> boolean as false (default is true)."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:2078 ../src/guestfs-actions.pod:3254
10205 msgid ""
10206 "If finding the favicon fails, then we look in other places in the guest for "
10207 "a suitable icon."
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3257
10212 msgid ""
10213 "If the optional C<highquality> boolean is true then only high quality icons "
10214 "are returned, which means only icons of high resolution with an alpha "
10215 "channel.  The default (false) is to return any icon we can, even if it is of "
10216 "substandard quality."
10217 msgstr ""
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:2092 ../src/guestfs-actions.pod:3268
10221 msgid ""
10222 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10223 "before you call this, since it needs to read information from the guest "
10224 "filesystem during the call."
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3274
10229 msgid ""
10230 "B<Security:> The icon data comes from the untrusted guest, and should be "
10231 "treated with caution.  PNG files have been known to contain exploits.  "
10232 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10233 "trying to process or display the icon."
10234 msgstr ""
10235
10236 #. type: textblock
10237 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3282
10238 msgid ""
10239 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10240 "tries to return the largest, highest quality icon available.  The "
10241 "application must scale the icon to the required size."
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2113 ../src/guestfs-actions.pod:3289
10246 msgid ""
10247 "Extracting icons from Windows guests requires the external C<wrestool> "
10248 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10249 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10250 "installed separately."
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2120 ../src/guestfs-actions.pod:3296
10255 msgid ""
10256 "Operating system icons are usually trademarks.  Seek legal advice before "
10257 "using trademarks in applications."
10258 msgstr ""
10259
10260 #. type: =head2
10261 #: ../fish/guestfish-actions.pod:2127
10262 msgid "inspect-get-major-version"
10263 msgstr ""
10264
10265 #. type: verbatim
10266 #: ../fish/guestfish-actions.pod:2129
10267 #, no-wrap
10268 msgid ""
10269 " inspect-get-major-version root\n"
10270 "\n"
10271 msgstr ""
10272
10273 #. type: textblock
10274 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3337
10275 msgid ""
10276 "This returns the major version number of the inspected operating system."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2134 ../src/guestfs-actions.pod:3340
10281 msgid ""
10282 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10283 "popular public names used by the operating system.  Notably the operating "
10284 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10285 "1).  You can find out the real versions corresponding to releases of Windows "
10286 "by consulting Wikipedia or MSDN."
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2152
10291 #: ../src/guestfs-actions.pod:3347 ../src/guestfs-actions.pod:3364
10292 msgid "If the version could not be determined, then C<0> is returned."
10293 msgstr ""
10294
10295 #. type: =head2
10296 #: ../fish/guestfish-actions.pod:2145
10297 msgid "inspect-get-minor-version"
10298 msgstr ""
10299
10300 #. type: verbatim
10301 #: ../fish/guestfish-actions.pod:2147
10302 #, no-wrap
10303 msgid ""
10304 " inspect-get-minor-version root\n"
10305 "\n"
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3361
10310 msgid ""
10311 "This returns the minor version number of the inspected operating system."
10312 msgstr ""
10313
10314 #. type: textblock
10315 #: ../fish/guestfish-actions.pod:2154
10316 msgid ""
10317 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10318 "get-major-version>."
10319 msgstr ""
10320
10321 #. type: =head2
10322 #: ../fish/guestfish-actions.pod:2157
10323 msgid "inspect-get-mountpoints"
10324 msgstr ""
10325
10326 #. type: verbatim
10327 #: ../fish/guestfish-actions.pod:2159
10328 #, no-wrap
10329 msgid ""
10330 " inspect-get-mountpoints root\n"
10331 "\n"
10332 msgstr ""
10333
10334 #. type: textblock
10335 #: ../fish/guestfish-actions.pod:2161 ../src/guestfs-actions.pod:3379
10336 msgid ""
10337 "This returns a hash of where we think the filesystems associated with this "
10338 "operating system should be mounted.  Callers should note that this is at "
10339 "best an educated guess made by reading configuration files such as C</etc/"
10340 "fstab>.  I<In particular note> that this may return filesystems which are "
10341 "non-existent or not mountable and callers should be prepared to handle or "
10342 "ignore failures if they try to mount them."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3388
10347 msgid ""
10348 "Each element in the returned hashtable has a key which is the path of the "
10349 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10350 "mounted there (eg. C</dev/sda1>)."
10351 msgstr ""
10352
10353 #. type: textblock
10354 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3393
10355 msgid ""
10356 "Non-mounted devices such as swap devices are I<not> returned in this list."
10357 msgstr ""
10358
10359 #. type: textblock
10360 #: ../fish/guestfish-actions.pod:2178
10361 msgid ""
10362 "For operating systems like Windows which still use drive letters, this call "
10363 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10364 "information about the mapping of drive letters to partitions, see L</inspect-"
10365 "get-drive-mappings>."
10366 msgstr ""
10367
10368 #. type: textblock
10369 #: ../fish/guestfish-actions.pod:2184
10370 msgid ""
10371 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10372 "get-filesystems>."
10373 msgstr ""
10374
10375 #. type: =head2
10376 #: ../fish/guestfish-actions.pod:2187
10377 msgid "inspect-get-package-format"
10378 msgstr ""
10379
10380 #. type: verbatim
10381 #: ../fish/guestfish-actions.pod:2189
10382 #, no-wrap
10383 msgid ""
10384 " inspect-get-package-format root\n"
10385 "\n"
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../fish/guestfish-actions.pod:2191
10390 msgid ""
10391 "This function and L</inspect-get-package-management> return the package "
10392 "format and package management tool used by the inspected operating system.  "
10393 "For example for Fedora these functions would return C<rpm> (package format) "
10394 "and C<yum> (package management)."
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3425
10399 msgid ""
10400 "This returns the string C<unknown> if we could not determine the package "
10401 "format I<or> if the operating system does not have a real packaging system "
10402 "(eg. Windows)."
10403 msgstr ""
10404
10405 #. type: textblock
10406 #: ../fish/guestfish-actions.pod:2201 ../src/guestfs-actions.pod:3429
10407 msgid ""
10408 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10409 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10410 msgstr ""
10411
10412 #. type: =head2
10413 #: ../fish/guestfish-actions.pod:2207
10414 msgid "inspect-get-package-management"
10415 msgstr ""
10416
10417 #. type: verbatim
10418 #: ../fish/guestfish-actions.pod:2209
10419 #, no-wrap
10420 msgid ""
10421 " inspect-get-package-management root\n"
10422 "\n"
10423 msgstr ""
10424
10425 #. type: textblock
10426 #: ../fish/guestfish-actions.pod:2211
10427 msgid ""
10428 "L</inspect-get-package-format> and this function return the package format "
10429 "and package management tool used by the inspected operating system.  For "
10430 "example for Fedora these functions would return C<rpm> (package format) and "
10431 "C<yum> (package management)."
10432 msgstr ""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:3452
10436 msgid ""
10437 "This returns the string C<unknown> if we could not determine the package "
10438 "management tool I<or> if the operating system does not have a real packaging "
10439 "system (eg. Windows)."
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3456
10444 msgid ""
10445 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10446 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10447 "versions of libguestfs may return other strings."
10448 msgstr ""
10449
10450 #. type: =head2
10451 #: ../fish/guestfish-actions.pod:2228
10452 msgid "inspect-get-product-name"
10453 msgstr ""
10454
10455 #. type: verbatim
10456 #: ../fish/guestfish-actions.pod:2230
10457 #, no-wrap
10458 msgid ""
10459 " inspect-get-product-name root\n"
10460 "\n"
10461 msgstr ""
10462
10463 #. type: textblock
10464 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3474
10465 msgid ""
10466 "This returns the product name of the inspected operating system.  The "
10467 "product name is generally some freeform string which can be displayed to the "
10468 "user, but should not be parsed by programs."
10469 msgstr ""
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3479
10473 msgid ""
10474 "If the product name could not be determined, then the string C<unknown> is "
10475 "returned."
10476 msgstr ""
10477
10478 #. type: =head2
10479 #: ../fish/guestfish-actions.pod:2242
10480 msgid "inspect-get-product-variant"
10481 msgstr ""
10482
10483 #. type: verbatim
10484 #: ../fish/guestfish-actions.pod:2244
10485 #, no-wrap
10486 msgid ""
10487 " inspect-get-product-variant root\n"
10488 "\n"
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2246 ../src/guestfs-actions.pod:3495
10493 msgid "This returns the product variant of the inspected operating system."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3498
10498 msgid ""
10499 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10500 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10501 "is usually a string such as C<Client> or C<Server> (other values are "
10502 "possible).  This can be used to distinguish consumer and enterprise versions "
10503 "of Windows that have the same version number (for example, Windows 7 and "
10504 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10505 "the latter is C<Server>)."
10506 msgstr ""
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:2258 ../src/guestfs-actions.pod:3507
10510 msgid ""
10511 "For enterprise Linux guests, in future we intend this to return the product "
10512 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10513 "implemented at present."
10514 msgstr ""
10515
10516 #. type: textblock
10517 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3511
10518 msgid ""
10519 "If the product variant could not be determined, then the string C<unknown> "
10520 "is returned."
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:2265
10525 msgid ""
10526 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10527 "get-product-name>, L</inspect-get-major-version>."
10528 msgstr ""
10529
10530 #. type: =head2
10531 #: ../fish/guestfish-actions.pod:2269
10532 msgid "inspect-get-roots"
10533 msgstr ""
10534
10535 #. type: verbatim
10536 #: ../fish/guestfish-actions.pod:2271
10537 #, no-wrap
10538 msgid ""
10539 " inspect-get-roots\n"
10540 "\n"
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:2273
10545 msgid ""
10546 "This function is a convenient way to get the list of root devices, as "
10547 "returned from a previous call to L</inspect-os>, but without redoing the "
10548 "whole inspection process."
10549 msgstr ""
10550
10551 #. type: textblock
10552 #: ../fish/guestfish-actions.pod:2277
10553 msgid ""
10554 "This returns an empty list if either no root devices were found or the "
10555 "caller has not called L</inspect-os>."
10556 msgstr ""
10557
10558 #. type: =head2
10559 #: ../fish/guestfish-actions.pod:2282
10560 msgid "inspect-get-type"
10561 msgstr ""
10562
10563 #. type: verbatim
10564 #: ../fish/guestfish-actions.pod:2284
10565 #, no-wrap
10566 msgid ""
10567 " inspect-get-type root\n"
10568 "\n"
10569 msgstr ""
10570
10571 #. type: textblock
10572 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3549
10573 msgid ""
10574 "This returns the type of the inspected operating system.  Currently defined "
10575 "types are:"
10576 msgstr ""
10577
10578 #. type: =item
10579 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3554
10580 msgid "\"linux\""
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3556
10585 msgid "Any Linux-based operating system."
10586 msgstr ""
10587
10588 #. type: textblock
10589 #: ../fish/guestfish-actions.pod:2297 ../src/guestfs-actions.pod:3560
10590 msgid "Any Microsoft Windows operating system."
10591 msgstr ""
10592
10593 #. type: =item
10594 #: ../fish/guestfish-actions.pod:2299 ../src/guestfs-actions.pod:3562
10595 msgid "\"freebsd\""
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3564
10600 msgid "FreeBSD."
10601 msgstr ""
10602
10603 #. type: =item
10604 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3566
10605 msgid "\"netbsd\""
10606 msgstr ""
10607
10608 #. type: textblock
10609 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3568
10610 msgid "NetBSD."
10611 msgstr ""
10612
10613 #. type: textblock
10614 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3572
10615 msgid "The operating system type could not be determined."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:2318
10620 msgid "inspect-get-windows-current-control-set"
10621 msgstr ""
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:2320
10625 #, no-wrap
10626 msgid ""
10627 " inspect-get-windows-current-control-set root\n"
10628 "\n"
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3592
10633 msgid ""
10634 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10635 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3595
10640 msgid ""
10641 "This call assumes that the guest is Windows and that the Registry could be "
10642 "examined by inspection.  If this is not the case then an error is returned."
10643 msgstr ""
10644
10645 #. type: =head2
10646 #: ../fish/guestfish-actions.pod:2331
10647 msgid "inspect-get-windows-systemroot"
10648 msgstr ""
10649
10650 #. type: verbatim
10651 #: ../fish/guestfish-actions.pod:2333
10652 #, no-wrap
10653 msgid ""
10654 " inspect-get-windows-systemroot root\n"
10655 "\n"
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3612
10660 msgid ""
10661 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10662 "is a directory path such as C</WINDOWS>."
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3615
10667 msgid ""
10668 "This call assumes that the guest is Windows and that the systemroot could be "
10669 "determined by inspection.  If this is not the case then an error is returned."
10670 msgstr ""
10671
10672 #. type: =head2
10673 #: ../fish/guestfish-actions.pod:2344
10674 msgid "inspect-is-live"
10675 msgstr ""
10676
10677 #. type: verbatim
10678 #: ../fish/guestfish-actions.pod:2346
10679 #, no-wrap
10680 msgid ""
10681 " inspect-is-live root\n"
10682 "\n"
10683 msgstr ""
10684
10685 #. type: textblock
10686 #: ../fish/guestfish-actions.pod:2348
10687 msgid ""
10688 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10689 "then this returns true if a live image was detected on the disk."
10690 msgstr ""
10691
10692 #. type: =head2
10693 #: ../fish/guestfish-actions.pod:2354
10694 msgid "inspect-is-multipart"
10695 msgstr ""
10696
10697 #. type: verbatim
10698 #: ../fish/guestfish-actions.pod:2356
10699 #, no-wrap
10700 msgid ""
10701 " inspect-is-multipart root\n"
10702 "\n"
10703 msgstr ""
10704
10705 #. type: textblock
10706 #: ../fish/guestfish-actions.pod:2358
10707 msgid ""
10708 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10709 "then this returns true if the disk is part of a set."
10710 msgstr ""
10711
10712 #. type: =head2
10713 #: ../fish/guestfish-actions.pod:2364
10714 msgid "inspect-is-netinst"
10715 msgstr ""
10716
10717 #. type: verbatim
10718 #: ../fish/guestfish-actions.pod:2366
10719 #, no-wrap
10720 msgid ""
10721 " inspect-is-netinst root\n"
10722 "\n"
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2368
10727 msgid ""
10728 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10729 "then this returns true if the disk is a network installer, ie. not a self-"
10730 "contained install CD but one which is likely to require network access to "
10731 "complete the install."
10732 msgstr ""
10733
10734 #. type: =head2
10735 #: ../fish/guestfish-actions.pod:2376
10736 msgid "inspect-list-applications"
10737 msgstr ""
10738
10739 #. type: verbatim
10740 #: ../fish/guestfish-actions.pod:2378
10741 #, no-wrap
10742 msgid ""
10743 " inspect-list-applications root\n"
10744 "\n"
10745 msgstr ""
10746
10747 #. type: textblock
10748 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3682
10749 msgid "Return the list of applications installed in the operating system."
10750 msgstr ""
10751
10752 #. type: textblock
10753 #: ../fish/guestfish-actions.pod:2382
10754 msgid ""
10755 "I<Note:> This call works differently from other parts of the inspection "
10756 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10757 "then mount up the disks, before calling this.  Listing applications is a "
10758 "significantly more difficult operation which requires access to the full "
10759 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10760 "are just returning data cached in the libguestfs handle, this call actually "
10761 "reads parts of the mounted filesystems during the call."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3694
10766 msgid ""
10767 "This returns an empty list if the inspection code was not able to determine "
10768 "the list of applications."
10769 msgstr ""
10770
10771 #. type: textblock
10772 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3697
10773 msgid "The application structure contains the following fields:"
10774 msgstr ""
10775
10776 #. type: =item
10777 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3701
10778 msgid "C<app_name>"
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3703
10783 msgid ""
10784 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10785 "guests, this is the package name."
10786 msgstr ""
10787
10788 #. type: =item
10789 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3706
10790 msgid "C<app_display_name>"
10791 msgstr ""
10792
10793 #. type: textblock
10794 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3708
10795 msgid ""
10796 "The display name of the application, sometimes localized to the install "
10797 "language of the guest operating system."
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2409 ../src/guestfs-actions.pod:3711
10802 msgid ""
10803 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10804 "to display something can use C<app_name> instead."
10805 msgstr ""
10806
10807 #. type: =item
10808 #: ../fish/guestfish-actions.pod:2412 ../src/guestfs-actions.pod:3714
10809 msgid "C<app_epoch>"
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:3716
10814 msgid ""
10815 "For package managers which use epochs, this contains the epoch of the "
10816 "package (an integer).  If unavailable, this is returned as C<0>."
10817 msgstr ""
10818
10819 #. type: =item
10820 #: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3719
10821 msgid "C<app_version>"
10822 msgstr ""
10823
10824 #. type: textblock
10825 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3721
10826 msgid ""
10827 "The version string of the application or package.  If unavailable this is "
10828 "returned as an empty string C<\"\">."
10829 msgstr ""
10830
10831 #. type: =item
10832 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3724
10833 msgid "C<app_release>"
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3726
10838 msgid ""
10839 "The release string of the application or package, for package managers that "
10840 "use this.  If unavailable this is returned as an empty string C<\"\">."
10841 msgstr ""
10842
10843 #. type: =item
10844 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3730
10845 msgid "C<app_install_path>"
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3732
10850 msgid ""
10851 "The installation path of the application (on operating systems such as "
10852 "Windows which use installation paths).  This path is in the format used by "
10853 "the guest operating system, it is not a libguestfs path."
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2435 ../src/guestfs-actions.pod:3737
10858 msgid "If unavailable this is returned as an empty string C<\"\">."
10859 msgstr ""
10860
10861 #. type: =item
10862 #: ../fish/guestfish-actions.pod:2437 ../src/guestfs-actions.pod:3739
10863 msgid "C<app_trans_path>"
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:3741
10868 msgid ""
10869 "The install path translated into a libguestfs path.  If unavailable this is "
10870 "returned as an empty string C<\"\">."
10871 msgstr ""
10872
10873 #. type: =item
10874 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3744
10875 msgid "C<app_publisher>"
10876 msgstr ""
10877
10878 #. type: textblock
10879 #: ../fish/guestfish-actions.pod:2444 ../src/guestfs-actions.pod:3746
10880 msgid ""
10881 "The name of the publisher of the application, for package managers that use "
10882 "this.  If unavailable this is returned as an empty string C<\"\">."
10883 msgstr ""
10884
10885 #. type: =item
10886 #: ../fish/guestfish-actions.pod:2448 ../src/guestfs-actions.pod:3750
10887 msgid "C<app_url>"
10888 msgstr ""
10889
10890 #. type: textblock
10891 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3752
10892 msgid ""
10893 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10894 "returned as an empty string C<\"\">."
10895 msgstr ""
10896
10897 #. type: =item
10898 #: ../fish/guestfish-actions.pod:2453 ../src/guestfs-actions.pod:3755
10899 msgid "C<app_source_package>"
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3757
10904 msgid ""
10905 "For packaging systems which support this, the name of the source package.  "
10906 "If unavailable this is returned as an empty string C<\"\">."
10907 msgstr ""
10908
10909 #. type: =item
10910 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3760
10911 msgid "C<app_summary>"
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3762
10916 msgid ""
10917 "A short (usually one line) description of the application or package.  If "
10918 "unavailable this is returned as an empty string C<\"\">."
10919 msgstr ""
10920
10921 #. type: =item
10922 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3765
10923 msgid "C<app_description>"
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3767
10928 msgid ""
10929 "A longer description of the application or package.  If unavailable this is "
10930 "returned as an empty string C<\"\">."
10931 msgstr ""
10932
10933 #. type: =head2
10934 #: ../fish/guestfish-actions.pod:2472
10935 msgid "inspect-os"
10936 msgstr ""
10937
10938 #. type: verbatim
10939 #: ../fish/guestfish-actions.pod:2474
10940 #, no-wrap
10941 msgid ""
10942 " inspect-os\n"
10943 "\n"
10944 msgstr ""
10945
10946 #. type: textblock
10947 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3785
10948 msgid ""
10949 "This function uses other libguestfs functions and certain heuristics to "
10950 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10951 "for operating systems."
10952 msgstr ""
10953
10954 #. type: textblock
10955 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3789
10956 msgid "The list returned is empty if no operating systems were found."
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3791
10961 msgid ""
10962 "If one operating system was found, then this returns a list with a single "
10963 "element, which is the name of the root filesystem of this operating system.  "
10964 "It is also possible for this function to return a list containing more than "
10965 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10966 "element being the root filesystem of one of the operating systems."
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2489
10971 msgid ""
10972 "You can pass the root string(s) returned to other L</inspect-get-*> "
10973 "functions in order to query further information about each operating system, "
10974 "such as the name and version."
10975 msgstr ""
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:2494
10979 msgid ""
10980 "This function uses other libguestfs features such as L</mount-ro> and L</"
10981 "umount-all> in order to mount and unmount filesystems and look at the "
10982 "contents.  This should be called with no disks currently mounted.  The "
10983 "function may also use Augeas, so any existing Augeas handle will be closed."
10984 msgstr ""
10985
10986 #. type: textblock
10987 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3809
10988 msgid ""
10989 "This function cannot decrypt encrypted disks.  The caller must do that first "
10990 "(supplying the necessary keys) if the disk is encrypted."
10991 msgstr ""
10992
10993 #. type: textblock
10994 #: ../fish/guestfish-actions.pod:2506 ../fish/guestfish-actions.pod:2704
10995 #: ../fish/guestfish-actions.pod:2763
10996 msgid "See also L</list-filesystems>."
10997 msgstr ""
10998
10999 #. type: =head2
11000 #: ../fish/guestfish-actions.pod:2508
11001 msgid "is-blockdev"
11002 msgstr ""
11003
11004 #. type: verbatim
11005 #: ../fish/guestfish-actions.pod:2510
11006 #, no-wrap
11007 msgid ""
11008 " is-blockdev path\n"
11009 "\n"
11010 msgstr ""
11011
11012 #. type: textblock
11013 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3829
11014 msgid ""
11015 "This returns C<true> if and only if there is a block device with the given "
11016 "C<path> name."
11017 msgstr ""
11018
11019 #. type: textblock
11020 #: ../fish/guestfish-actions.pod:2515 ../fish/guestfish-actions.pod:2533
11021 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2561
11022 #: ../fish/guestfish-actions.pod:2571 ../fish/guestfish-actions.pod:2605
11023 #: ../fish/guestfish-actions.pod:2614
11024 msgid "See also L</stat>."
11025 msgstr ""
11026
11027 #. type: =head2
11028 #: ../fish/guestfish-actions.pod:2517
11029 msgid "is-busy"
11030 msgstr ""
11031
11032 #. type: verbatim
11033 #: ../fish/guestfish-actions.pod:2519
11034 #, no-wrap
11035 msgid ""
11036 " is-busy\n"
11037 "\n"
11038 msgstr ""
11039
11040 #. type: textblock
11041 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3843
11042 msgid ""
11043 "This returns true iff this handle is busy processing a command (in the "
11044 "C<BUSY> state)."
11045 msgstr ""
11046
11047 #. type: =head2
11048 #: ../fish/guestfish-actions.pod:2526
11049 msgid "is-chardev"
11050 msgstr ""
11051
11052 #. type: verbatim
11053 #: ../fish/guestfish-actions.pod:2528
11054 #, no-wrap
11055 msgid ""
11056 " is-chardev path\n"
11057 "\n"
11058 msgstr ""
11059
11060 #. type: textblock
11061 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3858
11062 msgid ""
11063 "This returns C<true> if and only if there is a character device with the "
11064 "given C<path> name."
11065 msgstr ""
11066
11067 #. type: =head2
11068 #: ../fish/guestfish-actions.pod:2535
11069 msgid "is-config"
11070 msgstr ""
11071
11072 #. type: verbatim
11073 #: ../fish/guestfish-actions.pod:2537
11074 #, no-wrap
11075 msgid ""
11076 " is-config\n"
11077 "\n"
11078 msgstr ""
11079
11080 #. type: textblock
11081 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3872
11082 msgid ""
11083 "This returns true iff this handle is being configured (in the C<CONFIG> "
11084 "state)."
11085 msgstr ""
11086
11087 #. type: =head2
11088 #: ../fish/guestfish-actions.pod:2544
11089 msgid "is-dir"
11090 msgstr ""
11091
11092 #. type: verbatim
11093 #: ../fish/guestfish-actions.pod:2546
11094 #, no-wrap
11095 msgid ""
11096 " is-dir path\n"
11097 "\n"
11098 msgstr ""
11099
11100 #. type: textblock
11101 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3887
11102 msgid ""
11103 "This returns C<true> if and only if there is a directory with the given "
11104 "C<path> name.  Note that it returns false for other objects like files."
11105 msgstr ""
11106
11107 #. type: =head2
11108 #: ../fish/guestfish-actions.pod:2554
11109 msgid "is-fifo"
11110 msgstr ""
11111
11112 #. type: verbatim
11113 #: ../fish/guestfish-actions.pod:2556
11114 #, no-wrap
11115 msgid ""
11116 " is-fifo path\n"
11117 "\n"
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3903
11122 msgid ""
11123 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11124 "given C<path> name."
11125 msgstr ""
11126
11127 #. type: =head2
11128 #: ../fish/guestfish-actions.pod:2563
11129 msgid "is-file"
11130 msgstr ""
11131
11132 #. type: verbatim
11133 #: ../fish/guestfish-actions.pod:2565
11134 #, no-wrap
11135 msgid ""
11136 " is-file path\n"
11137 "\n"
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3918
11142 msgid ""
11143 "This returns C<true> if and only if there is a regular file with the given "
11144 "C<path> name.  Note that it returns false for other objects like directories."
11145 msgstr ""
11146
11147 #. type: =head2
11148 #: ../fish/guestfish-actions.pod:2573
11149 msgid "is-launching"
11150 msgstr ""
11151
11152 #. type: verbatim
11153 #: ../fish/guestfish-actions.pod:2575
11154 #, no-wrap
11155 msgid ""
11156 " is-launching\n"
11157 "\n"
11158 msgstr ""
11159
11160 #. type: textblock
11161 #: ../fish/guestfish-actions.pod:2577 ../src/guestfs-actions.pod:3933
11162 msgid ""
11163 "This returns true iff this handle is launching the subprocess (in the "
11164 "C<LAUNCHING> state)."
11165 msgstr ""
11166
11167 #. type: =head2
11168 #: ../fish/guestfish-actions.pod:2582
11169 msgid "is-lv"
11170 msgstr ""
11171
11172 #. type: verbatim
11173 #: ../fish/guestfish-actions.pod:2584
11174 #, no-wrap
11175 msgid ""
11176 " is-lv device\n"
11177 "\n"
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../fish/guestfish-actions.pod:2586 ../src/guestfs-actions.pod:3948
11182 msgid ""
11183 "This command tests whether C<device> is a logical volume, and returns true "
11184 "iff this is the case."
11185 msgstr ""
11186
11187 #. type: =head2
11188 #: ../fish/guestfish-actions.pod:2589
11189 msgid "is-ready"
11190 msgstr ""
11191
11192 #. type: verbatim
11193 #: ../fish/guestfish-actions.pod:2591
11194 #, no-wrap
11195 msgid ""
11196 " is-ready\n"
11197 "\n"
11198 msgstr ""
11199
11200 #. type: textblock
11201 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3960
11202 msgid ""
11203 "This returns true iff this handle is ready to accept commands (in the "
11204 "C<READY> state)."
11205 msgstr ""
11206
11207 #. type: =head2
11208 #: ../fish/guestfish-actions.pod:2598
11209 msgid "is-socket"
11210 msgstr ""
11211
11212 #. type: verbatim
11213 #: ../fish/guestfish-actions.pod:2600
11214 #, no-wrap
11215 msgid ""
11216 " is-socket path\n"
11217 "\n"
11218 msgstr ""
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3975
11222 msgid ""
11223 "This returns C<true> if and only if there is a Unix domain socket with the "
11224 "given C<path> name."
11225 msgstr ""
11226
11227 #. type: =head2
11228 #: ../fish/guestfish-actions.pod:2607
11229 msgid "is-symlink"
11230 msgstr ""
11231
11232 #. type: verbatim
11233 #: ../fish/guestfish-actions.pod:2609
11234 #, no-wrap
11235 msgid ""
11236 " is-symlink path\n"
11237 "\n"
11238 msgstr ""
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3990
11242 msgid ""
11243 "This returns C<true> if and only if there is a symbolic link with the given "
11244 "C<path> name."
11245 msgstr ""
11246
11247 #. type: =head2
11248 #: ../fish/guestfish-actions.pod:2616
11249 msgid "is-zero"
11250 msgstr ""
11251
11252 #. type: verbatim
11253 #: ../fish/guestfish-actions.pod:2618
11254 #, no-wrap
11255 msgid ""
11256 " is-zero path\n"
11257 "\n"
11258 msgstr ""
11259
11260 #. type: textblock
11261 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:4005
11262 msgid ""
11263 "This returns true iff the file exists and the file is empty or it contains "
11264 "all zero bytes."
11265 msgstr ""
11266
11267 #. type: =head2
11268 #: ../fish/guestfish-actions.pod:2623
11269 msgid "is-zero-device"
11270 msgstr ""
11271
11272 #. type: verbatim
11273 #: ../fish/guestfish-actions.pod:2625
11274 #, no-wrap
11275 msgid ""
11276 " is-zero-device device\n"
11277 "\n"
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:4018
11282 msgid "This returns true iff the device exists and contains all zero bytes."
11283 msgstr ""
11284
11285 #. type: textblock
11286 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:4020
11287 msgid "Note that for large devices this can take a long time to run."
11288 msgstr ""
11289
11290 #. type: =head2
11291 #: ../fish/guestfish-actions.pod:2631
11292 msgid "kill-subprocess"
11293 msgstr ""
11294
11295 #. type: verbatim
11296 #: ../fish/guestfish-actions.pod:2633
11297 #, no-wrap
11298 msgid ""
11299 " kill-subprocess\n"
11300 "\n"
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:4031
11305 msgid "This kills the qemu subprocess.  You should never need to call this."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:2637
11310 msgid "launch"
11311 msgstr ""
11312
11313 #. type: =head2
11314 #: ../fish/guestfish-actions.pod:2639
11315 msgid "run"
11316 msgstr ""
11317
11318 #. type: verbatim
11319 #: ../fish/guestfish-actions.pod:2641
11320 #, no-wrap
11321 msgid ""
11322 " launch\n"
11323 "\n"
11324 msgstr ""
11325
11326 #. type: textblock
11327 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4042
11328 msgid ""
11329 "Internally libguestfs is implemented by running a virtual machine using "
11330 "L<qemu(1)>."
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:4045
11335 msgid ""
11336 "You should call this after configuring the handle (eg. adding drives) but "
11337 "before performing any actions."
11338 msgstr ""
11339
11340 #. type: =head2
11341 #: ../fish/guestfish-actions.pod:2649
11342 msgid "lchown"
11343 msgstr ""
11344
11345 #. type: verbatim
11346 #: ../fish/guestfish-actions.pod:2651
11347 #, no-wrap
11348 msgid ""
11349 " lchown owner group path\n"
11350 "\n"
11351 msgstr ""
11352
11353 #. type: textblock
11354 #: ../fish/guestfish-actions.pod:2653
11355 msgid ""
11356 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11357 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11358 "target."
11359 msgstr ""
11360
11361 #. type: =head2
11362 #: ../fish/guestfish-actions.pod:2661
11363 msgid "lgetxattr"
11364 msgstr ""
11365
11366 #. type: verbatim
11367 #: ../fish/guestfish-actions.pod:2663
11368 #, no-wrap
11369 msgid ""
11370 " lgetxattr path name\n"
11371 "\n"
11372 msgstr ""
11373
11374 #. type: textblock
11375 #: ../fish/guestfish-actions.pod:2665 ../src/guestfs-actions.pod:4085
11376 msgid ""
11377 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11378 "is a symlink, then this call returns an extended attribute from the symlink."
11379 msgstr ""
11380
11381 #. type: textblock
11382 #: ../fish/guestfish-actions.pod:2679
11383 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11384 msgstr ""
11385
11386 #. type: =head2
11387 #: ../fish/guestfish-actions.pod:2681
11388 msgid "lgetxattrs"
11389 msgstr ""
11390
11391 #. type: verbatim
11392 #: ../fish/guestfish-actions.pod:2683
11393 #, no-wrap
11394 msgid ""
11395 " lgetxattrs path\n"
11396 "\n"
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:2685
11401 msgid ""
11402 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11403 "it returns the extended attributes of the link itself."
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../fish/guestfish-actions.pod:2689
11408 msgid "list-9p"
11409 msgstr ""
11410
11411 #. type: verbatim
11412 #: ../fish/guestfish-actions.pod:2691
11413 #, no-wrap
11414 msgid ""
11415 " list-9p\n"
11416 "\n"
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4128
11421 msgid ""
11422 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11423 "returned."
11424 msgstr ""
11425
11426 #. type: =head2
11427 #: ../fish/guestfish-actions.pod:2696
11428 msgid "list-devices"
11429 msgstr ""
11430
11431 #. type: verbatim
11432 #: ../fish/guestfish-actions.pod:2698
11433 #, no-wrap
11434 msgid ""
11435 " list-devices\n"
11436 "\n"
11437 msgstr ""
11438
11439 #. type: textblock
11440 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4142
11441 msgid "List all the block devices."
11442 msgstr ""
11443
11444 #. type: textblock
11445 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4144
11446 msgid "The full block device names are returned, eg. C</dev/sda>."
11447 msgstr ""
11448
11449 #. type: =head2
11450 #: ../fish/guestfish-actions.pod:2706
11451 msgid "list-dm-devices"
11452 msgstr ""
11453
11454 #. type: verbatim
11455 #: ../fish/guestfish-actions.pod:2708
11456 #, no-wrap
11457 msgid ""
11458 " list-dm-devices\n"
11459 "\n"
11460 msgstr ""
11461
11462 #. type: textblock
11463 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4159
11464 msgid "List all device mapper devices."
11465 msgstr ""
11466
11467 #. type: textblock
11468 #: ../fish/guestfish-actions.pod:2712
11469 msgid ""
11470 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11471 "previous call to L</luks-open>."
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:2715
11476 msgid ""
11477 "Device mapper devices which correspond to logical volumes are I<not> "
11478 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11479 msgstr ""
11480
11481 #. type: =head2
11482 #: ../fish/guestfish-actions.pod:2719
11483 msgid "list-filesystems"
11484 msgstr ""
11485
11486 #. type: verbatim
11487 #: ../fish/guestfish-actions.pod:2721
11488 #, no-wrap
11489 msgid ""
11490 " list-filesystems\n"
11491 "\n"
11492 msgstr ""
11493
11494 #. type: textblock
11495 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4179
11496 msgid ""
11497 "This inspection command looks for filesystems on partitions, block devices "
11498 "and logical volumes, returning a list of devices containing filesystems and "
11499 "their type."
11500 msgstr ""
11501
11502 #. type: textblock
11503 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4183
11504 msgid ""
11505 "The return value is a hash, where the keys are the devices containing "
11506 "filesystems, and the values are the filesystem types.  For example:"
11507 msgstr ""
11508
11509 #. type: verbatim
11510 #: ../fish/guestfish-actions.pod:2731 ../src/guestfs-actions.pod:4187
11511 #, no-wrap
11512 msgid ""
11513 " \"/dev/sda1\" => \"ntfs\"\n"
11514 " \"/dev/sda2\" => \"ext2\"\n"
11515 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11516 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11517 "\n"
11518 msgstr ""
11519
11520 #. type: textblock
11521 #: ../fish/guestfish-actions.pod:2736 ../src/guestfs-actions.pod:4192
11522 msgid ""
11523 "The value can have the special value \"unknown\", meaning the content of the "
11524 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11525 msgstr ""
11526
11527 #. type: textblock
11528 #: ../fish/guestfish-actions.pod:2740
11529 msgid ""
11530 "This command runs other libguestfs commands, which might include L</mount> "
11531 "and L</umount>, and therefore you should use this soon after launch and only "
11532 "when nothing is mounted."
11533 msgstr ""
11534
11535 #. type: textblock
11536 #: ../fish/guestfish-actions.pod:2744
11537 msgid ""
11538 "Not all of the filesystems returned will be mountable.  In particular, swap "
11539 "partitions are returned in the list.  Also this command does not check that "
11540 "each filesystem found is valid and mountable, and some filesystems might be "
11541 "mountable but require special options.  Filesystems may not all belong to a "
11542 "single logical operating system (use L</inspect-os> to look for OSes)."
11543 msgstr ""
11544
11545 #. type: =head2
11546 #: ../fish/guestfish-actions.pod:2752
11547 msgid "list-partitions"
11548 msgstr ""
11549
11550 #. type: verbatim
11551 #: ../fish/guestfish-actions.pod:2754
11552 #, no-wrap
11553 msgid ""
11554 " list-partitions\n"
11555 "\n"
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4221
11560 msgid "List all the partitions detected on all block devices."
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4223
11565 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11566 msgstr ""
11567
11568 #. type: textblock
11569 #: ../fish/guestfish-actions.pod:2760
11570 msgid ""
11571 "This does not return logical volumes.  For that you will need to call L</"
11572 "lvs>."
11573 msgstr ""
11574
11575 #. type: =head2
11576 #: ../fish/guestfish-actions.pod:2765
11577 msgid "ll"
11578 msgstr ""
11579
11580 #. type: verbatim
11581 #: ../fish/guestfish-actions.pod:2767
11582 #, no-wrap
11583 msgid ""
11584 " ll directory\n"
11585 "\n"
11586 msgstr ""
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4242
11590 msgid ""
11591 "List the files in C<directory> (relative to the root directory, there is no "
11592 "cwd) in the format of 'ls -la'."
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:2772 ../src/guestfs-actions.pod:4245
11597 msgid ""
11598 "This command is mostly useful for interactive sessions.  It is I<not> "
11599 "intended that you try to parse the output string."
11600 msgstr ""
11601
11602 #. type: =head2
11603 #: ../fish/guestfish-actions.pod:2775
11604 msgid "ln"
11605 msgstr ""
11606
11607 #. type: verbatim
11608 #: ../fish/guestfish-actions.pod:2777
11609 #, no-wrap
11610 msgid ""
11611 " ln target linkname\n"
11612 "\n"
11613 msgstr ""
11614
11615 #. type: textblock
11616 #: ../fish/guestfish-actions.pod:2779 ../src/guestfs-actions.pod:4260
11617 msgid "This command creates a hard link using the C<ln> command."
11618 msgstr ""
11619
11620 #. type: =head2
11621 #: ../fish/guestfish-actions.pod:2781
11622 msgid "ln-f"
11623 msgstr ""
11624
11625 #. type: verbatim
11626 #: ../fish/guestfish-actions.pod:2783
11627 #, no-wrap
11628 msgid ""
11629 " ln-f target linkname\n"
11630 "\n"
11631 msgstr ""
11632
11633 #. type: textblock
11634 #: ../fish/guestfish-actions.pod:2785 ../src/guestfs-actions.pod:4273
11635 msgid ""
11636 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11637 "option removes the link (C<linkname>) if it exists already."
11638 msgstr ""
11639
11640 #. type: =head2
11641 #: ../fish/guestfish-actions.pod:2788
11642 msgid "ln-s"
11643 msgstr ""
11644
11645 #. type: verbatim
11646 #: ../fish/guestfish-actions.pod:2790
11647 #, no-wrap
11648 msgid ""
11649 " ln-s target linkname\n"
11650 "\n"
11651 msgstr ""
11652
11653 #. type: textblock
11654 #: ../fish/guestfish-actions.pod:2792 ../src/guestfs-actions.pod:4287
11655 msgid "This command creates a symbolic link using the C<ln -s> command."
11656 msgstr ""
11657
11658 #. type: =head2
11659 #: ../fish/guestfish-actions.pod:2794
11660 msgid "ln-sf"
11661 msgstr ""
11662
11663 #. type: verbatim
11664 #: ../fish/guestfish-actions.pod:2796
11665 #, no-wrap
11666 msgid ""
11667 " ln-sf target linkname\n"
11668 "\n"
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4300
11673 msgid ""
11674 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11675 "option removes the link (C<linkname>) if it exists already."
11676 msgstr ""
11677
11678 #. type: =head2
11679 #: ../fish/guestfish-actions.pod:2801
11680 msgid "lremovexattr"
11681 msgstr ""
11682
11683 #. type: verbatim
11684 #: ../fish/guestfish-actions.pod:2803
11685 #, no-wrap
11686 msgid ""
11687 " lremovexattr xattr path\n"
11688 "\n"
11689 msgstr ""
11690
11691 #. type: textblock
11692 #: ../fish/guestfish-actions.pod:2805
11693 msgid ""
11694 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11695 "it removes an extended attribute of the link itself."
11696 msgstr ""
11697
11698 #. type: =head2
11699 #: ../fish/guestfish-actions.pod:2809
11700 msgid "ls"
11701 msgstr ""
11702
11703 #. type: verbatim
11704 #: ../fish/guestfish-actions.pod:2811
11705 #, no-wrap
11706 msgid ""
11707 " ls directory\n"
11708 "\n"
11709 msgstr ""
11710
11711 #. type: textblock
11712 #: ../fish/guestfish-actions.pod:2813 ../src/guestfs-actions.pod:4328
11713 msgid ""
11714 "List the files in C<directory> (relative to the root directory, there is no "
11715 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11716 msgstr ""
11717
11718 #. type: textblock
11719 #: ../fish/guestfish-actions.pod:2817
11720 msgid ""
11721 "This command is mostly useful for interactive sessions.  Programs should "
11722 "probably use L</readdir> instead."
11723 msgstr ""
11724
11725 #. type: =head2
11726 #: ../fish/guestfish-actions.pod:2820
11727 msgid "lsetxattr"
11728 msgstr ""
11729
11730 #. type: verbatim
11731 #: ../fish/guestfish-actions.pod:2822
11732 #, no-wrap
11733 msgid ""
11734 " lsetxattr xattr val vallen path\n"
11735 "\n"
11736 msgstr ""
11737
11738 #. type: textblock
11739 #: ../fish/guestfish-actions.pod:2824
11740 msgid ""
11741 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11742 "sets an extended attribute of the link itself."
11743 msgstr ""
11744
11745 #. type: =head2
11746 #: ../fish/guestfish-actions.pod:2828
11747 msgid "lstat"
11748 msgstr ""
11749
11750 #. type: verbatim
11751 #: ../fish/guestfish-actions.pod:2830
11752 #, no-wrap
11753 msgid ""
11754 " lstat path\n"
11755 "\n"
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:4656
11760 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:7167
11761 msgid "Returns file information for the given C<path>."
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:2834
11766 msgid ""
11767 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11768 "the link is stat-ed, not the file it refers to."
11769 msgstr ""
11770
11771 #. type: textblock
11772 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4370
11773 msgid "This is the same as the C<lstat(2)> system call."
11774 msgstr ""
11775
11776 #. type: =head2
11777 #: ../fish/guestfish-actions.pod:2840
11778 msgid "lstatlist"
11779 msgstr ""
11780
11781 #. type: verbatim
11782 #: ../fish/guestfish-actions.pod:2842
11783 #, no-wrap
11784 msgid ""
11785 " lstatlist path 'names ...'\n"
11786 "\n"
11787 msgstr ""
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:2844
11791 msgid ""
11792 "This call allows you to perform the L</lstat> operation on multiple files, "
11793 "where all files are in the directory C<path>.  C<names> is the list of files "
11794 "from this directory."
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4389
11799 msgid ""
11800 "On return you get a list of stat structs, with a one-to-one correspondence "
11801 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11802 "then the C<ino> field of that structure is set to C<-1>."
11803 msgstr ""
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:2853
11807 msgid ""
11808 "This call is intended for programs that want to efficiently list a directory "
11809 "contents without making many round-trips.  See also L</lxattrlist> for a "
11810 "similarly efficient call for getting extended attributes.  Very long "
11811 "directory listings might cause the protocol message size to be exceeded, "
11812 "causing this call to fail.  The caller must split up such requests into "
11813 "smaller groups of names."
11814 msgstr ""
11815
11816 #. type: =head2
11817 #: ../fish/guestfish-actions.pod:2861
11818 msgid "luks-add-key"
11819 msgstr ""
11820
11821 #. type: verbatim
11822 #: ../fish/guestfish-actions.pod:2863
11823 #, no-wrap
11824 msgid ""
11825 " luks-add-key device keyslot\n"
11826 "\n"
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4417
11831 msgid ""
11832 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11833 "existing key, and is used to access the device.  C<newkey> is the new key to "
11834 "add.  C<keyslot> is the key slot that will be replaced."
11835 msgstr ""
11836
11837 #. type: textblock
11838 #: ../fish/guestfish-actions.pod:2870
11839 msgid ""
11840 "Note that if C<keyslot> already contains a key, then this command will "
11841 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11842 msgstr ""
11843
11844 #. type: textblock
11845 #: ../fish/guestfish-actions.pod:2874 ../fish/guestfish-actions.pod:2896
11846 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:2923
11847 #: ../fish/guestfish-actions.pod:2949 ../fish/guestfish-actions.pod:2959
11848 msgid ""
11849 "This command has one or more key or passphrase parameters.  Guestfish will "
11850 "prompt for these separately."
11851 msgstr ""
11852
11853 #. type: =head2
11854 #: ../fish/guestfish-actions.pod:2877
11855 msgid "luks-close"
11856 msgstr ""
11857
11858 #. type: verbatim
11859 #: ../fish/guestfish-actions.pod:2879
11860 #, no-wrap
11861 msgid ""
11862 " luks-close device\n"
11863 "\n"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:2881
11868 msgid ""
11869 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11870 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11871 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11872 "block device."
11873 msgstr ""
11874
11875 #. type: =head2
11876 #: ../fish/guestfish-actions.pod:2887
11877 msgid "luks-format"
11878 msgstr ""
11879
11880 #. type: verbatim
11881 #: ../fish/guestfish-actions.pod:2889
11882 #, no-wrap
11883 msgid ""
11884 " luks-format device keyslot\n"
11885 "\n"
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../fish/guestfish-actions.pod:2891 ../src/guestfs-actions.pod:4458
11890 msgid ""
11891 "This command erases existing data on C<device> and formats the device as a "
11892 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11893 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11894 msgstr ""
11895
11896 #. type: textblock
11897 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2912
11898 #: ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3650
11899 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4527
11900 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4572
11901 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:4465
11902 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4631
11903 #: ../src/guestfs-actions.pod:5724 ../src/guestfs-actions.pod:6530
11904 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7011
11905 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:8243
11906 msgid ""
11907 "B<This command is dangerous.  Without careful use you can easily destroy all "
11908 "your data>."
11909 msgstr ""
11910
11911 #. type: =head2
11912 #: ../fish/guestfish-actions.pod:2902
11913 msgid "luks-format-cipher"
11914 msgstr ""
11915
11916 #. type: verbatim
11917 #: ../fish/guestfish-actions.pod:2904
11918 #, no-wrap
11919 msgid ""
11920 " luks-format-cipher device keyslot cipher\n"
11921 "\n"
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:2906
11926 msgid ""
11927 "This command is the same as L</luks-format> but it also allows you to set "
11928 "the C<cipher> used."
11929 msgstr ""
11930
11931 #. type: =head2
11932 #: ../fish/guestfish-actions.pod:2915
11933 msgid "luks-kill-slot"
11934 msgstr ""
11935
11936 #. type: verbatim
11937 #: ../fish/guestfish-actions.pod:2917
11938 #, no-wrap
11939 msgid ""
11940 " luks-kill-slot device keyslot\n"
11941 "\n"
11942 msgstr ""
11943
11944 #. type: textblock
11945 #: ../fish/guestfish-actions.pod:2919 ../src/guestfs-actions.pod:4505
11946 msgid ""
11947 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11948 "device C<device>.  C<key> must be one of the I<other> keys."
11949 msgstr ""
11950
11951 #. type: =head2
11952 #: ../fish/guestfish-actions.pod:2926
11953 msgid "luks-open"
11954 msgstr ""
11955
11956 #. type: verbatim
11957 #: ../fish/guestfish-actions.pod:2928
11958 #, no-wrap
11959 msgid ""
11960 " luks-open device mapname\n"
11961 "\n"
11962 msgstr ""
11963
11964 #. type: textblock
11965 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4525
11966 msgid ""
11967 "This command opens a block device which has been encrypted according to the "
11968 "Linux Unified Key Setup (LUKS) standard."
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4528
11973 msgid "C<device> is the encrypted block device or partition."
11974 msgstr ""
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4530
11978 msgid ""
11979 "The caller must supply one of the keys associated with the LUKS block "
11980 "device, in the C<key> parameter."
11981 msgstr ""
11982
11983 #. type: textblock
11984 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4533
11985 msgid ""
11986 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11987 "writes to this block device are decrypted from and encrypted to the "
11988 "underlying C<device> respectively."
11989 msgstr ""
11990
11991 #. type: textblock
11992 #: ../fish/guestfish-actions.pod:2942
11993 msgid ""
11994 "If this block device contains LVM volume groups, then calling L</vgscan> "
11995 "followed by L</vg-activate-all> will make them visible."
11996 msgstr ""
11997
11998 #. type: textblock
11999 #: ../fish/guestfish-actions.pod:2946
12000 msgid "Use L</list-dm-devices> to list all device mapper devices."
12001 msgstr ""
12002
12003 #. type: =head2
12004 #: ../fish/guestfish-actions.pod:2952
12005 msgid "luks-open-ro"
12006 msgstr ""
12007
12008 #. type: verbatim
12009 #: ../fish/guestfish-actions.pod:2954
12010 #, no-wrap
12011 msgid ""
12012 " luks-open-ro device mapname\n"
12013 "\n"
12014 msgstr ""
12015
12016 #. type: textblock
12017 #: ../fish/guestfish-actions.pod:2956
12018 msgid ""
12019 "This is the same as L</luks-open> except that a read-only mapping is created."
12020 msgstr ""
12021
12022 #. type: =head2
12023 #: ../fish/guestfish-actions.pod:2962
12024 msgid "lvcreate"
12025 msgstr ""
12026
12027 #. type: verbatim
12028 #: ../fish/guestfish-actions.pod:2964
12029 #, no-wrap
12030 msgid ""
12031 " lvcreate logvol volgroup mbytes\n"
12032 "\n"
12033 msgstr ""
12034
12035 #. type: textblock
12036 #: ../fish/guestfish-actions.pod:2966 ../src/guestfs-actions.pod:4579
12037 msgid ""
12038 "This creates an LVM logical volume called C<logvol> on the volume group "
12039 "C<volgroup>, with C<size> megabytes."
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../fish/guestfish-actions.pod:2969
12044 msgid "lvm-canonical-lv-name"
12045 msgstr ""
12046
12047 #. type: verbatim
12048 #: ../fish/guestfish-actions.pod:2971
12049 #, no-wrap
12050 msgid ""
12051 " lvm-canonical-lv-name lvname\n"
12052 "\n"
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4592
12057 msgid ""
12058 "This converts alternative naming schemes for LVs that you might find to the "
12059 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12060 "LV>."
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4596
12065 msgid ""
12066 "This command returns an error if the C<lvname> parameter does not refer to a "
12067 "logical volume."
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:2980
12072 msgid "See also L</is-lv>."
12073 msgstr ""
12074
12075 #. type: =head2
12076 #: ../fish/guestfish-actions.pod:2982
12077 msgid "lvm-clear-filter"
12078 msgstr ""
12079
12080 #. type: verbatim
12081 #: ../fish/guestfish-actions.pod:2984
12082 #, no-wrap
12083 msgid ""
12084 " lvm-clear-filter\n"
12085 "\n"
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../fish/guestfish-actions.pod:2986
12090 msgid ""
12091 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12092 "block device."
12093 msgstr ""
12094
12095 #. type: textblock
12096 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:3020
12097 #: ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4656
12098 msgid ""
12099 "This command also clears the LVM cache and performs a volume group scan."
12100 msgstr ""
12101
12102 #. type: =head2
12103 #: ../fish/guestfish-actions.pod:2992
12104 msgid "lvm-remove-all"
12105 msgstr ""
12106
12107 #. type: verbatim
12108 #: ../fish/guestfish-actions.pod:2994
12109 #, no-wrap
12110 msgid ""
12111 " lvm-remove-all\n"
12112 "\n"
12113 msgstr ""
12114
12115 #. type: textblock
12116 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4626
12117 msgid ""
12118 "This command removes all LVM logical volumes, volume groups and physical "
12119 "volumes."
12120 msgstr ""
12121
12122 #. type: =head2
12123 #: ../fish/guestfish-actions.pod:3002
12124 msgid "lvm-set-filter"
12125 msgstr ""
12126
12127 #. type: verbatim
12128 #: ../fish/guestfish-actions.pod:3004
12129 #, no-wrap
12130 msgid ""
12131 " lvm-set-filter 'devices ...'\n"
12132 "\n"
12133 msgstr ""
12134
12135 #. type: textblock
12136 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4642
12137 msgid ""
12138 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12139 "block devices in the list C<devices>, and will ignore all other attached "
12140 "block devices."
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4646
12145 msgid ""
12146 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12147 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12148 "there are two types of duplication possible: either cloned PVs/VGs which "
12149 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12150 "same name.  In normal operation you cannot create this situation, but you "
12151 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12152 "inside the LVM metadata."
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4659
12157 msgid "You can filter whole block devices or individual partitions."
12158 msgstr ""
12159
12160 #. type: textblock
12161 #: ../fish/guestfish-actions.pod:3025 ../src/guestfs-actions.pod:4661
12162 msgid ""
12163 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12164 "filesystem), even if you are not filtering out that VG."
12165 msgstr ""
12166
12167 #. type: =head2
12168 #: ../fish/guestfish-actions.pod:3029
12169 msgid "lvremove"
12170 msgstr ""
12171
12172 #. type: verbatim
12173 #: ../fish/guestfish-actions.pod:3031
12174 #, no-wrap
12175 msgid ""
12176 " lvremove device\n"
12177 "\n"
12178 msgstr ""
12179
12180 #. type: textblock
12181 #: ../fish/guestfish-actions.pod:3033 ../src/guestfs-actions.pod:4675
12182 msgid ""
12183 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12184 "LV, such as C</dev/VG/LV>."
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4678
12189 msgid ""
12190 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12191 "dev/VG>."
12192 msgstr ""
12193
12194 #. type: =head2
12195 #: ../fish/guestfish-actions.pod:3039
12196 msgid "lvrename"
12197 msgstr ""
12198
12199 #. type: verbatim
12200 #: ../fish/guestfish-actions.pod:3041
12201 #, no-wrap
12202 msgid ""
12203 " lvrename logvol newlogvol\n"
12204 "\n"
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4692
12209 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12210 msgstr ""
12211
12212 #. type: =head2
12213 #: ../fish/guestfish-actions.pod:3045
12214 msgid "lvresize"
12215 msgstr ""
12216
12217 #. type: verbatim
12218 #: ../fish/guestfish-actions.pod:3047
12219 #, no-wrap
12220 msgid ""
12221 " lvresize device mbytes\n"
12222 "\n"
12223 msgstr ""
12224
12225 #. type: textblock
12226 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4705
12227 msgid ""
12228 "This resizes (expands or shrinks) an existing LVM logical volume to "
12229 "C<mbytes>.  When reducing, data in the reduced part is lost."
12230 msgstr ""
12231
12232 #. type: =head2
12233 #: ../fish/guestfish-actions.pod:3053
12234 msgid "lvresize-free"
12235 msgstr ""
12236
12237 #. type: verbatim
12238 #: ../fish/guestfish-actions.pod:3055
12239 #, no-wrap
12240 msgid ""
12241 " lvresize-free lv percent\n"
12242 "\n"
12243 msgstr ""
12244
12245 #. type: textblock
12246 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4720
12247 msgid ""
12248 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12249 "remaining free space in the volume group.  Commonly you would call this with "
12250 "pc = 100 which expands the logical volume as much as possible, using all "
12251 "remaining free space in the volume group."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:3063
12256 msgid "lvs"
12257 msgstr ""
12258
12259 #. type: verbatim
12260 #: ../fish/guestfish-actions.pod:3065
12261 #, no-wrap
12262 msgid ""
12263 " lvs\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4735
12269 msgid ""
12270 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12271 "(8)> command."
12272 msgstr ""
12273
12274 #. type: textblock
12275 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4738
12276 msgid ""
12277 "This returns a list of the logical volume device names (eg. C</dev/"
12278 "VolGroup00/LogVol00>)."
12279 msgstr ""
12280
12281 #. type: textblock
12282 #: ../fish/guestfish-actions.pod:3073
12283 msgid "See also L</lvs-full>, L</list-filesystems>."
12284 msgstr ""
12285
12286 #. type: =head2
12287 #: ../fish/guestfish-actions.pod:3075
12288 msgid "lvs-full"
12289 msgstr ""
12290
12291 #. type: verbatim
12292 #: ../fish/guestfish-actions.pod:3077
12293 #, no-wrap
12294 msgid ""
12295 " lvs-full\n"
12296 "\n"
12297 msgstr ""
12298
12299 #. type: textblock
12300 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4754
12301 msgid ""
12302 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12303 "(8)> command.  The \"full\" version includes all fields."
12304 msgstr ""
12305
12306 #. type: =head2
12307 #: ../fish/guestfish-actions.pod:3082
12308 msgid "lvuuid"
12309 msgstr ""
12310
12311 #. type: verbatim
12312 #: ../fish/guestfish-actions.pod:3084
12313 #, no-wrap
12314 msgid ""
12315 " lvuuid device\n"
12316 "\n"
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4769
12321 msgid "This command returns the UUID of the LVM LV C<device>."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:3088
12326 msgid "lxattrlist"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:3090
12331 #, no-wrap
12332 msgid ""
12333 " lxattrlist path 'names ...'\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4783
12339 msgid ""
12340 "This call allows you to get the extended attributes of multiple files, where "
12341 "all files are in the directory C<path>.  C<names> is the list of files from "
12342 "this directory."
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4787
12347 msgid ""
12348 "On return you get a flat list of xattr structs which must be interpreted "
12349 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12350 "C<attrval> in this struct is zero-length to indicate there was an error "
12351 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12352 "number (the number of following attributes for this file, which could be C<"
12353 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12354 "for the first named file.  This repeats for the second and subsequent files."
12355 msgstr ""
12356
12357 #. type: textblock
12358 #: ../fish/guestfish-actions.pod:3106
12359 msgid ""
12360 "This call is intended for programs that want to efficiently list a directory "
12361 "contents without making many round-trips.  See also L</lstatlist> for a "
12362 "similarly efficient call for getting standard stats.  Very long directory "
12363 "listings might cause the protocol message size to be exceeded, causing this "
12364 "call to fail.  The caller must split up such requests into smaller groups of "
12365 "names."
12366 msgstr ""
12367
12368 #. type: =head2
12369 #: ../fish/guestfish-actions.pod:3114
12370 msgid "mkdir"
12371 msgstr ""
12372
12373 #. type: verbatim
12374 #: ../fish/guestfish-actions.pod:3116
12375 #, no-wrap
12376 msgid ""
12377 " mkdir path\n"
12378 "\n"
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4817
12383 msgid "Create a directory named C<path>."
12384 msgstr ""
12385
12386 #. type: =head2
12387 #: ../fish/guestfish-actions.pod:3120
12388 msgid "mkdir-mode"
12389 msgstr ""
12390
12391 #. type: verbatim
12392 #: ../fish/guestfish-actions.pod:3122
12393 #, no-wrap
12394 msgid ""
12395 " mkdir-mode path mode\n"
12396 "\n"
12397 msgstr ""
12398
12399 #. type: textblock
12400 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4830
12401 msgid ""
12402 "This command creates a directory, setting the initial permissions of the "
12403 "directory to C<mode>."
12404 msgstr ""
12405
12406 #. type: textblock
12407 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4833
12408 msgid ""
12409 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12410 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12411 "other ways."
12412 msgstr ""
12413
12414 #. type: textblock
12415 #: ../fish/guestfish-actions.pod:3131
12416 msgid "See also L</mkdir>, L</umask>"
12417 msgstr ""
12418
12419 #. type: =head2
12420 #: ../fish/guestfish-actions.pod:3133
12421 msgid "mkdir-p"
12422 msgstr ""
12423
12424 #. type: verbatim
12425 #: ../fish/guestfish-actions.pod:3135
12426 #, no-wrap
12427 msgid ""
12428 " mkdir-p path\n"
12429 "\n"
12430 msgstr ""
12431
12432 #. type: textblock
12433 #: ../fish/guestfish-actions.pod:3137 ../src/guestfs-actions.pod:4849
12434 msgid ""
12435 "Create a directory named C<path>, creating any parent directories as "
12436 "necessary.  This is like the C<mkdir -p> shell command."
12437 msgstr ""
12438
12439 #. type: =head2
12440 #: ../fish/guestfish-actions.pod:3140
12441 msgid "mkdtemp"
12442 msgstr ""
12443
12444 #. type: verbatim
12445 #: ../fish/guestfish-actions.pod:3142
12446 #, no-wrap
12447 msgid ""
12448 " mkdtemp template\n"
12449 "\n"
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4862
12454 msgid ""
12455 "This command creates a temporary directory.  The C<template> parameter "
12456 "should be a full pathname for the temporary directory name with the final "
12457 "six characters being \"XXXXXX\"."
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4867
12462 msgid ""
12463 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12464 "being suitable for Windows filesystems."
12465 msgstr ""
12466
12467 #. type: textblock
12468 #: ../fish/guestfish-actions.pod:3152 ../src/guestfs-actions.pod:4870
12469 msgid "The name of the temporary directory that was created is returned."
12470 msgstr ""
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4873
12474 msgid "The temporary directory is created with mode 0700 and is owned by root."
12475 msgstr ""
12476
12477 #. type: textblock
12478 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4876
12479 msgid ""
12480 "The caller is responsible for deleting the temporary directory and its "
12481 "contents after use."
12482 msgstr ""
12483
12484 #. type: textblock
12485 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4879
12486 msgid "See also: L<mkdtemp(3)>"
12487 msgstr ""
12488
12489 #. type: =head2
12490 #: ../fish/guestfish-actions.pod:3163
12491 msgid "mke2fs-J"
12492 msgstr ""
12493
12494 #. type: verbatim
12495 #: ../fish/guestfish-actions.pod:3165
12496 #, no-wrap
12497 msgid ""
12498 " mke2fs-J fstype blocksize device journal\n"
12499 "\n"
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4895
12504 msgid ""
12505 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12506 "C<journal>.  It is equivalent to the command:"
12507 msgstr ""
12508
12509 #. type: verbatim
12510 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4899
12511 #, no-wrap
12512 msgid ""
12513 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12514 "\n"
12515 msgstr ""
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:3173
12519 msgid "See also L</mke2journal>."
12520 msgstr ""
12521
12522 #. type: =head2
12523 #: ../fish/guestfish-actions.pod:3175
12524 msgid "mke2fs-JL"
12525 msgstr ""
12526
12527 #. type: verbatim
12528 #: ../fish/guestfish-actions.pod:3177
12529 #, no-wrap
12530 msgid ""
12531 " mke2fs-JL fstype blocksize device label\n"
12532 "\n"
12533 msgstr ""
12534
12535 #. type: textblock
12536 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4916
12537 msgid ""
12538 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12539 "the journal labeled C<label>."
12540 msgstr ""
12541
12542 #. type: textblock
12543 #: ../fish/guestfish-actions.pod:3182
12544 msgid "See also L</mke2journal-L>."
12545 msgstr ""
12546
12547 #. type: =head2
12548 #: ../fish/guestfish-actions.pod:3184
12549 msgid "mke2fs-JU"
12550 msgstr ""
12551
12552 #. type: verbatim
12553 #: ../fish/guestfish-actions.pod:3186
12554 #, no-wrap
12555 msgid ""
12556 " mke2fs-JU fstype blocksize device uuid\n"
12557 "\n"
12558 msgstr ""
12559
12560 #. type: textblock
12561 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4934
12562 msgid ""
12563 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12564 "the journal with UUID C<uuid>."
12565 msgstr ""
12566
12567 #. type: textblock
12568 #: ../fish/guestfish-actions.pod:3191
12569 msgid "See also L</mke2journal-U>."
12570 msgstr ""
12571
12572 #. type: =head2
12573 #: ../fish/guestfish-actions.pod:3193
12574 msgid "mke2journal"
12575 msgstr ""
12576
12577 #. type: verbatim
12578 #: ../fish/guestfish-actions.pod:3195
12579 #, no-wrap
12580 msgid ""
12581 " mke2journal blocksize device\n"
12582 "\n"
12583 msgstr ""
12584
12585 #. type: textblock
12586 #: ../fish/guestfish-actions.pod:3197 ../src/guestfs-actions.pod:4950
12587 msgid ""
12588 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12589 "command:"
12590 msgstr ""
12591
12592 #. type: verbatim
12593 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4953
12594 #, no-wrap
12595 msgid ""
12596 " mke2fs -O journal_dev -b blocksize device\n"
12597 "\n"
12598 msgstr ""
12599
12600 #. type: =head2
12601 #: ../fish/guestfish-actions.pod:3202
12602 msgid "mke2journal-L"
12603 msgstr ""
12604
12605 #. type: verbatim
12606 #: ../fish/guestfish-actions.pod:3204
12607 #, no-wrap
12608 msgid ""
12609 " mke2journal-L blocksize label device\n"
12610 "\n"
12611 msgstr ""
12612
12613 #. type: textblock
12614 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4967
12615 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12616 msgstr ""
12617
12618 #. type: =head2
12619 #: ../fish/guestfish-actions.pod:3208
12620 msgid "mke2journal-U"
12621 msgstr ""
12622
12623 #. type: verbatim
12624 #: ../fish/guestfish-actions.pod:3210
12625 #, no-wrap
12626 msgid ""
12627 " mke2journal-U blocksize uuid device\n"
12628 "\n"
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4981
12633 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12634 msgstr ""
12635
12636 #. type: =head2
12637 #: ../fish/guestfish-actions.pod:3214
12638 msgid "mkfifo"
12639 msgstr ""
12640
12641 #. type: verbatim
12642 #: ../fish/guestfish-actions.pod:3216
12643 #, no-wrap
12644 msgid ""
12645 " mkfifo mode path\n"
12646 "\n"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3218
12651 msgid ""
12652 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12653 "is just a convenient wrapper around L</mknod>."
12654 msgstr ""
12655
12656 #. type: =head2
12657 #: ../fish/guestfish-actions.pod:3224
12658 msgid "mkfs"
12659 msgstr ""
12660
12661 #. type: verbatim
12662 #: ../fish/guestfish-actions.pod:3226
12663 #, no-wrap
12664 msgid ""
12665 " mkfs fstype device\n"
12666 "\n"
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:5011
12671 msgid ""
12672 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12673 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12674 msgstr ""
12675
12676 #. type: =head2
12677 #: ../fish/guestfish-actions.pod:3232
12678 msgid "mkfs-b"
12679 msgstr ""
12680
12681 #. type: verbatim
12682 #: ../fish/guestfish-actions.pod:3234
12683 #, no-wrap
12684 msgid ""
12685 " mkfs-b fstype blocksize device\n"
12686 "\n"
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3236
12691 msgid ""
12692 "This call is similar to L</mkfs>, but it allows you to control the block "
12693 "size of the resulting filesystem.  Supported block sizes depend on the "
12694 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12695 msgstr ""
12696
12697 #. type: textblock
12698 #: ../fish/guestfish-actions.pod:3241 ../fish/guestfish-actions.pod:3268
12699 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5077
12700 msgid ""
12701 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12702 "cluster size."
12703 msgstr ""
12704
12705 #. type: textblock
12706 #: ../fish/guestfish-actions.pod:3244
12707 msgid ""
12708 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12709 "instead."
12710 msgstr ""
12711
12712 #. type: =head2
12713 #: ../fish/guestfish-actions.pod:3251
12714 msgid "mkfs-opts"
12715 msgstr ""
12716
12717 #. type: verbatim
12718 #: ../fish/guestfish-actions.pod:3253
12719 #, no-wrap
12720 msgid ""
12721 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12722 "\n"
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:5064
12727 msgid ""
12728 "This function creates a filesystem on C<device>.  The filesystem type is "
12729 "C<fstype>, for example C<ext3>."
12730 msgstr ""
12731
12732 #. type: =item
12733 #: ../fish/guestfish-actions.pod:3262 ../src/guestfs-actions.pod:5071
12734 msgid "C<blocksize>"
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../fish/guestfish-actions.pod:3264 ../src/guestfs-actions.pod:5073
12739 msgid ""
12740 "The filesystem block size.  Supported block sizes depend on the filesystem "
12741 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12742 "filesystems."
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5080
12747 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12748 msgstr ""
12749
12750 #. type: =item
12751 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5082
12752 msgid "C<features>"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5084
12757 msgid "This passes the I<-O> parameter to the external mkfs program."
12758 msgstr ""
12759
12760 #. type: textblock
12761 #: ../fish/guestfish-actions.pod:3277 ../src/guestfs-actions.pod:5086
12762 msgid ""
12763 "For certain filesystem types, this allows extra filesystem features to be "
12764 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:5090
12769 msgid ""
12770 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12771 "type."
12772 msgstr ""
12773
12774 #. type: =item
12775 #: ../fish/guestfish-actions.pod:3284 ../src/guestfs-actions.pod:5093
12776 msgid "C<inode>"
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5095
12781 msgid ""
12782 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12783 "sets the inode size (only for ext2/3/4 filesystems at present)."
12784 msgstr ""
12785
12786 #. type: =item
12787 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5098
12788 msgid "C<sectorsize>"
12789 msgstr ""
12790
12791 #. type: textblock
12792 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:5100
12793 msgid ""
12794 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12795 "sets sector size for ufs filesystem."
12796 msgstr ""
12797
12798 #. type: =head2
12799 #: ../fish/guestfish-actions.pod:3298
12800 msgid "mkmountpoint"
12801 msgstr ""
12802
12803 #. type: verbatim
12804 #: ../fish/guestfish-actions.pod:3300
12805 #, no-wrap
12806 msgid ""
12807 " mkmountpoint exemptpath\n"
12808 "\n"
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:3302
12813 msgid ""
12814 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12815 "to create extra mountpoints before mounting the first filesystem."
12816 msgstr ""
12817
12818 #. type: textblock
12819 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5143
12820 msgid ""
12821 "These calls are I<only> necessary in some very limited circumstances, mainly "
12822 "the case where you want to mount a mix of unrelated and/or read-only "
12823 "filesystems together."
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5147
12828 msgid ""
12829 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12830 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12831 "inside that.  You can unpack this as follows in guestfish:"
12832 msgstr ""
12833
12834 #. type: verbatim
12835 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5152
12836 #, no-wrap
12837 msgid ""
12838 " add-ro Fedora-11-i686-Live.iso\n"
12839 " run\n"
12840 " mkmountpoint /cd\n"
12841 " mkmountpoint /sqsh\n"
12842 " mkmountpoint /ext3fs\n"
12843 " mount /dev/sda /cd\n"
12844 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12845 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5161
12851 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3326
12856 msgid ""
12857 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12858 "unexpected errors if you try to mix these calls.  It is safest to manually "
12859 "unmount filesystems and remove mountpoints after use."
12860 msgstr ""
12861
12862 #. type: textblock
12863 #: ../fish/guestfish-actions.pod:3330
12864 msgid ""
12865 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12866 "for this to work for manual mountpoints, you must ensure that the innermost "
12867 "mountpoints have the longest pathnames, as in the example code above."
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5172
12872 msgid ""
12873 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12874 msgstr ""
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:3337
12878 msgid ""
12879 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12880 "L</umount-all> to be called when the handle is closed which can also trigger "
12881 "these issues."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:3341
12886 msgid "mknod"
12887 msgstr ""
12888
12889 #. type: verbatim
12890 #: ../fish/guestfish-actions.pod:3343
12891 #, no-wrap
12892 msgid ""
12893 " mknod mode devmajor devminor path\n"
12894 "\n"
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5191
12899 msgid ""
12900 "This call creates block or character special devices, or named pipes (FIFOs)."
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5194
12905 msgid ""
12906 "The C<mode> parameter should be the mode, using the standard constants.  "
12907 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12908 "used when creating block and character special devices."
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../fish/guestfish-actions.pod:3353
12913 msgid ""
12914 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12915 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12916 "regular file).  These constants are available in the standard Linux header "
12917 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12918 "wrappers around this command which bitwise OR in the appropriate constant "
12919 "for you."
12920 msgstr ""
12921
12922 #. type: =head2
12923 #: ../fish/guestfish-actions.pod:3363
12924 msgid "mknod-b"
12925 msgstr ""
12926
12927 #. type: verbatim
12928 #: ../fish/guestfish-actions.pod:3365
12929 #, no-wrap
12930 msgid ""
12931 " mknod-b mode devmajor devminor path\n"
12932 "\n"
12933 msgstr ""
12934
12935 #. type: textblock
12936 #: ../fish/guestfish-actions.pod:3367
12937 msgid ""
12938 "This call creates a block device node called C<path> with mode C<mode> and "
12939 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12940 "wrapper around L</mknod>."
12941 msgstr ""
12942
12943 #. type: =head2
12944 #: ../fish/guestfish-actions.pod:3373
12945 msgid "mknod-c"
12946 msgstr ""
12947
12948 #. type: verbatim
12949 #: ../fish/guestfish-actions.pod:3375
12950 #, no-wrap
12951 msgid ""
12952 " mknod-c mode devmajor devminor path\n"
12953 "\n"
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3377
12958 msgid ""
12959 "This call creates a char device node called C<path> with mode C<mode> and "
12960 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12961 "wrapper around L</mknod>."
12962 msgstr ""
12963
12964 #. type: =head2
12965 #: ../fish/guestfish-actions.pod:3383
12966 msgid "mkswap"
12967 msgstr ""
12968
12969 #. type: verbatim
12970 #: ../fish/guestfish-actions.pod:3385
12971 #, no-wrap
12972 msgid ""
12973 " mkswap device\n"
12974 "\n"
12975 msgstr ""
12976
12977 #. type: textblock
12978 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5257
12979 msgid "Create a swap partition on C<device>."
12980 msgstr ""
12981
12982 #. type: =head2
12983 #: ../fish/guestfish-actions.pod:3389
12984 msgid "mkswap-L"
12985 msgstr ""
12986
12987 #. type: verbatim
12988 #: ../fish/guestfish-actions.pod:3391
12989 #, no-wrap
12990 msgid ""
12991 " mkswap-L label device\n"
12992 "\n"
12993 msgstr ""
12994
12995 #. type: textblock
12996 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5270
12997 msgid "Create a swap partition on C<device> with label C<label>."
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:3395 ../src/guestfs-actions.pod:5272
13002 msgid ""
13003 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13004 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13005 "or swap tools."
13006 msgstr ""
13007
13008 #. type: =head2
13009 #: ../fish/guestfish-actions.pod:3399
13010 msgid "mkswap-U"
13011 msgstr ""
13012
13013 #. type: verbatim
13014 #: ../fish/guestfish-actions.pod:3401
13015 #, no-wrap
13016 msgid ""
13017 " mkswap-U uuid device\n"
13018 "\n"
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3403 ../src/guestfs-actions.pod:5287
13023 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13024 msgstr ""
13025
13026 #. type: =head2
13027 #: ../fish/guestfish-actions.pod:3405
13028 msgid "mkswap-file"
13029 msgstr ""
13030
13031 #. type: verbatim
13032 #: ../fish/guestfish-actions.pod:3407
13033 #, no-wrap
13034 msgid ""
13035 " mkswap-file path\n"
13036 "\n"
13037 msgstr ""
13038
13039 #. type: textblock
13040 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5299
13041 msgid "Create a swap file."
13042 msgstr ""
13043
13044 #. type: textblock
13045 #: ../fish/guestfish-actions.pod:3411
13046 msgid ""
13047 "This command just writes a swap file signature to an existing file.  To "
13048 "create the file itself, use something like L</fallocate>."
13049 msgstr ""
13050
13051 #. type: =head2
13052 #: ../fish/guestfish-actions.pod:3414
13053 msgid "modprobe"
13054 msgstr ""
13055
13056 #. type: verbatim
13057 #: ../fish/guestfish-actions.pod:3416
13058 #, no-wrap
13059 msgid ""
13060 " modprobe modulename\n"
13061 "\n"
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5314
13066 msgid "This loads a kernel module in the appliance."
13067 msgstr ""
13068
13069 #. type: textblock
13070 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5316
13071 msgid ""
13072 "The kernel module must have been whitelisted when libguestfs was built (see "
13073 "C<appliance/kmod.whitelist.in> in the source)."
13074 msgstr ""
13075
13076 #. type: =head2
13077 #: ../fish/guestfish-actions.pod:3423
13078 msgid "mount"
13079 msgstr ""
13080
13081 #. type: verbatim
13082 #: ../fish/guestfish-actions.pod:3425
13083 #, no-wrap
13084 msgid ""
13085 " mount device mountpoint\n"
13086 "\n"
13087 msgstr ""
13088
13089 #. type: textblock
13090 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:5330
13091 msgid ""
13092 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13093 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13094 "those block devices contain partitions, they will have the usual names (eg. "
13095 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13096 msgstr ""
13097
13098 #. type: textblock
13099 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5336
13100 msgid ""
13101 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13102 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13103 "mounted on directories which already exist."
13104 msgstr ""
13105
13106 #. type: textblock
13107 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5341
13108 msgid ""
13109 "The mounted filesystem is writable, if we have sufficient permissions on the "
13110 "underlying device."
13111 msgstr ""
13112
13113 #. type: textblock
13114 #: ../fish/guestfish-actions.pod:3441
13115 msgid ""
13116 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13117 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13118 "problems for users.  If your program might need to work with older versions "
13119 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13120 "first parameter if you don't want any options)."
13121 msgstr ""
13122
13123 #. type: =head2
13124 #: ../fish/guestfish-actions.pod:3448
13125 msgid "mount-9p"
13126 msgstr ""
13127
13128 #. type: verbatim
13129 #: ../fish/guestfish-actions.pod:3450
13130 #, no-wrap
13131 msgid ""
13132 " mount-9p mounttag mountpoint [options:..]\n"
13133 "\n"
13134 msgstr ""
13135
13136 #. type: textblock
13137 #: ../fish/guestfish-actions.pod:3452 ../src/guestfs-actions.pod:5370
13138 msgid ""
13139 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13140 "C<mountpoint>."
13141 msgstr ""
13142
13143 #. type: textblock
13144 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5373
13145 msgid ""
13146 "If required, C<trans=virtio> will be automatically added to the options.  "
13147 "Any other options required can be passed in the optional C<options> "
13148 "parameter."
13149 msgstr ""
13150
13151 #. type: =head2
13152 #: ../fish/guestfish-actions.pod:3461
13153 msgid "mount-loop"
13154 msgstr ""
13155
13156 #. type: verbatim
13157 #: ../fish/guestfish-actions.pod:3463
13158 #, no-wrap
13159 msgid ""
13160 " mount-loop file mountpoint\n"
13161 "\n"
13162 msgstr ""
13163
13164 #. type: textblock
13165 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5412
13166 msgid ""
13167 "This command lets you mount C<file> (a filesystem image in a file) on a "
13168 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13169 "mountpoint>."
13170 msgstr ""
13171
13172 #. type: =head2
13173 #: ../fish/guestfish-actions.pod:3469
13174 msgid "mount-options"
13175 msgstr ""
13176
13177 #. type: verbatim
13178 #: ../fish/guestfish-actions.pod:3471
13179 #, no-wrap
13180 msgid ""
13181 " mount-options options device mountpoint\n"
13182 "\n"
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:3473
13187 msgid ""
13188 "This is the same as the L</mount> command, but it allows you to set the "
13189 "mount options as for the L<mount(8)> I<-o> flag."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3477 ../src/guestfs-actions.pod:5432
13194 msgid ""
13195 "If the C<options> parameter is an empty string, then no options are passed "
13196 "(all options default to whatever the filesystem uses)."
13197 msgstr ""
13198
13199 #. type: =head2
13200 #: ../fish/guestfish-actions.pod:3481
13201 msgid "mount-ro"
13202 msgstr ""
13203
13204 #. type: verbatim
13205 #: ../fish/guestfish-actions.pod:3483
13206 #, no-wrap
13207 msgid ""
13208 " mount-ro device mountpoint\n"
13209 "\n"
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:3485
13214 msgid ""
13215 "This is the same as the L</mount> command, but it mounts the filesystem with "
13216 "the read-only (I<-o ro>) flag."
13217 msgstr ""
13218
13219 #. type: =head2
13220 #: ../fish/guestfish-actions.pod:3488
13221 msgid "mount-vfs"
13222 msgstr ""
13223
13224 #. type: verbatim
13225 #: ../fish/guestfish-actions.pod:3490
13226 #, no-wrap
13227 msgid ""
13228 " mount-vfs options vfstype device mountpoint\n"
13229 "\n"
13230 msgstr ""
13231
13232 #. type: textblock
13233 #: ../fish/guestfish-actions.pod:3492
13234 msgid ""
13235 "This is the same as the L</mount> command, but it allows you to set both the "
13236 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13237 msgstr ""
13238
13239 #. type: =head2
13240 #: ../fish/guestfish-actions.pod:3496
13241 msgid "mountpoints"
13242 msgstr ""
13243
13244 #. type: verbatim
13245 #: ../fish/guestfish-actions.pod:3498
13246 #, no-wrap
13247 msgid ""
13248 " mountpoints\n"
13249 "\n"
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:3500
13254 msgid ""
13255 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13256 "This one returns a hash table (map) of device name to directory where the "
13257 "device is mounted."
13258 msgstr ""
13259
13260 #. type: =head2
13261 #: ../fish/guestfish-actions.pod:3504
13262 msgid "mounts"
13263 msgstr ""
13264
13265 #. type: verbatim
13266 #: ../fish/guestfish-actions.pod:3506
13267 #, no-wrap
13268 msgid ""
13269 " mounts\n"
13270 "\n"
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5493
13275 msgid ""
13276 "This returns the list of currently mounted filesystems.  It returns the list "
13277 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13278 msgstr ""
13279
13280 #. type: textblock
13281 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5496
13282 msgid "Some internal mounts are not shown."
13283 msgstr ""
13284
13285 #. type: textblock
13286 #: ../fish/guestfish-actions.pod:3513
13287 msgid "See also: L</mountpoints>"
13288 msgstr ""
13289
13290 #. type: =head2
13291 #: ../fish/guestfish-actions.pod:3515
13292 msgid "mv"
13293 msgstr ""
13294
13295 #. type: verbatim
13296 #: ../fish/guestfish-actions.pod:3517
13297 #, no-wrap
13298 msgid ""
13299 " mv src dest\n"
13300 "\n"
13301 msgstr ""
13302
13303 #. type: textblock
13304 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5513
13305 msgid ""
13306 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13307 "destination filename or destination directory."
13308 msgstr ""
13309
13310 #. type: =head2
13311 #: ../fish/guestfish-actions.pod:3522
13312 msgid "ntfs-3g-probe"
13313 msgstr ""
13314
13315 #. type: verbatim
13316 #: ../fish/guestfish-actions.pod:3524
13317 #, no-wrap
13318 msgid ""
13319 " ntfs-3g-probe true|false device\n"
13320 "\n"
13321 msgstr ""
13322
13323 #. type: textblock
13324 #: ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:5527
13325 msgid ""
13326 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13327 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13328 "write, and some cannot be mounted at all)."
13329 msgstr ""
13330
13331 #. type: textblock
13332 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5531
13333 msgid ""
13334 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13335 "can be mounted read-write.  Set it to false if you want to test if the "
13336 "volume can be mounted read-only."
13337 msgstr ""
13338
13339 #. type: textblock
13340 #: ../fish/guestfish-actions.pod:3534 ../src/guestfs-actions.pod:5535
13341 msgid ""
13342 "The return value is an integer which C<0> if the operation would succeed, or "
13343 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13344 msgstr ""
13345
13346 #. type: =head2
13347 #: ../fish/guestfish-actions.pod:3538
13348 msgid "ntfsresize"
13349 msgstr ""
13350
13351 #. type: verbatim
13352 #: ../fish/guestfish-actions.pod:3540
13353 #, no-wrap
13354 msgid ""
13355 " ntfsresize device\n"
13356 "\n"
13357 msgstr ""
13358
13359 #. type: textblock
13360 #: ../fish/guestfish-actions.pod:3542 ../fish/guestfish-actions.pod:3566
13361 #: ../src/guestfs-actions.pod:5556 ../src/guestfs-actions.pod:5588
13362 msgid ""
13363 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13364 "size of the underlying device."
13365 msgstr ""
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5559
13369 msgid ""
13370 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13371 "consistency check (for safety).  You have to boot into Windows to perform "
13372 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13373 "resize filesystems which have been marked in this way.  So in effect it is "
13374 "not possible to call ntfsresize multiple times on a single filesystem "
13375 "without booting into Windows between each resize."
13376 msgstr ""
13377
13378 #. type: textblock
13379 #: ../fish/guestfish-actions.pod:3553 ../fish/guestfish-actions.pod:3592
13380 #: ../src/guestfs-actions.pod:5567 ../src/guestfs-actions.pod:5614
13381 msgid "See also L<ntfsresize(8)>."
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3555 ../fish/guestfish-actions.pod:3603
13386 msgid ""
13387 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13388 "call instead."
13389 msgstr ""
13390
13391 #. type: =head2
13392 #: ../fish/guestfish-actions.pod:3562
13393 msgid "ntfsresize-opts"
13394 msgstr ""
13395
13396 #. type: verbatim
13397 #: ../fish/guestfish-actions.pod:3564
13398 #, no-wrap
13399 msgid ""
13400 " ntfsresize-opts device [size:..] [force:..]\n"
13401 "\n"
13402 msgstr ""
13403
13404 #. type: textblock
13405 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5597
13406 msgid ""
13407 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13408 "resized to fit the container (eg. partition)."
13409 msgstr ""
13410
13411 #. type: =item
13412 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5600
13413 msgid "C<force>"
13414 msgstr ""
13415
13416 #. type: textblock
13417 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5602
13418 msgid ""
13419 "If this option is true, then force the resize of the filesystem even if the "
13420 "filesystem is marked as requiring a consistency check."
13421 msgstr ""
13422
13423 #. type: textblock
13424 #: ../fish/guestfish-actions.pod:3583
13425 msgid ""
13426 "After the resize operation, the filesystem is always marked as requiring a "
13427 "consistency check (for safety).  You have to boot into Windows to perform "
13428 "this check and clear this condition.  If you I<don't> set the C<force> "
13429 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13430 "a single filesystem without booting into Windows between each resize."
13431 msgstr ""
13432
13433 #. type: =head2
13434 #: ../fish/guestfish-actions.pod:3596
13435 msgid "ntfsresize-size"
13436 msgstr ""
13437
13438 #. type: verbatim
13439 #: ../fish/guestfish-actions.pod:3598
13440 #, no-wrap
13441 msgid ""
13442 " ntfsresize-size device size\n"
13443 "\n"
13444 msgstr ""
13445
13446 #. type: textblock
13447 #: ../fish/guestfish-actions.pod:3600
13448 msgid ""
13449 "This command is the same as L</ntfsresize> except that it allows you to "
13450 "specify the new size (in bytes) explicitly."
13451 msgstr ""
13452
13453 #. type: =head2
13454 #: ../fish/guestfish-actions.pod:3610
13455 msgid "part-add"
13456 msgstr ""
13457
13458 #. type: verbatim
13459 #: ../fish/guestfish-actions.pod:3612
13460 #, no-wrap
13461 msgid ""
13462 " part-add device prlogex startsect endsect\n"
13463 "\n"
13464 msgstr ""
13465
13466 #. type: textblock
13467 #: ../fish/guestfish-actions.pod:3614
13468 msgid ""
13469 "This command adds a partition to C<device>.  If there is no partition table "
13470 "on the device, call L</part-init> first."
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5675
13475 msgid ""
13476 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13477 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13478 "C<logical>) and C<e> (or C<extended>) partition types."
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5680
13483 msgid ""
13484 "C<startsect> and C<endsect> are the start and end of the partition in "
13485 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13486 "from the end of the disk (C<-1> is the last sector)."
13487 msgstr ""
13488
13489 #. type: textblock
13490 #: ../fish/guestfish-actions.pod:3626
13491 msgid ""
13492 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13493 "part-disk> to do that."
13494 msgstr ""
13495
13496 #. type: =head2
13497 #: ../fish/guestfish-actions.pod:3629
13498 msgid "part-del"
13499 msgstr ""
13500
13501 #. type: verbatim
13502 #: ../fish/guestfish-actions.pod:3631
13503 #, no-wrap
13504 msgid ""
13505 " part-del device partnum\n"
13506 "\n"
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5698
13511 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5700
13516 msgid ""
13517 "Note that in the case of MBR partitioning, deleting an extended partition "
13518 "also deletes any logical partitions it contains."
13519 msgstr ""
13520
13521 #. type: =head2
13522 #: ../fish/guestfish-actions.pod:3639
13523 msgid "part-disk"
13524 msgstr ""
13525
13526 #. type: verbatim
13527 #: ../fish/guestfish-actions.pod:3641
13528 #, no-wrap
13529 msgid ""
13530 " part-disk device parttype\n"
13531 "\n"
13532 msgstr ""
13533
13534 #. type: textblock
13535 #: ../fish/guestfish-actions.pod:3643
13536 msgid ""
13537 "This command is simply a combination of L</part-init> followed by L</part-"
13538 "add> to create a single primary partition covering the whole disk."
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:3647
13543 msgid ""
13544 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13545 "possible values are described in L</part-init>."
13546 msgstr ""
13547
13548 #. type: =head2
13549 #: ../fish/guestfish-actions.pod:3653
13550 msgid "part-get-bootable"
13551 msgstr ""
13552
13553 #. type: verbatim
13554 #: ../fish/guestfish-actions.pod:3655
13555 #, no-wrap
13556 msgid ""
13557 " part-get-bootable device partnum\n"
13558 "\n"
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5736
13563 msgid ""
13564 "This command returns true if the partition C<partnum> on C<device> has the "
13565 "bootable flag set."
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:3660
13570 msgid "See also L</part-set-bootable>."
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:3662
13575 msgid "part-get-mbr-id"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:3664
13580 #, no-wrap
13581 msgid ""
13582 " part-get-mbr-id device partnum\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5752
13588 msgid ""
13589 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13590 "partition C<partnum>."
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:3669 ../fish/guestfish-actions.pod:3813
13595 msgid ""
13596 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13597 "undefined results for other partition table types (see L</part-get-"
13598 "parttype>)."
13599 msgstr ""
13600
13601 #. type: =head2
13602 #: ../fish/guestfish-actions.pod:3673
13603 msgid "part-get-parttype"
13604 msgstr ""
13605
13606 #. type: verbatim
13607 #: ../fish/guestfish-actions.pod:3675
13608 #, no-wrap
13609 msgid ""
13610 " part-get-parttype device\n"
13611 "\n"
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5769
13616 msgid ""
13617 "This command examines the partition table on C<device> and returns the "
13618 "partition table type (format) being used."
13619 msgstr ""
13620
13621 #. type: textblock
13622 #: ../fish/guestfish-actions.pod:3680
13623 msgid ""
13624 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13625 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13626 "possible, although unusual.  See L</part-init> for a full list."
13627 msgstr ""
13628
13629 #. type: =head2
13630 #: ../fish/guestfish-actions.pod:3685
13631 msgid "part-init"
13632 msgstr ""
13633
13634 #. type: verbatim
13635 #: ../fish/guestfish-actions.pod:3687
13636 #, no-wrap
13637 msgid ""
13638 " part-init device parttype\n"
13639 "\n"
13640 msgstr ""
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5789
13644 msgid ""
13645 "This creates an empty partition table on C<device> of one of the partition "
13646 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13647 "(for large disks)."
13648 msgstr ""
13649
13650 #. type: textblock
13651 #: ../fish/guestfish-actions.pod:3693
13652 msgid ""
13653 "Initially there are no partitions.  Following this, you should call L</part-"
13654 "add> for each partition required."
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5796
13659 msgid "Possible values for C<parttype> are:"
13660 msgstr ""
13661
13662 #. type: =item
13663 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5800
13664 msgid "B<efi>"
13665 msgstr ""
13666
13667 #. type: =item
13668 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5802
13669 msgid "B<gpt>"
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5804
13674 msgid "Intel EFI / GPT partition table."
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5806
13679 msgid ""
13680 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13681 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13682 "the C<mbr> format."
13683 msgstr ""
13684
13685 #. type: =item
13686 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5810
13687 msgid "B<mbr>"
13688 msgstr ""
13689
13690 #. type: =item
13691 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5812
13692 msgid "B<msdos>"
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5814
13697 msgid ""
13698 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13699 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13700 "TB.  For large disks we recommend using C<gpt>."
13701 msgstr ""
13702
13703 #. type: textblock
13704 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5821
13705 msgid ""
13706 "Other partition table types that may work but are not supported include:"
13707 msgstr ""
13708
13709 #. type: =item
13710 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5826
13711 msgid "B<aix>"
13712 msgstr ""
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:3728 ../src/guestfs-actions.pod:5828
13716 msgid "AIX disk labels."
13717 msgstr ""
13718
13719 #. type: =item
13720 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5830
13721 msgid "B<amiga>"
13722 msgstr ""
13723
13724 #. type: =item
13725 #: ../fish/guestfish-actions.pod:3732 ../src/guestfs-actions.pod:5832
13726 msgid "B<rdb>"
13727 msgstr ""
13728
13729 #. type: textblock
13730 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5834
13731 msgid "Amiga \"Rigid Disk Block\" format."
13732 msgstr ""
13733
13734 #. type: =item
13735 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5836
13736 msgid "B<bsd>"
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5838
13741 msgid "BSD disk labels."
13742 msgstr ""
13743
13744 #. type: =item
13745 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5840
13746 msgid "B<dasd>"
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5842
13751 msgid "DASD, used on IBM mainframes."
13752 msgstr ""
13753
13754 #. type: =item
13755 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5844
13756 msgid "B<dvh>"
13757 msgstr ""
13758
13759 #. type: textblock
13760 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5846
13761 msgid "MIPS/SGI volumes."
13762 msgstr ""
13763
13764 #. type: =item
13765 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5848
13766 msgid "B<mac>"
13767 msgstr ""
13768
13769 #. type: textblock
13770 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5850
13771 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13772 msgstr ""
13773
13774 #. type: =item
13775 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5852
13776 msgid "B<pc98>"
13777 msgstr ""
13778
13779 #. type: textblock
13780 #: ../fish/guestfish-actions.pod:3754 ../src/guestfs-actions.pod:5854
13781 msgid "NEC PC-98 format, common in Japan apparently."
13782 msgstr ""
13783
13784 #. type: =item
13785 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5856
13786 msgid "B<sun>"
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5858
13791 msgid "Sun disk labels."
13792 msgstr ""
13793
13794 #. type: =head2
13795 #: ../fish/guestfish-actions.pod:3762
13796 msgid "part-list"
13797 msgstr ""
13798
13799 #. type: verbatim
13800 #: ../fish/guestfish-actions.pod:3764
13801 #, no-wrap
13802 msgid ""
13803 " part-list device\n"
13804 "\n"
13805 msgstr ""
13806
13807 #. type: textblock
13808 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5872
13809 msgid ""
13810 "This command parses the partition table on C<device> and returns the list of "
13811 "partitions found."
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5875
13816 msgid "The fields in the returned structure are:"
13817 msgstr ""
13818
13819 #. type: =item
13820 #: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5879
13821 msgid "B<part_num>"
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5881
13826 msgid "Partition number, counting from 1."
13827 msgstr ""
13828
13829 #. type: =item
13830 #: ../fish/guestfish-actions.pod:3777 ../src/guestfs-actions.pod:5883
13831 msgid "B<part_start>"
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:3779
13836 msgid ""
13837 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13838 "the device's sector size, see L</blockdev-getss>."
13839 msgstr ""
13840
13841 #. type: =item
13842 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5888
13843 msgid "B<part_end>"
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5890
13848 msgid "End of the partition in bytes."
13849 msgstr ""
13850
13851 #. type: =item
13852 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5892
13853 msgid "B<part_size>"
13854 msgstr ""
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5894
13858 msgid "Size of the partition in bytes."
13859 msgstr ""
13860
13861 #. type: =head2
13862 #: ../fish/guestfish-actions.pod:3792
13863 msgid "part-set-bootable"
13864 msgstr ""
13865
13866 #. type: verbatim
13867 #: ../fish/guestfish-actions.pod:3794
13868 #, no-wrap
13869 msgid ""
13870 " part-set-bootable device partnum true|false\n"
13871 "\n"
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5912
13876 msgid ""
13877 "This sets the bootable flag on partition numbered C<partnum> on device "
13878 "C<device>.  Note that partitions are numbered from 1."
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5915
13883 msgid ""
13884 "The bootable flag is used by some operating systems (notably Windows) to "
13885 "determine which partition to boot from.  It is by no means universally "
13886 "recognized."
13887 msgstr ""
13888
13889 #. type: =head2
13890 #: ../fish/guestfish-actions.pod:3803
13891 msgid "part-set-mbr-id"
13892 msgstr ""
13893
13894 #. type: verbatim
13895 #: ../fish/guestfish-actions.pod:3805
13896 #, no-wrap
13897 msgid ""
13898 " part-set-mbr-id device partnum idbyte\n"
13899 "\n"
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5931
13904 msgid ""
13905 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13906 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13907 "documentation are in fact hexadecimal numbers, but usually documented "
13908 "without any leading \"0x\" which might be confusing."
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../fish/guestfish-actions.pod:3817
13913 msgid "part-set-name"
13914 msgstr ""
13915
13916 #. type: verbatim
13917 #: ../fish/guestfish-actions.pod:3819
13918 #, no-wrap
13919 msgid ""
13920 " part-set-name device partnum name\n"
13921 "\n"
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5953
13926 msgid ""
13927 "This sets the partition name on partition numbered C<partnum> on device "
13928 "C<device>.  Note that partitions are numbered from 1."
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5956
13933 msgid ""
13934 "The partition name can only be set on certain types of partition table.  "
13935 "This works on C<gpt> but not on C<mbr> partitions."
13936 msgstr ""
13937
13938 #. type: =head2
13939 #: ../fish/guestfish-actions.pod:3827
13940 msgid "part-to-dev"
13941 msgstr ""
13942
13943 #. type: verbatim
13944 #: ../fish/guestfish-actions.pod:3829
13945 #, no-wrap
13946 msgid ""
13947 " part-to-dev partition\n"
13948 "\n"
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5969
13953 msgid ""
13954 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13955 "partition number, returning the device name (eg. \"/dev/sdb\")."
13956 msgstr ""
13957
13958 #. type: textblock
13959 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:3847
13960 msgid ""
13961 "The named partition must exist, for example as a string returned from L</"
13962 "list-partitions>."
13963 msgstr ""
13964
13965 #. type: textblock
13966 #: ../fish/guestfish-actions.pod:3838
13967 msgid "See also L</part-to-partnum>."
13968 msgstr ""
13969
13970 #. type: =head2
13971 #: ../fish/guestfish-actions.pod:3840
13972 msgid "part-to-partnum"
13973 msgstr ""
13974
13975 #. type: verbatim
13976 #: ../fish/guestfish-actions.pod:3842
13977 #, no-wrap
13978 msgid ""
13979 " part-to-partnum partition\n"
13980 "\n"
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5989
13985 msgid ""
13986 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
13987 "partition number (eg. C<1>)."
13988 msgstr ""
13989
13990 #. type: textblock
13991 #: ../fish/guestfish-actions.pod:3850
13992 msgid "See also L</part-to-dev>."
13993 msgstr ""
13994
13995 #. type: =head2
13996 #: ../fish/guestfish-actions.pod:3852
13997 msgid "ping-daemon"
13998 msgstr ""
13999
14000 #. type: verbatim
14001 #: ../fish/guestfish-actions.pod:3854
14002 #, no-wrap
14003 msgid ""
14004 " ping-daemon\n"
14005 "\n"
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6004
14010 msgid ""
14011 "This is a test probe into the guestfs daemon running inside the qemu "
14012 "subprocess.  Calling this function checks that the daemon responds to the "
14013 "ping message, without affecting the daemon or attached block device(s) in "
14014 "any other way."
14015 msgstr ""
14016
14017 #. type: =head2
14018 #: ../fish/guestfish-actions.pod:3861
14019 msgid "pread"
14020 msgstr ""
14021
14022 #. type: verbatim
14023 #: ../fish/guestfish-actions.pod:3863
14024 #, no-wrap
14025 msgid ""
14026 " pread path count offset\n"
14027 "\n"
14028 msgstr ""
14029
14030 #. type: textblock
14031 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6022
14032 msgid ""
14033 "This command lets you read part of a file.  It reads C<count> bytes of the "
14034 "file, starting at C<offset>, from file C<path>."
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3868 ../fish/guestfish-actions.pod:3883
14039 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6051
14040 msgid ""
14041 "This may read fewer bytes than requested.  For further details see the "
14042 "L<pread(2)> system call."
14043 msgstr ""
14044
14045 #. type: textblock
14046 #: ../fish/guestfish-actions.pod:3871
14047 msgid "See also L</pwrite>, L</pread-device>."
14048 msgstr ""
14049
14050 #. type: =head2
14051 #: ../fish/guestfish-actions.pod:3876
14052 msgid "pread-device"
14053 msgstr ""
14054
14055 #. type: verbatim
14056 #: ../fish/guestfish-actions.pod:3878
14057 #, no-wrap
14058 msgid ""
14059 " pread-device device count offset\n"
14060 "\n"
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6048
14065 msgid ""
14066 "This command lets you read part of a file.  It reads C<count> bytes of "
14067 "C<device>, starting at C<offset>."
14068 msgstr ""
14069
14070 #. type: textblock
14071 #: ../fish/guestfish-actions.pod:3886
14072 msgid "See also L</pread>."
14073 msgstr ""
14074
14075 #. type: =head2
14076 #: ../fish/guestfish-actions.pod:3891
14077 msgid "pvcreate"
14078 msgstr ""
14079
14080 #. type: verbatim
14081 #: ../fish/guestfish-actions.pod:3893
14082 #, no-wrap
14083 msgid ""
14084 " pvcreate device\n"
14085 "\n"
14086 msgstr ""
14087
14088 #. type: textblock
14089 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:6071
14090 msgid ""
14091 "This creates an LVM physical volume on the named C<device>, where C<device> "
14092 "should usually be a partition name such as C</dev/sda1>."
14093 msgstr ""
14094
14095 #. type: =head2
14096 #: ../fish/guestfish-actions.pod:3899
14097 msgid "pvremove"
14098 msgstr ""
14099
14100 #. type: verbatim
14101 #: ../fish/guestfish-actions.pod:3901
14102 #, no-wrap
14103 msgid ""
14104 " pvremove device\n"
14105 "\n"
14106 msgstr ""
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6085
14110 msgid ""
14111 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14112 "it."
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6088
14117 msgid ""
14118 "The implementation uses the C<pvremove> command which refuses to wipe "
14119 "physical volumes that contain any volume groups, so you have to remove those "
14120 "first."
14121 msgstr ""
14122
14123 #. type: =head2
14124 #: ../fish/guestfish-actions.pod:3910
14125 msgid "pvresize"
14126 msgstr ""
14127
14128 #. type: verbatim
14129 #: ../fish/guestfish-actions.pod:3912
14130 #, no-wrap
14131 msgid ""
14132 " pvresize device\n"
14133 "\n"
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6102
14138 msgid ""
14139 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14140 "the new size of the underlying device."
14141 msgstr ""
14142
14143 #. type: =head2
14144 #: ../fish/guestfish-actions.pod:3917
14145 msgid "pvresize-size"
14146 msgstr ""
14147
14148 #. type: verbatim
14149 #: ../fish/guestfish-actions.pod:3919
14150 #, no-wrap
14151 msgid ""
14152 " pvresize-size device size\n"
14153 "\n"
14154 msgstr ""
14155
14156 #. type: textblock
14157 #: ../fish/guestfish-actions.pod:3921
14158 msgid ""
14159 "This command is the same as L</pvresize> except that it allows you to "
14160 "specify the new size (in bytes) explicitly."
14161 msgstr ""
14162
14163 #. type: =head2
14164 #: ../fish/guestfish-actions.pod:3924
14165 msgid "pvs"
14166 msgstr ""
14167
14168 #. type: verbatim
14169 #: ../fish/guestfish-actions.pod:3926
14170 #, no-wrap
14171 msgid ""
14172 " pvs\n"
14173 "\n"
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6128
14178 msgid ""
14179 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14180 "(8)> command."
14181 msgstr ""
14182
14183 #. type: textblock
14184 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6131
14185 msgid ""
14186 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14187 "sda2>)."
14188 msgstr ""
14189
14190 #. type: textblock
14191 #: ../fish/guestfish-actions.pod:3934
14192 msgid "See also L</pvs-full>."
14193 msgstr ""
14194
14195 #. type: =head2
14196 #: ../fish/guestfish-actions.pod:3936
14197 msgid "pvs-full"
14198 msgstr ""
14199
14200 #. type: verbatim
14201 #: ../fish/guestfish-actions.pod:3938
14202 #, no-wrap
14203 msgid ""
14204 " pvs-full\n"
14205 "\n"
14206 msgstr ""
14207
14208 #. type: textblock
14209 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6147
14210 msgid ""
14211 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14212 "(8)> command.  The \"full\" version includes all fields."
14213 msgstr ""
14214
14215 #. type: =head2
14216 #: ../fish/guestfish-actions.pod:3943
14217 msgid "pvuuid"
14218 msgstr ""
14219
14220 #. type: verbatim
14221 #: ../fish/guestfish-actions.pod:3945
14222 #, no-wrap
14223 msgid ""
14224 " pvuuid device\n"
14225 "\n"
14226 msgstr ""
14227
14228 #. type: textblock
14229 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6162
14230 msgid "This command returns the UUID of the LVM PV C<device>."
14231 msgstr ""
14232
14233 #. type: =head2
14234 #: ../fish/guestfish-actions.pod:3949
14235 msgid "pwrite"
14236 msgstr ""
14237
14238 #. type: verbatim
14239 #: ../fish/guestfish-actions.pod:3951
14240 #, no-wrap
14241 msgid ""
14242 " pwrite path content offset\n"
14243 "\n"
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:6178
14248 msgid ""
14249 "This command writes to part of a file.  It writes the data buffer C<content> "
14250 "to the file C<path> starting at offset C<offset>."
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6181
14255 msgid ""
14256 "This command implements the L<pwrite(2)> system call, and like that system "
14257 "call it may not write the full data requested.  The return value is the "
14258 "number of bytes that were actually written to the file.  This could even be "
14259 "0, although short writes are unlikely for regular files in ordinary "
14260 "circumstances."
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:3962
14265 msgid "See also L</pread>, L</pwrite-device>."
14266 msgstr ""
14267
14268 #. type: =head2
14269 #: ../fish/guestfish-actions.pod:3967
14270 msgid "pwrite-device"
14271 msgstr ""
14272
14273 #. type: verbatim
14274 #: ../fish/guestfish-actions.pod:3969
14275 #, no-wrap
14276 msgid ""
14277 " pwrite-device device content offset\n"
14278 "\n"
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6205
14283 msgid ""
14284 "This command writes to part of a device.  It writes the data buffer "
14285 "C<content> to C<device> starting at offset C<offset>."
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6208
14290 msgid ""
14291 "This command implements the L<pwrite(2)> system call, and like that system "
14292 "call it may not write the full data requested (although short writes to disk "
14293 "devices and partitions are probably impossible with standard Linux kernels)."
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../fish/guestfish-actions.pod:3979
14298 msgid "See also L</pwrite>."
14299 msgstr ""
14300
14301 #. type: =head2
14302 #: ../fish/guestfish-actions.pod:3984
14303 msgid "read-file"
14304 msgstr ""
14305
14306 #. type: verbatim
14307 #: ../fish/guestfish-actions.pod:3986
14308 #, no-wrap
14309 msgid ""
14310 " read-file path\n"
14311 "\n"
14312 msgstr ""
14313
14314 #. type: textblock
14315 #: ../fish/guestfish-actions.pod:3988 ../src/guestfs-actions.pod:6229
14316 msgid "This calls returns the contents of the file C<path> as a buffer."
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3991
14321 msgid ""
14322 "Unlike L</cat>, this function can correctly handle files that contain "
14323 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14324 "is limited in the total size of file that can be handled."
14325 msgstr ""
14326
14327 #. type: =head2
14328 #: ../fish/guestfish-actions.pod:3999
14329 msgid "read-lines"
14330 msgstr ""
14331
14332 #. type: verbatim
14333 #: ../fish/guestfish-actions.pod:4001
14334 #, no-wrap
14335 msgid ""
14336 " read-lines path\n"
14337 "\n"
14338 msgstr ""
14339
14340 #. type: textblock
14341 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6254
14342 msgid ""
14343 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14344 "C<CRLF> character sequences are I<not> returned."
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../fish/guestfish-actions.pod:4008
14349 msgid ""
14350 "Note that this function cannot correctly handle binary files (specifically, "
14351 "files containing C<\\0> character which is treated as end of line).  For "
14352 "those you need to use the L</read-file> function which has a more complex "
14353 "interface."
14354 msgstr ""
14355
14356 #. type: =head2
14357 #: ../fish/guestfish-actions.pod:4013
14358 msgid "readdir"
14359 msgstr ""
14360
14361 #. type: verbatim
14362 #: ../fish/guestfish-actions.pod:4015
14363 #, no-wrap
14364 msgid ""
14365 " readdir dir\n"
14366 "\n"
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6274
14371 msgid "This returns the list of directory entries in directory C<dir>."
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6276
14376 msgid ""
14377 "All entries in the directory are returned, including C<.> and C<..>.  The "
14378 "entries are I<not> sorted, but returned in the same order as the underlying "
14379 "filesystem."
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6280
14384 msgid ""
14385 "Also this call returns basic file type information about each file.  The "
14386 "C<ftyp> field will contain one of the following characters:"
14387 msgstr ""
14388
14389 #. type: =item
14390 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6285
14391 msgid "'b'"
14392 msgstr ""
14393
14394 #. type: textblock
14395 #: ../fish/guestfish-actions.pod:4030 ../src/guestfs-actions.pod:6287
14396 msgid "Block special"
14397 msgstr ""
14398
14399 #. type: =item
14400 #: ../fish/guestfish-actions.pod:4032 ../src/guestfs-actions.pod:6289
14401 msgid "'c'"
14402 msgstr ""
14403
14404 #. type: textblock
14405 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6291
14406 msgid "Char special"
14407 msgstr ""
14408
14409 #. type: =item
14410 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6293
14411 msgid "'d'"
14412 msgstr ""
14413
14414 #. type: textblock
14415 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6295
14416 msgid "Directory"
14417 msgstr ""
14418
14419 #. type: =item
14420 #: ../fish/guestfish-actions.pod:4040 ../src/guestfs-actions.pod:6297
14421 msgid "'f'"
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../fish/guestfish-actions.pod:4042 ../src/guestfs-actions.pod:6299
14426 msgid "FIFO (named pipe)"
14427 msgstr ""
14428
14429 #. type: =item
14430 #: ../fish/guestfish-actions.pod:4044 ../src/guestfs-actions.pod:6301
14431 msgid "'l'"
14432 msgstr ""
14433
14434 #. type: textblock
14435 #: ../fish/guestfish-actions.pod:4046 ../src/guestfs-actions.pod:6303
14436 msgid "Symbolic link"
14437 msgstr ""
14438
14439 #. type: =item
14440 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6305
14441 msgid "'r'"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:4050 ../src/guestfs-actions.pod:6307
14446 msgid "Regular file"
14447 msgstr ""
14448
14449 #. type: =item
14450 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6309
14451 msgid "'s'"
14452 msgstr ""
14453
14454 #. type: textblock
14455 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6311
14456 msgid "Socket"
14457 msgstr ""
14458
14459 #. type: =item
14460 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
14461 msgid "'u'"
14462 msgstr ""
14463
14464 #. type: textblock
14465 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6315
14466 msgid "Unknown file type"
14467 msgstr ""
14468
14469 #. type: =item
14470 #: ../fish/guestfish-actions.pod:4060 ../src/guestfs-actions.pod:6317
14471 msgid "'?'"
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6319
14476 msgid ""
14477 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14478 msgstr ""
14479
14480 #. type: textblock
14481 #: ../fish/guestfish-actions.pod:4067
14482 msgid ""
14483 "This function is primarily intended for use by programs.  To get a simple "
14484 "list of names, use L</ls>.  To get a printable directory for human "
14485 "consumption, use L</ll>."
14486 msgstr ""
14487
14488 #. type: =head2
14489 #: ../fish/guestfish-actions.pod:4071
14490 msgid "readlink"
14491 msgstr ""
14492
14493 #. type: verbatim
14494 #: ../fish/guestfish-actions.pod:4073
14495 #, no-wrap
14496 msgid ""
14497 " readlink path\n"
14498 "\n"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:4075 ../src/guestfs-actions.pod:6340
14503 msgid "This command reads the target of a symbolic link."
14504 msgstr ""
14505
14506 #. type: =head2
14507 #: ../fish/guestfish-actions.pod:4077
14508 msgid "readlinklist"
14509 msgstr ""
14510
14511 #. type: verbatim
14512 #: ../fish/guestfish-actions.pod:4079
14513 #, no-wrap
14514 msgid ""
14515 " readlinklist path 'names ...'\n"
14516 "\n"
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:4081 ../src/guestfs-actions.pod:6354
14521 msgid ""
14522 "This call allows you to do a C<readlink> operation on multiple files, where "
14523 "all files are in the directory C<path>.  C<names> is the list of files from "
14524 "this directory."
14525 msgstr ""
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6358
14529 msgid ""
14530 "On return you get a list of strings, with a one-to-one correspondence to the "
14531 "C<names> list.  Each string is the value of the symbolic link."
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6362
14536 msgid ""
14537 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14538 "result string is the empty string C<\"\">.  However the whole operation is "
14539 "completed even if there were C<readlink(2)> errors, and so you can call this "
14540 "function with names where you don't know if they are symbolic links already "
14541 "(albeit slightly less efficient)."
14542 msgstr ""
14543
14544 #. type: textblock
14545 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6369
14546 msgid ""
14547 "This call is intended for programs that want to efficiently list a directory "
14548 "contents without making many round-trips.  Very long directory listings "
14549 "might cause the protocol message size to be exceeded, causing this call to "
14550 "fail.  The caller must split up such requests into smaller groups of names."
14551 msgstr ""
14552
14553 #. type: =head2
14554 #: ../fish/guestfish-actions.pod:4103
14555 msgid "realpath"
14556 msgstr ""
14557
14558 #. type: verbatim
14559 #: ../fish/guestfish-actions.pod:4105
14560 #, no-wrap
14561 msgid ""
14562 " realpath path\n"
14563 "\n"
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6388
14568 msgid ""
14569 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14570 "has no C<.>, C<..> or symbolic link path elements."
14571 msgstr ""
14572
14573 #. type: =head2
14574 #: ../fish/guestfish-actions.pod:4110
14575 msgid "removexattr"
14576 msgstr ""
14577
14578 #. type: verbatim
14579 #: ../fish/guestfish-actions.pod:4112
14580 #, no-wrap
14581 msgid ""
14582 " removexattr xattr path\n"
14583 "\n"
14584 msgstr ""
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6403
14588 msgid ""
14589 "This call removes the extended attribute named C<xattr> of the file C<path>."
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4117
14594 msgid "See also: L</lremovexattr>, L<attr(5)>."
14595 msgstr ""
14596
14597 #. type: =head2
14598 #: ../fish/guestfish-actions.pod:4119
14599 msgid "resize2fs"
14600 msgstr ""
14601
14602 #. type: verbatim
14603 #: ../fish/guestfish-actions.pod:4121
14604 #, no-wrap
14605 msgid ""
14606 " resize2fs device\n"
14607 "\n"
14608 msgstr ""
14609
14610 #. type: textblock
14611 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6418
14612 msgid ""
14613 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14614 "underlying device."
14615 msgstr ""
14616
14617 #. type: textblock
14618 #: ../fish/guestfish-actions.pod:4126
14619 msgid ""
14620 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14621 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14622 "gives an error about this and sometimes not.  In any case, it is always safe "
14623 "to call L</e2fsck-f> before calling this function."
14624 msgstr ""
14625
14626 #. type: =head2
14627 #: ../fish/guestfish-actions.pod:4132
14628 msgid "resize2fs-M"
14629 msgstr ""
14630
14631 #. type: verbatim
14632 #: ../fish/guestfish-actions.pod:4134
14633 #, no-wrap
14634 msgid ""
14635 " resize2fs-M device\n"
14636 "\n"
14637 msgstr ""
14638
14639 #. type: textblock
14640 #: ../fish/guestfish-actions.pod:4136
14641 msgid ""
14642 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14643 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14644 "command."
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:4140
14649 msgid ""
14650 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14651 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14652 "multiplied together, give the resulting size of the minimal filesystem in "
14653 "bytes."
14654 msgstr ""
14655
14656 #. type: =head2
14657 #: ../fish/guestfish-actions.pod:4145
14658 msgid "resize2fs-size"
14659 msgstr ""
14660
14661 #. type: verbatim
14662 #: ../fish/guestfish-actions.pod:4147
14663 #, no-wrap
14664 msgid ""
14665 " resize2fs-size device size\n"
14666 "\n"
14667 msgstr ""
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:4149
14671 msgid ""
14672 "This command is the same as L</resize2fs> except that it allows you to "
14673 "specify the new size (in bytes) explicitly."
14674 msgstr ""
14675
14676 #. type: =head2
14677 #: ../fish/guestfish-actions.pod:4152
14678 msgid "rm"
14679 msgstr ""
14680
14681 #. type: verbatim
14682 #: ../fish/guestfish-actions.pod:4154
14683 #, no-wrap
14684 msgid ""
14685 " rm path\n"
14686 "\n"
14687 msgstr ""
14688
14689 #. type: textblock
14690 #: ../fish/guestfish-actions.pod:4156 ../src/guestfs-actions.pod:6470
14691 msgid "Remove the single file C<path>."
14692 msgstr ""
14693
14694 #. type: =head2
14695 #: ../fish/guestfish-actions.pod:4158
14696 msgid "rm-rf"
14697 msgstr ""
14698
14699 #. type: verbatim
14700 #: ../fish/guestfish-actions.pod:4160
14701 #, no-wrap
14702 msgid ""
14703 " rm-rf path\n"
14704 "\n"
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:4162 ../src/guestfs-actions.pod:6482
14709 msgid ""
14710 "Remove the file or directory C<path>, recursively removing the contents if "
14711 "its a directory.  This is like the C<rm -rf> shell command."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:4166
14716 msgid "rmdir"
14717 msgstr ""
14718
14719 #. type: verbatim
14720 #: ../fish/guestfish-actions.pod:4168
14721 #, no-wrap
14722 msgid ""
14723 " rmdir path\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
14729 msgid "Remove the single directory C<path>."
14730 msgstr ""
14731
14732 #. type: =head2
14733 #: ../fish/guestfish-actions.pod:4172
14734 msgid "rmmountpoint"
14735 msgstr ""
14736
14737 #. type: verbatim
14738 #: ../fish/guestfish-actions.pod:4174
14739 #, no-wrap
14740 msgid ""
14741 " rmmountpoint exemptpath\n"
14742 "\n"
14743 msgstr ""
14744
14745 #. type: textblock
14746 #: ../fish/guestfish-actions.pod:4176
14747 msgid ""
14748 "This calls removes a mountpoint that was previously created with L</"
14749 "mkmountpoint>.  See L</mkmountpoint> for full details."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:4180
14754 msgid "scrub-device"
14755 msgstr ""
14756
14757 #. type: verbatim
14758 #: ../fish/guestfish-actions.pod:4182
14759 #, no-wrap
14760 msgid ""
14761 " scrub-device device\n"
14762 "\n"
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6522
14767 msgid ""
14768 "This command writes patterns over C<device> to make data retrieval more "
14769 "difficult."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4187 ../fish/guestfish-actions.pod:4202
14774 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6525
14775 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
14776 msgid ""
14777 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14778 "more details."
14779 msgstr ""
14780
14781 #. type: =head2
14782 #: ../fish/guestfish-actions.pod:4193
14783 msgid "scrub-file"
14784 msgstr ""
14785
14786 #. type: verbatim
14787 #: ../fish/guestfish-actions.pod:4195
14788 #, no-wrap
14789 msgid ""
14790 " scrub-file file\n"
14791 "\n"
14792 msgstr ""
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6541
14796 msgid ""
14797 "This command writes patterns over a file to make data retrieval more "
14798 "difficult."
14799 msgstr ""
14800
14801 #. type: textblock
14802 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6544
14803 msgid "The file is I<removed> after scrubbing."
14804 msgstr ""
14805
14806 #. type: =head2
14807 #: ../fish/guestfish-actions.pod:4205
14808 msgid "scrub-freespace"
14809 msgstr ""
14810
14811 #. type: verbatim
14812 #: ../fish/guestfish-actions.pod:4207
14813 #, no-wrap
14814 msgid ""
14815 " scrub-freespace dir\n"
14816 "\n"
14817 msgstr ""
14818
14819 #. type: textblock
14820 #: ../fish/guestfish-actions.pod:4209
14821 msgid ""
14822 "This command creates the directory C<dir> and then fills it with files until "
14823 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14824 "deletes them.  The intention is to scrub any free space on the partition "
14825 "containing C<dir>."
14826 msgstr ""
14827
14828 #. type: =head2
14829 #: ../fish/guestfish-actions.pod:4218
14830 msgid "set-append"
14831 msgstr ""
14832
14833 #. type: =head2
14834 #: ../fish/guestfish-actions.pod:4220
14835 msgid "append"
14836 msgstr ""
14837
14838 #. type: verbatim
14839 #: ../fish/guestfish-actions.pod:4222
14840 #, no-wrap
14841 msgid ""
14842 " set-append append\n"
14843 "\n"
14844 msgstr ""
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:4224 ../src/guestfs-actions.pod:6578
14848 msgid ""
14849 "This function is used to add additional options to the guest kernel command "
14850 "line."
14851 msgstr ""
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6581
14855 msgid ""
14856 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14857 "environment variable."
14858 msgstr ""
14859
14860 #. type: textblock
14861 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6584
14862 msgid ""
14863 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14864 "(libguestfs always adds a few of its own)."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-actions.pod:4233
14869 msgid "set-attach-method"
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../fish/guestfish-actions.pod:4235
14874 msgid "attach-method"
14875 msgstr ""
14876
14877 #. type: verbatim
14878 #: ../fish/guestfish-actions.pod:4237
14879 #, no-wrap
14880 msgid ""
14881 " set-attach-method attachmethod\n"
14882 "\n"
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6597
14887 msgid ""
14888 "Set the method that libguestfs uses to connect to the back end guestfsd "
14889 "daemon.  Possible methods are:"
14890 msgstr ""
14891
14892 #. type: =item
14893 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6602
14894 #: ../src/guestfs.pod:2916
14895 msgid "C<appliance>"
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6604
14900 msgid ""
14901 "Launch an appliance and connect to it.  This is the ordinary method and the "
14902 "default."
14903 msgstr ""
14904
14905 #. type: =item
14906 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6607
14907 msgid "C<unix:I<path>>"
14908 msgstr ""
14909
14910 #. type: textblock
14911 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6609
14912 msgid "Connect to the Unix domain socket I<path>."
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:4253 ../src/guestfs-actions.pod:6611
14917 msgid ""
14918 "This method lets you connect to an existing daemon or (using virtio-serial) "
14919 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14920 "RUNNING DAEMONS>."
14921 msgstr ""
14922
14923 #. type: =head2
14924 #: ../fish/guestfish-actions.pod:4259
14925 msgid "set-autosync"
14926 msgstr ""
14927
14928 #. type: =head2
14929 #: ../fish/guestfish-actions.pod:4261
14930 msgid "autosync"
14931 msgstr ""
14932
14933 #. type: verbatim
14934 #: ../fish/guestfish-actions.pod:4263
14935 #, no-wrap
14936 msgid ""
14937 " set-autosync true|false\n"
14938 "\n"
14939 msgstr ""
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6627
14943 msgid ""
14944 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14945 "effort attempt to make filesystems consistent and synchronized when the "
14946 "handle is closed (also if the program exits without closing handles)."
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6632
14951 msgid ""
14952 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14953 "disabled by default)."
14954 msgstr ""
14955
14956 #. type: =head2
14957 #: ../fish/guestfish-actions.pod:4273
14958 msgid "set-direct"
14959 msgstr ""
14960
14961 #. type: =head2
14962 #: ../fish/guestfish-actions.pod:4275
14963 msgid "direct"
14964 msgstr ""
14965
14966 #. type: verbatim
14967 #: ../fish/guestfish-actions.pod:4277
14968 #, no-wrap
14969 msgid ""
14970 " set-direct true|false\n"
14971 "\n"
14972 msgstr ""
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6645
14976 msgid ""
14977 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14978 "passed directly through to the appliance once it is launched."
14979 msgstr ""
14980
14981 #. type: textblock
14982 #: ../fish/guestfish-actions.pod:4283
14983 msgid ""
14984 "One consequence of this is that log messages aren't caught by the library "
14985 "and handled by L</set-log-message-callback>, but go straight to stdout."
14986 msgstr ""
14987
14988 #. type: textblock
14989 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
14990 msgid "You probably don't want to use this unless you know what you are doing."
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6656
14995 msgid "The default is disabled."
14996 msgstr ""
14997
14998 #. type: =head2
14999 #: ../fish/guestfish-actions.pod:4292
15000 msgid "set-e2label"
15001 msgstr ""
15002
15003 #. type: verbatim
15004 #: ../fish/guestfish-actions.pod:4294
15005 #, no-wrap
15006 msgid ""
15007 " set-e2label device label\n"
15008 "\n"
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15013 msgid ""
15014 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15015 "C<label>.  Filesystem labels are limited to 16 characters."
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4300
15020 msgid ""
15021 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15022 "label on a filesystem."
15023 msgstr ""
15024
15025 #. type: =head2
15026 #: ../fish/guestfish-actions.pod:4303
15027 msgid "set-e2uuid"
15028 msgstr ""
15029
15030 #. type: verbatim
15031 #: ../fish/guestfish-actions.pod:4305
15032 #, no-wrap
15033 msgid ""
15034 " set-e2uuid device uuid\n"
15035 "\n"
15036 msgstr ""
15037
15038 #. type: textblock
15039 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6687
15040 msgid ""
15041 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15042 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15043 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15044 msgstr ""
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:4312
15048 msgid ""
15049 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15050 "UUID of a filesystem."
15051 msgstr ""
15052
15053 #. type: =head2
15054 #: ../fish/guestfish-actions.pod:4315
15055 msgid "set-memsize"
15056 msgstr ""
15057
15058 #. type: =head2
15059 #: ../fish/guestfish-actions.pod:4317
15060 msgid "memsize"
15061 msgstr ""
15062
15063 #. type: verbatim
15064 #: ../fish/guestfish-actions.pod:4319
15065 #, no-wrap
15066 msgid ""
15067 " set-memsize memsize\n"
15068 "\n"
15069 msgstr ""
15070
15071 #. type: textblock
15072 #: ../fish/guestfish-actions.pod:4321
15073 msgid ""
15074 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15075 "This only has any effect if called before L</launch>."
15076 msgstr ""
15077
15078 #. type: textblock
15079 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6709
15080 msgid ""
15081 "You can also change this by setting the environment variable "
15082 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15083 msgstr ""
15084
15085 #. type: =head2
15086 #: ../fish/guestfish-actions.pod:4332
15087 msgid "set-network"
15088 msgstr ""
15089
15090 #. type: =head2
15091 #: ../fish/guestfish-actions.pod:4334
15092 msgid "network"
15093 msgstr ""
15094
15095 #. type: verbatim
15096 #: ../fish/guestfish-actions.pod:4336
15097 #, no-wrap
15098 msgid ""
15099 " set-network true|false\n"
15100 "\n"
15101 msgstr ""
15102
15103 #. type: textblock
15104 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6726
15105 msgid ""
15106 "If C<network> is true, then the network is enabled in the libguestfs "
15107 "appliance.  The default is false."
15108 msgstr ""
15109
15110 #. type: textblock
15111 #: ../fish/guestfish-actions.pod:4341 ../src/guestfs-actions.pod:6729
15112 msgid ""
15113 "This affects whether commands are able to access the network (see L<guestfs"
15114 "(3)/RUNNING COMMANDS>)."
15115 msgstr ""
15116
15117 #. type: textblock
15118 #: ../fish/guestfish-actions.pod:4344
15119 msgid ""
15120 "You must call this before calling L</launch>, otherwise it has no effect."
15121 msgstr ""
15122
15123 #. type: =head2
15124 #: ../fish/guestfish-actions.pod:4347
15125 msgid "set-path"
15126 msgstr ""
15127
15128 #. type: verbatim
15129 #: ../fish/guestfish-actions.pod:4351
15130 #, no-wrap
15131 msgid ""
15132 " set-path searchpath\n"
15133 "\n"
15134 msgstr ""
15135
15136 #. type: textblock
15137 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6745
15138 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6747
15143 msgid ""
15144 "The default is C<$libdir/guestfs> unless overridden by setting "
15145 "C<LIBGUESTFS_PATH> environment variable."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6750
15150 msgid "Setting C<path> to C<NULL> restores the default path."
15151 msgstr ""
15152
15153 #. type: =head2
15154 #: ../fish/guestfish-actions.pod:4360
15155 msgid "set-pgroup"
15156 msgstr ""
15157
15158 #. type: =head2
15159 #: ../fish/guestfish-actions.pod:4362
15160 msgid "pgroup"
15161 msgstr ""
15162
15163 #. type: verbatim
15164 #: ../fish/guestfish-actions.pod:4364
15165 #, no-wrap
15166 msgid ""
15167 " set-pgroup true|false\n"
15168 "\n"
15169 msgstr ""
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6762
15173 msgid ""
15174 "If C<pgroup> is true, child processes are placed into their own process "
15175 "group."
15176 msgstr ""
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6765
15180 msgid ""
15181 "The practical upshot of this is that signals like C<SIGINT> (from users "
15182 "pressing C<^C>) won't be received by the child process."
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6768
15187 msgid ""
15188 "The default for this flag is false, because usually you want C<^C> to kill "
15189 "the subprocess."
15190 msgstr ""
15191
15192 #. type: =head2
15193 #: ../fish/guestfish-actions.pod:4375
15194 msgid "set-qemu"
15195 msgstr ""
15196
15197 #. type: =head2
15198 #: ../fish/guestfish-actions.pod:4377
15199 msgid "qemu"
15200 msgstr ""
15201
15202 #. type: verbatim
15203 #: ../fish/guestfish-actions.pod:4379
15204 #, no-wrap
15205 msgid ""
15206 " set-qemu qemu\n"
15207 "\n"
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6781
15212 msgid "Set the qemu binary that we will use."
15213 msgstr ""
15214
15215 #. type: textblock
15216 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6783
15217 msgid ""
15218 "The default is chosen when the library was compiled by the configure script."
15219 msgstr ""
15220
15221 #. type: textblock
15222 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6786
15223 msgid ""
15224 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15225 "variable."
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6789
15230 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15231 msgstr ""
15232
15233 #. type: textblock
15234 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6791
15235 msgid ""
15236 "Note that you should call this function as early as possible after creating "
15237 "the handle.  This is because some pre-launch operations depend on testing "
15238 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15239 "don't retest features, and so you might see inconsistent results.  Using the "
15240 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15241 "the qemu binary at the same time as the handle is created."
15242 msgstr ""
15243
15244 #. type: =head2
15245 #: ../fish/guestfish-actions.pod:4399
15246 msgid "set-recovery-proc"
15247 msgstr ""
15248
15249 #. type: =head2
15250 #: ../fish/guestfish-actions.pod:4401
15251 msgid "recovery-proc"
15252 msgstr ""
15253
15254 #. type: verbatim
15255 #: ../fish/guestfish-actions.pod:4403
15256 #, no-wrap
15257 msgid ""
15258 " set-recovery-proc true|false\n"
15259 "\n"
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:4405
15264 msgid ""
15265 "If this is called with the parameter C<false> then L</launch> does not "
15266 "create a recovery process.  The purpose of the recovery process is to stop "
15267 "runaway qemu processes in the case where the main program aborts abruptly."
15268 msgstr ""
15269
15270 #. type: textblock
15271 #: ../fish/guestfish-actions.pod:4410
15272 msgid ""
15273 "This only has any effect if called before L</launch>, and the default is "
15274 "true."
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6817
15279 msgid ""
15280 "About the only time when you would want to disable this is if the main "
15281 "process will fork itself into the background (\"daemonize\" itself).  In "
15282 "this case the recovery process thinks that the main program has disappeared "
15283 "and so kills qemu, which is not very helpful."
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4419
15288 msgid "set-selinux"
15289 msgstr ""
15290
15291 #. type: =head2
15292 #: ../fish/guestfish-actions.pod:4421
15293 msgid "selinux"
15294 msgstr ""
15295
15296 #. type: verbatim
15297 #: ../fish/guestfish-actions.pod:4423
15298 #, no-wrap
15299 msgid ""
15300 " set-selinux true|false\n"
15301 "\n"
15302 msgstr ""
15303
15304 #. type: textblock
15305 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6833
15306 msgid ""
15307 "This sets the selinux flag that is passed to the appliance at boot time.  "
15308 "The default is C<selinux=0> (disabled)."
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-actions.pod:4428 ../src/guestfs-actions.pod:6836
15313 msgid ""
15314 "Note that if SELinux is enabled, it is always in Permissive mode "
15315 "(C<enforcing=0>)."
15316 msgstr ""
15317
15318 #. type: =head2
15319 #: ../fish/guestfish-actions.pod:4434
15320 msgid "set-smp"
15321 msgstr ""
15322
15323 #. type: =head2
15324 #: ../fish/guestfish-actions.pod:4436
15325 msgid "smp"
15326 msgstr ""
15327
15328 #. type: verbatim
15329 #: ../fish/guestfish-actions.pod:4438
15330 #, no-wrap
15331 msgid ""
15332 " set-smp smp\n"
15333 "\n"
15334 msgstr ""
15335
15336 #. type: textblock
15337 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6852
15338 msgid ""
15339 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15340 "C<1>.  Increasing this may improve performance, though often it has no "
15341 "effect."
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:4444
15346 msgid "This function must be called before L</launch>."
15347 msgstr ""
15348
15349 #. type: =head2
15350 #: ../fish/guestfish-actions.pod:4446
15351 msgid "set-trace"
15352 msgstr ""
15353
15354 #. type: =head2
15355 #: ../fish/guestfish-actions.pod:4448
15356 msgid "trace"
15357 msgstr ""
15358
15359 #. type: verbatim
15360 #: ../fish/guestfish-actions.pod:4450
15361 #, no-wrap
15362 msgid ""
15363 " set-trace true|false\n"
15364 "\n"
15365 msgstr ""
15366
15367 #. type: textblock
15368 #: ../fish/guestfish-actions.pod:4452 ../src/guestfs-actions.pod:6868
15369 msgid ""
15370 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15371 "return values are traced."
15372 msgstr ""
15373
15374 #. type: textblock
15375 #: ../fish/guestfish-actions.pod:4455 ../src/guestfs-actions.pod:6871
15376 msgid ""
15377 "If you want to trace C API calls into libguestfs (and other libraries) then "
15378 "possibly a better way is to use the external ltrace(1) command."
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6875
15383 msgid ""
15384 "Command traces are disabled unless the environment variable "
15385 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4462
15390 msgid ""
15391 "Trace messages are normally sent to C<stderr>, unless you register a "
15392 "callback to send them somewhere else (see L</set-event-callback>)."
15393 msgstr ""
15394
15395 #. type: =head2
15396 #: ../fish/guestfish-actions.pod:4466
15397 msgid "set-verbose"
15398 msgstr ""
15399
15400 #. type: =head2
15401 #: ../fish/guestfish-actions.pod:4468
15402 msgid "verbose"
15403 msgstr ""
15404
15405 #. type: verbatim
15406 #: ../fish/guestfish-actions.pod:4470
15407 #, no-wrap
15408 msgid ""
15409 " set-verbose true|false\n"
15410 "\n"
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6892
15415 msgid "If C<verbose> is true, this turns on verbose messages."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6894
15420 msgid ""
15421 "Verbose messages are disabled unless the environment variable "
15422 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15423 msgstr ""
15424
15425 #. type: textblock
15426 #: ../fish/guestfish-actions.pod:4477
15427 msgid ""
15428 "Verbose messages are normally sent to C<stderr>, unless you register a "
15429 "callback to send them somewhere else (see L</set-event-callback>)."
15430 msgstr ""
15431
15432 #. type: =head2
15433 #: ../fish/guestfish-actions.pod:4481
15434 msgid "setcon"
15435 msgstr ""
15436
15437 #. type: verbatim
15438 #: ../fish/guestfish-actions.pod:4483
15439 #, no-wrap
15440 msgid ""
15441 " setcon context\n"
15442 "\n"
15443 msgstr ""
15444
15445 #. type: textblock
15446 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6911
15447 msgid ""
15448 "This sets the SELinux security context of the daemon to the string "
15449 "C<context>."
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:4488 ../src/guestfs-actions.pod:6914
15454 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15455 msgstr ""
15456
15457 #. type: =head2
15458 #: ../fish/guestfish-actions.pod:4490
15459 msgid "setxattr"
15460 msgstr ""
15461
15462 #. type: verbatim
15463 #: ../fish/guestfish-actions.pod:4492
15464 #, no-wrap
15465 msgid ""
15466 " setxattr xattr val vallen path\n"
15467 "\n"
15468 msgstr ""
15469
15470 #. type: textblock
15471 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6929
15472 msgid ""
15473 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15474 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15475 msgstr ""
15476
15477 #. type: textblock
15478 #: ../fish/guestfish-actions.pod:4498
15479 msgid "See also: L</lsetxattr>, L<attr(5)>."
15480 msgstr ""
15481
15482 #. type: =head2
15483 #: ../fish/guestfish-actions.pod:4500
15484 msgid "sfdisk"
15485 msgstr ""
15486
15487 #. type: verbatim
15488 #: ../fish/guestfish-actions.pod:4502
15489 #, no-wrap
15490 msgid ""
15491 " sfdisk device cyls heads sectors 'lines ...'\n"
15492 "\n"
15493 msgstr ""
15494
15495 #. type: textblock
15496 #: ../fish/guestfish-actions.pod:4504 ../src/guestfs-actions.pod:6956
15497 msgid ""
15498 "This is a direct interface to the L<sfdisk(8)> program for creating "
15499 "partitions on block devices."
15500 msgstr ""
15501
15502 #. type: textblock
15503 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6959
15504 msgid "C<device> should be a block device, for example C</dev/sda>."
15505 msgstr ""
15506
15507 #. type: textblock
15508 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6961
15509 msgid ""
15510 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15511 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15512 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15513 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15514 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15515 "the kernel) cannot work out the right geometry and you will need to tell it."
15516 msgstr ""
15517
15518 #. type: textblock
15519 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6969
15520 msgid ""
15521 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15522 "refer to the L<sfdisk(8)> manpage."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6972
15527 msgid ""
15528 "To create a single partition occupying the whole disk, you would pass "
15529 "C<lines> as a single element list, when the single element being the string "
15530 "C<,> (comma)."
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../fish/guestfish-actions.pod:4524
15535 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:4553
15540 #: ../fish/guestfish-actions.pod:4575
15541 msgid ""
15542 "I<This function is deprecated.> In new code, use the L</part_add> call "
15543 "instead."
15544 msgstr ""
15545
15546 #. type: =head2
15547 #: ../fish/guestfish-actions.pod:4537
15548 msgid "sfdiskM"
15549 msgstr ""
15550
15551 #. type: verbatim
15552 #: ../fish/guestfish-actions.pod:4539
15553 #, no-wrap
15554 msgid ""
15555 " sfdiskM device 'lines ...'\n"
15556 "\n"
15557 msgstr ""
15558
15559 #. type: textblock
15560 #: ../fish/guestfish-actions.pod:4541
15561 msgid ""
15562 "This is a simplified interface to the L</sfdisk> command, where partition "
15563 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15564 "you don't need to specify the cyls, heads and sectors parameters which were "
15565 "rarely if ever used anyway."
15566 msgstr ""
15567
15568 #. type: textblock
15569 #: ../fish/guestfish-actions.pod:4547
15570 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15571 msgstr ""
15572
15573 #. type: =head2
15574 #: ../fish/guestfish-actions.pod:4560
15575 msgid "sfdisk-N"
15576 msgstr ""
15577
15578 #. type: verbatim
15579 #: ../fish/guestfish-actions.pod:4562
15580 #, no-wrap
15581 msgid ""
15582 " sfdisk-N device partnum cyls heads sectors line\n"
15583 "\n"
15584 msgstr ""
15585
15586 #. type: textblock
15587 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7034
15588 msgid ""
15589 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15590 "(note: C<n> counts from 1)."
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../fish/guestfish-actions.pod:4567
15595 msgid ""
15596 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15597 "cyls/heads/sectors parameters."
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish-actions.pod:4570
15602 msgid "See also: L</part-add>"
15603 msgstr ""
15604
15605 #. type: =head2
15606 #: ../fish/guestfish-actions.pod:4582
15607 msgid "sfdisk-disk-geometry"
15608 msgstr ""
15609
15610 #. type: verbatim
15611 #: ../fish/guestfish-actions.pod:4584
15612 #, no-wrap
15613 msgid ""
15614 " sfdisk-disk-geometry device\n"
15615 "\n"
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../fish/guestfish-actions.pod:4586
15620 msgid ""
15621 "This displays the disk geometry of C<device> read from the partition table.  "
15622 "Especially in the case where the underlying block device has been resized, "
15623 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15624 "kernel-geometry>)."
15625 msgstr ""
15626
15627 #. type: textblock
15628 #: ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4600
15629 #: ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7076
15630 msgid "The result is in human-readable format, and not designed to be parsed."
15631 msgstr ""
15632
15633 #. type: =head2
15634 #: ../fish/guestfish-actions.pod:4594
15635 msgid "sfdisk-kernel-geometry"
15636 msgstr ""
15637
15638 #. type: verbatim
15639 #: ../fish/guestfish-actions.pod:4596
15640 #, no-wrap
15641 msgid ""
15642 " sfdisk-kernel-geometry device\n"
15643 "\n"
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7074
15648 msgid "This displays the kernel's idea of the geometry of C<device>."
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-actions.pod:4603
15653 msgid "sfdisk-l"
15654 msgstr ""
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-actions.pod:4605
15658 #, no-wrap
15659 msgid ""
15660 " sfdisk-l device\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:7097
15666 msgid ""
15667 "This displays the partition table on C<device>, in the human-readable output "
15668 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4611
15673 msgid "See also: L</part-list>"
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4613
15678 msgid ""
15679 "I<This function is deprecated.> In new code, use the L</part_list> call "
15680 "instead."
15681 msgstr ""
15682
15683 #. type: =head2
15684 #: ../fish/guestfish-actions.pod:4620
15685 msgid "sh"
15686 msgstr ""
15687
15688 #. type: verbatim
15689 #: ../fish/guestfish-actions.pod:4622
15690 #, no-wrap
15691 msgid ""
15692 " sh command\n"
15693 "\n"
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7114
15698 msgid ""
15699 "This call runs a command from the guest filesystem via the guest's C</bin/"
15700 "sh>."
15701 msgstr ""
15702
15703 #. type: textblock
15704 #: ../fish/guestfish-actions.pod:4627
15705 msgid "This is like L</command>, but passes the command to:"
15706 msgstr ""
15707
15708 #. type: verbatim
15709 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7119
15710 #, no-wrap
15711 msgid ""
15712 " /bin/sh -c \"command\"\n"
15713 "\n"
15714 msgstr ""
15715
15716 #. type: textblock
15717 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:7121
15718 msgid ""
15719 "Depending on the guest's shell, this usually results in wildcards being "
15720 "expanded, shell expressions being interpolated and so on."
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../fish/guestfish-actions.pod:4635
15725 msgid "All the provisos about L</command> apply to this call."
15726 msgstr ""
15727
15728 #. type: =head2
15729 #: ../fish/guestfish-actions.pod:4637
15730 msgid "sh-lines"
15731 msgstr ""
15732
15733 #. type: verbatim
15734 #: ../fish/guestfish-actions.pod:4639
15735 #, no-wrap
15736 msgid ""
15737 " sh-lines command\n"
15738 "\n"
15739 msgstr ""
15740
15741 #. type: textblock
15742 #: ../fish/guestfish-actions.pod:4641
15743 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-actions.pod:4644
15748 msgid "See also: L</command-lines>"
15749 msgstr ""
15750
15751 #. type: =head2
15752 #: ../fish/guestfish-actions.pod:4646
15753 msgid "sleep"
15754 msgstr ""
15755
15756 #. type: verbatim
15757 #: ../fish/guestfish-actions.pod:4648
15758 #, no-wrap
15759 msgid ""
15760 " sleep secs\n"
15761 "\n"
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-actions.pod:4650 ../src/guestfs-actions.pod:7155
15766 msgid "Sleep for C<secs> seconds."
15767 msgstr ""
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4652
15771 msgid "stat"
15772 msgstr ""
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish-actions.pod:4654
15776 #, no-wrap
15777 msgid ""
15778 " stat path\n"
15779 "\n"
15780 msgstr ""
15781
15782 #. type: textblock
15783 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7169
15784 msgid "This is the same as the C<stat(2)> system call."
15785 msgstr ""
15786
15787 #. type: =head2
15788 #: ../fish/guestfish-actions.pod:4660
15789 msgid "statvfs"
15790 msgstr ""
15791
15792 #. type: verbatim
15793 #: ../fish/guestfish-actions.pod:4662
15794 #, no-wrap
15795 msgid ""
15796 " statvfs path\n"
15797 "\n"
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7183
15802 msgid ""
15803 "Returns file system statistics for any mounted file system.  C<path> should "
15804 "be a file or directory in the mounted file system (typically it is the mount "
15805 "point itself, but it doesn't need to be)."
15806 msgstr ""
15807
15808 #. type: textblock
15809 #: ../fish/guestfish-actions.pod:4668 ../src/guestfs-actions.pod:7187
15810 msgid "This is the same as the C<statvfs(2)> system call."
15811 msgstr ""
15812
15813 #. type: =head2
15814 #: ../fish/guestfish-actions.pod:4670
15815 msgid "strings"
15816 msgstr ""
15817
15818 #. type: verbatim
15819 #: ../fish/guestfish-actions.pod:4672
15820 #, no-wrap
15821 msgid ""
15822 " strings path\n"
15823 "\n"
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7201
15828 msgid ""
15829 "This runs the L<strings(1)> command on a file and returns the list of "
15830 "printable strings found."
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-actions.pod:4680
15835 msgid "strings-e"
15836 msgstr ""
15837
15838 #. type: verbatim
15839 #: ../fish/guestfish-actions.pod:4682
15840 #, no-wrap
15841 msgid ""
15842 " strings-e encoding path\n"
15843 "\n"
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4684
15848 msgid ""
15849 "This is like the L</strings> command, but allows you to specify the encoding "
15850 "of strings that are looked for in the source file C<path>."
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../fish/guestfish-actions.pod:4688 ../src/guestfs-actions.pod:7224
15855 msgid "Allowed encodings are:"
15856 msgstr ""
15857
15858 #. type: =item
15859 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7228
15860 msgid "s"
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:4694
15865 msgid ""
15866 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15867 "ISO-8859-X (this is what L</strings> uses)."
15868 msgstr ""
15869
15870 #. type: =item
15871 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7233
15872 msgid "S"
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-actions.pod:4699 ../src/guestfs-actions.pod:7235
15877 msgid "Single 8-bit-byte characters."
15878 msgstr ""
15879
15880 #. type: =item
15881 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7237
15882 msgid "b"
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7239
15887 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15888 msgstr ""
15889
15890 #. type: =item
15891 #: ../fish/guestfish-actions.pod:4706 ../src/guestfs-actions.pod:7242
15892 msgid "l (lower case letter L)"
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4708 ../src/guestfs-actions.pod:7244
15897 msgid ""
15898 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15899 "examining binaries in Windows guests."
15900 msgstr ""
15901
15902 #. type: =item
15903 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7247
15904 msgid "B"
15905 msgstr ""
15906
15907 #. type: textblock
15908 #: ../fish/guestfish-actions.pod:4713 ../src/guestfs-actions.pod:7249
15909 msgid "32-bit big endian such as UCS-4BE."
15910 msgstr ""
15911
15912 #. type: =item
15913 #: ../fish/guestfish-actions.pod:4715 ../src/guestfs-actions.pod:7251
15914 msgid "L"
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7253
15919 msgid "32-bit little endian such as UCS-4LE."
15920 msgstr ""
15921
15922 #. type: textblock
15923 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7257
15924 msgid "The returned strings are transcoded to UTF-8."
15925 msgstr ""
15926
15927 #. type: =head2
15928 #: ../fish/guestfish-actions.pod:4726
15929 msgid "swapoff-device"
15930 msgstr ""
15931
15932 #. type: verbatim
15933 #: ../fish/guestfish-actions.pod:4728
15934 #, no-wrap
15935 msgid ""
15936 " swapoff-device device\n"
15937 "\n"
15938 msgstr ""
15939
15940 #. type: textblock
15941 #: ../fish/guestfish-actions.pod:4730
15942 msgid ""
15943 "This command disables the libguestfs appliance swap device or partition "
15944 "named C<device>.  See L</swapon-device>."
15945 msgstr ""
15946
15947 #. type: =head2
15948 #: ../fish/guestfish-actions.pod:4734
15949 msgid "swapoff-file"
15950 msgstr ""
15951
15952 #. type: verbatim
15953 #: ../fish/guestfish-actions.pod:4736
15954 #, no-wrap
15955 msgid ""
15956 " swapoff-file file\n"
15957 "\n"
15958 msgstr ""
15959
15960 #. type: textblock
15961 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7288
15962 msgid "This command disables the libguestfs appliance swap on file."
15963 msgstr ""
15964
15965 #. type: =head2
15966 #: ../fish/guestfish-actions.pod:4740
15967 msgid "swapoff-label"
15968 msgstr ""
15969
15970 #. type: verbatim
15971 #: ../fish/guestfish-actions.pod:4742
15972 #, no-wrap
15973 msgid ""
15974 " swapoff-label label\n"
15975 "\n"
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7300
15980 msgid ""
15981 "This command disables the libguestfs appliance swap on labeled swap "
15982 "partition."
15983 msgstr ""
15984
15985 #. type: =head2
15986 #: ../fish/guestfish-actions.pod:4747
15987 msgid "swapoff-uuid"
15988 msgstr ""
15989
15990 #. type: verbatim
15991 #: ../fish/guestfish-actions.pod:4749
15992 #, no-wrap
15993 msgid ""
15994 " swapoff-uuid uuid\n"
15995 "\n"
15996 msgstr ""
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:4751 ../src/guestfs-actions.pod:7313
16000 msgid ""
16001 "This command disables the libguestfs appliance swap partition with the given "
16002 "UUID."
16003 msgstr ""
16004
16005 #. type: =head2
16006 #: ../fish/guestfish-actions.pod:4754
16007 msgid "swapon-device"
16008 msgstr ""
16009
16010 #. type: verbatim
16011 #: ../fish/guestfish-actions.pod:4756
16012 #, no-wrap
16013 msgid ""
16014 " swapon-device device\n"
16015 "\n"
16016 msgstr ""
16017
16018 #. type: textblock
16019 #: ../fish/guestfish-actions.pod:4758
16020 msgid ""
16021 "This command enables the libguestfs appliance to use the swap device or "
16022 "partition named C<device>.  The increased memory is made available for all "
16023 "commands, for example those run using L</command> or L</sh>."
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7331
16028 msgid ""
16029 "Note that you should not swap to existing guest swap partitions unless you "
16030 "know what you are doing.  They may contain hibernation information, or other "
16031 "information that the guest doesn't want you to trash.  You also risk leaking "
16032 "information about the host to the guest this way.  Instead, attach a new "
16033 "host device to the guest and swap on that."
16034 msgstr ""
16035
16036 #. type: =head2
16037 #: ../fish/guestfish-actions.pod:4770
16038 msgid "swapon-file"
16039 msgstr ""
16040
16041 #. type: verbatim
16042 #: ../fish/guestfish-actions.pod:4772
16043 #, no-wrap
16044 msgid ""
16045 " swapon-file file\n"
16046 "\n"
16047 msgstr ""
16048
16049 #. type: textblock
16050 #: ../fish/guestfish-actions.pod:4774
16051 msgid ""
16052 "This command enables swap to a file.  See L</swapon-device> for other notes."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../fish/guestfish-actions.pod:4777
16057 msgid "swapon-label"
16058 msgstr ""
16059
16060 #. type: verbatim
16061 #: ../fish/guestfish-actions.pod:4779
16062 #, no-wrap
16063 msgid ""
16064 " swapon-label label\n"
16065 "\n"
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-actions.pod:4781
16070 msgid ""
16071 "This command enables swap to a labeled swap partition.  See L</swapon-"
16072 "device> for other notes."
16073 msgstr ""
16074
16075 #. type: =head2
16076 #: ../fish/guestfish-actions.pod:4784
16077 msgid "swapon-uuid"
16078 msgstr ""
16079
16080 #. type: verbatim
16081 #: ../fish/guestfish-actions.pod:4786
16082 #, no-wrap
16083 msgid ""
16084 " swapon-uuid uuid\n"
16085 "\n"
16086 msgstr ""
16087
16088 #. type: textblock
16089 #: ../fish/guestfish-actions.pod:4788
16090 msgid ""
16091 "This command enables swap to a swap partition with the given UUID.  See L</"
16092 "swapon-device> for other notes."
16093 msgstr ""
16094
16095 #. type: =head2
16096 #: ../fish/guestfish-actions.pod:4791
16097 msgid "sync"
16098 msgstr ""
16099
16100 #. type: verbatim
16101 #: ../fish/guestfish-actions.pod:4793
16102 #, no-wrap
16103 msgid ""
16104 " sync\n"
16105 "\n"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish-actions.pod:4795 ../src/guestfs-actions.pod:7386
16110 msgid ""
16111 "This syncs the disk, so that any writes are flushed through to the "
16112 "underlying disk image."
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7389
16117 msgid ""
16118 "You should always call this if you have modified a disk image, before "
16119 "closing the handle."
16120 msgstr ""
16121
16122 #. type: =head2
16123 #: ../fish/guestfish-actions.pod:4801
16124 msgid "tail"
16125 msgstr ""
16126
16127 #. type: verbatim
16128 #: ../fish/guestfish-actions.pod:4803
16129 #, no-wrap
16130 msgid ""
16131 " tail path\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:4805 ../src/guestfs-actions.pod:7402
16137 msgid ""
16138 "This command returns up to the last 10 lines of a file as a list of strings."
16139 msgstr ""
16140
16141 #. type: =head2
16142 #: ../fish/guestfish-actions.pod:4811
16143 msgid "tail-n"
16144 msgstr ""
16145
16146 #. type: verbatim
16147 #: ../fish/guestfish-actions.pod:4813
16148 #, no-wrap
16149 msgid ""
16150 " tail-n nrlines path\n"
16151 "\n"
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7421
16156 msgid ""
16157 "If the parameter C<nrlines> is a positive number, this returns the last "
16158 "C<nrlines> lines of the file C<path>."
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7424
16163 msgid ""
16164 "If the parameter C<nrlines> is a negative number, this returns lines from "
16165 "the file C<path>, starting with the C<-nrlines>th line."
16166 msgstr ""
16167
16168 #. type: =head2
16169 #: ../fish/guestfish-actions.pod:4826
16170 msgid "tar-in"
16171 msgstr ""
16172
16173 #. type: verbatim
16174 #: ../fish/guestfish-actions.pod:4828
16175 #, no-wrap
16176 msgid ""
16177 " tar-in (tarfile|-) directory\n"
16178 "\n"
16179 msgstr ""
16180
16181 #. type: textblock
16182 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7445
16183 msgid ""
16184 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16185 "tar file) into C<directory>."
16186 msgstr ""
16187
16188 #. type: textblock
16189 #: ../fish/guestfish-actions.pod:4833
16190 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16191 msgstr ""
16192
16193 #. type: =head2
16194 #: ../fish/guestfish-actions.pod:4838
16195 msgid "tar-out"
16196 msgstr ""
16197
16198 #. type: verbatim
16199 #: ../fish/guestfish-actions.pod:4840
16200 #, no-wrap
16201 msgid ""
16202 " tar-out directory (tarfile|-)\n"
16203 "\n"
16204 msgstr ""
16205
16206 #. type: textblock
16207 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7462
16208 msgid ""
16209 "This command packs the contents of C<directory> and downloads it to local "
16210 "file C<tarfile>."
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4845
16215 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16216 msgstr ""
16217
16218 #. type: =head2
16219 #: ../fish/guestfish-actions.pod:4850
16220 msgid "tgz-in"
16221 msgstr ""
16222
16223 #. type: verbatim
16224 #: ../fish/guestfish-actions.pod:4852
16225 #, no-wrap
16226 msgid ""
16227 " tgz-in (tarball|-) directory\n"
16228 "\n"
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7479
16233 msgid ""
16234 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16235 "tar file) into C<directory>."
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-actions.pod:4857
16240 msgid "To upload an uncompressed tarball, use L</tar-in>."
16241 msgstr ""
16242
16243 #. type: =head2
16244 #: ../fish/guestfish-actions.pod:4861
16245 msgid "tgz-out"
16246 msgstr ""
16247
16248 #. type: verbatim
16249 #: ../fish/guestfish-actions.pod:4863
16250 #, no-wrap
16251 msgid ""
16252 " tgz-out directory (tarball|-)\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7495
16258 msgid ""
16259 "This command packs the contents of C<directory> and downloads it to local "
16260 "file C<tarball>."
16261 msgstr ""
16262
16263 #. type: textblock
16264 #: ../fish/guestfish-actions.pod:4868
16265 msgid "To download an uncompressed tarball, use L</tar-out>."
16266 msgstr ""
16267
16268 #. type: =head2
16269 #: ../fish/guestfish-actions.pod:4872
16270 msgid "touch"
16271 msgstr ""
16272
16273 #. type: verbatim
16274 #: ../fish/guestfish-actions.pod:4874
16275 #, no-wrap
16276 msgid ""
16277 " touch path\n"
16278 "\n"
16279 msgstr ""
16280
16281 #. type: textblock
16282 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7510
16283 msgid ""
16284 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16285 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16286 "length file."
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7514
16291 msgid ""
16292 "This command only works on regular files, and will fail on other file types "
16293 "such as directories, symbolic links, block special etc."
16294 msgstr ""
16295
16296 #. type: =head2
16297 #: ../fish/guestfish-actions.pod:4883
16298 msgid "truncate"
16299 msgstr ""
16300
16301 #. type: verbatim
16302 #: ../fish/guestfish-actions.pod:4885
16303 #, no-wrap
16304 msgid ""
16305 " truncate path\n"
16306 "\n"
16307 msgstr ""
16308
16309 #. type: textblock
16310 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7527
16311 msgid ""
16312 "This command truncates C<path> to a zero-length file.  The file must exist "
16313 "already."
16314 msgstr ""
16315
16316 #. type: =head2
16317 #: ../fish/guestfish-actions.pod:4890
16318 msgid "truncate-size"
16319 msgstr ""
16320
16321 #. type: verbatim
16322 #: ../fish/guestfish-actions.pod:4892
16323 #, no-wrap
16324 msgid ""
16325 " truncate-size path size\n"
16326 "\n"
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../fish/guestfish-actions.pod:4894 ../src/guestfs-actions.pod:7541
16331 msgid ""
16332 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16333 "already."
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../fish/guestfish-actions.pod:4897
16338 msgid ""
16339 "If the current file size is less than C<size> then the file is extended to "
16340 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16341 "blocks are not allocated for the file until you write to it).  To create a "
16342 "non-sparse file of zeroes, use L</fallocate64> instead."
16343 msgstr ""
16344
16345 #. type: =head2
16346 #: ../fish/guestfish-actions.pod:4903
16347 msgid "tune2fs-l"
16348 msgstr ""
16349
16350 #. type: verbatim
16351 #: ../fish/guestfish-actions.pod:4905
16352 #, no-wrap
16353 msgid ""
16354 " tune2fs-l device\n"
16355 "\n"
16356 msgstr ""
16357
16358 #. type: textblock
16359 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7560
16360 msgid ""
16361 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16362 "C<device>."
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7563
16367 msgid ""
16368 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16369 "for more details.  The list of fields returned isn't clearly defined, and "
16370 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16371 "and the filesystem itself."
16372 msgstr ""
16373
16374 #. type: =head2
16375 #: ../fish/guestfish-actions.pod:4915
16376 msgid "txz-in"
16377 msgstr ""
16378
16379 #. type: verbatim
16380 #: ../fish/guestfish-actions.pod:4917
16381 #, no-wrap
16382 msgid ""
16383 " txz-in (tarball|-) directory\n"
16384 "\n"
16385 msgstr ""
16386
16387 #. type: textblock
16388 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7583
16389 msgid ""
16390 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16391 "tar file) into C<directory>."
16392 msgstr ""
16393
16394 #. type: =head2
16395 #: ../fish/guestfish-actions.pod:4924
16396 msgid "txz-out"
16397 msgstr ""
16398
16399 #. type: verbatim
16400 #: ../fish/guestfish-actions.pod:4926
16401 #, no-wrap
16402 msgid ""
16403 " txz-out directory (tarball|-)\n"
16404 "\n"
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7597
16409 msgid ""
16410 "This command packs the contents of C<directory> and downloads it to local "
16411 "file C<tarball> (as an xz compressed tar archive)."
16412 msgstr ""
16413
16414 #. type: =head2
16415 #: ../fish/guestfish-actions.pod:4933
16416 msgid "umask"
16417 msgstr ""
16418
16419 #. type: verbatim
16420 #: ../fish/guestfish-actions.pod:4935
16421 #, no-wrap
16422 msgid ""
16423 " umask mask\n"
16424 "\n"
16425 msgstr ""
16426
16427 #. type: textblock
16428 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7610
16429 msgid ""
16430 "This function sets the mask used for creating new files and device nodes to "
16431 "C<mask & 0777>."
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7613
16436 msgid ""
16437 "Typical umask values would be C<022> which creates new files with "
16438 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16439 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7618
16444 msgid ""
16445 "The default umask is C<022>.  This is important because it means that "
16446 "directories and device nodes will be created with C<0644> or C<0755> mode "
16447 "even if you specify C<0777>."
16448 msgstr ""
16449
16450 #. type: textblock
16451 #: ../fish/guestfish-actions.pod:4949
16452 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16453 msgstr ""
16454
16455 #. type: textblock
16456 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7625
16457 msgid "This call returns the previous umask."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4954
16462 msgid "umount"
16463 msgstr ""
16464
16465 #. type: =head2
16466 #: ../fish/guestfish-actions.pod:4956
16467 msgid "unmount"
16468 msgstr ""
16469
16470 #. type: verbatim
16471 #: ../fish/guestfish-actions.pod:4958
16472 #, no-wrap
16473 msgid ""
16474 " umount pathordevice\n"
16475 "\n"
16476 msgstr ""
16477
16478 #. type: textblock
16479 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7637
16480 msgid ""
16481 "This unmounts the given filesystem.  The filesystem may be specified either "
16482 "by its mountpoint (path) or the device which contains the filesystem."
16483 msgstr ""
16484
16485 #. type: =head2
16486 #: ../fish/guestfish-actions.pod:4964
16487 msgid "umount-all"
16488 msgstr ""
16489
16490 #. type: =head2
16491 #: ../fish/guestfish-actions.pod:4966
16492 msgid "unmount-all"
16493 msgstr ""
16494
16495 #. type: verbatim
16496 #: ../fish/guestfish-actions.pod:4968
16497 #, no-wrap
16498 msgid ""
16499 " umount-all\n"
16500 "\n"
16501 msgstr ""
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-actions.pod:4970 ../src/guestfs-actions.pod:7650
16505 msgid "This unmounts all mounted filesystems."
16506 msgstr ""
16507
16508 #. type: textblock
16509 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7652
16510 msgid "Some internal mounts are not unmounted by this call."
16511 msgstr ""
16512
16513 #. type: =head2
16514 #: ../fish/guestfish-actions.pod:4974
16515 msgid "upload"
16516 msgstr ""
16517
16518 #. type: verbatim
16519 #: ../fish/guestfish-actions.pod:4976
16520 #, no-wrap
16521 msgid ""
16522 " upload (filename|-) remotefilename\n"
16523 "\n"
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4991
16528 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7689
16529 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16530 msgstr ""
16531
16532 #. type: textblock
16533 #: ../fish/guestfish-actions.pod:4983
16534 msgid "See also L</download>."
16535 msgstr ""
16536
16537 #. type: =head2
16538 #: ../fish/guestfish-actions.pod:4987
16539 msgid "upload-offset"
16540 msgstr ""
16541
16542 #. type: verbatim
16543 #: ../fish/guestfish-actions.pod:4989
16544 #, no-wrap
16545 msgid ""
16546 " upload-offset (filename|-) remotefilename offset\n"
16547 "\n"
16548 msgstr ""
16549
16550 #. type: textblock
16551 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7692
16552 msgid ""
16553 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16554 "The intention is to overwrite parts of existing files or devices, although "
16555 "if a non-existant file is specified then it is created with a \"hole\" "
16556 "before C<offset>.  The size of the data written is implicit in the size of "
16557 "the source C<filename>."
16558 msgstr ""
16559
16560 #. type: textblock
16561 #: ../fish/guestfish-actions.pod:5001
16562 msgid ""
16563 "Note that there is no limit on the amount of data that can be uploaded with "
16564 "this call, unlike with L</pwrite>, and this call always writes the full "
16565 "amount unless an error occurs."
16566 msgstr ""
16567
16568 #. type: textblock
16569 #: ../fish/guestfish-actions.pod:5006
16570 msgid "See also L</upload>, L</pwrite>."
16571 msgstr ""
16572
16573 #. type: =head2
16574 #: ../fish/guestfish-actions.pod:5010
16575 msgid "utimens"
16576 msgstr ""
16577
16578 #. type: verbatim
16579 #: ../fish/guestfish-actions.pod:5012
16580 #, no-wrap
16581 msgid ""
16582 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16583 "\n"
16584 msgstr ""
16585
16586 #. type: textblock
16587 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7725
16588 msgid "This command sets the timestamps of a file with nanosecond precision."
16589 msgstr ""
16590
16591 #. type: textblock
16592 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7728
16593 msgid ""
16594 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16595 "from the epoch."
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7731
16600 msgid ""
16601 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16602 "nanoseconds from the epoch."
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7734
16607 msgid ""
16608 "If the C<*nsecs> field contains the special value C<-1> then the "
16609 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16610 "ignored in this case)."
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:7738
16615 msgid ""
16616 "If the C<*nsecs> field contains the special value C<-2> then the "
16617 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16618 "in this case)."
16619 msgstr ""
16620
16621 #. type: =head2
16622 #: ../fish/guestfish-actions.pod:5031
16623 msgid "version"
16624 msgstr ""
16625
16626 #. type: verbatim
16627 #: ../fish/guestfish-actions.pod:5033
16628 #, no-wrap
16629 msgid ""
16630 " version\n"
16631 "\n"
16632 msgstr ""
16633
16634 #. type: textblock
16635 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7751
16636 msgid ""
16637 "Return the libguestfs version number that the program is linked against."
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7754
16642 msgid ""
16643 "Note that because of dynamic linking this is not necessarily the version of "
16644 "libguestfs that you compiled against.  You can compile the program, and then "
16645 "at runtime dynamically link against a completely different C<libguestfs.so> "
16646 "library."
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7759
16651 msgid ""
16652 "This call was added in version C<1.0.58>.  In previous versions of "
16653 "libguestfs there was no way to get the version number.  From C code you can "
16654 "use dynamic linker functions to find out if this symbol exists (if it "
16655 "doesn't, then it's an earlier version)."
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7765
16660 msgid ""
16661 "The call returns a structure with four elements.  The first three (C<major>, "
16662 "C<minor> and C<release>) are numbers and correspond to the usual version "
16663 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16664 "but may be used for distro-specific information."
16665 msgstr ""
16666
16667 #. type: textblock
16668 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7771
16669 msgid ""
16670 "To construct the original version string: C<$major.$minor.$release$extra>"
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7774
16675 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-actions.pod:5060
16680 msgid ""
16681 "I<Note:> Don't use this call to test for availability of features.  In "
16682 "enterprise distributions we backport features from later versions into "
16683 "earlier versions, making this an unreliable way to test for features.  Use "
16684 "L</available> instead."
16685 msgstr ""
16686
16687 #. type: =head2
16688 #: ../fish/guestfish-actions.pod:5066
16689 msgid "vfs-label"
16690 msgstr ""
16691
16692 #. type: verbatim
16693 #: ../fish/guestfish-actions.pod:5068
16694 #, no-wrap
16695 msgid ""
16696 " vfs-label device\n"
16697 "\n"
16698 msgstr ""
16699
16700 #. type: textblock
16701 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7794
16702 msgid "This returns the filesystem label of the filesystem on C<device>."
16703 msgstr ""
16704
16705 #. type: textblock
16706 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7797
16707 msgid "If the filesystem is unlabeled, this returns the empty string."
16708 msgstr ""
16709
16710 #. type: textblock
16711 #: ../fish/guestfish-actions.pod:5075
16712 msgid "To find a filesystem from the label, use L</findfs-label>."
16713 msgstr ""
16714
16715 #. type: =head2
16716 #: ../fish/guestfish-actions.pod:5077
16717 msgid "vfs-type"
16718 msgstr ""
16719
16720 #. type: verbatim
16721 #: ../fish/guestfish-actions.pod:5079
16722 #, no-wrap
16723 msgid ""
16724 " vfs-type device\n"
16725 "\n"
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7812
16730 msgid ""
16731 "This command gets the filesystem type corresponding to the filesystem on "
16732 "C<device>."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7815
16737 msgid ""
16738 "For most filesystems, the result is the name of the Linux VFS module which "
16739 "would be used to mount this filesystem if you mounted it without specifying "
16740 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16741 msgstr ""
16742
16743 #. type: =head2
16744 #: ../fish/guestfish-actions.pod:5089
16745 msgid "vfs-uuid"
16746 msgstr ""
16747
16748 #. type: verbatim
16749 #: ../fish/guestfish-actions.pod:5091
16750 #, no-wrap
16751 msgid ""
16752 " vfs-uuid device\n"
16753 "\n"
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7831
16758 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../fish/guestfish-actions.pod:5096 ../src/guestfs-actions.pod:7834
16763 msgid "If the filesystem does not have a UUID, this returns the empty string."
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../fish/guestfish-actions.pod:5098
16768 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16769 msgstr ""
16770
16771 #. type: =head2
16772 #: ../fish/guestfish-actions.pod:5100
16773 msgid "vg-activate"
16774 msgstr ""
16775
16776 #. type: verbatim
16777 #: ../fish/guestfish-actions.pod:5102
16778 #, no-wrap
16779 msgid ""
16780 " vg-activate true|false 'volgroups ...'\n"
16781 "\n"
16782 msgstr ""
16783
16784 #. type: textblock
16785 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7850
16786 msgid ""
16787 "This command activates or (if C<activate> is false) deactivates all logical "
16788 "volumes in the listed volume groups C<volgroups>."
16789 msgstr ""
16790
16791 #. type: textblock
16792 #: ../fish/guestfish-actions.pod:5107 ../src/guestfs-actions.pod:7853
16793 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7855
16798 msgid ""
16799 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16800 "activated or deactivated."
16801 msgstr ""
16802
16803 #. type: =head2
16804 #: ../fish/guestfish-actions.pod:5112
16805 msgid "vg-activate-all"
16806 msgstr ""
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish-actions.pod:5114
16810 #, no-wrap
16811 msgid ""
16812 " vg-activate-all true|false\n"
16813 "\n"
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7868
16818 msgid ""
16819 "This command activates or (if C<activate> is false) deactivates all logical "
16820 "volumes in all volume groups."
16821 msgstr ""
16822
16823 #. type: textblock
16824 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7871
16825 msgid "This command is the same as running C<vgchange -a y|n>"
16826 msgstr ""
16827
16828 #. type: =head2
16829 #: ../fish/guestfish-actions.pod:5121
16830 msgid "vgcreate"
16831 msgstr ""
16832
16833 #. type: verbatim
16834 #: ../fish/guestfish-actions.pod:5123
16835 #, no-wrap
16836 msgid ""
16837 " vgcreate volgroup 'physvols ...'\n"
16838 "\n"
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7884
16843 msgid ""
16844 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16845 "of physical volumes C<physvols>."
16846 msgstr ""
16847
16848 #. type: =head2
16849 #: ../fish/guestfish-actions.pod:5128
16850 msgid "vglvuuids"
16851 msgstr ""
16852
16853 #. type: verbatim
16854 #: ../fish/guestfish-actions.pod:5130
16855 #, no-wrap
16856 msgid ""
16857 " vglvuuids vgname\n"
16858 "\n"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7897
16863 msgid ""
16864 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16865 "volumes created in this volume group."
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish-actions.pod:5135
16870 msgid ""
16871 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16872 "logical volumes and volume groups."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:5138
16877 msgid "See also L</vgpvuuids>."
16878 msgstr ""
16879
16880 #. type: =head2
16881 #: ../fish/guestfish-actions.pod:5140
16882 msgid "vgpvuuids"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish-actions.pod:5142
16887 #, no-wrap
16888 msgid ""
16889 " vgpvuuids vgname\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7917
16895 msgid ""
16896 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16897 "volumes that this volume group resides on."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:5147
16902 msgid ""
16903 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16904 "physical volumes and volume groups."
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../fish/guestfish-actions.pod:5150
16909 msgid "See also L</vglvuuids>."
16910 msgstr ""
16911
16912 #. type: =head2
16913 #: ../fish/guestfish-actions.pod:5152
16914 msgid "vgremove"
16915 msgstr ""
16916
16917 #. type: verbatim
16918 #: ../fish/guestfish-actions.pod:5154
16919 #, no-wrap
16920 msgid ""
16921 " vgremove vgname\n"
16922 "\n"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish-actions.pod:5156 ../src/guestfs-actions.pod:7937
16927 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16928 msgstr ""
16929
16930 #. type: textblock
16931 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
16932 msgid ""
16933 "This also forcibly removes all logical volumes in the volume group (if any)."
16934 msgstr ""
16935
16936 #. type: =head2
16937 #: ../fish/guestfish-actions.pod:5161
16938 msgid "vgrename"
16939 msgstr ""
16940
16941 #. type: verbatim
16942 #: ../fish/guestfish-actions.pod:5163
16943 #, no-wrap
16944 msgid ""
16945 " vgrename volgroup newvolgroup\n"
16946 "\n"
16947 msgstr ""
16948
16949 #. type: textblock
16950 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7953
16951 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16952 msgstr ""
16953
16954 #. type: =head2
16955 #: ../fish/guestfish-actions.pod:5167
16956 msgid "vgs"
16957 msgstr ""
16958
16959 #. type: verbatim
16960 #: ../fish/guestfish-actions.pod:5169
16961 #, no-wrap
16962 msgid ""
16963 " vgs\n"
16964 "\n"
16965 msgstr ""
16966
16967 #. type: textblock
16968 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7964
16969 msgid ""
16970 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16971 "> command."
16972 msgstr ""
16973
16974 #. type: textblock
16975 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7967
16976 msgid ""
16977 "This returns a list of just the volume group names that were detected (eg. "
16978 "C<VolGroup00>)."
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-actions.pod:5177
16983 msgid "See also L</vgs-full>."
16984 msgstr ""
16985
16986 #. type: =head2
16987 #: ../fish/guestfish-actions.pod:5179
16988 msgid "vgs-full"
16989 msgstr ""
16990
16991 #. type: verbatim
16992 #: ../fish/guestfish-actions.pod:5181
16993 #, no-wrap
16994 msgid ""
16995 " vgs-full\n"
16996 "\n"
16997 msgstr ""
16998
16999 #. type: textblock
17000 #: ../fish/guestfish-actions.pod:5183 ../src/guestfs-actions.pod:7983
17001 msgid ""
17002 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17003 "> command.  The \"full\" version includes all fields."
17004 msgstr ""
17005
17006 #. type: =head2
17007 #: ../fish/guestfish-actions.pod:5186
17008 msgid "vgscan"
17009 msgstr ""
17010
17011 #. type: verbatim
17012 #: ../fish/guestfish-actions.pod:5188
17013 #, no-wrap
17014 msgid ""
17015 " vgscan\n"
17016 "\n"
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7997
17021 msgid ""
17022 "This rescans all block devices and rebuilds the list of LVM physical "
17023 "volumes, volume groups and logical volumes."
17024 msgstr ""
17025
17026 #. type: =head2
17027 #: ../fish/guestfish-actions.pod:5193
17028 msgid "vguuid"
17029 msgstr ""
17030
17031 #. type: verbatim
17032 #: ../fish/guestfish-actions.pod:5195
17033 #, no-wrap
17034 msgid ""
17035 " vguuid vgname\n"
17036 "\n"
17037 msgstr ""
17038
17039 #. type: textblock
17040 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:8010
17041 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17042 msgstr ""
17043
17044 #. type: =head2
17045 #: ../fish/guestfish-actions.pod:5199
17046 msgid "wc-c"
17047 msgstr ""
17048
17049 #. type: verbatim
17050 #: ../fish/guestfish-actions.pod:5201
17051 #, no-wrap
17052 msgid ""
17053 " wc-c path\n"
17054 "\n"
17055 msgstr ""
17056
17057 #. type: textblock
17058 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8050
17059 msgid ""
17060 "This command counts the characters in a file, using the C<wc -c> external "
17061 "command."
17062 msgstr ""
17063
17064 #. type: =head2
17065 #: ../fish/guestfish-actions.pod:5206
17066 msgid "wc-l"
17067 msgstr ""
17068
17069 #. type: verbatim
17070 #: ../fish/guestfish-actions.pod:5208
17071 #, no-wrap
17072 msgid ""
17073 " wc-l path\n"
17074 "\n"
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8063
17079 msgid ""
17080 "This command counts the lines in a file, using the C<wc -l> external command."
17081 msgstr ""
17082
17083 #. type: =head2
17084 #: ../fish/guestfish-actions.pod:5213
17085 msgid "wc-w"
17086 msgstr ""
17087
17088 #. type: verbatim
17089 #: ../fish/guestfish-actions.pod:5215
17090 #, no-wrap
17091 msgid ""
17092 " wc-w path\n"
17093 "\n"
17094 msgstr ""
17095
17096 #. type: textblock
17097 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8076
17098 msgid ""
17099 "This command counts the words in a file, using the C<wc -w> external command."
17100 msgstr ""
17101
17102 #. type: =head2
17103 #: ../fish/guestfish-actions.pod:5220
17104 msgid "write"
17105 msgstr ""
17106
17107 #. type: verbatim
17108 #: ../fish/guestfish-actions.pod:5222
17109 #, no-wrap
17110 msgid ""
17111 " write path content\n"
17112 "\n"
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:8091
17117 msgid ""
17118 "This call creates a file called C<path>.  The content of the file is the "
17119 "string C<content> (which can contain any 8 bit data)."
17120 msgstr ""
17121
17122 #. type: textblock
17123 #: ../fish/guestfish-actions.pod:5227
17124 msgid "See also L</write-append>."
17125 msgstr ""
17126
17127 #. type: =head2
17128 #: ../fish/guestfish-actions.pod:5232
17129 msgid "write-append"
17130 msgstr ""
17131
17132 #. type: verbatim
17133 #: ../fish/guestfish-actions.pod:5234
17134 #, no-wrap
17135 msgid ""
17136 " write-append path content\n"
17137 "\n"
17138 msgstr ""
17139
17140 #. type: textblock
17141 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8111
17142 msgid ""
17143 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17144 "not exist, then a new file is created."
17145 msgstr ""
17146
17147 #. type: textblock
17148 #: ../fish/guestfish-actions.pod:5239
17149 msgid "See also L</write>."
17150 msgstr ""
17151
17152 #. type: =head2
17153 #: ../fish/guestfish-actions.pod:5244
17154 msgid "write-file"
17155 msgstr ""
17156
17157 #. type: verbatim
17158 #: ../fish/guestfish-actions.pod:5246
17159 #, no-wrap
17160 msgid ""
17161 " write-file path content size\n"
17162 "\n"
17163 msgstr ""
17164
17165 #. type: textblock
17166 #: ../fish/guestfish-actions.pod:5248 ../src/guestfs-actions.pod:8138
17167 msgid ""
17168 "This call creates a file called C<path>.  The contents of the file is the "
17169 "string C<content> (which can contain any 8 bit data), with length C<size>."
17170 msgstr ""
17171
17172 #. type: textblock
17173 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8142
17174 msgid ""
17175 "As a special case, if C<size> is C<0> then the length is calculated using "
17176 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8146
17181 msgid ""
17182 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17183 "I<not> work, even if the length is specified."
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../fish/guestfish-actions.pod:5262
17188 msgid ""
17189 "I<This function is deprecated.> In new code, use the L</write> call instead."
17190 msgstr ""
17191
17192 #. type: =head2
17193 #: ../fish/guestfish-actions.pod:5269
17194 msgid "zegrep"
17195 msgstr ""
17196
17197 #. type: verbatim
17198 #: ../fish/guestfish-actions.pod:5271
17199 #, no-wrap
17200 msgid ""
17201 " zegrep regex path\n"
17202 "\n"
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../fish/guestfish-actions.pod:5273 ../src/guestfs-actions.pod:8163
17207 msgid ""
17208 "This calls the external C<zegrep> program and returns the matching lines."
17209 msgstr ""
17210
17211 #. type: =head2
17212 #: ../fish/guestfish-actions.pod:5279
17213 msgid "zegrepi"
17214 msgstr ""
17215
17216 #. type: verbatim
17217 #: ../fish/guestfish-actions.pod:5281
17218 #, no-wrap
17219 msgid ""
17220 " zegrepi regex path\n"
17221 "\n"
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8182
17226 msgid ""
17227 "This calls the external C<zegrep -i> program and returns the matching lines."
17228 msgstr ""
17229
17230 #. type: =head2
17231 #: ../fish/guestfish-actions.pod:5289
17232 msgid "zero"
17233 msgstr ""
17234
17235 #. type: verbatim
17236 #: ../fish/guestfish-actions.pod:5291
17237 #, no-wrap
17238 msgid ""
17239 " zero device\n"
17240 "\n"
17241 msgstr ""
17242
17243 #. type: textblock
17244 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8200
17245 msgid "This command writes zeroes over the first few blocks of C<device>."
17246 msgstr ""
17247
17248 #. type: textblock
17249 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8202
17250 msgid ""
17251 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17252 "securely wipe the device).  It should be sufficient to remove any partition "
17253 "tables, filesystem superblocks and so on."
17254 msgstr ""
17255
17256 #. type: textblock
17257 #: ../fish/guestfish-actions.pod:5299 ../fish/guestfish-actions.pod:5314
17258 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8232
17259 msgid ""
17260 "If blocks are already zero, then this command avoids writing zeroes.  This "
17261 "prevents the underlying device from becoming non-sparse or growing "
17262 "unnecessarily."
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish-actions.pod:5303
17267 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17268 msgstr ""
17269
17270 #. type: =head2
17271 #: ../fish/guestfish-actions.pod:5306
17272 msgid "zero-device"
17273 msgstr ""
17274
17275 #. type: verbatim
17276 #: ../fish/guestfish-actions.pod:5308
17277 #, no-wrap
17278 msgid ""
17279 " zero-device device\n"
17280 "\n"
17281 msgstr ""
17282
17283 #. type: textblock
17284 #: ../fish/guestfish-actions.pod:5310
17285 msgid ""
17286 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17287 "which just zeroes the first few blocks of a device."
17288 msgstr ""
17289
17290 #. type: =head2
17291 #: ../fish/guestfish-actions.pod:5321
17292 msgid "zerofree"
17293 msgstr ""
17294
17295 #. type: verbatim
17296 #: ../fish/guestfish-actions.pod:5323
17297 #, no-wrap
17298 msgid ""
17299 " zerofree device\n"
17300 "\n"
17301 msgstr ""
17302
17303 #. type: textblock
17304 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8254
17305 msgid ""
17306 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17307 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17308 "possible to compress the filesystem more effectively."
17309 msgstr ""
17310
17311 #. type: textblock
17312 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8259
17313 msgid "You should B<not> run this program if the filesystem is mounted."
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8262
17318 msgid ""
17319 "It is possible that using this program can damage the filesystem or data on "
17320 "the filesystem."
17321 msgstr ""
17322
17323 #. type: =head2
17324 #: ../fish/guestfish-actions.pod:5336
17325 msgid "zfgrep"
17326 msgstr ""
17327
17328 #. type: verbatim
17329 #: ../fish/guestfish-actions.pod:5338
17330 #, no-wrap
17331 msgid ""
17332 " zfgrep pattern path\n"
17333 "\n"
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../fish/guestfish-actions.pod:5340 ../src/guestfs-actions.pod:8276
17338 msgid ""
17339 "This calls the external C<zfgrep> program and returns the matching lines."
17340 msgstr ""
17341
17342 #. type: =head2
17343 #: ../fish/guestfish-actions.pod:5346
17344 msgid "zfgrepi"
17345 msgstr ""
17346
17347 #. type: verbatim
17348 #: ../fish/guestfish-actions.pod:5348
17349 #, no-wrap
17350 msgid ""
17351 " zfgrepi pattern path\n"
17352 "\n"
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../fish/guestfish-actions.pod:5350 ../src/guestfs-actions.pod:8295
17357 msgid ""
17358 "This calls the external C<zfgrep -i> program and returns the matching lines."
17359 msgstr ""
17360
17361 #. type: =head2
17362 #: ../fish/guestfish-actions.pod:5356
17363 msgid "zfile"
17364 msgstr ""
17365
17366 #. type: verbatim
17367 #: ../fish/guestfish-actions.pod:5358
17368 #, no-wrap
17369 msgid ""
17370 " zfile meth path\n"
17371 "\n"
17372 msgstr ""
17373
17374 #. type: textblock
17375 #: ../fish/guestfish-actions.pod:5360 ../src/guestfs-actions.pod:8321
17376 msgid ""
17377 "This command runs C<file> after first decompressing C<path> using C<method>."
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8324
17382 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish-actions.pod:5365
17387 msgid ""
17388 "Since 1.0.63, use L</file> instead which can now process compressed files."
17389 msgstr ""
17390
17391 #. type: textblock
17392 #: ../fish/guestfish-actions.pod:5368
17393 msgid ""
17394 "I<This function is deprecated.> In new code, use the L</file> call instead."
17395 msgstr ""
17396
17397 #. type: =head2
17398 #: ../fish/guestfish-actions.pod:5375
17399 msgid "zgrep"
17400 msgstr ""
17401
17402 #. type: verbatim
17403 #: ../fish/guestfish-actions.pod:5377
17404 #, no-wrap
17405 msgid ""
17406 " zgrep regex path\n"
17407 "\n"
17408 msgstr ""
17409
17410 #. type: textblock
17411 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8341
17412 msgid ""
17413 "This calls the external C<zgrep> program and returns the matching lines."
17414 msgstr ""
17415
17416 #. type: =head2
17417 #: ../fish/guestfish-actions.pod:5385
17418 msgid "zgrepi"
17419 msgstr ""
17420
17421 #. type: verbatim
17422 #: ../fish/guestfish-actions.pod:5387
17423 #, no-wrap
17424 msgid ""
17425 " zgrepi regex path\n"
17426 "\n"
17427 msgstr ""
17428
17429 #. type: textblock
17430 #: ../fish/guestfish-actions.pod:5389 ../src/guestfs-actions.pod:8360
17431 msgid ""
17432 "This calls the external C<zgrep -i> program and returns the matching lines."
17433 msgstr ""
17434
17435 #. type: =head2
17436 #: ../fish/guestfish-commands.pod:1
17437 msgid "alloc"
17438 msgstr ""
17439
17440 #. type: =head2
17441 #: ../fish/guestfish-commands.pod:3
17442 msgid "allocate"
17443 msgstr ""
17444
17445 #. type: verbatim
17446 #: ../fish/guestfish-commands.pod:5
17447 #, no-wrap
17448 msgid ""
17449 " alloc filename size\n"
17450 "\n"
17451 msgstr ""
17452
17453 #. type: textblock
17454 #: ../fish/guestfish-commands.pod:7
17455 msgid ""
17456 "This creates an empty (zeroed) file of the given size, and then adds so it "
17457 "can be further examined."
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17462 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17467 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17468 msgstr ""
17469
17470 #. type: textblock
17471 #: ../fish/guestfish-commands.pod:14
17472 msgid ""
17473 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17474 "image, see L</PREPARED DISK IMAGES>."
17475 msgstr ""
17476
17477 #. type: =head2
17478 #: ../fish/guestfish-commands.pod:17
17479 msgid "copy-in"
17480 msgstr ""
17481
17482 #. type: verbatim
17483 #: ../fish/guestfish-commands.pod:19
17484 #, no-wrap
17485 msgid ""
17486 " copy-in local [local ...] /remotedir\n"
17487 "\n"
17488 msgstr ""
17489
17490 #. type: textblock
17491 #: ../fish/guestfish-commands.pod:21
17492 msgid ""
17493 "C<copy-in> copies local files or directories recursively into the disk "
17494 "image, placing them in the directory called C</remotedir> (which must "
17495 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17496 "other commands as necessary."
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish-commands.pod:26
17501 msgid ""
17502 "Multiple local files and directories can be specified, but the last "
17503 "parameter must always be a remote directory.  Wildcards cannot be used."
17504 msgstr ""
17505
17506 #. type: =head2
17507 #: ../fish/guestfish-commands.pod:30
17508 msgid "copy-out"
17509 msgstr ""
17510
17511 #. type: verbatim
17512 #: ../fish/guestfish-commands.pod:32
17513 #, no-wrap
17514 msgid ""
17515 " copy-out remote [remote ...] localdir\n"
17516 "\n"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish-commands.pod:34
17521 msgid ""
17522 "C<copy-out> copies remote files or directories recursively out of the disk "
17523 "image, placing them on the host disk in a local directory called C<localdir> "
17524 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17525 "download>, L</tar-out> and other commands as necessary."
17526 msgstr ""
17527
17528 #. type: textblock
17529 #: ../fish/guestfish-commands.pod:40
17530 msgid ""
17531 "Multiple remote files and directories can be specified, but the last "
17532 "parameter must always be a local directory.  To download to the current "
17533 "directory, use C<.> as in:"
17534 msgstr ""
17535
17536 #. type: verbatim
17537 #: ../fish/guestfish-commands.pod:44
17538 #, no-wrap
17539 msgid ""
17540 " copy-out /home .\n"
17541 "\n"
17542 msgstr ""
17543
17544 #. type: textblock
17545 #: ../fish/guestfish-commands.pod:46
17546 msgid ""
17547 "Wildcards cannot be used in the ordinary command, but you can use them with "
17548 "the help of L</glob> like this:"
17549 msgstr ""
17550
17551 #. type: verbatim
17552 #: ../fish/guestfish-commands.pod:49
17553 #, no-wrap
17554 msgid ""
17555 " glob copy-out /home/* .\n"
17556 "\n"
17557 msgstr ""
17558
17559 #. type: =head2
17560 #: ../fish/guestfish-commands.pod:51
17561 msgid "display"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../fish/guestfish-commands.pod:53
17566 #, no-wrap
17567 msgid ""
17568 " display filename\n"
17569 "\n"
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish-commands.pod:55
17574 msgid ""
17575 "Use C<display> (a graphical display program) to display an image file.  It "
17576 "downloads the file, and runs C<display> on it."
17577 msgstr ""
17578
17579 #. type: textblock
17580 #: ../fish/guestfish-commands.pod:58
17581 msgid ""
17582 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17583 "environment variable.  For example to use the GNOME display program:"
17584 msgstr ""
17585
17586 #. type: verbatim
17587 #: ../fish/guestfish-commands.pod:61
17588 #, no-wrap
17589 msgid ""
17590 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17591 "\n"
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../fish/guestfish-commands.pod:63
17596 msgid "See also L<display(1)>."
17597 msgstr ""
17598
17599 #. type: =head2
17600 #: ../fish/guestfish-commands.pod:65
17601 msgid "echo"
17602 msgstr ""
17603
17604 #. type: verbatim
17605 #: ../fish/guestfish-commands.pod:67
17606 #, no-wrap
17607 msgid ""
17608 " echo [params ...]\n"
17609 "\n"
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish-commands.pod:69
17614 msgid "This echos the parameters to the terminal."
17615 msgstr ""
17616
17617 #. type: =head2
17618 #: ../fish/guestfish-commands.pod:71
17619 msgid "edit"
17620 msgstr ""
17621
17622 #. type: =head2
17623 #: ../fish/guestfish-commands.pod:73
17624 msgid "vi"
17625 msgstr ""
17626
17627 #. type: =head2
17628 #: ../fish/guestfish-commands.pod:75
17629 msgid "emacs"
17630 msgstr ""
17631
17632 #. type: verbatim
17633 #: ../fish/guestfish-commands.pod:77
17634 #, no-wrap
17635 msgid ""
17636 " edit filename\n"
17637 "\n"
17638 msgstr ""
17639
17640 #. type: textblock
17641 #: ../fish/guestfish-commands.pod:79
17642 msgid ""
17643 "This is used to edit a file.  It downloads the file, edits it locally using "
17644 "your editor, then uploads the result."
17645 msgstr ""
17646
17647 #. type: textblock
17648 #: ../fish/guestfish-commands.pod:82
17649 msgid ""
17650 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17651 "or C<emacs> you will get those corresponding editors."
17652 msgstr ""
17653
17654 #. type: =head2
17655 #: ../fish/guestfish-commands.pod:86
17656 msgid "glob"
17657 msgstr ""
17658
17659 #. type: verbatim
17660 #: ../fish/guestfish-commands.pod:88
17661 #, no-wrap
17662 msgid ""
17663 " glob command args...\n"
17664 "\n"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish-commands.pod:90
17669 msgid ""
17670 "Expand wildcards in any paths in the args list, and run C<command> "
17671 "repeatedly on each matching path."
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-commands.pod:93
17676 msgid "See L</WILDCARDS AND GLOBBING>."
17677 msgstr ""
17678
17679 #. type: =head2
17680 #: ../fish/guestfish-commands.pod:95
17681 msgid "hexedit"
17682 msgstr ""
17683
17684 #. type: verbatim
17685 #: ../fish/guestfish-commands.pod:97
17686 #, no-wrap
17687 msgid ""
17688 " hexedit <filename|device>\n"
17689 " hexedit <filename|device> <max>\n"
17690 " hexedit <filename|device> <start> <max>\n"
17691 "\n"
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish-commands.pod:101
17696 msgid ""
17697 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17698 "device."
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-commands.pod:104
17703 msgid ""
17704 "This command works by downloading potentially the whole file or device, "
17705 "editing it locally, then uploading it.  If the file or device is large, you "
17706 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17707 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17708 "usual modifiers allowed such as C<1M> (1 megabyte)."
17709 msgstr ""
17710
17711 #. type: textblock
17712 #: ../fish/guestfish-commands.pod:111
17713 msgid "For example to edit the first few sectors of a disk you might do:"
17714 msgstr ""
17715
17716 #. type: verbatim
17717 #: ../fish/guestfish-commands.pod:114
17718 #, no-wrap
17719 msgid ""
17720 " hexedit /dev/sda 1M\n"
17721 "\n"
17722 msgstr ""
17723
17724 #. type: textblock
17725 #: ../fish/guestfish-commands.pod:116
17726 msgid ""
17727 "which would allow you to edit anywhere within the first megabyte of the disk."
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish-commands.pod:119
17732 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17733 msgstr ""
17734
17735 #. type: verbatim
17736 #: ../fish/guestfish-commands.pod:121
17737 #, no-wrap
17738 msgid ""
17739 " hexedit /dev/sda1 0x400 0x400\n"
17740 "\n"
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../fish/guestfish-commands.pod:123
17745 msgid "(assuming the superblock is in the standard location)."
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish-commands.pod:125
17750 msgid ""
17751 "This command requires the external L<hexedit(1)> program.  You can specify "
17752 "another program to use by setting the C<HEXEDITOR> environment variable."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../fish/guestfish-commands.pod:129
17757 msgid "See also L</hexdump>."
17758 msgstr ""
17759
17760 #. type: =head2
17761 #: ../fish/guestfish-commands.pod:131
17762 msgid "lcd"
17763 msgstr ""
17764
17765 #. type: verbatim
17766 #: ../fish/guestfish-commands.pod:133
17767 #, no-wrap
17768 msgid ""
17769 " lcd directory\n"
17770 "\n"
17771 msgstr ""
17772
17773 #. type: textblock
17774 #: ../fish/guestfish-commands.pod:135
17775 msgid ""
17776 "Change the local directory, ie. the current directory of guestfish itself."
17777 msgstr ""
17778
17779 #. type: textblock
17780 #: ../fish/guestfish-commands.pod:138
17781 msgid "Note that C<!cd> won't do what you might expect."
17782 msgstr ""
17783
17784 #. type: =head2
17785 #: ../fish/guestfish-commands.pod:140
17786 msgid "man"
17787 msgstr ""
17788
17789 #. type: =head2
17790 #: ../fish/guestfish-commands.pod:142
17791 msgid "manual"
17792 msgstr ""
17793
17794 #. type: verbatim
17795 #: ../fish/guestfish-commands.pod:144
17796 #, no-wrap
17797 msgid ""
17798 "  man\n"
17799 "\n"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish-commands.pod:146
17804 msgid "Opens the manual page for guestfish."
17805 msgstr ""
17806
17807 #. type: =head2
17808 #: ../fish/guestfish-commands.pod:148
17809 msgid "more"
17810 msgstr ""
17811
17812 #. type: =head2
17813 #: ../fish/guestfish-commands.pod:150
17814 msgid "less"
17815 msgstr ""
17816
17817 #. type: verbatim
17818 #: ../fish/guestfish-commands.pod:152
17819 #, no-wrap
17820 msgid ""
17821 " more filename\n"
17822 "\n"
17823 msgstr ""
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish-commands.pod:154
17827 #, no-wrap
17828 msgid ""
17829 " less filename\n"
17830 "\n"
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish-commands.pod:156
17835 msgid "This is used to view a file."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish-commands.pod:158
17840 msgid ""
17841 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17842 "C<less> you will get the C<less> command specifically."
17843 msgstr ""
17844
17845 #. type: =head2
17846 #: ../fish/guestfish-commands.pod:161
17847 msgid "reopen"
17848 msgstr ""
17849
17850 #. type: verbatim
17851 #: ../fish/guestfish-commands.pod:163
17852 #, no-wrap
17853 msgid ""
17854 "  reopen\n"
17855 "\n"
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish-commands.pod:165
17860 msgid ""
17861 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17862 "normally, because the handle is closed properly when guestfish exits.  "
17863 "However this is occasionally useful for testing."
17864 msgstr ""
17865
17866 #. type: =head2
17867 #: ../fish/guestfish-commands.pod:169
17868 msgid "setenv"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish-commands.pod:171
17873 #, no-wrap
17874 msgid ""
17875 "  setenv VAR value\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish-commands.pod:173
17881 msgid "Set the environment variable C<VAR> to the string C<value>."
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish-commands.pod:175
17886 msgid ""
17887 "To print the value of an environment variable use a shell command such as:"
17888 msgstr ""
17889
17890 #. type: verbatim
17891 #: ../fish/guestfish-commands.pod:178
17892 #, no-wrap
17893 msgid ""
17894 " !echo $VAR\n"
17895 "\n"
17896 msgstr ""
17897
17898 #. type: =head2
17899 #: ../fish/guestfish-commands.pod:180
17900 msgid "sparse"
17901 msgstr ""
17902
17903 #. type: verbatim
17904 #: ../fish/guestfish-commands.pod:182
17905 #, no-wrap
17906 msgid ""
17907 " sparse filename size\n"
17908 "\n"
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish-commands.pod:184
17913 msgid ""
17914 "This creates an empty sparse file of the given size, and then adds so it can "
17915 "be further examined."
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish-commands.pod:187
17920 msgid ""
17921 "In all respects it works the same as the L</alloc> command, except that the "
17922 "image file is allocated sparsely, which means that disk blocks are not "
17923 "assigned to the file until they are needed.  Sparse disk files only use "
17924 "space when written to, but they are slower and there is a danger you could "
17925 "run out of real disk space during a write operation."
17926 msgstr ""
17927
17928 #. type: =head2
17929 #: ../fish/guestfish-commands.pod:197
17930 msgid "supported"
17931 msgstr ""
17932
17933 #. type: verbatim
17934 #: ../fish/guestfish-commands.pod:199
17935 #, no-wrap
17936 msgid ""
17937 " supported\n"
17938 "\n"
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish-commands.pod:201
17943 msgid ""
17944 "This command returns a list of the optional groups known to the daemon, and "
17945 "indicates which ones are supported by this build of the libguestfs appliance."
17946 msgstr ""
17947
17948 #. type: textblock
17949 #: ../fish/guestfish-commands.pod:205
17950 msgid "See also L<guestfs(3)/AVAILABILITY>."
17951 msgstr ""
17952
17953 #. type: =head2
17954 #: ../fish/guestfish-commands.pod:207
17955 msgid "time"
17956 msgstr ""
17957
17958 #. type: verbatim
17959 #: ../fish/guestfish-commands.pod:209
17960 #, no-wrap
17961 msgid ""
17962 " time command args...\n"
17963 "\n"
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish-commands.pod:211
17968 msgid ""
17969 "Run the command as usual, but print the elapsed time afterwards.  This can "
17970 "be useful for benchmarking operations."
17971 msgstr ""
17972
17973 #. type: =head2
17974 #: ../fish/guestfish-commands.pod:214
17975 msgid "unsetenv"
17976 msgstr ""
17977
17978 #. type: verbatim
17979 #: ../fish/guestfish-commands.pod:216
17980 #, no-wrap
17981 msgid ""
17982 "  unsetenv VAR\n"
17983 "\n"
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish-commands.pod:218
17988 msgid "Remove C<VAR> from the environment."
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../fish/guestfish.pod:5
17993 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17994 msgstr ""
17995
17996 #. type: verbatim
17997 #: ../fish/guestfish.pod:9
17998 #, no-wrap
17999 msgid ""
18000 " guestfish [--options] [commands]\n"
18001 "\n"
18002 msgstr ""
18003
18004 #. type: verbatim
18005 #: ../fish/guestfish.pod:11
18006 #, no-wrap
18007 msgid ""
18008 " guestfish\n"
18009 "\n"
18010 msgstr ""
18011
18012 #. type: verbatim
18013 #: ../fish/guestfish.pod:13
18014 #, no-wrap
18015 msgid ""
18016 " guestfish [--ro|--rw] -a disk.img\n"
18017 "\n"
18018 msgstr ""
18019
18020 #. type: verbatim
18021 #: ../fish/guestfish.pod:15
18022 #, no-wrap
18023 msgid ""
18024 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18025 "\n"
18026 msgstr ""
18027
18028 #. type: verbatim
18029 #: ../fish/guestfish.pod:17
18030 #, no-wrap
18031 msgid ""
18032 " guestfish -d libvirt-domain\n"
18033 "\n"
18034 msgstr ""
18035
18036 #. type: verbatim
18037 #: ../fish/guestfish.pod:19
18038 #, no-wrap
18039 msgid ""
18040 " guestfish [--ro|--rw] -a disk.img -i\n"
18041 "\n"
18042 msgstr ""
18043
18044 #. type: verbatim
18045 #: ../fish/guestfish.pod:21
18046 #, no-wrap
18047 msgid ""
18048 " guestfish -d libvirt-domain -i\n"
18049 "\n"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish.pod:25
18054 msgid ""
18055 "Using guestfish in read/write mode on live virtual machines can be "
18056 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18057 "option to use guestfish safely if the disk image or virtual machine might be "
18058 "live."
18059 msgstr ""
18060
18061 #. type: textblock
18062 #: ../fish/guestfish.pod:32
18063 msgid ""
18064 "Guestfish is a shell and command-line tool for examining and modifying "
18065 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18066 "functionality of the guestfs API, see L<guestfs(3)>."
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:36
18071 msgid ""
18072 "Guestfish gives you structured access to the libguestfs API, from shell "
18073 "scripts or the command line or interactively.  If you want to rescue a "
18074 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18075 "command."
18076 msgstr ""
18077
18078 #. type: =head2
18079 #: ../fish/guestfish.pod:43
18080 msgid "As an interactive shell"
18081 msgstr ""
18082
18083 #. type: verbatim
18084 #: ../fish/guestfish.pod:45
18085 #, no-wrap
18086 msgid ""
18087 " $ guestfish\n"
18088 " \n"
18089 msgstr ""
18090
18091 #. type: verbatim
18092 #: ../fish/guestfish.pod:47
18093 #, no-wrap
18094 msgid ""
18095 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18096 " editing virtual machine filesystems.\n"
18097 " \n"
18098 msgstr ""
18099
18100 #. type: verbatim
18101 #: ../fish/guestfish.pod:50
18102 #, no-wrap
18103 msgid ""
18104 " Type: 'help' for a list of commands\n"
18105 "       'man' to read the manual\n"
18106 "       'quit' to quit the shell\n"
18107 " \n"
18108 msgstr ""
18109
18110 #. type: verbatim
18111 #: ../fish/guestfish.pod:54
18112 #, no-wrap
18113 msgid ""
18114 " ><fs> add-ro disk.img\n"
18115 " ><fs> run\n"
18116 " ><fs> list-filesystems\n"
18117 " /dev/sda1: ext4\n"
18118 " /dev/vg_guest/lv_root: ext4\n"
18119 " /dev/vg_guest/lv_swap: swap\n"
18120 " ><fs> mount /dev/vg_guest/lv_root /\n"
18121 " ><fs> cat /etc/fstab\n"
18122 " # /etc/fstab\n"
18123 " # Created by anaconda\n"
18124 " [...]\n"
18125 " ><fs> exit\n"
18126 "\n"
18127 msgstr ""
18128
18129 #. type: =head2
18130 #: ../fish/guestfish.pod:67
18131 msgid "From shell scripts"
18132 msgstr ""
18133
18134 #. type: textblock
18135 #: ../fish/guestfish.pod:69
18136 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18137 msgstr ""
18138
18139 #. type: verbatim
18140 #: ../fish/guestfish.pod:71
18141 #, no-wrap
18142 msgid ""
18143 " guestfish <<_EOF_\n"
18144 " add disk.img\n"
18145 " run\n"
18146 " mount /dev/vg_guest/lv_root /\n"
18147 " write /etc/motd \"Welcome, new users\"\n"
18148 " _EOF_\n"
18149 "\n"
18150 msgstr ""
18151
18152 #. type: textblock
18153 #: ../fish/guestfish.pod:78
18154 msgid "List the LVM logical volumes in a disk image:"
18155 msgstr ""
18156
18157 #. type: verbatim
18158 #: ../fish/guestfish.pod:80
18159 #, no-wrap
18160 msgid ""
18161 " guestfish -a disk.img --ro <<_EOF_\n"
18162 " run\n"
18163 " lvs\n"
18164 " _EOF_\n"
18165 "\n"
18166 msgstr ""
18167
18168 #. type: textblock
18169 #: ../fish/guestfish.pod:85
18170 msgid "List all the filesystems in a disk image:"
18171 msgstr ""
18172
18173 #. type: verbatim
18174 #: ../fish/guestfish.pod:87
18175 #, no-wrap
18176 msgid ""
18177 " guestfish -a disk.img --ro <<_EOF_\n"
18178 " run\n"
18179 " list-filesystems\n"
18180 " _EOF_\n"
18181 "\n"
18182 msgstr ""
18183
18184 #. type: =head2
18185 #: ../fish/guestfish.pod:92
18186 msgid "On one command line"
18187 msgstr ""
18188
18189 #. type: textblock
18190 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18191 msgid "Update C</etc/resolv.conf> in a guest:"
18192 msgstr ""
18193
18194 #. type: verbatim
18195 #: ../fish/guestfish.pod:96
18196 #, no-wrap
18197 msgid ""
18198 " guestfish \\\n"
18199 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18200 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18201 "\n"
18202 msgstr ""
18203
18204 #. type: textblock
18205 #: ../fish/guestfish.pod:100
18206 msgid "Edit C</boot/grub/grub.conf> interactively:"
18207 msgstr ""
18208
18209 #. type: verbatim
18210 #: ../fish/guestfish.pod:102
18211 #, no-wrap
18212 msgid ""
18213 " guestfish --rw --add disk.img \\\n"
18214 "   --mount /dev/vg_guest/lv_root \\\n"
18215 "   --mount /dev/sda1:/boot \\\n"
18216 "   edit /boot/grub/grub.conf\n"
18217 "\n"
18218 msgstr ""
18219
18220 #. type: =head2
18221 #: ../fish/guestfish.pod:107
18222 msgid "Mount disks automatically"
18223 msgstr ""
18224
18225 #. type: textblock
18226 #: ../fish/guestfish.pod:109
18227 msgid ""
18228 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18229 msgstr ""
18230
18231 #. type: verbatim
18232 #: ../fish/guestfish.pod:112
18233 #, no-wrap
18234 msgid ""
18235 " guestfish --ro -a disk.img -i cat /etc/group\n"
18236 "\n"
18237 msgstr ""
18238
18239 #. type: verbatim
18240 #: ../fish/guestfish.pod:114
18241 #, no-wrap
18242 msgid ""
18243 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18244 "\n"
18245 msgstr ""
18246
18247 #. type: textblock
18248 #: ../fish/guestfish.pod:116
18249 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18250 msgstr ""
18251
18252 #. type: verbatim
18253 #: ../fish/guestfish.pod:118
18254 #, no-wrap
18255 msgid ""
18256 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18257 "\n"
18258 msgstr ""
18259
18260 #. type: =head2
18261 #: ../fish/guestfish.pod:120
18262 msgid "As a script interpreter"
18263 msgstr ""
18264
18265 #. type: textblock
18266 #: ../fish/guestfish.pod:122
18267 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18268 msgstr ""
18269
18270 #. type: verbatim
18271 #: ../fish/guestfish.pod:124
18272 #, no-wrap
18273 msgid ""
18274 " #!/usr/bin/guestfish -f\n"
18275 " sparse test1.img 100M\n"
18276 " run\n"
18277 " part-disk /dev/sda mbr\n"
18278 " mkfs ext2 /dev/sda1\n"
18279 "\n"
18280 msgstr ""
18281
18282 #. type: =head2
18283 #: ../fish/guestfish.pod:130
18284 msgid "Start with a prepared disk"
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish.pod:132
18289 msgid ""
18290 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18291 "single ext2-formatted partition:"
18292 msgstr ""
18293
18294 #. type: verbatim
18295 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18296 #, no-wrap
18297 msgid ""
18298 " guestfish -N fs\n"
18299 "\n"
18300 msgstr ""
18301
18302 #. type: textblock
18303 #: ../fish/guestfish.pod:137
18304 msgid "To list what is available do:"
18305 msgstr ""
18306
18307 #. type: verbatim
18308 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18309 #, no-wrap
18310 msgid ""
18311 " guestfish -N help | less\n"
18312 "\n"
18313 msgstr ""
18314
18315 #. type: =head2
18316 #: ../fish/guestfish.pod:141
18317 msgid "Remote control"
18318 msgstr ""
18319
18320 #. type: verbatim
18321 #: ../fish/guestfish.pod:143
18322 #, no-wrap
18323 msgid ""
18324 " eval \"`guestfish --listen`\"\n"
18325 " guestfish --remote add-ro disk.img\n"
18326 " guestfish --remote run\n"
18327 " guestfish --remote lvs\n"
18328 "\n"
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish.pod:154
18333 msgid "Displays general help on options."
18334 msgstr ""
18335
18336 #. type: =item
18337 #: ../fish/guestfish.pod:158
18338 msgid "B<--cmd-help>"
18339 msgstr ""
18340
18341 #. type: textblock
18342 #: ../fish/guestfish.pod:160
18343 msgid "Lists all available guestfish commands."
18344 msgstr ""
18345
18346 #. type: =item
18347 #: ../fish/guestfish.pod:162
18348 msgid "B<-h cmd>"
18349 msgstr ""
18350
18351 #. type: =item
18352 #: ../fish/guestfish.pod:164
18353 msgid "B<--cmd-help cmd>"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish.pod:166
18358 msgid "Displays detailed help on a single command C<cmd>."
18359 msgstr ""
18360
18361 #. type: =item
18362 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18363 msgid "B<-a image>"
18364 msgstr ""
18365
18366 #. type: =item
18367 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18368 msgid "B<--add image>"
18369 msgstr ""
18370
18371 #. type: textblock
18372 #: ../fish/guestfish.pod:172
18373 msgid "Add a block device or virtual machine image to the shell."
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish.pod:177
18378 msgid ""
18379 "Using this flag is mostly equivalent to using the C<add> command, with "
18380 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18381 "the I<--format=...> flag was given."
18382 msgstr ""
18383
18384 #. type: textblock
18385 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18386 msgid ""
18387 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18388 "URI to use.  The default is to use the default libvirt connection."
18389 msgstr ""
18390
18391 #. type: =item
18392 #: ../fish/guestfish.pod:189
18393 msgid "B<--csh>"
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fish/guestfish.pod:191
18398 msgid ""
18399 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18400 "section L</REMOTE CONTROL AND CSH> below."
18401 msgstr ""
18402
18403 #. type: =item
18404 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18405 msgid "B<-d libvirt-domain>"
18406 msgstr ""
18407
18408 #. type: =item
18409 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18410 msgid "B<--domain libvirt-domain>"
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18415 msgid ""
18416 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18417 "used, then any libvirt domain can be used.  However in write mode, only "
18418 "libvirt domains which are shut down can be named here."
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18423 msgid "Domain UUIDs can be used instead of names."
18424 msgstr ""
18425
18426 #. type: textblock
18427 #: ../fish/guestfish.pod:204
18428 msgid ""
18429 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18430 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18431 "if the I<--format:...> flag was given."
18432 msgstr ""
18433
18434 #. type: =item
18435 #: ../fish/guestfish.pod:208
18436 msgid "B<-D>"
18437 msgstr ""
18438
18439 #. type: =item
18440 #: ../fish/guestfish.pod:210
18441 msgid "B<--no-dest-paths>"
18442 msgstr ""
18443
18444 #. type: textblock
18445 #: ../fish/guestfish.pod:212
18446 msgid ""
18447 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18448 "to hit the tab key to complete paths on the guest filesystem, but this "
18449 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18450 "allow this feature to be disabled."
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18455 msgid ""
18456 "When prompting for keys and passphrases, guestfish normally turns echoing "
18457 "off so you cannot see what you are typing.  If you are not worried about "
18458 "Tempest attacks and there is no one else in the room you can specify this "
18459 "flag to see what you are typing."
18460 msgstr ""
18461
18462 #. type: =item
18463 #: ../fish/guestfish.pod:224
18464 msgid "B<-f file>"
18465 msgstr ""
18466
18467 #. type: =item
18468 #: ../fish/guestfish.pod:226
18469 msgid "B<--file file>"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish.pod:228
18474 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18475 msgstr ""
18476
18477 #. type: verbatim
18478 #: ../fish/guestfish.pod:231
18479 #, no-wrap
18480 msgid ""
18481 " #!/usr/bin/guestfish -f\n"
18482 "\n"
18483 msgstr ""
18484
18485 #. type: verbatim
18486 #: ../fish/guestfish.pod:244
18487 #, no-wrap
18488 msgid ""
18489 " guestfish --format=raw -a disk.img\n"
18490 "\n"
18491 msgstr ""
18492
18493 #. type: verbatim
18494 #: ../fish/guestfish.pod:248
18495 #, no-wrap
18496 msgid ""
18497 " guestfish --format=raw -a disk.img --format -a another.img\n"
18498 "\n"
18499 msgstr ""
18500
18501 #. type: textblock
18502 #: ../fish/guestfish.pod:253
18503 msgid ""
18504 "If you have untrusted raw-format guest disk images, you should use this "
18505 "option to specify the disk format.  This avoids a possible security problem "
18506 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18507 msgstr ""
18508
18509 #. type: =item
18510 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18511 msgid "B<--inspector>"
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18516 msgid ""
18517 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18518 "system and mount filesystems as they would be mounted on the real virtual "
18519 "machine."
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:266
18524 msgid "Typical usage is either:"
18525 msgstr ""
18526
18527 #. type: verbatim
18528 #: ../fish/guestfish.pod:268
18529 #, no-wrap
18530 msgid ""
18531 " guestfish -d myguest -i\n"
18532 "\n"
18533 msgstr ""
18534
18535 #. type: textblock
18536 #: ../fish/guestfish.pod:270
18537 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18538 msgstr ""
18539
18540 #. type: verbatim
18541 #: ../fish/guestfish.pod:272
18542 #, no-wrap
18543 msgid ""
18544 " guestfish --ro -d myguest -i\n"
18545 "\n"
18546 msgstr ""
18547
18548 #. type: textblock
18549 #: ../fish/guestfish.pod:274
18550 msgid "(for active domains, readonly), or specify the block device directly:"
18551 msgstr ""
18552
18553 #. type: verbatim
18554 #: ../fish/guestfish.pod:276
18555 #, no-wrap
18556 msgid ""
18557 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18558 "\n"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:278
18563 msgid ""
18564 "Note that the command line syntax changed slightly over older versions of "
18565 "guestfish.  You can still use the old syntax:"
18566 msgstr ""
18567
18568 #. type: verbatim
18569 #: ../fish/guestfish.pod:281
18570 #, no-wrap
18571 msgid ""
18572 " guestfish [--ro] -i disk.img\n"
18573 "\n"
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/guestfish.pod:283
18578 #, no-wrap
18579 msgid ""
18580 " guestfish [--ro] -i libvirt-domain\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/guestfish.pod:285
18586 msgid ""
18587 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18588 "then using other commands to mount the filesystems that were found."
18589 msgstr ""
18590
18591 #. type: =item
18592 #: ../fish/guestfish.pod:294
18593 msgid "B<--listen>"
18594 msgstr ""
18595
18596 #. type: textblock
18597 #: ../fish/guestfish.pod:296
18598 msgid ""
18599 "Fork into the background and listen for remote commands.  See section L</"
18600 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18601 msgstr ""
18602
18603 #. type: =item
18604 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18605 msgid "B<--live>"
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18610 msgid ""
18611 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18612 "ATTACHING TO RUNNING DAEMONS>)."
18613 msgstr ""
18614
18615 #. type: =item
18616 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18617 msgid "B<-m dev[:mountpoint[:options]]>"
18618 msgstr ""
18619
18620 #. type: =item
18621 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18622 msgid "B<--mount dev[:mountpoint[:options]]>"
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish.pod:308
18627 msgid "Mount the named partition or logical volume on the given mountpoint."
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:310
18632 msgid "If the mountpoint is omitted, it defaults to C</>."
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish.pod:312
18637 msgid "You have to mount something on C</> before most commands will work."
18638 msgstr ""
18639
18640 #. type: textblock
18641 #: ../fish/guestfish.pod:314
18642 msgid ""
18643 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18644 "launched."
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:317
18649 msgid ""
18650 "If you don't know what filesystems a disk image contains, you can either run "
18651 "guestfish without this option, then list the partitions, filesystems and LVs "
18652 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18653 "commands), or you can use the L<virt-filesystems(1)> program."
18654 msgstr ""
18655
18656 #. type: textblock
18657 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18658 msgid ""
18659 "The third (and rarely used) part of the mount parameter is the list of mount "
18660 "options used to mount the underlying filesystem.  If this is not given, then "
18661 "the mount options are either the empty string or C<ro> (the latter if the "
18662 "I<--ro> flag is used).  By specifying the mount options, you override this "
18663 "default choice.  Probably the only time you would use this is to enable ACLs "
18664 "and/or extended attributes if the filesystem can support them:"
18665 msgstr ""
18666
18667 #. type: verbatim
18668 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18669 #, no-wrap
18670 msgid ""
18671 " -m /dev/sda1:/:acl,user_xattr\n"
18672 "\n"
18673 msgstr ""
18674
18675 #. type: textblock
18676 #: ../fish/guestfish.pod:333
18677 msgid "Using this flag is equivalent to using the C<mount-options> command."
18678 msgstr ""
18679
18680 #. type: =item
18681 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18682 #: ../resize/virt-resize.pod:435
18683 msgid "B<-n>"
18684 msgstr ""
18685
18686 #. type: =item
18687 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18688 msgid "B<--no-sync>"
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish.pod:339
18693 msgid ""
18694 "Disable autosync.  This is enabled by default.  See the discussion of "
18695 "autosync in the L<guestfs(3)> manpage."
18696 msgstr ""
18697
18698 #. type: =item
18699 #: ../fish/guestfish.pod:342
18700 msgid "B<-N type>"
18701 msgstr ""
18702
18703 #. type: =item
18704 #: ../fish/guestfish.pod:344
18705 msgid "B<--new type>"
18706 msgstr ""
18707
18708 #. type: =item
18709 #: ../fish/guestfish.pod:346
18710 msgid "B<-N help>"
18711 msgstr ""
18712
18713 #. type: textblock
18714 #: ../fish/guestfish.pod:348
18715 msgid ""
18716 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18717 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18718 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18719 "IMAGES> below."
18720 msgstr ""
18721
18722 #. type: =item
18723 #: ../fish/guestfish.pod:353
18724 msgid "B<--progress-bars>"
18725 msgstr ""
18726
18727 #. type: textblock
18728 #: ../fish/guestfish.pod:355
18729 msgid "Enable progress bars, even when guestfish is used non-interactively."
18730 msgstr ""
18731
18732 #. type: textblock
18733 #: ../fish/guestfish.pod:357
18734 msgid ""
18735 "Progress bars are enabled by default when guestfish is used as an "
18736 "interactive shell."
18737 msgstr ""
18738
18739 #. type: =item
18740 #: ../fish/guestfish.pod:360
18741 msgid "B<--no-progress-bars>"
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/guestfish.pod:362
18746 msgid "Disable progress bars."
18747 msgstr ""
18748
18749 #. type: =item
18750 #: ../fish/guestfish.pod:364
18751 msgid "B<--remote[=pid]>"
18752 msgstr ""
18753
18754 #. type: textblock
18755 #: ../fish/guestfish.pod:366
18756 msgid ""
18757 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18758 "CONTROL GUESTFISH OVER A SOCKET> below."
18759 msgstr ""
18760
18761 #. type: =item
18762 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18763 #: ../rescue/virt-rescue.pod:161
18764 msgid "B<-r>"
18765 msgstr ""
18766
18767 #. type: =item
18768 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18769 #: ../rescue/virt-rescue.pod:163
18770 msgid "B<--ro>"
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/guestfish.pod:373
18775 msgid ""
18776 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18777 "mounts are done read-only."
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18782 msgid ""
18783 "The option must always be used if the disk image or virtual machine might be "
18784 "running, and is generally recommended in cases where you don't need write "
18785 "access to the disk."
18786 msgstr ""
18787
18788 #. type: textblock
18789 #: ../fish/guestfish.pod:380
18790 msgid ""
18791 "Note that prepared disk images created with I<-N> are not affected by this "
18792 "option.  Also commands like C<add> are not affected - you have to specify "
18793 "the C<readonly:true> option explicitly if you need it."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish.pod:384
18798 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18799 msgstr ""
18800
18801 #. type: =item
18802 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18803 #: ../rescue/virt-rescue.pod:173
18804 msgid "B<--selinux>"
18805 msgstr ""
18806
18807 #. type: textblock
18808 #: ../fish/guestfish.pod:388
18809 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../fish/guestfish.pod:394
18814 msgid ""
18815 "Enable very verbose messages.  This is particularly useful if you find a bug."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:401
18820 msgid "Display the guestfish / libguestfs version number and exit."
18821 msgstr ""
18822
18823 #. type: =item
18824 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18825 #: ../rescue/virt-rescue.pod:194
18826 msgid "B<-w>"
18827 msgstr ""
18828
18829 #. type: =item
18830 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18831 #: ../rescue/virt-rescue.pod:196
18832 msgid "B<--rw>"
18833 msgstr ""
18834
18835 #. type: textblock
18836 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18837 msgid ""
18838 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18839 "mounts are done read-write."
18840 msgstr ""
18841
18842 #. type: textblock
18843 #: ../fish/guestfish.pod:410
18844 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:414
18849 msgid "Echo each command before executing it."
18850 msgstr ""
18851
18852 #. type: =head1
18853 #: ../fish/guestfish.pod:418
18854 msgid "COMMANDS ON COMMAND LINE"
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../fish/guestfish.pod:420
18859 msgid ""
18860 "Any additional (non-option) arguments are treated as commands to execute."
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/guestfish.pod:423
18865 msgid ""
18866 "Commands to execute should be separated by a colon (C<:>), where the colon "
18867 "is a separate parameter.  Thus:"
18868 msgstr ""
18869
18870 #. type: verbatim
18871 #: ../fish/guestfish.pod:426
18872 #, no-wrap
18873 msgid ""
18874 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18875 "\n"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish.pod:428
18880 msgid ""
18881 "If there are no additional arguments, then we enter a shell, either an "
18882 "interactive shell with a prompt (if the input is a terminal) or a non-"
18883 "interactive shell."
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:432
18888 msgid ""
18889 "In either command line mode or non-interactive shell, the first command that "
18890 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18891 "prompt) if a command fails, you can continue to enter commands."
18892 msgstr ""
18893
18894 #. type: =head1
18895 #: ../fish/guestfish.pod:437
18896 msgid "USING launch (OR run)"
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/guestfish.pod:439
18901 msgid ""
18902 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18903 "then launch it, then mount any disks you need, and finally issue actions/"
18904 "commands.  So the general order of the day is:"
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish.pod:447
18909 msgid "add or -a/--add"
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../fish/guestfish.pod:451
18914 msgid "launch (aka run)"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:455
18919 msgid "mount or -m/--mount"
18920 msgstr ""
18921
18922 #. type: textblock
18923 #: ../fish/guestfish.pod:459
18924 msgid "any other commands"
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../fish/guestfish.pod:463
18929 msgid ""
18930 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18931 "guest before mounting or performing any other commands."
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../fish/guestfish.pod:466
18936 msgid ""
18937 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18938 "I<--new> options were given then C<run> is done automatically, simply "
18939 "because guestfish can't perform the action you asked for without doing this."
18940 msgstr ""
18941
18942 #. type: =head1
18943 #: ../fish/guestfish.pod:471
18944 msgid "OPENING DISKS FOR READ AND WRITE"
18945 msgstr ""
18946
18947 #. type: textblock
18948 #: ../fish/guestfish.pod:473
18949 msgid ""
18950 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18951 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18952 "I<-i> and I<-m> open disk images read-only or for writing."
18953 msgstr ""
18954
18955 #. type: textblock
18956 #: ../fish/guestfish.pod:478
18957 msgid ""
18958 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18959 "opening disk images supplied on the command line for write.  To open a disk "
18960 "image read-only you have to do I<-a image --ro>."
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../fish/guestfish.pod:482
18965 msgid ""
18966 "This matters: If you accidentally open a live VM disk image writable then "
18967 "you will cause irreversible disk corruption."
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish.pod:485
18972 msgid ""
18973 "In a future libguestfs we intend to change the default the other way.  Disk "
18974 "images will be opened read-only.  You will have to either specify "
18975 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18976 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18977 "access for disk images specified by those other command line options."
18978 msgstr ""
18979
18980 #. type: textblock
18981 #: ../fish/guestfish.pod:492
18982 msgid ""
18983 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18984 "which does nothing (it is already the default).  However it is highly "
18985 "recommended that you use this option to indicate that you need write access, "
18986 "and prepare your scripts for the day when this option will be required for "
18987 "write access."
18988 msgstr ""
18989
18990 #. type: textblock
18991 #: ../fish/guestfish.pod:498
18992 msgid ""
18993 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18994 "other libguestfs program apart from guestfish and guestmount."
18995 msgstr ""
18996
18997 #. type: =head1
18998 #: ../fish/guestfish.pod:501
18999 msgid "QUOTING"
19000 msgstr ""
19001
19002 #. type: textblock
19003 #: ../fish/guestfish.pod:503
19004 msgid ""
19005 "You can quote ordinary parameters using either single or double quotes.  For "
19006 "example:"
19007 msgstr ""
19008
19009 #. type: verbatim
19010 #: ../fish/guestfish.pod:506
19011 #, no-wrap
19012 msgid ""
19013 " add \"file with a space.img\"\n"
19014 "\n"
19015 msgstr ""
19016
19017 #. type: verbatim
19018 #: ../fish/guestfish.pod:508
19019 #, no-wrap
19020 msgid ""
19021 " rm '/file name'\n"
19022 "\n"
19023 msgstr ""
19024
19025 #. type: verbatim
19026 #: ../fish/guestfish.pod:510
19027 #, no-wrap
19028 msgid ""
19029 " rm '/\"'\n"
19030 "\n"
19031 msgstr ""
19032
19033 #. type: textblock
19034 #: ../fish/guestfish.pod:512
19035 msgid ""
19036 "A few commands require a list of strings to be passed.  For these, use a "
19037 "whitespace-separated list, enclosed in quotes.  Strings containing "
19038 "whitespace to be passed through must be enclosed in single quotes.  A "
19039 "literal single quote must be escaped with a backslash."
19040 msgstr ""
19041
19042 #. type: verbatim
19043 #: ../fish/guestfish.pod:517
19044 #, no-wrap
19045 msgid ""
19046 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19047 " command \"/bin/echo 'foo      bar'\"\n"
19048 " command \"/bin/echo \\'foo\\'\"\n"
19049 "\n"
19050 msgstr ""
19051
19052 #. type: =head2
19053 #: ../fish/guestfish.pod:521
19054 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish.pod:523
19059 msgid ""
19060 "In double-quoted arguments (only) use backslash to insert special characters:"
19061 msgstr ""
19062
19063 #. type: =item
19064 #: ../fish/guestfish.pod:528
19065 msgid "C<\\a>"
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:530
19070 msgid "Alert (bell) character."
19071 msgstr ""
19072
19073 #. type: =item
19074 #: ../fish/guestfish.pod:532
19075 msgid "C<\\b>"
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fish/guestfish.pod:534
19080 msgid "Backspace character."
19081 msgstr ""
19082
19083 #. type: =item
19084 #: ../fish/guestfish.pod:536
19085 msgid "C<\\f>"
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:538
19090 msgid "Form feed character."
19091 msgstr ""
19092
19093 #. type: =item
19094 #: ../fish/guestfish.pod:540
19095 msgid "C<\\n>"
19096 msgstr ""
19097
19098 #. type: textblock
19099 #: ../fish/guestfish.pod:542
19100 msgid "Newline character."
19101 msgstr ""
19102
19103 #. type: =item
19104 #: ../fish/guestfish.pod:544
19105 msgid "C<\\r>"
19106 msgstr ""
19107
19108 #. type: textblock
19109 #: ../fish/guestfish.pod:546
19110 msgid "Carriage return character."
19111 msgstr ""
19112
19113 #. type: =item
19114 #: ../fish/guestfish.pod:548
19115 msgid "C<\\t>"
19116 msgstr ""
19117
19118 #. type: textblock
19119 #: ../fish/guestfish.pod:550
19120 msgid "Horizontal tab character."
19121 msgstr ""
19122
19123 #. type: =item
19124 #: ../fish/guestfish.pod:552
19125 msgid "C<\\v>"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:554
19130 msgid "Vertical tab character."
19131 msgstr ""
19132
19133 #. type: =item
19134 #: ../fish/guestfish.pod:556
19135 msgid "C<\\\">"
19136 msgstr ""
19137
19138 #. type: textblock
19139 #: ../fish/guestfish.pod:558
19140 msgid "A literal double quote character."
19141 msgstr ""
19142
19143 #. type: =item
19144 #: ../fish/guestfish.pod:560
19145 msgid "C<\\ooo>"
19146 msgstr ""
19147
19148 #. type: textblock
19149 #: ../fish/guestfish.pod:562
19150 msgid ""
19151 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19152 "(unlike C)."
19153 msgstr ""
19154
19155 #. type: =item
19156 #: ../fish/guestfish.pod:565
19157 msgid "C<\\xhh>"
19158 msgstr ""
19159
19160 #. type: textblock
19161 #: ../fish/guestfish.pod:567
19162 msgid ""
19163 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19164 msgstr ""
19165
19166 #. type: textblock
19167 #: ../fish/guestfish.pod:570
19168 msgid ""
19169 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19170 "strings."
19171 msgstr ""
19172
19173 #. type: =item
19174 #: ../fish/guestfish.pod:573
19175 msgid "C<\\\\>"
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fish/guestfish.pod:575
19180 msgid "A literal backslash character."
19181 msgstr ""
19182
19183 #. type: =head1
19184 #: ../fish/guestfish.pod:579
19185 msgid "OPTIONAL ARGUMENTS"
19186 msgstr ""
19187
19188 #. type: textblock
19189 #: ../fish/guestfish.pod:581
19190 msgid ""
19191 "Some commands take optional arguments.  These arguments appear in this "
19192 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19193 msgstr ""
19194
19195 #. type: verbatim
19196 #: ../fish/guestfish.pod:585
19197 #, no-wrap
19198 msgid ""
19199 " add-drive-opts filename\n"
19200 "\n"
19201 msgstr ""
19202
19203 #. type: verbatim
19204 #: ../fish/guestfish.pod:587
19205 #, no-wrap
19206 msgid ""
19207 " add-drive-opts filename readonly:true\n"
19208 "\n"
19209 msgstr ""
19210
19211 #. type: verbatim
19212 #: ../fish/guestfish.pod:589
19213 #, no-wrap
19214 msgid ""
19215 " add-drive-opts filename format:qcow2 readonly:false\n"
19216 "\n"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fish/guestfish.pod:591
19221 msgid ""
19222 "Each optional argument can appear at most once.  All optional arguments must "
19223 "appear after the required ones."
19224 msgstr ""
19225
19226 #. type: =head1
19227 #: ../fish/guestfish.pod:594
19228 msgid "NUMBERS"
19229 msgstr ""
19230
19231 #. type: textblock
19232 #: ../fish/guestfish.pod:596
19233 msgid ""
19234 "This section applies to all commands which can take integers as parameters."
19235 msgstr ""
19236
19237 #. type: =head2
19238 #: ../fish/guestfish.pod:599
19239 msgid "SIZE SUFFIX"
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:601
19244 msgid ""
19245 "When the command takes a parameter measured in bytes, you can use one of the "
19246 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19247 msgstr ""
19248
19249 #. type: =item
19250 #: ../fish/guestfish.pod:607
19251 msgid "B<k> or B<K> or B<KiB>"
19252 msgstr ""
19253
19254 #. type: textblock
19255 #: ../fish/guestfish.pod:609
19256 msgid "The size in kilobytes (multiplied by 1024)."
19257 msgstr ""
19258
19259 #. type: =item
19260 #: ../fish/guestfish.pod:611
19261 msgid "B<KB>"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:613
19266 msgid "The size in SI 1000 byte units."
19267 msgstr ""
19268
19269 #. type: =item
19270 #: ../fish/guestfish.pod:615
19271 msgid "B<M> or B<MiB>"
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:617
19276 msgid "The size in megabytes (multiplied by 1048576)."
19277 msgstr ""
19278
19279 #. type: =item
19280 #: ../fish/guestfish.pod:619
19281 msgid "B<MB>"
19282 msgstr ""
19283
19284 #. type: textblock
19285 #: ../fish/guestfish.pod:621
19286 msgid "The size in SI 1000000 byte units."
19287 msgstr ""
19288
19289 #. type: =item
19290 #: ../fish/guestfish.pod:623
19291 msgid "B<G> or B<GiB>"
19292 msgstr ""
19293
19294 #. type: textblock
19295 #: ../fish/guestfish.pod:625
19296 msgid "The size in gigabytes (multiplied by 2**30)."
19297 msgstr ""
19298
19299 #. type: =item
19300 #: ../fish/guestfish.pod:627
19301 msgid "B<GB>"
19302 msgstr ""
19303
19304 #. type: textblock
19305 #: ../fish/guestfish.pod:629
19306 msgid "The size in SI 10**9 byte units."
19307 msgstr ""
19308
19309 #. type: =item
19310 #: ../fish/guestfish.pod:631
19311 msgid "B<T> or B<TiB>"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fish/guestfish.pod:633
19316 msgid "The size in terabytes (multiplied by 2**40)."
19317 msgstr ""
19318
19319 #. type: =item
19320 #: ../fish/guestfish.pod:635
19321 msgid "B<TB>"
19322 msgstr ""
19323
19324 #. type: textblock
19325 #: ../fish/guestfish.pod:637
19326 msgid "The size in SI 10**12 byte units."
19327 msgstr ""
19328
19329 #. type: =item
19330 #: ../fish/guestfish.pod:639
19331 msgid "B<P> or B<PiB>"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fish/guestfish.pod:641
19336 msgid "The size in petabytes (multiplied by 2**50)."
19337 msgstr ""
19338
19339 #. type: =item
19340 #: ../fish/guestfish.pod:643
19341 msgid "B<PB>"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:645
19346 msgid "The size in SI 10**15 byte units."
19347 msgstr ""
19348
19349 #. type: =item
19350 #: ../fish/guestfish.pod:647
19351 msgid "B<E> or B<EiB>"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:649
19356 msgid "The size in exabytes (multiplied by 2**60)."
19357 msgstr ""
19358
19359 #. type: =item
19360 #: ../fish/guestfish.pod:651
19361 msgid "B<EB>"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fish/guestfish.pod:653
19366 msgid "The size in SI 10**18 byte units."
19367 msgstr ""
19368
19369 #. type: =item
19370 #: ../fish/guestfish.pod:655
19371 msgid "B<Z> or B<ZiB>"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:657
19376 msgid "The size in zettabytes (multiplied by 2**70)."
19377 msgstr ""
19378
19379 #. type: =item
19380 #: ../fish/guestfish.pod:659
19381 msgid "B<ZB>"
19382 msgstr ""
19383
19384 #. type: textblock
19385 #: ../fish/guestfish.pod:661
19386 msgid "The size in SI 10**21 byte units."
19387 msgstr ""
19388
19389 #. type: =item
19390 #: ../fish/guestfish.pod:663
19391 msgid "B<Y> or B<YiB>"
19392 msgstr ""
19393
19394 #. type: textblock
19395 #: ../fish/guestfish.pod:665
19396 msgid "The size in yottabytes (multiplied by 2**80)."
19397 msgstr ""
19398
19399 #. type: =item
19400 #: ../fish/guestfish.pod:667
19401 msgid "B<YB>"
19402 msgstr ""
19403
19404 #. type: textblock
19405 #: ../fish/guestfish.pod:669
19406 msgid "The size in SI 10**24 byte units."
19407 msgstr ""
19408
19409 #. type: verbatim
19410 #: ../fish/guestfish.pod:675
19411 #, no-wrap
19412 msgid ""
19413 " truncate-size /file 1G\n"
19414 "\n"
19415 msgstr ""
19416
19417 #. type: textblock
19418 #: ../fish/guestfish.pod:677
19419 msgid "would truncate the file to 1 gigabyte."
19420 msgstr ""
19421
19422 #. type: textblock
19423 #: ../fish/guestfish.pod:679
19424 msgid ""
19425 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19426 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19427 "suffix will probably not do what you expect."
19428 msgstr ""
19429
19430 #. type: =head2
19431 #: ../fish/guestfish.pod:683
19432 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19433 msgstr ""
19434
19435 #. type: textblock
19436 #: ../fish/guestfish.pod:685
19437 msgid ""
19438 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19439 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19440 msgstr ""
19441
19442 #. type: verbatim
19443 #: ../fish/guestfish.pod:688
19444 #, no-wrap
19445 msgid ""
19446 " 1234      decimal number 1234\n"
19447 " 02322     octal number, equivalent to decimal 1234\n"
19448 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19449 "\n"
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:692
19454 msgid ""
19455 "When using the C<chmod> command, you almost always want to specify an octal "
19456 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19457 "L<chmod(1)> program):"
19458 msgstr ""
19459
19460 #. type: verbatim
19461 #: ../fish/guestfish.pod:696
19462 #, no-wrap
19463 msgid ""
19464 " chmod 0777 /public  # OK\n"
19465 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19466 "\n"
19467 msgstr ""
19468
19469 #. type: textblock
19470 #: ../fish/guestfish.pod:699
19471 msgid ""
19472 "Commands that return numbers usually print them in decimal, but some "
19473 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19474 "octal, preceeded by C<0>)."
19475 msgstr ""
19476
19477 #. type: =head1
19478 #: ../fish/guestfish.pod:703
19479 msgid "WILDCARDS AND GLOBBING"
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:705
19484 msgid ""
19485 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19486 "(globbing) by default.  So for example the following will not do what you "
19487 "expect:"
19488 msgstr ""
19489
19490 #. type: verbatim
19491 #: ../fish/guestfish.pod:709
19492 #, no-wrap
19493 msgid ""
19494 " rm-rf /home/*\n"
19495 "\n"
19496 msgstr ""
19497
19498 #. type: textblock
19499 #: ../fish/guestfish.pod:711
19500 msgid ""
19501 "Assuming you don't have a directory called literally C</home/*> then the "
19502 "above command will return an error."
19503 msgstr ""
19504
19505 #. type: textblock
19506 #: ../fish/guestfish.pod:714
19507 msgid "To perform wildcard expansion, use the C<glob> command."
19508 msgstr ""
19509
19510 #. type: verbatim
19511 #: ../fish/guestfish.pod:716
19512 #, no-wrap
19513 msgid ""
19514 " glob rm-rf /home/*\n"
19515 "\n"
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish.pod:718
19520 msgid ""
19521 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19522 "many times), equivalent to:"
19523 msgstr ""
19524
19525 #. type: verbatim
19526 #: ../fish/guestfish.pod:721
19527 #, no-wrap
19528 msgid ""
19529 " rm-rf /home/jim\n"
19530 " rm-rf /home/joe\n"
19531 " rm-rf /home/mary\n"
19532 "\n"
19533 msgstr ""
19534
19535 #. type: textblock
19536 #: ../fish/guestfish.pod:725
19537 msgid "C<glob> only works on simple guest paths and not on device names."
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:727
19542 msgid ""
19543 "If you have several parameters, each containing a wildcard, then glob will "
19544 "perform a Cartesian product."
19545 msgstr ""
19546
19547 #. type: =head1
19548 #: ../fish/guestfish.pod:730
19549 msgid "COMMENTS"
19550 msgstr ""
19551
19552 #. type: textblock
19553 #: ../fish/guestfish.pod:732
19554 msgid ""
19555 "Any line which starts with a I<#> character is treated as a comment and "
19556 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19557 "a command.  For example:"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../fish/guestfish.pod:736
19562 #, no-wrap
19563 msgid ""
19564 " # this is a comment\n"
19565 "         # this is a comment\n"
19566 " foo # NOT a comment\n"
19567 "\n"
19568 msgstr ""
19569
19570 #. type: textblock
19571 #: ../fish/guestfish.pod:740
19572 msgid "Blank lines are also ignored."
19573 msgstr ""
19574
19575 #. type: =head1
19576 #: ../fish/guestfish.pod:742
19577 msgid "RUNNING COMMANDS LOCALLY"
19578 msgstr ""
19579
19580 #. type: textblock
19581 #: ../fish/guestfish.pod:744
19582 msgid ""
19583 "Any line which starts with a I<!> character is treated as a command sent to "
19584 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19585 msgstr ""
19586
19587 #. type: verbatim
19588 #: ../fish/guestfish.pod:748
19589 #, no-wrap
19590 msgid ""
19591 " !mkdir local\n"
19592 " tgz-out /remote local/remote-data.tar.gz\n"
19593 "\n"
19594 msgstr ""
19595
19596 #. type: textblock
19597 #: ../fish/guestfish.pod:751
19598 msgid ""
19599 "will create a directory C<local> on the host, and then export the contents "
19600 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19601 "(See C<tgz-out>)."
19602 msgstr ""
19603
19604 #. type: textblock
19605 #: ../fish/guestfish.pod:755
19606 msgid ""
19607 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19608 "effect, due to the way that subprocesses work in Unix."
19609 msgstr ""
19610
19611 #. type: =head2
19612 #: ../fish/guestfish.pod:758
19613 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../fish/guestfish.pod:760
19618 msgid ""
19619 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19620 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19621 "and executed as guestfish commands."
19622 msgstr ""
19623
19624 #. type: textblock
19625 #: ../fish/guestfish.pod:764
19626 msgid ""
19627 "Thus you can use shell script to construct arbitrary guestfish commands "
19628 "which are then parsed by guestfish."
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/guestfish.pod:767
19633 msgid ""
19634 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19635 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19636 "if we use a shell script to create the guestfish commands for us:"
19637 msgstr ""
19638
19639 #. type: verbatim
19640 #: ../fish/guestfish.pod:772
19641 #, no-wrap
19642 msgid ""
19643 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:774
19649 msgid "or with names like C</foo.001>:"
19650 msgstr ""
19651
19652 #. type: verbatim
19653 #: ../fish/guestfish.pod:776
19654 #, no-wrap
19655 msgid ""
19656 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19657 "\n"
19658 msgstr ""
19659
19660 #. type: textblock
19661 #: ../fish/guestfish.pod:778
19662 msgid ""
19663 "When using guestfish interactively it can be helpful to just run the shell "
19664 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19665 "ordinary I<!> local command), see what guestfish commands it would run, and "
19666 "when you are happy with those prepend the C<E<lt>> character to run the "
19667 "guestfish commands for real."
19668 msgstr ""
19669
19670 #. type: =head1
19671 #: ../fish/guestfish.pod:784
19672 msgid "PIPES"
19673 msgstr ""
19674
19675 #. type: textblock
19676 #: ../fish/guestfish.pod:786
19677 msgid ""
19678 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19679 "command (a guestfish command) to the second command (any host command).  For "
19680 "example:"
19681 msgstr ""
19682
19683 #. type: verbatim
19684 #: ../fish/guestfish.pod:790
19685 #, no-wrap
19686 msgid ""
19687 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19688 "\n"
19689 msgstr ""
19690
19691 #. type: textblock
19692 #: ../fish/guestfish.pod:792
19693 msgid ""
19694 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19695 "program).  The above command would list all accounts in the guest filesystem "
19696 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19697 msgstr ""
19698
19699 #. type: verbatim
19700 #: ../fish/guestfish.pod:797
19701 #, no-wrap
19702 msgid ""
19703 " hexdump /bin/ls | head\n"
19704 " list-devices | tail -1\n"
19705 " tgz-out / - | tar ztf -\n"
19706 "\n"
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:801
19711 msgid ""
19712 "The space before the pipe symbol is required, any space after the pipe "
19713 "symbol is optional.  Everything after the pipe symbol is just passed "
19714 "straight to the host shell, so it can contain redirections, globs and "
19715 "anything else that makes sense on the host side."
19716 msgstr ""
19717
19718 #. type: textblock
19719 #: ../fish/guestfish.pod:806
19720 msgid ""
19721 "To use a literal argument which begins with a pipe symbol, you have to quote "
19722 "it, eg:"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../fish/guestfish.pod:809
19727 #, no-wrap
19728 msgid ""
19729 " echo \"|\"\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: =head1
19734 #: ../fish/guestfish.pod:811
19735 msgid "HOME DIRECTORIES"
19736 msgstr ""
19737
19738 #. type: textblock
19739 #: ../fish/guestfish.pod:813
19740 msgid ""
19741 "If a parameter starts with the character C<~> then the tilde may be expanded "
19742 "as a home directory path (either C<~> for the current user's home directory, "
19743 "or C<~user> for another user)."
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../fish/guestfish.pod:817
19748 msgid ""
19749 "Note that home directory expansion happens for users known I<on the host>, "
19750 "not in the guest filesystem."
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../fish/guestfish.pod:820
19755 msgid ""
19756 "To use a literal argument which begins with a tilde, you have to quote it, "
19757 "eg:"
19758 msgstr ""
19759
19760 #. type: verbatim
19761 #: ../fish/guestfish.pod:823
19762 #, no-wrap
19763 msgid ""
19764 " echo \"~\"\n"
19765 "\n"
19766 msgstr ""
19767
19768 #. type: =head2
19769 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19770 msgid "ENCRYPTED DISKS"
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:827
19775 msgid ""
19776 "Libguestfs has some support for Linux guests encrypted according to the "
19777 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19778 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19779 "LUKS is supported."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fish/guestfish.pod:832
19784 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19785 msgstr ""
19786
19787 #. type: verbatim
19788 #: ../fish/guestfish.pod:834
19789 #, no-wrap
19790 msgid ""
19791 " ><fs> vfs-type /dev/sda2\n"
19792 " crypto_LUKS\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:837
19798 msgid ""
19799 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19800 "device called C</dev/mapper/luksdev>."
19801 msgstr ""
19802
19803 #. type: verbatim
19804 #: ../fish/guestfish.pod:840
19805 #, no-wrap
19806 msgid ""
19807 " ><fs> luks-open /dev/sda2 luksdev\n"
19808 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19809 "\n"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fish/guestfish.pod:843
19814 msgid ""
19815 "Finally you have to tell LVM to scan for volume groups on the newly created "
19816 "mapper device:"
19817 msgstr ""
19818
19819 #. type: verbatim
19820 #: ../fish/guestfish.pod:846
19821 #, no-wrap
19822 msgid ""
19823 " vgscan\n"
19824 " vg-activate-all true\n"
19825 "\n"
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:849
19830 msgid "The logical volume(s) can now be mounted in the usual way."
19831 msgstr ""
19832
19833 #. type: textblock
19834 #: ../fish/guestfish.pod:851
19835 msgid ""
19836 "Before closing a LUKS device you must unmount any logical volumes on it and "
19837 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19838 "one.  Then you can close the mapper device:"
19839 msgstr ""
19840
19841 #. type: verbatim
19842 #: ../fish/guestfish.pod:855
19843 #, no-wrap
19844 msgid ""
19845 " vg-activate false /dev/VG\n"
19846 " luks-close /dev/mapper/luksdev\n"
19847 "\n"
19848 msgstr ""
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:860
19852 msgid ""
19853 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19854 "letters and paths (with some limitations).  The following commands are "
19855 "equivalent:"
19856 msgstr ""
19857
19858 #. type: verbatim
19859 #: ../fish/guestfish.pod:864
19860 #, no-wrap
19861 msgid ""
19862 " file /WINDOWS/system32/config/system.LOG\n"
19863 "\n"
19864 msgstr ""
19865
19866 #. type: verbatim
19867 #: ../fish/guestfish.pod:866
19868 #, no-wrap
19869 msgid ""
19870 " file win:\\windows\\system32\\config\\system.log\n"
19871 "\n"
19872 msgstr ""
19873
19874 #. type: verbatim
19875 #: ../fish/guestfish.pod:868
19876 #, no-wrap
19877 msgid ""
19878 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:870
19884 msgid ""
19885 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19886 "where the drive is mounted, prepending that to the path, changing all "
19887 "backslash characters to forward slash, then resolving the result using L</"
19888 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19889 "the parameter might be rewritten like this:"
19890 msgstr ""
19891
19892 #. type: verbatim
19893 #: ../fish/guestfish.pod:876
19894 #, no-wrap
19895 msgid ""
19896 " win:e:\\foo\\bar => /e/FOO/bar\n"
19897 "\n"
19898 msgstr ""
19899
19900 #. type: textblock
19901 #: ../fish/guestfish.pod:878
19902 msgid "This only works in argument positions that expect a path."
19903 msgstr ""
19904
19905 #. type: =head1
19906 #: ../fish/guestfish.pod:880
19907 msgid "UPLOADING AND DOWNLOADING FILES"
19908 msgstr ""
19909
19910 #. type: textblock
19911 #: ../fish/guestfish.pod:882
19912 msgid ""
19913 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19914 "others which upload from or download to a local file, you can use the "
19915 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19916 msgstr ""
19917
19918 #. type: verbatim
19919 #: ../fish/guestfish.pod:886
19920 #, no-wrap
19921 msgid ""
19922 " upload - /foo\n"
19923 "\n"
19924 msgstr ""
19925
19926 #. type: textblock
19927 #: ../fish/guestfish.pod:888
19928 msgid ""
19929 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19930 msgstr ""
19931
19932 #. type: verbatim
19933 #: ../fish/guestfish.pod:891
19934 #, no-wrap
19935 msgid ""
19936 " tar-out /etc - | tar tf -\n"
19937 "\n"
19938 msgstr ""
19939
19940 #. type: textblock
19941 #: ../fish/guestfish.pod:893
19942 msgid ""
19943 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19944 "command (see L</PIPES>)."
19945 msgstr ""
19946
19947 #. type: textblock
19948 #: ../fish/guestfish.pod:896
19949 msgid ""
19950 "When using C<-> to read from stdin, the input is read up to the end of "
19951 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19952 "some arbitrary end marker:"
19953 msgstr ""
19954
19955 #. type: verbatim
19956 #: ../fish/guestfish.pod:900
19957 #, no-wrap
19958 msgid ""
19959 " upload -<<END /foo\n"
19960 " input line 1\n"
19961 " input line 2\n"
19962 " input line 3\n"
19963 " END\n"
19964 "\n"
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fish/guestfish.pod:906
19969 msgid ""
19970 "Any string of characters can be used instead of C<END>.  The end marker must "
19971 "appear on a line of its own, without any preceeding or following characters "
19972 "(not even spaces)."
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../fish/guestfish.pod:910
19977 msgid ""
19978 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19979 "upload local files (so-called \"FileIn\" parameters in the generator)."
19980 msgstr ""
19981
19982 #. type: =head1
19983 #: ../fish/guestfish.pod:913
19984 msgid "EXIT ON ERROR BEHAVIOUR"
19985 msgstr ""
19986
19987 #. type: textblock
19988 #: ../fish/guestfish.pod:915
19989 msgid ""
19990 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19991 "taking commands from a human over a tty), and will exit on the first error "
19992 "in non-interactive mode (scripts, commands given on the command line)."
19993 msgstr ""
19994
19995 #. type: textblock
19996 #: ../fish/guestfish.pod:920
19997 msgid ""
19998 "If you prefix a command with a I<-> character, then that command will not "
19999 "cause guestfish to exit, even if that (one) command returns an error."
20000 msgstr ""
20001
20002 #. type: =head1
20003 #: ../fish/guestfish.pod:924
20004 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20005 msgstr ""
20006
20007 #. type: textblock
20008 #: ../fish/guestfish.pod:926
20009 msgid ""
20010 "Guestfish can be remote-controlled over a socket.  This is useful "
20011 "particularly in shell scripts where you want to make several different "
20012 "changes to a filesystem, but you don't want the overhead of starting up a "
20013 "guestfish process each time."
20014 msgstr ""
20015
20016 #. type: textblock
20017 #: ../fish/guestfish.pod:931
20018 msgid "Start a guestfish server process using:"
20019 msgstr ""
20020
20021 #. type: verbatim
20022 #: ../fish/guestfish.pod:933
20023 #, no-wrap
20024 msgid ""
20025 " eval \"`guestfish --listen`\"\n"
20026 "\n"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:935
20031 msgid "and then send it commands by doing:"
20032 msgstr ""
20033
20034 #. type: verbatim
20035 #: ../fish/guestfish.pod:937
20036 #, no-wrap
20037 msgid ""
20038 " guestfish --remote cmd [...]\n"
20039 "\n"
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/guestfish.pod:939
20044 msgid "To cause the server to exit, send it the exit command:"
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fish/guestfish.pod:943
20049 msgid ""
20050 "Note that the server will normally exit if there is an error in a command.  "
20051 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20052 "BEHAVIOUR>."
20053 msgstr ""
20054
20055 #. type: =head2
20056 #: ../fish/guestfish.pod:947
20057 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20058 msgstr ""
20059
20060 #. type: textblock
20061 #: ../fish/guestfish.pod:949
20062 msgid ""
20063 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20064 "is how the I<--remote> option knows where to send the commands.  You can "
20065 "have several guestfish listener processes running using:"
20066 msgstr ""
20067
20068 #. type: verbatim
20069 #: ../fish/guestfish.pod:953
20070 #, no-wrap
20071 msgid ""
20072 " eval \"`guestfish --listen`\"\n"
20073 " pid1=$GUESTFISH_PID\n"
20074 " eval \"`guestfish --listen`\"\n"
20075 " pid2=$GUESTFISH_PID\n"
20076 " ...\n"
20077 " guestfish --remote=$pid1 cmd\n"
20078 " guestfish --remote=$pid2 cmd\n"
20079 "\n"
20080 msgstr ""
20081
20082 #. type: =head2
20083 #: ../fish/guestfish.pod:961
20084 msgid "REMOTE CONTROL AND CSH"
20085 msgstr ""
20086
20087 #. type: textblock
20088 #: ../fish/guestfish.pod:963
20089 msgid ""
20090 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20091 "option:"
20092 msgstr ""
20093
20094 #. type: verbatim
20095 #: ../fish/guestfish.pod:966
20096 #, no-wrap
20097 msgid ""
20098 " eval \"`guestfish --listen --csh`\"\n"
20099 "\n"
20100 msgstr ""
20101
20102 #. type: =head2
20103 #: ../fish/guestfish.pod:968
20104 msgid "REMOTE CONTROL DETAILS"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/guestfish.pod:970
20109 msgid ""
20110 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20111 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20112 "and C<$PID> is the process ID of the server."
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:974
20117 msgid "Guestfish client and server versions must match exactly."
20118 msgstr ""
20119
20120 #. type: =head2
20121 #: ../fish/guestfish.pod:976
20122 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20123 msgstr ""
20124
20125 #. type: textblock
20126 #: ../fish/guestfish.pod:978
20127 msgid ""
20128 "From Bash, you can use the following code which creates a guestfish "
20129 "instance, correctly quotes the command line, handles failure to start, and "
20130 "cleans up guestfish when the script exits:"
20131 msgstr ""
20132
20133 #. type: verbatim
20134 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20135 #, no-wrap
20136 msgid ""
20137 " #!/bin/bash -\n"
20138 " \n"
20139 msgstr ""
20140
20141 #. type: verbatim
20142 #: ../fish/guestfish.pod:986
20143 #, no-wrap
20144 msgid ""
20145 " guestfish[0]=\"guestfish\"\n"
20146 " guestfish[1]=\"--listen\"\n"
20147 " guestfish[2]=\"--ro\"\n"
20148 " guestfish[3]=\"-a\"\n"
20149 " guestfish[4]=\"disk.img\"\n"
20150 " \n"
20151 msgstr ""
20152
20153 #. type: verbatim
20154 #: ../fish/guestfish.pod:992
20155 #, no-wrap
20156 msgid ""
20157 " GUESTFISH_PID=\n"
20158 " eval $(\"${guestfish[@]}\")\n"
20159 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20160 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20161 "     exit 1\n"
20162 " fi\n"
20163 " \n"
20164 msgstr ""
20165
20166 #. type: verbatim
20167 #: ../fish/guestfish.pod:999
20168 #, no-wrap
20169 msgid ""
20170 " cleanup_guestfish ()\n"
20171 " {\n"
20172 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20173 " }\n"
20174 " trap cleanup_guestfish EXIT ERR\n"
20175 " \n"
20176 msgstr ""
20177
20178 #. type: verbatim
20179 #: ../fish/guestfish.pod:1005
20180 #, no-wrap
20181 msgid ""
20182 " guestfish --remote -- run\n"
20183 " \n"
20184 msgstr ""
20185
20186 #. type: verbatim
20187 #: ../fish/guestfish.pod:1007
20188 #, no-wrap
20189 msgid ""
20190 " # ...\n"
20191 "\n"
20192 msgstr ""
20193
20194 #. type: =head2
20195 #: ../fish/guestfish.pod:1009
20196 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20197 msgstr ""
20198
20199 #. type: textblock
20200 #: ../fish/guestfish.pod:1011
20201 msgid ""
20202 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20203 "context hangs, ie. don't do (note the backquotes):"
20204 msgstr ""
20205
20206 #. type: verbatim
20207 #: ../fish/guestfish.pod:1014
20208 #, no-wrap
20209 msgid ""
20210 " a=`guestfish --remote run`\n"
20211 "\n"
20212 msgstr ""
20213
20214 #. type: textblock
20215 #: ../fish/guestfish.pod:1016
20216 msgid ""
20217 "Since the C<run> command produces no output on stdout, this is not useful "
20218 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20219 "cgi?id=592910>."
20220 msgstr ""
20221
20222 #. type: =head1
20223 #: ../fish/guestfish.pod:1020
20224 msgid "PREPARED DISK IMAGES"
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:1022
20229 msgid ""
20230 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20231 "preformatted disk images that guestfish can make for you to save typing.  "
20232 "This is particularly useful for testing purposes.  This option is used "
20233 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20234 "can be mixed with I<-a>)."
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:1028
20239 msgid ""
20240 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20241 "the second and so on.  Existing files in the current directory are "
20242 "I<overwritten>."
20243 msgstr ""
20244
20245 #. type: textblock
20246 #: ../fish/guestfish.pod:1032
20247 msgid ""
20248 "The type briefly describes how the disk should be sized, partitioned, how "
20249 "filesystem(s) should be created, and how content should be added.  "
20250 "Optionally the type can be followed by extra parameters, separated by C<:> "
20251 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20252 "allocated disk, containing a single partition, with the partition formatted "
20253 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20254 "disk instead."
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:1040
20259 msgid "To list the available types and any extra parameters they take, run:"
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/guestfish.pod:1044
20264 msgid ""
20265 "Note that the prepared filesystem is not mounted.  You would usually have to "
20266 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fish/guestfish.pod:1048
20271 msgid ""
20272 "If any I<-N> or I<--new> options are given, the guest is automatically "
20273 "launched."
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../fish/guestfish.pod:1053
20278 msgid "Create a 100MB disk with an ext4-formatted partition:"
20279 msgstr ""
20280
20281 #. type: verbatim
20282 #: ../fish/guestfish.pod:1055
20283 #, no-wrap
20284 msgid ""
20285 " guestfish -N fs:ext4\n"
20286 "\n"
20287 msgstr ""
20288
20289 #. type: textblock
20290 #: ../fish/guestfish.pod:1057
20291 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20292 msgstr ""
20293
20294 #. type: verbatim
20295 #: ../fish/guestfish.pod:1059
20296 #, no-wrap
20297 msgid ""
20298 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20299 "\n"
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fish/guestfish.pod:1061
20304 msgid "Create a blank 200MB disk:"
20305 msgstr ""
20306
20307 #. type: verbatim
20308 #: ../fish/guestfish.pod:1063
20309 #, no-wrap
20310 msgid ""
20311 " guestfish -N disk:200M\n"
20312 "\n"
20313 msgstr ""
20314
20315 #. type: =head1
20316 #: ../fish/guestfish.pod:1065
20317 msgid "PROGRESS BARS"
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fish/guestfish.pod:1067
20322 msgid ""
20323 "Some (not all) long-running commands send progress notification messages as "
20324 "they are running.  Guestfish turns these messages into progress bars."
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:1071
20329 msgid ""
20330 "When a command that supports progress bars takes longer than two seconds to "
20331 "run, and if progress bars are enabled, then you will see one appearing below "
20332 "the command:"
20333 msgstr ""
20334
20335 #. type: verbatim
20336 #: ../fish/guestfish.pod:1075
20337 #, no-wrap
20338 msgid ""
20339 " ><fs> copy-size /large-file /another-file 2048M\n"
20340 " / 10% [#####-----------------------------------------] 00:30\n"
20341 "\n"
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../fish/guestfish.pod:1078
20346 msgid ""
20347 "The spinner on the left hand side moves round once for every progress "
20348 "notification received from the backend.  This is a (reasonably) golden "
20349 "assurance that the command is \"doing something\" even if the progress bar "
20350 "is not moving, because the command is able to send the progress "
20351 "notifications.  When the bar reaches 100% and the command finishes, the "
20352 "spinner disappears."
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:1085
20357 msgid ""
20358 "Progress bars are enabled by default when guestfish is used interactively.  "
20359 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20360 "and you can disable them completely using I<--no-progress-bars>."
20361 msgstr ""
20362
20363 #. type: =head1
20364 #: ../fish/guestfish.pod:1090
20365 msgid "GUESTFISH COMMANDS"
20366 msgstr ""
20367
20368 #. type: textblock
20369 #: ../fish/guestfish.pod:1092
20370 msgid ""
20371 "The commands in this section are guestfish convenience commands, in other "
20372 "words, they are not part of the L<guestfs(3)> API."
20373 msgstr ""
20374
20375 #. type: =head2
20376 #: ../fish/guestfish.pod:1095
20377 msgid "help"
20378 msgstr ""
20379
20380 #. type: verbatim
20381 #: ../fish/guestfish.pod:1097
20382 #, no-wrap
20383 msgid ""
20384 " help\n"
20385 " help cmd\n"
20386 "\n"
20387 msgstr ""
20388
20389 #. type: textblock
20390 #: ../fish/guestfish.pod:1100
20391 msgid "Without any parameter, this provides general help."
20392 msgstr ""
20393
20394 #. type: textblock
20395 #: ../fish/guestfish.pod:1102
20396 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20397 msgstr ""
20398
20399 #. type: =head2
20400 #: ../fish/guestfish.pod:1104
20401 msgid "quit | exit"
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../fish/guestfish.pod:1106
20406 msgid "This exits guestfish.  You can also use C<^D> key."
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../fish/guestfish.pod:1108
20411 msgid "@FISH_COMMANDS@"
20412 msgstr ""
20413
20414 #. type: =head1
20415 #: ../fish/guestfish.pod:1110
20416 msgid "COMMANDS"
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20421 msgid "@ACTIONS@"
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:1116
20426 msgid ""
20427 "guestfish returns 0 if the commands completed without error, or 1 if there "
20428 "was an error."
20429 msgstr ""
20430
20431 #. type: =item
20432 #: ../fish/guestfish.pod:1123
20433 msgid "EDITOR"
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../fish/guestfish.pod:1125
20438 msgid ""
20439 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20440 "C<vi>."
20441 msgstr ""
20442
20443 #. type: =item
20444 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20445 msgid "FEBOOTSTRAP_KERNEL"
20446 msgstr ""
20447
20448 #. type: =item
20449 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20450 msgid "FEBOOTSTRAP_MODULES"
20451 msgstr ""
20452
20453 #. type: textblock
20454 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20455 msgid ""
20456 "These two environment variables allow the kernel that libguestfs uses in the "
20457 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20458 "most recent host kernel is chosen.  For more information about kernel "
20459 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20460 "available in febootstrap E<ge> 3.8."
20461 msgstr ""
20462
20463 #. type: =item
20464 #: ../fish/guestfish.pod:1138
20465 msgid "GUESTFISH_DISPLAY_IMAGE"
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:1140
20470 msgid ""
20471 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20472 "If not set, it uses L<display(1)>."
20473 msgstr ""
20474
20475 #. type: =item
20476 #: ../fish/guestfish.pod:1143
20477 msgid "GUESTFISH_PID"
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:1145
20482 msgid ""
20483 "Used with the I<--remote> option to specify the remote guestfish process to "
20484 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20485 msgstr ""
20486
20487 #. type: =item
20488 #: ../fish/guestfish.pod:1149
20489 msgid "HEXEDITOR"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fish/guestfish.pod:1151
20494 msgid ""
20495 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20496 "not specified, the external L<hexedit(1)> program is used."
20497 msgstr ""
20498
20499 #. type: =item
20500 #: ../fish/guestfish.pod:1155
20501 msgid "HOME"
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../fish/guestfish.pod:1157
20506 msgid ""
20507 "If compiled with GNU readline support, various files in the home directory "
20508 "can be used.  See L</FILES>."
20509 msgstr ""
20510
20511 #. type: =item
20512 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20513 msgid "LIBGUESTFS_APPEND"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20518 msgid "Pass additional options to the guest kernel."
20519 msgstr ""
20520
20521 #. type: =item
20522 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20523 msgid "LIBGUESTFS_DEBUG"
20524 msgstr ""
20525
20526 #. type: textblock
20527 #: ../fish/guestfish.pod:1166
20528 msgid ""
20529 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20530 "effect as using the B<-v> option."
20531 msgstr ""
20532
20533 #. type: =item
20534 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20535 msgid "LIBGUESTFS_MEMSIZE"
20536 msgstr ""
20537
20538 #. type: textblock
20539 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20540 msgid ""
20541 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20542 msgstr ""
20543
20544 #. type: verbatim
20545 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20546 #, no-wrap
20547 msgid ""
20548 " LIBGUESTFS_MEMSIZE=700\n"
20549 "\n"
20550 msgstr ""
20551
20552 #. type: =item
20553 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20554 msgid "LIBGUESTFS_PATH"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:1178
20559 msgid ""
20560 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20561 "the discussion of paths in L<guestfs(3)>."
20562 msgstr ""
20563
20564 #. type: =item
20565 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20566 msgid "LIBGUESTFS_QEMU"
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20571 msgid ""
20572 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20573 "which was found at compile time by the configure script is used."
20574 msgstr ""
20575
20576 #. type: =item
20577 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20578 msgid "LIBGUESTFS_TRACE"
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fish/guestfish.pod:1189
20583 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20584 msgstr ""
20585
20586 #. type: =item
20587 #: ../fish/guestfish.pod:1191
20588 msgid "PAGER"
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../fish/guestfish.pod:1193
20593 msgid ""
20594 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20595 "C<more>."
20596 msgstr ""
20597
20598 #. type: =item
20599 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20600 #: ../src/guestfs.pod:3257
20601 msgid "TMPDIR"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20606 msgid ""
20607 "Location of temporary directory, defaults to C</tmp> except for the cached "
20608 "supermin appliance which defaults to C</var/tmp>."
20609 msgstr ""
20610
20611 #. type: textblock
20612 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20613 msgid ""
20614 "If libguestfs was compiled to use the supermin appliance then the real "
20615 "appliance is cached in this directory, shared between all handles belonging "
20616 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20617 "use in case C</var/tmp> is not large enough."
20618 msgstr ""
20619
20620 #. type: =head1
20621 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20622 #: ../rescue/virt-rescue.pod:273
20623 msgid "FILES"
20624 msgstr ""
20625
20626 #. type: =item
20627 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20628 #: ../rescue/virt-rescue.pod:277
20629 msgid "$HOME/.libguestfs-tools.rc"
20630 msgstr ""
20631
20632 #. type: =item
20633 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20634 #: ../rescue/virt-rescue.pod:279
20635 msgid "/etc/libguestfs-tools.conf"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20640 #: ../rescue/virt-rescue.pod:281
20641 msgid ""
20642 "This configuration file controls the default read-only or read-write mode "
20643 "(I<--ro> or I<--rw>)."
20644 msgstr ""
20645
20646 #. type: textblock
20647 #: ../fish/guestfish.pod:1220
20648 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20649 msgstr ""
20650
20651 #. type: =item
20652 #: ../fish/guestfish.pod:1222
20653 msgid "$HOME/.guestfish"
20654 msgstr ""
20655
20656 #. type: textblock
20657 #: ../fish/guestfish.pod:1224
20658 msgid ""
20659 "If compiled with GNU readline support, then the command history is saved in "
20660 "this file."
20661 msgstr ""
20662
20663 #. type: =item
20664 #: ../fish/guestfish.pod:1227
20665 msgid "$HOME/.inputrc"
20666 msgstr ""
20667
20668 #. type: =item
20669 #: ../fish/guestfish.pod:1229
20670 msgid "/etc/inputrc"
20671 msgstr ""
20672
20673 #. type: textblock
20674 #: ../fish/guestfish.pod:1231
20675 msgid ""
20676 "If compiled with GNU readline support, then these files can be used to "
20677 "configure readline.  For further information, please see L<readline(3)/"
20678 "INITIALIZATION FILE>."
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../fish/guestfish.pod:1235
20683 msgid "To write rules which only apply to guestfish, use:"
20684 msgstr ""
20685
20686 #. type: verbatim
20687 #: ../fish/guestfish.pod:1237
20688 #, no-wrap
20689 msgid ""
20690 " $if guestfish\n"
20691 " ...\n"
20692 " $endif\n"
20693 "\n"
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../fish/guestfish.pod:1241
20698 msgid ""
20699 "Variables that you can set in inputrc that change the behaviour of guestfish "
20700 "in useful ways include:"
20701 msgstr ""
20702
20703 #. type: =item
20704 #: ../fish/guestfish.pod:1246
20705 msgid "completion-ignore-case (default: on)"
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../fish/guestfish.pod:1248
20710 msgid ""
20711 "By default, guestfish will ignore case when tab-completing paths on the "
20712 "disk.  Use:"
20713 msgstr ""
20714
20715 #. type: verbatim
20716 #: ../fish/guestfish.pod:1251
20717 #, no-wrap
20718 msgid ""
20719 " set completion-ignore-case off\n"
20720 "\n"
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../fish/guestfish.pod:1253
20725 msgid "to make guestfish case sensitive."
20726 msgstr ""
20727
20728 #. type: =item
20729 #: ../fish/guestfish.pod:1257
20730 msgid "test1.img"
20731 msgstr ""
20732
20733 #. type: =item
20734 #: ../fish/guestfish.pod:1259
20735 msgid "test2.img (etc)"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:1261
20740 msgid ""
20741 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20742 "will be created in the file C<test1.img> in the current directory.  The "
20743 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20744 "the same name will be overwritten."
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../fish/guestfish.pod:1270
20749 msgid ""
20750 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20751 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20752 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20753 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20754 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20755 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20756 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
20761 #: ../test-tool/libguestfs-test-tool.pod:112
20762 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../fish/virt-copy-in.pod:5
20767 msgid ""
20768 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20769 msgstr ""
20770
20771 #. type: verbatim
20772 #: ../fish/virt-copy-in.pod:9
20773 #, no-wrap
20774 msgid ""
20775 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20776 "\n"
20777 msgstr ""
20778
20779 #. type: verbatim
20780 #: ../fish/virt-copy-in.pod:11
20781 #, no-wrap
20782 msgid ""
20783 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20784 "\n"
20785 msgstr ""
20786
20787 #. type: textblock
20788 #: ../fish/virt-copy-in.pod:15
20789 msgid ""
20790 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20791 "causing disk corruption.  The virtual machine must be shut down before you "
20792 "use this command."
20793 msgstr ""
20794
20795 #. type: textblock
20796 #: ../fish/virt-copy-in.pod:21
20797 msgid ""
20798 "C<virt-copy-in> copies files and directories from the local disk into a "
20799 "virtual machine disk image or named libvirt domain."
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../fish/virt-copy-in.pod:24
20804 msgid ""
20805 "You can give one of more filenames and directories on the command line.  "
20806 "Directories are copied in recursively.  The final parameter must be the "
20807 "destination directory in the disk image which must be an absolute path "
20808 "starting with a C</> character."
20809 msgstr ""
20810
20811 #. type: verbatim
20812 #: ../fish/virt-copy-in.pod:33
20813 #, no-wrap
20814 msgid ""
20815 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20816 "\n"
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20821 msgid "Upload a home directory to a guest:"
20822 msgstr ""
20823
20824 #. type: verbatim
20825 #: ../fish/virt-copy-in.pod:37
20826 #, no-wrap
20827 msgid ""
20828 " virt-copy-in -d MyGuest skel /home\n"
20829 "\n"
20830 msgstr ""
20831
20832 #. type: =head1
20833 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20834 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20835 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/virt-copy-in.pod:41
20840 msgid ""
20841 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20842 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20843 "are probably better off using guestfish directly."
20844 msgstr ""
20845
20846 #. type: textblock
20847 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20848 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20849 msgid ""
20850 "Since the shell script just passes options straight to guestfish, read "
20851 "L<guestfish(1)> to see the full list of options."
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../fish/virt-copy-in.pod:52
20856 msgid ""
20857 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20858 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20859 msgstr ""
20860
20861 #. type: textblock
20862 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20863 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20864 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../fish/virt-copy-out.pod:5
20869 msgid ""
20870 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20871 "image."
20872 msgstr ""
20873
20874 #. type: verbatim
20875 #: ../fish/virt-copy-out.pod:9
20876 #, no-wrap
20877 msgid ""
20878 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20879 "\n"
20880 msgstr ""
20881
20882 #. type: verbatim
20883 #: ../fish/virt-copy-out.pod:11
20884 #, no-wrap
20885 msgid ""
20886 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20887 "\n"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../fish/virt-copy-out.pod:15
20892 msgid ""
20893 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20894 "image or named libvirt domain."
20895 msgstr ""
20896
20897 #. type: textblock
20898 #: ../fish/virt-copy-out.pod:18
20899 msgid ""
20900 "You can give one of more filenames and directories on the command line.  "
20901 "Directories are copied out recursively."
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../fish/virt-copy-out.pod:23
20906 msgid "Download the home directories from a virtual machine:"
20907 msgstr ""
20908
20909 #. type: verbatim
20910 #: ../fish/virt-copy-out.pod:25
20911 #, no-wrap
20912 msgid ""
20913 " mkdir homes\n"
20914 " virt-copy-out -d MyGuest /home homes\n"
20915 "\n"
20916 msgstr ""
20917
20918 #. type: textblock
20919 #: ../fish/virt-copy-out.pod:30
20920 msgid ""
20921 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20922 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20923 "are probably better off using guestfish directly."
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../fish/virt-copy-out.pod:41
20928 msgid ""
20929 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20930 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20931 msgstr ""
20932
20933 #. type: textblock
20934 #: ../fish/virt-tar-in.pod:5
20935 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20936 msgstr ""
20937
20938 #. type: verbatim
20939 #: ../fish/virt-tar-in.pod:9
20940 #, no-wrap
20941 msgid ""
20942 " virt-tar-in -a disk.img data.tar /destination\n"
20943 "\n"
20944 msgstr ""
20945
20946 #. type: verbatim
20947 #: ../fish/virt-tar-in.pod:11
20948 #, no-wrap
20949 msgid ""
20950 " virt-tar-in -d domain data.tar /destination\n"
20951 "\n"
20952 msgstr ""
20953
20954 #. type: verbatim
20955 #: ../fish/virt-tar-in.pod:13
20956 #, no-wrap
20957 msgid ""
20958 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20959 "\n"
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../fish/virt-tar-in.pod:17
20964 msgid ""
20965 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20966 "causing disk corruption.  The virtual machine must be shut down before you "
20967 "use this command."
20968 msgstr ""
20969
20970 #. type: textblock
20971 #: ../fish/virt-tar-in.pod:23
20972 msgid ""
20973 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20974 "image or named libvirt domain."
20975 msgstr ""
20976
20977 #. type: textblock
20978 #: ../fish/virt-tar-in.pod:26
20979 msgid ""
20980 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20981 "standard input.  The second parameter is the absolute target directory to "
20982 "unpack into."
20983 msgstr ""
20984
20985 #. type: verbatim
20986 #: ../fish/virt-tar-in.pod:34
20987 #, no-wrap
20988 msgid ""
20989 " virt-tar-in -d MyGuest homes.tar /home\n"
20990 "\n"
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../fish/virt-tar-in.pod:38
20995 msgid ""
20996 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20997 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20998 "probably better off using guestfish directly."
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../fish/virt-tar-in.pod:49
21003 msgid ""
21004 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21005 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21006 "org/>."
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../fish/virt-tar-out.pod:5
21011 msgid ""
21012 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21013 msgstr ""
21014
21015 #. type: verbatim
21016 #: ../fish/virt-tar-out.pod:9
21017 #, no-wrap
21018 msgid ""
21019 " virt-tar-out -a disk.img /dir files.tar\n"
21020 "\n"
21021 msgstr ""
21022
21023 #. type: verbatim
21024 #: ../fish/virt-tar-out.pod:11
21025 #, no-wrap
21026 msgid ""
21027 " virt-tar-out -d domain /dir files.tar\n"
21028 "\n"
21029 msgstr ""
21030
21031 #. type: verbatim
21032 #: ../fish/virt-tar-out.pod:13
21033 #, no-wrap
21034 msgid ""
21035 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21036 "\n"
21037 msgstr ""
21038
21039 #. type: textblock
21040 #: ../fish/virt-tar-out.pod:17
21041 msgid ""
21042 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fish/virt-tar-out.pod:20
21047 msgid ""
21048 "The first parameter is the absolute path of the virtual machine directory.  "
21049 "The second parameter is the tar file to write.  Use C<-> to write to "
21050 "standard output."
21051 msgstr ""
21052
21053 #. type: textblock
21054 #: ../fish/virt-tar-out.pod:26
21055 msgid "Download the home directories from a guest:"
21056 msgstr ""
21057
21058 #. type: verbatim
21059 #: ../fish/virt-tar-out.pod:28
21060 #, no-wrap
21061 msgid ""
21062 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21063 "\n"
21064 msgstr ""
21065
21066 #. type: textblock
21067 #: ../fish/virt-tar-out.pod:32
21068 msgid ""
21069 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21070 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21071 "are probably better off using guestfish directly."
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../fish/virt-tar-out.pod:43
21076 msgid ""
21077 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21078 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../fuse/guestmount.pod:5
21083 msgid ""
21084 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21085 msgstr ""
21086
21087 #. type: verbatim
21088 #: ../fuse/guestmount.pod:9
21089 #, no-wrap
21090 msgid ""
21091 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21092 "\n"
21093 msgstr ""
21094
21095 #. type: verbatim
21096 #: ../fuse/guestmount.pod:11
21097 #, no-wrap
21098 msgid ""
21099 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21100 "\n"
21101 msgstr ""
21102
21103 #. type: verbatim
21104 #: ../fuse/guestmount.pod:13
21105 #, no-wrap
21106 msgid ""
21107 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21108 "\n"
21109 msgstr ""
21110
21111 #. type: textblock
21112 #: ../fuse/guestmount.pod:17
21113 msgid ""
21114 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21115 "machines.  If you do this, you risk disk corruption in the VM."
21116 msgstr ""
21117
21118 #. type: textblock
21119 #: ../fuse/guestmount.pod:22
21120 msgid ""
21121 "The guestmount program can be used to mount virtual machine filesystems and "
21122 "other disk images on the host.  It uses libguestfs for access to the guest "
21123 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21124 "a mountable device."
21125 msgstr ""
21126
21127 #. type: textblock
21128 #: ../fuse/guestmount.pod:27
21129 msgid ""
21130 "Along with other options, you have to give at least one device (I<-a> "
21131 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21132 "option) or use the I<-i> inspection option.  How this works is better "
21133 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21134 "below."
21135 msgstr ""
21136
21137 #. type: textblock
21138 #: ../fuse/guestmount.pod:33
21139 msgid ""
21140 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21141 "by you, and the filesystem will not be visible to any other users unless you "
21142 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21143 "the filesystem, use the C<fusermount -u> command."
21144 msgstr ""
21145
21146 #. type: textblock
21147 #: ../fuse/guestmount.pod:41
21148 msgid ""
21149 "For a typical Windows guest which has its main filesystem on the first "
21150 "partition:"
21151 msgstr ""
21152
21153 #. type: verbatim
21154 #: ../fuse/guestmount.pod:44
21155 #, no-wrap
21156 msgid ""
21157 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21158 "\n"
21159 msgstr ""
21160
21161 #. type: textblock
21162 #: ../fuse/guestmount.pod:46
21163 msgid ""
21164 "For a typical Linux guest which has a /boot filesystem on the first "
21165 "partition, and the root filesystem on a logical volume:"
21166 msgstr ""
21167
21168 #. type: verbatim
21169 #: ../fuse/guestmount.pod:49
21170 #, no-wrap
21171 msgid ""
21172 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fuse/guestmount.pod:51
21178 msgid "To get libguestfs to detect guest mountpoints for you:"
21179 msgstr ""
21180
21181 #. type: verbatim
21182 #: ../fuse/guestmount.pod:53
21183 #, no-wrap
21184 msgid ""
21185 " guestmount -a guest.img -i --ro /mnt\n"
21186 "\n"
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fuse/guestmount.pod:55
21191 msgid "For a libvirt guest called \"Guest\" you could do:"
21192 msgstr ""
21193
21194 #. type: verbatim
21195 #: ../fuse/guestmount.pod:57
21196 #, no-wrap
21197 msgid ""
21198 " guestmount -d Guest -i --ro /mnt\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../fuse/guestmount.pod:59
21204 msgid ""
21205 "If you don't know what filesystems are contained in a guest or disk image, "
21206 "use L<virt-filesystems(1)> first:"
21207 msgstr ""
21208
21209 #. type: verbatim
21210 #: ../fuse/guestmount.pod:62
21211 #, no-wrap
21212 msgid ""
21213 " virt-filesystems MyGuest\n"
21214 "\n"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../fuse/guestmount.pod:64
21219 msgid ""
21220 "If you want to trace the libguestfs calls but without excessive debugging "
21221 "information, we recommend:"
21222 msgstr ""
21223
21224 #. type: verbatim
21225 #: ../fuse/guestmount.pod:67
21226 #, no-wrap
21227 msgid ""
21228 " guestmount [...] --trace /mnt\n"
21229 "\n"
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../fuse/guestmount.pod:69
21234 msgid "If you want to debug the program, we recommend:"
21235 msgstr ""
21236
21237 #. type: verbatim
21238 #: ../fuse/guestmount.pod:71
21239 #, no-wrap
21240 msgid ""
21241 " guestmount [...] --trace --verbose /mnt\n"
21242 "\n"
21243 msgstr ""
21244
21245 #. type: =head1
21246 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21247 #: ../resize/virt-resize.pod:621
21248 msgid "NOTES"
21249 msgstr ""
21250
21251 #. type: =head2
21252 #: ../fuse/guestmount.pod:75
21253 msgid "Other users cannot see the filesystem by default"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../fuse/guestmount.pod:77
21258 msgid ""
21259 "If you mount a filesystem as one user (eg. root), then other users will not "
21260 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21261 "option when mounting:"
21262 msgstr ""
21263
21264 #. type: verbatim
21265 #: ../fuse/guestmount.pod:81
21266 #, no-wrap
21267 msgid ""
21268 " sudo guestmount [...] -o allow_other /mnt\n"
21269 "\n"
21270 msgstr ""
21271
21272 #. type: =head2
21273 #: ../fuse/guestmount.pod:83
21274 msgid "Enabling FUSE"
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../fuse/guestmount.pod:85
21279 msgid ""
21280 "On some distros, you may need to add yourself to a special group (eg. "
21281 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21282 "Debian and derivatives."
21283 msgstr ""
21284
21285 #. type: textblock
21286 #: ../fuse/guestmount.pod:89
21287 msgid ""
21288 "On other distros, no special group is required.  It is not necessary on "
21289 "Fedora or Red Hat Enterprise Linux."
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../fuse/guestmount.pod:100
21294 msgid "Add a block device or virtual machine image."
21295 msgstr ""
21296
21297 #. type: =item
21298 #: ../fuse/guestmount.pod:123
21299 msgid "B<--dir-cache-timeout N>"
21300 msgstr ""
21301
21302 #. type: textblock
21303 #: ../fuse/guestmount.pod:125
21304 msgid ""
21305 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21306 "seconds.  The readdir cache [actually, there are several semi-independent "
21307 "caches] is populated after a readdir(2) call with the stat and extended "
21308 "attributes of the files in the directory, in anticipation that they will be "
21309 "requested soon after."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../fuse/guestmount.pod:131
21314 msgid ""
21315 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21316 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21317 "requests, only cache existing ones."
21318 msgstr ""
21319
21320 #. type: textblock
21321 #: ../fuse/guestmount.pod:151
21322 msgid ""
21323 "If you have untrusted raw-format guest disk images, you should use this "
21324 "option to specify the disk format.  This avoids a possible security problem "
21325 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21326 "guestfs_add_drive_opts>."
21327 msgstr ""
21328
21329 #. type: =item
21330 #: ../fuse/guestmount.pod:156
21331 msgid "B<--fuse-help>"
21332 msgstr ""
21333
21334 #. type: textblock
21335 #: ../fuse/guestmount.pod:158
21336 msgid "Display help on special FUSE options (see I<-o> below)."
21337 msgstr ""
21338
21339 #. type: textblock
21340 #: ../fuse/guestmount.pod:162
21341 msgid "Display brief help and exit."
21342 msgstr ""
21343
21344 #. type: textblock
21345 #: ../fuse/guestmount.pod:186
21346 msgid ""
21347 "Mount the named partition or logical volume on the given mountpoint B<in the "
21348 "guest> (this has nothing to do with mountpoints in the host)."
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fuse/guestmount.pod:189
21353 msgid ""
21354 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21355 "something on C</>."
21356 msgstr ""
21357
21358 #. type: textblock
21359 #: ../fuse/guestmount.pod:206
21360 msgid ""
21361 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21362 "unmounted.  If you specify this option, then we don't attempt to sync the "
21363 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21364 msgstr ""
21365
21366 #. type: =item
21367 #: ../fuse/guestmount.pod:211
21368 msgid "B<-o option>"
21369 msgstr ""
21370
21371 #. type: =item
21372 #: ../fuse/guestmount.pod:213
21373 msgid "B<--option option>"
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../fuse/guestmount.pod:215
21378 msgid "Pass extra options to FUSE."
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../fuse/guestmount.pod:217
21383 msgid ""
21384 "To get a list of all the extra options supported by FUSE, use the command "
21385 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21386 "of them are a good idea."
21387 msgstr ""
21388
21389 #. type: verbatim
21390 #: ../fuse/guestmount.pod:221
21391 #, no-wrap
21392 msgid ""
21393 " guestmount --fuse-help\n"
21394 "\n"
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../fuse/guestmount.pod:223
21399 msgid "Some potentially useful FUSE options:"
21400 msgstr ""
21401
21402 #. type: =item
21403 #: ../fuse/guestmount.pod:227
21404 msgid "B<-o allow_other>"
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../fuse/guestmount.pod:229
21409 msgid "Allow other users to see the filesystem."
21410 msgstr ""
21411
21412 #. type: =item
21413 #: ../fuse/guestmount.pod:231
21414 msgid "B<-o attr_timeout=N>"
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fuse/guestmount.pod:233
21419 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21420 msgstr ""
21421
21422 #. type: =item
21423 #: ../fuse/guestmount.pod:235
21424 msgid "B<-o kernel_cache>"
21425 msgstr ""
21426
21427 #. type: textblock
21428 #: ../fuse/guestmount.pod:237
21429 msgid ""
21430 "Allow the kernel to cache files (reduces the number of reads that have to go "
21431 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21432 "afford the extra memory usage."
21433 msgstr ""
21434
21435 #. type: =item
21436 #: ../fuse/guestmount.pod:241
21437 msgid "B<-o uid=N> B<-o gid=N>"
21438 msgstr ""
21439
21440 #. type: textblock
21441 #: ../fuse/guestmount.pod:243
21442 msgid ""
21443 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21444 "the chosen values."
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../fuse/guestmount.pod:252
21449 msgid ""
21450 "Add devices and mount everything read-only.  Also disallow writes and make "
21451 "the disk appear read-only to FUSE."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../fuse/guestmount.pod:255
21456 msgid ""
21457 "This is highly recommended if you are not going to edit the guest disk.  If "
21458 "the guest is running and this option is I<not> supplied, then there is a "
21459 "strong risk of disk corruption in the guest.  We try to prevent this from "
21460 "happening, but it is not always possible."
21461 msgstr ""
21462
21463 #. type: textblock
21464 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21465 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fuse/guestmount.pod:264
21470 msgid "Enable SELinux support for the guest."
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../fuse/guestmount.pod:270
21475 msgid "Enable verbose messages from underlying libguestfs."
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../fuse/guestmount.pod:276
21480 msgid "Display the program version and exit."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21485 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21486 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21487 msgstr ""
21488
21489 #. type: =item
21490 #: ../fuse/guestmount.pod:289
21491 msgid "B<--trace>"
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../fuse/guestmount.pod:291
21496 msgid "Trace libguestfs calls and entry into each FUSE function."
21497 msgstr ""
21498
21499 #. type: textblock
21500 #: ../fuse/guestmount.pod:293
21501 msgid "This also stops the daemon from forking into the background."
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../fuse/guestmount.pod:319
21506 msgid ""
21507 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21508 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21509 "net/>."
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../fuse/guestmount.pod:334
21514 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../inspector/virt-inspector.pod:5
21519 msgid ""
21520 "virt-inspector - Display operating system version and other information "
21521 "about a virtual machine"
21522 msgstr ""
21523
21524 #. type: verbatim
21525 #: ../inspector/virt-inspector.pod:9
21526 #, no-wrap
21527 msgid ""
21528 " virt-inspector [--options] -d domname\n"
21529 "\n"
21530 msgstr ""
21531
21532 #. type: verbatim
21533 #: ../inspector/virt-inspector.pod:11
21534 #, no-wrap
21535 msgid ""
21536 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21537 "\n"
21538 msgstr ""
21539
21540 #. type: verbatim
21541 #: ../inspector/virt-inspector.pod:15
21542 #, no-wrap
21543 msgid ""
21544 " virt-inspector domname\n"
21545 "\n"
21546 msgstr ""
21547
21548 #. type: verbatim
21549 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21550 #, no-wrap
21551 msgid ""
21552 " virt-inspector disk.img [disk.img ...]\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: textblock
21557 #: ../inspector/virt-inspector.pod:21
21558 msgid ""
21559 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21560 "determine the version of the operating system and other information about "
21561 "the virtual machine."
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../inspector/virt-inspector.pod:25
21566 msgid "Virt-inspector produces XML output for feeding into other programs."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../inspector/virt-inspector.pod:27
21571 msgid ""
21572 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21573 "the libvirt domain (see: C<virsh list --all>)."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../inspector/virt-inspector.pod:30
21578 msgid ""
21579 "You can also run virt-inspector directly on disk images from a single "
21580 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21581 "has several block devices, in which case you should list several I<-a> "
21582 "options one after another, with the first corresponding to the guest's C</"
21583 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21584 msgstr ""
21585
21586 #. type: textblock
21587 #: ../inspector/virt-inspector.pod:37
21588 msgid ""
21589 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21590 "keys and similar."
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../inspector/virt-inspector.pod:40
21595 msgid ""
21596 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21597 "inspect several virtual machines, you have to run virt-inspector several "
21598 "times (for example, from a shell script for-loop)."
21599 msgstr ""
21600
21601 #. type: textblock
21602 #: ../inspector/virt-inspector.pod:45
21603 msgid ""
21604 "Because virt-inspector needs direct access to guest images, it won't "
21605 "normally work over remote libvirt connections."
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../inspector/virt-inspector.pod:48
21610 msgid ""
21611 "All of the information available from virt-inspector is also available "
21612 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21613 "The same information can also be fetched using guestfish or via libguestfs "
21614 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21615 "WITH OTHER PROGRAMMING LANGUAGES>)."
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../inspector/virt-inspector.pod:81
21620 msgid ""
21621 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21622 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21623 "at all."
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../inspector/virt-inspector.pod:94
21628 msgid ""
21629 "When prompting for keys and passphrases, virt-inspector normally turns "
21630 "echoing off so you cannot see what you are typing.  If you are not worried "
21631 "about Tempest attacks and there is no one else in the room you can specify "
21632 "this flag to see what you are typing."
21633 msgstr ""
21634
21635 #. type: textblock
21636 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21637 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21638 #: ../tools/virt-win-reg.pl:144
21639 msgid ""
21640 "Specify the format of disk images given on the command line.  If this is "
21641 "omitted then the format is autodetected from the content of the disk image."
21642 msgstr ""
21643
21644 #. type: textblock
21645 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21646 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21647 #: ../tools/virt-win-reg.pl:148
21648 msgid ""
21649 "If disk images are requested from libvirt, then this program asks libvirt "
21650 "for this information.  In this case, the value of the format parameter is "
21651 "ignored."
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
21656 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
21657 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21658 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21659 msgid ""
21660 "If working with untrusted raw-format guest disk images, you should ensure "
21661 "the format is always specified."
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../inspector/virt-inspector.pod:139
21666 msgid "Previous versions of virt-inspector allowed you to write either:"
21667 msgstr ""
21668
21669 #. type: verbatim
21670 #: ../inspector/virt-inspector.pod:145
21671 #, no-wrap
21672 msgid ""
21673 " virt-inspector guestname\n"
21674 "\n"
21675 msgstr ""
21676
21677 #. type: =head1
21678 #: ../inspector/virt-inspector.pod:153
21679 msgid "XML FORMAT"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../inspector/virt-inspector.pod:155
21684 msgid ""
21685 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21686 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21687 "just an overview."
21688 msgstr ""
21689
21690 #. type: textblock
21691 #: ../inspector/virt-inspector.pod:159
21692 msgid ""
21693 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21694 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21695 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21696 "which is vanishingly rare in real world VMs."
21697 msgstr ""
21698
21699 #. type: =head2
21700 #: ../inspector/virt-inspector.pod:164
21701 msgid "E<lt>operatingsystemE<gt>"
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../inspector/virt-inspector.pod:166
21706 msgid ""
21707 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21708 "describe the operating system, its architecture, the descriptive \"product "
21709 "name\" string, the type of OS and so on, as in this example:"
21710 msgstr ""
21711
21712 #. type: verbatim
21713 #: ../inspector/virt-inspector.pod:170
21714 #, no-wrap
21715 msgid ""
21716 " <operatingsystems>\n"
21717 "   <operatingsystem>\n"
21718 "     <root>/dev/sda2</root>\n"
21719 "     <name>windows</name>\n"
21720 "     <arch>i386</arch>\n"
21721 "     <distro>windows</distro>\n"
21722 "     <product_name>Windows 7 Enterprise</product_name>\n"
21723 "     <product_variant>Client</product_variant>\n"
21724 "     <major_version>6</major_version>\n"
21725 "     <minor_version>1</minor_version>\n"
21726 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21727 "     <format>installed</format>\n"
21728 "\n"
21729 msgstr ""
21730
21731 #. type: textblock
21732 #: ../inspector/virt-inspector.pod:183
21733 msgid ""
21734 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21735 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21736 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21737 "architecture.  The other fields are fairly self-explanatory, but because "
21738 "these fields are taken directly from the libguestfs inspection API you can "
21739 "find precise information from L<guestfs(3)/INSPECTION>."
21740 msgstr ""
21741
21742 #. type: textblock
21743 #: ../inspector/virt-inspector.pod:191
21744 msgid ""
21745 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21746 "of view of libguestfs (block devices may have completely different names "
21747 "inside the VM itself)."
21748 msgstr ""
21749
21750 #. type: =head2
21751 #: ../inspector/virt-inspector.pod:195
21752 msgid "E<lt>mountpointsE<gt>"
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../inspector/virt-inspector.pod:197
21757 msgid ""
21758 "Un*x-like guests typically have multiple filesystems which are mounted at "
21759 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21760 "element which looks like this:"
21761 msgstr ""
21762
21763 #. type: verbatim
21764 #: ../inspector/virt-inspector.pod:201
21765 #, no-wrap
21766 msgid ""
21767 " <operatingsystems>\n"
21768 "   <operatingsystem>\n"
21769 "     ...\n"
21770 "     <mountpoints>\n"
21771 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21772 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21773 "     </mountpoints>\n"
21774 "\n"
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../inspector/virt-inspector.pod:209
21779 msgid ""
21780 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21781 "and may have completely different names inside the guest.  Only mountable "
21782 "filesystems appear in this list, not things like swap devices."
21783 msgstr ""
21784
21785 #. type: =head2
21786 #: ../inspector/virt-inspector.pod:214
21787 msgid "E<lt>filesystemsE<gt>"
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../inspector/virt-inspector.pod:216
21792 msgid ""
21793 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21794 "filesystems belonging to the guest, including swap and empty partitions.  "
21795 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21796 "this OS or shared with this OS and other OSes)."
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../inspector/virt-inspector.pod:222
21801 msgid "You might see something like this:"
21802 msgstr ""
21803
21804 #. type: verbatim
21805 #: ../inspector/virt-inspector.pod:224
21806 #, no-wrap
21807 msgid ""
21808 " <operatingsystems>\n"
21809 "   <operatingsystem>\n"
21810 "     ...\n"
21811 "     <filesystems>\n"
21812 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21813 "         <type>ext4</type>\n"
21814 "         <label>Fedora-13-x86_64</label>\n"
21815 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21816 "       </filesystem>\n"
21817 "\n"
21818 msgstr ""
21819
21820 #. type: textblock
21821 #: ../inspector/virt-inspector.pod:234
21822 msgid ""
21823 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21824 "the label, and the UUID."
21825 msgstr ""
21826
21827 #. type: =head2
21828 #: ../inspector/virt-inspector.pod:237
21829 msgid "E<lt>applicationsE<gt>"
21830 msgstr ""
21831
21832 #. type: textblock
21833 #: ../inspector/virt-inspector.pod:239
21834 msgid ""
21835 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21836 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21837 "machine."
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../inspector/virt-inspector.pod:243
21842 msgid ""
21843 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21844 "Typical values would be C<rpm> and C<deb>."
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../inspector/virt-inspector.pod:246
21849 msgid ""
21850 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21851 "Typical values include C<yum>, C<up2date> and C<apt>"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../inspector/virt-inspector.pod:249
21856 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21857 msgstr ""
21858
21859 #. type: verbatim
21860 #: ../inspector/virt-inspector.pod:252
21861 #, no-wrap
21862 msgid ""
21863 " <operatingsystems>\n"
21864 "   <operatingsystem>\n"
21865 "     ...\n"
21866 "     <applications>\n"
21867 "       <application>\n"
21868 "         <name>coreutils</name>\n"
21869 "         <version>8.5</version>\n"
21870 "         <release>1</release>\n"
21871 "       </application>\n"
21872 "\n"
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../inspector/virt-inspector.pod:262
21877 msgid ""
21878 "The version and release fields may not be available for some types guests.  "
21879 "Other fields are possible, see L<guestfs(3)/"
21880 "guestfs_inspect_list_applications>."
21881 msgstr ""
21882
21883 #. type: =head2
21884 #: ../inspector/virt-inspector.pod:266
21885 msgid "E<lt>drive_mappingsE<gt>"
21886 msgstr ""
21887
21888 #. type: textblock
21889 #: ../inspector/virt-inspector.pod:268
21890 msgid ""
21891 "For operating systems like Windows which use drive letters, virt-inspector "
21892 "is able to find out how drive letters map to filesystems."
21893 msgstr ""
21894
21895 #. type: verbatim
21896 #: ../inspector/virt-inspector.pod:272
21897 #, no-wrap
21898 msgid ""
21899 " <operatingsystems>\n"
21900 "   <operatingsystem>\n"
21901 "     ...\n"
21902 "     <drive_mappings>\n"
21903 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21904 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21905 "     </drive_mappings>\n"
21906 "\n"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../inspector/virt-inspector.pod:280
21911 msgid ""
21912 "In the example above, drive C maps to the filesystem on the second partition "
21913 "on the first disk, and drive E maps to the filesystem on the first partition "
21914 "on the second disk."
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../inspector/virt-inspector.pod:284
21919 msgid ""
21920 "Note that this only covers permanent local filesystem mappings, not things "
21921 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21922 "here."
21923 msgstr ""
21924
21925 #. type: =head2
21926 #: ../inspector/virt-inspector.pod:288
21927 msgid "E<lt>iconE<gt>"
21928 msgstr ""
21929
21930 #. type: textblock
21931 #: ../inspector/virt-inspector.pod:290
21932 msgid ""
21933 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21934 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21935 "very large and high quality."
21936 msgstr ""
21937
21938 #. type: verbatim
21939 #: ../inspector/virt-inspector.pod:294
21940 #, no-wrap
21941 msgid ""
21942 " <operatingsystems>\n"
21943 "   <operatingsystem>\n"
21944 "     ...\n"
21945 "     <icon>\n"
21946 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21947 "       [... many lines of base64 data ...]\n"
21948 "     </icon>\n"
21949 "\n"
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../inspector/virt-inspector.pod:302
21954 msgid ""
21955 "To display the icon, you have to extract it and convert the base64 data back "
21956 "to a binary file.  Use an XPath query or simply an editor to extract the "
21957 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21958 "to a PNG file:"
21959 msgstr ""
21960
21961 #. type: verbatim
21962 #: ../inspector/virt-inspector.pod:307
21963 #, no-wrap
21964 msgid ""
21965 " base64 -i -d < icon.data > icon.png\n"
21966 "\n"
21967 msgstr ""
21968
21969 #. type: =head2
21970 #: ../inspector/virt-inspector.pod:309
21971 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../inspector/virt-inspector.pod:311
21976 msgid ""
21977 "Virt-inspector can detect some operating system installers on install disks, "
21978 "live CDs, bootable USB keys and more."
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../inspector/virt-inspector.pod:314
21983 msgid ""
21984 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21985 "fields may be present to indicate a live CD, network installer, or one part "
21986 "of a multipart CD.  For example:"
21987 msgstr ""
21988
21989 #. type: verbatim
21990 #: ../inspector/virt-inspector.pod:318
21991 #, no-wrap
21992 msgid ""
21993 " <operatingsystems>\n"
21994 "   <operatingsystem>\n"
21995 "     <root>/dev/sda</root>\n"
21996 "     <name>linux</name>\n"
21997 "     <arch>i386</arch>\n"
21998 "     <distro>ubuntu</distro>\n"
21999 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22000 "     <major_version>10</major_version>\n"
22001 "     <minor_version>10</minor_version>\n"
22002 "     <format>installer</format>\n"
22003 "     <live/>\n"
22004 "\n"
22005 msgstr ""
22006
22007 #. type: =head1
22008 #: ../inspector/virt-inspector.pod:330
22009 msgid "USING XPATH"
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../inspector/virt-inspector.pod:332
22014 msgid ""
22015 "You can use the XPath query language to select parts of the XML.  We "
22016 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../inspector/virt-inspector.pod:338
22021 #, no-wrap
22022 msgid ""
22023 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22024 " <filesystems>\n"
22025 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22026 "        <type>ext4</type>\n"
22027 " [...]\n"
22028 "\n"
22029 msgstr ""
22030
22031 #. type: verbatim
22032 #: ../inspector/virt-inspector.pod:344
22033 #, no-wrap
22034 msgid ""
22035 " $ virt-inspector -d Guest | \\\n"
22036 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22037 " ext4\n"
22038 "\n"
22039 msgstr ""
22040
22041 #. type: verbatim
22042 #: ../inspector/virt-inspector.pod:348
22043 #, no-wrap
22044 msgid ""
22045 " $ virt-inspector -d Guest | \\\n"
22046 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22047 " [displays the guest icon, if there is one]\n"
22048 "\n"
22049 msgstr ""
22050
22051 #. type: =head1
22052 #: ../inspector/virt-inspector.pod:359
22053 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../inspector/virt-inspector.pod:361
22058 msgid ""
22059 "Early versions of libguestfs shipped with a different virt-inspector program "
22060 "written in Perl (the current version is written in C).  The XML output of "
22061 "the Perl virt-inspector was different and it could also output in other "
22062 "formats like text."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../inspector/virt-inspector.pod:366
22067 msgid ""
22068 "The old virt-inspector is no longer supported or shipped with libguestfs."
22069 msgstr ""
22070
22071 #. type: textblock
22072 #: ../inspector/virt-inspector.pod:369
22073 msgid ""
22074 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22075 "versions of virt-inspector with different names:"
22076 msgstr ""
22077
22078 #. type: verbatim
22079 #: ../inspector/virt-inspector.pod:372
22080 #, no-wrap
22081 msgid ""
22082 " virt-inspector     Old Perl version.\n"
22083 " virt-inspector2    New C version.\n"
22084 "\n"
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../inspector/virt-inspector.pod:382
22089 msgid ""
22090 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22091 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22092 msgstr ""
22093
22094 #. type: textblock
22095 #: ../inspector/virt-inspector.pod:399
22096 msgid "Matthew Booth L<mbooth@redhat.com>"
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../java/examples/guestfs-java.pod:5
22101 msgid "guestfs-java - How to use libguestfs from Java"
22102 msgstr ""
22103
22104 #. type: verbatim
22105 #: ../java/examples/guestfs-java.pod:9
22106 #, no-wrap
22107 msgid ""
22108 " import com.redhat.et.libguestfs.*;\n"
22109 " \n"
22110 msgstr ""
22111
22112 #. type: verbatim
22113 #: ../java/examples/guestfs-java.pod:11
22114 #, no-wrap
22115 msgid ""
22116 " GuestFS g = new GuestFS ();\n"
22117 " g.add_drive_opts (\"disk.img\", null);\n"
22118 " g.launch ();\n"
22119 "\n"
22120 msgstr ""
22121
22122 #. type: textblock
22123 #: ../java/examples/guestfs-java.pod:17
22124 msgid ""
22125 "This manual page documents how to call libguestfs from the Java programming "
22126 "language.  This page just documents the differences from the C API and gives "
22127 "some examples.  If you are not familiar with using libguestfs, you also need "
22128 "to read L<guestfs(3)>."
22129 msgstr ""
22130
22131 #. type: =head2
22132 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22133 msgid "CLOSING THE HANDLE"
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../java/examples/guestfs-java.pod:24
22138 msgid ""
22139 "The handle is closed when it is reaped by the garbage collector.  Because "
22140 "libguestfs handles include a lot of state, it is also possible to close (and "
22141 "hence free) them explicitly by calling the C<close> method."
22142 msgstr ""
22143
22144 #. type: =head2
22145 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22146 #: ../python/examples/guestfs-python.pod:21
22147 #: ../ruby/examples/guestfs-ruby.pod:22
22148 msgid "EXCEPTIONS"
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../java/examples/guestfs-java.pod:31
22153 msgid ""
22154 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22155 "exception.  This has a single parameter which is the error message (a "
22156 "C<String>)."
22157 msgstr ""
22158
22159 #. type: textblock
22160 #: ../java/examples/guestfs-java.pod:35
22161 msgid "Calling any method on a closed handle raises the same exception."
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../java/examples/guestfs-java.pod:47
22166 msgid ""
22167 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22168 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22169 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22170 msgstr ""
22171
22172 #. type: textblock
22173 #: ../ocaml/examples/guestfs-ocaml.pod:5
22174 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22175 msgstr ""
22176
22177 #. type: textblock
22178 #: ../ocaml/examples/guestfs-ocaml.pod:9
22179 msgid "Module style:"
22180 msgstr ""
22181
22182 #. type: verbatim
22183 #: ../ocaml/examples/guestfs-ocaml.pod:11
22184 #, no-wrap
22185 msgid ""
22186 " let g = Guestfs.create () in\n"
22187 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22188 " Guestfs.launch g;\n"
22189 "\n"
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../ocaml/examples/guestfs-ocaml.pod:15
22194 msgid "Object-oriented style:"
22195 msgstr ""
22196
22197 #. type: verbatim
22198 #: ../ocaml/examples/guestfs-ocaml.pod:17
22199 #, no-wrap
22200 msgid ""
22201 " let g = new Guestfs.guestfs () in\n"
22202 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22203 " g#launch ();\n"
22204 "\n"
22205 msgstr ""
22206
22207 #. type: verbatim
22208 #: ../ocaml/examples/guestfs-ocaml.pod:21
22209 #, no-wrap
22210 msgid ""
22211 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22212 "or:\n"
22213 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22214 "\n"
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../ocaml/examples/guestfs-ocaml.pod:27
22219 msgid ""
22220 "This manual page documents how to call libguestfs from the OCaml programming "
22221 "language.  This page just documents the differences from the C API and gives "
22222 "some examples.  If you are not familiar with using libguestfs, you also need "
22223 "to read L<guestfs(3)>."
22224 msgstr ""
22225
22226 #. type: =head2
22227 #: ../ocaml/examples/guestfs-ocaml.pod:32
22228 msgid "PROGRAMMING STYLES"
22229 msgstr ""
22230
22231 #. type: textblock
22232 #: ../ocaml/examples/guestfs-ocaml.pod:34
22233 msgid ""
22234 "There are two different programming styles supported by the OCaml bindings.  "
22235 "You can use a module style, with each C function mapped to an OCaml function:"
22236 msgstr ""
22237
22238 #. type: verbatim
22239 #: ../ocaml/examples/guestfs-ocaml.pod:38
22240 #, no-wrap
22241 msgid ""
22242 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22243 "\n"
22244 msgstr ""
22245
22246 #. type: textblock
22247 #: ../ocaml/examples/guestfs-ocaml.pod:40
22248 msgid "becomes:"
22249 msgstr ""
22250
22251 #. type: verbatim
22252 #: ../ocaml/examples/guestfs-ocaml.pod:42
22253 #, no-wrap
22254 msgid ""
22255 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22256 "\n"
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../ocaml/examples/guestfs-ocaml.pod:44
22261 msgid ""
22262 "Alternately you can use an object-oriented style, calling methods on the "
22263 "class C<Guestfs.guestfs>:"
22264 msgstr ""
22265
22266 #. type: verbatim
22267 #: ../ocaml/examples/guestfs-ocaml.pod:47
22268 #, no-wrap
22269 msgid ""
22270 " method set_verbose : bool -> unit\n"
22271 "\n"
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../ocaml/examples/guestfs-ocaml.pod:49
22276 msgid ""
22277 "The object-oriented style is usually briefer, and the minor performance "
22278 "penalty isn't noticable in the general overhead of performing libguestfs "
22279 "functions."
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../ocaml/examples/guestfs-ocaml.pod:55
22284 msgid ""
22285 "The handle is closed when it is reaped by the garbage collector.  Because "
22286 "libguestfs handles include a lot of state, it is also possible to close (and "
22287 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22288 "method."
22289 msgstr ""
22290
22291 #. type: textblock
22292 #: ../ocaml/examples/guestfs-ocaml.pod:62
22293 msgid ""
22294 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22295 "exception.  This has a single parameter which is the error message (a "
22296 "string)."
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../ocaml/examples/guestfs-ocaml.pod:66
22301 msgid ""
22302 "Calling any function/method on a closed handle raises C<Guestfs."
22303 "Handle_closed>.  The single parameter is the name of the function that you "
22304 "called."
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../ocaml/examples/guestfs-ocaml.pod:80
22309 msgid ""
22310 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22311 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22312 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22313 msgstr ""
22314
22315 #. type: textblock
22316 #: ../perl/examples/guestfs-perl.pod:5
22317 msgid "guestfs-perl - How to use libguestfs from Perl"
22318 msgstr ""
22319
22320 #. type: verbatim
22321 #: ../perl/examples/guestfs-perl.pod:9
22322 #, no-wrap
22323 msgid ""
22324 " use Sys::Guestfs;\n"
22325 " \n"
22326 msgstr ""
22327
22328 #. type: verbatim
22329 #: ../perl/examples/guestfs-perl.pod:11
22330 #, no-wrap
22331 msgid ""
22332 " my $h = Sys::Guestfs->new ();\n"
22333 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22334 " $h->launch ();\n"
22335 " $h->mount_options ('', '/dev/sda1', '/');\n"
22336 " $h->touch ('/hello');\n"
22337 " $h->sync ();\n"
22338 "\n"
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../perl/examples/guestfs-perl.pod:20
22343 msgid ""
22344 "This manual page documents how to call libguestfs from the Perl programming "
22345 "language.  This page just documents the differences from the C API and gives "
22346 "some examples.  If you are not familiar with using libguestfs, you also need "
22347 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22348 msgstr ""
22349
22350 #. type: =head2
22351 #: ../perl/examples/guestfs-perl.pod:26
22352 msgid "ERRORS"
22353 msgstr ""
22354
22355 #. type: textblock
22356 #: ../perl/examples/guestfs-perl.pod:28
22357 msgid ""
22358 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22359 ">)."
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../perl/examples/guestfs-perl.pod:41
22364 msgid ""
22365 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22366 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22367 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../python/examples/guestfs-python.pod:5
22372 msgid "guestfs-python - How to use libguestfs from Python"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../python/examples/guestfs-python.pod:9
22377 #, no-wrap
22378 msgid ""
22379 " import guestfs\n"
22380 " g = guestfs.GuestFS ()\n"
22381 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22382 " g.launch\n"
22383 "\n"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../python/examples/guestfs-python.pod:16
22388 msgid ""
22389 "This manual page documents how to call libguestfs from the Python "
22390 "programming language.  This page just documents the differences from the C "
22391 "API and gives some examples.  If you are not familiar with using libguestfs, "
22392 "you also need to read L<guestfs(3)>."
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../python/examples/guestfs-python.pod:23
22397 msgid ""
22398 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22399 "single string argument which is the error message."
22400 msgstr ""
22401
22402 #. type: =head2
22403 #: ../python/examples/guestfs-python.pod:26
22404 msgid "MORE DOCUMENTATION"
22405 msgstr ""
22406
22407 #. type: textblock
22408 #: ../python/examples/guestfs-python.pod:28
22409 msgid "Type:"
22410 msgstr ""
22411
22412 #. type: verbatim
22413 #: ../python/examples/guestfs-python.pod:30
22414 #, no-wrap
22415 msgid ""
22416 " $ python\n"
22417 " >>> import guestfs\n"
22418 " >>> help (guestfs)\n"
22419 "\n"
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../python/examples/guestfs-python.pod:44
22424 msgid ""
22425 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22426 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22427 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../rescue/virt-rescue.pod:5
22432 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22433 msgstr ""
22434
22435 #. type: verbatim
22436 #: ../rescue/virt-rescue.pod:9
22437 #, no-wrap
22438 msgid ""
22439 " virt-rescue [--options] -d domname\n"
22440 "\n"
22441 msgstr ""
22442
22443 #. type: verbatim
22444 #: ../rescue/virt-rescue.pod:11
22445 #, no-wrap
22446 msgid ""
22447 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22448 "\n"
22449 msgstr ""
22450
22451 #. type: verbatim
22452 #: ../rescue/virt-rescue.pod:15
22453 #, no-wrap
22454 msgid ""
22455 " virt-rescue [--options] domname\n"
22456 "\n"
22457 msgstr ""
22458
22459 #. type: verbatim
22460 #: ../rescue/virt-rescue.pod:17
22461 #, no-wrap
22462 msgid ""
22463 " virt-rescue [--options] disk.img [disk.img ...]\n"
22464 "\n"
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../rescue/virt-rescue.pod:21
22469 msgid ""
22470 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22471 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22472 "you from doing this, but doesn't catch all cases."
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../rescue/virt-rescue.pod:25
22477 msgid ""
22478 "However if you use the I<--ro> (read only) option, then you can attach a "
22479 "shell to a live virtual machine.  The results might be strange or "
22480 "inconsistent at times but you won't get disk corruption."
22481 msgstr ""
22482
22483 #. type: textblock
22484 #: ../rescue/virt-rescue.pod:31
22485 msgid ""
22486 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22487 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22488 "recovery tools which you can use to examine or rescue a virtual machine or "
22489 "disk image."
22490 msgstr ""
22491
22492 #. type: textblock
22493 #: ../rescue/virt-rescue.pod:36
22494 msgid ""
22495 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22496 "on disk image(s):"
22497 msgstr ""
22498
22499 #. type: verbatim
22500 #: ../rescue/virt-rescue.pod:39
22501 #, no-wrap
22502 msgid ""
22503 " virt-rescue -d GuestName\n"
22504 "\n"
22505 msgstr ""
22506
22507 #. type: verbatim
22508 #: ../rescue/virt-rescue.pod:41
22509 #, no-wrap
22510 msgid ""
22511 " virt-rescue --ro -a /path/to/disk.img\n"
22512 "\n"
22513 msgstr ""
22514
22515 #. type: verbatim
22516 #: ../rescue/virt-rescue.pod:43
22517 #, no-wrap
22518 msgid ""
22519 " virt-rescue -a /dev/sdc\n"
22520 "\n"
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../rescue/virt-rescue.pod:45
22525 msgid "For live VMs you I<must> use the --ro option."
22526 msgstr ""
22527
22528 #. type: textblock
22529 #: ../rescue/virt-rescue.pod:47
22530 msgid ""
22531 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22532 "in an interactive bash shell where you can use many ordinary Linux "
22533 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22534 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22535 "is an empty directory called C</sysroot> where you can mount filesystems."
22536 msgstr ""
22537
22538 #. type: textblock
22539 #: ../rescue/virt-rescue.pod:54
22540 msgid ""
22541 "In the example below, we list logical volumes, then choose one to mount "
22542 "under C</sysroot>:"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../rescue/virt-rescue.pod:57
22547 #, no-wrap
22548 msgid ""
22549 " ><rescue> lvs\n"
22550 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22551 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22552 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22553 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22554 " ><rescue> ls /sysroot\n"
22555 "\n"
22556 msgstr ""
22557
22558 #. type: textblock
22559 #: ../rescue/virt-rescue.pod:64
22560 msgid ""
22561 "If you don't know what filesystems are available on the virtual machine then "
22562 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22563 msgstr ""
22564
22565 #. type: textblock
22566 #: ../rescue/virt-rescue.pod:70
22567 msgid ""
22568 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22569 "virtual machine.  For example you can use it on a blank file if you want to "
22570 "partition that file (although we would recommend using L<guestfish(1)> "
22571 "instead as it is more suitable for this purpose).  You can even use virt-"
22572 "rescue on things like SD cards."
22573 msgstr ""
22574
22575 #. type: textblock
22576 #: ../rescue/virt-rescue.pod:76
22577 msgid ""
22578 "Virt-rescue does not require root.  You only need to run it as root if you "
22579 "need root to open the disk image."
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../rescue/virt-rescue.pod:79
22584 msgid ""
22585 "This tool is just designed for quick interactive hacking on a virtual "
22586 "machine.  For more structured access to a virtual machine disk image, you "
22587 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22588 "make scripted changes to guests, use L<guestfish(1)>."
22589 msgstr ""
22590
22591 #. type: =item
22592 #: ../rescue/virt-rescue.pod:103
22593 msgid "B<--append kernelopts>"
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../rescue/virt-rescue.pod:105
22598 msgid "Pass additional options to the rescue kernel."
22599 msgstr ""
22600
22601 #. type: verbatim
22602 #: ../rescue/virt-rescue.pod:135
22603 #, no-wrap
22604 msgid ""
22605 " virt-rescue --format=raw -a disk.img\n"
22606 "\n"
22607 msgstr ""
22608
22609 #. type: verbatim
22610 #: ../rescue/virt-rescue.pod:139
22611 #, no-wrap
22612 msgid ""
22613 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22614 "\n"
22615 msgstr ""
22616
22617 #. type: =item
22618 #: ../rescue/virt-rescue.pod:148
22619 msgid "B<-m MB>"
22620 msgstr ""
22621
22622 #. type: =item
22623 #: ../rescue/virt-rescue.pod:150
22624 msgid "B<--memsize MB>"
22625 msgstr ""
22626
22627 #. type: textblock
22628 #: ../rescue/virt-rescue.pod:152
22629 msgid ""
22630 "Change the amount of memory allocated to the rescue system.  The default is "
22631 "set by libguestfs and is small but adequate for running system tools.  The "
22632 "occasional program might need more memory.  The parameter is specified in "
22633 "megabytes."
22634 msgstr ""
22635
22636 #. type: =item
22637 #: ../rescue/virt-rescue.pod:157
22638 msgid "B<--network>"
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../rescue/virt-rescue.pod:159
22643 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../rescue/virt-rescue.pod:165
22648 msgid "Open the image read-only."
22649 msgstr ""
22650
22651 #. type: textblock
22652 #: ../rescue/virt-rescue.pod:175
22653 msgid ""
22654 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22655 "SELINUX> before using this option."
22656 msgstr ""
22657
22658 #. type: =item
22659 #: ../rescue/virt-rescue.pod:178
22660 msgid "B<--smp> N"
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../rescue/virt-rescue.pod:180
22665 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22666 msgstr ""
22667
22668 #. type: textblock
22669 #: ../rescue/virt-rescue.pod:198
22670 msgid ""
22671 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22672 "are done read-write."
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../rescue/virt-rescue.pod:211
22677 msgid "Previous versions of virt-rescue allowed you to write either:"
22678 msgstr ""
22679
22680 #. type: verbatim
22681 #: ../rescue/virt-rescue.pod:213
22682 #, no-wrap
22683 msgid ""
22684 " virt-rescue disk.img [disk.img ...]\n"
22685 "\n"
22686 msgstr ""
22687
22688 #. type: verbatim
22689 #: ../rescue/virt-rescue.pod:217
22690 #, no-wrap
22691 msgid ""
22692 " virt-rescue guestname\n"
22693 "\n"
22694 msgstr ""
22695
22696 #. type: =head1
22697 #: ../rescue/virt-rescue.pod:225
22698 msgid "NETWORK"
22699 msgstr ""
22700
22701 #. type: textblock
22702 #: ../rescue/virt-rescue.pod:227
22703 msgid ""
22704 "Adding the I<--network> option enables QEMU user networking in the rescue "
22705 "appliance.  There are some differences between user networking and ordinary "
22706 "networking:"
22707 msgstr ""
22708
22709 #. type: =item
22710 #: ../rescue/virt-rescue.pod:233
22711 msgid "ping does not work"
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../rescue/virt-rescue.pod:235
22716 msgid ""
22717 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22718 "send the ping packets, and because virt-rescue must be able to run as non-"
22719 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22720 "The ping command will appear to resolve addresses but will not be able to "
22721 "send or receive any packets.  This does not mean that the network is not "
22722 "working."
22723 msgstr ""
22724
22725 #. type: =item
22726 #: ../rescue/virt-rescue.pod:242
22727 msgid "cannot receive connections"
22728 msgstr ""
22729
22730 #. type: textblock
22731 #: ../rescue/virt-rescue.pod:244
22732 msgid "QEMU user networking cannot receive incoming connections."
22733 msgstr ""
22734
22735 #. type: =item
22736 #: ../rescue/virt-rescue.pod:246
22737 msgid "making TCP connections"
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../rescue/virt-rescue.pod:248
22742 msgid ""
22743 "The virt-rescue appliance needs to be small and so does not include many "
22744 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22745 "make TCP connections from the shell using the magical C</dev/tcp/"
22746 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22747 msgstr ""
22748
22749 #. type: verbatim
22750 #: ../rescue/virt-rescue.pod:253
22751 #, no-wrap
22752 msgid ""
22753 " exec 3<>/dev/tcp/redhat.com/80\n"
22754 " echo \"GET /\" >&3\n"
22755 " cat <&3\n"
22756 "\n"
22757 msgstr ""
22758
22759 #. type: textblock
22760 #: ../rescue/virt-rescue.pod:257
22761 msgid "See L<bash(1)> for more details."
22762 msgstr ""
22763
22764 #. type: textblock
22765 #: ../rescue/virt-rescue.pod:263
22766 msgid ""
22767 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22768 "ENVIRONMENT VARIABLES> for the complete list."
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../rescue/virt-rescue.pod:290
22773 msgid ""
22774 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22775 "libguestfs.org/>."
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../resize/virt-resize.pod:5
22780 msgid "virt-resize - Resize a virtual machine disk"
22781 msgstr ""
22782
22783 #. type: verbatim
22784 #: ../resize/virt-resize.pod:9
22785 #, no-wrap
22786 msgid ""
22787 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22788 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22789 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22790 "\n"
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../resize/virt-resize.pod:15
22795 msgid ""
22796 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22797 "larger or smaller overall, and resizing or deleting any partitions contained "
22798 "within."
22799 msgstr ""
22800
22801 #. type: textblock
22802 #: ../resize/virt-resize.pod:19
22803 msgid ""
22804 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22805 "not> be used on live virtual machines - for consistent results, shut the "
22806 "virtual machine down before resizing it."
22807 msgstr ""
22808
22809 #. type: textblock
22810 #: ../resize/virt-resize.pod:23
22811 msgid ""
22812 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22813 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22814 msgstr ""
22815
22816 #. type: =item
22817 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
22818 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
22819 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22820 msgid "1."
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../resize/virt-resize.pod:33
22825 msgid ""
22826 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22827 "fill the extra 5GB of space."
22828 msgstr ""
22829
22830 #. type: verbatim
22831 #: ../resize/virt-resize.pod:36
22832 #, no-wrap
22833 msgid ""
22834 " virt-filesystems --long -h --all -a olddisk\n"
22835 " \n"
22836 msgstr ""
22837
22838 #. type: verbatim
22839 #: ../resize/virt-resize.pod:38
22840 #, no-wrap
22841 msgid ""
22842 " truncate -r olddisk newdisk\n"
22843 " truncate -s +5G newdisk\n"
22844 " \n"
22845 msgstr ""
22846
22847 #. type: verbatim
22848 #: ../resize/virt-resize.pod:41
22849 #, no-wrap
22850 msgid ""
22851 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22852 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22853 "\n"
22854 msgstr ""
22855
22856 #. type: =item
22857 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
22858 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
22859 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
22860 msgid "2."
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../resize/virt-resize.pod:46
22865 msgid ""
22866 "As above, but make the /boot partition 200MB bigger, while giving the "
22867 "remaining space to /dev/sda2:"
22868 msgstr ""
22869
22870 #. type: verbatim
22871 #: ../resize/virt-resize.pod:49
22872 #, no-wrap
22873 msgid ""
22874 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22875 "   olddisk newdisk\n"
22876 "\n"
22877 msgstr ""
22878
22879 #. type: =item
22880 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
22881 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
22882 #: ../src/guestfs.pod:1451
22883 msgid "3."
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../resize/virt-resize.pod:54
22888 msgid ""
22889 "As in the first example, but expand a logical volume as the final step.  "
22890 "This is what you would typically use for Linux guests that use LVM:"
22891 msgstr ""
22892
22893 #. type: verbatim
22894 #: ../resize/virt-resize.pod:58
22895 #, no-wrap
22896 msgid ""
22897 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22898 "   olddisk newdisk\n"
22899 "\n"
22900 msgstr ""
22901
22902 #. type: =item
22903 #: ../resize/virt-resize.pod:61
22904 msgid "4."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../resize/virt-resize.pod:63
22909 msgid ""
22910 "As in the first example, but the output format will be qcow2 instead of a "
22911 "raw disk:"
22912 msgstr ""
22913
22914 #. type: verbatim
22915 #: ../resize/virt-resize.pod:66
22916 #, no-wrap
22917 msgid ""
22918 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22919 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22920 "\n"
22921 msgstr ""
22922
22923 #. type: =head1
22924 #: ../resize/virt-resize.pod:71
22925 msgid "DETAILED USAGE"
22926 msgstr ""
22927
22928 #. type: =head2
22929 #: ../resize/virt-resize.pod:73
22930 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22931 msgstr ""
22932
22933 #. type: =item
22934 #: ../resize/virt-resize.pod:77
22935 msgid "1. Shut down the virtual machine"
22936 msgstr ""
22937
22938 #. type: =item
22939 #: ../resize/virt-resize.pod:79
22940 msgid "2. Locate input disk image"
22941 msgstr ""
22942
22943 #. type: textblock
22944 #: ../resize/virt-resize.pod:81
22945 msgid ""
22946 "Locate the input disk image (ie. the file or device on the host containing "
22947 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22948 "dumpxml> like this to find the disk image name:"
22949 msgstr ""
22950
22951 #. type: verbatim
22952 #: ../resize/virt-resize.pod:85
22953 #, no-wrap
22954 msgid ""
22955 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22956 " Found 1 nodes:\n"
22957 " -- NODE --\n"
22958 " <source dev=\"/dev/vg/lv_guest\" />\n"
22959 "\n"
22960 msgstr ""
22961
22962 #. type: =item
22963 #: ../resize/virt-resize.pod:90
22964 msgid "3. Look at current sizing"
22965 msgstr ""
22966
22967 #. type: textblock
22968 #: ../resize/virt-resize.pod:92
22969 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22970 msgstr ""
22971
22972 #. type: verbatim
22973 #: ../resize/virt-resize.pod:95
22974 #, no-wrap
22975 msgid ""
22976 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22977 " Name       Type       Size  Parent\n"
22978 " /dev/sda1  partition  101M  /dev/sda\n"
22979 " /dev/sda2  partition  7.9G  /dev/sda\n"
22980 " /dev/sda   device     8.0G  -\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: textblock
22985 #: ../resize/virt-resize.pod:101
22986 msgid ""
22987 "(This example is a virtual machine with an 8 GB disk which we would like to "
22988 "expand up to 10 GB)."
22989 msgstr ""
22990
22991 #. type: =item
22992 #: ../resize/virt-resize.pod:104
22993 msgid "4. Create output disk"
22994 msgstr ""
22995
22996 #. type: textblock
22997 #: ../resize/virt-resize.pod:106
22998 msgid ""
22999 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23000 "to store the resized output disk."
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../resize/virt-resize.pod:109
23005 msgid ""
23006 "To store the resized disk image in a file, create a file of a suitable size:"
23007 msgstr ""
23008
23009 #. type: verbatim
23010 #: ../resize/virt-resize.pod:112
23011 #, no-wrap
23012 msgid ""
23013 " # rm -f outdisk\n"
23014 " # truncate -s 10G outdisk\n"
23015 "\n"
23016 msgstr ""
23017
23018 #. type: textblock
23019 #: ../resize/virt-resize.pod:115
23020 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23021 msgstr ""
23022
23023 #. type: verbatim
23024 #: ../resize/virt-resize.pod:117
23025 #, no-wrap
23026 msgid ""
23027 " # lvcreate -L 10G -n lv_name vg_name\n"
23028 "\n"
23029 msgstr ""
23030
23031 #. type: textblock
23032 #: ../resize/virt-resize.pod:119
23033 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23034 msgstr ""
23035
23036 #. type: verbatim
23037 #: ../resize/virt-resize.pod:121
23038 #, no-wrap
23039 msgid ""
23040 " # virsh pool-list\n"
23041 " # virsh vol-create-as poolname newvol 10G\n"
23042 "\n"
23043 msgstr ""
23044
23045 #. type: =item
23046 #: ../resize/virt-resize.pod:124
23047 msgid "5. Resize"
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../resize/virt-resize.pod:126
23052 msgid ""
23053 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23054 "file) and the output disk.  The output disk is the one created in the "
23055 "previous step."
23056 msgstr ""
23057
23058 #. type: verbatim
23059 #: ../resize/virt-resize.pod:130
23060 #, no-wrap
23061 msgid ""
23062 " # virt-resize indisk outdisk\n"
23063 "\n"
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../resize/virt-resize.pod:132
23068 msgid ""
23069 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23070 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23071 "larger, then an extra, empty partition is created at the end of the disk "
23072 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23073 "error."
23074 msgstr ""
23075
23076 #. type: textblock
23077 #: ../resize/virt-resize.pod:138
23078 msgid ""
23079 "More realistically you'd want to expand existing partitions in the disk "
23080 "image by passing extra options (for the full list see the L</OPTIONS> "
23081 "section below)."
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../resize/virt-resize.pod:142
23086 msgid ""
23087 "L</--expand> is the most useful option.  It expands the named partition "
23088 "within the disk to fill any extra space:"
23089 msgstr ""
23090
23091 #. type: verbatim
23092 #: ../resize/virt-resize.pod:145
23093 #, no-wrap
23094 msgid ""
23095 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23096 "\n"
23097 msgstr ""
23098
23099 #. type: textblock
23100 #: ../resize/virt-resize.pod:147
23101 msgid ""
23102 "(In this case, an extra partition is I<not> created at the end of the disk, "
23103 "because there will be no unused space)."
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../resize/virt-resize.pod:150
23108 msgid ""
23109 "L</--resize> is the other commonly used option.  The following would "
23110 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23111 "rest of the available space:"
23112 msgstr ""
23113
23114 #. type: verbatim
23115 #: ../resize/virt-resize.pod:154
23116 #, no-wrap
23117 msgid ""
23118 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23119 "     indisk outdisk\n"
23120 "\n"
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../resize/virt-resize.pod:157
23125 msgid ""
23126 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23127 "if virt-resize knows how, it will resize the contents, the equivalent of "
23128 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23129 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23130 "filesystems, so you would have to online resize them after booting the guest."
23131 msgstr ""
23132
23133 #. type: textblock
23134 #: ../resize/virt-resize.pod:164
23135 msgid "Other options are covered below."
23136 msgstr ""
23137
23138 #. type: =item
23139 #: ../resize/virt-resize.pod:166
23140 msgid "6. Test"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../resize/virt-resize.pod:168
23145 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../resize/virt-resize.pod:170
23150 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23151 msgstr ""
23152
23153 #. type: verbatim
23154 #: ../resize/virt-resize.pod:172
23155 #, no-wrap
23156 msgid ""
23157 " # virsh edit guestname\n"
23158 "\n"
23159 msgstr ""
23160
23161 #. type: textblock
23162 #: ../resize/virt-resize.pod:174
23163 msgid ""
23164 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23165 "html#elementsDisks>"
23166 msgstr ""
23167
23168 #. type: textblock
23169 #: ../resize/virt-resize.pod:177
23170 msgid "Then start up the domain with the new, resized disk:"
23171 msgstr ""
23172
23173 #. type: verbatim
23174 #: ../resize/virt-resize.pod:179
23175 #, no-wrap
23176 msgid ""
23177 " # virsh start guestname\n"
23178 "\n"
23179 msgstr ""
23180
23181 #. type: textblock
23182 #: ../resize/virt-resize.pod:181
23183 msgid ""
23184 "and check that it still works.  See also the L</NOTES> section below for "
23185 "additional information."
23186 msgstr ""
23187
23188 #. type: =item
23189 #: ../resize/virt-resize.pod:184
23190 msgid "7. Resize LVs etc inside the guest"
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../resize/virt-resize.pod:186
23195 msgid "(This can also be done offline using L<guestfish(1)>)"
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../resize/virt-resize.pod:188
23200 msgid ""
23201 "Once the guest has booted you should see the new space available, at least "
23202 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23203 "may need to resize LVs inside PVs, and also resize filesystem types that "
23204 "virt-resize does not know how to expand."
23205 msgstr ""
23206
23207 #. type: =head2
23208 #: ../resize/virt-resize.pod:195
23209 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../resize/virt-resize.pod:197
23214 msgid ""
23215 "Shrinking is somewhat more complex than expanding, and only an overview is "
23216 "given here."
23217 msgstr ""
23218
23219 #. type: textblock
23220 #: ../resize/virt-resize.pod:200
23221 msgid ""
23222 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23223 "filesystems).  The user has to shrink content before passing the disk image "
23224 "to virt-resize, and virt-resize will check that the content has been shrunk "
23225 "properly."
23226 msgstr ""
23227
23228 #. type: textblock
23229 #: ../resize/virt-resize.pod:205
23230 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../resize/virt-resize.pod:207
23235 msgid ""
23236 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23237 "steps 3 and 4 above to allocate a new disk image."
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../resize/virt-resize.pod:210
23242 msgid ""
23243 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23244 msgstr ""
23245
23246 #. type: =head2
23247 #: ../resize/virt-resize.pod:213
23248 msgid "IGNORING OR DELETING PARTITIONS"
23249 msgstr ""
23250
23251 #. type: textblock
23252 #: ../resize/virt-resize.pod:215
23253 msgid ""
23254 "virt-resize also gives a convenient way to ignore or delete partitions when "
23255 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23256 "up the copy where you don't care about the existing contents of a "
23257 "partition.  Deleting a partition removes it completely, but note that it "
23258 "also renumbers any partitions after the one which is deleted, which can "
23259 "leave some guests unbootable."
23260 msgstr ""
23261
23262 #. type: =head2
23263 #: ../resize/virt-resize.pod:222
23264 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23265 msgstr ""
23266
23267 #. type: textblock
23268 #: ../resize/virt-resize.pod:224
23269 msgid ""
23270 "If the input disk is in qcow2 format, then you may prefer that the output is "
23271 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23272 "the fly.  The output format is simply determined by the format of the empty "
23273 "output container that you provide.  Thus to create qcow2 output, use:"
23274 msgstr ""
23275
23276 #. type: verbatim
23277 #: ../resize/virt-resize.pod:230
23278 #, no-wrap
23279 msgid ""
23280 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23281 "\n"
23282 msgstr ""
23283
23284 #. type: textblock
23285 #: ../resize/virt-resize.pod:232
23286 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23287 msgstr ""
23288
23289 #. type: textblock
23290 #: ../resize/virt-resize.pod:234
23291 msgid "Similarly, to get non-sparse raw output use:"
23292 msgstr ""
23293
23294 #. type: verbatim
23295 #: ../resize/virt-resize.pod:236
23296 #, no-wrap
23297 msgid ""
23298 " fallocate -l size outdisk\n"
23299 "\n"
23300 msgstr ""
23301
23302 #. type: textblock
23303 #: ../resize/virt-resize.pod:238
23304 msgid ""
23305 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23306 "dev/zero of=outdisk bs=1M count=..>)"
23307 msgstr ""
23308
23309 #. type: =head2
23310 #: ../resize/virt-resize.pod:241
23311 msgid "LOGICAL PARTITIONS"
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../resize/virt-resize.pod:243
23316 msgid ""
23317 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23318 "tables) cannot be resized."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../resize/virt-resize.pod:246
23323 msgid ""
23324 "To understand what is going on, firstly one of the four partitions C</dev/"
23325 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23326 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23327 "type."
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../resize/virt-resize.pod:251
23332 msgid "Logical partitions live inside the extended partition."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../resize/virt-resize.pod:253
23337 msgid ""
23338 "The extended partition can be expanded, but not shrunk (unless you force it, "
23339 "which is not advisable).  When the extended partition is copied across, all "
23340 "the logical partitions contained inside are copied over implicitly.  Virt-"
23341 "resize does not look inside the extended partition, so it copies the logical "
23342 "partitions blindly."
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:259
23347 msgid ""
23348 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23349 "line.  Doing so will give an error."
23350 msgstr ""
23351
23352 #. type: textblock
23353 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23354 msgid "Display help."
23355 msgstr ""
23356
23357 #. type: =item
23358 #: ../resize/virt-resize.pod:270
23359 msgid "B<--align-first auto>"
23360 msgstr ""
23361
23362 #. type: =item
23363 #: ../resize/virt-resize.pod:272
23364 msgid "B<--align-first never>"
23365 msgstr ""
23366
23367 #. type: =item
23368 #: ../resize/virt-resize.pod:274
23369 msgid "B<--align-first always>"
23370 msgstr ""
23371
23372 #. type: textblock
23373 #: ../resize/virt-resize.pod:276
23374 msgid ""
23375 "Align the first partition for improved performance (see also the I<--"
23376 "alignment> option)."
23377 msgstr ""
23378
23379 #. type: textblock
23380 #: ../resize/virt-resize.pod:279
23381 msgid ""
23382 "The default is I<--align-first auto> which only aligns the first partition "
23383 "if it is safe to do so.  That is, only when we know how to fix the "
23384 "bootloader automatically, and at the moment that can only be done for "
23385 "Windows guests."
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../resize/virt-resize.pod:284
23390 msgid ""
23391 "I<--align-first never> means we never move the first partition.  This is the "
23392 "safest option.  Try this if the guest does not boot after resizing."
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../resize/virt-resize.pod:288
23397 msgid ""
23398 "I<--align-first always> means we always align the first partition (if it "
23399 "needs to be aligned).  For some guests this will break the bootloader, "
23400 "making the guest unbootable."
23401 msgstr ""
23402
23403 #. type: =item
23404 #: ../resize/virt-resize.pod:292
23405 msgid "B<--alignment N>"
23406 msgstr ""
23407
23408 #. type: textblock
23409 #: ../resize/virt-resize.pod:294
23410 msgid ""
23411 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23412 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../resize/virt-resize.pod:298
23417 msgid ""
23418 "Assuming 512 byte sector size inside the guest, here are some suitable "
23419 "values for this:"
23420 msgstr ""
23421
23422 #. type: =item
23423 #: ../resize/virt-resize.pod:303
23424 msgid "I<--alignment 1> (512 bytes)"
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../resize/virt-resize.pod:305
23429 msgid ""
23430 "The partitions would be packed together as closely as possible, but would be "
23431 "completely unaligned.  In some cases this can cause very poor performance.  "
23432 "See L<virt-alignment-scan(1)> for further details."
23433 msgstr ""
23434
23435 #. type: =item
23436 #: ../resize/virt-resize.pod:309
23437 msgid "I<--alignment 8> (4K)"
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../resize/virt-resize.pod:311
23442 msgid ""
23443 "This would be the minimum acceptable alignment for reasonable performance on "
23444 "modern hosts."
23445 msgstr ""
23446
23447 #. type: =item
23448 #: ../resize/virt-resize.pod:314
23449 msgid "I<--alignment 128> (64K)"
23450 msgstr ""
23451
23452 #. type: textblock
23453 #: ../resize/virt-resize.pod:316
23454 msgid ""
23455 "This alignment provides good performance when the host is using high end "
23456 "network storage."
23457 msgstr ""
23458
23459 #. type: =item
23460 #: ../resize/virt-resize.pod:319
23461 msgid "I<--alignment 2048> (1M)"
23462 msgstr ""
23463
23464 #. type: textblock
23465 #: ../resize/virt-resize.pod:321
23466 msgid ""
23467 "This is the standard alignment used by all newly installed guests since "
23468 "around 2008."
23469 msgstr ""
23470
23471 #. type: =item
23472 #: ../resize/virt-resize.pod:326
23473 msgid "B<-d>"
23474 msgstr ""
23475
23476 #. type: =item
23477 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
23478 #: ../tools/virt-win-reg.pl:120
23479 msgid "B<--debug>"
23480 msgstr ""
23481
23482 #. type: textblock
23483 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23484 msgid "Enable debugging messages."
23485 msgstr ""
23486
23487 #. type: =item
23488 #: ../resize/virt-resize.pod:332
23489 msgid "B<--delete part>"
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../resize/virt-resize.pod:334
23494 msgid ""
23495 "Delete the named partition.  It would be more accurate to describe this as "
23496 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23497 "the original disk image is left intact."
23498 msgstr ""
23499
23500 #. type: textblock
23501 #: ../resize/virt-resize.pod:338
23502 msgid ""
23503 "Note that when you delete a partition, then anything contained in the "
23504 "partition is also deleted.  Furthermore, this causes any partitions that "
23505 "come after to be I<renumbered>, which can easily make your guest unbootable."
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
23510 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23511 msgid "You can give this option multiple times."
23512 msgstr ""
23513
23514 #. type: =item
23515 #: ../resize/virt-resize.pod:345
23516 msgid "B<--expand part>"
23517 msgstr ""
23518
23519 #. type: textblock
23520 #: ../resize/virt-resize.pod:347
23521 msgid ""
23522 "Expand the named partition so it uses up all extra space (space left over "
23523 "after any other resize changes that you request have been done)."
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../resize/virt-resize.pod:350
23528 msgid ""
23529 "If virt-resize knows how, it will expand the direct content of the "
23530 "partition.  For example, if the partition is an LVM PV, it will expand the "
23531 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23532 "content it doesn't know about alone."
23533 msgstr ""
23534
23535 #. type: textblock
23536 #: ../resize/virt-resize.pod:355
23537 msgid "Currently virt-resize can resize:"
23538 msgstr ""
23539
23540 #. type: textblock
23541 #: ../resize/virt-resize.pod:361
23542 msgid "ext2, ext3 and ext4 filesystems."
23543 msgstr ""
23544
23545 #. type: textblock
23546 #: ../resize/virt-resize.pod:365
23547 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../resize/virt-resize.pod:367
23552 msgid ""
23553 "The filesystem must have been shut down consistently last time it was used.  "
23554 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23555 "consistency check, so at the first boot after resizing Windows will check "
23556 "the disk."
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../resize/virt-resize.pod:374
23561 msgid ""
23562 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23563 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23564 "resize LVs as desired after boot."
23565 msgstr ""
23566
23567 #. type: textblock
23568 #: ../resize/virt-resize.pod:380
23569 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23570 msgstr ""
23571
23572 #. type: textblock
23573 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23574 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23575 msgstr ""
23576
23577 #. type: =item
23578 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
23579 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23580 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23581 msgid "B<--format> raw"
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23586 msgid ""
23587 "Specify the format of the input disk image.  If this flag is not given then "
23588 "it is auto-detected from the image itself."
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../resize/virt-resize.pod:394
23593 msgid ""
23594 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23595 "AND NON-SPARSE RAW FORMATS>."
23596 msgstr ""
23597
23598 #. type: =item
23599 #: ../resize/virt-resize.pod:397
23600 msgid "B<--ignore part>"
23601 msgstr ""
23602
23603 #. type: textblock
23604 #: ../resize/virt-resize.pod:399
23605 msgid ""
23606 "Ignore the named partition.  Effectively this means the partition is "
23607 "allocated on the destination disk, but the content is not copied across from "
23608 "the source disk.  The content of the partition will be blank (all zero "
23609 "bytes)."
23610 msgstr ""
23611
23612 #. type: =item
23613 #: ../resize/virt-resize.pod:406
23614 msgid "B<--LV-expand logvol>"
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../resize/virt-resize.pod:408
23619 msgid ""
23620 "This takes the logical volume and, as a final step, expands it to fill all "
23621 "the space available in its volume group.  A typical usage, assuming a Linux "
23622 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23623 "lv_root> would be:"
23624 msgstr ""
23625
23626 #. type: verbatim
23627 #: ../resize/virt-resize.pod:413
23628 #, no-wrap
23629 msgid ""
23630 " virt-resize indisk outdisk \\\n"
23631 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23632 "\n"
23633 msgstr ""
23634
23635 #. type: textblock
23636 #: ../resize/virt-resize.pod:416
23637 msgid ""
23638 "This would first expand the partition (and PV), and then expand the root "
23639 "device to fill the extra space in the PV."
23640 msgstr ""
23641
23642 #. type: textblock
23643 #: ../resize/virt-resize.pod:419
23644 msgid ""
23645 "The contents of the LV are also resized if virt-resize knows how to do "
23646 "that.  You can stop virt-resize from trying to expand the content by using "
23647 "the option I<--no-expand-content>."
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../resize/virt-resize.pod:423
23652 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23653 msgstr ""
23654
23655 #. type: textblock
23656 #: ../resize/virt-resize.pod:425
23657 msgid ""
23658 "You can give this option multiple times, I<but> it doesn't make sense to do "
23659 "this unless the logical volumes you specify are all in different volume "
23660 "groups."
23661 msgstr ""
23662
23663 #. type: =item
23664 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23665 msgid "B<--machine-readable>"
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23670 msgid ""
23671 "This option is used to make the output more machine friendly when being "
23672 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23673 msgstr ""
23674
23675 #. type: =item
23676 #: ../resize/virt-resize.pod:437
23677 msgid "B<--dryrun>"
23678 msgstr ""
23679
23680 #. type: textblock
23681 #: ../resize/virt-resize.pod:439
23682 msgid "Print a summary of what would be done, but don't do anything."
23683 msgstr ""
23684
23685 #. type: =item
23686 #: ../resize/virt-resize.pod:441
23687 msgid "B<--no-copy-boot-loader>"
23688 msgstr ""
23689
23690 #. type: textblock
23691 #: ../resize/virt-resize.pod:443
23692 msgid ""
23693 "By default, virt-resize copies over some sectors at the start of the disk "
23694 "(up to the beginning of the first partition).  Commonly these sectors "
23695 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23696 "in order for the guest to boot correctly."
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../resize/virt-resize.pod:448
23701 msgid ""
23702 "If you specify this flag, then this initial copy is not done.  You may need "
23703 "to reinstall the boot loader in this case."
23704 msgstr ""
23705
23706 #. type: =item
23707 #: ../resize/virt-resize.pod:451
23708 msgid "B<--no-extra-partition>"
23709 msgstr ""
23710
23711 #. type: textblock
23712 #: ../resize/virt-resize.pod:453
23713 msgid ""
23714 "By default, virt-resize creates an extra partition if there is any extra, "
23715 "unused space after all resizing has happened.  Use this option to prevent "
23716 "the extra partition from being created.  If you do this then the extra space "
23717 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23718 "tool in the guest."
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../resize/virt-resize.pod:459
23723 msgid ""
23724 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23725 "will be created."
23726 msgstr ""
23727
23728 #. type: =item
23729 #: ../resize/virt-resize.pod:462
23730 msgid "B<--no-expand-content>"
23731 msgstr ""
23732
23733 #. type: textblock
23734 #: ../resize/virt-resize.pod:464
23735 msgid ""
23736 "By default, virt-resize will try to expand the direct contents of "
23737 "partitions, if it knows how (see I<--expand> option above)."
23738 msgstr ""
23739
23740 #. type: textblock
23741 #: ../resize/virt-resize.pod:467
23742 msgid ""
23743 "If you give the I<--no-expand-content> option then virt-resize will not "
23744 "attempt this."
23745 msgstr ""
23746
23747 #. type: =item
23748 #: ../resize/virt-resize.pod:470
23749 msgid "B<--ntfsresize-force>"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../resize/virt-resize.pod:472
23754 msgid ""
23755 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23756 "the NTFS disk is marked as needing a consistency check.  You have to use "
23757 "this option if you want to resize a Windows guest multiple times without "
23758 "booting into Windows between each resize."
23759 msgstr ""
23760
23761 #. type: =item
23762 #: ../resize/virt-resize.pod:478
23763 msgid "B<--output-format> raw"
23764 msgstr ""
23765
23766 #. type: textblock
23767 #: ../resize/virt-resize.pod:480
23768 msgid ""
23769 "Specify the format of the output disk image.  If this flag is not given then "
23770 "it is auto-detected from the image itself."
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../resize/virt-resize.pod:486
23775 msgid ""
23776 "Note that this option I<does not create> the output format.  This option "
23777 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23778 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23779 "SPARSE RAW FORMATS>."
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../resize/virt-resize.pod:495
23784 msgid "Don't print the summary."
23785 msgstr ""
23786
23787 #. type: =item
23788 #: ../resize/virt-resize.pod:497
23789 msgid "B<--resize part=size>"
23790 msgstr ""
23791
23792 #. type: textblock
23793 #: ../resize/virt-resize.pod:499
23794 msgid ""
23795 "Resize the named partition (expanding or shrinking it) so that it has the "
23796 "given size."
23797 msgstr ""
23798
23799 #. type: textblock
23800 #: ../resize/virt-resize.pod:502
23801 msgid ""
23802 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23803 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23804 "size; or as a relative number or percentage.  For example:"
23805 msgstr ""
23806
23807 #. type: verbatim
23808 #: ../resize/virt-resize.pod:508
23809 #, no-wrap
23810 msgid ""
23811 " --resize /dev/sda2=10G\n"
23812 "\n"
23813 msgstr ""
23814
23815 #. type: verbatim
23816 #: ../resize/virt-resize.pod:510
23817 #, no-wrap
23818 msgid ""
23819 " --resize /dev/sda4=90%\n"
23820 "\n"
23821 msgstr ""
23822
23823 #. type: verbatim
23824 #: ../resize/virt-resize.pod:512
23825 #, no-wrap
23826 msgid ""
23827 " --resize /dev/sda2=+1G\n"
23828 "\n"
23829 msgstr ""
23830
23831 #. type: verbatim
23832 #: ../resize/virt-resize.pod:514
23833 #, no-wrap
23834 msgid ""
23835 " --resize /dev/sda2=-200M\n"
23836 "\n"
23837 msgstr ""
23838
23839 #. type: verbatim
23840 #: ../resize/virt-resize.pod:516
23841 #, no-wrap
23842 msgid ""
23843 " --resize /dev/sda1=+128K\n"
23844 "\n"
23845 msgstr ""
23846
23847 #. type: verbatim
23848 #: ../resize/virt-resize.pod:518
23849 #, no-wrap
23850 msgid ""
23851 " --resize /dev/sda1=+10%\n"
23852 "\n"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../resize/virt-resize.pod:520
23857 #, no-wrap
23858 msgid ""
23859 " --resize /dev/sda1=-10%\n"
23860 "\n"
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../resize/virt-resize.pod:522
23865 msgid ""
23866 "You can increase the size of any partition.  Virt-resize will expand the "
23867 "direct content of the partition if it knows how (see I<--expand> below)."
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../resize/virt-resize.pod:526
23872 msgid ""
23873 "You can only I<decrease> the size of partitions that contain filesystems or "
23874 "PVs which have already been shrunk.  Virt-resize will check this has been "
23875 "done before proceeding, or else will print an error (see also I<--resize-"
23876 "force>)."
23877 msgstr ""
23878
23879 #. type: =item
23880 #: ../resize/virt-resize.pod:533
23881 msgid "B<--resize-force part=size>"
23882 msgstr ""
23883
23884 #. type: textblock
23885 #: ../resize/virt-resize.pod:535
23886 msgid ""
23887 "This is the same as I<--resize> except that it will let you decrease the "
23888 "size of any partition.  Generally this means you will lose any data which "
23889 "was at the end of the partition you shrink, but you may not care about that "
23890 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23891 "as a swap partition)."
23892 msgstr ""
23893
23894 #. type: textblock
23895 #: ../resize/virt-resize.pod:541
23896 msgid "See also the I<--ignore> option."
23897 msgstr ""
23898
23899 #. type: =item
23900 #: ../resize/virt-resize.pod:543
23901 msgid "B<--shrink part>"
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../resize/virt-resize.pod:545
23906 msgid ""
23907 "Shrink the named partition until the overall disk image fits in the "
23908 "destination.  The named partition B<must> contain a filesystem or PV which "
23909 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23910 "online tools).  Virt-resize will check this and give an error if it has not "
23911 "been done."
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:551
23916 msgid ""
23917 "The amount by which the overall disk must be shrunk (after carrying out all "
23918 "other operations requested by the user) is called the \"deficit\".  For "
23919 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23920 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23921 "would give an error unless the user specified a partition to shrink and that "
23922 "partition had more than a gigabyte of free space."
23923 msgstr ""
23924
23925 #. type: =head1
23926 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
23927 msgid "MACHINE READABLE OUTPUT"
23928 msgstr ""
23929
23930 #. type: textblock
23931 #: ../resize/virt-resize.pod:571
23932 msgid ""
23933 "The I<--machine-readable> option can be used to make the output more machine "
23934 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23935 "etc."
23936 msgstr ""
23937
23938 #. type: textblock
23939 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
23940 msgid "There are two ways to use this option."
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../resize/virt-resize.pod:577
23945 msgid ""
23946 "Firstly use the option on its own to query the capabilities of the virt-"
23947 "resize binary.  Typical output looks like this:"
23948 msgstr ""
23949
23950 #. type: verbatim
23951 #: ../resize/virt-resize.pod:580
23952 #, no-wrap
23953 msgid ""
23954 " $ virt-resize --machine-readable\n"
23955 " virt-resize\n"
23956 " ntfsresize-force\n"
23957 " 32bitok\n"
23958 " ntfs\n"
23959 " btrfs\n"
23960 "\n"
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
23965 msgid ""
23966 "A list of features is printed, one per line, and the program exits with "
23967 "status 0."
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
23972 msgid ""
23973 "Secondly use the option in conjunction with other options to make the "
23974 "regular program output more machine friendly."
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
23979 msgid "At the moment this means:"
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
23984 msgid ""
23985 "Progress bar messages can be parsed from stdout by looking for this regular "
23986 "expression:"
23987 msgstr ""
23988
23989 #. type: verbatim
23990 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
23991 #, no-wrap
23992 msgid ""
23993 " ^[0-9]+/[0-9]+$\n"
23994 "\n"
23995 msgstr ""
23996
23997 #. type: textblock
23998 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
23999 msgid ""
24000 "The calling program should treat messages sent to stdout (except for "
24001 "progress bar messages) as status messages.  They can be logged and/or "
24002 "displayed to the user."
24003 msgstr ""
24004
24005 #. type: textblock
24006 #: ../resize/virt-resize.pod:612
24007 msgid ""
24008 "The calling program should treat messages sent to stderr as error messages.  "
24009 "In addition, virt-resize exits with a non-zero status code if there was a "
24010 "fatal error."
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:618
24015 msgid ""
24016 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24017 "readable> option and will return an error."
24018 msgstr ""
24019
24020 #. type: =head2
24021 #: ../resize/virt-resize.pod:623
24022 msgid "\"Partition 1 does not end on cylinder boundary.\""
24023 msgstr ""
24024
24025 #. type: textblock
24026 #: ../resize/virt-resize.pod:625
24027 msgid ""
24028 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24029 "alignment> parameter).  Usually this means the partitions will not be "
24030 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24031 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24032 "drives.  Alignment of partitions to cylinders is not required by any modern "
24033 "operating system."
24034 msgstr ""
24035
24036 #. type: =head2
24037 #: ../resize/virt-resize.pod:632
24038 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24039 msgstr ""
24040
24041 #. type: textblock
24042 #: ../resize/virt-resize.pod:634
24043 msgid ""
24044 "In Windows Vista and later versions, Microsoft switched to using a separate "
24045 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24046 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24047 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24048 "the second partition (ie. C: drive)  should work."
24049 msgstr ""
24050
24051 #. type: textblock
24052 #: ../resize/virt-resize.pod:641
24053 msgid ""
24054 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24055 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24056 "it find errors) is nothing to worry about."
24057 msgstr ""
24058
24059 #. type: =head2
24060 #: ../resize/virt-resize.pod:645
24061 msgid "GUEST BOOT STUCK AT \"GRUB\""
24062 msgstr ""
24063
24064 #. type: textblock
24065 #: ../resize/virt-resize.pod:647
24066 msgid ""
24067 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24068 "printing C<GRUB> on the console, try reinstalling grub."
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../resize/virt-resize.pod:650
24073 #, no-wrap
24074 msgid ""
24075 " guestfish -i -a newdisk\n"
24076 " ><fs> cat /boot/grub/device.map\n"
24077 " # check the contents of this file are sensible or\n"
24078 " # edit the file if necessary\n"
24079 " ><fs> grub-install / /dev/vda\n"
24080 " ><fs> exit\n"
24081 "\n"
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../resize/virt-resize.pod:657
24086 msgid ""
24087 "For more flexible guest reconfiguration, including if you need to specify "
24088 "other parameters to grub-install, use L<virt-rescue(1)>."
24089 msgstr ""
24090
24091 #. type: =head1
24092 #: ../resize/virt-resize.pod:660
24093 msgid "ALTERNATIVE TOOLS"
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../resize/virt-resize.pod:662
24098 msgid ""
24099 "There are several proprietary tools for resizing partitions.  We won't "
24100 "mention any here."
24101 msgstr ""
24102
24103 #. type: textblock
24104 #: ../resize/virt-resize.pod:665
24105 msgid ""
24106 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24107 "operations on disk images.  They can resize and move partitions, but I don't "
24108 "think they can do anything with the contents, and they certainly don't "
24109 "understand LVM."
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../resize/virt-resize.pod:670
24114 msgid ""
24115 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24116 "but at a much lower level.  You will probably end up hand-calculating sector "
24117 "offsets, which is something that virt-resize was designed to avoid.  If you "
24118 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24119 "I<--debug> flag."
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../resize/virt-resize.pod:690
24124 msgid ""
24125 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24126 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24127 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24128 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24129 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../ruby/examples/guestfs-ruby.pod:5
24134 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24135 msgstr ""
24136
24137 #. type: verbatim
24138 #: ../ruby/examples/guestfs-ruby.pod:9
24139 #, no-wrap
24140 msgid ""
24141 " require 'guestfs'\n"
24142 " g = Guestfs::Guestfs.new()\n"
24143 " g.add_drive_opts(\"disk.img\",\n"
24144 "                  :readonly => 1, :format => \"raw\")\n"
24145 " g.launch()\n"
24146 "\n"
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../ruby/examples/guestfs-ruby.pod:17
24151 msgid ""
24152 "This manual page documents how to call libguestfs from the Ruby programming "
24153 "language.  This page just documents the differences from the C API and gives "
24154 "some examples.  If you are not familiar with using libguestfs, you also need "
24155 "to read L<guestfs(3)>."
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../ruby/examples/guestfs-ruby.pod:24
24160 msgid ""
24161 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24162 "This has a single parameter which is the error message (a string)."
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../ruby/examples/guestfs-ruby.pod:38
24167 msgid ""
24168 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24169 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24170 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../sparsify/virt-sparsify.pod:5
24175 msgid "virt-sparsify - Make a virtual machine disk sparse"
24176 msgstr ""
24177
24178 #. type: verbatim
24179 #: ../sparsify/virt-sparsify.pod:9
24180 #, no-wrap
24181 msgid ""
24182 " virt-sparsify [--options] indisk outdisk\n"
24183 "\n"
24184 msgstr ""
24185
24186 #. type: textblock
24187 #: ../sparsify/virt-sparsify.pod:13
24188 msgid ""
24189 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24190 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24191 "the disk image can be converted back to free space on the host."
24192 msgstr ""
24193
24194 #. type: textblock
24195 #: ../sparsify/virt-sparsify.pod:18
24196 msgid ""
24197 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24198 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24199 msgstr ""
24200
24201 #. type: textblock
24202 #: ../sparsify/virt-sparsify.pod:21
24203 msgid ""
24204 "Virt-sparsify can also convert between some disk formats, for example "
24205 "converting a raw disk image to a thin-provisioned qcow2 image."
24206 msgstr ""
24207
24208 #. type: textblock
24209 #: ../sparsify/virt-sparsify.pod:24
24210 msgid ""
24211 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24212 "machines.  If a virtual machine has more than one attached disk, you must "
24213 "sparsify each one separately."
24214 msgstr ""
24215
24216 #. type: =head2
24217 #: ../sparsify/virt-sparsify.pod:28
24218 msgid "IMPORTANT LIMITATIONS"
24219 msgstr ""
24220
24221 #. type: textblock
24222 #: ../sparsify/virt-sparsify.pod:34
24223 msgid ""
24224 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24225 "image to a destination image, leaving the source unchanged.  I<Check that "
24226 "the sparsification was successful before deleting the source image>."
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../sparsify/virt-sparsify.pod:41
24231 msgid "The virtual machine I<must be shut down> before using this tool."
24232 msgstr ""
24233
24234 #. type: textblock
24235 #: ../sparsify/virt-sparsify.pod:45
24236 msgid ""
24237 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24238 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24239 "usually much less space is required."
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../sparsify/virt-sparsify.pod:51
24244 msgid ""
24245 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../sparsify/virt-sparsify.pod:56
24250 msgid "Virt-sparsify cannot handle encrypted disks."
24251 msgstr ""
24252
24253 #. type: textblock
24254 #: ../sparsify/virt-sparsify.pod:60
24255 msgid ""
24256 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24257 "this space is often used for critical items like bootloaders so it's not "
24258 "really unused."
24259 msgstr ""
24260
24261 #. type: textblock
24262 #: ../sparsify/virt-sparsify.pod:66
24263 msgid ""
24264 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24265 "to do this unless we can be sure there is no hibernation data, so at the "
24266 "moment swap partitions are ignored."
24267 msgstr ""
24268
24269 #. type: textblock
24270 #: ../sparsify/virt-sparsify.pod:72
24271 msgid ""
24272 "You may also want to read the manual pages for the associated tools L<virt-"
24273 "filesystems(1)> and L<virt-df(1)> before starting."
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../sparsify/virt-sparsify.pod:77
24278 msgid "Typical usage is:"
24279 msgstr ""
24280
24281 #. type: verbatim
24282 #: ../sparsify/virt-sparsify.pod:79
24283 #, no-wrap
24284 msgid ""
24285 " virt-sparsify indisk outdisk\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../sparsify/virt-sparsify.pod:81
24291 msgid ""
24292 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24293 "is created, or overwritten if it already exists.  The format of the input "
24294 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../sparsify/virt-sparsify.pod:86
24299 msgid "To convert between formats, use the I<--convert> option:"
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../sparsify/virt-sparsify.pod:88
24304 #, no-wrap
24305 msgid ""
24306 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24307 "\n"
24308 msgstr ""
24309
24310 #. type: textblock
24311 #: ../sparsify/virt-sparsify.pod:90
24312 msgid ""
24313 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24314 "can find within the source disk image.  You can get it to ignore (don't zero "
24315 "free space on) certain filesystems by doing:"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../sparsify/virt-sparsify.pod:94
24320 #, no-wrap
24321 msgid ""
24322 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24323 "\n"
24324 msgstr ""
24325
24326 #. type: textblock
24327 #: ../sparsify/virt-sparsify.pod:96
24328 msgid ""
24329 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24330 msgstr ""
24331
24332 #. type: =item
24333 #: ../sparsify/virt-sparsify.pod:107
24334 msgid "B<--convert> raw"
24335 msgstr ""
24336
24337 #. type: =item
24338 #: ../sparsify/virt-sparsify.pod:109
24339 msgid "B<--convert> qcow2"
24340 msgstr ""
24341
24342 #. type: =item
24343 #: ../sparsify/virt-sparsify.pod:111
24344 msgid "B<--convert> [other formats]"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../sparsify/virt-sparsify.pod:113
24349 msgid ""
24350 "Use C<output-format> as the format for the destination image.  If this is "
24351 "not specified, then the input format is used."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../sparsify/virt-sparsify.pod:116
24356 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24357 msgstr ""
24358
24359 #. type: textblock
24360 #: ../sparsify/virt-sparsify.pod:118
24361 msgid ""
24362 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24363 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../sparsify/virt-sparsify.pod:122
24368 msgid ""
24369 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24370 "sparsify doesn't need to try to guess the input format."
24371 msgstr ""
24372
24373 #. type: =item
24374 #: ../sparsify/virt-sparsify.pod:127
24375 msgid "B<--format> qcow2"
24376 msgstr ""
24377
24378 #. type: =item
24379 #: ../sparsify/virt-sparsify.pod:135
24380 msgid "B<--ignore> filesystem"
24381 msgstr ""
24382
24383 #. type: =item
24384 #: ../sparsify/virt-sparsify.pod:137
24385 msgid "B<--ignore> volgroup"
24386 msgstr ""
24387
24388 #. type: textblock
24389 #: ../sparsify/virt-sparsify.pod:139
24390 msgid ""
24391 "Ignore the named filesystem.  Free space on the filesystem will not be "
24392 "zeroed, but existing blocks of zeroes will still be sparsified."
24393 msgstr ""
24394
24395 #. type: textblock
24396 #: ../sparsify/virt-sparsify.pod:142
24397 msgid ""
24398 "In the second form, this ignores the named volume group.  Use the volume "
24399 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24400 msgstr ""
24401
24402 #. type: textblock
24403 #: ../sparsify/virt-sparsify.pod:157
24404 msgid "This disables progress bars and other unnecessary output."
24405 msgstr ""
24406
24407 #. type: textblock
24408 #: ../sparsify/virt-sparsify.pod:179
24409 msgid ""
24410 "The I<--machine-readable> option can be used to make the output more machine "
24411 "friendly, which is useful when calling virt-sparsify from other programs, "
24412 "GUIs etc."
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../sparsify/virt-sparsify.pod:185
24417 msgid ""
24418 "Firstly use the option on its own to query the capabilities of the virt-"
24419 "sparsify binary.  Typical output looks like this:"
24420 msgstr ""
24421
24422 #. type: verbatim
24423 #: ../sparsify/virt-sparsify.pod:188
24424 #, no-wrap
24425 msgid ""
24426 " $ virt-sparsify --machine-readable\n"
24427 " virt-sparsify\n"
24428 " ntfs\n"
24429 " btrfs\n"
24430 "\n"
24431 msgstr ""
24432
24433 #. type: textblock
24434 #: ../sparsify/virt-sparsify.pod:218
24435 msgid ""
24436 "The calling program should treat messages sent to stderr as error messages.  "
24437 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24438 "fatal error."
24439 msgstr ""
24440
24441 #. type: textblock
24442 #: ../sparsify/virt-sparsify.pod:224
24443 msgid ""
24444 "All versions of virt-sparsify have supported the I<--machine-readable> "
24445 "option."
24446 msgstr ""
24447
24448 #. type: textblock
24449 #: ../sparsify/virt-sparsify.pod:238
24450 msgid ""
24451 "Location of the temporary directory used for the potentially large temporary "
24452 "overlay file."
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../sparsify/virt-sparsify.pod:241
24457 msgid ""
24458 "You should ensure there is enough free space in the worst case for a full "
24459 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24460 "to another directory that has enough space."
24461 msgstr ""
24462
24463 #. type: textblock
24464 #: ../sparsify/virt-sparsify.pod:245
24465 msgid "This defaults to C</tmp>."
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../sparsify/virt-sparsify.pod:249
24470 msgid ""
24471 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24472 msgstr ""
24473
24474 #. type: textblock
24475 #: ../sparsify/virt-sparsify.pod:253
24476 msgid ""
24477 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24478 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24479 "(1)>, L<http://libguestfs.org/>."
24480 msgstr ""
24481
24482 #. type: =head2
24483 #: ../src/guestfs-actions.pod:1
24484 msgid "guestfs_add_cdrom"
24485 msgstr ""
24486
24487 #. type: verbatim
24488 #: ../src/guestfs-actions.pod:3
24489 #, no-wrap
24490 msgid ""
24491 " int\n"
24492 " guestfs_add_cdrom (guestfs_h *g,\n"
24493 "                    const char *filename);\n"
24494 "\n"
24495 msgstr ""
24496
24497 #. type: textblock
24498 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24499 #: ../src/guestfs-actions.pod:276
24500 msgid ""
24501 "I<This function is deprecated.> In new code, use the L</"
24502 "guestfs_add_drive_opts> call instead."
24503 msgstr ""
24504
24505 #. type: textblock
24506 #: ../src/guestfs-actions.pod:24
24507 msgid ""
24508 "This call checks for the existence of C<filename>.  This stops you from "
24509 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24510 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24511 "instead."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../src/guestfs-actions.pod:31
24516 msgid ""
24517 "If you just want to add an ISO file (often you use this as an efficient way "
24518 "to transfer large files into the guest), then you should probably use "
24519 "C<guestfs_add_drive_ro> instead."
24520 msgstr ""
24521
24522 #. type: textblock
24523 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24524 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24525 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24526 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24527 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24528 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24529 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24530 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24531 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24532 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24533 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24534 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24535 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24536 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24537 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1325
24538 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1427
24539 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1535
24540 #: ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1568
24541 #: ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1666
24542 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1722
24543 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1877
24544 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:2119
24545 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:2228
24546 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2880
24547 #: ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2976
24548 #: ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4048
24549 #: ../src/guestfs-actions.pod:4073 ../src/guestfs-actions.pod:4262
24550 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:4289
24551 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4318
24552 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4426
24553 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4463
24554 #: ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4509
24555 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4563
24556 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:4617
24557 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4665
24558 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4694
24559 #: ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4726
24560 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4839
24561 #: ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4903
24562 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:4939
24563 #: ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:4969
24564 #: ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5000
24565 #: ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5042
24566 #: ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5178
24567 #: ../src/guestfs-actions.pod:5209 ../src/guestfs-actions.pod:5228
24568 #: ../src/guestfs-actions.pod:5247 ../src/guestfs-actions.pod:5259
24569 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5289
24570 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5319
24571 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5377
24572 #: ../src/guestfs-actions.pod:5416 ../src/guestfs-actions.pod:5436
24573 #: ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5467
24574 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5569
24575 #: ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5659
24576 #: ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5704
24577 #: ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:5862
24578 #: ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:5941
24579 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:6009
24580 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6092
24581 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
24582 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
24583 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6460
24584 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6486
24585 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6512
24586 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:6549
24587 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6587
24588 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6635
24589 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676
24590 #: ../src/guestfs-actions.pod:6695 ../src/guestfs-actions.pod:6716
24591 #: ../src/guestfs-actions.pod:6735 ../src/guestfs-actions.pod:6752
24592 #: ../src/guestfs-actions.pod:6771 ../src/guestfs-actions.pod:6799
24593 #: ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6842
24594 #: ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:6882
24595 #: ../src/guestfs-actions.pod:6901 ../src/guestfs-actions.pod:6916
24596 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6979
24597 #: ../src/guestfs-actions.pod:7009 ../src/guestfs-actions.pod:7042
24598 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7278
24599 #: ../src/guestfs-actions.pod:7290 ../src/guestfs-actions.pod:7303
24600 #: ../src/guestfs-actions.pod:7316 ../src/guestfs-actions.pod:7338
24601 #: ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7364
24602 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7392
24603 #: ../src/guestfs-actions.pod:7451 ../src/guestfs-actions.pod:7468
24604 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7500
24605 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7530
24606 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7586
24607 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7641
24608 #: ../src/guestfs-actions.pod:7654 ../src/guestfs-actions.pod:7672
24609 #: ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7742
24610 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7873
24611 #: ../src/guestfs-actions.pod:7887 ../src/guestfs-actions.pod:7942
24612 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:8000
24613 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8096
24614 #: ../src/guestfs-actions.pod:8116 ../src/guestfs-actions.pod:8149
24615 #: ../src/guestfs-actions.pod:8213 ../src/guestfs-actions.pod:8236
24616 #: ../src/guestfs-actions.pod:8265
24617 msgid "This function returns 0 on success or -1 on error."
24618 msgstr ""
24619
24620 #. type: textblock
24621 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24622 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2342
24623 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:2565
24624 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4055
24625 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6637
24626 #: ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6903
24627 #: ../src/guestfs-actions.pod:7394 ../src/guestfs-actions.pod:7519
24628 #: ../src/guestfs-actions.pod:8042
24629 msgid "(Added in 0.3)"
24630 msgstr ""
24631
24632 #. type: =head2
24633 #: ../src/guestfs-actions.pod:41
24634 msgid "guestfs_add_domain"
24635 msgstr ""
24636
24637 #. type: verbatim
24638 #: ../src/guestfs-actions.pod:43
24639 #, no-wrap
24640 msgid ""
24641 " int\n"
24642 " guestfs_add_domain (guestfs_h *g,\n"
24643 "                     const char *dom,\n"
24644 "                     ...);\n"
24645 "\n"
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24650 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
24651 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1297
24652 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1415
24653 #: ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:3233
24654 #: ../src/guestfs-actions.pod:5054 ../src/guestfs-actions.pod:5363
24655 #: ../src/guestfs-actions.pod:5580
24656 msgid ""
24657 "You may supply a list of optional arguments to this call.  Use zero or more "
24658 "of the following pairs of parameters, and terminate the list with C<-1> on "
24659 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24660 msgstr ""
24661
24662 #. type: verbatim
24663 #: ../src/guestfs-actions.pod:53
24664 #, no-wrap
24665 msgid ""
24666 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24667 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24668 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24669 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24670 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24671 "\n"
24672 msgstr ""
24673
24674 #. type: textblock
24675 #: ../src/guestfs-actions.pod:59
24676 msgid ""
24677 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24678 "It works by connecting to libvirt, requesting the domain and domain XML from "
24679 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24680 "one."
24681 msgstr ""
24682
24683 #. type: textblock
24684 #: ../src/guestfs-actions.pod:94
24685 msgid ""
24686 "The other optional parameters are passed directly through to "
24687 "C<guestfs_add_drive_opts>."
24688 msgstr ""
24689
24690 #. type: textblock
24691 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
24692 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
24693 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
24694 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1742
24695 #: ../src/guestfs-actions.pod:2098 ../src/guestfs-actions.pod:2301
24696 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2463
24697 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2529
24698 #: ../src/guestfs-actions.pod:2552 ../src/guestfs-actions.pod:2867
24699 #: ../src/guestfs-actions.pod:3351 ../src/guestfs-actions.pod:3369
24700 #: ../src/guestfs-actions.pod:5539 ../src/guestfs-actions.pod:5759
24701 #: ../src/guestfs-actions.pod:5997 ../src/guestfs-actions.pod:6189
24702 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:7627
24703 #: ../src/guestfs-actions.pod:8053 ../src/guestfs-actions.pod:8066
24704 #: ../src/guestfs-actions.pod:8079
24705 msgid "On error this function returns -1."
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:99
24710 msgid "(Added in 1.7.4)"
24711 msgstr ""
24712
24713 #. type: =head2
24714 #: ../src/guestfs-actions.pod:101
24715 msgid "guestfs_add_domain_va"
24716 msgstr ""
24717
24718 #. type: verbatim
24719 #: ../src/guestfs-actions.pod:103
24720 #, no-wrap
24721 msgid ""
24722 " int\n"
24723 " guestfs_add_domain_va (guestfs_h *g,\n"
24724 "                        const char *dom,\n"
24725 "                        va_list args);\n"
24726 "\n"
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../src/guestfs-actions.pod:108
24731 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24736 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
24737 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
24738 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
24739 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
24740 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1354
24741 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1405
24742 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
24743 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1512
24744 #: ../src/guestfs-actions.pod:3317 ../src/guestfs-actions.pod:3329
24745 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5131
24746 #: ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5403
24747 #: ../src/guestfs-actions.pod:5629 ../src/guestfs-actions.pod:5640
24748 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../src/guestfs-actions.pod:112
24753 msgid "guestfs_add_domain_argv"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../src/guestfs-actions.pod:114
24758 #, no-wrap
24759 msgid ""
24760 " int\n"
24761 " guestfs_add_domain_argv (guestfs_h *g,\n"
24762 "                          const char *dom,\n"
24763 "                          const struct guestfs_add_domain_argv *optargs);\n"
24764 "\n"
24765 msgstr ""
24766
24767 #. type: textblock
24768 #: ../src/guestfs-actions.pod:119
24769 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24770 msgstr ""
24771
24772 #. type: =head2
24773 #: ../src/guestfs-actions.pod:123
24774 msgid "guestfs_add_drive"
24775 msgstr ""
24776
24777 #. type: verbatim
24778 #: ../src/guestfs-actions.pod:125
24779 #, no-wrap
24780 msgid ""
24781 " int\n"
24782 " guestfs_add_drive (guestfs_h *g,\n"
24783 "                    const char *filename);\n"
24784 "\n"
24785 msgstr ""
24786
24787 #. type: textblock
24788 #: ../src/guestfs-actions.pod:129
24789 msgid ""
24790 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24791 "optional parameters, so the disk is added writable, with the format being "
24792 "detected automatically."
24793 msgstr ""
24794
24795 #. type: textblock
24796 #: ../src/guestfs-actions.pod:133
24797 msgid ""
24798 "Automatic detection of the format opens you up to a potential security hole "
24799 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24800 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24801 "you should think about replacing calls to this function with calls to "
24802 "C<guestfs_add_drive_opts>, and specifying the format."
24803 msgstr ""
24804
24805 #. type: =head2
24806 #: ../src/guestfs-actions.pod:144
24807 msgid "guestfs_add_drive_opts"
24808 msgstr ""
24809
24810 #. type: verbatim
24811 #: ../src/guestfs-actions.pod:146
24812 #, no-wrap
24813 msgid ""
24814 " int\n"
24815 " guestfs_add_drive_opts (guestfs_h *g,\n"
24816 "                         const char *filename,\n"
24817 "                         ...);\n"
24818 "\n"
24819 msgstr ""
24820
24821 #. type: verbatim
24822 #: ../src/guestfs-actions.pod:156
24823 #, no-wrap
24824 msgid ""
24825 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24826 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24827 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24828 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24829 "\n"
24830 msgstr ""
24831
24832 #. type: textblock
24833 #: ../src/guestfs-actions.pod:186
24834 msgid ""
24835 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24836 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24837 "Possible formats include C<raw> and C<qcow2>."
24838 msgstr ""
24839
24840 #. type: textblock
24841 #: ../src/guestfs-actions.pod:197
24842 msgid ""
24843 "This rarely-used option lets you emulate the behaviour of the deprecated "
24844 "C<guestfs_add_drive_with_if> call (q.v.)"
24845 msgstr ""
24846
24847 #. type: textblock
24848 #: ../src/guestfs-actions.pod:209
24849 msgid "(Added in 1.5.23)"
24850 msgstr ""
24851
24852 #. type: =head2
24853 #: ../src/guestfs-actions.pod:211
24854 msgid "guestfs_add_drive_opts_va"
24855 msgstr ""
24856
24857 #. type: verbatim
24858 #: ../src/guestfs-actions.pod:213
24859 #, no-wrap
24860 msgid ""
24861 " int\n"
24862 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24863 "                            const char *filename,\n"
24864 "                            va_list args);\n"
24865 "\n"
24866 msgstr ""
24867
24868 #. type: textblock
24869 #: ../src/guestfs-actions.pod:218
24870 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24871 msgstr ""
24872
24873 #. type: =head2
24874 #: ../src/guestfs-actions.pod:222
24875 msgid "guestfs_add_drive_opts_argv"
24876 msgstr ""
24877
24878 #. type: verbatim
24879 #: ../src/guestfs-actions.pod:224
24880 #, no-wrap
24881 msgid ""
24882 " int\n"
24883 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24884 "                              const char *filename,\n"
24885 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24886 "\n"
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../src/guestfs-actions.pod:229
24891 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24892 msgstr ""
24893
24894 #. type: =head2
24895 #: ../src/guestfs-actions.pod:233
24896 msgid "guestfs_add_drive_ro"
24897 msgstr ""
24898
24899 #. type: verbatim
24900 #: ../src/guestfs-actions.pod:235
24901 #, no-wrap
24902 msgid ""
24903 " int\n"
24904 " guestfs_add_drive_ro (guestfs_h *g,\n"
24905 "                       const char *filename);\n"
24906 "\n"
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../src/guestfs-actions.pod:239
24911 msgid ""
24912 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24913 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24914 "disk is added read-only, with the format being detected automatically."
24915 msgstr ""
24916
24917 #. type: textblock
24918 #: ../src/guestfs-actions.pod:246
24919 msgid "(Added in 1.0.38)"
24920 msgstr ""
24921
24922 #. type: =head2
24923 #: ../src/guestfs-actions.pod:248
24924 msgid "guestfs_add_drive_ro_with_if"
24925 msgstr ""
24926
24927 #. type: verbatim
24928 #: ../src/guestfs-actions.pod:250
24929 #, no-wrap
24930 msgid ""
24931 " int\n"
24932 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24933 "                               const char *filename,\n"
24934 "                               const char *iface);\n"
24935 "\n"
24936 msgstr ""
24937
24938 #. type: textblock
24939 #: ../src/guestfs-actions.pod:262
24940 msgid ""
24941 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24942 "QEMU interface emulation to use at run time."
24943 msgstr ""
24944
24945 #. type: textblock
24946 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
24947 #: ../src/guestfs-actions.pod:2826
24948 msgid "(Added in 1.0.84)"
24949 msgstr ""
24950
24951 #. type: =head2
24952 #: ../src/guestfs-actions.pod:269
24953 msgid "guestfs_add_drive_with_if"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../src/guestfs-actions.pod:271
24958 #, no-wrap
24959 msgid ""
24960 " int\n"
24961 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24962 "                            const char *filename,\n"
24963 "                            const char *iface);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../src/guestfs-actions.pod:283
24969 msgid ""
24970 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24971 "QEMU interface emulation to use at run time."
24972 msgstr ""
24973
24974 #. type: =head2
24975 #: ../src/guestfs-actions.pod:290
24976 msgid "guestfs_aug_clear"
24977 msgstr ""
24978
24979 #. type: verbatim
24980 #: ../src/guestfs-actions.pod:292
24981 #, no-wrap
24982 msgid ""
24983 " int\n"
24984 " guestfs_aug_clear (guestfs_h *g,\n"
24985 "                    const char *augpath);\n"
24986 "\n"
24987 msgstr ""
24988
24989 #. type: textblock
24990 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2554
24991 msgid "(Added in 1.3.4)"
24992 msgstr ""
24993
24994 #. type: =head2
24995 #: ../src/guestfs-actions.pod:303
24996 msgid "guestfs_aug_close"
24997 msgstr ""
24998
24999 #. type: verbatim
25000 #: ../src/guestfs-actions.pod:305
25001 #, no-wrap
25002 msgid ""
25003 " int\n"
25004 " guestfs_aug_close (guestfs_h *g);\n"
25005 "\n"
25006 msgstr ""
25007
25008 #. type: textblock
25009 #: ../src/guestfs-actions.pod:308
25010 msgid ""
25011 "Close the current Augeas handle and free up any resources used by it.  After "
25012 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25013 "any other Augeas functions."
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25018 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25019 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25020 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25021 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25022 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25023 #: ../src/guestfs-actions.pod:6266
25024 msgid "(Added in 0.7)"
25025 msgstr ""
25026
25027 #. type: =head2
25028 #: ../src/guestfs-actions.pod:317
25029 msgid "guestfs_aug_defnode"
25030 msgstr ""
25031
25032 #. type: verbatim
25033 #: ../src/guestfs-actions.pod:319
25034 #, no-wrap
25035 msgid ""
25036 " struct guestfs_int_bool *\n"
25037 " guestfs_aug_defnode (guestfs_h *g,\n"
25038 "                      const char *name,\n"
25039 "                      const char *expr,\n"
25040 "                      const char *val);\n"
25041 "\n"
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../src/guestfs-actions.pod:328
25046 msgid ""
25047 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25048 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25049 "containing that single node."
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:336
25054 msgid ""
25055 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25056 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25057 msgstr ""
25058
25059 #. type: =head2
25060 #: ../src/guestfs-actions.pod:342
25061 msgid "guestfs_aug_defvar"
25062 msgstr ""
25063
25064 #. type: verbatim
25065 #: ../src/guestfs-actions.pod:344
25066 #, no-wrap
25067 msgid ""
25068 " int\n"
25069 " guestfs_aug_defvar (guestfs_h *g,\n"
25070 "                     const char *name,\n"
25071 "                     const char *expr);\n"
25072 "\n"
25073 msgstr ""
25074
25075 #. type: =head2
25076 #: ../src/guestfs-actions.pod:360
25077 msgid "guestfs_aug_get"
25078 msgstr ""
25079
25080 #. type: verbatim
25081 #: ../src/guestfs-actions.pod:362
25082 #, no-wrap
25083 msgid ""
25084 " char *\n"
25085 " guestfs_aug_get (guestfs_h *g,\n"
25086 "                  const char *augpath);\n"
25087 "\n"
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25092 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25093 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25094 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1628
25095 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1781
25096 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:2081
25097 #: ../src/guestfs-actions.pod:2244 ../src/guestfs-actions.pod:2261
25098 #: ../src/guestfs-actions.pod:2328 ../src/guestfs-actions.pod:2371
25099 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2577
25100 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2995
25101 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3201
25102 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3435
25103 #: ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3484
25104 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3581
25105 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3621
25106 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4601
25107 #: ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:4881
25108 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5978
25109 #: ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6342
25110 #: ../src/guestfs-actions.pod:6391 ../src/guestfs-actions.pod:7063
25111 #: ../src/guestfs-actions.pod:7079 ../src/guestfs-actions.pod:7103
25112 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7801
25113 #: ../src/guestfs-actions.pod:7820 ../src/guestfs-actions.pod:7838
25114 #: ../src/guestfs-actions.pod:8012 ../src/guestfs-actions.pod:8329
25115 msgid ""
25116 "This function returns a string, or NULL on error.  I<The caller must free "
25117 "the returned string after use>."
25118 msgstr ""
25119
25120 #. type: =head2
25121 #: ../src/guestfs-actions.pod:374
25122 msgid "guestfs_aug_init"
25123 msgstr ""
25124
25125 #. type: verbatim
25126 #: ../src/guestfs-actions.pod:376
25127 #, no-wrap
25128 msgid ""
25129 " int\n"
25130 " guestfs_aug_init (guestfs_h *g,\n"
25131 "                   const char *root,\n"
25132 "                   int flags);\n"
25133 "\n"
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../src/guestfs-actions.pod:385
25138 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25139 msgstr ""
25140
25141 #. type: textblock
25142 #: ../src/guestfs-actions.pod:410
25143 msgid ""
25144 "This option is only useful when debugging Augeas lenses.  Use of this option "
25145 "may require additional memory for the libguestfs appliance.  You may need to "
25146 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25147 "C<guestfs_set_memsize>."
25148 msgstr ""
25149
25150 #. type: textblock
25151 #: ../src/guestfs-actions.pod:425
25152 msgid "Do not load the tree in C<guestfs_aug_init>."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../src/guestfs-actions.pod:429
25157 msgid "To close the handle, you can call C<guestfs_aug_close>."
25158 msgstr ""
25159
25160 #. type: =head2
25161 #: ../src/guestfs-actions.pod:437
25162 msgid "guestfs_aug_insert"
25163 msgstr ""
25164
25165 #. type: verbatim
25166 #: ../src/guestfs-actions.pod:439
25167 #, no-wrap
25168 msgid ""
25169 " int\n"
25170 " guestfs_aug_insert (guestfs_h *g,\n"
25171 "                     const char *augpath,\n"
25172 "                     const char *label,\n"
25173 "                     int before);\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: =head2
25178 #: ../src/guestfs-actions.pod:457
25179 msgid "guestfs_aug_load"
25180 msgstr ""
25181
25182 #. type: verbatim
25183 #: ../src/guestfs-actions.pod:459
25184 #, no-wrap
25185 msgid ""
25186 " int\n"
25187 " guestfs_aug_load (guestfs_h *g);\n"
25188 "\n"
25189 msgstr ""
25190
25191 #. type: =head2
25192 #: ../src/guestfs-actions.pod:471
25193 msgid "guestfs_aug_ls"
25194 msgstr ""
25195
25196 #. type: verbatim
25197 #: ../src/guestfs-actions.pod:473
25198 #, no-wrap
25199 msgid ""
25200 " char **\n"
25201 " guestfs_aug_ls (guestfs_h *g,\n"
25202 "                 const char *augpath);\n"
25203 "\n"
25204 msgstr ""
25205
25206 #. type: textblock
25207 #: ../src/guestfs-actions.pod:477
25208 msgid ""
25209 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25210 "sorting the resulting nodes into alphabetical order."
25211 msgstr ""
25212
25213 #. type: textblock
25214 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25215 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25216 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:1815
25217 #: ../src/guestfs-actions.pod:1918 ../src/guestfs-actions.pod:1937
25218 #: ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2649
25219 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2684
25220 #: ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:2773
25221 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2893
25222 #: ../src/guestfs-actions.pod:3162 ../src/guestfs-actions.pod:3537
25223 #: ../src/guestfs-actions.pod:3817 ../src/guestfs-actions.pod:4131
25224 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4168
25225 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4335
25226 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:5500
25227 #: ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6262
25228 #: ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:7143
25229 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7259
25230 #: ../src/guestfs-actions.pod:7405 ../src/guestfs-actions.pod:7429
25231 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7925
25232 #: ../src/guestfs-actions.pod:7972 ../src/guestfs-actions.pod:8166
25233 #: ../src/guestfs-actions.pod:8185 ../src/guestfs-actions.pod:8279
25234 #: ../src/guestfs-actions.pod:8298 ../src/guestfs-actions.pod:8344
25235 #: ../src/guestfs-actions.pod:8363
25236 msgid ""
25237 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25238 ">), or NULL if there was an error.  I<The caller must free the strings and "
25239 "the array after use>."
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25244 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1853
25245 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3926
25246 #: ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4634
25247 #: ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4854
25248 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5504
25249 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6474
25250 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6500
25251 #: ../src/guestfs-actions.pod:6984 ../src/guestfs-actions.pod:7643
25252 #: ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7889
25253 #: ../src/guestfs-actions.pod:8154
25254 msgid "(Added in 0.8)"
25255 msgstr ""
25256
25257 #. type: =head2
25258 #: ../src/guestfs-actions.pod:486
25259 msgid "guestfs_aug_match"
25260 msgstr ""
25261
25262 #. type: verbatim
25263 #: ../src/guestfs-actions.pod:488
25264 #, no-wrap
25265 msgid ""
25266 " char **\n"
25267 " guestfs_aug_match (guestfs_h *g,\n"
25268 "                    const char *augpath);\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: =head2
25273 #: ../src/guestfs-actions.pod:502
25274 msgid "guestfs_aug_mv"
25275 msgstr ""
25276
25277 #. type: verbatim
25278 #: ../src/guestfs-actions.pod:504
25279 #, no-wrap
25280 msgid ""
25281 " int\n"
25282 " guestfs_aug_mv (guestfs_h *g,\n"
25283 "                 const char *src,\n"
25284 "                 const char *dest);\n"
25285 "\n"
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:516
25290 msgid "guestfs_aug_rm"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:518
25295 #, no-wrap
25296 msgid ""
25297 " int\n"
25298 " guestfs_aug_rm (guestfs_h *g,\n"
25299 "                 const char *augpath);\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: =head2
25304 #: ../src/guestfs-actions.pod:530
25305 msgid "guestfs_aug_save"
25306 msgstr ""
25307
25308 #. type: verbatim
25309 #: ../src/guestfs-actions.pod:532
25310 #, no-wrap
25311 msgid ""
25312 " int\n"
25313 " guestfs_aug_save (guestfs_h *g);\n"
25314 "\n"
25315 msgstr ""
25316
25317 #. type: textblock
25318 #: ../src/guestfs-actions.pod:537
25319 msgid ""
25320 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25321 "are saved."
25322 msgstr ""
25323
25324 #. type: =head2
25325 #: ../src/guestfs-actions.pod:544
25326 msgid "guestfs_aug_set"
25327 msgstr ""
25328
25329 #. type: verbatim
25330 #: ../src/guestfs-actions.pod:546
25331 #, no-wrap
25332 msgid ""
25333 " int\n"
25334 " guestfs_aug_set (guestfs_h *g,\n"
25335 "                  const char *augpath,\n"
25336 "                  const char *val);\n"
25337 "\n"
25338 msgstr ""
25339
25340 #. type: textblock
25341 #: ../src/guestfs-actions.pod:553
25342 msgid ""
25343 "In the Augeas API, it is possible to clear a node by setting the value to "
25344 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25345 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25346 msgstr ""
25347
25348 #. type: =head2
25349 #: ../src/guestfs-actions.pod:562
25350 msgid "guestfs_available"
25351 msgstr ""
25352
25353 #. type: verbatim
25354 #: ../src/guestfs-actions.pod:564
25355 #, no-wrap
25356 msgid ""
25357 " int\n"
25358 " guestfs_available (guestfs_h *g,\n"
25359 "                    char *const *groups);\n"
25360 "\n"
25361 msgstr ""
25362
25363 #. type: textblock
25364 #: ../src/guestfs-actions.pod:572
25365 msgid ""
25366 "The libguestfs groups, and the functions that those groups correspond to, "
25367 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25368 "runtime by calling C<guestfs_available_all_groups>."
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:596
25373 msgid "You must call C<guestfs_launch> before calling this function."
25374 msgstr ""
25375
25376 #. type: textblock
25377 #: ../src/guestfs-actions.pod:618
25378 msgid ""
25379 "This call was added in version C<1.0.80>.  In previous versions of "
25380 "libguestfs all you could do would be to speculatively execute a command to "
25381 "find out if the daemon implemented it.  See also C<guestfs_version>."
25382 msgstr ""
25383
25384 #. type: textblock
25385 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1598
25386 msgid "(Added in 1.0.80)"
25387 msgstr ""
25388
25389 #. type: =head2
25390 #: ../src/guestfs-actions.pod:629
25391 msgid "guestfs_available_all_groups"
25392 msgstr ""
25393
25394 #. type: verbatim
25395 #: ../src/guestfs-actions.pod:631
25396 #, no-wrap
25397 msgid ""
25398 " char **\n"
25399 " guestfs_available_all_groups (guestfs_h *g);\n"
25400 "\n"
25401 msgstr ""
25402
25403 #. type: textblock
25404 #: ../src/guestfs-actions.pod:634
25405 msgid ""
25406 "This command returns a list of all optional groups that this daemon knows "
25407 "about.  Note this returns both supported and unsupported groups.  To find "
25408 "out which ones the daemon can actually support you have to call "
25409 "C<guestfs_available> on each member of the returned list."
25410 msgstr ""
25411
25412 #. type: textblock
25413 #: ../src/guestfs-actions.pod:640
25414 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25415 msgstr ""
25416
25417 #. type: textblock
25418 #: ../src/guestfs-actions.pod:646
25419 msgid "(Added in 1.3.15)"
25420 msgstr ""
25421
25422 #. type: =head2
25423 #: ../src/guestfs-actions.pod:648
25424 msgid "guestfs_base64_in"
25425 msgstr ""
25426
25427 #. type: verbatim
25428 #: ../src/guestfs-actions.pod:650
25429 #, no-wrap
25430 msgid ""
25431 " int\n"
25432 " guestfs_base64_in (guestfs_h *g,\n"
25433 "                    const char *base64file,\n"
25434 "                    const char *filename);\n"
25435 "\n"
25436 msgstr ""
25437
25438 #. type: textblock
25439 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25440 msgid "(Added in 1.3.5)"
25441 msgstr ""
25442
25443 #. type: =head2
25444 #: ../src/guestfs-actions.pod:662
25445 msgid "guestfs_base64_out"
25446 msgstr ""
25447
25448 #. type: verbatim
25449 #: ../src/guestfs-actions.pod:664
25450 #, no-wrap
25451 msgid ""
25452 " int\n"
25453 " guestfs_base64_out (guestfs_h *g,\n"
25454 "                     const char *filename,\n"
25455 "                     const char *base64file);\n"
25456 "\n"
25457 msgstr ""
25458
25459 #. type: =head2
25460 #: ../src/guestfs-actions.pod:676
25461 msgid "guestfs_blockdev_flushbufs"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../src/guestfs-actions.pod:678
25466 #, no-wrap
25467 msgid ""
25468 " int\n"
25469 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25470 "                             const char *device);\n"
25471 "\n"
25472 msgstr ""
25473
25474 #. type: textblock
25475 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25476 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25477 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25478 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25479 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25480 msgid "(Added in 0.9.3)"
25481 msgstr ""
25482
25483 #. type: =head2
25484 #: ../src/guestfs-actions.pod:691
25485 msgid "guestfs_blockdev_getbsz"
25486 msgstr ""
25487
25488 #. type: verbatim
25489 #: ../src/guestfs-actions.pod:693
25490 #, no-wrap
25491 msgid ""
25492 " int\n"
25493 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25494 "                          const char *device);\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: =head2
25499 #: ../src/guestfs-actions.pod:708
25500 msgid "guestfs_blockdev_getro"
25501 msgstr ""
25502
25503 #. type: verbatim
25504 #: ../src/guestfs-actions.pod:710
25505 #, no-wrap
25506 msgid ""
25507 " int\n"
25508 " guestfs_blockdev_getro (guestfs_h *g,\n"
25509 "                         const char *device);\n"
25510 "\n"
25511 msgstr ""
25512
25513 #. type: textblock
25514 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1836
25515 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:2340
25516 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2423
25517 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2489
25518 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2540
25519 #: ../src/guestfs-actions.pod:2563 ../src/guestfs-actions.pod:3638
25520 #: ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3672
25521 #: ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:3848
25522 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3877
25523 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3908
25524 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3938
25525 #: ../src/guestfs-actions.pod:3951 ../src/guestfs-actions.pod:3965
25526 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3995
25527 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4022
25528 #: ../src/guestfs-actions.pod:5741
25529 msgid "This function returns a C truth value on success or -1 on error."
25530 msgstr ""
25531
25532 #. type: =head2
25533 #: ../src/guestfs-actions.pod:723
25534 msgid "guestfs_blockdev_getsize64"
25535 msgstr ""
25536
25537 #. type: verbatim
25538 #: ../src/guestfs-actions.pod:725
25539 #, no-wrap
25540 msgid ""
25541 " int64_t\n"
25542 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25543 "                             const char *device);\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: textblock
25548 #: ../src/guestfs-actions.pod:731
25549 msgid "See also C<guestfs_blockdev_getsz>."
25550 msgstr ""
25551
25552 #. type: =head2
25553 #: ../src/guestfs-actions.pod:739
25554 msgid "guestfs_blockdev_getss"
25555 msgstr ""
25556
25557 #. type: verbatim
25558 #: ../src/guestfs-actions.pod:741
25559 #, no-wrap
25560 msgid ""
25561 " int\n"
25562 " guestfs_blockdev_getss (guestfs_h *g,\n"
25563 "                         const char *device);\n"
25564 "\n"
25565 msgstr ""
25566
25567 #. type: textblock
25568 #: ../src/guestfs-actions.pod:748
25569 msgid ""
25570 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25571 "that)."
25572 msgstr ""
25573
25574 #. type: =head2
25575 #: ../src/guestfs-actions.pod:757
25576 msgid "guestfs_blockdev_getsz"
25577 msgstr ""
25578
25579 #. type: verbatim
25580 #: ../src/guestfs-actions.pod:759
25581 #, no-wrap
25582 msgid ""
25583 " int64_t\n"
25584 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25585 "                         const char *device);\n"
25586 "\n"
25587 msgstr ""
25588
25589 #. type: textblock
25590 #: ../src/guestfs-actions.pod:766
25591 msgid ""
25592 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25593 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25594 msgstr ""
25595
25596 #. type: =head2
25597 #: ../src/guestfs-actions.pod:776
25598 msgid "guestfs_blockdev_rereadpt"
25599 msgstr ""
25600
25601 #. type: verbatim
25602 #: ../src/guestfs-actions.pod:778
25603 #, no-wrap
25604 msgid ""
25605 " int\n"
25606 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25607 "                            const char *device);\n"
25608 "\n"
25609 msgstr ""
25610
25611 #. type: =head2
25612 #: ../src/guestfs-actions.pod:790
25613 msgid "guestfs_blockdev_setbsz"
25614 msgstr ""
25615
25616 #. type: verbatim
25617 #: ../src/guestfs-actions.pod:792
25618 #, no-wrap
25619 msgid ""
25620 " int\n"
25621 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25622 "                          const char *device,\n"
25623 "                          int blocksize);\n"
25624 "\n"
25625 msgstr ""
25626
25627 #. type: =head2
25628 #: ../src/guestfs-actions.pod:808
25629 msgid "guestfs_blockdev_setro"
25630 msgstr ""
25631
25632 #. type: verbatim
25633 #: ../src/guestfs-actions.pod:810
25634 #, no-wrap
25635 msgid ""
25636 " int\n"
25637 " guestfs_blockdev_setro (guestfs_h *g,\n"
25638 "                         const char *device);\n"
25639 "\n"
25640 msgstr ""
25641
25642 #. type: =head2
25643 #: ../src/guestfs-actions.pod:822
25644 msgid "guestfs_blockdev_setrw"
25645 msgstr ""
25646
25647 #. type: verbatim
25648 #: ../src/guestfs-actions.pod:824
25649 #, no-wrap
25650 msgid ""
25651 " int\n"
25652 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25653 "                         const char *device);\n"
25654 "\n"
25655 msgstr ""
25656
25657 #. type: =head2
25658 #: ../src/guestfs-actions.pod:836
25659 msgid "guestfs_btrfs_filesystem_resize"
25660 msgstr ""
25661
25662 #. type: verbatim
25663 #: ../src/guestfs-actions.pod:838
25664 #, no-wrap
25665 msgid ""
25666 " int\n"
25667 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25668 "                                  const char *mountpoint,\n"
25669 "                                  ...);\n"
25670 "\n"
25671 msgstr ""
25672
25673 #. type: verbatim
25674 #: ../src/guestfs-actions.pod:848
25675 #, no-wrap
25676 msgid ""
25677 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25678 "\n"
25679 msgstr ""
25680
25681 #. type: textblock
25682 #: ../src/guestfs-actions.pod:871
25683 msgid "(Added in 1.11.17)"
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../src/guestfs-actions.pod:873
25688 msgid "guestfs_btrfs_filesystem_resize_va"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../src/guestfs-actions.pod:875
25693 #, no-wrap
25694 msgid ""
25695 " int\n"
25696 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25697 "                                     const char *mountpoint,\n"
25698 "                                     va_list args);\n"
25699 "\n"
25700 msgstr ""
25701
25702 #. type: textblock
25703 #: ../src/guestfs-actions.pod:880
25704 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25705 msgstr ""
25706
25707 #. type: =head2
25708 #: ../src/guestfs-actions.pod:884
25709 msgid "guestfs_btrfs_filesystem_resize_argv"
25710 msgstr ""
25711
25712 #. type: verbatim
25713 #: ../src/guestfs-actions.pod:886
25714 #, no-wrap
25715 msgid ""
25716 " int\n"
25717 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25718 "                                       const char *mountpoint,\n"
25719 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25720 "\n"
25721 msgstr ""
25722
25723 #. type: textblock
25724 #: ../src/guestfs-actions.pod:891
25725 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25726 msgstr ""
25727
25728 #. type: =head2
25729 #: ../src/guestfs-actions.pod:895
25730 msgid "guestfs_case_sensitive_path"
25731 msgstr ""
25732
25733 #. type: verbatim
25734 #: ../src/guestfs-actions.pod:897
25735 #, no-wrap
25736 msgid ""
25737 " char *\n"
25738 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25739 "                              const char *path);\n"
25740 "\n"
25741 msgstr ""
25742
25743 #. type: textblock
25744 #: ../src/guestfs-actions.pod:923
25745 msgid ""
25746 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25747 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25748 "how the directories were originally created under Windows)."
25749 msgstr ""
25750
25751 #. type: textblock
25752 #: ../src/guestfs-actions.pod:931
25753 msgid "See also C<guestfs_realpath>."
25754 msgstr ""
25755
25756 #. type: textblock
25757 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7823
25758 msgid "(Added in 1.0.75)"
25759 msgstr ""
25760
25761 #. type: =head2
25762 #: ../src/guestfs-actions.pod:938
25763 msgid "guestfs_cat"
25764 msgstr ""
25765
25766 #. type: verbatim
25767 #: ../src/guestfs-actions.pod:940
25768 #, no-wrap
25769 msgid ""
25770 " char *\n"
25771 " guestfs_cat (guestfs_h *g,\n"
25772 "              const char *path);\n"
25773 "\n"
25774 msgstr ""
25775
25776 #. type: textblock
25777 #: ../src/guestfs-actions.pod:946
25778 msgid ""
25779 "Note that this function cannot correctly handle binary files (specifically, "
25780 "files containing C<\\0> character which is treated as end of string).  For "
25781 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25782 "functions which have a more complex interface."
25783 msgstr ""
25784
25785 #. type: textblock
25786 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:4152
25787 #: ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4251
25788 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4747
25789 #: ../src/guestfs-actions.pod:4761 ../src/guestfs-actions.pod:6140
25790 #: ../src/guestfs-actions.pod:6154 ../src/guestfs-actions.pod:7976
25791 #: ../src/guestfs-actions.pod:7990
25792 msgid "(Added in 0.4)"
25793 msgstr ""
25794
25795 #. type: =head2
25796 #: ../src/guestfs-actions.pod:959
25797 msgid "guestfs_checksum"
25798 msgstr ""
25799
25800 #. type: verbatim
25801 #: ../src/guestfs-actions.pod:961
25802 #, no-wrap
25803 msgid ""
25804 " char *\n"
25805 " guestfs_checksum (guestfs_h *g,\n"
25806 "                   const char *csumtype,\n"
25807 "                   const char *path);\n"
25808 "\n"
25809 msgstr ""
25810
25811 #. type: textblock
25812 #: ../src/guestfs-actions.pod:1007
25813 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../src/guestfs-actions.pod:1009
25818 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25819 msgstr ""
25820
25821 #. type: textblock
25822 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1673
25823 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:3850
25824 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3940
25825 #: ../src/guestfs-actions.pod:3967 ../src/guestfs-actions.pod:7679
25826 msgid "(Added in 1.0.2)"
25827 msgstr ""
25828
25829 #. type: =head2
25830 #: ../src/guestfs-actions.pod:1016
25831 msgid "guestfs_checksum_device"
25832 msgstr ""
25833
25834 #. type: verbatim
25835 #: ../src/guestfs-actions.pod:1018
25836 #, no-wrap
25837 msgid ""
25838 " char *\n"
25839 " guestfs_checksum_device (guestfs_h *g,\n"
25840 "                          const char *csumtype,\n"
25841 "                          const char *device);\n"
25842 "\n"
25843 msgstr ""
25844
25845 #. type: textblock
25846 #: ../src/guestfs-actions.pod:1023
25847 msgid ""
25848 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25849 "device named C<device>.  For the types of checksums supported see the "
25850 "C<guestfs_checksum> command."
25851 msgstr ""
25852
25853 #. type: textblock
25854 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5571
25855 #: ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5743
25856 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5943
25857 #: ../src/guestfs-actions.pod:7588 ../src/guestfs-actions.pod:7602
25858 #: ../src/guestfs-actions.pod:8002
25859 msgid "(Added in 1.3.2)"
25860 msgstr ""
25861
25862 #. type: =head2
25863 #: ../src/guestfs-actions.pod:1032
25864 msgid "guestfs_checksums_out"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../src/guestfs-actions.pod:1034
25869 #, no-wrap
25870 msgid ""
25871 " int\n"
25872 " guestfs_checksums_out (guestfs_h *g,\n"
25873 "                        const char *csumtype,\n"
25874 "                        const char *directory,\n"
25875 "                        const char *sumsfile);\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:1054
25881 msgid "(Added in 1.3.7)"
25882 msgstr ""
25883
25884 #. type: =head2
25885 #: ../src/guestfs-actions.pod:1056
25886 msgid "guestfs_chmod"
25887 msgstr ""
25888
25889 #. type: verbatim
25890 #: ../src/guestfs-actions.pod:1058
25891 #, no-wrap
25892 msgid ""
25893 " int\n"
25894 " guestfs_chmod (guestfs_h *g,\n"
25895 "                int mode,\n"
25896 "                const char *path);\n"
25897 "\n"
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:1076
25902 msgid "guestfs_chown"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:1078
25907 #, no-wrap
25908 msgid ""
25909 " int\n"
25910 " guestfs_chown (guestfs_h *g,\n"
25911 "                int owner,\n"
25912 "                int group,\n"
25913 "                const char *path);\n"
25914 "\n"
25915 msgstr ""
25916
25917 #. type: =head2
25918 #: ../src/guestfs-actions.pod:1094
25919 msgid "guestfs_command"
25920 msgstr ""
25921
25922 #. type: verbatim
25923 #: ../src/guestfs-actions.pod:1096
25924 #, no-wrap
25925 msgid ""
25926 " char *\n"
25927 " guestfs_command (guestfs_h *g,\n"
25928 "                  char *const *arguments);\n"
25929 "\n"
25930 msgstr ""
25931
25932 #. type: textblock
25933 #: ../src/guestfs-actions.pod:1105
25934 msgid ""
25935 "The single parameter is an argv-style list of arguments.  The first element "
25936 "is the name of the program to run.  Subsequent elements are parameters.  The "
25937 "list must be non-empty (ie. must contain a program name).  Note that the "
25938 "command runs directly, and is I<not> invoked via the shell (see "
25939 "C<guestfs_sh>)."
25940 msgstr ""
25941
25942 #. type: textblock
25943 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
25944 #: ../src/guestfs-actions.pod:1972
25945 msgid "(Added in 0.9.1)"
25946 msgstr ""
25947
25948 #. type: =head2
25949 #: ../src/guestfs-actions.pod:1138
25950 msgid "guestfs_command_lines"
25951 msgstr ""
25952
25953 #. type: verbatim
25954 #: ../src/guestfs-actions.pod:1140
25955 #, no-wrap
25956 msgid ""
25957 " char **\n"
25958 " guestfs_command_lines (guestfs_h *g,\n"
25959 "                        char *const *arguments);\n"
25960 "\n"
25961 msgstr ""
25962
25963 #. type: textblock
25964 #: ../src/guestfs-actions.pod:1144
25965 msgid ""
25966 "This is the same as C<guestfs_command>, but splits the result into a list of "
25967 "lines."
25968 msgstr ""
25969
25970 #. type: textblock
25971 #: ../src/guestfs-actions.pod:1147
25972 msgid "See also: C<guestfs_sh_lines>"
25973 msgstr ""
25974
25975 #. type: =head2
25976 #: ../src/guestfs-actions.pod:1158
25977 msgid "guestfs_compress_device_out"
25978 msgstr ""
25979
25980 #. type: verbatim
25981 #: ../src/guestfs-actions.pod:1160
25982 #, no-wrap
25983 msgid ""
25984 " int\n"
25985 " guestfs_compress_device_out (guestfs_h *g,\n"
25986 "                              const char *ctype,\n"
25987 "                              const char *device,\n"
25988 "                              const char *zdevice,\n"
25989 "                              ...);\n"
25990 "\n"
25991 msgstr ""
25992
25993 #. type: verbatim
25994 #: ../src/guestfs-actions.pod:1172
25995 #, no-wrap
25996 msgid ""
25997 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25998 "\n"
25999 msgstr ""
26000
26001 #. type: textblock
26002 #: ../src/guestfs-actions.pod:1177
26003 msgid ""
26004 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26005 "C<guestfs_compress_out>."
26006 msgstr ""
26007
26008 #. type: textblock
26009 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26010 #: ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:6860
26011 msgid "(Added in 1.13.15)"
26012 msgstr ""
26013
26014 #. type: =head2
26015 #: ../src/guestfs-actions.pod:1184
26016 msgid "guestfs_compress_device_out_va"
26017 msgstr ""
26018
26019 #. type: verbatim
26020 #: ../src/guestfs-actions.pod:1186
26021 #, no-wrap
26022 msgid ""
26023 " int\n"
26024 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26025 "                                 const char *ctype,\n"
26026 "                                 const char *device,\n"
26027 "                                 const char *zdevice,\n"
26028 "                                 va_list args);\n"
26029 "\n"
26030 msgstr ""
26031
26032 #. type: textblock
26033 #: ../src/guestfs-actions.pod:1193
26034 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26035 msgstr ""
26036
26037 #. type: =head2
26038 #: ../src/guestfs-actions.pod:1197
26039 msgid "guestfs_compress_device_out_argv"
26040 msgstr ""
26041
26042 #. type: verbatim
26043 #: ../src/guestfs-actions.pod:1199
26044 #, no-wrap
26045 msgid ""
26046 " int\n"
26047 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26048 "                                   const char *ctype,\n"
26049 "                                   const char *device,\n"
26050 "                                   const char *zdevice,\n"
26051 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26052 "\n"
26053 msgstr ""
26054
26055 #. type: textblock
26056 #: ../src/guestfs-actions.pod:1206
26057 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26058 msgstr ""
26059
26060 #. type: =head2
26061 #: ../src/guestfs-actions.pod:1210
26062 msgid "guestfs_compress_out"
26063 msgstr ""
26064
26065 #. type: verbatim
26066 #: ../src/guestfs-actions.pod:1212
26067 #, no-wrap
26068 msgid ""
26069 " int\n"
26070 " guestfs_compress_out (guestfs_h *g,\n"
26071 "                       const char *ctype,\n"
26072 "                       const char *file,\n"
26073 "                       const char *zfile,\n"
26074 "                       ...);\n"
26075 "\n"
26076 msgstr ""
26077
26078 #. type: verbatim
26079 #: ../src/guestfs-actions.pod:1224
26080 #, no-wrap
26081 msgid ""
26082 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26083 "\n"
26084 msgstr ""
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:1243
26088 msgid "guestfs_compress_out_va"
26089 msgstr ""
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:1245
26093 #, no-wrap
26094 msgid ""
26095 " int\n"
26096 " guestfs_compress_out_va (guestfs_h *g,\n"
26097 "                          const char *ctype,\n"
26098 "                          const char *file,\n"
26099 "                          const char *zfile,\n"
26100 "                          va_list args);\n"
26101 "\n"
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:1252
26106 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26107 msgstr ""
26108
26109 #. type: =head2
26110 #: ../src/guestfs-actions.pod:1256
26111 msgid "guestfs_compress_out_argv"
26112 msgstr ""
26113
26114 #. type: verbatim
26115 #: ../src/guestfs-actions.pod:1258
26116 #, no-wrap
26117 msgid ""
26118 " int\n"
26119 " guestfs_compress_out_argv (guestfs_h *g,\n"
26120 "                            const char *ctype,\n"
26121 "                            const char *file,\n"
26122 "                            const char *zfile,\n"
26123 "                            const struct guestfs_compress_out_argv *optargs);\n"
26124 "\n"
26125 msgstr ""
26126
26127 #. type: textblock
26128 #: ../src/guestfs-actions.pod:1265
26129 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26130 msgstr ""
26131
26132 #. type: =head2
26133 #: ../src/guestfs-actions.pod:1269
26134 msgid "guestfs_config"
26135 msgstr ""
26136
26137 #. type: verbatim
26138 #: ../src/guestfs-actions.pod:1271
26139 #, no-wrap
26140 msgid ""
26141 " int\n"
26142 " guestfs_config (guestfs_h *g,\n"
26143 "                 const char *qemuparam,\n"
26144 "                 const char *qemuvalue);\n"
26145 "\n"
26146 msgstr ""
26147
26148 #. type: =head2
26149 #: ../src/guestfs-actions.pod:1289
26150 msgid "guestfs_copy_device_to_device"
26151 msgstr ""
26152
26153 #. type: verbatim
26154 #: ../src/guestfs-actions.pod:1291
26155 #, no-wrap
26156 msgid ""
26157 " int\n"
26158 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26159 "                                const char *src,\n"
26160 "                                const char *dest,\n"
26161 "                                ...);\n"
26162 "\n"
26163 msgstr ""
26164
26165 #. type: verbatim
26166 #: ../src/guestfs-actions.pod:1302
26167 #, no-wrap
26168 msgid ""
26169 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26170 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26171 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26172 "\n"
26173 msgstr ""
26174
26175 #. type: textblock
26176 #: ../src/guestfs-actions.pod:1306
26177 msgid ""
26178 "The four calls C<guestfs_copy_device_to_device>, "
26179 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26180 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26181 "destination (device|file)."
26182 msgstr ""
26183
26184 #. type: textblock
26185 #: ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1378
26186 #: ../src/guestfs-actions.pod:1429 ../src/guestfs-actions.pod:1485
26187 #: ../src/guestfs-actions.pod:1537 ../src/guestfs-actions.pod:1668
26188 #: ../src/guestfs-actions.pod:1699 ../src/guestfs-actions.pod:1744
26189 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2143
26190 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:7674
26191 #: ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:8215
26192 #: ../src/guestfs-actions.pod:8238
26193 msgid ""
26194 "This long-running command can generate progress notification messages so "
26195 "that the caller can display a progress bar or indicator.  To receive these "
26196 "messages, the caller must register a progress event callback.  See L<guestfs"
26197 "(3)/GUESTFS_EVENT_PROGRESS>."
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:1332
26202 msgid "guestfs_copy_device_to_device_va"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:1334
26207 #, no-wrap
26208 msgid ""
26209 " int\n"
26210 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26211 "                                   const char *src,\n"
26212 "                                   const char *dest,\n"
26213 "                                   va_list args);\n"
26214 "\n"
26215 msgstr ""
26216
26217 #. type: textblock
26218 #: ../src/guestfs-actions.pod:1340
26219 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26220 msgstr ""
26221
26222 #. type: =head2
26223 #: ../src/guestfs-actions.pod:1344
26224 msgid "guestfs_copy_device_to_device_argv"
26225 msgstr ""
26226
26227 #. type: verbatim
26228 #: ../src/guestfs-actions.pod:1346
26229 #, no-wrap
26230 msgid ""
26231 " int\n"
26232 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26233 "                                     const char *src,\n"
26234 "                                     const char *dest,\n"
26235 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26236 "\n"
26237 msgstr ""
26238
26239 #. type: textblock
26240 #: ../src/guestfs-actions.pod:1352
26241 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26242 msgstr ""
26243
26244 #. type: =head2
26245 #: ../src/guestfs-actions.pod:1356
26246 msgid "guestfs_copy_device_to_file"
26247 msgstr ""
26248
26249 #. type: verbatim
26250 #: ../src/guestfs-actions.pod:1358
26251 #, no-wrap
26252 msgid ""
26253 " int\n"
26254 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26255 "                              const char *src,\n"
26256 "                              const char *dest,\n"
26257 "                              ...);\n"
26258 "\n"
26259 msgstr ""
26260
26261 #. type: verbatim
26262 #: ../src/guestfs-actions.pod:1369
26263 #, no-wrap
26264 msgid ""
26265 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26266 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26267 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26268 "\n"
26269 msgstr ""
26270
26271 #. type: textblock
26272 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:1424
26273 #: ../src/guestfs-actions.pod:1475
26274 msgid ""
26275 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26276 msgstr ""
26277
26278 #. type: =head2
26279 #: ../src/guestfs-actions.pod:1383
26280 msgid "guestfs_copy_device_to_file_va"
26281 msgstr ""
26282
26283 #. type: verbatim
26284 #: ../src/guestfs-actions.pod:1385
26285 #, no-wrap
26286 msgid ""
26287 " int\n"
26288 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26289 "                                 const char *src,\n"
26290 "                                 const char *dest,\n"
26291 "                                 va_list args);\n"
26292 "\n"
26293 msgstr ""
26294
26295 #. type: textblock
26296 #: ../src/guestfs-actions.pod:1391
26297 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26298 msgstr ""
26299
26300 #. type: =head2
26301 #: ../src/guestfs-actions.pod:1395
26302 msgid "guestfs_copy_device_to_file_argv"
26303 msgstr ""
26304
26305 #. type: verbatim
26306 #: ../src/guestfs-actions.pod:1397
26307 #, no-wrap
26308 msgid ""
26309 " int\n"
26310 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26311 "                                   const char *src,\n"
26312 "                                   const char *dest,\n"
26313 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26314 "\n"
26315 msgstr ""
26316
26317 #. type: textblock
26318 #: ../src/guestfs-actions.pod:1403
26319 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26320 msgstr ""
26321
26322 #. type: =head2
26323 #: ../src/guestfs-actions.pod:1407
26324 msgid "guestfs_copy_file_to_device"
26325 msgstr ""
26326
26327 #. type: verbatim
26328 #: ../src/guestfs-actions.pod:1409
26329 #, no-wrap
26330 msgid ""
26331 " int\n"
26332 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26333 "                              const char *src,\n"
26334 "                              const char *dest,\n"
26335 "                              ...);\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:1420
26341 #, no-wrap
26342 msgid ""
26343 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26344 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26345 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26346 "\n"
26347 msgstr ""
26348
26349 #. type: =head2
26350 #: ../src/guestfs-actions.pod:1434
26351 msgid "guestfs_copy_file_to_device_va"
26352 msgstr ""
26353
26354 #. type: verbatim
26355 #: ../src/guestfs-actions.pod:1436
26356 #, no-wrap
26357 msgid ""
26358 " int\n"
26359 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26360 "                                 const char *src,\n"
26361 "                                 const char *dest,\n"
26362 "                                 va_list args);\n"
26363 "\n"
26364 msgstr ""
26365
26366 #. type: textblock
26367 #: ../src/guestfs-actions.pod:1442
26368 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26369 msgstr ""
26370
26371 #. type: =head2
26372 #: ../src/guestfs-actions.pod:1446
26373 msgid "guestfs_copy_file_to_device_argv"
26374 msgstr ""
26375
26376 #. type: verbatim
26377 #: ../src/guestfs-actions.pod:1448
26378 #, no-wrap
26379 msgid ""
26380 " int\n"
26381 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26382 "                                   const char *src,\n"
26383 "                                   const char *dest,\n"
26384 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26385 "\n"
26386 msgstr ""
26387
26388 #. type: textblock
26389 #: ../src/guestfs-actions.pod:1454
26390 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26391 msgstr ""
26392
26393 #. type: =head2
26394 #: ../src/guestfs-actions.pod:1458
26395 msgid "guestfs_copy_file_to_file"
26396 msgstr ""
26397
26398 #. type: verbatim
26399 #: ../src/guestfs-actions.pod:1460
26400 #, no-wrap
26401 msgid ""
26402 " int\n"
26403 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26404 "                            const char *src,\n"
26405 "                            const char *dest,\n"
26406 "                            ...);\n"
26407 "\n"
26408 msgstr ""
26409
26410 #. type: verbatim
26411 #: ../src/guestfs-actions.pod:1471
26412 #, no-wrap
26413 msgid ""
26414 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26415 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26416 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26417 "\n"
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../src/guestfs-actions.pod:1478
26422 msgid ""
26423 "This is B<not> the function you want for copying files.  This is for copying "
26424 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26425 "C<guestfs_mv> for general file copying and moving functions."
26426 msgstr ""
26427
26428 #. type: =head2
26429 #: ../src/guestfs-actions.pod:1490
26430 msgid "guestfs_copy_file_to_file_va"
26431 msgstr ""
26432
26433 #. type: verbatim
26434 #: ../src/guestfs-actions.pod:1492
26435 #, no-wrap
26436 msgid ""
26437 " int\n"
26438 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26439 "                               const char *src,\n"
26440 "                               const char *dest,\n"
26441 "                               va_list args);\n"
26442 "\n"
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:1498
26447 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26448 msgstr ""
26449
26450 #. type: =head2
26451 #: ../src/guestfs-actions.pod:1502
26452 msgid "guestfs_copy_file_to_file_argv"
26453 msgstr ""
26454
26455 #. type: verbatim
26456 #: ../src/guestfs-actions.pod:1504
26457 #, no-wrap
26458 msgid ""
26459 " int\n"
26460 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26461 "                                 const char *src,\n"
26462 "                                 const char *dest,\n"
26463 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
26464 "\n"
26465 msgstr ""
26466
26467 #. type: textblock
26468 #: ../src/guestfs-actions.pod:1510
26469 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26470 msgstr ""
26471
26472 #. type: =head2
26473 #: ../src/guestfs-actions.pod:1514
26474 msgid "guestfs_copy_size"
26475 msgstr ""
26476
26477 #. type: verbatim
26478 #: ../src/guestfs-actions.pod:1516
26479 #, no-wrap
26480 msgid ""
26481 " int\n"
26482 " guestfs_copy_size (guestfs_h *g,\n"
26483 "                    const char *src,\n"
26484 "                    const char *dest,\n"
26485 "                    int64_t size);\n"
26486 "\n"
26487 msgstr ""
26488
26489 #. type: textblock
26490 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1579
26491 msgid ""
26492 "I<This function is deprecated.> In new code, use the L</"
26493 "guestfs_copy_device_to_device> call instead."
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:4774
26498 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:7909
26499 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:8015
26500 msgid "(Added in 1.0.87)"
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../src/guestfs-actions.pod:1544
26505 msgid "guestfs_cp"
26506 msgstr ""
26507
26508 #. type: verbatim
26509 #: ../src/guestfs-actions.pod:1546
26510 #, no-wrap
26511 msgid ""
26512 " int\n"
26513 " guestfs_cp (guestfs_h *g,\n"
26514 "             const char *src,\n"
26515 "             const char *dest);\n"
26516 "\n"
26517 msgstr ""
26518
26519 #. type: textblock
26520 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1570
26521 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1724
26522 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:5518
26523 #: ../src/guestfs-actions.pod:6011
26524 msgid "(Added in 1.0.18)"
26525 msgstr ""
26526
26527 #. type: =head2
26528 #: ../src/guestfs-actions.pod:1558
26529 msgid "guestfs_cp_a"
26530 msgstr ""
26531
26532 #. type: verbatim
26533 #: ../src/guestfs-actions.pod:1560
26534 #, no-wrap
26535 msgid ""
26536 " int\n"
26537 " guestfs_cp_a (guestfs_h *g,\n"
26538 "               const char *src,\n"
26539 "               const char *dest);\n"
26540 "\n"
26541 msgstr ""
26542
26543 #. type: =head2
26544 #: ../src/guestfs-actions.pod:1572
26545 msgid "guestfs_dd"
26546 msgstr ""
26547
26548 #. type: verbatim
26549 #: ../src/guestfs-actions.pod:1574
26550 #, no-wrap
26551 msgid ""
26552 " int\n"
26553 " guestfs_dd (guestfs_h *g,\n"
26554 "             const char *src,\n"
26555 "             const char *dest);\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: textblock
26560 #: ../src/guestfs-actions.pod:1591
26561 msgid ""
26562 "If the destination is a device, it must be as large or larger than the "
26563 "source file or device, otherwise the copy will fail.  This command cannot do "
26564 "partial copies (see C<guestfs_copy_device_to_device>)."
26565 msgstr ""
26566
26567 #. type: =head2
26568 #: ../src/guestfs-actions.pod:1600
26569 msgid "guestfs_df"
26570 msgstr ""
26571
26572 #. type: verbatim
26573 #: ../src/guestfs-actions.pod:1602
26574 #, no-wrap
26575 msgid ""
26576 " char *\n"
26577 " guestfs_df (guestfs_h *g);\n"
26578 "\n"
26579 msgstr ""
26580
26581 #. type: textblock
26582 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1624
26583 msgid ""
26584 "This command is mostly useful for interactive sessions.  It is I<not> "
26585 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26586 "from programs."
26587 msgstr ""
26588
26589 #. type: textblock
26590 #: ../src/guestfs-actions.pod:1614 ../src/guestfs-actions.pod:1631
26591 #: ../src/guestfs-actions.pod:1749 ../src/guestfs-actions.pod:2756
26592 #: ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2848
26593 #: ../src/guestfs-actions.pod:4884 ../src/guestfs-actions.pod:5418
26594 #: ../src/guestfs-actions.pod:7412 ../src/guestfs-actions.pod:7436
26595 #: ../src/guestfs-actions.pod:8055 ../src/guestfs-actions.pod:8068
26596 #: ../src/guestfs-actions.pod:8081
26597 msgid "(Added in 1.0.54)"
26598 msgstr ""
26599
26600 #. type: =head2
26601 #: ../src/guestfs-actions.pod:1616
26602 msgid "guestfs_df_h"
26603 msgstr ""
26604
26605 #. type: verbatim
26606 #: ../src/guestfs-actions.pod:1618
26607 #, no-wrap
26608 msgid ""
26609 " char *\n"
26610 " guestfs_df_h (guestfs_h *g);\n"
26611 "\n"
26612 msgstr ""
26613
26614 #. type: =head2
26615 #: ../src/guestfs-actions.pod:1633
26616 msgid "guestfs_dmesg"
26617 msgstr ""
26618
26619 #. type: verbatim
26620 #: ../src/guestfs-actions.pod:1635
26621 #, no-wrap
26622 msgid ""
26623 " char *\n"
26624 " guestfs_dmesg (guestfs_h *g);\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../src/guestfs-actions.pod:1642
26630 msgid ""
26631 "Another way to get the same information is to enable verbose messages with "
26632 "C<guestfs_set_verbose> or by setting the environment variable "
26633 "C<LIBGUESTFS_DEBUG=1> before running the program."
26634 msgstr ""
26635
26636 #. type: =head2
26637 #: ../src/guestfs-actions.pod:1652
26638 msgid "guestfs_download"
26639 msgstr ""
26640
26641 #. type: verbatim
26642 #: ../src/guestfs-actions.pod:1654
26643 #, no-wrap
26644 msgid ""
26645 " int\n"
26646 " guestfs_download (guestfs_h *g,\n"
26647 "                   const char *remotefilename,\n"
26648 "                   const char *filename);\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: textblock
26653 #: ../src/guestfs-actions.pod:1664
26654 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26655 msgstr ""
26656
26657 #. type: =head2
26658 #: ../src/guestfs-actions.pod:1675
26659 msgid "guestfs_download_offset"
26660 msgstr ""
26661
26662 #. type: verbatim
26663 #: ../src/guestfs-actions.pod:1677
26664 #, no-wrap
26665 msgid ""
26666 " int\n"
26667 " guestfs_download_offset (guestfs_h *g,\n"
26668 "                          const char *remotefilename,\n"
26669 "                          const char *filename,\n"
26670 "                          int64_t offset,\n"
26671 "                          int64_t size);\n"
26672 "\n"
26673 msgstr ""
26674
26675 #. type: textblock
26676 #: ../src/guestfs-actions.pod:1690
26677 msgid ""
26678 "Note that there is no limit on the amount of data that can be downloaded "
26679 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26680 "full amount unless an error occurs."
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:1695
26685 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26686 msgstr ""
26687
26688 #. type: textblock
26689 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:7713
26690 msgid "(Added in 1.5.17)"
26691 msgstr ""
26692
26693 #. type: =head2
26694 #: ../src/guestfs-actions.pod:1706
26695 msgid "guestfs_drop_caches"
26696 msgstr ""
26697
26698 #. type: verbatim
26699 #: ../src/guestfs-actions.pod:1708
26700 #, no-wrap
26701 msgid ""
26702 " int\n"
26703 " guestfs_drop_caches (guestfs_h *g,\n"
26704 "                      int whattodrop);\n"
26705 "\n"
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:1726
26710 msgid "guestfs_du"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../src/guestfs-actions.pod:1728
26715 #, no-wrap
26716 msgid ""
26717 " int64_t\n"
26718 " guestfs_du (guestfs_h *g,\n"
26719 "             const char *path);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: =head2
26724 #: ../src/guestfs-actions.pod:1751
26725 msgid "guestfs_e2fsck_f"
26726 msgstr ""
26727
26728 #. type: verbatim
26729 #: ../src/guestfs-actions.pod:1753
26730 #, no-wrap
26731 msgid ""
26732 " int\n"
26733 " guestfs_e2fsck_f (guestfs_h *g,\n"
26734 "                   const char *device);\n"
26735 "\n"
26736 msgstr ""
26737
26738 #. type: textblock
26739 #: ../src/guestfs-actions.pod:1761
26740 msgid ""
26741 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26742 "Normally you should use C<guestfs_fsck>."
26743 msgstr ""
26744
26745 #. type: textblock
26746 #: ../src/guestfs-actions.pod:1766
26747 msgid "(Added in 1.0.29)"
26748 msgstr ""
26749
26750 #. type: =head2
26751 #: ../src/guestfs-actions.pod:1768
26752 msgid "guestfs_echo_daemon"
26753 msgstr ""
26754
26755 #. type: verbatim
26756 #: ../src/guestfs-actions.pod:1770
26757 #, no-wrap
26758 msgid ""
26759 " char *\n"
26760 " guestfs_echo_daemon (guestfs_h *g,\n"
26761 "                      char *const *words);\n"
26762 "\n"
26763 msgstr ""
26764
26765 #. type: textblock
26766 #: ../src/guestfs-actions.pod:1779
26767 msgid "See also C<guestfs_ping_daemon>."
26768 msgstr ""
26769
26770 #. type: textblock
26771 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:2542
26772 #: ../src/guestfs-actions.pod:6884
26773 msgid "(Added in 1.0.69)"
26774 msgstr ""
26775
26776 #. type: =head2
26777 #: ../src/guestfs-actions.pod:1786
26778 msgid "guestfs_egrep"
26779 msgstr ""
26780
26781 #. type: verbatim
26782 #: ../src/guestfs-actions.pod:1788
26783 #, no-wrap
26784 msgid ""
26785 " char **\n"
26786 " guestfs_egrep (guestfs_h *g,\n"
26787 "                const char *regex,\n"
26788 "                const char *path);\n"
26789 "\n"
26790 msgstr ""
26791
26792 #. type: textblock
26793 #: ../src/guestfs-actions.pod:1803 ../src/guestfs-actions.pod:1822
26794 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:1925
26795 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:2672
26796 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2869
26797 #: ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2897
26798 #: ../src/guestfs-actions.pod:2943 ../src/guestfs-actions.pod:2965
26799 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:4264
26800 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4291
26801 #: ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:5306
26802 #: ../src/guestfs-actions.pod:6345 ../src/guestfs-actions.pod:6394
26803 #: ../src/guestfs-actions.pod:7280 ../src/guestfs-actions.pod:7292
26804 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:7318
26805 #: ../src/guestfs-actions.pod:7340 ../src/guestfs-actions.pod:7353
26806 #: ../src/guestfs-actions.pod:7366 ../src/guestfs-actions.pod:7379
26807 #: ../src/guestfs-actions.pod:8173 ../src/guestfs-actions.pod:8192
26808 #: ../src/guestfs-actions.pod:8286 ../src/guestfs-actions.pod:8305
26809 #: ../src/guestfs-actions.pod:8351 ../src/guestfs-actions.pod:8370
26810 msgid "(Added in 1.0.66)"
26811 msgstr ""
26812
26813 #. type: =head2
26814 #: ../src/guestfs-actions.pod:1805
26815 msgid "guestfs_egrepi"
26816 msgstr ""
26817
26818 #. type: verbatim
26819 #: ../src/guestfs-actions.pod:1807
26820 #, no-wrap
26821 msgid ""
26822 " char **\n"
26823 " guestfs_egrepi (guestfs_h *g,\n"
26824 "                 const char *regex,\n"
26825 "                 const char *path);\n"
26826 "\n"
26827 msgstr ""
26828
26829 #. type: =head2
26830 #: ../src/guestfs-actions.pod:1824
26831 msgid "guestfs_equal"
26832 msgstr ""
26833
26834 #. type: verbatim
26835 #: ../src/guestfs-actions.pod:1826
26836 #, no-wrap
26837 msgid ""
26838 " int\n"
26839 " guestfs_equal (guestfs_h *g,\n"
26840 "                const char *file1,\n"
26841 "                const char *file2);\n"
26842 "\n"
26843 msgstr ""
26844
26845 #. type: =head2
26846 #: ../src/guestfs-actions.pod:1840
26847 msgid "guestfs_exists"
26848 msgstr ""
26849
26850 #. type: verbatim
26851 #: ../src/guestfs-actions.pod:1842
26852 #, no-wrap
26853 msgid ""
26854 " int\n"
26855 " guestfs_exists (guestfs_h *g,\n"
26856 "                 const char *path);\n"
26857 "\n"
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../src/guestfs-actions.pod:1849
26862 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:1855
26867 msgid "guestfs_fallocate"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:1857
26872 #, no-wrap
26873 msgid ""
26874 " int\n"
26875 " guestfs_fallocate (guestfs_h *g,\n"
26876 "                    const char *path,\n"
26877 "                    int len);\n"
26878 "\n"
26879 msgstr ""
26880
26881 #. type: textblock
26882 #: ../src/guestfs-actions.pod:1862
26883 msgid ""
26884 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26885 "call instead."
26886 msgstr ""
26887
26888 #. type: =head2
26889 #: ../src/guestfs-actions.pod:1881
26890 msgid "guestfs_fallocate64"
26891 msgstr ""
26892
26893 #. type: verbatim
26894 #: ../src/guestfs-actions.pod:1883
26895 #, no-wrap
26896 msgid ""
26897 " int\n"
26898 " guestfs_fallocate64 (guestfs_h *g,\n"
26899 "                      const char *path,\n"
26900 "                      int64_t len);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: textblock
26905 #: ../src/guestfs-actions.pod:1892
26906 msgid ""
26907 "Note that this call allocates disk blocks for the file.  To create a sparse "
26908 "file use C<guestfs_truncate_size> instead."
26909 msgstr ""
26910
26911 #. type: textblock
26912 #: ../src/guestfs-actions.pod:1895
26913 msgid ""
26914 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26915 "oversight it only allowed 30 bit lengths to be specified, effectively "
26916 "limiting the maximum size of files created through that call to 1GB."
26917 msgstr ""
26918
26919 #. type: textblock
26920 #: ../src/guestfs-actions.pod:1906
26921 msgid "(Added in 1.3.17)"
26922 msgstr ""
26923
26924 #. type: =head2
26925 #: ../src/guestfs-actions.pod:1908
26926 msgid "guestfs_fgrep"
26927 msgstr ""
26928
26929 #. type: verbatim
26930 #: ../src/guestfs-actions.pod:1910
26931 #, no-wrap
26932 msgid ""
26933 " char **\n"
26934 " guestfs_fgrep (guestfs_h *g,\n"
26935 "                const char *pattern,\n"
26936 "                const char *path);\n"
26937 "\n"
26938 msgstr ""
26939
26940 #. type: =head2
26941 #: ../src/guestfs-actions.pod:1927
26942 msgid "guestfs_fgrepi"
26943 msgstr ""
26944
26945 #. type: verbatim
26946 #: ../src/guestfs-actions.pod:1929
26947 #, no-wrap
26948 msgid ""
26949 " char **\n"
26950 " guestfs_fgrepi (guestfs_h *g,\n"
26951 "                 const char *pattern,\n"
26952 "                 const char *path);\n"
26953 "\n"
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../src/guestfs-actions.pod:1946
26958 msgid "guestfs_file"
26959 msgstr ""
26960
26961 #. type: verbatim
26962 #: ../src/guestfs-actions.pod:1948
26963 #, no-wrap
26964 msgid ""
26965 " char *\n"
26966 " guestfs_file (guestfs_h *g,\n"
26967 "               const char *path);\n"
26968 "\n"
26969 msgstr ""
26970
26971 #. type: textblock
26972 #: ../src/guestfs-actions.pod:1966
26973 msgid ""
26974 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26975 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26976 msgstr ""
26977
26978 #. type: =head2
26979 #: ../src/guestfs-actions.pod:1974
26980 msgid "guestfs_file_architecture"
26981 msgstr ""
26982
26983 #. type: verbatim
26984 #: ../src/guestfs-actions.pod:1976
26985 #, no-wrap
26986 msgid ""
26987 " char *\n"
26988 " guestfs_file_architecture (guestfs_h *g,\n"
26989 "                            const char *filename);\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:2247
26995 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2998
26996 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3166
26997 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3371
26998 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3487
26999 #: ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:3821
27000 #: ../src/guestfs-actions.pod:3953
27001 msgid "(Added in 1.5.3)"
27002 msgstr ""
27003
27004 #. type: =head2
27005 #: ../src/guestfs-actions.pod:2086
27006 msgid "guestfs_filesize"
27007 msgstr ""
27008
27009 #. type: verbatim
27010 #: ../src/guestfs-actions.pod:2088
27011 #, no-wrap
27012 msgid ""
27013 " int64_t\n"
27014 " guestfs_filesize (guestfs_h *g,\n"
27015 "                   const char *file);\n"
27016 "\n"
27017 msgstr ""
27018
27019 #. type: textblock
27020 #: ../src/guestfs-actions.pod:2094
27021 msgid ""
27022 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27023 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27024 "devices, use C<guestfs_blockdev_getsize64>."
27025 msgstr ""
27026
27027 #. type: textblock
27028 #: ../src/guestfs-actions.pod:2100
27029 msgid "(Added in 1.0.82)"
27030 msgstr ""
27031
27032 #. type: =head2
27033 #: ../src/guestfs-actions.pod:2102
27034 msgid "guestfs_fill"
27035 msgstr ""
27036
27037 #. type: verbatim
27038 #: ../src/guestfs-actions.pod:2104
27039 #, no-wrap
27040 msgid ""
27041 " int\n"
27042 " guestfs_fill (guestfs_h *g,\n"
27043 "               int c,\n"
27044 "               int len,\n"
27045 "               const char *path);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../src/guestfs-actions.pod:2114
27051 msgid ""
27052 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27053 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27054 "bytes use C<guestfs_fill_pattern>."
27055 msgstr ""
27056
27057 #. type: textblock
27058 #: ../src/guestfs-actions.pod:2126
27059 msgid "(Added in 1.0.79)"
27060 msgstr ""
27061
27062 #. type: =head2
27063 #: ../src/guestfs-actions.pod:2128
27064 msgid "guestfs_fill_pattern"
27065 msgstr ""
27066
27067 #. type: verbatim
27068 #: ../src/guestfs-actions.pod:2130
27069 #, no-wrap
27070 msgid ""
27071 " int\n"
27072 " guestfs_fill_pattern (guestfs_h *g,\n"
27073 "                       const char *pattern,\n"
27074 "                       int len,\n"
27075 "                       const char *path);\n"
27076 "\n"
27077 msgstr ""
27078
27079 #. type: textblock
27080 #: ../src/guestfs-actions.pod:2136
27081 msgid ""
27082 "This function is like C<guestfs_fill> except that it creates a new file of "
27083 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27084 "pattern is truncated if necessary to ensure the length of the file is "
27085 "exactly C<len> bytes."
27086 msgstr ""
27087
27088 #. type: textblock
27089 #: ../src/guestfs-actions.pod:2148
27090 msgid "(Added in 1.3.12)"
27091 msgstr ""
27092
27093 #. type: =head2
27094 #: ../src/guestfs-actions.pod:2150
27095 msgid "guestfs_find"
27096 msgstr ""
27097
27098 #. type: verbatim
27099 #: ../src/guestfs-actions.pod:2152
27100 #, no-wrap
27101 msgid ""
27102 " char **\n"
27103 " guestfs_find (guestfs_h *g,\n"
27104 "               const char *directory);\n"
27105 "\n"
27106 msgstr ""
27107
27108 #. type: textblock
27109 #: ../src/guestfs-actions.pod:2168
27110 msgid ""
27111 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:2181
27116 msgid "See also C<guestfs_find0>."
27117 msgstr ""
27118
27119 #. type: textblock
27120 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:4711
27121 #: ../src/guestfs-actions.pod:6429
27122 msgid "(Added in 1.0.27)"
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../src/guestfs-actions.pod:2192
27127 msgid "guestfs_find0"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../src/guestfs-actions.pod:2194
27132 #, no-wrap
27133 msgid ""
27134 " int\n"
27135 " guestfs_find0 (guestfs_h *g,\n"
27136 "                const char *directory,\n"
27137 "                const char *files);\n"
27138 "\n"
27139 msgstr ""
27140
27141 #. type: textblock
27142 #: ../src/guestfs-actions.pod:2203
27143 msgid ""
27144 "This command works the same way as C<guestfs_find> with the following "
27145 "exceptions:"
27146 msgstr ""
27147
27148 #. type: textblock
27149 #: ../src/guestfs-actions.pod:2230
27150 msgid "(Added in 1.0.74)"
27151 msgstr ""
27152
27153 #. type: =head2
27154 #: ../src/guestfs-actions.pod:2232
27155 msgid "guestfs_findfs_label"
27156 msgstr ""
27157
27158 #. type: verbatim
27159 #: ../src/guestfs-actions.pod:2234
27160 #, no-wrap
27161 msgid ""
27162 " char *\n"
27163 " guestfs_findfs_label (guestfs_h *g,\n"
27164 "                       const char *label);\n"
27165 "\n"
27166 msgstr ""
27167
27168 #. type: textblock
27169 #: ../src/guestfs-actions.pod:2242
27170 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27171 msgstr ""
27172
27173 #. type: =head2
27174 #: ../src/guestfs-actions.pod:2249
27175 msgid "guestfs_findfs_uuid"
27176 msgstr ""
27177
27178 #. type: verbatim
27179 #: ../src/guestfs-actions.pod:2251
27180 #, no-wrap
27181 msgid ""
27182 " char *\n"
27183 " guestfs_findfs_uuid (guestfs_h *g,\n"
27184 "                      const char *uuid);\n"
27185 "\n"
27186 msgstr ""
27187
27188 #. type: textblock
27189 #: ../src/guestfs-actions.pod:2259
27190 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27191 msgstr ""
27192
27193 #. type: =head2
27194 #: ../src/guestfs-actions.pod:2266
27195 msgid "guestfs_fsck"
27196 msgstr ""
27197
27198 #. type: verbatim
27199 #: ../src/guestfs-actions.pod:2268
27200 #, no-wrap
27201 msgid ""
27202 " int\n"
27203 " guestfs_fsck (guestfs_h *g,\n"
27204 "               const char *fstype,\n"
27205 "               const char *device);\n"
27206 "\n"
27207 msgstr ""
27208
27209 #. type: textblock
27210 #: ../src/guestfs-actions.pod:2303 ../src/guestfs-actions.pod:8220
27211 msgid "(Added in 1.0.16)"
27212 msgstr ""
27213
27214 #. type: =head2
27215 #: ../src/guestfs-actions.pod:2305
27216 msgid "guestfs_get_append"
27217 msgstr ""
27218
27219 #. type: verbatim
27220 #: ../src/guestfs-actions.pod:2307
27221 #, no-wrap
27222 msgid ""
27223 " const char *\n"
27224 " guestfs_get_append (guestfs_h *g);\n"
27225 "\n"
27226 msgstr ""
27227
27228 #. type: textblock
27229 #: ../src/guestfs-actions.pod:2315
27230 msgid ""
27231 "This function returns a string which may be NULL.  There is no way to return "
27232 "an error from this function.  The string is owned by the guest handle and "
27233 "must I<not> be freed."
27234 msgstr ""
27235
27236 #. type: textblock
27237 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:6107
27238 #: ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:7047
27239 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7082
27240 #: ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7860
27241 #: ../src/guestfs-actions.pod:7875 ../src/guestfs-actions.pod:8267
27242 msgid "(Added in 1.0.26)"
27243 msgstr ""
27244
27245 #. type: =head2
27246 #: ../src/guestfs-actions.pod:2321
27247 msgid "guestfs_get_attach_method"
27248 msgstr ""
27249
27250 #. type: verbatim
27251 #: ../src/guestfs-actions.pod:2323
27252 #, no-wrap
27253 msgid ""
27254 " char *\n"
27255 " guestfs_get_attach_method (guestfs_h *g);\n"
27256 "\n"
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../src/guestfs-actions.pod:2326
27261 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:6619
27266 msgid "(Added in 1.9.8)"
27267 msgstr ""
27268
27269 #. type: =head2
27270 #: ../src/guestfs-actions.pod:2333
27271 msgid "guestfs_get_autosync"
27272 msgstr ""
27273
27274 #. type: verbatim
27275 #: ../src/guestfs-actions.pod:2335
27276 #, no-wrap
27277 msgid ""
27278 " int\n"
27279 " guestfs_get_autosync (guestfs_h *g);\n"
27280 "\n"
27281 msgstr ""
27282
27283 #. type: =head2
27284 #: ../src/guestfs-actions.pod:2344
27285 msgid "guestfs_get_direct"
27286 msgstr ""
27287
27288 #. type: verbatim
27289 #: ../src/guestfs-actions.pod:2346
27290 #, no-wrap
27291 msgid ""
27292 " int\n"
27293 " guestfs_get_direct (guestfs_h *g);\n"
27294 "\n"
27295 msgstr ""
27296
27297 #. type: textblock
27298 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:6660
27299 msgid "(Added in 1.0.72)"
27300 msgstr ""
27301
27302 #. type: =head2
27303 #: ../src/guestfs-actions.pod:2355
27304 msgid "guestfs_get_e2label"
27305 msgstr ""
27306
27307 #. type: verbatim
27308 #: ../src/guestfs-actions.pod:2357
27309 #, no-wrap
27310 msgid ""
27311 " char *\n"
27312 " guestfs_get_e2label (guestfs_h *g,\n"
27313 "                      const char *device);\n"
27314 "\n"
27315 msgstr ""
27316
27317 #. type: textblock
27318 #: ../src/guestfs-actions.pod:2361
27319 msgid ""
27320 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27321 "call instead."
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2395
27326 #: ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6697
27327 msgid "(Added in 1.0.15)"
27328 msgstr ""
27329
27330 #. type: =head2
27331 #: ../src/guestfs-actions.pod:2376
27332 msgid "guestfs_get_e2uuid"
27333 msgstr ""
27334
27335 #. type: verbatim
27336 #: ../src/guestfs-actions.pod:2378
27337 #, no-wrap
27338 msgid ""
27339 " char *\n"
27340 " guestfs_get_e2uuid (guestfs_h *g,\n"
27341 "                     const char *device);\n"
27342 "\n"
27343 msgstr ""
27344
27345 #. type: textblock
27346 #: ../src/guestfs-actions.pod:2382
27347 msgid ""
27348 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27349 "call instead."
27350 msgstr ""
27351
27352 #. type: =head2
27353 #: ../src/guestfs-actions.pod:2397
27354 msgid "guestfs_get_memsize"
27355 msgstr ""
27356
27357 #. type: verbatim
27358 #: ../src/guestfs-actions.pod:2399
27359 #, no-wrap
27360 msgid ""
27361 " int\n"
27362 " guestfs_get_memsize (guestfs_h *g);\n"
27363 "\n"
27364 msgstr ""
27365
27366 #. type: textblock
27367 #: ../src/guestfs-actions.pod:2405
27368 msgid ""
27369 "If C<guestfs_set_memsize> was not called on this handle, and if "
27370 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27371 "value for memsize."
27372 msgstr ""
27373
27374 #. type: textblock
27375 #: ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:5002
27376 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5230
27377 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5261
27378 #: ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5291
27379 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6718
27380 #: ../src/guestfs-actions.pod:7014 ../src/guestfs-actions.pod:7629
27381 msgid "(Added in 1.0.55)"
27382 msgstr ""
27383
27384 #. type: =head2
27385 #: ../src/guestfs-actions.pod:2416
27386 msgid "guestfs_get_network"
27387 msgstr ""
27388
27389 #. type: verbatim
27390 #: ../src/guestfs-actions.pod:2418
27391 #, no-wrap
27392 msgid ""
27393 " int\n"
27394 " guestfs_get_network (guestfs_h *g);\n"
27395 "\n"
27396 msgstr ""
27397
27398 #. type: textblock
27399 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6737
27400 msgid "(Added in 1.5.4)"
27401 msgstr ""
27402
27403 #. type: =head2
27404 #: ../src/guestfs-actions.pod:2427
27405 msgid "guestfs_get_path"
27406 msgstr ""
27407
27408 #. type: verbatim
27409 #: ../src/guestfs-actions.pod:2429
27410 #, no-wrap
27411 msgid ""
27412 " const char *\n"
27413 " guestfs_get_path (guestfs_h *g);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: textblock
27418 #: ../src/guestfs-actions.pod:2437 ../src/guestfs-actions.pod:2477
27419 msgid ""
27420 "This function returns a string, or NULL on error.  The string is owned by "
27421 "the guest handle and must I<not> be freed."
27422 msgstr ""
27423
27424 #. type: =head2
27425 #: ../src/guestfs-actions.pod:2442
27426 msgid "guestfs_get_pgroup"
27427 msgstr ""
27428
27429 #. type: verbatim
27430 #: ../src/guestfs-actions.pod:2444
27431 #, no-wrap
27432 msgid ""
27433 " int\n"
27434 " guestfs_get_pgroup (guestfs_h *g);\n"
27435 "\n"
27436 msgstr ""
27437
27438 #. type: textblock
27439 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:6773
27440 #: ../src/guestfs-actions.pod:8121
27441 msgid "(Added in 1.11.18)"
27442 msgstr ""
27443
27444 #. type: =head2
27445 #: ../src/guestfs-actions.pod:2453
27446 msgid "guestfs_get_pid"
27447 msgstr ""
27448
27449 #. type: verbatim
27450 #: ../src/guestfs-actions.pod:2455
27451 #, no-wrap
27452 msgid ""
27453 " int\n"
27454 " guestfs_get_pid (guestfs_h *g);\n"
27455 "\n"
27456 msgstr ""
27457
27458 #. type: textblock
27459 #: ../src/guestfs-actions.pod:2465
27460 msgid "(Added in 1.0.56)"
27461 msgstr ""
27462
27463 #. type: =head2
27464 #: ../src/guestfs-actions.pod:2467
27465 msgid "guestfs_get_qemu"
27466 msgstr ""
27467
27468 #. type: verbatim
27469 #: ../src/guestfs-actions.pod:2469
27470 #, no-wrap
27471 msgid ""
27472 " const char *\n"
27473 " guestfs_get_qemu (guestfs_h *g);\n"
27474 "\n"
27475 msgstr ""
27476
27477 #. type: textblock
27478 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6801
27479 msgid "(Added in 1.0.6)"
27480 msgstr ""
27481
27482 #. type: =head2
27483 #: ../src/guestfs-actions.pod:2482
27484 msgid "guestfs_get_recovery_proc"
27485 msgstr ""
27486
27487 #. type: verbatim
27488 #: ../src/guestfs-actions.pod:2484
27489 #, no-wrap
27490 msgid ""
27491 " int\n"
27492 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27493 "\n"
27494 msgstr ""
27495
27496 #. type: textblock
27497 #: ../src/guestfs-actions.pod:2491 ../src/guestfs-actions.pod:4075
27498 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4809
27499 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:6037
27500 #: ../src/guestfs-actions.pod:6380 ../src/guestfs-actions.pod:6825
27501 #: ../src/guestfs-actions.pod:7532 ../src/guestfs-actions.pod:7552
27502 #: ../src/guestfs-actions.pod:7744
27503 msgid "(Added in 1.0.77)"
27504 msgstr ""
27505
27506 #. type: =head2
27507 #: ../src/guestfs-actions.pod:2493
27508 msgid "guestfs_get_selinux"
27509 msgstr ""
27510
27511 #. type: verbatim
27512 #: ../src/guestfs-actions.pod:2495
27513 #, no-wrap
27514 msgid ""
27515 " int\n"
27516 " guestfs_get_selinux (guestfs_h *g);\n"
27517 "\n"
27518 msgstr ""
27519
27520 #. type: textblock
27521 #: ../src/guestfs-actions.pod:2498
27522 msgid ""
27523 "This returns the current setting of the selinux flag which is passed to the "
27524 "appliance at boot time.  See C<guestfs_set_selinux>."
27525 msgstr ""
27526
27527 #. type: textblock
27528 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2580
27529 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6918
27530 msgid "(Added in 1.0.67)"
27531 msgstr ""
27532
27533 #. type: =head2
27534 #: ../src/guestfs-actions.pod:2508
27535 msgid "guestfs_get_smp"
27536 msgstr ""
27537
27538 #. type: verbatim
27539 #: ../src/guestfs-actions.pod:2510
27540 #, no-wrap
27541 msgid ""
27542 " int\n"
27543 " guestfs_get_smp (guestfs_h *g);\n"
27544 "\n"
27545 msgstr ""
27546
27547 #. type: =head2
27548 #: ../src/guestfs-actions.pod:2519
27549 msgid "guestfs_get_state"
27550 msgstr ""
27551
27552 #. type: verbatim
27553 #: ../src/guestfs-actions.pod:2521
27554 #, no-wrap
27555 msgid ""
27556 " int\n"
27557 " guestfs_get_state (guestfs_h *g);\n"
27558 "\n"
27559 msgstr ""
27560
27561 #. type: =head2
27562 #: ../src/guestfs-actions.pod:2533
27563 msgid "guestfs_get_trace"
27564 msgstr ""
27565
27566 #. type: verbatim
27567 #: ../src/guestfs-actions.pod:2535
27568 #, no-wrap
27569 msgid ""
27570 " int\n"
27571 " guestfs_get_trace (guestfs_h *g);\n"
27572 "\n"
27573 msgstr ""
27574
27575 #. type: =head2
27576 #: ../src/guestfs-actions.pod:2544
27577 msgid "guestfs_get_umask"
27578 msgstr ""
27579
27580 #. type: verbatim
27581 #: ../src/guestfs-actions.pod:2546
27582 #, no-wrap
27583 msgid ""
27584 " int\n"
27585 " guestfs_get_umask (guestfs_h *g);\n"
27586 "\n"
27587 msgstr ""
27588
27589 #. type: textblock
27590 #: ../src/guestfs-actions.pod:2549
27591 msgid ""
27592 "Return the current umask.  By default the umask is C<022> unless it has been "
27593 "set by calling C<guestfs_umask>."
27594 msgstr ""
27595
27596 #. type: =head2
27597 #: ../src/guestfs-actions.pod:2556
27598 msgid "guestfs_get_verbose"
27599 msgstr ""
27600
27601 #. type: verbatim
27602 #: ../src/guestfs-actions.pod:2558
27603 #, no-wrap
27604 msgid ""
27605 " int\n"
27606 " guestfs_get_verbose (guestfs_h *g);\n"
27607 "\n"
27608 msgstr ""
27609
27610 #. type: =head2
27611 #: ../src/guestfs-actions.pod:2567
27612 msgid "guestfs_getcon"
27613 msgstr ""
27614
27615 #. type: verbatim
27616 #: ../src/guestfs-actions.pod:2569
27617 #, no-wrap
27618 msgid ""
27619 " char *\n"
27620 " guestfs_getcon (guestfs_h *g);\n"
27621 "\n"
27622 msgstr ""
27623
27624 #. type: textblock
27625 #: ../src/guestfs-actions.pod:2574
27626 msgid ""
27627 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27628 msgstr ""
27629
27630 #. type: =head2
27631 #: ../src/guestfs-actions.pod:2582
27632 msgid "guestfs_getxattr"
27633 msgstr ""
27634
27635 #. type: verbatim
27636 #: ../src/guestfs-actions.pod:2584
27637 #, no-wrap
27638 msgid ""
27639 " char *\n"
27640 " guestfs_getxattr (guestfs_h *g,\n"
27641 "                   const char *path,\n"
27642 "                   const char *name,\n"
27643 "                   size_t *size_r);\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../src/guestfs-actions.pod:2590
27649 msgid ""
27650 "Get a single extended attribute from file C<path> named C<name>.  This call "
27651 "follows symlinks.  If you want to lookup an extended attribute for the "
27652 "symlink itself, use C<guestfs_lgetxattr>."
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:2594 ../src/guestfs-actions.pod:4089
27657 msgid ""
27658 "Normally it is better to get all extended attributes from a file in one go "
27659 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27660 "implementations are buggy and do not provide a way to list out attributes.  "
27661 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27662 "extended attributes you want in advance and call this function."
27663 msgstr ""
27664
27665 #. type: textblock
27666 #: ../src/guestfs-actions.pod:2604
27667 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27668 msgstr ""
27669
27670 #. type: textblock
27671 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2819
27672 #: ../src/guestfs-actions.pod:3301 ../src/guestfs-actions.pod:4101
27673 #: ../src/guestfs-actions.pod:6030 ../src/guestfs-actions.pod:6056
27674 #: ../src/guestfs-actions.pod:6237
27675 msgid ""
27676 "This function returns a buffer, or NULL on error.  The size of the returned "
27677 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27678 "after use>."
27679 msgstr ""
27680
27681 #. type: textblock
27682 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:4105
27683 msgid "(Added in 1.7.24)"
27684 msgstr ""
27685
27686 #. type: =head2
27687 #: ../src/guestfs-actions.pod:2612
27688 msgid "guestfs_getxattrs"
27689 msgstr ""
27690
27691 #. type: verbatim
27692 #: ../src/guestfs-actions.pod:2614
27693 #, no-wrap
27694 msgid ""
27695 " struct guestfs_xattr_list *\n"
27696 " guestfs_getxattrs (guestfs_h *g,\n"
27697 "                    const char *path);\n"
27698 "\n"
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../src/guestfs-actions.pod:2624
27703 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27704 msgstr ""
27705
27706 #. type: textblock
27707 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:4117
27708 #: ../src/guestfs-actions.pod:4805
27709 msgid ""
27710 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27711 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27712 msgstr ""
27713
27714 #. type: textblock
27715 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:4121
27716 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4356
27717 #: ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:6937
27718 #: ../src/guestfs-actions.pod:8332
27719 msgid "(Added in 1.0.59)"
27720 msgstr ""
27721
27722 #. type: =head2
27723 #: ../src/guestfs-actions.pod:2632
27724 msgid "guestfs_glob_expand"
27725 msgstr ""
27726
27727 #. type: verbatim
27728 #: ../src/guestfs-actions.pod:2634
27729 #, no-wrap
27730 msgid ""
27731 " char **\n"
27732 " guestfs_glob_expand (guestfs_h *g,\n"
27733 "                      const char *pattern);\n"
27734 "\n"
27735 msgstr ""
27736
27737 #. type: textblock
27738 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:7130
27739 #: ../src/guestfs-actions.pod:7147
27740 msgid "(Added in 1.0.50)"
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:2655
27745 msgid "guestfs_grep"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:2657
27750 #, no-wrap
27751 msgid ""
27752 " char **\n"
27753 " guestfs_grep (guestfs_h *g,\n"
27754 "               const char *regex,\n"
27755 "               const char *path);\n"
27756 "\n"
27757 msgstr ""
27758
27759 #. type: =head2
27760 #: ../src/guestfs-actions.pod:2674
27761 msgid "guestfs_grepi"
27762 msgstr ""
27763
27764 #. type: verbatim
27765 #: ../src/guestfs-actions.pod:2676
27766 #, no-wrap
27767 msgid ""
27768 " char **\n"
27769 " guestfs_grepi (guestfs_h *g,\n"
27770 "                const char *regex,\n"
27771 "                const char *path);\n"
27772 "\n"
27773 msgstr ""
27774
27775 #. type: =head2
27776 #: ../src/guestfs-actions.pod:2693
27777 msgid "guestfs_grub_install"
27778 msgstr ""
27779
27780 #. type: verbatim
27781 #: ../src/guestfs-actions.pod:2695
27782 #, no-wrap
27783 msgid ""
27784 " int\n"
27785 " guestfs_grub_install (guestfs_h *g,\n"
27786 "                       const char *root,\n"
27787 "                       const char *device);\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: textblock
27792 #: ../src/guestfs-actions.pod:2738
27793 msgid "(Added in 1.0.17)"
27794 msgstr ""
27795
27796 #. type: =head2
27797 #: ../src/guestfs-actions.pod:2740
27798 msgid "guestfs_head"
27799 msgstr ""
27800
27801 #. type: verbatim
27802 #: ../src/guestfs-actions.pod:2742
27803 #, no-wrap
27804 msgid ""
27805 " char **\n"
27806 " guestfs_head (guestfs_h *g,\n"
27807 "               const char *path);\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: =head2
27812 #: ../src/guestfs-actions.pod:2758
27813 msgid "guestfs_head_n"
27814 msgstr ""
27815
27816 #. type: verbatim
27817 #: ../src/guestfs-actions.pod:2760
27818 #, no-wrap
27819 msgid ""
27820 " char **\n"
27821 " guestfs_head_n (guestfs_h *g,\n"
27822 "                 int nrlines,\n"
27823 "                 const char *path);\n"
27824 "\n"
27825 msgstr ""
27826
27827 #. type: =head2
27828 #: ../src/guestfs-actions.pod:2782
27829 msgid "guestfs_hexdump"
27830 msgstr ""
27831
27832 #. type: verbatim
27833 #: ../src/guestfs-actions.pod:2784
27834 #, no-wrap
27835 msgid ""
27836 " char *\n"
27837 " guestfs_hexdump (guestfs_h *g,\n"
27838 "                  const char *path);\n"
27839 "\n"
27840 msgstr ""
27841
27842 #. type: textblock
27843 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:7211
27844 #: ../src/guestfs-actions.pod:7266
27845 msgid "(Added in 1.0.22)"
27846 msgstr ""
27847
27848 #. type: =head2
27849 #: ../src/guestfs-actions.pod:2799
27850 msgid "guestfs_initrd_cat"
27851 msgstr ""
27852
27853 #. type: verbatim
27854 #: ../src/guestfs-actions.pod:2801
27855 #, no-wrap
27856 msgid ""
27857 " char *\n"
27858 " guestfs_initrd_cat (guestfs_h *g,\n"
27859 "                     const char *initrdpath,\n"
27860 "                     const char *filename,\n"
27861 "                     size_t *size_r);\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:2817
27867 msgid "See also C<guestfs_initrd_list>."
27868 msgstr ""
27869
27870 #. type: =head2
27871 #: ../src/guestfs-actions.pod:2828
27872 msgid "guestfs_initrd_list"
27873 msgstr ""
27874
27875 #. type: verbatim
27876 #: ../src/guestfs-actions.pod:2830
27877 #, no-wrap
27878 msgid ""
27879 " char **\n"
27880 " guestfs_initrd_list (guestfs_h *g,\n"
27881 "                      const char *path);\n"
27882 "\n"
27883 msgstr ""
27884
27885 #. type: =head2
27886 #: ../src/guestfs-actions.pod:2850
27887 msgid "guestfs_inotify_add_watch"
27888 msgstr ""
27889
27890 #. type: verbatim
27891 #: ../src/guestfs-actions.pod:2852
27892 #, no-wrap
27893 msgid ""
27894 " int64_t\n"
27895 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27896 "                            const char *path,\n"
27897 "                            int mask);\n"
27898 "\n"
27899 msgstr ""
27900
27901 #. type: =head2
27902 #: ../src/guestfs-actions.pod:2871
27903 msgid "guestfs_inotify_close"
27904 msgstr ""
27905
27906 #. type: verbatim
27907 #: ../src/guestfs-actions.pod:2873
27908 #, no-wrap
27909 msgid ""
27910 " int\n"
27911 " guestfs_inotify_close (guestfs_h *g);\n"
27912 "\n"
27913 msgstr ""
27914
27915 #. type: =head2
27916 #: ../src/guestfs-actions.pod:2884
27917 msgid "guestfs_inotify_files"
27918 msgstr ""
27919
27920 #. type: verbatim
27921 #: ../src/guestfs-actions.pod:2886
27922 #, no-wrap
27923 msgid ""
27924 " char **\n"
27925 " guestfs_inotify_files (guestfs_h *g);\n"
27926 "\n"
27927 msgstr ""
27928
27929 #. type: textblock
27930 #: ../src/guestfs-actions.pod:2889
27931 msgid ""
27932 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27933 "returns a list of pathnames of objects that were touched.  The returned "
27934 "pathnames are sorted and deduplicated."
27935 msgstr ""
27936
27937 #. type: =head2
27938 #: ../src/guestfs-actions.pod:2899
27939 msgid "guestfs_inotify_init"
27940 msgstr ""
27941
27942 #. type: verbatim
27943 #: ../src/guestfs-actions.pod:2901
27944 #, no-wrap
27945 msgid ""
27946 " int\n"
27947 " guestfs_inotify_init (guestfs_h *g,\n"
27948 "                       int maxevents);\n"
27949 "\n"
27950 msgstr ""
27951
27952 #. type: textblock
27953 #: ../src/guestfs-actions.pod:2909
27954 msgid ""
27955 "C<maxevents> is the maximum number of events which will be queued up between "
27956 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27957 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27958 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27959 "throws away events, but records the fact that it threw them away by setting "
27960 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27961 "C<guestfs_inotify_read>)."
27962 msgstr ""
27963
27964 #. type: textblock
27965 #: ../src/guestfs-actions.pod:2919
27966 msgid ""
27967 "Before any events are generated, you have to add some watches to the "
27968 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27969 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27970 msgstr ""
27971
27972 #. type: textblock
27973 #: ../src/guestfs-actions.pod:2925
27974 msgid ""
27975 "Queued up events should be read periodically by calling "
27976 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27977 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27978 "often enough then you risk the internal queue overflowing."
27979 msgstr ""
27980
27981 #. type: textblock
27982 #: ../src/guestfs-actions.pod:2932
27983 msgid ""
27984 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27985 "This also removes any watches automatically."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:2945
27990 msgid "guestfs_inotify_read"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:2947
27995 #, no-wrap
27996 msgid ""
27997 " struct guestfs_inotify_event_list *\n"
27998 " guestfs_inotify_read (guestfs_h *g);\n"
27999 "\n"
28000 msgstr ""
28001
28002 #. type: textblock
28003 #: ../src/guestfs-actions.pod:2961
28004 msgid ""
28005 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28006 "there was an error.  I<The caller must call "
28007 "C<guestfs_free_inotify_event_list> after use>."
28008 msgstr ""
28009
28010 #. type: =head2
28011 #: ../src/guestfs-actions.pod:2967
28012 msgid "guestfs_inotify_rm_watch"
28013 msgstr ""
28014
28015 #. type: verbatim
28016 #: ../src/guestfs-actions.pod:2969
28017 #, no-wrap
28018 msgid ""
28019 " int\n"
28020 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28021 "                           int wd);\n"
28022 "\n"
28023 msgstr ""
28024
28025 #. type: textblock
28026 #: ../src/guestfs-actions.pod:2973
28027 msgid ""
28028 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28029 msgstr ""
28030
28031 #. type: =head2
28032 #: ../src/guestfs-actions.pod:2980
28033 msgid "guestfs_inspect_get_arch"
28034 msgstr ""
28035
28036 #. type: verbatim
28037 #: ../src/guestfs-actions.pod:2982
28038 #, no-wrap
28039 msgid ""
28040 " char *\n"
28041 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28042 "                           const char *root);\n"
28043 "\n"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:2986
28048 msgid ""
28049 "This returns the architecture of the inspected operating system.  The "
28050 "possible return values are listed under C<guestfs_file_architecture>."
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../src/guestfs-actions.pod:3000
28055 msgid "guestfs_inspect_get_distro"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../src/guestfs-actions.pod:3002
28060 #, no-wrap
28061 msgid ""
28062 " char *\n"
28063 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28064 "                             const char *root);\n"
28065 "\n"
28066 msgstr ""
28067
28068 #. type: =head2
28069 #: ../src/guestfs-actions.pod:3102
28070 msgid "guestfs_inspect_get_drive_mappings"
28071 msgstr ""
28072
28073 #. type: verbatim
28074 #: ../src/guestfs-actions.pod:3104
28075 #, no-wrap
28076 msgid ""
28077 " char **\n"
28078 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28079 "                                     const char *root);\n"
28080 "\n"
28081 msgstr ""
28082
28083 #. type: textblock
28084 #: ../src/guestfs-actions.pod:3133
28085 msgid ""
28086 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28087 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3405
28092 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:5480
28093 #: ../src/guestfs-actions.pod:7568
28094 msgid ""
28095 "This function returns a NULL-terminated array of strings, or NULL if there "
28096 "was an error.  The array of strings will always have length C<2n+1>, where "
28097 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28098 "caller must free the strings and the array after use>."
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:3604
28103 msgid "(Added in 1.9.17)"
28104 msgstr ""
28105
28106 #. type: =head2
28107 #: ../src/guestfs-actions.pod:3145
28108 msgid "guestfs_inspect_get_filesystems"
28109 msgstr ""
28110
28111 #. type: verbatim
28112 #: ../src/guestfs-actions.pod:3147
28113 #, no-wrap
28114 msgid ""
28115 " char **\n"
28116 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28117 "                                  const char *root);\n"
28118 "\n"
28119 msgstr ""
28120
28121 #. type: textblock
28122 #: ../src/guestfs-actions.pod:3159
28123 msgid ""
28124 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28125 "C<guestfs_inspect_get_mountpoints>."
28126 msgstr ""
28127
28128 #. type: =head2
28129 #: ../src/guestfs-actions.pod:3168
28130 msgid "guestfs_inspect_get_format"
28131 msgstr ""
28132
28133 #. type: verbatim
28134 #: ../src/guestfs-actions.pod:3170
28135 #, no-wrap
28136 msgid ""
28137 " char *\n"
28138 " guestfs_inspect_get_format (guestfs_h *g,\n"
28139 "                             const char *root);\n"
28140 "\n"
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../src/guestfs-actions.pod:3204 ../src/guestfs-actions.pod:3640
28145 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3674
28146 #: ../src/guestfs-actions.pod:6448
28147 msgid "(Added in 1.9.4)"
28148 msgstr ""
28149
28150 #. type: =head2
28151 #: ../src/guestfs-actions.pod:3206
28152 msgid "guestfs_inspect_get_hostname"
28153 msgstr ""
28154
28155 #. type: verbatim
28156 #: ../src/guestfs-actions.pod:3208
28157 #, no-wrap
28158 msgid ""
28159 " char *\n"
28160 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28161 "                               const char *root);\n"
28162 "\n"
28163 msgstr ""
28164
28165 #. type: textblock
28166 #: ../src/guestfs-actions.pod:3223
28167 msgid "(Added in 1.7.9)"
28168 msgstr ""
28169
28170 #. type: =head2
28171 #: ../src/guestfs-actions.pod:3225
28172 msgid "guestfs_inspect_get_icon"
28173 msgstr ""
28174
28175 #. type: verbatim
28176 #: ../src/guestfs-actions.pod:3227
28177 #, no-wrap
28178 msgid ""
28179 " char *\n"
28180 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28181 "                           const char *root,\n"
28182 "                           size_t *size_r,\n"
28183 "                           ...);\n"
28184 "\n"
28185 msgstr ""
28186
28187 #. type: verbatim
28188 #: ../src/guestfs-actions.pod:3238
28189 #, no-wrap
28190 msgid ""
28191 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28192 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28193 "\n"
28194 msgstr ""
28195
28196 #. type: textblock
28197 #: ../src/guestfs-actions.pod:3305 ../src/guestfs-actions.pod:4135
28198 #: ../src/guestfs-actions.pod:5379
28199 msgid "(Added in 1.11.12)"
28200 msgstr ""
28201
28202 #. type: =head2
28203 #: ../src/guestfs-actions.pod:3307
28204 msgid "guestfs_inspect_get_icon_va"
28205 msgstr ""
28206
28207 #. type: verbatim
28208 #: ../src/guestfs-actions.pod:3309
28209 #, no-wrap
28210 msgid ""
28211 " char *\n"
28212 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28213 "                              const char *root,\n"
28214 "                              size_t *size_r,\n"
28215 "                              va_list args);\n"
28216 "\n"
28217 msgstr ""
28218
28219 #. type: textblock
28220 #: ../src/guestfs-actions.pod:3315
28221 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28222 msgstr ""
28223
28224 #. type: =head2
28225 #: ../src/guestfs-actions.pod:3319
28226 msgid "guestfs_inspect_get_icon_argv"
28227 msgstr ""
28228
28229 #. type: verbatim
28230 #: ../src/guestfs-actions.pod:3321
28231 #, no-wrap
28232 msgid ""
28233 " char *\n"
28234 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28235 "                                const char *root,\n"
28236 "                                size_t *size_r,\n"
28237 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28238 "\n"
28239 msgstr ""
28240
28241 #. type: textblock
28242 #: ../src/guestfs-actions.pod:3327
28243 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28244 msgstr ""
28245
28246 #. type: =head2
28247 #: ../src/guestfs-actions.pod:3331
28248 msgid "guestfs_inspect_get_major_version"
28249 msgstr ""
28250
28251 #. type: verbatim
28252 #: ../src/guestfs-actions.pod:3333
28253 #, no-wrap
28254 msgid ""
28255 " int\n"
28256 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28257 "                                    const char *root);\n"
28258 "\n"
28259 msgstr ""
28260
28261 #. type: =head2
28262 #: ../src/guestfs-actions.pod:3355
28263 msgid "guestfs_inspect_get_minor_version"
28264 msgstr ""
28265
28266 #. type: verbatim
28267 #: ../src/guestfs-actions.pod:3357
28268 #, no-wrap
28269 msgid ""
28270 " int\n"
28271 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28272 "                                    const char *root);\n"
28273 "\n"
28274 msgstr ""
28275
28276 #. type: textblock
28277 #: ../src/guestfs-actions.pod:3366
28278 msgid ""
28279 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28280 "C<guestfs_inspect_get_major_version>."
28281 msgstr ""
28282
28283 #. type: =head2
28284 #: ../src/guestfs-actions.pod:3373
28285 msgid "guestfs_inspect_get_mountpoints"
28286 msgstr ""
28287
28288 #. type: verbatim
28289 #: ../src/guestfs-actions.pod:3375
28290 #, no-wrap
28291 msgid ""
28292 " char **\n"
28293 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28294 "                                  const char *root);\n"
28295 "\n"
28296 msgstr ""
28297
28298 #. type: textblock
28299 #: ../src/guestfs-actions.pod:3396
28300 msgid ""
28301 "For operating systems like Windows which still use drive letters, this call "
28302 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28303 "information about the mapping of drive letters to partitions, see "
28304 "C<guestfs_inspect_get_drive_mappings>."
28305 msgstr ""
28306
28307 #. type: textblock
28308 #: ../src/guestfs-actions.pod:3402
28309 msgid ""
28310 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28311 "C<guestfs_inspect_get_filesystems>."
28312 msgstr ""
28313
28314 #. type: =head2
28315 #: ../src/guestfs-actions.pod:3413
28316 msgid "guestfs_inspect_get_package_format"
28317 msgstr ""
28318
28319 #. type: verbatim
28320 #: ../src/guestfs-actions.pod:3415
28321 #, no-wrap
28322 msgid ""
28323 " char *\n"
28324 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28325 "                                     const char *root);\n"
28326 "\n"
28327 msgstr ""
28328
28329 #. type: textblock
28330 #: ../src/guestfs-actions.pod:3419
28331 msgid ""
28332 "This function and C<guestfs_inspect_get_package_management> return the "
28333 "package format and package management tool used by the inspected operating "
28334 "system.  For example for Fedora these functions would return C<rpm> (package "
28335 "format) and C<yum> (package management)."
28336 msgstr ""
28337
28338 #. type: textblock
28339 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3466
28340 msgid "(Added in 1.7.5)"
28341 msgstr ""
28342
28343 #. type: =head2
28344 #: ../src/guestfs-actions.pod:3440
28345 msgid "guestfs_inspect_get_package_management"
28346 msgstr ""
28347
28348 #. type: verbatim
28349 #: ../src/guestfs-actions.pod:3442
28350 #, no-wrap
28351 msgid ""
28352 " char *\n"
28353 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28354 "                                         const char *root);\n"
28355 "\n"
28356 msgstr ""
28357
28358 #. type: textblock
28359 #: ../src/guestfs-actions.pod:3446
28360 msgid ""
28361 "C<guestfs_inspect_get_package_format> and this function return the package "
28362 "format and package management tool used by the inspected operating system.  "
28363 "For example for Fedora these functions would return C<rpm> (package format) "
28364 "and C<yum> (package management)."
28365 msgstr ""
28366
28367 #. type: =head2
28368 #: ../src/guestfs-actions.pod:3468
28369 msgid "guestfs_inspect_get_product_name"
28370 msgstr ""
28371
28372 #. type: verbatim
28373 #: ../src/guestfs-actions.pod:3470
28374 #, no-wrap
28375 msgid ""
28376 " char *\n"
28377 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28378 "                                   const char *root);\n"
28379 "\n"
28380 msgstr ""
28381
28382 #. type: =head2
28383 #: ../src/guestfs-actions.pod:3489
28384 msgid "guestfs_inspect_get_product_variant"
28385 msgstr ""
28386
28387 #. type: verbatim
28388 #: ../src/guestfs-actions.pod:3491
28389 #, no-wrap
28390 msgid ""
28391 " char *\n"
28392 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28393 "                                      const char *root);\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: textblock
28398 #: ../src/guestfs-actions.pod:3514
28399 msgid ""
28400 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28401 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28402 msgstr ""
28403
28404 #. type: textblock
28405 #: ../src/guestfs-actions.pod:3521
28406 msgid "(Added in 1.9.13)"
28407 msgstr ""
28408
28409 #. type: =head2
28410 #: ../src/guestfs-actions.pod:3523
28411 msgid "guestfs_inspect_get_roots"
28412 msgstr ""
28413
28414 #. type: verbatim
28415 #: ../src/guestfs-actions.pod:3525
28416 #, no-wrap
28417 msgid ""
28418 " char **\n"
28419 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28420 "\n"
28421 msgstr ""
28422
28423 #. type: textblock
28424 #: ../src/guestfs-actions.pod:3528
28425 msgid ""
28426 "This function is a convenient way to get the list of root devices, as "
28427 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28428 "the whole inspection process."
28429 msgstr ""
28430
28431 #. type: textblock
28432 #: ../src/guestfs-actions.pod:3532
28433 msgid ""
28434 "This returns an empty list if either no root devices were found or the "
28435 "caller has not called C<guestfs_inspect_os>."
28436 msgstr ""
28437
28438 #. type: textblock
28439 #: ../src/guestfs-actions.pod:3541
28440 msgid "(Added in 1.7.3)"
28441 msgstr ""
28442
28443 #. type: =head2
28444 #: ../src/guestfs-actions.pod:3543
28445 msgid "guestfs_inspect_get_type"
28446 msgstr ""
28447
28448 #. type: verbatim
28449 #: ../src/guestfs-actions.pod:3545
28450 #, no-wrap
28451 msgid ""
28452 " char *\n"
28453 " guestfs_inspect_get_type (guestfs_h *g,\n"
28454 "                           const char *root);\n"
28455 "\n"
28456 msgstr ""
28457
28458 #. type: =head2
28459 #: ../src/guestfs-actions.pod:3586
28460 msgid "guestfs_inspect_get_windows_current_control_set"
28461 msgstr ""
28462
28463 #. type: verbatim
28464 #: ../src/guestfs-actions.pod:3588
28465 #, no-wrap
28466 msgid ""
28467 " char *\n"
28468 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28469 "                                                  const char *root);\n"
28470 "\n"
28471 msgstr ""
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:3606
28475 msgid "guestfs_inspect_get_windows_systemroot"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:3608
28480 #, no-wrap
28481 msgid ""
28482 " char *\n"
28483 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28484 "                                         const char *root);\n"
28485 "\n"
28486 msgstr ""
28487
28488 #. type: textblock
28489 #: ../src/guestfs-actions.pod:3624
28490 msgid "(Added in 1.5.25)"
28491 msgstr ""
28492
28493 #. type: =head2
28494 #: ../src/guestfs-actions.pod:3626
28495 msgid "guestfs_inspect_is_live"
28496 msgstr ""
28497
28498 #. type: verbatim
28499 #: ../src/guestfs-actions.pod:3628
28500 #, no-wrap
28501 msgid ""
28502 " int\n"
28503 " guestfs_inspect_is_live (guestfs_h *g,\n"
28504 "                          const char *root);\n"
28505 "\n"
28506 msgstr ""
28507
28508 #. type: textblock
28509 #: ../src/guestfs-actions.pod:3632
28510 msgid ""
28511 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28512 "disk), then this returns true if a live image was detected on the disk."
28513 msgstr ""
28514
28515 #. type: =head2
28516 #: ../src/guestfs-actions.pod:3642
28517 msgid "guestfs_inspect_is_multipart"
28518 msgstr ""
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:3644
28522 #, no-wrap
28523 msgid ""
28524 " int\n"
28525 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28526 "                               const char *root);\n"
28527 "\n"
28528 msgstr ""
28529
28530 #. type: textblock
28531 #: ../src/guestfs-actions.pod:3648
28532 msgid ""
28533 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28534 "disk), then this returns true if the disk is part of a set."
28535 msgstr ""
28536
28537 #. type: =head2
28538 #: ../src/guestfs-actions.pod:3658
28539 msgid "guestfs_inspect_is_netinst"
28540 msgstr ""
28541
28542 #. type: verbatim
28543 #: ../src/guestfs-actions.pod:3660
28544 #, no-wrap
28545 msgid ""
28546 " int\n"
28547 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28548 "                             const char *root);\n"
28549 "\n"
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../src/guestfs-actions.pod:3664
28554 msgid ""
28555 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28556 "disk), then this returns true if the disk is a network installer, ie. not a "
28557 "self-contained install CD but one which is likely to require network access "
28558 "to complete the install."
28559 msgstr ""
28560
28561 #. type: =head2
28562 #: ../src/guestfs-actions.pod:3676
28563 msgid "guestfs_inspect_list_applications"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../src/guestfs-actions.pod:3678
28568 #, no-wrap
28569 msgid ""
28570 " struct guestfs_application_list *\n"
28571 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28572 "                                    const char *root);\n"
28573 "\n"
28574 msgstr ""
28575
28576 #. type: textblock
28577 #: ../src/guestfs-actions.pod:3684
28578 msgid ""
28579 "I<Note:> This call works differently from other parts of the inspection "
28580 "API.  You have to call C<guestfs_inspect_os>, then "
28581 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28582 "this.  Listing applications is a significantly more difficult operation "
28583 "which requires access to the full filesystem.  Also note that unlike the "
28584 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28585 "the libguestfs handle, this call actually reads parts of the mounted "
28586 "filesystems during the call."
28587 msgstr ""
28588
28589 #. type: textblock
28590 #: ../src/guestfs-actions.pod:3774
28591 msgid ""
28592 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28593 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28594 "after use>."
28595 msgstr ""
28596
28597 #. type: textblock
28598 #: ../src/guestfs-actions.pod:3778
28599 msgid "(Added in 1.7.8)"
28600 msgstr ""
28601
28602 #. type: =head2
28603 #: ../src/guestfs-actions.pod:3780
28604 msgid "guestfs_inspect_os"
28605 msgstr ""
28606
28607 #. type: verbatim
28608 #: ../src/guestfs-actions.pod:3782
28609 #, no-wrap
28610 msgid ""
28611 " char **\n"
28612 " guestfs_inspect_os (guestfs_h *g);\n"
28613 "\n"
28614 msgstr ""
28615
28616 #. type: textblock
28617 #: ../src/guestfs-actions.pod:3798
28618 msgid ""
28619 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28620 "functions in order to query further information about each operating system, "
28621 "such as the name and version."
28622 msgstr ""
28623
28624 #. type: textblock
28625 #: ../src/guestfs-actions.pod:3803
28626 msgid ""
28627 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28628 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28629 "the contents.  This should be called with no disks currently mounted.  The "
28630 "function may also use Augeas, so any existing Augeas handle will be closed."
28631 msgstr ""
28632
28633 #. type: textblock
28634 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:4146
28635 #: ../src/guestfs-actions.pod:4228
28636 msgid "See also C<guestfs_list_filesystems>."
28637 msgstr ""
28638
28639 #. type: =head2
28640 #: ../src/guestfs-actions.pod:3823
28641 msgid "guestfs_is_blockdev"
28642 msgstr ""
28643
28644 #. type: verbatim
28645 #: ../src/guestfs-actions.pod:3825
28646 #, no-wrap
28647 msgid ""
28648 " int\n"
28649 " guestfs_is_blockdev (guestfs_h *g,\n"
28650 "                      const char *path);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3861
28656 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
28657 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3978
28658 #: ../src/guestfs-actions.pod:3993
28659 msgid "See also C<guestfs_stat>."
28660 msgstr ""
28661
28662 #. type: textblock
28663 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:3865
28664 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3982
28665 #: ../src/guestfs-actions.pod:3997
28666 msgid "(Added in 1.5.10)"
28667 msgstr ""
28668
28669 #. type: =head2
28670 #: ../src/guestfs-actions.pod:3838
28671 msgid "guestfs_is_busy"
28672 msgstr ""
28673
28674 #. type: verbatim
28675 #: ../src/guestfs-actions.pod:3840
28676 #, no-wrap
28677 msgid ""
28678 " int\n"
28679 " guestfs_is_busy (guestfs_h *g);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:3852
28685 msgid "guestfs_is_chardev"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:3854
28690 #, no-wrap
28691 msgid ""
28692 " int\n"
28693 " guestfs_is_chardev (guestfs_h *g,\n"
28694 "                     const char *path);\n"
28695 "\n"
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:3867
28700 msgid "guestfs_is_config"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:3869
28705 #, no-wrap
28706 msgid ""
28707 " int\n"
28708 " guestfs_is_config (guestfs_h *g);\n"
28709 "\n"
28710 msgstr ""
28711
28712 #. type: =head2
28713 #: ../src/guestfs-actions.pod:3881
28714 msgid "guestfs_is_dir"
28715 msgstr ""
28716
28717 #. type: verbatim
28718 #: ../src/guestfs-actions.pod:3883
28719 #, no-wrap
28720 msgid ""
28721 " int\n"
28722 " guestfs_is_dir (guestfs_h *g,\n"
28723 "                 const char *path);\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: =head2
28728 #: ../src/guestfs-actions.pod:3897
28729 msgid "guestfs_is_fifo"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../src/guestfs-actions.pod:3899
28734 #, no-wrap
28735 msgid ""
28736 " int\n"
28737 " guestfs_is_fifo (guestfs_h *g,\n"
28738 "                  const char *path);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: =head2
28743 #: ../src/guestfs-actions.pod:3912
28744 msgid "guestfs_is_file"
28745 msgstr ""
28746
28747 #. type: verbatim
28748 #: ../src/guestfs-actions.pod:3914
28749 #, no-wrap
28750 msgid ""
28751 " int\n"
28752 " guestfs_is_file (guestfs_h *g,\n"
28753 "                  const char *path);\n"
28754 "\n"
28755 msgstr ""
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:3928
28759 msgid "guestfs_is_launching"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:3930
28764 #, no-wrap
28765 msgid ""
28766 " int\n"
28767 " guestfs_is_launching (guestfs_h *g);\n"
28768 "\n"
28769 msgstr ""
28770
28771 #. type: =head2
28772 #: ../src/guestfs-actions.pod:3942
28773 msgid "guestfs_is_lv"
28774 msgstr ""
28775
28776 #. type: verbatim
28777 #: ../src/guestfs-actions.pod:3944
28778 #, no-wrap
28779 msgid ""
28780 " int\n"
28781 " guestfs_is_lv (guestfs_h *g,\n"
28782 "                const char *device);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: =head2
28787 #: ../src/guestfs-actions.pod:3955
28788 msgid "guestfs_is_ready"
28789 msgstr ""
28790
28791 #. type: verbatim
28792 #: ../src/guestfs-actions.pod:3957
28793 #, no-wrap
28794 msgid ""
28795 " int\n"
28796 " guestfs_is_ready (guestfs_h *g);\n"
28797 "\n"
28798 msgstr ""
28799
28800 #. type: =head2
28801 #: ../src/guestfs-actions.pod:3969
28802 msgid "guestfs_is_socket"
28803 msgstr ""
28804
28805 #. type: verbatim
28806 #: ../src/guestfs-actions.pod:3971
28807 #, no-wrap
28808 msgid ""
28809 " int\n"
28810 " guestfs_is_socket (guestfs_h *g,\n"
28811 "                    const char *path);\n"
28812 "\n"
28813 msgstr ""
28814
28815 #. type: =head2
28816 #: ../src/guestfs-actions.pod:3984
28817 msgid "guestfs_is_symlink"
28818 msgstr ""
28819
28820 #. type: verbatim
28821 #: ../src/guestfs-actions.pod:3986
28822 #, no-wrap
28823 msgid ""
28824 " int\n"
28825 " guestfs_is_symlink (guestfs_h *g,\n"
28826 "                     const char *path);\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: =head2
28831 #: ../src/guestfs-actions.pod:3999
28832 msgid "guestfs_is_zero"
28833 msgstr ""
28834
28835 #. type: verbatim
28836 #: ../src/guestfs-actions.pod:4001
28837 #, no-wrap
28838 msgid ""
28839 " int\n"
28840 " guestfs_is_zero (guestfs_h *g,\n"
28841 "                  const char *path);\n"
28842 "\n"
28843 msgstr ""
28844
28845 #. type: textblock
28846 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
28847 msgid "(Added in 1.11.8)"
28848 msgstr ""
28849
28850 #. type: =head2
28851 #: ../src/guestfs-actions.pod:4012
28852 msgid "guestfs_is_zero_device"
28853 msgstr ""
28854
28855 #. type: verbatim
28856 #: ../src/guestfs-actions.pod:4014
28857 #, no-wrap
28858 msgid ""
28859 " int\n"
28860 " guestfs_is_zero_device (guestfs_h *g,\n"
28861 "                         const char *device);\n"
28862 "\n"
28863 msgstr ""
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:4026
28867 msgid "guestfs_kill_subprocess"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:4028
28872 #, no-wrap
28873 msgid ""
28874 " int\n"
28875 " guestfs_kill_subprocess (guestfs_h *g);\n"
28876 "\n"
28877 msgstr ""
28878
28879 #. type: =head2
28880 #: ../src/guestfs-actions.pod:4037
28881 msgid "guestfs_launch"
28882 msgstr ""
28883
28884 #. type: verbatim
28885 #: ../src/guestfs-actions.pod:4039
28886 #, no-wrap
28887 msgid ""
28888 " int\n"
28889 " guestfs_launch (guestfs_h *g);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:4057
28895 msgid "guestfs_lchown"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:4059
28900 #, no-wrap
28901 msgid ""
28902 " int\n"
28903 " guestfs_lchown (guestfs_h *g,\n"
28904 "                 int owner,\n"
28905 "                 int group,\n"
28906 "                 const char *path);\n"
28907 "\n"
28908 msgstr ""
28909
28910 #. type: textblock
28911 #: ../src/guestfs-actions.pod:4065
28912 msgid ""
28913 "Change the file owner to C<owner> and group to C<group>.  This is like "
28914 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28915 "changed, not the target."
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:4077
28920 msgid "guestfs_lgetxattr"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:4079
28925 #, no-wrap
28926 msgid ""
28927 " char *\n"
28928 " guestfs_lgetxattr (guestfs_h *g,\n"
28929 "                    const char *path,\n"
28930 "                    const char *name,\n"
28931 "                    size_t *size_r);\n"
28932 "\n"
28933 msgstr ""
28934
28935 #. type: textblock
28936 #: ../src/guestfs-actions.pod:4099
28937 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:4107
28942 msgid "guestfs_lgetxattrs"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:4109
28947 #, no-wrap
28948 msgid ""
28949 " struct guestfs_xattr_list *\n"
28950 " guestfs_lgetxattrs (guestfs_h *g,\n"
28951 "                     const char *path);\n"
28952 "\n"
28953 msgstr ""
28954
28955 #. type: textblock
28956 #: ../src/guestfs-actions.pod:4113
28957 msgid ""
28958 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28959 "then it returns the extended attributes of the link itself."
28960 msgstr ""
28961
28962 #. type: =head2
28963 #: ../src/guestfs-actions.pod:4123
28964 msgid "guestfs_list_9p"
28965 msgstr ""
28966
28967 #. type: verbatim
28968 #: ../src/guestfs-actions.pod:4125
28969 #, no-wrap
28970 msgid ""
28971 " char **\n"
28972 " guestfs_list_9p (guestfs_h *g);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:4137
28978 msgid "guestfs_list_devices"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:4139
28983 #, no-wrap
28984 msgid ""
28985 " char **\n"
28986 " guestfs_list_devices (guestfs_h *g);\n"
28987 "\n"
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:4154
28992 msgid "guestfs_list_dm_devices"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:4156
28997 #, no-wrap
28998 msgid ""
28999 " char **\n"
29000 " guestfs_list_dm_devices (guestfs_h *g);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: textblock
29005 #: ../src/guestfs-actions.pod:4161
29006 msgid ""
29007 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29008 "previous call to C<guestfs_luks_open>."
29009 msgstr ""
29010
29011 #. type: textblock
29012 #: ../src/guestfs-actions.pod:4164
29013 msgid ""
29014 "Device mapper devices which correspond to logical volumes are I<not> "
29015 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29016 "volumes."
29017 msgstr ""
29018
29019 #. type: textblock
29020 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:5618
29021 msgid "(Added in 1.11.15)"
29022 msgstr ""
29023
29024 #. type: =head2
29025 #: ../src/guestfs-actions.pod:4174
29026 msgid "guestfs_list_filesystems"
29027 msgstr ""
29028
29029 #. type: verbatim
29030 #: ../src/guestfs-actions.pod:4176
29031 #, no-wrap
29032 msgid ""
29033 " char **\n"
29034 " guestfs_list_filesystems (guestfs_h *g);\n"
29035 "\n"
29036 msgstr ""
29037
29038 #. type: textblock
29039 #: ../src/guestfs-actions.pod:4196
29040 msgid ""
29041 "This command runs other libguestfs commands, which might include "
29042 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29043 "soon after launch and only when nothing is mounted."
29044 msgstr ""
29045
29046 #. type: textblock
29047 #: ../src/guestfs-actions.pod:4200
29048 msgid ""
29049 "Not all of the filesystems returned will be mountable.  In particular, swap "
29050 "partitions are returned in the list.  Also this command does not check that "
29051 "each filesystem found is valid and mountable, and some filesystems might be "
29052 "mountable but require special options.  Filesystems may not all belong to a "
29053 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:5981
29058 msgid "(Added in 1.5.15)"
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:4216
29063 msgid "guestfs_list_partitions"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:4218
29068 #, no-wrap
29069 msgid ""
29070 " char **\n"
29071 " guestfs_list_partitions (guestfs_h *g);\n"
29072 "\n"
29073 msgstr ""
29074
29075 #. type: textblock
29076 #: ../src/guestfs-actions.pod:4225
29077 msgid ""
29078 "This does not return logical volumes.  For that you will need to call "
29079 "C<guestfs_lvs>."
29080 msgstr ""
29081
29082 #. type: =head2
29083 #: ../src/guestfs-actions.pod:4236
29084 msgid "guestfs_ll"
29085 msgstr ""
29086
29087 #. type: verbatim
29088 #: ../src/guestfs-actions.pod:4238
29089 #, no-wrap
29090 msgid ""
29091 " char *\n"
29092 " guestfs_ll (guestfs_h *g,\n"
29093 "             const char *directory);\n"
29094 "\n"
29095 msgstr ""
29096
29097 #. type: =head2
29098 #: ../src/guestfs-actions.pod:4253
29099 msgid "guestfs_ln"
29100 msgstr ""
29101
29102 #. type: verbatim
29103 #: ../src/guestfs-actions.pod:4255
29104 #, no-wrap
29105 msgid ""
29106 " int\n"
29107 " guestfs_ln (guestfs_h *g,\n"
29108 "             const char *target,\n"
29109 "             const char *linkname);\n"
29110 "\n"
29111 msgstr ""
29112
29113 #. type: =head2
29114 #: ../src/guestfs-actions.pod:4266
29115 msgid "guestfs_ln_f"
29116 msgstr ""
29117
29118 #. type: verbatim
29119 #: ../src/guestfs-actions.pod:4268
29120 #, no-wrap
29121 msgid ""
29122 " int\n"
29123 " guestfs_ln_f (guestfs_h *g,\n"
29124 "               const char *target,\n"
29125 "               const char *linkname);\n"
29126 "\n"
29127 msgstr ""
29128
29129 #. type: =head2
29130 #: ../src/guestfs-actions.pod:4280
29131 msgid "guestfs_ln_s"
29132 msgstr ""
29133
29134 #. type: verbatim
29135 #: ../src/guestfs-actions.pod:4282
29136 #, no-wrap
29137 msgid ""
29138 " int\n"
29139 " guestfs_ln_s (guestfs_h *g,\n"
29140 "               const char *target,\n"
29141 "               const char *linkname);\n"
29142 "\n"
29143 msgstr ""
29144
29145 #. type: =head2
29146 #: ../src/guestfs-actions.pod:4293
29147 msgid "guestfs_ln_sf"
29148 msgstr ""
29149
29150 #. type: verbatim
29151 #: ../src/guestfs-actions.pod:4295
29152 #, no-wrap
29153 msgid ""
29154 " int\n"
29155 " guestfs_ln_sf (guestfs_h *g,\n"
29156 "                const char *target,\n"
29157 "                const char *linkname);\n"
29158 "\n"
29159 msgstr ""
29160
29161 #. type: =head2
29162 #: ../src/guestfs-actions.pod:4307
29163 msgid "guestfs_lremovexattr"
29164 msgstr ""
29165
29166 #. type: verbatim
29167 #: ../src/guestfs-actions.pod:4309
29168 #, no-wrap
29169 msgid ""
29170 " int\n"
29171 " guestfs_lremovexattr (guestfs_h *g,\n"
29172 "                       const char *xattr,\n"
29173 "                       const char *path);\n"
29174 "\n"
29175 msgstr ""
29176
29177 #. type: textblock
29178 #: ../src/guestfs-actions.pod:4314
29179 msgid ""
29180 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29181 "link, then it removes an extended attribute of the link itself."
29182 msgstr ""
29183
29184 #. type: =head2
29185 #: ../src/guestfs-actions.pod:4322
29186 msgid "guestfs_ls"
29187 msgstr ""
29188
29189 #. type: verbatim
29190 #: ../src/guestfs-actions.pod:4324
29191 #, no-wrap
29192 msgid ""
29193 " char **\n"
29194 " guestfs_ls (guestfs_h *g,\n"
29195 "             const char *directory);\n"
29196 "\n"
29197 msgstr ""
29198
29199 #. type: textblock
29200 #: ../src/guestfs-actions.pod:4332
29201 msgid ""
29202 "This command is mostly useful for interactive sessions.  Programs should "
29203 "probably use C<guestfs_readdir> instead."
29204 msgstr ""
29205
29206 #. type: =head2
29207 #: ../src/guestfs-actions.pod:4341
29208 msgid "guestfs_lsetxattr"
29209 msgstr ""
29210
29211 #. type: verbatim
29212 #: ../src/guestfs-actions.pod:4343
29213 #, no-wrap
29214 msgid ""
29215 " int\n"
29216 " guestfs_lsetxattr (guestfs_h *g,\n"
29217 "                    const char *xattr,\n"
29218 "                    const char *val,\n"
29219 "                    int vallen,\n"
29220 "                    const char *path);\n"
29221 "\n"
29222 msgstr ""
29223
29224 #. type: textblock
29225 #: ../src/guestfs-actions.pod:4350
29226 msgid ""
29227 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29228 "then it sets an extended attribute of the link itself."
29229 msgstr ""
29230
29231 #. type: =head2
29232 #: ../src/guestfs-actions.pod:4358
29233 msgid "guestfs_lstat"
29234 msgstr ""
29235
29236 #. type: verbatim
29237 #: ../src/guestfs-actions.pod:4360
29238 #, no-wrap
29239 msgid ""
29240 " struct guestfs_stat *\n"
29241 " guestfs_lstat (guestfs_h *g,\n"
29242 "                const char *path);\n"
29243 "\n"
29244 msgstr ""
29245
29246 #. type: textblock
29247 #: ../src/guestfs-actions.pod:4366
29248 msgid ""
29249 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29250 "link, then the link is stat-ed, not the file it refers to."
29251 msgstr ""
29252
29253 #. type: textblock
29254 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:7171
29255 msgid ""
29256 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29257 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29258 msgstr ""
29259
29260 #. type: textblock
29261 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:7175
29262 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7574
29263 msgid "(Added in 0.9.2)"
29264 msgstr ""
29265
29266 #. type: =head2
29267 #: ../src/guestfs-actions.pod:4378
29268 msgid "guestfs_lstatlist"
29269 msgstr ""
29270
29271 #. type: verbatim
29272 #: ../src/guestfs-actions.pod:4380
29273 #, no-wrap
29274 msgid ""
29275 " struct guestfs_stat_list *\n"
29276 " guestfs_lstatlist (guestfs_h *g,\n"
29277 "                    const char *path,\n"
29278 "                    char *const *names);\n"
29279 "\n"
29280 msgstr ""
29281
29282 #. type: textblock
29283 #: ../src/guestfs-actions.pod:4385
29284 msgid ""
29285 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29286 "files, where all files are in the directory C<path>.  C<names> is the list "
29287 "of files from this directory."
29288 msgstr ""
29289
29290 #. type: textblock
29291 #: ../src/guestfs-actions.pod:4394
29292 msgid ""
29293 "This call is intended for programs that want to efficiently list a directory "
29294 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29295 "for a similarly efficient call for getting extended attributes.  Very long "
29296 "directory listings might cause the protocol message size to be exceeded, "
29297 "causing this call to fail.  The caller must split up such requests into "
29298 "smaller groups of names."
29299 msgstr ""
29300
29301 #. type: textblock
29302 #: ../src/guestfs-actions.pod:4402
29303 msgid ""
29304 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29305 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29306 msgstr ""
29307
29308 #. type: =head2
29309 #: ../src/guestfs-actions.pod:4408
29310 msgid "guestfs_luks_add_key"
29311 msgstr ""
29312
29313 #. type: verbatim
29314 #: ../src/guestfs-actions.pod:4410
29315 #, no-wrap
29316 msgid ""
29317 " int\n"
29318 " guestfs_luks_add_key (guestfs_h *g,\n"
29319 "                       const char *device,\n"
29320 "                       const char *key,\n"
29321 "                       const char *newkey,\n"
29322 "                       int keyslot);\n"
29323 "\n"
29324 msgstr ""
29325
29326 #. type: textblock
29327 #: ../src/guestfs-actions.pod:4422
29328 msgid ""
29329 "Note that if C<keyslot> already contains a key, then this command will "
29330 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29331 msgstr ""
29332
29333 #. type: textblock
29334 #: ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:4468
29335 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4511
29336 #: ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4565
29337 msgid ""
29338 "This function takes a key or passphrase parameter which could contain "
29339 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29340 "information."
29341 msgstr ""
29342
29343 #. type: textblock
29344 #: ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4472
29345 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4515
29346 msgid "(Added in 1.5.2)"
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:4434
29351 msgid "guestfs_luks_close"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:4436
29356 #, no-wrap
29357 msgid ""
29358 " int\n"
29359 " guestfs_luks_close (guestfs_h *g,\n"
29360 "                     const char *device);\n"
29361 "\n"
29362 msgstr ""
29363
29364 #. type: textblock
29365 #: ../src/guestfs-actions.pod:4440
29366 msgid ""
29367 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29368 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29369 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29370 "underlying block device."
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:4550
29375 #: ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4619
29376 #: ../src/guestfs-actions.pod:4667
29377 msgid "(Added in 1.5.1)"
29378 msgstr ""
29379
29380 #. type: =head2
29381 #: ../src/guestfs-actions.pod:4450
29382 msgid "guestfs_luks_format"
29383 msgstr ""
29384
29385 #. type: verbatim
29386 #: ../src/guestfs-actions.pod:4452
29387 #, no-wrap
29388 msgid ""
29389 " int\n"
29390 " guestfs_luks_format (guestfs_h *g,\n"
29391 "                      const char *device,\n"
29392 "                      const char *key,\n"
29393 "                      int keyslot);\n"
29394 "\n"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:4474
29399 msgid "guestfs_luks_format_cipher"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:4476
29404 #, no-wrap
29405 msgid ""
29406 " int\n"
29407 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29408 "                             const char *device,\n"
29409 "                             const char *key,\n"
29410 "                             int keyslot,\n"
29411 "                             const char *cipher);\n"
29412 "\n"
29413 msgstr ""
29414
29415 #. type: textblock
29416 #: ../src/guestfs-actions.pod:4483
29417 msgid ""
29418 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29419 "set the C<cipher> used."
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:4497
29424 msgid "guestfs_luks_kill_slot"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:4499
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29433 "                         const char *device,\n"
29434 "                         const char *key,\n"
29435 "                         int keyslot);\n"
29436 "\n"
29437 msgstr ""
29438
29439 #. type: =head2
29440 #: ../src/guestfs-actions.pod:4517
29441 msgid "guestfs_luks_open"
29442 msgstr ""
29443
29444 #. type: verbatim
29445 #: ../src/guestfs-actions.pod:4519
29446 #, no-wrap
29447 msgid ""
29448 " int\n"
29449 " guestfs_luks_open (guestfs_h *g,\n"
29450 "                    const char *device,\n"
29451 "                    const char *key,\n"
29452 "                    const char *mapname);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: textblock
29457 #: ../src/guestfs-actions.pod:4537
29458 msgid ""
29459 "If this block device contains LVM volume groups, then calling "
29460 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29461 "visible."
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../src/guestfs-actions.pod:4541
29466 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29467 msgstr ""
29468
29469 #. type: =head2
29470 #: ../src/guestfs-actions.pod:4552
29471 msgid "guestfs_luks_open_ro"
29472 msgstr ""
29473
29474 #. type: verbatim
29475 #: ../src/guestfs-actions.pod:4554
29476 #, no-wrap
29477 msgid ""
29478 " int\n"
29479 " guestfs_luks_open_ro (guestfs_h *g,\n"
29480 "                       const char *device,\n"
29481 "                       const char *key,\n"
29482 "                       const char *mapname);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../src/guestfs-actions.pod:4560
29488 msgid ""
29489 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29490 "created."
29491 msgstr ""
29492
29493 #. type: =head2
29494 #: ../src/guestfs-actions.pod:4571
29495 msgid "guestfs_lvcreate"
29496 msgstr ""
29497
29498 #. type: verbatim
29499 #: ../src/guestfs-actions.pod:4573
29500 #, no-wrap
29501 msgid ""
29502 " int\n"
29503 " guestfs_lvcreate (guestfs_h *g,\n"
29504 "                   const char *logvol,\n"
29505 "                   const char *volgroup,\n"
29506 "                   int mbytes);\n"
29507 "\n"
29508 msgstr ""
29509
29510 #. type: =head2
29511 #: ../src/guestfs-actions.pod:4586
29512 msgid "guestfs_lvm_canonical_lv_name"
29513 msgstr ""
29514
29515 #. type: verbatim
29516 #: ../src/guestfs-actions.pod:4588
29517 #, no-wrap
29518 msgid ""
29519 " char *\n"
29520 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29521 "                                const char *lvname);\n"
29522 "\n"
29523 msgstr ""
29524
29525 #. type: textblock
29526 #: ../src/guestfs-actions.pod:4599
29527 msgid "See also C<guestfs_is_lv>."
29528 msgstr ""
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:4604
29532 msgid "(Added in 1.5.24)"
29533 msgstr ""
29534
29535 #. type: =head2
29536 #: ../src/guestfs-actions.pod:4606
29537 msgid "guestfs_lvm_clear_filter"
29538 msgstr ""
29539
29540 #. type: verbatim
29541 #: ../src/guestfs-actions.pod:4608
29542 #, no-wrap
29543 msgid ""
29544 " int\n"
29545 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29546 "\n"
29547 msgstr ""
29548
29549 #. type: textblock
29550 #: ../src/guestfs-actions.pod:4611
29551 msgid ""
29552 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29553 "see every block device."
29554 msgstr ""
29555
29556 #. type: =head2
29557 #: ../src/guestfs-actions.pod:4621
29558 msgid "guestfs_lvm_remove_all"
29559 msgstr ""
29560
29561 #. type: verbatim
29562 #: ../src/guestfs-actions.pod:4623
29563 #, no-wrap
29564 msgid ""
29565 " int\n"
29566 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29567 "\n"
29568 msgstr ""
29569
29570 #. type: =head2
29571 #: ../src/guestfs-actions.pod:4636
29572 msgid "guestfs_lvm_set_filter"
29573 msgstr ""
29574
29575 #. type: verbatim
29576 #: ../src/guestfs-actions.pod:4638
29577 #, no-wrap
29578 msgid ""
29579 " int\n"
29580 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29581 "                         char *const *devices);\n"
29582 "\n"
29583 msgstr ""
29584
29585 #. type: =head2
29586 #: ../src/guestfs-actions.pod:4669
29587 msgid "guestfs_lvremove"
29588 msgstr ""
29589
29590 #. type: verbatim
29591 #: ../src/guestfs-actions.pod:4671
29592 #, no-wrap
29593 msgid ""
29594 " int\n"
29595 " guestfs_lvremove (guestfs_h *g,\n"
29596 "                   const char *device);\n"
29597 "\n"
29598 msgstr ""
29599
29600 #. type: textblock
29601 #: ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:6094
29602 #: ../src/guestfs-actions.pod:7944
29603 msgid "(Added in 1.0.13)"
29604 msgstr ""
29605
29606 #. type: =head2
29607 #: ../src/guestfs-actions.pod:4685
29608 msgid "guestfs_lvrename"
29609 msgstr ""
29610
29611 #. type: verbatim
29612 #: ../src/guestfs-actions.pod:4687
29613 #, no-wrap
29614 msgid ""
29615 " int\n"
29616 " guestfs_lvrename (guestfs_h *g,\n"
29617 "                   const char *logvol,\n"
29618 "                   const char *newlogvol);\n"
29619 "\n"
29620 msgstr ""
29621
29622 #. type: textblock
29623 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:7957
29624 msgid "(Added in 1.0.83)"
29625 msgstr ""
29626
29627 #. type: =head2
29628 #: ../src/guestfs-actions.pod:4698
29629 msgid "guestfs_lvresize"
29630 msgstr ""
29631
29632 #. type: verbatim
29633 #: ../src/guestfs-actions.pod:4700
29634 #, no-wrap
29635 msgid ""
29636 " int\n"
29637 " guestfs_lvresize (guestfs_h *g,\n"
29638 "                   const char *device,\n"
29639 "                   int mbytes);\n"
29640 "\n"
29641 msgstr ""
29642
29643 #. type: =head2
29644 #: ../src/guestfs-actions.pod:4713
29645 msgid "guestfs_lvresize_free"
29646 msgstr ""
29647
29648 #. type: verbatim
29649 #: ../src/guestfs-actions.pod:4715
29650 #, no-wrap
29651 msgid ""
29652 " int\n"
29653 " guestfs_lvresize_free (guestfs_h *g,\n"
29654 "                        const char *lv,\n"
29655 "                        int percent);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: textblock
29660 #: ../src/guestfs-actions.pod:4728
29661 msgid "(Added in 1.3.3)"
29662 msgstr ""
29663
29664 #. type: =head2
29665 #: ../src/guestfs-actions.pod:4730
29666 msgid "guestfs_lvs"
29667 msgstr ""
29668
29669 #. type: verbatim
29670 #: ../src/guestfs-actions.pod:4732
29671 #, no-wrap
29672 msgid ""
29673 " char **\n"
29674 " guestfs_lvs (guestfs_h *g);\n"
29675 "\n"
29676 msgstr ""
29677
29678 #. type: textblock
29679 #: ../src/guestfs-actions.pod:4741
29680 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29681 msgstr ""
29682
29683 #. type: =head2
29684 #: ../src/guestfs-actions.pod:4749
29685 msgid "guestfs_lvs_full"
29686 msgstr ""
29687
29688 #. type: verbatim
29689 #: ../src/guestfs-actions.pod:4751
29690 #, no-wrap
29691 msgid ""
29692 " struct guestfs_lvm_lv_list *\n"
29693 " guestfs_lvs_full (guestfs_h *g);\n"
29694 "\n"
29695 msgstr ""
29696
29697 #. type: textblock
29698 #: ../src/guestfs-actions.pod:4757
29699 msgid ""
29700 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29701 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29702 msgstr ""
29703
29704 #. type: =head2
29705 #: ../src/guestfs-actions.pod:4763
29706 msgid "guestfs_lvuuid"
29707 msgstr ""
29708
29709 #. type: verbatim
29710 #: ../src/guestfs-actions.pod:4765
29711 #, no-wrap
29712 msgid ""
29713 " char *\n"
29714 " guestfs_lvuuid (guestfs_h *g,\n"
29715 "                 const char *device);\n"
29716 "\n"
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:4776
29721 msgid "guestfs_lxattrlist"
29722 msgstr ""
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:4778
29726 #, no-wrap
29727 msgid ""
29728 " struct guestfs_xattr_list *\n"
29729 " guestfs_lxattrlist (guestfs_h *g,\n"
29730 "                     const char *path,\n"
29731 "                     char *const *names);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: textblock
29736 #: ../src/guestfs-actions.pod:4797
29737 msgid ""
29738 "This call is intended for programs that want to efficiently list a directory "
29739 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29740 "a similarly efficient call for getting standard stats.  Very long directory "
29741 "listings might cause the protocol message size to be exceeded, causing this "
29742 "call to fail.  The caller must split up such requests into smaller groups of "
29743 "names."
29744 msgstr ""
29745
29746 #. type: =head2
29747 #: ../src/guestfs-actions.pod:4811
29748 msgid "guestfs_mkdir"
29749 msgstr ""
29750
29751 #. type: verbatim
29752 #: ../src/guestfs-actions.pod:4813
29753 #, no-wrap
29754 msgid ""
29755 " int\n"
29756 " guestfs_mkdir (guestfs_h *g,\n"
29757 "                const char *path);\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: =head2
29762 #: ../src/guestfs-actions.pod:4823
29763 msgid "guestfs_mkdir_mode"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../src/guestfs-actions.pod:4825
29768 #, no-wrap
29769 msgid ""
29770 " int\n"
29771 " guestfs_mkdir_mode (guestfs_h *g,\n"
29772 "                     const char *path,\n"
29773 "                     int mode);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: textblock
29778 #: ../src/guestfs-actions.pod:4837
29779 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29780 msgstr ""
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:4843
29784 msgid "guestfs_mkdir_p"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:4845
29789 #, no-wrap
29790 msgid ""
29791 " int\n"
29792 " guestfs_mkdir_p (guestfs_h *g,\n"
29793 "                  const char *path);\n"
29794 "\n"
29795 msgstr ""
29796
29797 #. type: =head2
29798 #: ../src/guestfs-actions.pod:4856
29799 msgid "guestfs_mkdtemp"
29800 msgstr ""
29801
29802 #. type: verbatim
29803 #: ../src/guestfs-actions.pod:4858
29804 #, no-wrap
29805 msgid ""
29806 " char *\n"
29807 " guestfs_mkdtemp (guestfs_h *g,\n"
29808 "                  const char *template);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: =head2
29813 #: ../src/guestfs-actions.pod:4886
29814 msgid "guestfs_mke2fs_J"
29815 msgstr ""
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-actions.pod:4888
29819 #, no-wrap
29820 msgid ""
29821 " int\n"
29822 " guestfs_mke2fs_J (guestfs_h *g,\n"
29823 "                   const char *fstype,\n"
29824 "                   int blocksize,\n"
29825 "                   const char *device,\n"
29826 "                   const char *journal);\n"
29827 "\n"
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-actions.pod:4901
29832 msgid "See also C<guestfs_mke2journal>."
29833 msgstr ""
29834
29835 #. type: textblock
29836 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4923
29837 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:4957
29838 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4985
29839 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5321
29840 msgid "(Added in 1.0.68)"
29841 msgstr ""
29842
29843 #. type: =head2
29844 #: ../src/guestfs-actions.pod:4907
29845 msgid "guestfs_mke2fs_JL"
29846 msgstr ""
29847
29848 #. type: verbatim
29849 #: ../src/guestfs-actions.pod:4909
29850 #, no-wrap
29851 msgid ""
29852 " int\n"
29853 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29854 "                    const char *fstype,\n"
29855 "                    int blocksize,\n"
29856 "                    const char *device,\n"
29857 "                    const char *label);\n"
29858 "\n"
29859 msgstr ""
29860
29861 #. type: textblock
29862 #: ../src/guestfs-actions.pod:4919
29863 msgid "See also C<guestfs_mke2journal_L>."
29864 msgstr ""
29865
29866 #. type: =head2
29867 #: ../src/guestfs-actions.pod:4925
29868 msgid "guestfs_mke2fs_JU"
29869 msgstr ""
29870
29871 #. type: verbatim
29872 #: ../src/guestfs-actions.pod:4927
29873 #, no-wrap
29874 msgid ""
29875 " int\n"
29876 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29877 "                    const char *fstype,\n"
29878 "                    int blocksize,\n"
29879 "                    const char *device,\n"
29880 "                    const char *uuid);\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: textblock
29885 #: ../src/guestfs-actions.pod:4937
29886 msgid "See also C<guestfs_mke2journal_U>."
29887 msgstr ""
29888
29889 #. type: =head2
29890 #: ../src/guestfs-actions.pod:4943
29891 msgid "guestfs_mke2journal"
29892 msgstr ""
29893
29894 #. type: verbatim
29895 #: ../src/guestfs-actions.pod:4945
29896 #, no-wrap
29897 msgid ""
29898 " int\n"
29899 " guestfs_mke2journal (guestfs_h *g,\n"
29900 "                      int blocksize,\n"
29901 "                      const char *device);\n"
29902 "\n"
29903 msgstr ""
29904
29905 #. type: =head2
29906 #: ../src/guestfs-actions.pod:4959
29907 msgid "guestfs_mke2journal_L"
29908 msgstr ""
29909
29910 #. type: verbatim
29911 #: ../src/guestfs-actions.pod:4961
29912 #, no-wrap
29913 msgid ""
29914 " int\n"
29915 " guestfs_mke2journal_L (guestfs_h *g,\n"
29916 "                        int blocksize,\n"
29917 "                        const char *label,\n"
29918 "                        const char *device);\n"
29919 "\n"
29920 msgstr ""
29921
29922 #. type: =head2
29923 #: ../src/guestfs-actions.pod:4973
29924 msgid "guestfs_mke2journal_U"
29925 msgstr ""
29926
29927 #. type: verbatim
29928 #: ../src/guestfs-actions.pod:4975
29929 #, no-wrap
29930 msgid ""
29931 " int\n"
29932 " guestfs_mke2journal_U (guestfs_h *g,\n"
29933 "                        int blocksize,\n"
29934 "                        const char *uuid,\n"
29935 "                        const char *device);\n"
29936 "\n"
29937 msgstr ""
29938
29939 #. type: =head2
29940 #: ../src/guestfs-actions.pod:4987
29941 msgid "guestfs_mkfifo"
29942 msgstr ""
29943
29944 #. type: verbatim
29945 #: ../src/guestfs-actions.pod:4989
29946 #, no-wrap
29947 msgid ""
29948 " int\n"
29949 " guestfs_mkfifo (guestfs_h *g,\n"
29950 "                 int mode,\n"
29951 "                 const char *path);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: textblock
29956 #: ../src/guestfs-actions.pod:4994
29957 msgid ""
29958 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29959 "is just a convenient wrapper around C<guestfs_mknod>."
29960 msgstr ""
29961
29962 #. type: =head2
29963 #: ../src/guestfs-actions.pod:5004
29964 msgid "guestfs_mkfs"
29965 msgstr ""
29966
29967 #. type: verbatim
29968 #: ../src/guestfs-actions.pod:5006
29969 #, no-wrap
29970 msgid ""
29971 " int\n"
29972 " guestfs_mkfs (guestfs_h *g,\n"
29973 "               const char *fstype,\n"
29974 "               const char *device);\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: =head2
29979 #: ../src/guestfs-actions.pod:5019
29980 msgid "guestfs_mkfs_b"
29981 msgstr ""
29982
29983 #. type: verbatim
29984 #: ../src/guestfs-actions.pod:5021
29985 #, no-wrap
29986 msgid ""
29987 " int\n"
29988 " guestfs_mkfs_b (guestfs_h *g,\n"
29989 "                 const char *fstype,\n"
29990 "                 int blocksize,\n"
29991 "                 const char *device);\n"
29992 "\n"
29993 msgstr ""
29994
29995 #. type: textblock
29996 #: ../src/guestfs-actions.pod:5027
29997 msgid ""
29998 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29999 "call instead."
30000 msgstr ""
30001
30002 #. type: textblock
30003 #: ../src/guestfs-actions.pod:5034
30004 msgid ""
30005 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30006 "block size of the resulting filesystem.  Supported block sizes depend on the "
30007 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30008 msgstr ""
30009
30010 #. type: =head2
30011 #: ../src/guestfs-actions.pod:5046
30012 msgid "guestfs_mkfs_opts"
30013 msgstr ""
30014
30015 #. type: verbatim
30016 #: ../src/guestfs-actions.pod:5048
30017 #, no-wrap
30018 msgid ""
30019 " int\n"
30020 " guestfs_mkfs_opts (guestfs_h *g,\n"
30021 "                    const char *fstype,\n"
30022 "                    const char *device,\n"
30023 "                    ...);\n"
30024 "\n"
30025 msgstr ""
30026
30027 #. type: verbatim
30028 #: ../src/guestfs-actions.pod:5059
30029 #, no-wrap
30030 msgid ""
30031 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30032 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30033 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30034 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30035 "\n"
30036 msgstr ""
30037
30038 #. type: textblock
30039 #: ../src/guestfs-actions.pod:5107
30040 msgid "(Added in 1.7.19)"
30041 msgstr ""
30042
30043 #. type: =head2
30044 #: ../src/guestfs-actions.pod:5109
30045 msgid "guestfs_mkfs_opts_va"
30046 msgstr ""
30047
30048 #. type: verbatim
30049 #: ../src/guestfs-actions.pod:5111
30050 #, no-wrap
30051 msgid ""
30052 " int\n"
30053 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30054 "                       const char *fstype,\n"
30055 "                       const char *device,\n"
30056 "                       va_list args);\n"
30057 "\n"
30058 msgstr ""
30059
30060 #. type: textblock
30061 #: ../src/guestfs-actions.pod:5117
30062 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30063 msgstr ""
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:5121
30067 msgid "guestfs_mkfs_opts_argv"
30068 msgstr ""
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:5123
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30076 "                         const char *fstype,\n"
30077 "                         const char *device,\n"
30078 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30079 "\n"
30080 msgstr ""
30081
30082 #. type: textblock
30083 #: ../src/guestfs-actions.pod:5129
30084 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30085 msgstr ""
30086
30087 #. type: =head2
30088 #: ../src/guestfs-actions.pod:5133
30089 msgid "guestfs_mkmountpoint"
30090 msgstr ""
30091
30092 #. type: verbatim
30093 #: ../src/guestfs-actions.pod:5135
30094 #, no-wrap
30095 msgid ""
30096 " int\n"
30097 " guestfs_mkmountpoint (guestfs_h *g,\n"
30098 "                       const char *exemptpath);\n"
30099 "\n"
30100 msgstr ""
30101
30102 #. type: textblock
30103 #: ../src/guestfs-actions.pod:5139
30104 msgid ""
30105 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30106 "that can be used to create extra mountpoints before mounting the first "
30107 "filesystem."
30108 msgstr ""
30109
30110 #. type: textblock
30111 #: ../src/guestfs-actions.pod:5163
30112 msgid ""
30113 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30114 "may get unexpected errors if you try to mix these calls.  It is safest to "
30115 "manually unmount filesystems and remove mountpoints after use."
30116 msgstr ""
30117
30118 #. type: textblock
30119 #: ../src/guestfs-actions.pod:5167
30120 msgid ""
30121 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30122 "first, so for this to work for manual mountpoints, you must ensure that the "
30123 "innermost mountpoints have the longest pathnames, as in the example code "
30124 "above."
30125 msgstr ""
30126
30127 #. type: textblock
30128 #: ../src/guestfs-actions.pod:5174
30129 msgid ""
30130 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30131 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30132 "can also trigger these issues."
30133 msgstr ""
30134
30135 #. type: textblock
30136 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5486
30137 #: ../src/guestfs-actions.pod:6514
30138 msgid "(Added in 1.0.62)"
30139 msgstr ""
30140
30141 #. type: =head2
30142 #: ../src/guestfs-actions.pod:5182
30143 msgid "guestfs_mknod"
30144 msgstr ""
30145
30146 #. type: verbatim
30147 #: ../src/guestfs-actions.pod:5184
30148 #, no-wrap
30149 msgid ""
30150 " int\n"
30151 " guestfs_mknod (guestfs_h *g,\n"
30152 "                int mode,\n"
30153 "                int devmajor,\n"
30154 "                int devminor,\n"
30155 "                const char *path);\n"
30156 "\n"
30157 msgstr ""
30158
30159 #. type: textblock
30160 #: ../src/guestfs-actions.pod:5199
30161 msgid ""
30162 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30163 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30164 "regular file).  These constants are available in the standard Linux header "
30165 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30166 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30167 "the appropriate constant for you."
30168 msgstr ""
30169
30170 #. type: =head2
30171 #: ../src/guestfs-actions.pod:5213
30172 msgid "guestfs_mknod_b"
30173 msgstr ""
30174
30175 #. type: verbatim
30176 #: ../src/guestfs-actions.pod:5215
30177 #, no-wrap
30178 msgid ""
30179 " int\n"
30180 " guestfs_mknod_b (guestfs_h *g,\n"
30181 "                  int mode,\n"
30182 "                  int devmajor,\n"
30183 "                  int devminor,\n"
30184 "                  const char *path);\n"
30185 "\n"
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../src/guestfs-actions.pod:5222
30190 msgid ""
30191 "This call creates a block device node called C<path> with mode C<mode> and "
30192 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30193 "wrapper around C<guestfs_mknod>."
30194 msgstr ""
30195
30196 #. type: =head2
30197 #: ../src/guestfs-actions.pod:5232
30198 msgid "guestfs_mknod_c"
30199 msgstr ""
30200
30201 #. type: verbatim
30202 #: ../src/guestfs-actions.pod:5234
30203 #, no-wrap
30204 msgid ""
30205 " int\n"
30206 " guestfs_mknod_c (guestfs_h *g,\n"
30207 "                  int mode,\n"
30208 "                  int devmajor,\n"
30209 "                  int devminor,\n"
30210 "                  const char *path);\n"
30211 "\n"
30212 msgstr ""
30213
30214 #. type: textblock
30215 #: ../src/guestfs-actions.pod:5241
30216 msgid ""
30217 "This call creates a char device node called C<path> with mode C<mode> and "
30218 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30219 "wrapper around C<guestfs_mknod>."
30220 msgstr ""
30221
30222 #. type: =head2
30223 #: ../src/guestfs-actions.pod:5251
30224 msgid "guestfs_mkswap"
30225 msgstr ""
30226
30227 #. type: verbatim
30228 #: ../src/guestfs-actions.pod:5253
30229 #, no-wrap
30230 msgid ""
30231 " int\n"
30232 " guestfs_mkswap (guestfs_h *g,\n"
30233 "                 const char *device);\n"
30234 "\n"
30235 msgstr ""
30236
30237 #. type: =head2
30238 #: ../src/guestfs-actions.pod:5263
30239 msgid "guestfs_mkswap_L"
30240 msgstr ""
30241
30242 #. type: verbatim
30243 #: ../src/guestfs-actions.pod:5265
30244 #, no-wrap
30245 msgid ""
30246 " int\n"
30247 " guestfs_mkswap_L (guestfs_h *g,\n"
30248 "                   const char *label,\n"
30249 "                   const char *device);\n"
30250 "\n"
30251 msgstr ""
30252
30253 #. type: =head2
30254 #: ../src/guestfs-actions.pod:5280
30255 msgid "guestfs_mkswap_U"
30256 msgstr ""
30257
30258 #. type: verbatim
30259 #: ../src/guestfs-actions.pod:5282
30260 #, no-wrap
30261 msgid ""
30262 " int\n"
30263 " guestfs_mkswap_U (guestfs_h *g,\n"
30264 "                   const char *uuid,\n"
30265 "                   const char *device);\n"
30266 "\n"
30267 msgstr ""
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:5293
30271 msgid "guestfs_mkswap_file"
30272 msgstr ""
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:5295
30276 #, no-wrap
30277 msgid ""
30278 " int\n"
30279 " guestfs_mkswap_file (guestfs_h *g,\n"
30280 "                      const char *path);\n"
30281 "\n"
30282 msgstr ""
30283
30284 #. type: textblock
30285 #: ../src/guestfs-actions.pod:5301
30286 msgid ""
30287 "This command just writes a swap file signature to an existing file.  To "
30288 "create the file itself, use something like C<guestfs_fallocate>."
30289 msgstr ""
30290
30291 #. type: =head2
30292 #: ../src/guestfs-actions.pod:5308
30293 msgid "guestfs_modprobe"
30294 msgstr ""
30295
30296 #. type: verbatim
30297 #: ../src/guestfs-actions.pod:5310
30298 #, no-wrap
30299 msgid ""
30300 " int\n"
30301 " guestfs_modprobe (guestfs_h *g,\n"
30302 "                   const char *modulename);\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: =head2
30307 #: ../src/guestfs-actions.pod:5323
30308 msgid "guestfs_mount"
30309 msgstr ""
30310
30311 #. type: verbatim
30312 #: ../src/guestfs-actions.pod:5325
30313 #, no-wrap
30314 msgid ""
30315 " int\n"
30316 " guestfs_mount (guestfs_h *g,\n"
30317 "                const char *device,\n"
30318 "                const char *mountpoint);\n"
30319 "\n"
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../src/guestfs-actions.pod:5344
30324 msgid ""
30325 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30326 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30327 "problems for users.  If your program might need to work with older versions "
30328 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30329 "for the first parameter if you don't want any options)."
30330 msgstr ""
30331
30332 #. type: =head2
30333 #: ../src/guestfs-actions.pod:5355
30334 msgid "guestfs_mount_9p"
30335 msgstr ""
30336
30337 #. type: verbatim
30338 #: ../src/guestfs-actions.pod:5357
30339 #, no-wrap
30340 msgid ""
30341 " int\n"
30342 " guestfs_mount_9p (guestfs_h *g,\n"
30343 "                   const char *mounttag,\n"
30344 "                   const char *mountpoint,\n"
30345 "                   ...);\n"
30346 "\n"
30347 msgstr ""
30348
30349 #. type: verbatim
30350 #: ../src/guestfs-actions.pod:5368
30351 #, no-wrap
30352 msgid ""
30353 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30354 "\n"
30355 msgstr ""
30356
30357 #. type: =head2
30358 #: ../src/guestfs-actions.pod:5381
30359 msgid "guestfs_mount_9p_va"
30360 msgstr ""
30361
30362 #. type: verbatim
30363 #: ../src/guestfs-actions.pod:5383
30364 #, no-wrap
30365 msgid ""
30366 " int\n"
30367 " guestfs_mount_9p_va (guestfs_h *g,\n"
30368 "                      const char *mounttag,\n"
30369 "                      const char *mountpoint,\n"
30370 "                      va_list args);\n"
30371 "\n"
30372 msgstr ""
30373
30374 #. type: textblock
30375 #: ../src/guestfs-actions.pod:5389
30376 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30377 msgstr ""
30378
30379 #. type: =head2
30380 #: ../src/guestfs-actions.pod:5393
30381 msgid "guestfs_mount_9p_argv"
30382 msgstr ""
30383
30384 #. type: verbatim
30385 #: ../src/guestfs-actions.pod:5395
30386 #, no-wrap
30387 msgid ""
30388 " int\n"
30389 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30390 "                        const char *mounttag,\n"
30391 "                        const char *mountpoint,\n"
30392 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30393 "\n"
30394 msgstr ""
30395
30396 #. type: textblock
30397 #: ../src/guestfs-actions.pod:5401
30398 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30399 msgstr ""
30400
30401 #. type: =head2
30402 #: ../src/guestfs-actions.pod:5405
30403 msgid "guestfs_mount_loop"
30404 msgstr ""
30405
30406 #. type: verbatim
30407 #: ../src/guestfs-actions.pod:5407
30408 #, no-wrap
30409 msgid ""
30410 " int\n"
30411 " guestfs_mount_loop (guestfs_h *g,\n"
30412 "                     const char *file,\n"
30413 "                     const char *mountpoint);\n"
30414 "\n"
30415 msgstr ""
30416
30417 #. type: =head2
30418 #: ../src/guestfs-actions.pod:5420
30419 msgid "guestfs_mount_options"
30420 msgstr ""
30421
30422 #. type: verbatim
30423 #: ../src/guestfs-actions.pod:5422
30424 #, no-wrap
30425 msgid ""
30426 " int\n"
30427 " guestfs_mount_options (guestfs_h *g,\n"
30428 "                        const char *options,\n"
30429 "                        const char *device,\n"
30430 "                        const char *mountpoint);\n"
30431 "\n"
30432 msgstr ""
30433
30434 #. type: textblock
30435 #: ../src/guestfs-actions.pod:5428
30436 msgid ""
30437 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30438 "the mount options as for the L<mount(8)> I<-o> flag."
30439 msgstr ""
30440
30441 #. type: textblock
30442 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5452
30443 #: ../src/guestfs-actions.pod:5469
30444 msgid "(Added in 1.0.10)"
30445 msgstr ""
30446
30447 #. type: =head2
30448 #: ../src/guestfs-actions.pod:5440
30449 msgid "guestfs_mount_ro"
30450 msgstr ""
30451
30452 #. type: verbatim
30453 #: ../src/guestfs-actions.pod:5442
30454 #, no-wrap
30455 msgid ""
30456 " int\n"
30457 " guestfs_mount_ro (guestfs_h *g,\n"
30458 "                   const char *device,\n"
30459 "                   const char *mountpoint);\n"
30460 "\n"
30461 msgstr ""
30462
30463 #. type: textblock
30464 #: ../src/guestfs-actions.pod:5447
30465 msgid ""
30466 "This is the same as the C<guestfs_mount> command, but it mounts the "
30467 "filesystem with the read-only (I<-o ro>) flag."
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:5454
30472 msgid "guestfs_mount_vfs"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:5456
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_mount_vfs (guestfs_h *g,\n"
30481 "                    const char *options,\n"
30482 "                    const char *vfstype,\n"
30483 "                    const char *device,\n"
30484 "                    const char *mountpoint);\n"
30485 "\n"
30486 msgstr ""
30487
30488 #. type: textblock
30489 #: ../src/guestfs-actions.pod:5463
30490 msgid ""
30491 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30492 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30493 "t> flags."
30494 msgstr ""
30495
30496 #. type: =head2
30497 #: ../src/guestfs-actions.pod:5471
30498 msgid "guestfs_mountpoints"
30499 msgstr ""
30500
30501 #. type: verbatim
30502 #: ../src/guestfs-actions.pod:5473
30503 #, no-wrap
30504 msgid ""
30505 " char **\n"
30506 " guestfs_mountpoints (guestfs_h *g);\n"
30507 "\n"
30508 msgstr ""
30509
30510 #. type: textblock
30511 #: ../src/guestfs-actions.pod:5476
30512 msgid ""
30513 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30514 "devices.  This one returns a hash table (map) of device name to directory "
30515 "where the device is mounted."
30516 msgstr ""
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:5488
30520 msgid "guestfs_mounts"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:5490
30525 #, no-wrap
30526 msgid ""
30527 " char **\n"
30528 " guestfs_mounts (guestfs_h *g);\n"
30529 "\n"
30530 msgstr ""
30531
30532 #. type: textblock
30533 #: ../src/guestfs-actions.pod:5498
30534 msgid "See also: C<guestfs_mountpoints>"
30535 msgstr ""
30536
30537 #. type: =head2
30538 #: ../src/guestfs-actions.pod:5506
30539 msgid "guestfs_mv"
30540 msgstr ""
30541
30542 #. type: verbatim
30543 #: ../src/guestfs-actions.pod:5508
30544 #, no-wrap
30545 msgid ""
30546 " int\n"
30547 " guestfs_mv (guestfs_h *g,\n"
30548 "             const char *src,\n"
30549 "             const char *dest);\n"
30550 "\n"
30551 msgstr ""
30552
30553 #. type: =head2
30554 #: ../src/guestfs-actions.pod:5520
30555 msgid "guestfs_ntfs_3g_probe"
30556 msgstr ""
30557
30558 #. type: verbatim
30559 #: ../src/guestfs-actions.pod:5522
30560 #, no-wrap
30561 msgid ""
30562 " int\n"
30563 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30564 "                        int rw,\n"
30565 "                        const char *device);\n"
30566 "\n"
30567 msgstr ""
30568
30569 #. type: textblock
30570 #: ../src/guestfs-actions.pod:5541
30571 msgid "(Added in 1.0.43)"
30572 msgstr ""
30573
30574 #. type: =head2
30575 #: ../src/guestfs-actions.pod:5543
30576 msgid "guestfs_ntfsresize"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs-actions.pod:5545
30581 #, no-wrap
30582 msgid ""
30583 " int\n"
30584 " guestfs_ntfsresize (guestfs_h *g,\n"
30585 "                     const char *device);\n"
30586 "\n"
30587 msgstr ""
30588
30589 #. type: textblock
30590 #: ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:5649
30591 msgid ""
30592 "I<This function is deprecated.> In new code, use the L</"
30593 "guestfs_ntfsresize_opts> call instead."
30594 msgstr ""
30595
30596 #. type: =head2
30597 #: ../src/guestfs-actions.pod:5573
30598 msgid "guestfs_ntfsresize_opts"
30599 msgstr ""
30600
30601 #. type: verbatim
30602 #: ../src/guestfs-actions.pod:5575
30603 #, no-wrap
30604 msgid ""
30605 " int\n"
30606 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30607 "                          const char *device,\n"
30608 "                          ...);\n"
30609 "\n"
30610 msgstr ""
30611
30612 #. type: verbatim
30613 #: ../src/guestfs-actions.pod:5585
30614 #, no-wrap
30615 msgid ""
30616 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30617 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30618 "\n"
30619 msgstr ""
30620
30621 #. type: textblock
30622 #: ../src/guestfs-actions.pod:5605
30623 msgid ""
30624 "After the resize operation, the filesystem is always marked as requiring a "
30625 "consistency check (for safety).  You have to boot into Windows to perform "
30626 "this check and clear this condition.  If you I<don't> set the C<force> "
30627 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30628 "times on a single filesystem without booting into Windows between each "
30629 "resize."
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:5620
30634 msgid "guestfs_ntfsresize_opts_va"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:5622
30639 #, no-wrap
30640 msgid ""
30641 " int\n"
30642 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30643 "                             const char *device,\n"
30644 "                             va_list args);\n"
30645 "\n"
30646 msgstr ""
30647
30648 #. type: textblock
30649 #: ../src/guestfs-actions.pod:5627
30650 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30651 msgstr ""
30652
30653 #. type: =head2
30654 #: ../src/guestfs-actions.pod:5631
30655 msgid "guestfs_ntfsresize_opts_argv"
30656 msgstr ""
30657
30658 #. type: verbatim
30659 #: ../src/guestfs-actions.pod:5633
30660 #, no-wrap
30661 msgid ""
30662 " int\n"
30663 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30664 "                               const char *device,\n"
30665 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30666 "\n"
30667 msgstr ""
30668
30669 #. type: textblock
30670 #: ../src/guestfs-actions.pod:5638
30671 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30672 msgstr ""
30673
30674 #. type: =head2
30675 #: ../src/guestfs-actions.pod:5642
30676 msgid "guestfs_ntfsresize_size"
30677 msgstr ""
30678
30679 #. type: verbatim
30680 #: ../src/guestfs-actions.pod:5644
30681 #, no-wrap
30682 msgid ""
30683 " int\n"
30684 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30685 "                          const char *device,\n"
30686 "                          int64_t size);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: textblock
30691 #: ../src/guestfs-actions.pod:5656
30692 msgid ""
30693 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30694 "to specify the new size (in bytes) explicitly."
30695 msgstr ""
30696
30697 #. type: textblock
30698 #: ../src/guestfs-actions.pod:5661 ../src/guestfs-actions.pod:6121
30699 #: ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6462
30700 #: ../src/guestfs-actions.pod:8101
30701 msgid "(Added in 1.3.14)"
30702 msgstr ""
30703
30704 #. type: =head2
30705 #: ../src/guestfs-actions.pod:5663
30706 msgid "guestfs_part_add"
30707 msgstr ""
30708
30709 #. type: verbatim
30710 #: ../src/guestfs-actions.pod:5665
30711 #, no-wrap
30712 msgid ""
30713 " int\n"
30714 " guestfs_part_add (guestfs_h *g,\n"
30715 "                   const char *device,\n"
30716 "                   const char *prlogex,\n"
30717 "                   int64_t startsect,\n"
30718 "                   int64_t endsect);\n"
30719 "\n"
30720 msgstr ""
30721
30722 #. type: textblock
30723 #: ../src/guestfs-actions.pod:5672
30724 msgid ""
30725 "This command adds a partition to C<device>.  If there is no partition table "
30726 "on the device, call C<guestfs_part_init> first."
30727 msgstr ""
30728
30729 #. type: textblock
30730 #: ../src/guestfs-actions.pod:5684
30731 msgid ""
30732 "Creating a partition which covers the whole disk is not so easy.  Use "
30733 "C<guestfs_part_disk> to do that."
30734 msgstr ""
30735
30736 #. type: textblock
30737 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5727
30738 #: ../src/guestfs-actions.pod:5780 ../src/guestfs-actions.pod:5864
30739 #: ../src/guestfs-actions.pod:5902 ../src/guestfs-actions.pod:5921
30740 #: ../src/guestfs-actions.pod:5961
30741 msgid "(Added in 1.0.78)"
30742 msgstr ""
30743
30744 #. type: =head2
30745 #: ../src/guestfs-actions.pod:5691
30746 msgid "guestfs_part_del"
30747 msgstr ""
30748
30749 #. type: verbatim
30750 #: ../src/guestfs-actions.pod:5693
30751 #, no-wrap
30752 msgid ""
30753 " int\n"
30754 " guestfs_part_del (guestfs_h *g,\n"
30755 "                   const char *device,\n"
30756 "                   int partnum);\n"
30757 "\n"
30758 msgstr ""
30759
30760 #. type: =head2
30761 #: ../src/guestfs-actions.pod:5708
30762 msgid "guestfs_part_disk"
30763 msgstr ""
30764
30765 #. type: verbatim
30766 #: ../src/guestfs-actions.pod:5710
30767 #, no-wrap
30768 msgid ""
30769 " int\n"
30770 " guestfs_part_disk (guestfs_h *g,\n"
30771 "                    const char *device,\n"
30772 "                    const char *parttype);\n"
30773 "\n"
30774 msgstr ""
30775
30776 #. type: textblock
30777 #: ../src/guestfs-actions.pod:5715
30778 msgid ""
30779 "This command is simply a combination of C<guestfs_part_init> followed by "
30780 "C<guestfs_part_add> to create a single primary partition covering the whole "
30781 "disk."
30782 msgstr ""
30783
30784 #. type: textblock
30785 #: ../src/guestfs-actions.pod:5719
30786 msgid ""
30787 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30788 "possible values are described in C<guestfs_part_init>."
30789 msgstr ""
30790
30791 #. type: =head2
30792 #: ../src/guestfs-actions.pod:5729
30793 msgid "guestfs_part_get_bootable"
30794 msgstr ""
30795
30796 #. type: verbatim
30797 #: ../src/guestfs-actions.pod:5731
30798 #, no-wrap
30799 msgid ""
30800 " int\n"
30801 " guestfs_part_get_bootable (guestfs_h *g,\n"
30802 "                            const char *device,\n"
30803 "                            int partnum);\n"
30804 "\n"
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs-actions.pod:5739
30809 msgid "See also C<guestfs_part_set_bootable>."
30810 msgstr ""
30811
30812 #. type: =head2
30813 #: ../src/guestfs-actions.pod:5745
30814 msgid "guestfs_part_get_mbr_id"
30815 msgstr ""
30816
30817 #. type: verbatim
30818 #: ../src/guestfs-actions.pod:5747
30819 #, no-wrap
30820 msgid ""
30821 " int\n"
30822 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30823 "                          const char *device,\n"
30824 "                          int partnum);\n"
30825 "\n"
30826 msgstr ""
30827
30828 #. type: textblock
30829 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:5937
30830 msgid ""
30831 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30832 "undefined results for other partition table types (see "
30833 "C<guestfs_part_get_parttype>)."
30834 msgstr ""
30835
30836 #. type: =head2
30837 #: ../src/guestfs-actions.pod:5763
30838 msgid "guestfs_part_get_parttype"
30839 msgstr ""
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-actions.pod:5765
30843 #, no-wrap
30844 msgid ""
30845 " char *\n"
30846 " guestfs_part_get_parttype (guestfs_h *g,\n"
30847 "                            const char *device);\n"
30848 "\n"
30849 msgstr ""
30850
30851 #. type: textblock
30852 #: ../src/guestfs-actions.pod:5772
30853 msgid ""
30854 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30855 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30856 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30857 msgstr ""
30858
30859 #. type: =head2
30860 #: ../src/guestfs-actions.pod:5782
30861 msgid "guestfs_part_init"
30862 msgstr ""
30863
30864 #. type: verbatim
30865 #: ../src/guestfs-actions.pod:5784
30866 #, no-wrap
30867 msgid ""
30868 " int\n"
30869 " guestfs_part_init (guestfs_h *g,\n"
30870 "                    const char *device,\n"
30871 "                    const char *parttype);\n"
30872 "\n"
30873 msgstr ""
30874
30875 #. type: textblock
30876 #: ../src/guestfs-actions.pod:5793
30877 msgid ""
30878 "Initially there are no partitions.  Following this, you should call "
30879 "C<guestfs_part_add> for each partition required."
30880 msgstr ""
30881
30882 #. type: =head2
30883 #: ../src/guestfs-actions.pod:5866
30884 msgid "guestfs_part_list"
30885 msgstr ""
30886
30887 #. type: verbatim
30888 #: ../src/guestfs-actions.pod:5868
30889 #, no-wrap
30890 msgid ""
30891 " struct guestfs_partition_list *\n"
30892 " guestfs_part_list (guestfs_h *g,\n"
30893 "                    const char *device);\n"
30894 "\n"
30895 msgstr ""
30896
30897 #. type: textblock
30898 #: ../src/guestfs-actions.pod:5885
30899 msgid ""
30900 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30901 "the device's sector size, see C<guestfs_blockdev_getss>."
30902 msgstr ""
30903
30904 #. type: textblock
30905 #: ../src/guestfs-actions.pod:5898
30906 msgid ""
30907 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30908 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30909 "use>."
30910 msgstr ""
30911
30912 #. type: =head2
30913 #: ../src/guestfs-actions.pod:5904
30914 msgid "guestfs_part_set_bootable"
30915 msgstr ""
30916
30917 #. type: verbatim
30918 #: ../src/guestfs-actions.pod:5906
30919 #, no-wrap
30920 msgid ""
30921 " int\n"
30922 " guestfs_part_set_bootable (guestfs_h *g,\n"
30923 "                            const char *device,\n"
30924 "                            int partnum,\n"
30925 "                            int bootable);\n"
30926 "\n"
30927 msgstr ""
30928
30929 #. type: =head2
30930 #: ../src/guestfs-actions.pod:5923
30931 msgid "guestfs_part_set_mbr_id"
30932 msgstr ""
30933
30934 #. type: verbatim
30935 #: ../src/guestfs-actions.pod:5925
30936 #, no-wrap
30937 msgid ""
30938 " int\n"
30939 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30940 "                          const char *device,\n"
30941 "                          int partnum,\n"
30942 "                          int idbyte);\n"
30943 "\n"
30944 msgstr ""
30945
30946 #. type: =head2
30947 #: ../src/guestfs-actions.pod:5945
30948 msgid "guestfs_part_set_name"
30949 msgstr ""
30950
30951 #. type: verbatim
30952 #: ../src/guestfs-actions.pod:5947
30953 #, no-wrap
30954 msgid ""
30955 " int\n"
30956 " guestfs_part_set_name (guestfs_h *g,\n"
30957 "                        const char *device,\n"
30958 "                        int partnum,\n"
30959 "                        const char *name);\n"
30960 "\n"
30961 msgstr ""
30962
30963 #. type: =head2
30964 #: ../src/guestfs-actions.pod:5963
30965 msgid "guestfs_part_to_dev"
30966 msgstr ""
30967
30968 #. type: verbatim
30969 #: ../src/guestfs-actions.pod:5965
30970 #, no-wrap
30971 msgid ""
30972 " char *\n"
30973 " guestfs_part_to_dev (guestfs_h *g,\n"
30974 "                      const char *partition);\n"
30975 "\n"
30976 msgstr ""
30977
30978 #. type: textblock
30979 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:5992
30980 msgid ""
30981 "The named partition must exist, for example as a string returned from "
30982 "C<guestfs_list_partitions>."
30983 msgstr ""
30984
30985 #. type: textblock
30986 #: ../src/guestfs-actions.pod:5976
30987 msgid "See also C<guestfs_part_to_partnum>."
30988 msgstr ""
30989
30990 #. type: =head2
30991 #: ../src/guestfs-actions.pod:5983
30992 msgid "guestfs_part_to_partnum"
30993 msgstr ""
30994
30995 #. type: verbatim
30996 #: ../src/guestfs-actions.pod:5985
30997 #, no-wrap
30998 msgid ""
30999 " int\n"
31000 " guestfs_part_to_partnum (guestfs_h *g,\n"
31001 "                          const char *partition);\n"
31002 "\n"
31003 msgstr ""
31004
31005 #. type: textblock
31006 #: ../src/guestfs-actions.pod:5995
31007 msgid "See also C<guestfs_part_to_dev>."
31008 msgstr ""
31009
31010 #. type: =head2
31011 #: ../src/guestfs-actions.pod:5999
31012 msgid "guestfs_ping_daemon"
31013 msgstr ""
31014
31015 #. type: verbatim
31016 #: ../src/guestfs-actions.pod:6001
31017 #, no-wrap
31018 msgid ""
31019 " int\n"
31020 " guestfs_ping_daemon (guestfs_h *g);\n"
31021 "\n"
31022 msgstr ""
31023
31024 #. type: =head2
31025 #: ../src/guestfs-actions.pod:6013
31026 msgid "guestfs_pread"
31027 msgstr ""
31028
31029 #. type: verbatim
31030 #: ../src/guestfs-actions.pod:6015
31031 #, no-wrap
31032 msgid ""
31033 " char *\n"
31034 " guestfs_pread (guestfs_h *g,\n"
31035 "                const char *path,\n"
31036 "                int count,\n"
31037 "                int64_t offset,\n"
31038 "                size_t *size_r);\n"
31039 "\n"
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../src/guestfs-actions.pod:6028
31044 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31045 msgstr ""
31046
31047 #. type: =head2
31048 #: ../src/guestfs-actions.pod:6039
31049 msgid "guestfs_pread_device"
31050 msgstr ""
31051
31052 #. type: verbatim
31053 #: ../src/guestfs-actions.pod:6041
31054 #, no-wrap
31055 msgid ""
31056 " char *\n"
31057 " guestfs_pread_device (guestfs_h *g,\n"
31058 "                       const char *device,\n"
31059 "                       int count,\n"
31060 "                       int64_t offset,\n"
31061 "                       size_t *size_r);\n"
31062 "\n"
31063 msgstr ""
31064
31065 #. type: textblock
31066 #: ../src/guestfs-actions.pod:6054
31067 msgid "See also C<guestfs_pread>."
31068 msgstr ""
31069
31070 #. type: textblock
31071 #: ../src/guestfs-actions.pod:6063
31072 msgid "(Added in 1.5.21)"
31073 msgstr ""
31074
31075 #. type: =head2
31076 #: ../src/guestfs-actions.pod:6065
31077 msgid "guestfs_pvcreate"
31078 msgstr ""
31079
31080 #. type: verbatim
31081 #: ../src/guestfs-actions.pod:6067
31082 #, no-wrap
31083 msgid ""
31084 " int\n"
31085 " guestfs_pvcreate (guestfs_h *g,\n"
31086 "                   const char *device);\n"
31087 "\n"
31088 msgstr ""
31089
31090 #. type: =head2
31091 #: ../src/guestfs-actions.pod:6079
31092 msgid "guestfs_pvremove"
31093 msgstr ""
31094
31095 #. type: verbatim
31096 #: ../src/guestfs-actions.pod:6081
31097 #, no-wrap
31098 msgid ""
31099 " int\n"
31100 " guestfs_pvremove (guestfs_h *g,\n"
31101 "                   const char *device);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: =head2
31106 #: ../src/guestfs-actions.pod:6096
31107 msgid "guestfs_pvresize"
31108 msgstr ""
31109
31110 #. type: verbatim
31111 #: ../src/guestfs-actions.pod:6098
31112 #, no-wrap
31113 msgid ""
31114 " int\n"
31115 " guestfs_pvresize (guestfs_h *g,\n"
31116 "                   const char *device);\n"
31117 "\n"
31118 msgstr ""
31119
31120 #. type: =head2
31121 #: ../src/guestfs-actions.pod:6109
31122 msgid "guestfs_pvresize_size"
31123 msgstr ""
31124
31125 #. type: verbatim
31126 #: ../src/guestfs-actions.pod:6111
31127 #, no-wrap
31128 msgid ""
31129 " int\n"
31130 " guestfs_pvresize_size (guestfs_h *g,\n"
31131 "                        const char *device,\n"
31132 "                        int64_t size);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:6116
31138 msgid ""
31139 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31140 "specify the new size (in bytes) explicitly."
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-actions.pod:6123
31145 msgid "guestfs_pvs"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-actions.pod:6125
31150 #, no-wrap
31151 msgid ""
31152 " char **\n"
31153 " guestfs_pvs (guestfs_h *g);\n"
31154 "\n"
31155 msgstr ""
31156
31157 #. type: textblock
31158 #: ../src/guestfs-actions.pod:6134
31159 msgid "See also C<guestfs_pvs_full>."
31160 msgstr ""
31161
31162 #. type: =head2
31163 #: ../src/guestfs-actions.pod:6142
31164 msgid "guestfs_pvs_full"
31165 msgstr ""
31166
31167 #. type: verbatim
31168 #: ../src/guestfs-actions.pod:6144
31169 #, no-wrap
31170 msgid ""
31171 " struct guestfs_lvm_pv_list *\n"
31172 " guestfs_pvs_full (guestfs_h *g);\n"
31173 "\n"
31174 msgstr ""
31175
31176 #. type: textblock
31177 #: ../src/guestfs-actions.pod:6150
31178 msgid ""
31179 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31180 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31181 msgstr ""
31182
31183 #. type: =head2
31184 #: ../src/guestfs-actions.pod:6156
31185 msgid "guestfs_pvuuid"
31186 msgstr ""
31187
31188 #. type: verbatim
31189 #: ../src/guestfs-actions.pod:6158
31190 #, no-wrap
31191 msgid ""
31192 " char *\n"
31193 " guestfs_pvuuid (guestfs_h *g,\n"
31194 "                 const char *device);\n"
31195 "\n"
31196 msgstr ""
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:6169
31200 msgid "guestfs_pwrite"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:6171
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_pwrite (guestfs_h *g,\n"
31209 "                 const char *path,\n"
31210 "                 const char *content,\n"
31211 "                 size_t content_size,\n"
31212 "                 int64_t offset);\n"
31213 "\n"
31214 msgstr ""
31215
31216 #. type: textblock
31217 #: ../src/guestfs-actions.pod:6187
31218 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31219 msgstr ""
31220
31221 #. type: =head2
31222 #: ../src/guestfs-actions.pod:6196
31223 msgid "guestfs_pwrite_device"
31224 msgstr ""
31225
31226 #. type: verbatim
31227 #: ../src/guestfs-actions.pod:6198
31228 #, no-wrap
31229 msgid ""
31230 " int\n"
31231 " guestfs_pwrite_device (guestfs_h *g,\n"
31232 "                        const char *device,\n"
31233 "                        const char *content,\n"
31234 "                        size_t content_size,\n"
31235 "                        int64_t offset);\n"
31236 "\n"
31237 msgstr ""
31238
31239 #. type: textblock
31240 #: ../src/guestfs-actions.pod:6213
31241 msgid "See also C<guestfs_pwrite>."
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs-actions.pod:6220
31246 msgid "(Added in 1.5.20)"
31247 msgstr ""
31248
31249 #. type: =head2
31250 #: ../src/guestfs-actions.pod:6222
31251 msgid "guestfs_read_file"
31252 msgstr ""
31253
31254 #. type: verbatim
31255 #: ../src/guestfs-actions.pod:6224
31256 #, no-wrap
31257 msgid ""
31258 " char *\n"
31259 " guestfs_read_file (guestfs_h *g,\n"
31260 "                    const char *path,\n"
31261 "                    size_t *size_r);\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs-actions.pod:6232
31267 msgid ""
31268 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31269 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31270 "function is limited in the total size of file that can be handled."
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs-actions.pod:6244
31275 msgid "(Added in 1.0.63)"
31276 msgstr ""
31277
31278 #. type: =head2
31279 #: ../src/guestfs-actions.pod:6246
31280 msgid "guestfs_read_lines"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs-actions.pod:6248
31285 #, no-wrap
31286 msgid ""
31287 " char **\n"
31288 " guestfs_read_lines (guestfs_h *g,\n"
31289 "                     const char *path);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs-actions.pod:6257
31295 msgid ""
31296 "Note that this function cannot correctly handle binary files (specifically, "
31297 "files containing C<\\0> character which is treated as end of line).  For "
31298 "those you need to use the C<guestfs_read_file> function which has a more "
31299 "complex interface."
31300 msgstr ""
31301
31302 #. type: =head2
31303 #: ../src/guestfs-actions.pod:6268
31304 msgid "guestfs_readdir"
31305 msgstr ""
31306
31307 #. type: verbatim
31308 #: ../src/guestfs-actions.pod:6270
31309 #, no-wrap
31310 msgid ""
31311 " struct guestfs_dirent_list *\n"
31312 " guestfs_readdir (guestfs_h *g,\n"
31313 "                  const char *dir);\n"
31314 "\n"
31315 msgstr ""
31316
31317 #. type: textblock
31318 #: ../src/guestfs-actions.pod:6324
31319 msgid ""
31320 "This function is primarily intended for use by programs.  To get a simple "
31321 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31322 "consumption, use C<guestfs_ll>."
31323 msgstr ""
31324
31325 #. type: textblock
31326 #: ../src/guestfs-actions.pod:6328
31327 msgid ""
31328 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31329 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31330 msgstr ""
31331
31332 #. type: =head2
31333 #: ../src/guestfs-actions.pod:6334
31334 msgid "guestfs_readlink"
31335 msgstr ""
31336
31337 #. type: verbatim
31338 #: ../src/guestfs-actions.pod:6336
31339 #, no-wrap
31340 msgid ""
31341 " char *\n"
31342 " guestfs_readlink (guestfs_h *g,\n"
31343 "                   const char *path);\n"
31344 "\n"
31345 msgstr ""
31346
31347 #. type: =head2
31348 #: ../src/guestfs-actions.pod:6347
31349 msgid "guestfs_readlinklist"
31350 msgstr ""
31351
31352 #. type: verbatim
31353 #: ../src/guestfs-actions.pod:6349
31354 #, no-wrap
31355 msgid ""
31356 " char **\n"
31357 " guestfs_readlinklist (guestfs_h *g,\n"
31358 "                       const char *path,\n"
31359 "                       char *const *names);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: =head2
31364 #: ../src/guestfs-actions.pod:6382
31365 msgid "guestfs_realpath"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs-actions.pod:6384
31370 #, no-wrap
31371 msgid ""
31372 " char *\n"
31373 " guestfs_realpath (guestfs_h *g,\n"
31374 "                   const char *path);\n"
31375 "\n"
31376 msgstr ""
31377
31378 #. type: =head2
31379 #: ../src/guestfs-actions.pod:6396
31380 msgid "guestfs_removexattr"
31381 msgstr ""
31382
31383 #. type: verbatim
31384 #: ../src/guestfs-actions.pod:6398
31385 #, no-wrap
31386 msgid ""
31387 " int\n"
31388 " guestfs_removexattr (guestfs_h *g,\n"
31389 "                      const char *xattr,\n"
31390 "                      const char *path);\n"
31391 "\n"
31392 msgstr ""
31393
31394 #. type: textblock
31395 #: ../src/guestfs-actions.pod:6406
31396 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31397 msgstr ""
31398
31399 #. type: =head2
31400 #: ../src/guestfs-actions.pod:6412
31401 msgid "guestfs_resize2fs"
31402 msgstr ""
31403
31404 #. type: verbatim
31405 #: ../src/guestfs-actions.pod:6414
31406 #, no-wrap
31407 msgid ""
31408 " int\n"
31409 " guestfs_resize2fs (guestfs_h *g,\n"
31410 "                    const char *device);\n"
31411 "\n"
31412 msgstr ""
31413
31414 #. type: textblock
31415 #: ../src/guestfs-actions.pod:6421
31416 msgid ""
31417 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31418 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31419 "sometimes gives an error about this and sometimes not.  In any case, it is "
31420 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31421 msgstr ""
31422
31423 #. type: =head2
31424 #: ../src/guestfs-actions.pod:6431
31425 msgid "guestfs_resize2fs_M"
31426 msgstr ""
31427
31428 #. type: verbatim
31429 #: ../src/guestfs-actions.pod:6433
31430 #, no-wrap
31431 msgid ""
31432 " int\n"
31433 " guestfs_resize2fs_M (guestfs_h *g,\n"
31434 "                      const char *device);\n"
31435 "\n"
31436 msgstr ""
31437
31438 #. type: textblock
31439 #: ../src/guestfs-actions.pod:6437
31440 msgid ""
31441 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31442 "resized to its minimum size.  This works like the I<-M> option to the "
31443 "C<resize2fs> command."
31444 msgstr ""
31445
31446 #. type: textblock
31447 #: ../src/guestfs-actions.pod:6441
31448 msgid ""
31449 "To get the resulting size of the filesystem you should call "
31450 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31451 "These two numbers, multiplied together, give the resulting size of the "
31452 "minimal filesystem in bytes."
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-actions.pod:6450
31457 msgid "guestfs_resize2fs_size"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-actions.pod:6452
31462 #, no-wrap
31463 msgid ""
31464 " int\n"
31465 " guestfs_resize2fs_size (guestfs_h *g,\n"
31466 "                         const char *device,\n"
31467 "                         int64_t size);\n"
31468 "\n"
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs-actions.pod:6457
31473 msgid ""
31474 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31475 "to specify the new size (in bytes) explicitly."
31476 msgstr ""
31477
31478 #. type: =head2
31479 #: ../src/guestfs-actions.pod:6464
31480 msgid "guestfs_rm"
31481 msgstr ""
31482
31483 #. type: verbatim
31484 #: ../src/guestfs-actions.pod:6466
31485 #, no-wrap
31486 msgid ""
31487 " int\n"
31488 " guestfs_rm (guestfs_h *g,\n"
31489 "             const char *path);\n"
31490 "\n"
31491 msgstr ""
31492
31493 #. type: =head2
31494 #: ../src/guestfs-actions.pod:6476
31495 msgid "guestfs_rm_rf"
31496 msgstr ""
31497
31498 #. type: verbatim
31499 #: ../src/guestfs-actions.pod:6478
31500 #, no-wrap
31501 msgid ""
31502 " int\n"
31503 " guestfs_rm_rf (guestfs_h *g,\n"
31504 "                const char *path);\n"
31505 "\n"
31506 msgstr ""
31507
31508 #. type: =head2
31509 #: ../src/guestfs-actions.pod:6490
31510 msgid "guestfs_rmdir"
31511 msgstr ""
31512
31513 #. type: verbatim
31514 #: ../src/guestfs-actions.pod:6492
31515 #, no-wrap
31516 msgid ""
31517 " int\n"
31518 " guestfs_rmdir (guestfs_h *g,\n"
31519 "                const char *path);\n"
31520 "\n"
31521 msgstr ""
31522
31523 #. type: =head2
31524 #: ../src/guestfs-actions.pod:6502
31525 msgid "guestfs_rmmountpoint"
31526 msgstr ""
31527
31528 #. type: verbatim
31529 #: ../src/guestfs-actions.pod:6504
31530 #, no-wrap
31531 msgid ""
31532 " int\n"
31533 " guestfs_rmmountpoint (guestfs_h *g,\n"
31534 "                       const char *exemptpath);\n"
31535 "\n"
31536 msgstr ""
31537
31538 #. type: textblock
31539 #: ../src/guestfs-actions.pod:6508
31540 msgid ""
31541 "This calls removes a mountpoint that was previously created with "
31542 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31543 msgstr ""
31544
31545 #. type: =head2
31546 #: ../src/guestfs-actions.pod:6516
31547 msgid "guestfs_scrub_device"
31548 msgstr ""
31549
31550 #. type: verbatim
31551 #: ../src/guestfs-actions.pod:6518
31552 #, no-wrap
31553 msgid ""
31554 " int\n"
31555 " guestfs_scrub_device (guestfs_h *g,\n"
31556 "                       const char *device);\n"
31557 "\n"
31558 msgstr ""
31559
31560 #. type: textblock
31561 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6551
31562 #: ../src/guestfs-actions.pod:6570
31563 msgid "(Added in 1.0.52)"
31564 msgstr ""
31565
31566 #. type: =head2
31567 #: ../src/guestfs-actions.pod:6535
31568 msgid "guestfs_scrub_file"
31569 msgstr ""
31570
31571 #. type: verbatim
31572 #: ../src/guestfs-actions.pod:6537
31573 #, no-wrap
31574 msgid ""
31575 " int\n"
31576 " guestfs_scrub_file (guestfs_h *g,\n"
31577 "                     const char *file);\n"
31578 "\n"
31579 msgstr ""
31580
31581 #. type: =head2
31582 #: ../src/guestfs-actions.pod:6553
31583 msgid "guestfs_scrub_freespace"
31584 msgstr ""
31585
31586 #. type: verbatim
31587 #: ../src/guestfs-actions.pod:6555
31588 #, no-wrap
31589 msgid ""
31590 " int\n"
31591 " guestfs_scrub_freespace (guestfs_h *g,\n"
31592 "                          const char *dir);\n"
31593 "\n"
31594 msgstr ""
31595
31596 #. type: textblock
31597 #: ../src/guestfs-actions.pod:6559
31598 msgid ""
31599 "This command creates the directory C<dir> and then fills it with files until "
31600 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31601 "and deletes them.  The intention is to scrub any free space on the partition "
31602 "containing C<dir>."
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs-actions.pod:6572
31607 msgid "guestfs_set_append"
31608 msgstr ""
31609
31610 #. type: verbatim
31611 #: ../src/guestfs-actions.pod:6574
31612 #, no-wrap
31613 msgid ""
31614 " int\n"
31615 " guestfs_set_append (guestfs_h *g,\n"
31616 "                     const char *append);\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: =head2
31621 #: ../src/guestfs-actions.pod:6591
31622 msgid "guestfs_set_attach_method"
31623 msgstr ""
31624
31625 #. type: verbatim
31626 #: ../src/guestfs-actions.pod:6593
31627 #, no-wrap
31628 msgid ""
31629 " int\n"
31630 " guestfs_set_attach_method (guestfs_h *g,\n"
31631 "                            const char *attachmethod);\n"
31632 "\n"
31633 msgstr ""
31634
31635 #. type: =head2
31636 #: ../src/guestfs-actions.pod:6621
31637 msgid "guestfs_set_autosync"
31638 msgstr ""
31639
31640 #. type: verbatim
31641 #: ../src/guestfs-actions.pod:6623
31642 #, no-wrap
31643 msgid ""
31644 " int\n"
31645 " guestfs_set_autosync (guestfs_h *g,\n"
31646 "                       int autosync);\n"
31647 "\n"
31648 msgstr ""
31649
31650 #. type: =head2
31651 #: ../src/guestfs-actions.pod:6639
31652 msgid "guestfs_set_direct"
31653 msgstr ""
31654
31655 #. type: verbatim
31656 #: ../src/guestfs-actions.pod:6641
31657 #, no-wrap
31658 msgid ""
31659 " int\n"
31660 " guestfs_set_direct (guestfs_h *g,\n"
31661 "                     int direct);\n"
31662 "\n"
31663 msgstr ""
31664
31665 #. type: textblock
31666 #: ../src/guestfs-actions.pod:6649
31667 msgid ""
31668 "One consequence of this is that log messages aren't caught by the library "
31669 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31670 "stdout."
31671 msgstr ""
31672
31673 #. type: =head2
31674 #: ../src/guestfs-actions.pod:6662
31675 msgid "guestfs_set_e2label"
31676 msgstr ""
31677
31678 #. type: verbatim
31679 #: ../src/guestfs-actions.pod:6664
31680 #, no-wrap
31681 msgid ""
31682 " int\n"
31683 " guestfs_set_e2label (guestfs_h *g,\n"
31684 "                      const char *device,\n"
31685 "                      const char *label);\n"
31686 "\n"
31687 msgstr ""
31688
31689 #. type: textblock
31690 #: ../src/guestfs-actions.pod:6673
31691 msgid ""
31692 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31693 "the existing label on a filesystem."
31694 msgstr ""
31695
31696 #. type: =head2
31697 #: ../src/guestfs-actions.pod:6680
31698 msgid "guestfs_set_e2uuid"
31699 msgstr ""
31700
31701 #. type: verbatim
31702 #: ../src/guestfs-actions.pod:6682
31703 #, no-wrap
31704 msgid ""
31705 " int\n"
31706 " guestfs_set_e2uuid (guestfs_h *g,\n"
31707 "                     const char *device,\n"
31708 "                     const char *uuid);\n"
31709 "\n"
31710 msgstr ""
31711
31712 #. type: textblock
31713 #: ../src/guestfs-actions.pod:6692
31714 msgid ""
31715 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31716 "the existing UUID of a filesystem."
31717 msgstr ""
31718
31719 #. type: =head2
31720 #: ../src/guestfs-actions.pod:6699
31721 msgid "guestfs_set_memsize"
31722 msgstr ""
31723
31724 #. type: verbatim
31725 #: ../src/guestfs-actions.pod:6701
31726 #, no-wrap
31727 msgid ""
31728 " int\n"
31729 " guestfs_set_memsize (guestfs_h *g,\n"
31730 "                      int memsize);\n"
31731 "\n"
31732 msgstr ""
31733
31734 #. type: textblock
31735 #: ../src/guestfs-actions.pod:6705
31736 msgid ""
31737 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31738 "This only has any effect if called before C<guestfs_launch>."
31739 msgstr ""
31740
31741 #. type: =head2
31742 #: ../src/guestfs-actions.pod:6720
31743 msgid "guestfs_set_network"
31744 msgstr ""
31745
31746 #. type: verbatim
31747 #: ../src/guestfs-actions.pod:6722
31748 #, no-wrap
31749 msgid ""
31750 " int\n"
31751 " guestfs_set_network (guestfs_h *g,\n"
31752 "                      int network);\n"
31753 "\n"
31754 msgstr ""
31755
31756 #. type: textblock
31757 #: ../src/guestfs-actions.pod:6732
31758 msgid ""
31759 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31760 "effect."
31761 msgstr ""
31762
31763 #. type: =head2
31764 #: ../src/guestfs-actions.pod:6739
31765 msgid "guestfs_set_path"
31766 msgstr ""
31767
31768 #. type: verbatim
31769 #: ../src/guestfs-actions.pod:6741
31770 #, no-wrap
31771 msgid ""
31772 " int\n"
31773 " guestfs_set_path (guestfs_h *g,\n"
31774 "                   const char *searchpath);\n"
31775 "\n"
31776 msgstr ""
31777
31778 #. type: =head2
31779 #: ../src/guestfs-actions.pod:6756
31780 msgid "guestfs_set_pgroup"
31781 msgstr ""
31782
31783 #. type: verbatim
31784 #: ../src/guestfs-actions.pod:6758
31785 #, no-wrap
31786 msgid ""
31787 " int\n"
31788 " guestfs_set_pgroup (guestfs_h *g,\n"
31789 "                     int pgroup);\n"
31790 "\n"
31791 msgstr ""
31792
31793 #. type: =head2
31794 #: ../src/guestfs-actions.pod:6775
31795 msgid "guestfs_set_qemu"
31796 msgstr ""
31797
31798 #. type: verbatim
31799 #: ../src/guestfs-actions.pod:6777
31800 #, no-wrap
31801 msgid ""
31802 " int\n"
31803 " guestfs_set_qemu (guestfs_h *g,\n"
31804 "                   const char *qemu);\n"
31805 "\n"
31806 msgstr ""
31807
31808 #. type: =head2
31809 #: ../src/guestfs-actions.pod:6803
31810 msgid "guestfs_set_recovery_proc"
31811 msgstr ""
31812
31813 #. type: verbatim
31814 #: ../src/guestfs-actions.pod:6805
31815 #, no-wrap
31816 msgid ""
31817 " int\n"
31818 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31819 "                            int recoveryproc);\n"
31820 "\n"
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs-actions.pod:6809
31825 msgid ""
31826 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31827 "not create a recovery process.  The purpose of the recovery process is to "
31828 "stop runaway qemu processes in the case where the main program aborts "
31829 "abruptly."
31830 msgstr ""
31831
31832 #. type: textblock
31833 #: ../src/guestfs-actions.pod:6814
31834 msgid ""
31835 "This only has any effect if called before C<guestfs_launch>, and the default "
31836 "is true."
31837 msgstr ""
31838
31839 #. type: =head2
31840 #: ../src/guestfs-actions.pod:6827
31841 msgid "guestfs_set_selinux"
31842 msgstr ""
31843
31844 #. type: verbatim
31845 #: ../src/guestfs-actions.pod:6829
31846 #, no-wrap
31847 msgid ""
31848 " int\n"
31849 " guestfs_set_selinux (guestfs_h *g,\n"
31850 "                      int selinux);\n"
31851 "\n"
31852 msgstr ""
31853
31854 #. type: =head2
31855 #: ../src/guestfs-actions.pod:6846
31856 msgid "guestfs_set_smp"
31857 msgstr ""
31858
31859 #. type: verbatim
31860 #: ../src/guestfs-actions.pod:6848
31861 #, no-wrap
31862 msgid ""
31863 " int\n"
31864 " guestfs_set_smp (guestfs_h *g,\n"
31865 "                  int smp);\n"
31866 "\n"
31867 msgstr ""
31868
31869 #. type: textblock
31870 #: ../src/guestfs-actions.pod:6856
31871 msgid "This function must be called before C<guestfs_launch>."
31872 msgstr ""
31873
31874 #. type: =head2
31875 #: ../src/guestfs-actions.pod:6862
31876 msgid "guestfs_set_trace"
31877 msgstr ""
31878
31879 #. type: verbatim
31880 #: ../src/guestfs-actions.pod:6864
31881 #, no-wrap
31882 msgid ""
31883 " int\n"
31884 " guestfs_set_trace (guestfs_h *g,\n"
31885 "                    int trace);\n"
31886 "\n"
31887 msgstr ""
31888
31889 #. type: textblock
31890 #: ../src/guestfs-actions.pod:6878
31891 msgid ""
31892 "Trace messages are normally sent to C<stderr>, unless you register a "
31893 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31894 msgstr ""
31895
31896 #. type: =head2
31897 #: ../src/guestfs-actions.pod:6886
31898 msgid "guestfs_set_verbose"
31899 msgstr ""
31900
31901 #. type: verbatim
31902 #: ../src/guestfs-actions.pod:6888
31903 #, no-wrap
31904 msgid ""
31905 " int\n"
31906 " guestfs_set_verbose (guestfs_h *g,\n"
31907 "                      int verbose);\n"
31908 "\n"
31909 msgstr ""
31910
31911 #. type: textblock
31912 #: ../src/guestfs-actions.pod:6897
31913 msgid ""
31914 "Verbose messages are normally sent to C<stderr>, unless you register a "
31915 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31916 msgstr ""
31917
31918 #. type: =head2
31919 #: ../src/guestfs-actions.pod:6905
31920 msgid "guestfs_setcon"
31921 msgstr ""
31922
31923 #. type: verbatim
31924 #: ../src/guestfs-actions.pod:6907
31925 #, no-wrap
31926 msgid ""
31927 " int\n"
31928 " guestfs_setcon (guestfs_h *g,\n"
31929 "                 const char *context);\n"
31930 "\n"
31931 msgstr ""
31932
31933 #. type: =head2
31934 #: ../src/guestfs-actions.pod:6920
31935 msgid "guestfs_setxattr"
31936 msgstr ""
31937
31938 #. type: verbatim
31939 #: ../src/guestfs-actions.pod:6922
31940 #, no-wrap
31941 msgid ""
31942 " int\n"
31943 " guestfs_setxattr (guestfs_h *g,\n"
31944 "                   const char *xattr,\n"
31945 "                   const char *val,\n"
31946 "                   int vallen,\n"
31947 "                   const char *path);\n"
31948 "\n"
31949 msgstr ""
31950
31951 #. type: textblock
31952 #: ../src/guestfs-actions.pod:6933
31953 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31954 msgstr ""
31955
31956 #. type: =head2
31957 #: ../src/guestfs-actions.pod:6939
31958 msgid "guestfs_sfdisk"
31959 msgstr ""
31960
31961 #. type: verbatim
31962 #: ../src/guestfs-actions.pod:6941
31963 #, no-wrap
31964 msgid ""
31965 " int\n"
31966 " guestfs_sfdisk (guestfs_h *g,\n"
31967 "                 const char *device,\n"
31968 "                 int cyls,\n"
31969 "                 int heads,\n"
31970 "                 int sectors,\n"
31971 "                 char *const *lines);\n"
31972 "\n"
31973 msgstr ""
31974
31975 #. type: textblock
31976 #: ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:6993
31977 #: ../src/guestfs-actions.pod:7027
31978 msgid ""
31979 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31980 "call instead."
31981 msgstr ""
31982
31983 #. type: textblock
31984 #: ../src/guestfs-actions.pod:6976
31985 msgid ""
31986 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31987 msgstr ""
31988
31989 #. type: =head2
31990 #: ../src/guestfs-actions.pod:6986
31991 msgid "guestfs_sfdiskM"
31992 msgstr ""
31993
31994 #. type: verbatim
31995 #: ../src/guestfs-actions.pod:6988
31996 #, no-wrap
31997 msgid ""
31998 " int\n"
31999 " guestfs_sfdiskM (guestfs_h *g,\n"
32000 "                  const char *device,\n"
32001 "                  char *const *lines);\n"
32002 "\n"
32003 msgstr ""
32004
32005 #. type: textblock
32006 #: ../src/guestfs-actions.pod:7000
32007 msgid ""
32008 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32009 "partition sizes are specified in megabytes only (rounded to the nearest "
32010 "cylinder) and you don't need to specify the cyls, heads and sectors "
32011 "parameters which were rarely if ever used anyway."
32012 msgstr ""
32013
32014 #. type: textblock
32015 #: ../src/guestfs-actions.pod:7006
32016 msgid ""
32017 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32018 "C<guestfs_part_disk>"
32019 msgstr ""
32020
32021 #. type: =head2
32022 #: ../src/guestfs-actions.pod:7016
32023 msgid "guestfs_sfdisk_N"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../src/guestfs-actions.pod:7018
32028 #, no-wrap
32029 msgid ""
32030 " int\n"
32031 " guestfs_sfdisk_N (guestfs_h *g,\n"
32032 "                   const char *device,\n"
32033 "                   int partnum,\n"
32034 "                   int cyls,\n"
32035 "                   int heads,\n"
32036 "                   int sectors,\n"
32037 "                   const char *line);\n"
32038 "\n"
32039 msgstr ""
32040
32041 #. type: textblock
32042 #: ../src/guestfs-actions.pod:7037
32043 msgid ""
32044 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32045 "for the cyls/heads/sectors parameters."
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs-actions.pod:7040
32050 msgid "See also: C<guestfs_part_add>"
32051 msgstr ""
32052
32053 #. type: =head2
32054 #: ../src/guestfs-actions.pod:7049
32055 msgid "guestfs_sfdisk_disk_geometry"
32056 msgstr ""
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-actions.pod:7051
32060 #, no-wrap
32061 msgid ""
32062 " char *\n"
32063 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32064 "                               const char *device);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: textblock
32069 #: ../src/guestfs-actions.pod:7055
32070 msgid ""
32071 "This displays the disk geometry of C<device> read from the partition table.  "
32072 "Especially in the case where the underlying block device has been resized, "
32073 "this can be different from the kernel's idea of the geometry (see "
32074 "C<guestfs_sfdisk_kernel_geometry>)."
32075 msgstr ""
32076
32077 #. type: =head2
32078 #: ../src/guestfs-actions.pod:7068
32079 msgid "guestfs_sfdisk_kernel_geometry"
32080 msgstr ""
32081
32082 #. type: verbatim
32083 #: ../src/guestfs-actions.pod:7070
32084 #, no-wrap
32085 msgid ""
32086 " char *\n"
32087 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32088 "                                 const char *device);\n"
32089 "\n"
32090 msgstr ""
32091
32092 #. type: =head2
32093 #: ../src/guestfs-actions.pod:7084
32094 msgid "guestfs_sfdisk_l"
32095 msgstr ""
32096
32097 #. type: verbatim
32098 #: ../src/guestfs-actions.pod:7086
32099 #, no-wrap
32100 msgid ""
32101 " char *\n"
32102 " guestfs_sfdisk_l (guestfs_h *g,\n"
32103 "                   const char *device);\n"
32104 "\n"
32105 msgstr ""
32106
32107 #. type: textblock
32108 #: ../src/guestfs-actions.pod:7090
32109 msgid ""
32110 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32111 "call instead."
32112 msgstr ""
32113
32114 #. type: textblock
32115 #: ../src/guestfs-actions.pod:7101
32116 msgid "See also: C<guestfs_part_list>"
32117 msgstr ""
32118
32119 #. type: =head2
32120 #: ../src/guestfs-actions.pod:7108
32121 msgid "guestfs_sh"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-actions.pod:7110
32126 #, no-wrap
32127 msgid ""
32128 " char *\n"
32129 " guestfs_sh (guestfs_h *g,\n"
32130 "             const char *command);\n"
32131 "\n"
32132 msgstr ""
32133
32134 #. type: textblock
32135 #: ../src/guestfs-actions.pod:7117
32136 msgid "This is like C<guestfs_command>, but passes the command to:"
32137 msgstr ""
32138
32139 #. type: textblock
32140 #: ../src/guestfs-actions.pod:7125
32141 msgid "All the provisos about C<guestfs_command> apply to this call."
32142 msgstr ""
32143
32144 #. type: =head2
32145 #: ../src/guestfs-actions.pod:7132
32146 msgid "guestfs_sh_lines"
32147 msgstr ""
32148
32149 #. type: verbatim
32150 #: ../src/guestfs-actions.pod:7134
32151 #, no-wrap
32152 msgid ""
32153 " char **\n"
32154 " guestfs_sh_lines (guestfs_h *g,\n"
32155 "                   const char *command);\n"
32156 "\n"
32157 msgstr ""
32158
32159 #. type: textblock
32160 #: ../src/guestfs-actions.pod:7138
32161 msgid ""
32162 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32163 "lines."
32164 msgstr ""
32165
32166 #. type: textblock
32167 #: ../src/guestfs-actions.pod:7141
32168 msgid "See also: C<guestfs_command_lines>"
32169 msgstr ""
32170
32171 #. type: =head2
32172 #: ../src/guestfs-actions.pod:7149
32173 msgid "guestfs_sleep"
32174 msgstr ""
32175
32176 #. type: verbatim
32177 #: ../src/guestfs-actions.pod:7151
32178 #, no-wrap
32179 msgid ""
32180 " int\n"
32181 " guestfs_sleep (guestfs_h *g,\n"
32182 "                int secs);\n"
32183 "\n"
32184 msgstr ""
32185
32186 #. type: textblock
32187 #: ../src/guestfs-actions.pod:7159
32188 msgid "(Added in 1.0.41)"
32189 msgstr ""
32190
32191 #. type: =head2
32192 #: ../src/guestfs-actions.pod:7161 ../src/guestfs-structs.pod:109
32193 msgid "guestfs_stat"
32194 msgstr ""
32195
32196 #. type: verbatim
32197 #: ../src/guestfs-actions.pod:7163
32198 #, no-wrap
32199 msgid ""
32200 " struct guestfs_stat *\n"
32201 " guestfs_stat (guestfs_h *g,\n"
32202 "               const char *path);\n"
32203 "\n"
32204 msgstr ""
32205
32206 #. type: =head2
32207 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-structs.pod:135
32208 msgid "guestfs_statvfs"
32209 msgstr ""
32210
32211 #. type: verbatim
32212 #: ../src/guestfs-actions.pod:7179
32213 #, no-wrap
32214 msgid ""
32215 " struct guestfs_statvfs *\n"
32216 " guestfs_statvfs (guestfs_h *g,\n"
32217 "                  const char *path);\n"
32218 "\n"
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../src/guestfs-actions.pod:7189
32223 msgid ""
32224 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32225 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32226 msgstr ""
32227
32228 #. type: =head2
32229 #: ../src/guestfs-actions.pod:7195
32230 msgid "guestfs_strings"
32231 msgstr ""
32232
32233 #. type: verbatim
32234 #: ../src/guestfs-actions.pod:7197
32235 #, no-wrap
32236 msgid ""
32237 " char **\n"
32238 " guestfs_strings (guestfs_h *g,\n"
32239 "                  const char *path);\n"
32240 "\n"
32241 msgstr ""
32242
32243 #. type: =head2
32244 #: ../src/guestfs-actions.pod:7213
32245 msgid "guestfs_strings_e"
32246 msgstr ""
32247
32248 #. type: verbatim
32249 #: ../src/guestfs-actions.pod:7215
32250 #, no-wrap
32251 msgid ""
32252 " char **\n"
32253 " guestfs_strings_e (guestfs_h *g,\n"
32254 "                    const char *encoding,\n"
32255 "                    const char *path);\n"
32256 "\n"
32257 msgstr ""
32258
32259 #. type: textblock
32260 #: ../src/guestfs-actions.pod:7220
32261 msgid ""
32262 "This is like the C<guestfs_strings> command, but allows you to specify the "
32263 "encoding of strings that are looked for in the source file C<path>."
32264 msgstr ""
32265
32266 #. type: textblock
32267 #: ../src/guestfs-actions.pod:7230
32268 msgid ""
32269 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32270 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32271 msgstr ""
32272
32273 #. type: =head2
32274 #: ../src/guestfs-actions.pod:7268
32275 msgid "guestfs_swapoff_device"
32276 msgstr ""
32277
32278 #. type: verbatim
32279 #: ../src/guestfs-actions.pod:7270
32280 #, no-wrap
32281 msgid ""
32282 " int\n"
32283 " guestfs_swapoff_device (guestfs_h *g,\n"
32284 "                         const char *device);\n"
32285 "\n"
32286 msgstr ""
32287
32288 #. type: textblock
32289 #: ../src/guestfs-actions.pod:7274
32290 msgid ""
32291 "This command disables the libguestfs appliance swap device or partition "
32292 "named C<device>.  See C<guestfs_swapon_device>."
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs-actions.pod:7282
32297 msgid "guestfs_swapoff_file"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-actions.pod:7284
32302 #, no-wrap
32303 msgid ""
32304 " int\n"
32305 " guestfs_swapoff_file (guestfs_h *g,\n"
32306 "                       const char *file);\n"
32307 "\n"
32308 msgstr ""
32309
32310 #. type: =head2
32311 #: ../src/guestfs-actions.pod:7294
32312 msgid "guestfs_swapoff_label"
32313 msgstr ""
32314
32315 #. type: verbatim
32316 #: ../src/guestfs-actions.pod:7296
32317 #, no-wrap
32318 msgid ""
32319 " int\n"
32320 " guestfs_swapoff_label (guestfs_h *g,\n"
32321 "                        const char *label);\n"
32322 "\n"
32323 msgstr ""
32324
32325 #. type: =head2
32326 #: ../src/guestfs-actions.pod:7307
32327 msgid "guestfs_swapoff_uuid"
32328 msgstr ""
32329
32330 #. type: verbatim
32331 #: ../src/guestfs-actions.pod:7309
32332 #, no-wrap
32333 msgid ""
32334 " int\n"
32335 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32336 "                       const char *uuid);\n"
32337 "\n"
32338 msgstr ""
32339
32340 #. type: =head2
32341 #: ../src/guestfs-actions.pod:7320
32342 msgid "guestfs_swapon_device"
32343 msgstr ""
32344
32345 #. type: verbatim
32346 #: ../src/guestfs-actions.pod:7322
32347 #, no-wrap
32348 msgid ""
32349 " int\n"
32350 " guestfs_swapon_device (guestfs_h *g,\n"
32351 "                        const char *device);\n"
32352 "\n"
32353 msgstr ""
32354
32355 #. type: textblock
32356 #: ../src/guestfs-actions.pod:7326
32357 msgid ""
32358 "This command enables the libguestfs appliance to use the swap device or "
32359 "partition named C<device>.  The increased memory is made available for all "
32360 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32361 msgstr ""
32362
32363 #. type: =head2
32364 #: ../src/guestfs-actions.pod:7342
32365 msgid "guestfs_swapon_file"
32366 msgstr ""
32367
32368 #. type: verbatim
32369 #: ../src/guestfs-actions.pod:7344
32370 #, no-wrap
32371 msgid ""
32372 " int\n"
32373 " guestfs_swapon_file (guestfs_h *g,\n"
32374 "                      const char *file);\n"
32375 "\n"
32376 msgstr ""
32377
32378 #. type: textblock
32379 #: ../src/guestfs-actions.pod:7348
32380 msgid ""
32381 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32382 "notes."
32383 msgstr ""
32384
32385 #. type: =head2
32386 #: ../src/guestfs-actions.pod:7355
32387 msgid "guestfs_swapon_label"
32388 msgstr ""
32389
32390 #. type: verbatim
32391 #: ../src/guestfs-actions.pod:7357
32392 #, no-wrap
32393 msgid ""
32394 " int\n"
32395 " guestfs_swapon_label (guestfs_h *g,\n"
32396 "                       const char *label);\n"
32397 "\n"
32398 msgstr ""
32399
32400 #. type: textblock
32401 #: ../src/guestfs-actions.pod:7361
32402 msgid ""
32403 "This command enables swap to a labeled swap partition.  See "
32404 "C<guestfs_swapon_device> for other notes."
32405 msgstr ""
32406
32407 #. type: =head2
32408 #: ../src/guestfs-actions.pod:7368
32409 msgid "guestfs_swapon_uuid"
32410 msgstr ""
32411
32412 #. type: verbatim
32413 #: ../src/guestfs-actions.pod:7370
32414 #, no-wrap
32415 msgid ""
32416 " int\n"
32417 " guestfs_swapon_uuid (guestfs_h *g,\n"
32418 "                      const char *uuid);\n"
32419 "\n"
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs-actions.pod:7374
32424 msgid ""
32425 "This command enables swap to a swap partition with the given UUID.  See "
32426 "C<guestfs_swapon_device> for other notes."
32427 msgstr ""
32428
32429 #. type: =head2
32430 #: ../src/guestfs-actions.pod:7381
32431 msgid "guestfs_sync"
32432 msgstr ""
32433
32434 #. type: verbatim
32435 #: ../src/guestfs-actions.pod:7383
32436 #, no-wrap
32437 msgid ""
32438 " int\n"
32439 " guestfs_sync (guestfs_h *g);\n"
32440 "\n"
32441 msgstr ""
32442
32443 #. type: =head2
32444 #: ../src/guestfs-actions.pod:7396
32445 msgid "guestfs_tail"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-actions.pod:7398
32450 #, no-wrap
32451 msgid ""
32452 " char **\n"
32453 " guestfs_tail (guestfs_h *g,\n"
32454 "               const char *path);\n"
32455 "\n"
32456 msgstr ""
32457
32458 #. type: =head2
32459 #: ../src/guestfs-actions.pod:7414
32460 msgid "guestfs_tail_n"
32461 msgstr ""
32462
32463 #. type: verbatim
32464 #: ../src/guestfs-actions.pod:7416
32465 #, no-wrap
32466 msgid ""
32467 " char **\n"
32468 " guestfs_tail_n (guestfs_h *g,\n"
32469 "                 int nrlines,\n"
32470 "                 const char *path);\n"
32471 "\n"
32472 msgstr ""
32473
32474 #. type: =head2
32475 #: ../src/guestfs-actions.pod:7438
32476 msgid "guestfs_tar_in"
32477 msgstr ""
32478
32479 #. type: verbatim
32480 #: ../src/guestfs-actions.pod:7440
32481 #, no-wrap
32482 msgid ""
32483 " int\n"
32484 " guestfs_tar_in (guestfs_h *g,\n"
32485 "                 const char *tarfile,\n"
32486 "                 const char *directory);\n"
32487 "\n"
32488 msgstr ""
32489
32490 #. type: textblock
32491 #: ../src/guestfs-actions.pod:7448
32492 msgid ""
32493 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32494 msgstr ""
32495
32496 #. type: textblock
32497 #: ../src/guestfs-actions.pod:7453 ../src/guestfs-actions.pod:7470
32498 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7502
32499 msgid "(Added in 1.0.3)"
32500 msgstr ""
32501
32502 #. type: =head2
32503 #: ../src/guestfs-actions.pod:7455
32504 msgid "guestfs_tar_out"
32505 msgstr ""
32506
32507 #. type: verbatim
32508 #: ../src/guestfs-actions.pod:7457
32509 #, no-wrap
32510 msgid ""
32511 " int\n"
32512 " guestfs_tar_out (guestfs_h *g,\n"
32513 "                  const char *directory,\n"
32514 "                  const char *tarfile);\n"
32515 "\n"
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs-actions.pod:7465
32520 msgid ""
32521 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32522 "C<guestfs_txz_out>."
32523 msgstr ""
32524
32525 #. type: =head2
32526 #: ../src/guestfs-actions.pod:7472
32527 msgid "guestfs_tgz_in"
32528 msgstr ""
32529
32530 #. type: verbatim
32531 #: ../src/guestfs-actions.pod:7474
32532 #, no-wrap
32533 msgid ""
32534 " int\n"
32535 " guestfs_tgz_in (guestfs_h *g,\n"
32536 "                 const char *tarball,\n"
32537 "                 const char *directory);\n"
32538 "\n"
32539 msgstr ""
32540
32541 #. type: textblock
32542 #: ../src/guestfs-actions.pod:7482
32543 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32544 msgstr ""
32545
32546 #. type: =head2
32547 #: ../src/guestfs-actions.pod:7488
32548 msgid "guestfs_tgz_out"
32549 msgstr ""
32550
32551 #. type: verbatim
32552 #: ../src/guestfs-actions.pod:7490
32553 #, no-wrap
32554 msgid ""
32555 " int\n"
32556 " guestfs_tgz_out (guestfs_h *g,\n"
32557 "                  const char *directory,\n"
32558 "                  const char *tarball);\n"
32559 "\n"
32560 msgstr ""
32561
32562 #. type: textblock
32563 #: ../src/guestfs-actions.pod:7498
32564 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32565 msgstr ""
32566
32567 #. type: =head2
32568 #: ../src/guestfs-actions.pod:7504
32569 msgid "guestfs_touch"
32570 msgstr ""
32571
32572 #. type: verbatim
32573 #: ../src/guestfs-actions.pod:7506
32574 #, no-wrap
32575 msgid ""
32576 " int\n"
32577 " guestfs_touch (guestfs_h *g,\n"
32578 "                const char *path);\n"
32579 "\n"
32580 msgstr ""
32581
32582 #. type: =head2
32583 #: ../src/guestfs-actions.pod:7521
32584 msgid "guestfs_truncate"
32585 msgstr ""
32586
32587 #. type: verbatim
32588 #: ../src/guestfs-actions.pod:7523
32589 #, no-wrap
32590 msgid ""
32591 " int\n"
32592 " guestfs_truncate (guestfs_h *g,\n"
32593 "                   const char *path);\n"
32594 "\n"
32595 msgstr ""
32596
32597 #. type: =head2
32598 #: ../src/guestfs-actions.pod:7534
32599 msgid "guestfs_truncate_size"
32600 msgstr ""
32601
32602 #. type: verbatim
32603 #: ../src/guestfs-actions.pod:7536
32604 #, no-wrap
32605 msgid ""
32606 " int\n"
32607 " guestfs_truncate_size (guestfs_h *g,\n"
32608 "                        const char *path,\n"
32609 "                        int64_t size);\n"
32610 "\n"
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs-actions.pod:7544
32615 msgid ""
32616 "If the current file size is less than C<size> then the file is extended to "
32617 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32618 "blocks are not allocated for the file until you write to it).  To create a "
32619 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32620 msgstr ""
32621
32622 #. type: =head2
32623 #: ../src/guestfs-actions.pod:7554
32624 msgid "guestfs_tune2fs_l"
32625 msgstr ""
32626
32627 #. type: verbatim
32628 #: ../src/guestfs-actions.pod:7556
32629 #, no-wrap
32630 msgid ""
32631 " char **\n"
32632 " guestfs_tune2fs_l (guestfs_h *g,\n"
32633 "                    const char *device);\n"
32634 "\n"
32635 msgstr ""
32636
32637 #. type: =head2
32638 #: ../src/guestfs-actions.pod:7576
32639 msgid "guestfs_txz_in"
32640 msgstr ""
32641
32642 #. type: verbatim
32643 #: ../src/guestfs-actions.pod:7578
32644 #, no-wrap
32645 msgid ""
32646 " int\n"
32647 " guestfs_txz_in (guestfs_h *g,\n"
32648 "                 const char *tarball,\n"
32649 "                 const char *directory);\n"
32650 "\n"
32651 msgstr ""
32652
32653 #. type: =head2
32654 #: ../src/guestfs-actions.pod:7590
32655 msgid "guestfs_txz_out"
32656 msgstr ""
32657
32658 #. type: verbatim
32659 #: ../src/guestfs-actions.pod:7592
32660 #, no-wrap
32661 msgid ""
32662 " int\n"
32663 " guestfs_txz_out (guestfs_h *g,\n"
32664 "                  const char *directory,\n"
32665 "                  const char *tarball);\n"
32666 "\n"
32667 msgstr ""
32668
32669 #. type: =head2
32670 #: ../src/guestfs-actions.pod:7604
32671 msgid "guestfs_umask"
32672 msgstr ""
32673
32674 #. type: verbatim
32675 #: ../src/guestfs-actions.pod:7606
32676 #, no-wrap
32677 msgid ""
32678 " int\n"
32679 " guestfs_umask (guestfs_h *g,\n"
32680 "                int mask);\n"
32681 "\n"
32682 msgstr ""
32683
32684 #. type: textblock
32685 #: ../src/guestfs-actions.pod:7622
32686 msgid ""
32687 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32688 "C<guestfs_mkdir>."
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:7631
32693 msgid "guestfs_umount"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:7633
32698 #, no-wrap
32699 msgid ""
32700 " int\n"
32701 " guestfs_umount (guestfs_h *g,\n"
32702 "                 const char *pathordevice);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: =head2
32707 #: ../src/guestfs-actions.pod:7645
32708 msgid "guestfs_umount_all"
32709 msgstr ""
32710
32711 #. type: verbatim
32712 #: ../src/guestfs-actions.pod:7647
32713 #, no-wrap
32714 msgid ""
32715 " int\n"
32716 " guestfs_umount_all (guestfs_h *g);\n"
32717 "\n"
32718 msgstr ""
32719
32720 #. type: =head2
32721 #: ../src/guestfs-actions.pod:7658
32722 msgid "guestfs_upload"
32723 msgstr ""
32724
32725 #. type: verbatim
32726 #: ../src/guestfs-actions.pod:7660
32727 #, no-wrap
32728 msgid ""
32729 " int\n"
32730 " guestfs_upload (guestfs_h *g,\n"
32731 "                 const char *filename,\n"
32732 "                 const char *remotefilename);\n"
32733 "\n"
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs-actions.pod:7670
32738 msgid "See also C<guestfs_download>."
32739 msgstr ""
32740
32741 #. type: =head2
32742 #: ../src/guestfs-actions.pod:7681
32743 msgid "guestfs_upload_offset"
32744 msgstr ""
32745
32746 #. type: verbatim
32747 #: ../src/guestfs-actions.pod:7683
32748 #, no-wrap
32749 msgid ""
32750 " int\n"
32751 " guestfs_upload_offset (guestfs_h *g,\n"
32752 "                        const char *filename,\n"
32753 "                        const char *remotefilename,\n"
32754 "                        int64_t offset);\n"
32755 "\n"
32756 msgstr ""
32757
32758 #. type: textblock
32759 #: ../src/guestfs-actions.pod:7699
32760 msgid ""
32761 "Note that there is no limit on the amount of data that can be uploaded with "
32762 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32763 "full amount unless an error occurs."
32764 msgstr ""
32765
32766 #. type: textblock
32767 #: ../src/guestfs-actions.pod:7704
32768 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32769 msgstr ""
32770
32771 #. type: =head2
32772 #: ../src/guestfs-actions.pod:7715
32773 msgid "guestfs_utimens"
32774 msgstr ""
32775
32776 #. type: verbatim
32777 #: ../src/guestfs-actions.pod:7717
32778 #, no-wrap
32779 msgid ""
32780 " int\n"
32781 " guestfs_utimens (guestfs_h *g,\n"
32782 "                  const char *path,\n"
32783 "                  int64_t atsecs,\n"
32784 "                  int64_t atnsecs,\n"
32785 "                  int64_t mtsecs,\n"
32786 "                  int64_t mtnsecs);\n"
32787 "\n"
32788 msgstr ""
32789
32790 #. type: =head2
32791 #: ../src/guestfs-actions.pod:7746 ../src/guestfs-structs.pod:175
32792 msgid "guestfs_version"
32793 msgstr ""
32794
32795 #. type: verbatim
32796 #: ../src/guestfs-actions.pod:7748
32797 #, no-wrap
32798 msgid ""
32799 " struct guestfs_version *\n"
32800 " guestfs_version (guestfs_h *g);\n"
32801 "\n"
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs-actions.pod:7776
32806 msgid ""
32807 "I<Note:> Don't use this call to test for availability of features.  In "
32808 "enterprise distributions we backport features from later versions into "
32809 "earlier versions, making this an unreliable way to test for features.  Use "
32810 "C<guestfs_available> instead."
32811 msgstr ""
32812
32813 #. type: textblock
32814 #: ../src/guestfs-actions.pod:7782
32815 msgid ""
32816 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32817 "error.  I<The caller must call C<guestfs_free_version> after use>."
32818 msgstr ""
32819
32820 #. type: textblock
32821 #: ../src/guestfs-actions.pod:7786
32822 msgid "(Added in 1.0.58)"
32823 msgstr ""
32824
32825 #. type: =head2
32826 #: ../src/guestfs-actions.pod:7788
32827 msgid "guestfs_vfs_label"
32828 msgstr ""
32829
32830 #. type: verbatim
32831 #: ../src/guestfs-actions.pod:7790
32832 #, no-wrap
32833 msgid ""
32834 " char *\n"
32835 " guestfs_vfs_label (guestfs_h *g,\n"
32836 "                    const char *device);\n"
32837 "\n"
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs-actions.pod:7799
32842 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32843 msgstr ""
32844
32845 #. type: textblock
32846 #: ../src/guestfs-actions.pod:7804 ../src/guestfs-actions.pod:7841
32847 msgid "(Added in 1.3.18)"
32848 msgstr ""
32849
32850 #. type: =head2
32851 #: ../src/guestfs-actions.pod:7806
32852 msgid "guestfs_vfs_type"
32853 msgstr ""
32854
32855 #. type: verbatim
32856 #: ../src/guestfs-actions.pod:7808
32857 #, no-wrap
32858 msgid ""
32859 " char *\n"
32860 " guestfs_vfs_type (guestfs_h *g,\n"
32861 "                   const char *device);\n"
32862 "\n"
32863 msgstr ""
32864
32865 #. type: =head2
32866 #: ../src/guestfs-actions.pod:7825
32867 msgid "guestfs_vfs_uuid"
32868 msgstr ""
32869
32870 #. type: verbatim
32871 #: ../src/guestfs-actions.pod:7827
32872 #, no-wrap
32873 msgid ""
32874 " char *\n"
32875 " guestfs_vfs_uuid (guestfs_h *g,\n"
32876 "                   const char *device);\n"
32877 "\n"
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../src/guestfs-actions.pod:7836
32882 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32883 msgstr ""
32884
32885 #. type: =head2
32886 #: ../src/guestfs-actions.pod:7843
32887 msgid "guestfs_vg_activate"
32888 msgstr ""
32889
32890 #. type: verbatim
32891 #: ../src/guestfs-actions.pod:7845
32892 #, no-wrap
32893 msgid ""
32894 " int\n"
32895 " guestfs_vg_activate (guestfs_h *g,\n"
32896 "                      int activate,\n"
32897 "                      char *const *volgroups);\n"
32898 "\n"
32899 msgstr ""
32900
32901 #. type: =head2
32902 #: ../src/guestfs-actions.pod:7862
32903 msgid "guestfs_vg_activate_all"
32904 msgstr ""
32905
32906 #. type: verbatim
32907 #: ../src/guestfs-actions.pod:7864
32908 #, no-wrap
32909 msgid ""
32910 " int\n"
32911 " guestfs_vg_activate_all (guestfs_h *g,\n"
32912 "                          int activate);\n"
32913 "\n"
32914 msgstr ""
32915
32916 #. type: =head2
32917 #: ../src/guestfs-actions.pod:7877
32918 msgid "guestfs_vgcreate"
32919 msgstr ""
32920
32921 #. type: verbatim
32922 #: ../src/guestfs-actions.pod:7879
32923 #, no-wrap
32924 msgid ""
32925 " int\n"
32926 " guestfs_vgcreate (guestfs_h *g,\n"
32927 "                   const char *volgroup,\n"
32928 "                   char *const *physvols);\n"
32929 "\n"
32930 msgstr ""
32931
32932 #. type: =head2
32933 #: ../src/guestfs-actions.pod:7891
32934 msgid "guestfs_vglvuuids"
32935 msgstr ""
32936
32937 #. type: verbatim
32938 #: ../src/guestfs-actions.pod:7893
32939 #, no-wrap
32940 msgid ""
32941 " char **\n"
32942 " guestfs_vglvuuids (guestfs_h *g,\n"
32943 "                    const char *vgname);\n"
32944 "\n"
32945 msgstr ""
32946
32947 #. type: textblock
32948 #: ../src/guestfs-actions.pod:7900
32949 msgid ""
32950 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32951 "associate logical volumes and volume groups."
32952 msgstr ""
32953
32954 #. type: textblock
32955 #: ../src/guestfs-actions.pod:7903
32956 msgid "See also C<guestfs_vgpvuuids>."
32957 msgstr ""
32958
32959 #. type: =head2
32960 #: ../src/guestfs-actions.pod:7911
32961 msgid "guestfs_vgpvuuids"
32962 msgstr ""
32963
32964 #. type: verbatim
32965 #: ../src/guestfs-actions.pod:7913
32966 #, no-wrap
32967 msgid ""
32968 " char **\n"
32969 " guestfs_vgpvuuids (guestfs_h *g,\n"
32970 "                    const char *vgname);\n"
32971 "\n"
32972 msgstr ""
32973
32974 #. type: textblock
32975 #: ../src/guestfs-actions.pod:7920
32976 msgid ""
32977 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32978 "associate physical volumes and volume groups."
32979 msgstr ""
32980
32981 #. type: textblock
32982 #: ../src/guestfs-actions.pod:7923
32983 msgid "See also C<guestfs_vglvuuids>."
32984 msgstr ""
32985
32986 #. type: =head2
32987 #: ../src/guestfs-actions.pod:7931
32988 msgid "guestfs_vgremove"
32989 msgstr ""
32990
32991 #. type: verbatim
32992 #: ../src/guestfs-actions.pod:7933
32993 #, no-wrap
32994 msgid ""
32995 " int\n"
32996 " guestfs_vgremove (guestfs_h *g,\n"
32997 "                   const char *vgname);\n"
32998 "\n"
32999 msgstr ""
33000
33001 #. type: =head2
33002 #: ../src/guestfs-actions.pod:7946
33003 msgid "guestfs_vgrename"
33004 msgstr ""
33005
33006 #. type: verbatim
33007 #: ../src/guestfs-actions.pod:7948
33008 #, no-wrap
33009 msgid ""
33010 " int\n"
33011 " guestfs_vgrename (guestfs_h *g,\n"
33012 "                   const char *volgroup,\n"
33013 "                   const char *newvolgroup);\n"
33014 "\n"
33015 msgstr ""
33016
33017 #. type: =head2
33018 #: ../src/guestfs-actions.pod:7959
33019 msgid "guestfs_vgs"
33020 msgstr ""
33021
33022 #. type: verbatim
33023 #: ../src/guestfs-actions.pod:7961
33024 #, no-wrap
33025 msgid ""
33026 " char **\n"
33027 " guestfs_vgs (guestfs_h *g);\n"
33028 "\n"
33029 msgstr ""
33030
33031 #. type: textblock
33032 #: ../src/guestfs-actions.pod:7970
33033 msgid "See also C<guestfs_vgs_full>."
33034 msgstr ""
33035
33036 #. type: =head2
33037 #: ../src/guestfs-actions.pod:7978
33038 msgid "guestfs_vgs_full"
33039 msgstr ""
33040
33041 #. type: verbatim
33042 #: ../src/guestfs-actions.pod:7980
33043 #, no-wrap
33044 msgid ""
33045 " struct guestfs_lvm_vg_list *\n"
33046 " guestfs_vgs_full (guestfs_h *g);\n"
33047 "\n"
33048 msgstr ""
33049
33050 #. type: textblock
33051 #: ../src/guestfs-actions.pod:7986
33052 msgid ""
33053 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33054 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33055 msgstr ""
33056
33057 #. type: =head2
33058 #: ../src/guestfs-actions.pod:7992
33059 msgid "guestfs_vgscan"
33060 msgstr ""
33061
33062 #. type: verbatim
33063 #: ../src/guestfs-actions.pod:7994
33064 #, no-wrap
33065 msgid ""
33066 " int\n"
33067 " guestfs_vgscan (guestfs_h *g);\n"
33068 "\n"
33069 msgstr ""
33070
33071 #. type: =head2
33072 #: ../src/guestfs-actions.pod:8004
33073 msgid "guestfs_vguuid"
33074 msgstr ""
33075
33076 #. type: verbatim
33077 #: ../src/guestfs-actions.pod:8006
33078 #, no-wrap
33079 msgid ""
33080 " char *\n"
33081 " guestfs_vguuid (guestfs_h *g,\n"
33082 "                 const char *vgname);\n"
33083 "\n"
33084 msgstr ""
33085
33086 #. type: =head2
33087 #: ../src/guestfs-actions.pod:8017
33088 msgid "guestfs_wait_ready"
33089 msgstr ""
33090
33091 #. type: verbatim
33092 #: ../src/guestfs-actions.pod:8019
33093 #, no-wrap
33094 msgid ""
33095 " int\n"
33096 " guestfs_wait_ready (guestfs_h *g);\n"
33097 "\n"
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs-actions.pod:8022
33102 msgid ""
33103 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33104 "instead."
33105 msgstr ""
33106
33107 #. type: textblock
33108 #: ../src/guestfs-actions.pod:8029
33109 msgid "This function is a no op."
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs-actions.pod:8031
33114 msgid ""
33115 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33116 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33117 "is no longer necessary because C<guestfs_launch> now does the waiting."
33118 msgstr ""
33119
33120 #. type: textblock
33121 #: ../src/guestfs-actions.pod:8036
33122 msgid ""
33123 "If you see any calls to this function in code then you can just remove them, "
33124 "unless you want to retain compatibility with older versions of the API."
33125 msgstr ""
33126
33127 #. type: =head2
33128 #: ../src/guestfs-actions.pod:8044
33129 msgid "guestfs_wc_c"
33130 msgstr ""
33131
33132 #. type: verbatim
33133 #: ../src/guestfs-actions.pod:8046
33134 #, no-wrap
33135 msgid ""
33136 " int\n"
33137 " guestfs_wc_c (guestfs_h *g,\n"
33138 "               const char *path);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs-actions.pod:8057
33144 msgid "guestfs_wc_l"
33145 msgstr ""
33146
33147 #. type: verbatim
33148 #: ../src/guestfs-actions.pod:8059
33149 #, no-wrap
33150 msgid ""
33151 " int\n"
33152 " guestfs_wc_l (guestfs_h *g,\n"
33153 "               const char *path);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: =head2
33158 #: ../src/guestfs-actions.pod:8070
33159 msgid "guestfs_wc_w"
33160 msgstr ""
33161
33162 #. type: verbatim
33163 #: ../src/guestfs-actions.pod:8072
33164 #, no-wrap
33165 msgid ""
33166 " int\n"
33167 " guestfs_wc_w (guestfs_h *g,\n"
33168 "               const char *path);\n"
33169 "\n"
33170 msgstr ""
33171
33172 #. type: =head2
33173 #: ../src/guestfs-actions.pod:8083
33174 msgid "guestfs_write"
33175 msgstr ""
33176
33177 #. type: verbatim
33178 #: ../src/guestfs-actions.pod:8085
33179 #, no-wrap
33180 msgid ""
33181 " int\n"
33182 " guestfs_write (guestfs_h *g,\n"
33183 "                const char *path,\n"
33184 "                const char *content,\n"
33185 "                size_t content_size);\n"
33186 "\n"
33187 msgstr ""
33188
33189 #. type: textblock
33190 #: ../src/guestfs-actions.pod:8094
33191 msgid "See also C<guestfs_write_append>."
33192 msgstr ""
33193
33194 #. type: =head2
33195 #: ../src/guestfs-actions.pod:8103
33196 msgid "guestfs_write_append"
33197 msgstr ""
33198
33199 #. type: verbatim
33200 #: ../src/guestfs-actions.pod:8105
33201 #, no-wrap
33202 msgid ""
33203 " int\n"
33204 " guestfs_write_append (guestfs_h *g,\n"
33205 "                       const char *path,\n"
33206 "                       const char *content,\n"
33207 "                       size_t content_size);\n"
33208 "\n"
33209 msgstr ""
33210
33211 #. type: textblock
33212 #: ../src/guestfs-actions.pod:8114
33213 msgid "See also C<guestfs_write>."
33214 msgstr ""
33215
33216 #. type: =head2
33217 #: ../src/guestfs-actions.pod:8123
33218 msgid "guestfs_write_file"
33219 msgstr ""
33220
33221 #. type: verbatim
33222 #: ../src/guestfs-actions.pod:8125
33223 #, no-wrap
33224 msgid ""
33225 " int\n"
33226 " guestfs_write_file (guestfs_h *g,\n"
33227 "                     const char *path,\n"
33228 "                     const char *content,\n"
33229 "                     int size);\n"
33230 "\n"
33231 msgstr ""
33232
33233 #. type: textblock
33234 #: ../src/guestfs-actions.pod:8131
33235 msgid ""
33236 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33237 "instead."
33238 msgstr ""
33239
33240 #. type: =head2
33241 #: ../src/guestfs-actions.pod:8156
33242 msgid "guestfs_zegrep"
33243 msgstr ""
33244
33245 #. type: verbatim
33246 #: ../src/guestfs-actions.pod:8158
33247 #, no-wrap
33248 msgid ""
33249 " char **\n"
33250 " guestfs_zegrep (guestfs_h *g,\n"
33251 "                 const char *regex,\n"
33252 "                 const char *path);\n"
33253 "\n"
33254 msgstr ""
33255
33256 #. type: =head2
33257 #: ../src/guestfs-actions.pod:8175
33258 msgid "guestfs_zegrepi"
33259 msgstr ""
33260
33261 #. type: verbatim
33262 #: ../src/guestfs-actions.pod:8177
33263 #, no-wrap
33264 msgid ""
33265 " char **\n"
33266 " guestfs_zegrepi (guestfs_h *g,\n"
33267 "                  const char *regex,\n"
33268 "                  const char *path);\n"
33269 "\n"
33270 msgstr ""
33271
33272 #. type: =head2
33273 #: ../src/guestfs-actions.pod:8194
33274 msgid "guestfs_zero"
33275 msgstr ""
33276
33277 #. type: verbatim
33278 #: ../src/guestfs-actions.pod:8196
33279 #, no-wrap
33280 msgid ""
33281 " int\n"
33282 " guestfs_zero (guestfs_h *g,\n"
33283 "               const char *device);\n"
33284 "\n"
33285 msgstr ""
33286
33287 #. type: textblock
33288 #: ../src/guestfs-actions.pod:8210
33289 msgid ""
33290 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33291 "C<guestfs_is_zero_device>"
33292 msgstr ""
33293
33294 #. type: =head2
33295 #: ../src/guestfs-actions.pod:8222
33296 msgid "guestfs_zero_device"
33297 msgstr ""
33298
33299 #. type: verbatim
33300 #: ../src/guestfs-actions.pod:8224
33301 #, no-wrap
33302 msgid ""
33303 " int\n"
33304 " guestfs_zero_device (guestfs_h *g,\n"
33305 "                      const char *device);\n"
33306 "\n"
33307 msgstr ""
33308
33309 #. type: textblock
33310 #: ../src/guestfs-actions.pod:8228
33311 msgid ""
33312 "This command writes zeroes over the entire C<device>.  Compare with "
33313 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33314 msgstr ""
33315
33316 #. type: textblock
33317 #: ../src/guestfs-actions.pod:8246
33318 msgid "(Added in 1.3.1)"
33319 msgstr ""
33320
33321 #. type: =head2
33322 #: ../src/guestfs-actions.pod:8248
33323 msgid "guestfs_zerofree"
33324 msgstr ""
33325
33326 #. type: verbatim
33327 #: ../src/guestfs-actions.pod:8250
33328 #, no-wrap
33329 msgid ""
33330 " int\n"
33331 " guestfs_zerofree (guestfs_h *g,\n"
33332 "                   const char *device);\n"
33333 "\n"
33334 msgstr ""
33335
33336 #. type: =head2
33337 #: ../src/guestfs-actions.pod:8269
33338 msgid "guestfs_zfgrep"
33339 msgstr ""
33340
33341 #. type: verbatim
33342 #: ../src/guestfs-actions.pod:8271
33343 #, no-wrap
33344 msgid ""
33345 " char **\n"
33346 " guestfs_zfgrep (guestfs_h *g,\n"
33347 "                 const char *pattern,\n"
33348 "                 const char *path);\n"
33349 "\n"
33350 msgstr ""
33351
33352 #. type: =head2
33353 #: ../src/guestfs-actions.pod:8288
33354 msgid "guestfs_zfgrepi"
33355 msgstr ""
33356
33357 #. type: verbatim
33358 #: ../src/guestfs-actions.pod:8290
33359 #, no-wrap
33360 msgid ""
33361 " char **\n"
33362 " guestfs_zfgrepi (guestfs_h *g,\n"
33363 "                  const char *pattern,\n"
33364 "                  const char *path);\n"
33365 "\n"
33366 msgstr ""
33367
33368 #. type: =head2
33369 #: ../src/guestfs-actions.pod:8307
33370 msgid "guestfs_zfile"
33371 msgstr ""
33372
33373 #. type: verbatim
33374 #: ../src/guestfs-actions.pod:8309
33375 #, no-wrap
33376 msgid ""
33377 " char *\n"
33378 " guestfs_zfile (guestfs_h *g,\n"
33379 "                const char *meth,\n"
33380 "                const char *path);\n"
33381 "\n"
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs-actions.pod:8314
33386 msgid ""
33387 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33388 "instead."
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../src/guestfs-actions.pod:8326
33393 msgid ""
33394 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33395 "files."
33396 msgstr ""
33397
33398 #. type: =head2
33399 #: ../src/guestfs-actions.pod:8334
33400 msgid "guestfs_zgrep"
33401 msgstr ""
33402
33403 #. type: verbatim
33404 #: ../src/guestfs-actions.pod:8336
33405 #, no-wrap
33406 msgid ""
33407 " char **\n"
33408 " guestfs_zgrep (guestfs_h *g,\n"
33409 "                const char *regex,\n"
33410 "                const char *path);\n"
33411 "\n"
33412 msgstr ""
33413
33414 #. type: =head2
33415 #: ../src/guestfs-actions.pod:8353
33416 msgid "guestfs_zgrepi"
33417 msgstr ""
33418
33419 #. type: verbatim
33420 #: ../src/guestfs-actions.pod:8355
33421 #, no-wrap
33422 msgid ""
33423 " char **\n"
33424 " guestfs_zgrepi (guestfs_h *g,\n"
33425 "                 const char *regex,\n"
33426 "                 const char *path);\n"
33427 "\n"
33428 msgstr ""
33429
33430 #. type: =item
33431 #: ../src/guestfs-availability.pod:3
33432 msgid "B<augeas>"
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs-availability.pod:5
33437 msgid ""
33438 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33439 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33440 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33441 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33442 "L</guestfs_aug_save> L</guestfs_aug_set>"
33443 msgstr ""
33444
33445 #. type: =item
33446 #: ../src/guestfs-availability.pod:21
33447 msgid "B<btrfs>"
33448 msgstr ""
33449
33450 #. type: textblock
33451 #: ../src/guestfs-availability.pod:23
33452 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33453 msgstr ""
33454
33455 #. type: =item
33456 #: ../src/guestfs-availability.pod:26
33457 msgid "B<grub>"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs-availability.pod:28
33462 msgid "The following functions: L</guestfs_grub_install>"
33463 msgstr ""
33464
33465 #. type: =item
33466 #: ../src/guestfs-availability.pod:31
33467 msgid "B<inotify>"
33468 msgstr ""
33469
33470 #. type: textblock
33471 #: ../src/guestfs-availability.pod:33
33472 msgid ""
33473 "The following functions: L</guestfs_inotify_add_watch> L</"
33474 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33475 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33476 msgstr ""
33477
33478 #. type: =item
33479 #: ../src/guestfs-availability.pod:41
33480 msgid "B<linuxfsuuid>"
33481 msgstr ""
33482
33483 #. type: textblock
33484 #: ../src/guestfs-availability.pod:43
33485 msgid ""
33486 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33487 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33488 msgstr ""
33489
33490 #. type: =item
33491 #: ../src/guestfs-availability.pod:50
33492 msgid "B<linuxmodules>"
33493 msgstr ""
33494
33495 #. type: textblock
33496 #: ../src/guestfs-availability.pod:52
33497 msgid "The following functions: L</guestfs_modprobe>"
33498 msgstr ""
33499
33500 #. type: =item
33501 #: ../src/guestfs-availability.pod:55
33502 msgid "B<linuxxattrs>"
33503 msgstr ""
33504
33505 #. type: textblock
33506 #: ../src/guestfs-availability.pod:57
33507 msgid ""
33508 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33509 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33510 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33511 "guestfs_setxattr>"
33512 msgstr ""
33513
33514 #. type: =item
33515 #: ../src/guestfs-availability.pod:68
33516 msgid "B<luks>"
33517 msgstr ""
33518
33519 #. type: textblock
33520 #: ../src/guestfs-availability.pod:70
33521 msgid ""
33522 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33523 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33524 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33525 msgstr ""
33526
33527 #. type: =item
33528 #: ../src/guestfs-availability.pod:79
33529 msgid "B<lvm2>"
33530 msgstr ""
33531
33532 #. type: textblock
33533 #: ../src/guestfs-availability.pod:81
33534 msgid ""
33535 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33536 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33537 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33538 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33539 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33540 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33541 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33542 msgstr ""
33543
33544 #. type: =item
33545 #: ../src/guestfs-availability.pod:104
33546 msgid "B<mknod>"
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs-availability.pod:106
33551 msgid ""
33552 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33553 "guestfs_mknod_b> L</guestfs_mknod_c>"
33554 msgstr ""
33555
33556 #. type: =item
33557 #: ../src/guestfs-availability.pod:112
33558 msgid "B<ntfs3g>"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs-availability.pod:114
33563 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33564 msgstr ""
33565
33566 #. type: =item
33567 #: ../src/guestfs-availability.pod:117
33568 msgid "B<ntfsprogs>"
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs-availability.pod:119
33573 msgid ""
33574 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33575 "L</guestfs_ntfsresize_size>"
33576 msgstr ""
33577
33578 #. type: =item
33579 #: ../src/guestfs-availability.pod:124
33580 msgid "B<realpath>"
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs-availability.pod:126
33585 msgid "The following functions: L</guestfs_realpath>"
33586 msgstr ""
33587
33588 #. type: =item
33589 #: ../src/guestfs-availability.pod:129
33590 msgid "B<scrub>"
33591 msgstr ""
33592
33593 #. type: textblock
33594 #: ../src/guestfs-availability.pod:131
33595 msgid ""
33596 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33597 "guestfs_scrub_freespace>"
33598 msgstr ""
33599
33600 #. type: =item
33601 #: ../src/guestfs-availability.pod:136
33602 msgid "B<selinux>"
33603 msgstr ""
33604
33605 #. type: textblock
33606 #: ../src/guestfs-availability.pod:138
33607 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33608 msgstr ""
33609
33610 #. type: =item
33611 #: ../src/guestfs-availability.pod:142
33612 msgid "B<xz>"
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs-availability.pod:144
33617 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33618 msgstr ""
33619
33620 #. type: =item
33621 #: ../src/guestfs-availability.pod:148
33622 msgid "B<zerofree>"
33623 msgstr ""
33624
33625 #. type: textblock
33626 #: ../src/guestfs-availability.pod:150
33627 msgid "The following functions: L</guestfs_zerofree>"
33628 msgstr ""
33629
33630 #. type: =head2
33631 #: ../src/guestfs-structs.pod:1
33632 msgid "guestfs_int_bool"
33633 msgstr ""
33634
33635 #. type: verbatim
33636 #: ../src/guestfs-structs.pod:3
33637 #, no-wrap
33638 msgid ""
33639 " struct guestfs_int_bool {\n"
33640 "   int32_t i;\n"
33641 "   int32_t b;\n"
33642 " };\n"
33643 " \n"
33644 msgstr ""
33645
33646 #. type: verbatim
33647 #: ../src/guestfs-structs.pod:8
33648 #, no-wrap
33649 msgid ""
33650 " struct guestfs_int_bool_list {\n"
33651 "   uint32_t len; /* Number of elements in list. */\n"
33652 "   struct guestfs_int_bool *val; /* Elements. */\n"
33653 " };\n"
33654 " \n"
33655 msgstr ""
33656
33657 #. type: verbatim
33658 #: ../src/guestfs-structs.pod:13
33659 #, no-wrap
33660 msgid ""
33661 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33662 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33663 "\n"
33664 msgstr ""
33665
33666 #. type: =head2
33667 #: ../src/guestfs-structs.pod:16
33668 msgid "guestfs_lvm_pv"
33669 msgstr ""
33670
33671 #. type: verbatim
33672 #: ../src/guestfs-structs.pod:18
33673 #, no-wrap
33674 msgid ""
33675 " struct guestfs_lvm_pv {\n"
33676 "   char *pv_name;\n"
33677 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33678 "   char pv_uuid[32];\n"
33679 "   char *pv_fmt;\n"
33680 "   uint64_t pv_size;\n"
33681 "   uint64_t dev_size;\n"
33682 "   uint64_t pv_free;\n"
33683 "   uint64_t pv_used;\n"
33684 "   char *pv_attr;\n"
33685 "   int64_t pv_pe_count;\n"
33686 "   int64_t pv_pe_alloc_count;\n"
33687 "   char *pv_tags;\n"
33688 "   uint64_t pe_start;\n"
33689 "   int64_t pv_mda_count;\n"
33690 "   uint64_t pv_mda_free;\n"
33691 " };\n"
33692 " \n"
33693 msgstr ""
33694
33695 #. type: verbatim
33696 #: ../src/guestfs-structs.pod:36
33697 #, no-wrap
33698 msgid ""
33699 " struct guestfs_lvm_pv_list {\n"
33700 "   uint32_t len; /* Number of elements in list. */\n"
33701 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33702 " };\n"
33703 " \n"
33704 msgstr ""
33705
33706 #. type: verbatim
33707 #: ../src/guestfs-structs.pod:41
33708 #, no-wrap
33709 msgid ""
33710 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33711 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33712 "\n"
33713 msgstr ""
33714
33715 #. type: =head2
33716 #: ../src/guestfs-structs.pod:44
33717 msgid "guestfs_lvm_vg"
33718 msgstr ""
33719
33720 #. type: verbatim
33721 #: ../src/guestfs-structs.pod:46
33722 #, no-wrap
33723 msgid ""
33724 " struct guestfs_lvm_vg {\n"
33725 "   char *vg_name;\n"
33726 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33727 "   char vg_uuid[32];\n"
33728 "   char *vg_fmt;\n"
33729 "   char *vg_attr;\n"
33730 "   uint64_t vg_size;\n"
33731 "   uint64_t vg_free;\n"
33732 "   char *vg_sysid;\n"
33733 "   uint64_t vg_extent_size;\n"
33734 "   int64_t vg_extent_count;\n"
33735 "   int64_t vg_free_count;\n"
33736 "   int64_t max_lv;\n"
33737 "   int64_t max_pv;\n"
33738 "   int64_t pv_count;\n"
33739 "   int64_t lv_count;\n"
33740 "   int64_t snap_count;\n"
33741 "   int64_t vg_seqno;\n"
33742 "   char *vg_tags;\n"
33743 "   int64_t vg_mda_count;\n"
33744 "   uint64_t vg_mda_free;\n"
33745 " };\n"
33746 " \n"
33747 msgstr ""
33748
33749 #. type: verbatim
33750 #: ../src/guestfs-structs.pod:69
33751 #, no-wrap
33752 msgid ""
33753 " struct guestfs_lvm_vg_list {\n"
33754 "   uint32_t len; /* Number of elements in list. */\n"
33755 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33756 " };\n"
33757 " \n"
33758 msgstr ""
33759
33760 #. type: verbatim
33761 #: ../src/guestfs-structs.pod:74
33762 #, no-wrap
33763 msgid ""
33764 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33765 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33766 "\n"
33767 msgstr ""
33768
33769 #. type: =head2
33770 #: ../src/guestfs-structs.pod:77
33771 msgid "guestfs_lvm_lv"
33772 msgstr ""
33773
33774 #. type: verbatim
33775 #: ../src/guestfs-structs.pod:79
33776 #, no-wrap
33777 msgid ""
33778 " struct guestfs_lvm_lv {\n"
33779 "   char *lv_name;\n"
33780 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33781 "   char lv_uuid[32];\n"
33782 "   char *lv_attr;\n"
33783 "   int64_t lv_major;\n"
33784 "   int64_t lv_minor;\n"
33785 "   int64_t lv_kernel_major;\n"
33786 "   int64_t lv_kernel_minor;\n"
33787 "   uint64_t lv_size;\n"
33788 "   int64_t seg_count;\n"
33789 "   char *origin;\n"
33790 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33791 "   float snap_percent;\n"
33792 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33793 "   float copy_percent;\n"
33794 "   char *move_pv;\n"
33795 "   char *lv_tags;\n"
33796 "   char *mirror_log;\n"
33797 "   char *modules;\n"
33798 " };\n"
33799 " \n"
33800 msgstr ""
33801
33802 #. type: verbatim
33803 #: ../src/guestfs-structs.pod:101
33804 #, no-wrap
33805 msgid ""
33806 " struct guestfs_lvm_lv_list {\n"
33807 "   uint32_t len; /* Number of elements in list. */\n"
33808 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33809 " };\n"
33810 " \n"
33811 msgstr ""
33812
33813 #. type: verbatim
33814 #: ../src/guestfs-structs.pod:106
33815 #, no-wrap
33816 msgid ""
33817 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33818 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33819 "\n"
33820 msgstr ""
33821
33822 #. type: verbatim
33823 #: ../src/guestfs-structs.pod:111
33824 #, no-wrap
33825 msgid ""
33826 " struct guestfs_stat {\n"
33827 "   int64_t dev;\n"
33828 "   int64_t ino;\n"
33829 "   int64_t mode;\n"
33830 "   int64_t nlink;\n"
33831 "   int64_t uid;\n"
33832 "   int64_t gid;\n"
33833 "   int64_t rdev;\n"
33834 "   int64_t size;\n"
33835 "   int64_t blksize;\n"
33836 "   int64_t blocks;\n"
33837 "   int64_t atime;\n"
33838 "   int64_t mtime;\n"
33839 "   int64_t ctime;\n"
33840 " };\n"
33841 " \n"
33842 msgstr ""
33843
33844 #. type: verbatim
33845 #: ../src/guestfs-structs.pod:127
33846 #, no-wrap
33847 msgid ""
33848 " struct guestfs_stat_list {\n"
33849 "   uint32_t len; /* Number of elements in list. */\n"
33850 "   struct guestfs_stat *val; /* Elements. */\n"
33851 " };\n"
33852 " \n"
33853 msgstr ""
33854
33855 #. type: verbatim
33856 #: ../src/guestfs-structs.pod:132
33857 #, no-wrap
33858 msgid ""
33859 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33860 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33861 "\n"
33862 msgstr ""
33863
33864 #. type: verbatim
33865 #: ../src/guestfs-structs.pod:137
33866 #, no-wrap
33867 msgid ""
33868 " struct guestfs_statvfs {\n"
33869 "   int64_t bsize;\n"
33870 "   int64_t frsize;\n"
33871 "   int64_t blocks;\n"
33872 "   int64_t bfree;\n"
33873 "   int64_t bavail;\n"
33874 "   int64_t files;\n"
33875 "   int64_t ffree;\n"
33876 "   int64_t favail;\n"
33877 "   int64_t fsid;\n"
33878 "   int64_t flag;\n"
33879 "   int64_t namemax;\n"
33880 " };\n"
33881 " \n"
33882 msgstr ""
33883
33884 #. type: verbatim
33885 #: ../src/guestfs-structs.pod:151
33886 #, no-wrap
33887 msgid ""
33888 " struct guestfs_statvfs_list {\n"
33889 "   uint32_t len; /* Number of elements in list. */\n"
33890 "   struct guestfs_statvfs *val; /* Elements. */\n"
33891 " };\n"
33892 " \n"
33893 msgstr ""
33894
33895 #. type: verbatim
33896 #: ../src/guestfs-structs.pod:156
33897 #, no-wrap
33898 msgid ""
33899 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33900 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33901 "\n"
33902 msgstr ""
33903
33904 #. type: =head2
33905 #: ../src/guestfs-structs.pod:159
33906 msgid "guestfs_dirent"
33907 msgstr ""
33908
33909 #. type: verbatim
33910 #: ../src/guestfs-structs.pod:161
33911 #, no-wrap
33912 msgid ""
33913 " struct guestfs_dirent {\n"
33914 "   int64_t ino;\n"
33915 "   char ftyp;\n"
33916 "   char *name;\n"
33917 " };\n"
33918 " \n"
33919 msgstr ""
33920
33921 #. type: verbatim
33922 #: ../src/guestfs-structs.pod:167
33923 #, no-wrap
33924 msgid ""
33925 " struct guestfs_dirent_list {\n"
33926 "   uint32_t len; /* Number of elements in list. */\n"
33927 "   struct guestfs_dirent *val; /* Elements. */\n"
33928 " };\n"
33929 " \n"
33930 msgstr ""
33931
33932 #. type: verbatim
33933 #: ../src/guestfs-structs.pod:172
33934 #, no-wrap
33935 msgid ""
33936 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33937 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33938 "\n"
33939 msgstr ""
33940
33941 #. type: verbatim
33942 #: ../src/guestfs-structs.pod:177
33943 #, no-wrap
33944 msgid ""
33945 " struct guestfs_version {\n"
33946 "   int64_t major;\n"
33947 "   int64_t minor;\n"
33948 "   int64_t release;\n"
33949 "   char *extra;\n"
33950 " };\n"
33951 " \n"
33952 msgstr ""
33953
33954 #. type: verbatim
33955 #: ../src/guestfs-structs.pod:184
33956 #, no-wrap
33957 msgid ""
33958 " struct guestfs_version_list {\n"
33959 "   uint32_t len; /* Number of elements in list. */\n"
33960 "   struct guestfs_version *val; /* Elements. */\n"
33961 " };\n"
33962 " \n"
33963 msgstr ""
33964
33965 #. type: verbatim
33966 #: ../src/guestfs-structs.pod:189
33967 #, no-wrap
33968 msgid ""
33969 " void guestfs_free_version (struct guestfs_free_version *);\n"
33970 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33971 "\n"
33972 msgstr ""
33973
33974 #. type: =head2
33975 #: ../src/guestfs-structs.pod:192
33976 msgid "guestfs_xattr"
33977 msgstr ""
33978
33979 #. type: verbatim
33980 #: ../src/guestfs-structs.pod:194
33981 #, no-wrap
33982 msgid ""
33983 " struct guestfs_xattr {\n"
33984 "   char *attrname;\n"
33985 "   /* The next two fields describe a byte array. */\n"
33986 "   uint32_t attrval_len;\n"
33987 "   char *attrval;\n"
33988 " };\n"
33989 " \n"
33990 msgstr ""
33991
33992 #. type: verbatim
33993 #: ../src/guestfs-structs.pod:201
33994 #, no-wrap
33995 msgid ""
33996 " struct guestfs_xattr_list {\n"
33997 "   uint32_t len; /* Number of elements in list. */\n"
33998 "   struct guestfs_xattr *val; /* Elements. */\n"
33999 " };\n"
34000 " \n"
34001 msgstr ""
34002
34003 #. type: verbatim
34004 #: ../src/guestfs-structs.pod:206
34005 #, no-wrap
34006 msgid ""
34007 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34008 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34009 "\n"
34010 msgstr ""
34011
34012 #. type: =head2
34013 #: ../src/guestfs-structs.pod:209
34014 msgid "guestfs_inotify_event"
34015 msgstr ""
34016
34017 #. type: verbatim
34018 #: ../src/guestfs-structs.pod:211
34019 #, no-wrap
34020 msgid ""
34021 " struct guestfs_inotify_event {\n"
34022 "   int64_t in_wd;\n"
34023 "   uint32_t in_mask;\n"
34024 "   uint32_t in_cookie;\n"
34025 "   char *in_name;\n"
34026 " };\n"
34027 " \n"
34028 msgstr ""
34029
34030 #. type: verbatim
34031 #: ../src/guestfs-structs.pod:218
34032 #, no-wrap
34033 msgid ""
34034 " struct guestfs_inotify_event_list {\n"
34035 "   uint32_t len; /* Number of elements in list. */\n"
34036 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34037 " };\n"
34038 " \n"
34039 msgstr ""
34040
34041 #. type: verbatim
34042 #: ../src/guestfs-structs.pod:223
34043 #, no-wrap
34044 msgid ""
34045 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34046 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34047 "\n"
34048 msgstr ""
34049
34050 #. type: =head2
34051 #: ../src/guestfs-structs.pod:226
34052 msgid "guestfs_partition"
34053 msgstr ""
34054
34055 #. type: verbatim
34056 #: ../src/guestfs-structs.pod:228
34057 #, no-wrap
34058 msgid ""
34059 " struct guestfs_partition {\n"
34060 "   int32_t part_num;\n"
34061 "   uint64_t part_start;\n"
34062 "   uint64_t part_end;\n"
34063 "   uint64_t part_size;\n"
34064 " };\n"
34065 " \n"
34066 msgstr ""
34067
34068 #. type: verbatim
34069 #: ../src/guestfs-structs.pod:235
34070 #, no-wrap
34071 msgid ""
34072 " struct guestfs_partition_list {\n"
34073 "   uint32_t len; /* Number of elements in list. */\n"
34074 "   struct guestfs_partition *val; /* Elements. */\n"
34075 " };\n"
34076 " \n"
34077 msgstr ""
34078
34079 #. type: verbatim
34080 #: ../src/guestfs-structs.pod:240
34081 #, no-wrap
34082 msgid ""
34083 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34084 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34085 "\n"
34086 msgstr ""
34087
34088 #. type: =head2
34089 #: ../src/guestfs-structs.pod:243
34090 msgid "guestfs_application"
34091 msgstr ""
34092
34093 #. type: verbatim
34094 #: ../src/guestfs-structs.pod:245
34095 #, no-wrap
34096 msgid ""
34097 " struct guestfs_application {\n"
34098 "   char *app_name;\n"
34099 "   char *app_display_name;\n"
34100 "   int32_t app_epoch;\n"
34101 "   char *app_version;\n"
34102 "   char *app_release;\n"
34103 "   char *app_install_path;\n"
34104 "   char *app_trans_path;\n"
34105 "   char *app_publisher;\n"
34106 "   char *app_url;\n"
34107 "   char *app_source_package;\n"
34108 "   char *app_summary;\n"
34109 "   char *app_description;\n"
34110 " };\n"
34111 " \n"
34112 msgstr ""
34113
34114 #. type: verbatim
34115 #: ../src/guestfs-structs.pod:260
34116 #, no-wrap
34117 msgid ""
34118 " struct guestfs_application_list {\n"
34119 "   uint32_t len; /* Number of elements in list. */\n"
34120 "   struct guestfs_application *val; /* Elements. */\n"
34121 " };\n"
34122 " \n"
34123 msgstr ""
34124
34125 #. type: verbatim
34126 #: ../src/guestfs-structs.pod:265
34127 #, no-wrap
34128 msgid ""
34129 " void guestfs_free_application (struct guestfs_free_application *);\n"
34130 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34131 "\n"
34132 msgstr ""
34133
34134 #. type: textblock
34135 #: ../src/guestfs.pod:5
34136 msgid "guestfs - Library for accessing and modifying virtual machine images"
34137 msgstr ""
34138
34139 #. type: verbatim
34140 #: ../src/guestfs.pod:11
34141 #, no-wrap
34142 msgid ""
34143 " guestfs_h *g = guestfs_create ();\n"
34144 " guestfs_add_drive (g, \"guest.img\");\n"
34145 " guestfs_launch (g);\n"
34146 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34147 " guestfs_touch (g, \"/hello\");\n"
34148 " guestfs_umount (g, \"/\");\n"
34149 " guestfs_close (g);\n"
34150 "\n"
34151 msgstr ""
34152 " guestfs_h *g = guestfs_create ();\n"
34153 " guestfs_add_drive (g, \"guest.img\");\n"
34154 " guestfs_launch (g);\n"
34155 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34156 " guestfs_touch (g, \"/hello\");\n"
34157 " guestfs_umount (g, \"/\");\n"
34158 " guestfs_close (g);\n"
34159 "\n"
34160
34161 #. type: textblock
34162 #: ../src/guestfs.pod:25
34163 msgid ""
34164 "Libguestfs is a library for accessing and modifying guest disk images.  "
34165 "Amongst the things this is good for: making batch configuration changes to "
34166 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34167 "between virtualization systems (see also: virt-p2v), performing partial "
34168 "backups, performing partial guest clones, cloning guests and changing "
34169 "registry/UUID/hostname info, and much else besides."
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs.pod:33
34174 msgid ""
34175 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34176 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34177 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34178 "qcow2, vmdk."
34179 msgstr ""
34180
34181 #. type: textblock
34182 #: ../src/guestfs.pod:38
34183 msgid ""
34184 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34185 "what filesystem is in each LV, etc.).  It can also run commands in the "
34186 "context of the guest.  Also you can access filesystems over FUSE."
34187 msgstr ""
34188
34189 #. type: textblock
34190 #: ../src/guestfs.pod:43
34191 msgid ""
34192 "Libguestfs is a library that can be linked with C and C++ management "
34193 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34194 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34195 "command line."
34196 msgstr ""
34197
34198 #. type: textblock
34199 #: ../src/guestfs.pod:48
34200 msgid ""
34201 "You don't need to be root to use libguestfs, although obviously you do need "
34202 "enough permissions to access the disk images."
34203 msgstr ""
34204
34205 #. type: textblock
34206 #: ../src/guestfs.pod:51
34207 msgid ""
34208 "Libguestfs is a large API because it can do many things.  For a gentle "
34209 "introduction, please read the L</API OVERVIEW> section next."
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:54
34214 msgid ""
34215 "There are also some example programs in the L<guestfs-examples(3)> manual "
34216 "page."
34217 msgstr ""
34218
34219 #. type: =head1
34220 #: ../src/guestfs.pod:57
34221 msgid "API OVERVIEW"
34222 msgstr ""
34223
34224 #. type: textblock
34225 #: ../src/guestfs.pod:59
34226 msgid ""
34227 "This section provides a gentler overview of the libguestfs API.  We also try "
34228 "to group API calls together, where that may not be obvious from reading "
34229 "about the individual calls in the main section of this manual."
34230 msgstr ""
34231
34232 #. type: =head2
34233 #: ../src/guestfs.pod:64
34234 msgid "HANDLES"
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs.pod:66
34239 msgid ""
34240 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34241 "must add at least one disk image to the handle, followed by launching the "
34242 "handle, then performing whatever operations you want, and finally closing "
34243 "the handle.  By convention we use the single letter C<g> for the name of the "
34244 "handle variable, although of course you can use any name you want."
34245 msgstr ""
34246
34247 #. type: textblock
34248 #: ../src/guestfs.pod:73
34249 msgid "The general structure of all libguestfs-using programs looks like this:"
34250 msgstr ""
34251
34252 #. type: verbatim
34253 #: ../src/guestfs.pod:76
34254 #, no-wrap
34255 msgid ""
34256 " guestfs_h *g = guestfs_create ();\n"
34257 " \n"
34258 msgstr ""
34259
34260 #. type: verbatim
34261 #: ../src/guestfs.pod:78
34262 #, no-wrap
34263 msgid ""
34264 " /* Call guestfs_add_drive additional times if there are\n"
34265 "  * multiple disk images.\n"
34266 "  */\n"
34267 " guestfs_add_drive (g, \"guest.img\");\n"
34268 " \n"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs.pod:83
34273 #, no-wrap
34274 msgid ""
34275 " /* Most manipulation calls won't work until you've launched\n"
34276 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34277 "  * and _before_ other commands.\n"
34278 "  */\n"
34279 " guestfs_launch (g);\n"
34280 " \n"
34281 msgstr ""
34282
34283 #. type: verbatim
34284 #: ../src/guestfs.pod:89
34285 #, no-wrap
34286 msgid ""
34287 " /* Now you can examine what partitions, LVs etc are available.\n"
34288 "  */\n"
34289 " char **partitions = guestfs_list_partitions (g);\n"
34290 " char **logvols = guestfs_lvs (g);\n"
34291 " \n"
34292 msgstr ""
34293
34294 #. type: verbatim
34295 #: ../src/guestfs.pod:94
34296 #, no-wrap
34297 msgid ""
34298 " /* To access a filesystem in the image, you must mount it.\n"
34299 "  */\n"
34300 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34301 " \n"
34302 msgstr ""
34303
34304 #. type: verbatim
34305 #: ../src/guestfs.pod:98
34306 #, no-wrap
34307 msgid ""
34308 " /* Now you can perform filesystem actions on the guest\n"
34309 "  * disk image.\n"
34310 "  */\n"
34311 " guestfs_touch (g, \"/hello\");\n"
34312 " \n"
34313 msgstr ""
34314
34315 #. type: verbatim
34316 #: ../src/guestfs.pod:103
34317 #, no-wrap
34318 msgid ""
34319 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34320 "  * it is done automatically when you close the handle.  See\n"
34321 "  * discussion of autosync in this page.\n"
34322 "  */\n"
34323 " guestfs_sync (g);\n"
34324 " \n"
34325 msgstr ""
34326
34327 #. type: verbatim
34328 #: ../src/guestfs.pod:109
34329 #, no-wrap
34330 msgid ""
34331 " /* Close the handle 'g'. */\n"
34332 " guestfs_close (g);\n"
34333 "\n"
34334 msgstr ""
34335
34336 #. type: textblock
34337 #: ../src/guestfs.pod:112
34338 msgid ""
34339 "The code above doesn't include any error checking.  In real code you should "
34340 "check return values carefully for errors.  In general all functions that "
34341 "return integers return C<-1> on error, and all functions that return "
34342 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34343 "how to handle errors, and consult the documentation for each function call "
34344 "below to see precisely how they return error indications.  See L<guestfs-"
34345 "examples(3)> for fully worked examples."
34346 msgstr ""
34347
34348 #. type: =head2
34349 #: ../src/guestfs.pod:121
34350 msgid "DISK IMAGES"
34351 msgstr ""
34352
34353 #. type: textblock
34354 #: ../src/guestfs.pod:123
34355 msgid ""
34356 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34357 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34358 "actual block device, or simply an empty file of zeroes that you have created "
34359 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34360 "of these."
34361 msgstr ""
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:129
34365 msgid ""
34366 "The call you should use in modern code for adding drives is L</"
34367 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34368 "specifying that the format is raw, do:"
34369 msgstr ""
34370
34371 #. type: verbatim
34372 #: ../src/guestfs.pod:133
34373 #, no-wrap
34374 msgid ""
34375 " guestfs_add_drive_opts (g, filename,\n"
34376 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34377 "                         -1);\n"
34378 "\n"
34379 msgstr ""
34380
34381 #. type: textblock
34382 #: ../src/guestfs.pod:137
34383 msgid "You can add a disk read-only using:"
34384 msgstr ""
34385
34386 #. type: verbatim
34387 #: ../src/guestfs.pod:139
34388 #, no-wrap
34389 msgid ""
34390 " guestfs_add_drive_opts (g, filename,\n"
34391 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34392 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34393 "                         -1);\n"
34394 "\n"
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:144
34399 msgid ""
34400 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34401 "libguestfs won't modify the file."
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:147
34406 msgid ""
34407 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34408 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34409 "corruption, but adding it read-only is safe."
34410 msgstr ""
34411
34412 #. type: textblock
34413 #: ../src/guestfs.pod:151
34414 msgid ""
34415 "You must add at least one disk image, and you may add multiple disk images.  "
34416 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34417 "first one you added), C</dev/sdb> (for the second one you added), etc."
34418 msgstr ""
34419
34420 #. type: textblock
34421 #: ../src/guestfs.pod:156
34422 msgid ""
34423 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34424 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34425 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34426 msgstr ""
34427
34428 #. type: =head2
34429 #: ../src/guestfs.pod:161
34430 msgid "MOUNTING"
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:163
34435 msgid ""
34436 "Before you can read or write files, create directories and so on in a disk "
34437 "image that contains filesystems, you have to mount those filesystems using "
34438 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34439 "a disk image contains (for example) one partition with a filesystem on that "
34440 "partition, then you can mount it directly:"
34441 msgstr ""
34442
34443 #. type: verbatim
34444 #: ../src/guestfs.pod:170
34445 #, no-wrap
34446 msgid ""
34447 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34448 "\n"
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../src/guestfs.pod:172
34453 msgid ""
34454 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34455 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34456 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34457 "that these are libguestfs virtual devices, and are nothing to do with host "
34458 "devices."
34459 msgstr ""
34460
34461 #. type: textblock
34462 #: ../src/guestfs.pod:178
34463 msgid ""
34464 "If you are given a disk image and you don't know what it contains then you "
34465 "have to find out.  Libguestfs can do that too: use L</"
34466 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34467 "LVs, and either try mounting each to see what is mountable, or else examine "
34468 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34469 "filesystems, use L</guestfs_list_filesystems>."
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:186
34474 msgid ""
34475 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34476 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34477 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34478 msgstr ""
34479
34480 #. type: textblock
34481 #: ../src/guestfs.pod:191
34482 msgid ""
34483 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34484 "several other variations of the C<guestfs_mount_*> call."
34485 msgstr ""
34486
34487 #. type: =head2
34488 #: ../src/guestfs.pod:194
34489 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34490 msgstr ""
34491
34492 #. type: textblock
34493 #: ../src/guestfs.pod:196
34494 msgid ""
34495 "The majority of the libguestfs API consists of fairly low-level calls for "
34496 "accessing and modifying the files, directories, symlinks etc on mounted "
34497 "filesystems.  There are over a hundred such calls which you can find listed "
34498 "in detail below in this man page, and we don't even pretend to cover them "
34499 "all in this overview."
34500 msgstr ""
34501
34502 #. type: textblock
34503 #: ../src/guestfs.pod:202
34504 msgid ""
34505 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34506 "mount point."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:205
34511 msgid ""
34512 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34513 "the file called C<\"etc/passwd\"> then you could do:"
34514 msgstr ""
34515
34516 #. type: verbatim
34517 #: ../src/guestfs.pod:208
34518 #, no-wrap
34519 msgid ""
34520 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34521 "\n"
34522 msgstr ""
34523
34524 #. type: textblock
34525 #: ../src/guestfs.pod:210
34526 msgid ""
34527 "This would return C<data> as a newly allocated buffer containing the full "
34528 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34529 "or C<NULL> if there was an error."
34530 msgstr ""
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:214
34534 msgid ""
34535 "As another example, to create a top-level directory on that filesystem "
34536 "called C<\"var\"> you would do:"
34537 msgstr ""
34538
34539 #. type: verbatim
34540 #: ../src/guestfs.pod:217
34541 #, no-wrap
34542 msgid ""
34543 " guestfs_mkdir (g, \"/var\");\n"
34544 "\n"
34545 msgstr ""
34546
34547 #. type: textblock
34548 #: ../src/guestfs.pod:219
34549 msgid "To create a symlink you could do:"
34550 msgstr ""
34551
34552 #. type: verbatim
34553 #: ../src/guestfs.pod:221
34554 #, no-wrap
34555 msgid ""
34556 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34557 "               \"/etc/rc3.d/S30portmap\");\n"
34558 "\n"
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:224
34563 msgid ""
34564 "Libguestfs will reject attempts to use relative paths and there is no "
34565 "concept of a current working directory."
34566 msgstr ""
34567
34568 #. type: textblock
34569 #: ../src/guestfs.pod:227
34570 msgid ""
34571 "Libguestfs can return errors in many situations: for example if the "
34572 "filesystem isn't writable, or if a file or directory that you requested "
34573 "doesn't exist.  If you are using the C API (documented here)  you have to "
34574 "check for those error conditions after each call.  (Other language bindings "
34575 "turn these errors into exceptions)."
34576 msgstr ""
34577
34578 #. type: textblock
34579 #: ../src/guestfs.pod:233
34580 msgid ""
34581 "File writes are affected by the per-handle umask, set by calling L</"
34582 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34583 msgstr ""
34584
34585 #. type: =head2
34586 #: ../src/guestfs.pod:236
34587 msgid "PARTITIONING"
34588 msgstr ""
34589
34590 #. type: textblock
34591 #: ../src/guestfs.pod:238
34592 msgid ""
34593 "Libguestfs contains API calls to read, create and modify partition tables on "
34594 "disk images."
34595 msgstr ""
34596
34597 #. type: textblock
34598 #: ../src/guestfs.pod:241
34599 msgid ""
34600 "In the common case where you want to create a single partition covering the "
34601 "whole disk, you should use the L</guestfs_part_disk> call:"
34602 msgstr ""
34603
34604 #. type: verbatim
34605 #: ../src/guestfs.pod:245
34606 #, no-wrap
34607 msgid ""
34608 " const char *parttype = \"mbr\";\n"
34609 " if (disk_is_larger_than_2TB)\n"
34610 "   parttype = \"gpt\";\n"
34611 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34612 "\n"
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:250
34617 msgid ""
34618 "Obviously this effectively wipes anything that was on that disk image before."
34619 msgstr ""
34620
34621 #. type: =head2
34622 #: ../src/guestfs.pod:253
34623 msgid "LVM2"
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs.pod:255
34628 msgid ""
34629 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34630 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34631 "you familiarize yourself with the concepts of physical volumes, volume "
34632 "groups and logical volumes."
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:260
34637 msgid ""
34638 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34639 "tldp.org/HOWTO/LVM-HOWTO/>."
34640 msgstr ""
34641
34642 #. type: =head2
34643 #: ../src/guestfs.pod:263
34644 msgid "DOWNLOADING"
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:265
34649 msgid ""
34650 "Use L</guestfs_cat> to download small, text only files.  This call is "
34651 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34652 "NUL (C<\\0>) characters.  However the API is very simple to use."
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:269
34657 msgid ""
34658 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34659 "bit data, since it returns a (pointer, size) pair.  However it is still "
34660 "limited to \"small\" files, less than 2 MB."
34661 msgstr ""
34662
34663 #. type: textblock
34664 #: ../src/guestfs.pod:273
34665 msgid ""
34666 "L</guestfs_download> can be used to download any file, with no limits on "
34667 "content or size (even files larger than 4 GB)."
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../src/guestfs.pod:276
34672 msgid ""
34673 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34674 msgstr ""
34675
34676 #. type: =head2
34677 #: ../src/guestfs.pod:279
34678 msgid "UPLOADING"
34679 msgstr ""
34680
34681 #. type: textblock
34682 #: ../src/guestfs.pod:281
34683 msgid ""
34684 "It's often the case that you want to write a file or files to the disk image."
34685 msgstr ""
34686
34687 #. type: textblock
34688 #: ../src/guestfs.pod:284
34689 msgid ""
34690 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34691 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34692 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34693 "of other functions for creating test files, for example L</guestfs_fill> and "
34694 "L</guestfs_fill_pattern>."
34695 msgstr ""
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:290
34699 msgid ""
34700 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34701 "file content or size (even files larger than 4 GB)."
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:293
34706 msgid ""
34707 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs.pod:295
34712 msgid ""
34713 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34714 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34715 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34716 "in a predictable way (eg. adding it last after all other drives) then you "
34717 "can get the device name from L</guestfs_list_devices> and mount it directly "
34718 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34719 "portable between kernel versions, and they don't support labels or UUIDs.  "
34720 "If you want to pre-build an image or you need to mount it using a label or "
34721 "UUID, use an ISO image instead."
34722 msgstr ""
34723
34724 #. type: =head2
34725 #: ../src/guestfs.pod:306
34726 msgid "COPYING"
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:308
34731 msgid ""
34732 "There are various different commands for copying between files and devices "
34733 "and in and out of the guest filesystem.  These are summarised in the table "
34734 "below."
34735 msgstr ""
34736
34737 #. type: =item
34738 #: ../src/guestfs.pod:314
34739 msgid "B<file> to B<file>"
34740 msgstr ""
34741
34742 #. type: textblock
34743 #: ../src/guestfs.pod:316
34744 msgid ""
34745 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34746 "directories recursively."
34747 msgstr ""
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:319
34751 msgid ""
34752 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34753 msgstr ""
34754
34755 #. type: =item
34756 #: ../src/guestfs.pod:322
34757 msgid "B<file> to B<device>"
34758 msgstr ""
34759
34760 #. type: =item
34761 #: ../src/guestfs.pod:324
34762 msgid "B<device> to B<file>"
34763 msgstr ""
34764
34765 #. type: =item
34766 #: ../src/guestfs.pod:326
34767 msgid "B<device> to B<device>"
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs.pod:328
34772 msgid ""
34773 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
34774 "guestfs_copy_device_to_device>."
34775 msgstr ""
34776
34777 #. type: textblock
34778 #: ../src/guestfs.pod:331
34779 msgid "Example: duplicate the contents of an LV:"
34780 msgstr ""
34781
34782 #. type: verbatim
34783 #: ../src/guestfs.pod:333
34784 #, no-wrap
34785 msgid ""
34786 " guestfs_copy_device_to_device (g,\n"
34787 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34788 "         /* -1 marks the end of the list of optional parameters */\n"
34789 "         -1);\n"
34790 "\n"
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:338
34795 msgid ""
34796 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34797 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34798 "optional C<size> parameter:"
34799 msgstr ""
34800
34801 #. type: verbatim
34802 #: ../src/guestfs.pod:342
34803 #, no-wrap
34804 msgid ""
34805 " guestfs_copy_device_to_device (g,\n"
34806 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34807 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34808 "         -1);\n"
34809 "\n"
34810 msgstr ""
34811
34812 #. type: =item
34813 #: ../src/guestfs.pod:347
34814 msgid "B<file on the host> to B<file or device>"
34815 msgstr ""
34816
34817 #. type: textblock
34818 #: ../src/guestfs.pod:349
34819 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34820 msgstr ""
34821
34822 #. type: =item
34823 #: ../src/guestfs.pod:351
34824 msgid "B<file or device> to B<file on the host>"
34825 msgstr ""
34826
34827 #. type: textblock
34828 #: ../src/guestfs.pod:353
34829 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34830 msgstr ""
34831
34832 #. type: =head2
34833 #: ../src/guestfs.pod:357
34834 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34835 msgstr ""
34836
34837 #. type: textblock
34838 #: ../src/guestfs.pod:359
34839 msgid ""
34840 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34841 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34842 "appears you can only upload and download to files.  However many Un*x-like "
34843 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34844 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34845 "and arbitrary file descriptor N."
34846 msgstr ""
34847
34848 #. type: textblock
34849 #: ../src/guestfs.pod:367
34850 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34851 msgstr ""
34852
34853 #. type: verbatim
34854 #: ../src/guestfs.pod:370
34855 #, no-wrap
34856 msgid ""
34857 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34858 "\n"
34859 msgstr ""
34860
34861 #. type: textblock
34862 #: ../src/guestfs.pod:372
34863 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34864 msgstr ""
34865
34866 #. type: verbatim
34867 #: ../src/guestfs.pod:374
34868 #, no-wrap
34869 msgid ""
34870 " char devfd[64];\n"
34871 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34872 " guestfs_tar_out (g, \"/\", devfd);\n"
34873 "\n"
34874 msgstr ""
34875
34876 #. type: =head2
34877 #: ../src/guestfs.pod:378
34878 msgid "LISTING FILES"
34879 msgstr ""
34880
34881 #. type: textblock
34882 #: ../src/guestfs.pod:380
34883 msgid ""
34884 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34885 "L<guestfish(1)>-equivalent command C<ll>)."
34886 msgstr ""
34887
34888 #. type: textblock
34889 #: ../src/guestfs.pod:383
34890 msgid ""
34891 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34892 "programs, as a flat list of strings."
34893 msgstr ""
34894
34895 #. type: textblock
34896 #: ../src/guestfs.pod:386
34897 msgid ""
34898 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34899 "directory, plus additional information about each one.  It is more "
34900 "equivalent to using the L<readdir(3)> call on a local filesystem."
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:390
34905 msgid ""
34906 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34907 msgstr ""
34908
34909 #. type: =head2
34910 #: ../src/guestfs.pod:393
34911 msgid "RUNNING COMMANDS"
34912 msgstr ""
34913
34914 #. type: textblock
34915 #: ../src/guestfs.pod:395
34916 msgid ""
34917 "Although libguestfs is primarily an API for manipulating files inside guest "
34918 "images, we also provide some limited facilities for running commands inside "
34919 "guests."
34920 msgstr ""
34921
34922 #. type: textblock
34923 #: ../src/guestfs.pod:399
34924 msgid "There are many limitations to this:"
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:405
34929 msgid ""
34930 "The kernel version that the command runs under will be different from what "
34931 "it expects."
34932 msgstr ""
34933
34934 #. type: textblock
34935 #: ../src/guestfs.pod:410
34936 msgid ""
34937 "If the command needs to communicate with daemons, then most likely they "
34938 "won't be running."
34939 msgstr ""
34940
34941 #. type: textblock
34942 #: ../src/guestfs.pod:415
34943 msgid "The command will be running in limited memory."
34944 msgstr ""
34945
34946 #. type: textblock
34947 #: ../src/guestfs.pod:419
34948 msgid ""
34949 "The network may not be available unless you enable it (see L</"
34950 "guestfs_set_network>)."
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:424
34955 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:428
34960 msgid ""
34961 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:433
34966 msgid ""
34967 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34968 "See L</SELINUX> in this manpage."
34969 msgstr ""
34970
34971 #. type: textblock
34972 #: ../src/guestfs.pod:438
34973 msgid ""
34974 "I<Security:> It is not safe to run commands from untrusted, possibly "
34975 "malicious guests.  These commands may attempt to exploit your program by "
34976 "sending unexpected output.  They could also try to exploit the Linux kernel "
34977 "or qemu provided by the libguestfs appliance.  They could use the network "
34978 "provided by the libguestfs appliance to bypass ordinary network partitions "
34979 "and firewalls.  They could use the elevated privileges or different SELinux "
34980 "context of your program to their advantage."
34981 msgstr ""
34982
34983 #. type: textblock
34984 #: ../src/guestfs.pod:447
34985 msgid ""
34986 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34987 "(a script which runs when the guest next boots normally), and to have this "
34988 "script run the commands you want in the normal context of the running guest, "
34989 "network security and so on.  For information about other security issues, "
34990 "see L</SECURITY>."
34991 msgstr ""
34992
34993 #. type: textblock
34994 #: ../src/guestfs.pod:455
34995 msgid ""
34996 "The two main API calls to run commands are L</guestfs_command> and L</"
34997 "guestfs_sh> (there are also variations)."
34998 msgstr ""
34999
35000 #. type: textblock
35001 #: ../src/guestfs.pod:458
35002 msgid ""
35003 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35004 "shell globs, redirections, etc will work."
35005 msgstr ""
35006
35007 #. type: =head2
35008 #: ../src/guestfs.pod:461
35009 msgid "CONFIGURATION FILES"
35010 msgstr ""
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:463
35014 msgid ""
35015 "To read and write configuration files in Linux guest filesystems, we "
35016 "strongly recommend using Augeas.  For example, Augeas understands how to "
35017 "read and write, say, a Linux shadow password file or X.org configuration "
35018 "file, and so avoids you having to write that code."
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:468
35023 msgid ""
35024 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35025 "document Augeas itself here because there is excellent documentation on the "
35026 "L<http://augeas.net/> website."
35027 msgstr ""
35028
35029 #. type: textblock
35030 #: ../src/guestfs.pod:472
35031 msgid ""
35032 "If you don't want to use Augeas (you fool!) then try calling L</"
35033 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35034 "over."
35035 msgstr ""
35036
35037 #. type: =head2
35038 #: ../src/guestfs.pod:476
35039 msgid "SELINUX"
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:478
35044 msgid ""
35045 "We support SELinux guests.  To ensure that labeling happens correctly in "
35046 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:486
35051 msgid "Before launching, do:"
35052 msgstr ""
35053
35054 #. type: verbatim
35055 #: ../src/guestfs.pod:488
35056 #, no-wrap
35057 msgid ""
35058 " guestfs_set_selinux (g, 1);\n"
35059 "\n"
35060 msgstr ""
35061
35062 #. type: textblock
35063 #: ../src/guestfs.pod:492
35064 msgid ""
35065 "After mounting the guest's filesystem(s), load the policy.  This is best "
35066 "done by running the L<load_policy(8)> command in the guest itself:"
35067 msgstr ""
35068
35069 #. type: verbatim
35070 #: ../src/guestfs.pod:496
35071 #, no-wrap
35072 msgid ""
35073 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35074 "\n"
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs.pod:498
35079 msgid ""
35080 "(Older versions of C<load_policy> require you to specify the name of the "
35081 "policy file)."
35082 msgstr ""
35083
35084 #. type: textblock
35085 #: ../src/guestfs.pod:503
35086 msgid ""
35087 "Optionally, set the security context for the API.  The correct security "
35088 "context to use can only be known by inspecting the guest.  As an example:"
35089 msgstr ""
35090
35091 #. type: verbatim
35092 #: ../src/guestfs.pod:507
35093 #, no-wrap
35094 msgid ""
35095 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35096 "\n"
35097 msgstr ""
35098
35099 #. type: textblock
35100 #: ../src/guestfs.pod:511
35101 msgid "This will work for running commands and editing existing files."
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:513
35106 msgid ""
35107 "When new files are created, you may need to label them explicitly, for "
35108 "example by running the external command C<restorecon pathname>."
35109 msgstr ""
35110
35111 #. type: =head2
35112 #: ../src/guestfs.pod:517
35113 msgid "UMASK"
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:519
35118 msgid ""
35119 "Certain calls are affected by the current file mode creation mask (the "
35120 "\"umask\").  In particular ones which create files or directories, such as "
35121 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35122 "either the default mode that the file is created with or modifies the mode "
35123 "that you supply."
35124 msgstr ""
35125
35126 #. type: textblock
35127 #: ../src/guestfs.pod:525
35128 msgid ""
35129 "The default umask is C<022>, so files are created with modes such as C<0644> "
35130 "and directories with C<0755>."
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:528
35135 msgid ""
35136 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35137 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35138 "guestfs_chmod> after creating each file or directory."
35139 msgstr ""
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:532
35143 msgid "For more information about umask, see L<umask(2)>."
35144 msgstr ""
35145
35146 #. type: textblock
35147 #: ../src/guestfs.pod:536
35148 msgid ""
35149 "Libguestfs allows you to access Linux guests which have been encrypted using "
35150 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35151 "standard.  This includes nearly all whole disk encryption systems used by "
35152 "modern Linux guests."
35153 msgstr ""
35154
35155 #. type: textblock
35156 #: ../src/guestfs.pod:542
35157 msgid ""
35158 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35159 "returns the string C<crypto_LUKS>)."
35160 msgstr ""
35161
35162 #. type: textblock
35163 #: ../src/guestfs.pod:545
35164 msgid ""
35165 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35166 "will require the passphrase!"
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:548
35171 msgid ""
35172 "Opening a LUKS device creates a new device mapper device called C</dev/"
35173 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35174 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35175 "from and encrypted to the underlying block device respectively."
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:554
35180 msgid ""
35181 "LVM volume groups on the device can be made visible by calling L</"
35182 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35183 "(s) can now be mounted in the usual way."
35184 msgstr ""
35185
35186 #. type: textblock
35187 #: ../src/guestfs.pod:558
35188 msgid ""
35189 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35190 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35191 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35192 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35193 "underlying encrypted block device)."
35194 msgstr ""
35195
35196 #. type: =head2
35197 #: ../src/guestfs.pod:565
35198 msgid "INSPECTION"
35199 msgstr ""
35200
35201 #. type: textblock
35202 #: ../src/guestfs.pod:567
35203 msgid ""
35204 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35205 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35206 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35207 "version 1.5.3 the most frequently used part of this library has been "
35208 "rewritten in C and moved into the core code)."
35209 msgstr ""
35210
35211 #. type: textblock
35212 #: ../src/guestfs.pod:574
35213 msgid ""
35214 "Add all disks belonging to the unknown virtual machine and call L</"
35215 "guestfs_launch> in the usual way."
35216 msgstr ""
35217
35218 #. type: textblock
35219 #: ../src/guestfs.pod:577
35220 msgid ""
35221 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35222 "and certain heuristics, and returns a list of operating systems that were "
35223 "found.  An empty list means none were found.  A single element is the root "
35224 "filesystem of the operating system.  For dual- or multi-boot guests, "
35225 "multiple roots can be returned, each one corresponding to a separate "
35226 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35227 "world of virtualization, but since this scenario can happen, we have built "
35228 "libguestfs to deal with it.)"
35229 msgstr ""
35230
35231 #. type: textblock
35232 #: ../src/guestfs.pod:586
35233 msgid ""
35234 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35235 "to get additional details about that operating system.  For example, call L</"
35236 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35237 "Windows and Linux-based operating systems respectively."
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:592
35242 msgid ""
35243 "Un*x-like and Linux-based operating systems usually consist of several "
35244 "filesystems which are mounted at boot time (for example, a separate boot "
35245 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35246 "filesystems correspond to mount points.  Call "
35247 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35248 "hash table like this example:"
35249 msgstr ""
35250
35251 #. type: verbatim
35252 #: ../src/guestfs.pod:599
35253 #, no-wrap
35254 msgid ""
35255 " /boot => /dev/sda1\n"
35256 " /     => /dev/vg_guest/lv_root\n"
35257 " /usr  => /dev/vg_guest/lv_usr\n"
35258 "\n"
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:603
35263 msgid ""
35264 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35265 "filesystems as suggested."
35266 msgstr ""
35267
35268 #. type: textblock
35269 #: ../src/guestfs.pod:606
35270 msgid ""
35271 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35272 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35273 msgstr ""
35274
35275 #. type: textblock
35276 #: ../src/guestfs.pod:610
35277 msgid ""
35278 "Inspection currently only works for some common operating systems.  "
35279 "Contributors are welcome to send patches for other operating systems that we "
35280 "currently cannot detect."
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:614
35285 msgid ""
35286 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35287 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35288 "encrypted devices."
35289 msgstr ""
35290
35291 #. type: textblock
35292 #: ../src/guestfs.pod:618
35293 msgid ""
35294 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35295 "inspection and caches the results in the guest handle.  Subsequent calls to "
35296 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35297 "read the disks.  If you change the content of the guest disks, you can redo "
35298 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35299 "guestfs_inspect_list_applications> works a little differently from the other "
35300 "calls and does read the disks.  See documentation for that function for "
35301 "details)."
35302 msgstr ""
35303
35304 #. type: =head3
35305 #: ../src/guestfs.pod:627
35306 msgid "INSPECTING INSTALL DISKS"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:629
35311 msgid ""
35312 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35313 "CDs and more."
35314 msgstr ""
35315
35316 #. type: textblock
35317 #: ../src/guestfs.pod:632
35318 msgid ""
35319 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35320 "system, which currently can be C<installed> (a regular operating system) or "
35321 "C<installer> (some sort of install disk)."
35322 msgstr ""
35323
35324 #. type: textblock
35325 #: ../src/guestfs.pod:636
35326 msgid ""
35327 "Further information is available about the operating system that can be "
35328 "installed using the regular inspection APIs like L</"
35329 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35330 msgstr ""
35331
35332 #. type: textblock
35333 #: ../src/guestfs.pod:641
35334 msgid ""
35335 "Some additional information specific to installer disks is also available "
35336 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35337 "guestfs_inspect_is_multipart> calls."
35338 msgstr ""
35339
35340 #. type: =head2
35341 #: ../src/guestfs.pod:646
35342 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35343 msgstr ""
35344
35345 #. type: textblock
35346 #: ../src/guestfs.pod:648
35347 msgid ""
35348 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35349 "ntfs-3g.org/> driver."
35350 msgstr ""
35351
35352 #. type: =head3
35353 #: ../src/guestfs.pod:651
35354 msgid "DRIVE LETTERS AND PATHS"
35355 msgstr ""
35356
35357 #. type: textblock
35358 #: ../src/guestfs.pod:653
35359 msgid ""
35360 "DOS and Windows still use drive letters, and the filesystems are always "
35361 "treated as case insensitive by Windows itself, and therefore you might find "
35362 "a Windows configuration file referring to a path like C<c:\\windows"
35363 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35364 "might be referred to as C</WINDOWS/System32>."
35365 msgstr ""
35366
35367 #. type: textblock
35368 #: ../src/guestfs.pod:659
35369 msgid ""
35370 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35371 "L</guestfs_inspect_get_drive_mappings>)"
35372 msgstr ""
35373
35374 #. type: textblock
35375 #: ../src/guestfs.pod:662
35376 msgid ""
35377 "Dealing with separator characters (backslash vs forward slash) is outside "
35378 "the scope of libguestfs, but usually a simple character replacement will "
35379 "work."
35380 msgstr ""
35381
35382 #. type: textblock
35383 #: ../src/guestfs.pod:666
35384 msgid ""
35385 "To resolve the case insensitivity of paths, call L</"
35386 "guestfs_case_sensitive_path>."
35387 msgstr ""
35388
35389 #. type: =head3
35390 #: ../src/guestfs.pod:669
35391 msgid "ACCESSING THE WINDOWS REGISTRY"
35392 msgstr ""
35393
35394 #. type: textblock
35395 #: ../src/guestfs.pod:671
35396 msgid ""
35397 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35398 "files, through the library C<hivex> which is part of the libguestfs project "
35399 "although ships as a separate tarball.  You have to locate and download the "
35400 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35401 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35402 "reg(1)> for more help on this issue."
35403 msgstr ""
35404
35405 #. type: =head3
35406 #: ../src/guestfs.pod:679
35407 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35408 msgstr ""
35409
35410 #. type: textblock
35411 #: ../src/guestfs.pod:681
35412 msgid ""
35413 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35414 "provide something which looks like a Linux symlink.  The way it tries to do "
35415 "the rewriting is described here:"
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:685
35420 msgid ""
35421 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35422 "symbolic-links/>"
35423 msgstr ""
35424
35425 #. type: textblock
35426 #: ../src/guestfs.pod:687
35427 msgid ""
35428 "The essential problem is that ntfs-3g simply does not have enough "
35429 "information to do a correct job.  NTFS links can contain drive letters and "
35430 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35431 "It is almost certainly the case that libguestfs callers should ignore what "
35432 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:694
35437 msgid ""
35438 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35439 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35440 "attribute, and read the raw reparse data from that (you can find the format "
35441 "documented in various places around the web)."
35442 msgstr ""
35443
35444 #. type: =head3
35445 #: ../src/guestfs.pod:699
35446 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:701
35451 msgid ""
35452 "There are other useful extended attributes that can be read from ntfs-3g "
35453 "filesystems (using L</guestfs_getxattr>).  See:"
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:704
35458 msgid ""
35459 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35460 msgstr ""
35461
35462 #. type: =head2
35463 #: ../src/guestfs.pod:706
35464 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35465 msgstr ""
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:708
35469 msgid ""
35470 "Although we don't want to discourage you from using the C API, we will "
35471 "mention here that the same API is also available in other languages."
35472 msgstr ""
35473
35474 #. type: textblock
35475 #: ../src/guestfs.pod:711
35476 msgid ""
35477 "The API is broadly identical in all supported languages.  This means that "
35478 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35479 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35480 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35481 "each language."
35482 msgstr ""
35483
35484 #. type: textblock
35485 #: ../src/guestfs.pod:717
35486 msgid ""
35487 "Error messages are automatically transformed into exceptions if the language "
35488 "supports it."
35489 msgstr ""
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:720
35493 msgid ""
35494 "We don't try to \"object orientify\" parts of the API in OO languages, "
35495 "although contributors are welcome to write higher level APIs above what we "
35496 "provide in their favourite languages if they wish."
35497 msgstr ""
35498
35499 #. type: =item
35500 #: ../src/guestfs.pod:726
35501 msgid "B<C++>"
35502 msgstr ""
35503
35504 #. type: textblock
35505 #: ../src/guestfs.pod:728
35506 msgid ""
35507 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35508 "identical to the C API.  C++ classes and exceptions are not used."
35509 msgstr ""
35510
35511 #. type: =item
35512 #: ../src/guestfs.pod:732
35513 msgid "B<C#>"
35514 msgstr ""
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:734
35518 msgid ""
35519 "The C# bindings are highly experimental.  Please read the warnings at the "
35520 "top of C<csharp/Libguestfs.cs>."
35521 msgstr ""
35522
35523 #. type: =item
35524 #: ../src/guestfs.pod:737
35525 msgid "B<Erlang>"
35526 msgstr ""
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:739
35530 msgid "See L<guestfs-erlang(3)>."
35531 msgstr ""
35532
35533 #. type: =item
35534 #: ../src/guestfs.pod:741
35535 msgid "B<Haskell>"
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:743
35540 msgid ""
35541 "This is the only language binding that is working but incomplete.  Only "
35542 "calls which return simple integers have been bound in Haskell, and we are "
35543 "looking for help to complete this binding."
35544 msgstr ""
35545
35546 #. type: =item
35547 #: ../src/guestfs.pod:747
35548 msgid "B<Java>"
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:749
35553 msgid ""
35554 "Full documentation is contained in the Javadoc which is distributed with "
35555 "libguestfs.  For examples, see L<guestfs-java(3)>."
35556 msgstr ""
35557
35558 #. type: =item
35559 #: ../src/guestfs.pod:752
35560 msgid "B<OCaml>"
35561 msgstr ""
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:754
35565 msgid "See L<guestfs-ocaml(3)>."
35566 msgstr ""
35567
35568 #. type: =item
35569 #: ../src/guestfs.pod:756
35570 msgid "B<Perl>"
35571 msgstr ""
35572
35573 #. type: textblock
35574 #: ../src/guestfs.pod:758
35575 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35576 msgstr ""
35577
35578 #. type: =item
35579 #: ../src/guestfs.pod:760
35580 msgid "B<PHP>"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:762
35585 msgid ""
35586 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35587 "the php-libguestfs package for your distribution."
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:765
35592 msgid "The PHP binding only works correctly on 64 bit machines."
35593 msgstr ""
35594
35595 #. type: =item
35596 #: ../src/guestfs.pod:767
35597 msgid "B<Python>"
35598 msgstr ""
35599
35600 #. type: textblock
35601 #: ../src/guestfs.pod:769
35602 msgid "See L<guestfs-python(3)>."
35603 msgstr ""
35604
35605 #. type: =item
35606 #: ../src/guestfs.pod:771
35607 msgid "B<Ruby>"
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:773
35612 msgid "See L<guestfs-ruby(3)>."
35613 msgstr ""
35614
35615 #. type: =item
35616 #: ../src/guestfs.pod:775
35617 msgid "B<shell scripts>"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:777
35622 msgid "See L<guestfish(1)>."
35623 msgstr ""
35624
35625 #. type: =head2
35626 #: ../src/guestfs.pod:781
35627 msgid "LIBGUESTFS GOTCHAS"
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:783
35632 msgid ""
35633 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35634 "system [...] that works in the way it is documented but is counterintuitive "
35635 "and almost invites mistakes.\""
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:787
35640 msgid ""
35641 "Since we developed libguestfs and the associated tools, there are several "
35642 "things we would have designed differently, but are now stuck with for "
35643 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35644 "release, you can expect these to change.  Beware of them."
35645 msgstr ""
35646
35647 #. type: =item
35648 #: ../src/guestfs.pod:795
35649 msgid "Autosync / forgetting to sync."
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:797
35654 msgid ""
35655 "I<Update:> Autosync is enabled by default for all API users starting from "
35656 "libguestfs 1.5.24.  This section only applies to older versions."
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:800
35661 msgid ""
35662 "When modifying a filesystem from C or another language, you B<must> unmount "
35663 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35664 "libguestfs handle.  You can also call:"
35665 msgstr ""
35666
35667 #. type: verbatim
35668 #: ../src/guestfs.pod:804
35669 #, no-wrap
35670 msgid ""
35671 " guestfs_set_autosync (g, 1);\n"
35672 "\n"
35673 msgstr ""
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:806
35677 msgid ""
35678 "to have the unmount/sync done automatically for you when the handle 'g' is "
35679 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:810
35684 msgid ""
35685 "If you forget to do this, then it is entirely possible that your changes "
35686 "won't be written out, or will be partially written, or (very rarely) that "
35687 "you'll get disk corruption."
35688 msgstr ""
35689
35690 #. type: textblock
35691 #: ../src/guestfs.pod:814
35692 msgid ""
35693 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35694 "guestfish scripts that forget to sync will work just fine, which can make "
35695 "this very puzzling if you are trying to debug a problem."
35696 msgstr ""
35697
35698 #. type: =item
35699 #: ../src/guestfs.pod:818
35700 msgid "Mount option C<-o sync> should not be the default."
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:820
35705 msgid ""
35706 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35707 "libguestfs 1.13.16.  This section only applies to older versions."
35708 msgstr ""
35709
35710 #. type: textblock
35711 #: ../src/guestfs.pod:823
35712 msgid ""
35713 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35714 "However C<-o sync> does not add any reliability benefit, but does have a "
35715 "very large performance impact."
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:827
35720 msgid ""
35721 "The work around is to use L</guestfs_mount_options> and set the mount "
35722 "options that you actually want to use."
35723 msgstr ""
35724
35725 #. type: =item
35726 #: ../src/guestfs.pod:830
35727 msgid "Read-only should be the default."
35728 msgstr ""
35729
35730 #. type: textblock
35731 #: ../src/guestfs.pod:832
35732 msgid ""
35733 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35734 "specify I<--rw> if you want to make changes to the image."
35735 msgstr ""
35736
35737 #. type: textblock
35738 #: ../src/guestfs.pod:835
35739 msgid "This would reduce the potential to corrupt live VM images."
35740 msgstr ""
35741
35742 #. type: textblock
35743 #: ../src/guestfs.pod:837
35744 msgid ""
35745 "Note that many filesystems change the disk when you just mount and unmount, "
35746 "even if you didn't perform any writes.  You need to use L</"
35747 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35748 msgstr ""
35749
35750 #. type: =item
35751 #: ../src/guestfs.pod:841
35752 msgid "guestfish command line is hard to use."
35753 msgstr ""
35754
35755 #. type: textblock
35756 #: ../src/guestfs.pod:843
35757 msgid ""
35758 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35759 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35760 "exist, so it fails.  In earlier versions of guestfish the error message was "
35761 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35762 "we should have used C<guestfish -c command> to run commands."
35763 msgstr ""
35764
35765 #. type: =item
35766 #: ../src/guestfs.pod:850
35767 msgid "guestfish megabyte modifiers don't work right on all commands"
35768 msgstr ""
35769
35770 #. type: textblock
35771 #: ../src/guestfs.pod:852
35772 msgid ""
35773 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35774 "other modifiers).  What guestfish actually does is to multiply the number "
35775 "part by the modifier part and pass the result to the C API.  However this "
35776 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35777 "expecting some other unit (eg. megabytes)."
35778 msgstr ""
35779
35780 #. type: textblock
35781 #: ../src/guestfs.pod:859
35782 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35783 msgstr ""
35784
35785 #. type: verbatim
35786 #: ../src/guestfs.pod:861
35787 #, no-wrap
35788 msgid ""
35789 " lvcreate LV VG 100M\n"
35790 "\n"
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:863
35795 msgid ""
35796 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35797 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35798 "megabytes * megabytes) logical volume.  The error message you get from this "
35799 "is also a little obscure."
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:868
35804 msgid ""
35805 "This could be fixed in the generator by specially marking parameters and "
35806 "return values which take bytes or other units."
35807 msgstr ""
35808
35809 #. type: =item
35810 #: ../src/guestfs.pod:871
35811 msgid "Ambiguity between devices and paths"
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:873
35816 msgid ""
35817 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35818 "sdb2>) and a similar pathname.  A file might just happen to be called "
35819 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:878
35824 msgid ""
35825 "In the current API we usually resolve this ambiguity by having two separate "
35826 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35827 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35828 "detecting if the path supplied begins with C</dev/>."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:884
35833 msgid ""
35834 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35835 "make paths/devices into structured names.  One way to do this would be to "
35836 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35837 "aspect of grub.  Another way would be to use a structured type, equivalent "
35838 "to this OCaml type:"
35839 msgstr ""
35840
35841 #. type: verbatim
35842 #: ../src/guestfs.pod:890
35843 #, no-wrap
35844 msgid ""
35845 " type path = Path of string | Device of int | Partition of int * int\n"
35846 "\n"
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../src/guestfs.pod:892
35851 msgid "which would allow you to pass arguments like:"
35852 msgstr ""
35853
35854 #. type: verbatim
35855 #: ../src/guestfs.pod:894
35856 #, no-wrap
35857 msgid ""
35858 " Path \"/foo/bar\"\n"
35859 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35860 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35861 " Path \"/dev/sdb2\"    (* not a device *)\n"
35862 "\n"
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:899
35867 msgid ""
35868 "As you can see there are still problems to resolve even with this "
35869 "representation.  Also consider how it might work in guestfish."
35870 msgstr ""
35871
35872 #. type: =head2
35873 #: ../src/guestfs.pod:904
35874 msgid "KEYS AND PASSPHRASES"
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:906
35879 msgid ""
35880 "Certain libguestfs calls take a parameter that contains sensitive key "
35881 "material, passed in as a C string."
35882 msgstr ""
35883
35884 #. type: textblock
35885 #: ../src/guestfs.pod:909
35886 msgid ""
35887 "In the future we would hope to change the libguestfs implementation so that "
35888 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35889 "swap.  However this is I<not> done at the moment, because of the complexity "
35890 "of such an implementation."
35891 msgstr ""
35892
35893 #. type: textblock
35894 #: ../src/guestfs.pod:914
35895 msgid ""
35896 "Therefore you should be aware that any key parameter you pass to libguestfs "
35897 "might end up being written out to the swap partition.  If this is a concern, "
35898 "scrub the swap partition or don't use libguestfs on encrypted devices."
35899 msgstr ""
35900
35901 #. type: =head2
35902 #: ../src/guestfs.pod:919
35903 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35904 msgstr ""
35905
35906 #. type: textblock
35907 #: ../src/guestfs.pod:921
35908 msgid ""
35909 "All high-level libguestfs actions are synchronous.  If you want to use "
35910 "libguestfs asynchronously then you must create a thread."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:924
35915 msgid ""
35916 "Only use the handle from a single thread.  Either use the handle exclusively "
35917 "from one thread, or provide your own mutex so that two threads cannot issue "
35918 "calls on the same handle at the same time."
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:928
35923 msgid ""
35924 "See the graphical program guestfs-browser for one possible architecture for "
35925 "multithreaded programs using libvirt and libguestfs."
35926 msgstr ""
35927
35928 #. type: =head2
35929 #: ../src/guestfs.pod:931
35930 msgid "PATH"
35931 msgstr ""
35932
35933 #. type: textblock
35934 #: ../src/guestfs.pod:933
35935 msgid ""
35936 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35937 "internal path."
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:936
35942 msgid ""
35943 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35944 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:939
35949 msgid ""
35950 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35951 "to change the directories that libguestfs will search in.  The value is a "
35952 "colon-separated list of paths.  The current directory is I<not> searched "
35953 "unless the path contains an empty element or C<.>.  For example "
35954 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35955 "then C</usr/lib/guestfs>."
35956 msgstr ""
35957
35958 #. type: =head2
35959 #: ../src/guestfs.pod:946
35960 msgid "QEMU WRAPPERS"
35961 msgstr ""
35962
35963 #. type: textblock
35964 #: ../src/guestfs.pod:948
35965 msgid ""
35966 "If you want to compile your own qemu, run qemu from a non-standard location, "
35967 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35968 "around qemu."
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs.pod:952
35973 msgid ""
35974 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35975 "last command in the shell script (so that qemu replaces the shell and "
35976 "becomes the direct child of the libguestfs-using program).  If you don't do "
35977 "this, then the qemu process won't be cleaned up correctly."
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:957
35982 msgid ""
35983 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35984 "source:"
35985 msgstr ""
35986
35987 #. type: verbatim
35988 #: ../src/guestfs.pod:960
35989 #, no-wrap
35990 msgid ""
35991 " #!/bin/sh -\n"
35992 " qemudir=/home/rjones/d/qemu\n"
35993 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35994 "\n"
35995 msgstr ""
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:964
35999 msgid ""
36000 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36001 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36002 "example:"
36003 msgstr ""
36004
36005 #. type: verbatim
36006 #: ../src/guestfs.pod:968
36007 #, no-wrap
36008 msgid ""
36009 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36010 "\n"
36011 msgstr ""
36012
36013 #. type: textblock
36014 #: ../src/guestfs.pod:970
36015 msgid ""
36016 "Note that libguestfs also calls qemu with the -help and -version options in "
36017 "order to determine features."
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:973
36022 msgid ""
36023 "Wrappers can also be used to edit the options passed to qemu.  In the "
36024 "following example, the C<-machine ...> option (C<-machine> and the following "
36025 "argument) are removed from the command line and replaced with C<-machine pc,"
36026 "accel=tcg>.  The while loop iterates over the options until it finds the "
36027 "right one to remove, putting the remaining options into the C<args> array."
36028 msgstr ""
36029
36030 #. type: verbatim
36031 #: ../src/guestfs.pod:982
36032 #, no-wrap
36033 msgid ""
36034 " i=0\n"
36035 " while [ $# -gt 0 ]; do\n"
36036 "     case \"$1\" in\n"
36037 "     -machine)\n"
36038 "         shift 2;;\n"
36039 "     *)\n"
36040 "         args[i]=\"$1\"\n"
36041 "         (( i++ ))\n"
36042 "         shift ;;\n"
36043 "     esac\n"
36044 " done\n"
36045 " \n"
36046 msgstr ""
36047
36048 #. type: verbatim
36049 #: ../src/guestfs.pod:994
36050 #, no-wrap
36051 msgid ""
36052 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36053 "\n"
36054 msgstr ""
36055
36056 #. type: =head2
36057 #: ../src/guestfs.pod:996
36058 msgid "ATTACHING TO RUNNING DAEMONS"
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:998
36063 msgid ""
36064 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36065 "babies.  Use with caution."
36066 msgstr ""
36067
36068 #. type: textblock
36069 #: ../src/guestfs.pod:1001
36070 msgid ""
36071 "I<Note (2):> This section explains how to attach to a running daemon from a "
36072 "low level perspective.  For most users, simply using virt tools such as "
36073 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36074 msgstr ""
36075
36076 #. type: =head3
36077 #: ../src/guestfs.pod:1005
36078 msgid "Using guestfs_set_attach_method"
36079 msgstr ""
36080
36081 #. type: textblock
36082 #: ../src/guestfs.pod:1007
36083 msgid ""
36084 "By calling L</guestfs_set_attach_method> you can change how the library "
36085 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36086 "ARCHITECTURE> for some background)."
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../src/guestfs.pod:1011
36091 msgid ""
36092 "The normal attach method is C<appliance>, where a small appliance is created "
36093 "containing the daemon, and then the library connects to this."
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:1014
36098 msgid ""
36099 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36100 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36101 "daemon over the Unix domain socket."
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:1018
36106 msgid ""
36107 "The normal use for this is to connect to a running virtual machine that "
36108 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36109 "files inside the live virtual machine."
36110 msgstr ""
36111
36112 #. type: =head3
36113 #: ../src/guestfs.pod:1022
36114 msgid "Using guestfs_add_domain with live flag"
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:1024
36119 msgid ""
36120 "L</guestfs_add_domain> provides some help for getting the correct attach "
36121 "method.  If you pass the C<live> option to this function, then (if the "
36122 "virtual machine is running) it will examine the libvirt XML looking for a "
36123 "virtio-serial channel to connect to:"
36124 msgstr ""
36125
36126 #. type: verbatim
36127 #: ../src/guestfs.pod:1030
36128 #, no-wrap
36129 msgid ""
36130 " <domain>\n"
36131 "   ...\n"
36132 "   <devices>\n"
36133 "     ...\n"
36134 "     <channel type='unix'>\n"
36135 "       <source mode='bind' path='/path/to/socket'/>\n"
36136 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36137 "     </channel>\n"
36138 "     ...\n"
36139 "   </devices>\n"
36140 " </domain>\n"
36141 "\n"
36142 msgstr ""
36143
36144 #. type: textblock
36145 #: ../src/guestfs.pod:1042
36146 msgid ""
36147 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36148 "method to C<unix:/path/to/socket>."
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:1045
36153 msgid ""
36154 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36155 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36156 "to attach to and modify live virtual machines."
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:1049
36161 msgid ""
36162 "The virtual machine needs to have been set up beforehand so that it has the "
36163 "virtio-serial channel and so that guestfsd is running inside it."
36164 msgstr ""
36165
36166 #. type: =head2
36167 #: ../src/guestfs.pod:1053
36168 msgid "ABI GUARANTEE"
36169 msgstr ""
36170
36171 #. type: textblock
36172 #: ../src/guestfs.pod:1055
36173 msgid ""
36174 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36175 "actions as outlined in this section.  Although we will deprecate some "
36176 "actions, for example if they get replaced by newer calls, we will keep the "
36177 "old actions forever.  This allows you the developer to program in confidence "
36178 "against the libguestfs API."
36179 msgstr ""
36180
36181 #. type: =head2
36182 #: ../src/guestfs.pod:1061
36183 msgid "BLOCK DEVICE NAMING"
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:1063
36188 msgid ""
36189 "In the kernel there is now quite a profusion of schemata for naming block "
36190 "devices (in this context, by I<block device> I mean a physical or virtual "
36191 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36192 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36193 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36194 "for the old IDE driver (particularly for SATA devices) those devices also "
36195 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36196 "paravirtualized drivers.  This has created several different naming systems, "
36197 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:1075
36202 msgid ""
36203 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36204 "Linux kernel to access block devices.  We can run a variety of appliances "
36205 "based on a variety of Linux kernels."
36206 msgstr ""
36207
36208 #. type: textblock
36209 #: ../src/guestfs.pod:1079
36210 msgid ""
36211 "This causes a problem for libguestfs because many API calls use device or "
36212 "partition names.  Working scripts and the recipe (example) scripts that we "
36213 "make available over the internet could fail if the naming scheme changes."
36214 msgstr ""
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:1084
36218 msgid ""
36219 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36220 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36221 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36222 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:1090
36227 msgid ""
36228 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36229 "L</guestfs_list_partitions> and similar calls return the true names of the "
36230 "devices and partitions as known to the appliance."
36231 msgstr ""
36232
36233 #. type: =head3
36234 #: ../src/guestfs.pod:1095
36235 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:1097
36240 msgid ""
36241 "Usually this translation is transparent.  However in some (very rare)  cases "
36242 "you may need to know the exact algorithm.  Such cases include where you use "
36243 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36244 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:1103
36249 msgid ""
36250 "The algorithm is applied only to I<parameters> which are known to be either "
36251 "device or partition names.  Return values from functions such as L</"
36252 "guestfs_list_devices> are never changed."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:1111
36257 msgid "Is the string a parameter which is a device or partition name?"
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:1115
36262 msgid "Does the string begin with C</dev/sd>?"
36263 msgstr ""
36264
36265 #. type: textblock
36266 #: ../src/guestfs.pod:1119
36267 msgid ""
36268 "Does the named device exist? If so, we use that device.  However if I<not> "
36269 "then we continue with this algorithm."
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:1124
36274 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36275 msgstr ""
36276
36277 #. type: textblock
36278 #: ../src/guestfs.pod:1126
36279 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:1128
36284 msgid "If that named device exists, use it.  If not, continue."
36285 msgstr ""
36286
36287 #. type: textblock
36288 #: ../src/guestfs.pod:1132
36289 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:1134
36294 msgid "If that named device exists, use it.  If not, return an error."
36295 msgstr ""
36296
36297 #. type: =head3
36298 #: ../src/guestfs.pod:1138
36299 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../src/guestfs.pod:1140
36304 msgid ""
36305 "Although the standard naming scheme and automatic translation is useful for "
36306 "simple programs and guestfish scripts, for larger programs it is best not to "
36307 "rely on this mechanism."
36308 msgstr ""
36309
36310 #. type: textblock
36311 #: ../src/guestfs.pod:1144
36312 msgid ""
36313 "Where possible for maximum future portability programs using libguestfs "
36314 "should use these future-proof techniques:"
36315 msgstr ""
36316
36317 #. type: textblock
36318 #: ../src/guestfs.pod:1151
36319 msgid ""
36320 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36321 "device names, and then use those names directly."
36322 msgstr ""
36323
36324 #. type: textblock
36325 #: ../src/guestfs.pod:1154
36326 msgid ""
36327 "Since those device names exist by definition, they will never be translated."
36328 msgstr ""
36329
36330 #. type: textblock
36331 #: ../src/guestfs.pod:1159
36332 msgid ""
36333 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36334 "filesystem labels."
36335 msgstr ""
36336
36337 #. type: textblock
36338 #: ../src/guestfs.pod:1166
36339 msgid ""
36340 "This section discusses security implications of using libguestfs, "
36341 "particularly with untrusted or malicious guests or disk images."
36342 msgstr ""
36343
36344 #. type: =head2
36345 #: ../src/guestfs.pod:1169
36346 msgid "GENERAL SECURITY CONSIDERATIONS"
36347 msgstr ""
36348
36349 #. type: textblock
36350 #: ../src/guestfs.pod:1171
36351 msgid ""
36352 "Be careful with any files or data that you download from a guest (by "
36353 "\"download\" we mean not just the L</guestfs_download> command but any "
36354 "command that reads files, filenames, directories or anything else from a "
36355 "disk image).  An attacker could manipulate the data to fool your program "
36356 "into doing the wrong thing.  Consider cases such as:"
36357 msgstr ""
36358
36359 #. type: textblock
36360 #: ../src/guestfs.pod:1181
36361 msgid "the data (file etc) not being present"
36362 msgstr ""
36363
36364 #. type: textblock
36365 #: ../src/guestfs.pod:1185
36366 msgid "being present but empty"
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:1189
36371 msgid "being much larger than normal"
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:1193
36376 msgid "containing arbitrary 8 bit data"
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:1197
36381 msgid "being in an unexpected character encoding"
36382 msgstr ""
36383
36384 #. type: textblock
36385 #: ../src/guestfs.pod:1201
36386 msgid "containing homoglyphs."
36387 msgstr ""
36388
36389 #. type: =head2
36390 #: ../src/guestfs.pod:1205
36391 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36392 msgstr ""
36393
36394 #. type: textblock
36395 #: ../src/guestfs.pod:1207
36396 msgid ""
36397 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36398 "(VFS) module can sometimes be escalated into exploits by deliberately "
36399 "creating a malicious, malformed filesystem.  These exploits are very severe "
36400 "for two reasons.  Firstly there are very many filesystem drivers in the "
36401 "kernel, and many of them are infrequently used and not much developer "
36402 "attention has been paid to the code.  Linux userspace helps potential "
36403 "crackers by detecting the filesystem type and automatically choosing the "
36404 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36405 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36406 "exploit (worse in some ways), giving immediate and total access to the "
36407 "system right down to the hardware level."
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:1220
36412 msgid ""
36413 "That explains why you should never mount a filesystem from an untrusted "
36414 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36415 "inside a qemu virtual machine, usually running as a non-root user.  The "
36416 "attacker would need to write a filesystem which first exploited the kernel, "
36417 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36418 "the libguestfs protocol, and finally to be as serious as the host kernel "
36419 "exploit it would need to escalate its privileges to root.  This multi-step "
36420 "escalation, performed by a static piece of data, is thought to be extremely "
36421 "hard to do, although we never say 'never' about security issues."
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:1231
36426 msgid ""
36427 "In any case callers can reduce the attack surface by forcing the filesystem "
36428 "type when mounting (use L</guestfs_mount_vfs>)."
36429 msgstr ""
36430
36431 #. type: =head2
36432 #: ../src/guestfs.pod:1234
36433 msgid "PROTOCOL SECURITY"
36434 msgstr ""
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:1236
36438 msgid ""
36439 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36440 "defined upper message size.  However a program that uses libguestfs must "
36441 "also take care - for example you can write a program that downloads a binary "
36442 "from a disk image and executes it locally, and no amount of protocol "
36443 "security will save you from the consequences."
36444 msgstr ""
36445
36446 #. type: =head2
36447 #: ../src/guestfs.pod:1242
36448 msgid "INSPECTION SECURITY"
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:1244
36453 msgid ""
36454 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36455 "directly from the guest, and these could contain any 8 bit data.  Callers "
36456 "should be careful to escape these before printing them to a structured file "
36457 "(for example, use HTML escaping if creating a web page)."
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:1250
36462 msgid ""
36463 "Guest configuration may be altered in unusual ways by the administrator of "
36464 "the virtual machine, and may not reflect reality (particularly for untrusted "
36465 "or actively malicious guests).  For example we parse the hostname from "
36466 "configuration files like C</etc/sysconfig/network> that we find in the "
36467 "guest, but the guest administrator can easily manipulate these files to "
36468 "provide the wrong hostname."
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:1258
36473 msgid ""
36474 "The inspection API parses guest configuration using two external libraries: "
36475 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36476 "designed to be robust in the face of malicious data, although denial of "
36477 "service attacks are still possible, for example with oversized configuration "
36478 "files."
36479 msgstr ""
36480
36481 #. type: =head2
36482 #: ../src/guestfs.pod:1264
36483 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36484 msgstr ""
36485
36486 #. type: textblock
36487 #: ../src/guestfs.pod:1266
36488 msgid ""
36489 "Be very cautious about running commands from the guest.  By running a "
36490 "command in the guest, you are giving CPU time to a binary that you do not "
36491 "control, under the same user account as the library, albeit wrapped in qemu "
36492 "virtualization.  More information and alternatives can be found in the "
36493 "section L</RUNNING COMMANDS>."
36494 msgstr ""
36495
36496 #. type: =head2
36497 #: ../src/guestfs.pod:1272
36498 msgid "CVE-2010-3851"
36499 msgstr ""
36500
36501 #. type: textblock
36502 #: ../src/guestfs.pod:1274
36503 msgid "https://bugzilla.redhat.com/642934"
36504 msgstr ""
36505
36506 #. type: textblock
36507 #: ../src/guestfs.pod:1276
36508 msgid ""
36509 "This security bug concerns the automatic disk format detection that qemu "
36510 "does on disk images."
36511 msgstr ""
36512
36513 #. type: textblock
36514 #: ../src/guestfs.pod:1279
36515 msgid ""
36516 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36517 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36518 "for one of the known headers, and if none is found then assuming the disk "
36519 "image must be raw."
36520 msgstr ""
36521
36522 #. type: textblock
36523 #: ../src/guestfs.pod:1284
36524 msgid ""
36525 "This allows a guest which has been given a raw disk image to write some "
36526 "other header.  At next boot (or when the disk image is accessed by "
36527 "libguestfs) qemu would do autodetection and think the disk image format was, "
36528 "say, qcow2 based on the header written by the guest."
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:1289
36533 msgid ""
36534 "This in itself would not be a problem, but qcow2 offers many features, one "
36535 "of which is to allow a disk image to refer to another image (called the "
36536 "\"backing disk\").  It does this by placing the path to the backing disk "
36537 "into the qcow2 header.  This path is not validated and could point to any "
36538 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36539 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36540 "control of the attacker."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:1297
36545 msgid ""
36546 "In libguestfs this is rather hard to exploit except under two circumstances:"
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:1304
36551 msgid "You have enabled the network or have opened the disk in write mode."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:1308
36556 msgid ""
36557 "You are also running untrusted code from the guest (see L</RUNNING "
36558 "COMMANDS>)."
36559 msgstr ""
36560
36561 #. type: textblock
36562 #: ../src/guestfs.pod:1313
36563 msgid ""
36564 "The way to avoid this is to specify the expected disk format when adding "
36565 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36566 "should always do this if the disk is raw format, and it's a good idea for "
36567 "other cases too."
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:1318
36572 msgid ""
36573 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36574 "format is fetched from libvirt and passed through."
36575 msgstr ""
36576
36577 #. type: textblock
36578 #: ../src/guestfs.pod:1321
36579 msgid ""
36580 "For libguestfs tools, use the I<--format> command line parameter as "
36581 "appropriate."
36582 msgstr ""
36583
36584 #. type: =head1
36585 #: ../src/guestfs.pod:1324
36586 msgid "CONNECTION MANAGEMENT"
36587 msgstr ""
36588
36589 #. type: =head2
36590 #: ../src/guestfs.pod:1326
36591 msgid "guestfs_h *"
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:1328
36596 msgid ""
36597 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36598 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36599 "handle and release all resources used."
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:1332
36604 msgid ""
36605 "For information on using multiple handles and threads, see the section L</"
36606 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36607 msgstr ""
36608
36609 #. type: =head2
36610 #: ../src/guestfs.pod:1335
36611 msgid "guestfs_create"
36612 msgstr ""
36613
36614 #. type: verbatim
36615 #: ../src/guestfs.pod:1337
36616 #, no-wrap
36617 msgid ""
36618 " guestfs_h *guestfs_create (void);\n"
36619 "\n"
36620 msgstr ""
36621
36622 #. type: textblock
36623 #: ../src/guestfs.pod:1339
36624 msgid "Create a connection handle."
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:1341
36629 msgid ""
36630 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36631 "NULL."
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:1344
36636 msgid ""
36637 "You have to \"configure\" the handle after creating it.  This includes "
36638 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36639 "handle at least once."
36640 msgstr ""
36641
36642 #. type: textblock
36643 #: ../src/guestfs.pod:1348
36644 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36645 msgstr ""
36646
36647 #. type: textblock
36648 #: ../src/guestfs.pod:1350
36649 msgid ""
36650 "You may also want to configure error handling for the handle.  See the L</"
36651 "ERROR HANDLING> section below."
36652 msgstr ""
36653
36654 #. type: =head2
36655 #: ../src/guestfs.pod:1353
36656 msgid "guestfs_close"
36657 msgstr ""
36658
36659 #. type: verbatim
36660 #: ../src/guestfs.pod:1355
36661 #, no-wrap
36662 msgid ""
36663 " void guestfs_close (guestfs_h *g);\n"
36664 "\n"
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:1357
36669 msgid "This closes the connection handle and frees up all resources used."
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:1359
36674 msgid ""
36675 "If autosync was set on the handle and the handle was launched, then this "
36676 "implicitly calls various functions to unmount filesystems and sync the "
36677 "disk.  See L</guestfs_set_autosync> for more details."
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../src/guestfs.pod:1363
36682 msgid "If a close callback was set on the handle, then it is called."
36683 msgstr ""
36684
36685 #. type: =head1
36686 #: ../src/guestfs.pod:1365
36687 msgid "ERROR HANDLING"
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:1367
36692 msgid ""
36693 "API functions can return errors.  For example, almost all functions that "
36694 "return C<int> will return C<-1> to indicate an error."
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:1370
36699 msgid ""
36700 "Additional information is available for errors: an error message string and "
36701 "optionally an error number (errno) if the thing that failed was a system "
36702 "call."
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:1374
36707 msgid ""
36708 "You can get at the additional information about the last error on the handle "
36709 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36710 "up an error handler with L</guestfs_set_error_handler>."
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:1379
36715 msgid ""
36716 "When the handle is created, a default error handler is installed which "
36717 "prints the error message string to C<stderr>.  For small short-running "
36718 "command line programs it is sufficient to do:"
36719 msgstr ""
36720
36721 #. type: verbatim
36722 #: ../src/guestfs.pod:1383
36723 #, no-wrap
36724 msgid ""
36725 " if (guestfs_launch (g) == -1)\n"
36726 "   exit (EXIT_FAILURE);\n"
36727 "\n"
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:1386
36732 msgid ""
36733 "since the default error handler will ensure that an error message has been "
36734 "printed to C<stderr> before the program exits."
36735 msgstr ""
36736
36737 #. type: textblock
36738 #: ../src/guestfs.pod:1389
36739 msgid ""
36740 "For other programs the caller will almost certainly want to install an "
36741 "alternate error handler or do error handling in-line like this:"
36742 msgstr ""
36743
36744 #. type: verbatim
36745 #: ../src/guestfs.pod:1392
36746 #, no-wrap
36747 msgid ""
36748 " /* This disables the default behaviour of printing errors\n"
36749 "    on stderr. */\n"
36750 " guestfs_set_error_handler (g, NULL, NULL);\n"
36751 " \n"
36752 msgstr ""
36753
36754 #. type: verbatim
36755 #: ../src/guestfs.pod:1396
36756 #, no-wrap
36757 msgid ""
36758 " if (guestfs_launch (g) == -1) {\n"
36759 "   /* Examine the error message and print it etc. */\n"
36760 "   char *msg = guestfs_last_error (g);\n"
36761 "   int errnum = guestfs_last_errno (g);\n"
36762 "   fprintf (stderr, \"%s\", msg);\n"
36763 "   if (errnum != 0)\n"
36764 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36765 "   fprintf (stderr, \"\\n\");\n"
36766 "   /* ... */\n"
36767 " }\n"
36768 "\n"
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../src/guestfs.pod:1407
36773 msgid ""
36774 "Out of memory errors are handled differently.  The default action is to call "
36775 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36776 "guestfs_set_out_of_memory_handler>."
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../src/guestfs.pod:1411
36781 msgid ""
36782 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36783 "because there is no handle if this happens there is no way to get additional "
36784 "error information.  However L</guestfs_create> is supposed to be a "
36785 "lightweight operation which can only fail because of insufficient memory (it "
36786 "returns NULL in this case)."
36787 msgstr ""
36788
36789 #. type: =head2
36790 #: ../src/guestfs.pod:1417
36791 msgid "guestfs_last_error"
36792 msgstr ""
36793
36794 #. type: verbatim
36795 #: ../src/guestfs.pod:1419
36796 #, no-wrap
36797 msgid ""
36798 " const char *guestfs_last_error (guestfs_h *g);\n"
36799 "\n"
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../src/guestfs.pod:1421
36804 msgid ""
36805 "This returns the last error message that happened on C<g>.  If there has not "
36806 "been an error since the handle was created, then this returns C<NULL>."
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:1425
36811 msgid ""
36812 "The lifetime of the returned string is until the next error occurs, or L</"
36813 "guestfs_close> is called."
36814 msgstr ""
36815
36816 #. type: =head2
36817 #: ../src/guestfs.pod:1428
36818 msgid "guestfs_last_errno"
36819 msgstr ""
36820
36821 #. type: verbatim
36822 #: ../src/guestfs.pod:1430
36823 #, no-wrap
36824 msgid ""
36825 " int guestfs_last_errno (guestfs_h *g);\n"
36826 "\n"
36827 msgstr ""
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:1432
36831 msgid "This returns the last error number (errno) that happened on C<g>."
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:1434
36836 msgid "If successful, an errno integer not equal to zero is returned."
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:1436
36841 msgid ""
36842 "If no error, this returns 0.  This call can return 0 in three situations:"
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:1443
36847 msgid "There has not been any error on the handle."
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:1447
36852 msgid ""
36853 "There has been an error but the errno was meaningless.  This corresponds to "
36854 "the case where the error did not come from a failed system call, but for "
36855 "some other reason."
36856 msgstr ""
36857
36858 #. type: textblock
36859 #: ../src/guestfs.pod:1453
36860 msgid ""
36861 "There was an error from a failed system call, but for some reason the errno "
36862 "was not captured and returned.  This usually indicates a bug in libguestfs."
36863 msgstr ""
36864
36865 #. type: textblock
36866 #: ../src/guestfs.pod:1459
36867 msgid ""
36868 "Libguestfs tries to convert the errno from inside the applicance into a "
36869 "corresponding errno for the caller (not entirely trivial: the appliance "
36870 "might be running a completely different operating system from the library "
36871 "and error numbers are not standardized across Un*xen).  If this could not be "
36872 "done, then the error is translated to C<EINVAL>.  In practice this should "
36873 "only happen in very rare circumstances."
36874 msgstr ""
36875
36876 #. type: =head2
36877 #: ../src/guestfs.pod:1467
36878 msgid "guestfs_set_error_handler"
36879 msgstr ""
36880
36881 #. type: verbatim
36882 #: ../src/guestfs.pod:1469
36883 #, no-wrap
36884 msgid ""
36885 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36886 "                                           void *opaque,\n"
36887 "                                           const char *msg);\n"
36888 " void guestfs_set_error_handler (guestfs_h *g,\n"
36889 "                                 guestfs_error_handler_cb cb,\n"
36890 "                                 void *opaque);\n"
36891 "\n"
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../src/guestfs.pod:1476
36896 msgid ""
36897 "The callback C<cb> will be called if there is an error.  The parameters "
36898 "passed to the callback are an opaque data pointer and the error message "
36899 "string."
36900 msgstr ""
36901
36902 #. type: textblock
36903 #: ../src/guestfs.pod:1480
36904 msgid ""
36905 "C<errno> is not passed to the callback.  To get that the callback must call "
36906 "L</guestfs_last_errno>."
36907 msgstr ""
36908
36909 #. type: textblock
36910 #: ../src/guestfs.pod:1483
36911 msgid ""
36912 "Note that the message string C<msg> is freed as soon as the callback "
36913 "function returns, so if you want to stash it somewhere you must make your "
36914 "own copy."
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../src/guestfs.pod:1487
36919 msgid "The default handler prints messages on C<stderr>."
36920 msgstr ""
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:1489
36924 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36925 msgstr ""
36926
36927 #. type: =head2
36928 #: ../src/guestfs.pod:1491
36929 msgid "guestfs_get_error_handler"
36930 msgstr ""
36931
36932 #. type: verbatim
36933 #: ../src/guestfs.pod:1493
36934 #, no-wrap
36935 msgid ""
36936 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36937 "                                                     void **opaque_rtn);\n"
36938 "\n"
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:1496
36943 msgid "Returns the current error handler callback."
36944 msgstr ""
36945
36946 #. type: =head2
36947 #: ../src/guestfs.pod:1498
36948 msgid "guestfs_set_out_of_memory_handler"
36949 msgstr ""
36950
36951 #. type: verbatim
36952 #: ../src/guestfs.pod:1500
36953 #, no-wrap
36954 msgid ""
36955 " typedef void (*guestfs_abort_cb) (void);\n"
36956 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36957 "                                         guestfs_abort_cb);\n"
36958 "\n"
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:1504
36963 msgid ""
36964 "The callback C<cb> will be called if there is an out of memory situation.  "
36965 "I<Note this callback must not return>."
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:1507
36970 msgid "The default is to call L<abort(3)>."
36971 msgstr ""
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:1509
36975 msgid ""
36976 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36977 msgstr ""
36978
36979 #. type: =head2
36980 #: ../src/guestfs.pod:1512
36981 msgid "guestfs_get_out_of_memory_handler"
36982 msgstr ""
36983
36984 #. type: verbatim
36985 #: ../src/guestfs.pod:1514
36986 #, no-wrap
36987 msgid ""
36988 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36989 "\n"
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:1516
36994 msgid "This returns the current out of memory handler."
36995 msgstr ""
36996
36997 #. type: =head1
36998 #: ../src/guestfs.pod:1518
36999 msgid "API CALLS"
37000 msgstr ""
37001
37002 #. type: =head1
37003 #: ../src/guestfs.pod:1522
37004 msgid "STRUCTURES"
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:1524
37009 msgid "@STRUCTS@"
37010 msgstr ""
37011
37012 #. type: =head1
37013 #: ../src/guestfs.pod:1526
37014 msgid "AVAILABILITY"
37015 msgstr ""
37016
37017 #. type: =head2
37018 #: ../src/guestfs.pod:1528
37019 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37020 msgstr ""
37021
37022 #. type: textblock
37023 #: ../src/guestfs.pod:1530
37024 msgid ""
37025 "Using L</guestfs_available> you can test availability of the following "
37026 "groups of functions.  This test queries the appliance to see if the "
37027 "appliance you are currently using supports the functionality."
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:1535
37032 msgid "@AVAILABILITY@"
37033 msgstr ""
37034
37035 #. type: =head2
37036 #: ../src/guestfs.pod:1537
37037 msgid "GUESTFISH supported COMMAND"
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:1539
37042 msgid ""
37043 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37044 "prints out the available groups and whether they are supported by this build "
37045 "of libguestfs.  Note however that you have to do C<run> first."
37046 msgstr ""
37047
37048 #. type: =head2
37049 #: ../src/guestfs.pod:1544
37050 msgid "SINGLE CALLS AT COMPILE TIME"
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:1546
37055 msgid ""
37056 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37057 "function, such as:"
37058 msgstr ""
37059
37060 #. type: verbatim
37061 #: ../src/guestfs.pod:1549
37062 #, no-wrap
37063 msgid ""
37064 " #define LIBGUESTFS_HAVE_DD 1\n"
37065 "\n"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:1551
37070 msgid "if L</guestfs_dd> is available."
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../src/guestfs.pod:1553
37075 msgid ""
37076 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37077 "function is available at compile time, we recommended using build tools such "
37078 "as autoconf or cmake.  For example in autotools you could use:"
37079 msgstr ""
37080
37081 #. type: verbatim
37082 #: ../src/guestfs.pod:1558
37083 #, no-wrap
37084 msgid ""
37085 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37086 " AC_CHECK_FUNCS([guestfs_dd])\n"
37087 "\n"
37088 msgstr ""
37089
37090 #. type: textblock
37091 #: ../src/guestfs.pod:1561
37092 msgid ""
37093 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37094 "in your program."
37095 msgstr ""
37096
37097 #. type: =head2
37098 #: ../src/guestfs.pod:1564
37099 msgid "SINGLE CALLS AT RUN TIME"
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:1566
37104 msgid ""
37105 "Testing at compile time doesn't guarantee that a function really exists in "
37106 "the library.  The reason is that you might be dynamically linked against a "
37107 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37108 "This situation unfortunately results in a segmentation fault, which is a "
37109 "shortcoming of the C dynamic linking system itself."
37110 msgstr ""
37111
37112 #. type: textblock
37113 #: ../src/guestfs.pod:1573
37114 msgid ""
37115 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37116 "in this example program (note that you still need the compile time check as "
37117 "well):"
37118 msgstr ""
37119
37120 #. type: verbatim
37121 #: ../src/guestfs.pod:1577
37122 #, no-wrap
37123 msgid ""
37124 " #include <stdio.h>\n"
37125 " #include <stdlib.h>\n"
37126 " #include <unistd.h>\n"
37127 " #include <dlfcn.h>\n"
37128 " #include <guestfs.h>\n"
37129 " \n"
37130 msgstr ""
37131
37132 #. type: verbatim
37133 #: ../src/guestfs.pod:1583
37134 #, no-wrap
37135 msgid ""
37136 " main ()\n"
37137 " {\n"
37138 " #ifdef LIBGUESTFS_HAVE_DD\n"
37139 "   void *dl;\n"
37140 "   int has_function;\n"
37141 " \n"
37142 msgstr ""
37143
37144 #. type: verbatim
37145 #: ../src/guestfs.pod:1589
37146 #, no-wrap
37147 msgid ""
37148 "   /* Test if the function guestfs_dd is really available. */\n"
37149 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37150 "   if (!dl) {\n"
37151 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37152 "     exit (EXIT_FAILURE);\n"
37153 "   }\n"
37154 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37155 "   dlclose (dl);\n"
37156 " \n"
37157 msgstr ""
37158
37159 #. type: verbatim
37160 #: ../src/guestfs.pod:1598
37161 #, no-wrap
37162 msgid ""
37163 "   if (!has_function)\n"
37164 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37165 "   else {\n"
37166 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37167 "     /* Now it's safe to call\n"
37168 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37169 "     */\n"
37170 "   }\n"
37171 " #else\n"
37172 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37173 " #endif\n"
37174 "  }\n"
37175 "\n"
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:1611
37180 msgid ""
37181 "You may think the above is an awful lot of hassle, and it is.  There are "
37182 "other ways outside of the C linking system to ensure that this kind of "
37183 "incompatibility never arises, such as using package versioning:"
37184 msgstr ""
37185
37186 #. type: verbatim
37187 #: ../src/guestfs.pod:1616
37188 #, no-wrap
37189 msgid ""
37190 " Requires: libguestfs >= 1.0.80\n"
37191 "\n"
37192 msgstr ""
37193
37194 #. type: =head1
37195 #: ../src/guestfs.pod:1618
37196 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37197 msgstr ""
37198
37199 #. type: textblock
37200 #: ../src/guestfs.pod:1620
37201 msgid ""
37202 "A recent feature of the API is the introduction of calls which take optional "
37203 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37204 "takes variable arguments (ie. C<...>), as in this example:"
37205 msgstr ""
37206
37207 #. type: verbatim
37208 #: ../src/guestfs.pod:1625
37209 #, no-wrap
37210 msgid ""
37211 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37212 "\n"
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../src/guestfs.pod:1627
37217 msgid ""
37218 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37219 "call with no optional arguments specified:"
37220 msgstr ""
37221
37222 #. type: verbatim
37223 #: ../src/guestfs.pod:1630
37224 #, no-wrap
37225 msgid ""
37226 " guestfs_add_drive_opts (g, filename, -1);\n"
37227 "\n"
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:1632
37232 msgid "With a single optional argument:"
37233 msgstr ""
37234
37235 #. type: verbatim
37236 #: ../src/guestfs.pod:1634
37237 #, no-wrap
37238 msgid ""
37239 " guestfs_add_drive_opts (g, filename,\n"
37240 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37241 "                         -1);\n"
37242 "\n"
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../src/guestfs.pod:1638
37247 msgid "With two:"
37248 msgstr ""
37249
37250 #. type: verbatim
37251 #: ../src/guestfs.pod:1640
37252 #, no-wrap
37253 msgid ""
37254 " guestfs_add_drive_opts (g, filename,\n"
37255 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37256 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37257 "                         -1);\n"
37258 "\n"
37259 msgstr ""
37260
37261 #. type: textblock
37262 #: ../src/guestfs.pod:1645
37263 msgid ""
37264 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37265 "happen!"
37266 msgstr ""
37267
37268 #. type: =head2
37269 #: ../src/guestfs.pod:1648
37270 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37271 msgstr ""
37272
37273 #. type: textblock
37274 #: ../src/guestfs.pod:1650
37275 msgid ""
37276 "The second variant has the same name with the suffix C<_va>, which works the "
37277 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37278 "example function, this is declared:"
37279 msgstr ""
37280
37281 #. type: verbatim
37282 #: ../src/guestfs.pod:1654
37283 #, no-wrap
37284 msgid ""
37285 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37286 "                                va_list args);\n"
37287 "\n"
37288 msgstr ""
37289
37290 #. type: =head2
37291 #: ../src/guestfs.pod:1657
37292 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37293 msgstr ""
37294
37295 #. type: textblock
37296 #: ../src/guestfs.pod:1659
37297 msgid ""
37298 "The third variant is useful where you need to construct these calls.  You "
37299 "pass in a structure where you fill in the optional fields.  The structure "
37300 "has a bitmask as the first element which you must set to indicate which "
37301 "fields you have filled in.  For our example function the structure and call "
37302 "are declared:"
37303 msgstr ""
37304
37305 #. type: verbatim
37306 #: ../src/guestfs.pod:1665
37307 #, no-wrap
37308 msgid ""
37309 " struct guestfs_add_drive_opts_argv {\n"
37310 "   uint64_t bitmask;\n"
37311 "   int readonly;\n"
37312 "   const char *format;\n"
37313 "   /* ... */\n"
37314 " };\n"
37315 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37316 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37317 "\n"
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../src/guestfs.pod:1674
37322 msgid "You could call it like this:"
37323 msgstr ""
37324
37325 #. type: verbatim
37326 #: ../src/guestfs.pod:1676
37327 #, no-wrap
37328 msgid ""
37329 " struct guestfs_add_drive_opts_argv optargs = {\n"
37330 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37331 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37332 "   .readonly = 1,\n"
37333 "   .format = \"qcow2\"\n"
37334 " };\n"
37335 " \n"
37336 msgstr ""
37337
37338 #. type: verbatim
37339 #: ../src/guestfs.pod:1683
37340 #, no-wrap
37341 msgid ""
37342 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37343 "\n"
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../src/guestfs.pod:1691
37348 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:1696
37353 msgid "You do not need to fill in all fields of the structure."
37354 msgstr ""
37355
37356 #. type: textblock
37357 #: ../src/guestfs.pod:1700
37358 msgid ""
37359 "There must be a one-to-one correspondence between fields of the structure "
37360 "that are filled in, and bits set in the bitmask."
37361 msgstr ""
37362
37363 #. type: =head2
37364 #: ../src/guestfs.pod:1705
37365 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:1707
37370 msgid ""
37371 "In other languages, optional arguments are expressed in the way that is "
37372 "natural for that language.  We refer you to the language-specific "
37373 "documentation for more details on that."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:1711
37378 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37379 msgstr ""
37380
37381 #. type: =head2
37382 #: ../src/guestfs.pod:1713
37383 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:1715
37388 msgid ""
37389 "B<Note:> This section documents the generic event mechanism introduced in "
37390 "libguestfs 1.10, which you should use in new code if possible.  The old "
37391 "functions C<guestfs_set_log_message_callback>, "
37392 "C<guestfs_set_subprocess_quit_callback>, "
37393 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37394 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37395 "page.  Because of the ABI guarantee, the old functions continue to work."
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:1724
37400 msgid ""
37401 "Handles generate events when certain things happen, such as log messages "
37402 "being generated, progress messages during long-running operations, or the "
37403 "handle being closed.  The API calls described below let you register a "
37404 "callback to be called when events happen.  You can register multiple "
37405 "callbacks (for the same, different or overlapping sets of events), and "
37406 "individually remove callbacks.  If callbacks are not removed, then they "
37407 "remain in force until the handle is closed."
37408 msgstr ""
37409
37410 #. type: textblock
37411 #: ../src/guestfs.pod:1732
37412 msgid ""
37413 "In the current implementation, events are only generated synchronously: that "
37414 "means that events (and hence callbacks) can only happen while you are in the "
37415 "middle of making another libguestfs call.  The callback is called in the "
37416 "same thread."
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:1737
37421 msgid ""
37422 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37423 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37424 msgstr ""
37425
37426 #. type: =head3
37427 #: ../src/guestfs.pod:1741
37428 msgid "CLASSES OF EVENTS"
37429 msgstr ""
37430
37431 #. type: =item
37432 #: ../src/guestfs.pod:1745
37433 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:1748
37438 msgid ""
37439 "The callback function will be called while the handle is being closed "
37440 "(synchronously from L</guestfs_close>)."
37441 msgstr ""
37442
37443 #. type: textblock
37444 #: ../src/guestfs.pod:1751
37445 msgid ""
37446 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37447 "handles that are open when the program exits.  This means that this callback "
37448 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37449 "problems in higher-level languages (eg. if your HLL interpreter has already "
37450 "been cleaned up by the time this is called, and if your callback then jumps "
37451 "into some HLL function)."
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../src/guestfs.pod:1758
37456 msgid ""
37457 "If no callback is registered: the handle is closed without any callback "
37458 "being invoked."
37459 msgstr ""
37460
37461 #. type: =item
37462 #: ../src/guestfs.pod:1761
37463 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../src/guestfs.pod:1764
37468 msgid ""
37469 "The callback function will be called when the child process quits, either "
37470 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37471 "corresponds to a transition from any state to the CONFIG state)."
37472 msgstr ""
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37476 msgid "If no callback is registered: the event is ignored."
37477 msgstr ""
37478
37479 #. type: =item
37480 #: ../src/guestfs.pod:1770
37481 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37482 msgstr ""
37483
37484 #. type: textblock
37485 #: ../src/guestfs.pod:1773
37486 msgid ""
37487 "The callback function will be called when the child process becomes ready "
37488 "first time after it has been launched.  (This corresponds to a transition "
37489 "from LAUNCHING to the READY state)."
37490 msgstr ""
37491
37492 #. type: =item
37493 #: ../src/guestfs.pod:1779
37494 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:1782
37499 msgid ""
37500 "Some long-running operations can generate progress messages.  If this "
37501 "callback is registered, then it will be called each time a progress message "
37502 "is generated (usually two seconds after the operation started, and three "
37503 "times per second thereafter until it completes, although the frequency may "
37504 "change in future versions)."
37505 msgstr ""
37506
37507 #. type: textblock
37508 #: ../src/guestfs.pod:1788
37509 msgid ""
37510 "The callback receives in the payload four unsigned 64 bit numbers which are "
37511 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37512 msgstr ""
37513
37514 #. type: textblock
37515 #: ../src/guestfs.pod:1791
37516 msgid ""
37517 "The units of C<total> are not defined, although for some operations C<total> "
37518 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37519 "or megabytes), and C<position> may be the portion which has been transferred."
37520 msgstr ""
37521
37522 #. type: textblock
37523 #: ../src/guestfs.pod:1796
37524 msgid "The only defined and stable parts of the API are:"
37525 msgstr ""
37526
37527 #. type: textblock
37528 #: ../src/guestfs.pod:1802
37529 msgid ""
37530 "The callback can display to the user some type of progress bar or indicator "
37531 "which shows the ratio of C<position>:C<total>."
37532 msgstr ""
37533
37534 #. type: textblock
37535 #: ../src/guestfs.pod:1807
37536 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37537 msgstr ""
37538
37539 #. type: textblock
37540 #: ../src/guestfs.pod:1811
37541 msgid ""
37542 "If any progress notification is sent during a call, then a final progress "
37543 "notification is always sent when C<position> = C<total> (I<unless> the call "
37544 "fails with an error)."
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:1815
37549 msgid ""
37550 "This is to simplify caller code, so callers can easily set the progress "
37551 "indicator to \"100%\" at the end of the operation, without requiring special "
37552 "code to detect this case."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:1821
37557 msgid ""
37558 "For some calls we are unable to estimate the progress of the call, but we "
37559 "can still generate progress messages to indicate activity.  This is known as "
37560 "\"pulse mode\", and is directly supported by certain progress bar "
37561 "implementations (eg. GtkProgressBar)."
37562 msgstr ""
37563
37564 #. type: textblock
37565 #: ../src/guestfs.pod:1826
37566 msgid ""
37567 "For these calls, zero or more progress messages are generated with "
37568 "C<position = 0> and C<total = 1>, followed by a final message with "
37569 "C<position = total = 1>."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:1830
37574 msgid ""
37575 "As noted above, if the call fails with an error then the final message may "
37576 "not be generated."
37577 msgstr ""
37578
37579 #. type: textblock
37580 #: ../src/guestfs.pod:1835
37581 msgid ""
37582 "The callback also receives the procedure number (C<proc_nr>) and serial "
37583 "number (C<serial>) of the call.  These are only useful for debugging "
37584 "protocol issues, and the callback can normally ignore them.  The callback "
37585 "may want to print these numbers in error messages or debugging messages."
37586 msgstr ""
37587
37588 #. type: textblock
37589 #: ../src/guestfs.pod:1841
37590 msgid "If no callback is registered: progress messages are discarded."
37591 msgstr ""
37592
37593 #. type: =item
37594 #: ../src/guestfs.pod:1843
37595 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37596 msgstr ""
37597
37598 #. type: textblock
37599 #: ../src/guestfs.pod:1846
37600 msgid ""
37601 "The callback function is called whenever a log message is generated by qemu, "
37602 "the appliance kernel, guestfsd (daemon), or utility programs."
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:1849
37607 msgid ""
37608 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37609 "guestfs_launch>) then additional debug messages are generated."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37614 msgid ""
37615 "If no callback is registered: the messages are discarded unless the verbose "
37616 "flag is set in which case they are sent to stderr.  You can override the "
37617 "printing of verbose messages to stderr by setting up a callback."
37618 msgstr ""
37619
37620 #. type: =item
37621 #: ../src/guestfs.pod:1857
37622 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:1860
37627 msgid ""
37628 "The callback function is called whenever a log message is generated by the "
37629 "library part of libguestfs."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:1863
37634 msgid ""
37635 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37636 "messages are generated."
37637 msgstr ""
37638
37639 #. type: =item
37640 #: ../src/guestfs.pod:1871
37641 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37642 msgstr ""
37643
37644 #. type: textblock
37645 #: ../src/guestfs.pod:1874
37646 msgid ""
37647 "The callback function is called whenever a trace message is generated.  This "
37648 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37649 msgstr ""
37650
37651 #. type: textblock
37652 #: ../src/guestfs.pod:1877
37653 msgid ""
37654 "If no callback is registered: the messages are sent to stderr.  You can "
37655 "override the printing of trace messages to stderr by setting up a callback."
37656 msgstr ""
37657
37658 #. type: =item
37659 #: ../src/guestfs.pod:1881
37660 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37661 msgstr ""
37662
37663 #. type: textblock
37664 #: ../src/guestfs.pod:1884
37665 msgid ""
37666 "The callback function is called whenever a libguestfs function is entered."
37667 msgstr ""
37668
37669 #. type: textblock
37670 #: ../src/guestfs.pod:1887
37671 msgid ""
37672 "The payload is a string which contains the name of the function that we are "
37673 "entering (not including C<guestfs_> prefix)."
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:1890
37678 msgid ""
37679 "Note that libguestfs functions can call themselves, so you may see many "
37680 "events from a single call.  A few libguestfs functions do not generate this "
37681 "event."
37682 msgstr ""
37683
37684 #. type: =head3
37685 #: ../src/guestfs.pod:1898
37686 msgid "guestfs_set_event_callback"
37687 msgstr ""
37688
37689 #. type: verbatim
37690 #: ../src/guestfs.pod:1900
37691 #, no-wrap
37692 msgid ""
37693 " int guestfs_set_event_callback (guestfs_h *g,\n"
37694 "                                 guestfs_event_callback cb,\n"
37695 "                                 uint64_t event_bitmask,\n"
37696 "                                 int flags,\n"
37697 "                                 void *opaque);\n"
37698 "\n"
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:1906
37703 msgid ""
37704 "This function registers a callback (C<cb>) for all event classes in the "
37705 "C<event_bitmask>."
37706 msgstr ""
37707
37708 #. type: textblock
37709 #: ../src/guestfs.pod:1909
37710 msgid ""
37711 "For example, to register for all log message events, you could call this "
37712 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37713 "To register a single callback for all possible classes of events, use "
37714 "C<GUESTFS_EVENT_ALL>."
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../src/guestfs.pod:1915
37719 msgid "C<flags> should always be passed as 0."
37720 msgstr ""
37721
37722 #. type: textblock
37723 #: ../src/guestfs.pod:1917
37724 msgid ""
37725 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37726 "it for any purpose."
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:1920
37731 msgid ""
37732 "The return value is the event handle (an integer) which you can use to "
37733 "delete the callback (see below)."
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:1923
37738 msgid ""
37739 "If there is an error, this function returns C<-1>, and sets the error in the "
37740 "handle in the usual way (see L</guestfs_last_error> etc.)"
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:1926
37745 msgid ""
37746 "Callbacks remain in effect until they are deleted, or until the handle is "
37747 "closed."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:1929
37752 msgid ""
37753 "In the case where multiple callbacks are registered for a particular event "
37754 "class, all of the callbacks are called.  The order in which multiple "
37755 "callbacks are called is not defined."
37756 msgstr ""
37757
37758 #. type: =head3
37759 #: ../src/guestfs.pod:1933
37760 msgid "guestfs_delete_event_callback"
37761 msgstr ""
37762
37763 #. type: verbatim
37764 #: ../src/guestfs.pod:1935
37765 #, no-wrap
37766 msgid ""
37767 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37768 "\n"
37769 msgstr ""
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:1937
37773 msgid ""
37774 "Delete a callback that was previously registered.  C<event_handle> should be "
37775 "the integer that was returned by a previous call to "
37776 "C<guestfs_set_event_callback> on the same handle."
37777 msgstr ""
37778
37779 #. type: =head3
37780 #: ../src/guestfs.pod:1941
37781 msgid "guestfs_event_callback"
37782 msgstr ""
37783
37784 #. type: verbatim
37785 #: ../src/guestfs.pod:1943
37786 #, no-wrap
37787 msgid ""
37788 " typedef void (*guestfs_event_callback) (\n"
37789 "                  guestfs_h *g,\n"
37790 "                  void *opaque,\n"
37791 "                  uint64_t event,\n"
37792 "                  int event_handle,\n"
37793 "                  int flags,\n"
37794 "                  const char *buf, size_t buf_len,\n"
37795 "                  const uint64_t *array, size_t array_len);\n"
37796 "\n"
37797 msgstr ""
37798
37799 #. type: textblock
37800 #: ../src/guestfs.pod:1952
37801 msgid ""
37802 "This is the type of the event callback function that you have to provide."
37803 msgstr ""
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:1955
37807 msgid ""
37808 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37809 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37810 "handle, and C<flags> which in the current API you should ignore."
37811 msgstr ""
37812
37813 #. type: textblock
37814 #: ../src/guestfs.pod:1959
37815 msgid ""
37816 "The remaining parameters contain the event payload (if any).  Each event may "
37817 "contain a payload, which usually relates to the event class, but for future "
37818 "proofing your code should be written to handle any payload for any event "
37819 "class."
37820 msgstr ""
37821
37822 #. type: textblock
37823 #: ../src/guestfs.pod:1964
37824 msgid ""
37825 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37826 "there is no message buffer).  Note that this message buffer can contain "
37827 "arbitrary 8 bit data, including NUL bytes."
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:1968
37832 msgid ""
37833 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37834 "moment this is only used for progress messages."
37835 msgstr ""
37836
37837 #. type: =head3
37838 #: ../src/guestfs.pod:1971
37839 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:1973
37844 msgid ""
37845 "One motivation for the generic event API was to allow GUI programs to "
37846 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37847 "unconditionally to C<stderr>."
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:1977
37852 msgid ""
37853 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37854 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37855 "messages are not events; you must capture error messages separately)."
37856 msgstr ""
37857
37858 #. type: textblock
37859 #: ../src/guestfs.pod:1982
37860 msgid ""
37861 "Programs have to set up a callback to capture the classes of events of "
37862 "interest:"
37863 msgstr ""
37864
37865 #. type: verbatim
37866 #: ../src/guestfs.pod:1985
37867 #, no-wrap
37868 msgid ""
37869 " int eh =\n"
37870 "   guestfs_set_event_callback\n"
37871 "     (g, message_callback,\n"
37872 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37873 "      GUESTFS_EVENT_TRACE,\n"
37874 "      0, NULL) == -1)\n"
37875 " if (eh == -1) {\n"
37876 "   // handle error in the usual way\n"
37877 " }\n"
37878 "\n"
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:1995
37883 msgid ""
37884 "The callback can then direct messages to the appropriate place.  In this "
37885 "example, messages are directed to syslog:"
37886 msgstr ""
37887
37888 #. type: verbatim
37889 #: ../src/guestfs.pod:1998
37890 #, no-wrap
37891 msgid ""
37892 " static void\n"
37893 " message_callback (\n"
37894 "         guestfs_h *g,\n"
37895 "         void *opaque,\n"
37896 "         uint64_t event,\n"
37897 "         int event_handle,\n"
37898 "         int flags,\n"
37899 "         const char *buf, size_t buf_len,\n"
37900 "         const uint64_t *array, size_t array_len)\n"
37901 " {\n"
37902 "   const int priority = LOG_USER|LOG_INFO;\n"
37903 "   if (buf_len > 0)\n"
37904 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37905 " }\n"
37906 "\n"
37907 msgstr ""
37908
37909 #. type: =head1
37910 #: ../src/guestfs.pod:2013
37911 msgid "CANCELLING LONG TRANSFERS"
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:2015
37916 msgid ""
37917 "Some operations can be cancelled by the caller while they are in progress.  "
37918 "Currently only operations that involve uploading or downloading data can be "
37919 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37920 "parameters in the generator)."
37921 msgstr ""
37922
37923 #. type: =head2
37924 #: ../src/guestfs.pod:2020
37925 msgid "guestfs_user_cancel"
37926 msgstr ""
37927
37928 #. type: verbatim
37929 #: ../src/guestfs.pod:2022
37930 #, no-wrap
37931 msgid ""
37932 " void guestfs_user_cancel (guestfs_h *g);\n"
37933 "\n"
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:2024
37938 msgid ""
37939 "C<guestfs_user_cancel> cancels the current upload or download operation."
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:2027
37944 msgid ""
37945 "Unlike most other libguestfs calls, this function is signal safe and thread "
37946 "safe.  You can call it from a signal handler or from another thread, without "
37947 "needing to do any locking."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../src/guestfs.pod:2031
37952 msgid ""
37953 "The transfer that was in progress (if there is one) will stop shortly "
37954 "afterwards, and will return an error.  The errno (see L</"
37955 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37956 "out if the operation was cancelled or failed because of another error."
37957 msgstr ""
37958
37959 #. type: textblock
37960 #: ../src/guestfs.pod:2037
37961 msgid ""
37962 "No cleanup is performed: for example, if a file was being uploaded then "
37963 "after cancellation there may be a partially uploaded file.  It is the "
37964 "caller's responsibility to clean up if necessary."
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:2041
37969 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37970 msgstr ""
37971
37972 #. type: textblock
37973 #: ../src/guestfs.pod:2043
37974 msgid ""
37975 "In an interactive text-based program, you might call it from a C<SIGINT> "
37976 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37977 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37978 "receive the C<^C> signal)."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:2048
37983 msgid ""
37984 "In a graphical program, when the main thread is displaying a progress bar "
37985 "with a cancel button, wire up the cancel button to call this function."
37986 msgstr ""
37987
37988 #. type: =head1
37989 #: ../src/guestfs.pod:2052
37990 msgid "PRIVATE DATA AREA"
37991 msgstr ""
37992
37993 #. type: textblock
37994 #: ../src/guestfs.pod:2054
37995 msgid ""
37996 "You can attach named pieces of private data to the libguestfs handle, fetch "
37997 "them by name, and walk over them, for the lifetime of the handle.  This is "
37998 "called the private data area and is only available from the C API."
37999 msgstr ""
38000
38001 #. type: textblock
38002 #: ../src/guestfs.pod:2059
38003 msgid "To attach a named piece of data, use the following call:"
38004 msgstr ""
38005
38006 #. type: verbatim
38007 #: ../src/guestfs.pod:2061
38008 #, no-wrap
38009 msgid ""
38010 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38011 "\n"
38012 msgstr ""
38013
38014 #. type: textblock
38015 #: ../src/guestfs.pod:2063
38016 msgid ""
38017 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38018 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38019 "overwritten."
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../src/guestfs.pod:2067
38024 msgid ""
38025 "You can use any C<key> you want, but your key should I<not> start with an "
38026 "underscore character.  Keys beginning with an underscore character are "
38027 "reserved for internal libguestfs purposes (eg. for implementing language "
38028 "bindings).  It is recommended that you prefix the key with some unique "
38029 "string to avoid collisions with other users."
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:2073
38034 msgid "To retrieve the pointer, use:"
38035 msgstr ""
38036
38037 #. type: verbatim
38038 #: ../src/guestfs.pod:2075
38039 #, no-wrap
38040 msgid ""
38041 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38042 "\n"
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:2077
38047 msgid ""
38048 "This function returns C<NULL> if either no data is found associated with "
38049 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38050 "C<NULL>."
38051 msgstr ""
38052
38053 #. type: textblock
38054 #: ../src/guestfs.pod:2081
38055 msgid ""
38056 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38057 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38058 "all.  In particular, libguestfs does I<not> try to free the data when the "
38059 "handle is closed.  If the data must be freed, then the caller must either "
38060 "free it before calling L</guestfs_close> or must set up a close callback to "
38061 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:2088
38066 msgid "To walk over all entries, use these two functions:"
38067 msgstr ""
38068
38069 #. type: verbatim
38070 #: ../src/guestfs.pod:2090
38071 #, no-wrap
38072 msgid ""
38073 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38074 "\n"
38075 msgstr ""
38076
38077 #. type: verbatim
38078 #: ../src/guestfs.pod:2092
38079 #, no-wrap
38080 msgid ""
38081 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38082 "\n"
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:2094
38087 msgid ""
38088 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38089 "not have any particular meaning -- keys are not returned in any defined "
38090 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38091 "corresponding data pointer is returned from the function.  C<NULL> is "
38092 "returned if there are no keys stored in the handle."
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:2100
38097 msgid ""
38098 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38099 "value of this function is also C<NULL> is there are no further entries to "
38100 "return."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:2104
38105 msgid "Notes about walking over entries:"
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../src/guestfs.pod:2110
38110 msgid ""
38111 "You must not call C<guestfs_set_private> while walking over the entries."
38112 msgstr ""
38113
38114 #. type: textblock
38115 #: ../src/guestfs.pod:2115
38116 msgid ""
38117 "The handle maintains an internal iterator which is reset when you call "
38118 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38119 "call C<guestfs_set_private>."
38120 msgstr ""
38121
38122 #. type: textblock
38123 #: ../src/guestfs.pod:2121
38124 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38125 msgstr ""
38126
38127 #. type: verbatim
38128 #: ../src/guestfs.pod:2123
38129 #, no-wrap
38130 msgid ""
38131 " guestfs_set_private (g, key, NULL);\n"
38132 "\n"
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../src/guestfs.pod:2125
38137 msgid "then that C<key> is not returned when walking."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:2129
38142 msgid ""
38143 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38144 "C<guestfs_next_private> or C<guestfs_set_private>."
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:2135
38149 msgid ""
38150 "The following example code shows how to print all keys and data pointers "
38151 "that are associated with the handle C<g>:"
38152 msgstr ""
38153
38154 #. type: verbatim
38155 #: ../src/guestfs.pod:2138
38156 #, no-wrap
38157 msgid ""
38158 " const char *key;\n"
38159 " void *data = guestfs_first_private (g, &key);\n"
38160 " while (data != NULL)\n"
38161 "   {\n"
38162 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38163 "     data = guestfs_next_private (g, &key);\n"
38164 "   }\n"
38165 "\n"
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:2146
38170 msgid ""
38171 "More commonly you are only interested in keys that begin with an application-"
38172 "specific prefix C<foo_>.  Modify the loop like so:"
38173 msgstr ""
38174
38175 #. type: verbatim
38176 #: ../src/guestfs.pod:2149
38177 #, no-wrap
38178 msgid ""
38179 " const char *key;\n"
38180 " void *data = guestfs_first_private (g, &key);\n"
38181 " while (data != NULL)\n"
38182 "   {\n"
38183 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38184 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38185 "     data = guestfs_next_private (g, &key);\n"
38186 "   }\n"
38187 "\n"
38188 msgstr ""
38189
38190 #. type: textblock
38191 #: ../src/guestfs.pod:2158
38192 msgid ""
38193 "If you need to modify keys while walking, then you have to jump back to the "
38194 "beginning of the loop.  For example, to delete all keys prefixed with "
38195 "C<foo_>:"
38196 msgstr ""
38197
38198 #. type: verbatim
38199 #: ../src/guestfs.pod:2162
38200 #, no-wrap
38201 msgid ""
38202 "  const char *key;\n"
38203 "  void *data;\n"
38204 " again:\n"
38205 "  data = guestfs_first_private (g, &key);\n"
38206 "  while (data != NULL)\n"
38207 "    {\n"
38208 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38209 "        {\n"
38210 "          guestfs_set_private (g, key, NULL);\n"
38211 "          /* note that 'key' pointer is now invalid, and so is\n"
38212 "             the internal iterator */\n"
38213 "          goto again;\n"
38214 "        }\n"
38215 "      data = guestfs_next_private (g, &key);\n"
38216 "    }\n"
38217 "\n"
38218 msgstr ""
38219
38220 #. type: textblock
38221 #: ../src/guestfs.pod:2178
38222 msgid ""
38223 "Note that the above loop is guaranteed to terminate because the keys are "
38224 "being deleted, but other manipulations of keys within the loop might not "
38225 "terminate unless you also maintain an indication of which keys have been "
38226 "visited."
38227 msgstr ""
38228
38229 #. type: =head1
38230 #: ../src/guestfs.pod:2183
38231 msgid "SYSTEMTAP"
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:2185
38236 msgid ""
38237 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38238 "true of any library, not just libguestfs.  However libguestfs also contains "
38239 "static markers to help in probing internal operations."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2189
38244 msgid "You can list all the static markers by doing:"
38245 msgstr ""
38246
38247 #. type: verbatim
38248 #: ../src/guestfs.pod:2191
38249 #, no-wrap
38250 msgid ""
38251 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38252 "              .provider(\"guestfs\").mark(\"*\")'\n"
38253 "\n"
38254 msgstr ""
38255
38256 #. type: textblock
38257 #: ../src/guestfs.pod:2194
38258 msgid ""
38259 "B<Note:> These static markers are I<not> part of the stable API and may "
38260 "change in future versions."
38261 msgstr ""
38262
38263 #. type: =head2
38264 #: ../src/guestfs.pod:2197
38265 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../src/guestfs.pod:2199
38270 msgid ""
38271 "This script contains examples of displaying both the static markers and some "
38272 "ordinary C entry points:"
38273 msgstr ""
38274
38275 #. type: verbatim
38276 #: ../src/guestfs.pod:2202
38277 #, no-wrap
38278 msgid ""
38279 " global last;\n"
38280 " \n"
38281 msgstr ""
38282
38283 #. type: verbatim
38284 #: ../src/guestfs.pod:2204
38285 #, no-wrap
38286 msgid ""
38287 " function display_time () {\n"
38288 "       now = gettimeofday_us ();\n"
38289 "       delta = 0;\n"
38290 "       if (last > 0)\n"
38291 "             delta = now - last;\n"
38292 "       last = now;\n"
38293 " \n"
38294 msgstr ""
38295
38296 #. type: verbatim
38297 #: ../src/guestfs.pod:2211
38298 #, no-wrap
38299 msgid ""
38300 "       printf (\"%d (+%d):\", now, delta);\n"
38301 " }\n"
38302 " \n"
38303 msgstr ""
38304
38305 #. type: verbatim
38306 #: ../src/guestfs.pod:2214
38307 #, no-wrap
38308 msgid ""
38309 " probe begin {\n"
38310 "       last = 0;\n"
38311 "       printf (\"ready\\n\");\n"
38312 " }\n"
38313 " \n"
38314 msgstr ""
38315
38316 #. type: verbatim
38317 #: ../src/guestfs.pod:2219
38318 #, no-wrap
38319 msgid ""
38320 " /* Display all calls to static markers. */\n"
38321 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38322 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38323 "       display_time();\n"
38324 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38325 " }\n"
38326 " \n"
38327 msgstr ""
38328
38329 #. type: verbatim
38330 #: ../src/guestfs.pod:2226
38331 #, no-wrap
38332 msgid ""
38333 " /* Display all calls to guestfs_mkfs* functions. */\n"
38334 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38335 "           .function(\"guestfs_mkfs*\") ? {\n"
38336 "       display_time();\n"
38337 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38338 " }\n"
38339 "\n"
38340 msgstr ""
38341
38342 #. type: textblock
38343 #: ../src/guestfs.pod:2233
38344 msgid ""
38345 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38346 "program.  Note that you either have to be root, or you have to add yourself "
38347 "to several special stap groups.  Consult the systemtap documentation for "
38348 "more information."
38349 msgstr ""
38350
38351 #. type: verbatim
38352 #: ../src/guestfs.pod:2238
38353 #, no-wrap
38354 msgid ""
38355 " # stap /tmp/test.stap\n"
38356 " ready\n"
38357 "\n"
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../src/guestfs.pod:2241
38362 msgid "In another terminal, run a guestfish command such as this:"
38363 msgstr ""
38364
38365 #. type: textblock
38366 #: ../src/guestfs.pod:2245
38367 msgid "In the first terminal, stap trace output similar to this is shown:"
38368 msgstr ""
38369
38370 #. type: verbatim
38371 #: ../src/guestfs.pod:2247
38372 #, no-wrap
38373 msgid ""
38374 " 1318248056692655 (+0):\tlaunch_start\n"
38375 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38376 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38377 " 1318248056838059 (+19774):     launch_run_qemu\n"
38378 " 1318248061071167 (+4233108):   launch_end\n"
38379 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38380 "\n"
38381 msgstr ""
38382
38383 #. type: =end
38384 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38385 msgid "html"
38386 msgstr ""
38387
38388 #. type: textblock
38389 #: ../src/guestfs.pod:2256
38390 msgid ""
38391 "<!-- old anchor for the next section --> <a name="
38392 "\"state_machine_and_low_level_event_api\"/>"
38393 msgstr ""
38394
38395 #. type: =head1
38396 #: ../src/guestfs.pod:2261
38397 msgid "ARCHITECTURE"
38398 msgstr ""
38399
38400 #. type: textblock
38401 #: ../src/guestfs.pod:2263
38402 msgid ""
38403 "Internally, libguestfs is implemented by running an appliance (a special "
38404 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38405 "process of the main program."
38406 msgstr ""
38407
38408 #. type: verbatim
38409 #: ../src/guestfs.pod:2267
38410 #, no-wrap
38411 msgid ""
38412 "  ___________________\n"
38413 " /                   \\\n"
38414 " | main program      |\n"
38415 " |                   |\n"
38416 " |                   |           child process / appliance\n"
38417 " |                   |           __________________________\n"
38418 " |                   |          / qemu                     \\\n"
38419 " +-------------------+   RPC    |      +-----------------+ |\n"
38420 " | libguestfs     <--------------------> guestfsd        | |\n"
38421 " |                   |          |      +-----------------+ |\n"
38422 " \\___________________/          |      | Linux kernel    | |\n"
38423 "                                |      +--^--------------+ |\n"
38424 "                                \\_________|________________/\n"
38425 "                                          |\n"
38426 "                                   _______v______\n"
38427 "                                  /              \\\n"
38428 "                                  | Device or    |\n"
38429 "                                  | disk image   |\n"
38430 "                                  \\______________/\n"
38431 "\n"
38432 msgstr ""
38433
38434 #. type: textblock
38435 #: ../src/guestfs.pod:2287
38436 msgid ""
38437 "The library, linked to the main program, creates the child process and hence "
38438 "the appliance in the L</guestfs_launch> function."
38439 msgstr ""
38440
38441 #. type: textblock
38442 #: ../src/guestfs.pod:2290
38443 msgid ""
38444 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38445 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38446 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38447 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38448 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38449 "attached to the qemu process which translates device access by the "
38450 "appliance's Linux kernel into accesses to the image."
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:2299
38455 msgid ""
38456 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38457 "Although the disk image you are attached to might also be used by some "
38458 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38459 "care if both libguestfs's qemu process and your virtual machine are trying "
38460 "to update the disk image at the same time, since these usually results in "
38461 "massive disk corruption)."
38462 msgstr ""
38463
38464 #. type: =head1
38465 #: ../src/guestfs.pod:2306
38466 msgid "STATE MACHINE"
38467 msgstr ""
38468
38469 #. type: textblock
38470 #: ../src/guestfs.pod:2308
38471 msgid "libguestfs uses a state machine to model the child process:"
38472 msgstr ""
38473
38474 #. type: verbatim
38475 #: ../src/guestfs.pod:2310
38476 #, no-wrap
38477 msgid ""
38478 "                         |\n"
38479 "                    guestfs_create\n"
38480 "                         |\n"
38481 "                         |\n"
38482 "                     ____V_____\n"
38483 "                    /          \\\n"
38484 "                    |  CONFIG  |\n"
38485 "                    \\__________/\n"
38486 "                     ^ ^   ^  \\\n"
38487 "                    /  |    \\  \\ guestfs_launch\n"
38488 "                   /   |    _\\__V______\n"
38489 "                  /    |   /           \\\n"
38490 "                 /     |   | LAUNCHING |\n"
38491 "                /      |   \\___________/\n"
38492 "               /       |       /\n"
38493 "              /        |  guestfs_launch\n"
38494 "             /         |     /\n"
38495 "    ______  /        __|____V\n"
38496 "   /      \\ ------> /        \\\n"
38497 "   | BUSY |         | READY  |\n"
38498 "   \\______/ <------ \\________/\n"
38499 "\n"
38500 msgstr ""
38501
38502 #. type: textblock
38503 #: ../src/guestfs.pod:2332
38504 msgid ""
38505 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38506 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38507 "(3) alternating between READY and BUSY as commands are issued to, and "
38508 "carried out by, the child process."
38509 msgstr ""
38510
38511 #. type: textblock
38512 #: ../src/guestfs.pod:2337
38513 msgid ""
38514 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38515 "asynchronously at any time (eg. due to some internal error), and that causes "
38516 "the state to transition back to CONFIG."
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../src/guestfs.pod:2341
38521 msgid ""
38522 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38523 "issued when in the CONFIG state."
38524 msgstr ""
38525
38526 #. type: textblock
38527 #: ../src/guestfs.pod:2344
38528 msgid ""
38529 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38530 "L</guestfs_launch> blocks until the child process is READY to accept "
38531 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38532 "moves the state from CONFIG to LAUNCHING while it is running."
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:2350
38537 msgid ""
38538 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38539 "state.  These API calls block waiting for the command to be carried out (ie. "
38540 "the state to transition to BUSY and then back to READY).  There are no non-"
38541 "blocking versions, and no way to issue more than one command per handle at "
38542 "the same time."
38543 msgstr ""
38544
38545 #. type: textblock
38546 #: ../src/guestfs.pod:2356
38547 msgid ""
38548 "Finally, the child process sends asynchronous messages back to the main "
38549 "program, such as kernel log messages.  You can register a callback to "
38550 "receive these messages."
38551 msgstr ""
38552
38553 #. type: =head1
38554 #: ../src/guestfs.pod:2360
38555 msgid "INTERNALS"
38556 msgstr ""
38557
38558 #. type: =head2
38559 #: ../src/guestfs.pod:2362
38560 msgid "APPLIANCE BOOT PROCESS"
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:2364
38565 msgid ""
38566 "This process has evolved and continues to evolve.  The description here "
38567 "corresponds only to the current version of libguestfs and is provided for "
38568 "information only."
38569 msgstr ""
38570
38571 #. type: textblock
38572 #: ../src/guestfs.pod:2368
38573 msgid ""
38574 "In order to follow the stages involved below, enable libguestfs debugging "
38575 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38576 msgstr ""
38577
38578 #. type: =item
38579 #: ../src/guestfs.pod:2373
38580 msgid "Create the appliance"
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../src/guestfs.pod:2375
38585 msgid ""
38586 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38587 "initrd and the appliance."
38588 msgstr ""
38589
38590 #. type: textblock
38591 #: ../src/guestfs.pod:2378
38592 msgid ""
38593 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38594 "directory if C<TMPDIR> is set)."
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../src/guestfs.pod:2381
38599 msgid ""
38600 "For a complete description of how the appliance is created and cached, read "
38601 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38602 msgstr ""
38603
38604 #. type: =item
38605 #: ../src/guestfs.pod:2385
38606 msgid "Start qemu and boot the kernel"
38607 msgstr ""
38608
38609 #. type: textblock
38610 #: ../src/guestfs.pod:2387
38611 msgid "qemu is invoked to boot the kernel."
38612 msgstr ""
38613
38614 #. type: =item
38615 #: ../src/guestfs.pod:2389
38616 msgid "Run the initrd"
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:2391
38621 msgid ""
38622 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38623 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38624 "order that the appliance itself can be mounted and started."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:2395
38629 msgid ""
38630 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38631 "initrd>."
38632 msgstr ""
38633
38634 #. type: textblock
38635 #: ../src/guestfs.pod:2398
38636 msgid ""
38637 "When the initrd has started you will see messages showing that kernel "
38638 "modules are being loaded, similar to this:"
38639 msgstr ""
38640
38641 #. type: verbatim
38642 #: ../src/guestfs.pod:2401
38643 #, no-wrap
38644 msgid ""
38645 " febootstrap: ext2 mini initrd starting up\n"
38646 " febootstrap: mounting /sys\n"
38647 " febootstrap: internal insmod libcrc32c.ko\n"
38648 " febootstrap: internal insmod crc32c-intel.ko\n"
38649 "\n"
38650 msgstr ""
38651
38652 #. type: =item
38653 #: ../src/guestfs.pod:2406
38654 msgid "Find and mount the appliance device"
38655 msgstr ""
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:2408
38659 msgid ""
38660 "The appliance is a sparse file containing an ext2 filesystem which contains "
38661 "a familiar (although reduced in size) Linux operating system.  It would "
38662 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:2412
38667 msgid ""
38668 "The regular disks being inspected by libguestfs are the first devices "
38669 "exposed by qemu (eg. as C</dev/vda>)."
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../src/guestfs.pod:2415
38674 msgid ""
38675 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38676 "there was only one regular disk)."
38677 msgstr ""
38678
38679 #. type: textblock
38680 #: ../src/guestfs.pod:2418
38681 msgid ""
38682 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38683 "and switch root into the appliance, and run C</init> from the appliance."
38684 msgstr ""
38685
38686 #. type: textblock
38687 #: ../src/guestfs.pod:2422
38688 msgid "If this works successfully you will see messages such as:"
38689 msgstr ""
38690
38691 #. type: verbatim
38692 #: ../src/guestfs.pod:2424
38693 #, no-wrap
38694 msgid ""
38695 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38696 " febootstrap: creating /dev/root as block special 252:16\n"
38697 " febootstrap: mounting new root on /root\n"
38698 " febootstrap: chroot\n"
38699 " Starting /init script ...\n"
38700 "\n"
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:2430
38705 msgid ""
38706 "Note that C<Starting /init script ...> indicates that the appliance's init "
38707 "script is now running."
38708 msgstr ""
38709
38710 #. type: =item
38711 #: ../src/guestfs.pod:2433
38712 msgid "Initialize the appliance"
38713 msgstr ""
38714
38715 #. type: textblock
38716 #: ../src/guestfs.pod:2435
38717 msgid ""
38718 "The appliance itself now initializes itself.  This involves starting certain "
38719 "processes like C<udev>, possibly printing some debug information, and "
38720 "finally running the daemon (C<guestfsd>)."
38721 msgstr ""
38722
38723 #. type: =item
38724 #: ../src/guestfs.pod:2439
38725 msgid "The daemon"
38726 msgstr ""
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:2441
38730 msgid ""
38731 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38732 "should see:"
38733 msgstr ""
38734
38735 #. type: verbatim
38736 #: ../src/guestfs.pod:2444
38737 #, no-wrap
38738 msgid ""
38739 " verbose daemon enabled\n"
38740 "\n"
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:2446
38745 msgid ""
38746 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38747 "connected on the other end to the library."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2449
38752 msgid ""
38753 "The daemon connects to this port (and hence to the library) and sends a four "
38754 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38755 "protocol (see below)."
38756 msgstr ""
38757
38758 #. type: =head2
38759 #: ../src/guestfs.pod:2455
38760 msgid "COMMUNICATION PROTOCOL"
38761 msgstr ""
38762
38763 #. type: textblock
38764 #: ../src/guestfs.pod:2457
38765 msgid ""
38766 "Don't rely on using this protocol directly.  This section documents how it "
38767 "currently works, but it may change at any time."
38768 msgstr ""
38769
38770 #. type: textblock
38771 #: ../src/guestfs.pod:2460
38772 msgid ""
38773 "The protocol used to talk between the library and the daemon running inside "
38774 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38775 "1014, RFC 1832, RFC 4506)."
38776 msgstr ""
38777
38778 #. type: textblock
38779 #: ../src/guestfs.pod:2464
38780 msgid ""
38781 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38782 "this file is automatically generated)."
38783 msgstr ""
38784
38785 #. type: textblock
38786 #: ../src/guestfs.pod:2467
38787 msgid ""
38788 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38789 "and C<FileOut> parameters, which are handled with very simple request/reply "
38790 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38791 "parameters, which use the same request and reply messages, but they may also "
38792 "be followed by files sent using a chunked encoding."
38793 msgstr ""
38794
38795 #. type: =head3
38796 #: ../src/guestfs.pod:2474
38797 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38798 msgstr ""
38799
38800 #. type: textblock
38801 #: ../src/guestfs.pod:2476
38802 msgid "For ordinary functions, the request message is:"
38803 msgstr ""
38804
38805 #. type: verbatim
38806 #: ../src/guestfs.pod:2478
38807 #, no-wrap
38808 msgid ""
38809 " total length (header + arguments,\n"
38810 "      but not including the length word itself)\n"
38811 " struct guestfs_message_header (encoded as XDR)\n"
38812 " struct guestfs_<foo>_args (encoded as XDR)\n"
38813 "\n"
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:2483
38818 msgid ""
38819 "The total length field allows the daemon to allocate a fixed size buffer "
38820 "into which it slurps the rest of the message.  As a result, the total length "
38821 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38822 "effective size of any request is limited to somewhere under this size."
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../src/guestfs.pod:2489
38827 msgid ""
38828 "Note also that many functions don't take any arguments, in which case the "
38829 "C<guestfs_I<foo>_args> is completely omitted."
38830 msgstr ""
38831
38832 #. type: textblock
38833 #: ../src/guestfs.pod:2492
38834 msgid ""
38835 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38836 "receiver knows what type of args structure to expect, or none at all."
38837 msgstr ""
38838
38839 #. type: textblock
38840 #: ../src/guestfs.pod:2496
38841 msgid ""
38842 "For functions that take optional arguments, the optional arguments are "
38843 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38844 "arguments.  A bitmask in the header indicates which optional arguments are "
38845 "meaningful.  The bitmask is also checked to see if it contains bits set "
38846 "which the daemon does not know about (eg. if more optional arguments were "
38847 "added in a later version of the library), and this causes the call to be "
38848 "rejected."
38849 msgstr ""
38850
38851 #. type: textblock
38852 #: ../src/guestfs.pod:2504
38853 msgid "The reply message for ordinary functions is:"
38854 msgstr ""
38855
38856 #. type: verbatim
38857 #: ../src/guestfs.pod:2506
38858 #, no-wrap
38859 msgid ""
38860 " total length (header + ret,\n"
38861 "      but not including the length word itself)\n"
38862 " struct guestfs_message_header (encoded as XDR)\n"
38863 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38864 "\n"
38865 msgstr ""
38866
38867 #. type: textblock
38868 #: ../src/guestfs.pod:2511
38869 msgid ""
38870 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38871 "functions that return no formal return values."
38872 msgstr ""
38873
38874 #. type: textblock
38875 #: ../src/guestfs.pod:2514
38876 msgid ""
38877 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38878 msgstr ""
38879
38880 #. type: textblock
38881 #: ../src/guestfs.pod:2517
38882 msgid ""
38883 "In the case of an error, a flag is set in the header, and the reply message "
38884 "is slightly changed:"
38885 msgstr ""
38886
38887 #. type: verbatim
38888 #: ../src/guestfs.pod:2520
38889 #, no-wrap
38890 msgid ""
38891 " total length (header + error,\n"
38892 "      but not including the length word itself)\n"
38893 " struct guestfs_message_header (encoded as XDR)\n"
38894 " struct guestfs_message_error (encoded as XDR)\n"
38895 "\n"
38896 msgstr ""
38897
38898 #. type: textblock
38899 #: ../src/guestfs.pod:2525
38900 msgid ""
38901 "The C<guestfs_message_error> structure contains the error message as a "
38902 "string."
38903 msgstr ""
38904
38905 #. type: =head3
38906 #: ../src/guestfs.pod:2528
38907 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38908 msgstr ""
38909
38910 #. type: textblock
38911 #: ../src/guestfs.pod:2530
38912 msgid ""
38913 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38914 "The normal request message is sent (see above).  However this is followed by "
38915 "a sequence of file chunks."
38916 msgstr ""
38917
38918 #. type: verbatim
38919 #: ../src/guestfs.pod:2534
38920 #, no-wrap
38921 msgid ""
38922 " total length (header + arguments,\n"
38923 "      but not including the length word itself,\n"
38924 "      and not including the chunks)\n"
38925 " struct guestfs_message_header (encoded as XDR)\n"
38926 " struct guestfs_<foo>_args (encoded as XDR)\n"
38927 " sequence of chunks for FileIn param #0\n"
38928 " sequence of chunks for FileIn param #1 etc.\n"
38929 "\n"
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:2542
38934 msgid "The \"sequence of chunks\" is:"
38935 msgstr ""
38936
38937 #. type: verbatim
38938 #: ../src/guestfs.pod:2544
38939 #, no-wrap
38940 msgid ""
38941 " length of chunk (not including length word itself)\n"
38942 " struct guestfs_chunk (encoded as XDR)\n"
38943 " length of chunk\n"
38944 " struct guestfs_chunk (encoded as XDR)\n"
38945 "   ...\n"
38946 " length of chunk\n"
38947 " struct guestfs_chunk (with data.data_len == 0)\n"
38948 "\n"
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../src/guestfs.pod:2552
38953 msgid ""
38954 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38955 "is set in the final chunk to indicate either successful completion or early "
38956 "cancellation."
38957 msgstr ""
38958
38959 #. type: textblock
38960 #: ../src/guestfs.pod:2556
38961 msgid ""
38962 "At time of writing there are no functions that have more than one FileIn "
38963 "parameter.  However this is (theoretically) supported, by sending the "
38964 "sequence of chunks for each FileIn parameter one after another (from left to "
38965 "right)."
38966 msgstr ""
38967
38968 #. type: textblock
38969 #: ../src/guestfs.pod:2561
38970 msgid ""
38971 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38972 "transfer.  The library does this by sending a chunk with a special flag set "
38973 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38974 "RPC, does I<not> send any reply, and goes back to reading the next request."
38975 msgstr ""
38976
38977 #. type: textblock
38978 #: ../src/guestfs.pod:2567
38979 msgid ""
38980 "The daemon may also cancel.  It does this by writing a special word "
38981 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38982 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38983 "cancel chunk).  The special word is chosen so that even if cancellation "
38984 "happens right at the end of the transfer (after the library has finished "
38985 "writing and has started listening for the reply), the \"spurious\" cancel "
38986 "flag will not be confused with the reply message."
38987 msgstr ""
38988
38989 #. type: textblock
38990 #: ../src/guestfs.pod:2576
38991 msgid ""
38992 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38993 "limit), and also files where the size is not known in advance (eg. from "
38994 "pipes or sockets).  However the chunks are rather small "
38995 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38996 "to keep much in memory."
38997 msgstr ""
38998
38999 #. type: =head3
39000 #: ../src/guestfs.pod:2582
39001 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39002 msgstr ""
39003
39004 #. type: textblock
39005 #: ../src/guestfs.pod:2584
39006 msgid ""
39007 "The protocol for FileOut parameters is exactly the same as for FileIn "
39008 "parameters, but with the roles of daemon and library reversed."
39009 msgstr ""
39010
39011 #. type: verbatim
39012 #: ../src/guestfs.pod:2587
39013 #, no-wrap
39014 msgid ""
39015 " total length (header + ret,\n"
39016 "      but not including the length word itself,\n"
39017 "      and not including the chunks)\n"
39018 " struct guestfs_message_header (encoded as XDR)\n"
39019 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39020 " sequence of chunks for FileOut param #0\n"
39021 " sequence of chunks for FileOut param #1 etc.\n"
39022 "\n"
39023 msgstr ""
39024
39025 #. type: =head3
39026 #: ../src/guestfs.pod:2595
39027 msgid "INITIAL MESSAGE"
39028 msgstr ""
39029
39030 #. type: textblock
39031 #: ../src/guestfs.pod:2597
39032 msgid ""
39033 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39034 "which indicates that the guest and daemon is alive.  This is what L</"
39035 "guestfs_launch> waits for."
39036 msgstr ""
39037
39038 #. type: =head3
39039 #: ../src/guestfs.pod:2601
39040 msgid "PROGRESS NOTIFICATION MESSAGES"
39041 msgstr ""
39042
39043 #. type: textblock
39044 #: ../src/guestfs.pod:2603
39045 msgid ""
39046 "The daemon may send progress notification messages at any time.  These are "
39047 "distinguished by the normal length word being replaced by "
39048 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39049 msgstr ""
39050
39051 #. type: textblock
39052 #: ../src/guestfs.pod:2607
39053 msgid ""
39054 "The library turns them into progress callbacks (see L</"
39055 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39056 "if not."
39057 msgstr ""
39058
39059 #. type: textblock
39060 #: ../src/guestfs.pod:2611
39061 msgid ""
39062 "The daemon self-limits the frequency of progress messages it sends (see "
39063 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39064 "messages."
39065 msgstr ""
39066
39067 #. type: =head1
39068 #: ../src/guestfs.pod:2615
39069 msgid "LIBGUESTFS VERSION NUMBERS"
39070 msgstr ""
39071
39072 #. type: textblock
39073 #: ../src/guestfs.pod:2617
39074 msgid ""
39075 "Since April 2010, libguestfs has started to make separate development and "
39076 "stable releases, along with corresponding branches in our git repository.  "
39077 "These separate releases can be identified by version number:"
39078 msgstr ""
39079
39080 #. type: verbatim
39081 #: ../src/guestfs.pod:2622
39082 #, no-wrap
39083 msgid ""
39084 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39085 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39086 "       |\n"
39087 "       v\n"
39088 " 1  .  3  .  5\n"
39089 " ^           ^\n"
39090 " |           |\n"
39091 " |           `-------- sub-version\n"
39092 " |\n"
39093 " `------ always '1' because we don't change the ABI\n"
39094 "\n"
39095 msgstr ""
39096
39097 #. type: textblock
39098 #: ../src/guestfs.pod:2633
39099 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39100 msgstr ""
39101
39102 #. type: textblock
39103 #: ../src/guestfs.pod:2635
39104 msgid ""
39105 "As time passes we cherry pick fixes from the development branch and backport "
39106 "those into the stable branch, the effect being that the stable branch should "
39107 "get more stable and less buggy over time.  So the stable releases are ideal "
39108 "for people who don't need new features but would just like the software to "
39109 "work."
39110 msgstr ""
39111
39112 #. type: textblock
39113 #: ../src/guestfs.pod:2641
39114 msgid "Our criteria for backporting changes are:"
39115 msgstr ""
39116
39117 #. type: textblock
39118 #: ../src/guestfs.pod:2647
39119 msgid ""
39120 "Documentation changes which don't affect any code are backported unless the "
39121 "documentation refers to a future feature which is not in stable."
39122 msgstr ""
39123
39124 #. type: textblock
39125 #: ../src/guestfs.pod:2653
39126 msgid ""
39127 "Bug fixes which are not controversial, fix obvious problems, and have been "
39128 "well tested are backported."
39129 msgstr ""
39130
39131 #. type: textblock
39132 #: ../src/guestfs.pod:2658
39133 msgid ""
39134 "Simple rearrangements of code which shouldn't affect how it works get "
39135 "backported.  This is so that the code in the two branches doesn't get too "
39136 "far out of step, allowing us to backport future fixes more easily."
39137 msgstr ""
39138
39139 #. type: textblock
39140 #: ../src/guestfs.pod:2664
39141 msgid ""
39142 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39143 "exceptional case: the new feature is required in order to implement an "
39144 "important bug fix."
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:2670
39149 msgid ""
39150 "A new stable branch starts when we think the new features in development are "
39151 "substantial and compelling enough over the current stable branch to warrant "
39152 "it.  When that happens we create new stable and development versions 1.N.0 "
39153 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39154 "stable at this point, but by backporting fixes from development, that branch "
39155 "will stabilize over time."
39156 msgstr ""
39157
39158 #. type: =head1
39159 #: ../src/guestfs.pod:2678
39160 msgid "EXTENDING LIBGUESTFS"
39161 msgstr ""
39162
39163 #. type: =head2
39164 #: ../src/guestfs.pod:2680
39165 msgid "ADDING A NEW API ACTION"
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../src/guestfs.pod:2682
39170 msgid ""
39171 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39172 "documentation) are generated, and this makes it easy to extend the "
39173 "libguestfs API."
39174 msgstr ""
39175
39176 #. type: textblock
39177 #: ../src/guestfs.pod:2686
39178 msgid "To add a new API action there are two changes:"
39179 msgstr ""
39180
39181 #. type: textblock
39182 #: ../src/guestfs.pod:2692
39183 msgid ""
39184 "You need to add a description of the call (name, parameters, return type, "
39185 "tests, documentation) to C<generator/generator_actions.ml>."
39186 msgstr ""
39187
39188 #. type: textblock
39189 #: ../src/guestfs.pod:2695
39190 msgid ""
39191 "There are two sorts of API action, depending on whether the call goes "
39192 "through to the daemon in the appliance, or is serviced entirely by the "
39193 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39194 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39195 "an example of the latter, since a trace flag is maintained in the handle and "
39196 "all tracing is done on the library side."
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../src/guestfs.pod:2703
39201 msgid ""
39202 "Most new actions are of the first type, and get added to the "
39203 "C<daemon_functions> list.  Each function has a unique procedure number used "
39204 "in the RPC protocol which is assigned to that action when we publish "
39205 "libguestfs and cannot be reused.  Take the latest procedure number and "
39206 "increment it."
39207 msgstr ""
39208
39209 #. type: textblock
39210 #: ../src/guestfs.pod:2709
39211 msgid ""
39212 "For library-only actions of the second type, add to the "
39213 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39214 "library and do not travel over the RPC mechanism to the daemon, these "
39215 "functions do not need a procedure number, and so the procedure number is set "
39216 "to C<-1>."
39217 msgstr ""
39218
39219 #. type: textblock
39220 #: ../src/guestfs.pod:2717
39221 msgid "Implement the action (in C):"
39222 msgstr ""
39223
39224 #. type: textblock
39225 #: ../src/guestfs.pod:2719
39226 msgid ""
39227 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39228 "C<daemon/> directory."
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:2722
39233 msgid ""
39234 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39235 "(note: double underscore) in the C<src/> directory."
39236 msgstr ""
39237
39238 #. type: textblock
39239 #: ../src/guestfs.pod:2725
39240 msgid "In either case, use another function as an example of what to do."
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:2729
39245 msgid "After making these changes, use C<make> to compile."
39246 msgstr ""
39247
39248 #. type: textblock
39249 #: ../src/guestfs.pod:2731
39250 msgid ""
39251 "Note that you don't need to implement the RPC, language bindings, manual "
39252 "pages or anything else.  It's all automatically generated from the OCaml "
39253 "description."
39254 msgstr ""
39255
39256 #. type: =head2
39257 #: ../src/guestfs.pod:2735
39258 msgid "ADDING TESTS FOR AN API ACTION"
39259 msgstr ""
39260
39261 #. type: textblock
39262 #: ../src/guestfs.pod:2737
39263 msgid ""
39264 "You can supply zero or as many tests as you want per API call.  The tests "
39265 "can either be added as part of the API description (C<generator/"
39266 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39267 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39268 "slower, so if possible use the first method."
39269 msgstr ""
39270
39271 #. type: textblock
39272 #: ../src/guestfs.pod:2743
39273 msgid ""
39274 "The following describes the test environment used when you add an API test "
39275 "in C<generator_actions.ml>."
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../src/guestfs.pod:2746
39280 msgid "The test environment has 4 block devices:"
39281 msgstr ""
39282
39283 #. type: =item
39284 #: ../src/guestfs.pod:2750
39285 msgid "C</dev/sda> 500MB"
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:2752
39290 msgid "General block device for testing."
39291 msgstr ""
39292
39293 #. type: =item
39294 #: ../src/guestfs.pod:2754
39295 msgid "C</dev/sdb> 50MB"
39296 msgstr ""
39297
39298 #. type: textblock
39299 #: ../src/guestfs.pod:2756
39300 msgid ""
39301 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39302 "operations."
39303 msgstr ""
39304
39305 #. type: =item
39306 #: ../src/guestfs.pod:2759
39307 msgid "C</dev/sdc> 10MB"
39308 msgstr ""
39309
39310 #. type: textblock
39311 #: ../src/guestfs.pod:2761
39312 msgid "Used in a few tests where two block devices are needed."
39313 msgstr ""
39314
39315 #. type: =item
39316 #: ../src/guestfs.pod:2763
39317 msgid "C</dev/sdd>"
39318 msgstr ""
39319
39320 #. type: textblock
39321 #: ../src/guestfs.pod:2765
39322 msgid "ISO with fixed content (see C<images/test.iso>)."
39323 msgstr ""
39324
39325 #. type: textblock
39326 #: ../src/guestfs.pod:2769
39327 msgid ""
39328 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39329 "appliance and block devices are reused between tests.  So don't try testing "
39330 "L</guestfs_kill_subprocess> :-x"
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../src/guestfs.pod:2773
39335 msgid ""
39336 "Each test starts with an initial scenario, selected using one of the "
39337 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39338 "initialize the disks mentioned above in a particular way as documented in "
39339 "C<generator_types.ml>.  You should not assume anything about the previous "
39340 "contents of other disks that are not initialized."
39341 msgstr ""
39342
39343 #. type: textblock
39344 #: ../src/guestfs.pod:2779
39345 msgid ""
39346 "You can add a prerequisite clause to any individual test.  This is a run-"
39347 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39348 "testing a command which might not work on all variations of libguestfs "
39349 "builds.  A test that has prerequisite of C<Always> means to run "
39350 "unconditionally."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../src/guestfs.pod:2785
39355 msgid ""
39356 "In addition, packagers can skip individual tests by setting environment "
39357 "variables before running C<make check>."
39358 msgstr ""
39359
39360 #. type: verbatim
39361 #: ../src/guestfs.pod:2788
39362 #, no-wrap
39363 msgid ""
39364 " SKIP_TEST_<CMD>_<NUM>=1\n"
39365 "\n"
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:2790
39370 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:2792
39375 msgid "or:"
39376 msgstr ""
39377
39378 #. type: verbatim
39379 #: ../src/guestfs.pod:2794
39380 #, no-wrap
39381 msgid ""
39382 " SKIP_TEST_<CMD>=1\n"
39383 "\n"
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../src/guestfs.pod:2796
39388 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../src/guestfs.pod:2798
39393 msgid "Packagers can run only certain tests by setting for example:"
39394 msgstr ""
39395
39396 #. type: verbatim
39397 #: ../src/guestfs.pod:2800
39398 #, no-wrap
39399 msgid ""
39400 " TEST_ONLY=\"vfs_type zerofree\"\n"
39401 "\n"
39402 msgstr ""
39403
39404 #. type: textblock
39405 #: ../src/guestfs.pod:2802
39406 msgid ""
39407 "See C<capitests/tests.c> for more details of how these environment variables "
39408 "work."
39409 msgstr ""
39410
39411 #. type: =head2
39412 #: ../src/guestfs.pod:2805
39413 msgid "DEBUGGING NEW API ACTIONS"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:2807
39418 msgid "Test new actions work before submitting them."
39419 msgstr ""
39420
39421 #. type: textblock
39422 #: ../src/guestfs.pod:2809
39423 msgid "You can use guestfish to try out new commands."
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../src/guestfs.pod:2811
39428 msgid ""
39429 "Debugging the daemon is a problem because it runs inside a minimal "
39430 "environment.  However you can fprintf messages in the daemon to stderr, and "
39431 "they will show up if you use C<guestfish -v>."
39432 msgstr ""
39433
39434 #. type: =head2
39435 #: ../src/guestfs.pod:2815
39436 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../src/guestfs.pod:2817
39441 msgid ""
39442 "Our C source code generally adheres to some basic code-formatting "
39443 "conventions.  The existing code base is not totally consistent on this "
39444 "front, but we do prefer that contributed code be formatted similarly.  In "
39445 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39446 "indentation level, and other than that, follow the K&R style."
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../src/guestfs.pod:2823
39451 msgid ""
39452 "If you use Emacs, add the following to one of one of your start-up files (e."
39453 "g., ~/.emacs), to help ensure that you get indentation right:"
39454 msgstr ""
39455
39456 #. type: verbatim
39457 #: ../src/guestfs.pod:2826
39458 #, no-wrap
39459 msgid ""
39460 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39461 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39462 " (add-hook 'find-file-hook\n"
39463 "     '(lambda () (if (and buffer-file-name\n"
39464 "                          (string-match \"/libguestfs\\\\>\"\n"
39465 "                              (buffer-file-name))\n"
39466 "                          (not (string-equal mode-name \"Change Log\"))\n"
39467 "                          (not (string-equal mode-name \"Makefile\")))\n"
39468 "                     (setq indent-tabs-mode nil))))\n"
39469 " \n"
39470 msgstr ""
39471
39472 #. type: verbatim
39473 #: ../src/guestfs.pod:2836
39474 #, no-wrap
39475 msgid ""
39476 " ;;; When editing C sources in libguestfs, use this style.\n"
39477 " (defun libguestfs-c-mode ()\n"
39478 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39479 "   (interactive)\n"
39480 "   (c-set-style \"K&R\")\n"
39481 "   (setq c-indent-level 2)\n"
39482 "   (setq c-basic-offset 2))\n"
39483 " (add-hook 'c-mode-hook\n"
39484 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39485 "                               (buffer-file-name))\n"
39486 "                           (libguestfs-c-mode))))\n"
39487 "\n"
39488 msgstr ""
39489
39490 #. type: textblock
39491 #: ../src/guestfs.pod:2848
39492 msgid "Enable warnings when compiling (and fix any problems this finds):"
39493 msgstr ""
39494
39495 #. type: verbatim
39496 #: ../src/guestfs.pod:2851
39497 #, no-wrap
39498 msgid ""
39499 " ./configure --enable-gcc-warnings\n"
39500 "\n"
39501 msgstr ""
39502
39503 #. type: textblock
39504 #: ../src/guestfs.pod:2853
39505 msgid "Useful targets are:"
39506 msgstr ""
39507
39508 #. type: verbatim
39509 #: ../src/guestfs.pod:2855
39510 #, no-wrap
39511 msgid ""
39512 " make syntax-check  # checks the syntax of the C code\n"
39513 " make check         # runs the test suite\n"
39514 "\n"
39515 msgstr ""
39516
39517 #. type: =head2
39518 #: ../src/guestfs.pod:2858
39519 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39520 msgstr ""
39521
39522 #. type: textblock
39523 #: ../src/guestfs.pod:2860
39524 msgid ""
39525 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39526 "which are used to do shell quoting."
39527 msgstr ""
39528
39529 #. type: =item
39530 #: ../src/guestfs.pod:2865
39531 msgid "%Q"
39532 msgstr ""
39533
39534 #. type: textblock
39535 #: ../src/guestfs.pod:2867
39536 msgid ""
39537 "Simple shell quoted string.  Any spaces or other shell characters are "
39538 "escaped for you."
39539 msgstr ""
39540
39541 #. type: =item
39542 #: ../src/guestfs.pod:2870
39543 msgid "%R"
39544 msgstr ""
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:2872
39548 msgid ""
39549 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39550 "the sysroot."
39551 msgstr ""
39552
39553 #. type: verbatim
39554 #: ../src/guestfs.pod:2879
39555 #, no-wrap
39556 msgid ""
39557 " asprintf (&cmd, \"cat %R\", path);\n"
39558 "\n"
39559 msgstr ""
39560
39561 #. type: textblock
39562 #: ../src/guestfs.pod:2881
39563 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../src/guestfs.pod:2883
39568 msgid ""
39569 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39570 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39571 "they are not passed via the shell (instead, straight to exec).  You probably "
39572 "want to use the C<sysroot_path()> function however."
39573 msgstr ""
39574
39575 #. type: =head2
39576 #: ../src/guestfs.pod:2889
39577 msgid "SUBMITTING YOUR NEW API ACTIONS"
39578 msgstr ""
39579
39580 #. type: textblock
39581 #: ../src/guestfs.pod:2891
39582 msgid ""
39583 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39584 "libguestfs> and CC to L<rjones@redhat.com>."
39585 msgstr ""
39586
39587 #. type: =head2
39588 #: ../src/guestfs.pod:2895
39589 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:2897
39594 msgid "We support i18n (gettext anyhow) in the library."
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../src/guestfs.pod:2899
39599 msgid ""
39600 "However many messages come from the daemon, and we don't translate those at "
39601 "the moment.  One reason is that the appliance generally has all locale files "
39602 "removed from it, because they take up a lot of space.  So we'd have to readd "
39603 "some of those, as well as copying our PO files into the appliance."
39604 msgstr ""
39605
39606 #. type: textblock
39607 #: ../src/guestfs.pod:2905
39608 msgid ""
39609 "Debugging messages are never translated, since they are intended for the "
39610 "programmers."
39611 msgstr ""
39612
39613 #. type: =head2
39614 #: ../src/guestfs.pod:2908
39615 msgid "SOURCE CODE SUBDIRECTORIES"
39616 msgstr ""
39617
39618 #. type: =item
39619 #: ../src/guestfs.pod:2912
39620 msgid "C<align>"
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../src/guestfs.pod:2914
39625 msgid "L<virt-alignment-scan(1)> command and documentation."
39626 msgstr ""
39627
39628 #. type: textblock
39629 #: ../src/guestfs.pod:2918
39630 msgid "The libguestfs appliance, build scripts and so on."
39631 msgstr ""
39632
39633 #. type: =item
39634 #: ../src/guestfs.pod:2920
39635 msgid "C<capitests>"
39636 msgstr ""
39637
39638 #. type: textblock
39639 #: ../src/guestfs.pod:2922
39640 msgid "Automated tests of the C API."
39641 msgstr ""
39642
39643 #. type: =item
39644 #: ../src/guestfs.pod:2924
39645 msgid "C<cat>"
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../src/guestfs.pod:2926
39650 msgid ""
39651 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39652 "documentation."
39653 msgstr ""
39654
39655 #. type: =item
39656 #: ../src/guestfs.pod:2929
39657 msgid "C<caution>"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../src/guestfs.pod:2931
39662 msgid ""
39663 "Safety and liveness tests of components that libguestfs depends upon (not of "
39664 "libguestfs itself).  Mainly this is for qemu and the kernel."
39665 msgstr ""
39666
39667 #. type: =item
39668 #: ../src/guestfs.pod:2934
39669 msgid "C<clone>"
39670 msgstr ""
39671
39672 #. type: textblock
39673 #: ../src/guestfs.pod:2936
39674 msgid ""
39675 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39676 "command and documentation."
39677 msgstr ""
39678
39679 #. type: =item
39680 #: ../src/guestfs.pod:2939
39681 msgid "C<contrib>"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2941
39686 msgid "Outside contributions, experimental parts."
39687 msgstr ""
39688
39689 #. type: =item
39690 #: ../src/guestfs.pod:2943
39691 msgid "C<daemon>"
39692 msgstr ""
39693
39694 #. type: textblock
39695 #: ../src/guestfs.pod:2945
39696 msgid ""
39697 "The daemon that runs inside the libguestfs appliance and carries out actions."
39698 msgstr ""
39699
39700 #. type: =item
39701 #: ../src/guestfs.pod:2948
39702 msgid "C<df>"
39703 msgstr ""
39704
39705 #. type: textblock
39706 #: ../src/guestfs.pod:2950
39707 msgid "L<virt-df(1)> command and documentation."
39708 msgstr ""
39709
39710 #. type: =item
39711 #: ../src/guestfs.pod:2952
39712 msgid "C<edit>"
39713 msgstr ""
39714
39715 #. type: textblock
39716 #: ../src/guestfs.pod:2954
39717 msgid "L<virt-edit(1)> command and documentation."
39718 msgstr ""
39719
39720 #. type: =item
39721 #: ../src/guestfs.pod:2956
39722 msgid "C<examples>"
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../src/guestfs.pod:2958
39727 msgid "C API example code."
39728 msgstr ""
39729
39730 #. type: =item
39731 #: ../src/guestfs.pod:2960
39732 msgid "C<fish>"
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../src/guestfs.pod:2962
39737 msgid ""
39738 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39739 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39740 "L<virt-tar-out(1)>."
39741 msgstr ""
39742
39743 #. type: =item
39744 #: ../src/guestfs.pod:2966
39745 msgid "C<fuse>"
39746 msgstr ""
39747
39748 #. type: textblock
39749 #: ../src/guestfs.pod:2968
39750 msgid ""
39751 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39752 msgstr ""
39753
39754 #. type: =item
39755 #: ../src/guestfs.pod:2970
39756 msgid "C<generator>"
39757 msgstr ""
39758
39759 #. type: textblock
39760 #: ../src/guestfs.pod:2972
39761 msgid ""
39762 "The crucially important generator, used to automatically generate large "
39763 "amounts of boilerplate C code for things like RPC and bindings."
39764 msgstr ""
39765
39766 #. type: =item
39767 #: ../src/guestfs.pod:2975
39768 msgid "C<images>"
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../src/guestfs.pod:2977
39773 msgid "Files used by the test suite."
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../src/guestfs.pod:2979
39778 msgid "Some \"phony\" guest images which we test against."
39779 msgstr ""
39780
39781 #. type: =item
39782 #: ../src/guestfs.pod:2981
39783 msgid "C<inspector>"
39784 msgstr ""
39785
39786 #. type: textblock
39787 #: ../src/guestfs.pod:2983
39788 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39789 msgstr ""
39790
39791 #. type: =item
39792 #: ../src/guestfs.pod:2985
39793 msgid "C<logo>"
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../src/guestfs.pod:2987
39798 msgid "Logo used on the website.  The fish is called Arthur by the way."
39799 msgstr ""
39800
39801 #. type: =item
39802 #: ../src/guestfs.pod:2989
39803 msgid "C<m4>"
39804 msgstr ""
39805
39806 #. type: textblock
39807 #: ../src/guestfs.pod:2991
39808 msgid "M4 macros used by autoconf."
39809 msgstr ""
39810
39811 #. type: =item
39812 #: ../src/guestfs.pod:2993
39813 msgid "C<po>"
39814 msgstr ""
39815
39816 #. type: textblock
39817 #: ../src/guestfs.pod:2995
39818 msgid "Translations of simple gettext strings."
39819 msgstr ""
39820
39821 #. type: =item
39822 #: ../src/guestfs.pod:2997
39823 msgid "C<po-docs>"
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../src/guestfs.pod:2999
39828 msgid ""
39829 "The build infrastructure and PO files for translations of manpages and POD "
39830 "files.  Eventually this will be combined with the C<po> directory, but that "
39831 "is rather complicated."
39832 msgstr ""
39833
39834 #. type: =item
39835 #: ../src/guestfs.pod:3003
39836 msgid "C<regressions>"
39837 msgstr ""
39838
39839 #. type: textblock
39840 #: ../src/guestfs.pod:3005
39841 msgid "Regression tests."
39842 msgstr ""
39843
39844 #. type: =item
39845 #: ../src/guestfs.pod:3007
39846 msgid "C<rescue>"
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:3009
39851 msgid "L<virt-rescue(1)> command and documentation."
39852 msgstr ""
39853
39854 #. type: =item
39855 #: ../src/guestfs.pod:3011
39856 msgid "C<resize>"
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../src/guestfs.pod:3013
39861 msgid "L<virt-resize(1)> command and documentation."
39862 msgstr ""
39863
39864 #. type: =item
39865 #: ../src/guestfs.pod:3015
39866 msgid "C<sparsify>"
39867 msgstr ""
39868
39869 #. type: textblock
39870 #: ../src/guestfs.pod:3017
39871 msgid "L<virt-sparsify(1)> command and documentation."
39872 msgstr ""
39873
39874 #. type: =item
39875 #: ../src/guestfs.pod:3019
39876 msgid "C<src>"
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../src/guestfs.pod:3021
39881 msgid "Source code to the C library."
39882 msgstr ""
39883
39884 #. type: =item
39885 #: ../src/guestfs.pod:3023
39886 msgid "C<tools>"
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../src/guestfs.pod:3025
39891 msgid ""
39892 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39893 msgstr ""
39894
39895 #. type: =item
39896 #: ../src/guestfs.pod:3027
39897 msgid "C<test-tool>"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:3029
39902 msgid ""
39903 "Test tool for end users to test if their qemu/kernel combination will work "
39904 "with libguestfs."
39905 msgstr ""
39906
39907 #. type: =item
39908 #: ../src/guestfs.pod:3032
39909 msgid "C<csharp>"
39910 msgstr ""
39911
39912 #. type: =item
39913 #: ../src/guestfs.pod:3034
39914 msgid "C<erlang>"
39915 msgstr ""
39916
39917 #. type: =item
39918 #: ../src/guestfs.pod:3036
39919 msgid "C<haskell>"
39920 msgstr ""
39921
39922 #. type: =item
39923 #: ../src/guestfs.pod:3038
39924 msgid "C<java>"
39925 msgstr ""
39926
39927 #. type: =item
39928 #: ../src/guestfs.pod:3040
39929 msgid "C<ocaml>"
39930 msgstr ""
39931
39932 #. type: =item
39933 #: ../src/guestfs.pod:3042
39934 msgid "C<php>"
39935 msgstr ""
39936
39937 #. type: =item
39938 #: ../src/guestfs.pod:3044
39939 msgid "C<perl>"
39940 msgstr ""
39941
39942 #. type: =item
39943 #: ../src/guestfs.pod:3046
39944 msgid "C<python>"
39945 msgstr ""
39946
39947 #. type: =item
39948 #: ../src/guestfs.pod:3048
39949 msgid "C<ruby>"
39950 msgstr ""
39951
39952 #. type: textblock
39953 #: ../src/guestfs.pod:3050
39954 msgid "Language bindings."
39955 msgstr ""
39956
39957 #. type: =head2
39958 #: ../src/guestfs.pod:3054
39959 msgid "MAKING A STABLE RELEASE"
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../src/guestfs.pod:3056
39964 msgid ""
39965 "When we make a stable release, there are several steps documented here.  See "
39966 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39967 "branch policy."
39968 msgstr ""
39969
39970 #. type: textblock
39971 #: ../src/guestfs.pod:3064
39972 msgid ""
39973 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39974 msgstr ""
39975
39976 #. type: textblock
39977 #: ../src/guestfs.pod:3069
39978 msgid "Finalize RELEASE-NOTES."
39979 msgstr ""
39980
39981 #. type: textblock
39982 #: ../src/guestfs.pod:3073
39983 msgid "Update ROADMAP."
39984 msgstr ""
39985
39986 #. type: textblock
39987 #: ../src/guestfs.pod:3077
39988 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39989 msgstr ""
39990
39991 #. type: textblock
39992 #: ../src/guestfs.pod:3081
39993 msgid "Push and pull from Transifex."
39994 msgstr ""
39995
39996 #. type: textblock
39997 #: ../src/guestfs.pod:3083
39998 msgid "Run:"
39999 msgstr ""
40000
40001 #. type: verbatim
40002 #: ../src/guestfs.pod:3085
40003 #, no-wrap
40004 msgid ""
40005 " tx push -s\n"
40006 "\n"
40007 msgstr ""
40008
40009 #. type: textblock
40010 #: ../src/guestfs.pod:3087
40011 msgid "to push the latest POT files to Transifex.  Then run:"
40012 msgstr ""
40013
40014 #. type: verbatim
40015 #: ../src/guestfs.pod:3089
40016 #, no-wrap
40017 msgid ""
40018 " ./tx-pull.sh\n"
40019 "\n"
40020 msgstr ""
40021
40022 #. type: textblock
40023 #: ../src/guestfs.pod:3091
40024 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40025 msgstr ""
40026
40027 #. type: textblock
40028 #: ../src/guestfs.pod:3095
40029 msgid ""
40030 "Create new stable and development directories under L<http://libguestfs.org/"
40031 "download>."
40032 msgstr ""
40033
40034 #. type: textblock
40035 #: ../src/guestfs.pod:3100
40036 msgid "Create the branch in git:"
40037 msgstr ""
40038
40039 #. type: verbatim
40040 #: ../src/guestfs.pod:3102
40041 #, no-wrap
40042 msgid ""
40043 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40044 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40045 " git branch stable-1.XX\n"
40046 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40047 "\n"
40048 msgstr ""
40049
40050 #. type: =head1
40051 #: ../src/guestfs.pod:3109
40052 msgid "LIMITS"
40053 msgstr ""
40054
40055 #. type: =head2
40056 #: ../src/guestfs.pod:3111
40057 msgid "PROTOCOL LIMITS"
40058 msgstr ""
40059
40060 #. type: textblock
40061 #: ../src/guestfs.pod:3113
40062 msgid ""
40063 "Internally libguestfs uses a message-based protocol to pass API calls and "
40064 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40065 "plenty more detail about this).  The maximum message size used by the "
40066 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40067 "aware of this limit.  The API calls which may be affected are individually "
40068 "documented, with a link back to this section of the documentation."
40069 msgstr ""
40070
40071 #. type: textblock
40072 #: ../src/guestfs.pod:3121
40073 msgid ""
40074 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40075 "a simple string.  Because this string is at some point internally encoded as "
40076 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40077 "the requested file is larger than this then you will get an error."
40078 msgstr ""
40079
40080 #. type: textblock
40081 #: ../src/guestfs.pod:3127
40082 msgid ""
40083 "In order to transfer large files into and out of the guest filesystem, you "
40084 "need to use particular calls that support this.  The sections L</UPLOADING> "
40085 "and L</DOWNLOADING> document how to do this."
40086 msgstr ""
40087
40088 #. type: textblock
40089 #: ../src/guestfs.pod:3131
40090 msgid ""
40091 "You might also consider mounting the disk image using our FUSE filesystem "
40092 "support (L<guestmount(1)>)."
40093 msgstr ""
40094
40095 #. type: =head2
40096 #: ../src/guestfs.pod:3134
40097 msgid "MAXIMUM NUMBER OF DISKS"
40098 msgstr ""
40099
40100 #. type: textblock
40101 #: ../src/guestfs.pod:3136
40102 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40103 msgstr ""
40104
40105 #. type: textblock
40106 #: ../src/guestfs.pod:3139
40107 msgid ""
40108 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40109 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40110 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40111 "purposes."
40112 msgstr ""
40113
40114 #. type: textblock
40115 #: ../src/guestfs.pod:3144
40116 msgid ""
40117 "We are working to substantially raise this limit in future versions but it "
40118 "requires complex changes to qemu."
40119 msgstr ""
40120
40121 #. type: textblock
40122 #: ../src/guestfs.pod:3147
40123 msgid ""
40124 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40125 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40126 "requires changes to qemu."
40127 msgstr ""
40128
40129 #. type: =head2
40130 #: ../src/guestfs.pod:3151
40131 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40132 msgstr ""
40133
40134 #. type: textblock
40135 #: ../src/guestfs.pod:3153
40136 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:3155
40141 msgid ""
40142 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40143 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40144 msgstr ""
40145
40146 #. type: textblock
40147 #: ../src/guestfs.pod:3158
40148 msgid ""
40149 "If you attach a disk with more than 15 partitions, the extra partitions are "
40150 "ignored by libguestfs."
40151 msgstr ""
40152
40153 #. type: =head2
40154 #: ../src/guestfs.pod:3161
40155 msgid "MAXIMUM SIZE OF A DISK"
40156 msgstr ""
40157
40158 #. type: textblock
40159 #: ../src/guestfs.pod:3163
40160 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40161 msgstr ""
40162
40163 #. type: textblock
40164 #: ../src/guestfs.pod:3165
40165 msgid ""
40166 "We have tested block devices up to 1 exabyte (2**60 or "
40167 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40168 "filesystem."
40169 msgstr ""
40170
40171 #. type: textblock
40172 #: ../src/guestfs.pod:3169
40173 msgid ""
40174 "Although libguestfs probably does not impose any limit, the underlying host "
40175 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40176 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40177 "TB).  If you store disk images as host logical volumes then you are limited "
40178 "by the maximum size of an LV."
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../src/guestfs.pod:3175
40183 msgid ""
40184 "For the hugest disk image files, we recommend using XFS on the host for "
40185 "storage."
40186 msgstr ""
40187
40188 #. type: =head2
40189 #: ../src/guestfs.pod:3178
40190 msgid "MAXIMUM SIZE OF A PARTITION"
40191 msgstr ""
40192
40193 #. type: textblock
40194 #: ../src/guestfs.pod:3180
40195 msgid ""
40196 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40197 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40198 "address a partition located beyond 2 TB on the disk."
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:3184
40203 msgid ""
40204 "It is recommended that you use GPT partitions on disks which are larger than "
40205 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40206 "which are theoretically larger than the largest disk we could support."
40207 msgstr ""
40208
40209 #. type: =head2
40210 #: ../src/guestfs.pod:3189
40211 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40212 msgstr ""
40213
40214 #. type: textblock
40215 #: ../src/guestfs.pod:3191
40216 msgid ""
40217 "This depends on the filesystem type.  libguestfs itself does not impose any "
40218 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40219 "what these limits are."
40220 msgstr ""
40221
40222 #. type: =head2
40223 #: ../src/guestfs.pod:3195
40224 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40225 msgstr ""
40226
40227 #. type: textblock
40228 #: ../src/guestfs.pod:3197
40229 msgid ""
40230 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40231 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40232 "uploads and downloads."
40233 msgstr ""
40234
40235 #. type: =head2
40236 #: ../src/guestfs.pod:3201
40237 msgid "INSPECTION LIMITS"
40238 msgstr ""
40239
40240 #. type: textblock
40241 #: ../src/guestfs.pod:3203
40242 msgid ""
40243 "The inspection code has several arbitrary limits on things like the size of "
40244 "Windows Registry hive it will read, and the length of product name.  These "
40245 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40246 "memory and disk space on the host, and should not be reached in practice.  "
40247 "See the source code for more information."
40248 msgstr ""
40249
40250 #. type: textblock
40251 #: ../src/guestfs.pod:3229
40252 msgid ""
40253 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40254 "effect as calling C<guestfs_set_verbose (g, 1)>."
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../src/guestfs.pod:3241
40259 msgid ""
40260 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40261 "the discussion of paths in section L</PATH> above."
40262 msgstr ""
40263
40264 #. type: textblock
40265 #: ../src/guestfs.pod:3250
40266 msgid "See also L</QEMU WRAPPERS> above."
40267 msgstr ""
40268
40269 #. type: textblock
40270 #: ../src/guestfs.pod:3254
40271 msgid ""
40272 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40273 "effect as calling C<guestfs_set_trace (g, 1)>."
40274 msgstr ""
40275
40276 #. type: textblock
40277 #: ../src/guestfs.pod:3272
40278 msgid ""
40279 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40280 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40281 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40282 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40283 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40284 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40285 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40286 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40287 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40288 ">, L<http://libguestfs.org/>."
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../src/guestfs.pod:3308
40293 msgid ""
40294 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40295 "(8)>, L<disktype(1)>."
40296 msgstr ""
40297
40298 #. type: =head1
40299 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
40300 #: ../tools/virt-win-reg.pl:772
40301 msgid "BUGS"
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../src/guestfs.pod:3317
40306 msgid "To get a list of bugs against libguestfs use this link:"
40307 msgstr ""
40308
40309 #. type: textblock
40310 #: ../src/guestfs.pod:3319
40311 msgid ""
40312 "L<https://bugzilla.redhat.com/buglist.cgi?"
40313 "component=libguestfs&product=Virtualization+Tools>"
40314 msgstr ""
40315
40316 #. type: textblock
40317 #: ../src/guestfs.pod:3321
40318 msgid "To report a new bug against libguestfs use this link:"
40319 msgstr ""
40320
40321 #. type: textblock
40322 #: ../src/guestfs.pod:3323
40323 msgid ""
40324 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40325 "component=libguestfs&product=Virtualization+Tools>"
40326 msgstr ""
40327
40328 #. type: textblock
40329 #: ../src/guestfs.pod:3325
40330 msgid "When reporting a bug, please check:"
40331 msgstr ""
40332
40333 #. type: textblock
40334 #: ../src/guestfs.pod:3331
40335 msgid "That the bug hasn't been reported already."
40336 msgstr ""
40337
40338 #. type: textblock
40339 #: ../src/guestfs.pod:3335
40340 msgid "That you are testing a recent version."
40341 msgstr ""
40342
40343 #. type: textblock
40344 #: ../src/guestfs.pod:3339
40345 msgid "Describe the bug accurately, and give a way to reproduce it."
40346 msgstr ""
40347
40348 #. type: textblock
40349 #: ../src/guestfs.pod:3343
40350 msgid ""
40351 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40352 "bug report."
40353 msgstr ""
40354
40355 #. type: textblock
40356 #: ../test-tool/libguestfs-test-tool.pod:5
40357 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40358 msgstr ""
40359
40360 #. type: verbatim
40361 #: ../test-tool/libguestfs-test-tool.pod:9
40362 #, no-wrap
40363 msgid ""
40364 " libguestfs-test-tool [--options]\n"
40365 "\n"
40366 msgstr ""
40367
40368 #. type: textblock
40369 #: ../test-tool/libguestfs-test-tool.pod:13
40370 msgid ""
40371 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40372 "to check basic libguestfs functionality is working.  This is needed because "
40373 "libguestfs occasionally breaks for reasons beyond our control: usually "
40374 "because of changes in the underlying qemu or kernel packages, or the host "
40375 "environment."
40376 msgstr ""
40377
40378 #. type: textblock
40379 #: ../test-tool/libguestfs-test-tool.pod:19
40380 msgid "If you suspect a problem in libguestfs, then just run:"
40381 msgstr ""
40382
40383 #. type: verbatim
40384 #: ../test-tool/libguestfs-test-tool.pod:21
40385 #, no-wrap
40386 msgid ""
40387 " libguestfs-test-tool\n"
40388 "\n"
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../test-tool/libguestfs-test-tool.pod:23
40393 msgid "It will print lots of diagnostic messages."
40394 msgstr ""
40395
40396 #. type: textblock
40397 #: ../test-tool/libguestfs-test-tool.pod:25
40398 msgid "If it runs to completion successfully, you will see this near the end:"
40399 msgstr ""
40400
40401 #. type: verbatim
40402 #: ../test-tool/libguestfs-test-tool.pod:27
40403 #, no-wrap
40404 msgid ""
40405 " ===== TEST FINISHED OK =====\n"
40406 "\n"
40407 msgstr ""
40408
40409 #. type: textblock
40410 #: ../test-tool/libguestfs-test-tool.pod:29
40411 msgid "and the test tool will exit with code 0."
40412 msgstr ""
40413
40414 #. type: textblock
40415 #: ../test-tool/libguestfs-test-tool.pod:31
40416 msgid ""
40417 "If it fails (and/or exits with non-zero error code), please paste the "
40418 "I<complete, unedited> output of the test tool into a bug report.  More "
40419 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40420 "> website."
40421 msgstr ""
40422
40423 #. type: textblock
40424 #: ../test-tool/libguestfs-test-tool.pod:42
40425 msgid "Display short usage information and exit."
40426 msgstr ""
40427
40428 #. type: =item
40429 #: ../test-tool/libguestfs-test-tool.pod:44
40430 msgid "B<--qemu qemu_binary>"
40431 msgstr ""
40432
40433 #. type: textblock
40434 #: ../test-tool/libguestfs-test-tool.pod:46
40435 msgid ""
40436 "If you have downloaded another qemu binary, point this option at the full "
40437 "path of the binary to try it."
40438 msgstr ""
40439
40440 #. type: =item
40441 #: ../test-tool/libguestfs-test-tool.pod:49
40442 msgid "B<--qemudir qemu_source_dir>"
40443 msgstr ""
40444
40445 #. type: textblock
40446 #: ../test-tool/libguestfs-test-tool.pod:51
40447 msgid ""
40448 "If you have compiled qemu from source, point this option at the source "
40449 "directory to try it."
40450 msgstr ""
40451
40452 #. type: =item
40453 #: ../test-tool/libguestfs-test-tool.pod:54
40454 msgid "B<-t N>"
40455 msgstr ""
40456
40457 #. type: =item
40458 #: ../test-tool/libguestfs-test-tool.pod:56
40459 msgid "B<--timeout N>"
40460 msgstr ""
40461
40462 #. type: textblock
40463 #: ../test-tool/libguestfs-test-tool.pod:58
40464 msgid ""
40465 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40466 "minutes) which does not usually need to be adjusted."
40467 msgstr ""
40468
40469 #. type: =head1
40470 #: ../test-tool/libguestfs-test-tool.pod:63
40471 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../test-tool/libguestfs-test-tool.pod:65
40476 msgid ""
40477 "If you have compiled another version of qemu from source and would like to "
40478 "try that, then you can use the I<--qemudir> option to point to the qemu "
40479 "source directory."
40480 msgstr ""
40481
40482 #. type: textblock
40483 #: ../test-tool/libguestfs-test-tool.pod:69
40484 msgid ""
40485 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40486 "option to point to the binary."
40487 msgstr ""
40488
40489 #. type: textblock
40490 #: ../test-tool/libguestfs-test-tool.pod:72
40491 msgid ""
40492 "Note when using these options, you can ignore the business of qemu wrapper "
40493 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40494 "wrapper script for you if one is needed."
40495 msgstr ""
40496
40497 #. type: =head1
40498 #: ../test-tool/libguestfs-test-tool.pod:76
40499 msgid "TRYING OUT A DIFFERENT KERNEL"
40500 msgstr ""
40501
40502 #. type: textblock
40503 #: ../test-tool/libguestfs-test-tool.pod:78
40504 msgid ""
40505 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40506 "libguestfs tries.  You do this by setting the environment variables "
40507 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40508 msgstr ""
40509
40510 #. type: textblock
40511 #: ../test-tool/libguestfs-test-tool.pod:82
40512 msgid ""
40513 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40514 "information."
40515 msgstr ""
40516
40517 #. type: =head1
40518 #: ../test-tool/libguestfs-test-tool.pod:85
40519 msgid "SELF-DIAGNOSIS"
40520 msgstr ""
40521
40522 #. type: textblock
40523 #: ../test-tool/libguestfs-test-tool.pod:87
40524 msgid ""
40525 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40526 "produced by libguestfs-test-tool and/or possible errors."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../test-tool/libguestfs-test-tool.pod:92
40531 msgid ""
40532 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40533 "I<1> if there was an error."
40534 msgstr ""
40535
40536 #. type: textblock
40537 #: ../test-tool/libguestfs-test-tool.pod:97
40538 msgid ""
40539 "For the full list of environment variables which may affect libguestfs, "
40540 "please see the L<guestfs(3)> manual page."
40541 msgstr ""
40542
40543 #. type: textblock
40544 #: ../test-tool/libguestfs-test-tool.pod:102
40545 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40546 msgstr ""
40547
40548 #. type: textblock
40549 #: ../tools/virt-list-filesystems.pl:32
40550 msgid ""
40551 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40552 msgstr ""
40553
40554 #. type: verbatim
40555 #: ../tools/virt-list-filesystems.pl:36
40556 #, no-wrap
40557 msgid ""
40558 " virt-list-filesystems [--options] domname\n"
40559 "\n"
40560 msgstr ""
40561
40562 #. type: verbatim
40563 #: ../tools/virt-list-filesystems.pl:38
40564 #, no-wrap
40565 msgid ""
40566 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40567 "\n"
40568 msgstr ""
40569
40570 #. type: textblock
40571 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40572 msgid ""
40573 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40574 "replacement."
40575 msgstr ""
40576
40577 #. type: textblock
40578 #: ../tools/virt-list-filesystems.pl:45
40579 msgid ""
40580 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40581 "are contained in a virtual machine or disk image."
40582 msgstr ""
40583
40584 #. type: textblock
40585 #: ../tools/virt-list-filesystems.pl:49
40586 msgid ""
40587 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40588 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40589 "> tool."
40590 msgstr ""
40591
40592 #. type: textblock
40593 #: ../tools/virt-list-filesystems.pl:112
40594 msgid ""
40595 "With this option, C<virt-list-filesystems> displays the type of each "
40596 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40597 msgstr ""
40598
40599 #. type: =item
40600 #: ../tools/virt-list-filesystems.pl:119
40601 msgid "B<-a>"
40602 msgstr ""
40603
40604 #. type: textblock
40605 #: ../tools/virt-list-filesystems.pl:123
40606 msgid ""
40607 "Normally we only show mountable filesystems.  If this option is given then "
40608 "swap devices are shown too."
40609 msgstr ""
40610
40611 #. type: textblock
40612 #: ../tools/virt-list-filesystems.pl:197
40613 msgid ""
40614 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40615 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40616 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40617 msgstr ""
40618
40619 #. type: textblock
40620 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40621 msgid "Copyright (C) 2009 Red Hat Inc."
40622 msgstr ""
40623
40624 #. type: textblock
40625 #: ../tools/virt-list-partitions.pl:32
40626 msgid ""
40627 "virt-list-partitions - List partitions in a virtual machine or disk image"
40628 msgstr ""
40629
40630 #. type: verbatim
40631 #: ../tools/virt-list-partitions.pl:36
40632 #, no-wrap
40633 msgid ""
40634 " virt-list-partitions [--options] domname\n"
40635 "\n"
40636 msgstr ""
40637
40638 #. type: verbatim
40639 #: ../tools/virt-list-partitions.pl:38
40640 #, no-wrap
40641 msgid ""
40642 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40643 "\n"
40644 msgstr ""
40645
40646 #. type: textblock
40647 #: ../tools/virt-list-partitions.pl:45
40648 msgid ""
40649 "C<virt-list-partitions> is a command line tool to list the partitions that "
40650 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40651 "first step to using L<virt-resize(1)>."
40652 msgstr ""
40653
40654 #. type: textblock
40655 #: ../tools/virt-list-partitions.pl:50
40656 msgid ""
40657 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40658 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40659 "> tool."
40660 msgstr ""
40661
40662 #. type: textblock
40663 #: ../tools/virt-list-partitions.pl:113
40664 msgid "Show sizes in human-readable form (eg. \"1G\")."
40665 msgstr ""
40666
40667 #. type: textblock
40668 #: ../tools/virt-list-partitions.pl:123
40669 msgid ""
40670 "With this option, C<virt-list-partitions> displays the type and size of each "
40671 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40672 msgstr ""
40673
40674 #. type: =item
40675 #: ../tools/virt-list-partitions.pl:130
40676 msgid "B<-t>"
40677 msgstr ""
40678
40679 #. type: =item
40680 #: ../tools/virt-list-partitions.pl:132
40681 msgid "B<--total>"
40682 msgstr ""
40683
40684 #. type: textblock
40685 #: ../tools/virt-list-partitions.pl:134
40686 msgid ""
40687 "Display the total size of each block device (as a separate row or rows)."
40688 msgstr ""
40689
40690 #. type: textblock
40691 #: ../tools/virt-list-partitions.pl:267
40692 msgid ""
40693 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40694 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40695 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40696 msgstr ""
40697
40698 #. type: textblock
40699 #: ../tools/virt-list-partitions.pl:283
40700 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../tools/virt-make-fs.pl:37
40705 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40706 msgstr ""
40707
40708 #. type: verbatim
40709 #: ../tools/virt-make-fs.pl:41
40710 #, no-wrap
40711 msgid ""
40712 " virt-make-fs [--options] input.tar output.img\n"
40713 "\n"
40714 msgstr ""
40715
40716 #. type: verbatim
40717 #: ../tools/virt-make-fs.pl:43
40718 #, no-wrap
40719 msgid ""
40720 " virt-make-fs [--options] input.tar.gz output.img\n"
40721 "\n"
40722 msgstr ""
40723
40724 #. type: verbatim
40725 #: ../tools/virt-make-fs.pl:45
40726 #, no-wrap
40727 msgid ""
40728 " virt-make-fs [--options] directory output.img\n"
40729 "\n"
40730 msgstr ""
40731
40732 #. type: textblock
40733 #: ../tools/virt-make-fs.pl:49
40734 msgid ""
40735 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40736 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40737 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40738 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40739 "you want to attach these filesystems to existing virtual machines (eg. to "
40740 "import large amounts of read-only data to a VM)."
40741 msgstr ""
40742
40743 #. type: textblock
40744 #: ../tools/virt-make-fs.pl:57
40745 msgid "Basic usage is:"
40746 msgstr ""
40747
40748 #. type: verbatim
40749 #: ../tools/virt-make-fs.pl:59
40750 #, no-wrap
40751 msgid ""
40752 " virt-make-fs input output.img\n"
40753 "\n"
40754 msgstr ""
40755
40756 #. type: textblock
40757 #: ../tools/virt-make-fs.pl:61
40758 msgid ""
40759 "where C<input> is either a directory containing files that you want to add, "
40760 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40761 "C<output.img> is a disk image.  The input type is detected automatically.  "
40762 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40763 "extra flags (see L</OPTIONS> below)."
40764 msgstr ""
40765
40766 #. type: =head2
40767 #: ../tools/virt-make-fs.pl:67
40768 msgid "FILESYSTEM TYPE"
40769 msgstr ""
40770
40771 #. type: textblock
40772 #: ../tools/virt-make-fs.pl:69
40773 msgid ""
40774 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40775 "libguestfs supports can be used (but I<not> read-only formats like "
40776 "ISO9660).  Here are some of the more common choices:"
40777 msgstr ""
40778
40779 #. type: =item
40780 #: ../tools/virt-make-fs.pl:75
40781 msgid "I<ext3>"
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../tools/virt-make-fs.pl:77
40786 msgid ""
40787 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40788 "you are not going to use the filesystem in a way that requires the journal, "
40789 "then this is just wasted overhead."
40790 msgstr ""
40791
40792 #. type: =item
40793 #: ../tools/virt-make-fs.pl:81
40794 msgid "I<ntfs> or I<vfat>"
40795 msgstr ""
40796
40797 #. type: textblock
40798 #: ../tools/virt-make-fs.pl:83
40799 msgid "Useful if exporting data to a Windows guest."
40800 msgstr ""
40801
40802 #. type: textblock
40803 #: ../tools/virt-make-fs.pl:85
40804 msgid ""
40805 "I<Note for vfat>: The tar archive or local directory must only contain files "
40806 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40807 "program running within libguestfs is unable to change the ownership of non-"
40808 "root files, since vfat itself does not support this."
40809 msgstr ""
40810
40811 #. type: =item
40812 #: ../tools/virt-make-fs.pl:90
40813 msgid "I<minix>"
40814 msgstr ""
40815
40816 #. type: textblock
40817 #: ../tools/virt-make-fs.pl:92
40818 msgid ""
40819 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40820 "total filesystem size."
40821 msgstr ""
40822
40823 #. type: =head3
40824 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
40825 #: ../tools/virt-make-fs.pl:149
40826 msgid "EXAMPLE"
40827 msgstr ""
40828
40829 #. type: verbatim
40830 #: ../tools/virt-make-fs.pl:99
40831 #, no-wrap
40832 msgid ""
40833 " virt-make-fs --type=minix input minixfs.img\n"
40834 "\n"
40835 msgstr ""
40836
40837 #. type: =head2
40838 #: ../tools/virt-make-fs.pl:101
40839 msgid "TO PARTITION OR NOT TO PARTITION"
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../tools/virt-make-fs.pl:103
40844 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40845 msgstr ""
40846
40847 #. type: textblock
40848 #: ../tools/virt-make-fs.pl:105
40849 msgid ""
40850 "Adding a partition can make the disk image more compatible with certain "
40851 "virtualized operating systems which don't expect to see a filesystem "
40852 "directly located on a block device (Linux doesn't care and will happily "
40853 "handle both types)."
40854 msgstr ""
40855
40856 #. type: textblock
40857 #: ../tools/virt-make-fs.pl:110
40858 msgid ""
40859 "On the other hand, if you have a partition table then the output image is no "
40860 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40861 "directly on a partitioned disk image.  (However libguestfs tools such as "
40862 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../tools/virt-make-fs.pl:118
40867 msgid "Add an MBR partition:"
40868 msgstr ""
40869
40870 #. type: verbatim
40871 #: ../tools/virt-make-fs.pl:120
40872 #, no-wrap
40873 msgid ""
40874 " virt-make-fs --partition -- input disk.img\n"
40875 "\n"
40876 msgstr ""
40877
40878 #. type: textblock
40879 #: ../tools/virt-make-fs.pl:122
40880 msgid ""
40881 "If the output disk image could be terabyte-sized or larger, it's better to "
40882 "use an EFI/GPT-compatible partition table:"
40883 msgstr ""
40884
40885 #. type: verbatim
40886 #: ../tools/virt-make-fs.pl:125
40887 #, no-wrap
40888 msgid ""
40889 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40890 "\n"
40891 msgstr ""
40892
40893 #. type: =head2
40894 #: ../tools/virt-make-fs.pl:127
40895 msgid "EXTRA SPACE"
40896 msgstr ""
40897
40898 #. type: textblock
40899 #: ../tools/virt-make-fs.pl:129
40900 msgid ""
40901 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40902 "the files that it contains, but might have extra space.  Depending on how "
40903 "you are going to use the output, you might think this extra space is wasted "
40904 "and want to minimize it, or you might want to leave space so that more files "
40905 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40906 "but you can use the I<--size> flag to leave space in the filesystem if you "
40907 "want it."
40908 msgstr ""
40909
40910 #. type: textblock
40911 #: ../tools/virt-make-fs.pl:137
40912 msgid ""
40913 "An alternative way to leave extra space but not make the output image any "
40914 "bigger is to use an alternative disk image format (instead of the default "
40915 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40916 "image format (check your hypervisor supports this before using it).  This "
40917 "allows you to choose a large I<--size> but the extra space won't actually be "
40918 "allocated in the image until you try to store something in it."
40919 msgstr ""
40920
40921 #. type: textblock
40922 #: ../tools/virt-make-fs.pl:145
40923 msgid ""
40924 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40925 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40926 "to build another image from scratch."
40927 msgstr ""
40928
40929 #. type: verbatim
40930 #: ../tools/virt-make-fs.pl:151
40931 #, no-wrap
40932 msgid ""
40933 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40934 "\n"
40935 msgstr ""
40936
40937 #. type: textblock
40938 #: ../tools/virt-make-fs.pl:179
40939 msgid "Enable debugging information."
40940 msgstr ""
40941
40942 #. type: =item
40943 #: ../tools/virt-make-fs.pl:185
40944 msgid "B<--size=E<lt>NE<gt>>"
40945 msgstr ""
40946
40947 #. type: =item
40948 #: ../tools/virt-make-fs.pl:187
40949 msgid "B<--size=+E<lt>NE<gt>>"
40950 msgstr ""
40951
40952 #. type: =item
40953 #: ../tools/virt-make-fs.pl:189
40954 msgid "B<-s E<lt>NE<gt>>"
40955 msgstr ""
40956
40957 #. type: =item
40958 #: ../tools/virt-make-fs.pl:191
40959 msgid "B<-s +E<lt>NE<gt>>"
40960 msgstr ""
40961
40962 #. type: textblock
40963 #: ../tools/virt-make-fs.pl:193
40964 msgid ""
40965 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40966 msgstr ""
40967
40968 #. type: textblock
40969 #: ../tools/virt-make-fs.pl:196
40970 msgid ""
40971 "If this option is I<not> given, then the output image will be just large "
40972 "enough to contain all the files, with not much wasted space."
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../tools/virt-make-fs.pl:199
40977 msgid ""
40978 "To choose a fixed size output disk, specify an absolute number followed by b/"
40979 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40980 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40981 "files, else you will get an error."
40982 msgstr ""
40983
40984 #. type: textblock
40985 #: ../tools/virt-make-fs.pl:204
40986 msgid ""
40987 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40988 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40989 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40990 "the input files, and (approximately) an extra 200 MB free space."
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../tools/virt-make-fs.pl:210
40995 msgid ""
40996 "Note that virt-make-fs estimates free space, and therefore will not produce "
40997 "filesystems containing precisely the free space requested.  (It is much more "
40998 "expensive and time-consuming to produce a filesystem which has precisely the "
40999 "desired free space)."
41000 msgstr ""
41001
41002 #. type: =item
41003 #: ../tools/virt-make-fs.pl:219
41004 msgid "B<--format=E<lt>fmtE<gt>>"
41005 msgstr ""
41006
41007 #. type: =item
41008 #: ../tools/virt-make-fs.pl:221
41009 msgid "B<-F E<lt>fmtE<gt>>"
41010 msgstr ""
41011
41012 #. type: textblock
41013 #: ../tools/virt-make-fs.pl:223
41014 msgid "Choose the output disk image format."
41015 msgstr ""
41016
41017 #. type: textblock
41018 #: ../tools/virt-make-fs.pl:225
41019 msgid "The default is C<raw> (raw sparse disk image)."
41020 msgstr ""
41021
41022 #. type: textblock
41023 #: ../tools/virt-make-fs.pl:227
41024 msgid ""
41025 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41026 "that would really make sense here is C<qcow2>."
41027 msgstr ""
41028
41029 #. type: =item
41030 #: ../tools/virt-make-fs.pl:234
41031 msgid "B<--type=E<lt>fsE<gt>>"
41032 msgstr ""
41033
41034 #. type: =item
41035 #: ../tools/virt-make-fs.pl:236
41036 msgid "B<-t E<lt>fsE<gt>>"
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../tools/virt-make-fs.pl:238
41041 msgid "Choose the output filesystem type."
41042 msgstr ""
41043
41044 #. type: textblock
41045 #: ../tools/virt-make-fs.pl:240
41046 msgid "The default is C<ext2>."
41047 msgstr ""
41048
41049 #. type: textblock
41050 #: ../tools/virt-make-fs.pl:242
41051 msgid ""
41052 "Any filesystem which is supported read-write by libguestfs can be used here."
41053 msgstr ""
41054
41055 #. type: =item
41056 #: ../tools/virt-make-fs.pl:249
41057 msgid "B<--partition>"
41058 msgstr ""
41059
41060 #. type: =item
41061 #: ../tools/virt-make-fs.pl:251
41062 msgid "B<--partition=E<lt>parttypeE<gt>>"
41063 msgstr ""
41064
41065 #. type: textblock
41066 #: ../tools/virt-make-fs.pl:253
41067 msgid ""
41068 "If specified, this flag adds an MBR partition table to the output disk image."
41069 msgstr ""
41070
41071 #. type: textblock
41072 #: ../tools/virt-make-fs.pl:256
41073 msgid ""
41074 "You can change the partition table type, eg. I<--partition=gpt> for large "
41075 "disks."
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../tools/virt-make-fs.pl:259
41080 msgid ""
41081 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41082 "might consider the next parameter to be the partition type.  For example:"
41083 msgstr ""
41084
41085 #. type: verbatim
41086 #: ../tools/virt-make-fs.pl:263
41087 #, no-wrap
41088 msgid ""
41089 " virt-make-fs --partition input.tar output.img\n"
41090 "\n"
41091 msgstr ""
41092
41093 #. type: textblock
41094 #: ../tools/virt-make-fs.pl:265
41095 msgid ""
41096 "would cause virt-make-fs to think you wanted to use a partition type of "
41097 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41098 "dash) between options and the input and output arguments:"
41099 msgstr ""
41100
41101 #. type: verbatim
41102 #: ../tools/virt-make-fs.pl:269
41103 #, no-wrap
41104 msgid ""
41105 " virt-make-fs --partition -- input.tar output.img\n"
41106 "\n"
41107 msgstr ""
41108
41109 #. type: textblock
41110 #: ../tools/virt-make-fs.pl:271
41111 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41112 msgstr ""
41113
41114 #. type: textblock
41115 #: ../tools/virt-make-fs.pl:559
41116 msgid ""
41117 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41118 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41119 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41120 msgstr ""
41121
41122 #. type: textblock
41123 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41124 msgid ""
41125 "When reporting bugs, please enable debugging and capture the I<complete> "
41126 "output:"
41127 msgstr ""
41128
41129 #. type: verbatim
41130 #: ../tools/virt-make-fs.pl:576
41131 #, no-wrap
41132 msgid ""
41133 " export LIBGUESTFS_DEBUG=1\n"
41134 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41135 "\n"
41136 msgstr ""
41137
41138 #. type: textblock
41139 #: ../tools/virt-make-fs.pl:579
41140 msgid ""
41141 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41142 "redhat.com/>"
41143 msgstr ""
41144
41145 #. type: textblock
41146 #: ../tools/virt-tar.pl:33
41147 msgid "virt-tar - Extract or upload files to a virtual machine"
41148 msgstr ""
41149
41150 #. type: verbatim
41151 #: ../tools/virt-tar.pl:37
41152 #, no-wrap
41153 msgid ""
41154 " virt-tar [--options] -x domname directory tarball\n"
41155 "\n"
41156 msgstr ""
41157
41158 #. type: verbatim
41159 #: ../tools/virt-tar.pl:39
41160 #, no-wrap
41161 msgid ""
41162 " virt-tar [--options] -u domname tarball directory\n"
41163 "\n"
41164 msgstr ""
41165
41166 #. type: verbatim
41167 #: ../tools/virt-tar.pl:41
41168 #, no-wrap
41169 msgid ""
41170 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41171 "\n"
41172 msgstr ""
41173
41174 #. type: verbatim
41175 #: ../tools/virt-tar.pl:43
41176 #, no-wrap
41177 msgid ""
41178 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41179 "\n"
41180 msgstr ""
41181
41182 #. type: =head2
41183 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41184 msgid "NOTE"
41185 msgstr ""
41186
41187 #. type: textblock
41188 #: ../tools/virt-tar.pl:47
41189 msgid ""
41190 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41191 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41192 msgstr ""
41193
41194 #. type: textblock
41195 #: ../tools/virt-tar.pl:52
41196 msgid "Download C</home> from the VM into a local tarball:"
41197 msgstr ""
41198
41199 #. type: verbatim
41200 #: ../tools/virt-tar.pl:54
41201 #, no-wrap
41202 msgid ""
41203 " virt-tar -x domname /home home.tar\n"
41204 "\n"
41205 msgstr ""
41206
41207 #. type: verbatim
41208 #: ../tools/virt-tar.pl:56
41209 #, no-wrap
41210 msgid ""
41211 " virt-tar -zx domname /home home.tar.gz\n"
41212 "\n"
41213 msgstr ""
41214
41215 #. type: textblock
41216 #: ../tools/virt-tar.pl:58
41217 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41218 msgstr ""
41219
41220 #. type: verbatim
41221 #: ../tools/virt-tar.pl:60
41222 #, no-wrap
41223 msgid ""
41224 " virt-tar -u domname uploadstuff.tar /tmp\n"
41225 "\n"
41226 msgstr ""
41227
41228 #. type: verbatim
41229 #: ../tools/virt-tar.pl:62
41230 #, no-wrap
41231 msgid ""
41232 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41233 "\n"
41234 msgstr ""
41235
41236 #. type: textblock
41237 #: ../tools/virt-tar.pl:66
41238 msgid ""
41239 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41240 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41241 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41242 msgstr ""
41243
41244 #. type: textblock
41245 #: ../tools/virt-tar.pl:71
41246 msgid ""
41247 "You can use I<-x> (extract) on live virtual machines, but you might get "
41248 "inconsistent results or errors if there is filesystem activity inside the "
41249 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41250 "work, but the only way to guarantee consistent results is if the virtual "
41251 "machine is shut down."
41252 msgstr ""
41253
41254 #. type: textblock
41255 #: ../tools/virt-tar.pl:79
41256 msgid ""
41257 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41258 "parts of a guest filesystem.  There are many possibilities: making backups, "
41259 "uploading data files, snooping on guest activity, fixing or customizing "
41260 "guests, etc."
41261 msgstr ""
41262
41263 #. type: textblock
41264 #: ../tools/virt-tar.pl:84
41265 msgid ""
41266 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41267 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41268 "should look at the L<guestfish(1)> tool."
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../tools/virt-tar.pl:88
41273 msgid ""
41274 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41275 "its contents (recursively) from the virtual machine into a local tarball.  "
41276 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41277 "virtual machine.  You cannot use these two options together."
41278 msgstr ""
41279
41280 #. type: textblock
41281 #: ../tools/virt-tar.pl:94
41282 msgid ""
41283 "In addition, you may need to use the I<-z> (gZip) option to enable "
41284 "compression.  When uploading, you have to specify I<-z> if the upload file "
41285 "is compressed because virt-tar won't detect this on its own."
41286 msgstr ""
41287
41288 #. type: textblock
41289 #: ../tools/virt-tar.pl:98
41290 msgid ""
41291 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41292 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41293 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41294 "the L<libguestfs(3)> API)."
41295 msgstr ""
41296
41297 #. type: =item
41298 #: ../tools/virt-tar.pl:160
41299 msgid "B<--extract>"
41300 msgstr ""
41301
41302 #. type: =item
41303 #: ../tools/virt-tar.pl:162
41304 msgid "B<--download>"
41305 msgstr ""
41306
41307 #. type: =item
41308 #: ../tools/virt-tar.pl:164
41309 msgid "B<-u>"
41310 msgstr ""
41311
41312 #. type: =item
41313 #: ../tools/virt-tar.pl:166
41314 msgid "B<--upload>"
41315 msgstr ""
41316
41317 #. type: textblock
41318 #: ../tools/virt-tar.pl:168
41319 msgid ""
41320 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41321 "local tarball."
41322 msgstr ""
41323
41324 #. type: textblock
41325 #: ../tools/virt-tar.pl:171
41326 msgid ""
41327 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41328 "Please read the L</WARNING> section above before using this option."
41329 msgstr ""
41330
41331 #. type: textblock
41332 #: ../tools/virt-tar.pl:175
41333 msgid "You must specify exactly one of these options."
41334 msgstr ""
41335
41336 #. type: =item
41337 #: ../tools/virt-tar.pl:181
41338 msgid "B<-z>"
41339 msgstr ""
41340
41341 #. type: =item
41342 #: ../tools/virt-tar.pl:183
41343 msgid "B<--gzip>"
41344 msgstr ""
41345
41346 #. type: textblock
41347 #: ../tools/virt-tar.pl:185
41348 msgid "Specify that the input or output tarball is gzip-compressed."
41349 msgstr ""
41350
41351 #. type: textblock
41352 #: ../tools/virt-tar.pl:298
41353 msgid ""
41354 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41355 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41356 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41357 "org/>."
41358 msgstr ""
41359
41360 #. type: textblock
41361 #: ../tools/virt-win-reg.pl:37
41362 msgid ""
41363 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41364 msgstr ""
41365
41366 #. type: verbatim
41367 #: ../tools/virt-win-reg.pl:41
41368 #, no-wrap
41369 msgid ""
41370 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41371 "\n"
41372 msgstr ""
41373
41374 #. type: verbatim
41375 #: ../tools/virt-win-reg.pl:43
41376 #, no-wrap
41377 msgid ""
41378 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41379 "\n"
41380 msgstr ""
41381
41382 #. type: verbatim
41383 #: ../tools/virt-win-reg.pl:45
41384 #, no-wrap
41385 msgid ""
41386 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41387 "\n"
41388 msgstr ""
41389
41390 #. type: verbatim
41391 #: ../tools/virt-win-reg.pl:47
41392 #, no-wrap
41393 msgid ""
41394 " virt-win-reg --merge domname [input.reg ...]\n"
41395 "\n"
41396 msgstr ""
41397
41398 #. type: verbatim
41399 #: ../tools/virt-win-reg.pl:49
41400 #, no-wrap
41401 msgid ""
41402 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41403 "\n"
41404 msgstr ""
41405
41406 #. type: textblock
41407 #: ../tools/virt-win-reg.pl:53
41408 msgid ""
41409 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41410 "virtual machines.  If you do this, you I<will> get irreversible disk "
41411 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41412 "but doesn't catch all cases."
41413 msgstr ""
41414
41415 #. type: textblock
41416 #: ../tools/virt-win-reg.pl:58
41417 msgid ""
41418 "Modifying the Windows Registry is an inherently risky operation.  The format "
41419 "is deliberately obscure and undocumented, and Registry changes can leave the "
41420 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41421 "you have a reliable backup first."
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../tools/virt-win-reg.pl:65
41426 msgid ""
41427 "This program can export and merge Windows Registry entries from a Windows "
41428 "guest."
41429 msgstr ""
41430
41431 #. type: textblock
41432 #: ../tools/virt-win-reg.pl:68
41433 msgid ""
41434 "The first parameter is the libvirt guest name or the raw disk image of a "
41435 "Windows guest."
41436 msgstr ""
41437
41438 #. type: textblock
41439 #: ../tools/virt-win-reg.pl:71
41440 msgid ""
41441 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41442 "exported (recursively).  For example:"
41443 msgstr ""
41444
41445 #. type: verbatim
41446 #: ../tools/virt-win-reg.pl:74
41447 #, no-wrap
41448 msgid ""
41449 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41450 "\n"
41451 msgstr ""
41452
41453 #. type: textblock
41454 #: ../tools/virt-win-reg.pl:76
41455 msgid ""
41456 "You can also display single values from within registry keys, for example:"
41457 msgstr ""
41458
41459 #. type: verbatim
41460 #: ../tools/virt-win-reg.pl:79
41461 #, no-wrap
41462 msgid ""
41463 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41464 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41465 " Windows 7 Enterprise\n"
41466 "\n"
41467 msgstr ""
41468
41469 #. type: textblock
41470 #: ../tools/virt-win-reg.pl:83
41471 msgid ""
41472 "With I<--merge>, you can merge a textual regedit file into the Windows "
41473 "Registry:"
41474 msgstr ""
41475
41476 #. type: verbatim
41477 #: ../tools/virt-win-reg.pl:86
41478 #, no-wrap
41479 msgid ""
41480 " $ virt-win-reg --merge Windows7 changes.reg\n"
41481 "\n"
41482 msgstr ""
41483
41484 #. type: textblock
41485 #: ../tools/virt-win-reg.pl:90
41486 msgid ""
41487 "This program is only meant for simple access to the registry.  If you want "
41488 "to do complicated things with the registry, we suggest you download the "
41489 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41490 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41491 "L<hivexregedit(1)>."
41492 msgstr ""
41493
41494 #. type: =item
41495 #: ../tools/virt-win-reg.pl:159
41496 msgid "B<--merge>"
41497 msgstr ""
41498
41499 #. type: textblock
41500 #: ../tools/virt-win-reg.pl:161
41501 msgid ""
41502 "In merge mode, this merges a textual regedit file into the Windows Registry "
41503 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41504 "displays or exports Registry entries instead."
41505 msgstr ""
41506
41507 #. type: textblock
41508 #: ../tools/virt-win-reg.pl:165
41509 msgid ""
41510 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41511 "result in disk corruption.  However exporting (without this flag)  is always "
41512 "safe."
41513 msgstr ""
41514
41515 #. type: =item
41516 #: ../tools/virt-win-reg.pl:173
41517 msgid "B<--encoding> UTF-16LE|ASCII"
41518 msgstr ""
41519
41520 #. type: textblock
41521 #: ../tools/virt-win-reg.pl:175
41522 msgid ""
41523 "When merging (only), you may need to specify the encoding for strings to be "
41524 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41525 "(3)/ENCODING STRINGS>."
41526 msgstr ""
41527
41528 #. type: textblock
41529 #: ../tools/virt-win-reg.pl:179
41530 msgid ""
41531 "The default is to use UTF-16LE, which should work with recent versions of "
41532 "Windows."
41533 msgstr ""
41534
41535 #. type: =item
41536 #: ../tools/virt-win-reg.pl:186
41537 msgid "B<--unsafe-printable-strings>"
41538 msgstr ""
41539
41540 #. type: textblock
41541 #: ../tools/virt-win-reg.pl:188
41542 msgid ""
41543 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41544 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41545 "present."
41546 msgstr ""
41547
41548 #. type: textblock
41549 #: ../tools/virt-win-reg.pl:192
41550 msgid ""
41551 "This is unsafe and does not preserve the fidelity of strings in the original "
41552 "Registry for various reasons:"
41553 msgstr ""
41554
41555 #. type: textblock
41556 #: ../tools/virt-win-reg.pl:199
41557 msgid ""
41558 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41559 "other encodings will be corrupted by this transformation."
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../tools/virt-win-reg.pl:204
41564 msgid ""
41565 "Assumes that everything which has type 1 or 2 is really a string and that "
41566 "everything else is not a string, but the type field in real Registries is "
41567 "not reliable."
41568 msgstr ""
41569
41570 #. type: textblock
41571 #: ../tools/virt-win-reg.pl:210
41572 msgid ""
41573 "Loses information about whether a zero codepoint followed the string in the "
41574 "Registry or not."
41575 msgstr ""
41576
41577 #. type: textblock
41578 #: ../tools/virt-win-reg.pl:215
41579 msgid ""
41580 "This all happens because the Registry itself contains no information about "
41581 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41582 msgstr ""
41583
41584 #. type: textblock
41585 #: ../tools/virt-win-reg.pl:219
41586 msgid ""
41587 "You should only use this option for quick hacking and debugging of the "
41588 "Registry contents, and I<never> use it if the output is going to be passed "
41589 "into another program or stored in another Registry."
41590 msgstr ""
41591
41592 #. type: =head1
41593 #: ../tools/virt-win-reg.pl:556
41594 msgid "SUPPORTED SYSTEMS"
41595 msgstr ""
41596
41597 #. type: textblock
41598 #: ../tools/virt-win-reg.pl:558
41599 msgid ""
41600 "The program currently supports Windows NT-derived guests starting with "
41601 "Windows XP through to at least Windows 7."
41602 msgstr ""
41603
41604 #. type: textblock
41605 #: ../tools/virt-win-reg.pl:561
41606 msgid "The following Registry keys are supported:"
41607 msgstr ""
41608
41609 #. type: =item
41610 #: ../tools/virt-win-reg.pl:565
41611 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41612 msgstr ""
41613
41614 #. type: =item
41615 #: ../tools/virt-win-reg.pl:567
41616 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41617 msgstr ""
41618
41619 #. type: =item
41620 #: ../tools/virt-win-reg.pl:569
41621 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41622 msgstr ""
41623
41624 #. type: =item
41625 #: ../tools/virt-win-reg.pl:571
41626 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41627 msgstr ""
41628
41629 #. type: =item
41630 #: ../tools/virt-win-reg.pl:573
41631 msgid "C<HKEY_USERS\\.DEFAULT>"
41632 msgstr ""
41633
41634 #. type: =item
41635 #: ../tools/virt-win-reg.pl:575
41636 msgid "C<HKEY_USERS\\I<SID>>"
41637 msgstr ""
41638
41639 #. type: textblock
41640 #: ../tools/virt-win-reg.pl:577
41641 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41642 msgstr ""
41643
41644 #. type: =item
41645 #: ../tools/virt-win-reg.pl:579
41646 msgid "C<HKEY_USERS\\I<username>>"
41647 msgstr ""
41648
41649 #. type: textblock
41650 #: ../tools/virt-win-reg.pl:581
41651 msgid ""
41652 "where I<username> is a local user name (this is a libguestfs extension)."
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../tools/virt-win-reg.pl:585
41657 msgid ""
41658 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41659 "C<HKEY_USERS>."
41660 msgstr ""
41661
41662 #. type: textblock
41663 #: ../tools/virt-win-reg.pl:588
41664 msgid ""
41665 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41666 "supported (there is no \"current user\")."
41667 msgstr ""
41668
41669 #. type: =head1
41670 #: ../tools/virt-win-reg.pl:591
41671 msgid "ENCODING"
41672 msgstr ""
41673
41674 #. type: textblock
41675 #: ../tools/virt-win-reg.pl:593
41676 msgid ""
41677 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41678 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41679 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41680 "Windows-style line endings, you may need to reencode the whole file before "
41681 "or after processing."
41682 msgstr ""
41683
41684 #. type: textblock
41685 #: ../tools/virt-win-reg.pl:599
41686 msgid ""
41687 "To reencode a file from Windows format to Linux (before processing it with "
41688 "the I<--merge> option), you would do something like this:"
41689 msgstr ""
41690
41691 #. type: verbatim
41692 #: ../tools/virt-win-reg.pl:602
41693 #, no-wrap
41694 msgid ""
41695 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41696 "\n"
41697 msgstr ""
41698
41699 #. type: textblock
41700 #: ../tools/virt-win-reg.pl:604
41701 msgid ""
41702 "To go in the opposite direction, after exporting and before sending the file "
41703 "to a Windows user, do something like this:"
41704 msgstr ""
41705
41706 #. type: verbatim
41707 #: ../tools/virt-win-reg.pl:607
41708 #, no-wrap
41709 msgid ""
41710 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41711 "\n"
41712 msgstr ""
41713
41714 #. type: textblock
41715 #: ../tools/virt-win-reg.pl:609
41716 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41717 msgstr ""
41718
41719 #. type: textblock
41720 #: ../tools/virt-win-reg.pl:611
41721 msgid ""
41722 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41723 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41724 "style (CRLF) line endings, like this:"
41725 msgstr ""
41726
41727 #. type: verbatim
41728 #: ../tools/virt-win-reg.pl:615
41729 #, no-wrap
41730 msgid ""
41731 " $ file software.reg\n"
41732 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41733 " with CRLF line terminators\n"
41734 "\n"
41735 msgstr ""
41736
41737 #. type: textblock
41738 #: ../tools/virt-win-reg.pl:619
41739 msgid "This file would need conversion before you could I<--merge> it."
41740 msgstr ""
41741
41742 #. type: =head1
41743 #: ../tools/virt-win-reg.pl:621
41744 msgid "CurrentControlSet etc."
41745 msgstr ""
41746
41747 #. type: textblock
41748 #: ../tools/virt-win-reg.pl:623
41749 msgid ""
41750 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41751 "Registry at the level of the hive file, and therefore you cannot modify "
41752 "these."
41753 msgstr ""
41754
41755 #. type: textblock
41756 #: ../tools/virt-win-reg.pl:627
41757 msgid ""
41758 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41759 "circumstances it might refer to another control set.  The way to find out is "
41760 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41761 msgstr ""
41762
41763 #. type: verbatim
41764 #: ../tools/virt-win-reg.pl:631
41765 #, no-wrap
41766 msgid ""
41767 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41768 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41769 " \"Current\"=dword:00000001\n"
41770 " \"Default\"=dword:00000001\n"
41771 " \"Failed\"=dword:00000000\n"
41772 " \"LastKnownGood\"=dword:00000002\n"
41773 "\n"
41774 msgstr ""
41775
41776 #. type: textblock
41777 #: ../tools/virt-win-reg.pl:638
41778 msgid "\"Current\" is the one which Windows will choose when it boots."
41779 msgstr ""
41780
41781 #. type: textblock
41782 #: ../tools/virt-win-reg.pl:640
41783 msgid ""
41784 "Similarly, other C<Current...> keys in the path may need to be replaced."
41785 msgstr ""
41786
41787 #. type: =head1
41788 #: ../tools/virt-win-reg.pl:643
41789 msgid "DELETING REGISTRY KEYS AND VALUES"
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../tools/virt-win-reg.pl:645
41794 msgid "To delete a whole registry key, use the syntax:"
41795 msgstr ""
41796
41797 #. type: verbatim
41798 #: ../tools/virt-win-reg.pl:647
41799 #, no-wrap
41800 msgid ""
41801 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41802 "\n"
41803 msgstr ""
41804
41805 #. type: textblock
41806 #: ../tools/virt-win-reg.pl:649
41807 msgid "To delete a single value within a key, use the syntax:"
41808 msgstr ""
41809
41810 #. type: verbatim
41811 #: ../tools/virt-win-reg.pl:651
41812 #, no-wrap
41813 msgid ""
41814 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41815 " \"Value\"=-\n"
41816 "\n"
41817 msgstr ""
41818
41819 #. type: =head1
41820 #: ../tools/virt-win-reg.pl:654
41821 msgid "WINDOWS TIPS"
41822 msgstr ""
41823
41824 #. type: textblock
41825 #: ../tools/virt-win-reg.pl:656
41826 msgid ""
41827 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41828 "be shut off, else you will get disk corruption."
41829 msgstr ""
41830
41831 #. type: =head2
41832 #: ../tools/virt-win-reg.pl:659
41833 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41834 msgstr ""
41835
41836 #. type: textblock
41837 #: ../tools/virt-win-reg.pl:661
41838 msgid ""
41839 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41840 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41841 "is uploaded into C<C:\\>:"
41842 msgstr ""
41843
41844 #. type: verbatim
41845 #: ../tools/virt-win-reg.pl:665
41846 #, no-wrap
41847 msgid ""
41848 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41849 "\n"
41850 msgstr ""
41851
41852 #. type: textblock
41853 #: ../tools/virt-win-reg.pl:667
41854 msgid "Prepare a regedit file containing the registry change:"
41855 msgstr ""
41856
41857 #. type: verbatim
41858 #: ../tools/virt-win-reg.pl:669
41859 #, no-wrap
41860 msgid ""
41861 " cat > test.reg <<'EOF'\n"
41862 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41863 " \"Test\"=\"c:\\\\test.bat\"\n"
41864 " EOF\n"
41865 "\n"
41866 msgstr ""
41867
41868 #. type: textblock
41869 #: ../tools/virt-win-reg.pl:674
41870 msgid ""
41871 "In this example we use the key C<RunOnce> which means that the script will "
41872 "run precisely once when the first user logs in.  If you want it to run every "
41873 "time a user logs in, replace C<RunOnce> with C<Run>."
41874 msgstr ""
41875
41876 #. type: textblock
41877 #: ../tools/virt-win-reg.pl:678
41878 msgid "Now update the registry:"
41879 msgstr ""
41880
41881 #. type: verbatim
41882 #: ../tools/virt-win-reg.pl:680
41883 #, no-wrap
41884 msgid ""
41885 " virt-win-reg --merge WindowsGuest test.reg\n"
41886 "\n"
41887 msgstr ""
41888
41889 #. type: =head2
41890 #: ../tools/virt-win-reg.pl:682
41891 msgid "INSTALLING A SERVICE"
41892 msgstr ""
41893
41894 #. type: textblock
41895 #: ../tools/virt-win-reg.pl:684
41896 msgid ""
41897 "This section assumes you are familiar with Windows services, and you either "
41898 "have a program which handles the Windows Service Control Protocol directly "
41899 "or you want to run any program using a service wrapper like SrvAny or the "
41900 "free RHSrvAny."
41901 msgstr ""
41902
41903 #. type: textblock
41904 #: ../tools/virt-win-reg.pl:689
41905 msgid ""
41906 "First upload the program and optionally the service wrapper.  In this case "
41907 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41908 msgstr ""
41909
41910 #. type: verbatim
41911 #: ../tools/virt-win-reg.pl:693
41912 #, no-wrap
41913 msgid ""
41914 " guestfish -i -d WindowsGuest <<EOF\n"
41915 "   upload rhsrvany.exe /rhsrvany.exe\n"
41916 "   upload test.exe /test.exe\n"
41917 " EOF\n"
41918 "\n"
41919 msgstr ""
41920
41921 #. type: textblock
41922 #: ../tools/virt-win-reg.pl:698
41923 msgid ""
41924 "Prepare a regedit file containing the registry changes.  In this example, "
41925 "the first registry change is needed for the service itself or the service "
41926 "wrapper (if used).  The second registry change is only needed because I am "
41927 "using the RHSrvAny service wrapper."
41928 msgstr ""
41929
41930 #. type: verbatim
41931 #: ../tools/virt-win-reg.pl:703
41932 #, no-wrap
41933 msgid ""
41934 " cat > service.reg <<'EOF'\n"
41935 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41936 " \"Type\"=dword:00000010\n"
41937 " \"Start\"=dword:00000002\n"
41938 " \"ErrorControl\"=dword:00000001\n"
41939 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41940 " \"DisplayName\"=\"RHSrvAny\"\n"
41941 " \"ObjectName\"=\"NetworkService\"\n"
41942 " \n"
41943 msgstr ""
41944
41945 #. type: verbatim
41946 #: ../tools/virt-win-reg.pl:712
41947 #, no-wrap
41948 msgid ""
41949 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41950 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41951 " \"PWD\"=\"c:\\\\Temp\"\n"
41952 " EOF\n"
41953 "\n"
41954 msgstr ""
41955
41956 #. type: textblock
41957 #: ../tools/virt-win-reg.pl:723
41958 msgid ""
41959 "For use of C<ControlSet001> see the section above in this manual page.  You "
41960 "may need to adjust this according to the control set that is in use by the "
41961 "guest."
41962 msgstr ""
41963
41964 #. type: textblock
41965 #: ../tools/virt-win-reg.pl:729
41966 msgid ""
41967 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41968 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41969 "privileged account."
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../tools/virt-win-reg.pl:735
41974 msgid ""
41975 "For the meaning of the magic numbers, see this Microsoft KB article: "
41976 "L<http://support.microsoft.com/kb/103000>."
41977 msgstr ""
41978
41979 #. type: textblock
41980 #: ../tools/virt-win-reg.pl:740
41981 msgid "Update the registry:"
41982 msgstr ""
41983
41984 #. type: verbatim
41985 #: ../tools/virt-win-reg.pl:742
41986 #, no-wrap
41987 msgid ""
41988 " virt-win-reg --merge WindowsGuest service.reg\n"
41989 "\n"
41990 msgstr ""
41991
41992 #. type: textblock
41993 #: ../tools/virt-win-reg.pl:746
41994 msgid ""
41995 "Be careful when passing parameters containing C<\\> (backslash) in the "
41996 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41997 "(but not both) to protect them from the shell."
41998 msgstr ""
41999
42000 #. type: textblock
42001 #: ../tools/virt-win-reg.pl:750
42002 msgid "Paths and value names are case-insensitive."
42003 msgstr ""
42004
42005 #. type: textblock
42006 #: ../tools/virt-win-reg.pl:759
42007 msgid ""
42008 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42009 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42010 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42011 msgstr ""
42012
42013 #. type: verbatim
42014 #: ../tools/virt-win-reg.pl:777
42015 #, no-wrap
42016 msgid ""
42017 " export LIBGUESTFS_DEBUG=1\n"
42018 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42019 "\n"
42020 msgstr ""
42021
42022 #. type: textblock
42023 #: ../tools/virt-win-reg.pl:780
42024 msgid ""
42025 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42026 "redhat.com/>"
42027 msgstr ""