Version 1.13.23.
[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-20 22:17+0200\n"
13 "PO-Revision-Date: 2011-10-19 15:46+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "名前"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:470
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:472
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:540
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:542
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:544
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests.  Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
809 msgstr ""
810
811 #. type: textblock
812 #: ../align/virt-alignment-scan.pod:284
813 msgid ""
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems.  If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
817 msgstr ""
818
819 #. type: textblock
820 #: ../align/virt-alignment-scan.pod:288
821 msgid ""
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../align/virt-alignment-scan.pod:291
828 msgid ""
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
832 "contains an example."
833 msgstr ""
834
835 #. type: =head1
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:191
837 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:655
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:733
844 msgid "SHELL QUOTING"
845 msgstr ""
846
847 #. type: textblock
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:193
849 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:657
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:741
856 msgid ""
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space.  You may need to quote or "
859 "escape these characters on the command line.  See the shell manual page L<sh"
860 "(1)> for details."
861 msgstr ""
862
863 #. type: =head1
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:198
865 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:662 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
871 msgid "EXIT STATUS"
872 msgstr ""
873
874 #. type: textblock
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
877 msgstr ""
878
879 #. type: =item
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
883 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
884 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
885 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
886 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
887 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
888 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
889 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
890 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
891 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
892 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
893 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
894 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
895 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
896 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
897 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
898 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
899 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
900 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
901 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
902 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
903 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
904 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
905 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
906 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
907 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
908 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
909 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
910 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
911 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
912 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
913 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
914 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:338
915 #: ../resize/virt-resize.pod:342 ../resize/virt-resize.pod:351
916 #: ../resize/virt-resize.pod:357 ../sparsify/virt-sparsify.pod:32
917 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
918 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
919 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
920 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
921 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
922 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
923 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
924 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
925 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
926 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
927 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
928 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
929 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
930 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
931 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
932 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
933 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
934 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
935 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
936 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
937 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
938 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
939 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
940 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
941 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
942 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
943 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
944 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
945 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
946 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
947 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
948 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
949 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
950 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
951 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
952 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
953 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
954 #: ../tools/virt-win-reg.pl:722
955 msgid "*"
956 msgstr ""
957
958 #. type: textblock
959 #: ../align/virt-alignment-scan.pod:311
960 msgid "0"
961 msgstr ""
962
963 #. type: textblock
964 #: ../align/virt-alignment-scan.pod:313
965 msgid ""
966 "successful exit, all partitions are aligned E<ge> 64K for best performance"
967 msgstr ""
968
969 #. type: textblock
970 #: ../align/virt-alignment-scan.pod:317
971 msgid "1"
972 msgstr ""
973
974 #. type: textblock
975 #: ../align/virt-alignment-scan.pod:319
976 msgid "an error scanning the disk image or guest"
977 msgstr ""
978
979 #. type: textblock
980 #: ../align/virt-alignment-scan.pod:323
981 msgid "2"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:325
986 msgid ""
987 "successful exit, some partitions have alignment E<lt> 64K which can result "
988 "in poor performance on high end network storage"
989 msgstr ""
990
991 #. type: textblock
992 #: ../align/virt-alignment-scan.pod:330
993 msgid "3"
994 msgstr ""
995
996 #. type: textblock
997 #: ../align/virt-alignment-scan.pod:332
998 msgid ""
999 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1000 "poor performance on most hypervisors"
1001 msgstr ""
1002
1003 #. type: =head1
1004 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:203
1005 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1006 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1007 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1008 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1009 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1010 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1011 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1012 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1013 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1014 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1015 #: ../resize/virt-resize.pod:667 ../ruby/examples/guestfs-ruby.pod:36
1016 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1017 #: ../test-tool/libguestfs-test-tool.pod:100
1018 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1019 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1020 #: ../tools/virt-win-reg.pl:746
1021 msgid "SEE ALSO"
1022 msgstr ""
1023
1024 #. type: textblock
1025 #: ../align/virt-alignment-scan.pod:339
1026 msgid ""
1027 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1028 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1029 msgstr ""
1030
1031 #. type: =head1
1032 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:212
1033 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1034 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1035 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1036 #: ../resize/virt-resize.pod:690 ../sparsify/virt-sparsify.pod:264
1037 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1038 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1039 #: ../tools/virt-win-reg.pl:772
1040 msgid "AUTHOR"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:214
1045 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1046 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1047 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1048 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:692
1049 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1050 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1051 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1052 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1053 msgstr ""
1054
1055 #. type: =head1
1056 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:216
1057 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1058 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1059 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1060 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1061 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1062 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1063 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1064 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1065 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1066 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1067 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:52
1068 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1069 #: ../test-tool/libguestfs-test-tool.pod:110
1070 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1071 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1072 #: ../tools/virt-win-reg.pl:776
1073 msgid "COPYRIGHT"
1074 msgstr ""
1075
1076 #. type: textblock
1077 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1078 #: ../sparsify/virt-sparsify.pod:270
1079 msgid "Copyright (C) 2011 Red Hat Inc."
1080 msgstr ""
1081
1082 #. type: textblock
1083 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:220
1084 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1085 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1086 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1087 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1088 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1089 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1090 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:698
1091 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1092 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1093 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1094 #: ../tools/virt-win-reg.pl:780
1095 msgid ""
1096 "This program is free software; you can redistribute it and/or modify it "
1097 "under the terms of the GNU General Public License as published by the Free "
1098 "Software Foundation; either version 2 of the License, or (at your option) "
1099 "any later version."
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:225
1104 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1105 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1106 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1107 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1108 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1109 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1110 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:703
1111 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1112 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1113 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1114 #: ../tools/virt-win-reg.pl:785
1115 msgid ""
1116 "This program is distributed in the hope that it will be useful, but WITHOUT "
1117 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1118 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1119 "more details."
1120 msgstr ""
1121
1122 #. type: textblock
1123 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:230
1124 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1125 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1126 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1127 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1128 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1129 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1130 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:708
1131 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1132 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1133 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1134 #: ../tools/virt-win-reg.pl:790
1135 msgid ""
1136 "You should have received a copy of the GNU General Public License along with "
1137 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1138 "Ave, Cambridge, MA 02139, USA."
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../cat/virt-cat.pod:5
1143 msgid "virt-cat - Display files in a virtual machine"
1144 msgstr ""
1145
1146 #. type: verbatim
1147 #: ../cat/virt-cat.pod:9
1148 #, no-wrap
1149 msgid ""
1150 " virt-cat [--options] -d domname file [file ...]\n"
1151 "\n"
1152 msgstr ""
1153
1154 #. type: verbatim
1155 #: ../cat/virt-cat.pod:11
1156 #, no-wrap
1157 msgid ""
1158 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1159 "\n"
1160 msgstr ""
1161
1162 #. type: textblock
1163 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1164 #: ../inspector/virt-inspector.pod:13
1165 msgid "Old-style:"
1166 msgstr ""
1167
1168 #. type: verbatim
1169 #: ../cat/virt-cat.pod:15
1170 #, no-wrap
1171 msgid ""
1172 " virt-cat domname file\n"
1173 "\n"
1174 msgstr ""
1175
1176 #. type: verbatim
1177 #: ../cat/virt-cat.pod:17
1178 #, no-wrap
1179 msgid ""
1180 " virt-cat disk.img file\n"
1181 "\n"
1182 msgstr ""
1183
1184 #. type: textblock
1185 #: ../cat/virt-cat.pod:21
1186 msgid ""
1187 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1188 "C<file> exists in the named virtual machine (or disk image)."
1189 msgstr ""
1190
1191 #. type: textblock
1192 #: ../cat/virt-cat.pod:24
1193 msgid ""
1194 "Multiple filenames can be given, in which case they are concatenated "
1195 "together.  Each filename must be a full path, starting at the root directory "
1196 "(starting with '/')."
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-cat.pod:28
1201 msgid ""
1202 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1203 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1204 "(see L</USING GUESTFISH> below)."
1205 msgstr ""
1206
1207 #. type: =head1
1208 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1209 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1210 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1211 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1212 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1213 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1214 #: ../tools/virt-tar.pl:50
1215 msgid "EXAMPLES"
1216 msgstr ""
1217
1218 #. type: textblock
1219 #: ../cat/virt-cat.pod:34
1220 msgid ""
1221 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1222 msgstr ""
1223
1224 #. type: verbatim
1225 #: ../cat/virt-cat.pod:37
1226 #, no-wrap
1227 msgid ""
1228 " virt-cat -d mydomain /etc/fstab\n"
1229 "\n"
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-cat.pod:39
1234 msgid "List syslog messages from a VM disk image file:"
1235 msgstr ""
1236
1237 #. type: verbatim
1238 #: ../cat/virt-cat.pod:41
1239 #, no-wrap
1240 msgid ""
1241 " virt-cat -a disk.img /var/log/messages | tail\n"
1242 "\n"
1243 msgstr ""
1244
1245 #. type: textblock
1246 #: ../cat/virt-cat.pod:43
1247 msgid "Find out what DHCP IP address a VM acquired:"
1248 msgstr ""
1249
1250 #. type: verbatim
1251 #: ../cat/virt-cat.pod:45
1252 #, no-wrap
1253 msgid ""
1254 " virt-cat -d mydomain /var/log/messages | \\\n"
1255 "   grep 'dhclient: bound to' | tail\n"
1256 "\n"
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-cat.pod:48
1261 msgid "Find out what packages were recently installed:"
1262 msgstr ""
1263
1264 #. type: verbatim
1265 #: ../cat/virt-cat.pod:50
1266 #, no-wrap
1267 msgid ""
1268 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1269 "\n"
1270 msgstr ""
1271
1272 #. type: textblock
1273 #: ../cat/virt-cat.pod:52
1274 msgid "Find out who is logged on inside a virtual machine:"
1275 msgstr ""
1276
1277 #. type: verbatim
1278 #: ../cat/virt-cat.pod:54
1279 #, no-wrap
1280 msgid ""
1281 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1282 " who /tmp/utmp\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-cat.pod:57
1288 msgid "or who was logged on:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-cat.pod:59
1293 #, no-wrap
1294 msgid ""
1295 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1296 " last -f /tmp/wtmp\n"
1297 "\n"
1298 msgstr ""
1299
1300 #. type: textblock
1301 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1302 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1303 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1304 msgid ""
1305 "Add I<file> which should be a disk image from a virtual machine.  If the "
1306 "virtual machine has multiple block devices, you must supply all of them with "
1307 "separate I<-a> options."
1308 msgstr ""
1309
1310 #. type: =item
1311 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1312 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1313 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1314 msgid "B<--echo-keys>"
1315 msgstr ""
1316
1317 #. type: textblock
1318 #: ../cat/virt-cat.pod:100
1319 msgid ""
1320 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1321 "so you cannot see what you are typing.  If you are not worried about Tempest "
1322 "attacks and there is no one else in the room you can specify this flag to "
1323 "see what you are typing."
1324 msgstr ""
1325
1326 #. type: verbatim
1327 #: ../cat/virt-cat.pod:116
1328 #, no-wrap
1329 msgid ""
1330 " virt-cat --format=raw -a disk.img file\n"
1331 "\n"
1332 msgstr ""
1333
1334 #. type: verbatim
1335 #: ../cat/virt-cat.pod:120
1336 #, no-wrap
1337 msgid ""
1338 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1339 "\n"
1340 msgstr ""
1341
1342 #. type: =item
1343 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1344 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1345 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1346 msgid "B<--keys-from-stdin>"
1347 msgstr ""
1348
1349 #. type: textblock
1350 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1351 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1352 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1353 msgid ""
1354 "Read key or passphrase parameters from stdin.  The default is to try to read "
1355 "passphrases from the user by opening C</dev/tty>."
1356 msgstr ""
1357
1358 #. type: =head1
1359 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1360 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1361 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-cat.pod:154
1366 msgid "Previous versions of virt-cat allowed you to write either:"
1367 msgstr ""
1368
1369 #. type: verbatim
1370 #: ../cat/virt-cat.pod:156
1371 #, no-wrap
1372 msgid ""
1373 " virt-cat disk.img [disk.img ...] file\n"
1374 "\n"
1375 msgstr ""
1376
1377 #. type: textblock
1378 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1379 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1380 msgid "or"
1381 msgstr ""
1382
1383 #. type: verbatim
1384 #: ../cat/virt-cat.pod:160
1385 #, no-wrap
1386 msgid ""
1387 " virt-cat guestname file\n"
1388 "\n"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1393 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1394 msgid ""
1395 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1396 "the confusing case where a disk image might have the same name as a guest."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1401 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1402 msgid "For compatibility the old style is still supported."
1403 msgstr ""
1404
1405 #. type: =head1
1406 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1407 msgid "USING GUESTFISH"
1408 msgstr ""
1409
1410 #. type: textblock
1411 #: ../cat/virt-cat.pod:170
1412 msgid ""
1413 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1414 "C<virt-cat> doesn't work."
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-cat.pod:173
1419 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1420 msgstr ""
1421
1422 #. type: verbatim
1423 #: ../cat/virt-cat.pod:175
1424 #, no-wrap
1425 msgid ""
1426 " guestfish --ro -i -d domname download file -\n"
1427 "\n"
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-cat.pod:177
1432 msgid ""
1433 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1434 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1435 msgstr ""
1436
1437 #. type: textblock
1438 #: ../cat/virt-cat.pod:181
1439 msgid ""
1440 "The command above uses libguestfs's guest inspection feature and so does not "
1441 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1442 "disk images that don't contain guests.  To display a file from a disk image "
1443 "directly, use:"
1444 msgstr ""
1445
1446 #. type: verbatim
1447 #: ../cat/virt-cat.pod:186
1448 #, no-wrap
1449 msgid ""
1450 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1451 "\n"
1452 msgstr ""
1453
1454 #. type: textblock
1455 #: ../cat/virt-cat.pod:188
1456 msgid ""
1457 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1458 "the disk image, and C<file> is the full path to the file."
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1463 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1464 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1465 #: ../resize/virt-resize.pod:664 ../sparsify/virt-sparsify.pod:229
1466 msgid ""
1467 "This program returns 0 if successful, or non-zero if there was an error."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-cat.pod:205
1472 msgid ""
1473 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1474 "tar-out(1)>, L<http://libguestfs.org/>."
1475 msgstr ""
1476
1477 #. type: textblock
1478 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1479 #: ../resize/virt-resize.pod:696
1480 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-filesystems.pod:5
1485 msgid ""
1486 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1487 "virtual machine or disk image"
1488 msgstr ""
1489
1490 #. type: verbatim
1491 #: ../cat/virt-filesystems.pod:9
1492 #, no-wrap
1493 msgid ""
1494 " virt-filesystems [--options] -d domname\n"
1495 "\n"
1496 msgstr ""
1497
1498 #. type: verbatim
1499 #: ../cat/virt-filesystems.pod:11
1500 #, no-wrap
1501 msgid ""
1502 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1503 "\n"
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-filesystems.pod:15
1508 msgid ""
1509 "This tool allows you to discover filesystems, partitions, logical volumes, "
1510 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1511 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-filesystems.pod:20
1516 msgid ""
1517 "One use for this tool is from shell scripts to iterate over all filesystems "
1518 "from a disk image:"
1519 msgstr ""
1520
1521 #. type: verbatim
1522 #: ../cat/virt-filesystems.pod:23
1523 #, no-wrap
1524 msgid ""
1525 " for fs in $(virt-filesystems -a disk.img); do\n"
1526 "   # ...\n"
1527 " done\n"
1528 "\n"
1529 msgstr ""
1530
1531 #. type: textblock
1532 #: ../cat/virt-filesystems.pod:27
1533 msgid ""
1534 "Another use is to list partitions before using another tool to modify those "
1535 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1536 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../cat/virt-filesystems.pod:32
1541 msgid ""
1542 "Various command line options control what this program displays.  You need "
1543 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1544 "guest respectively.  If you just specify that then the program shows "
1545 "filesystems found, one per line, like this:"
1546 msgstr ""
1547
1548 #. type: verbatim
1549 #: ../cat/virt-filesystems.pod:37
1550 #, no-wrap
1551 msgid ""
1552 " $ virt-filesystems -a disk.img\n"
1553 " /dev/sda1\n"
1554 " /dev/vg_guest/lv_root\n"
1555 "\n"
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:41
1560 msgid ""
1561 "If you add I<-l> or I<--long> then the output includes extra information:"
1562 msgstr ""
1563
1564 #. type: verbatim
1565 #: ../cat/virt-filesystems.pod:44
1566 #, no-wrap
1567 msgid ""
1568 " $ virt-filesystems -a disk.img -l\n"
1569 " Name                   Type         VFS   Label  Size\n"
1570 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1571 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1572 "\n"
1573 msgstr ""
1574
1575 #. type: textblock
1576 #: ../cat/virt-filesystems.pod:49
1577 msgid ""
1578 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1579 "shown as well:"
1580 msgstr ""
1581
1582 #. type: verbatim
1583 #: ../cat/virt-filesystems.pod:52
1584 #, no-wrap
1585 msgid ""
1586 " $ virt-filesystems -a disk.img --extra\n"
1587 " /dev/sda1\n"
1588 " /dev/vg_guest/lv_root\n"
1589 " /dev/vg_guest/lv_swap\n"
1590 " /dev/vg_guest/lv_data\n"
1591 "\n"
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-filesystems.pod:58
1596 msgid ""
1597 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1598 msgstr ""
1599
1600 #. type: verbatim
1601 #: ../cat/virt-filesystems.pod:60
1602 #, no-wrap
1603 msgid ""
1604 " $ virt-filesystems -a disk.img --partitions\n"
1605 " /dev/sda1\n"
1606 " /dev/sda2\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-filesystems.pod:64
1612 msgid ""
1613 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1614 "volumes>, I<--block-devices> to list those items."
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-filesystems.pod:67
1619 msgid ""
1620 "You can use these options in combination as well (if you want a combination "
1621 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1622 "items fall into several categories (eg. C</dev/sda1> might be both a "
1623 "partition and a filesystem).  These items are listed several times.  To get "
1624 "a list which includes absolutely everything that virt-filesystems knows "
1625 "about, use the I<--all> option."
1626 msgstr ""
1627
1628 #. type: textblock
1629 #: ../cat/virt-filesystems.pod:74
1630 msgid ""
1631 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1632 "uuid> option to display device and filesystem UUIDs in the long output."
1633 msgstr ""
1634
1635 #. type: textblock
1636 #: ../cat/virt-filesystems.pod:78
1637 msgid ""
1638 "I<--all --long --uuid> is a useful combination to display all possible "
1639 "information about everything."
1640 msgstr ""
1641
1642 #. type: verbatim
1643 #: ../cat/virt-filesystems.pod:81
1644 #, no-wrap
1645 msgid ""
1646 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1647 " Name      Type       VFS  Label           Size Parent   UUID\n"
1648 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1649 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1650 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1651 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1652 " /dev/sda  device     -    -               20G  -        -\n"
1653 "\n"
1654 msgstr ""
1655
1656 #. type: textblock
1657 #: ../cat/virt-filesystems.pod:89
1658 msgid ""
1659 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1660 msgstr ""
1661
1662 #. type: =item
1663 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1664 msgid "B<--all>"
1665 msgstr ""
1666
1667 #. type: textblock
1668 #: ../cat/virt-filesystems.pod:112
1669 msgid ""
1670 "Display everything.  This is currently the same as specifying these options: "
1671 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1672 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1673 "added to this list in future)."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:117
1678 msgid "See also I<--long>."
1679 msgstr ""
1680
1681 #. type: =item
1682 #: ../cat/virt-filesystems.pod:119
1683 msgid "B<--blkdevs>"
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:121
1688 msgid "B<--block-devices>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:123
1693 msgid "Display block devices."
1694 msgstr ""
1695
1696 #. type: =item
1697 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1698 msgid "B<--csv>"
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1703 msgid ""
1704 "Write out the results in CSV format (comma-separated values).  This format "
1705 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1706 "ABOUT CSV FORMAT> below."
1707 msgstr ""
1708
1709 #. type: textblock
1710 #: ../cat/virt-filesystems.pod:150
1711 msgid ""
1712 "When prompting for keys and passphrases, virt-filesystems normally turns "
1713 "echoing off so you cannot see what you are typing.  If you are not worried "
1714 "about Tempest attacks and there is no one else in the room you can specify "
1715 "this flag to see what you are typing."
1716 msgstr ""
1717
1718 #. type: =item
1719 #: ../cat/virt-filesystems.pod:155
1720 msgid "B<--extra>"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-filesystems.pod:157
1725 msgid ""
1726 "This causes filesystems that are not ordinary, mountable filesystems to be "
1727 "displayed.  This category includes swapspace, and filesystems that are empty "
1728 "or contain unknown data."
1729 msgstr ""
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:161
1733 msgid "This option implies I<--filesystems>."
1734 msgstr ""
1735
1736 #. type: =item
1737 #: ../cat/virt-filesystems.pod:163
1738 msgid "B<--filesystems>"
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../cat/virt-filesystems.pod:165
1743 msgid ""
1744 "Display mountable filesystems.  If no display option was selected then this "
1745 "option is implied."
1746 msgstr ""
1747
1748 #. type: textblock
1749 #: ../cat/virt-filesystems.pod:168
1750 msgid "With I<--extra>, non-mountable filesystems are shown too."
1751 msgstr ""
1752
1753 #. type: verbatim
1754 #: ../cat/virt-filesystems.pod:181
1755 #, no-wrap
1756 msgid ""
1757 " virt-filesystems --format=raw -a disk.img\n"
1758 "\n"
1759 msgstr ""
1760
1761 #. type: verbatim
1762 #: ../cat/virt-filesystems.pod:185
1763 #, no-wrap
1764 msgid ""
1765 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1766 "\n"
1767 msgstr ""
1768
1769 #. type: =item
1770 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1771 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1772 #: ../tools/virt-list-partitions.pl:109
1773 msgid "B<-h>"
1774 msgstr ""
1775
1776 #. type: =item
1777 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1778 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1779 msgid "B<--human-readable>"
1780 msgstr ""
1781
1782 #. type: textblock
1783 #: ../cat/virt-filesystems.pod:198
1784 msgid "In I<--long> mode, display sizes in human-readable format."
1785 msgstr ""
1786
1787 #. type: =item
1788 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1789 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1790 msgid "B<-l>"
1791 msgstr ""
1792
1793 #. type: =item
1794 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1795 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1796 msgid "B<--long>"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-filesystems.pod:209
1801 msgid "Display extra columns of data (\"long format\")."
1802 msgstr ""
1803
1804 #. type: textblock
1805 #: ../cat/virt-filesystems.pod:211
1806 msgid "A title row is added unless you also specify I<--no-title>."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:213
1811 msgid ""
1812 "The extra columns displayed depend on what output you select, and the "
1813 "ordering of columns may change in future versions.  Use the title row, I<--"
1814 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1815 "programs."
1816 msgstr ""
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:218
1820 msgid ""
1821 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1822 "default is to show raw numbers of I<bytes>."
1823 msgstr ""
1824
1825 #. type: textblock
1826 #: ../cat/virt-filesystems.pod:221
1827 msgid "Use I<--uuid> to display UUIDs too."
1828 msgstr ""
1829
1830 #. type: =item
1831 #: ../cat/virt-filesystems.pod:223
1832 msgid "B<--lvs>"
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-filesystems.pod:225
1837 msgid "B<--logvols>"
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-filesystems.pod:227
1842 msgid "B<--logical-volumes>"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-filesystems.pod:229
1847 msgid ""
1848 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1849 "of whether the LVs contain filesystems."
1850 msgstr ""
1851
1852 #. type: =item
1853 #: ../cat/virt-filesystems.pod:232
1854 msgid "B<--no-title>"
1855 msgstr ""
1856
1857 #. type: textblock
1858 #: ../cat/virt-filesystems.pod:234
1859 msgid "In I<--long> mode, don't add a title row."
1860 msgstr ""
1861
1862 #. type: textblock
1863 #: ../cat/virt-filesystems.pod:236
1864 msgid ""
1865 "Note that the order of the columns is not fixed, and may change in future "
1866 "versions of virt-filesystems, so using this option may give you unexpected "
1867 "surprises."
1868 msgstr ""
1869
1870 #. type: =item
1871 #: ../cat/virt-filesystems.pod:240
1872 msgid "B<--parts>"
1873 msgstr ""
1874
1875 #. type: =item
1876 #: ../cat/virt-filesystems.pod:242
1877 msgid "B<--partitions>"
1878 msgstr ""
1879
1880 #. type: textblock
1881 #: ../cat/virt-filesystems.pod:244
1882 msgid ""
1883 "Display partitions.  In this mode, these are displayed irrespective of "
1884 "whether the partitions contain filesystems."
1885 msgstr ""
1886
1887 #. type: =item
1888 #: ../cat/virt-filesystems.pod:247
1889 msgid "B<--pvs>"
1890 msgstr ""
1891
1892 #. type: =item
1893 #: ../cat/virt-filesystems.pod:249
1894 msgid "B<--physvols>"
1895 msgstr ""
1896
1897 #. type: =item
1898 #: ../cat/virt-filesystems.pod:251
1899 msgid "B<--physical-volumes>"
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-filesystems.pod:253
1904 msgid "Display LVM physical volumes."
1905 msgstr ""
1906
1907 #. type: =item
1908 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1909 msgid "B<--uuid>"
1910 msgstr ""
1911
1912 #. type: =item
1913 #: ../cat/virt-filesystems.pod:257
1914 msgid "B<--uuids>"
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-filesystems.pod:259
1919 msgid "In I<--long> mode, display UUIDs as well."
1920 msgstr ""
1921
1922 #. type: =item
1923 #: ../cat/virt-filesystems.pod:273
1924 msgid "B<--vgs>"
1925 msgstr ""
1926
1927 #. type: =item
1928 #: ../cat/virt-filesystems.pod:275
1929 msgid "B<--volgroups>"
1930 msgstr ""
1931
1932 #. type: =item
1933 #: ../cat/virt-filesystems.pod:277
1934 msgid "B<--volume-groups>"
1935 msgstr ""
1936
1937 #. type: textblock
1938 #: ../cat/virt-filesystems.pod:279
1939 msgid "Display LVM volume groups."
1940 msgstr ""
1941
1942 #. type: =head1
1943 #: ../cat/virt-filesystems.pod:287
1944 msgid "COLUMNS"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-filesystems.pod:289
1949 msgid ""
1950 "Note that columns in the output are subject to reordering and change in "
1951 "future versions of this tool."
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:294
1956 msgid "B<Name>"
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-filesystems.pod:296
1961 msgid "The filesystem, partition, block device or LVM name."
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-filesystems.pod:298
1966 msgid ""
1967 "For device and partition names these are displayed as canonical libguestfs "
1968 "names, so that for example C</dev/sda2> is the second partition on the first "
1969 "device."
1970 msgstr ""
1971
1972 #. type: textblock
1973 #: ../cat/virt-filesystems.pod:302
1974 msgid ""
1975 "If the I<--long> option is B<not> specified, then only the name column is "
1976 "shown in the output."
1977 msgstr ""
1978
1979 #. type: =item
1980 #: ../cat/virt-filesystems.pod:305
1981 msgid "B<Type>"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-filesystems.pod:307
1986 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1987 msgstr ""
1988
1989 #. type: =item
1990 #: ../cat/virt-filesystems.pod:309
1991 msgid "B<VFS>"
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../cat/virt-filesystems.pod:311
1996 msgid ""
1997 "If there is a filesystem, then this column displays the filesystem type if "
1998 "one could be detected, eg. C<ext4>."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:314
2003 msgid "B<Label>"
2004 msgstr ""
2005
2006 #. type: textblock
2007 #: ../cat/virt-filesystems.pod:316
2008 msgid ""
2009 "If the object has a label (used for identifying and mounting filesystems) "
2010 "then this column contains the label."
2011 msgstr ""
2012
2013 #. type: =item
2014 #: ../cat/virt-filesystems.pod:319
2015 msgid "B<Size>"
2016 msgstr ""
2017
2018 #. type: textblock
2019 #: ../cat/virt-filesystems.pod:321
2020 msgid ""
2021 "The size of the object in bytes.  If the I<--human> option is used then the "
2022 "size is displayed in a human-readable form."
2023 msgstr ""
2024
2025 #. type: =item
2026 #: ../cat/virt-filesystems.pod:324
2027 msgid "B<Parent>"
2028 msgstr ""
2029
2030 #. type: textblock
2031 #: ../cat/virt-filesystems.pod:326
2032 msgid ""
2033 "The parent column records the parent relationship between objects.  For "
2034 "example, if the object is a partition, then this column contains the name of "
2035 "the containing device.  If the object is a logical volume, then this column "
2036 "is the name of the volume group."
2037 msgstr ""
2038
2039 #. type: =item
2040 #: ../cat/virt-filesystems.pod:331
2041 msgid "B<UUID>"
2042 msgstr ""
2043
2044 #. type: textblock
2045 #: ../cat/virt-filesystems.pod:333
2046 msgid ""
2047 "If the object has a UUID (used for identifying and mounting filesystems and "
2048 "block devices) then this column contains the UUID as a string."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-filesystems.pod:337
2053 msgid "The UUID is only displayed if the I<--uuid> option is given."
2054 msgstr ""
2055
2056 #. type: =head1
2057 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2058 #: ../df/virt-df.pod:191
2059 msgid "NOTE ABOUT CSV FORMAT"
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2064 #: ../df/virt-df.pod:193
2065 msgid ""
2066 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2067 "should be easy to parse, but it is definitely not easy to parse."
2068 msgstr ""
2069
2070 #. type: textblock
2071 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2072 #: ../df/virt-df.pod:196
2073 msgid ""
2074 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2075 "reliably.  This example has two columns:"
2076 msgstr ""
2077
2078 #. type: verbatim
2079 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2080 #: ../df/virt-df.pod:199
2081 #, no-wrap
2082 msgid ""
2083 " \"foo,bar\",baz\n"
2084 "\n"
2085 msgstr ""
2086
2087 #. type: textblock
2088 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2089 #: ../df/virt-df.pod:201
2090 msgid ""
2091 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2092 "reliably.  This example has one row:"
2093 msgstr ""
2094
2095 #. type: verbatim
2096 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2097 #: ../df/virt-df.pod:204
2098 #, no-wrap
2099 msgid ""
2100 " \"foo\n"
2101 " bar\",baz\n"
2102 "\n"
2103 msgstr ""
2104
2105 #. type: textblock
2106 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2107 #: ../df/virt-df.pod:207
2108 msgid ""
2109 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2110 "packaged in major Linux distributions)."
2111 msgstr ""
2112
2113 #. type: textblock
2114 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2115 #: ../df/virt-df.pod:210
2116 msgid ""
2117 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2118 "or Python's built-in csv library)."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2123 #: ../df/virt-df.pod:213
2124 msgid "Most spreadsheets and databases can import CSV directly."
2125 msgstr ""
2126
2127 #. type: textblock
2128 #: ../cat/virt-filesystems.pod:379
2129 msgid ""
2130 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2131 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2132 "libguestfs.org/>."
2133 msgstr ""
2134
2135 #. type: textblock
2136 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2137 #: ../tools/virt-win-reg.pl:778
2138 msgid "Copyright (C) 2010 Red Hat Inc."
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../cat/virt-ls.pod:5
2143 msgid "virt-ls - List files in a virtual machine"
2144 msgstr ""
2145
2146 #. type: verbatim
2147 #: ../cat/virt-ls.pod:9
2148 #, no-wrap
2149 msgid ""
2150 " virt-ls [--options] -d domname directory [directory ...]\n"
2151 "\n"
2152 msgstr ""
2153
2154 #. type: verbatim
2155 #: ../cat/virt-ls.pod:11
2156 #, no-wrap
2157 msgid ""
2158 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2159 "\n"
2160 msgstr ""
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2164 msgid "Old style:"
2165 msgstr ""
2166
2167 #. type: verbatim
2168 #: ../cat/virt-ls.pod:15
2169 #, no-wrap
2170 msgid ""
2171 " virt-ls [--options] domname directory\n"
2172 "\n"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../cat/virt-ls.pod:17
2177 #, no-wrap
2178 msgid ""
2179 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2180 "\n"
2181 msgstr ""
2182
2183 #. type: textblock
2184 #: ../cat/virt-ls.pod:21
2185 msgid ""
2186 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2187 "more from a virtual machine or disk image."
2188 msgstr ""
2189
2190 #. type: textblock
2191 #: ../cat/virt-ls.pod:24
2192 msgid ""
2193 "Multiple directory names can be given, in which case the output from each is "
2194 "concatenated."
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../cat/virt-ls.pod:27
2199 msgid ""
2200 "To list directories from a libvirt guest use the I<-d> option to specify the "
2201 "name of the guest.  For a disk image, use the I<-a> option."
2202 msgstr ""
2203
2204 #. type: textblock
2205 #: ../cat/virt-ls.pod:31
2206 msgid ""
2207 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2208 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2209 "(3)> API."
2210 msgstr ""
2211
2212 #. type: textblock
2213 #: ../cat/virt-ls.pod:37
2214 msgid "Get a list of all files and directories in a virtual machine:"
2215 msgstr ""
2216
2217 #. type: verbatim
2218 #: ../cat/virt-ls.pod:39
2219 #, no-wrap
2220 msgid ""
2221 " virt-ls -R -d guest /\n"
2222 "\n"
2223 msgstr ""
2224
2225 #. type: textblock
2226 #: ../cat/virt-ls.pod:41
2227 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2228 msgstr ""
2229
2230 #. type: verbatim
2231 #: ../cat/virt-ls.pod:43
2232 #, no-wrap
2233 msgid ""
2234 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2235 "\n"
2236 msgstr ""
2237
2238 #. type: textblock
2239 #: ../cat/virt-ls.pod:45
2240 msgid "List all public-writable directories in a Linux virtual machine:"
2241 msgstr ""
2242
2243 #. type: verbatim
2244 #: ../cat/virt-ls.pod:47
2245 #, no-wrap
2246 msgid ""
2247 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2248 "\n"
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../cat/virt-ls.pod:49
2253 msgid "List all Unix domain sockets in a Linux virtual machine:"
2254 msgstr ""
2255
2256 #. type: verbatim
2257 #: ../cat/virt-ls.pod:51
2258 #, no-wrap
2259 msgid ""
2260 " virt-ls -lR -d guest / | grep '^s'\n"
2261 "\n"
2262 msgstr ""
2263
2264 #. type: textblock
2265 #: ../cat/virt-ls.pod:53
2266 msgid "List all regular files with filenames ending in '.png':"
2267 msgstr ""
2268
2269 #. type: verbatim
2270 #: ../cat/virt-ls.pod:55
2271 #, no-wrap
2272 msgid ""
2273 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2274 "\n"
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../cat/virt-ls.pod:57
2279 msgid "To display files larger than 10MB in home directories:"
2280 msgstr ""
2281
2282 #. type: verbatim
2283 #: ../cat/virt-ls.pod:59
2284 #, no-wrap
2285 msgid ""
2286 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2287 "\n"
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:61
2292 msgid "Find everything modified in the last 7 days:"
2293 msgstr ""
2294
2295 #. type: verbatim
2296 #: ../cat/virt-ls.pod:63
2297 #, no-wrap
2298 msgid ""
2299 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2300 "\n"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../cat/virt-ls.pod:65
2305 msgid "Find regular files modified in the last 24 hours:"
2306 msgstr ""
2307
2308 #. type: verbatim
2309 #: ../cat/virt-ls.pod:67
2310 #, no-wrap
2311 msgid ""
2312 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2313 "\n"
2314 msgstr ""
2315
2316 #. type: =head2
2317 #: ../cat/virt-ls.pod:69
2318 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../cat/virt-ls.pod:71
2323 msgid ""
2324 "Find the differences between files in a guest and an earlier snapshot of the "
2325 "same guest."
2326 msgstr ""
2327
2328 #. type: verbatim
2329 #: ../cat/virt-ls.pod:74
2330 #, no-wrap
2331 msgid ""
2332 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2333 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2334 " diff -u old new | less\n"
2335 "\n"
2336 msgstr ""
2337
2338 #. type: textblock
2339 #: ../cat/virt-ls.pod:78
2340 msgid ""
2341 "The commands above won't find files where the content has changed but the "
2342 "metadata (eg. file size and modification date) is the same.  To do that, you "
2343 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2344 "checksum> can be quite slow since it has to read and compute a checksum of "
2345 "every regular file in the virtual machine."
2346 msgstr ""
2347
2348 #. type: =head1
2349 #: ../cat/virt-ls.pod:84
2350 msgid "OUTPUT MODES"
2351 msgstr ""
2352
2353 #. type: textblock
2354 #: ../cat/virt-ls.pod:86
2355 msgid ""
2356 "C<virt-ls> has four output modes, controlled by different combinations of "
2357 "the I<-l> and I<-R> options."
2358 msgstr ""
2359
2360 #. type: =head2
2361 #: ../cat/virt-ls.pod:89
2362 msgid "SIMPLE LISTING"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:91
2367 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2368 msgstr ""
2369
2370 #. type: verbatim
2371 #: ../cat/virt-ls.pod:93
2372 #, no-wrap
2373 msgid ""
2374 " $ virt-ls -d guest /\n"
2375 " bin\n"
2376 " boot\n"
2377 " [etc.]\n"
2378 "\n"
2379 msgstr ""
2380
2381 #. type: =head2
2382 #: ../cat/virt-ls.pod:98
2383 msgid "LONG LISTING"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../cat/virt-ls.pod:100
2388 msgid ""
2389 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2390 "(more specifically, like the C<guestfs_ll> function)."
2391 msgstr ""
2392
2393 #. type: verbatim
2394 #: ../cat/virt-ls.pod:103
2395 #, no-wrap
2396 msgid ""
2397 " $ virt-ls -l -d guest /\n"
2398 " total 204\n"
2399 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2400 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2401 " [etc.]\n"
2402 "\n"
2403 msgstr ""
2404
2405 #. type: textblock
2406 #: ../cat/virt-ls.pod:109
2407 msgid ""
2408 "Note that while this is useful for displaying a directory, do not try "
2409 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2410 "instead."
2411 msgstr ""
2412
2413 #. type: =head2
2414 #: ../cat/virt-ls.pod:113
2415 msgid "RECURSIVE LISTING"
2416 msgstr ""
2417
2418 #. type: textblock
2419 #: ../cat/virt-ls.pod:115
2420 msgid ""
2421 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2422 "and directories recursively:"
2423 msgstr ""
2424
2425 #. type: verbatim
2426 #: ../cat/virt-ls.pod:118
2427 #, no-wrap
2428 msgid ""
2429 " $ virt-ls -R -d guest /tmp\n"
2430 " foo\n"
2431 " foo/bar\n"
2432 " [etc.]\n"
2433 "\n"
2434 msgstr ""
2435
2436 #. type: textblock
2437 #: ../cat/virt-ls.pod:123
2438 msgid ""
2439 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2440 "converts C<\\0> characters to C<\\n>."
2441 msgstr ""
2442
2443 #. type: =head2
2444 #: ../cat/virt-ls.pod:126
2445 msgid "RECURSIVE LONG LISTING"
2446 msgstr ""
2447
2448 #. type: textblock
2449 #: ../cat/virt-ls.pod:128
2450 msgid ""
2451 "Using I<-lR> options together changes the output to display directories "
2452 "recursively, with file stats, and optionally other features such as "
2453 "checksums and extended attributes."
2454 msgstr ""
2455
2456 #. type: textblock
2457 #: ../cat/virt-ls.pod:132
2458 msgid ""
2459 "Most of the interesting features of C<virt-ls> are only available when using "
2460 "I<-lR> mode."
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../cat/virt-ls.pod:135
2465 msgid ""
2466 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2467 "you cannot use the output in another program (because filenames can contain "
2468 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2469 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2470 "on you by creating filenames with embedded newline characters.  To B<safely> "
2471 "parse the output in another program, use the I<--csv> (Comma-Separated "
2472 "Values) option."
2473 msgstr ""
2474
2475 #. type: textblock
2476 #: ../cat/virt-ls.pod:143
2477 msgid ""
2478 "Note that this output format is completely unrelated to the C<ls -lR> "
2479 "command."
2480 msgstr ""
2481
2482 #. type: verbatim
2483 #: ../cat/virt-ls.pod:146
2484 #, no-wrap
2485 msgid ""
2486 " $ virt-ls -lR -d guest /bin\n"
2487 " d 0555       4096 /bin\n"
2488 " - 0755        123 /bin/alsaunmute\n"
2489 " - 0755      28328 /bin/arch\n"
2490 " l 0777          4 /bin/awk -> gawk\n"
2491 " - 0755      27216 /bin/basename\n"
2492 " - 0755     943360 /bin/bash\n"
2493 " [etc.]\n"
2494 "\n"
2495 msgstr ""
2496
2497 #. type: textblock
2498 #: ../cat/virt-ls.pod:155
2499 msgid "These basic fields are always shown:"
2500 msgstr ""
2501
2502 #. type: =item
2503 #: ../cat/virt-ls.pod:159
2504 msgid "type"
2505 msgstr ""
2506
2507 #. type: textblock
2508 #: ../cat/virt-ls.pod:161
2509 msgid ""
2510 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2511 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2512 "link), C<s> (socket) or C<u> (unknown)."
2513 msgstr ""
2514
2515 #. type: =item
2516 #: ../cat/virt-ls.pod:171
2517 msgid "permissions"
2518 msgstr ""
2519
2520 #. type: textblock
2521 #: ../cat/virt-ls.pod:173
2522 msgid "The Unix permissions, displayed as a 4 digit octal number."
2523 msgstr ""
2524
2525 #. type: =item
2526 #: ../cat/virt-ls.pod:175
2527 msgid "size"
2528 msgstr ""
2529
2530 #. type: textblock
2531 #: ../cat/virt-ls.pod:177
2532 msgid ""
2533 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2534 "readable> option is given, in which case this is shown as a human-readable "
2535 "number."
2536 msgstr ""
2537
2538 #. type: =head2
2539 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2540 msgid "path"
2541 msgstr ""
2542
2543 #. type: textblock
2544 #: ../cat/virt-ls.pod:183
2545 msgid "The full path of the file or directory."
2546 msgstr ""
2547
2548 #. type: =item
2549 #: ../cat/virt-ls.pod:185
2550 msgid "link"
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../cat/virt-ls.pod:187
2555 msgid "For symbolic links only, the link target."
2556 msgstr ""
2557
2558 #. type: textblock
2559 #: ../cat/virt-ls.pod:191
2560 msgid ""
2561 "In I<-lR> mode, additional command line options enable the display of more "
2562 "fields."
2563 msgstr ""
2564
2565 #. type: textblock
2566 #: ../cat/virt-ls.pod:194
2567 msgid ""
2568 "With the I<--uids> flag, these additional fields are displayed before the "
2569 "path:"
2570 msgstr ""
2571
2572 #. type: =item
2573 #: ../cat/virt-ls.pod:199
2574 msgid "uid"
2575 msgstr ""
2576
2577 #. type: =item
2578 #: ../cat/virt-ls.pod:201
2579 msgid "gid"
2580 msgstr ""
2581
2582 #. type: textblock
2583 #: ../cat/virt-ls.pod:203
2584 msgid ""
2585 "The UID and GID of the owner of the file (displayed numerically).  Note "
2586 "these only make sense in the context of a Unix-like guest."
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../cat/virt-ls.pod:208
2591 msgid "With the I<--times> flag, these additional fields are displayed:"
2592 msgstr ""
2593
2594 #. type: =item
2595 #: ../cat/virt-ls.pod:212
2596 msgid "atime"
2597 msgstr ""
2598
2599 #. type: textblock
2600 #: ../cat/virt-ls.pod:214
2601 msgid "The time of last access."
2602 msgstr ""
2603
2604 #. type: =item
2605 #: ../cat/virt-ls.pod:216
2606 msgid "mtime"
2607 msgstr ""
2608
2609 #. type: textblock
2610 #: ../cat/virt-ls.pod:218
2611 msgid "The time of last modification."
2612 msgstr ""
2613
2614 #. type: =item
2615 #: ../cat/virt-ls.pod:220
2616 msgid "ctime"
2617 msgstr ""
2618
2619 #. type: textblock
2620 #: ../cat/virt-ls.pod:222
2621 msgid "The time of last status change."
2622 msgstr ""
2623
2624 #. type: textblock
2625 #: ../cat/virt-ls.pod:226
2626 msgid ""
2627 "The time fields are displayed as string dates and times, unless one of the "
2628 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../cat/virt-ls.pod:229
2633 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../cat/virt-ls.pod:233
2638 msgid "device"
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../cat/virt-ls.pod:235
2643 msgid ""
2644 "The device containing the file (displayed as major:minor).  This may not "
2645 "match devices as known to the guest."
2646 msgstr ""
2647
2648 #. type: =item
2649 #: ../cat/virt-ls.pod:238
2650 msgid "inode"
2651 msgstr ""
2652
2653 #. type: textblock
2654 #: ../cat/virt-ls.pod:240
2655 msgid "The inode number."
2656 msgstr ""
2657
2658 #. type: =item
2659 #: ../cat/virt-ls.pod:242
2660 msgid "nlink"
2661 msgstr ""
2662
2663 #. type: textblock
2664 #: ../cat/virt-ls.pod:244
2665 msgid "The number of hard links."
2666 msgstr ""
2667
2668 #. type: =item
2669 #: ../cat/virt-ls.pod:246
2670 msgid "rdev"
2671 msgstr ""
2672
2673 #. type: textblock
2674 #: ../cat/virt-ls.pod:248
2675 msgid ""
2676 "For block and char special files, the device (displayed as major:minor)."
2677 msgstr ""
2678
2679 #. type: =item
2680 #: ../cat/virt-ls.pod:251
2681 msgid "blocks"
2682 msgstr ""
2683
2684 #. type: textblock
2685 #: ../cat/virt-ls.pod:253
2686 msgid "The number of 512 byte blocks allocated to the file."
2687 msgstr ""
2688
2689 #. type: textblock
2690 #: ../cat/virt-ls.pod:257
2691 msgid ""
2692 "With the I<--checksum> flag, the checksum of the file contents is shown "
2693 "(only for regular files).  Computing file checksums can take a considerable "
2694 "amount of time."
2695 msgstr ""
2696
2697 #. type: =item
2698 #: ../cat/virt-ls.pod:280
2699 msgid "B<--checksum>"
2700 msgstr ""
2701
2702 #. type: =item
2703 #: ../cat/virt-ls.pod:282
2704 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2705 msgstr ""
2706
2707 #. type: textblock
2708 #: ../cat/virt-ls.pod:284
2709 msgid ""
2710 "Display checksum over file contents for regular files.  With no argument, "
2711 "this defaults to using I<md5>.  Using an argument, you can select the "
2712 "checksum type to use."
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2717 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2718 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2719 msgid ""
2720 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2721 "LISTING> above."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../cat/virt-ls.pod:316
2726 msgid ""
2727 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2728 "so you cannot see what you are typing.  If you are not worried about Tempest "
2729 "attacks and there is no one else in the room you can specify this flag to "
2730 "see what you are typing."
2731 msgstr ""
2732
2733 #. type: =item
2734 #: ../cat/virt-ls.pod:321
2735 msgid "B<--extra-stats>"
2736 msgstr ""
2737
2738 #. type: textblock
2739 #: ../cat/virt-ls.pod:323
2740 msgid "Display extra stats."
2741 msgstr ""
2742
2743 #. type: verbatim
2744 #: ../cat/virt-ls.pod:339
2745 #, no-wrap
2746 msgid ""
2747 " virt-ls --format=raw -a disk.img /dir\n"
2748 "\n"
2749 msgstr ""
2750
2751 #. type: verbatim
2752 #: ../cat/virt-ls.pod:343
2753 #, no-wrap
2754 msgid ""
2755 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2756 "\n"
2757 msgstr ""
2758
2759 #. type: textblock
2760 #: ../cat/virt-ls.pod:356
2761 msgid "Display file sizes in human-readable format."
2762 msgstr ""
2763
2764 #. type: =item
2765 #: ../cat/virt-ls.pod:370
2766 msgid "B<-R>"
2767 msgstr ""
2768
2769 #. type: =item
2770 #: ../cat/virt-ls.pod:372
2771 msgid "B<--recursive>"
2772 msgstr ""
2773
2774 #. type: textblock
2775 #: ../cat/virt-ls.pod:374
2776 msgid ""
2777 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2778 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2779 "LISTING>."
2780 msgstr ""
2781
2782 #. type: textblock
2783 #: ../cat/virt-ls.pod:378
2784 msgid ""
2785 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2786 "LONG LISTING>."
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../cat/virt-ls.pod:381
2791 msgid ""
2792 "C<virt-ls -R> produces a recursive list of files starting at the named "
2793 "directory.  See L</RECURSIVE LISTING>."
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../cat/virt-ls.pod:384
2798 msgid ""
2799 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2800 "parsed.  See L</RECURSIVE LONG LISTING>."
2801 msgstr ""
2802
2803 #. type: =item
2804 #: ../cat/virt-ls.pod:387
2805 msgid "B<--times>"
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../cat/virt-ls.pod:389
2810 msgid "Display time fields."
2811 msgstr ""
2812
2813 #. type: =item
2814 #: ../cat/virt-ls.pod:394
2815 msgid "B<--time-days>"
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../cat/virt-ls.pod:396
2820 msgid "Display time fields as days before now (negative if in the future)."
2821 msgstr ""
2822
2823 #. type: textblock
2824 #: ../cat/virt-ls.pod:398
2825 msgid ""
2826 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2827 "of the file is between 0 and 86399 seconds."
2828 msgstr ""
2829
2830 #. type: =item
2831 #: ../cat/virt-ls.pod:404
2832 msgid "B<--time-relative>"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../cat/virt-ls.pod:406
2837 msgid "Display time fields as seconds before now (negative if in the future)."
2838 msgstr ""
2839
2840 #. type: =item
2841 #: ../cat/virt-ls.pod:411
2842 msgid "B<--time-t>"
2843 msgstr ""
2844
2845 #. type: textblock
2846 #: ../cat/virt-ls.pod:413
2847 msgid "Display time fields as seconds since the Unix epoch."
2848 msgstr ""
2849
2850 #. type: =item
2851 #: ../cat/virt-ls.pod:418
2852 msgid "B<--uids>"
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:420
2857 msgid "Display UID and GID fields."
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../cat/virt-ls.pod:445
2862 msgid "Previous versions of virt-ls allowed you to write either:"
2863 msgstr ""
2864
2865 #. type: verbatim
2866 #: ../cat/virt-ls.pod:447
2867 #, no-wrap
2868 msgid ""
2869 " virt-ls disk.img [disk.img ...] /dir\n"
2870 "\n"
2871 msgstr ""
2872
2873 #. type: verbatim
2874 #: ../cat/virt-ls.pod:451
2875 #, no-wrap
2876 msgid ""
2877 " virt-ls guestname /dir\n"
2878 "\n"
2879 msgstr ""
2880
2881 #. type: textblock
2882 #: ../cat/virt-ls.pod:497
2883 msgid ""
2884 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2885 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2886 "L<http://libguestfs.org/>."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2891 #: ../rescue/virt-rescue.pod:302
2892 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../clone/virt-sysprep.pod:5
2897 msgid ""
2898 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2899 msgstr ""
2900
2901 #. type: verbatim
2902 #: ../clone/virt-sysprep.pod:9
2903 #, no-wrap
2904 msgid ""
2905 " virt-sysprep [--options] -d domname\n"
2906 "\n"
2907 msgstr ""
2908
2909 #. type: verbatim
2910 #: ../clone/virt-sysprep.pod:11
2911 #, no-wrap
2912 msgid ""
2913 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2914 "\n"
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../clone/virt-sysprep.pod:15
2919 msgid ""
2920 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2921 "can be made from it.  Steps in this process include removing SSH host keys, "
2922 "removing persistent network MAC configuration, and removing user accounts.  "
2923 "Each step can be enabled or disabled as required."
2924 msgstr ""
2925
2926 #. type: textblock
2927 #: ../clone/virt-sysprep.pod:21
2928 msgid ""
2929 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2930 "customization by the system administrator."
2931 msgstr ""
2932
2933 #. type: textblock
2934 #: ../clone/virt-sysprep.pod:24
2935 msgid ""
2936 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2937 "be shut down.  If you want to preserve the existing contents of the guest, "
2938 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../clone/virt-sysprep.pod:29
2943 msgid ""
2944 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2945 "recommend that you don't.  The time you might want to run it as root is when "
2946 "you need root in order to access the disk image, but even in this case it "
2947 "would be better to change the permissions on the disk image to be writable "
2948 "as the non-root user running virt-sysprep."
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../clone/virt-sysprep.pod:35
2953 msgid ""
2954 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2955 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2956 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2957 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2958 "Windows sysprepping in a future version, and we already have code to do it."
2959 msgstr ""
2960
2961 #. type: =item
2962 #: ../clone/virt-sysprep.pod:76
2963 msgid "B<--enable=...>"
2964 msgstr ""
2965
2966 #. type: textblock
2967 #: ../clone/virt-sysprep.pod:78
2968 msgid ""
2969 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2970 "operations, for example:"
2971 msgstr ""
2972
2973 #. type: verbatim
2974 #: ../clone/virt-sysprep.pod:81
2975 #, no-wrap
2976 msgid ""
2977 " --enable=ssh-hostkeys,udev-persistent-net\n"
2978 "\n"
2979 msgstr ""
2980
2981 #. type: textblock
2982 #: ../clone/virt-sysprep.pod:83
2983 msgid ""
2984 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2985 msgstr ""
2986
2987 #. type: textblock
2988 #: ../clone/virt-sysprep.pod:85
2989 msgid ""
2990 "If the I<--enable> option is not given, then we default to trying all "
2991 "possible sysprep operations.  But some sysprep operations are skipped for "
2992 "some guest types."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../clone/virt-sysprep.pod:89
2997 msgid ""
2998 "Use I<--list-operations> to list operations supported by a particular "
2999 "version of virt-sysprep."
3000 msgstr ""
3001
3002 #. type: textblock
3003 #: ../clone/virt-sysprep.pod:92
3004 msgid ""
3005 "See L</OPERATIONS> below for a list and an explanation of each operation."
3006 msgstr ""
3007
3008 #. type: verbatim
3009 #: ../clone/virt-sysprep.pod:106
3010 #, no-wrap
3011 msgid ""
3012 " virt-sysprep --format=raw -a disk.img\n"
3013 "\n"
3014 msgstr ""
3015
3016 #. type: verbatim
3017 #: ../clone/virt-sysprep.pod:110
3018 #, no-wrap
3019 msgid ""
3020 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3021 "\n"
3022 msgstr ""
3023
3024 #. type: =item
3025 #: ../clone/virt-sysprep.pod:119
3026 msgid "B<--hostname> newhostname"
3027 msgstr ""
3028
3029 #. type: textblock
3030 #: ../clone/virt-sysprep.pod:121
3031 msgid ""
3032 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3033 "defaults to C<localhost.localdomain>."
3034 msgstr ""
3035
3036 #. type: =item
3037 #: ../clone/virt-sysprep.pod:124
3038 msgid "B<--list-operations>"
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:126
3043 msgid "List the operations supported by the virt-sysprep program."
3044 msgstr ""
3045
3046 #. type: =item
3047 #: ../clone/virt-sysprep.pod:128
3048 msgid "B<--selinux-relabel>"
3049 msgstr ""
3050
3051 #. type: =item
3052 #: ../clone/virt-sysprep.pod:130
3053 msgid "B<--no-selinux-relabel>"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../clone/virt-sysprep.pod:132
3058 msgid ""
3059 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3060 "I<--no-selinux-relabel> disables relabelling."
3061 msgstr ""
3062
3063 #. type: textblock
3064 #: ../clone/virt-sysprep.pod:135
3065 msgid ""
3066 "The default is to try to detect if SELinux relabelling is required.  See L</"
3067 "SELINUX RELABELLING> below for more details."
3068 msgstr ""
3069
3070 #. type: =head1
3071 #: ../clone/virt-sysprep.pod:156
3072 msgid "OPERATIONS"
3073 msgstr ""
3074
3075 #. type: textblock
3076 #: ../clone/virt-sysprep.pod:158
3077 msgid ""
3078 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3079 "enabled>, although some are skipped depending on the type of guest."
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../clone/virt-sysprep.pod:162
3084 msgid ""
3085 "Operations can be individually enabled using the I<--enable> option.  Use a "
3086 "comma-separated list, for example:"
3087 msgstr ""
3088
3089 #. type: verbatim
3090 #: ../clone/virt-sysprep.pod:165
3091 #, no-wrap
3092 msgid ""
3093 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3094 "\n"
3095 msgstr ""
3096
3097 #. type: textblock
3098 #: ../clone/virt-sysprep.pod:167
3099 msgid ""
3100 "To list the operations supported by the current version of virt-sysprep, use "
3101 "I<--list-operations>."
3102 msgstr ""
3103
3104 #. type: textblock
3105 #: ../clone/virt-sysprep.pod:170
3106 msgid ""
3107 "Future versions of virt-sysprep may add more operations.  If you are using "
3108 "virt-sysprep and want predictable behaviour, specify only the operations "
3109 "that you want to have enabled."
3110 msgstr ""
3111
3112 #. type: =head2
3113 #: ../clone/virt-sysprep.pod:174
3114 msgid "cron-spool"
3115 msgstr ""
3116
3117 #. type: textblock
3118 #: ../clone/virt-sysprep.pod:176
3119 msgid "Remove user at-jobs and cron-jobs."
3120 msgstr ""
3121
3122 #. type: =head2
3123 #: ../clone/virt-sysprep.pod:178
3124 msgid "dhcp-client-state"
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../clone/virt-sysprep.pod:180
3129 msgid "Remove DHCP client leases."
3130 msgstr ""
3131
3132 #. type: =head2
3133 #: ../clone/virt-sysprep.pod:182
3134 msgid "dhcp-server-state"
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:184
3139 msgid "Remove DHCP server leases."
3140 msgstr ""
3141
3142 #. type: =head2
3143 #: ../clone/virt-sysprep.pod:186
3144 msgid "hostname"
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../clone/virt-sysprep.pod:188
3149 msgid ""
3150 "Changes the hostname of the guest to the value given in the I<--hostname> "
3151 "parameter."
3152 msgstr ""
3153
3154 #. type: textblock
3155 #: ../clone/virt-sysprep.pod:191
3156 msgid ""
3157 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3158 "C<localhost.localdomain>."
3159 msgstr ""
3160
3161 #. type: =head2
3162 #: ../clone/virt-sysprep.pod:194
3163 msgid "logfiles"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:196
3168 msgid "Remove many log files."
3169 msgstr ""
3170
3171 #. type: =head2
3172 #: ../clone/virt-sysprep.pod:198
3173 msgid "mail-spool"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:200
3178 msgid "Remove email from the local mail spool directory."
3179 msgstr ""
3180
3181 #. type: =head2
3182 #: ../clone/virt-sysprep.pod:202
3183 msgid "net-hwaddr"
3184 msgstr ""
3185
3186 #. type: textblock
3187 #: ../clone/virt-sysprep.pod:204
3188 msgid ""
3189 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3190 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3191 msgstr ""
3192
3193 #. type: =head2
3194 #: ../clone/virt-sysprep.pod:207
3195 msgid "random-seed"
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../clone/virt-sysprep.pod:209
3200 msgid ""
3201 "Write some random bytes from the host into the random seed file of the guest."
3202 msgstr ""
3203
3204 #. type: textblock
3205 #: ../clone/virt-sysprep.pod:212
3206 msgid "See L</RANDOM SEED> below."
3207 msgstr ""
3208
3209 #. type: =head2
3210 #: ../clone/virt-sysprep.pod:214
3211 msgid "rhn-systemid"
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../clone/virt-sysprep.pod:216
3216 msgid "Remove the RHN system ID."
3217 msgstr ""
3218
3219 #. type: =head2
3220 #: ../clone/virt-sysprep.pod:218
3221 msgid "smolt-uuid"
3222 msgstr ""
3223
3224 #. type: textblock
3225 #: ../clone/virt-sysprep.pod:220
3226 msgid "Remove the Smolt hardware UUID."
3227 msgstr ""
3228
3229 #. type: =head2
3230 #: ../clone/virt-sysprep.pod:222
3231 msgid "ssh-hostkeys"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:224
3236 msgid "Remove the SSH host keys in the guest."
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../clone/virt-sysprep.pod:226
3241 msgid ""
3242 "The SSH host keys are regenerated (differently) next time the guest is "
3243 "booted."
3244 msgstr ""
3245
3246 #. type: textblock
3247 #: ../clone/virt-sysprep.pod:229
3248 msgid ""
3249 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3250 "stark warning about the host key changing:"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:232
3255 #, no-wrap
3256 msgid ""
3257 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3258 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3259 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3260 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3261 "\n"
3262 msgstr ""
3263
3264 #. type: =head2
3265 #: ../clone/virt-sysprep.pod:237
3266 msgid "udev-persistent-net"
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../clone/virt-sysprep.pod:239
3271 msgid ""
3272 "Remove udev persistent net rules which map the guest's existing MAC address "
3273 "to a fixed ethernet device (eg. eth0)."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:242
3278 msgid ""
3279 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3280 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3281 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3282 "Erasing the udev persistent net rules avoids this."
3283 msgstr ""
3284
3285 #. type: =head2
3286 #: ../clone/virt-sysprep.pod:247
3287 msgid "utmp"
3288 msgstr ""
3289
3290 #. type: textblock
3291 #: ../clone/virt-sysprep.pod:249
3292 msgid "Remove the utmp file."
3293 msgstr ""
3294
3295 #. type: textblock
3296 #: ../clone/virt-sysprep.pod:251
3297 msgid ""
3298 "This records who is currently logged in on a machine.  In modern Linux "
3299 "distros it is stored in a ramdisk and hence not part of the virtual "
3300 "machine's disk, but it was stored on disk in older distros."
3301 msgstr ""
3302
3303 #. type: =head2
3304 #: ../clone/virt-sysprep.pod:255
3305 msgid "yum-uuid"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../clone/virt-sysprep.pod:257
3310 msgid "Remove the yum UUID."
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../clone/virt-sysprep.pod:259
3315 msgid ""
3316 "Yum creates a fresh UUID the next time it runs when it notices that the "
3317 "original UUID has been erased."
3318 msgstr ""
3319
3320 #. type: =head1
3321 #: ../clone/virt-sysprep.pod:262
3322 msgid "COPYING AND CLONING"
3323 msgstr ""
3324
3325 #. type: textblock
3326 #: ../clone/virt-sysprep.pod:264
3327 msgid ""
3328 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3329 "prepare a template from which guests can be cloned.  There are many "
3330 "different ways to achieve this using the virt tools, and this section is "
3331 "just an introduction."
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../clone/virt-sysprep.pod:269
3336 msgid "A virtual machine (when switched off) consists of two parts:"
3337 msgstr ""
3338
3339 #. type: =item
3340 #: ../clone/virt-sysprep.pod:273
3341 msgid "I<configuration>"
3342 msgstr ""
3343
3344 #. type: textblock
3345 #: ../clone/virt-sysprep.pod:275
3346 msgid ""
3347 "The configuration or description of the guest.  eg. The libvirt XML (see "
3348 "C<virsh dumpxml>), the running configuration of the guest, or another "
3349 "external format like OVF."
3350 msgstr ""
3351
3352 #. type: textblock
3353 #: ../clone/virt-sysprep.pod:279
3354 msgid "Some configuration items that might need to be changed:"
3355 msgstr ""
3356
3357 #. type: textblock
3358 #: ../clone/virt-sysprep.pod:285
3359 msgid "name"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3364 msgid "UUID"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:293
3369 msgid "path to block device(s)"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:297
3374 msgid "network card MAC address"
3375 msgstr ""
3376
3377 #. type: =item
3378 #: ../clone/virt-sysprep.pod:301
3379 msgid "I<block device(s)>"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../clone/virt-sysprep.pod:303
3384 msgid ""
3385 "One or more hard disk images, themselves containing files, directories, "
3386 "applications, kernels, configuration, etc."
3387 msgstr ""
3388
3389 #. type: textblock
3390 #: ../clone/virt-sysprep.pod:306
3391 msgid "Some things inside the block devices that might need to be changed:"
3392 msgstr ""
3393
3394 #. type: textblock
3395 #: ../clone/virt-sysprep.pod:312
3396 msgid "hostname and other net configuration"
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../clone/virt-sysprep.pod:320
3401 msgid "SSH host keys"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../clone/virt-sysprep.pod:324
3406 msgid "Windows unique security ID (SID)"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:328
3411 msgid "Puppet registration"
3412 msgstr ""
3413
3414 #. type: =head2
3415 #: ../clone/virt-sysprep.pod:334
3416 msgid "COPYING THE BLOCK DEVICE"
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../clone/virt-sysprep.pod:336
3421 msgid ""
3422 "Starting with an original guest, you probably wish to copy the guest block "
3423 "device and its configuration to make a template.  Then once you are happy "
3424 "with the template, you will want to make many clones from it."
3425 msgstr ""
3426
3427 #. type: verbatim
3428 #: ../clone/virt-sysprep.pod:341
3429 #, no-wrap
3430 msgid ""
3431 "                        virt-sysprep\n"
3432 "                             |\n"
3433 "                             v\n"
3434 " original guest --------> template ---------->\n"
3435 "                                      \\------> cloned\n"
3436 "                                       \\-----> guests\n"
3437 "                                        \\---->\n"
3438 "\n"
3439 msgstr ""
3440
3441 #. type: textblock
3442 #: ../clone/virt-sysprep.pod:349
3443 msgid ""
3444 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3445 "L<dd(1)>."
3446 msgstr ""
3447
3448 #. type: verbatim
3449 #: ../clone/virt-sysprep.pod:352
3450 #, no-wrap
3451 msgid ""
3452 "                   dd                 dd\n"
3453 " original guest --------> template ---------->\n"
3454 "                                      \\------> cloned\n"
3455 "                                       \\-----> guests\n"
3456 "                                        \\---->\n"
3457 "\n"
3458 msgstr ""
3459
3460 #. type: textblock
3461 #: ../clone/virt-sysprep.pod:358
3462 msgid "There are some smarter (and faster) ways too:"
3463 msgstr ""
3464
3465 #. type: verbatim
3466 #: ../clone/virt-sysprep.pod:364
3467 #, no-wrap
3468 msgid ""
3469 "                          snapshot\n"
3470 "                template ---------->\n"
3471 "                            \\------> cloned\n"
3472 "                             \\-----> guests\n"
3473 "                              \\---->\n"
3474 "\n"
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../clone/virt-sysprep.pod:370
3479 msgid ""
3480 "Use the block device as a backing file and create a snapshot on top for each "
3481 "guest.  The advantage is that you don't need to copy the block device (very "
3482 "fast) and only changes are stored (less storage required)."
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../clone/virt-sysprep.pod:375
3487 msgid ""
3488 "Note that writing to the backing file once you have created guests on top of "
3489 "it is not possible: you will corrupt the guests."
3490 msgstr ""
3491
3492 #. type: textblock
3493 #: ../clone/virt-sysprep.pod:378
3494 msgid ""
3495 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3496 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3497 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3498 "also create cheap snapshots from files or LUNs."
3499 msgstr ""
3500
3501 #. type: textblock
3502 #: ../clone/virt-sysprep.pod:386
3503 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3504 msgstr ""
3505
3506 #. type: textblock
3507 #: ../clone/virt-sysprep.pod:390
3508 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3509 msgstr ""
3510
3511 #. type: =head2
3512 #: ../clone/virt-sysprep.pod:394
3513 msgid "VIRT-CLONE"
3514 msgstr ""
3515
3516 #. type: textblock
3517 #: ../clone/virt-sysprep.pod:396
3518 msgid ""
3519 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3520 "and/or modify the external libvirt configuration of a guest.  It will reset "
3521 "the name, UUID and MAC address of the guest in the libvirt XML."
3522 msgstr ""
3523
3524 #. type: textblock
3525 #: ../clone/virt-sysprep.pod:401
3526 msgid ""
3527 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3528 "image.  This was the original motivation to write virt-sysprep."
3529 msgstr ""
3530
3531 #. type: =head2
3532 #: ../clone/virt-sysprep.pod:404
3533 msgid "SPARSIFY"
3534 msgstr ""
3535
3536 #. type: verbatim
3537 #: ../clone/virt-sysprep.pod:406
3538 #, no-wrap
3539 msgid ""
3540 "              virt-sparsify\n"
3541 " original guest --------> template\n"
3542 "\n"
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../clone/virt-sysprep.pod:409
3547 msgid ""
3548 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3549 "it easier to compress and/or faster to copy."
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../clone/virt-sysprep.pod:412
3554 msgid ""
3555 "Notice that since virt-sparsify also copies the image, you can use it to "
3556 "make the initial copy (instead of C<dd>)."
3557 msgstr ""
3558
3559 #. type: =head2
3560 #: ../clone/virt-sysprep.pod:415
3561 msgid "RESIZE"
3562 msgstr ""
3563
3564 #. type: verbatim
3565 #: ../clone/virt-sysprep.pod:417
3566 #, no-wrap
3567 msgid ""
3568 "                         virt-resize\n"
3569 "                template ---------->\n"
3570 "                            \\------> cloned\n"
3571 "                             \\-----> guests\n"
3572 "                              \\---->\n"
3573 "\n"
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../clone/virt-sysprep.pod:423
3578 msgid ""
3579 "If you want to give people cloned guests, but let them pick the size of the "
3580 "guest themselves (eg. depending on how much they are prepared to pay for "
3581 "disk space), then instead of copying the template, you can run L<virt-resize"
3582 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3583 "guests from a template."
3584 msgstr ""
3585
3586 #. type: =head1
3587 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3588 msgid "SECURITY"
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../clone/virt-sysprep.pod:431
3593 msgid ""
3594 "Although virt-sysprep removes some sensitive information from the guest, it "
3595 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3596 "above, and the implementation of the operations in the shell script.  You "
3597 "should also examine the guest afterwards."
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../clone/virt-sysprep.pod:436
3602 msgid ""
3603 "Sensitive files are simply removed.  The data they contained may still exist "
3604 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3605 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3606 "(1)> command to get rid of deleted content in directory entries and inodes."
3607 msgstr ""
3608
3609 #. type: =head2
3610 #: ../clone/virt-sysprep.pod:442
3611 msgid "RANDOM SEED"
3612 msgstr ""
3613
3614 #. type: textblock
3615 #: ../clone/virt-sysprep.pod:444
3616 msgid "I<(This section applies to Linux guests only)>"
3617 msgstr ""
3618
3619 #. type: textblock
3620 #: ../clone/virt-sysprep.pod:446
3621 msgid ""
3622 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3623 "from the host into the guest's random seed file."
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../clone/virt-sysprep.pod:449
3628 msgid ""
3629 "If this is just done once and the guest is cloned from the same template, "
3630 "then each guest will start with the same entropy, and things like SSH host "
3631 "keys and TCP sequence numbers may be predictable."
3632 msgstr ""
3633
3634 #. type: textblock
3635 #: ../clone/virt-sysprep.pod:453
3636 msgid ""
3637 "Therefore you should arrange to add more randomness I<after> cloning from a "
3638 "template too, which can be done by just enabling the C<random-seed> "
3639 "operation:"
3640 msgstr ""
3641
3642 #. type: verbatim
3643 #: ../clone/virt-sysprep.pod:457
3644 #, no-wrap
3645 msgid ""
3646 " cp template.img newguest.img\n"
3647 " virt-sysprep --enable=random-seed -a newguest.img\n"
3648 "\n"
3649 msgstr ""
3650
3651 #. type: =head2
3652 #: ../clone/virt-sysprep.pod:460
3653 msgid "SELINUX RELABELLING"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../clone/virt-sysprep.pod:462
3658 msgid "I<(This section applies to Linux guests using SELinux only)>"
3659 msgstr ""
3660
3661 #. type: textblock
3662 #: ../clone/virt-sysprep.pod:464
3663 msgid ""
3664 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3665 "autorelabel> so that these will be correctly labelled by SELinux the next "
3666 "time the guest is booted.  This process interrupts boot and can take some "
3667 "time."
3668 msgstr ""
3669
3670 #. type: textblock
3671 #: ../clone/virt-sysprep.pod:469
3672 msgid ""
3673 "You can force relabelling for all guests by supplying the I<--selinux-"
3674 "relabel> option."
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../clone/virt-sysprep.pod:472
3679 msgid ""
3680 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3681 "relabel> option."
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../clone/virt-sysprep.pod:484
3686 msgid "This program returns 0 on success, or 1 if there was an error."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../clone/virt-sysprep.pod:488
3691 msgid ""
3692 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3693 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3694 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../df/virt-df.pod:5
3699 msgid "virt-df - Display free space on virtual filesystems"
3700 msgstr ""
3701
3702 #. type: verbatim
3703 #: ../df/virt-df.pod:9
3704 #, no-wrap
3705 msgid ""
3706 " virt-df [--options]\n"
3707 "\n"
3708 msgstr ""
3709
3710 #. type: verbatim
3711 #: ../df/virt-df.pod:11
3712 #, no-wrap
3713 msgid ""
3714 " virt-df [--options] -d domname\n"
3715 "\n"
3716 msgstr ""
3717
3718 #. type: verbatim
3719 #: ../df/virt-df.pod:13
3720 #, no-wrap
3721 msgid ""
3722 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3723 "\n"
3724 msgstr ""
3725
3726 #. type: verbatim
3727 #: ../df/virt-df.pod:17
3728 #, no-wrap
3729 msgid ""
3730 " virt-df [--options] domname\n"
3731 "\n"
3732 msgstr ""
3733
3734 #. type: verbatim
3735 #: ../df/virt-df.pod:19
3736 #, no-wrap
3737 msgid ""
3738 " virt-df [--options] disk.img [disk.img ...]\n"
3739 "\n"
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../df/virt-df.pod:23
3744 msgid ""
3745 "C<virt-df> is a command line tool to display free space on virtual machine "
3746 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3747 "allocated to a virtual machine, but can look inside disk images to see how "
3748 "much space is really being used."
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../df/virt-df.pod:28
3753 msgid ""
3754 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3755 "to get a list of all active and inactive guests, and performs a C<df>-type "
3756 "operation on each one in turn, printing out the results."
3757 msgstr ""
3758
3759 #. type: textblock
3760 #: ../df/virt-df.pod:32
3761 msgid ""
3762 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3763 "type operation on either the single named libvirt domain, or on the disk "
3764 "image(s) listed on the command line (which must all belong to a single VM).  "
3765 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3766 "guest>.  If you want to run on multiple guests, then you have to invoke "
3767 "C<virt-df> multiple times."
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../df/virt-df.pod:39
3772 msgid ""
3773 "Use the I<--csv> option to get a format which can be easily parsed by other "
3774 "programs.  Other options are similar to the standard L<df(1)> command."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../df/virt-df.pod:45
3779 msgid ""
3780 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3781 "output human-readable:"
3782 msgstr ""
3783
3784 #. type: verbatim
3785 #: ../df/virt-df.pod:48
3786 #, no-wrap
3787 msgid ""
3788 " # virt-df -d F14x64 -h\n"
3789 " Filesystem                       Size     Used  Available  Use%\n"
3790 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3791 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3792 "\n"
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../df/virt-df.pod:53
3797 msgid "Show disk usage for a disk image file called C<test.img>:"
3798 msgstr ""
3799
3800 #. type: verbatim
3801 #: ../df/virt-df.pod:55
3802 #, no-wrap
3803 msgid ""
3804 " $ virt-df -a test1.img\n"
3805 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3806 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3807 "\n"
3808 msgstr ""
3809
3810 #. type: verbatim
3811 #: ../df/virt-df.pod:112
3812 #, no-wrap
3813 msgid ""
3814 " virt-df --format=raw -a disk.img\n"
3815 "\n"
3816 msgstr ""
3817
3818 #. type: verbatim
3819 #: ../df/virt-df.pod:116
3820 #, no-wrap
3821 msgid ""
3822 " virt-df --format=raw -a disk.img --format -a another.img\n"
3823 "\n"
3824 msgstr ""
3825
3826 #. type: textblock
3827 #: ../df/virt-df.pod:129
3828 msgid "Print sizes in human-readable format."
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../df/virt-df.pod:131
3833 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3834 msgstr ""
3835
3836 #. type: =item
3837 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3838 msgid "B<-i>"
3839 msgstr ""
3840
3841 #. type: =item
3842 #: ../df/virt-df.pod:135
3843 msgid "B<--inodes>"
3844 msgstr ""
3845
3846 #. type: textblock
3847 #: ../df/virt-df.pod:137
3848 msgid "Print inodes instead of blocks."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../df/virt-df.pod:139
3853 msgid "B<--one-per-guest>"
3854 msgstr ""
3855
3856 #. type: textblock
3857 #: ../df/virt-df.pod:141
3858 msgid ""
3859 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3860 "disks from several guests to a single libguestfs appliance."
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../df/virt-df.pod:144
3865 msgid "You might use this option in the following circumstances:"
3866 msgstr ""
3867
3868 #. type: textblock
3869 #: ../df/virt-df.pod:150
3870 msgid ""
3871 "If you think an untrusted guest might actively try to exploit the libguestfs "
3872 "appliance kernel, then this prevents one guest from interfering with the "
3873 "stats printed for another guest."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../df/virt-df.pod:156
3878 msgid ""
3879 "If the kernel has a bug which stops it from accessing a filesystem in one "
3880 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3881 "and report stats for further guests."
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../df/virt-df.pod:165
3886 msgid ""
3887 "Print UUIDs instead of names.  This is useful for following a guest even "
3888 "when the guest is migrated or renamed, or when two guests happen to have the "
3889 "same name."
3890 msgstr ""
3891
3892 #. type: textblock
3893 #: ../df/virt-df.pod:169
3894 msgid ""
3895 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3896 "images, we still print the disk image name even when this option is "
3897 "specified."
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../df/virt-df.pod:229
3902 msgid ""
3903 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3904 "libguestfs.org/>."
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../edit/virt-edit.pod:5
3909 msgid "virt-edit - Edit a file in a virtual machine"
3910 msgstr ""
3911
3912 #. type: verbatim
3913 #: ../edit/virt-edit.pod:9
3914 #, no-wrap
3915 msgid ""
3916 " virt-edit [--options] -d domname file [file ...]\n"
3917 "\n"
3918 msgstr ""
3919
3920 #. type: verbatim
3921 #: ../edit/virt-edit.pod:11
3922 #, no-wrap
3923 msgid ""
3924 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3925 "\n"
3926 msgstr ""
3927
3928 #. type: verbatim
3929 #: ../edit/virt-edit.pod:13
3930 #, no-wrap
3931 msgid ""
3932 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3933 "\n"
3934 msgstr ""
3935
3936 #. type: verbatim
3937 #: ../edit/virt-edit.pod:17
3938 #, no-wrap
3939 msgid ""
3940 " virt-edit domname file\n"
3941 "\n"
3942 msgstr ""
3943
3944 #. type: verbatim
3945 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3946 #, no-wrap
3947 msgid ""
3948 " virt-edit disk.img [disk.img ...] file\n"
3949 "\n"
3950 msgstr ""
3951
3952 #. type: =head1
3953 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
3954 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
3955 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
3956 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3957 msgid "WARNING"
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../edit/virt-edit.pod:23
3962 msgid ""
3963 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3964 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3965 "doing this, but doesn't catch all cases."
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../edit/virt-edit.pod:29
3970 msgid ""
3971 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3972 "exists in the named virtual machine (or disk image)."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../edit/virt-edit.pod:32
3977 msgid ""
3978 "Multiple filenames can be given, in which case they are each edited in "
3979 "turn.  Each filename must be a full path, starting at the root directory "
3980 "(starting with '/')."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:36
3985 msgid "If you want to just view a file, use L<virt-cat(1)>."
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../edit/virt-edit.pod:38
3990 msgid ""
3991 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
3992 "USING GUESTFISH> below)."
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../edit/virt-edit.pod:41
3997 msgid ""
3998 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3999 "that and much more."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../edit/virt-edit.pod:46
4004 msgid "Edit the named files interactively:"
4005 msgstr ""
4006
4007 #. type: verbatim
4008 #: ../edit/virt-edit.pod:48
4009 #, no-wrap
4010 msgid ""
4011 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4012 "\n"
4013 msgstr ""
4014
4015 #. type: verbatim
4016 #: ../edit/virt-edit.pod:50
4017 #, no-wrap
4018 msgid ""
4019 " virt-edit -d mydomain /etc/passwd\n"
4020 "\n"
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:52
4025 msgid "For Windows guests, some Windows paths are understood:"
4026 msgstr ""
4027
4028 #. type: verbatim
4029 #: ../edit/virt-edit.pod:54
4030 #, no-wrap
4031 msgid ""
4032 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4033 "\n"
4034 msgstr ""
4035
4036 #. type: textblock
4037 #: ../edit/virt-edit.pod:56
4038 msgid ""
4039 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4040 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4041 msgstr ""
4042
4043 #. type: verbatim
4044 #: ../edit/virt-edit.pod:60
4045 #, no-wrap
4046 msgid ""
4047 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4048 "\n"
4049 msgstr ""
4050
4051 #. type: =item
4052 #: ../edit/virt-edit.pod:81
4053 msgid "B<-b> extension"
4054 msgstr ""
4055
4056 #. type: =item
4057 #: ../edit/virt-edit.pod:83
4058 msgid "B<--backup> extension"
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../edit/virt-edit.pod:85
4063 msgid ""
4064 "Create a backup of the original file I<in the guest disk image>.  The backup "
4065 "has the original filename with C<extension> added."
4066 msgstr ""
4067
4068 #. type: textblock
4069 #: ../edit/virt-edit.pod:88
4070 msgid ""
4071 "Usually the first character of C<extension> would be a dot C<.> so you would "
4072 "write:"
4073 msgstr ""
4074
4075 #. type: verbatim
4076 #: ../edit/virt-edit.pod:91
4077 #, no-wrap
4078 msgid ""
4079 " virt-edit -b .orig [etc]\n"
4080 "\n"
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../edit/virt-edit.pod:93
4085 msgid "By default, no backup file is made."
4086 msgstr ""
4087
4088 #. type: =item
4089 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4090 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4091 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4092 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4093 msgid "B<-c URI>"
4094 msgstr ""
4095
4096 #. type: =item
4097 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4098 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4099 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4100 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4101 msgid "B<--connect URI>"
4102 msgstr ""
4103
4104 #. type: textblock
4105 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4106 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4107 #: ../tools/virt-win-reg.pl:135
4108 msgid ""
4109 "If you specify guest block devices directly, then libvirt is not used at all."
4110 msgstr ""
4111
4112 #. type: textblock
4113 #: ../edit/virt-edit.pod:114
4114 msgid ""
4115 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4116 "off so you cannot see what you are typing.  If you are not worried about "
4117 "Tempest attacks and there is no one else in the room you can specify this "
4118 "flag to see what you are typing."
4119 msgstr ""
4120
4121 #. type: =item
4122 #: ../edit/virt-edit.pod:119
4123 msgid "B<-e> EXPR"
4124 msgstr ""
4125
4126 #. type: =item
4127 #: ../edit/virt-edit.pod:121
4128 msgid "B<--expr> EXPR"
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../edit/virt-edit.pod:123
4133 msgid ""
4134 "Instead of launching the external editor, non-interactively apply the Perl "
4135 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4136 "EDITING> below."
4137 msgstr ""
4138
4139 #. type: textblock
4140 #: ../edit/virt-edit.pod:127
4141 msgid ""
4142 "Be careful to properly quote the expression to prevent it from being altered "
4143 "by the shell."
4144 msgstr ""
4145
4146 #. type: textblock
4147 #: ../edit/virt-edit.pod:130
4148 msgid "Note that this option is only available when Perl 5 is installed."
4149 msgstr ""
4150
4151 #. type: =item
4152 #: ../edit/virt-edit.pod:132
4153 msgid "B<--format> raw|qcow2|..."
4154 msgstr ""
4155
4156 #. type: verbatim
4157 #: ../edit/virt-edit.pod:143
4158 #, no-wrap
4159 msgid ""
4160 " virt-edit --format=raw -a disk.img file\n"
4161 "\n"
4162 msgstr ""
4163
4164 #. type: verbatim
4165 #: ../edit/virt-edit.pod:147
4166 #, no-wrap
4167 msgid ""
4168 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4169 "\n"
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../edit/virt-edit.pod:181
4174 msgid "Previous versions of virt-edit allowed you to write either:"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../edit/virt-edit.pod:187
4179 #, no-wrap
4180 msgid ""
4181 " virt-edit guestname file\n"
4182 "\n"
4183 msgstr ""
4184
4185 #. type: =head1
4186 #: ../edit/virt-edit.pod:195
4187 msgid "NON-INTERACTIVE EDITING"
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../edit/virt-edit.pod:197
4192 msgid ""
4193 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4194 "administrator can interactively edit the file."
4195 msgstr ""
4196
4197 #. type: textblock
4198 #: ../edit/virt-edit.pod:200
4199 msgid ""
4200 "There are two ways also to use C<virt-edit> from scripts in order to make "
4201 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4202 "like this, it's less error-prone to write scripts directly using the "
4203 "libguestfs API and Augeas for configuration file editing.)"
4204 msgstr ""
4205
4206 #. type: textblock
4207 #: ../edit/virt-edit.pod:206
4208 msgid ""
4209 "The first method is to temporarily set C<$EDITOR> to any script or program "
4210 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4211 "update C<tmpfile> in place however it likes."
4212 msgstr ""
4213
4214 #. type: textblock
4215 #: ../edit/virt-edit.pod:210
4216 msgid ""
4217 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4218 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4219 "instances of C<foo> with C<bar> in a file:"
4220 msgstr ""
4221
4222 #. type: verbatim
4223 #: ../edit/virt-edit.pod:214
4224 #, no-wrap
4225 msgid ""
4226 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4227 "\n"
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../edit/virt-edit.pod:216
4232 msgid ""
4233 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4234 "For example to delete root's password you could do:"
4235 msgstr ""
4236
4237 #. type: verbatim
4238 #: ../edit/virt-edit.pod:219
4239 #, no-wrap
4240 msgid ""
4241 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4242 "\n"
4243 msgstr ""
4244
4245 #. type: textblock
4246 #: ../edit/virt-edit.pod:221
4247 msgid ""
4248 "What really happens is that the snippet is evaluated as a Perl expression "
4249 "for each line of the file.  The line, including the final C<\\n>, is passed "
4250 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4251 msgstr ""
4252
4253 #. type: textblock
4254 #: ../edit/virt-edit.pod:226
4255 msgid ""
4256 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4257 "C<apache> user account from the password file you can do:"
4258 msgstr ""
4259
4260 #. type: verbatim
4261 #: ../edit/virt-edit.pod:229
4262 #, no-wrap
4263 msgid ""
4264 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4265 "\n"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../edit/virt-edit.pod:231
4270 msgid ""
4271 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4272 "the end of the file is rather difficult this way since there is no concept "
4273 "of \"last line of the file\" - your expression just doesn't get called "
4274 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4275 "want to do this."
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../edit/virt-edit.pod:237
4280 msgid ""
4281 "The variable C<$lineno> contains the current line number.  As is "
4282 "traditional, the first line in the file is number C<1>."
4283 msgstr ""
4284
4285 #. type: textblock
4286 #: ../edit/virt-edit.pod:240
4287 msgid ""
4288 "The return value from the expression is ignored, but the expression may call "
4289 "C<die> in order to abort the whole program, leaving the original file "
4290 "untouched."
4291 msgstr ""
4292
4293 #. type: textblock
4294 #: ../edit/virt-edit.pod:244
4295 msgid ""
4296 "Remember when matching the end of a line that C<$_> may contain the final C<"
4297 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4298 "newline then neither of these.  Thus to match or substitute some text at the "
4299 "end of a line, use this regular expression:"
4300 msgstr ""
4301
4302 #. type: verbatim
4303 #: ../edit/virt-edit.pod:249
4304 #, no-wrap
4305 msgid ""
4306 " /some text(\\r?\\n)?$/\n"
4307 "\n"
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../edit/virt-edit.pod:251
4312 msgid ""
4313 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4314 "$_> itself (since that would remove all newlines from the file):"
4315 msgstr ""
4316
4317 #. type: verbatim
4318 #: ../edit/virt-edit.pod:255
4319 #, no-wrap
4320 msgid ""
4321 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4322 "\n"
4323 msgstr ""
4324
4325 #. type: =head1
4326 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4327 msgid "WINDOWS PATHS"
4328 msgstr ""
4329
4330 #. type: textblock
4331 #: ../edit/virt-edit.pod:259
4332 msgid ""
4333 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4334 "paths (eg. C<E:\\foo\\bar.txt>)."
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../edit/virt-edit.pod:262
4339 msgid "If and only if the guest is running Windows then:"
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../edit/virt-edit.pod:268
4344 msgid ""
4345 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4346 "to the correct filesystem."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../edit/virt-edit.pod:273
4351 msgid ""
4352 "Any backslash (C<\\>) characters in the path are replaced with forward "
4353 "slashes so that libguestfs can process it."
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../edit/virt-edit.pod:278
4358 msgid ""
4359 "The path is resolved case insensitively to locate the file that should be "
4360 "edited."
4361 msgstr ""
4362
4363 #. type: textblock
4364 #: ../edit/virt-edit.pod:283
4365 msgid "There are some known shortcomings:"
4366 msgstr ""
4367
4368 #. type: textblock
4369 #: ../edit/virt-edit.pod:289
4370 msgid "Some NTFS symbolic links may not be followed correctly."
4371 msgstr ""
4372
4373 #. type: textblock
4374 #: ../edit/virt-edit.pod:293
4375 msgid "NTFS junction points that cross filesystems are not followed."
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../edit/virt-edit.pod:299
4380 msgid ""
4381 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4382 "C<virt-edit> doesn't work."
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../edit/virt-edit.pod:302
4387 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4388 msgstr ""
4389
4390 #. type: verbatim
4391 #: ../edit/virt-edit.pod:304
4392 #, no-wrap
4393 msgid ""
4394 " guestfish --rw -i -d domname edit /file\n"
4395 "\n"
4396 msgstr ""
4397
4398 #. type: textblock
4399 #: ../edit/virt-edit.pod:306
4400 msgid ""
4401 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4402 "path to the file."
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../edit/virt-edit.pod:309
4407 msgid ""
4408 "The command above uses libguestfs's guest inspection feature and so does not "
4409 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4410 "disk images that don't contain guests.  To edit a file on a disk image "
4411 "directly, use:"
4412 msgstr ""
4413
4414 #. type: verbatim
4415 #: ../edit/virt-edit.pod:314
4416 #, no-wrap
4417 msgid ""
4418 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4419 "\n"
4420 msgstr ""
4421
4422 #. type: textblock
4423 #: ../edit/virt-edit.pod:316
4424 msgid ""
4425 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4426 "the disk image to edit, and C</file> is the full path to the file."
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../edit/virt-edit.pod:320
4431 msgid ""
4432 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4433 "C<write> or C<upload> instead:"
4434 msgstr ""
4435
4436 #. type: verbatim
4437 #: ../edit/virt-edit.pod:323
4438 #, no-wrap
4439 msgid ""
4440 " guestfish --rw -i -d domname touch /newfile\n"
4441 "\n"
4442 msgstr ""
4443
4444 #. type: verbatim
4445 #: ../edit/virt-edit.pod:325
4446 #, no-wrap
4447 msgid ""
4448 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4449 "\n"
4450 msgstr ""
4451
4452 #. type: verbatim
4453 #: ../edit/virt-edit.pod:327
4454 #, no-wrap
4455 msgid ""
4456 " guestfish --rw -i -d domname upload localfile /newfile\n"
4457 "\n"
4458 msgstr ""
4459
4460 #. type: =head1
4461 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4462 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4463 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4464 msgid "ENVIRONMENT VARIABLES"
4465 msgstr ""
4466
4467 #. type: =item
4468 #: ../edit/virt-edit.pod:333
4469 msgid "C<EDITOR>"
4470 msgstr ""
4471
4472 #. type: textblock
4473 #: ../edit/virt-edit.pod:335
4474 msgid ""
4475 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4476 "\"emacs -nw\">"
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../edit/virt-edit.pod:338
4481 msgid "If not set, C<vi> is used."
4482 msgstr ""
4483
4484 #. type: textblock
4485 #: ../edit/virt-edit.pod:356
4486 msgid ""
4487 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4488 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4489 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../erlang/examples/guestfs-erlang.pod:5
4494 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4495 msgstr ""
4496
4497 #. type: verbatim
4498 #: ../erlang/examples/guestfs-erlang.pod:9
4499 #, no-wrap
4500 msgid ""
4501 " {ok, G} = guestfs:create(),\n"
4502 " ok = guestfs:add_drive_opts(G, Disk,\n"
4503 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4504 " ok = guestfs:launch(G),\n"
4505 " [Device] = guestfs:list_devices(G),\n"
4506 " ok = guestfs:close(G).\n"
4507 "\n"
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../erlang/examples/guestfs-erlang.pod:18
4512 msgid ""
4513 "This manual page documents how to call libguestfs from the Erlang "
4514 "programming language.  This page just documents the differences from the C "
4515 "API and gives some examples.  If you are not familiar with using libguestfs, "
4516 "you also need to read L<guestfs(3)>."
4517 msgstr ""
4518
4519 #. type: =head2
4520 #: ../erlang/examples/guestfs-erlang.pod:23
4521 msgid "OPENING AND CLOSING THE HANDLE"
4522 msgstr ""
4523
4524 #. type: textblock
4525 #: ../erlang/examples/guestfs-erlang.pod:25
4526 msgid ""
4527 "The Erlang bindings are implemented using an external program called C<erl-"
4528 "guestfs>.  This program must be on the current PATH, or else you should "
4529 "specify the full path to the program:"
4530 msgstr ""
4531
4532 #. type: verbatim
4533 #: ../erlang/examples/guestfs-erlang.pod:29
4534 #, no-wrap
4535 msgid ""
4536 " {ok, G} = guestfs:create().\n"
4537 "\n"
4538 msgstr ""
4539
4540 #. type: verbatim
4541 #: ../erlang/examples/guestfs-erlang.pod:31
4542 #, no-wrap
4543 msgid ""
4544 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4545 "\n"
4546 msgstr ""
4547
4548 #. type: textblock
4549 #: ../erlang/examples/guestfs-erlang.pod:33
4550 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4551 msgstr ""
4552
4553 #. type: textblock
4554 #: ../erlang/examples/guestfs-erlang.pod:36
4555 msgid "To close the handle:"
4556 msgstr ""
4557
4558 #. type: verbatim
4559 #: ../erlang/examples/guestfs-erlang.pod:38
4560 #, no-wrap
4561 msgid ""
4562 " ok = guestfs:close(G).\n"
4563 "\n"
4564 msgstr ""
4565
4566 #. type: =head2
4567 #: ../erlang/examples/guestfs-erlang.pod:40
4568 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4569 msgstr ""
4570
4571 #. type: textblock
4572 #: ../erlang/examples/guestfs-erlang.pod:42
4573 msgid ""
4574 "For functions that take optional arguments, the first arguments are the non-"
4575 "optional ones.  The last argument is a list of tuples supplying the "
4576 "remaining optional arguments."
4577 msgstr ""
4578
4579 #. type: verbatim
4580 #: ../erlang/examples/guestfs-erlang.pod:46
4581 #, no-wrap
4582 msgid ""
4583 " ok = guestfs:add_drive_opts(G, Disk,\n"
4584 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4585 "\n"
4586 msgstr ""
4587
4588 #. type: textblock
4589 #: ../erlang/examples/guestfs-erlang.pod:49
4590 msgid "If the last argument would be an empty list, you can also omit it:"
4591 msgstr ""
4592
4593 #. type: verbatim
4594 #: ../erlang/examples/guestfs-erlang.pod:51
4595 #, no-wrap
4596 msgid ""
4597 " ok = guestfs:add_drive_opts(G, Disk).\n"
4598 "\n"
4599 msgstr ""
4600
4601 #. type: =head2
4602 #: ../erlang/examples/guestfs-erlang.pod:53
4603 msgid "RETURN VALUES AND ERRORS"
4604 msgstr ""
4605
4606 #. type: textblock
4607 #: ../erlang/examples/guestfs-erlang.pod:55
4608 msgid ""
4609 "On success, most functions return a C<Result> term (which could be a list, "
4610 "string, tuple etc.).  If there is nothing for the function to return, then "
4611 "the atom C<ok> is returned."
4612 msgstr ""
4613
4614 #. type: textblock
4615 #: ../erlang/examples/guestfs-erlang.pod:59
4616 msgid "On error, you would see one of the following tuples:"
4617 msgstr ""
4618
4619 #. type: =item
4620 #: ../erlang/examples/guestfs-erlang.pod:63
4621 msgid "C<{error, Msg, Errno}>"
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../erlang/examples/guestfs-erlang.pod:65
4626 msgid "This indicates an ordinary error from the function."
4627 msgstr ""
4628
4629 #. type: textblock
4630 #: ../erlang/examples/guestfs-erlang.pod:67
4631 msgid ""
4632 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4633 "(integer)."
4634 msgstr ""
4635
4636 #. type: textblock
4637 #: ../erlang/examples/guestfs-erlang.pod:70
4638 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4639 msgstr ""
4640
4641 #. type: =item
4642 #: ../erlang/examples/guestfs-erlang.pod:72
4643 msgid "C<{unknown, Function}>"
4644 msgstr ""
4645
4646 #. type: textblock
4647 #: ../erlang/examples/guestfs-erlang.pod:74
4648 msgid ""
4649 "This indicates that the function you called is not known.  Generally this "
4650 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4651 "which you should not do."
4652 msgstr ""
4653
4654 #. type: textblock
4655 #: ../erlang/examples/guestfs-erlang.pod:78
4656 msgid "C<Function> is the name of the unknown function."
4657 msgstr ""
4658
4659 #. type: =item
4660 #: ../erlang/examples/guestfs-erlang.pod:80
4661 msgid "C<{unknownarg, Arg}>"
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../erlang/examples/guestfs-erlang.pod:82
4666 msgid ""
4667 "This indicates that you called a function with optional arguments, with an "
4668 "unknown argument name."
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../erlang/examples/guestfs-erlang.pod:85
4673 msgid "C<Arg> is the name of the unknown argument."
4674 msgstr ""
4675
4676 #. type: =head1
4677 #: ../erlang/examples/guestfs-erlang.pod:89
4678 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4679 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4680 #: ../python/examples/guestfs-python.pod:34
4681 #: ../ruby/examples/guestfs-ruby.pod:28
4682 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../erlang/examples/guestfs-erlang.pod:91
4687 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4688 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4689 #: ../python/examples/guestfs-python.pod:36
4690 #: ../ruby/examples/guestfs-ruby.pod:30
4691 msgid "@EXAMPLE1@"
4692 msgstr ""
4693
4694 #. type: =head1
4695 #: ../erlang/examples/guestfs-erlang.pod:93
4696 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4697 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4698 #: ../python/examples/guestfs-python.pod:38
4699 #: ../ruby/examples/guestfs-ruby.pod:32
4700 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../erlang/examples/guestfs-erlang.pod:95
4705 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4706 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4707 #: ../python/examples/guestfs-python.pod:40
4708 #: ../ruby/examples/guestfs-ruby.pod:34
4709 msgid "@EXAMPLE2@"
4710 msgstr ""
4711
4712 #. type: textblock
4713 #: ../erlang/examples/guestfs-erlang.pod:99
4714 msgid ""
4715 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4716 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4717 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4718 msgstr ""
4719
4720 #. type: =head1
4721 #: ../erlang/examples/guestfs-erlang.pod:110
4722 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4723 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4724 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4725 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4726 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4727 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4728 #: ../python/examples/guestfs-python.pod:54
4729 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4730 #: ../test-tool/libguestfs-test-tool.pod:106
4731 msgid "AUTHORS"
4732 msgstr ""
4733
4734 #. type: textblock
4735 #: ../erlang/examples/guestfs-erlang.pod:112
4736 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4737 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4738 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4739 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4740 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4741 #: ../perl/examples/guestfs-perl.pod:54
4742 #: ../python/examples/guestfs-python.pod:56
4743 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4744 #: ../test-tool/libguestfs-test-tool.pod:108
4745 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4746 msgstr ""
4747
4748 #. type: textblock
4749 #: ../erlang/examples/guestfs-erlang.pod:116
4750 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4751 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4752 msgstr ""
4753
4754 #. type: textblock
4755 #: ../erlang/examples/guestfs-erlang.pod:118
4756 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4757 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4758 #: ../perl/examples/guestfs-perl.pod:60
4759 #: ../python/examples/guestfs-python.pod:62
4760 #: ../ruby/examples/guestfs-ruby.pod:56
4761 msgid ""
4762 "The examples in this manual page may be freely copied, modified and "
4763 "distributed without any restrictions."
4764 msgstr ""
4765
4766 #. type: textblock
4767 #: ../erlang/examples/guestfs-erlang.pod:121
4768 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4769 #: ../java/examples/guestfs-java.pod:69
4770 #: ../ocaml/examples/guestfs-ocaml.pod:102
4771 #: ../perl/examples/guestfs-perl.pod:63
4772 #: ../python/examples/guestfs-python.pod:65
4773 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4774 msgid ""
4775 "This library is free software; you can redistribute it and/or modify it "
4776 "under the terms of the GNU Lesser General Public License as published by the "
4777 "Free Software Foundation; either version 2 of the License, or (at your "
4778 "option) any later version."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../erlang/examples/guestfs-erlang.pod:126
4783 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4784 #: ../java/examples/guestfs-java.pod:74
4785 #: ../ocaml/examples/guestfs-ocaml.pod:107
4786 #: ../perl/examples/guestfs-perl.pod:68
4787 #: ../python/examples/guestfs-python.pod:70
4788 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4789 msgid ""
4790 "This library is distributed in the hope that it will be useful, but WITHOUT "
4791 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4792 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4793 "for more details."
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../erlang/examples/guestfs-erlang.pod:131
4798 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4799 #: ../java/examples/guestfs-java.pod:79
4800 #: ../ocaml/examples/guestfs-ocaml.pod:112
4801 #: ../perl/examples/guestfs-perl.pod:73
4802 #: ../python/examples/guestfs-python.pod:75
4803 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4804 msgid ""
4805 "You should have received a copy of the GNU Lesser General Public License "
4806 "along with this library; if not, write to the Free Software Foundation, "
4807 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4808 msgstr ""
4809
4810 #. type: textblock
4811 #: ../examples/guestfs-examples.pod:5
4812 msgid "guestfs-examples - Examples of using libguestfs from C"
4813 msgstr ""
4814
4815 #. type: verbatim
4816 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4817 #, no-wrap
4818 msgid ""
4819 " #include <guestfs.h>\n"
4820 " \n"
4821 msgstr "#include <guestfs.h>\n"
4822
4823 #. type: verbatim
4824 #: ../examples/guestfs-examples.pod:11
4825 #, no-wrap
4826 msgid ""
4827 " guestfs_h *g = guestfs_create ();\n"
4828 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4829 " guestfs_launch (g);\n"
4830 "\n"
4831 msgstr ""
4832
4833 #. type: verbatim
4834 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4835 #, no-wrap
4836 msgid ""
4837 " cc prog.c -o prog -lguestfs\n"
4838 "or:\n"
4839 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4840 "\n"
4841 msgstr ""
4842 " cc prog.c -o prog -lguestfs\n"
4843 "or:\n"
4844 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4845 "\n"
4846
4847 #. type: textblock
4848 #: ../examples/guestfs-examples.pod:21
4849 msgid ""
4850 "This manual page contains examples of calling libguestfs from the C "
4851 "programming language.  If you are not familiar with using libguestfs, you "
4852 "also need to read L<guestfs(3)>."
4853 msgstr ""
4854
4855 #. type: textblock
4856 #: ../examples/guestfs-examples.pod:35
4857 msgid ""
4858 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4859 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4860 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4865 #: ../python/examples/guestfs-python.pod:60
4866 #: ../ruby/examples/guestfs-ruby.pod:54
4867 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4868 msgstr ""
4869
4870 #. type: =end
4871 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4872 msgid "comment"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../examples/guestfs-recipes.pod:5
4877 msgid ""
4878 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4879 "here.  The only way which works for both sorts of output is to just write "
4880 "the URL directly.  Do NOT use L<...> for URLs."
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../examples/guestfs-recipes.pod:9
4885 msgid ""
4886 "We break with tradition here and don't use ALL CAPS for the section "
4887 "headings, as this makes them much easier to read."
4888 msgstr ""
4889
4890 #. type: textblock
4891 #: ../examples/guestfs-recipes.pod:16
4892 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4893 msgstr ""
4894
4895 #. type: textblock
4896 #: ../examples/guestfs-recipes.pod:20
4897 msgid ""
4898 "This page contains recipes for and links to things you can do using "
4899 "libguestfs, L<guestfish(1)> and the virt tools."
4900 msgstr ""
4901
4902 #. type: =head1
4903 #: ../examples/guestfs-recipes.pod:23
4904 msgid "Audit a virtual machine for setuid files"
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../examples/guestfs-recipes.pod:25
4909 msgid ""
4910 "The link below contains a small program which can be used to audit a Linux "
4911 "virtual machine to see what setuid and setgid files it contains."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../examples/guestfs-recipes.pod:28
4916 msgid ""
4917 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4918 "files/#content"
4919 msgstr ""
4920
4921 #. type: =head1
4922 #: ../examples/guestfs-recipes.pod:30
4923 msgid "Change the background image in a Windows XP VM"
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../examples/guestfs-recipes.pod:32
4928 msgid ""
4929 "The links below explain how to use L<guestfish(1)> to change the background "
4930 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4931 "be substantially different for each version of Windows."
4932 msgstr ""
4933
4934 #. type: textblock
4935 #: ../examples/guestfs-recipes.pod:37
4936 msgid ""
4937 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4938 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4939 msgstr ""
4940
4941 #. type: =head1
4942 #: ../examples/guestfs-recipes.pod:40
4943 msgid "Cloning a virtual machine (Linux)"
4944 msgstr ""
4945
4946 #. type: textblock
4947 #: ../examples/guestfs-recipes.pod:42
4948 msgid ""
4949 "The guestfish technique described in the link below works well for most "
4950 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4951 "slightly."
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../examples/guestfs-recipes.pod:46
4956 msgid ""
4957 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4958 "vm/#content"
4959 msgstr ""
4960
4961 #. type: textblock
4962 #: ../examples/guestfs-recipes.pod:48
4963 msgid ""
4964 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4965 "discussion."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../examples/guestfs-recipes.pod:51
4970 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4971 msgstr ""
4972
4973 #. type: =head1
4974 #: ../examples/guestfs-recipes.pod:53
4975 msgid "Cloning a virtual machine (Windows)"
4976 msgstr ""
4977
4978 #. type: textblock
4979 #: ../examples/guestfs-recipes.pod:55
4980 msgid ""
4981 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4982 "straightforward.  Currently there is code in the Aeolus Oz project which "
4983 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4984 "we may add sysprepping ability."
4985 msgstr ""
4986
4987 #. type: textblock
4988 #: ../examples/guestfs-recipes.pod:60
4989 msgid ""
4990 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
4991 "list/2011-May/msg00019.html"
4992 msgstr ""
4993
4994 #. type: =head1
4995 #: ../examples/guestfs-recipes.pod:63
4996 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../examples/guestfs-recipes.pod:65
5001 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5002 msgstr ""
5003
5004 #. type: verbatim
5005 #: ../examples/guestfs-recipes.pod:67
5006 #, no-wrap
5007 msgid ""
5008 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5009 "\n"
5010 msgstr ""
5011
5012 #. type: textblock
5013 #: ../examples/guestfs-recipes.pod:69
5014 msgid "To export just a subdirectory, eg. C</files>, do:"
5015 msgstr ""
5016
5017 #. type: verbatim
5018 #: ../examples/guestfs-recipes.pod:71
5019 #, no-wrap
5020 msgid ""
5021 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5022 "\n"
5023 msgstr ""
5024
5025 #. type: =head1
5026 #: ../examples/guestfs-recipes.pod:73
5027 msgid "Create empty disk images"
5028 msgstr ""
5029
5030 #. type: textblock
5031 #: ../examples/guestfs-recipes.pod:75
5032 msgid ""
5033 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5034 "The useful guide below explains the options available."
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:78
5039 msgid ""
5040 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5041 "#content"
5042 msgstr ""
5043
5044 #. type: =head1
5045 #: ../examples/guestfs-recipes.pod:80
5046 msgid "Dump raw filesystem content from inside a disk image or VM"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../examples/guestfs-recipes.pod:82
5051 msgid ""
5052 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5053 "filesystem content from any filesystem in a disk image or a VM (even one "
5054 "which is encrypted or buried inside an LV):"
5055 msgstr ""
5056
5057 #. type: verbatim
5058 #: ../examples/guestfs-recipes.pod:86
5059 #, no-wrap
5060 msgid ""
5061 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5062 "\n"
5063 msgstr ""
5064
5065 #. type: verbatim
5066 #: ../examples/guestfs-recipes.pod:88
5067 #, no-wrap
5068 msgid ""
5069 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5070 "\n"
5071 msgstr ""
5072
5073 #. type: textblock
5074 #: ../examples/guestfs-recipes.pod:90
5075 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5076 msgstr ""
5077
5078 #. type: =head1
5079 #: ../examples/guestfs-recipes.pod:92
5080 msgid "Edit grub configuration in a VM"
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../examples/guestfs-recipes.pod:94
5085 msgid "You can use this to:"
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../examples/guestfs-recipes.pod:100
5090 msgid "Fix a virtual machine that does not boot."
5091 msgstr ""
5092
5093 #. type: textblock
5094 #: ../examples/guestfs-recipes.pod:104
5095 msgid "Change which kernel is used to boot the VM."
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../examples/guestfs-recipes.pod:108
5100 msgid "Change kernel command line options."
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../examples/guestfs-recipes.pod:112
5105 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5106 msgstr ""
5107
5108 #. type: verbatim
5109 #: ../examples/guestfs-recipes.pod:114
5110 #, no-wrap
5111 msgid ""
5112 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5113 "\n"
5114 msgstr ""
5115
5116 #. type: textblock
5117 #: ../examples/guestfs-recipes.pod:116
5118 msgid ""
5119 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5120 "this:"
5121 msgstr ""
5122
5123 #. type: verbatim
5124 #: ../examples/guestfs-recipes.pod:119
5125 #, no-wrap
5126 msgid ""
5127 " virt-rescue -d BrokenGuest\n"
5128 "\n"
5129 msgstr ""
5130
5131 #. type: =head1
5132 #: ../examples/guestfs-recipes.pod:121
5133 msgid "Export any directory from a VM"
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../examples/guestfs-recipes.pod:123
5138 msgid ""
5139 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5140 msgstr ""
5141
5142 #. type: verbatim
5143 #: ../examples/guestfs-recipes.pod:126
5144 #, no-wrap
5145 msgid ""
5146 " virt-copy-out -d Guest /home .\n"
5147 "\n"
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5152 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5153 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5154 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5155 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5156 #: ../tools/virt-win-reg.pl:706
5157 msgid "Notes:"
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:134
5162 msgid ""
5163 "The final dot of the command is not a printing error.  It means we want to "
5164 "copy out to the current directory."
5165 msgstr ""
5166
5167 #. type: textblock
5168 #: ../examples/guestfs-recipes.pod:139
5169 msgid "This creates a directory called C<home> under the current directory."
5170 msgstr ""
5171
5172 #. type: textblock
5173 #: ../examples/guestfs-recipes.pod:143
5174 msgid ""
5175 "If the guest is a Windows guest then you can use drive letters and "
5176 "backslashes, but you must prefix the path with C<win:> and quote it to "
5177 "protect it from the shell, like this:"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../examples/guestfs-recipes.pod:147
5182 #, no-wrap
5183 msgid ""
5184 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: textblock
5189 #: ../examples/guestfs-recipes.pod:149
5190 msgid "To get the output as a compressed tarball, do:"
5191 msgstr ""
5192
5193 #. type: verbatim
5194 #: ../examples/guestfs-recipes.pod:151
5195 #, no-wrap
5196 msgid ""
5197 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5198 "\n"
5199 msgstr ""
5200
5201 #. type: textblock
5202 #: ../examples/guestfs-recipes.pod:153
5203 msgid ""
5204 "Although it sounds tempting, this is usually not a reliable way to get a "
5205 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5206 "org/FAQ.html#backup"
5207 msgstr ""
5208
5209 #. type: =head1
5210 #: ../examples/guestfs-recipes.pod:157
5211 msgid "Find out which user is using the most space"
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../examples/guestfs-recipes.pod:159
5216 msgid ""
5217 "This simple script examines a Linux guest to find out which user is using "
5218 "the most space in their home directory:"
5219 msgstr ""
5220
5221 #. type: verbatim
5222 #: ../examples/guestfs-recipes.pod:162
5223 #, no-wrap
5224 msgid ""
5225 " #!/bin/sh -\n"
5226 " \n"
5227 msgstr ""
5228
5229 #. type: verbatim
5230 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5231 #, no-wrap
5232 msgid ""
5233 " set -e\n"
5234 " \n"
5235 msgstr ""
5236
5237 #. type: verbatim
5238 #: ../examples/guestfs-recipes.pod:166
5239 #, no-wrap
5240 msgid ""
5241 " vm=\"$1\"\n"
5242 " dir=/home\n"
5243 " \n"
5244 msgstr ""
5245
5246 #. type: verbatim
5247 #: ../examples/guestfs-recipes.pod:169
5248 #, no-wrap
5249 msgid ""
5250 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5251 " \n"
5252 msgstr ""
5253
5254 #. type: verbatim
5255 #: ../examples/guestfs-recipes.pod:171
5256 #, no-wrap
5257 msgid ""
5258 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5259 "     echo -n \"$dir/$d\"\n"
5260 "     echo -ne '\\t'\n"
5261 "     guestfish --remote du \"$dir/$d\";\n"
5262 " done | sort -nr -k 2\n"
5263 " \n"
5264 msgstr ""
5265
5266 #. type: verbatim
5267 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5268 #, no-wrap
5269 msgid ""
5270 " guestfish --remote exit\n"
5271 "\n"
5272 msgstr ""
5273
5274 #. type: =head1
5275 #: ../examples/guestfs-recipes.pod:179
5276 msgid "Get DHCP address from a VM"
5277 msgstr ""
5278
5279 #. type: textblock
5280 #: ../examples/guestfs-recipes.pod:181
5281 msgid ""
5282 "The link below explains the many different possible techniques for getting "
5283 "the last assigned DHCP address of a virtual machine."
5284 msgstr ""
5285
5286 #. type: textblock
5287 #: ../examples/guestfs-recipes.pod:184
5288 msgid ""
5289 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5290 "a-virtual-machine-disk-image/#content"
5291 msgstr ""
5292
5293 #. type: textblock
5294 #: ../examples/guestfs-recipes.pod:186
5295 msgid ""
5296 "In the libguestfs source examples directory you will find the latest version "
5297 "of the C<virt-dhcp-address.c> program."
5298 msgstr ""
5299
5300 #. type: =head1
5301 #: ../examples/guestfs-recipes.pod:189
5302 msgid "Get the operating system product name string"
5303 msgstr ""
5304
5305 #. type: textblock
5306 #: ../examples/guestfs-recipes.pod:191
5307 msgid "Save the following script into a file called C<product-name.sh>:"
5308 msgstr ""
5309
5310 #. type: verbatim
5311 #: ../examples/guestfs-recipes.pod:193
5312 #, no-wrap
5313 msgid ""
5314 " #!/bin/sh -\n"
5315 " set -e\n"
5316 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5317 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5318 " guestfish --remote inspect-get-product-name \"$root\"\n"
5319 " guestfish --remote exit\n"
5320 "\n"
5321 msgstr ""
5322
5323 #. type: textblock
5324 #: ../examples/guestfs-recipes.pod:200
5325 msgid "Make the script executable and run it on a named guest:"
5326 msgstr ""
5327
5328 #. type: verbatim
5329 #: ../examples/guestfs-recipes.pod:202
5330 #, no-wrap
5331 msgid ""
5332 " # product-name.sh RHEL60x64\n"
5333 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5334 "\n"
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../examples/guestfs-recipes.pod:205
5339 msgid ""
5340 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5341 "C<xpath> command line tool or from your favourite programming language:"
5342 msgstr ""
5343
5344 #. type: verbatim
5345 #: ../examples/guestfs-recipes.pod:209
5346 #, no-wrap
5347 msgid ""
5348 " # virt-inspector RHEL60x64 > xml\n"
5349 " # xpath '//product_name' < xml\n"
5350 " Found 1 nodes:\n"
5351 " -- NODE --\n"
5352 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5353 "\n"
5354 msgstr ""
5355
5356 #. type: =head1
5357 #: ../examples/guestfs-recipes.pod:215
5358 msgid "Get the default boot kernel for a Linux VM"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../examples/guestfs-recipes.pod:217
5363 msgid ""
5364 "The link below contains a program to print the default boot kernel for a "
5365 "Linux VM."
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../examples/guestfs-recipes.pod:220
5370 msgid ""
5371 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5372 "kernel-for-a-vm/#content"
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../examples/guestfs-recipes.pod:222
5377 msgid ""
5378 "It uses Augeas, and the technique is generally applicable for many different "
5379 "tasks, such as:"
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../examples/guestfs-recipes.pod:229
5384 msgid "listing the user accounts in the guest"
5385 msgstr ""
5386
5387 #. type: textblock
5388 #: ../examples/guestfs-recipes.pod:233
5389 msgid "what repositories is it configured to use"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../examples/guestfs-recipes.pod:237
5394 msgid "what NTP servers does it connect to"
5395 msgstr ""
5396
5397 #. type: textblock
5398 #: ../examples/guestfs-recipes.pod:241
5399 msgid "what were the boot messages last time it booted"
5400 msgstr ""
5401
5402 #. type: textblock
5403 #: ../examples/guestfs-recipes.pod:245
5404 msgid "listing who was logged in recently"
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../examples/guestfs-recipes.pod:249
5409 msgid "http://augeas.net/"
5410 msgstr ""
5411
5412 #. type: =head1
5413 #: ../examples/guestfs-recipes.pod:251
5414 msgid "Install RPMs in a guest"
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../examples/guestfs-recipes.pod:253
5419 msgid ""
5420 "The link below contains a method to install RPMs in a guest.  In fact the "
5421 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5422 "installs them next time the guest is booted.  You could use this technique "
5423 "to install vital security updates in an offline guest."
5424 msgstr ""
5425
5426 #. type: textblock
5427 #: ../examples/guestfs-recipes.pod:259
5428 msgid ""
5429 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5430 msgstr ""
5431
5432 #. type: =head1
5433 #: ../examples/guestfs-recipes.pod:261
5434 msgid "List applications installed in a VM"
5435 msgstr ""
5436
5437 #. type: textblock
5438 #: ../examples/guestfs-recipes.pod:263
5439 msgid "Save the following to a file C<list-apps.sh>:"
5440 msgstr ""
5441
5442 #. type: verbatim
5443 #: ../examples/guestfs-recipes.pod:265
5444 #, no-wrap
5445 msgid ""
5446 " #!/bin/sh -\n"
5447 " set -e\n"
5448 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5449 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5450 " guestfish --remote inspect-list-applications \"$root\"\n"
5451 " guestfish --remote exit\n"
5452 "\n"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../examples/guestfs-recipes.pod:272
5457 msgid ""
5458 "Make the file executable and then you can run it on any named virtual "
5459 "machine:"
5460 msgstr ""
5461
5462 #. type: verbatim
5463 #: ../examples/guestfs-recipes.pod:275
5464 #, no-wrap
5465 msgid ""
5466 " # list-apps.sh WinGuest\n"
5467 " [0] = {\n"
5468 "   app_name: Mozilla Firefox (3.6.12)\n"
5469 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5470 "   app_epoch: 0\n"
5471 "   app_version: 3.6.12 (en-GB)\n"
5472 "   app_release:\n"
5473 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5474 "   app_trans_path:\n"
5475 "   app_publisher: Mozilla\n"
5476 "   app_url: http://www.mozilla.com/en-GB/\n"
5477 "   app_source_package:\n"
5478 "   app_summary:\n"
5479 "   app_description: Mozilla Firefox\n"
5480 " }\n"
5481 " [1] = {\n"
5482 "   app_name: VLC media player\n"
5483 "   app_display_name: VLC media player 1.1.5\n"
5484 "   app_epoch: 0\n"
5485 "   app_version: 1.1.5\n"
5486 "   app_release:\n"
5487 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5488 "   app_trans_path:\n"
5489 "   app_publisher: VideoLAN\n"
5490 "   app_url: http://www.videolan.org/\n"
5491 "   app_source_package:\n"
5492 "   app_summary:\n"
5493 "   app_description:\n"
5494 " }\n"
5495 "\n"
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../examples/guestfs-recipes.pod:305
5500 msgid ""
5501 "If you want to run the script on disk images (instead of libvirt virtual "
5502 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5503 ">."
5504 msgstr ""
5505
5506 #. type: =head1
5507 #: ../examples/guestfs-recipes.pod:309
5508 msgid "List files and directories in a VM"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../examples/guestfs-recipes.pod:311
5513 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5514 msgstr ""
5515
5516 #. type: verbatim
5517 #: ../examples/guestfs-recipes.pod:313
5518 #, no-wrap
5519 msgid ""
5520 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5521 "\n"
5522 msgstr ""
5523
5524 #. type: =head1
5525 #: ../examples/guestfs-recipes.pod:315
5526 msgid "List services in a Windows VM"
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../examples/guestfs-recipes.pod:317
5531 msgid ""
5532 "The link below contains a script that can be used to list out the services "
5533 "from a Windows VM, and whether those services run at boot time or are loaded "
5534 "on demand."
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../examples/guestfs-recipes.pod:321
5539 msgid ""
5540 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5541 "#content"
5542 msgstr ""
5543
5544 #. type: =head1
5545 #: ../examples/guestfs-recipes.pod:323
5546 msgid "Make a disk image sparse"
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../examples/guestfs-recipes.pod:325
5551 msgid ""
5552 "The link below contains some guides for making a disk image sparse (or "
5553 "reintroducing sparseness)."
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../examples/guestfs-recipes.pod:328
5558 msgid ""
5559 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5560 msgstr ""
5561
5562 #. type: =head1
5563 #: ../examples/guestfs-recipes.pod:330
5564 msgid "Monitor disk usage over time"
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../examples/guestfs-recipes.pod:332
5569 msgid ""
5570 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5571 "The link below contains a guide."
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../examples/guestfs-recipes.pod:335
5576 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5577 msgstr ""
5578
5579 #. type: =head1
5580 #: ../examples/guestfs-recipes.pod:337
5581 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5582 msgstr ""
5583
5584 #. type: textblock
5585 #: ../examples/guestfs-recipes.pod:339
5586 msgid ""
5587 "L<guestfish(1)> plus the tools described in the link below can be used to "
5588 "read out the Windows Event Log from any virtual machine running Windows "
5589 "Vista or a later version."
5590 msgstr ""
5591
5592 #. type: textblock
5593 #: ../examples/guestfs-recipes.pod:343
5594 msgid ""
5595 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5596 "guestfish/#content"
5597 msgstr ""
5598
5599 #. type: =head1
5600 #: ../examples/guestfs-recipes.pod:345
5601 msgid "Remove root password (Linux)"
5602 msgstr ""
5603
5604 #. type: textblock
5605 #: ../examples/guestfs-recipes.pod:347
5606 msgid ""
5607 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5608 "files.  One use is to remove the root password from a Linux guest:"
5609 msgstr ""
5610
5611 #. type: verbatim
5612 #: ../examples/guestfs-recipes.pod:350
5613 #, no-wrap
5614 msgid ""
5615 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5616 "\n"
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:352
5621 msgid "Remove Administrator password (Windows)"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:354
5626 msgid ""
5627 "The link below contains one technique for removing the Administrator "
5628 "password from a Windows VM, or to be more precise, it gives you a command "
5629 "prompt the next time you log in which you can use to bypass any security:"
5630 msgstr ""
5631
5632 #. type: textblock
5633 #: ../examples/guestfs-recipes.pod:359
5634 msgid ""
5635 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5636 "administrator-password-with-guestfish/"
5637 msgstr ""
5638
5639 #. type: =head1
5640 #: ../examples/guestfs-recipes.pod:361
5641 msgid "Unpack a live CD"
5642 msgstr ""
5643
5644 #. type: textblock
5645 #: ../examples/guestfs-recipes.pod:363
5646 msgid ""
5647 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5648 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5649 "layers, as outlined in the guide below."
5650 msgstr ""
5651
5652 #. type: textblock
5653 #: ../examples/guestfs-recipes.pod:367
5654 msgid ""
5655 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5656 "cd/#content"
5657 msgstr ""
5658
5659 #. type: =head1
5660 #: ../examples/guestfs-recipes.pod:369
5661 msgid "Uploading and downloading files"
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../examples/guestfs-recipes.pod:371
5666 msgid ""
5667 "The link below contains general tips on uploading (copying in)  and "
5668 "downloading (copying out) files from VMs."
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../examples/guestfs-recipes.pod:374
5673 msgid ""
5674 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5675 msgstr ""
5676
5677 #. type: =head1
5678 #: ../examples/guestfs-recipes.pod:376
5679 msgid "Use libguestfs tools on VMware ESX guests"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../examples/guestfs-recipes.pod:378
5684 msgid ""
5685 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5686 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-recipes.pod:382
5691 msgid ""
5692 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5693 "guests/#content"
5694 msgstr ""
5695
5696 #. type: textblock
5697 #: ../examples/guestfs-recipes.pod:386
5698 msgid ""
5699 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5700 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5701 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../examples/guestfs-recipes.pod:403
5706 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5707 msgstr ""
5708
5709 #. type: =head2
5710 #: ../fish/guestfish-actions.pod:1
5711 msgid "add-cdrom"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../fish/guestfish-actions.pod:3
5716 #, no-wrap
5717 msgid ""
5718 " add-cdrom filename\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5724 msgid "This function adds a virtual CD-ROM disk image to the guest."
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5729 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:15
5734 msgid ""
5735 "This call checks for the existence of C<filename>.  This stops you from "
5736 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5737 "and C<http:> URLs.  To specify those, use the general L</config> call "
5738 "instead."
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:22
5743 msgid ""
5744 "If you just want to add an ISO file (often you use this as an efficient way "
5745 "to transfer large files into the guest), then you should probably use L</add-"
5746 "drive-ro> instead."
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5751 #: ../fish/guestfish-actions.pod:182
5752 msgid ""
5753 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5754 "instead."
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5759 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5760 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5761 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5762 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5763 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5764 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5765 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5766 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5767 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5768 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5769 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5770 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5771 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5772 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5773 #: ../src/guestfs-actions.pod:8059
5774 msgid ""
5775 "Deprecated functions will not be removed from the API, but the fact that "
5776 "they are deprecated indicates that there are problems with correct use of "
5777 "these functions."
5778 msgstr ""
5779
5780 #. type: =head2
5781 #: ../fish/guestfish-actions.pod:35
5782 msgid "add-domain"
5783 msgstr ""
5784
5785 #. type: =head2
5786 #: ../fish/guestfish-actions.pod:37
5787 msgid "domain"
5788 msgstr ""
5789
5790 #. type: verbatim
5791 #: ../fish/guestfish-actions.pod:39
5792 #, no-wrap
5793 msgid ""
5794 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5795 "\n"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:41
5800 msgid ""
5801 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5802 "It works by connecting to libvirt, requesting the domain and domain XML from "
5803 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5808 msgid ""
5809 "The number of disks added is returned.  This operation is atomic: if an "
5810 "error is returned, then no disks are added."
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5815 msgid ""
5816 "This function does some minimal checks to make sure the libvirt domain is "
5817 "not running (unless C<readonly> is true).  In a future version we will try "
5818 "to acquire the libvirt lock on each disk."
5819 msgstr ""
5820
5821 #. type: textblock
5822 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5823 msgid ""
5824 "Disks must be accessible locally.  This often means that adding disks from a "
5825 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5826 "unless those disks are accessible via the same device path locally too."
5827 msgstr ""
5828
5829 #. type: textblock
5830 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5831 msgid ""
5832 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5833 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5834 "libvirt URI (or one set through an environment variable, see the libvirt "
5835 "documentation for full details)."
5836 msgstr ""
5837
5838 #. type: textblock
5839 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5840 msgid ""
5841 "The optional C<live> flag controls whether this call will try to connect to "
5842 "a running virtual machine C<guestfsd> process if it sees a suitable "
5843 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5844 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5845 "DAEMONS> for more information."
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5850 msgid ""
5851 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5852 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5853 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5854 "as usual."
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:76
5859 msgid ""
5860 "The other optional parameters are passed directly through to L</add-drive-"
5861 "opts>."
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5866 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5867 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5868 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5869 #: ../fish/guestfish-actions.pod:3522
5870 msgid ""
5871 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5872 msgstr ""
5873
5874 #. type: =head2
5875 #: ../fish/guestfish-actions.pod:81
5876 msgid "add-drive"
5877 msgstr ""
5878
5879 #. type: verbatim
5880 #: ../fish/guestfish-actions.pod:83
5881 #, no-wrap
5882 msgid ""
5883 " add-drive filename\n"
5884 "\n"
5885 msgstr ""
5886
5887 #. type: textblock
5888 #: ../fish/guestfish-actions.pod:85
5889 msgid ""
5890 "This function is the equivalent of calling L</add-drive-opts> with no "
5891 "optional parameters, so the disk is added writable, with the format being "
5892 "detected automatically."
5893 msgstr ""
5894
5895 #. type: textblock
5896 #: ../fish/guestfish-actions.pod:89
5897 msgid ""
5898 "Automatic detection of the format opens you up to a potential security hole "
5899 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5900 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5901 "you should think about replacing calls to this function with calls to L</add-"
5902 "drive-opts>, and specifying the format."
5903 msgstr ""
5904
5905 #. type: =head2
5906 #: ../fish/guestfish-actions.pod:96
5907 msgid "add-drive-opts"
5908 msgstr ""
5909
5910 #. type: =head2
5911 #: ../fish/guestfish-actions.pod:98
5912 msgid "add"
5913 msgstr ""
5914
5915 #. type: verbatim
5916 #: ../fish/guestfish-actions.pod:100
5917 #, no-wrap
5918 msgid ""
5919 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5920 "\n"
5921 msgstr ""
5922
5923 #. type: textblock
5924 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
5925 msgid ""
5926 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5927 "The first time you call this function, the disk appears as C</dev/sda>, the "
5928 "second time as C</dev/sdb>, and so on."
5929 msgstr ""
5930
5931 #. type: textblock
5932 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
5933 msgid ""
5934 "You don't necessarily need to be root when using libguestfs.  However you "
5935 "obviously do need sufficient permissions to access the filename for whatever "
5936 "operations you want to perform (ie. read access if you just want to read the "
5937 "image or write access if you want to modify the image)."
5938 msgstr ""
5939
5940 #. type: textblock
5941 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
5942 msgid "This call checks that C<filename> exists."
5943 msgstr ""
5944
5945 #. type: textblock
5946 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
5947 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
5948 msgid "The optional arguments are:"
5949 msgstr ""
5950
5951 #. type: =item
5952 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
5953 msgid "C<readonly>"
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
5958 msgid ""
5959 "If true then the image is treated as read-only.  Writes are still allowed, "
5960 "but they are stored in a temporary snapshot overlay which is discarded at "
5961 "the end.  The disk that you add is not modified."
5962 msgstr ""
5963
5964 #. type: =item
5965 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
5966 msgid "C<format>"
5967 msgstr ""
5968
5969 #. type: textblock
5970 #: ../fish/guestfish-actions.pod:127
5971 msgid ""
5972 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5973 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5974 "include C<raw> and C<qcow2>."
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
5979 msgid ""
5980 "Automatic detection of the format opens you up to a potential security hole "
5981 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5982 "RHBZ#642934.  Specifying the format closes this security hole."
5983 msgstr ""
5984
5985 #. type: =item
5986 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
5987 msgid "C<iface>"
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:138
5992 msgid ""
5993 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5994 "add-drive-with-if> call (q.v.)"
5995 msgstr ""
5996
5997 #. type: =item
5998 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
5999 msgid "C<name>"
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6004 msgid ""
6005 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6006 "a hint to the guest inspection process if it is available."
6007 msgstr ""
6008
6009 #. type: =head2
6010 #: ../fish/guestfish-actions.pod:150
6011 msgid "add-drive-ro"
6012 msgstr ""
6013
6014 #. type: =head2
6015 #: ../fish/guestfish-actions.pod:152
6016 msgid "add-ro"
6017 msgstr ""
6018
6019 #. type: verbatim
6020 #: ../fish/guestfish-actions.pod:154
6021 #, no-wrap
6022 msgid ""
6023 " add-drive-ro filename\n"
6024 "\n"
6025 msgstr ""
6026
6027 #. type: textblock
6028 #: ../fish/guestfish-actions.pod:156
6029 msgid ""
6030 "This function is the equivalent of calling L</add-drive-opts> with the "
6031 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6032 "is added read-only, with the format being detected automatically."
6033 msgstr ""
6034
6035 #. type: =head2
6036 #: ../fish/guestfish-actions.pod:161
6037 msgid "add-drive-ro-with-if"
6038 msgstr ""
6039
6040 #. type: verbatim
6041 #: ../fish/guestfish-actions.pod:163
6042 #, no-wrap
6043 msgid ""
6044 " add-drive-ro-with-if filename iface\n"
6045 "\n"
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:165
6050 msgid ""
6051 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6052 "interface emulation to use at run time."
6053 msgstr ""
6054
6055 #. type: =head2
6056 #: ../fish/guestfish-actions.pod:175
6057 msgid "add-drive-with-if"
6058 msgstr ""
6059
6060 #. type: verbatim
6061 #: ../fish/guestfish-actions.pod:177
6062 #, no-wrap
6063 msgid ""
6064 " add-drive-with-if filename iface\n"
6065 "\n"
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../fish/guestfish-actions.pod:179
6070 msgid ""
6071 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6072 "interface emulation to use at run time."
6073 msgstr ""
6074
6075 #. type: =head2
6076 #: ../fish/guestfish-actions.pod:189
6077 msgid "aug-clear"
6078 msgstr ""
6079
6080 #. type: verbatim
6081 #: ../fish/guestfish-actions.pod:191
6082 #, no-wrap
6083 msgid ""
6084 " aug-clear augpath\n"
6085 "\n"
6086 msgstr ""
6087
6088 #. type: textblock
6089 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6090 msgid ""
6091 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6092 "L<augtool(1)> C<clear> command."
6093 msgstr ""
6094
6095 #. type: =head2
6096 #: ../fish/guestfish-actions.pod:196
6097 msgid "aug-close"
6098 msgstr ""
6099
6100 #. type: verbatim
6101 #: ../fish/guestfish-actions.pod:198
6102 #, no-wrap
6103 msgid ""
6104 " aug-close\n"
6105 "\n"
6106 msgstr ""
6107
6108 #. type: textblock
6109 #: ../fish/guestfish-actions.pod:200
6110 msgid ""
6111 "Close the current Augeas handle and free up any resources used by it.  After "
6112 "calling this, you have to call L</aug-init> again before you can use any "
6113 "other Augeas functions."
6114 msgstr ""
6115
6116 #. type: =head2
6117 #: ../fish/guestfish-actions.pod:205
6118 msgid "aug-defnode"
6119 msgstr ""
6120
6121 #. type: verbatim
6122 #: ../fish/guestfish-actions.pod:207
6123 #, no-wrap
6124 msgid ""
6125 " aug-defnode name expr val\n"
6126 "\n"
6127 msgstr ""
6128
6129 #. type: textblock
6130 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6131 msgid ""
6132 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../fish/guestfish-actions.pod:212
6137 msgid ""
6138 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6139 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6140 "containing that single node."
6141 msgstr ""
6142
6143 #. type: textblock
6144 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6145 msgid ""
6146 "On success this returns a pair containing the number of nodes in the "
6147 "nodeset, and a boolean flag if a node was created."
6148 msgstr ""
6149
6150 #. type: =head2
6151 #: ../fish/guestfish-actions.pod:220
6152 msgid "aug-defvar"
6153 msgstr ""
6154
6155 #. type: verbatim
6156 #: ../fish/guestfish-actions.pod:222
6157 #, no-wrap
6158 msgid ""
6159 " aug-defvar name expr\n"
6160 "\n"
6161 msgstr ""
6162
6163 #. type: textblock
6164 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6165 msgid ""
6166 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6167 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6172 msgid ""
6173 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6174 "evaluates to something which is not a nodeset."
6175 msgstr ""
6176
6177 #. type: =head2
6178 #: ../fish/guestfish-actions.pod:231
6179 msgid "aug-get"
6180 msgstr ""
6181
6182 #. type: verbatim
6183 #: ../fish/guestfish-actions.pod:233
6184 #, no-wrap
6185 msgid ""
6186 " aug-get augpath\n"
6187 "\n"
6188 msgstr ""
6189
6190 #. type: textblock
6191 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6192 msgid ""
6193 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6194 "node, the C<value> is returned."
6195 msgstr ""
6196
6197 #. type: =head2
6198 #: ../fish/guestfish-actions.pod:238
6199 msgid "aug-init"
6200 msgstr ""
6201
6202 #. type: verbatim
6203 #: ../fish/guestfish-actions.pod:240
6204 #, no-wrap
6205 msgid ""
6206 " aug-init root flags\n"
6207 "\n"
6208 msgstr ""
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6212 msgid ""
6213 "Create a new Augeas handle for editing configuration files.  If there was "
6214 "any previous Augeas handle associated with this guestfs session, then it is "
6215 "closed."
6216 msgstr ""
6217
6218 #. type: textblock
6219 #: ../fish/guestfish-actions.pod:246
6220 msgid "You must call this before using any other L</aug-*> commands."
6221 msgstr ""
6222
6223 #. type: textblock
6224 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6225 msgid ""
6226 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6227 msgstr ""
6228
6229 #. type: textblock
6230 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6231 msgid ""
6232 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6233 "logical I<or> of the following integers:"
6234 msgstr ""
6235
6236 #. type: =item
6237 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6238 msgid "C<AUG_SAVE_BACKUP> = 1"
6239 msgstr ""
6240
6241 #. type: textblock
6242 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6243 msgid "Keep the original file with a C<.augsave> extension."
6244 msgstr ""
6245
6246 #. type: =item
6247 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6248 msgid "C<AUG_SAVE_NEWFILE> = 2"
6249 msgstr ""
6250
6251 #. type: textblock
6252 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6253 msgid ""
6254 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6255 "original.  Overrides C<AUG_SAVE_BACKUP>."
6256 msgstr ""
6257
6258 #. type: =item
6259 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6260 msgid "C<AUG_TYPE_CHECK> = 4"
6261 msgstr ""
6262
6263 #. type: textblock
6264 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6265 msgid "Typecheck lenses."
6266 msgstr ""
6267
6268 #. type: textblock
6269 #: ../fish/guestfish-actions.pod:271
6270 msgid ""
6271 "This option is only useful when debugging Augeas lenses.  Use of this option "
6272 "may require additional memory for the libguestfs appliance.  You may need to "
6273 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6274 msgstr ""
6275
6276 #. type: =item
6277 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6278 msgid "C<AUG_NO_STDINC> = 8"
6279 msgstr ""
6280
6281 #. type: textblock
6282 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6283 msgid "Do not use standard load path for modules."
6284 msgstr ""
6285
6286 #. type: =item
6287 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6288 msgid "C<AUG_SAVE_NOOP> = 16"
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6293 msgid "Make save a no-op, just record what would have been changed."
6294 msgstr ""
6295
6296 #. type: =item
6297 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6298 msgid "C<AUG_NO_LOAD> = 32"
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../fish/guestfish-actions.pod:286
6303 msgid "Do not load the tree in L</aug-init>."
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../fish/guestfish-actions.pod:290
6308 msgid "To close the handle, you can call L</aug-close>."
6309 msgstr ""
6310
6311 #. type: textblock
6312 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6313 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6314 msgstr ""
6315
6316 #. type: =head2
6317 #: ../fish/guestfish-actions.pod:294
6318 msgid "aug-insert"
6319 msgstr ""
6320
6321 #. type: verbatim
6322 #: ../fish/guestfish-actions.pod:296
6323 #, no-wrap
6324 msgid ""
6325 " aug-insert augpath label true|false\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6331 msgid ""
6332 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6333 "or after C<path> (depending on the boolean flag C<before>)."
6334 msgstr ""
6335
6336 #. type: textblock
6337 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6338 msgid ""
6339 "C<path> must match exactly one existing node in the tree, and C<label> must "
6340 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6341 msgstr ""
6342
6343 #. type: =head2
6344 #: ../fish/guestfish-actions.pod:306
6345 msgid "aug-load"
6346 msgstr ""
6347
6348 #. type: verbatim
6349 #: ../fish/guestfish-actions.pod:308
6350 #, no-wrap
6351 msgid ""
6352 " aug-load\n"
6353 "\n"
6354 msgstr ""
6355
6356 #. type: textblock
6357 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6358 msgid "Load files into the tree."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6363 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:315
6368 msgid "aug-ls"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:317
6373 #, no-wrap
6374 msgid ""
6375 " aug-ls augpath\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:319
6381 msgid ""
6382 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6383 "resulting nodes into alphabetical order."
6384 msgstr ""
6385
6386 #. type: =head2
6387 #: ../fish/guestfish-actions.pod:322
6388 msgid "aug-match"
6389 msgstr ""
6390
6391 #. type: verbatim
6392 #: ../fish/guestfish-actions.pod:324
6393 #, no-wrap
6394 msgid ""
6395 " aug-match augpath\n"
6396 "\n"
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6401 msgid ""
6402 "Returns a list of paths which match the path expression C<path>.  The "
6403 "returned paths are sufficiently qualified so that they match exactly one "
6404 "node in the current tree."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:330
6409 msgid "aug-mv"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:332
6414 #, no-wrap
6415 msgid ""
6416 " aug-mv src dest\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6422 msgid ""
6423 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6424 "C<dest> is overwritten if it exists."
6425 msgstr ""
6426
6427 #. type: =head2
6428 #: ../fish/guestfish-actions.pod:337
6429 msgid "aug-rm"
6430 msgstr ""
6431
6432 #. type: verbatim
6433 #: ../fish/guestfish-actions.pod:339
6434 #, no-wrap
6435 msgid ""
6436 " aug-rm augpath\n"
6437 "\n"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6442 msgid "Remove C<path> and all of its children."
6443 msgstr ""
6444
6445 #. type: textblock
6446 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6447 msgid "On success this returns the number of entries which were removed."
6448 msgstr ""
6449
6450 #. type: =head2
6451 #: ../fish/guestfish-actions.pod:345
6452 msgid "aug-save"
6453 msgstr ""
6454
6455 #. type: verbatim
6456 #: ../fish/guestfish-actions.pod:347
6457 #, no-wrap
6458 msgid ""
6459 " aug-save\n"
6460 "\n"
6461 msgstr ""
6462
6463 #. type: textblock
6464 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6465 msgid "This writes all pending changes to disk."
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:351
6470 msgid ""
6471 "The flags which were passed to L</aug-init> affect exactly how files are "
6472 "saved."
6473 msgstr ""
6474
6475 #. type: =head2
6476 #: ../fish/guestfish-actions.pod:354
6477 msgid "aug-set"
6478 msgstr ""
6479
6480 #. type: verbatim
6481 #: ../fish/guestfish-actions.pod:356
6482 #, no-wrap
6483 msgid ""
6484 " aug-set augpath val\n"
6485 "\n"
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6490 msgid "Set the value associated with C<path> to C<val>."
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:360
6495 msgid ""
6496 "In the Augeas API, it is possible to clear a node by setting the value to "
6497 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6498 "this call.  Instead you must use the L</aug-clear> call."
6499 msgstr ""
6500
6501 #. type: =head2
6502 #: ../fish/guestfish-actions.pod:365
6503 msgid "available"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../fish/guestfish-actions.pod:367
6508 #, no-wrap
6509 msgid ""
6510 " available 'groups ...'\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6516 msgid ""
6517 "This command is used to check the availability of some groups of "
6518 "functionality in the appliance, which not all builds of the libguestfs "
6519 "appliance will be able to provide."
6520 msgstr ""
6521
6522 #. type: textblock
6523 #: ../fish/guestfish-actions.pod:373
6524 msgid ""
6525 "The libguestfs groups, and the functions that those groups correspond to, "
6526 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6527 "runtime by calling L</available-all-groups>."
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6532 msgid ""
6533 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6534 "\"]> would check for the availability of the Linux inotify functions and "
6535 "Augeas (configuration file editing) functions."
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6540 msgid "The command returns no error if I<all> requested groups are available."
6541 msgstr ""
6542
6543 #. type: textblock
6544 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6545 msgid ""
6546 "It fails with an error if one or more of the requested groups is unavailable "
6547 "in the appliance."
6548 msgstr ""
6549
6550 #. type: textblock
6551 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6552 msgid ""
6553 "If an unknown group name is included in the list of groups then an error is "
6554 "always returned."
6555 msgstr ""
6556
6557 #. type: textblock
6558 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6559 msgid "I<Notes:>"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:397
6564 msgid "You must call L</launch> before calling this function."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6569 msgid ""
6570 "The reason is because we don't know what groups are supported by the "
6571 "appliance/daemon until it is running and can be queried."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6576 msgid ""
6577 "If a group of functions is available, this does not necessarily mean that "
6578 "they will work.  You still have to check for errors when calling individual "
6579 "API functions even if they are available."
6580 msgstr ""
6581
6582 #. type: textblock
6583 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6584 msgid ""
6585 "It is usually the job of distro packagers to build complete functionality "
6586 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6587 "with all requirements satisfied, will support everything."
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../fish/guestfish-actions.pod:419
6592 msgid ""
6593 "This call was added in version C<1.0.80>.  In previous versions of "
6594 "libguestfs all you could do would be to speculatively execute a command to "
6595 "find out if the daemon implemented it.  See also L</version>."
6596 msgstr ""
6597
6598 #. type: =head2
6599 #: ../fish/guestfish-actions.pod:426
6600 msgid "available-all-groups"
6601 msgstr ""
6602
6603 #. type: verbatim
6604 #: ../fish/guestfish-actions.pod:428
6605 #, no-wrap
6606 msgid ""
6607 " available-all-groups\n"
6608 "\n"
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:430
6613 msgid ""
6614 "This command returns a list of all optional groups that this daemon knows "
6615 "about.  Note this returns both supported and unsupported groups.  To find "
6616 "out which ones the daemon can actually support you have to call L</"
6617 "available> on each member of the returned list."
6618 msgstr ""
6619
6620 #. type: textblock
6621 #: ../fish/guestfish-actions.pod:436
6622 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6623 msgstr ""
6624
6625 #. type: =head2
6626 #: ../fish/guestfish-actions.pod:438
6627 msgid "base64-in"
6628 msgstr ""
6629
6630 #. type: verbatim
6631 #: ../fish/guestfish-actions.pod:440
6632 #, no-wrap
6633 msgid ""
6634 " base64-in (base64file|-) filename\n"
6635 "\n"
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6640 msgid ""
6641 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6646 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6647 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6648 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6649 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6650 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6651 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6652 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6653 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6654 msgstr ""
6655
6656 #. type: =head2
6657 #: ../fish/guestfish-actions.pod:447
6658 msgid "base64-out"
6659 msgstr ""
6660
6661 #. type: verbatim
6662 #: ../fish/guestfish-actions.pod:449
6663 #, no-wrap
6664 msgid ""
6665 " base64-out filename (base64file|-)\n"
6666 "\n"
6667 msgstr ""
6668
6669 #. type: textblock
6670 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6671 msgid ""
6672 "This command downloads the contents of C<filename>, writing it out to local "
6673 "file C<base64file> encoded as base64."
6674 msgstr ""
6675
6676 #. type: =head2
6677 #: ../fish/guestfish-actions.pod:456
6678 msgid "blockdev-flushbufs"
6679 msgstr ""
6680
6681 #. type: verbatim
6682 #: ../fish/guestfish-actions.pod:458
6683 #, no-wrap
6684 msgid ""
6685 " blockdev-flushbufs device\n"
6686 "\n"
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6691 msgid ""
6692 "This tells the kernel to flush internal buffers associated with C<device>."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6697 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6698 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6699 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6700 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6701 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6702 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6703 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6704 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6705 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6706 msgid "This uses the L<blockdev(8)> command."
6707 msgstr ""
6708
6709 #. type: =head2
6710 #: ../fish/guestfish-actions.pod:465
6711 msgid "blockdev-getbsz"
6712 msgstr ""
6713
6714 #. type: verbatim
6715 #: ../fish/guestfish-actions.pod:467
6716 #, no-wrap
6717 msgid ""
6718 " blockdev-getbsz device\n"
6719 "\n"
6720 msgstr ""
6721
6722 #. type: textblock
6723 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6724 msgid "This returns the block size of a device."
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6729 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6730 msgid ""
6731 "(Note this is different from both I<size in blocks> and I<filesystem block "
6732 "size>)."
6733 msgstr ""
6734
6735 #. type: =head2
6736 #: ../fish/guestfish-actions.pod:476
6737 msgid "blockdev-getro"
6738 msgstr ""
6739
6740 #. type: verbatim
6741 #: ../fish/guestfish-actions.pod:478
6742 #, no-wrap
6743 msgid ""
6744 " blockdev-getro device\n"
6745 "\n"
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6750 msgid ""
6751 "Returns a boolean indicating if the block device is read-only (true if read-"
6752 "only, false if not)."
6753 msgstr ""
6754
6755 #. type: =head2
6756 #: ../fish/guestfish-actions.pod:485
6757 msgid "blockdev-getsize64"
6758 msgstr ""
6759
6760 #. type: verbatim
6761 #: ../fish/guestfish-actions.pod:487
6762 #, no-wrap
6763 msgid ""
6764 " blockdev-getsize64 device\n"
6765 "\n"
6766 msgstr ""
6767
6768 #. type: textblock
6769 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6770 msgid "This returns the size of the device in bytes."
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:491
6775 msgid "See also L</blockdev-getsz>."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../fish/guestfish-actions.pod:495
6780 msgid "blockdev-getss"
6781 msgstr ""
6782
6783 #. type: verbatim
6784 #: ../fish/guestfish-actions.pod:497
6785 #, no-wrap
6786 msgid ""
6787 " blockdev-getss device\n"
6788 "\n"
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6793 msgid ""
6794 "This returns the size of sectors on a block device.  Usually 512, but can be "
6795 "larger for modern devices."
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:502
6800 msgid ""
6801 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6802 msgstr ""
6803
6804 #. type: =head2
6805 #: ../fish/guestfish-actions.pod:507
6806 msgid "blockdev-getsz"
6807 msgstr ""
6808
6809 #. type: verbatim
6810 #: ../fish/guestfish-actions.pod:509
6811 #, no-wrap
6812 msgid ""
6813 " blockdev-getsz device\n"
6814 "\n"
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6819 msgid ""
6820 "This returns the size of the device in units of 512-byte sectors (even if "
6821 "the sectorsize isn't 512 bytes ... weird)."
6822 msgstr ""
6823
6824 #. type: textblock
6825 #: ../fish/guestfish-actions.pod:514
6826 msgid ""
6827 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6828 "blockdev-getsize64> for the more useful I<size in bytes>."
6829 msgstr ""
6830
6831 #. type: =head2
6832 #: ../fish/guestfish-actions.pod:520
6833 msgid "blockdev-rereadpt"
6834 msgstr ""
6835
6836 #. type: verbatim
6837 #: ../fish/guestfish-actions.pod:522
6838 #, no-wrap
6839 msgid ""
6840 " blockdev-rereadpt device\n"
6841 "\n"
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6846 msgid "Reread the partition table on C<device>."
6847 msgstr ""
6848
6849 #. type: =head2
6850 #: ../fish/guestfish-actions.pod:528
6851 msgid "blockdev-setbsz"
6852 msgstr ""
6853
6854 #. type: verbatim
6855 #: ../fish/guestfish-actions.pod:530
6856 #, no-wrap
6857 msgid ""
6858 " blockdev-setbsz device blocksize\n"
6859 "\n"
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6864 msgid "This sets the block size of a device."
6865 msgstr ""
6866
6867 #. type: =head2
6868 #: ../fish/guestfish-actions.pod:539
6869 msgid "blockdev-setro"
6870 msgstr ""
6871
6872 #. type: verbatim
6873 #: ../fish/guestfish-actions.pod:541
6874 #, no-wrap
6875 msgid ""
6876 " blockdev-setro device\n"
6877 "\n"
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
6882 msgid "Sets the block device named C<device> to read-only."
6883 msgstr ""
6884
6885 #. type: =head2
6886 #: ../fish/guestfish-actions.pod:547
6887 msgid "blockdev-setrw"
6888 msgstr ""
6889
6890 #. type: verbatim
6891 #: ../fish/guestfish-actions.pod:549
6892 #, no-wrap
6893 msgid ""
6894 " blockdev-setrw device\n"
6895 "\n"
6896 msgstr ""
6897
6898 #. type: textblock
6899 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
6900 msgid "Sets the block device named C<device> to read-write."
6901 msgstr ""
6902
6903 #. type: =head2
6904 #: ../fish/guestfish-actions.pod:555
6905 msgid "btrfs-filesystem-resize"
6906 msgstr ""
6907
6908 #. type: verbatim
6909 #: ../fish/guestfish-actions.pod:557
6910 #, no-wrap
6911 msgid ""
6912 " btrfs-filesystem-resize mountpoint [size:..]\n"
6913 "\n"
6914 msgstr ""
6915
6916 #. type: textblock
6917 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
6918 msgid "This command resizes a btrfs filesystem."
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
6923 msgid ""
6924 "Note that unlike other resize calls, the filesystem has to be mounted and "
6925 "the parameter is the mountpoint not the device (this is a requirement of "
6926 "btrfs itself)."
6927 msgstr ""
6928
6929 #. type: textblock
6930 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
6931 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
6932 msgid "The optional parameters are:"
6933 msgstr ""
6934
6935 #. type: =item
6936 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
6937 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
6938 msgid "C<size>"
6939 msgstr ""
6940
6941 #. type: textblock
6942 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
6943 msgid ""
6944 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6945 "resized to the maximum size."
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
6950 msgid "See also L<btrfs(8)>."
6951 msgstr ""
6952
6953 #. type: =head2
6954 #: ../fish/guestfish-actions.pod:580
6955 msgid "case-sensitive-path"
6956 msgstr ""
6957
6958 #. type: verbatim
6959 #: ../fish/guestfish-actions.pod:582
6960 #, no-wrap
6961 msgid ""
6962 " case-sensitive-path path\n"
6963 "\n"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
6968 msgid ""
6969 "This can be used to resolve case insensitive paths on a filesystem which is "
6970 "case sensitive.  The use case is to resolve paths which you have read from "
6971 "Windows configuration files or the Windows Registry, to the true path."
6972 msgstr ""
6973
6974 #. type: textblock
6975 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
6976 msgid ""
6977 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6978 "(and probably others), which is that although the underlying filesystem is "
6979 "case-insensitive, the driver exports the filesystem to Linux as case-"
6980 "sensitive."
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
6985 msgid ""
6986 "One consequence of this is that special directories such as C<c:\\windows> "
6987 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6988 "precise details of how they were created.  In Windows itself this would not "
6989 "be a problem."
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
6994 msgid ""
6995 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6996 "#posixfilenames1>"
6997 msgstr ""
6998
6999 #. type: textblock
7000 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7001 msgid ""
7002 "This function resolves the true case of each element in the path and returns "
7003 "the case-sensitive path."
7004 msgstr ""
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:606
7008 msgid ""
7009 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7010 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7011 "the directories were originally created under Windows)."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7016 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7017 msgstr ""
7018
7019 #. type: textblock
7020 #: ../fish/guestfish-actions.pod:614
7021 msgid "See also L</realpath>."
7022 msgstr ""
7023
7024 #. type: =head2
7025 #: ../fish/guestfish-actions.pod:616
7026 msgid "cat"
7027 msgstr ""
7028
7029 #. type: verbatim
7030 #: ../fish/guestfish-actions.pod:618
7031 #, no-wrap
7032 msgid ""
7033 " cat path\n"
7034 "\n"
7035 msgstr ""
7036
7037 #. type: textblock
7038 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7039 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7040 msgid "Return the contents of the file named C<path>."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:622
7045 msgid ""
7046 "Note that this function cannot correctly handle binary files (specifically, "
7047 "files containing C<\\0> character which is treated as end of string).  For "
7048 "those you need to use the L</read-file> or L</download> functions which have "
7049 "a more complex interface."
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7054 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7055 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7056 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7057 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7058 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7059 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7060 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7061 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7062 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7063 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7064 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7065 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7066 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7067 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7068 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7069 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7070 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7071 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7072 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7073 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7074 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7075 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7076 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7077 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7078 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7079 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7080 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7081 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7082 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7083 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7084 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7085 msgid ""
7086 "Because of the message protocol, there is a transfer limit of somewhere "
7087 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7088 msgstr ""
7089
7090 #. type: =head2
7091 #: ../fish/guestfish-actions.pod:630
7092 msgid "checksum"
7093 msgstr ""
7094
7095 #. type: verbatim
7096 #: ../fish/guestfish-actions.pod:632
7097 #, no-wrap
7098 msgid ""
7099 " checksum csumtype path\n"
7100 "\n"
7101 msgstr ""
7102
7103 #. type: textblock
7104 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7105 msgid ""
7106 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7107 msgstr ""
7108
7109 #. type: textblock
7110 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7111 msgid ""
7112 "The type of checksum to compute is given by the C<csumtype> parameter which "
7113 "must have one of the following values:"
7114 msgstr ""
7115
7116 #. type: =item
7117 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7118 msgid "C<crc>"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7123 msgid ""
7124 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7125 "C<cksum> command."
7126 msgstr ""
7127
7128 #. type: =item
7129 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7130 msgid "C<md5>"
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7135 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7136 msgstr ""
7137
7138 #. type: =item
7139 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7140 msgid "C<sha1>"
7141 msgstr ""
7142
7143 #. type: textblock
7144 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7145 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7146 msgstr ""
7147
7148 #. type: =item
7149 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7150 msgid "C<sha224>"
7151 msgstr ""
7152
7153 #. type: textblock
7154 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7155 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7156 msgstr ""
7157
7158 #. type: =item
7159 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7160 msgid "C<sha256>"
7161 msgstr ""
7162
7163 #. type: textblock
7164 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7165 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7166 msgstr ""
7167
7168 #. type: =item
7169 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7170 msgid "C<sha384>"
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7175 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7176 msgstr ""
7177
7178 #. type: =item
7179 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7180 msgid "C<sha512>"
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7185 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7186 msgstr ""
7187
7188 #. type: textblock
7189 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7190 msgid "The checksum is returned as a printable string."
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:675
7195 msgid "To get the checksum for a device, use L</checksum-device>."
7196 msgstr ""
7197
7198 #. type: textblock
7199 #: ../fish/guestfish-actions.pod:677
7200 msgid "To get the checksums for many files, use L</checksums-out>."
7201 msgstr ""
7202
7203 #. type: =head2
7204 #: ../fish/guestfish-actions.pod:679
7205 msgid "checksum-device"
7206 msgstr ""
7207
7208 #. type: verbatim
7209 #: ../fish/guestfish-actions.pod:681
7210 #, no-wrap
7211 msgid ""
7212 " checksum-device csumtype device\n"
7213 "\n"
7214 msgstr ""
7215
7216 #. type: textblock
7217 #: ../fish/guestfish-actions.pod:683
7218 msgid ""
7219 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7220 "device named C<device>.  For the types of checksums supported see the L</"
7221 "checksum> command."
7222 msgstr ""
7223
7224 #. type: =head2
7225 #: ../fish/guestfish-actions.pod:687
7226 msgid "checksums-out"
7227 msgstr ""
7228
7229 #. type: verbatim
7230 #: ../fish/guestfish-actions.pod:689
7231 #, no-wrap
7232 msgid ""
7233 " checksums-out csumtype directory (sumsfile|-)\n"
7234 "\n"
7235 msgstr ""
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7239 msgid ""
7240 "This command computes the checksums of all regular files in C<directory> and "
7241 "then emits a list of those checksums to the local output file C<sumsfile>."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7246 msgid ""
7247 "This can be used for verifying the integrity of a virtual machine.  However "
7248 "to be properly secure you should pay attention to the output of the checksum "
7249 "command (it uses the ones from GNU coreutils).  In particular when the "
7250 "filename is not printable, coreutils uses a special backslash syntax.  For "
7251 "more information, see the GNU coreutils info file."
7252 msgstr ""
7253
7254 #. type: =head2
7255 #: ../fish/guestfish-actions.pod:705
7256 msgid "chmod"
7257 msgstr ""
7258
7259 #. type: verbatim
7260 #: ../fish/guestfish-actions.pod:707
7261 #, no-wrap
7262 msgid ""
7263 " chmod mode path\n"
7264 "\n"
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7269 msgid ""
7270 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7271 "supported."
7272 msgstr ""
7273
7274 #. type: textblock
7275 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7276 msgid ""
7277 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7278 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7279 "C<700>."
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7284 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7285 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7286 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7287 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7288 msgid "The mode actually set is affected by the umask."
7289 msgstr ""
7290
7291 #. type: =head2
7292 #: ../fish/guestfish-actions.pod:718
7293 msgid "chown"
7294 msgstr ""
7295
7296 #. type: verbatim
7297 #: ../fish/guestfish-actions.pod:720
7298 #, no-wrap
7299 msgid ""
7300 " chown owner group path\n"
7301 "\n"
7302 msgstr ""
7303
7304 #. type: textblock
7305 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7306 msgid "Change the file owner to C<owner> and group to C<group>."
7307 msgstr ""
7308
7309 #. type: textblock
7310 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7311 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7312 msgid ""
7313 "Only numeric uid and gid are supported.  If you want to use names, you will "
7314 "need to locate and parse the password file yourself (Augeas support makes "
7315 "this relatively easy)."
7316 msgstr ""
7317
7318 #. type: =head2
7319 #: ../fish/guestfish-actions.pod:728
7320 msgid "command"
7321 msgstr ""
7322
7323 #. type: verbatim
7324 #: ../fish/guestfish-actions.pod:730
7325 #, no-wrap
7326 msgid ""
7327 " command 'arguments ...'\n"
7328 "\n"
7329 msgstr ""
7330
7331 #. type: textblock
7332 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7333 msgid ""
7334 "This call runs a command from the guest filesystem.  The filesystem must be "
7335 "mounted, and must contain a compatible operating system (ie. something "
7336 "Linux, with the same or compatible processor architecture)."
7337 msgstr ""
7338
7339 #. type: textblock
7340 #: ../fish/guestfish-actions.pod:737
7341 msgid ""
7342 "The single parameter is an argv-style list of arguments.  The first element "
7343 "is the name of the program to run.  Subsequent elements are parameters.  The "
7344 "list must be non-empty (ie. must contain a program name).  Note that the "
7345 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7350 msgid "The return value is anything printed to I<stdout> by the command."
7351 msgstr ""
7352
7353 #. type: textblock
7354 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7355 msgid ""
7356 "If the command returns a non-zero exit status, then this function returns an "
7357 "error message.  The error message string is the content of I<stderr> from "
7358 "the command."
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7363 msgid ""
7364 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7365 "bin>.  If you require a program from another location, you should provide "
7366 "the full path in the first parameter."
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7371 msgid ""
7372 "Shared libraries and data files required by the program must be available on "
7373 "filesystems which are mounted in the correct places.  It is the caller's "
7374 "responsibility to ensure all filesystems that are needed are mounted at the "
7375 "right locations."
7376 msgstr ""
7377
7378 #. type: =head2
7379 #: ../fish/guestfish-actions.pod:765
7380 msgid "command-lines"
7381 msgstr ""
7382
7383 #. type: verbatim
7384 #: ../fish/guestfish-actions.pod:767
7385 #, no-wrap
7386 msgid ""
7387 " command-lines 'arguments ...'\n"
7388 "\n"
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:769
7393 msgid ""
7394 "This is the same as L</command>, but splits the result into a list of lines."
7395 msgstr ""
7396
7397 #. type: textblock
7398 #: ../fish/guestfish-actions.pod:772
7399 msgid "See also: L</sh-lines>"
7400 msgstr ""
7401
7402 #. type: =head2
7403 #: ../fish/guestfish-actions.pod:777
7404 msgid "compress-device-out"
7405 msgstr ""
7406
7407 #. type: verbatim
7408 #: ../fish/guestfish-actions.pod:779
7409 #, no-wrap
7410 msgid ""
7411 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7412 "\n"
7413 msgstr ""
7414
7415 #. type: textblock
7416 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7417 msgid ""
7418 "This command compresses C<device> and writes it out to the local file "
7419 "C<zdevice>."
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:784
7424 msgid ""
7425 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7426 "compress-out>."
7427 msgstr ""
7428
7429 #. type: =head2
7430 #: ../fish/guestfish-actions.pod:791
7431 msgid "compress-out"
7432 msgstr ""
7433
7434 #. type: verbatim
7435 #: ../fish/guestfish-actions.pod:793
7436 #, no-wrap
7437 msgid ""
7438 " compress-out ctype file (zfile|-) [level:..]\n"
7439 "\n"
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7444 msgid ""
7445 "This command compresses C<file> and writes it out to the local file C<zfile>."
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7450 msgid ""
7451 "The compression program used is controlled by the C<ctype> parameter.  "
7452 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7453 "Some compression types may not be supported by particular builds of "
7454 "libguestfs, in which case you will get an error containing the substring "
7455 "\"not supported\"."
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7460 msgid ""
7461 "The optional C<level> parameter controls compression level.  The meaning and "
7462 "default for this parameter depends on the compression program being used."
7463 msgstr ""
7464
7465 #. type: =head2
7466 #: ../fish/guestfish-actions.pod:812
7467 msgid "config"
7468 msgstr ""
7469
7470 #. type: verbatim
7471 #: ../fish/guestfish-actions.pod:814
7472 #, no-wrap
7473 msgid ""
7474 " config qemuparam qemuvalue\n"
7475 "\n"
7476 msgstr ""
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7480 msgid ""
7481 "This can be used to add arbitrary qemu command line parameters of the form "
7482 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7483 "setting some parameters which would interfere with parameters that we use."
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7488 msgid "The first character of C<param> string must be a C<-> (dash)."
7489 msgstr ""
7490
7491 #. type: textblock
7492 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7493 msgid "C<value> can be NULL."
7494 msgstr ""
7495
7496 #. type: =head2
7497 #: ../fish/guestfish-actions.pod:825
7498 msgid "copy-size"
7499 msgstr ""
7500
7501 #. type: verbatim
7502 #: ../fish/guestfish-actions.pod:827
7503 #, no-wrap
7504 msgid ""
7505 " copy-size src dest size\n"
7506 "\n"
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7511 msgid ""
7512 "This command copies exactly C<size> bytes from one source device or file "
7513 "C<src> to another destination device or file C<dest>."
7514 msgstr ""
7515
7516 #. type: textblock
7517 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7518 msgid ""
7519 "Note this will fail if the source is too short or if the destination is not "
7520 "large enough."
7521 msgstr ""
7522
7523 #. type: =head2
7524 #: ../fish/guestfish-actions.pod:835
7525 msgid "cp"
7526 msgstr ""
7527
7528 #. type: verbatim
7529 #: ../fish/guestfish-actions.pod:837
7530 #, no-wrap
7531 msgid ""
7532 " cp src dest\n"
7533 "\n"
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7538 msgid ""
7539 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7540 "destination filename or destination directory."
7541 msgstr ""
7542
7543 #. type: =head2
7544 #: ../fish/guestfish-actions.pod:842
7545 msgid "cp-a"
7546 msgstr ""
7547
7548 #. type: verbatim
7549 #: ../fish/guestfish-actions.pod:844
7550 #, no-wrap
7551 msgid ""
7552 " cp-a src dest\n"
7553 "\n"
7554 msgstr ""
7555
7556 #. type: textblock
7557 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7558 msgid ""
7559 "This copies a file or directory from C<src> to C<dest> recursively using the "
7560 "C<cp -a> command."
7561 msgstr ""
7562
7563 #. type: =head2
7564 #: ../fish/guestfish-actions.pod:849
7565 msgid "dd"
7566 msgstr ""
7567
7568 #. type: verbatim
7569 #: ../fish/guestfish-actions.pod:851
7570 #, no-wrap
7571 msgid ""
7572 " dd src dest\n"
7573 "\n"
7574 msgstr ""
7575
7576 #. type: textblock
7577 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7578 msgid ""
7579 "This command copies from one source device or file C<src> to another "
7580 "destination device or file C<dest>.  Normally you would use this to copy to "
7581 "or from a device or partition, for example to duplicate a filesystem."
7582 msgstr ""
7583
7584 #. type: textblock
7585 #: ../fish/guestfish-actions.pod:858
7586 msgid ""
7587 "If the destination is a device, it must be as large or larger than the "
7588 "source file or device, otherwise the copy will fail.  This command cannot do "
7589 "partial copies (see L</copy-size>)."
7590 msgstr ""
7591
7592 #. type: =head2
7593 #: ../fish/guestfish-actions.pod:862
7594 msgid "df"
7595 msgstr ""
7596
7597 #. type: verbatim
7598 #: ../fish/guestfish-actions.pod:864
7599 #, no-wrap
7600 msgid ""
7601 " df\n"
7602 "\n"
7603 msgstr ""
7604
7605 #. type: textblock
7606 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7607 msgid "This command runs the C<df> command to report disk space used."
7608 msgstr ""
7609
7610 #. type: textblock
7611 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7612 msgid ""
7613 "This command is mostly useful for interactive sessions.  It is I<not> "
7614 "intended that you try to parse the output string.  Use L</statvfs> from "
7615 "programs."
7616 msgstr ""
7617
7618 #. type: =head2
7619 #: ../fish/guestfish-actions.pod:872
7620 msgid "df-h"
7621 msgstr ""
7622
7623 #. type: verbatim
7624 #: ../fish/guestfish-actions.pod:874
7625 #, no-wrap
7626 msgid ""
7627 " df-h\n"
7628 "\n"
7629 msgstr ""
7630
7631 #. type: textblock
7632 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7633 msgid ""
7634 "This command runs the C<df -h> command to report disk space used in human-"
7635 "readable format."
7636 msgstr ""
7637
7638 #. type: =head2
7639 #: ../fish/guestfish-actions.pod:883
7640 msgid "dmesg"
7641 msgstr ""
7642
7643 #. type: verbatim
7644 #: ../fish/guestfish-actions.pod:885
7645 #, no-wrap
7646 msgid ""
7647 " dmesg\n"
7648 "\n"
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7653 msgid ""
7654 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7655 "This is sometimes useful for extended debugging of problems."
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:891
7660 msgid ""
7661 "Another way to get the same information is to enable verbose messages with "
7662 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7663 "before running the program."
7664 msgstr ""
7665
7666 #. type: =head2
7667 #: ../fish/guestfish-actions.pod:896
7668 msgid "download"
7669 msgstr ""
7670
7671 #. type: verbatim
7672 #: ../fish/guestfish-actions.pod:898
7673 #, no-wrap
7674 msgid ""
7675 " download remotefilename (filename|-)\n"
7676 "\n"
7677 msgstr ""
7678
7679 #. type: textblock
7680 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7681 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7682 msgid ""
7683 "Download file C<remotefilename> and save it as C<filename> on the local "
7684 "machine."
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7689 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7690 msgid "C<filename> can also be a named pipe."
7691 msgstr ""
7692
7693 #. type: textblock
7694 #: ../fish/guestfish-actions.pod:905
7695 msgid "See also L</upload>, L</cat>."
7696 msgstr ""
7697
7698 #. type: =head2
7699 #: ../fish/guestfish-actions.pod:909
7700 msgid "download-offset"
7701 msgstr ""
7702
7703 #. type: verbatim
7704 #: ../fish/guestfish-actions.pod:911
7705 #, no-wrap
7706 msgid ""
7707 " download-offset remotefilename (filename|-) offset size\n"
7708 "\n"
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7713 msgid ""
7714 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7715 "region must be within the file or device)."
7716 msgstr ""
7717
7718 #. type: textblock
7719 #: ../fish/guestfish-actions.pod:919
7720 msgid ""
7721 "Note that there is no limit on the amount of data that can be downloaded "
7722 "with this call, unlike with L</pread>, and this call always reads the full "
7723 "amount unless an error occurs."
7724 msgstr ""
7725
7726 #. type: textblock
7727 #: ../fish/guestfish-actions.pod:924
7728 msgid "See also L</download>, L</pread>."
7729 msgstr ""
7730
7731 #. type: =head2
7732 #: ../fish/guestfish-actions.pod:928
7733 msgid "drop-caches"
7734 msgstr ""
7735
7736 #. type: verbatim
7737 #: ../fish/guestfish-actions.pod:930
7738 #, no-wrap
7739 msgid ""
7740 " drop-caches whattodrop\n"
7741 "\n"
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7746 msgid ""
7747 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7748 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7749 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7750 msgstr ""
7751
7752 #. type: textblock
7753 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7754 msgid "Setting C<whattodrop> to 3 should drop everything."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7759 msgid ""
7760 "This automatically calls L<sync(2)> before the operation, so that the "
7761 "maximum guest memory is freed."
7762 msgstr ""
7763
7764 #. type: =head2
7765 #: ../fish/guestfish-actions.pod:942
7766 msgid "du"
7767 msgstr ""
7768
7769 #. type: verbatim
7770 #: ../fish/guestfish-actions.pod:944
7771 #, no-wrap
7772 msgid ""
7773 " du path\n"
7774 "\n"
7775 msgstr ""
7776
7777 #. type: textblock
7778 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7779 msgid ""
7780 "This command runs the C<du -s> command to estimate file space usage for "
7781 "C<path>."
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7786 msgid ""
7787 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7788 "estimate includes the contents of the directory and all subdirectories "
7789 "(recursively)."
7790 msgstr ""
7791
7792 #. type: textblock
7793 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7794 msgid ""
7795 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7796 msgstr ""
7797
7798 #. type: =head2
7799 #: ../fish/guestfish-actions.pod:956
7800 msgid "e2fsck-f"
7801 msgstr ""
7802
7803 #. type: verbatim
7804 #: ../fish/guestfish-actions.pod:958
7805 #, no-wrap
7806 msgid ""
7807 " e2fsck-f device\n"
7808 "\n"
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7813 msgid ""
7814 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7815 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7816 "clean (I<-f>)."
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:964
7821 msgid ""
7822 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7823 "should use L</fsck>."
7824 msgstr ""
7825
7826 #. type: =head2
7827 #: ../fish/guestfish-actions.pod:967
7828 msgid "echo-daemon"
7829 msgstr ""
7830
7831 #. type: verbatim
7832 #: ../fish/guestfish-actions.pod:969
7833 #, no-wrap
7834 msgid ""
7835 " echo-daemon 'words ...'\n"
7836 "\n"
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7841 msgid ""
7842 "This command concatenates the list of C<words> passed with single spaces "
7843 "between them and returns the resulting string."
7844 msgstr ""
7845
7846 #. type: textblock
7847 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7848 msgid "You can use this command to test the connection through to the daemon."
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:976
7853 msgid "See also L</ping-daemon>."
7854 msgstr ""
7855
7856 #. type: =head2
7857 #: ../fish/guestfish-actions.pod:978
7858 msgid "egrep"
7859 msgstr ""
7860
7861 #. type: verbatim
7862 #: ../fish/guestfish-actions.pod:980
7863 #, no-wrap
7864 msgid ""
7865 " egrep regex path\n"
7866 "\n"
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
7871 msgid ""
7872 "This calls the external C<egrep> program and returns the matching lines."
7873 msgstr ""
7874
7875 #. type: =head2
7876 #: ../fish/guestfish-actions.pod:988
7877 msgid "egrepi"
7878 msgstr ""
7879
7880 #. type: verbatim
7881 #: ../fish/guestfish-actions.pod:990
7882 #, no-wrap
7883 msgid ""
7884 " egrepi regex path\n"
7885 "\n"
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
7890 msgid ""
7891 "This calls the external C<egrep -i> program and returns the matching lines."
7892 msgstr ""
7893
7894 #. type: =head2
7895 #: ../fish/guestfish-actions.pod:998
7896 msgid "equal"
7897 msgstr ""
7898
7899 #. type: verbatim
7900 #: ../fish/guestfish-actions.pod:1000
7901 #, no-wrap
7902 msgid ""
7903 " equal file1 file2\n"
7904 "\n"
7905 msgstr ""
7906
7907 #. type: textblock
7908 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
7909 msgid ""
7910 "This compares the two files C<file1> and C<file2> and returns true if their "
7911 "content is exactly equal, or false otherwise."
7912 msgstr ""
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
7916 msgid "The external L<cmp(1)> program is used for the comparison."
7917 msgstr ""
7918
7919 #. type: =head2
7920 #: ../fish/guestfish-actions.pod:1007
7921 msgid "exists"
7922 msgstr ""
7923
7924 #. type: verbatim
7925 #: ../fish/guestfish-actions.pod:1009
7926 #, no-wrap
7927 msgid ""
7928 " exists path\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
7934 msgid ""
7935 "This returns C<true> if and only if there is a file, directory (or anything) "
7936 "with the given C<path> name."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:1014
7941 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7942 msgstr ""
7943
7944 #. type: =head2
7945 #: ../fish/guestfish-actions.pod:1016
7946 msgid "fallocate"
7947 msgstr ""
7948
7949 #. type: verbatim
7950 #: ../fish/guestfish-actions.pod:1018
7951 #, no-wrap
7952 msgid ""
7953 " fallocate path len\n"
7954 "\n"
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
7959 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
7960 msgid ""
7961 "This command preallocates a file (containing zero bytes) named C<path> of "
7962 "size C<len> bytes.  If the file exists already, it is overwritten."
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
7967 msgid ""
7968 "Do not confuse this with the guestfish-specific C<alloc> command which "
7969 "allocates a file in the host and attaches it as a device."
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../fish/guestfish-actions.pod:1028
7974 msgid ""
7975 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7976 "instead."
7977 msgstr ""
7978
7979 #. type: =head2
7980 #: ../fish/guestfish-actions.pod:1035
7981 msgid "fallocate64"
7982 msgstr ""
7983
7984 #. type: verbatim
7985 #: ../fish/guestfish-actions.pod:1037
7986 #, no-wrap
7987 msgid ""
7988 " fallocate64 path len\n"
7989 "\n"
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1043
7994 msgid ""
7995 "Note that this call allocates disk blocks for the file.  To create a sparse "
7996 "file use L</truncate-size> instead."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1046
8001 msgid ""
8002 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8003 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8004 "maximum size of files created through that call to 1GB."
8005 msgstr ""
8006
8007 #. type: textblock
8008 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8009 msgid ""
8010 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8011 "commands which create a file in the host and attach it as a device."
8012 msgstr ""
8013
8014 #. type: =head2
8015 #: ../fish/guestfish-actions.pod:1055
8016 msgid "fgrep"
8017 msgstr ""
8018
8019 #. type: verbatim
8020 #: ../fish/guestfish-actions.pod:1057
8021 #, no-wrap
8022 msgid ""
8023 " fgrep pattern path\n"
8024 "\n"
8025 msgstr ""
8026
8027 #. type: textblock
8028 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8029 msgid ""
8030 "This calls the external C<fgrep> program and returns the matching lines."
8031 msgstr ""
8032
8033 #. type: =head2
8034 #: ../fish/guestfish-actions.pod:1065
8035 msgid "fgrepi"
8036 msgstr ""
8037
8038 #. type: verbatim
8039 #: ../fish/guestfish-actions.pod:1067
8040 #, no-wrap
8041 msgid ""
8042 " fgrepi pattern path\n"
8043 "\n"
8044 msgstr ""
8045
8046 #. type: textblock
8047 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8048 msgid ""
8049 "This calls the external C<fgrep -i> program and returns the matching lines."
8050 msgstr ""
8051
8052 #. type: =head2
8053 #: ../fish/guestfish-actions.pod:1075
8054 msgid "file"
8055 msgstr ""
8056
8057 #. type: verbatim
8058 #: ../fish/guestfish-actions.pod:1077
8059 #, no-wrap
8060 msgid ""
8061 " file path\n"
8062 "\n"
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8067 msgid ""
8068 "This call uses the standard L<file(1)> command to determine the type or "
8069 "contents of the file."
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8074 msgid ""
8075 "This call will also transparently look inside various types of compressed "
8076 "file."
8077 msgstr ""
8078
8079 #. type: textblock
8080 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8081 msgid ""
8082 "The exact command which runs is C<file -zb path>.  Note in particular that "
8083 "the filename is not prepended to the output (the I<-b> option)."
8084 msgstr ""
8085
8086 #. type: textblock
8087 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8088 msgid ""
8089 "The output depends on the output of the underlying L<file(1)> command and it "
8090 "can change in future in ways beyond our control.  In other words, the output "
8091 "is not guaranteed by the ABI."
8092 msgstr ""
8093
8094 #. type: textblock
8095 #: ../fish/guestfish-actions.pod:1093
8096 msgid ""
8097 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8098 "(etc), L</is-zero>."
8099 msgstr ""
8100
8101 #. type: =head2
8102 #: ../fish/guestfish-actions.pod:1096
8103 msgid "file-architecture"
8104 msgstr ""
8105
8106 #. type: verbatim
8107 #: ../fish/guestfish-actions.pod:1098
8108 #, no-wrap
8109 msgid ""
8110 " file-architecture filename\n"
8111 "\n"
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8116 msgid ""
8117 "This detects the architecture of the binary C<filename>, and returns it if "
8118 "known."
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8123 msgid "Currently defined architectures are:"
8124 msgstr ""
8125
8126 #. type: =item
8127 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8128 msgid "\"i386\""
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8133 msgid ""
8134 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8135 "irrespective of the precise processor requirements of the binary."
8136 msgstr ""
8137
8138 #. type: =item
8139 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8140 msgid "\"x86_64\""
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8145 msgid "64 bit x86-64."
8146 msgstr ""
8147
8148 #. type: =item
8149 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8150 msgid "\"sparc\""
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8155 msgid "32 bit SPARC."
8156 msgstr ""
8157
8158 #. type: =item
8159 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8160 msgid "\"sparc64\""
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8165 msgid "64 bit SPARC V9 and above."
8166 msgstr ""
8167
8168 #. type: =item
8169 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8170 msgid "\"ia64\""
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8175 msgid "Intel Itanium."
8176 msgstr ""
8177
8178 #. type: =item
8179 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8180 msgid "\"ppc\""
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8185 msgid "32 bit Power PC."
8186 msgstr ""
8187
8188 #. type: =item
8189 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8190 msgid "\"ppc64\""
8191 msgstr ""
8192
8193 #. type: textblock
8194 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8195 msgid "64 bit Power PC."
8196 msgstr ""
8197
8198 #. type: textblock
8199 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8200 msgid "Libguestfs may return other architecture strings in future."
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8205 msgid "The function works on at least the following types of files:"
8206 msgstr ""
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8210 msgid "many types of Un*x and Linux binary"
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8215 msgid "many types of Un*x and Linux shared library"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8220 msgid "Windows Win32 and Win64 binaries"
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8225 msgid "Windows Win32 and Win64 DLLs"
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8230 msgid "Win32 binaries and DLLs return C<i386>."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8235 msgid "Win64 binaries and DLLs return C<x86_64>."
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8240 msgid "Linux kernel modules"
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8245 msgid "Linux new-style initrd images"
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8250 msgid "some non-x86 Linux vmlinuz kernels"
8251 msgstr ""
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8255 msgid "What it can't do currently:"
8256 msgstr ""
8257
8258 #. type: textblock
8259 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8260 msgid "static libraries (libfoo.a)"
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8265 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8266 msgstr ""
8267
8268 #. type: textblock
8269 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8270 msgid "x86 Linux vmlinuz kernels"
8271 msgstr ""
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8275 msgid ""
8276 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8277 "compressed code, and are horribly hard to unpack.  If you want to find the "
8278 "architecture of a kernel, use the architecture of the associated initrd or "
8279 "kernel module(s) instead."
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../fish/guestfish-actions.pod:1201
8284 msgid "filesize"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../fish/guestfish-actions.pod:1203
8289 #, no-wrap
8290 msgid ""
8291 " filesize file\n"
8292 "\n"
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8297 msgid "This command returns the size of C<file> in bytes."
8298 msgstr ""
8299
8300 #. type: textblock
8301 #: ../fish/guestfish-actions.pod:1207
8302 msgid ""
8303 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8304 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../fish/guestfish-actions.pod:1211
8309 msgid "fill"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../fish/guestfish-actions.pod:1213
8314 #, no-wrap
8315 msgid ""
8316 " fill c len path\n"
8317 "\n"
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8322 msgid ""
8323 "This command creates a new file called C<path>.  The initial content of the "
8324 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8325 "[0..255]>."
8326 msgstr ""
8327
8328 #. type: textblock
8329 #: ../fish/guestfish-actions.pod:1219
8330 msgid ""
8331 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8332 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8333 "L</fill-pattern>."
8334 msgstr ""
8335
8336 #. type: =head2
8337 #: ../fish/guestfish-actions.pod:1224
8338 msgid "fill-pattern"
8339 msgstr ""
8340
8341 #. type: verbatim
8342 #: ../fish/guestfish-actions.pod:1226
8343 #, no-wrap
8344 msgid ""
8345 " fill-pattern pattern len path\n"
8346 "\n"
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:1228
8351 msgid ""
8352 "This function is like L</fill> except that it creates a new file of length "
8353 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8354 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8355 "bytes."
8356 msgstr ""
8357
8358 #. type: =head2
8359 #: ../fish/guestfish-actions.pod:1233
8360 msgid "find"
8361 msgstr ""
8362
8363 #. type: verbatim
8364 #: ../fish/guestfish-actions.pod:1235
8365 #, no-wrap
8366 msgid ""
8367 " find directory\n"
8368 "\n"
8369 msgstr ""
8370
8371 #. type: textblock
8372 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8373 msgid ""
8374 "This command lists out all files and directories, recursively, starting at "
8375 "C<directory>.  It is essentially equivalent to running the shell command "
8376 "C<find directory -print> but some post-processing happens on the output, "
8377 "described below."
8378 msgstr ""
8379
8380 #. type: textblock
8381 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8382 msgid ""
8383 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8384 "structure was:"
8385 msgstr ""
8386
8387 #. type: verbatim
8388 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8389 #, no-wrap
8390 msgid ""
8391 " /tmp/a\n"
8392 " /tmp/b\n"
8393 " /tmp/c/d\n"
8394 "\n"
8395 msgstr ""
8396
8397 #. type: textblock
8398 #: ../fish/guestfish-actions.pod:1249
8399 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8400 msgstr ""
8401
8402 #. type: verbatim
8403 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8404 #, no-wrap
8405 msgid ""
8406 " a\n"
8407 " b\n"
8408 " c\n"
8409 " c/d\n"
8410 "\n"
8411 msgstr ""
8412
8413 #. type: textblock
8414 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8415 msgid "If C<directory> is not a directory, then this command returns an error."
8416 msgstr ""
8417
8418 #. type: textblock
8419 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8420 msgid "The returned list is sorted."
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1262
8425 msgid "See also L</find0>."
8426 msgstr ""
8427
8428 #. type: =head2
8429 #: ../fish/guestfish-actions.pod:1267
8430 msgid "find0"
8431 msgstr ""
8432
8433 #. type: verbatim
8434 #: ../fish/guestfish-actions.pod:1269
8435 #, no-wrap
8436 msgid ""
8437 " find0 directory (files|-)\n"
8438 "\n"
8439 msgstr ""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8443 msgid ""
8444 "This command lists out all files and directories, recursively, starting at "
8445 "C<directory>, placing the resulting list in the external file called "
8446 "C<files>."
8447 msgstr ""
8448
8449 #. type: textblock
8450 #: ../fish/guestfish-actions.pod:1275
8451 msgid ""
8452 "This command works the same way as L</find> with the following exceptions:"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8457 msgid "The resulting list is written to an external file."
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8462 msgid ""
8463 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8464 "L<find(1)> option I<-print0>."
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8469 msgid "This command is not limited in the number of names that it can return."
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8474 msgid "The result list is not sorted."
8475 msgstr ""
8476
8477 #. type: =head2
8478 #: ../fish/guestfish-actions.pod:1302
8479 msgid "findfs-label"
8480 msgstr ""
8481
8482 #. type: verbatim
8483 #: ../fish/guestfish-actions.pod:1304
8484 #, no-wrap
8485 msgid ""
8486 " findfs-label label\n"
8487 "\n"
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8492 msgid ""
8493 "This command searches the filesystems and returns the one which has the "
8494 "given label.  An error is returned if no such filesystem can be found."
8495 msgstr ""
8496
8497 #. type: textblock
8498 #: ../fish/guestfish-actions.pod:1310
8499 msgid "To find the label of a filesystem, use L</vfs-label>."
8500 msgstr ""
8501
8502 #. type: =head2
8503 #: ../fish/guestfish-actions.pod:1312
8504 msgid "findfs-uuid"
8505 msgstr ""
8506
8507 #. type: verbatim
8508 #: ../fish/guestfish-actions.pod:1314
8509 #, no-wrap
8510 msgid ""
8511 " findfs-uuid uuid\n"
8512 "\n"
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8517 msgid ""
8518 "This command searches the filesystems and returns the one which has the "
8519 "given UUID.  An error is returned if no such filesystem can be found."
8520 msgstr ""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:1320
8524 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8525 msgstr ""
8526
8527 #. type: =head2
8528 #: ../fish/guestfish-actions.pod:1322
8529 msgid "fsck"
8530 msgstr ""
8531
8532 #. type: verbatim
8533 #: ../fish/guestfish-actions.pod:1324
8534 #, no-wrap
8535 msgid ""
8536 " fsck fstype device\n"
8537 "\n"
8538 msgstr ""
8539
8540 #. type: textblock
8541 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8542 msgid ""
8543 "This runs the filesystem checker (fsck) on C<device> which should have "
8544 "filesystem type C<fstype>."
8545 msgstr ""
8546
8547 #. type: textblock
8548 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8549 msgid ""
8550 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8551 "codes from C<fsck>."
8552 msgstr ""
8553
8554 #. type: textblock
8555 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8556 msgid "Multiple status codes can be summed together."
8557 msgstr ""
8558
8559 #. type: textblock
8560 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8561 msgid ""
8562 "A non-zero return code can mean \"success\", for example if errors have been "
8563 "corrected on the filesystem."
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8568 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8569 msgstr ""
8570
8571 #. type: textblock
8572 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8573 msgid ""
8574 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8575 msgstr ""
8576
8577 #. type: =head2
8578 #: ../fish/guestfish-actions.pod:1354
8579 msgid "get-append"
8580 msgstr ""
8581
8582 #. type: verbatim
8583 #: ../fish/guestfish-actions.pod:1356
8584 #, no-wrap
8585 msgid ""
8586 " get-append\n"
8587 "\n"
8588 msgstr ""
8589
8590 #. type: textblock
8591 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8592 msgid ""
8593 "Return the additional kernel options which are added to the guest kernel "
8594 "command line."
8595 msgstr ""
8596
8597 #. type: textblock
8598 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8599 msgid "If C<NULL> then no options are added."
8600 msgstr ""
8601
8602 #. type: =head2
8603 #: ../fish/guestfish-actions.pod:1363
8604 msgid "get-attach-method"
8605 msgstr ""
8606
8607 #. type: verbatim
8608 #: ../fish/guestfish-actions.pod:1365
8609 #, no-wrap
8610 msgid ""
8611 " get-attach-method\n"
8612 "\n"
8613 msgstr ""
8614
8615 #. type: textblock
8616 #: ../fish/guestfish-actions.pod:1367
8617 msgid "Return the current attach method.  See L</set-attach-method>."
8618 msgstr ""
8619
8620 #. type: =head2
8621 #: ../fish/guestfish-actions.pod:1369
8622 msgid "get-autosync"
8623 msgstr ""
8624
8625 #. type: verbatim
8626 #: ../fish/guestfish-actions.pod:1371
8627 #, no-wrap
8628 msgid ""
8629 " get-autosync\n"
8630 "\n"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8635 msgid "Get the autosync flag."
8636 msgstr ""
8637
8638 #. type: =head2
8639 #: ../fish/guestfish-actions.pod:1375
8640 msgid "get-direct"
8641 msgstr ""
8642
8643 #. type: verbatim
8644 #: ../fish/guestfish-actions.pod:1377
8645 #, no-wrap
8646 msgid ""
8647 " get-direct\n"
8648 "\n"
8649 msgstr ""
8650
8651 #. type: textblock
8652 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8653 msgid "Return the direct appliance mode flag."
8654 msgstr ""
8655
8656 #. type: =head2
8657 #: ../fish/guestfish-actions.pod:1381
8658 msgid "get-e2label"
8659 msgstr ""
8660
8661 #. type: verbatim
8662 #: ../fish/guestfish-actions.pod:1383
8663 #, no-wrap
8664 msgid ""
8665 " get-e2label device\n"
8666 "\n"
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8671 msgid ""
8672 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../fish/guestfish-actions.pod:1388
8677 msgid ""
8678 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8679 "instead."
8680 msgstr ""
8681
8682 #. type: =head2
8683 #: ../fish/guestfish-actions.pod:1395
8684 msgid "get-e2uuid"
8685 msgstr ""
8686
8687 #. type: verbatim
8688 #: ../fish/guestfish-actions.pod:1397
8689 #, no-wrap
8690 msgid ""
8691 " get-e2uuid device\n"
8692 "\n"
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8697 msgid ""
8698 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8699 msgstr ""
8700
8701 #. type: textblock
8702 #: ../fish/guestfish-actions.pod:1402
8703 msgid ""
8704 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8705 "instead."
8706 msgstr ""
8707
8708 #. type: =head2
8709 #: ../fish/guestfish-actions.pod:1409
8710 msgid "get-memsize"
8711 msgstr ""
8712
8713 #. type: verbatim
8714 #: ../fish/guestfish-actions.pod:1411
8715 #, no-wrap
8716 msgid ""
8717 " get-memsize\n"
8718 "\n"
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8723 msgid ""
8724 "This gets the memory size in megabytes allocated to the qemu subprocess."
8725 msgstr ""
8726
8727 #. type: textblock
8728 #: ../fish/guestfish-actions.pod:1416
8729 msgid ""
8730 "If L</set-memsize> was not called on this handle, and if "
8731 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8732 "value for memsize."
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8737 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8738 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8739 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8740 msgid ""
8741 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1423
8746 msgid "get-network"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1425
8751 #, no-wrap
8752 msgid ""
8753 " get-network\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8759 msgid "This returns the enable network flag."
8760 msgstr ""
8761
8762 #. type: =head2
8763 #: ../fish/guestfish-actions.pod:1429
8764 msgid "get-path"
8765 msgstr ""
8766
8767 #. type: verbatim
8768 #: ../fish/guestfish-actions.pod:1431
8769 #, no-wrap
8770 msgid ""
8771 " get-path\n"
8772 "\n"
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8777 msgid "Return the current search path."
8778 msgstr ""
8779
8780 #. type: textblock
8781 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8782 msgid ""
8783 "This is always non-NULL.  If it wasn't set already, then this will return "
8784 "the default path."
8785 msgstr ""
8786
8787 #. type: =head2
8788 #: ../fish/guestfish-actions.pod:1438
8789 msgid "get-pgroup"
8790 msgstr ""
8791
8792 #. type: verbatim
8793 #: ../fish/guestfish-actions.pod:1440
8794 #, no-wrap
8795 msgid ""
8796 " get-pgroup\n"
8797 "\n"
8798 msgstr ""
8799
8800 #. type: textblock
8801 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8802 msgid "This returns the process group flag."
8803 msgstr ""
8804
8805 #. type: =head2
8806 #: ../fish/guestfish-actions.pod:1444
8807 msgid "get-pid"
8808 msgstr ""
8809
8810 #. type: =head2
8811 #: ../fish/guestfish-actions.pod:1446
8812 msgid "pid"
8813 msgstr ""
8814
8815 #. type: verbatim
8816 #: ../fish/guestfish-actions.pod:1448
8817 #, no-wrap
8818 msgid ""
8819 " get-pid\n"
8820 "\n"
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
8825 msgid ""
8826 "Return the process ID of the qemu subprocess.  If there is no qemu "
8827 "subprocess, then this will return an error."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
8832 msgid "This is an internal call used for debugging and testing."
8833 msgstr ""
8834
8835 #. type: =head2
8836 #: ../fish/guestfish-actions.pod:1455
8837 msgid "get-qemu"
8838 msgstr ""
8839
8840 #. type: verbatim
8841 #: ../fish/guestfish-actions.pod:1457
8842 #, no-wrap
8843 msgid ""
8844 " get-qemu\n"
8845 "\n"
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
8850 msgid "Return the current qemu binary."
8851 msgstr ""
8852
8853 #. type: textblock
8854 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
8855 msgid ""
8856 "This is always non-NULL.  If it wasn't set already, then this will return "
8857 "the default qemu binary name."
8858 msgstr ""
8859
8860 #. type: =head2
8861 #: ../fish/guestfish-actions.pod:1464
8862 msgid "get-recovery-proc"
8863 msgstr ""
8864
8865 #. type: verbatim
8866 #: ../fish/guestfish-actions.pod:1466
8867 #, no-wrap
8868 msgid ""
8869 " get-recovery-proc\n"
8870 "\n"
8871 msgstr ""
8872
8873 #. type: textblock
8874 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
8875 msgid "Return the recovery process enabled flag."
8876 msgstr ""
8877
8878 #. type: =head2
8879 #: ../fish/guestfish-actions.pod:1470
8880 msgid "get-selinux"
8881 msgstr ""
8882
8883 #. type: verbatim
8884 #: ../fish/guestfish-actions.pod:1472
8885 #, no-wrap
8886 msgid ""
8887 " get-selinux\n"
8888 "\n"
8889 msgstr ""
8890
8891 #. type: textblock
8892 #: ../fish/guestfish-actions.pod:1474
8893 msgid ""
8894 "This returns the current setting of the selinux flag which is passed to the "
8895 "appliance at boot time.  See L</set-selinux>."
8896 msgstr ""
8897
8898 #. type: =head2
8899 #: ../fish/guestfish-actions.pod:1480
8900 msgid "get-smp"
8901 msgstr ""
8902
8903 #. type: verbatim
8904 #: ../fish/guestfish-actions.pod:1482
8905 #, no-wrap
8906 msgid ""
8907 " get-smp\n"
8908 "\n"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
8913 msgid "This returns the number of virtual CPUs assigned to the appliance."
8914 msgstr ""
8915
8916 #. type: =head2
8917 #: ../fish/guestfish-actions.pod:1486
8918 msgid "get-state"
8919 msgstr ""
8920
8921 #. type: verbatim
8922 #: ../fish/guestfish-actions.pod:1488
8923 #, no-wrap
8924 msgid ""
8925 " get-state\n"
8926 "\n"
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
8931 msgid ""
8932 "This returns the current state as an opaque integer.  This is only useful "
8933 "for printing debug and internal error messages."
8934 msgstr ""
8935
8936 #. type: textblock
8937 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
8938 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
8939 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
8940 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
8941 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
8942 msgid "For more information on states, see L<guestfs(3)>."
8943 msgstr ""
8944
8945 #. type: =head2
8946 #: ../fish/guestfish-actions.pod:1495
8947 msgid "get-trace"
8948 msgstr ""
8949
8950 #. type: verbatim
8951 #: ../fish/guestfish-actions.pod:1497
8952 #, no-wrap
8953 msgid ""
8954 " get-trace\n"
8955 "\n"
8956 msgstr ""
8957
8958 #. type: textblock
8959 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
8960 msgid "Return the command trace flag."
8961 msgstr ""
8962
8963 #. type: =head2
8964 #: ../fish/guestfish-actions.pod:1501
8965 msgid "get-umask"
8966 msgstr ""
8967
8968 #. type: verbatim
8969 #: ../fish/guestfish-actions.pod:1503
8970 #, no-wrap
8971 msgid ""
8972 " get-umask\n"
8973 "\n"
8974 msgstr ""
8975
8976 #. type: textblock
8977 #: ../fish/guestfish-actions.pod:1505
8978 msgid ""
8979 "Return the current umask.  By default the umask is C<022> unless it has been "
8980 "set by calling L</umask>."
8981 msgstr ""
8982
8983 #. type: =head2
8984 #: ../fish/guestfish-actions.pod:1508
8985 msgid "get-verbose"
8986 msgstr ""
8987
8988 #. type: verbatim
8989 #: ../fish/guestfish-actions.pod:1510
8990 #, no-wrap
8991 msgid ""
8992 " get-verbose\n"
8993 "\n"
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
8998 msgid "This returns the verbose messages flag."
8999 msgstr ""
9000
9001 #. type: =head2
9002 #: ../fish/guestfish-actions.pod:1514
9003 msgid "getcon"
9004 msgstr ""
9005
9006 #. type: verbatim
9007 #: ../fish/guestfish-actions.pod:1516
9008 #, no-wrap
9009 msgid ""
9010 " getcon\n"
9011 "\n"
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9016 msgid "This gets the SELinux security context of the daemon."
9017 msgstr ""
9018
9019 #. type: textblock
9020 #: ../fish/guestfish-actions.pod:1520
9021 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9022 msgstr ""
9023
9024 #. type: =head2
9025 #: ../fish/guestfish-actions.pod:1523
9026 msgid "getxattr"
9027 msgstr ""
9028
9029 #. type: verbatim
9030 #: ../fish/guestfish-actions.pod:1525
9031 #, no-wrap
9032 msgid ""
9033 " getxattr path name\n"
9034 "\n"
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:1527
9039 msgid ""
9040 "Get a single extended attribute from file C<path> named C<name>.  This call "
9041 "follows symlinks.  If you want to lookup an extended attribute for the "
9042 "symlink itself, use L</lgetxattr>."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9047 msgid ""
9048 "Normally it is better to get all extended attributes from a file in one go "
9049 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9050 "buggy and do not provide a way to list out attributes.  For these "
9051 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9052 "attributes you want in advance and call this function."
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9057 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9058 msgid ""
9059 "Extended attribute values are blobs of binary data.  If there is no extended "
9060 "attribute named C<name>, this returns an error."
9061 msgstr ""
9062
9063 #. type: textblock
9064 #: ../fish/guestfish-actions.pod:1541
9065 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9066 msgstr ""
9067
9068 #. type: =head2
9069 #: ../fish/guestfish-actions.pod:1543
9070 msgid "getxattrs"
9071 msgstr ""
9072
9073 #. type: verbatim
9074 #: ../fish/guestfish-actions.pod:1545
9075 #, no-wrap
9076 msgid ""
9077 " getxattrs path\n"
9078 "\n"
9079 msgstr ""
9080
9081 #. type: textblock
9082 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9083 msgid ""
9084 "This call lists the extended attributes of the file or directory C<path>."
9085 msgstr ""
9086
9087 #. type: textblock
9088 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9089 msgid ""
9090 "At the system call level, this is a combination of the L<listxattr(2)> and "
9091 "L<getxattr(2)> calls."
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../fish/guestfish-actions.pod:1553
9096 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9097 msgstr ""
9098
9099 #. type: =head2
9100 #: ../fish/guestfish-actions.pod:1555
9101 msgid "glob-expand"
9102 msgstr ""
9103
9104 #. type: verbatim
9105 #: ../fish/guestfish-actions.pod:1557
9106 #, no-wrap
9107 msgid ""
9108 " glob-expand pattern\n"
9109 "\n"
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9114 msgid ""
9115 "This command searches for all the pathnames matching C<pattern> according to "
9116 "the wildcard expansion rules used by the shell."
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9121 msgid ""
9122 "If no paths match, then this returns an empty list (note: not an error)."
9123 msgstr ""
9124
9125 #. type: textblock
9126 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9127 msgid ""
9128 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9129 "GLOB_BRACE>.  See that manual page for more details."
9130 msgstr ""
9131
9132 #. type: =head2
9133 #: ../fish/guestfish-actions.pod:1570
9134 msgid "grep"
9135 msgstr ""
9136
9137 #. type: verbatim
9138 #: ../fish/guestfish-actions.pod:1572
9139 #, no-wrap
9140 msgid ""
9141 " grep regex path\n"
9142 "\n"
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9147 msgid "This calls the external C<grep> program and returns the matching lines."
9148 msgstr ""
9149
9150 #. type: =head2
9151 #: ../fish/guestfish-actions.pod:1580
9152 msgid "grepi"
9153 msgstr ""
9154
9155 #. type: verbatim
9156 #: ../fish/guestfish-actions.pod:1582
9157 #, no-wrap
9158 msgid ""
9159 " grepi regex path\n"
9160 "\n"
9161 msgstr ""
9162
9163 #. type: textblock
9164 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9165 msgid ""
9166 "This calls the external C<grep -i> program and returns the matching lines."
9167 msgstr ""
9168
9169 #. type: =head2
9170 #: ../fish/guestfish-actions.pod:1590
9171 msgid "grub-install"
9172 msgstr ""
9173
9174 #. type: verbatim
9175 #: ../fish/guestfish-actions.pod:1592
9176 #, no-wrap
9177 msgid ""
9178 " grub-install root device\n"
9179 "\n"
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9184 msgid ""
9185 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9186 "with the root directory being C<root>."
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9191 msgid ""
9192 "There is currently no way in the API to install grub2, which is used by most "
9193 "modern Linux guests.  It is possible to run the grub2 command from the "
9194 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9199 msgid ""
9200 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9201 "compatible with itself, so this only works in rather narrow circumstances.  "
9202 "Careful testing with each guest version is advisable."
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9207 msgid ""
9208 "If grub-install reports the error \"No suitable drive was found in the "
9209 "generated device map.\" it may be that you need to create a C</boot/grub/"
9210 "device.map> file first that contains the mapping between grub device names "
9211 "and Linux device names.  It is usually sufficient to create a file "
9212 "containing:"
9213 msgstr ""
9214
9215 #. type: verbatim
9216 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9217 #, no-wrap
9218 msgid ""
9219 " (hd0) /dev/vda\n"
9220 "\n"
9221 msgstr ""
9222
9223 #. type: textblock
9224 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9225 msgid "replacing C</dev/vda> with the name of the installation device."
9226 msgstr ""
9227
9228 #. type: =head2
9229 #: ../fish/guestfish-actions.pod:1630
9230 msgid "head"
9231 msgstr ""
9232
9233 #. type: verbatim
9234 #: ../fish/guestfish-actions.pod:1632
9235 #, no-wrap
9236 msgid ""
9237 " head path\n"
9238 "\n"
9239 msgstr ""
9240
9241 #. type: textblock
9242 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9243 msgid ""
9244 "This command returns up to the first 10 lines of a file as a list of strings."
9245 msgstr ""
9246
9247 #. type: =head2
9248 #: ../fish/guestfish-actions.pod:1640
9249 msgid "head-n"
9250 msgstr ""
9251
9252 #. type: verbatim
9253 #: ../fish/guestfish-actions.pod:1642
9254 #, no-wrap
9255 msgid ""
9256 " head-n nrlines path\n"
9257 "\n"
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9262 msgid ""
9263 "If the parameter C<nrlines> is a positive number, this returns the first "
9264 "C<nrlines> lines of the file C<path>."
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9269 msgid ""
9270 "If the parameter C<nrlines> is a negative number, this returns lines from "
9271 "the file C<path>, excluding the last C<nrlines> lines."
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9276 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9277 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9278 msgstr ""
9279
9280 #. type: =head2
9281 #: ../fish/guestfish-actions.pod:1655
9282 msgid "hexdump"
9283 msgstr ""
9284
9285 #. type: verbatim
9286 #: ../fish/guestfish-actions.pod:1657
9287 #, no-wrap
9288 msgid ""
9289 " hexdump path\n"
9290 "\n"
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9295 msgid ""
9296 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9297 "readable, canonical hex dump of the file."
9298 msgstr ""
9299
9300 #. type: =head2
9301 #: ../fish/guestfish-actions.pod:1665
9302 msgid "initrd-cat"
9303 msgstr ""
9304
9305 #. type: verbatim
9306 #: ../fish/guestfish-actions.pod:1667
9307 #, no-wrap
9308 msgid ""
9309 " initrd-cat initrdpath filename\n"
9310 "\n"
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9315 msgid ""
9316 "This command unpacks the file C<filename> from the initrd file called "
9317 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9318 "character."
9319 msgstr ""
9320
9321 #. type: textblock
9322 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9323 msgid ""
9324 "For example, in guestfish you could use the following command to examine the "
9325 "boot script (usually called C</init>)  contained in a Linux initrd or "
9326 "initramfs image:"
9327 msgstr ""
9328
9329 #. type: verbatim
9330 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9331 #, no-wrap
9332 msgid ""
9333 " initrd-cat /boot/initrd-<version>.img init\n"
9334 "\n"
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:1679
9339 msgid "See also L</initrd-list>."
9340 msgstr ""
9341
9342 #. type: =head2
9343 #: ../fish/guestfish-actions.pod:1684
9344 msgid "initrd-list"
9345 msgstr ""
9346
9347 #. type: verbatim
9348 #: ../fish/guestfish-actions.pod:1686
9349 #, no-wrap
9350 msgid ""
9351 " initrd-list path\n"
9352 "\n"
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9357 msgid "This command lists out files contained in an initrd."
9358 msgstr ""
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9362 msgid ""
9363 "The files are listed without any initial C</> character.  The files are "
9364 "listed in the order they appear (not necessarily alphabetical).  Directory "
9365 "names are listed as separate items."
9366 msgstr ""
9367
9368 #. type: textblock
9369 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9370 msgid ""
9371 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9372 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9373 "files)."
9374 msgstr ""
9375
9376 #. type: =head2
9377 #: ../fish/guestfish-actions.pod:1698
9378 msgid "inotify-add-watch"
9379 msgstr ""
9380
9381 #. type: verbatim
9382 #: ../fish/guestfish-actions.pod:1700
9383 #, no-wrap
9384 msgid ""
9385 " inotify-add-watch path mask\n"
9386 "\n"
9387 msgstr ""
9388
9389 #. type: textblock
9390 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9391 msgid "Watch C<path> for the events listed in C<mask>."
9392 msgstr ""
9393
9394 #. type: textblock
9395 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9396 msgid ""
9397 "Note that if C<path> is a directory then events within that directory are "
9398 "watched, but this does I<not> happen recursively (in subdirectories)."
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9403 msgid ""
9404 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9405 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9406 msgstr ""
9407
9408 #. type: =head2
9409 #: ../fish/guestfish-actions.pod:1712
9410 msgid "inotify-close"
9411 msgstr ""
9412
9413 #. type: verbatim
9414 #: ../fish/guestfish-actions.pod:1714
9415 #, no-wrap
9416 msgid ""
9417 " inotify-close\n"
9418 "\n"
9419 msgstr ""
9420
9421 #. type: textblock
9422 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9423 msgid ""
9424 "This closes the inotify handle which was previously opened by inotify_init.  "
9425 "It removes all watches, throws away any pending events, and deallocates all "
9426 "resources."
9427 msgstr ""
9428
9429 #. type: =head2
9430 #: ../fish/guestfish-actions.pod:1720
9431 msgid "inotify-files"
9432 msgstr ""
9433
9434 #. type: verbatim
9435 #: ../fish/guestfish-actions.pod:1722
9436 #, no-wrap
9437 msgid ""
9438 " inotify-files\n"
9439 "\n"
9440 msgstr ""
9441
9442 #. type: textblock
9443 #: ../fish/guestfish-actions.pod:1724
9444 msgid ""
9445 "This function is a helpful wrapper around L</inotify-read> which just "
9446 "returns a list of pathnames of objects that were touched.  The returned "
9447 "pathnames are sorted and deduplicated."
9448 msgstr ""
9449
9450 #. type: =head2
9451 #: ../fish/guestfish-actions.pod:1728
9452 msgid "inotify-init"
9453 msgstr ""
9454
9455 #. type: verbatim
9456 #: ../fish/guestfish-actions.pod:1730
9457 #, no-wrap
9458 msgid ""
9459 " inotify-init maxevents\n"
9460 "\n"
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9465 msgid ""
9466 "This command creates a new inotify handle.  The inotify subsystem can be "
9467 "used to notify events which happen to objects in the guest filesystem."
9468 msgstr ""
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:1736
9472 msgid ""
9473 "C<maxevents> is the maximum number of events which will be queued up between "
9474 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9475 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9476 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9477 "but records the fact that it threw them away by setting a flag "
9478 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9479 msgstr ""
9480
9481 #. type: textblock
9482 #: ../fish/guestfish-actions.pod:1746
9483 msgid ""
9484 "Before any events are generated, you have to add some watches to the "
9485 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9486 "L</inotify-watch-all>."
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:1752
9491 msgid ""
9492 "Queued up events should be read periodically by calling L</inotify-read> (or "
9493 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9494 "If you don't read the events out often enough then you risk the internal "
9495 "queue overflowing."
9496 msgstr ""
9497
9498 #. type: textblock
9499 #: ../fish/guestfish-actions.pod:1759
9500 msgid ""
9501 "The handle should be closed after use by calling L</inotify-close>.  This "
9502 "also removes any watches automatically."
9503 msgstr ""
9504
9505 #. type: textblock
9506 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9507 msgid ""
9508 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9509 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9510 "that there is one global inotify handle per libguestfs instance."
9511 msgstr ""
9512
9513 #. type: =head2
9514 #: ../fish/guestfish-actions.pod:1768
9515 msgid "inotify-read"
9516 msgstr ""
9517
9518 #. type: verbatim
9519 #: ../fish/guestfish-actions.pod:1770
9520 #, no-wrap
9521 msgid ""
9522 " inotify-read\n"
9523 "\n"
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9528 msgid ""
9529 "Return the complete queue of events that have happened since the previous "
9530 "read call."
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9535 msgid "If no events have happened, this returns an empty list."
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9540 msgid ""
9541 "I<Note>: In order to make sure that all events have been read, you must call "
9542 "this function repeatedly until it returns an empty list.  The reason is that "
9543 "the call will read events up to the maximum appliance-to-host message size "
9544 "and leave remaining events in the queue."
9545 msgstr ""
9546
9547 #. type: =head2
9548 #: ../fish/guestfish-actions.pod:1783
9549 msgid "inotify-rm-watch"
9550 msgstr ""
9551
9552 #. type: verbatim
9553 #: ../fish/guestfish-actions.pod:1785
9554 #, no-wrap
9555 msgid ""
9556 " inotify-rm-watch wd\n"
9557 "\n"
9558 msgstr ""
9559
9560 #. type: textblock
9561 #: ../fish/guestfish-actions.pod:1787
9562 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9563 msgstr ""
9564
9565 #. type: =head2
9566 #: ../fish/guestfish-actions.pod:1790
9567 msgid "inspect-get-arch"
9568 msgstr ""
9569
9570 #. type: verbatim
9571 #: ../fish/guestfish-actions.pod:1792
9572 #, no-wrap
9573 msgid ""
9574 " inspect-get-arch root\n"
9575 "\n"
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:1794
9580 msgid ""
9581 "This returns the architecture of the inspected operating system.  The "
9582 "possible return values are listed under L</file-architecture>."
9583 msgstr ""
9584
9585 #. type: textblock
9586 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9587 msgid ""
9588 "If the architecture could not be determined, then the string C<unknown> is "
9589 "returned."
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9594 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9595 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9596 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9597 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9598 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9599 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9600 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9601 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9602 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9603 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9604 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9605 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9606 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9607 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9608 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9609 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9610 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9611 msgstr ""
9612
9613 #. type: =head2
9614 #: ../fish/guestfish-actions.pod:1803
9615 msgid "inspect-get-distro"
9616 msgstr ""
9617
9618 #. type: verbatim
9619 #: ../fish/guestfish-actions.pod:1805
9620 #, no-wrap
9621 msgid ""
9622 " inspect-get-distro root\n"
9623 "\n"
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9628 msgid ""
9629 "This returns the distro (distribution) of the inspected operating system."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9634 msgid "Currently defined distros are:"
9635 msgstr ""
9636
9637 #. type: =item
9638 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9639 msgid "\"archlinux\""
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9644 msgid "Arch Linux."
9645 msgstr ""
9646
9647 #. type: =item
9648 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9649 msgid "\"centos\""
9650 msgstr ""
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9654 msgid "CentOS."
9655 msgstr ""
9656
9657 #. type: =item
9658 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9659 msgid "\"debian\""
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9664 msgid "Debian."
9665 msgstr ""
9666
9667 #. type: =item
9668 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9669 msgid "\"fedora\""
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9674 msgid "Fedora."
9675 msgstr ""
9676
9677 #. type: =item
9678 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9679 msgid "\"gentoo\""
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9684 msgid "Gentoo."
9685 msgstr ""
9686
9687 #. type: =item
9688 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9689 msgid "\"linuxmint\""
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9694 msgid "Linux Mint."
9695 msgstr ""
9696
9697 #. type: =item
9698 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9699 msgid "\"mageia\""
9700 msgstr ""
9701
9702 #. type: textblock
9703 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9704 msgid "Mageia."
9705 msgstr ""
9706
9707 #. type: =item
9708 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9709 msgid "\"mandriva\""
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9714 msgid "Mandriva."
9715 msgstr ""
9716
9717 #. type: =item
9718 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9719 msgid "\"meego\""
9720 msgstr ""
9721
9722 #. type: textblock
9723 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9724 msgid "MeeGo."
9725 msgstr ""
9726
9727 #. type: =item
9728 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9729 msgid "\"opensuse\""
9730 msgstr ""
9731
9732 #. type: textblock
9733 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9734 msgid "OpenSUSE."
9735 msgstr ""
9736
9737 #. type: =item
9738 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9739 msgid "\"pardus\""
9740 msgstr ""
9741
9742 #. type: textblock
9743 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9744 msgid "Pardus."
9745 msgstr ""
9746
9747 #. type: =item
9748 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9749 msgid "\"redhat-based\""
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9754 msgid "Some Red Hat-derived distro."
9755 msgstr ""
9756
9757 #. type: =item
9758 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9759 msgid "\"rhel\""
9760 msgstr ""
9761
9762 #. type: textblock
9763 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9764 msgid "Red Hat Enterprise Linux."
9765 msgstr ""
9766
9767 #. type: =item
9768 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9769 msgid "\"scientificlinux\""
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
9774 msgid "Scientific Linux."
9775 msgstr ""
9776
9777 #. type: =item
9778 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
9779 msgid "\"slackware\""
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
9784 msgid "Slackware."
9785 msgstr ""
9786
9787 #. type: =item
9788 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
9789 msgid "\"ttylinux\""
9790 msgstr ""
9791
9792 #. type: textblock
9793 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
9794 msgid "ttylinux."
9795 msgstr ""
9796
9797 #. type: =item
9798 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
9799 msgid "\"ubuntu\""
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
9804 msgid "Ubuntu."
9805 msgstr ""
9806
9807 #. type: =item
9808 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
9809 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
9810 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
9811 msgid "\"unknown\""
9812 msgstr ""
9813
9814 #. type: textblock
9815 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
9816 msgid "The distro could not be determined."
9817 msgstr ""
9818
9819 #. type: =item
9820 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
9821 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
9822 msgid "\"windows\""
9823 msgstr ""
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
9827 msgid ""
9828 "Windows does not have distributions.  This string is returned if the OS type "
9829 "is Windows."
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
9834 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
9835 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
9836 msgid ""
9837 "Future versions of libguestfs may return other strings here.  The caller "
9838 "should be prepared to handle any string."
9839 msgstr ""
9840
9841 #. type: =head2
9842 #: ../fish/guestfish-actions.pod:1898
9843 msgid "inspect-get-drive-mappings"
9844 msgstr ""
9845
9846 #. type: verbatim
9847 #: ../fish/guestfish-actions.pod:1900
9848 #, no-wrap
9849 msgid ""
9850 " inspect-get-drive-mappings root\n"
9851 "\n"
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
9856 msgid ""
9857 "This call is useful for Windows which uses a primitive system of assigning "
9858 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9859 "Windows Registry to find out how disks/partitions are mapped to drive "
9860 "letters, and returns a hash table as in the example below:"
9861 msgstr ""
9862
9863 #. type: verbatim
9864 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
9865 #, no-wrap
9866 msgid ""
9867 " C      =>     /dev/vda2\n"
9868 " E      =>     /dev/vdb1\n"
9869 " F      =>     /dev/vdc1\n"
9870 "\n"
9871 msgstr ""
9872
9873 #. type: textblock
9874 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
9875 msgid ""
9876 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9877 "and just contains the drive letter, without the customary colon separator "
9878 "character."
9879 msgstr ""
9880
9881 #. type: textblock
9882 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
9883 msgid ""
9884 "In future we may support other operating systems that also used drive "
9885 "letters, but the keys for those might not be case insensitive and might be "
9886 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9887 "C<h1> etc."
9888 msgstr ""
9889
9890 #. type: textblock
9891 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
9892 msgid ""
9893 "For Windows guests, currently only hard drive mappings are returned.  "
9894 "Removable disks (eg. DVD-ROMs) are ignored."
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
9899 msgid ""
9900 "For guests that do not use drive mappings, or if the drive mappings could "
9901 "not be determined, this returns an empty hash table."
9902 msgstr ""
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:1927
9906 msgid ""
9907 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9908 "get-mountpoints>, L</inspect-get-filesystems>."
9909 msgstr ""
9910
9911 #. type: =head2
9912 #: ../fish/guestfish-actions.pod:1931
9913 msgid "inspect-get-filesystems"
9914 msgstr ""
9915
9916 #. type: verbatim
9917 #: ../fish/guestfish-actions.pod:1933
9918 #, no-wrap
9919 msgid ""
9920 " inspect-get-filesystems root\n"
9921 "\n"
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
9926 msgid ""
9927 "This returns a list of all the filesystems that we think are associated with "
9928 "this operating system.  This includes the root filesystem, other ordinary "
9929 "filesystems, and non-mounted devices like swap partitions."
9930 msgstr ""
9931
9932 #. type: textblock
9933 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
9934 msgid ""
9935 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9936 "to be shared between operating systems."
9937 msgstr ""
9938
9939 #. type: textblock
9940 #: ../fish/guestfish-actions.pod:1943
9941 msgid ""
9942 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9943 "get-mountpoints>."
9944 msgstr ""
9945
9946 #. type: =head2
9947 #: ../fish/guestfish-actions.pod:1946
9948 msgid "inspect-get-format"
9949 msgstr ""
9950
9951 #. type: verbatim
9952 #: ../fish/guestfish-actions.pod:1948
9953 #, no-wrap
9954 msgid ""
9955 " inspect-get-format root\n"
9956 "\n"
9957 msgstr ""
9958
9959 #. type: textblock
9960 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
9961 msgid ""
9962 "This returns the format of the inspected operating system.  You can use it "
9963 "to detect install images, live CDs and similar."
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
9968 msgid "Currently defined formats are:"
9969 msgstr ""
9970
9971 #. type: =item
9972 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
9973 msgid "\"installed\""
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
9978 msgid "This is an installed operating system."
9979 msgstr ""
9980
9981 #. type: =item
9982 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
9983 msgid "\"installer\""
9984 msgstr ""
9985
9986 #. type: textblock
9987 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
9988 msgid ""
9989 "The disk image being inspected is not an installed operating system, but a "
9990 "I<bootable> install disk, live CD, or similar."
9991 msgstr ""
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9995 msgid "The format of this disk image is not known."
9996 msgstr ""
9997
9998 #. type: =head2
9999 #: ../fish/guestfish-actions.pod:1977
10000 msgid "inspect-get-hostname"
10001 msgstr ""
10002
10003 #. type: verbatim
10004 #: ../fish/guestfish-actions.pod:1979
10005 #, no-wrap
10006 msgid ""
10007 " inspect-get-hostname root\n"
10008 "\n"
10009 msgstr ""
10010
10011 #. type: textblock
10012 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10013 msgid ""
10014 "This function returns the hostname of the operating system as found by "
10015 "inspection of the guest's configuration files."
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10020 msgid ""
10021 "If the hostname could not be determined, then the string C<unknown> is "
10022 "returned."
10023 msgstr ""
10024
10025 #. type: =head2
10026 #: ../fish/guestfish-actions.pod:1989
10027 msgid "inspect-get-icon"
10028 msgstr ""
10029
10030 #. type: verbatim
10031 #: ../fish/guestfish-actions.pod:1991
10032 #, no-wrap
10033 msgid ""
10034 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10035 "\n"
10036 msgstr ""
10037
10038 #. type: textblock
10039 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10040 msgid ""
10041 "This function returns an icon corresponding to the inspected operating "
10042 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10043 "to PNG if necessary)."
10044 msgstr ""
10045
10046 #. type: textblock
10047 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10048 msgid ""
10049 "If it was not possible to get an icon this function returns a zero-length "
10050 "(non-NULL) buffer.  I<Callers must check for this case>."
10051 msgstr ""
10052
10053 #. type: textblock
10054 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10055 msgid ""
10056 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10057 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10058 "this file will be returned.  You can disable favicons by passing the "
10059 "optional C<favicon> boolean as false (default is true)."
10060 msgstr ""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10064 msgid ""
10065 "If finding the favicon fails, then we look in other places in the guest for "
10066 "a suitable icon."
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10071 msgid ""
10072 "If the optional C<highquality> boolean is true then only high quality icons "
10073 "are returned, which means only icons of high resolution with an alpha "
10074 "channel.  The default (false) is to return any icon we can, even if it is of "
10075 "substandard quality."
10076 msgstr ""
10077
10078 #. type: textblock
10079 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10080 msgid ""
10081 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10082 "before you call this, since it needs to read information from the guest "
10083 "filesystem during the call."
10084 msgstr ""
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10088 msgid ""
10089 "B<Security:> The icon data comes from the untrusted guest, and should be "
10090 "treated with caution.  PNG files have been known to contain exploits.  "
10091 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10092 "trying to process or display the icon."
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10097 msgid ""
10098 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10099 "tries to return the largest, highest quality icon available.  The "
10100 "application must scale the icon to the required size."
10101 msgstr ""
10102
10103 #. type: textblock
10104 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10105 msgid ""
10106 "Extracting icons from Windows guests requires the external C<wrestool> "
10107 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10108 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10109 "installed separately."
10110 msgstr ""
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10114 msgid ""
10115 "Operating system icons are usually trademarks.  Seek legal advice before "
10116 "using trademarks in applications."
10117 msgstr ""
10118
10119 #. type: =head2
10120 #: ../fish/guestfish-actions.pod:2055
10121 msgid "inspect-get-major-version"
10122 msgstr ""
10123
10124 #. type: verbatim
10125 #: ../fish/guestfish-actions.pod:2057
10126 #, no-wrap
10127 msgid ""
10128 " inspect-get-major-version root\n"
10129 "\n"
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10134 msgid ""
10135 "This returns the major version number of the inspected operating system."
10136 msgstr ""
10137
10138 #. type: textblock
10139 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10140 msgid ""
10141 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10142 "popular public names used by the operating system.  Notably the operating "
10143 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10144 "1).  You can find out the real versions corresponding to releases of Windows "
10145 "by consulting Wikipedia or MSDN."
10146 msgstr ""
10147
10148 #. type: textblock
10149 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10150 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10151 msgid "If the version could not be determined, then C<0> is returned."
10152 msgstr ""
10153
10154 #. type: =head2
10155 #: ../fish/guestfish-actions.pod:2073
10156 msgid "inspect-get-minor-version"
10157 msgstr ""
10158
10159 #. type: verbatim
10160 #: ../fish/guestfish-actions.pod:2075
10161 #, no-wrap
10162 msgid ""
10163 " inspect-get-minor-version root\n"
10164 "\n"
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10169 msgid ""
10170 "This returns the minor version number of the inspected operating system."
10171 msgstr ""
10172
10173 #. type: textblock
10174 #: ../fish/guestfish-actions.pod:2082
10175 msgid ""
10176 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10177 "get-major-version>."
10178 msgstr ""
10179
10180 #. type: =head2
10181 #: ../fish/guestfish-actions.pod:2085
10182 msgid "inspect-get-mountpoints"
10183 msgstr ""
10184
10185 #. type: verbatim
10186 #: ../fish/guestfish-actions.pod:2087
10187 #, no-wrap
10188 msgid ""
10189 " inspect-get-mountpoints root\n"
10190 "\n"
10191 msgstr ""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10195 msgid ""
10196 "This returns a hash of where we think the filesystems associated with this "
10197 "operating system should be mounted.  Callers should note that this is at "
10198 "best an educated guess made by reading configuration files such as C</etc/"
10199 "fstab>.  I<In particular note> that this may return filesystems which are "
10200 "non-existent or not mountable and callers should be prepared to handle or "
10201 "ignore failures if they try to mount them."
10202 msgstr ""
10203
10204 #. type: textblock
10205 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10206 msgid ""
10207 "Each element in the returned hashtable has a key which is the path of the "
10208 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10209 "mounted there (eg. C</dev/sda1>)."
10210 msgstr ""
10211
10212 #. type: textblock
10213 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10214 msgid ""
10215 "Non-mounted devices such as swap devices are I<not> returned in this list."
10216 msgstr ""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:2106
10220 msgid ""
10221 "For operating systems like Windows which still use drive letters, this call "
10222 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10223 "information about the mapping of drive letters to partitions, see L</inspect-"
10224 "get-drive-mappings>."
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:2112
10229 msgid ""
10230 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10231 "get-filesystems>."
10232 msgstr ""
10233
10234 #. type: =head2
10235 #: ../fish/guestfish-actions.pod:2115
10236 msgid "inspect-get-package-format"
10237 msgstr ""
10238
10239 #. type: verbatim
10240 #: ../fish/guestfish-actions.pod:2117
10241 #, no-wrap
10242 msgid ""
10243 " inspect-get-package-format root\n"
10244 "\n"
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2119
10249 msgid ""
10250 "This function and L</inspect-get-package-management> return the package "
10251 "format and package management tool used by the inspected operating system.  "
10252 "For example for Fedora these functions would return C<rpm> (package format) "
10253 "and C<yum> (package management)."
10254 msgstr ""
10255
10256 #. type: textblock
10257 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10258 msgid ""
10259 "This returns the string C<unknown> if we could not determine the package "
10260 "format I<or> if the operating system does not have a real packaging system "
10261 "(eg. Windows)."
10262 msgstr ""
10263
10264 #. type: textblock
10265 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10266 msgid ""
10267 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10268 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10269 msgstr ""
10270
10271 #. type: =head2
10272 #: ../fish/guestfish-actions.pod:2135
10273 msgid "inspect-get-package-management"
10274 msgstr ""
10275
10276 #. type: verbatim
10277 #: ../fish/guestfish-actions.pod:2137
10278 #, no-wrap
10279 msgid ""
10280 " inspect-get-package-management root\n"
10281 "\n"
10282 msgstr ""
10283
10284 #. type: textblock
10285 #: ../fish/guestfish-actions.pod:2139
10286 msgid ""
10287 "L</inspect-get-package-format> and this function return the package format "
10288 "and package management tool used by the inspected operating system.  For "
10289 "example for Fedora these functions would return C<rpm> (package format) and "
10290 "C<yum> (package management)."
10291 msgstr ""
10292
10293 #. type: textblock
10294 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10295 msgid ""
10296 "This returns the string C<unknown> if we could not determine the package "
10297 "management tool I<or> if the operating system does not have a real packaging "
10298 "system (eg. Windows)."
10299 msgstr ""
10300
10301 #. type: textblock
10302 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10303 msgid ""
10304 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10305 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10306 "versions of libguestfs may return other strings."
10307 msgstr ""
10308
10309 #. type: =head2
10310 #: ../fish/guestfish-actions.pod:2156
10311 msgid "inspect-get-product-name"
10312 msgstr ""
10313
10314 #. type: verbatim
10315 #: ../fish/guestfish-actions.pod:2158
10316 #, no-wrap
10317 msgid ""
10318 " inspect-get-product-name root\n"
10319 "\n"
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10324 msgid ""
10325 "This returns the product name of the inspected operating system.  The "
10326 "product name is generally some freeform string which can be displayed to the "
10327 "user, but should not be parsed by programs."
10328 msgstr ""
10329
10330 #. type: textblock
10331 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10332 msgid ""
10333 "If the product name could not be determined, then the string C<unknown> is "
10334 "returned."
10335 msgstr ""
10336
10337 #. type: =head2
10338 #: ../fish/guestfish-actions.pod:2170
10339 msgid "inspect-get-product-variant"
10340 msgstr ""
10341
10342 #. type: verbatim
10343 #: ../fish/guestfish-actions.pod:2172
10344 #, no-wrap
10345 msgid ""
10346 " inspect-get-product-variant root\n"
10347 "\n"
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10352 msgid "This returns the product variant of the inspected operating system."
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10357 msgid ""
10358 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10359 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10360 "is usually a string such as C<Client> or C<Server> (other values are "
10361 "possible).  This can be used to distinguish consumer and enterprise versions "
10362 "of Windows that have the same version number (for example, Windows 7 and "
10363 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10364 "the latter is C<Server>)."
10365 msgstr ""
10366
10367 #. type: textblock
10368 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10369 msgid ""
10370 "For enterprise Linux guests, in future we intend this to return the product "
10371 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10372 "implemented at present."
10373 msgstr ""
10374
10375 #. type: textblock
10376 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10377 msgid ""
10378 "If the product variant could not be determined, then the string C<unknown> "
10379 "is returned."
10380 msgstr ""
10381
10382 #. type: textblock
10383 #: ../fish/guestfish-actions.pod:2193
10384 msgid ""
10385 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10386 "get-product-name>, L</inspect-get-major-version>."
10387 msgstr ""
10388
10389 #. type: =head2
10390 #: ../fish/guestfish-actions.pod:2197
10391 msgid "inspect-get-roots"
10392 msgstr ""
10393
10394 #. type: verbatim
10395 #: ../fish/guestfish-actions.pod:2199
10396 #, no-wrap
10397 msgid ""
10398 " inspect-get-roots\n"
10399 "\n"
10400 msgstr ""
10401
10402 #. type: textblock
10403 #: ../fish/guestfish-actions.pod:2201
10404 msgid ""
10405 "This function is a convenient way to get the list of root devices, as "
10406 "returned from a previous call to L</inspect-os>, but without redoing the "
10407 "whole inspection process."
10408 msgstr ""
10409
10410 #. type: textblock
10411 #: ../fish/guestfish-actions.pod:2205
10412 msgid ""
10413 "This returns an empty list if either no root devices were found or the "
10414 "caller has not called L</inspect-os>."
10415 msgstr ""
10416
10417 #. type: =head2
10418 #: ../fish/guestfish-actions.pod:2210
10419 msgid "inspect-get-type"
10420 msgstr ""
10421
10422 #. type: verbatim
10423 #: ../fish/guestfish-actions.pod:2212
10424 #, no-wrap
10425 msgid ""
10426 " inspect-get-type root\n"
10427 "\n"
10428 msgstr ""
10429
10430 #. type: textblock
10431 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10432 msgid ""
10433 "This returns the type of the inspected operating system.  Currently defined "
10434 "types are:"
10435 msgstr ""
10436
10437 #. type: =item
10438 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10439 msgid "\"linux\""
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10444 msgid "Any Linux-based operating system."
10445 msgstr ""
10446
10447 #. type: textblock
10448 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10449 msgid "Any Microsoft Windows operating system."
10450 msgstr ""
10451
10452 #. type: =item
10453 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10454 msgid "\"freebsd\""
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10459 msgid "FreeBSD."
10460 msgstr ""
10461
10462 #. type: =item
10463 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10464 msgid "\"netbsd\""
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10469 msgid "NetBSD."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10474 msgid "The operating system type could not be determined."
10475 msgstr ""
10476
10477 #. type: =head2
10478 #: ../fish/guestfish-actions.pod:2246
10479 msgid "inspect-get-windows-current-control-set"
10480 msgstr ""
10481
10482 #. type: verbatim
10483 #: ../fish/guestfish-actions.pod:2248
10484 #, no-wrap
10485 msgid ""
10486 " inspect-get-windows-current-control-set root\n"
10487 "\n"
10488 msgstr ""
10489
10490 #. type: textblock
10491 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10492 msgid ""
10493 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10494 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10495 msgstr ""
10496
10497 #. type: textblock
10498 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10499 msgid ""
10500 "This call assumes that the guest is Windows and that the Registry could be "
10501 "examined by inspection.  If this is not the case then an error is returned."
10502 msgstr ""
10503
10504 #. type: =head2
10505 #: ../fish/guestfish-actions.pod:2259
10506 msgid "inspect-get-windows-systemroot"
10507 msgstr ""
10508
10509 #. type: verbatim
10510 #: ../fish/guestfish-actions.pod:2261
10511 #, no-wrap
10512 msgid ""
10513 " inspect-get-windows-systemroot root\n"
10514 "\n"
10515 msgstr ""
10516
10517 #. type: textblock
10518 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10519 msgid ""
10520 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10521 "is a directory path such as C</WINDOWS>."
10522 msgstr ""
10523
10524 #. type: textblock
10525 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10526 msgid ""
10527 "This call assumes that the guest is Windows and that the systemroot could be "
10528 "determined by inspection.  If this is not the case then an error is returned."
10529 msgstr ""
10530
10531 #. type: =head2
10532 #: ../fish/guestfish-actions.pod:2272
10533 msgid "inspect-is-live"
10534 msgstr ""
10535
10536 #. type: verbatim
10537 #: ../fish/guestfish-actions.pod:2274
10538 #, no-wrap
10539 msgid ""
10540 " inspect-is-live root\n"
10541 "\n"
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:2276
10546 msgid ""
10547 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10548 "then this returns true if a live image was detected on the disk."
10549 msgstr ""
10550
10551 #. type: =head2
10552 #: ../fish/guestfish-actions.pod:2282
10553 msgid "inspect-is-multipart"
10554 msgstr ""
10555
10556 #. type: verbatim
10557 #: ../fish/guestfish-actions.pod:2284
10558 #, no-wrap
10559 msgid ""
10560 " inspect-is-multipart root\n"
10561 "\n"
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:2286
10566 msgid ""
10567 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10568 "then this returns true if the disk is part of a set."
10569 msgstr ""
10570
10571 #. type: =head2
10572 #: ../fish/guestfish-actions.pod:2292
10573 msgid "inspect-is-netinst"
10574 msgstr ""
10575
10576 #. type: verbatim
10577 #: ../fish/guestfish-actions.pod:2294
10578 #, no-wrap
10579 msgid ""
10580 " inspect-is-netinst root\n"
10581 "\n"
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:2296
10586 msgid ""
10587 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10588 "then this returns true if the disk is a network installer, ie. not a self-"
10589 "contained install CD but one which is likely to require network access to "
10590 "complete the install."
10591 msgstr ""
10592
10593 #. type: =head2
10594 #: ../fish/guestfish-actions.pod:2304
10595 msgid "inspect-list-applications"
10596 msgstr ""
10597
10598 #. type: verbatim
10599 #: ../fish/guestfish-actions.pod:2306
10600 #, no-wrap
10601 msgid ""
10602 " inspect-list-applications root\n"
10603 "\n"
10604 msgstr ""
10605
10606 #. type: textblock
10607 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10608 msgid "Return the list of applications installed in the operating system."
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2310
10613 msgid ""
10614 "I<Note:> This call works differently from other parts of the inspection "
10615 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10616 "then mount up the disks, before calling this.  Listing applications is a "
10617 "significantly more difficult operation which requires access to the full "
10618 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10619 "are just returning data cached in the libguestfs handle, this call actually "
10620 "reads parts of the mounted filesystems during the call."
10621 msgstr ""
10622
10623 #. type: textblock
10624 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10625 msgid ""
10626 "This returns an empty list if the inspection code was not able to determine "
10627 "the list of applications."
10628 msgstr ""
10629
10630 #. type: textblock
10631 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10632 msgid "The application structure contains the following fields:"
10633 msgstr ""
10634
10635 #. type: =item
10636 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10637 msgid "C<app_name>"
10638 msgstr ""
10639
10640 #. type: textblock
10641 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10642 msgid ""
10643 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10644 "guests, this is the package name."
10645 msgstr ""
10646
10647 #. type: =item
10648 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10649 msgid "C<app_display_name>"
10650 msgstr ""
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10654 msgid ""
10655 "The display name of the application, sometimes localized to the install "
10656 "language of the guest operating system."
10657 msgstr ""
10658
10659 #. type: textblock
10660 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10661 msgid ""
10662 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10663 "to display something can use C<app_name> instead."
10664 msgstr ""
10665
10666 #. type: =item
10667 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10668 msgid "C<app_epoch>"
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10673 msgid ""
10674 "For package managers which use epochs, this contains the epoch of the "
10675 "package (an integer).  If unavailable, this is returned as C<0>."
10676 msgstr ""
10677
10678 #. type: =item
10679 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10680 msgid "C<app_version>"
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10685 msgid ""
10686 "The version string of the application or package.  If unavailable this is "
10687 "returned as an empty string C<\"\">."
10688 msgstr ""
10689
10690 #. type: =item
10691 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10692 msgid "C<app_release>"
10693 msgstr ""
10694
10695 #. type: textblock
10696 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10697 msgid ""
10698 "The release string of the application or package, for package managers that "
10699 "use this.  If unavailable this is returned as an empty string C<\"\">."
10700 msgstr ""
10701
10702 #. type: =item
10703 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10704 msgid "C<app_install_path>"
10705 msgstr ""
10706
10707 #. type: textblock
10708 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10709 msgid ""
10710 "The installation path of the application (on operating systems such as "
10711 "Windows which use installation paths).  This path is in the format used by "
10712 "the guest operating system, it is not a libguestfs path."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10717 msgid "If unavailable this is returned as an empty string C<\"\">."
10718 msgstr ""
10719
10720 #. type: =item
10721 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10722 msgid "C<app_trans_path>"
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10727 msgid ""
10728 "The install path translated into a libguestfs path.  If unavailable this is "
10729 "returned as an empty string C<\"\">."
10730 msgstr ""
10731
10732 #. type: =item
10733 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10734 msgid "C<app_publisher>"
10735 msgstr ""
10736
10737 #. type: textblock
10738 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
10739 msgid ""
10740 "The name of the publisher of the application, for package managers that use "
10741 "this.  If unavailable this is returned as an empty string C<\"\">."
10742 msgstr ""
10743
10744 #. type: =item
10745 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
10746 msgid "C<app_url>"
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
10751 msgid ""
10752 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10753 "returned as an empty string C<\"\">."
10754 msgstr ""
10755
10756 #. type: =item
10757 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
10758 msgid "C<app_source_package>"
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
10763 msgid ""
10764 "For packaging systems which support this, the name of the source package.  "
10765 "If unavailable this is returned as an empty string C<\"\">."
10766 msgstr ""
10767
10768 #. type: =item
10769 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
10770 msgid "C<app_summary>"
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
10775 msgid ""
10776 "A short (usually one line) description of the application or package.  If "
10777 "unavailable this is returned as an empty string C<\"\">."
10778 msgstr ""
10779
10780 #. type: =item
10781 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
10782 msgid "C<app_description>"
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
10787 msgid ""
10788 "A longer description of the application or package.  If unavailable this is "
10789 "returned as an empty string C<\"\">."
10790 msgstr ""
10791
10792 #. type: =head2
10793 #: ../fish/guestfish-actions.pod:2400
10794 msgid "inspect-os"
10795 msgstr ""
10796
10797 #. type: verbatim
10798 #: ../fish/guestfish-actions.pod:2402
10799 #, no-wrap
10800 msgid ""
10801 " inspect-os\n"
10802 "\n"
10803 msgstr ""
10804
10805 #. type: textblock
10806 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
10807 msgid ""
10808 "This function uses other libguestfs functions and certain heuristics to "
10809 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10810 "for operating systems."
10811 msgstr ""
10812
10813 #. type: textblock
10814 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
10815 msgid "The list returned is empty if no operating systems were found."
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
10820 msgid ""
10821 "If one operating system was found, then this returns a list with a single "
10822 "element, which is the name of the root filesystem of this operating system.  "
10823 "It is also possible for this function to return a list containing more than "
10824 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10825 "element being the root filesystem of one of the operating systems."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:2417
10830 msgid ""
10831 "You can pass the root string(s) returned to other L</inspect-get-*> "
10832 "functions in order to query further information about each operating system, "
10833 "such as the name and version."
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:2422
10838 msgid ""
10839 "This function uses other libguestfs features such as L</mount-ro> and L</"
10840 "umount-all> in order to mount and unmount filesystems and look at the "
10841 "contents.  This should be called with no disks currently mounted.  The "
10842 "function may also use Augeas, so any existing Augeas handle will be closed."
10843 msgstr ""
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
10847 msgid ""
10848 "This function cannot decrypt encrypted disks.  The caller must do that first "
10849 "(supplying the necessary keys) if the disk is encrypted."
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
10854 #: ../fish/guestfish-actions.pod:2691
10855 msgid "See also L</list-filesystems>."
10856 msgstr ""
10857
10858 #. type: =head2
10859 #: ../fish/guestfish-actions.pod:2436
10860 msgid "is-blockdev"
10861 msgstr ""
10862
10863 #. type: verbatim
10864 #: ../fish/guestfish-actions.pod:2438
10865 #, no-wrap
10866 msgid ""
10867 " is-blockdev path\n"
10868 "\n"
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
10873 msgid ""
10874 "This returns C<true> if and only if there is a block device with the given "
10875 "C<path> name."
10876 msgstr ""
10877
10878 #. type: textblock
10879 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
10880 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
10881 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
10882 #: ../fish/guestfish-actions.pod:2542
10883 msgid "See also L</stat>."
10884 msgstr ""
10885
10886 #. type: =head2
10887 #: ../fish/guestfish-actions.pod:2445
10888 msgid "is-busy"
10889 msgstr ""
10890
10891 #. type: verbatim
10892 #: ../fish/guestfish-actions.pod:2447
10893 #, no-wrap
10894 msgid ""
10895 " is-busy\n"
10896 "\n"
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
10901 msgid ""
10902 "This returns true iff this handle is busy processing a command (in the "
10903 "C<BUSY> state)."
10904 msgstr ""
10905
10906 #. type: =head2
10907 #: ../fish/guestfish-actions.pod:2454
10908 msgid "is-chardev"
10909 msgstr ""
10910
10911 #. type: verbatim
10912 #: ../fish/guestfish-actions.pod:2456
10913 #, no-wrap
10914 msgid ""
10915 " is-chardev path\n"
10916 "\n"
10917 msgstr ""
10918
10919 #. type: textblock
10920 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
10921 msgid ""
10922 "This returns C<true> if and only if there is a character device with the "
10923 "given C<path> name."
10924 msgstr ""
10925
10926 #. type: =head2
10927 #: ../fish/guestfish-actions.pod:2463
10928 msgid "is-config"
10929 msgstr ""
10930
10931 #. type: verbatim
10932 #: ../fish/guestfish-actions.pod:2465
10933 #, no-wrap
10934 msgid ""
10935 " is-config\n"
10936 "\n"
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
10941 msgid ""
10942 "This returns true iff this handle is being configured (in the C<CONFIG> "
10943 "state)."
10944 msgstr ""
10945
10946 #. type: =head2
10947 #: ../fish/guestfish-actions.pod:2472
10948 msgid "is-dir"
10949 msgstr ""
10950
10951 #. type: verbatim
10952 #: ../fish/guestfish-actions.pod:2474
10953 #, no-wrap
10954 msgid ""
10955 " is-dir path\n"
10956 "\n"
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
10961 msgid ""
10962 "This returns C<true> if and only if there is a directory with the given "
10963 "C<path> name.  Note that it returns false for other objects like files."
10964 msgstr ""
10965
10966 #. type: =head2
10967 #: ../fish/guestfish-actions.pod:2482
10968 msgid "is-fifo"
10969 msgstr ""
10970
10971 #. type: verbatim
10972 #: ../fish/guestfish-actions.pod:2484
10973 #, no-wrap
10974 msgid ""
10975 " is-fifo path\n"
10976 "\n"
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
10981 msgid ""
10982 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10983 "given C<path> name."
10984 msgstr ""
10985
10986 #. type: =head2
10987 #: ../fish/guestfish-actions.pod:2491
10988 msgid "is-file"
10989 msgstr ""
10990
10991 #. type: verbatim
10992 #: ../fish/guestfish-actions.pod:2493
10993 #, no-wrap
10994 msgid ""
10995 " is-file path\n"
10996 "\n"
10997 msgstr ""
10998
10999 #. type: textblock
11000 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11001 msgid ""
11002 "This returns C<true> if and only if there is a regular file with the given "
11003 "C<path> name.  Note that it returns false for other objects like directories."
11004 msgstr ""
11005
11006 #. type: =head2
11007 #: ../fish/guestfish-actions.pod:2501
11008 msgid "is-launching"
11009 msgstr ""
11010
11011 #. type: verbatim
11012 #: ../fish/guestfish-actions.pod:2503
11013 #, no-wrap
11014 msgid ""
11015 " is-launching\n"
11016 "\n"
11017 msgstr ""
11018
11019 #. type: textblock
11020 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11021 msgid ""
11022 "This returns true iff this handle is launching the subprocess (in the "
11023 "C<LAUNCHING> state)."
11024 msgstr ""
11025
11026 #. type: =head2
11027 #: ../fish/guestfish-actions.pod:2510
11028 msgid "is-lv"
11029 msgstr ""
11030
11031 #. type: verbatim
11032 #: ../fish/guestfish-actions.pod:2512
11033 #, no-wrap
11034 msgid ""
11035 " is-lv device\n"
11036 "\n"
11037 msgstr ""
11038
11039 #. type: textblock
11040 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11041 msgid ""
11042 "This command tests whether C<device> is a logical volume, and returns true "
11043 "iff this is the case."
11044 msgstr ""
11045
11046 #. type: =head2
11047 #: ../fish/guestfish-actions.pod:2517
11048 msgid "is-ready"
11049 msgstr ""
11050
11051 #. type: verbatim
11052 #: ../fish/guestfish-actions.pod:2519
11053 #, no-wrap
11054 msgid ""
11055 " is-ready\n"
11056 "\n"
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11061 msgid ""
11062 "This returns true iff this handle is ready to accept commands (in the "
11063 "C<READY> state)."
11064 msgstr ""
11065
11066 #. type: =head2
11067 #: ../fish/guestfish-actions.pod:2526
11068 msgid "is-socket"
11069 msgstr ""
11070
11071 #. type: verbatim
11072 #: ../fish/guestfish-actions.pod:2528
11073 #, no-wrap
11074 msgid ""
11075 " is-socket path\n"
11076 "\n"
11077 msgstr ""
11078
11079 #. type: textblock
11080 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11081 msgid ""
11082 "This returns C<true> if and only if there is a Unix domain socket with the "
11083 "given C<path> name."
11084 msgstr ""
11085
11086 #. type: =head2
11087 #: ../fish/guestfish-actions.pod:2535
11088 msgid "is-symlink"
11089 msgstr ""
11090
11091 #. type: verbatim
11092 #: ../fish/guestfish-actions.pod:2537
11093 #, no-wrap
11094 msgid ""
11095 " is-symlink path\n"
11096 "\n"
11097 msgstr ""
11098
11099 #. type: textblock
11100 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11101 msgid ""
11102 "This returns C<true> if and only if there is a symbolic link with the given "
11103 "C<path> name."
11104 msgstr ""
11105
11106 #. type: =head2
11107 #: ../fish/guestfish-actions.pod:2544
11108 msgid "is-zero"
11109 msgstr ""
11110
11111 #. type: verbatim
11112 #: ../fish/guestfish-actions.pod:2546
11113 #, no-wrap
11114 msgid ""
11115 " is-zero path\n"
11116 "\n"
11117 msgstr ""
11118
11119 #. type: textblock
11120 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11121 msgid ""
11122 "This returns true iff the file exists and the file is empty or it contains "
11123 "all zero bytes."
11124 msgstr ""
11125
11126 #. type: =head2
11127 #: ../fish/guestfish-actions.pod:2551
11128 msgid "is-zero-device"
11129 msgstr ""
11130
11131 #. type: verbatim
11132 #: ../fish/guestfish-actions.pod:2553
11133 #, no-wrap
11134 msgid ""
11135 " is-zero-device device\n"
11136 "\n"
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11141 msgid "This returns true iff the device exists and contains all zero bytes."
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11146 msgid "Note that for large devices this can take a long time to run."
11147 msgstr ""
11148
11149 #. type: =head2
11150 #: ../fish/guestfish-actions.pod:2559
11151 msgid "kill-subprocess"
11152 msgstr ""
11153
11154 #. type: verbatim
11155 #: ../fish/guestfish-actions.pod:2561
11156 #, no-wrap
11157 msgid ""
11158 " kill-subprocess\n"
11159 "\n"
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11164 msgid "This kills the qemu subprocess.  You should never need to call this."
11165 msgstr ""
11166
11167 #. type: =head2
11168 #: ../fish/guestfish-actions.pod:2565
11169 msgid "launch"
11170 msgstr ""
11171
11172 #. type: =head2
11173 #: ../fish/guestfish-actions.pod:2567
11174 msgid "run"
11175 msgstr ""
11176
11177 #. type: verbatim
11178 #: ../fish/guestfish-actions.pod:2569
11179 #, no-wrap
11180 msgid ""
11181 " launch\n"
11182 "\n"
11183 msgstr ""
11184
11185 #. type: textblock
11186 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11187 msgid ""
11188 "Internally libguestfs is implemented by running a virtual machine using "
11189 "L<qemu(1)>."
11190 msgstr ""
11191
11192 #. type: textblock
11193 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11194 msgid ""
11195 "You should call this after configuring the handle (eg. adding drives) but "
11196 "before performing any actions."
11197 msgstr ""
11198
11199 #. type: =head2
11200 #: ../fish/guestfish-actions.pod:2577
11201 msgid "lchown"
11202 msgstr ""
11203
11204 #. type: verbatim
11205 #: ../fish/guestfish-actions.pod:2579
11206 #, no-wrap
11207 msgid ""
11208 " lchown owner group path\n"
11209 "\n"
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:2581
11214 msgid ""
11215 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11216 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11217 "target."
11218 msgstr ""
11219
11220 #. type: =head2
11221 #: ../fish/guestfish-actions.pod:2589
11222 msgid "lgetxattr"
11223 msgstr ""
11224
11225 #. type: verbatim
11226 #: ../fish/guestfish-actions.pod:2591
11227 #, no-wrap
11228 msgid ""
11229 " lgetxattr path name\n"
11230 "\n"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11235 msgid ""
11236 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11237 "is a symlink, then this call returns an extended attribute from the symlink."
11238 msgstr ""
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:2607
11242 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11243 msgstr ""
11244
11245 #. type: =head2
11246 #: ../fish/guestfish-actions.pod:2609
11247 msgid "lgetxattrs"
11248 msgstr ""
11249
11250 #. type: verbatim
11251 #: ../fish/guestfish-actions.pod:2611
11252 #, no-wrap
11253 msgid ""
11254 " lgetxattrs path\n"
11255 "\n"
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:2613
11260 msgid ""
11261 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11262 "it returns the extended attributes of the link itself."
11263 msgstr ""
11264
11265 #. type: =head2
11266 #: ../fish/guestfish-actions.pod:2617
11267 msgid "list-9p"
11268 msgstr ""
11269
11270 #. type: verbatim
11271 #: ../fish/guestfish-actions.pod:2619
11272 #, no-wrap
11273 msgid ""
11274 " list-9p\n"
11275 "\n"
11276 msgstr ""
11277
11278 #. type: textblock
11279 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11280 msgid ""
11281 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11282 "returned."
11283 msgstr ""
11284
11285 #. type: =head2
11286 #: ../fish/guestfish-actions.pod:2624
11287 msgid "list-devices"
11288 msgstr ""
11289
11290 #. type: verbatim
11291 #: ../fish/guestfish-actions.pod:2626
11292 #, no-wrap
11293 msgid ""
11294 " list-devices\n"
11295 "\n"
11296 msgstr ""
11297
11298 #. type: textblock
11299 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11300 msgid "List all the block devices."
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11305 msgid "The full block device names are returned, eg. C</dev/sda>."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:2634
11310 msgid "list-dm-devices"
11311 msgstr ""
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:2636
11315 #, no-wrap
11316 msgid ""
11317 " list-dm-devices\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11323 msgid "List all device mapper devices."
11324 msgstr ""
11325
11326 #. type: textblock
11327 #: ../fish/guestfish-actions.pod:2640
11328 msgid ""
11329 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11330 "previous call to L</luks-open>."
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2643
11335 msgid ""
11336 "Device mapper devices which correspond to logical volumes are I<not> "
11337 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11338 msgstr ""
11339
11340 #. type: =head2
11341 #: ../fish/guestfish-actions.pod:2647
11342 msgid "list-filesystems"
11343 msgstr ""
11344
11345 #. type: verbatim
11346 #: ../fish/guestfish-actions.pod:2649
11347 #, no-wrap
11348 msgid ""
11349 " list-filesystems\n"
11350 "\n"
11351 msgstr ""
11352
11353 #. type: textblock
11354 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11355 msgid ""
11356 "This inspection command looks for filesystems on partitions, block devices "
11357 "and logical volumes, returning a list of devices containing filesystems and "
11358 "their type."
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11363 msgid ""
11364 "The return value is a hash, where the keys are the devices containing "
11365 "filesystems, and the values are the filesystem types.  For example:"
11366 msgstr ""
11367
11368 #. type: verbatim
11369 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11370 #, no-wrap
11371 msgid ""
11372 " \"/dev/sda1\" => \"ntfs\"\n"
11373 " \"/dev/sda2\" => \"ext2\"\n"
11374 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11375 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11376 "\n"
11377 msgstr ""
11378
11379 #. type: textblock
11380 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11381 msgid ""
11382 "The value can have the special value \"unknown\", meaning the content of the "
11383 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:2668
11388 msgid ""
11389 "This command runs other libguestfs commands, which might include L</mount> "
11390 "and L</umount>, and therefore you should use this soon after launch and only "
11391 "when nothing is mounted."
11392 msgstr ""
11393
11394 #. type: textblock
11395 #: ../fish/guestfish-actions.pod:2672
11396 msgid ""
11397 "Not all of the filesystems returned will be mountable.  In particular, swap "
11398 "partitions are returned in the list.  Also this command does not check that "
11399 "each filesystem found is valid and mountable, and some filesystems might be "
11400 "mountable but require special options.  Filesystems may not all belong to a "
11401 "single logical operating system (use L</inspect-os> to look for OSes)."
11402 msgstr ""
11403
11404 #. type: =head2
11405 #: ../fish/guestfish-actions.pod:2680
11406 msgid "list-partitions"
11407 msgstr ""
11408
11409 #. type: verbatim
11410 #: ../fish/guestfish-actions.pod:2682
11411 #, no-wrap
11412 msgid ""
11413 " list-partitions\n"
11414 "\n"
11415 msgstr ""
11416
11417 #. type: textblock
11418 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11419 msgid "List all the partitions detected on all block devices."
11420 msgstr ""
11421
11422 #. type: textblock
11423 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11424 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2688
11429 msgid ""
11430 "This does not return logical volumes.  For that you will need to call L</"
11431 "lvs>."
11432 msgstr ""
11433
11434 #. type: =head2
11435 #: ../fish/guestfish-actions.pod:2693
11436 msgid "ll"
11437 msgstr ""
11438
11439 #. type: verbatim
11440 #: ../fish/guestfish-actions.pod:2695
11441 #, no-wrap
11442 msgid ""
11443 " ll directory\n"
11444 "\n"
11445 msgstr ""
11446
11447 #. type: textblock
11448 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11449 msgid ""
11450 "List the files in C<directory> (relative to the root directory, there is no "
11451 "cwd) in the format of 'ls -la'."
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11456 msgid ""
11457 "This command is mostly useful for interactive sessions.  It is I<not> "
11458 "intended that you try to parse the output string."
11459 msgstr ""
11460
11461 #. type: =head2
11462 #: ../fish/guestfish-actions.pod:2703
11463 msgid "ln"
11464 msgstr ""
11465
11466 #. type: verbatim
11467 #: ../fish/guestfish-actions.pod:2705
11468 #, no-wrap
11469 msgid ""
11470 " ln target linkname\n"
11471 "\n"
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11476 msgid "This command creates a hard link using the C<ln> command."
11477 msgstr ""
11478
11479 #. type: =head2
11480 #: ../fish/guestfish-actions.pod:2709
11481 msgid "ln-f"
11482 msgstr ""
11483
11484 #. type: verbatim
11485 #: ../fish/guestfish-actions.pod:2711
11486 #, no-wrap
11487 msgid ""
11488 " ln-f target linkname\n"
11489 "\n"
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11494 msgid ""
11495 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11496 "option removes the link (C<linkname>) if it exists already."
11497 msgstr ""
11498
11499 #. type: =head2
11500 #: ../fish/guestfish-actions.pod:2716
11501 msgid "ln-s"
11502 msgstr ""
11503
11504 #. type: verbatim
11505 #: ../fish/guestfish-actions.pod:2718
11506 #, no-wrap
11507 msgid ""
11508 " ln-s target linkname\n"
11509 "\n"
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11514 msgid "This command creates a symbolic link using the C<ln -s> command."
11515 msgstr ""
11516
11517 #. type: =head2
11518 #: ../fish/guestfish-actions.pod:2722
11519 msgid "ln-sf"
11520 msgstr ""
11521
11522 #. type: verbatim
11523 #: ../fish/guestfish-actions.pod:2724
11524 #, no-wrap
11525 msgid ""
11526 " ln-sf target linkname\n"
11527 "\n"
11528 msgstr ""
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11532 msgid ""
11533 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11534 "option removes the link (C<linkname>) if it exists already."
11535 msgstr ""
11536
11537 #. type: =head2
11538 #: ../fish/guestfish-actions.pod:2729
11539 msgid "lremovexattr"
11540 msgstr ""
11541
11542 #. type: verbatim
11543 #: ../fish/guestfish-actions.pod:2731
11544 #, no-wrap
11545 msgid ""
11546 " lremovexattr xattr path\n"
11547 "\n"
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:2733
11552 msgid ""
11553 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11554 "it removes an extended attribute of the link itself."
11555 msgstr ""
11556
11557 #. type: =head2
11558 #: ../fish/guestfish-actions.pod:2737
11559 msgid "ls"
11560 msgstr ""
11561
11562 #. type: verbatim
11563 #: ../fish/guestfish-actions.pod:2739
11564 #, no-wrap
11565 msgid ""
11566 " ls directory\n"
11567 "\n"
11568 msgstr ""
11569
11570 #. type: textblock
11571 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11572 msgid ""
11573 "List the files in C<directory> (relative to the root directory, there is no "
11574 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../fish/guestfish-actions.pod:2745
11579 msgid ""
11580 "This command is mostly useful for interactive sessions.  Programs should "
11581 "probably use L</readdir> instead."
11582 msgstr ""
11583
11584 #. type: =head2
11585 #: ../fish/guestfish-actions.pod:2748
11586 msgid "lsetxattr"
11587 msgstr ""
11588
11589 #. type: verbatim
11590 #: ../fish/guestfish-actions.pod:2750
11591 #, no-wrap
11592 msgid ""
11593 " lsetxattr xattr val vallen path\n"
11594 "\n"
11595 msgstr ""
11596
11597 #. type: textblock
11598 #: ../fish/guestfish-actions.pod:2752
11599 msgid ""
11600 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11601 "sets an extended attribute of the link itself."
11602 msgstr ""
11603
11604 #. type: =head2
11605 #: ../fish/guestfish-actions.pod:2756
11606 msgid "lstat"
11607 msgstr ""
11608
11609 #. type: verbatim
11610 #: ../fish/guestfish-actions.pod:2758
11611 #, no-wrap
11612 msgid ""
11613 " lstat path\n"
11614 "\n"
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11619 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11620 msgid "Returns file information for the given C<path>."
11621 msgstr ""
11622
11623 #. type: textblock
11624 #: ../fish/guestfish-actions.pod:2762
11625 msgid ""
11626 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11627 "the link is stat-ed, not the file it refers to."
11628 msgstr ""
11629
11630 #. type: textblock
11631 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11632 msgid "This is the same as the C<lstat(2)> system call."
11633 msgstr ""
11634
11635 #. type: =head2
11636 #: ../fish/guestfish-actions.pod:2768
11637 msgid "lstatlist"
11638 msgstr ""
11639
11640 #. type: verbatim
11641 #: ../fish/guestfish-actions.pod:2770
11642 #, no-wrap
11643 msgid ""
11644 " lstatlist path 'names ...'\n"
11645 "\n"
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../fish/guestfish-actions.pod:2772
11650 msgid ""
11651 "This call allows you to perform the L</lstat> operation on multiple files, "
11652 "where all files are in the directory C<path>.  C<names> is the list of files "
11653 "from this directory."
11654 msgstr ""
11655
11656 #. type: textblock
11657 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11658 msgid ""
11659 "On return you get a list of stat structs, with a one-to-one correspondence "
11660 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11661 "then the C<ino> field of that structure is set to C<-1>."
11662 msgstr ""
11663
11664 #. type: textblock
11665 #: ../fish/guestfish-actions.pod:2781
11666 msgid ""
11667 "This call is intended for programs that want to efficiently list a directory "
11668 "contents without making many round-trips.  See also L</lxattrlist> for a "
11669 "similarly efficient call for getting extended attributes.  Very long "
11670 "directory listings might cause the protocol message size to be exceeded, "
11671 "causing this call to fail.  The caller must split up such requests into "
11672 "smaller groups of names."
11673 msgstr ""
11674
11675 #. type: =head2
11676 #: ../fish/guestfish-actions.pod:2789
11677 msgid "luks-add-key"
11678 msgstr ""
11679
11680 #. type: verbatim
11681 #: ../fish/guestfish-actions.pod:2791
11682 #, no-wrap
11683 msgid ""
11684 " luks-add-key device keyslot\n"
11685 "\n"
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
11690 msgid ""
11691 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11692 "existing key, and is used to access the device.  C<newkey> is the new key to "
11693 "add.  C<keyslot> is the key slot that will be replaced."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:2798
11698 msgid ""
11699 "Note that if C<keyslot> already contains a key, then this command will "
11700 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
11705 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
11706 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
11707 msgid ""
11708 "This command has one or more key or passphrase parameters.  Guestfish will "
11709 "prompt for these separately."
11710 msgstr ""
11711
11712 #. type: =head2
11713 #: ../fish/guestfish-actions.pod:2805
11714 msgid "luks-close"
11715 msgstr ""
11716
11717 #. type: verbatim
11718 #: ../fish/guestfish-actions.pod:2807
11719 #, no-wrap
11720 msgid ""
11721 " luks-close device\n"
11722 "\n"
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:2809
11727 msgid ""
11728 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11729 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11730 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11731 "block device."
11732 msgstr ""
11733
11734 #. type: =head2
11735 #: ../fish/guestfish-actions.pod:2815
11736 msgid "luks-format"
11737 msgstr ""
11738
11739 #. type: verbatim
11740 #: ../fish/guestfish-actions.pod:2817
11741 #, no-wrap
11742 msgid ""
11743 " luks-format device keyslot\n"
11744 "\n"
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
11749 msgid ""
11750 "This command erases existing data on C<device> and formats the device as a "
11751 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11752 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
11757 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
11758 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
11759 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
11760 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
11761 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
11762 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
11763 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
11764 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
11765 msgid ""
11766 "B<This command is dangerous.  Without careful use you can easily destroy all "
11767 "your data>."
11768 msgstr ""
11769
11770 #. type: =head2
11771 #: ../fish/guestfish-actions.pod:2830
11772 msgid "luks-format-cipher"
11773 msgstr ""
11774
11775 #. type: verbatim
11776 #: ../fish/guestfish-actions.pod:2832
11777 #, no-wrap
11778 msgid ""
11779 " luks-format-cipher device keyslot cipher\n"
11780 "\n"
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:2834
11785 msgid ""
11786 "This command is the same as L</luks-format> but it also allows you to set "
11787 "the C<cipher> used."
11788 msgstr ""
11789
11790 #. type: =head2
11791 #: ../fish/guestfish-actions.pod:2843
11792 msgid "luks-kill-slot"
11793 msgstr ""
11794
11795 #. type: verbatim
11796 #: ../fish/guestfish-actions.pod:2845
11797 #, no-wrap
11798 msgid ""
11799 " luks-kill-slot device keyslot\n"
11800 "\n"
11801 msgstr ""
11802
11803 #. type: textblock
11804 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
11805 msgid ""
11806 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11807 "device C<device>.  C<key> must be one of the I<other> keys."
11808 msgstr ""
11809
11810 #. type: =head2
11811 #: ../fish/guestfish-actions.pod:2854
11812 msgid "luks-open"
11813 msgstr ""
11814
11815 #. type: verbatim
11816 #: ../fish/guestfish-actions.pod:2856
11817 #, no-wrap
11818 msgid ""
11819 " luks-open device mapname\n"
11820 "\n"
11821 msgstr ""
11822
11823 #. type: textblock
11824 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
11825 msgid ""
11826 "This command opens a block device which has been encrypted according to the "
11827 "Linux Unified Key Setup (LUKS) standard."
11828 msgstr ""
11829
11830 #. type: textblock
11831 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
11832 msgid "C<device> is the encrypted block device or partition."
11833 msgstr ""
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
11837 msgid ""
11838 "The caller must supply one of the keys associated with the LUKS block "
11839 "device, in the C<key> parameter."
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
11844 msgid ""
11845 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11846 "writes to this block device are decrypted from and encrypted to the "
11847 "underlying C<device> respectively."
11848 msgstr ""
11849
11850 #. type: textblock
11851 #: ../fish/guestfish-actions.pod:2870
11852 msgid ""
11853 "If this block device contains LVM volume groups, then calling L</vgscan> "
11854 "followed by L</vg-activate-all> will make them visible."
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:2874
11859 msgid "Use L</list-dm-devices> to list all device mapper devices."
11860 msgstr ""
11861
11862 #. type: =head2
11863 #: ../fish/guestfish-actions.pod:2880
11864 msgid "luks-open-ro"
11865 msgstr ""
11866
11867 #. type: verbatim
11868 #: ../fish/guestfish-actions.pod:2882
11869 #, no-wrap
11870 msgid ""
11871 " luks-open-ro device mapname\n"
11872 "\n"
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:2884
11877 msgid ""
11878 "This is the same as L</luks-open> except that a read-only mapping is created."
11879 msgstr ""
11880
11881 #. type: =head2
11882 #: ../fish/guestfish-actions.pod:2890
11883 msgid "lvcreate"
11884 msgstr ""
11885
11886 #. type: verbatim
11887 #: ../fish/guestfish-actions.pod:2892
11888 #, no-wrap
11889 msgid ""
11890 " lvcreate logvol volgroup mbytes\n"
11891 "\n"
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
11896 msgid ""
11897 "This creates an LVM logical volume called C<logvol> on the volume group "
11898 "C<volgroup>, with C<size> megabytes."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../fish/guestfish-actions.pod:2897
11903 msgid "lvm-canonical-lv-name"
11904 msgstr ""
11905
11906 #. type: verbatim
11907 #: ../fish/guestfish-actions.pod:2899
11908 #, no-wrap
11909 msgid ""
11910 " lvm-canonical-lv-name lvname\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
11916 msgid ""
11917 "This converts alternative naming schemes for LVs that you might find to the "
11918 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11919 "LV>."
11920 msgstr ""
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
11924 msgid ""
11925 "This command returns an error if the C<lvname> parameter does not refer to a "
11926 "logical volume."
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../fish/guestfish-actions.pod:2908
11931 msgid "See also L</is-lv>."
11932 msgstr ""
11933
11934 #. type: =head2
11935 #: ../fish/guestfish-actions.pod:2910
11936 msgid "lvm-clear-filter"
11937 msgstr ""
11938
11939 #. type: verbatim
11940 #: ../fish/guestfish-actions.pod:2912
11941 #, no-wrap
11942 msgid ""
11943 " lvm-clear-filter\n"
11944 "\n"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:2914
11949 msgid ""
11950 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11951 "block device."
11952 msgstr ""
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
11956 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
11957 msgid ""
11958 "This command also clears the LVM cache and performs a volume group scan."
11959 msgstr ""
11960
11961 #. type: =head2
11962 #: ../fish/guestfish-actions.pod:2920
11963 msgid "lvm-remove-all"
11964 msgstr ""
11965
11966 #. type: verbatim
11967 #: ../fish/guestfish-actions.pod:2922
11968 #, no-wrap
11969 msgid ""
11970 " lvm-remove-all\n"
11971 "\n"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
11976 msgid ""
11977 "This command removes all LVM logical volumes, volume groups and physical "
11978 "volumes."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../fish/guestfish-actions.pod:2930
11983 msgid "lvm-set-filter"
11984 msgstr ""
11985
11986 #. type: verbatim
11987 #: ../fish/guestfish-actions.pod:2932
11988 #, no-wrap
11989 msgid ""
11990 " lvm-set-filter 'devices ...'\n"
11991 "\n"
11992 msgstr ""
11993
11994 #. type: textblock
11995 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
11996 msgid ""
11997 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11998 "block devices in the list C<devices>, and will ignore all other attached "
11999 "block devices."
12000 msgstr ""
12001
12002 #. type: textblock
12003 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12004 msgid ""
12005 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12006 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12007 "there are two types of duplication possible: either cloned PVs/VGs which "
12008 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12009 "same name.  In normal operation you cannot create this situation, but you "
12010 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12011 "inside the LVM metadata."
12012 msgstr ""
12013
12014 #. type: textblock
12015 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12016 msgid "You can filter whole block devices or individual partitions."
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12021 msgid ""
12022 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12023 "filesystem), even if you are not filtering out that VG."
12024 msgstr ""
12025
12026 #. type: =head2
12027 #: ../fish/guestfish-actions.pod:2957
12028 msgid "lvremove"
12029 msgstr ""
12030
12031 #. type: verbatim
12032 #: ../fish/guestfish-actions.pod:2959
12033 #, no-wrap
12034 msgid ""
12035 " lvremove device\n"
12036 "\n"
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12041 msgid ""
12042 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12043 "LV, such as C</dev/VG/LV>."
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12048 msgid ""
12049 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12050 "dev/VG>."
12051 msgstr ""
12052
12053 #. type: =head2
12054 #: ../fish/guestfish-actions.pod:2967
12055 msgid "lvrename"
12056 msgstr ""
12057
12058 #. type: verbatim
12059 #: ../fish/guestfish-actions.pod:2969
12060 #, no-wrap
12061 msgid ""
12062 " lvrename logvol newlogvol\n"
12063 "\n"
12064 msgstr ""
12065
12066 #. type: textblock
12067 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12068 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12069 msgstr ""
12070
12071 #. type: =head2
12072 #: ../fish/guestfish-actions.pod:2973
12073 msgid "lvresize"
12074 msgstr ""
12075
12076 #. type: verbatim
12077 #: ../fish/guestfish-actions.pod:2975
12078 #, no-wrap
12079 msgid ""
12080 " lvresize device mbytes\n"
12081 "\n"
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12086 msgid ""
12087 "This resizes (expands or shrinks) an existing LVM logical volume to "
12088 "C<mbytes>.  When reducing, data in the reduced part is lost."
12089 msgstr ""
12090
12091 #. type: =head2
12092 #: ../fish/guestfish-actions.pod:2981
12093 msgid "lvresize-free"
12094 msgstr ""
12095
12096 #. type: verbatim
12097 #: ../fish/guestfish-actions.pod:2983
12098 #, no-wrap
12099 msgid ""
12100 " lvresize-free lv percent\n"
12101 "\n"
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12106 msgid ""
12107 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12108 "remaining free space in the volume group.  Commonly you would call this with "
12109 "pc = 100 which expands the logical volume as much as possible, using all "
12110 "remaining free space in the volume group."
12111 msgstr ""
12112
12113 #. type: =head2
12114 #: ../fish/guestfish-actions.pod:2991
12115 msgid "lvs"
12116 msgstr ""
12117
12118 #. type: verbatim
12119 #: ../fish/guestfish-actions.pod:2993
12120 #, no-wrap
12121 msgid ""
12122 " lvs\n"
12123 "\n"
12124 msgstr ""
12125
12126 #. type: textblock
12127 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12128 msgid ""
12129 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12130 "(8)> command."
12131 msgstr ""
12132
12133 #. type: textblock
12134 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12135 msgid ""
12136 "This returns a list of the logical volume device names (eg. C</dev/"
12137 "VolGroup00/LogVol00>)."
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3001
12142 msgid "See also L</lvs-full>, L</list-filesystems>."
12143 msgstr ""
12144
12145 #. type: =head2
12146 #: ../fish/guestfish-actions.pod:3003
12147 msgid "lvs-full"
12148 msgstr ""
12149
12150 #. type: verbatim
12151 #: ../fish/guestfish-actions.pod:3005
12152 #, no-wrap
12153 msgid ""
12154 " lvs-full\n"
12155 "\n"
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12160 msgid ""
12161 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12162 "(8)> command.  The \"full\" version includes all fields."
12163 msgstr ""
12164
12165 #. type: =head2
12166 #: ../fish/guestfish-actions.pod:3010
12167 msgid "lvuuid"
12168 msgstr ""
12169
12170 #. type: verbatim
12171 #: ../fish/guestfish-actions.pod:3012
12172 #, no-wrap
12173 msgid ""
12174 " lvuuid device\n"
12175 "\n"
12176 msgstr ""
12177
12178 #. type: textblock
12179 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12180 msgid "This command returns the UUID of the LVM LV C<device>."
12181 msgstr ""
12182
12183 #. type: =head2
12184 #: ../fish/guestfish-actions.pod:3016
12185 msgid "lxattrlist"
12186 msgstr ""
12187
12188 #. type: verbatim
12189 #: ../fish/guestfish-actions.pod:3018
12190 #, no-wrap
12191 msgid ""
12192 " lxattrlist path 'names ...'\n"
12193 "\n"
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12198 msgid ""
12199 "This call allows you to get the extended attributes of multiple files, where "
12200 "all files are in the directory C<path>.  C<names> is the list of files from "
12201 "this directory."
12202 msgstr ""
12203
12204 #. type: textblock
12205 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12206 msgid ""
12207 "On return you get a flat list of xattr structs which must be interpreted "
12208 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12209 "C<attrval> in this struct is zero-length to indicate there was an error "
12210 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12211 "number (the number of following attributes for this file, which could be C<"
12212 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12213 "for the first named file.  This repeats for the second and subsequent files."
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:3034
12218 msgid ""
12219 "This call is intended for programs that want to efficiently list a directory "
12220 "contents without making many round-trips.  See also L</lstatlist> for a "
12221 "similarly efficient call for getting standard stats.  Very long directory "
12222 "listings might cause the protocol message size to be exceeded, causing this "
12223 "call to fail.  The caller must split up such requests into smaller groups of "
12224 "names."
12225 msgstr ""
12226
12227 #. type: =head2
12228 #: ../fish/guestfish-actions.pod:3042
12229 msgid "mkdir"
12230 msgstr ""
12231
12232 #. type: verbatim
12233 #: ../fish/guestfish-actions.pod:3044
12234 #, no-wrap
12235 msgid ""
12236 " mkdir path\n"
12237 "\n"
12238 msgstr ""
12239
12240 #. type: textblock
12241 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12242 msgid "Create a directory named C<path>."
12243 msgstr ""
12244
12245 #. type: =head2
12246 #: ../fish/guestfish-actions.pod:3048
12247 msgid "mkdir-mode"
12248 msgstr ""
12249
12250 #. type: verbatim
12251 #: ../fish/guestfish-actions.pod:3050
12252 #, no-wrap
12253 msgid ""
12254 " mkdir-mode path mode\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12260 msgid ""
12261 "This command creates a directory, setting the initial permissions of the "
12262 "directory to C<mode>."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12267 msgid ""
12268 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12269 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12270 "other ways."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:3059
12275 msgid "See also L</mkdir>, L</umask>"
12276 msgstr ""
12277
12278 #. type: =head2
12279 #: ../fish/guestfish-actions.pod:3061
12280 msgid "mkdir-p"
12281 msgstr ""
12282
12283 #. type: verbatim
12284 #: ../fish/guestfish-actions.pod:3063
12285 #, no-wrap
12286 msgid ""
12287 " mkdir-p path\n"
12288 "\n"
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12293 msgid ""
12294 "Create a directory named C<path>, creating any parent directories as "
12295 "necessary.  This is like the C<mkdir -p> shell command."
12296 msgstr ""
12297
12298 #. type: =head2
12299 #: ../fish/guestfish-actions.pod:3068
12300 msgid "mkdtemp"
12301 msgstr ""
12302
12303 #. type: verbatim
12304 #: ../fish/guestfish-actions.pod:3070
12305 #, no-wrap
12306 msgid ""
12307 " mkdtemp template\n"
12308 "\n"
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12313 msgid ""
12314 "This command creates a temporary directory.  The C<template> parameter "
12315 "should be a full pathname for the temporary directory name with the final "
12316 "six characters being \"XXXXXX\"."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12321 msgid ""
12322 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12323 "being suitable for Windows filesystems."
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12328 msgid "The name of the temporary directory that was created is returned."
12329 msgstr ""
12330
12331 #. type: textblock
12332 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12333 msgid "The temporary directory is created with mode 0700 and is owned by root."
12334 msgstr ""
12335
12336 #. type: textblock
12337 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12338 msgid ""
12339 "The caller is responsible for deleting the temporary directory and its "
12340 "contents after use."
12341 msgstr ""
12342
12343 #. type: textblock
12344 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12345 msgid "See also: L<mkdtemp(3)>"
12346 msgstr ""
12347
12348 #. type: =head2
12349 #: ../fish/guestfish-actions.pod:3091
12350 msgid "mke2fs-J"
12351 msgstr ""
12352
12353 #. type: verbatim
12354 #: ../fish/guestfish-actions.pod:3093
12355 #, no-wrap
12356 msgid ""
12357 " mke2fs-J fstype blocksize device journal\n"
12358 "\n"
12359 msgstr ""
12360
12361 #. type: textblock
12362 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12363 msgid ""
12364 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12365 "C<journal>.  It is equivalent to the command:"
12366 msgstr ""
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12370 #, no-wrap
12371 msgid ""
12372 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:3101
12378 msgid "See also L</mke2journal>."
12379 msgstr ""
12380
12381 #. type: =head2
12382 #: ../fish/guestfish-actions.pod:3103
12383 msgid "mke2fs-JL"
12384 msgstr ""
12385
12386 #. type: verbatim
12387 #: ../fish/guestfish-actions.pod:3105
12388 #, no-wrap
12389 msgid ""
12390 " mke2fs-JL fstype blocksize device label\n"
12391 "\n"
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12396 msgid ""
12397 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12398 "the journal labeled C<label>."
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../fish/guestfish-actions.pod:3110
12403 msgid "See also L</mke2journal-L>."
12404 msgstr ""
12405
12406 #. type: =head2
12407 #: ../fish/guestfish-actions.pod:3112
12408 msgid "mke2fs-JU"
12409 msgstr ""
12410
12411 #. type: verbatim
12412 #: ../fish/guestfish-actions.pod:3114
12413 #, no-wrap
12414 msgid ""
12415 " mke2fs-JU fstype blocksize device uuid\n"
12416 "\n"
12417 msgstr ""
12418
12419 #. type: textblock
12420 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12421 msgid ""
12422 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12423 "the journal with UUID C<uuid>."
12424 msgstr ""
12425
12426 #. type: textblock
12427 #: ../fish/guestfish-actions.pod:3119
12428 msgid "See also L</mke2journal-U>."
12429 msgstr ""
12430
12431 #. type: =head2
12432 #: ../fish/guestfish-actions.pod:3121
12433 msgid "mke2journal"
12434 msgstr ""
12435
12436 #. type: verbatim
12437 #: ../fish/guestfish-actions.pod:3123
12438 #, no-wrap
12439 msgid ""
12440 " mke2journal blocksize device\n"
12441 "\n"
12442 msgstr ""
12443
12444 #. type: textblock
12445 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12446 msgid ""
12447 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12448 "command:"
12449 msgstr ""
12450
12451 #. type: verbatim
12452 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12453 #, no-wrap
12454 msgid ""
12455 " mke2fs -O journal_dev -b blocksize device\n"
12456 "\n"
12457 msgstr ""
12458
12459 #. type: =head2
12460 #: ../fish/guestfish-actions.pod:3130
12461 msgid "mke2journal-L"
12462 msgstr ""
12463
12464 #. type: verbatim
12465 #: ../fish/guestfish-actions.pod:3132
12466 #, no-wrap
12467 msgid ""
12468 " mke2journal-L blocksize label device\n"
12469 "\n"
12470 msgstr ""
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12474 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12475 msgstr ""
12476
12477 #. type: =head2
12478 #: ../fish/guestfish-actions.pod:3136
12479 msgid "mke2journal-U"
12480 msgstr ""
12481
12482 #. type: verbatim
12483 #: ../fish/guestfish-actions.pod:3138
12484 #, no-wrap
12485 msgid ""
12486 " mke2journal-U blocksize uuid device\n"
12487 "\n"
12488 msgstr ""
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12492 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12493 msgstr ""
12494
12495 #. type: =head2
12496 #: ../fish/guestfish-actions.pod:3142
12497 msgid "mkfifo"
12498 msgstr ""
12499
12500 #. type: verbatim
12501 #: ../fish/guestfish-actions.pod:3144
12502 #, no-wrap
12503 msgid ""
12504 " mkfifo mode path\n"
12505 "\n"
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:3146
12510 msgid ""
12511 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12512 "is just a convenient wrapper around L</mknod>."
12513 msgstr ""
12514
12515 #. type: =head2
12516 #: ../fish/guestfish-actions.pod:3152
12517 msgid "mkfs"
12518 msgstr ""
12519
12520 #. type: verbatim
12521 #: ../fish/guestfish-actions.pod:3154
12522 #, no-wrap
12523 msgid ""
12524 " mkfs fstype device\n"
12525 "\n"
12526 msgstr ""
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12530 msgid ""
12531 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12532 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12533 msgstr ""
12534
12535 #. type: =head2
12536 #: ../fish/guestfish-actions.pod:3160
12537 msgid "mkfs-b"
12538 msgstr ""
12539
12540 #. type: verbatim
12541 #: ../fish/guestfish-actions.pod:3162
12542 #, no-wrap
12543 msgid ""
12544 " mkfs-b fstype blocksize device\n"
12545 "\n"
12546 msgstr ""
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3164
12550 msgid ""
12551 "This call is similar to L</mkfs>, but it allows you to control the block "
12552 "size of the resulting filesystem.  Supported block sizes depend on the "
12553 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12554 msgstr ""
12555
12556 #. type: textblock
12557 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12558 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12559 msgid ""
12560 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12561 "cluster size."
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3172
12566 msgid ""
12567 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12568 "instead."
12569 msgstr ""
12570
12571 #. type: =head2
12572 #: ../fish/guestfish-actions.pod:3179
12573 msgid "mkfs-opts"
12574 msgstr ""
12575
12576 #. type: verbatim
12577 #: ../fish/guestfish-actions.pod:3181
12578 #, no-wrap
12579 msgid ""
12580 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12581 "\n"
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12586 msgid ""
12587 "This function creates a filesystem on C<device>.  The filesystem type is "
12588 "C<fstype>, for example C<ext3>."
12589 msgstr ""
12590
12591 #. type: =item
12592 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12593 msgid "C<blocksize>"
12594 msgstr ""
12595
12596 #. type: textblock
12597 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12598 msgid ""
12599 "The filesystem block size.  Supported block sizes depend on the filesystem "
12600 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12601 "filesystems."
12602 msgstr ""
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12606 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12607 msgstr ""
12608
12609 #. type: =item
12610 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12611 msgid "C<features>"
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12616 msgid "This passes the I<-O> parameter to the external mkfs program."
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12621 msgid ""
12622 "For certain filesystem types, this allows extra filesystem features to be "
12623 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12628 msgid ""
12629 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12630 "type."
12631 msgstr ""
12632
12633 #. type: =item
12634 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12635 msgid "C<inode>"
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12640 msgid ""
12641 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12642 "sets the inode size (only for ext2/3/4 filesystems at present)."
12643 msgstr ""
12644
12645 #. type: =item
12646 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12647 msgid "C<sectorsize>"
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
12652 msgid ""
12653 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12654 "sets sector size for ufs filesystem."
12655 msgstr ""
12656
12657 #. type: =head2
12658 #: ../fish/guestfish-actions.pod:3226
12659 msgid "mkmountpoint"
12660 msgstr ""
12661
12662 #. type: verbatim
12663 #: ../fish/guestfish-actions.pod:3228
12664 #, no-wrap
12665 msgid ""
12666 " mkmountpoint exemptpath\n"
12667 "\n"
12668 msgstr ""
12669
12670 #. type: textblock
12671 #: ../fish/guestfish-actions.pod:3230
12672 msgid ""
12673 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12674 "to create extra mountpoints before mounting the first filesystem."
12675 msgstr ""
12676
12677 #. type: textblock
12678 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
12679 msgid ""
12680 "These calls are I<only> necessary in some very limited circumstances, mainly "
12681 "the case where you want to mount a mix of unrelated and/or read-only "
12682 "filesystems together."
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
12687 msgid ""
12688 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12689 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12690 "inside that.  You can unpack this as follows in guestfish:"
12691 msgstr ""
12692
12693 #. type: verbatim
12694 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
12695 #, no-wrap
12696 msgid ""
12697 " add-ro Fedora-11-i686-Live.iso\n"
12698 " run\n"
12699 " mkmountpoint /cd\n"
12700 " mkmountpoint /sqsh\n"
12701 " mkmountpoint /ext3fs\n"
12702 " mount /dev/sda /cd\n"
12703 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12704 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12705 "\n"
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
12710 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12711 msgstr ""
12712
12713 #. type: textblock
12714 #: ../fish/guestfish-actions.pod:3254
12715 msgid ""
12716 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12717 "unexpected errors if you try to mix these calls.  It is safest to manually "
12718 "unmount filesystems and remove mountpoints after use."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:3258
12723 msgid ""
12724 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12725 "for this to work for manual mountpoints, you must ensure that the innermost "
12726 "mountpoints have the longest pathnames, as in the example code above."
12727 msgstr ""
12728
12729 #. type: textblock
12730 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
12731 msgid ""
12732 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:3265
12737 msgid ""
12738 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12739 "L</umount-all> to be called when the handle is closed which can also trigger "
12740 "these issues."
12741 msgstr ""
12742
12743 #. type: =head2
12744 #: ../fish/guestfish-actions.pod:3269
12745 msgid "mknod"
12746 msgstr ""
12747
12748 #. type: verbatim
12749 #: ../fish/guestfish-actions.pod:3271
12750 #, no-wrap
12751 msgid ""
12752 " mknod mode devmajor devminor path\n"
12753 "\n"
12754 msgstr ""
12755
12756 #. type: textblock
12757 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
12758 msgid ""
12759 "This call creates block or character special devices, or named pipes (FIFOs)."
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
12764 msgid ""
12765 "The C<mode> parameter should be the mode, using the standard constants.  "
12766 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12767 "used when creating block and character special devices."
12768 msgstr ""
12769
12770 #. type: textblock
12771 #: ../fish/guestfish-actions.pod:3281
12772 msgid ""
12773 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12774 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12775 "regular file).  These constants are available in the standard Linux header "
12776 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12777 "wrappers around this command which bitwise OR in the appropriate constant "
12778 "for you."
12779 msgstr ""
12780
12781 #. type: =head2
12782 #: ../fish/guestfish-actions.pod:3291
12783 msgid "mknod-b"
12784 msgstr ""
12785
12786 #. type: verbatim
12787 #: ../fish/guestfish-actions.pod:3293
12788 #, no-wrap
12789 msgid ""
12790 " mknod-b mode devmajor devminor path\n"
12791 "\n"
12792 msgstr ""
12793
12794 #. type: textblock
12795 #: ../fish/guestfish-actions.pod:3295
12796 msgid ""
12797 "This call creates a block device node called C<path> with mode C<mode> and "
12798 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12799 "wrapper around L</mknod>."
12800 msgstr ""
12801
12802 #. type: =head2
12803 #: ../fish/guestfish-actions.pod:3301
12804 msgid "mknod-c"
12805 msgstr ""
12806
12807 #. type: verbatim
12808 #: ../fish/guestfish-actions.pod:3303
12809 #, no-wrap
12810 msgid ""
12811 " mknod-c mode devmajor devminor path\n"
12812 "\n"
12813 msgstr ""
12814
12815 #. type: textblock
12816 #: ../fish/guestfish-actions.pod:3305
12817 msgid ""
12818 "This call creates a char device node called C<path> with mode C<mode> and "
12819 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12820 "wrapper around L</mknod>."
12821 msgstr ""
12822
12823 #. type: =head2
12824 #: ../fish/guestfish-actions.pod:3311
12825 msgid "mkswap"
12826 msgstr ""
12827
12828 #. type: verbatim
12829 #: ../fish/guestfish-actions.pod:3313
12830 #, no-wrap
12831 msgid ""
12832 " mkswap device\n"
12833 "\n"
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
12838 msgid "Create a swap partition on C<device>."
12839 msgstr ""
12840
12841 #. type: =head2
12842 #: ../fish/guestfish-actions.pod:3317
12843 msgid "mkswap-L"
12844 msgstr ""
12845
12846 #. type: verbatim
12847 #: ../fish/guestfish-actions.pod:3319
12848 #, no-wrap
12849 msgid ""
12850 " mkswap-L label device\n"
12851 "\n"
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
12856 msgid "Create a swap partition on C<device> with label C<label>."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
12861 msgid ""
12862 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12863 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12864 "or swap tools."
12865 msgstr ""
12866
12867 #. type: =head2
12868 #: ../fish/guestfish-actions.pod:3327
12869 msgid "mkswap-U"
12870 msgstr ""
12871
12872 #. type: verbatim
12873 #: ../fish/guestfish-actions.pod:3329
12874 #, no-wrap
12875 msgid ""
12876 " mkswap-U uuid device\n"
12877 "\n"
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
12882 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12883 msgstr ""
12884
12885 #. type: =head2
12886 #: ../fish/guestfish-actions.pod:3333
12887 msgid "mkswap-file"
12888 msgstr ""
12889
12890 #. type: verbatim
12891 #: ../fish/guestfish-actions.pod:3335
12892 #, no-wrap
12893 msgid ""
12894 " mkswap-file path\n"
12895 "\n"
12896 msgstr ""
12897
12898 #. type: textblock
12899 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
12900 msgid "Create a swap file."
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3339
12905 msgid ""
12906 "This command just writes a swap file signature to an existing file.  To "
12907 "create the file itself, use something like L</fallocate>."
12908 msgstr ""
12909
12910 #. type: =head2
12911 #: ../fish/guestfish-actions.pod:3342
12912 msgid "modprobe"
12913 msgstr ""
12914
12915 #. type: verbatim
12916 #: ../fish/guestfish-actions.pod:3344
12917 #, no-wrap
12918 msgid ""
12919 " modprobe modulename\n"
12920 "\n"
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
12925 msgid "This loads a kernel module in the appliance."
12926 msgstr ""
12927
12928 #. type: textblock
12929 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12930 msgid ""
12931 "The kernel module must have been whitelisted when libguestfs was built (see "
12932 "C<appliance/kmod.whitelist.in> in the source)."
12933 msgstr ""
12934
12935 #. type: =head2
12936 #: ../fish/guestfish-actions.pod:3351
12937 msgid "mount"
12938 msgstr ""
12939
12940 #. type: verbatim
12941 #: ../fish/guestfish-actions.pod:3353
12942 #, no-wrap
12943 msgid ""
12944 " mount device mountpoint\n"
12945 "\n"
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
12950 msgid ""
12951 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12952 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12953 "those block devices contain partitions, they will have the usual names (eg. "
12954 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12955 msgstr ""
12956
12957 #. type: textblock
12958 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12959 msgid ""
12960 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12961 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12962 "mounted on directories which already exist."
12963 msgstr ""
12964
12965 #. type: textblock
12966 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
12967 msgid ""
12968 "The mounted filesystem is writable, if we have sufficient permissions on the "
12969 "underlying device."
12970 msgstr ""
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:3369
12974 msgid ""
12975 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12976 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12977 "problems for users.  If your program might need to work with older versions "
12978 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12979 "first parameter if you don't want any options)."
12980 msgstr ""
12981
12982 #. type: =head2
12983 #: ../fish/guestfish-actions.pod:3376
12984 msgid "mount-9p"
12985 msgstr ""
12986
12987 #. type: verbatim
12988 #: ../fish/guestfish-actions.pod:3378
12989 #, no-wrap
12990 msgid ""
12991 " mount-9p mounttag mountpoint [options:..]\n"
12992 "\n"
12993 msgstr ""
12994
12995 #. type: textblock
12996 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
12997 msgid ""
12998 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12999 "C<mountpoint>."
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13004 msgid ""
13005 "If required, C<trans=virtio> will be automatically added to the options.  "
13006 "Any other options required can be passed in the optional C<options> "
13007 "parameter."
13008 msgstr ""
13009
13010 #. type: =head2
13011 #: ../fish/guestfish-actions.pod:3389
13012 msgid "mount-loop"
13013 msgstr ""
13014
13015 #. type: verbatim
13016 #: ../fish/guestfish-actions.pod:3391
13017 #, no-wrap
13018 msgid ""
13019 " mount-loop file mountpoint\n"
13020 "\n"
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13025 msgid ""
13026 "This command lets you mount C<file> (a filesystem image in a file) on a "
13027 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13028 "mountpoint>."
13029 msgstr ""
13030
13031 #. type: =head2
13032 #: ../fish/guestfish-actions.pod:3397
13033 msgid "mount-options"
13034 msgstr ""
13035
13036 #. type: verbatim
13037 #: ../fish/guestfish-actions.pod:3399
13038 #, no-wrap
13039 msgid ""
13040 " mount-options options device mountpoint\n"
13041 "\n"
13042 msgstr ""
13043
13044 #. type: textblock
13045 #: ../fish/guestfish-actions.pod:3401
13046 msgid ""
13047 "This is the same as the L</mount> command, but it allows you to set the "
13048 "mount options as for the L<mount(8)> I<-o> flag."
13049 msgstr ""
13050
13051 #. type: textblock
13052 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13053 msgid ""
13054 "If the C<options> parameter is an empty string, then no options are passed "
13055 "(all options default to whatever the filesystem uses)."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3409
13060 msgid "mount-ro"
13061 msgstr ""
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3411
13065 #, no-wrap
13066 msgid ""
13067 " mount-ro device mountpoint\n"
13068 "\n"
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3413
13073 msgid ""
13074 "This is the same as the L</mount> command, but it mounts the filesystem with "
13075 "the read-only (I<-o ro>) flag."
13076 msgstr ""
13077
13078 #. type: =head2
13079 #: ../fish/guestfish-actions.pod:3416
13080 msgid "mount-vfs"
13081 msgstr ""
13082
13083 #. type: verbatim
13084 #: ../fish/guestfish-actions.pod:3418
13085 #, no-wrap
13086 msgid ""
13087 " mount-vfs options vfstype device mountpoint\n"
13088 "\n"
13089 msgstr ""
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:3420
13093 msgid ""
13094 "This is the same as the L</mount> command, but it allows you to set both the "
13095 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13096 msgstr ""
13097
13098 #. type: =head2
13099 #: ../fish/guestfish-actions.pod:3424
13100 msgid "mountpoints"
13101 msgstr ""
13102
13103 #. type: verbatim
13104 #: ../fish/guestfish-actions.pod:3426
13105 #, no-wrap
13106 msgid ""
13107 " mountpoints\n"
13108 "\n"
13109 msgstr ""
13110
13111 #. type: textblock
13112 #: ../fish/guestfish-actions.pod:3428
13113 msgid ""
13114 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13115 "This one returns a hash table (map) of device name to directory where the "
13116 "device is mounted."
13117 msgstr ""
13118
13119 #. type: =head2
13120 #: ../fish/guestfish-actions.pod:3432
13121 msgid "mounts"
13122 msgstr ""
13123
13124 #. type: verbatim
13125 #: ../fish/guestfish-actions.pod:3434
13126 #, no-wrap
13127 msgid ""
13128 " mounts\n"
13129 "\n"
13130 msgstr ""
13131
13132 #. type: textblock
13133 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13134 msgid ""
13135 "This returns the list of currently mounted filesystems.  It returns the list "
13136 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13141 msgid "Some internal mounts are not shown."
13142 msgstr ""
13143
13144 #. type: textblock
13145 #: ../fish/guestfish-actions.pod:3441
13146 msgid "See also: L</mountpoints>"
13147 msgstr ""
13148
13149 #. type: =head2
13150 #: ../fish/guestfish-actions.pod:3443
13151 msgid "mv"
13152 msgstr ""
13153
13154 #. type: verbatim
13155 #: ../fish/guestfish-actions.pod:3445
13156 #, no-wrap
13157 msgid ""
13158 " mv src dest\n"
13159 "\n"
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13164 msgid ""
13165 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13166 "destination filename or destination directory."
13167 msgstr ""
13168
13169 #. type: =head2
13170 #: ../fish/guestfish-actions.pod:3450
13171 msgid "ntfs-3g-probe"
13172 msgstr ""
13173
13174 #. type: verbatim
13175 #: ../fish/guestfish-actions.pod:3452
13176 #, no-wrap
13177 msgid ""
13178 " ntfs-3g-probe true|false device\n"
13179 "\n"
13180 msgstr ""
13181
13182 #. type: textblock
13183 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13184 msgid ""
13185 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13186 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13187 "write, and some cannot be mounted at all)."
13188 msgstr ""
13189
13190 #. type: textblock
13191 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13192 msgid ""
13193 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13194 "can be mounted read-write.  Set it to false if you want to test if the "
13195 "volume can be mounted read-only."
13196 msgstr ""
13197
13198 #. type: textblock
13199 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13200 msgid ""
13201 "The return value is an integer which C<0> if the operation would succeed, or "
13202 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13203 msgstr ""
13204
13205 #. type: =head2
13206 #: ../fish/guestfish-actions.pod:3466
13207 msgid "ntfsresize"
13208 msgstr ""
13209
13210 #. type: verbatim
13211 #: ../fish/guestfish-actions.pod:3468
13212 #, no-wrap
13213 msgid ""
13214 " ntfsresize device\n"
13215 "\n"
13216 msgstr ""
13217
13218 #. type: textblock
13219 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13220 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13221 msgid ""
13222 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13223 "size of the underlying device."
13224 msgstr ""
13225
13226 #. type: textblock
13227 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13228 msgid ""
13229 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13230 "consistency check (for safety).  You have to boot into Windows to perform "
13231 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13232 "resize filesystems which have been marked in this way.  So in effect it is "
13233 "not possible to call ntfsresize multiple times on a single filesystem "
13234 "without booting into Windows between each resize."
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13239 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13240 msgid "See also L<ntfsresize(8)>."
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13245 msgid ""
13246 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13247 "call instead."
13248 msgstr ""
13249
13250 #. type: =head2
13251 #: ../fish/guestfish-actions.pod:3490
13252 msgid "ntfsresize-opts"
13253 msgstr ""
13254
13255 #. type: verbatim
13256 #: ../fish/guestfish-actions.pod:3492
13257 #, no-wrap
13258 msgid ""
13259 " ntfsresize-opts device [size:..] [force:..]\n"
13260 "\n"
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13265 msgid ""
13266 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13267 "resized to fit the container (eg. partition)."
13268 msgstr ""
13269
13270 #. type: =item
13271 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13272 msgid "C<force>"
13273 msgstr ""
13274
13275 #. type: textblock
13276 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13277 msgid ""
13278 "If this option is true, then force the resize of the filesystem even if the "
13279 "filesystem is marked as requiring a consistency check."
13280 msgstr ""
13281
13282 #. type: textblock
13283 #: ../fish/guestfish-actions.pod:3511
13284 msgid ""
13285 "After the resize operation, the filesystem is always marked as requiring a "
13286 "consistency check (for safety).  You have to boot into Windows to perform "
13287 "this check and clear this condition.  If you I<don't> set the C<force> "
13288 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13289 "a single filesystem without booting into Windows between each resize."
13290 msgstr ""
13291
13292 #. type: =head2
13293 #: ../fish/guestfish-actions.pod:3524
13294 msgid "ntfsresize-size"
13295 msgstr ""
13296
13297 #. type: verbatim
13298 #: ../fish/guestfish-actions.pod:3526
13299 #, no-wrap
13300 msgid ""
13301 " ntfsresize-size device size\n"
13302 "\n"
13303 msgstr ""
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3528
13307 msgid ""
13308 "This command is the same as L</ntfsresize> except that it allows you to "
13309 "specify the new size (in bytes) explicitly."
13310 msgstr ""
13311
13312 #. type: =head2
13313 #: ../fish/guestfish-actions.pod:3538
13314 msgid "part-add"
13315 msgstr ""
13316
13317 #. type: verbatim
13318 #: ../fish/guestfish-actions.pod:3540
13319 #, no-wrap
13320 msgid ""
13321 " part-add device prlogex startsect endsect\n"
13322 "\n"
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3542
13327 msgid ""
13328 "This command adds a partition to C<device>.  If there is no partition table "
13329 "on the device, call L</part-init> first."
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13334 msgid ""
13335 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13336 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13337 "C<logical>) and C<e> (or C<extended>) partition types."
13338 msgstr ""
13339
13340 #. type: textblock
13341 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13342 msgid ""
13343 "C<startsect> and C<endsect> are the start and end of the partition in "
13344 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13345 "from the end of the disk (C<-1> is the last sector)."
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../fish/guestfish-actions.pod:3554
13350 msgid ""
13351 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13352 "part-disk> to do that."
13353 msgstr ""
13354
13355 #. type: =head2
13356 #: ../fish/guestfish-actions.pod:3557
13357 msgid "part-del"
13358 msgstr ""
13359
13360 #. type: verbatim
13361 #: ../fish/guestfish-actions.pod:3559
13362 #, no-wrap
13363 msgid ""
13364 " part-del device partnum\n"
13365 "\n"
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13370 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13375 msgid ""
13376 "Note that in the case of MBR partitioning, deleting an extended partition "
13377 "also deletes any logical partitions it contains."
13378 msgstr ""
13379
13380 #. type: =head2
13381 #: ../fish/guestfish-actions.pod:3567
13382 msgid "part-disk"
13383 msgstr ""
13384
13385 #. type: verbatim
13386 #: ../fish/guestfish-actions.pod:3569
13387 #, no-wrap
13388 msgid ""
13389 " part-disk device parttype\n"
13390 "\n"
13391 msgstr ""
13392
13393 #. type: textblock
13394 #: ../fish/guestfish-actions.pod:3571
13395 msgid ""
13396 "This command is simply a combination of L</part-init> followed by L</part-"
13397 "add> to create a single primary partition covering the whole disk."
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3575
13402 msgid ""
13403 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13404 "possible values are described in L</part-init>."
13405 msgstr ""
13406
13407 #. type: =head2
13408 #: ../fish/guestfish-actions.pod:3581
13409 msgid "part-get-bootable"
13410 msgstr ""
13411
13412 #. type: verbatim
13413 #: ../fish/guestfish-actions.pod:3583
13414 #, no-wrap
13415 msgid ""
13416 " part-get-bootable device partnum\n"
13417 "\n"
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13422 msgid ""
13423 "This command returns true if the partition C<partnum> on C<device> has the "
13424 "bootable flag set."
13425 msgstr ""
13426
13427 #. type: textblock
13428 #: ../fish/guestfish-actions.pod:3588
13429 msgid "See also L</part-set-bootable>."
13430 msgstr ""
13431
13432 #. type: =head2
13433 #: ../fish/guestfish-actions.pod:3590
13434 msgid "part-get-mbr-id"
13435 msgstr ""
13436
13437 #. type: verbatim
13438 #: ../fish/guestfish-actions.pod:3592
13439 #, no-wrap
13440 msgid ""
13441 " part-get-mbr-id device partnum\n"
13442 "\n"
13443 msgstr ""
13444
13445 #. type: textblock
13446 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13447 msgid ""
13448 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13449 "partition C<partnum>."
13450 msgstr ""
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13454 msgid ""
13455 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13456 "undefined results for other partition table types (see L</part-get-"
13457 "parttype>)."
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../fish/guestfish-actions.pod:3601
13462 msgid "part-get-parttype"
13463 msgstr ""
13464
13465 #. type: verbatim
13466 #: ../fish/guestfish-actions.pod:3603
13467 #, no-wrap
13468 msgid ""
13469 " part-get-parttype device\n"
13470 "\n"
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13475 msgid ""
13476 "This command examines the partition table on C<device> and returns the "
13477 "partition table type (format) being used."
13478 msgstr ""
13479
13480 #. type: textblock
13481 #: ../fish/guestfish-actions.pod:3608
13482 msgid ""
13483 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13484 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13485 "possible, although unusual.  See L</part-init> for a full list."
13486 msgstr ""
13487
13488 #. type: =head2
13489 #: ../fish/guestfish-actions.pod:3613
13490 msgid "part-init"
13491 msgstr ""
13492
13493 #. type: verbatim
13494 #: ../fish/guestfish-actions.pod:3615
13495 #, no-wrap
13496 msgid ""
13497 " part-init device parttype\n"
13498 "\n"
13499 msgstr ""
13500
13501 #. type: textblock
13502 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13503 msgid ""
13504 "This creates an empty partition table on C<device> of one of the partition "
13505 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13506 "(for large disks)."
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3621
13511 msgid ""
13512 "Initially there are no partitions.  Following this, you should call L</part-"
13513 "add> for each partition required."
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13518 msgid "Possible values for C<parttype> are:"
13519 msgstr ""
13520
13521 #. type: =item
13522 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13523 msgid "B<efi>"
13524 msgstr ""
13525
13526 #. type: =item
13527 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13528 msgid "B<gpt>"
13529 msgstr ""
13530
13531 #. type: textblock
13532 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13533 msgid "Intel EFI / GPT partition table."
13534 msgstr ""
13535
13536 #. type: textblock
13537 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13538 msgid ""
13539 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13540 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13541 "the C<mbr> format."
13542 msgstr ""
13543
13544 #. type: =item
13545 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13546 msgid "B<mbr>"
13547 msgstr ""
13548
13549 #. type: =item
13550 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13551 msgid "B<msdos>"
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13556 msgid ""
13557 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13558 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13559 "TB.  For large disks we recommend using C<gpt>."
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13564 msgid ""
13565 "Other partition table types that may work but are not supported include:"
13566 msgstr ""
13567
13568 #. type: =item
13569 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13570 msgid "B<aix>"
13571 msgstr ""
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13575 msgid "AIX disk labels."
13576 msgstr ""
13577
13578 #. type: =item
13579 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13580 msgid "B<amiga>"
13581 msgstr ""
13582
13583 #. type: =item
13584 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13585 msgid "B<rdb>"
13586 msgstr ""
13587
13588 #. type: textblock
13589 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13590 msgid "Amiga \"Rigid Disk Block\" format."
13591 msgstr ""
13592
13593 #. type: =item
13594 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13595 msgid "B<bsd>"
13596 msgstr ""
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13600 msgid "BSD disk labels."
13601 msgstr ""
13602
13603 #. type: =item
13604 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13605 msgid "B<dasd>"
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13610 msgid "DASD, used on IBM mainframes."
13611 msgstr ""
13612
13613 #. type: =item
13614 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
13615 msgid "B<dvh>"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
13620 msgid "MIPS/SGI volumes."
13621 msgstr ""
13622
13623 #. type: =item
13624 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
13625 msgid "B<mac>"
13626 msgstr ""
13627
13628 #. type: textblock
13629 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
13630 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13631 msgstr ""
13632
13633 #. type: =item
13634 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
13635 msgid "B<pc98>"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
13640 msgid "NEC PC-98 format, common in Japan apparently."
13641 msgstr ""
13642
13643 #. type: =item
13644 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
13645 msgid "B<sun>"
13646 msgstr ""
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
13650 msgid "Sun disk labels."
13651 msgstr ""
13652
13653 #. type: =head2
13654 #: ../fish/guestfish-actions.pod:3690
13655 msgid "part-list"
13656 msgstr ""
13657
13658 #. type: verbatim
13659 #: ../fish/guestfish-actions.pod:3692
13660 #, no-wrap
13661 msgid ""
13662 " part-list device\n"
13663 "\n"
13664 msgstr ""
13665
13666 #. type: textblock
13667 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
13668 msgid ""
13669 "This command parses the partition table on C<device> and returns the list of "
13670 "partitions found."
13671 msgstr ""
13672
13673 #. type: textblock
13674 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
13675 msgid "The fields in the returned structure are:"
13676 msgstr ""
13677
13678 #. type: =item
13679 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
13680 msgid "B<part_num>"
13681 msgstr ""
13682
13683 #. type: textblock
13684 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
13685 msgid "Partition number, counting from 1."
13686 msgstr ""
13687
13688 #. type: =item
13689 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
13690 msgid "B<part_start>"
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../fish/guestfish-actions.pod:3707
13695 msgid ""
13696 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13697 "the device's sector size, see L</blockdev-getss>."
13698 msgstr ""
13699
13700 #. type: =item
13701 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
13702 msgid "B<part_end>"
13703 msgstr ""
13704
13705 #. type: textblock
13706 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
13707 msgid "End of the partition in bytes."
13708 msgstr ""
13709
13710 #. type: =item
13711 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
13712 msgid "B<part_size>"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
13717 msgid "Size of the partition in bytes."
13718 msgstr ""
13719
13720 #. type: =head2
13721 #: ../fish/guestfish-actions.pod:3720
13722 msgid "part-set-bootable"
13723 msgstr ""
13724
13725 #. type: verbatim
13726 #: ../fish/guestfish-actions.pod:3722
13727 #, no-wrap
13728 msgid ""
13729 " part-set-bootable device partnum true|false\n"
13730 "\n"
13731 msgstr ""
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
13735 msgid ""
13736 "This sets the bootable flag on partition numbered C<partnum> on device "
13737 "C<device>.  Note that partitions are numbered from 1."
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
13742 msgid ""
13743 "The bootable flag is used by some operating systems (notably Windows) to "
13744 "determine which partition to boot from.  It is by no means universally "
13745 "recognized."
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:3731
13750 msgid "part-set-mbr-id"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:3733
13755 #, no-wrap
13756 msgid ""
13757 " part-set-mbr-id device partnum idbyte\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
13763 msgid ""
13764 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13765 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13766 "documentation are in fact hexadecimal numbers, but usually documented "
13767 "without any leading \"0x\" which might be confusing."
13768 msgstr ""
13769
13770 #. type: =head2
13771 #: ../fish/guestfish-actions.pod:3745
13772 msgid "part-set-name"
13773 msgstr ""
13774
13775 #. type: verbatim
13776 #: ../fish/guestfish-actions.pod:3747
13777 #, no-wrap
13778 msgid ""
13779 " part-set-name device partnum name\n"
13780 "\n"
13781 msgstr ""
13782
13783 #. type: textblock
13784 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
13785 msgid ""
13786 "This sets the partition name on partition numbered C<partnum> on device "
13787 "C<device>.  Note that partitions are numbered from 1."
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
13792 msgid ""
13793 "The partition name can only be set on certain types of partition table.  "
13794 "This works on C<gpt> but not on C<mbr> partitions."
13795 msgstr ""
13796
13797 #. type: =head2
13798 #: ../fish/guestfish-actions.pod:3755
13799 msgid "part-to-dev"
13800 msgstr ""
13801
13802 #. type: verbatim
13803 #: ../fish/guestfish-actions.pod:3757
13804 #, no-wrap
13805 msgid ""
13806 " part-to-dev partition\n"
13807 "\n"
13808 msgstr ""
13809
13810 #. type: textblock
13811 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
13812 msgid ""
13813 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13814 "partition number, returning the device name (eg. \"/dev/sdb\")."
13815 msgstr ""
13816
13817 #. type: textblock
13818 #: ../fish/guestfish-actions.pod:3763
13819 msgid ""
13820 "The named partition must exist, for example as a string returned from L</"
13821 "list-partitions>."
13822 msgstr ""
13823
13824 #. type: =head2
13825 #: ../fish/guestfish-actions.pod:3766
13826 msgid "ping-daemon"
13827 msgstr ""
13828
13829 #. type: verbatim
13830 #: ../fish/guestfish-actions.pod:3768
13831 #, no-wrap
13832 msgid ""
13833 " ping-daemon\n"
13834 "\n"
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
13839 msgid ""
13840 "This is a test probe into the guestfs daemon running inside the qemu "
13841 "subprocess.  Calling this function checks that the daemon responds to the "
13842 "ping message, without affecting the daemon or attached block device(s) in "
13843 "any other way."
13844 msgstr ""
13845
13846 #. type: =head2
13847 #: ../fish/guestfish-actions.pod:3775
13848 msgid "pread"
13849 msgstr ""
13850
13851 #. type: verbatim
13852 #: ../fish/guestfish-actions.pod:3777
13853 #, no-wrap
13854 msgid ""
13855 " pread path count offset\n"
13856 "\n"
13857 msgstr ""
13858
13859 #. type: textblock
13860 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
13861 msgid ""
13862 "This command lets you read part of a file.  It reads C<count> bytes of the "
13863 "file, starting at C<offset>, from file C<path>."
13864 msgstr ""
13865
13866 #. type: textblock
13867 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
13868 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
13869 msgid ""
13870 "This may read fewer bytes than requested.  For further details see the "
13871 "L<pread(2)> system call."
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:3785
13876 msgid "See also L</pwrite>, L</pread-device>."
13877 msgstr ""
13878
13879 #. type: =head2
13880 #: ../fish/guestfish-actions.pod:3790
13881 msgid "pread-device"
13882 msgstr ""
13883
13884 #. type: verbatim
13885 #: ../fish/guestfish-actions.pod:3792
13886 #, no-wrap
13887 msgid ""
13888 " pread-device device count offset\n"
13889 "\n"
13890 msgstr ""
13891
13892 #. type: textblock
13893 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
13894 msgid ""
13895 "This command lets you read part of a file.  It reads C<count> bytes of "
13896 "C<device>, starting at C<offset>."
13897 msgstr ""
13898
13899 #. type: textblock
13900 #: ../fish/guestfish-actions.pod:3800
13901 msgid "See also L</pread>."
13902 msgstr ""
13903
13904 #. type: =head2
13905 #: ../fish/guestfish-actions.pod:3805
13906 msgid "pvcreate"
13907 msgstr ""
13908
13909 #. type: verbatim
13910 #: ../fish/guestfish-actions.pod:3807
13911 #, no-wrap
13912 msgid ""
13913 " pvcreate device\n"
13914 "\n"
13915 msgstr ""
13916
13917 #. type: textblock
13918 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
13919 msgid ""
13920 "This creates an LVM physical volume on the named C<device>, where C<device> "
13921 "should usually be a partition name such as C</dev/sda1>."
13922 msgstr ""
13923
13924 #. type: =head2
13925 #: ../fish/guestfish-actions.pod:3813
13926 msgid "pvremove"
13927 msgstr ""
13928
13929 #. type: verbatim
13930 #: ../fish/guestfish-actions.pod:3815
13931 #, no-wrap
13932 msgid ""
13933 " pvremove device\n"
13934 "\n"
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
13939 msgid ""
13940 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13941 "it."
13942 msgstr ""
13943
13944 #. type: textblock
13945 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
13946 msgid ""
13947 "The implementation uses the C<pvremove> command which refuses to wipe "
13948 "physical volumes that contain any volume groups, so you have to remove those "
13949 "first."
13950 msgstr ""
13951
13952 #. type: =head2
13953 #: ../fish/guestfish-actions.pod:3824
13954 msgid "pvresize"
13955 msgstr ""
13956
13957 #. type: verbatim
13958 #: ../fish/guestfish-actions.pod:3826
13959 #, no-wrap
13960 msgid ""
13961 " pvresize device\n"
13962 "\n"
13963 msgstr ""
13964
13965 #. type: textblock
13966 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
13967 msgid ""
13968 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13969 "the new size of the underlying device."
13970 msgstr ""
13971
13972 #. type: =head2
13973 #: ../fish/guestfish-actions.pod:3831
13974 msgid "pvresize-size"
13975 msgstr ""
13976
13977 #. type: verbatim
13978 #: ../fish/guestfish-actions.pod:3833
13979 #, no-wrap
13980 msgid ""
13981 " pvresize-size device size\n"
13982 "\n"
13983 msgstr ""
13984
13985 #. type: textblock
13986 #: ../fish/guestfish-actions.pod:3835
13987 msgid ""
13988 "This command is the same as L</pvresize> except that it allows you to "
13989 "specify the new size (in bytes) explicitly."
13990 msgstr ""
13991
13992 #. type: =head2
13993 #: ../fish/guestfish-actions.pod:3838
13994 msgid "pvs"
13995 msgstr ""
13996
13997 #. type: verbatim
13998 #: ../fish/guestfish-actions.pod:3840
13999 #, no-wrap
14000 msgid ""
14001 " pvs\n"
14002 "\n"
14003 msgstr ""
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14007 msgid ""
14008 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14009 "(8)> command."
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14014 msgid ""
14015 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14016 "sda2>)."
14017 msgstr ""
14018
14019 #. type: textblock
14020 #: ../fish/guestfish-actions.pod:3848
14021 msgid "See also L</pvs-full>."
14022 msgstr ""
14023
14024 #. type: =head2
14025 #: ../fish/guestfish-actions.pod:3850
14026 msgid "pvs-full"
14027 msgstr ""
14028
14029 #. type: verbatim
14030 #: ../fish/guestfish-actions.pod:3852
14031 #, no-wrap
14032 msgid ""
14033 " pvs-full\n"
14034 "\n"
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14039 msgid ""
14040 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14041 "(8)> command.  The \"full\" version includes all fields."
14042 msgstr ""
14043
14044 #. type: =head2
14045 #: ../fish/guestfish-actions.pod:3857
14046 msgid "pvuuid"
14047 msgstr ""
14048
14049 #. type: verbatim
14050 #: ../fish/guestfish-actions.pod:3859
14051 #, no-wrap
14052 msgid ""
14053 " pvuuid device\n"
14054 "\n"
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14059 msgid "This command returns the UUID of the LVM PV C<device>."
14060 msgstr ""
14061
14062 #. type: =head2
14063 #: ../fish/guestfish-actions.pod:3863
14064 msgid "pwrite"
14065 msgstr ""
14066
14067 #. type: verbatim
14068 #: ../fish/guestfish-actions.pod:3865
14069 #, no-wrap
14070 msgid ""
14071 " pwrite path content offset\n"
14072 "\n"
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14077 msgid ""
14078 "This command writes to part of a file.  It writes the data buffer C<content> "
14079 "to the file C<path> starting at offset C<offset>."
14080 msgstr ""
14081
14082 #. type: textblock
14083 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14084 msgid ""
14085 "This command implements the L<pwrite(2)> system call, and like that system "
14086 "call it may not write the full data requested.  The return value is the "
14087 "number of bytes that were actually written to the file.  This could even be "
14088 "0, although short writes are unlikely for regular files in ordinary "
14089 "circumstances."
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:3876
14094 msgid "See also L</pread>, L</pwrite-device>."
14095 msgstr ""
14096
14097 #. type: =head2
14098 #: ../fish/guestfish-actions.pod:3881
14099 msgid "pwrite-device"
14100 msgstr ""
14101
14102 #. type: verbatim
14103 #: ../fish/guestfish-actions.pod:3883
14104 #, no-wrap
14105 msgid ""
14106 " pwrite-device device content offset\n"
14107 "\n"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14112 msgid ""
14113 "This command writes to part of a device.  It writes the data buffer "
14114 "C<content> to C<device> starting at offset C<offset>."
14115 msgstr ""
14116
14117 #. type: textblock
14118 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14119 msgid ""
14120 "This command implements the L<pwrite(2)> system call, and like that system "
14121 "call it may not write the full data requested (although short writes to disk "
14122 "devices and partitions are probably impossible with standard Linux kernels)."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../fish/guestfish-actions.pod:3893
14127 msgid "See also L</pwrite>."
14128 msgstr ""
14129
14130 #. type: =head2
14131 #: ../fish/guestfish-actions.pod:3898
14132 msgid "read-file"
14133 msgstr ""
14134
14135 #. type: verbatim
14136 #: ../fish/guestfish-actions.pod:3900
14137 #, no-wrap
14138 msgid ""
14139 " read-file path\n"
14140 "\n"
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14145 msgid "This calls returns the contents of the file C<path> as a buffer."
14146 msgstr ""
14147
14148 #. type: textblock
14149 #: ../fish/guestfish-actions.pod:3905
14150 msgid ""
14151 "Unlike L</cat>, this function can correctly handle files that contain "
14152 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14153 "is limited in the total size of file that can be handled."
14154 msgstr ""
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:3913
14158 msgid "read-lines"
14159 msgstr ""
14160
14161 #. type: verbatim
14162 #: ../fish/guestfish-actions.pod:3915
14163 #, no-wrap
14164 msgid ""
14165 " read-lines path\n"
14166 "\n"
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14171 msgid ""
14172 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14173 "C<CRLF> character sequences are I<not> returned."
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:3922
14178 msgid ""
14179 "Note that this function cannot correctly handle binary files (specifically, "
14180 "files containing C<\\0> character which is treated as end of line).  For "
14181 "those you need to use the L</read-file> function which has a more complex "
14182 "interface."
14183 msgstr ""
14184
14185 #. type: =head2
14186 #: ../fish/guestfish-actions.pod:3927
14187 msgid "readdir"
14188 msgstr ""
14189
14190 #. type: verbatim
14191 #: ../fish/guestfish-actions.pod:3929
14192 #, no-wrap
14193 msgid ""
14194 " readdir dir\n"
14195 "\n"
14196 msgstr ""
14197
14198 #. type: textblock
14199 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14200 msgid "This returns the list of directory entries in directory C<dir>."
14201 msgstr ""
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14205 msgid ""
14206 "All entries in the directory are returned, including C<.> and C<..>.  The "
14207 "entries are I<not> sorted, but returned in the same order as the underlying "
14208 "filesystem."
14209 msgstr ""
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14213 msgid ""
14214 "Also this call returns basic file type information about each file.  The "
14215 "C<ftyp> field will contain one of the following characters:"
14216 msgstr ""
14217
14218 #. type: =item
14219 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14220 msgid "'b'"
14221 msgstr ""
14222
14223 #. type: textblock
14224 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14225 msgid "Block special"
14226 msgstr ""
14227
14228 #. type: =item
14229 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14230 msgid "'c'"
14231 msgstr ""
14232
14233 #. type: textblock
14234 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14235 msgid "Char special"
14236 msgstr ""
14237
14238 #. type: =item
14239 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14240 msgid "'d'"
14241 msgstr ""
14242
14243 #. type: textblock
14244 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14245 msgid "Directory"
14246 msgstr ""
14247
14248 #. type: =item
14249 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14250 msgid "'f'"
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14255 msgid "FIFO (named pipe)"
14256 msgstr ""
14257
14258 #. type: =item
14259 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14260 msgid "'l'"
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14265 msgid "Symbolic link"
14266 msgstr ""
14267
14268 #. type: =item
14269 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14270 msgid "'r'"
14271 msgstr ""
14272
14273 #. type: textblock
14274 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14275 msgid "Regular file"
14276 msgstr ""
14277
14278 #. type: =item
14279 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14280 msgid "'s'"
14281 msgstr ""
14282
14283 #. type: textblock
14284 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14285 msgid "Socket"
14286 msgstr ""
14287
14288 #. type: =item
14289 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14290 msgid "'u'"
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14295 msgid "Unknown file type"
14296 msgstr ""
14297
14298 #. type: =item
14299 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14300 msgid "'?'"
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14305 msgid ""
14306 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14307 msgstr ""
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:3981
14311 msgid ""
14312 "This function is primarily intended for use by programs.  To get a simple "
14313 "list of names, use L</ls>.  To get a printable directory for human "
14314 "consumption, use L</ll>."
14315 msgstr ""
14316
14317 #. type: =head2
14318 #: ../fish/guestfish-actions.pod:3985
14319 msgid "readlink"
14320 msgstr ""
14321
14322 #. type: verbatim
14323 #: ../fish/guestfish-actions.pod:3987
14324 #, no-wrap
14325 msgid ""
14326 " readlink path\n"
14327 "\n"
14328 msgstr ""
14329
14330 #. type: textblock
14331 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14332 msgid "This command reads the target of a symbolic link."
14333 msgstr ""
14334
14335 #. type: =head2
14336 #: ../fish/guestfish-actions.pod:3991
14337 msgid "readlinklist"
14338 msgstr ""
14339
14340 #. type: verbatim
14341 #: ../fish/guestfish-actions.pod:3993
14342 #, no-wrap
14343 msgid ""
14344 " readlinklist path 'names ...'\n"
14345 "\n"
14346 msgstr ""
14347
14348 #. type: textblock
14349 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14350 msgid ""
14351 "This call allows you to do a C<readlink> operation on multiple files, where "
14352 "all files are in the directory C<path>.  C<names> is the list of files from "
14353 "this directory."
14354 msgstr ""
14355
14356 #. type: textblock
14357 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14358 msgid ""
14359 "On return you get a list of strings, with a one-to-one correspondence to the "
14360 "C<names> list.  Each string is the value of the symbolic link."
14361 msgstr ""
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14365 msgid ""
14366 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14367 "result string is the empty string C<\"\">.  However the whole operation is "
14368 "completed even if there were C<readlink(2)> errors, and so you can call this "
14369 "function with names where you don't know if they are symbolic links already "
14370 "(albeit slightly less efficient)."
14371 msgstr ""
14372
14373 #. type: textblock
14374 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14375 msgid ""
14376 "This call is intended for programs that want to efficiently list a directory "
14377 "contents without making many round-trips.  Very long directory listings "
14378 "might cause the protocol message size to be exceeded, causing this call to "
14379 "fail.  The caller must split up such requests into smaller groups of names."
14380 msgstr ""
14381
14382 #. type: =head2
14383 #: ../fish/guestfish-actions.pod:4017
14384 msgid "realpath"
14385 msgstr ""
14386
14387 #. type: verbatim
14388 #: ../fish/guestfish-actions.pod:4019
14389 #, no-wrap
14390 msgid ""
14391 " realpath path\n"
14392 "\n"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14397 msgid ""
14398 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14399 "has no C<.>, C<..> or symbolic link path elements."
14400 msgstr ""
14401
14402 #. type: =head2
14403 #: ../fish/guestfish-actions.pod:4024
14404 msgid "removexattr"
14405 msgstr ""
14406
14407 #. type: verbatim
14408 #: ../fish/guestfish-actions.pod:4026
14409 #, no-wrap
14410 msgid ""
14411 " removexattr xattr path\n"
14412 "\n"
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14417 msgid ""
14418 "This call removes the extended attribute named C<xattr> of the file C<path>."
14419 msgstr ""
14420
14421 #. type: textblock
14422 #: ../fish/guestfish-actions.pod:4031
14423 msgid "See also: L</lremovexattr>, L<attr(5)>."
14424 msgstr ""
14425
14426 #. type: =head2
14427 #: ../fish/guestfish-actions.pod:4033
14428 msgid "resize2fs"
14429 msgstr ""
14430
14431 #. type: verbatim
14432 #: ../fish/guestfish-actions.pod:4035
14433 #, no-wrap
14434 msgid ""
14435 " resize2fs device\n"
14436 "\n"
14437 msgstr ""
14438
14439 #. type: textblock
14440 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14441 msgid ""
14442 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14443 "underlying device."
14444 msgstr ""
14445
14446 #. type: textblock
14447 #: ../fish/guestfish-actions.pod:4040
14448 msgid ""
14449 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14450 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14451 "gives an error about this and sometimes not.  In any case, it is always safe "
14452 "to call L</e2fsck-f> before calling this function."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:4046
14457 msgid "resize2fs-M"
14458 msgstr ""
14459
14460 #. type: verbatim
14461 #: ../fish/guestfish-actions.pod:4048
14462 #, no-wrap
14463 msgid ""
14464 " resize2fs-M device\n"
14465 "\n"
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:4050
14470 msgid ""
14471 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14472 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14473 "command."
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:4054
14478 msgid ""
14479 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14480 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14481 "multiplied together, give the resulting size of the minimal filesystem in "
14482 "bytes."
14483 msgstr ""
14484
14485 #. type: =head2
14486 #: ../fish/guestfish-actions.pod:4059
14487 msgid "resize2fs-size"
14488 msgstr ""
14489
14490 #. type: verbatim
14491 #: ../fish/guestfish-actions.pod:4061
14492 #, no-wrap
14493 msgid ""
14494 " resize2fs-size device size\n"
14495 "\n"
14496 msgstr ""
14497
14498 #. type: textblock
14499 #: ../fish/guestfish-actions.pod:4063
14500 msgid ""
14501 "This command is the same as L</resize2fs> except that it allows you to "
14502 "specify the new size (in bytes) explicitly."
14503 msgstr ""
14504
14505 #. type: =head2
14506 #: ../fish/guestfish-actions.pod:4066
14507 msgid "rm"
14508 msgstr ""
14509
14510 #. type: verbatim
14511 #: ../fish/guestfish-actions.pod:4068
14512 #, no-wrap
14513 msgid ""
14514 " rm path\n"
14515 "\n"
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14520 msgid "Remove the single file C<path>."
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../fish/guestfish-actions.pod:4072
14525 msgid "rm-rf"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../fish/guestfish-actions.pod:4074
14530 #, no-wrap
14531 msgid ""
14532 " rm-rf path\n"
14533 "\n"
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14538 msgid ""
14539 "Remove the file or directory C<path>, recursively removing the contents if "
14540 "its a directory.  This is like the C<rm -rf> shell command."
14541 msgstr ""
14542
14543 #. type: =head2
14544 #: ../fish/guestfish-actions.pod:4080
14545 msgid "rmdir"
14546 msgstr ""
14547
14548 #. type: verbatim
14549 #: ../fish/guestfish-actions.pod:4082
14550 #, no-wrap
14551 msgid ""
14552 " rmdir path\n"
14553 "\n"
14554 msgstr ""
14555
14556 #. type: textblock
14557 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14558 msgid "Remove the single directory C<path>."
14559 msgstr ""
14560
14561 #. type: =head2
14562 #: ../fish/guestfish-actions.pod:4086
14563 msgid "rmmountpoint"
14564 msgstr ""
14565
14566 #. type: verbatim
14567 #: ../fish/guestfish-actions.pod:4088
14568 #, no-wrap
14569 msgid ""
14570 " rmmountpoint exemptpath\n"
14571 "\n"
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:4090
14576 msgid ""
14577 "This calls removes a mountpoint that was previously created with L</"
14578 "mkmountpoint>.  See L</mkmountpoint> for full details."
14579 msgstr ""
14580
14581 #. type: =head2
14582 #: ../fish/guestfish-actions.pod:4094
14583 msgid "scrub-device"
14584 msgstr ""
14585
14586 #. type: verbatim
14587 #: ../fish/guestfish-actions.pod:4096
14588 #, no-wrap
14589 msgid ""
14590 " scrub-device device\n"
14591 "\n"
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
14596 msgid ""
14597 "This command writes patterns over C<device> to make data retrieval more "
14598 "difficult."
14599 msgstr ""
14600
14601 #. type: textblock
14602 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
14603 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
14604 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
14605 msgid ""
14606 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14607 "more details."
14608 msgstr ""
14609
14610 #. type: =head2
14611 #: ../fish/guestfish-actions.pod:4107
14612 msgid "scrub-file"
14613 msgstr ""
14614
14615 #. type: verbatim
14616 #: ../fish/guestfish-actions.pod:4109
14617 #, no-wrap
14618 msgid ""
14619 " scrub-file file\n"
14620 "\n"
14621 msgstr ""
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
14625 msgid ""
14626 "This command writes patterns over a file to make data retrieval more "
14627 "difficult."
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
14632 msgid "The file is I<removed> after scrubbing."
14633 msgstr ""
14634
14635 #. type: =head2
14636 #: ../fish/guestfish-actions.pod:4119
14637 msgid "scrub-freespace"
14638 msgstr ""
14639
14640 #. type: verbatim
14641 #: ../fish/guestfish-actions.pod:4121
14642 #, no-wrap
14643 msgid ""
14644 " scrub-freespace dir\n"
14645 "\n"
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../fish/guestfish-actions.pod:4123
14650 msgid ""
14651 "This command creates the directory C<dir> and then fills it with files until "
14652 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14653 "deletes them.  The intention is to scrub any free space on the partition "
14654 "containing C<dir>."
14655 msgstr ""
14656
14657 #. type: =head2
14658 #: ../fish/guestfish-actions.pod:4132
14659 msgid "set-append"
14660 msgstr ""
14661
14662 #. type: =head2
14663 #: ../fish/guestfish-actions.pod:4134
14664 msgid "append"
14665 msgstr ""
14666
14667 #. type: verbatim
14668 #: ../fish/guestfish-actions.pod:4136
14669 #, no-wrap
14670 msgid ""
14671 " set-append append\n"
14672 "\n"
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
14677 msgid ""
14678 "This function is used to add additional options to the guest kernel command "
14679 "line."
14680 msgstr ""
14681
14682 #. type: textblock
14683 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
14684 msgid ""
14685 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14686 "environment variable."
14687 msgstr ""
14688
14689 #. type: textblock
14690 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
14691 msgid ""
14692 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14693 "(libguestfs always adds a few of its own)."
14694 msgstr ""
14695
14696 #. type: =head2
14697 #: ../fish/guestfish-actions.pod:4147
14698 msgid "set-attach-method"
14699 msgstr ""
14700
14701 #. type: =head2
14702 #: ../fish/guestfish-actions.pod:4149
14703 msgid "attach-method"
14704 msgstr ""
14705
14706 #. type: verbatim
14707 #: ../fish/guestfish-actions.pod:4151
14708 #, no-wrap
14709 msgid ""
14710 " set-attach-method attachmethod\n"
14711 "\n"
14712 msgstr ""
14713
14714 #. type: textblock
14715 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
14716 msgid ""
14717 "Set the method that libguestfs uses to connect to the back end guestfsd "
14718 "daemon.  Possible methods are:"
14719 msgstr ""
14720
14721 #. type: =item
14722 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
14723 #: ../src/guestfs.pod:2901
14724 msgid "C<appliance>"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
14729 msgid ""
14730 "Launch an appliance and connect to it.  This is the ordinary method and the "
14731 "default."
14732 msgstr ""
14733
14734 #. type: =item
14735 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
14736 msgid "C<unix:I<path>>"
14737 msgstr ""
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
14741 msgid "Connect to the Unix domain socket I<path>."
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
14746 msgid ""
14747 "This method lets you connect to an existing daemon or (using virtio-serial) "
14748 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14749 "RUNNING DAEMONS>."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:4173
14754 msgid "set-autosync"
14755 msgstr ""
14756
14757 #. type: =head2
14758 #: ../fish/guestfish-actions.pod:4175
14759 msgid "autosync"
14760 msgstr ""
14761
14762 #. type: verbatim
14763 #: ../fish/guestfish-actions.pod:4177
14764 #, no-wrap
14765 msgid ""
14766 " set-autosync true|false\n"
14767 "\n"
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
14772 msgid ""
14773 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14774 "effort attempt to make filesystems consistent and synchronized when the "
14775 "handle is closed (also if the program exits without closing handles)."
14776 msgstr ""
14777
14778 #. type: textblock
14779 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
14780 msgid ""
14781 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14782 "disabled by default)."
14783 msgstr ""
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:4187
14787 msgid "set-direct"
14788 msgstr ""
14789
14790 #. type: =head2
14791 #: ../fish/guestfish-actions.pod:4189
14792 msgid "direct"
14793 msgstr ""
14794
14795 #. type: verbatim
14796 #: ../fish/guestfish-actions.pod:4191
14797 #, no-wrap
14798 msgid ""
14799 " set-direct true|false\n"
14800 "\n"
14801 msgstr ""
14802
14803 #. type: textblock
14804 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
14805 msgid ""
14806 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14807 "passed directly through to the appliance once it is launched."
14808 msgstr ""
14809
14810 #. type: textblock
14811 #: ../fish/guestfish-actions.pod:4197
14812 msgid ""
14813 "One consequence of this is that log messages aren't caught by the library "
14814 "and handled by L</set-log-message-callback>, but go straight to stdout."
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
14819 msgid "You probably don't want to use this unless you know what you are doing."
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
14824 msgid "The default is disabled."
14825 msgstr ""
14826
14827 #. type: =head2
14828 #: ../fish/guestfish-actions.pod:4206
14829 msgid "set-e2label"
14830 msgstr ""
14831
14832 #. type: verbatim
14833 #: ../fish/guestfish-actions.pod:4208
14834 #, no-wrap
14835 msgid ""
14836 " set-e2label device label\n"
14837 "\n"
14838 msgstr ""
14839
14840 #. type: textblock
14841 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
14842 msgid ""
14843 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14844 "C<label>.  Filesystem labels are limited to 16 characters."
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:4214
14849 msgid ""
14850 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14851 "label on a filesystem."
14852 msgstr ""
14853
14854 #. type: =head2
14855 #: ../fish/guestfish-actions.pod:4217
14856 msgid "set-e2uuid"
14857 msgstr ""
14858
14859 #. type: verbatim
14860 #: ../fish/guestfish-actions.pod:4219
14861 #, no-wrap
14862 msgid ""
14863 " set-e2uuid device uuid\n"
14864 "\n"
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
14869 msgid ""
14870 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14871 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14872 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14873 msgstr ""
14874
14875 #. type: textblock
14876 #: ../fish/guestfish-actions.pod:4226
14877 msgid ""
14878 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14879 "UUID of a filesystem."
14880 msgstr ""
14881
14882 #. type: =head2
14883 #: ../fish/guestfish-actions.pod:4229
14884 msgid "set-memsize"
14885 msgstr ""
14886
14887 #. type: =head2
14888 #: ../fish/guestfish-actions.pod:4231
14889 msgid "memsize"
14890 msgstr ""
14891
14892 #. type: verbatim
14893 #: ../fish/guestfish-actions.pod:4233
14894 #, no-wrap
14895 msgid ""
14896 " set-memsize memsize\n"
14897 "\n"
14898 msgstr ""
14899
14900 #. type: textblock
14901 #: ../fish/guestfish-actions.pod:4235
14902 msgid ""
14903 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14904 "This only has any effect if called before L</launch>."
14905 msgstr ""
14906
14907 #. type: textblock
14908 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
14909 msgid ""
14910 "You can also change this by setting the environment variable "
14911 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14912 msgstr ""
14913
14914 #. type: =head2
14915 #: ../fish/guestfish-actions.pod:4246
14916 msgid "set-network"
14917 msgstr ""
14918
14919 #. type: =head2
14920 #: ../fish/guestfish-actions.pod:4248
14921 msgid "network"
14922 msgstr ""
14923
14924 #. type: verbatim
14925 #: ../fish/guestfish-actions.pod:4250
14926 #, no-wrap
14927 msgid ""
14928 " set-network true|false\n"
14929 "\n"
14930 msgstr ""
14931
14932 #. type: textblock
14933 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
14934 msgid ""
14935 "If C<network> is true, then the network is enabled in the libguestfs "
14936 "appliance.  The default is false."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
14941 msgid ""
14942 "This affects whether commands are able to access the network (see L<guestfs"
14943 "(3)/RUNNING COMMANDS>)."
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4258
14948 msgid ""
14949 "You must call this before calling L</launch>, otherwise it has no effect."
14950 msgstr ""
14951
14952 #. type: =head2
14953 #: ../fish/guestfish-actions.pod:4261
14954 msgid "set-path"
14955 msgstr ""
14956
14957 #. type: verbatim
14958 #: ../fish/guestfish-actions.pod:4265
14959 #, no-wrap
14960 msgid ""
14961 " set-path searchpath\n"
14962 "\n"
14963 msgstr ""
14964
14965 #. type: textblock
14966 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
14967 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14968 msgstr ""
14969
14970 #. type: textblock
14971 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
14972 msgid ""
14973 "The default is C<$libdir/guestfs> unless overridden by setting "
14974 "C<LIBGUESTFS_PATH> environment variable."
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
14979 msgid "Setting C<path> to C<NULL> restores the default path."
14980 msgstr ""
14981
14982 #. type: =head2
14983 #: ../fish/guestfish-actions.pod:4274
14984 msgid "set-pgroup"
14985 msgstr ""
14986
14987 #. type: =head2
14988 #: ../fish/guestfish-actions.pod:4276
14989 msgid "pgroup"
14990 msgstr ""
14991
14992 #. type: verbatim
14993 #: ../fish/guestfish-actions.pod:4278
14994 #, no-wrap
14995 msgid ""
14996 " set-pgroup true|false\n"
14997 "\n"
14998 msgstr ""
14999
15000 #. type: textblock
15001 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15002 msgid ""
15003 "If C<pgroup> is true, child processes are placed into their own process "
15004 "group."
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15009 msgid ""
15010 "The practical upshot of this is that signals like C<SIGINT> (from users "
15011 "pressing C<^C>) won't be received by the child process."
15012 msgstr ""
15013
15014 #. type: textblock
15015 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15016 msgid ""
15017 "The default for this flag is false, because usually you want C<^C> to kill "
15018 "the subprocess."
15019 msgstr ""
15020
15021 #. type: =head2
15022 #: ../fish/guestfish-actions.pod:4289
15023 msgid "set-qemu"
15024 msgstr ""
15025
15026 #. type: =head2
15027 #: ../fish/guestfish-actions.pod:4291
15028 msgid "qemu"
15029 msgstr ""
15030
15031 #. type: verbatim
15032 #: ../fish/guestfish-actions.pod:4293
15033 #, no-wrap
15034 msgid ""
15035 " set-qemu qemu\n"
15036 "\n"
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15041 msgid "Set the qemu binary that we will use."
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15046 msgid ""
15047 "The default is chosen when the library was compiled by the configure script."
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15052 msgid ""
15053 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15054 "variable."
15055 msgstr ""
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15059 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15060 msgstr ""
15061
15062 #. type: textblock
15063 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15064 msgid ""
15065 "Note that you should call this function as early as possible after creating "
15066 "the handle.  This is because some pre-launch operations depend on testing "
15067 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15068 "don't retest features, and so you might see inconsistent results.  Using the "
15069 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15070 "the qemu binary at the same time as the handle is created."
15071 msgstr ""
15072
15073 #. type: =head2
15074 #: ../fish/guestfish-actions.pod:4313
15075 msgid "set-recovery-proc"
15076 msgstr ""
15077
15078 #. type: =head2
15079 #: ../fish/guestfish-actions.pod:4315
15080 msgid "recovery-proc"
15081 msgstr ""
15082
15083 #. type: verbatim
15084 #: ../fish/guestfish-actions.pod:4317
15085 #, no-wrap
15086 msgid ""
15087 " set-recovery-proc true|false\n"
15088 "\n"
15089 msgstr ""
15090
15091 #. type: textblock
15092 #: ../fish/guestfish-actions.pod:4319
15093 msgid ""
15094 "If this is called with the parameter C<false> then L</launch> does not "
15095 "create a recovery process.  The purpose of the recovery process is to stop "
15096 "runaway qemu processes in the case where the main program aborts abruptly."
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:4324
15101 msgid ""
15102 "This only has any effect if called before L</launch>, and the default is "
15103 "true."
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15108 msgid ""
15109 "About the only time when you would want to disable this is if the main "
15110 "process will fork itself into the background (\"daemonize\" itself).  In "
15111 "this case the recovery process thinks that the main program has disappeared "
15112 "and so kills qemu, which is not very helpful."
15113 msgstr ""
15114
15115 #. type: =head2
15116 #: ../fish/guestfish-actions.pod:4333
15117 msgid "set-selinux"
15118 msgstr ""
15119
15120 #. type: =head2
15121 #: ../fish/guestfish-actions.pod:4335
15122 msgid "selinux"
15123 msgstr ""
15124
15125 #. type: verbatim
15126 #: ../fish/guestfish-actions.pod:4337
15127 #, no-wrap
15128 msgid ""
15129 " set-selinux true|false\n"
15130 "\n"
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15135 msgid ""
15136 "This sets the selinux flag that is passed to the appliance at boot time.  "
15137 "The default is C<selinux=0> (disabled)."
15138 msgstr ""
15139
15140 #. type: textblock
15141 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15142 msgid ""
15143 "Note that if SELinux is enabled, it is always in Permissive mode "
15144 "(C<enforcing=0>)."
15145 msgstr ""
15146
15147 #. type: =head2
15148 #: ../fish/guestfish-actions.pod:4348
15149 msgid "set-smp"
15150 msgstr ""
15151
15152 #. type: =head2
15153 #: ../fish/guestfish-actions.pod:4350
15154 msgid "smp"
15155 msgstr ""
15156
15157 #. type: verbatim
15158 #: ../fish/guestfish-actions.pod:4352
15159 #, no-wrap
15160 msgid ""
15161 " set-smp smp\n"
15162 "\n"
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15167 msgid ""
15168 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15169 "C<1>.  Increasing this may improve performance, though often it has no "
15170 "effect."
15171 msgstr ""
15172
15173 #. type: textblock
15174 #: ../fish/guestfish-actions.pod:4358
15175 msgid "This function must be called before L</launch>."
15176 msgstr ""
15177
15178 #. type: =head2
15179 #: ../fish/guestfish-actions.pod:4360
15180 msgid "set-trace"
15181 msgstr ""
15182
15183 #. type: =head2
15184 #: ../fish/guestfish-actions.pod:4362
15185 msgid "trace"
15186 msgstr ""
15187
15188 #. type: verbatim
15189 #: ../fish/guestfish-actions.pod:4364
15190 #, no-wrap
15191 msgid ""
15192 " set-trace true|false\n"
15193 "\n"
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15198 msgid ""
15199 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15200 "return values are traced."
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15205 msgid ""
15206 "If you want to trace C API calls into libguestfs (and other libraries) then "
15207 "possibly a better way is to use the external ltrace(1) command."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15212 msgid ""
15213 "Command traces are disabled unless the environment variable "
15214 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15215 msgstr ""
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:4376
15219 msgid ""
15220 "Trace messages are normally sent to C<stderr>, unless you register a "
15221 "callback to send them somewhere else (see L</set-event-callback>)."
15222 msgstr ""
15223
15224 #. type: =head2
15225 #: ../fish/guestfish-actions.pod:4380
15226 msgid "set-verbose"
15227 msgstr ""
15228
15229 #. type: =head2
15230 #: ../fish/guestfish-actions.pod:4382
15231 msgid "verbose"
15232 msgstr ""
15233
15234 #. type: verbatim
15235 #: ../fish/guestfish-actions.pod:4384
15236 #, no-wrap
15237 msgid ""
15238 " set-verbose true|false\n"
15239 "\n"
15240 msgstr ""
15241
15242 #. type: textblock
15243 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15244 msgid "If C<verbose> is true, this turns on verbose messages."
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15249 msgid ""
15250 "Verbose messages are disabled unless the environment variable "
15251 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:4391
15256 msgid ""
15257 "Verbose messages are normally sent to C<stderr>, unless you register a "
15258 "callback to send them somewhere else (see L</set-event-callback>)."
15259 msgstr ""
15260
15261 #. type: =head2
15262 #: ../fish/guestfish-actions.pod:4395
15263 msgid "setcon"
15264 msgstr ""
15265
15266 #. type: verbatim
15267 #: ../fish/guestfish-actions.pod:4397
15268 #, no-wrap
15269 msgid ""
15270 " setcon context\n"
15271 "\n"
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15276 msgid ""
15277 "This sets the SELinux security context of the daemon to the string "
15278 "C<context>."
15279 msgstr ""
15280
15281 #. type: textblock
15282 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15283 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4404
15288 msgid "setxattr"
15289 msgstr ""
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-actions.pod:4406
15293 #, no-wrap
15294 msgid ""
15295 " setxattr xattr val vallen path\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15301 msgid ""
15302 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15303 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-actions.pod:4412
15308 msgid "See also: L</lsetxattr>, L<attr(5)>."
15309 msgstr ""
15310
15311 #. type: =head2
15312 #: ../fish/guestfish-actions.pod:4414
15313 msgid "sfdisk"
15314 msgstr ""
15315
15316 #. type: verbatim
15317 #: ../fish/guestfish-actions.pod:4416
15318 #, no-wrap
15319 msgid ""
15320 " sfdisk device cyls heads sectors 'lines ...'\n"
15321 "\n"
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15326 msgid ""
15327 "This is a direct interface to the L<sfdisk(8)> program for creating "
15328 "partitions on block devices."
15329 msgstr ""
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15333 msgid "C<device> should be a block device, for example C</dev/sda>."
15334 msgstr ""
15335
15336 #. type: textblock
15337 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15338 msgid ""
15339 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15340 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15341 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15342 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15343 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15344 "the kernel) cannot work out the right geometry and you will need to tell it."
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15349 msgid ""
15350 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15351 "refer to the L<sfdisk(8)> manpage."
15352 msgstr ""
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15356 msgid ""
15357 "To create a single partition occupying the whole disk, you would pass "
15358 "C<lines> as a single element list, when the single element being the string "
15359 "C<,> (comma)."
15360 msgstr ""
15361
15362 #. type: textblock
15363 #: ../fish/guestfish-actions.pod:4438
15364 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15365 msgstr ""
15366
15367 #. type: textblock
15368 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15369 #: ../fish/guestfish-actions.pod:4489
15370 msgid ""
15371 "I<This function is deprecated.> In new code, use the L</part_add> call "
15372 "instead."
15373 msgstr ""
15374
15375 #. type: =head2
15376 #: ../fish/guestfish-actions.pod:4451
15377 msgid "sfdiskM"
15378 msgstr ""
15379
15380 #. type: verbatim
15381 #: ../fish/guestfish-actions.pod:4453
15382 #, no-wrap
15383 msgid ""
15384 " sfdiskM device 'lines ...'\n"
15385 "\n"
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4455
15390 msgid ""
15391 "This is a simplified interface to the L</sfdisk> command, where partition "
15392 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15393 "you don't need to specify the cyls, heads and sectors parameters which were "
15394 "rarely if ever used anyway."
15395 msgstr ""
15396
15397 #. type: textblock
15398 #: ../fish/guestfish-actions.pod:4461
15399 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15400 msgstr ""
15401
15402 #. type: =head2
15403 #: ../fish/guestfish-actions.pod:4474
15404 msgid "sfdisk-N"
15405 msgstr ""
15406
15407 #. type: verbatim
15408 #: ../fish/guestfish-actions.pod:4476
15409 #, no-wrap
15410 msgid ""
15411 " sfdisk-N device partnum cyls heads sectors line\n"
15412 "\n"
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15417 msgid ""
15418 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15419 "(note: C<n> counts from 1)."
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:4481
15424 msgid ""
15425 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15426 "cyls/heads/sectors parameters."
15427 msgstr ""
15428
15429 #. type: textblock
15430 #: ../fish/guestfish-actions.pod:4484
15431 msgid "See also: L</part-add>"
15432 msgstr ""
15433
15434 #. type: =head2
15435 #: ../fish/guestfish-actions.pod:4496
15436 msgid "sfdisk-disk-geometry"
15437 msgstr ""
15438
15439 #. type: verbatim
15440 #: ../fish/guestfish-actions.pod:4498
15441 #, no-wrap
15442 msgid ""
15443 " sfdisk-disk-geometry device\n"
15444 "\n"
15445 msgstr ""
15446
15447 #. type: textblock
15448 #: ../fish/guestfish-actions.pod:4500
15449 msgid ""
15450 "This displays the disk geometry of C<device> read from the partition table.  "
15451 "Especially in the case where the underlying block device has been resized, "
15452 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15453 "kernel-geometry>)."
15454 msgstr ""
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15458 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15459 msgid "The result is in human-readable format, and not designed to be parsed."
15460 msgstr ""
15461
15462 #. type: =head2
15463 #: ../fish/guestfish-actions.pod:4508
15464 msgid "sfdisk-kernel-geometry"
15465 msgstr ""
15466
15467 #. type: verbatim
15468 #: ../fish/guestfish-actions.pod:4510
15469 #, no-wrap
15470 msgid ""
15471 " sfdisk-kernel-geometry device\n"
15472 "\n"
15473 msgstr ""
15474
15475 #. type: textblock
15476 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15477 msgid "This displays the kernel's idea of the geometry of C<device>."
15478 msgstr ""
15479
15480 #. type: =head2
15481 #: ../fish/guestfish-actions.pod:4517
15482 msgid "sfdisk-l"
15483 msgstr ""
15484
15485 #. type: verbatim
15486 #: ../fish/guestfish-actions.pod:4519
15487 #, no-wrap
15488 msgid ""
15489 " sfdisk-l device\n"
15490 "\n"
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15495 msgid ""
15496 "This displays the partition table on C<device>, in the human-readable output "
15497 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15498 msgstr ""
15499
15500 #. type: textblock
15501 #: ../fish/guestfish-actions.pod:4525
15502 msgid "See also: L</part-list>"
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../fish/guestfish-actions.pod:4527
15507 msgid ""
15508 "I<This function is deprecated.> In new code, use the L</part_list> call "
15509 "instead."
15510 msgstr ""
15511
15512 #. type: =head2
15513 #: ../fish/guestfish-actions.pod:4534
15514 msgid "sh"
15515 msgstr ""
15516
15517 #. type: verbatim
15518 #: ../fish/guestfish-actions.pod:4536
15519 #, no-wrap
15520 msgid ""
15521 " sh command\n"
15522 "\n"
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15527 msgid ""
15528 "This call runs a command from the guest filesystem via the guest's C</bin/"
15529 "sh>."
15530 msgstr ""
15531
15532 #. type: textblock
15533 #: ../fish/guestfish-actions.pod:4541
15534 msgid "This is like L</command>, but passes the command to:"
15535 msgstr ""
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15539 #, no-wrap
15540 msgid ""
15541 " /bin/sh -c \"command\"\n"
15542 "\n"
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
15547 msgid ""
15548 "Depending on the guest's shell, this usually results in wildcards being "
15549 "expanded, shell expressions being interpolated and so on."
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-actions.pod:4549
15554 msgid "All the provisos about L</command> apply to this call."
15555 msgstr ""
15556
15557 #. type: =head2
15558 #: ../fish/guestfish-actions.pod:4551
15559 msgid "sh-lines"
15560 msgstr ""
15561
15562 #. type: verbatim
15563 #: ../fish/guestfish-actions.pod:4553
15564 #, no-wrap
15565 msgid ""
15566 " sh-lines command\n"
15567 "\n"
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-actions.pod:4555
15572 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15573 msgstr ""
15574
15575 #. type: textblock
15576 #: ../fish/guestfish-actions.pod:4558
15577 msgid "See also: L</command-lines>"
15578 msgstr ""
15579
15580 #. type: =head2
15581 #: ../fish/guestfish-actions.pod:4560
15582 msgid "sleep"
15583 msgstr ""
15584
15585 #. type: verbatim
15586 #: ../fish/guestfish-actions.pod:4562
15587 #, no-wrap
15588 msgid ""
15589 " sleep secs\n"
15590 "\n"
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
15595 msgid "Sleep for C<secs> seconds."
15596 msgstr ""
15597
15598 #. type: =head2
15599 #: ../fish/guestfish-actions.pod:4566
15600 msgid "stat"
15601 msgstr ""
15602
15603 #. type: verbatim
15604 #: ../fish/guestfish-actions.pod:4568
15605 #, no-wrap
15606 msgid ""
15607 " stat path\n"
15608 "\n"
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
15613 msgid "This is the same as the C<stat(2)> system call."
15614 msgstr ""
15615
15616 #. type: =head2
15617 #: ../fish/guestfish-actions.pod:4574
15618 msgid "statvfs"
15619 msgstr ""
15620
15621 #. type: verbatim
15622 #: ../fish/guestfish-actions.pod:4576
15623 #, no-wrap
15624 msgid ""
15625 " statvfs path\n"
15626 "\n"
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
15631 msgid ""
15632 "Returns file system statistics for any mounted file system.  C<path> should "
15633 "be a file or directory in the mounted file system (typically it is the mount "
15634 "point itself, but it doesn't need to be)."
15635 msgstr ""
15636
15637 #. type: textblock
15638 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
15639 msgid "This is the same as the C<statvfs(2)> system call."
15640 msgstr ""
15641
15642 #. type: =head2
15643 #: ../fish/guestfish-actions.pod:4584
15644 msgid "strings"
15645 msgstr ""
15646
15647 #. type: verbatim
15648 #: ../fish/guestfish-actions.pod:4586
15649 #, no-wrap
15650 msgid ""
15651 " strings path\n"
15652 "\n"
15653 msgstr ""
15654
15655 #. type: textblock
15656 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
15657 msgid ""
15658 "This runs the L<strings(1)> command on a file and returns the list of "
15659 "printable strings found."
15660 msgstr ""
15661
15662 #. type: =head2
15663 #: ../fish/guestfish-actions.pod:4594
15664 msgid "strings-e"
15665 msgstr ""
15666
15667 #. type: verbatim
15668 #: ../fish/guestfish-actions.pod:4596
15669 #, no-wrap
15670 msgid ""
15671 " strings-e encoding path\n"
15672 "\n"
15673 msgstr ""
15674
15675 #. type: textblock
15676 #: ../fish/guestfish-actions.pod:4598
15677 msgid ""
15678 "This is like the L</strings> command, but allows you to specify the encoding "
15679 "of strings that are looked for in the source file C<path>."
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
15684 msgid "Allowed encodings are:"
15685 msgstr ""
15686
15687 #. type: =item
15688 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
15689 msgid "s"
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../fish/guestfish-actions.pod:4608
15694 msgid ""
15695 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15696 "ISO-8859-X (this is what L</strings> uses)."
15697 msgstr ""
15698
15699 #. type: =item
15700 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
15701 msgid "S"
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
15706 msgid "Single 8-bit-byte characters."
15707 msgstr ""
15708
15709 #. type: =item
15710 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
15711 msgid "b"
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
15716 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15717 msgstr ""
15718
15719 #. type: =item
15720 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
15721 msgid "l (lower case letter L)"
15722 msgstr ""
15723
15724 #. type: textblock
15725 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
15726 msgid ""
15727 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15728 "examining binaries in Windows guests."
15729 msgstr ""
15730
15731 #. type: =item
15732 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
15733 msgid "B"
15734 msgstr ""
15735
15736 #. type: textblock
15737 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
15738 msgid "32-bit big endian such as UCS-4BE."
15739 msgstr ""
15740
15741 #. type: =item
15742 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
15743 msgid "L"
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
15748 msgid "32-bit little endian such as UCS-4LE."
15749 msgstr ""
15750
15751 #. type: textblock
15752 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
15753 msgid "The returned strings are transcoded to UTF-8."
15754 msgstr ""
15755
15756 #. type: =head2
15757 #: ../fish/guestfish-actions.pod:4640
15758 msgid "swapoff-device"
15759 msgstr ""
15760
15761 #. type: verbatim
15762 #: ../fish/guestfish-actions.pod:4642
15763 #, no-wrap
15764 msgid ""
15765 " swapoff-device device\n"
15766 "\n"
15767 msgstr ""
15768
15769 #. type: textblock
15770 #: ../fish/guestfish-actions.pod:4644
15771 msgid ""
15772 "This command disables the libguestfs appliance swap device or partition "
15773 "named C<device>.  See L</swapon-device>."
15774 msgstr ""
15775
15776 #. type: =head2
15777 #: ../fish/guestfish-actions.pod:4648
15778 msgid "swapoff-file"
15779 msgstr ""
15780
15781 #. type: verbatim
15782 #: ../fish/guestfish-actions.pod:4650
15783 #, no-wrap
15784 msgid ""
15785 " swapoff-file file\n"
15786 "\n"
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
15791 msgid "This command disables the libguestfs appliance swap on file."
15792 msgstr ""
15793
15794 #. type: =head2
15795 #: ../fish/guestfish-actions.pod:4654
15796 msgid "swapoff-label"
15797 msgstr ""
15798
15799 #. type: verbatim
15800 #: ../fish/guestfish-actions.pod:4656
15801 #, no-wrap
15802 msgid ""
15803 " swapoff-label label\n"
15804 "\n"
15805 msgstr ""
15806
15807 #. type: textblock
15808 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
15809 msgid ""
15810 "This command disables the libguestfs appliance swap on labeled swap "
15811 "partition."
15812 msgstr ""
15813
15814 #. type: =head2
15815 #: ../fish/guestfish-actions.pod:4661
15816 msgid "swapoff-uuid"
15817 msgstr ""
15818
15819 #. type: verbatim
15820 #: ../fish/guestfish-actions.pod:4663
15821 #, no-wrap
15822 msgid ""
15823 " swapoff-uuid uuid\n"
15824 "\n"
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
15829 msgid ""
15830 "This command disables the libguestfs appliance swap partition with the given "
15831 "UUID."
15832 msgstr ""
15833
15834 #. type: =head2
15835 #: ../fish/guestfish-actions.pod:4668
15836 msgid "swapon-device"
15837 msgstr ""
15838
15839 #. type: verbatim
15840 #: ../fish/guestfish-actions.pod:4670
15841 #, no-wrap
15842 msgid ""
15843 " swapon-device device\n"
15844 "\n"
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-actions.pod:4672
15849 msgid ""
15850 "This command enables the libguestfs appliance to use the swap device or "
15851 "partition named C<device>.  The increased memory is made available for all "
15852 "commands, for example those run using L</command> or L</sh>."
15853 msgstr ""
15854
15855 #. type: textblock
15856 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
15857 msgid ""
15858 "Note that you should not swap to existing guest swap partitions unless you "
15859 "know what you are doing.  They may contain hibernation information, or other "
15860 "information that the guest doesn't want you to trash.  You also risk leaking "
15861 "information about the host to the guest this way.  Instead, attach a new "
15862 "host device to the guest and swap on that."
15863 msgstr ""
15864
15865 #. type: =head2
15866 #: ../fish/guestfish-actions.pod:4684
15867 msgid "swapon-file"
15868 msgstr ""
15869
15870 #. type: verbatim
15871 #: ../fish/guestfish-actions.pod:4686
15872 #, no-wrap
15873 msgid ""
15874 " swapon-file file\n"
15875 "\n"
15876 msgstr ""
15877
15878 #. type: textblock
15879 #: ../fish/guestfish-actions.pod:4688
15880 msgid ""
15881 "This command enables swap to a file.  See L</swapon-device> for other notes."
15882 msgstr ""
15883
15884 #. type: =head2
15885 #: ../fish/guestfish-actions.pod:4691
15886 msgid "swapon-label"
15887 msgstr ""
15888
15889 #. type: verbatim
15890 #: ../fish/guestfish-actions.pod:4693
15891 #, no-wrap
15892 msgid ""
15893 " swapon-label label\n"
15894 "\n"
15895 msgstr ""
15896
15897 #. type: textblock
15898 #: ../fish/guestfish-actions.pod:4695
15899 msgid ""
15900 "This command enables swap to a labeled swap partition.  See L</swapon-"
15901 "device> for other notes."
15902 msgstr ""
15903
15904 #. type: =head2
15905 #: ../fish/guestfish-actions.pod:4698
15906 msgid "swapon-uuid"
15907 msgstr ""
15908
15909 #. type: verbatim
15910 #: ../fish/guestfish-actions.pod:4700
15911 #, no-wrap
15912 msgid ""
15913 " swapon-uuid uuid\n"
15914 "\n"
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../fish/guestfish-actions.pod:4702
15919 msgid ""
15920 "This command enables swap to a swap partition with the given UUID.  See L</"
15921 "swapon-device> for other notes."
15922 msgstr ""
15923
15924 #. type: =head2
15925 #: ../fish/guestfish-actions.pod:4705
15926 msgid "sync"
15927 msgstr ""
15928
15929 #. type: verbatim
15930 #: ../fish/guestfish-actions.pod:4707
15931 #, no-wrap
15932 msgid ""
15933 " sync\n"
15934 "\n"
15935 msgstr ""
15936
15937 #. type: textblock
15938 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
15939 msgid ""
15940 "This syncs the disk, so that any writes are flushed through to the "
15941 "underlying disk image."
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
15946 msgid ""
15947 "You should always call this if you have modified a disk image, before "
15948 "closing the handle."
15949 msgstr ""
15950
15951 #. type: =head2
15952 #: ../fish/guestfish-actions.pod:4715
15953 msgid "tail"
15954 msgstr ""
15955
15956 #. type: verbatim
15957 #: ../fish/guestfish-actions.pod:4717
15958 #, no-wrap
15959 msgid ""
15960 " tail path\n"
15961 "\n"
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
15966 msgid ""
15967 "This command returns up to the last 10 lines of a file as a list of strings."
15968 msgstr ""
15969
15970 #. type: =head2
15971 #: ../fish/guestfish-actions.pod:4725
15972 msgid "tail-n"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../fish/guestfish-actions.pod:4727
15977 #, no-wrap
15978 msgid ""
15979 " tail-n nrlines path\n"
15980 "\n"
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
15985 msgid ""
15986 "If the parameter C<nrlines> is a positive number, this returns the last "
15987 "C<nrlines> lines of the file C<path>."
15988 msgstr ""
15989
15990 #. type: textblock
15991 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
15992 msgid ""
15993 "If the parameter C<nrlines> is a negative number, this returns lines from "
15994 "the file C<path>, starting with the C<-nrlines>th line."
15995 msgstr ""
15996
15997 #. type: =head2
15998 #: ../fish/guestfish-actions.pod:4740
15999 msgid "tar-in"
16000 msgstr ""
16001
16002 #. type: verbatim
16003 #: ../fish/guestfish-actions.pod:4742
16004 #, no-wrap
16005 msgid ""
16006 " tar-in (tarfile|-) directory\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16012 msgid ""
16013 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16014 "tar file) into C<directory>."
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../fish/guestfish-actions.pod:4747
16019 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16020 msgstr ""
16021
16022 #. type: =head2
16023 #: ../fish/guestfish-actions.pod:4752
16024 msgid "tar-out"
16025 msgstr ""
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish-actions.pod:4754
16029 #, no-wrap
16030 msgid ""
16031 " tar-out directory (tarfile|-)\n"
16032 "\n"
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16037 msgid ""
16038 "This command packs the contents of C<directory> and downloads it to local "
16039 "file C<tarfile>."
16040 msgstr ""
16041
16042 #. type: textblock
16043 #: ../fish/guestfish-actions.pod:4759
16044 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16045 msgstr ""
16046
16047 #. type: =head2
16048 #: ../fish/guestfish-actions.pod:4764
16049 msgid "tgz-in"
16050 msgstr ""
16051
16052 #. type: verbatim
16053 #: ../fish/guestfish-actions.pod:4766
16054 #, no-wrap
16055 msgid ""
16056 " tgz-in (tarball|-) directory\n"
16057 "\n"
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16062 msgid ""
16063 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16064 "tar file) into C<directory>."
16065 msgstr ""
16066
16067 #. type: textblock
16068 #: ../fish/guestfish-actions.pod:4771
16069 msgid "To upload an uncompressed tarball, use L</tar-in>."
16070 msgstr ""
16071
16072 #. type: =head2
16073 #: ../fish/guestfish-actions.pod:4775
16074 msgid "tgz-out"
16075 msgstr ""
16076
16077 #. type: verbatim
16078 #: ../fish/guestfish-actions.pod:4777
16079 #, no-wrap
16080 msgid ""
16081 " tgz-out directory (tarball|-)\n"
16082 "\n"
16083 msgstr ""
16084
16085 #. type: textblock
16086 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16087 msgid ""
16088 "This command packs the contents of C<directory> and downloads it to local "
16089 "file C<tarball>."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:4782
16094 msgid "To download an uncompressed tarball, use L</tar-out>."
16095 msgstr ""
16096
16097 #. type: =head2
16098 #: ../fish/guestfish-actions.pod:4786
16099 msgid "touch"
16100 msgstr ""
16101
16102 #. type: verbatim
16103 #: ../fish/guestfish-actions.pod:4788
16104 #, no-wrap
16105 msgid ""
16106 " touch path\n"
16107 "\n"
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16112 msgid ""
16113 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16114 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16115 "length file."
16116 msgstr ""
16117
16118 #. type: textblock
16119 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16120 msgid ""
16121 "This command only works on regular files, and will fail on other file types "
16122 "such as directories, symbolic links, block special etc."
16123 msgstr ""
16124
16125 #. type: =head2
16126 #: ../fish/guestfish-actions.pod:4797
16127 msgid "truncate"
16128 msgstr ""
16129
16130 #. type: verbatim
16131 #: ../fish/guestfish-actions.pod:4799
16132 #, no-wrap
16133 msgid ""
16134 " truncate path\n"
16135 "\n"
16136 msgstr ""
16137
16138 #. type: textblock
16139 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16140 msgid ""
16141 "This command truncates C<path> to a zero-length file.  The file must exist "
16142 "already."
16143 msgstr ""
16144
16145 #. type: =head2
16146 #: ../fish/guestfish-actions.pod:4804
16147 msgid "truncate-size"
16148 msgstr ""
16149
16150 #. type: verbatim
16151 #: ../fish/guestfish-actions.pod:4806
16152 #, no-wrap
16153 msgid ""
16154 " truncate-size path size\n"
16155 "\n"
16156 msgstr ""
16157
16158 #. type: textblock
16159 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16160 msgid ""
16161 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16162 "already."
16163 msgstr ""
16164
16165 #. type: textblock
16166 #: ../fish/guestfish-actions.pod:4811
16167 msgid ""
16168 "If the current file size is less than C<size> then the file is extended to "
16169 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16170 "blocks are not allocated for the file until you write to it).  To create a "
16171 "non-sparse file of zeroes, use L</fallocate64> instead."
16172 msgstr ""
16173
16174 #. type: =head2
16175 #: ../fish/guestfish-actions.pod:4817
16176 msgid "tune2fs-l"
16177 msgstr ""
16178
16179 #. type: verbatim
16180 #: ../fish/guestfish-actions.pod:4819
16181 #, no-wrap
16182 msgid ""
16183 " tune2fs-l device\n"
16184 "\n"
16185 msgstr ""
16186
16187 #. type: textblock
16188 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16189 msgid ""
16190 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16191 "C<device>."
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16196 msgid ""
16197 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16198 "for more details.  The list of fields returned isn't clearly defined, and "
16199 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16200 "and the filesystem itself."
16201 msgstr ""
16202
16203 #. type: =head2
16204 #: ../fish/guestfish-actions.pod:4829
16205 msgid "txz-in"
16206 msgstr ""
16207
16208 #. type: verbatim
16209 #: ../fish/guestfish-actions.pod:4831
16210 #, no-wrap
16211 msgid ""
16212 " txz-in (tarball|-) directory\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16218 msgid ""
16219 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16220 "tar file) into C<directory>."
16221 msgstr ""
16222
16223 #. type: =head2
16224 #: ../fish/guestfish-actions.pod:4838
16225 msgid "txz-out"
16226 msgstr ""
16227
16228 #. type: verbatim
16229 #: ../fish/guestfish-actions.pod:4840
16230 #, no-wrap
16231 msgid ""
16232 " txz-out directory (tarball|-)\n"
16233 "\n"
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16238 msgid ""
16239 "This command packs the contents of C<directory> and downloads it to local "
16240 "file C<tarball> (as an xz compressed tar archive)."
16241 msgstr ""
16242
16243 #. type: =head2
16244 #: ../fish/guestfish-actions.pod:4847
16245 msgid "umask"
16246 msgstr ""
16247
16248 #. type: verbatim
16249 #: ../fish/guestfish-actions.pod:4849
16250 #, no-wrap
16251 msgid ""
16252 " umask mask\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16258 msgid ""
16259 "This function sets the mask used for creating new files and device nodes to "
16260 "C<mask & 0777>."
16261 msgstr ""
16262
16263 #. type: textblock
16264 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16265 msgid ""
16266 "Typical umask values would be C<022> which creates new files with "
16267 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16268 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16269 msgstr ""
16270
16271 #. type: textblock
16272 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16273 msgid ""
16274 "The default umask is C<022>.  This is important because it means that "
16275 "directories and device nodes will be created with C<0644> or C<0755> mode "
16276 "even if you specify C<0777>."
16277 msgstr ""
16278
16279 #. type: textblock
16280 #: ../fish/guestfish-actions.pod:4863
16281 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16282 msgstr ""
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16286 msgid "This call returns the previous umask."
16287 msgstr ""
16288
16289 #. type: =head2
16290 #: ../fish/guestfish-actions.pod:4868
16291 msgid "umount"
16292 msgstr ""
16293
16294 #. type: =head2
16295 #: ../fish/guestfish-actions.pod:4870
16296 msgid "unmount"
16297 msgstr ""
16298
16299 #. type: verbatim
16300 #: ../fish/guestfish-actions.pod:4872
16301 #, no-wrap
16302 msgid ""
16303 " umount pathordevice\n"
16304 "\n"
16305 msgstr ""
16306
16307 #. type: textblock
16308 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16309 msgid ""
16310 "This unmounts the given filesystem.  The filesystem may be specified either "
16311 "by its mountpoint (path) or the device which contains the filesystem."
16312 msgstr ""
16313
16314 #. type: =head2
16315 #: ../fish/guestfish-actions.pod:4878
16316 msgid "umount-all"
16317 msgstr ""
16318
16319 #. type: =head2
16320 #: ../fish/guestfish-actions.pod:4880
16321 msgid "unmount-all"
16322 msgstr ""
16323
16324 #. type: verbatim
16325 #: ../fish/guestfish-actions.pod:4882
16326 #, no-wrap
16327 msgid ""
16328 " umount-all\n"
16329 "\n"
16330 msgstr ""
16331
16332 #. type: textblock
16333 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16334 msgid "This unmounts all mounted filesystems."
16335 msgstr ""
16336
16337 #. type: textblock
16338 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16339 msgid "Some internal mounts are not unmounted by this call."
16340 msgstr ""
16341
16342 #. type: =head2
16343 #: ../fish/guestfish-actions.pod:4888
16344 msgid "upload"
16345 msgstr ""
16346
16347 #. type: verbatim
16348 #: ../fish/guestfish-actions.pod:4890
16349 #, no-wrap
16350 msgid ""
16351 " upload (filename|-) remotefilename\n"
16352 "\n"
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16357 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16358 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../fish/guestfish-actions.pod:4897
16363 msgid "See also L</download>."
16364 msgstr ""
16365
16366 #. type: =head2
16367 #: ../fish/guestfish-actions.pod:4901
16368 msgid "upload-offset"
16369 msgstr ""
16370
16371 #. type: verbatim
16372 #: ../fish/guestfish-actions.pod:4903
16373 #, no-wrap
16374 msgid ""
16375 " upload-offset (filename|-) remotefilename offset\n"
16376 "\n"
16377 msgstr ""
16378
16379 #. type: textblock
16380 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16381 msgid ""
16382 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16383 "The intention is to overwrite parts of existing files or devices, although "
16384 "if a non-existant file is specified then it is created with a \"hole\" "
16385 "before C<offset>.  The size of the data written is implicit in the size of "
16386 "the source C<filename>."
16387 msgstr ""
16388
16389 #. type: textblock
16390 #: ../fish/guestfish-actions.pod:4915
16391 msgid ""
16392 "Note that there is no limit on the amount of data that can be uploaded with "
16393 "this call, unlike with L</pwrite>, and this call always writes the full "
16394 "amount unless an error occurs."
16395 msgstr ""
16396
16397 #. type: textblock
16398 #: ../fish/guestfish-actions.pod:4920
16399 msgid "See also L</upload>, L</pwrite>."
16400 msgstr ""
16401
16402 #. type: =head2
16403 #: ../fish/guestfish-actions.pod:4924
16404 msgid "utimens"
16405 msgstr ""
16406
16407 #. type: verbatim
16408 #: ../fish/guestfish-actions.pod:4926
16409 #, no-wrap
16410 msgid ""
16411 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16412 "\n"
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16417 msgid "This command sets the timestamps of a file with nanosecond precision."
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16422 msgid ""
16423 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16424 "from the epoch."
16425 msgstr ""
16426
16427 #. type: textblock
16428 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16429 msgid ""
16430 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16431 "nanoseconds from the epoch."
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16436 msgid ""
16437 "If the C<*nsecs> field contains the special value C<-1> then the "
16438 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16439 "ignored in this case)."
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16444 msgid ""
16445 "If the C<*nsecs> field contains the special value C<-2> then the "
16446 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16447 "in this case)."
16448 msgstr ""
16449
16450 #. type: =head2
16451 #: ../fish/guestfish-actions.pod:4945
16452 msgid "version"
16453 msgstr ""
16454
16455 #. type: verbatim
16456 #: ../fish/guestfish-actions.pod:4947
16457 #, no-wrap
16458 msgid ""
16459 " version\n"
16460 "\n"
16461 msgstr ""
16462
16463 #. type: textblock
16464 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16465 msgid ""
16466 "Return the libguestfs version number that the program is linked against."
16467 msgstr ""
16468
16469 #. type: textblock
16470 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16471 msgid ""
16472 "Note that because of dynamic linking this is not necessarily the version of "
16473 "libguestfs that you compiled against.  You can compile the program, and then "
16474 "at runtime dynamically link against a completely different C<libguestfs.so> "
16475 "library."
16476 msgstr ""
16477
16478 #. type: textblock
16479 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
16480 msgid ""
16481 "This call was added in version C<1.0.58>.  In previous versions of "
16482 "libguestfs there was no way to get the version number.  From C code you can "
16483 "use dynamic linker functions to find out if this symbol exists (if it "
16484 "doesn't, then it's an earlier version)."
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
16489 msgid ""
16490 "The call returns a structure with four elements.  The first three (C<major>, "
16491 "C<minor> and C<release>) are numbers and correspond to the usual version "
16492 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16493 "but may be used for distro-specific information."
16494 msgstr ""
16495
16496 #. type: textblock
16497 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
16498 msgid ""
16499 "To construct the original version string: C<$major.$minor.$release$extra>"
16500 msgstr ""
16501
16502 #. type: textblock
16503 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
16504 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16505 msgstr ""
16506
16507 #. type: textblock
16508 #: ../fish/guestfish-actions.pod:4974
16509 msgid ""
16510 "I<Note:> Don't use this call to test for availability of features.  In "
16511 "enterprise distributions we backport features from later versions into "
16512 "earlier versions, making this an unreliable way to test for features.  Use "
16513 "L</available> instead."
16514 msgstr ""
16515
16516 #. type: =head2
16517 #: ../fish/guestfish-actions.pod:4980
16518 msgid "vfs-label"
16519 msgstr ""
16520
16521 #. type: verbatim
16522 #: ../fish/guestfish-actions.pod:4982
16523 #, no-wrap
16524 msgid ""
16525 " vfs-label device\n"
16526 "\n"
16527 msgstr ""
16528
16529 #. type: textblock
16530 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
16531 msgid "This returns the filesystem label of the filesystem on C<device>."
16532 msgstr ""
16533
16534 #. type: textblock
16535 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
16536 msgid "If the filesystem is unlabeled, this returns the empty string."
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-actions.pod:4989
16541 msgid "To find a filesystem from the label, use L</findfs-label>."
16542 msgstr ""
16543
16544 #. type: =head2
16545 #: ../fish/guestfish-actions.pod:4991
16546 msgid "vfs-type"
16547 msgstr ""
16548
16549 #. type: verbatim
16550 #: ../fish/guestfish-actions.pod:4993
16551 #, no-wrap
16552 msgid ""
16553 " vfs-type device\n"
16554 "\n"
16555 msgstr ""
16556
16557 #. type: textblock
16558 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
16559 msgid ""
16560 "This command gets the filesystem type corresponding to the filesystem on "
16561 "C<device>."
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
16566 msgid ""
16567 "For most filesystems, the result is the name of the Linux VFS module which "
16568 "would be used to mount this filesystem if you mounted it without specifying "
16569 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16570 msgstr ""
16571
16572 #. type: =head2
16573 #: ../fish/guestfish-actions.pod:5003
16574 msgid "vfs-uuid"
16575 msgstr ""
16576
16577 #. type: verbatim
16578 #: ../fish/guestfish-actions.pod:5005
16579 #, no-wrap
16580 msgid ""
16581 " vfs-uuid device\n"
16582 "\n"
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
16587 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
16592 msgid "If the filesystem does not have a UUID, this returns the empty string."
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-actions.pod:5012
16597 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16598 msgstr ""
16599
16600 #. type: =head2
16601 #: ../fish/guestfish-actions.pod:5014
16602 msgid "vg-activate"
16603 msgstr ""
16604
16605 #. type: verbatim
16606 #: ../fish/guestfish-actions.pod:5016
16607 #, no-wrap
16608 msgid ""
16609 " vg-activate true|false 'volgroups ...'\n"
16610 "\n"
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
16615 msgid ""
16616 "This command activates or (if C<activate> is false) deactivates all logical "
16617 "volumes in the listed volume groups C<volgroups>."
16618 msgstr ""
16619
16620 #. type: textblock
16621 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
16622 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
16627 msgid ""
16628 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16629 "activated or deactivated."
16630 msgstr ""
16631
16632 #. type: =head2
16633 #: ../fish/guestfish-actions.pod:5026
16634 msgid "vg-activate-all"
16635 msgstr ""
16636
16637 #. type: verbatim
16638 #: ../fish/guestfish-actions.pod:5028
16639 #, no-wrap
16640 msgid ""
16641 " vg-activate-all true|false\n"
16642 "\n"
16643 msgstr ""
16644
16645 #. type: textblock
16646 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
16647 msgid ""
16648 "This command activates or (if C<activate> is false) deactivates all logical "
16649 "volumes in all volume groups."
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
16654 msgid "This command is the same as running C<vgchange -a y|n>"
16655 msgstr ""
16656
16657 #. type: =head2
16658 #: ../fish/guestfish-actions.pod:5035
16659 msgid "vgcreate"
16660 msgstr ""
16661
16662 #. type: verbatim
16663 #: ../fish/guestfish-actions.pod:5037
16664 #, no-wrap
16665 msgid ""
16666 " vgcreate volgroup 'physvols ...'\n"
16667 "\n"
16668 msgstr ""
16669
16670 #. type: textblock
16671 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
16672 msgid ""
16673 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16674 "of physical volumes C<physvols>."
16675 msgstr ""
16676
16677 #. type: =head2
16678 #: ../fish/guestfish-actions.pod:5042
16679 msgid "vglvuuids"
16680 msgstr ""
16681
16682 #. type: verbatim
16683 #: ../fish/guestfish-actions.pod:5044
16684 #, no-wrap
16685 msgid ""
16686 " vglvuuids vgname\n"
16687 "\n"
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
16692 msgid ""
16693 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16694 "volumes created in this volume group."
16695 msgstr ""
16696
16697 #. type: textblock
16698 #: ../fish/guestfish-actions.pod:5049
16699 msgid ""
16700 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16701 "logical volumes and volume groups."
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-actions.pod:5052
16706 msgid "See also L</vgpvuuids>."
16707 msgstr ""
16708
16709 #. type: =head2
16710 #: ../fish/guestfish-actions.pod:5054
16711 msgid "vgpvuuids"
16712 msgstr ""
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish-actions.pod:5056
16716 #, no-wrap
16717 msgid ""
16718 " vgpvuuids vgname\n"
16719 "\n"
16720 msgstr ""
16721
16722 #. type: textblock
16723 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
16724 msgid ""
16725 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16726 "volumes that this volume group resides on."
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-actions.pod:5061
16731 msgid ""
16732 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16733 "physical volumes and volume groups."
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-actions.pod:5064
16738 msgid "See also L</vglvuuids>."
16739 msgstr ""
16740
16741 #. type: =head2
16742 #: ../fish/guestfish-actions.pod:5066
16743 msgid "vgremove"
16744 msgstr ""
16745
16746 #. type: verbatim
16747 #: ../fish/guestfish-actions.pod:5068
16748 #, no-wrap
16749 msgid ""
16750 " vgremove vgname\n"
16751 "\n"
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
16756 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
16761 msgid ""
16762 "This also forcibly removes all logical volumes in the volume group (if any)."
16763 msgstr ""
16764
16765 #. type: =head2
16766 #: ../fish/guestfish-actions.pod:5075
16767 msgid "vgrename"
16768 msgstr ""
16769
16770 #. type: verbatim
16771 #: ../fish/guestfish-actions.pod:5077
16772 #, no-wrap
16773 msgid ""
16774 " vgrename volgroup newvolgroup\n"
16775 "\n"
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
16780 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16781 msgstr ""
16782
16783 #. type: =head2
16784 #: ../fish/guestfish-actions.pod:5081
16785 msgid "vgs"
16786 msgstr ""
16787
16788 #. type: verbatim
16789 #: ../fish/guestfish-actions.pod:5083
16790 #, no-wrap
16791 msgid ""
16792 " vgs\n"
16793 "\n"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
16798 msgid ""
16799 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16800 "> command."
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
16805 msgid ""
16806 "This returns a list of just the volume group names that were detected (eg. "
16807 "C<VolGroup00>)."
16808 msgstr ""
16809
16810 #. type: textblock
16811 #: ../fish/guestfish-actions.pod:5091
16812 msgid "See also L</vgs-full>."
16813 msgstr ""
16814
16815 #. type: =head2
16816 #: ../fish/guestfish-actions.pod:5093
16817 msgid "vgs-full"
16818 msgstr ""
16819
16820 #. type: verbatim
16821 #: ../fish/guestfish-actions.pod:5095
16822 #, no-wrap
16823 msgid ""
16824 " vgs-full\n"
16825 "\n"
16826 msgstr ""
16827
16828 #. type: textblock
16829 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
16830 msgid ""
16831 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16832 "> command.  The \"full\" version includes all fields."
16833 msgstr ""
16834
16835 #. type: =head2
16836 #: ../fish/guestfish-actions.pod:5100
16837 msgid "vgscan"
16838 msgstr ""
16839
16840 #. type: verbatim
16841 #: ../fish/guestfish-actions.pod:5102
16842 #, no-wrap
16843 msgid ""
16844 " vgscan\n"
16845 "\n"
16846 msgstr ""
16847
16848 #. type: textblock
16849 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
16850 msgid ""
16851 "This rescans all block devices and rebuilds the list of LVM physical "
16852 "volumes, volume groups and logical volumes."
16853 msgstr ""
16854
16855 #. type: =head2
16856 #: ../fish/guestfish-actions.pod:5107
16857 msgid "vguuid"
16858 msgstr ""
16859
16860 #. type: verbatim
16861 #: ../fish/guestfish-actions.pod:5109
16862 #, no-wrap
16863 msgid ""
16864 " vguuid vgname\n"
16865 "\n"
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
16870 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16871 msgstr ""
16872
16873 #. type: =head2
16874 #: ../fish/guestfish-actions.pod:5113
16875 msgid "wc-c"
16876 msgstr ""
16877
16878 #. type: verbatim
16879 #: ../fish/guestfish-actions.pod:5115
16880 #, no-wrap
16881 msgid ""
16882 " wc-c path\n"
16883 "\n"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
16888 msgid ""
16889 "This command counts the characters in a file, using the C<wc -c> external "
16890 "command."
16891 msgstr ""
16892
16893 #. type: =head2
16894 #: ../fish/guestfish-actions.pod:5120
16895 msgid "wc-l"
16896 msgstr ""
16897
16898 #. type: verbatim
16899 #: ../fish/guestfish-actions.pod:5122
16900 #, no-wrap
16901 msgid ""
16902 " wc-l path\n"
16903 "\n"
16904 msgstr ""
16905
16906 #. type: textblock
16907 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
16908 msgid ""
16909 "This command counts the lines in a file, using the C<wc -l> external command."
16910 msgstr ""
16911
16912 #. type: =head2
16913 #: ../fish/guestfish-actions.pod:5127
16914 msgid "wc-w"
16915 msgstr ""
16916
16917 #. type: verbatim
16918 #: ../fish/guestfish-actions.pod:5129
16919 #, no-wrap
16920 msgid ""
16921 " wc-w path\n"
16922 "\n"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
16927 msgid ""
16928 "This command counts the words in a file, using the C<wc -w> external command."
16929 msgstr ""
16930
16931 #. type: =head2
16932 #: ../fish/guestfish-actions.pod:5134
16933 msgid "write"
16934 msgstr ""
16935
16936 #. type: verbatim
16937 #: ../fish/guestfish-actions.pod:5136
16938 #, no-wrap
16939 msgid ""
16940 " write path content\n"
16941 "\n"
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
16946 msgid ""
16947 "This call creates a file called C<path>.  The content of the file is the "
16948 "string C<content> (which can contain any 8 bit data)."
16949 msgstr ""
16950
16951 #. type: textblock
16952 #: ../fish/guestfish-actions.pod:5141
16953 msgid "See also L</write-append>."
16954 msgstr ""
16955
16956 #. type: =head2
16957 #: ../fish/guestfish-actions.pod:5146
16958 msgid "write-append"
16959 msgstr ""
16960
16961 #. type: verbatim
16962 #: ../fish/guestfish-actions.pod:5148
16963 #, no-wrap
16964 msgid ""
16965 " write-append path content\n"
16966 "\n"
16967 msgstr ""
16968
16969 #. type: textblock
16970 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
16971 msgid ""
16972 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16973 "not exist, then a new file is created."
16974 msgstr ""
16975
16976 #. type: textblock
16977 #: ../fish/guestfish-actions.pod:5153
16978 msgid "See also L</write>."
16979 msgstr ""
16980
16981 #. type: =head2
16982 #: ../fish/guestfish-actions.pod:5158
16983 msgid "write-file"
16984 msgstr ""
16985
16986 #. type: verbatim
16987 #: ../fish/guestfish-actions.pod:5160
16988 #, no-wrap
16989 msgid ""
16990 " write-file path content size\n"
16991 "\n"
16992 msgstr ""
16993
16994 #. type: textblock
16995 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
16996 msgid ""
16997 "This call creates a file called C<path>.  The contents of the file is the "
16998 "string C<content> (which can contain any 8 bit data), with length C<size>."
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17003 msgid ""
17004 "As a special case, if C<size> is C<0> then the length is calculated using "
17005 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17010 msgid ""
17011 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17012 "I<not> work, even if the length is specified."
17013 msgstr ""
17014
17015 #. type: textblock
17016 #: ../fish/guestfish-actions.pod:5176
17017 msgid ""
17018 "I<This function is deprecated.> In new code, use the L</write> call instead."
17019 msgstr ""
17020
17021 #. type: =head2
17022 #: ../fish/guestfish-actions.pod:5183
17023 msgid "zegrep"
17024 msgstr ""
17025
17026 #. type: verbatim
17027 #: ../fish/guestfish-actions.pod:5185
17028 #, no-wrap
17029 msgid ""
17030 " zegrep regex path\n"
17031 "\n"
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17036 msgid ""
17037 "This calls the external C<zegrep> program and returns the matching lines."
17038 msgstr ""
17039
17040 #. type: =head2
17041 #: ../fish/guestfish-actions.pod:5193
17042 msgid "zegrepi"
17043 msgstr ""
17044
17045 #. type: verbatim
17046 #: ../fish/guestfish-actions.pod:5195
17047 #, no-wrap
17048 msgid ""
17049 " zegrepi regex path\n"
17050 "\n"
17051 msgstr ""
17052
17053 #. type: textblock
17054 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17055 msgid ""
17056 "This calls the external C<zegrep -i> program and returns the matching lines."
17057 msgstr ""
17058
17059 #. type: =head2
17060 #: ../fish/guestfish-actions.pod:5203
17061 msgid "zero"
17062 msgstr ""
17063
17064 #. type: verbatim
17065 #: ../fish/guestfish-actions.pod:5205
17066 #, no-wrap
17067 msgid ""
17068 " zero device\n"
17069 "\n"
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17074 msgid "This command writes zeroes over the first few blocks of C<device>."
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17079 msgid ""
17080 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17081 "securely wipe the device).  It should be sufficient to remove any partition "
17082 "tables, filesystem superblocks and so on."
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17087 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17088 msgid ""
17089 "If blocks are already zero, then this command avoids writing zeroes.  This "
17090 "prevents the underlying device from becoming non-sparse or growing "
17091 "unnecessarily."
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish-actions.pod:5217
17096 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17097 msgstr ""
17098
17099 #. type: =head2
17100 #: ../fish/guestfish-actions.pod:5220
17101 msgid "zero-device"
17102 msgstr ""
17103
17104 #. type: verbatim
17105 #: ../fish/guestfish-actions.pod:5222
17106 #, no-wrap
17107 msgid ""
17108 " zero-device device\n"
17109 "\n"
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish-actions.pod:5224
17114 msgid ""
17115 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17116 "which just zeroes the first few blocks of a device."
17117 msgstr ""
17118
17119 #. type: =head2
17120 #: ../fish/guestfish-actions.pod:5235
17121 msgid "zerofree"
17122 msgstr ""
17123
17124 #. type: verbatim
17125 #: ../fish/guestfish-actions.pod:5237
17126 #, no-wrap
17127 msgid ""
17128 " zerofree device\n"
17129 "\n"
17130 msgstr ""
17131
17132 #. type: textblock
17133 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17134 msgid ""
17135 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17136 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17137 "possible to compress the filesystem more effectively."
17138 msgstr ""
17139
17140 #. type: textblock
17141 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17142 msgid "You should B<not> run this program if the filesystem is mounted."
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17147 msgid ""
17148 "It is possible that using this program can damage the filesystem or data on "
17149 "the filesystem."
17150 msgstr ""
17151
17152 #. type: =head2
17153 #: ../fish/guestfish-actions.pod:5250
17154 msgid "zfgrep"
17155 msgstr ""
17156
17157 #. type: verbatim
17158 #: ../fish/guestfish-actions.pod:5252
17159 #, no-wrap
17160 msgid ""
17161 " zfgrep pattern path\n"
17162 "\n"
17163 msgstr ""
17164
17165 #. type: textblock
17166 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17167 msgid ""
17168 "This calls the external C<zfgrep> program and returns the matching lines."
17169 msgstr ""
17170
17171 #. type: =head2
17172 #: ../fish/guestfish-actions.pod:5260
17173 msgid "zfgrepi"
17174 msgstr ""
17175
17176 #. type: verbatim
17177 #: ../fish/guestfish-actions.pod:5262
17178 #, no-wrap
17179 msgid ""
17180 " zfgrepi pattern path\n"
17181 "\n"
17182 msgstr ""
17183
17184 #. type: textblock
17185 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17186 msgid ""
17187 "This calls the external C<zfgrep -i> program and returns the matching lines."
17188 msgstr ""
17189
17190 #. type: =head2
17191 #: ../fish/guestfish-actions.pod:5270
17192 msgid "zfile"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../fish/guestfish-actions.pod:5272
17197 #, no-wrap
17198 msgid ""
17199 " zfile meth path\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17205 msgid ""
17206 "This command runs C<file> after first decompressing C<path> using C<method>."
17207 msgstr ""
17208
17209 #. type: textblock
17210 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17211 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish-actions.pod:5279
17216 msgid ""
17217 "Since 1.0.63, use L</file> instead which can now process compressed files."
17218 msgstr ""
17219
17220 #. type: textblock
17221 #: ../fish/guestfish-actions.pod:5282
17222 msgid ""
17223 "I<This function is deprecated.> In new code, use the L</file> call instead."
17224 msgstr ""
17225
17226 #. type: =head2
17227 #: ../fish/guestfish-actions.pod:5289
17228 msgid "zgrep"
17229 msgstr ""
17230
17231 #. type: verbatim
17232 #: ../fish/guestfish-actions.pod:5291
17233 #, no-wrap
17234 msgid ""
17235 " zgrep regex path\n"
17236 "\n"
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17241 msgid ""
17242 "This calls the external C<zgrep> program and returns the matching lines."
17243 msgstr ""
17244
17245 #. type: =head2
17246 #: ../fish/guestfish-actions.pod:5299
17247 msgid "zgrepi"
17248 msgstr ""
17249
17250 #. type: verbatim
17251 #: ../fish/guestfish-actions.pod:5301
17252 #, no-wrap
17253 msgid ""
17254 " zgrepi regex path\n"
17255 "\n"
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17260 msgid ""
17261 "This calls the external C<zgrep -i> program and returns the matching lines."
17262 msgstr ""
17263
17264 #. type: =head2
17265 #: ../fish/guestfish-commands.pod:1
17266 msgid "alloc"
17267 msgstr ""
17268
17269 #. type: =head2
17270 #: ../fish/guestfish-commands.pod:3
17271 msgid "allocate"
17272 msgstr ""
17273
17274 #. type: verbatim
17275 #: ../fish/guestfish-commands.pod:5
17276 #, no-wrap
17277 msgid ""
17278 " alloc filename size\n"
17279 "\n"
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../fish/guestfish-commands.pod:7
17284 msgid ""
17285 "This creates an empty (zeroed) file of the given size, and then adds so it "
17286 "can be further examined."
17287 msgstr ""
17288
17289 #. type: textblock
17290 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17291 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17292 msgstr ""
17293
17294 #. type: textblock
17295 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17296 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish-commands.pod:14
17301 msgid ""
17302 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17303 "image, see L</PREPARED DISK IMAGES>."
17304 msgstr ""
17305
17306 #. type: =head2
17307 #: ../fish/guestfish-commands.pod:17
17308 msgid "copy-in"
17309 msgstr ""
17310
17311 #. type: verbatim
17312 #: ../fish/guestfish-commands.pod:19
17313 #, no-wrap
17314 msgid ""
17315 " copy-in local [local ...] /remotedir\n"
17316 "\n"
17317 msgstr ""
17318
17319 #. type: textblock
17320 #: ../fish/guestfish-commands.pod:21
17321 msgid ""
17322 "C<copy-in> copies local files or directories recursively into the disk "
17323 "image, placing them in the directory called C</remotedir> (which must "
17324 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17325 "other commands as necessary."
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish-commands.pod:26
17330 msgid ""
17331 "Multiple local files and directories can be specified, but the last "
17332 "parameter must always be a remote directory.  Wildcards cannot be used."
17333 msgstr ""
17334
17335 #. type: =head2
17336 #: ../fish/guestfish-commands.pod:30
17337 msgid "copy-out"
17338 msgstr ""
17339
17340 #. type: verbatim
17341 #: ../fish/guestfish-commands.pod:32
17342 #, no-wrap
17343 msgid ""
17344 " copy-out remote [remote ...] localdir\n"
17345 "\n"
17346 msgstr ""
17347
17348 #. type: textblock
17349 #: ../fish/guestfish-commands.pod:34
17350 msgid ""
17351 "C<copy-out> copies remote files or directories recursively out of the disk "
17352 "image, placing them on the host disk in a local directory called C<localdir> "
17353 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17354 "download>, L</tar-out> and other commands as necessary."
17355 msgstr ""
17356
17357 #. type: textblock
17358 #: ../fish/guestfish-commands.pod:40
17359 msgid ""
17360 "Multiple remote files and directories can be specified, but the last "
17361 "parameter must always be a local directory.  To download to the current "
17362 "directory, use C<.> as in:"
17363 msgstr ""
17364
17365 #. type: verbatim
17366 #: ../fish/guestfish-commands.pod:44
17367 #, no-wrap
17368 msgid ""
17369 " copy-out /home .\n"
17370 "\n"
17371 msgstr ""
17372
17373 #. type: textblock
17374 #: ../fish/guestfish-commands.pod:46
17375 msgid ""
17376 "Wildcards cannot be used in the ordinary command, but you can use them with "
17377 "the help of L</glob> like this:"
17378 msgstr ""
17379
17380 #. type: verbatim
17381 #: ../fish/guestfish-commands.pod:49
17382 #, no-wrap
17383 msgid ""
17384 " glob copy-out /home/* .\n"
17385 "\n"
17386 msgstr ""
17387
17388 #. type: =head2
17389 #: ../fish/guestfish-commands.pod:51
17390 msgid "display"
17391 msgstr ""
17392
17393 #. type: verbatim
17394 #: ../fish/guestfish-commands.pod:53
17395 #, no-wrap
17396 msgid ""
17397 " display filename\n"
17398 "\n"
17399 msgstr ""
17400
17401 #. type: textblock
17402 #: ../fish/guestfish-commands.pod:55
17403 msgid ""
17404 "Use C<display> (a graphical display program) to display an image file.  It "
17405 "downloads the file, and runs C<display> on it."
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../fish/guestfish-commands.pod:58
17410 msgid ""
17411 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17412 "environment variable.  For example to use the GNOME display program:"
17413 msgstr ""
17414
17415 #. type: verbatim
17416 #: ../fish/guestfish-commands.pod:61
17417 #, no-wrap
17418 msgid ""
17419 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17420 "\n"
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish-commands.pod:63
17425 msgid "See also L<display(1)>."
17426 msgstr ""
17427
17428 #. type: =head2
17429 #: ../fish/guestfish-commands.pod:65
17430 msgid "echo"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish-commands.pod:67
17435 #, no-wrap
17436 msgid ""
17437 " echo [params ...]\n"
17438 "\n"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish-commands.pod:69
17443 msgid "This echos the parameters to the terminal."
17444 msgstr ""
17445
17446 #. type: =head2
17447 #: ../fish/guestfish-commands.pod:71
17448 msgid "edit"
17449 msgstr ""
17450
17451 #. type: =head2
17452 #: ../fish/guestfish-commands.pod:73
17453 msgid "vi"
17454 msgstr ""
17455
17456 #. type: =head2
17457 #: ../fish/guestfish-commands.pod:75
17458 msgid "emacs"
17459 msgstr ""
17460
17461 #. type: verbatim
17462 #: ../fish/guestfish-commands.pod:77
17463 #, no-wrap
17464 msgid ""
17465 " edit filename\n"
17466 "\n"
17467 msgstr ""
17468
17469 #. type: textblock
17470 #: ../fish/guestfish-commands.pod:79
17471 msgid ""
17472 "This is used to edit a file.  It downloads the file, edits it locally using "
17473 "your editor, then uploads the result."
17474 msgstr ""
17475
17476 #. type: textblock
17477 #: ../fish/guestfish-commands.pod:82
17478 msgid ""
17479 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17480 "or C<emacs> you will get those corresponding editors."
17481 msgstr ""
17482
17483 #. type: =head2
17484 #: ../fish/guestfish-commands.pod:86
17485 msgid "glob"
17486 msgstr ""
17487
17488 #. type: verbatim
17489 #: ../fish/guestfish-commands.pod:88
17490 #, no-wrap
17491 msgid ""
17492 " glob command args...\n"
17493 "\n"
17494 msgstr ""
17495
17496 #. type: textblock
17497 #: ../fish/guestfish-commands.pod:90
17498 msgid ""
17499 "Expand wildcards in any paths in the args list, and run C<command> "
17500 "repeatedly on each matching path."
17501 msgstr ""
17502
17503 #. type: textblock
17504 #: ../fish/guestfish-commands.pod:93
17505 msgid "See L</WILDCARDS AND GLOBBING>."
17506 msgstr ""
17507
17508 #. type: =head2
17509 #: ../fish/guestfish-commands.pod:95
17510 msgid "hexedit"
17511 msgstr ""
17512
17513 #. type: verbatim
17514 #: ../fish/guestfish-commands.pod:97
17515 #, no-wrap
17516 msgid ""
17517 " hexedit <filename|device>\n"
17518 " hexedit <filename|device> <max>\n"
17519 " hexedit <filename|device> <start> <max>\n"
17520 "\n"
17521 msgstr ""
17522
17523 #. type: textblock
17524 #: ../fish/guestfish-commands.pod:101
17525 msgid ""
17526 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17527 "device."
17528 msgstr ""
17529
17530 #. type: textblock
17531 #: ../fish/guestfish-commands.pod:104
17532 msgid ""
17533 "This command works by downloading potentially the whole file or device, "
17534 "editing it locally, then uploading it.  If the file or device is large, you "
17535 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17536 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17537 "usual modifiers allowed such as C<1M> (1 megabyte)."
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish-commands.pod:111
17542 msgid "For example to edit the first few sectors of a disk you might do:"
17543 msgstr ""
17544
17545 #. type: verbatim
17546 #: ../fish/guestfish-commands.pod:114
17547 #, no-wrap
17548 msgid ""
17549 " hexedit /dev/sda 1M\n"
17550 "\n"
17551 msgstr ""
17552
17553 #. type: textblock
17554 #: ../fish/guestfish-commands.pod:116
17555 msgid ""
17556 "which would allow you to edit anywhere within the first megabyte of the disk."
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../fish/guestfish-commands.pod:119
17561 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../fish/guestfish-commands.pod:121
17566 #, no-wrap
17567 msgid ""
17568 " hexedit /dev/sda1 0x400 0x400\n"
17569 "\n"
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish-commands.pod:123
17574 msgid "(assuming the superblock is in the standard location)."
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish-commands.pod:125
17579 msgid ""
17580 "This command requires the external L<hexedit(1)> program.  You can specify "
17581 "another program to use by setting the C<HEXEDITOR> environment variable."
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../fish/guestfish-commands.pod:129
17586 msgid "See also L</hexdump>."
17587 msgstr ""
17588
17589 #. type: =head2
17590 #: ../fish/guestfish-commands.pod:131
17591 msgid "lcd"
17592 msgstr ""
17593
17594 #. type: verbatim
17595 #: ../fish/guestfish-commands.pod:133
17596 #, no-wrap
17597 msgid ""
17598 " lcd directory\n"
17599 "\n"
17600 msgstr ""
17601
17602 #. type: textblock
17603 #: ../fish/guestfish-commands.pod:135
17604 msgid ""
17605 "Change the local directory, ie. the current directory of guestfish itself."
17606 msgstr ""
17607
17608 #. type: textblock
17609 #: ../fish/guestfish-commands.pod:138
17610 msgid "Note that C<!cd> won't do what you might expect."
17611 msgstr ""
17612
17613 #. type: =head2
17614 #: ../fish/guestfish-commands.pod:140
17615 msgid "man"
17616 msgstr ""
17617
17618 #. type: =head2
17619 #: ../fish/guestfish-commands.pod:142
17620 msgid "manual"
17621 msgstr ""
17622
17623 #. type: verbatim
17624 #: ../fish/guestfish-commands.pod:144
17625 #, no-wrap
17626 msgid ""
17627 "  man\n"
17628 "\n"
17629 msgstr ""
17630
17631 #. type: textblock
17632 #: ../fish/guestfish-commands.pod:146
17633 msgid "Opens the manual page for guestfish."
17634 msgstr ""
17635
17636 #. type: =head2
17637 #: ../fish/guestfish-commands.pod:148
17638 msgid "more"
17639 msgstr ""
17640
17641 #. type: =head2
17642 #: ../fish/guestfish-commands.pod:150
17643 msgid "less"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish-commands.pod:152
17648 #, no-wrap
17649 msgid ""
17650 " more filename\n"
17651 "\n"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish-commands.pod:154
17656 #, no-wrap
17657 msgid ""
17658 " less filename\n"
17659 "\n"
17660 msgstr ""
17661
17662 #. type: textblock
17663 #: ../fish/guestfish-commands.pod:156
17664 msgid "This is used to view a file."
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish-commands.pod:158
17669 msgid ""
17670 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17671 "C<less> you will get the C<less> command specifically."
17672 msgstr ""
17673
17674 #. type: =head2
17675 #: ../fish/guestfish-commands.pod:161
17676 msgid "reopen"
17677 msgstr ""
17678
17679 #. type: verbatim
17680 #: ../fish/guestfish-commands.pod:163
17681 #, no-wrap
17682 msgid ""
17683 "  reopen\n"
17684 "\n"
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish-commands.pod:165
17689 msgid ""
17690 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17691 "normally, because the handle is closed properly when guestfish exits.  "
17692 "However this is occasionally useful for testing."
17693 msgstr ""
17694
17695 #. type: =head2
17696 #: ../fish/guestfish-commands.pod:169
17697 msgid "setenv"
17698 msgstr ""
17699
17700 #. type: verbatim
17701 #: ../fish/guestfish-commands.pod:171
17702 #, no-wrap
17703 msgid ""
17704 "  setenv VAR value\n"
17705 "\n"
17706 msgstr ""
17707
17708 #. type: textblock
17709 #: ../fish/guestfish-commands.pod:173
17710 msgid "Set the environment variable C<VAR> to the string C<value>."
17711 msgstr ""
17712
17713 #. type: textblock
17714 #: ../fish/guestfish-commands.pod:175
17715 msgid ""
17716 "To print the value of an environment variable use a shell command such as:"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-commands.pod:178
17721 #, no-wrap
17722 msgid ""
17723 " !echo $VAR\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: =head2
17728 #: ../fish/guestfish-commands.pod:180
17729 msgid "sparse"
17730 msgstr ""
17731
17732 #. type: verbatim
17733 #: ../fish/guestfish-commands.pod:182
17734 #, no-wrap
17735 msgid ""
17736 " sparse filename size\n"
17737 "\n"
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-commands.pod:184
17742 msgid ""
17743 "This creates an empty sparse file of the given size, and then adds so it can "
17744 "be further examined."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-commands.pod:187
17749 msgid ""
17750 "In all respects it works the same as the L</alloc> command, except that the "
17751 "image file is allocated sparsely, which means that disk blocks are not "
17752 "assigned to the file until they are needed.  Sparse disk files only use "
17753 "space when written to, but they are slower and there is a danger you could "
17754 "run out of real disk space during a write operation."
17755 msgstr ""
17756
17757 #. type: =head2
17758 #: ../fish/guestfish-commands.pod:197
17759 msgid "supported"
17760 msgstr ""
17761
17762 #. type: verbatim
17763 #: ../fish/guestfish-commands.pod:199
17764 #, no-wrap
17765 msgid ""
17766 " supported\n"
17767 "\n"
17768 msgstr ""
17769
17770 #. type: textblock
17771 #: ../fish/guestfish-commands.pod:201
17772 msgid ""
17773 "This command returns a list of the optional groups known to the daemon, and "
17774 "indicates which ones are supported by this build of the libguestfs appliance."
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../fish/guestfish-commands.pod:205
17779 msgid "See also L<guestfs(3)/AVAILABILITY>."
17780 msgstr ""
17781
17782 #. type: =head2
17783 #: ../fish/guestfish-commands.pod:207
17784 msgid "time"
17785 msgstr ""
17786
17787 #. type: verbatim
17788 #: ../fish/guestfish-commands.pod:209
17789 #, no-wrap
17790 msgid ""
17791 " time command args...\n"
17792 "\n"
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-commands.pod:211
17797 msgid ""
17798 "Run the command as usual, but print the elapsed time afterwards.  This can "
17799 "be useful for benchmarking operations."
17800 msgstr ""
17801
17802 #. type: =head2
17803 #: ../fish/guestfish-commands.pod:214
17804 msgid "unsetenv"
17805 msgstr ""
17806
17807 #. type: verbatim
17808 #: ../fish/guestfish-commands.pod:216
17809 #, no-wrap
17810 msgid ""
17811 "  unsetenv VAR\n"
17812 "\n"
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../fish/guestfish-commands.pod:218
17817 msgid "Remove C<VAR> from the environment."
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish.pod:5
17822 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17823 msgstr ""
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish.pod:9
17827 #, no-wrap
17828 msgid ""
17829 " guestfish [--options] [commands]\n"
17830 "\n"
17831 msgstr ""
17832
17833 #. type: verbatim
17834 #: ../fish/guestfish.pod:11
17835 #, no-wrap
17836 msgid ""
17837 " guestfish\n"
17838 "\n"
17839 msgstr ""
17840
17841 #. type: verbatim
17842 #: ../fish/guestfish.pod:13
17843 #, no-wrap
17844 msgid ""
17845 " guestfish [--ro|--rw] -a disk.img\n"
17846 "\n"
17847 msgstr ""
17848
17849 #. type: verbatim
17850 #: ../fish/guestfish.pod:15
17851 #, no-wrap
17852 msgid ""
17853 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17854 "\n"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish.pod:17
17859 #, no-wrap
17860 msgid ""
17861 " guestfish -d libvirt-domain\n"
17862 "\n"
17863 msgstr ""
17864
17865 #. type: verbatim
17866 #: ../fish/guestfish.pod:19
17867 #, no-wrap
17868 msgid ""
17869 " guestfish [--ro|--rw] -a disk.img -i\n"
17870 "\n"
17871 msgstr ""
17872
17873 #. type: verbatim
17874 #: ../fish/guestfish.pod:21
17875 #, no-wrap
17876 msgid ""
17877 " guestfish -d libvirt-domain -i\n"
17878 "\n"
17879 msgstr ""
17880
17881 #. type: textblock
17882 #: ../fish/guestfish.pod:25
17883 msgid ""
17884 "Using guestfish in read/write mode on live virtual machines can be "
17885 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17886 "option to use guestfish safely if the disk image or virtual machine might be "
17887 "live."
17888 msgstr ""
17889
17890 #. type: textblock
17891 #: ../fish/guestfish.pod:32
17892 msgid ""
17893 "Guestfish is a shell and command-line tool for examining and modifying "
17894 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17895 "functionality of the guestfs API, see L<guestfs(3)>."
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish.pod:36
17900 msgid ""
17901 "Guestfish gives you structured access to the libguestfs API, from shell "
17902 "scripts or the command line or interactively.  If you want to rescue a "
17903 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17904 "command."
17905 msgstr ""
17906
17907 #. type: =head2
17908 #: ../fish/guestfish.pod:43
17909 msgid "As an interactive shell"
17910 msgstr ""
17911
17912 #. type: verbatim
17913 #: ../fish/guestfish.pod:45
17914 #, no-wrap
17915 msgid ""
17916 " $ guestfish\n"
17917 " \n"
17918 msgstr ""
17919
17920 #. type: verbatim
17921 #: ../fish/guestfish.pod:47
17922 #, no-wrap
17923 msgid ""
17924 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17925 " editing virtual machine filesystems.\n"
17926 " \n"
17927 msgstr ""
17928
17929 #. type: verbatim
17930 #: ../fish/guestfish.pod:50
17931 #, no-wrap
17932 msgid ""
17933 " Type: 'help' for a list of commands\n"
17934 "       'man' to read the manual\n"
17935 "       'quit' to quit the shell\n"
17936 " \n"
17937 msgstr ""
17938
17939 #. type: verbatim
17940 #: ../fish/guestfish.pod:54
17941 #, no-wrap
17942 msgid ""
17943 " ><fs> add-ro disk.img\n"
17944 " ><fs> run\n"
17945 " ><fs> list-filesystems\n"
17946 " /dev/sda1: ext4\n"
17947 " /dev/vg_guest/lv_root: ext4\n"
17948 " /dev/vg_guest/lv_swap: swap\n"
17949 " ><fs> mount /dev/vg_guest/lv_root /\n"
17950 " ><fs> cat /etc/fstab\n"
17951 " # /etc/fstab\n"
17952 " # Created by anaconda\n"
17953 " [...]\n"
17954 " ><fs> exit\n"
17955 "\n"
17956 msgstr ""
17957
17958 #. type: =head2
17959 #: ../fish/guestfish.pod:67
17960 msgid "From shell scripts"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish.pod:69
17965 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17966 msgstr ""
17967
17968 #. type: verbatim
17969 #: ../fish/guestfish.pod:71
17970 #, no-wrap
17971 msgid ""
17972 " guestfish <<_EOF_\n"
17973 " add disk.img\n"
17974 " run\n"
17975 " mount /dev/vg_guest/lv_root /\n"
17976 " write /etc/motd \"Welcome, new users\"\n"
17977 " _EOF_\n"
17978 "\n"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:78
17983 msgid "List the LVM logical volumes in a disk image:"
17984 msgstr ""
17985
17986 #. type: verbatim
17987 #: ../fish/guestfish.pod:80
17988 #, no-wrap
17989 msgid ""
17990 " guestfish -a disk.img --ro <<_EOF_\n"
17991 " run\n"
17992 " lvs\n"
17993 " _EOF_\n"
17994 "\n"
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish.pod:85
17999 msgid "List all the filesystems in a disk image:"
18000 msgstr ""
18001
18002 #. type: verbatim
18003 #: ../fish/guestfish.pod:87
18004 #, no-wrap
18005 msgid ""
18006 " guestfish -a disk.img --ro <<_EOF_\n"
18007 " run\n"
18008 " list-filesystems\n"
18009 " _EOF_\n"
18010 "\n"
18011 msgstr ""
18012
18013 #. type: =head2
18014 #: ../fish/guestfish.pod:92
18015 msgid "On one command line"
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18020 msgid "Update C</etc/resolv.conf> in a guest:"
18021 msgstr ""
18022
18023 #. type: verbatim
18024 #: ../fish/guestfish.pod:96
18025 #, no-wrap
18026 msgid ""
18027 " guestfish \\\n"
18028 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18029 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:100
18035 msgid "Edit C</boot/grub/grub.conf> interactively:"
18036 msgstr ""
18037
18038 #. type: verbatim
18039 #: ../fish/guestfish.pod:102
18040 #, no-wrap
18041 msgid ""
18042 " guestfish --rw --add disk.img \\\n"
18043 "   --mount /dev/vg_guest/lv_root \\\n"
18044 "   --mount /dev/sda1:/boot \\\n"
18045 "   edit /boot/grub/grub.conf\n"
18046 "\n"
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish.pod:107
18051 msgid "Mount disks automatically"
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:109
18056 msgid ""
18057 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18058 msgstr ""
18059
18060 #. type: verbatim
18061 #: ../fish/guestfish.pod:112
18062 #, no-wrap
18063 msgid ""
18064 " guestfish --ro -a disk.img -i cat /etc/group\n"
18065 "\n"
18066 msgstr ""
18067
18068 #. type: verbatim
18069 #: ../fish/guestfish.pod:114
18070 #, no-wrap
18071 msgid ""
18072 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18073 "\n"
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../fish/guestfish.pod:116
18078 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18079 msgstr ""
18080
18081 #. type: verbatim
18082 #: ../fish/guestfish.pod:118
18083 #, no-wrap
18084 msgid ""
18085 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18086 "\n"
18087 msgstr ""
18088
18089 #. type: =head2
18090 #: ../fish/guestfish.pod:120
18091 msgid "As a script interpreter"
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:122
18096 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18097 msgstr ""
18098
18099 #. type: verbatim
18100 #: ../fish/guestfish.pod:124
18101 #, no-wrap
18102 msgid ""
18103 " #!/usr/bin/guestfish -f\n"
18104 " sparse test1.img 100M\n"
18105 " run\n"
18106 " part-disk /dev/sda mbr\n"
18107 " mkfs ext2 /dev/sda1\n"
18108 "\n"
18109 msgstr ""
18110
18111 #. type: =head2
18112 #: ../fish/guestfish.pod:130
18113 msgid "Start with a prepared disk"
18114 msgstr ""
18115
18116 #. type: textblock
18117 #: ../fish/guestfish.pod:132
18118 msgid ""
18119 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18120 "single ext2-formatted partition:"
18121 msgstr ""
18122
18123 #. type: verbatim
18124 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18125 #, no-wrap
18126 msgid ""
18127 " guestfish -N fs\n"
18128 "\n"
18129 msgstr ""
18130
18131 #. type: textblock
18132 #: ../fish/guestfish.pod:137
18133 msgid "To list what is available do:"
18134 msgstr ""
18135
18136 #. type: verbatim
18137 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18138 #, no-wrap
18139 msgid ""
18140 " guestfish -N help | less\n"
18141 "\n"
18142 msgstr ""
18143
18144 #. type: =head2
18145 #: ../fish/guestfish.pod:141
18146 msgid "Remote control"
18147 msgstr ""
18148
18149 #. type: verbatim
18150 #: ../fish/guestfish.pod:143
18151 #, no-wrap
18152 msgid ""
18153 " eval \"`guestfish --listen`\"\n"
18154 " guestfish --remote add-ro disk.img\n"
18155 " guestfish --remote run\n"
18156 " guestfish --remote lvs\n"
18157 "\n"
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish.pod:154
18162 msgid "Displays general help on options."
18163 msgstr ""
18164
18165 #. type: =item
18166 #: ../fish/guestfish.pod:158
18167 msgid "B<--cmd-help>"
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish.pod:160
18172 msgid "Lists all available guestfish commands."
18173 msgstr ""
18174
18175 #. type: =item
18176 #: ../fish/guestfish.pod:162
18177 msgid "B<-h cmd>"
18178 msgstr ""
18179
18180 #. type: =item
18181 #: ../fish/guestfish.pod:164
18182 msgid "B<--cmd-help cmd>"
18183 msgstr ""
18184
18185 #. type: textblock
18186 #: ../fish/guestfish.pod:166
18187 msgid "Displays detailed help on a single command C<cmd>."
18188 msgstr ""
18189
18190 #. type: =item
18191 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18192 msgid "B<-a image>"
18193 msgstr ""
18194
18195 #. type: =item
18196 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18197 msgid "B<--add image>"
18198 msgstr ""
18199
18200 #. type: textblock
18201 #: ../fish/guestfish.pod:172
18202 msgid "Add a block device or virtual machine image to the shell."
18203 msgstr ""
18204
18205 #. type: textblock
18206 #: ../fish/guestfish.pod:177
18207 msgid ""
18208 "Using this flag is mostly equivalent to using the C<add> command, with "
18209 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18210 "the I<--format=...> flag was given."
18211 msgstr ""
18212
18213 #. type: textblock
18214 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18215 msgid ""
18216 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18217 "URI to use.  The default is to use the default libvirt connection."
18218 msgstr ""
18219
18220 #. type: =item
18221 #: ../fish/guestfish.pod:189
18222 msgid "B<--csh>"
18223 msgstr ""
18224
18225 #. type: textblock
18226 #: ../fish/guestfish.pod:191
18227 msgid ""
18228 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18229 "section L</REMOTE CONTROL AND CSH> below."
18230 msgstr ""
18231
18232 #. type: =item
18233 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18234 msgid "B<-d libvirt-domain>"
18235 msgstr ""
18236
18237 #. type: =item
18238 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18239 msgid "B<--domain libvirt-domain>"
18240 msgstr ""
18241
18242 #. type: textblock
18243 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18244 msgid ""
18245 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18246 "used, then any libvirt domain can be used.  However in write mode, only "
18247 "libvirt domains which are shut down can be named here."
18248 msgstr ""
18249
18250 #. type: textblock
18251 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18252 msgid "Domain UUIDs can be used instead of names."
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../fish/guestfish.pod:204
18257 msgid ""
18258 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18259 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18260 "if the I<--format:...> flag was given."
18261 msgstr ""
18262
18263 #. type: =item
18264 #: ../fish/guestfish.pod:208
18265 msgid "B<-D>"
18266 msgstr ""
18267
18268 #. type: =item
18269 #: ../fish/guestfish.pod:210
18270 msgid "B<--no-dest-paths>"
18271 msgstr ""
18272
18273 #. type: textblock
18274 #: ../fish/guestfish.pod:212
18275 msgid ""
18276 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18277 "to hit the tab key to complete paths on the guest filesystem, but this "
18278 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18279 "allow this feature to be disabled."
18280 msgstr ""
18281
18282 #. type: textblock
18283 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18284 msgid ""
18285 "When prompting for keys and passphrases, guestfish normally turns echoing "
18286 "off so you cannot see what you are typing.  If you are not worried about "
18287 "Tempest attacks and there is no one else in the room you can specify this "
18288 "flag to see what you are typing."
18289 msgstr ""
18290
18291 #. type: =item
18292 #: ../fish/guestfish.pod:224
18293 msgid "B<-f file>"
18294 msgstr ""
18295
18296 #. type: =item
18297 #: ../fish/guestfish.pod:226
18298 msgid "B<--file file>"
18299 msgstr ""
18300
18301 #. type: textblock
18302 #: ../fish/guestfish.pod:228
18303 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18304 msgstr ""
18305
18306 #. type: verbatim
18307 #: ../fish/guestfish.pod:231
18308 #, no-wrap
18309 msgid ""
18310 " #!/usr/bin/guestfish -f\n"
18311 "\n"
18312 msgstr ""
18313
18314 #. type: verbatim
18315 #: ../fish/guestfish.pod:244
18316 #, no-wrap
18317 msgid ""
18318 " guestfish --format=raw -a disk.img\n"
18319 "\n"
18320 msgstr ""
18321
18322 #. type: verbatim
18323 #: ../fish/guestfish.pod:248
18324 #, no-wrap
18325 msgid ""
18326 " guestfish --format=raw -a disk.img --format -a another.img\n"
18327 "\n"
18328 msgstr ""
18329
18330 #. type: textblock
18331 #: ../fish/guestfish.pod:253
18332 msgid ""
18333 "If you have untrusted raw-format guest disk images, you should use this "
18334 "option to specify the disk format.  This avoids a possible security problem "
18335 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18336 msgstr ""
18337
18338 #. type: =item
18339 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18340 msgid "B<--inspector>"
18341 msgstr ""
18342
18343 #. type: textblock
18344 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18345 msgid ""
18346 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18347 "system and mount filesystems as they would be mounted on the real virtual "
18348 "machine."
18349 msgstr ""
18350
18351 #. type: textblock
18352 #: ../fish/guestfish.pod:266
18353 msgid "Typical usage is either:"
18354 msgstr ""
18355
18356 #. type: verbatim
18357 #: ../fish/guestfish.pod:268
18358 #, no-wrap
18359 msgid ""
18360 " guestfish -d myguest -i\n"
18361 "\n"
18362 msgstr ""
18363
18364 #. type: textblock
18365 #: ../fish/guestfish.pod:270
18366 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18367 msgstr ""
18368
18369 #. type: verbatim
18370 #: ../fish/guestfish.pod:272
18371 #, no-wrap
18372 msgid ""
18373 " guestfish --ro -d myguest -i\n"
18374 "\n"
18375 msgstr ""
18376
18377 #. type: textblock
18378 #: ../fish/guestfish.pod:274
18379 msgid "(for active domains, readonly), or specify the block device directly:"
18380 msgstr ""
18381
18382 #. type: verbatim
18383 #: ../fish/guestfish.pod:276
18384 #, no-wrap
18385 msgid ""
18386 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18387 "\n"
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish.pod:278
18392 msgid ""
18393 "Note that the command line syntax changed slightly over older versions of "
18394 "guestfish.  You can still use the old syntax:"
18395 msgstr ""
18396
18397 #. type: verbatim
18398 #: ../fish/guestfish.pod:281
18399 #, no-wrap
18400 msgid ""
18401 " guestfish [--ro] -i disk.img\n"
18402 "\n"
18403 msgstr ""
18404
18405 #. type: verbatim
18406 #: ../fish/guestfish.pod:283
18407 #, no-wrap
18408 msgid ""
18409 " guestfish [--ro] -i libvirt-domain\n"
18410 "\n"
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/guestfish.pod:285
18415 msgid ""
18416 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18417 "then using other commands to mount the filesystems that were found."
18418 msgstr ""
18419
18420 #. type: =item
18421 #: ../fish/guestfish.pod:294
18422 msgid "B<--listen>"
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../fish/guestfish.pod:296
18427 msgid ""
18428 "Fork into the background and listen for remote commands.  See section L</"
18429 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18430 msgstr ""
18431
18432 #. type: =item
18433 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18434 msgid "B<--live>"
18435 msgstr ""
18436
18437 #. type: textblock
18438 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18439 msgid ""
18440 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18441 "ATTACHING TO RUNNING DAEMONS>)."
18442 msgstr ""
18443
18444 #. type: =item
18445 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18446 msgid "B<-m dev[:mountpoint[:options]]>"
18447 msgstr ""
18448
18449 #. type: =item
18450 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18451 msgid "B<--mount dev[:mountpoint[:options]]>"
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish.pod:308
18456 msgid "Mount the named partition or logical volume on the given mountpoint."
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish.pod:310
18461 msgid "If the mountpoint is omitted, it defaults to C</>."
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../fish/guestfish.pod:312
18466 msgid "You have to mount something on C</> before most commands will work."
18467 msgstr ""
18468
18469 #. type: textblock
18470 #: ../fish/guestfish.pod:314
18471 msgid ""
18472 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18473 "launched."
18474 msgstr ""
18475
18476 #. type: textblock
18477 #: ../fish/guestfish.pod:317
18478 msgid ""
18479 "If you don't know what filesystems a disk image contains, you can either run "
18480 "guestfish without this option, then list the partitions, filesystems and LVs "
18481 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18482 "commands), or you can use the L<virt-filesystems(1)> program."
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18487 msgid ""
18488 "The third (and rarely used) part of the mount parameter is the list of mount "
18489 "options used to mount the underlying filesystem.  If this is not given, then "
18490 "the mount options are either the empty string or C<ro> (the latter if the "
18491 "I<--ro> flag is used).  By specifying the mount options, you override this "
18492 "default choice.  Probably the only time you would use this is to enable ACLs "
18493 "and/or extended attributes if the filesystem can support them:"
18494 msgstr ""
18495
18496 #. type: verbatim
18497 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18498 #, no-wrap
18499 msgid ""
18500 " -m /dev/sda1:/:acl,user_xattr\n"
18501 "\n"
18502 msgstr ""
18503
18504 #. type: textblock
18505 #: ../fish/guestfish.pod:333
18506 msgid "Using this flag is equivalent to using the C<mount-options> command."
18507 msgstr ""
18508
18509 #. type: =item
18510 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18511 #: ../resize/virt-resize.pod:414
18512 msgid "B<-n>"
18513 msgstr ""
18514
18515 #. type: =item
18516 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18517 msgid "B<--no-sync>"
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fish/guestfish.pod:339
18522 msgid ""
18523 "Disable autosync.  This is enabled by default.  See the discussion of "
18524 "autosync in the L<guestfs(3)> manpage."
18525 msgstr ""
18526
18527 #. type: =item
18528 #: ../fish/guestfish.pod:342
18529 msgid "B<-N type>"
18530 msgstr ""
18531
18532 #. type: =item
18533 #: ../fish/guestfish.pod:344
18534 msgid "B<--new type>"
18535 msgstr ""
18536
18537 #. type: =item
18538 #: ../fish/guestfish.pod:346
18539 msgid "B<-N help>"
18540 msgstr ""
18541
18542 #. type: textblock
18543 #: ../fish/guestfish.pod:348
18544 msgid ""
18545 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18546 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18547 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18548 "IMAGES> below."
18549 msgstr ""
18550
18551 #. type: =item
18552 #: ../fish/guestfish.pod:353
18553 msgid "B<--progress-bars>"
18554 msgstr ""
18555
18556 #. type: textblock
18557 #: ../fish/guestfish.pod:355
18558 msgid "Enable progress bars, even when guestfish is used non-interactively."
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:357
18563 msgid ""
18564 "Progress bars are enabled by default when guestfish is used as an "
18565 "interactive shell."
18566 msgstr ""
18567
18568 #. type: =item
18569 #: ../fish/guestfish.pod:360
18570 msgid "B<--no-progress-bars>"
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish.pod:362
18575 msgid "Disable progress bars."
18576 msgstr ""
18577
18578 #. type: =item
18579 #: ../fish/guestfish.pod:364
18580 msgid "B<--remote[=pid]>"
18581 msgstr ""
18582
18583 #. type: textblock
18584 #: ../fish/guestfish.pod:366
18585 msgid ""
18586 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18587 "CONTROL GUESTFISH OVER A SOCKET> below."
18588 msgstr ""
18589
18590 #. type: =item
18591 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18592 #: ../rescue/virt-rescue.pod:161
18593 msgid "B<-r>"
18594 msgstr ""
18595
18596 #. type: =item
18597 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18598 #: ../rescue/virt-rescue.pod:163
18599 msgid "B<--ro>"
18600 msgstr ""
18601
18602 #. type: textblock
18603 #: ../fish/guestfish.pod:373
18604 msgid ""
18605 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18606 "mounts are done read-only."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18611 msgid ""
18612 "The option must always be used if the disk image or virtual machine might be "
18613 "running, and is generally recommended in cases where you don't need write "
18614 "access to the disk."
18615 msgstr ""
18616
18617 #. type: textblock
18618 #: ../fish/guestfish.pod:380
18619 msgid ""
18620 "Note that prepared disk images created with I<-N> are not affected by this "
18621 "option.  Also commands like C<add> are not affected - you have to specify "
18622 "the C<readonly:true> option explicitly if you need it."
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish.pod:384
18627 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18628 msgstr ""
18629
18630 #. type: =item
18631 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18632 #: ../rescue/virt-rescue.pod:173
18633 msgid "B<--selinux>"
18634 msgstr ""
18635
18636 #. type: textblock
18637 #: ../fish/guestfish.pod:388
18638 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18639 msgstr ""
18640
18641 #. type: textblock
18642 #: ../fish/guestfish.pod:394
18643 msgid ""
18644 "Enable very verbose messages.  This is particularly useful if you find a bug."
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:401
18649 msgid "Display the guestfish / libguestfs version number and exit."
18650 msgstr ""
18651
18652 #. type: =item
18653 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18654 #: ../rescue/virt-rescue.pod:194
18655 msgid "B<-w>"
18656 msgstr ""
18657
18658 #. type: =item
18659 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18660 #: ../rescue/virt-rescue.pod:196
18661 msgid "B<--rw>"
18662 msgstr ""
18663
18664 #. type: textblock
18665 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18666 msgid ""
18667 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18668 "mounts are done read-write."
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fish/guestfish.pod:410
18673 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18674 msgstr ""
18675
18676 #. type: textblock
18677 #: ../fish/guestfish.pod:414
18678 msgid "Echo each command before executing it."
18679 msgstr ""
18680
18681 #. type: =head1
18682 #: ../fish/guestfish.pod:418
18683 msgid "COMMANDS ON COMMAND LINE"
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish.pod:420
18688 msgid ""
18689 "Any additional (non-option) arguments are treated as commands to execute."
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish.pod:423
18694 msgid ""
18695 "Commands to execute should be separated by a colon (C<:>), where the colon "
18696 "is a separate parameter.  Thus:"
18697 msgstr ""
18698
18699 #. type: verbatim
18700 #: ../fish/guestfish.pod:426
18701 #, no-wrap
18702 msgid ""
18703 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fish/guestfish.pod:428
18709 msgid ""
18710 "If there are no additional arguments, then we enter a shell, either an "
18711 "interactive shell with a prompt (if the input is a terminal) or a non-"
18712 "interactive shell."
18713 msgstr ""
18714
18715 #. type: textblock
18716 #: ../fish/guestfish.pod:432
18717 msgid ""
18718 "In either command line mode or non-interactive shell, the first command that "
18719 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18720 "prompt) if a command fails, you can continue to enter commands."
18721 msgstr ""
18722
18723 #. type: =head1
18724 #: ../fish/guestfish.pod:437
18725 msgid "USING launch (OR run)"
18726 msgstr ""
18727
18728 #. type: textblock
18729 #: ../fish/guestfish.pod:439
18730 msgid ""
18731 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18732 "then launch it, then mount any disks you need, and finally issue actions/"
18733 "commands.  So the general order of the day is:"
18734 msgstr ""
18735
18736 #. type: textblock
18737 #: ../fish/guestfish.pod:447
18738 msgid "add or -a/--add"
18739 msgstr ""
18740
18741 #. type: textblock
18742 #: ../fish/guestfish.pod:451
18743 msgid "launch (aka run)"
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/guestfish.pod:455
18748 msgid "mount or -m/--mount"
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:459
18753 msgid "any other commands"
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fish/guestfish.pod:463
18758 msgid ""
18759 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18760 "guest before mounting or performing any other commands."
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../fish/guestfish.pod:466
18765 msgid ""
18766 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18767 "I<--new> options were given then C<run> is done automatically, simply "
18768 "because guestfish can't perform the action you asked for without doing this."
18769 msgstr ""
18770
18771 #. type: =head1
18772 #: ../fish/guestfish.pod:471
18773 msgid "OPENING DISKS FOR READ AND WRITE"
18774 msgstr ""
18775
18776 #. type: textblock
18777 #: ../fish/guestfish.pod:473
18778 msgid ""
18779 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18780 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18781 "I<-i> and I<-m> open disk images read-only or for writing."
18782 msgstr ""
18783
18784 #. type: textblock
18785 #: ../fish/guestfish.pod:478
18786 msgid ""
18787 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18788 "opening disk images supplied on the command line for write.  To open a disk "
18789 "image read-only you have to do I<-a image --ro>."
18790 msgstr ""
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:482
18794 msgid ""
18795 "This matters: If you accidentally open a live VM disk image writable then "
18796 "you will cause irreversible disk corruption."
18797 msgstr ""
18798
18799 #. type: textblock
18800 #: ../fish/guestfish.pod:485
18801 msgid ""
18802 "In a future libguestfs we intend to change the default the other way.  Disk "
18803 "images will be opened read-only.  You will have to either specify "
18804 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18805 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18806 "access for disk images specified by those other command line options."
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:492
18811 msgid ""
18812 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18813 "which does nothing (it is already the default).  However it is highly "
18814 "recommended that you use this option to indicate that you need write access, "
18815 "and prepare your scripts for the day when this option will be required for "
18816 "write access."
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fish/guestfish.pod:498
18821 msgid ""
18822 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18823 "other libguestfs program apart from guestfish and guestmount."
18824 msgstr ""
18825
18826 #. type: =head1
18827 #: ../fish/guestfish.pod:501
18828 msgid "QUOTING"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:503
18833 msgid ""
18834 "You can quote ordinary parameters using either single or double quotes.  For "
18835 "example:"
18836 msgstr ""
18837
18838 #. type: verbatim
18839 #: ../fish/guestfish.pod:506
18840 #, no-wrap
18841 msgid ""
18842 " add \"file with a space.img\"\n"
18843 "\n"
18844 msgstr ""
18845
18846 #. type: verbatim
18847 #: ../fish/guestfish.pod:508
18848 #, no-wrap
18849 msgid ""
18850 " rm '/file name'\n"
18851 "\n"
18852 msgstr ""
18853
18854 #. type: verbatim
18855 #: ../fish/guestfish.pod:510
18856 #, no-wrap
18857 msgid ""
18858 " rm '/\"'\n"
18859 "\n"
18860 msgstr ""
18861
18862 #. type: textblock
18863 #: ../fish/guestfish.pod:512
18864 msgid ""
18865 "A few commands require a list of strings to be passed.  For these, use a "
18866 "whitespace-separated list, enclosed in quotes.  Strings containing "
18867 "whitespace to be passed through must be enclosed in single quotes.  A "
18868 "literal single quote must be escaped with a backslash."
18869 msgstr ""
18870
18871 #. type: verbatim
18872 #: ../fish/guestfish.pod:517
18873 #, no-wrap
18874 msgid ""
18875 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18876 " command \"/bin/echo 'foo      bar'\"\n"
18877 " command \"/bin/echo \\'foo\\'\"\n"
18878 "\n"
18879 msgstr ""
18880
18881 #. type: =head2
18882 #: ../fish/guestfish.pod:521
18883 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:523
18888 msgid ""
18889 "In double-quoted arguments (only) use backslash to insert special characters:"
18890 msgstr ""
18891
18892 #. type: =item
18893 #: ../fish/guestfish.pod:528
18894 msgid "C<\\a>"
18895 msgstr ""
18896
18897 #. type: textblock
18898 #: ../fish/guestfish.pod:530
18899 msgid "Alert (bell) character."
18900 msgstr ""
18901
18902 #. type: =item
18903 #: ../fish/guestfish.pod:532
18904 msgid "C<\\b>"
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish.pod:534
18909 msgid "Backspace character."
18910 msgstr ""
18911
18912 #. type: =item
18913 #: ../fish/guestfish.pod:536
18914 msgid "C<\\f>"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:538
18919 msgid "Form feed character."
18920 msgstr ""
18921
18922 #. type: =item
18923 #: ../fish/guestfish.pod:540
18924 msgid "C<\\n>"
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../fish/guestfish.pod:542
18929 msgid "Newline character."
18930 msgstr ""
18931
18932 #. type: =item
18933 #: ../fish/guestfish.pod:544
18934 msgid "C<\\r>"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:546
18939 msgid "Carriage return character."
18940 msgstr ""
18941
18942 #. type: =item
18943 #: ../fish/guestfish.pod:548
18944 msgid "C<\\t>"
18945 msgstr ""
18946
18947 #. type: textblock
18948 #: ../fish/guestfish.pod:550
18949 msgid "Horizontal tab character."
18950 msgstr ""
18951
18952 #. type: =item
18953 #: ../fish/guestfish.pod:552
18954 msgid "C<\\v>"
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fish/guestfish.pod:554
18959 msgid "Vertical tab character."
18960 msgstr ""
18961
18962 #. type: =item
18963 #: ../fish/guestfish.pod:556
18964 msgid "C<\\\">"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fish/guestfish.pod:558
18969 msgid "A literal double quote character."
18970 msgstr ""
18971
18972 #. type: =item
18973 #: ../fish/guestfish.pod:560
18974 msgid "C<\\ooo>"
18975 msgstr ""
18976
18977 #. type: textblock
18978 #: ../fish/guestfish.pod:562
18979 msgid ""
18980 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18981 "(unlike C)."
18982 msgstr ""
18983
18984 #. type: =item
18985 #: ../fish/guestfish.pod:565
18986 msgid "C<\\xhh>"
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/guestfish.pod:567
18991 msgid ""
18992 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18993 msgstr ""
18994
18995 #. type: textblock
18996 #: ../fish/guestfish.pod:570
18997 msgid ""
18998 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18999 "strings."
19000 msgstr ""
19001
19002 #. type: =item
19003 #: ../fish/guestfish.pod:573
19004 msgid "C<\\\\>"
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish.pod:575
19009 msgid "A literal backslash character."
19010 msgstr ""
19011
19012 #. type: =head1
19013 #: ../fish/guestfish.pod:579
19014 msgid "OPTIONAL ARGUMENTS"
19015 msgstr ""
19016
19017 #. type: textblock
19018 #: ../fish/guestfish.pod:581
19019 msgid ""
19020 "Some commands take optional arguments.  These arguments appear in this "
19021 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19022 msgstr ""
19023
19024 #. type: verbatim
19025 #: ../fish/guestfish.pod:585
19026 #, no-wrap
19027 msgid ""
19028 " add-drive-opts filename\n"
19029 "\n"
19030 msgstr ""
19031
19032 #. type: verbatim
19033 #: ../fish/guestfish.pod:587
19034 #, no-wrap
19035 msgid ""
19036 " add-drive-opts filename readonly:true\n"
19037 "\n"
19038 msgstr ""
19039
19040 #. type: verbatim
19041 #: ../fish/guestfish.pod:589
19042 #, no-wrap
19043 msgid ""
19044 " add-drive-opts filename format:qcow2 readonly:false\n"
19045 "\n"
19046 msgstr ""
19047
19048 #. type: textblock
19049 #: ../fish/guestfish.pod:591
19050 msgid ""
19051 "Each optional argument can appear at most once.  All optional arguments must "
19052 "appear after the required ones."
19053 msgstr ""
19054
19055 #. type: =head1
19056 #: ../fish/guestfish.pod:594
19057 msgid "NUMBERS"
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:596
19062 msgid ""
19063 "This section applies to all commands which can take integers as parameters."
19064 msgstr ""
19065
19066 #. type: =head2
19067 #: ../fish/guestfish.pod:599
19068 msgid "SIZE SUFFIX"
19069 msgstr ""
19070
19071 #. type: textblock
19072 #: ../fish/guestfish.pod:601
19073 msgid ""
19074 "When the command takes a parameter measured in bytes, you can use one of the "
19075 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19076 msgstr ""
19077
19078 #. type: =item
19079 #: ../fish/guestfish.pod:607
19080 msgid "B<k> or B<K> or B<KiB>"
19081 msgstr ""
19082
19083 #. type: textblock
19084 #: ../fish/guestfish.pod:609
19085 msgid "The size in kilobytes (multiplied by 1024)."
19086 msgstr ""
19087
19088 #. type: =item
19089 #: ../fish/guestfish.pod:611
19090 msgid "B<KB>"
19091 msgstr ""
19092
19093 #. type: textblock
19094 #: ../fish/guestfish.pod:613
19095 msgid "The size in SI 1000 byte units."
19096 msgstr ""
19097
19098 #. type: =item
19099 #: ../fish/guestfish.pod:615
19100 msgid "B<M> or B<MiB>"
19101 msgstr ""
19102
19103 #. type: textblock
19104 #: ../fish/guestfish.pod:617
19105 msgid "The size in megabytes (multiplied by 1048576)."
19106 msgstr ""
19107
19108 #. type: =item
19109 #: ../fish/guestfish.pod:619
19110 msgid "B<MB>"
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:621
19115 msgid "The size in SI 1000000 byte units."
19116 msgstr ""
19117
19118 #. type: =item
19119 #: ../fish/guestfish.pod:623
19120 msgid "B<G> or B<GiB>"
19121 msgstr ""
19122
19123 #. type: textblock
19124 #: ../fish/guestfish.pod:625
19125 msgid "The size in gigabytes (multiplied by 2**30)."
19126 msgstr ""
19127
19128 #. type: =item
19129 #: ../fish/guestfish.pod:627
19130 msgid "B<GB>"
19131 msgstr ""
19132
19133 #. type: textblock
19134 #: ../fish/guestfish.pod:629
19135 msgid "The size in SI 10**9 byte units."
19136 msgstr ""
19137
19138 #. type: =item
19139 #: ../fish/guestfish.pod:631
19140 msgid "B<T> or B<TiB>"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:633
19145 msgid "The size in terabytes (multiplied by 2**40)."
19146 msgstr ""
19147
19148 #. type: =item
19149 #: ../fish/guestfish.pod:635
19150 msgid "B<TB>"
19151 msgstr ""
19152
19153 #. type: textblock
19154 #: ../fish/guestfish.pod:637
19155 msgid "The size in SI 10**12 byte units."
19156 msgstr ""
19157
19158 #. type: =item
19159 #: ../fish/guestfish.pod:639
19160 msgid "B<P> or B<PiB>"
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:641
19165 msgid "The size in petabytes (multiplied by 2**50)."
19166 msgstr ""
19167
19168 #. type: =item
19169 #: ../fish/guestfish.pod:643
19170 msgid "B<PB>"
19171 msgstr ""
19172
19173 #. type: textblock
19174 #: ../fish/guestfish.pod:645
19175 msgid "The size in SI 10**15 byte units."
19176 msgstr ""
19177
19178 #. type: =item
19179 #: ../fish/guestfish.pod:647
19180 msgid "B<E> or B<EiB>"
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../fish/guestfish.pod:649
19185 msgid "The size in exabytes (multiplied by 2**60)."
19186 msgstr ""
19187
19188 #. type: =item
19189 #: ../fish/guestfish.pod:651
19190 msgid "B<EB>"
19191 msgstr ""
19192
19193 #. type: textblock
19194 #: ../fish/guestfish.pod:653
19195 msgid "The size in SI 10**18 byte units."
19196 msgstr ""
19197
19198 #. type: =item
19199 #: ../fish/guestfish.pod:655
19200 msgid "B<Z> or B<ZiB>"
19201 msgstr ""
19202
19203 #. type: textblock
19204 #: ../fish/guestfish.pod:657
19205 msgid "The size in zettabytes (multiplied by 2**70)."
19206 msgstr ""
19207
19208 #. type: =item
19209 #: ../fish/guestfish.pod:659
19210 msgid "B<ZB>"
19211 msgstr ""
19212
19213 #. type: textblock
19214 #: ../fish/guestfish.pod:661
19215 msgid "The size in SI 10**21 byte units."
19216 msgstr ""
19217
19218 #. type: =item
19219 #: ../fish/guestfish.pod:663
19220 msgid "B<Y> or B<YiB>"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:665
19225 msgid "The size in yottabytes (multiplied by 2**80)."
19226 msgstr ""
19227
19228 #. type: =item
19229 #: ../fish/guestfish.pod:667
19230 msgid "B<YB>"
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:669
19235 msgid "The size in SI 10**24 byte units."
19236 msgstr ""
19237
19238 #. type: verbatim
19239 #: ../fish/guestfish.pod:675
19240 #, no-wrap
19241 msgid ""
19242 " truncate-size /file 1G\n"
19243 "\n"
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../fish/guestfish.pod:677
19248 msgid "would truncate the file to 1 gigabyte."
19249 msgstr ""
19250
19251 #. type: textblock
19252 #: ../fish/guestfish.pod:679
19253 msgid ""
19254 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19255 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19256 "suffix will probably not do what you expect."
19257 msgstr ""
19258
19259 #. type: =head2
19260 #: ../fish/guestfish.pod:683
19261 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:685
19266 msgid ""
19267 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19268 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19269 msgstr ""
19270
19271 #. type: verbatim
19272 #: ../fish/guestfish.pod:688
19273 #, no-wrap
19274 msgid ""
19275 " 1234      decimal number 1234\n"
19276 " 02322     octal number, equivalent to decimal 1234\n"
19277 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19278 "\n"
19279 msgstr ""
19280
19281 #. type: textblock
19282 #: ../fish/guestfish.pod:692
19283 msgid ""
19284 "When using the C<chmod> command, you almost always want to specify an octal "
19285 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19286 "L<chmod(1)> program):"
19287 msgstr ""
19288
19289 #. type: verbatim
19290 #: ../fish/guestfish.pod:696
19291 #, no-wrap
19292 msgid ""
19293 " chmod 0777 /public  # OK\n"
19294 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19295 "\n"
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:699
19300 msgid ""
19301 "Commands that return numbers usually print them in decimal, but some "
19302 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19303 "octal, preceeded by C<0>)."
19304 msgstr ""
19305
19306 #. type: =head1
19307 #: ../fish/guestfish.pod:703
19308 msgid "WILDCARDS AND GLOBBING"
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:705
19313 msgid ""
19314 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19315 "(globbing) by default.  So for example the following will not do what you "
19316 "expect:"
19317 msgstr ""
19318
19319 #. type: verbatim
19320 #: ../fish/guestfish.pod:709
19321 #, no-wrap
19322 msgid ""
19323 " rm-rf /home/*\n"
19324 "\n"
19325 msgstr ""
19326
19327 #. type: textblock
19328 #: ../fish/guestfish.pod:711
19329 msgid ""
19330 "Assuming you don't have a directory called literally C</home/*> then the "
19331 "above command will return an error."
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fish/guestfish.pod:714
19336 msgid "To perform wildcard expansion, use the C<glob> command."
19337 msgstr ""
19338
19339 #. type: verbatim
19340 #: ../fish/guestfish.pod:716
19341 #, no-wrap
19342 msgid ""
19343 " glob rm-rf /home/*\n"
19344 "\n"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:718
19349 msgid ""
19350 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19351 "many times), equivalent to:"
19352 msgstr ""
19353
19354 #. type: verbatim
19355 #: ../fish/guestfish.pod:721
19356 #, no-wrap
19357 msgid ""
19358 " rm-rf /home/jim\n"
19359 " rm-rf /home/joe\n"
19360 " rm-rf /home/mary\n"
19361 "\n"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fish/guestfish.pod:725
19366 msgid "C<glob> only works on simple guest paths and not on device names."
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:727
19371 msgid ""
19372 "If you have several parameters, each containing a wildcard, then glob will "
19373 "perform a Cartesian product."
19374 msgstr ""
19375
19376 #. type: =head1
19377 #: ../fish/guestfish.pod:730
19378 msgid "COMMENTS"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:732
19383 msgid ""
19384 "Any line which starts with a I<#> character is treated as a comment and "
19385 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19386 "a command.  For example:"
19387 msgstr ""
19388
19389 #. type: verbatim
19390 #: ../fish/guestfish.pod:736
19391 #, no-wrap
19392 msgid ""
19393 " # this is a comment\n"
19394 "         # this is a comment\n"
19395 " foo # NOT a comment\n"
19396 "\n"
19397 msgstr ""
19398
19399 #. type: textblock
19400 #: ../fish/guestfish.pod:740
19401 msgid "Blank lines are also ignored."
19402 msgstr ""
19403
19404 #. type: =head1
19405 #: ../fish/guestfish.pod:742
19406 msgid "RUNNING COMMANDS LOCALLY"
19407 msgstr ""
19408
19409 #. type: textblock
19410 #: ../fish/guestfish.pod:744
19411 msgid ""
19412 "Any line which starts with a I<!> character is treated as a command sent to "
19413 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19414 msgstr ""
19415
19416 #. type: verbatim
19417 #: ../fish/guestfish.pod:748
19418 #, no-wrap
19419 msgid ""
19420 " !mkdir local\n"
19421 " tgz-out /remote local/remote-data.tar.gz\n"
19422 "\n"
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../fish/guestfish.pod:751
19427 msgid ""
19428 "will create a directory C<local> on the host, and then export the contents "
19429 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19430 "(See C<tgz-out>)."
19431 msgstr ""
19432
19433 #. type: textblock
19434 #: ../fish/guestfish.pod:755
19435 msgid ""
19436 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19437 "effect, due to the way that subprocesses work in Unix."
19438 msgstr ""
19439
19440 #. type: =head2
19441 #: ../fish/guestfish.pod:758
19442 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:760
19447 msgid ""
19448 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19449 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19450 "and executed as guestfish commands."
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../fish/guestfish.pod:764
19455 msgid ""
19456 "Thus you can use shell script to construct arbitrary guestfish commands "
19457 "which are then parsed by guestfish."
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:767
19462 msgid ""
19463 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19464 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19465 "if we use a shell script to create the guestfish commands for us:"
19466 msgstr ""
19467
19468 #. type: verbatim
19469 #: ../fish/guestfish.pod:772
19470 #, no-wrap
19471 msgid ""
19472 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19473 "\n"
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../fish/guestfish.pod:774
19478 msgid "or with names like C</foo.001>:"
19479 msgstr ""
19480
19481 #. type: verbatim
19482 #: ../fish/guestfish.pod:776
19483 #, no-wrap
19484 msgid ""
19485 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19486 "\n"
19487 msgstr ""
19488
19489 #. type: textblock
19490 #: ../fish/guestfish.pod:778
19491 msgid ""
19492 "When using guestfish interactively it can be helpful to just run the shell "
19493 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19494 "ordinary I<!> local command), see what guestfish commands it would run, and "
19495 "when you are happy with those prepend the C<E<lt>> character to run the "
19496 "guestfish commands for real."
19497 msgstr ""
19498
19499 #. type: =head1
19500 #: ../fish/guestfish.pod:784
19501 msgid "PIPES"
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fish/guestfish.pod:786
19506 msgid ""
19507 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19508 "command (a guestfish command) to the second command (any host command).  For "
19509 "example:"
19510 msgstr ""
19511
19512 #. type: verbatim
19513 #: ../fish/guestfish.pod:790
19514 #, no-wrap
19515 msgid ""
19516 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19517 "\n"
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../fish/guestfish.pod:792
19522 msgid ""
19523 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19524 "program).  The above command would list all accounts in the guest filesystem "
19525 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19526 msgstr ""
19527
19528 #. type: verbatim
19529 #: ../fish/guestfish.pod:797
19530 #, no-wrap
19531 msgid ""
19532 " hexdump /bin/ls | head\n"
19533 " list-devices | tail -1\n"
19534 " tgz-out / - | tar ztf -\n"
19535 "\n"
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../fish/guestfish.pod:801
19540 msgid ""
19541 "The space before the pipe symbol is required, any space after the pipe "
19542 "symbol is optional.  Everything after the pipe symbol is just passed "
19543 "straight to the host shell, so it can contain redirections, globs and "
19544 "anything else that makes sense on the host side."
19545 msgstr ""
19546
19547 #. type: textblock
19548 #: ../fish/guestfish.pod:806
19549 msgid ""
19550 "To use a literal argument which begins with a pipe symbol, you have to quote "
19551 "it, eg:"
19552 msgstr ""
19553
19554 #. type: verbatim
19555 #: ../fish/guestfish.pod:809
19556 #, no-wrap
19557 msgid ""
19558 " echo \"|\"\n"
19559 "\n"
19560 msgstr ""
19561
19562 #. type: =head1
19563 #: ../fish/guestfish.pod:811
19564 msgid "HOME DIRECTORIES"
19565 msgstr ""
19566
19567 #. type: textblock
19568 #: ../fish/guestfish.pod:813
19569 msgid ""
19570 "If a parameter starts with the character C<~> then the tilde may be expanded "
19571 "as a home directory path (either C<~> for the current user's home directory, "
19572 "or C<~user> for another user)."
19573 msgstr ""
19574
19575 #. type: textblock
19576 #: ../fish/guestfish.pod:817
19577 msgid ""
19578 "Note that home directory expansion happens for users known I<on the host>, "
19579 "not in the guest filesystem."
19580 msgstr ""
19581
19582 #. type: textblock
19583 #: ../fish/guestfish.pod:820
19584 msgid ""
19585 "To use a literal argument which begins with a tilde, you have to quote it, "
19586 "eg:"
19587 msgstr ""
19588
19589 #. type: verbatim
19590 #: ../fish/guestfish.pod:823
19591 #, no-wrap
19592 msgid ""
19593 " echo \"~\"\n"
19594 "\n"
19595 msgstr ""
19596
19597 #. type: =head2
19598 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19599 msgid "ENCRYPTED DISKS"
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../fish/guestfish.pod:827
19604 msgid ""
19605 "Libguestfs has some support for Linux guests encrypted according to the "
19606 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19607 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19608 "LUKS is supported."
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fish/guestfish.pod:832
19613 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19614 msgstr ""
19615
19616 #. type: verbatim
19617 #: ../fish/guestfish.pod:834
19618 #, no-wrap
19619 msgid ""
19620 " ><fs> vfs-type /dev/sda2\n"
19621 " crypto_LUKS\n"
19622 "\n"
19623 msgstr ""
19624
19625 #. type: textblock
19626 #: ../fish/guestfish.pod:837
19627 msgid ""
19628 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19629 "device called C</dev/mapper/luksdev>."
19630 msgstr ""
19631
19632 #. type: verbatim
19633 #: ../fish/guestfish.pod:840
19634 #, no-wrap
19635 msgid ""
19636 " ><fs> luks-open /dev/sda2 luksdev\n"
19637 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19638 "\n"
19639 msgstr ""
19640
19641 #. type: textblock
19642 #: ../fish/guestfish.pod:843
19643 msgid ""
19644 "Finally you have to tell LVM to scan for volume groups on the newly created "
19645 "mapper device:"
19646 msgstr ""
19647
19648 #. type: verbatim
19649 #: ../fish/guestfish.pod:846
19650 #, no-wrap
19651 msgid ""
19652 " vgscan\n"
19653 " vg-activate-all true\n"
19654 "\n"
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:849
19659 msgid "The logical volume(s) can now be mounted in the usual way."
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../fish/guestfish.pod:851
19664 msgid ""
19665 "Before closing a LUKS device you must unmount any logical volumes on it and "
19666 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19667 "one.  Then you can close the mapper device:"
19668 msgstr ""
19669
19670 #. type: verbatim
19671 #: ../fish/guestfish.pod:855
19672 #, no-wrap
19673 msgid ""
19674 " vg-activate false /dev/VG\n"
19675 " luks-close /dev/mapper/luksdev\n"
19676 "\n"
19677 msgstr ""
19678
19679 #. type: textblock
19680 #: ../fish/guestfish.pod:860
19681 msgid ""
19682 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19683 "letters and paths (with some limitations).  The following commands are "
19684 "equivalent:"
19685 msgstr ""
19686
19687 #. type: verbatim
19688 #: ../fish/guestfish.pod:864
19689 #, no-wrap
19690 msgid ""
19691 " file /WINDOWS/system32/config/system.LOG\n"
19692 "\n"
19693 msgstr ""
19694
19695 #. type: verbatim
19696 #: ../fish/guestfish.pod:866
19697 #, no-wrap
19698 msgid ""
19699 " file win:\\windows\\system32\\config\\system.log\n"
19700 "\n"
19701 msgstr ""
19702
19703 #. type: verbatim
19704 #: ../fish/guestfish.pod:868
19705 #, no-wrap
19706 msgid ""
19707 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19708 "\n"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../fish/guestfish.pod:870
19713 msgid ""
19714 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19715 "where the drive is mounted, prepending that to the path, changing all "
19716 "backslash characters to forward slash, then resolving the result using L</"
19717 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19718 "the parameter might be rewritten like this:"
19719 msgstr ""
19720
19721 #. type: verbatim
19722 #: ../fish/guestfish.pod:876
19723 #, no-wrap
19724 msgid ""
19725 " win:e:\\foo\\bar => /e/FOO/bar\n"
19726 "\n"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:878
19731 msgid "This only works in argument positions that expect a path."
19732 msgstr ""
19733
19734 #. type: =head1
19735 #: ../fish/guestfish.pod:880
19736 msgid "UPLOADING AND DOWNLOADING FILES"
19737 msgstr ""
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:882
19741 msgid ""
19742 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19743 "others which upload from or download to a local file, you can use the "
19744 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19745 msgstr ""
19746
19747 #. type: verbatim
19748 #: ../fish/guestfish.pod:886
19749 #, no-wrap
19750 msgid ""
19751 " upload - /foo\n"
19752 "\n"
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../fish/guestfish.pod:888
19757 msgid ""
19758 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19759 msgstr ""
19760
19761 #. type: verbatim
19762 #: ../fish/guestfish.pod:891
19763 #, no-wrap
19764 msgid ""
19765 " tar-out /etc - | tar tf -\n"
19766 "\n"
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:893
19771 msgid ""
19772 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19773 "command (see L</PIPES>)."
19774 msgstr ""
19775
19776 #. type: textblock
19777 #: ../fish/guestfish.pod:896
19778 msgid ""
19779 "When using C<-> to read from stdin, the input is read up to the end of "
19780 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19781 "some arbitrary end marker:"
19782 msgstr ""
19783
19784 #. type: verbatim
19785 #: ../fish/guestfish.pod:900
19786 #, no-wrap
19787 msgid ""
19788 " upload -<<END /foo\n"
19789 " input line 1\n"
19790 " input line 2\n"
19791 " input line 3\n"
19792 " END\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:906
19798 msgid ""
19799 "Any string of characters can be used instead of C<END>.  The end marker must "
19800 "appear on a line of its own, without any preceeding or following characters "
19801 "(not even spaces)."
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../fish/guestfish.pod:910
19806 msgid ""
19807 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19808 "upload local files (so-called \"FileIn\" parameters in the generator)."
19809 msgstr ""
19810
19811 #. type: =head1
19812 #: ../fish/guestfish.pod:913
19813 msgid "EXIT ON ERROR BEHAVIOUR"
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:915
19818 msgid ""
19819 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19820 "taking commands from a human over a tty), and will exit on the first error "
19821 "in non-interactive mode (scripts, commands given on the command line)."
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../fish/guestfish.pod:920
19826 msgid ""
19827 "If you prefix a command with a I<-> character, then that command will not "
19828 "cause guestfish to exit, even if that (one) command returns an error."
19829 msgstr ""
19830
19831 #. type: =head1
19832 #: ../fish/guestfish.pod:924
19833 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:926
19838 msgid ""
19839 "Guestfish can be remote-controlled over a socket.  This is useful "
19840 "particularly in shell scripts where you want to make several different "
19841 "changes to a filesystem, but you don't want the overhead of starting up a "
19842 "guestfish process each time."
19843 msgstr ""
19844
19845 #. type: textblock
19846 #: ../fish/guestfish.pod:931
19847 msgid "Start a guestfish server process using:"
19848 msgstr ""
19849
19850 #. type: verbatim
19851 #: ../fish/guestfish.pod:933
19852 #, no-wrap
19853 msgid ""
19854 " eval \"`guestfish --listen`\"\n"
19855 "\n"
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:935
19860 msgid "and then send it commands by doing:"
19861 msgstr ""
19862
19863 #. type: verbatim
19864 #: ../fish/guestfish.pod:937
19865 #, no-wrap
19866 msgid ""
19867 " guestfish --remote cmd [...]\n"
19868 "\n"
19869 msgstr ""
19870
19871 #. type: textblock
19872 #: ../fish/guestfish.pod:939
19873 msgid "To cause the server to exit, send it the exit command:"
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../fish/guestfish.pod:943
19878 msgid ""
19879 "Note that the server will normally exit if there is an error in a command.  "
19880 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19881 "BEHAVIOUR>."
19882 msgstr ""
19883
19884 #. type: =head2
19885 #: ../fish/guestfish.pod:947
19886 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fish/guestfish.pod:949
19891 msgid ""
19892 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19893 "is how the I<--remote> option knows where to send the commands.  You can "
19894 "have several guestfish listener processes running using:"
19895 msgstr ""
19896
19897 #. type: verbatim
19898 #: ../fish/guestfish.pod:953
19899 #, no-wrap
19900 msgid ""
19901 " eval \"`guestfish --listen`\"\n"
19902 " pid1=$GUESTFISH_PID\n"
19903 " eval \"`guestfish --listen`\"\n"
19904 " pid2=$GUESTFISH_PID\n"
19905 " ...\n"
19906 " guestfish --remote=$pid1 cmd\n"
19907 " guestfish --remote=$pid2 cmd\n"
19908 "\n"
19909 msgstr ""
19910
19911 #. type: =head2
19912 #: ../fish/guestfish.pod:961
19913 msgid "REMOTE CONTROL AND CSH"
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/guestfish.pod:963
19918 msgid ""
19919 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19920 "option:"
19921 msgstr ""
19922
19923 #. type: verbatim
19924 #: ../fish/guestfish.pod:966
19925 #, no-wrap
19926 msgid ""
19927 " eval \"`guestfish --listen --csh`\"\n"
19928 "\n"
19929 msgstr ""
19930
19931 #. type: =head2
19932 #: ../fish/guestfish.pod:968
19933 msgid "REMOTE CONTROL DETAILS"
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:970
19938 msgid ""
19939 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19940 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19941 "and C<$PID> is the process ID of the server."
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../fish/guestfish.pod:974
19946 msgid "Guestfish client and server versions must match exactly."
19947 msgstr ""
19948
19949 #. type: =head2
19950 #: ../fish/guestfish.pod:976
19951 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:978
19956 msgid ""
19957 "From Bash, you can use the following code which creates a guestfish "
19958 "instance, correctly quotes the command line, handles failure to start, and "
19959 "cleans up guestfish when the script exits:"
19960 msgstr ""
19961
19962 #. type: verbatim
19963 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19964 #, no-wrap
19965 msgid ""
19966 " #!/bin/bash -\n"
19967 " \n"
19968 msgstr ""
19969
19970 #. type: verbatim
19971 #: ../fish/guestfish.pod:986
19972 #, no-wrap
19973 msgid ""
19974 " guestfish[0]=\"guestfish\"\n"
19975 " guestfish[1]=\"--listen\"\n"
19976 " guestfish[2]=\"--ro\"\n"
19977 " guestfish[3]=\"-a\"\n"
19978 " guestfish[4]=\"disk.img\"\n"
19979 " \n"
19980 msgstr ""
19981
19982 #. type: verbatim
19983 #: ../fish/guestfish.pod:992
19984 #, no-wrap
19985 msgid ""
19986 " GUESTFISH_PID=\n"
19987 " eval $(\"${guestfish[@]}\")\n"
19988 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19989 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19990 "     exit 1\n"
19991 " fi\n"
19992 " \n"
19993 msgstr ""
19994
19995 #. type: verbatim
19996 #: ../fish/guestfish.pod:999
19997 #, no-wrap
19998 msgid ""
19999 " cleanup_guestfish ()\n"
20000 " {\n"
20001 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20002 " }\n"
20003 " trap cleanup_guestfish EXIT ERR\n"
20004 " \n"
20005 msgstr ""
20006
20007 #. type: verbatim
20008 #: ../fish/guestfish.pod:1005
20009 #, no-wrap
20010 msgid ""
20011 " guestfish --remote -- run\n"
20012 " \n"
20013 msgstr ""
20014
20015 #. type: verbatim
20016 #: ../fish/guestfish.pod:1007
20017 #, no-wrap
20018 msgid ""
20019 " # ...\n"
20020 "\n"
20021 msgstr ""
20022
20023 #. type: =head2
20024 #: ../fish/guestfish.pod:1009
20025 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20026 msgstr ""
20027
20028 #. type: textblock
20029 #: ../fish/guestfish.pod:1011
20030 msgid ""
20031 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20032 "context hangs, ie. don't do (note the backquotes):"
20033 msgstr ""
20034
20035 #. type: verbatim
20036 #: ../fish/guestfish.pod:1014
20037 #, no-wrap
20038 msgid ""
20039 " a=`guestfish --remote run`\n"
20040 "\n"
20041 msgstr ""
20042
20043 #. type: textblock
20044 #: ../fish/guestfish.pod:1016
20045 msgid ""
20046 "Since the C<run> command produces no output on stdout, this is not useful "
20047 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20048 "cgi?id=592910>."
20049 msgstr ""
20050
20051 #. type: =head1
20052 #: ../fish/guestfish.pod:1020
20053 msgid "PREPARED DISK IMAGES"
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fish/guestfish.pod:1022
20058 msgid ""
20059 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20060 "preformatted disk images that guestfish can make for you to save typing.  "
20061 "This is particularly useful for testing purposes.  This option is used "
20062 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20063 "can be mixed with I<-a>)."
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish.pod:1028
20068 msgid ""
20069 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20070 "the second and so on.  Existing files in the current directory are "
20071 "I<overwritten>."
20072 msgstr ""
20073
20074 #. type: textblock
20075 #: ../fish/guestfish.pod:1032
20076 msgid ""
20077 "The type briefly describes how the disk should be sized, partitioned, how "
20078 "filesystem(s) should be created, and how content should be added.  "
20079 "Optionally the type can be followed by extra parameters, separated by C<:> "
20080 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20081 "allocated disk, containing a single partition, with the partition formatted "
20082 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20083 "disk instead."
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../fish/guestfish.pod:1040
20088 msgid "To list the available types and any extra parameters they take, run:"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../fish/guestfish.pod:1044
20093 msgid ""
20094 "Note that the prepared filesystem is not mounted.  You would usually have to "
20095 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:1048
20100 msgid ""
20101 "If any I<-N> or I<--new> options are given, the guest is automatically "
20102 "launched."
20103 msgstr ""
20104
20105 #. type: textblock
20106 #: ../fish/guestfish.pod:1053
20107 msgid "Create a 100MB disk with an ext4-formatted partition:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fish/guestfish.pod:1055
20112 #, no-wrap
20113 msgid ""
20114 " guestfish -N fs:ext4\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: textblock
20119 #: ../fish/guestfish.pod:1057
20120 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20121 msgstr ""
20122
20123 #. type: verbatim
20124 #: ../fish/guestfish.pod:1059
20125 #, no-wrap
20126 msgid ""
20127 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20128 "\n"
20129 msgstr ""
20130
20131 #. type: textblock
20132 #: ../fish/guestfish.pod:1061
20133 msgid "Create a blank 200MB disk:"
20134 msgstr ""
20135
20136 #. type: verbatim
20137 #: ../fish/guestfish.pod:1063
20138 #, no-wrap
20139 msgid ""
20140 " guestfish -N disk:200M\n"
20141 "\n"
20142 msgstr ""
20143
20144 #. type: =head1
20145 #: ../fish/guestfish.pod:1065
20146 msgid "PROGRESS BARS"
20147 msgstr ""
20148
20149 #. type: textblock
20150 #: ../fish/guestfish.pod:1067
20151 msgid ""
20152 "Some (not all) long-running commands send progress notification messages as "
20153 "they are running.  Guestfish turns these messages into progress bars."
20154 msgstr ""
20155
20156 #. type: textblock
20157 #: ../fish/guestfish.pod:1071
20158 msgid ""
20159 "When a command that supports progress bars takes longer than two seconds to "
20160 "run, and if progress bars are enabled, then you will see one appearing below "
20161 "the command:"
20162 msgstr ""
20163
20164 #. type: verbatim
20165 #: ../fish/guestfish.pod:1075
20166 #, no-wrap
20167 msgid ""
20168 " ><fs> copy-size /large-file /another-file 2048M\n"
20169 " / 10% [#####-----------------------------------------] 00:30\n"
20170 "\n"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/guestfish.pod:1078
20175 msgid ""
20176 "The spinner on the left hand side moves round once for every progress "
20177 "notification received from the backend.  This is a (reasonably) golden "
20178 "assurance that the command is \"doing something\" even if the progress bar "
20179 "is not moving, because the command is able to send the progress "
20180 "notifications.  When the bar reaches 100% and the command finishes, the "
20181 "spinner disappears."
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/guestfish.pod:1085
20186 msgid ""
20187 "Progress bars are enabled by default when guestfish is used interactively.  "
20188 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20189 "and you can disable them completely using I<--no-progress-bars>."
20190 msgstr ""
20191
20192 #. type: =head1
20193 #: ../fish/guestfish.pod:1090
20194 msgid "GUESTFISH COMMANDS"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:1092
20199 msgid ""
20200 "The commands in this section are guestfish convenience commands, in other "
20201 "words, they are not part of the L<guestfs(3)> API."
20202 msgstr ""
20203
20204 #. type: =head2
20205 #: ../fish/guestfish.pod:1095
20206 msgid "help"
20207 msgstr ""
20208
20209 #. type: verbatim
20210 #: ../fish/guestfish.pod:1097
20211 #, no-wrap
20212 msgid ""
20213 " help\n"
20214 " help cmd\n"
20215 "\n"
20216 msgstr ""
20217
20218 #. type: textblock
20219 #: ../fish/guestfish.pod:1100
20220 msgid "Without any parameter, this provides general help."
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../fish/guestfish.pod:1102
20225 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20226 msgstr ""
20227
20228 #. type: =head2
20229 #: ../fish/guestfish.pod:1104
20230 msgid "quit | exit"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:1106
20235 msgid "This exits guestfish.  You can also use C<^D> key."
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../fish/guestfish.pod:1108
20240 msgid "@FISH_COMMANDS@"
20241 msgstr ""
20242
20243 #. type: =head1
20244 #: ../fish/guestfish.pod:1110
20245 msgid "COMMANDS"
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20250 msgid "@ACTIONS@"
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../fish/guestfish.pod:1116
20255 msgid ""
20256 "guestfish returns 0 if the commands completed without error, or 1 if there "
20257 "was an error."
20258 msgstr ""
20259
20260 #. type: =item
20261 #: ../fish/guestfish.pod:1123
20262 msgid "EDITOR"
20263 msgstr ""
20264
20265 #. type: textblock
20266 #: ../fish/guestfish.pod:1125
20267 msgid ""
20268 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20269 "C<vi>."
20270 msgstr ""
20271
20272 #. type: =item
20273 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20274 msgid "FEBOOTSTRAP_KERNEL"
20275 msgstr ""
20276
20277 #. type: =item
20278 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20279 msgid "FEBOOTSTRAP_MODULES"
20280 msgstr ""
20281
20282 #. type: textblock
20283 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20284 msgid ""
20285 "These two environment variables allow the kernel that libguestfs uses in the "
20286 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20287 "most recent host kernel is chosen.  For more information about kernel "
20288 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20289 "available in febootstrap E<ge> 3.8."
20290 msgstr ""
20291
20292 #. type: =item
20293 #: ../fish/guestfish.pod:1138
20294 msgid "GUESTFISH_DISPLAY_IMAGE"
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fish/guestfish.pod:1140
20299 msgid ""
20300 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20301 "If not set, it uses L<display(1)>."
20302 msgstr ""
20303
20304 #. type: =item
20305 #: ../fish/guestfish.pod:1143
20306 msgid "GUESTFISH_PID"
20307 msgstr ""
20308
20309 #. type: textblock
20310 #: ../fish/guestfish.pod:1145
20311 msgid ""
20312 "Used with the I<--remote> option to specify the remote guestfish process to "
20313 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20314 msgstr ""
20315
20316 #. type: =item
20317 #: ../fish/guestfish.pod:1149
20318 msgid "HEXEDITOR"
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../fish/guestfish.pod:1151
20323 msgid ""
20324 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20325 "not specified, the external L<hexedit(1)> program is used."
20326 msgstr ""
20327
20328 #. type: =item
20329 #: ../fish/guestfish.pod:1155
20330 msgid "HOME"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:1157
20335 msgid ""
20336 "If compiled with GNU readline support, various files in the home directory "
20337 "can be used.  See L</FILES>."
20338 msgstr ""
20339
20340 #. type: =item
20341 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20342 msgid "LIBGUESTFS_APPEND"
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20347 msgid "Pass additional options to the guest kernel."
20348 msgstr ""
20349
20350 #. type: =item
20351 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20352 msgid "LIBGUESTFS_DEBUG"
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:1166
20357 msgid ""
20358 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20359 "effect as using the B<-v> option."
20360 msgstr ""
20361
20362 #. type: =item
20363 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20364 msgid "LIBGUESTFS_MEMSIZE"
20365 msgstr ""
20366
20367 #. type: textblock
20368 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20369 msgid ""
20370 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20371 msgstr ""
20372
20373 #. type: verbatim
20374 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20375 #, no-wrap
20376 msgid ""
20377 " LIBGUESTFS_MEMSIZE=700\n"
20378 "\n"
20379 msgstr ""
20380
20381 #. type: =item
20382 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20383 msgid "LIBGUESTFS_PATH"
20384 msgstr ""
20385
20386 #. type: textblock
20387 #: ../fish/guestfish.pod:1178
20388 msgid ""
20389 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20390 "the discussion of paths in L<guestfs(3)>."
20391 msgstr ""
20392
20393 #. type: =item
20394 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20395 msgid "LIBGUESTFS_QEMU"
20396 msgstr ""
20397
20398 #. type: textblock
20399 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
20400 msgid ""
20401 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20402 "which was found at compile time by the configure script is used."
20403 msgstr ""
20404
20405 #. type: =item
20406 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
20407 msgid "LIBGUESTFS_TRACE"
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fish/guestfish.pod:1189
20412 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20413 msgstr ""
20414
20415 #. type: =item
20416 #: ../fish/guestfish.pod:1191
20417 msgid "PAGER"
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../fish/guestfish.pod:1193
20422 msgid ""
20423 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20424 "C<more>."
20425 msgstr ""
20426
20427 #. type: =item
20428 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20429 #: ../src/guestfs.pod:3242
20430 msgid "TMPDIR"
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
20435 msgid ""
20436 "Location of temporary directory, defaults to C</tmp> except for the cached "
20437 "supermin appliance which defaults to C</var/tmp>."
20438 msgstr ""
20439
20440 #. type: textblock
20441 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
20442 msgid ""
20443 "If libguestfs was compiled to use the supermin appliance then the real "
20444 "appliance is cached in this directory, shared between all handles belonging "
20445 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20446 "use in case C</var/tmp> is not large enough."
20447 msgstr ""
20448
20449 #. type: =head1
20450 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20451 #: ../rescue/virt-rescue.pod:273
20452 msgid "FILES"
20453 msgstr ""
20454
20455 #. type: =item
20456 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20457 #: ../rescue/virt-rescue.pod:277
20458 msgid "$HOME/.libguestfs-tools.rc"
20459 msgstr ""
20460
20461 #. type: =item
20462 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20463 #: ../rescue/virt-rescue.pod:279
20464 msgid "/etc/libguestfs-tools.conf"
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20469 #: ../rescue/virt-rescue.pod:281
20470 msgid ""
20471 "This configuration file controls the default read-only or read-write mode "
20472 "(I<--ro> or I<--rw>)."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fish/guestfish.pod:1220
20477 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20478 msgstr ""
20479
20480 #. type: =item
20481 #: ../fish/guestfish.pod:1222
20482 msgid "$HOME/.guestfish"
20483 msgstr ""
20484
20485 #. type: textblock
20486 #: ../fish/guestfish.pod:1224
20487 msgid ""
20488 "If compiled with GNU readline support, then the command history is saved in "
20489 "this file."
20490 msgstr ""
20491
20492 #. type: =item
20493 #: ../fish/guestfish.pod:1227
20494 msgid "$HOME/.inputrc"
20495 msgstr ""
20496
20497 #. type: =item
20498 #: ../fish/guestfish.pod:1229
20499 msgid "/etc/inputrc"
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../fish/guestfish.pod:1231
20504 msgid ""
20505 "If compiled with GNU readline support, then these files can be used to "
20506 "configure readline.  For further information, please see L<readline(3)/"
20507 "INITIALIZATION FILE>."
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../fish/guestfish.pod:1235
20512 msgid "To write rules which only apply to guestfish, use:"
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:1237
20517 #, no-wrap
20518 msgid ""
20519 " $if guestfish\n"
20520 " ...\n"
20521 " $endif\n"
20522 "\n"
20523 msgstr ""
20524
20525 #. type: textblock
20526 #: ../fish/guestfish.pod:1241
20527 msgid ""
20528 "Variables that you can set in inputrc that change the behaviour of guestfish "
20529 "in useful ways include:"
20530 msgstr ""
20531
20532 #. type: =item
20533 #: ../fish/guestfish.pod:1246
20534 msgid "completion-ignore-case (default: on)"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:1248
20539 msgid ""
20540 "By default, guestfish will ignore case when tab-completing paths on the "
20541 "disk.  Use:"
20542 msgstr ""
20543
20544 #. type: verbatim
20545 #: ../fish/guestfish.pod:1251
20546 #, no-wrap
20547 msgid ""
20548 " set completion-ignore-case off\n"
20549 "\n"
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:1253
20554 msgid "to make guestfish case sensitive."
20555 msgstr ""
20556
20557 #. type: =item
20558 #: ../fish/guestfish.pod:1257
20559 msgid "test1.img"
20560 msgstr ""
20561
20562 #. type: =item
20563 #: ../fish/guestfish.pod:1259
20564 msgid "test2.img (etc)"
20565 msgstr ""
20566
20567 #. type: textblock
20568 #: ../fish/guestfish.pod:1261
20569 msgid ""
20570 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20571 "will be created in the file C<test1.img> in the current directory.  The "
20572 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20573 "the same name will be overwritten."
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../fish/guestfish.pod:1270
20578 msgid ""
20579 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20580 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20581 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20582 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20583 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20584 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20585 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
20590 #: ../test-tool/libguestfs-test-tool.pod:112
20591 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../fish/virt-copy-in.pod:5
20596 msgid ""
20597 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20598 msgstr ""
20599
20600 #. type: verbatim
20601 #: ../fish/virt-copy-in.pod:9
20602 #, no-wrap
20603 msgid ""
20604 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20605 "\n"
20606 msgstr ""
20607
20608 #. type: verbatim
20609 #: ../fish/virt-copy-in.pod:11
20610 #, no-wrap
20611 msgid ""
20612 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20613 "\n"
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../fish/virt-copy-in.pod:15
20618 msgid ""
20619 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20620 "causing disk corruption.  The virtual machine must be shut down before you "
20621 "use this command."
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/virt-copy-in.pod:21
20626 msgid ""
20627 "C<virt-copy-in> copies files and directories from the local disk into a "
20628 "virtual machine disk image or named libvirt domain."
20629 msgstr ""
20630
20631 #. type: textblock
20632 #: ../fish/virt-copy-in.pod:24
20633 msgid ""
20634 "You can give one of more filenames and directories on the command line.  "
20635 "Directories are copied in recursively.  The final parameter must be the "
20636 "destination directory in the disk image which must be an absolute path "
20637 "starting with a C</> character."
20638 msgstr ""
20639
20640 #. type: verbatim
20641 #: ../fish/virt-copy-in.pod:33
20642 #, no-wrap
20643 msgid ""
20644 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20645 "\n"
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20650 msgid "Upload a home directory to a guest:"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../fish/virt-copy-in.pod:37
20655 #, no-wrap
20656 msgid ""
20657 " virt-copy-in -d MyGuest skel /home\n"
20658 "\n"
20659 msgstr ""
20660
20661 #. type: =head1
20662 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20663 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20664 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/virt-copy-in.pod:41
20669 msgid ""
20670 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20671 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20672 "are probably better off using guestfish directly."
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20677 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20678 msgid ""
20679 "Since the shell script just passes options straight to guestfish, read "
20680 "L<guestfish(1)> to see the full list of options."
20681 msgstr ""
20682
20683 #. type: textblock
20684 #: ../fish/virt-copy-in.pod:52
20685 msgid ""
20686 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20687 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20692 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20693 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../fish/virt-copy-out.pod:5
20698 msgid ""
20699 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20700 "image."
20701 msgstr ""
20702
20703 #. type: verbatim
20704 #: ../fish/virt-copy-out.pod:9
20705 #, no-wrap
20706 msgid ""
20707 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20708 "\n"
20709 msgstr ""
20710
20711 #. type: verbatim
20712 #: ../fish/virt-copy-out.pod:11
20713 #, no-wrap
20714 msgid ""
20715 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20716 "\n"
20717 msgstr ""
20718
20719 #. type: textblock
20720 #: ../fish/virt-copy-out.pod:15
20721 msgid ""
20722 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20723 "image or named libvirt domain."
20724 msgstr ""
20725
20726 #. type: textblock
20727 #: ../fish/virt-copy-out.pod:18
20728 msgid ""
20729 "You can give one of more filenames and directories on the command line.  "
20730 "Directories are copied out recursively."
20731 msgstr ""
20732
20733 #. type: textblock
20734 #: ../fish/virt-copy-out.pod:23
20735 msgid "Download the home directories from a virtual machine:"
20736 msgstr ""
20737
20738 #. type: verbatim
20739 #: ../fish/virt-copy-out.pod:25
20740 #, no-wrap
20741 msgid ""
20742 " mkdir homes\n"
20743 " virt-copy-out -d MyGuest /home homes\n"
20744 "\n"
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../fish/virt-copy-out.pod:30
20749 msgid ""
20750 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20751 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20752 "are probably better off using guestfish directly."
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../fish/virt-copy-out.pod:41
20757 msgid ""
20758 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20759 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../fish/virt-tar-in.pod:5
20764 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20765 msgstr ""
20766
20767 #. type: verbatim
20768 #: ../fish/virt-tar-in.pod:9
20769 #, no-wrap
20770 msgid ""
20771 " virt-tar-in -a disk.img data.tar /destination\n"
20772 "\n"
20773 msgstr ""
20774
20775 #. type: verbatim
20776 #: ../fish/virt-tar-in.pod:11
20777 #, no-wrap
20778 msgid ""
20779 " virt-tar-in -d domain data.tar /destination\n"
20780 "\n"
20781 msgstr ""
20782
20783 #. type: verbatim
20784 #: ../fish/virt-tar-in.pod:13
20785 #, no-wrap
20786 msgid ""
20787 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20788 "\n"
20789 msgstr ""
20790
20791 #. type: textblock
20792 #: ../fish/virt-tar-in.pod:17
20793 msgid ""
20794 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20795 "causing disk corruption.  The virtual machine must be shut down before you "
20796 "use this command."
20797 msgstr ""
20798
20799 #. type: textblock
20800 #: ../fish/virt-tar-in.pod:23
20801 msgid ""
20802 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20803 "image or named libvirt domain."
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../fish/virt-tar-in.pod:26
20808 msgid ""
20809 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20810 "standard input.  The second parameter is the absolute target directory to "
20811 "unpack into."
20812 msgstr ""
20813
20814 #. type: verbatim
20815 #: ../fish/virt-tar-in.pod:34
20816 #, no-wrap
20817 msgid ""
20818 " virt-tar-in -d MyGuest homes.tar /home\n"
20819 "\n"
20820 msgstr ""
20821
20822 #. type: textblock
20823 #: ../fish/virt-tar-in.pod:38
20824 msgid ""
20825 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20826 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20827 "probably better off using guestfish directly."
20828 msgstr ""
20829
20830 #. type: textblock
20831 #: ../fish/virt-tar-in.pod:49
20832 msgid ""
20833 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20834 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20835 "org/>."
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/virt-tar-out.pod:5
20840 msgid ""
20841 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20842 msgstr ""
20843
20844 #. type: verbatim
20845 #: ../fish/virt-tar-out.pod:9
20846 #, no-wrap
20847 msgid ""
20848 " virt-tar-out -a disk.img /dir files.tar\n"
20849 "\n"
20850 msgstr ""
20851
20852 #. type: verbatim
20853 #: ../fish/virt-tar-out.pod:11
20854 #, no-wrap
20855 msgid ""
20856 " virt-tar-out -d domain /dir files.tar\n"
20857 "\n"
20858 msgstr ""
20859
20860 #. type: verbatim
20861 #: ../fish/virt-tar-out.pod:13
20862 #, no-wrap
20863 msgid ""
20864 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20865 "\n"
20866 msgstr ""
20867
20868 #. type: textblock
20869 #: ../fish/virt-tar-out.pod:17
20870 msgid ""
20871 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../fish/virt-tar-out.pod:20
20876 msgid ""
20877 "The first parameter is the absolute path of the virtual machine directory.  "
20878 "The second parameter is the tar file to write.  Use C<-> to write to "
20879 "standard output."
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../fish/virt-tar-out.pod:26
20884 msgid "Download the home directories from a guest:"
20885 msgstr ""
20886
20887 #. type: verbatim
20888 #: ../fish/virt-tar-out.pod:28
20889 #, no-wrap
20890 msgid ""
20891 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20892 "\n"
20893 msgstr ""
20894
20895 #. type: textblock
20896 #: ../fish/virt-tar-out.pod:32
20897 msgid ""
20898 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20899 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20900 "are probably better off using guestfish directly."
20901 msgstr ""
20902
20903 #. type: textblock
20904 #: ../fish/virt-tar-out.pod:43
20905 msgid ""
20906 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20907 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../fuse/guestmount.pod:5
20912 msgid ""
20913 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20914 msgstr ""
20915
20916 #. type: verbatim
20917 #: ../fuse/guestmount.pod:9
20918 #, no-wrap
20919 msgid ""
20920 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20921 "\n"
20922 msgstr ""
20923
20924 #. type: verbatim
20925 #: ../fuse/guestmount.pod:11
20926 #, no-wrap
20927 msgid ""
20928 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20929 "\n"
20930 msgstr ""
20931
20932 #. type: verbatim
20933 #: ../fuse/guestmount.pod:13
20934 #, no-wrap
20935 msgid ""
20936 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20937 "\n"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fuse/guestmount.pod:17
20942 msgid ""
20943 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20944 "machines.  If you do this, you risk disk corruption in the VM."
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../fuse/guestmount.pod:22
20949 msgid ""
20950 "The guestmount program can be used to mount virtual machine filesystems and "
20951 "other disk images on the host.  It uses libguestfs for access to the guest "
20952 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20953 "a mountable device."
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fuse/guestmount.pod:27
20958 msgid ""
20959 "Along with other options, you have to give at least one device (I<-a> "
20960 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20961 "option) or use the I<-i> inspection option.  How this works is better "
20962 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20963 "below."
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../fuse/guestmount.pod:33
20968 msgid ""
20969 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20970 "by you, and the filesystem will not be visible to any other users unless you "
20971 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20972 "the filesystem, use the C<fusermount -u> command."
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../fuse/guestmount.pod:41
20977 msgid ""
20978 "For a typical Windows guest which has its main filesystem on the first "
20979 "partition:"
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../fuse/guestmount.pod:44
20984 #, no-wrap
20985 msgid ""
20986 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20987 "\n"
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../fuse/guestmount.pod:46
20992 msgid ""
20993 "For a typical Linux guest which has a /boot filesystem on the first "
20994 "partition, and the root filesystem on a logical volume:"
20995 msgstr ""
20996
20997 #. type: verbatim
20998 #: ../fuse/guestmount.pod:49
20999 #, no-wrap
21000 msgid ""
21001 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21002 "\n"
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../fuse/guestmount.pod:51
21007 msgid "To get libguestfs to detect guest mountpoints for you:"
21008 msgstr ""
21009
21010 #. type: verbatim
21011 #: ../fuse/guestmount.pod:53
21012 #, no-wrap
21013 msgid ""
21014 " guestmount -a guest.img -i --ro /mnt\n"
21015 "\n"
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../fuse/guestmount.pod:55
21020 msgid "For a libvirt guest called \"Guest\" you could do:"
21021 msgstr ""
21022
21023 #. type: verbatim
21024 #: ../fuse/guestmount.pod:57
21025 #, no-wrap
21026 msgid ""
21027 " guestmount -d Guest -i --ro /mnt\n"
21028 "\n"
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../fuse/guestmount.pod:59
21033 msgid ""
21034 "If you don't know what filesystems are contained in a guest or disk image, "
21035 "use L<virt-filesystems(1)> first:"
21036 msgstr ""
21037
21038 #. type: verbatim
21039 #: ../fuse/guestmount.pod:62
21040 #, no-wrap
21041 msgid ""
21042 " virt-filesystems MyGuest\n"
21043 "\n"
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../fuse/guestmount.pod:64
21048 msgid ""
21049 "If you want to trace the libguestfs calls but without excessive debugging "
21050 "information, we recommend:"
21051 msgstr ""
21052
21053 #. type: verbatim
21054 #: ../fuse/guestmount.pod:67
21055 #, no-wrap
21056 msgid ""
21057 " guestmount [...] --trace /mnt\n"
21058 "\n"
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../fuse/guestmount.pod:69
21063 msgid "If you want to debug the program, we recommend:"
21064 msgstr ""
21065
21066 #. type: verbatim
21067 #: ../fuse/guestmount.pod:71
21068 #, no-wrap
21069 msgid ""
21070 " guestmount [...] --trace --verbose /mnt\n"
21071 "\n"
21072 msgstr ""
21073
21074 #. type: =head1
21075 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21076 #: ../resize/virt-resize.pod:600
21077 msgid "NOTES"
21078 msgstr ""
21079
21080 #. type: =head2
21081 #: ../fuse/guestmount.pod:75
21082 msgid "Other users cannot see the filesystem by default"
21083 msgstr ""
21084
21085 #. type: textblock
21086 #: ../fuse/guestmount.pod:77
21087 msgid ""
21088 "If you mount a filesystem as one user (eg. root), then other users will not "
21089 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21090 "option when mounting:"
21091 msgstr ""
21092
21093 #. type: verbatim
21094 #: ../fuse/guestmount.pod:81
21095 #, no-wrap
21096 msgid ""
21097 " sudo guestmount [...] -o allow_other /mnt\n"
21098 "\n"
21099 msgstr ""
21100
21101 #. type: =head2
21102 #: ../fuse/guestmount.pod:83
21103 msgid "Enabling FUSE"
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../fuse/guestmount.pod:85
21108 msgid ""
21109 "On some distros, you may need to add yourself to a special group (eg. "
21110 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21111 "Debian and derivatives."
21112 msgstr ""
21113
21114 #. type: textblock
21115 #: ../fuse/guestmount.pod:89
21116 msgid ""
21117 "On other distros, no special group is required.  It is not necessary on "
21118 "Fedora or Red Hat Enterprise Linux."
21119 msgstr ""
21120
21121 #. type: textblock
21122 #: ../fuse/guestmount.pod:100
21123 msgid "Add a block device or virtual machine image."
21124 msgstr ""
21125
21126 #. type: =item
21127 #: ../fuse/guestmount.pod:123
21128 msgid "B<--dir-cache-timeout N>"
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fuse/guestmount.pod:125
21133 msgid ""
21134 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21135 "seconds.  The readdir cache [actually, there are several semi-independent "
21136 "caches] is populated after a readdir(2) call with the stat and extended "
21137 "attributes of the files in the directory, in anticipation that they will be "
21138 "requested soon after."
21139 msgstr ""
21140
21141 #. type: textblock
21142 #: ../fuse/guestmount.pod:131
21143 msgid ""
21144 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21145 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21146 "requests, only cache existing ones."
21147 msgstr ""
21148
21149 #. type: textblock
21150 #: ../fuse/guestmount.pod:151
21151 msgid ""
21152 "If you have untrusted raw-format guest disk images, you should use this "
21153 "option to specify the disk format.  This avoids a possible security problem "
21154 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21155 "guestfs_add_drive_opts>."
21156 msgstr ""
21157
21158 #. type: =item
21159 #: ../fuse/guestmount.pod:156
21160 msgid "B<--fuse-help>"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fuse/guestmount.pod:158
21165 msgid "Display help on special FUSE options (see I<-o> below)."
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../fuse/guestmount.pod:162
21170 msgid "Display brief help and exit."
21171 msgstr ""
21172
21173 #. type: textblock
21174 #: ../fuse/guestmount.pod:186
21175 msgid ""
21176 "Mount the named partition or logical volume on the given mountpoint B<in the "
21177 "guest> (this has nothing to do with mountpoints in the host)."
21178 msgstr ""
21179
21180 #. type: textblock
21181 #: ../fuse/guestmount.pod:189
21182 msgid ""
21183 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21184 "something on C</>."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fuse/guestmount.pod:206
21189 msgid ""
21190 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21191 "unmounted.  If you specify this option, then we don't attempt to sync the "
21192 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21193 msgstr ""
21194
21195 #. type: =item
21196 #: ../fuse/guestmount.pod:211
21197 msgid "B<-o option>"
21198 msgstr ""
21199
21200 #. type: =item
21201 #: ../fuse/guestmount.pod:213
21202 msgid "B<--option option>"
21203 msgstr ""
21204
21205 #. type: textblock
21206 #: ../fuse/guestmount.pod:215
21207 msgid "Pass extra options to FUSE."
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fuse/guestmount.pod:217
21212 msgid ""
21213 "To get a list of all the extra options supported by FUSE, use the command "
21214 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21215 "of them are a good idea."
21216 msgstr ""
21217
21218 #. type: verbatim
21219 #: ../fuse/guestmount.pod:221
21220 #, no-wrap
21221 msgid ""
21222 " guestmount --fuse-help\n"
21223 "\n"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../fuse/guestmount.pod:223
21228 msgid "Some potentially useful FUSE options:"
21229 msgstr ""
21230
21231 #. type: =item
21232 #: ../fuse/guestmount.pod:227
21233 msgid "B<-o allow_other>"
21234 msgstr ""
21235
21236 #. type: textblock
21237 #: ../fuse/guestmount.pod:229
21238 msgid "Allow other users to see the filesystem."
21239 msgstr ""
21240
21241 #. type: =item
21242 #: ../fuse/guestmount.pod:231
21243 msgid "B<-o attr_timeout=N>"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fuse/guestmount.pod:233
21248 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21249 msgstr ""
21250
21251 #. type: =item
21252 #: ../fuse/guestmount.pod:235
21253 msgid "B<-o kernel_cache>"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../fuse/guestmount.pod:237
21258 msgid ""
21259 "Allow the kernel to cache files (reduces the number of reads that have to go "
21260 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21261 "afford the extra memory usage."
21262 msgstr ""
21263
21264 #. type: =item
21265 #: ../fuse/guestmount.pod:241
21266 msgid "B<-o uid=N> B<-o gid=N>"
21267 msgstr ""
21268
21269 #. type: textblock
21270 #: ../fuse/guestmount.pod:243
21271 msgid ""
21272 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21273 "the chosen values."
21274 msgstr ""
21275
21276 #. type: textblock
21277 #: ../fuse/guestmount.pod:252
21278 msgid ""
21279 "Add devices and mount everything read-only.  Also disallow writes and make "
21280 "the disk appear read-only to FUSE."
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../fuse/guestmount.pod:255
21285 msgid ""
21286 "This is highly recommended if you are not going to edit the guest disk.  If "
21287 "the guest is running and this option is I<not> supplied, then there is a "
21288 "strong risk of disk corruption in the guest.  We try to prevent this from "
21289 "happening, but it is not always possible."
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21294 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../fuse/guestmount.pod:264
21299 msgid "Enable SELinux support for the guest."
21300 msgstr ""
21301
21302 #. type: textblock
21303 #: ../fuse/guestmount.pod:270
21304 msgid "Enable verbose messages from underlying libguestfs."
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../fuse/guestmount.pod:276
21309 msgid "Display the program version and exit."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21314 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21315 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21316 msgstr ""
21317
21318 #. type: =item
21319 #: ../fuse/guestmount.pod:289
21320 msgid "B<--trace>"
21321 msgstr ""
21322
21323 #. type: textblock
21324 #: ../fuse/guestmount.pod:291
21325 msgid "Trace libguestfs calls and entry into each FUSE function."
21326 msgstr ""
21327
21328 #. type: textblock
21329 #: ../fuse/guestmount.pod:293
21330 msgid "This also stops the daemon from forking into the background."
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../fuse/guestmount.pod:319
21335 msgid ""
21336 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21337 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21338 "net/>."
21339 msgstr ""
21340
21341 #. type: textblock
21342 #: ../fuse/guestmount.pod:334
21343 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21344 msgstr ""
21345
21346 #. type: textblock
21347 #: ../inspector/virt-inspector.pod:5
21348 msgid ""
21349 "virt-inspector - Display operating system version and other information "
21350 "about a virtual machine"
21351 msgstr ""
21352
21353 #. type: verbatim
21354 #: ../inspector/virt-inspector.pod:9
21355 #, no-wrap
21356 msgid ""
21357 " virt-inspector [--options] -d domname\n"
21358 "\n"
21359 msgstr ""
21360
21361 #. type: verbatim
21362 #: ../inspector/virt-inspector.pod:11
21363 #, no-wrap
21364 msgid ""
21365 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21366 "\n"
21367 msgstr ""
21368
21369 #. type: verbatim
21370 #: ../inspector/virt-inspector.pod:15
21371 #, no-wrap
21372 msgid ""
21373 " virt-inspector domname\n"
21374 "\n"
21375 msgstr ""
21376
21377 #. type: verbatim
21378 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21379 #, no-wrap
21380 msgid ""
21381 " virt-inspector disk.img [disk.img ...]\n"
21382 "\n"
21383 msgstr ""
21384
21385 #. type: textblock
21386 #: ../inspector/virt-inspector.pod:21
21387 msgid ""
21388 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21389 "determine the version of the operating system and other information about "
21390 "the virtual machine."
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../inspector/virt-inspector.pod:25
21395 msgid "Virt-inspector produces XML output for feeding into other programs."
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../inspector/virt-inspector.pod:27
21400 msgid ""
21401 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21402 "the libvirt domain (see: C<virsh list --all>)."
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../inspector/virt-inspector.pod:30
21407 msgid ""
21408 "You can also run virt-inspector directly on disk images from a single "
21409 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21410 "has several block devices, in which case you should list several I<-a> "
21411 "options one after another, with the first corresponding to the guest's C</"
21412 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../inspector/virt-inspector.pod:37
21417 msgid ""
21418 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21419 "keys and similar."
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../inspector/virt-inspector.pod:40
21424 msgid ""
21425 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21426 "inspect several virtual machines, you have to run virt-inspector several "
21427 "times (for example, from a shell script for-loop)."
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../inspector/virt-inspector.pod:45
21432 msgid ""
21433 "Because virt-inspector needs direct access to guest images, it won't "
21434 "normally work over remote libvirt connections."
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../inspector/virt-inspector.pod:48
21439 msgid ""
21440 "All of the information available from virt-inspector is also available "
21441 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21442 "The same information can also be fetched using guestfish or via libguestfs "
21443 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21444 "WITH OTHER PROGRAMMING LANGUAGES>)."
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../inspector/virt-inspector.pod:81
21449 msgid ""
21450 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21451 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21452 "at all."
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../inspector/virt-inspector.pod:94
21457 msgid ""
21458 "When prompting for keys and passphrases, virt-inspector normally turns "
21459 "echoing off so you cannot see what you are typing.  If you are not worried "
21460 "about Tempest attacks and there is no one else in the room you can specify "
21461 "this flag to see what you are typing."
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21466 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21467 #: ../tools/virt-win-reg.pl:144
21468 msgid ""
21469 "Specify the format of disk images given on the command line.  If this is "
21470 "omitted then the format is autodetected from the content of the disk image."
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21475 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21476 #: ../tools/virt-win-reg.pl:148
21477 msgid ""
21478 "If disk images are requested from libvirt, then this program asks libvirt "
21479 "for this information.  In this case, the value of the format parameter is "
21480 "ignored."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370
21485 #: ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132
21486 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21487 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21488 msgid ""
21489 "If working with untrusted raw-format guest disk images, you should ensure "
21490 "the format is always specified."
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../inspector/virt-inspector.pod:139
21495 msgid "Previous versions of virt-inspector allowed you to write either:"
21496 msgstr ""
21497
21498 #. type: verbatim
21499 #: ../inspector/virt-inspector.pod:145
21500 #, no-wrap
21501 msgid ""
21502 " virt-inspector guestname\n"
21503 "\n"
21504 msgstr ""
21505
21506 #. type: =head1
21507 #: ../inspector/virt-inspector.pod:153
21508 msgid "XML FORMAT"
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../inspector/virt-inspector.pod:155
21513 msgid ""
21514 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21515 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21516 "just an overview."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../inspector/virt-inspector.pod:159
21521 msgid ""
21522 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21523 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21524 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21525 "which is vanishingly rare in real world VMs."
21526 msgstr ""
21527
21528 #. type: =head2
21529 #: ../inspector/virt-inspector.pod:164
21530 msgid "E<lt>operatingsystemE<gt>"
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../inspector/virt-inspector.pod:166
21535 msgid ""
21536 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21537 "describe the operating system, its architecture, the descriptive \"product "
21538 "name\" string, the type of OS and so on, as in this example:"
21539 msgstr ""
21540
21541 #. type: verbatim
21542 #: ../inspector/virt-inspector.pod:170
21543 #, no-wrap
21544 msgid ""
21545 " <operatingsystems>\n"
21546 "   <operatingsystem>\n"
21547 "     <root>/dev/sda2</root>\n"
21548 "     <name>windows</name>\n"
21549 "     <arch>i386</arch>\n"
21550 "     <distro>windows</distro>\n"
21551 "     <product_name>Windows 7 Enterprise</product_name>\n"
21552 "     <product_variant>Client</product_variant>\n"
21553 "     <major_version>6</major_version>\n"
21554 "     <minor_version>1</minor_version>\n"
21555 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21556 "     <format>installed</format>\n"
21557 "\n"
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../inspector/virt-inspector.pod:183
21562 msgid ""
21563 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21564 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21565 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21566 "architecture.  The other fields are fairly self-explanatory, but because "
21567 "these fields are taken directly from the libguestfs inspection API you can "
21568 "find precise information from L<guestfs(3)/INSPECTION>."
21569 msgstr ""
21570
21571 #. type: textblock
21572 #: ../inspector/virt-inspector.pod:191
21573 msgid ""
21574 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21575 "of view of libguestfs (block devices may have completely different names "
21576 "inside the VM itself)."
21577 msgstr ""
21578
21579 #. type: =head2
21580 #: ../inspector/virt-inspector.pod:195
21581 msgid "E<lt>mountpointsE<gt>"
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../inspector/virt-inspector.pod:197
21586 msgid ""
21587 "Un*x-like guests typically have multiple filesystems which are mounted at "
21588 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21589 "element which looks like this:"
21590 msgstr ""
21591
21592 #. type: verbatim
21593 #: ../inspector/virt-inspector.pod:201
21594 #, no-wrap
21595 msgid ""
21596 " <operatingsystems>\n"
21597 "   <operatingsystem>\n"
21598 "     ...\n"
21599 "     <mountpoints>\n"
21600 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21601 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21602 "     </mountpoints>\n"
21603 "\n"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../inspector/virt-inspector.pod:209
21608 msgid ""
21609 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21610 "and may have completely different names inside the guest.  Only mountable "
21611 "filesystems appear in this list, not things like swap devices."
21612 msgstr ""
21613
21614 #. type: =head2
21615 #: ../inspector/virt-inspector.pod:214
21616 msgid "E<lt>filesystemsE<gt>"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../inspector/virt-inspector.pod:216
21621 msgid ""
21622 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21623 "filesystems belonging to the guest, including swap and empty partitions.  "
21624 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21625 "this OS or shared with this OS and other OSes)."
21626 msgstr ""
21627
21628 #. type: textblock
21629 #: ../inspector/virt-inspector.pod:222
21630 msgid "You might see something like this:"
21631 msgstr ""
21632
21633 #. type: verbatim
21634 #: ../inspector/virt-inspector.pod:224
21635 #, no-wrap
21636 msgid ""
21637 " <operatingsystems>\n"
21638 "   <operatingsystem>\n"
21639 "     ...\n"
21640 "     <filesystems>\n"
21641 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21642 "         <type>ext4</type>\n"
21643 "         <label>Fedora-13-x86_64</label>\n"
21644 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21645 "       </filesystem>\n"
21646 "\n"
21647 msgstr ""
21648
21649 #. type: textblock
21650 #: ../inspector/virt-inspector.pod:234
21651 msgid ""
21652 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21653 "the label, and the UUID."
21654 msgstr ""
21655
21656 #. type: =head2
21657 #: ../inspector/virt-inspector.pod:237
21658 msgid "E<lt>applicationsE<gt>"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../inspector/virt-inspector.pod:239
21663 msgid ""
21664 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21665 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21666 "machine."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../inspector/virt-inspector.pod:243
21671 msgid ""
21672 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21673 "Typical values would be C<rpm> and C<deb>."
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../inspector/virt-inspector.pod:246
21678 msgid ""
21679 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21680 "Typical values include C<yum>, C<up2date> and C<apt>"
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../inspector/virt-inspector.pod:249
21685 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21686 msgstr ""
21687
21688 #. type: verbatim
21689 #: ../inspector/virt-inspector.pod:252
21690 #, no-wrap
21691 msgid ""
21692 " <operatingsystems>\n"
21693 "   <operatingsystem>\n"
21694 "     ...\n"
21695 "     <applications>\n"
21696 "       <application>\n"
21697 "         <name>coreutils</name>\n"
21698 "         <version>8.5</version>\n"
21699 "         <release>1</release>\n"
21700 "       </application>\n"
21701 "\n"
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../inspector/virt-inspector.pod:262
21706 msgid ""
21707 "The version and release fields may not be available for some types guests.  "
21708 "Other fields are possible, see L<guestfs(3)/"
21709 "guestfs_inspect_list_applications>."
21710 msgstr ""
21711
21712 #. type: =head2
21713 #: ../inspector/virt-inspector.pod:266
21714 msgid "E<lt>drive_mappingsE<gt>"
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../inspector/virt-inspector.pod:268
21719 msgid ""
21720 "For operating systems like Windows which use drive letters, virt-inspector "
21721 "is able to find out how drive letters map to filesystems."
21722 msgstr ""
21723
21724 #. type: verbatim
21725 #: ../inspector/virt-inspector.pod:272
21726 #, no-wrap
21727 msgid ""
21728 " <operatingsystems>\n"
21729 "   <operatingsystem>\n"
21730 "     ...\n"
21731 "     <drive_mappings>\n"
21732 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21733 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21734 "     </drive_mappings>\n"
21735 "\n"
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../inspector/virt-inspector.pod:280
21740 msgid ""
21741 "In the example above, drive C maps to the filesystem on the second partition "
21742 "on the first disk, and drive E maps to the filesystem on the first partition "
21743 "on the second disk."
21744 msgstr ""
21745
21746 #. type: textblock
21747 #: ../inspector/virt-inspector.pod:284
21748 msgid ""
21749 "Note that this only covers permanent local filesystem mappings, not things "
21750 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21751 "here."
21752 msgstr ""
21753
21754 #. type: =head2
21755 #: ../inspector/virt-inspector.pod:288
21756 msgid "E<lt>iconE<gt>"
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../inspector/virt-inspector.pod:290
21761 msgid ""
21762 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21763 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21764 "very large and high quality."
21765 msgstr ""
21766
21767 #. type: verbatim
21768 #: ../inspector/virt-inspector.pod:294
21769 #, no-wrap
21770 msgid ""
21771 " <operatingsystems>\n"
21772 "   <operatingsystem>\n"
21773 "     ...\n"
21774 "     <icon>\n"
21775 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21776 "       [... many lines of base64 data ...]\n"
21777 "     </icon>\n"
21778 "\n"
21779 msgstr ""
21780
21781 #. type: textblock
21782 #: ../inspector/virt-inspector.pod:302
21783 msgid ""
21784 "To display the icon, you have to extract it and convert the base64 data back "
21785 "to a binary file.  Use an XPath query or simply an editor to extract the "
21786 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21787 "to a PNG file:"
21788 msgstr ""
21789
21790 #. type: verbatim
21791 #: ../inspector/virt-inspector.pod:307
21792 #, no-wrap
21793 msgid ""
21794 " base64 -i -d < icon.data > icon.png\n"
21795 "\n"
21796 msgstr ""
21797
21798 #. type: =head2
21799 #: ../inspector/virt-inspector.pod:309
21800 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../inspector/virt-inspector.pod:311
21805 msgid ""
21806 "Virt-inspector can detect some operating system installers on install disks, "
21807 "live CDs, bootable USB keys and more."
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../inspector/virt-inspector.pod:314
21812 msgid ""
21813 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21814 "fields may be present to indicate a live CD, network installer, or one part "
21815 "of a multipart CD.  For example:"
21816 msgstr ""
21817
21818 #. type: verbatim
21819 #: ../inspector/virt-inspector.pod:318
21820 #, no-wrap
21821 msgid ""
21822 " <operatingsystems>\n"
21823 "   <operatingsystem>\n"
21824 "     <root>/dev/sda</root>\n"
21825 "     <name>linux</name>\n"
21826 "     <arch>i386</arch>\n"
21827 "     <distro>ubuntu</distro>\n"
21828 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21829 "     <major_version>10</major_version>\n"
21830 "     <minor_version>10</minor_version>\n"
21831 "     <format>installer</format>\n"
21832 "     <live/>\n"
21833 "\n"
21834 msgstr ""
21835
21836 #. type: =head1
21837 #: ../inspector/virt-inspector.pod:330
21838 msgid "USING XPATH"
21839 msgstr ""
21840
21841 #. type: textblock
21842 #: ../inspector/virt-inspector.pod:332
21843 msgid ""
21844 "You can use the XPath query language to select parts of the XML.  We "
21845 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21846 msgstr ""
21847
21848 #. type: verbatim
21849 #: ../inspector/virt-inspector.pod:338
21850 #, no-wrap
21851 msgid ""
21852 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21853 " <filesystems>\n"
21854 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21855 "        <type>ext4</type>\n"
21856 " [...]\n"
21857 "\n"
21858 msgstr ""
21859
21860 #. type: verbatim
21861 #: ../inspector/virt-inspector.pod:344
21862 #, no-wrap
21863 msgid ""
21864 " $ virt-inspector -d Guest | \\\n"
21865 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21866 " ext4\n"
21867 "\n"
21868 msgstr ""
21869
21870 #. type: verbatim
21871 #: ../inspector/virt-inspector.pod:348
21872 #, no-wrap
21873 msgid ""
21874 " $ virt-inspector -d Guest | \\\n"
21875 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21876 " [displays the guest icon, if there is one]\n"
21877 "\n"
21878 msgstr ""
21879
21880 #. type: =head1
21881 #: ../inspector/virt-inspector.pod:359
21882 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../inspector/virt-inspector.pod:361
21887 msgid ""
21888 "Early versions of libguestfs shipped with a different virt-inspector program "
21889 "written in Perl (the current version is written in C).  The XML output of "
21890 "the Perl virt-inspector was different and it could also output in other "
21891 "formats like text."
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../inspector/virt-inspector.pod:366
21896 msgid ""
21897 "The old virt-inspector is no longer supported or shipped with libguestfs."
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../inspector/virt-inspector.pod:369
21902 msgid ""
21903 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21904 "versions of virt-inspector with different names:"
21905 msgstr ""
21906
21907 #. type: verbatim
21908 #: ../inspector/virt-inspector.pod:372
21909 #, no-wrap
21910 msgid ""
21911 " virt-inspector     Old Perl version.\n"
21912 " virt-inspector2    New C version.\n"
21913 "\n"
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../inspector/virt-inspector.pod:382
21918 msgid ""
21919 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21920 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../inspector/virt-inspector.pod:399
21925 msgid "Matthew Booth L<mbooth@redhat.com>"
21926 msgstr ""
21927
21928 #. type: textblock
21929 #: ../java/examples/guestfs-java.pod:5
21930 msgid "guestfs-java - How to use libguestfs from Java"
21931 msgstr ""
21932
21933 #. type: verbatim
21934 #: ../java/examples/guestfs-java.pod:9
21935 #, no-wrap
21936 msgid ""
21937 " import com.redhat.et.libguestfs.*;\n"
21938 " \n"
21939 msgstr ""
21940
21941 #. type: verbatim
21942 #: ../java/examples/guestfs-java.pod:11
21943 #, no-wrap
21944 msgid ""
21945 " GuestFS g = new GuestFS ();\n"
21946 " g.add_drive_opts (\"disk.img\", null);\n"
21947 " g.launch ();\n"
21948 "\n"
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../java/examples/guestfs-java.pod:17
21953 msgid ""
21954 "This manual page documents how to call libguestfs from the Java programming "
21955 "language.  This page just documents the differences from the C API and gives "
21956 "some examples.  If you are not familiar with using libguestfs, you also need "
21957 "to read L<guestfs(3)>."
21958 msgstr ""
21959
21960 #. type: =head2
21961 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21962 msgid "CLOSING THE HANDLE"
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../java/examples/guestfs-java.pod:24
21967 msgid ""
21968 "The handle is closed when it is reaped by the garbage collector.  Because "
21969 "libguestfs handles include a lot of state, it is also possible to close (and "
21970 "hence free) them explicitly by calling the C<close> method."
21971 msgstr ""
21972
21973 #. type: =head2
21974 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21975 #: ../python/examples/guestfs-python.pod:21
21976 #: ../ruby/examples/guestfs-ruby.pod:22
21977 msgid "EXCEPTIONS"
21978 msgstr ""
21979
21980 #. type: textblock
21981 #: ../java/examples/guestfs-java.pod:31
21982 msgid ""
21983 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21984 "exception.  This has a single parameter which is the error message (a "
21985 "C<String>)."
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../java/examples/guestfs-java.pod:35
21990 msgid "Calling any method on a closed handle raises the same exception."
21991 msgstr ""
21992
21993 #. type: textblock
21994 #: ../java/examples/guestfs-java.pod:47
21995 msgid ""
21996 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21997 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21998 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../ocaml/examples/guestfs-ocaml.pod:5
22003 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22004 msgstr ""
22005
22006 #. type: textblock
22007 #: ../ocaml/examples/guestfs-ocaml.pod:9
22008 msgid "Module style:"
22009 msgstr ""
22010
22011 #. type: verbatim
22012 #: ../ocaml/examples/guestfs-ocaml.pod:11
22013 #, no-wrap
22014 msgid ""
22015 " let g = Guestfs.create () in\n"
22016 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22017 " Guestfs.launch g;\n"
22018 "\n"
22019 msgstr ""
22020
22021 #. type: textblock
22022 #: ../ocaml/examples/guestfs-ocaml.pod:15
22023 msgid "Object-oriented style:"
22024 msgstr ""
22025
22026 #. type: verbatim
22027 #: ../ocaml/examples/guestfs-ocaml.pod:17
22028 #, no-wrap
22029 msgid ""
22030 " let g = new Guestfs.guestfs () in\n"
22031 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22032 " g#launch ();\n"
22033 "\n"
22034 msgstr ""
22035
22036 #. type: verbatim
22037 #: ../ocaml/examples/guestfs-ocaml.pod:21
22038 #, no-wrap
22039 msgid ""
22040 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22041 "or:\n"
22042 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22043 "\n"
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../ocaml/examples/guestfs-ocaml.pod:27
22048 msgid ""
22049 "This manual page documents how to call libguestfs from the OCaml programming "
22050 "language.  This page just documents the differences from the C API and gives "
22051 "some examples.  If you are not familiar with using libguestfs, you also need "
22052 "to read L<guestfs(3)>."
22053 msgstr ""
22054
22055 #. type: =head2
22056 #: ../ocaml/examples/guestfs-ocaml.pod:32
22057 msgid "PROGRAMMING STYLES"
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../ocaml/examples/guestfs-ocaml.pod:34
22062 msgid ""
22063 "There are two different programming styles supported by the OCaml bindings.  "
22064 "You can use a module style, with each C function mapped to an OCaml function:"
22065 msgstr ""
22066
22067 #. type: verbatim
22068 #: ../ocaml/examples/guestfs-ocaml.pod:38
22069 #, no-wrap
22070 msgid ""
22071 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22072 "\n"
22073 msgstr ""
22074
22075 #. type: textblock
22076 #: ../ocaml/examples/guestfs-ocaml.pod:40
22077 msgid "becomes:"
22078 msgstr ""
22079
22080 #. type: verbatim
22081 #: ../ocaml/examples/guestfs-ocaml.pod:42
22082 #, no-wrap
22083 msgid ""
22084 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22085 "\n"
22086 msgstr ""
22087
22088 #. type: textblock
22089 #: ../ocaml/examples/guestfs-ocaml.pod:44
22090 msgid ""
22091 "Alternately you can use an object-oriented style, calling methods on the "
22092 "class C<Guestfs.guestfs>:"
22093 msgstr ""
22094
22095 #. type: verbatim
22096 #: ../ocaml/examples/guestfs-ocaml.pod:47
22097 #, no-wrap
22098 msgid ""
22099 " method set_verbose : bool -> unit\n"
22100 "\n"
22101 msgstr ""
22102
22103 #. type: textblock
22104 #: ../ocaml/examples/guestfs-ocaml.pod:49
22105 msgid ""
22106 "The object-oriented style is usually briefer, and the minor performance "
22107 "penalty isn't noticable in the general overhead of performing libguestfs "
22108 "functions."
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../ocaml/examples/guestfs-ocaml.pod:55
22113 msgid ""
22114 "The handle is closed when it is reaped by the garbage collector.  Because "
22115 "libguestfs handles include a lot of state, it is also possible to close (and "
22116 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22117 "method."
22118 msgstr ""
22119
22120 #. type: textblock
22121 #: ../ocaml/examples/guestfs-ocaml.pod:62
22122 msgid ""
22123 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22124 "exception.  This has a single parameter which is the error message (a "
22125 "string)."
22126 msgstr ""
22127
22128 #. type: textblock
22129 #: ../ocaml/examples/guestfs-ocaml.pod:66
22130 msgid ""
22131 "Calling any function/method on a closed handle raises C<Guestfs."
22132 "Handle_closed>.  The single parameter is the name of the function that you "
22133 "called."
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../ocaml/examples/guestfs-ocaml.pod:80
22138 msgid ""
22139 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22140 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22141 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../perl/examples/guestfs-perl.pod:5
22146 msgid "guestfs-perl - How to use libguestfs from Perl"
22147 msgstr ""
22148
22149 #. type: verbatim
22150 #: ../perl/examples/guestfs-perl.pod:9
22151 #, no-wrap
22152 msgid ""
22153 " use Sys::Guestfs;\n"
22154 " \n"
22155 msgstr ""
22156
22157 #. type: verbatim
22158 #: ../perl/examples/guestfs-perl.pod:11
22159 #, no-wrap
22160 msgid ""
22161 " my $h = Sys::Guestfs->new ();\n"
22162 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22163 " $h->launch ();\n"
22164 " $h->mount_options ('', '/dev/sda1', '/');\n"
22165 " $h->touch ('/hello');\n"
22166 " $h->sync ();\n"
22167 "\n"
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../perl/examples/guestfs-perl.pod:20
22172 msgid ""
22173 "This manual page documents how to call libguestfs from the Perl programming "
22174 "language.  This page just documents the differences from the C API and gives "
22175 "some examples.  If you are not familiar with using libguestfs, you also need "
22176 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22177 msgstr ""
22178
22179 #. type: =head2
22180 #: ../perl/examples/guestfs-perl.pod:26
22181 msgid "ERRORS"
22182 msgstr ""
22183
22184 #. type: textblock
22185 #: ../perl/examples/guestfs-perl.pod:28
22186 msgid ""
22187 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22188 ">)."
22189 msgstr ""
22190
22191 #. type: textblock
22192 #: ../perl/examples/guestfs-perl.pod:41
22193 msgid ""
22194 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22195 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22196 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22197 msgstr ""
22198
22199 #. type: textblock
22200 #: ../python/examples/guestfs-python.pod:5
22201 msgid "guestfs-python - How to use libguestfs from Python"
22202 msgstr ""
22203
22204 #. type: verbatim
22205 #: ../python/examples/guestfs-python.pod:9
22206 #, no-wrap
22207 msgid ""
22208 " import guestfs\n"
22209 " g = guestfs.GuestFS ()\n"
22210 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22211 " g.launch\n"
22212 "\n"
22213 msgstr ""
22214
22215 #. type: textblock
22216 #: ../python/examples/guestfs-python.pod:16
22217 msgid ""
22218 "This manual page documents how to call libguestfs from the Python "
22219 "programming language.  This page just documents the differences from the C "
22220 "API and gives some examples.  If you are not familiar with using libguestfs, "
22221 "you also need to read L<guestfs(3)>."
22222 msgstr ""
22223
22224 #. type: textblock
22225 #: ../python/examples/guestfs-python.pod:23
22226 msgid ""
22227 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22228 "single string argument which is the error message."
22229 msgstr ""
22230
22231 #. type: =head2
22232 #: ../python/examples/guestfs-python.pod:26
22233 msgid "MORE DOCUMENTATION"
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../python/examples/guestfs-python.pod:28
22238 msgid "Type:"
22239 msgstr ""
22240
22241 #. type: verbatim
22242 #: ../python/examples/guestfs-python.pod:30
22243 #, no-wrap
22244 msgid ""
22245 " $ python\n"
22246 " >>> import guestfs\n"
22247 " >>> help (guestfs)\n"
22248 "\n"
22249 msgstr ""
22250
22251 #. type: textblock
22252 #: ../python/examples/guestfs-python.pod:44
22253 msgid ""
22254 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22255 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22256 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../rescue/virt-rescue.pod:5
22261 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22262 msgstr ""
22263
22264 #. type: verbatim
22265 #: ../rescue/virt-rescue.pod:9
22266 #, no-wrap
22267 msgid ""
22268 " virt-rescue [--options] -d domname\n"
22269 "\n"
22270 msgstr ""
22271
22272 #. type: verbatim
22273 #: ../rescue/virt-rescue.pod:11
22274 #, no-wrap
22275 msgid ""
22276 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22277 "\n"
22278 msgstr ""
22279
22280 #. type: verbatim
22281 #: ../rescue/virt-rescue.pod:15
22282 #, no-wrap
22283 msgid ""
22284 " virt-rescue [--options] domname\n"
22285 "\n"
22286 msgstr ""
22287
22288 #. type: verbatim
22289 #: ../rescue/virt-rescue.pod:17
22290 #, no-wrap
22291 msgid ""
22292 " virt-rescue [--options] disk.img [disk.img ...]\n"
22293 "\n"
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../rescue/virt-rescue.pod:21
22298 msgid ""
22299 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22300 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22301 "you from doing this, but doesn't catch all cases."
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../rescue/virt-rescue.pod:25
22306 msgid ""
22307 "However if you use the I<--ro> (read only) option, then you can attach a "
22308 "shell to a live virtual machine.  The results might be strange or "
22309 "inconsistent at times but you won't get disk corruption."
22310 msgstr ""
22311
22312 #. type: textblock
22313 #: ../rescue/virt-rescue.pod:31
22314 msgid ""
22315 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22316 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22317 "recovery tools which you can use to examine or rescue a virtual machine or "
22318 "disk image."
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../rescue/virt-rescue.pod:36
22323 msgid ""
22324 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22325 "on disk image(s):"
22326 msgstr ""
22327
22328 #. type: verbatim
22329 #: ../rescue/virt-rescue.pod:39
22330 #, no-wrap
22331 msgid ""
22332 " virt-rescue -d GuestName\n"
22333 "\n"
22334 msgstr ""
22335
22336 #. type: verbatim
22337 #: ../rescue/virt-rescue.pod:41
22338 #, no-wrap
22339 msgid ""
22340 " virt-rescue --ro -a /path/to/disk.img\n"
22341 "\n"
22342 msgstr ""
22343
22344 #. type: verbatim
22345 #: ../rescue/virt-rescue.pod:43
22346 #, no-wrap
22347 msgid ""
22348 " virt-rescue -a /dev/sdc\n"
22349 "\n"
22350 msgstr ""
22351
22352 #. type: textblock
22353 #: ../rescue/virt-rescue.pod:45
22354 msgid "For live VMs you I<must> use the --ro option."
22355 msgstr ""
22356
22357 #. type: textblock
22358 #: ../rescue/virt-rescue.pod:47
22359 msgid ""
22360 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22361 "in an interactive bash shell where you can use many ordinary Linux "
22362 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22363 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22364 "is an empty directory called C</sysroot> where you can mount filesystems."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../rescue/virt-rescue.pod:54
22369 msgid ""
22370 "In the example below, we list logical volumes, then choose one to mount "
22371 "under C</sysroot>:"
22372 msgstr ""
22373
22374 #. type: verbatim
22375 #: ../rescue/virt-rescue.pod:57
22376 #, no-wrap
22377 msgid ""
22378 " ><rescue> lvs\n"
22379 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22380 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22381 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22382 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22383 " ><rescue> ls /sysroot\n"
22384 "\n"
22385 msgstr ""
22386
22387 #. type: textblock
22388 #: ../rescue/virt-rescue.pod:64
22389 msgid ""
22390 "If you don't know what filesystems are available on the virtual machine then "
22391 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22392 msgstr ""
22393
22394 #. type: textblock
22395 #: ../rescue/virt-rescue.pod:70
22396 msgid ""
22397 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22398 "virtual machine.  For example you can use it on a blank file if you want to "
22399 "partition that file (although we would recommend using L<guestfish(1)> "
22400 "instead as it is more suitable for this purpose).  You can even use virt-"
22401 "rescue on things like SD cards."
22402 msgstr ""
22403
22404 #. type: textblock
22405 #: ../rescue/virt-rescue.pod:76
22406 msgid ""
22407 "Virt-rescue does not require root.  You only need to run it as root if you "
22408 "need root to open the disk image."
22409 msgstr ""
22410
22411 #. type: textblock
22412 #: ../rescue/virt-rescue.pod:79
22413 msgid ""
22414 "This tool is just designed for quick interactive hacking on a virtual "
22415 "machine.  For more structured access to a virtual machine disk image, you "
22416 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22417 "make scripted changes to guests, use L<guestfish(1)>."
22418 msgstr ""
22419
22420 #. type: =item
22421 #: ../rescue/virt-rescue.pod:103
22422 msgid "B<--append kernelopts>"
22423 msgstr ""
22424
22425 #. type: textblock
22426 #: ../rescue/virt-rescue.pod:105
22427 msgid "Pass additional options to the rescue kernel."
22428 msgstr ""
22429
22430 #. type: verbatim
22431 #: ../rescue/virt-rescue.pod:135
22432 #, no-wrap
22433 msgid ""
22434 " virt-rescue --format=raw -a disk.img\n"
22435 "\n"
22436 msgstr ""
22437
22438 #. type: verbatim
22439 #: ../rescue/virt-rescue.pod:139
22440 #, no-wrap
22441 msgid ""
22442 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22443 "\n"
22444 msgstr ""
22445
22446 #. type: =item
22447 #: ../rescue/virt-rescue.pod:148
22448 msgid "B<-m MB>"
22449 msgstr ""
22450
22451 #. type: =item
22452 #: ../rescue/virt-rescue.pod:150
22453 msgid "B<--memsize MB>"
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../rescue/virt-rescue.pod:152
22458 msgid ""
22459 "Change the amount of memory allocated to the rescue system.  The default is "
22460 "set by libguestfs and is small but adequate for running system tools.  The "
22461 "occasional program might need more memory.  The parameter is specified in "
22462 "megabytes."
22463 msgstr ""
22464
22465 #. type: =item
22466 #: ../rescue/virt-rescue.pod:157
22467 msgid "B<--network>"
22468 msgstr ""
22469
22470 #. type: textblock
22471 #: ../rescue/virt-rescue.pod:159
22472 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../rescue/virt-rescue.pod:165
22477 msgid "Open the image read-only."
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../rescue/virt-rescue.pod:175
22482 msgid ""
22483 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22484 "SELINUX> before using this option."
22485 msgstr ""
22486
22487 #. type: =item
22488 #: ../rescue/virt-rescue.pod:178
22489 msgid "B<--smp> N"
22490 msgstr ""
22491
22492 #. type: textblock
22493 #: ../rescue/virt-rescue.pod:180
22494 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22495 msgstr ""
22496
22497 #. type: textblock
22498 #: ../rescue/virt-rescue.pod:198
22499 msgid ""
22500 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22501 "are done read-write."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../rescue/virt-rescue.pod:211
22506 msgid "Previous versions of virt-rescue allowed you to write either:"
22507 msgstr ""
22508
22509 #. type: verbatim
22510 #: ../rescue/virt-rescue.pod:213
22511 #, no-wrap
22512 msgid ""
22513 " virt-rescue disk.img [disk.img ...]\n"
22514 "\n"
22515 msgstr ""
22516
22517 #. type: verbatim
22518 #: ../rescue/virt-rescue.pod:217
22519 #, no-wrap
22520 msgid ""
22521 " virt-rescue guestname\n"
22522 "\n"
22523 msgstr ""
22524
22525 #. type: =head1
22526 #: ../rescue/virt-rescue.pod:225
22527 msgid "NETWORK"
22528 msgstr ""
22529
22530 #. type: textblock
22531 #: ../rescue/virt-rescue.pod:227
22532 msgid ""
22533 "Adding the I<--network> option enables QEMU user networking in the rescue "
22534 "appliance.  There are some differences between user networking and ordinary "
22535 "networking:"
22536 msgstr ""
22537
22538 #. type: =item
22539 #: ../rescue/virt-rescue.pod:233
22540 msgid "ping does not work"
22541 msgstr ""
22542
22543 #. type: textblock
22544 #: ../rescue/virt-rescue.pod:235
22545 msgid ""
22546 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22547 "send the ping packets, and because virt-rescue must be able to run as non-"
22548 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22549 "The ping command will appear to resolve addresses but will not be able to "
22550 "send or receive any packets.  This does not mean that the network is not "
22551 "working."
22552 msgstr ""
22553
22554 #. type: =item
22555 #: ../rescue/virt-rescue.pod:242
22556 msgid "cannot receive connections"
22557 msgstr ""
22558
22559 #. type: textblock
22560 #: ../rescue/virt-rescue.pod:244
22561 msgid "QEMU user networking cannot receive incoming connections."
22562 msgstr ""
22563
22564 #. type: =item
22565 #: ../rescue/virt-rescue.pod:246
22566 msgid "making TCP connections"
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../rescue/virt-rescue.pod:248
22571 msgid ""
22572 "The virt-rescue appliance needs to be small and so does not include many "
22573 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22574 "make TCP connections from the shell using the magical C</dev/tcp/"
22575 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22576 msgstr ""
22577
22578 #. type: verbatim
22579 #: ../rescue/virt-rescue.pod:253
22580 #, no-wrap
22581 msgid ""
22582 " exec 3<>/dev/tcp/redhat.com/80\n"
22583 " echo \"GET /\" >&3\n"
22584 " cat <&3\n"
22585 "\n"
22586 msgstr ""
22587
22588 #. type: textblock
22589 #: ../rescue/virt-rescue.pod:257
22590 msgid "See L<bash(1)> for more details."
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../rescue/virt-rescue.pod:263
22595 msgid ""
22596 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22597 "ENVIRONMENT VARIABLES> for the complete list."
22598 msgstr ""
22599
22600 #. type: textblock
22601 #: ../rescue/virt-rescue.pod:290
22602 msgid ""
22603 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22604 "libguestfs.org/>."
22605 msgstr ""
22606
22607 #. type: textblock
22608 #: ../resize/virt-resize.pod:5
22609 msgid "virt-resize - Resize a virtual machine disk"
22610 msgstr ""
22611
22612 #. type: verbatim
22613 #: ../resize/virt-resize.pod:9
22614 #, no-wrap
22615 msgid ""
22616 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22617 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22618 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22619 "\n"
22620 msgstr ""
22621
22622 #. type: textblock
22623 #: ../resize/virt-resize.pod:15
22624 msgid ""
22625 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22626 "larger or smaller overall, and resizing or deleting any partitions contained "
22627 "within."
22628 msgstr ""
22629
22630 #. type: textblock
22631 #: ../resize/virt-resize.pod:19
22632 msgid ""
22633 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22634 "not> be used on live virtual machines - for consistent results, shut the "
22635 "virtual machine down before resizing it."
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../resize/virt-resize.pod:23
22640 msgid ""
22641 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22642 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22643 msgstr ""
22644
22645 #. type: =item
22646 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576
22647 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22648 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
22649 msgid "1."
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../resize/virt-resize.pod:33
22654 msgid ""
22655 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22656 "fill the extra 5GB of space."
22657 msgstr ""
22658
22659 #. type: verbatim
22660 #: ../resize/virt-resize.pod:36
22661 #, no-wrap
22662 msgid ""
22663 " virt-filesystems --long -h --all -a olddisk\n"
22664 " \n"
22665 msgstr ""
22666
22667 #. type: verbatim
22668 #: ../resize/virt-resize.pod:38
22669 #, no-wrap
22670 msgid ""
22671 " truncate -r olddisk newdisk\n"
22672 " truncate -s +5G newdisk\n"
22673 " \n"
22674 msgstr ""
22675
22676 #. type: verbatim
22677 #: ../resize/virt-resize.pod:41
22678 #, no-wrap
22679 msgid ""
22680 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22681 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22682 "\n"
22683 msgstr ""
22684
22685 #. type: =item
22686 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583
22687 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22688 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
22689 msgid "2."
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../resize/virt-resize.pod:46
22694 msgid ""
22695 "As above, but make the /boot partition 200MB bigger, while giving the "
22696 "remaining space to /dev/sda2:"
22697 msgstr ""
22698
22699 #. type: verbatim
22700 #: ../resize/virt-resize.pod:49
22701 #, no-wrap
22702 msgid ""
22703 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22704 "   olddisk newdisk\n"
22705 "\n"
22706 msgstr ""
22707
22708 #. type: =item
22709 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589
22710 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22711 #: ../src/guestfs.pod:1436
22712 msgid "3."
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../resize/virt-resize.pod:54
22717 msgid ""
22718 "As in the first example, but expand a logical volume as the final step.  "
22719 "This is what you would typically use for Linux guests that use LVM:"
22720 msgstr ""
22721
22722 #. type: verbatim
22723 #: ../resize/virt-resize.pod:58
22724 #, no-wrap
22725 msgid ""
22726 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22727 "   olddisk newdisk\n"
22728 "\n"
22729 msgstr ""
22730
22731 #. type: =item
22732 #: ../resize/virt-resize.pod:61
22733 msgid "4."
22734 msgstr ""
22735
22736 #. type: textblock
22737 #: ../resize/virt-resize.pod:63
22738 msgid ""
22739 "As in the first example, but the output format will be qcow2 instead of a "
22740 "raw disk:"
22741 msgstr ""
22742
22743 #. type: verbatim
22744 #: ../resize/virt-resize.pod:66
22745 #, no-wrap
22746 msgid ""
22747 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22748 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22749 "\n"
22750 msgstr ""
22751
22752 #. type: =head1
22753 #: ../resize/virt-resize.pod:71
22754 msgid "DETAILED USAGE"
22755 msgstr ""
22756
22757 #. type: =head2
22758 #: ../resize/virt-resize.pod:73
22759 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22760 msgstr ""
22761
22762 #. type: =item
22763 #: ../resize/virt-resize.pod:77
22764 msgid "1. Shut down the virtual machine"
22765 msgstr ""
22766
22767 #. type: =item
22768 #: ../resize/virt-resize.pod:79
22769 msgid "2. Locate input disk image"
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../resize/virt-resize.pod:81
22774 msgid ""
22775 "Locate the input disk image (ie. the file or device on the host containing "
22776 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22777 "dumpxml> like this to find the disk image name:"
22778 msgstr ""
22779
22780 #. type: verbatim
22781 #: ../resize/virt-resize.pod:85
22782 #, no-wrap
22783 msgid ""
22784 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22785 " Found 1 nodes:\n"
22786 " -- NODE --\n"
22787 " <source dev=\"/dev/vg/lv_guest\" />\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: =item
22792 #: ../resize/virt-resize.pod:90
22793 msgid "3. Look at current sizing"
22794 msgstr ""
22795
22796 #. type: textblock
22797 #: ../resize/virt-resize.pod:92
22798 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22799 msgstr ""
22800
22801 #. type: verbatim
22802 #: ../resize/virt-resize.pod:95
22803 #, no-wrap
22804 msgid ""
22805 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22806 " Name       Type       Size  Parent\n"
22807 " /dev/sda1  partition  101M  /dev/sda\n"
22808 " /dev/sda2  partition  7.9G  /dev/sda\n"
22809 " /dev/sda   device     8.0G  -\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../resize/virt-resize.pod:101
22815 msgid ""
22816 "(This example is a virtual machine with an 8 GB disk which we would like to "
22817 "expand up to 10 GB)."
22818 msgstr ""
22819
22820 #. type: =item
22821 #: ../resize/virt-resize.pod:104
22822 msgid "4. Create output disk"
22823 msgstr ""
22824
22825 #. type: textblock
22826 #: ../resize/virt-resize.pod:106
22827 msgid ""
22828 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22829 "to store the resized output disk."
22830 msgstr ""
22831
22832 #. type: textblock
22833 #: ../resize/virt-resize.pod:109
22834 msgid ""
22835 "To store the resized disk image in a file, create a file of a suitable size:"
22836 msgstr ""
22837
22838 #. type: verbatim
22839 #: ../resize/virt-resize.pod:112
22840 #, no-wrap
22841 msgid ""
22842 " # rm -f outdisk\n"
22843 " # truncate -s 10G outdisk\n"
22844 "\n"
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../resize/virt-resize.pod:115
22849 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22850 msgstr ""
22851
22852 #. type: verbatim
22853 #: ../resize/virt-resize.pod:117
22854 #, no-wrap
22855 msgid ""
22856 " # lvcreate -L 10G -n lv_name vg_name\n"
22857 "\n"
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../resize/virt-resize.pod:119
22862 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22863 msgstr ""
22864
22865 #. type: verbatim
22866 #: ../resize/virt-resize.pod:121
22867 #, no-wrap
22868 msgid ""
22869 " # virsh pool-list\n"
22870 " # virsh vol-create-as poolname newvol 10G\n"
22871 "\n"
22872 msgstr ""
22873
22874 #. type: =item
22875 #: ../resize/virt-resize.pod:124
22876 msgid "5. Resize"
22877 msgstr ""
22878
22879 #. type: textblock
22880 #: ../resize/virt-resize.pod:126
22881 msgid ""
22882 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22883 "file) and the output disk.  The output disk is the one created in the "
22884 "previous step."
22885 msgstr ""
22886
22887 #. type: verbatim
22888 #: ../resize/virt-resize.pod:130
22889 #, no-wrap
22890 msgid ""
22891 " # virt-resize indisk outdisk\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../resize/virt-resize.pod:132
22897 msgid ""
22898 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22899 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22900 "larger, then an extra, empty partition is created at the end of the disk "
22901 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22902 "error."
22903 msgstr ""
22904
22905 #. type: textblock
22906 #: ../resize/virt-resize.pod:138
22907 msgid ""
22908 "More realistically you'd want to expand existing partitions in the disk "
22909 "image by passing extra options (for the full list see the L</OPTIONS> "
22910 "section below)."
22911 msgstr ""
22912
22913 #. type: textblock
22914 #: ../resize/virt-resize.pod:142
22915 msgid ""
22916 "L</--expand> is the most useful option.  It expands the named partition "
22917 "within the disk to fill any extra space:"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../resize/virt-resize.pod:145
22922 #, no-wrap
22923 msgid ""
22924 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22925 "\n"
22926 msgstr ""
22927
22928 #. type: textblock
22929 #: ../resize/virt-resize.pod:147
22930 msgid ""
22931 "(In this case, an extra partition is I<not> created at the end of the disk, "
22932 "because there will be no unused space)."
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../resize/virt-resize.pod:150
22937 msgid ""
22938 "L</--resize> is the other commonly used option.  The following would "
22939 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22940 "rest of the available space:"
22941 msgstr ""
22942
22943 #. type: verbatim
22944 #: ../resize/virt-resize.pod:154
22945 #, no-wrap
22946 msgid ""
22947 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22948 "     indisk outdisk\n"
22949 "\n"
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../resize/virt-resize.pod:157
22954 msgid ""
22955 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22956 "if virt-resize knows how, it will resize the contents, the equivalent of "
22957 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22958 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22959 "filesystems, so you would have to online resize them after booting the guest."
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../resize/virt-resize.pod:164
22964 msgid "Other options are covered below."
22965 msgstr ""
22966
22967 #. type: =item
22968 #: ../resize/virt-resize.pod:166
22969 msgid "6. Test"
22970 msgstr ""
22971
22972 #. type: textblock
22973 #: ../resize/virt-resize.pod:168
22974 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22975 msgstr ""
22976
22977 #. type: textblock
22978 #: ../resize/virt-resize.pod:170
22979 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22980 msgstr ""
22981
22982 #. type: verbatim
22983 #: ../resize/virt-resize.pod:172
22984 #, no-wrap
22985 msgid ""
22986 " # virsh edit guestname\n"
22987 "\n"
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../resize/virt-resize.pod:174
22992 msgid ""
22993 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22994 "html#elementsDisks>"
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../resize/virt-resize.pod:177
22999 msgid "Then start up the domain with the new, resized disk:"
23000 msgstr ""
23001
23002 #. type: verbatim
23003 #: ../resize/virt-resize.pod:179
23004 #, no-wrap
23005 msgid ""
23006 " # virsh start guestname\n"
23007 "\n"
23008 msgstr ""
23009
23010 #. type: textblock
23011 #: ../resize/virt-resize.pod:181
23012 msgid ""
23013 "and check that it still works.  See also the L</NOTES> section below for "
23014 "additional information."
23015 msgstr ""
23016
23017 #. type: =item
23018 #: ../resize/virt-resize.pod:184
23019 msgid "7. Resize LVs etc inside the guest"
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../resize/virt-resize.pod:186
23024 msgid "(This can also be done offline using L<guestfish(1)>)"
23025 msgstr ""
23026
23027 #. type: textblock
23028 #: ../resize/virt-resize.pod:188
23029 msgid ""
23030 "Once the guest has booted you should see the new space available, at least "
23031 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23032 "may need to resize LVs inside PVs, and also resize filesystem types that "
23033 "virt-resize does not know how to expand."
23034 msgstr ""
23035
23036 #. type: =head2
23037 #: ../resize/virt-resize.pod:195
23038 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../resize/virt-resize.pod:197
23043 msgid ""
23044 "Shrinking is somewhat more complex than expanding, and only an overview is "
23045 "given here."
23046 msgstr ""
23047
23048 #. type: textblock
23049 #: ../resize/virt-resize.pod:200
23050 msgid ""
23051 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23052 "filesystems).  The user has to shrink content before passing the disk image "
23053 "to virt-resize, and virt-resize will check that the content has been shrunk "
23054 "properly."
23055 msgstr ""
23056
23057 #. type: textblock
23058 #: ../resize/virt-resize.pod:205
23059 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23060 msgstr ""
23061
23062 #. type: textblock
23063 #: ../resize/virt-resize.pod:207
23064 msgid ""
23065 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23066 "steps 3 and 4 above to allocate a new disk image."
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../resize/virt-resize.pod:210
23071 msgid ""
23072 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23073 msgstr ""
23074
23075 #. type: =head2
23076 #: ../resize/virt-resize.pod:213
23077 msgid "IGNORING OR DELETING PARTITIONS"
23078 msgstr ""
23079
23080 #. type: textblock
23081 #: ../resize/virt-resize.pod:215
23082 msgid ""
23083 "virt-resize also gives a convenient way to ignore or delete partitions when "
23084 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23085 "up the copy where you don't care about the existing contents of a "
23086 "partition.  Deleting a partition removes it completely, but note that it "
23087 "also renumbers any partitions after the one which is deleted, which can "
23088 "leave some guests unbootable."
23089 msgstr ""
23090
23091 #. type: =head2
23092 #: ../resize/virt-resize.pod:222
23093 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23094 msgstr ""
23095
23096 #. type: textblock
23097 #: ../resize/virt-resize.pod:224
23098 msgid ""
23099 "If the input disk is in qcow2 format, then you may prefer that the output is "
23100 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23101 "the fly.  The output format is simply determined by the format of the empty "
23102 "output container that you provide.  Thus to create qcow2 output, use:"
23103 msgstr ""
23104
23105 #. type: verbatim
23106 #: ../resize/virt-resize.pod:230
23107 #, no-wrap
23108 msgid ""
23109 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23110 "\n"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../resize/virt-resize.pod:232
23115 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23116 msgstr ""
23117
23118 #. type: textblock
23119 #: ../resize/virt-resize.pod:234
23120 msgid "Similarly, to get non-sparse raw output use:"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../resize/virt-resize.pod:236
23125 #, no-wrap
23126 msgid ""
23127 " fallocate -l size outdisk\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: textblock
23132 #: ../resize/virt-resize.pod:238
23133 msgid ""
23134 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23135 "dev/zero of=outdisk bs=1M count=..>)"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23140 msgid "Display help."
23141 msgstr ""
23142
23143 #. type: =item
23144 #: ../resize/virt-resize.pod:249
23145 msgid "B<--align-first auto>"
23146 msgstr ""
23147
23148 #. type: =item
23149 #: ../resize/virt-resize.pod:251
23150 msgid "B<--align-first never>"
23151 msgstr ""
23152
23153 #. type: =item
23154 #: ../resize/virt-resize.pod:253
23155 msgid "B<--align-first always>"
23156 msgstr ""
23157
23158 #. type: textblock
23159 #: ../resize/virt-resize.pod:255
23160 msgid ""
23161 "Align the first partition for improved performance (see also the I<--"
23162 "alignment> option)."
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../resize/virt-resize.pod:258
23167 msgid ""
23168 "The default is I<--align-first auto> which only aligns the first partition "
23169 "if it is safe to do so.  That is, only when we know how to fix the "
23170 "bootloader automatically, and at the moment that can only be done for "
23171 "Windows guests."
23172 msgstr ""
23173
23174 #. type: textblock
23175 #: ../resize/virt-resize.pod:263
23176 msgid ""
23177 "I<--align-first never> means we never move the first partition.  This is the "
23178 "safest option.  Try this if the guest does not boot after resizing."
23179 msgstr ""
23180
23181 #. type: textblock
23182 #: ../resize/virt-resize.pod:267
23183 msgid ""
23184 "I<--align-first always> means we always align the first partition (if it "
23185 "needs to be aligned).  For some guests this will break the bootloader, "
23186 "making the guest unbootable."
23187 msgstr ""
23188
23189 #. type: =item
23190 #: ../resize/virt-resize.pod:271
23191 msgid "B<--alignment N>"
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../resize/virt-resize.pod:273
23196 msgid ""
23197 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23198 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../resize/virt-resize.pod:277
23203 msgid ""
23204 "Assuming 512 byte sector size inside the guest, here are some suitable "
23205 "values for this:"
23206 msgstr ""
23207
23208 #. type: =item
23209 #: ../resize/virt-resize.pod:282
23210 msgid "I<--alignment 1> (512 bytes)"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../resize/virt-resize.pod:284
23215 msgid ""
23216 "The partitions would be packed together as closely as possible, but would be "
23217 "completely unaligned.  In some cases this can cause very poor performance.  "
23218 "See L<virt-alignment-scan(1)> for further details."
23219 msgstr ""
23220
23221 #. type: =item
23222 #: ../resize/virt-resize.pod:288
23223 msgid "I<--alignment 8> (4K)"
23224 msgstr ""
23225
23226 #. type: textblock
23227 #: ../resize/virt-resize.pod:290
23228 msgid ""
23229 "This would be the minimum acceptable alignment for reasonable performance on "
23230 "modern hosts."
23231 msgstr ""
23232
23233 #. type: =item
23234 #: ../resize/virt-resize.pod:293
23235 msgid "I<--alignment 128> (64K)"
23236 msgstr ""
23237
23238 #. type: textblock
23239 #: ../resize/virt-resize.pod:295
23240 msgid ""
23241 "This alignment provides good performance when the host is using high end "
23242 "network storage."
23243 msgstr ""
23244
23245 #. type: =item
23246 #: ../resize/virt-resize.pod:298
23247 msgid "I<--alignment 2048> (1M)"
23248 msgstr ""
23249
23250 #. type: textblock
23251 #: ../resize/virt-resize.pod:300
23252 msgid ""
23253 "This is the standard alignment used by all newly installed guests since "
23254 "around 2008."
23255 msgstr ""
23256
23257 #. type: =item
23258 #: ../resize/virt-resize.pod:305
23259 msgid "B<-d>"
23260 msgstr ""
23261
23262 #. type: =item
23263 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177
23264 #: ../tools/virt-win-reg.pl:120
23265 msgid "B<--debug>"
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
23270 msgid "Enable debugging messages."
23271 msgstr ""
23272
23273 #. type: =item
23274 #: ../resize/virt-resize.pod:311
23275 msgid "B<--delete part>"
23276 msgstr ""
23277
23278 #. type: textblock
23279 #: ../resize/virt-resize.pod:313
23280 msgid ""
23281 "Delete the named partition.  It would be more accurate to describe this as "
23282 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23283 "the original disk image is left intact."
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../resize/virt-resize.pod:317
23288 msgid ""
23289 "Note that when you delete a partition, then anything contained in the "
23290 "partition is also deleted.  Furthermore, this causes any partitions that "
23291 "come after to be I<renumbered>, which can easily make your guest unbootable."
23292 msgstr ""
23293
23294 #. type: textblock
23295 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383
23296 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
23297 msgid "You can give this option multiple times."
23298 msgstr ""
23299
23300 #. type: =item
23301 #: ../resize/virt-resize.pod:324
23302 msgid "B<--expand part>"
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../resize/virt-resize.pod:326
23307 msgid ""
23308 "Expand the named partition so it uses up all extra space (space left over "
23309 "after any other resize changes that you request have been done)."
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../resize/virt-resize.pod:329
23314 msgid ""
23315 "If virt-resize knows how, it will expand the direct content of the "
23316 "partition.  For example, if the partition is an LVM PV, it will expand the "
23317 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23318 "content it doesn't know about alone."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../resize/virt-resize.pod:334
23323 msgid "Currently virt-resize can resize:"
23324 msgstr ""
23325
23326 #. type: textblock
23327 #: ../resize/virt-resize.pod:340
23328 msgid "ext2, ext3 and ext4 filesystems."
23329 msgstr ""
23330
23331 #. type: textblock
23332 #: ../resize/virt-resize.pod:344
23333 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23334 msgstr ""
23335
23336 #. type: textblock
23337 #: ../resize/virt-resize.pod:346
23338 msgid ""
23339 "The filesystem must have been shut down consistently last time it was used.  "
23340 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23341 "consistency check, so at the first boot after resizing Windows will check "
23342 "the disk."
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:353
23347 msgid ""
23348 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23349 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23350 "resize LVs as desired after boot."
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../resize/virt-resize.pod:359
23355 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
23360 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23361 msgstr ""
23362
23363 #. type: =item
23364 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125
23365 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23366 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23367 msgid "B<--format> raw"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
23372 msgid ""
23373 "Specify the format of the input disk image.  If this flag is not given then "
23374 "it is auto-detected from the image itself."
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../resize/virt-resize.pod:373
23379 msgid ""
23380 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23381 "AND NON-SPARSE RAW FORMATS>."
23382 msgstr ""
23383
23384 #. type: =item
23385 #: ../resize/virt-resize.pod:376
23386 msgid "B<--ignore part>"
23387 msgstr ""
23388
23389 #. type: textblock
23390 #: ../resize/virt-resize.pod:378
23391 msgid ""
23392 "Ignore the named partition.  Effectively this means the partition is "
23393 "allocated on the destination disk, but the content is not copied across from "
23394 "the source disk.  The content of the partition will be blank (all zero "
23395 "bytes)."
23396 msgstr ""
23397
23398 #. type: =item
23399 #: ../resize/virt-resize.pod:385
23400 msgid "B<--LV-expand logvol>"
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../resize/virt-resize.pod:387
23405 msgid ""
23406 "This takes the logical volume and, as a final step, expands it to fill all "
23407 "the space available in its volume group.  A typical usage, assuming a Linux "
23408 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23409 "lv_root> would be:"
23410 msgstr ""
23411
23412 #. type: verbatim
23413 #: ../resize/virt-resize.pod:392
23414 #, no-wrap
23415 msgid ""
23416 " virt-resize indisk outdisk \\\n"
23417 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23418 "\n"
23419 msgstr ""
23420
23421 #. type: textblock
23422 #: ../resize/virt-resize.pod:395
23423 msgid ""
23424 "This would first expand the partition (and PV), and then expand the root "
23425 "device to fill the extra space in the PV."
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../resize/virt-resize.pod:398
23430 msgid ""
23431 "The contents of the LV are also resized if virt-resize knows how to do "
23432 "that.  You can stop virt-resize from trying to expand the content by using "
23433 "the option I<--no-expand-content>."
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../resize/virt-resize.pod:402
23438 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../resize/virt-resize.pod:404
23443 msgid ""
23444 "You can give this option multiple times, I<but> it doesn't make sense to do "
23445 "this unless the logical volumes you specify are all in different volume "
23446 "groups."
23447 msgstr ""
23448
23449 #. type: =item
23450 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
23451 msgid "B<--machine-readable>"
23452 msgstr ""
23453
23454 #. type: textblock
23455 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
23456 msgid ""
23457 "This option is used to make the output more machine friendly when being "
23458 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23459 msgstr ""
23460
23461 #. type: =item
23462 #: ../resize/virt-resize.pod:416
23463 msgid "B<--dryrun>"
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../resize/virt-resize.pod:418
23468 msgid "Print a summary of what would be done, but don't do anything."
23469 msgstr ""
23470
23471 #. type: =item
23472 #: ../resize/virt-resize.pod:420
23473 msgid "B<--no-copy-boot-loader>"
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../resize/virt-resize.pod:422
23478 msgid ""
23479 "By default, virt-resize copies over some sectors at the start of the disk "
23480 "(up to the beginning of the first partition).  Commonly these sectors "
23481 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23482 "in order for the guest to boot correctly."
23483 msgstr ""
23484
23485 #. type: textblock
23486 #: ../resize/virt-resize.pod:427
23487 msgid ""
23488 "If you specify this flag, then this initial copy is not done.  You may need "
23489 "to reinstall the boot loader in this case."
23490 msgstr ""
23491
23492 #. type: =item
23493 #: ../resize/virt-resize.pod:430
23494 msgid "B<--no-extra-partition>"
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../resize/virt-resize.pod:432
23499 msgid ""
23500 "By default, virt-resize creates an extra partition if there is any extra, "
23501 "unused space after all resizing has happened.  Use this option to prevent "
23502 "the extra partition from being created.  If you do this then the extra space "
23503 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23504 "tool in the guest."
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../resize/virt-resize.pod:438
23509 msgid ""
23510 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23511 "will be created."
23512 msgstr ""
23513
23514 #. type: =item
23515 #: ../resize/virt-resize.pod:441
23516 msgid "B<--no-expand-content>"
23517 msgstr ""
23518
23519 #. type: textblock
23520 #: ../resize/virt-resize.pod:443
23521 msgid ""
23522 "By default, virt-resize will try to expand the direct contents of "
23523 "partitions, if it knows how (see I<--expand> option above)."
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../resize/virt-resize.pod:446
23528 msgid ""
23529 "If you give the I<--no-expand-content> option then virt-resize will not "
23530 "attempt this."
23531 msgstr ""
23532
23533 #. type: =item
23534 #: ../resize/virt-resize.pod:449
23535 msgid "B<--ntfsresize-force>"
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../resize/virt-resize.pod:451
23540 msgid ""
23541 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23542 "the NTFS disk is marked as needing a consistency check.  You have to use "
23543 "this option if you want to resize a Windows guest multiple times without "
23544 "booting into Windows between each resize."
23545 msgstr ""
23546
23547 #. type: =item
23548 #: ../resize/virt-resize.pod:457
23549 msgid "B<--output-format> raw"
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../resize/virt-resize.pod:459
23554 msgid ""
23555 "Specify the format of the output disk image.  If this flag is not given then "
23556 "it is auto-detected from the image itself."
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../resize/virt-resize.pod:465
23561 msgid ""
23562 "Note that this option I<does not create> the output format.  This option "
23563 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23564 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23565 "SPARSE RAW FORMATS>."
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../resize/virt-resize.pod:474
23570 msgid "Don't print the summary."
23571 msgstr ""
23572
23573 #. type: =item
23574 #: ../resize/virt-resize.pod:476
23575 msgid "B<--resize part=size>"
23576 msgstr ""
23577
23578 #. type: textblock
23579 #: ../resize/virt-resize.pod:478
23580 msgid ""
23581 "Resize the named partition (expanding or shrinking it) so that it has the "
23582 "given size."
23583 msgstr ""
23584
23585 #. type: textblock
23586 #: ../resize/virt-resize.pod:481
23587 msgid ""
23588 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23589 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23590 "size; or as a relative number or percentage.  For example:"
23591 msgstr ""
23592
23593 #. type: verbatim
23594 #: ../resize/virt-resize.pod:487
23595 #, no-wrap
23596 msgid ""
23597 " --resize /dev/sda2=10G\n"
23598 "\n"
23599 msgstr ""
23600
23601 #. type: verbatim
23602 #: ../resize/virt-resize.pod:489
23603 #, no-wrap
23604 msgid ""
23605 " --resize /dev/sda4=90%\n"
23606 "\n"
23607 msgstr ""
23608
23609 #. type: verbatim
23610 #: ../resize/virt-resize.pod:491
23611 #, no-wrap
23612 msgid ""
23613 " --resize /dev/sda2=+1G\n"
23614 "\n"
23615 msgstr ""
23616
23617 #. type: verbatim
23618 #: ../resize/virt-resize.pod:493
23619 #, no-wrap
23620 msgid ""
23621 " --resize /dev/sda2=-200M\n"
23622 "\n"
23623 msgstr ""
23624
23625 #. type: verbatim
23626 #: ../resize/virt-resize.pod:495
23627 #, no-wrap
23628 msgid ""
23629 " --resize /dev/sda1=+128K\n"
23630 "\n"
23631 msgstr ""
23632
23633 #. type: verbatim
23634 #: ../resize/virt-resize.pod:497
23635 #, no-wrap
23636 msgid ""
23637 " --resize /dev/sda1=+10%\n"
23638 "\n"
23639 msgstr ""
23640
23641 #. type: verbatim
23642 #: ../resize/virt-resize.pod:499
23643 #, no-wrap
23644 msgid ""
23645 " --resize /dev/sda1=-10%\n"
23646 "\n"
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../resize/virt-resize.pod:501
23651 msgid ""
23652 "You can increase the size of any partition.  Virt-resize will expand the "
23653 "direct content of the partition if it knows how (see I<--expand> below)."
23654 msgstr ""
23655
23656 #. type: textblock
23657 #: ../resize/virt-resize.pod:505
23658 msgid ""
23659 "You can only I<decrease> the size of partitions that contain filesystems or "
23660 "PVs which have already been shrunk.  Virt-resize will check this has been "
23661 "done before proceeding, or else will print an error (see also I<--resize-"
23662 "force>)."
23663 msgstr ""
23664
23665 #. type: =item
23666 #: ../resize/virt-resize.pod:512
23667 msgid "B<--resize-force part=size>"
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../resize/virt-resize.pod:514
23672 msgid ""
23673 "This is the same as I<--resize> except that it will let you decrease the "
23674 "size of any partition.  Generally this means you will lose any data which "
23675 "was at the end of the partition you shrink, but you may not care about that "
23676 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23677 "as a swap partition)."
23678 msgstr ""
23679
23680 #. type: textblock
23681 #: ../resize/virt-resize.pod:520
23682 msgid "See also the I<--ignore> option."
23683 msgstr ""
23684
23685 #. type: =item
23686 #: ../resize/virt-resize.pod:522
23687 msgid "B<--shrink part>"
23688 msgstr ""
23689
23690 #. type: textblock
23691 #: ../resize/virt-resize.pod:524
23692 msgid ""
23693 "Shrink the named partition until the overall disk image fits in the "
23694 "destination.  The named partition B<must> contain a filesystem or PV which "
23695 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23696 "online tools).  Virt-resize will check this and give an error if it has not "
23697 "been done."
23698 msgstr ""
23699
23700 #. type: textblock
23701 #: ../resize/virt-resize.pod:530
23702 msgid ""
23703 "The amount by which the overall disk must be shrunk (after carrying out all "
23704 "other operations requested by the user) is called the \"deficit\".  For "
23705 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23706 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23707 "would give an error unless the user specified a partition to shrink and that "
23708 "partition had more than a gigabyte of free space."
23709 msgstr ""
23710
23711 #. type: =head1
23712 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
23713 msgid "MACHINE READABLE OUTPUT"
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../resize/virt-resize.pod:550
23718 msgid ""
23719 "The I<--machine-readable> option can be used to make the output more machine "
23720 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23721 "etc."
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
23726 msgid "There are two ways to use this option."
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../resize/virt-resize.pod:556
23731 msgid ""
23732 "Firstly use the option on its own to query the capabilities of the virt-"
23733 "resize binary.  Typical output looks like this:"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../resize/virt-resize.pod:559
23738 #, no-wrap
23739 msgid ""
23740 " $ virt-resize --machine-readable\n"
23741 " virt-resize\n"
23742 " ntfsresize-force\n"
23743 " 32bitok\n"
23744 " ntfs\n"
23745 " btrfs\n"
23746 "\n"
23747 msgstr ""
23748
23749 #. type: textblock
23750 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
23751 msgid ""
23752 "A list of features is printed, one per line, and the program exits with "
23753 "status 0."
23754 msgstr ""
23755
23756 #. type: textblock
23757 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
23758 msgid ""
23759 "Secondly use the option in conjunction with other options to make the "
23760 "regular program output more machine friendly."
23761 msgstr ""
23762
23763 #. type: textblock
23764 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
23765 msgid "At the moment this means:"
23766 msgstr ""
23767
23768 #. type: textblock
23769 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
23770 msgid ""
23771 "Progress bar messages can be parsed from stdout by looking for this regular "
23772 "expression:"
23773 msgstr ""
23774
23775 #. type: verbatim
23776 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
23777 #, no-wrap
23778 msgid ""
23779 " ^[0-9]+/[0-9]+$\n"
23780 "\n"
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
23785 msgid ""
23786 "The calling program should treat messages sent to stdout (except for "
23787 "progress bar messages) as status messages.  They can be logged and/or "
23788 "displayed to the user."
23789 msgstr ""
23790
23791 #. type: textblock
23792 #: ../resize/virt-resize.pod:591
23793 msgid ""
23794 "The calling program should treat messages sent to stderr as error messages.  "
23795 "In addition, virt-resize exits with a non-zero status code if there was a "
23796 "fatal error."
23797 msgstr ""
23798
23799 #. type: textblock
23800 #: ../resize/virt-resize.pod:597
23801 msgid ""
23802 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23803 "readable> option and will return an error."
23804 msgstr ""
23805
23806 #. type: =head2
23807 #: ../resize/virt-resize.pod:602
23808 msgid "\"Partition 1 does not end on cylinder boundary.\""
23809 msgstr ""
23810
23811 #. type: textblock
23812 #: ../resize/virt-resize.pod:604
23813 msgid ""
23814 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
23815 "alignment> parameter).  Usually this means the partitions will not be "
23816 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
23817 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
23818 "drives.  Alignment of partitions to cylinders is not required by any modern "
23819 "operating system."
23820 msgstr ""
23821
23822 #. type: =head2
23823 #: ../resize/virt-resize.pod:611
23824 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23825 msgstr ""
23826
23827 #. type: textblock
23828 #: ../resize/virt-resize.pod:613
23829 msgid ""
23830 "In Windows Vista and later versions, Microsoft switched to using a separate "
23831 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23832 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
23833 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
23834 "the second partition (ie. C: drive)  should work."
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../resize/virt-resize.pod:620
23839 msgid ""
23840 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23841 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23842 "it find errors) is nothing to worry about."
23843 msgstr ""
23844
23845 #. type: =head2
23846 #: ../resize/virt-resize.pod:624
23847 msgid "GUEST BOOT STUCK AT \"GRUB\""
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../resize/virt-resize.pod:626
23852 msgid ""
23853 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23854 "printing C<GRUB> on the console, try reinstalling grub."
23855 msgstr ""
23856
23857 #. type: verbatim
23858 #: ../resize/virt-resize.pod:629
23859 #, no-wrap
23860 msgid ""
23861 " guestfish -i -a newdisk\n"
23862 " ><fs> cat /boot/grub/device.map\n"
23863 " # check the contents of this file are sensible or\n"
23864 " # edit the file if necessary\n"
23865 " ><fs> grub-install / /dev/vda\n"
23866 " ><fs> exit\n"
23867 "\n"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../resize/virt-resize.pod:636
23872 msgid ""
23873 "For more flexible guest reconfiguration, including if you need to specify "
23874 "other parameters to grub-install, use L<virt-rescue(1)>."
23875 msgstr ""
23876
23877 #. type: =head1
23878 #: ../resize/virt-resize.pod:639
23879 msgid "ALTERNATIVE TOOLS"
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../resize/virt-resize.pod:641
23884 msgid ""
23885 "There are several proprietary tools for resizing partitions.  We won't "
23886 "mention any here."
23887 msgstr ""
23888
23889 #. type: textblock
23890 #: ../resize/virt-resize.pod:644
23891 msgid ""
23892 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23893 "operations on disk images.  They can resize and move partitions, but I don't "
23894 "think they can do anything with the contents, and they certainly don't "
23895 "understand LVM."
23896 msgstr ""
23897
23898 #. type: textblock
23899 #: ../resize/virt-resize.pod:649
23900 msgid ""
23901 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23902 "but at a much lower level.  You will probably end up hand-calculating sector "
23903 "offsets, which is something that virt-resize was designed to avoid.  If you "
23904 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23905 "I<--debug> flag."
23906 msgstr ""
23907
23908 #. type: textblock
23909 #: ../resize/virt-resize.pod:669
23910 msgid ""
23911 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23912 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23913 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23914 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23915 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../ruby/examples/guestfs-ruby.pod:5
23920 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23921 msgstr ""
23922
23923 #. type: verbatim
23924 #: ../ruby/examples/guestfs-ruby.pod:9
23925 #, no-wrap
23926 msgid ""
23927 " require 'guestfs'\n"
23928 " g = Guestfs::Guestfs.new()\n"
23929 " g.add_drive_opts(\"disk.img\",\n"
23930 "                  :readonly => 1, :format => \"raw\")\n"
23931 " g.launch()\n"
23932 "\n"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../ruby/examples/guestfs-ruby.pod:17
23937 msgid ""
23938 "This manual page documents how to call libguestfs from the Ruby programming "
23939 "language.  This page just documents the differences from the C API and gives "
23940 "some examples.  If you are not familiar with using libguestfs, you also need "
23941 "to read L<guestfs(3)>."
23942 msgstr ""
23943
23944 #. type: textblock
23945 #: ../ruby/examples/guestfs-ruby.pod:24
23946 msgid ""
23947 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23948 "This has a single parameter which is the error message (a string)."
23949 msgstr ""
23950
23951 #. type: textblock
23952 #: ../ruby/examples/guestfs-ruby.pod:38
23953 msgid ""
23954 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23955 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23956 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../sparsify/virt-sparsify.pod:5
23961 msgid "virt-sparsify - Make a virtual machine disk sparse"
23962 msgstr ""
23963
23964 #. type: verbatim
23965 #: ../sparsify/virt-sparsify.pod:9
23966 #, no-wrap
23967 msgid ""
23968 " virt-sparsify [--options] indisk outdisk\n"
23969 "\n"
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../sparsify/virt-sparsify.pod:13
23974 msgid ""
23975 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23976 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23977 "the disk image can be converted back to free space on the host."
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../sparsify/virt-sparsify.pod:18
23982 msgid ""
23983 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23984 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23985 msgstr ""
23986
23987 #. type: textblock
23988 #: ../sparsify/virt-sparsify.pod:21
23989 msgid ""
23990 "Virt-sparsify can also convert between some disk formats, for example "
23991 "converting a raw disk image to a thin-provisioned qcow2 image."
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../sparsify/virt-sparsify.pod:24
23996 msgid ""
23997 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23998 "machines.  If a virtual machine has more than one attached disk, you must "
23999 "sparsify each one separately."
24000 msgstr ""
24001
24002 #. type: =head2
24003 #: ../sparsify/virt-sparsify.pod:28
24004 msgid "IMPORTANT LIMITATIONS"
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../sparsify/virt-sparsify.pod:34
24009 msgid ""
24010 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24011 "image to a destination image, leaving the source unchanged.  I<Check that "
24012 "the sparsification was successful before deleting the source image>."
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../sparsify/virt-sparsify.pod:41
24017 msgid "The virtual machine I<must be shut down> before using this tool."
24018 msgstr ""
24019
24020 #. type: textblock
24021 #: ../sparsify/virt-sparsify.pod:45
24022 msgid ""
24023 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24024 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24025 "usually much less space is required."
24026 msgstr ""
24027
24028 #. type: textblock
24029 #: ../sparsify/virt-sparsify.pod:51
24030 msgid ""
24031 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24032 msgstr ""
24033
24034 #. type: textblock
24035 #: ../sparsify/virt-sparsify.pod:56
24036 msgid "Virt-sparsify cannot handle encrypted disks."
24037 msgstr ""
24038
24039 #. type: textblock
24040 #: ../sparsify/virt-sparsify.pod:60
24041 msgid ""
24042 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24043 "this space is often used for critical items like bootloaders so it's not "
24044 "really unused."
24045 msgstr ""
24046
24047 #. type: textblock
24048 #: ../sparsify/virt-sparsify.pod:66
24049 msgid ""
24050 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24051 "to do this unless we can be sure there is no hibernation data, so at the "
24052 "moment swap partitions are ignored."
24053 msgstr ""
24054
24055 #. type: textblock
24056 #: ../sparsify/virt-sparsify.pod:72
24057 msgid ""
24058 "You may also want to read the manual pages for the associated tools L<virt-"
24059 "filesystems(1)> and L<virt-df(1)> before starting."
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../sparsify/virt-sparsify.pod:77
24064 msgid "Typical usage is:"
24065 msgstr ""
24066
24067 #. type: verbatim
24068 #: ../sparsify/virt-sparsify.pod:79
24069 #, no-wrap
24070 msgid ""
24071 " virt-sparsify indisk outdisk\n"
24072 "\n"
24073 msgstr ""
24074
24075 #. type: textblock
24076 #: ../sparsify/virt-sparsify.pod:81
24077 msgid ""
24078 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24079 "is created, or overwritten if it already exists.  The format of the input "
24080 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24081 msgstr ""
24082
24083 #. type: textblock
24084 #: ../sparsify/virt-sparsify.pod:86
24085 msgid "To convert between formats, use the I<--convert> option:"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../sparsify/virt-sparsify.pod:88
24090 #, no-wrap
24091 msgid ""
24092 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24093 "\n"
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../sparsify/virt-sparsify.pod:90
24098 msgid ""
24099 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24100 "can find within the source disk image.  You can get it to ignore (don't zero "
24101 "free space on) certain filesystems by doing:"
24102 msgstr ""
24103
24104 #. type: verbatim
24105 #: ../sparsify/virt-sparsify.pod:94
24106 #, no-wrap
24107 msgid ""
24108 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24109 "\n"
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../sparsify/virt-sparsify.pod:96
24114 msgid ""
24115 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24116 msgstr ""
24117
24118 #. type: =item
24119 #: ../sparsify/virt-sparsify.pod:107
24120 msgid "B<--convert> raw"
24121 msgstr ""
24122
24123 #. type: =item
24124 #: ../sparsify/virt-sparsify.pod:109
24125 msgid "B<--convert> qcow2"
24126 msgstr ""
24127
24128 #. type: =item
24129 #: ../sparsify/virt-sparsify.pod:111
24130 msgid "B<--convert> [other formats]"
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../sparsify/virt-sparsify.pod:113
24135 msgid ""
24136 "Use C<output-format> as the format for the destination image.  If this is "
24137 "not specified, then the input format is used."
24138 msgstr ""
24139
24140 #. type: textblock
24141 #: ../sparsify/virt-sparsify.pod:116
24142 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24143 msgstr ""
24144
24145 #. type: textblock
24146 #: ../sparsify/virt-sparsify.pod:118
24147 msgid ""
24148 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24149 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../sparsify/virt-sparsify.pod:122
24154 msgid ""
24155 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24156 "sparsify doesn't need to try to guess the input format."
24157 msgstr ""
24158
24159 #. type: =item
24160 #: ../sparsify/virt-sparsify.pod:127
24161 msgid "B<--format> qcow2"
24162 msgstr ""
24163
24164 #. type: =item
24165 #: ../sparsify/virt-sparsify.pod:135
24166 msgid "B<--ignore> filesystem"
24167 msgstr ""
24168
24169 #. type: =item
24170 #: ../sparsify/virt-sparsify.pod:137
24171 msgid "B<--ignore> volgroup"
24172 msgstr ""
24173
24174 #. type: textblock
24175 #: ../sparsify/virt-sparsify.pod:139
24176 msgid ""
24177 "Ignore the named filesystem.  Free space on the filesystem will not be "
24178 "zeroed, but existing blocks of zeroes will still be sparsified."
24179 msgstr ""
24180
24181 #. type: textblock
24182 #: ../sparsify/virt-sparsify.pod:142
24183 msgid ""
24184 "In the second form, this ignores the named volume group.  Use the volume "
24185 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24186 msgstr ""
24187
24188 #. type: textblock
24189 #: ../sparsify/virt-sparsify.pod:157
24190 msgid "This disables progress bars and other unnecessary output."
24191 msgstr ""
24192
24193 #. type: textblock
24194 #: ../sparsify/virt-sparsify.pod:179
24195 msgid ""
24196 "The I<--machine-readable> option can be used to make the output more machine "
24197 "friendly, which is useful when calling virt-sparsify from other programs, "
24198 "GUIs etc."
24199 msgstr ""
24200
24201 #. type: textblock
24202 #: ../sparsify/virt-sparsify.pod:185
24203 msgid ""
24204 "Firstly use the option on its own to query the capabilities of the virt-"
24205 "sparsify binary.  Typical output looks like this:"
24206 msgstr ""
24207
24208 #. type: verbatim
24209 #: ../sparsify/virt-sparsify.pod:188
24210 #, no-wrap
24211 msgid ""
24212 " $ virt-sparsify --machine-readable\n"
24213 " virt-sparsify\n"
24214 " ntfs\n"
24215 " btrfs\n"
24216 "\n"
24217 msgstr ""
24218
24219 #. type: textblock
24220 #: ../sparsify/virt-sparsify.pod:218
24221 msgid ""
24222 "The calling program should treat messages sent to stderr as error messages.  "
24223 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24224 "fatal error."
24225 msgstr ""
24226
24227 #. type: textblock
24228 #: ../sparsify/virt-sparsify.pod:224
24229 msgid ""
24230 "All versions of virt-sparsify have supported the I<--machine-readable> "
24231 "option."
24232 msgstr ""
24233
24234 #. type: textblock
24235 #: ../sparsify/virt-sparsify.pod:238
24236 msgid ""
24237 "Location of the temporary directory used for the potentially large temporary "
24238 "overlay file."
24239 msgstr ""
24240
24241 #. type: textblock
24242 #: ../sparsify/virt-sparsify.pod:241
24243 msgid ""
24244 "You should ensure there is enough free space in the worst case for a full "
24245 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24246 "to another directory that has enough space."
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../sparsify/virt-sparsify.pod:245
24251 msgid "This defaults to C</tmp>."
24252 msgstr ""
24253
24254 #. type: textblock
24255 #: ../sparsify/virt-sparsify.pod:249
24256 msgid ""
24257 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24258 msgstr ""
24259
24260 #. type: textblock
24261 #: ../sparsify/virt-sparsify.pod:253
24262 msgid ""
24263 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24264 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24265 "(1)>, L<http://libguestfs.org/>."
24266 msgstr ""
24267
24268 #. type: =head2
24269 #: ../src/guestfs-actions.pod:1
24270 msgid "guestfs_add_cdrom"
24271 msgstr ""
24272
24273 #. type: verbatim
24274 #: ../src/guestfs-actions.pod:3
24275 #, no-wrap
24276 msgid ""
24277 " int\n"
24278 " guestfs_add_cdrom (guestfs_h *g,\n"
24279 "                    const char *filename);\n"
24280 "\n"
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24285 #: ../src/guestfs-actions.pod:276
24286 msgid ""
24287 "I<This function is deprecated.> In new code, use the L</"
24288 "guestfs_add_drive_opts> call instead."
24289 msgstr ""
24290
24291 #. type: textblock
24292 #: ../src/guestfs-actions.pod:24
24293 msgid ""
24294 "This call checks for the existence of C<filename>.  This stops you from "
24295 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24296 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24297 "instead."
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../src/guestfs-actions.pod:31
24302 msgid ""
24303 "If you just want to add an ISO file (often you use this as an efficient way "
24304 "to transfer large files into the guest), then you should probably use "
24305 "C<guestfs_add_drive_ro> instead."
24306 msgstr ""
24307
24308 #. type: textblock
24309 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24310 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24311 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24312 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24313 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24314 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24315 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24316 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24317 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24318 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24319 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24320 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24321 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24322 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24323 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24324 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24325 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24326 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24327 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24328 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24329 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24330 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24331 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24332 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24333 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24334 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24335 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24336 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24337 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24338 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24339 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24340 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24341 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24342 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24343 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24344 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24345 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24346 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24347 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24348 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24349 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24350 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24351 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24352 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24353 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24354 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24355 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24356 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24357 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24358 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24359 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24360 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24361 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24362 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24363 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24364 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24365 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24366 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24367 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24368 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24369 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24370 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24371 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24372 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24373 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24374 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24375 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24376 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24377 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24378 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24379 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24380 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24381 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24382 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24383 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24384 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24385 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24386 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24387 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24388 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24389 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24390 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
24391 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
24392 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
24393 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
24394 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
24395 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
24396 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
24397 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
24398 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
24399 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
24400 #: ../src/guestfs-actions.pod:8007
24401 msgid "This function returns 0 on success or -1 on error."
24402 msgstr ""
24403
24404 #. type: textblock
24405 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24406 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
24407 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
24408 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
24409 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
24410 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
24411 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
24412 #: ../src/guestfs-actions.pod:7784
24413 msgid "(Added in 0.3)"
24414 msgstr ""
24415
24416 #. type: =head2
24417 #: ../src/guestfs-actions.pod:41
24418 msgid "guestfs_add_domain"
24419 msgstr ""
24420
24421 #. type: verbatim
24422 #: ../src/guestfs-actions.pod:43
24423 #, no-wrap
24424 msgid ""
24425 " int\n"
24426 " guestfs_add_domain (guestfs_h *g,\n"
24427 "                     const char *dom,\n"
24428 "                     ...);\n"
24429 "\n"
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24434 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
24435 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
24436 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
24437 #: ../src/guestfs-actions.pod:5340
24438 msgid ""
24439 "You may supply a list of optional arguments to this call.  Use zero or more "
24440 "of the following pairs of parameters, and terminate the list with C<-1> on "
24441 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../src/guestfs-actions.pod:53
24446 #, no-wrap
24447 msgid ""
24448 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24449 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24450 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24451 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24452 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24453 "\n"
24454 msgstr ""
24455
24456 #. type: textblock
24457 #: ../src/guestfs-actions.pod:59
24458 msgid ""
24459 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24460 "It works by connecting to libvirt, requesting the domain and domain XML from "
24461 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24462 "one."
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../src/guestfs-actions.pod:94
24467 msgid ""
24468 "The other optional parameters are passed directly through to "
24469 "C<guestfs_add_drive_opts>."
24470 msgstr ""
24471
24472 #. type: textblock
24473 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
24474 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
24475 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
24476 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
24477 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
24478 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
24479 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
24480 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
24481 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
24482 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
24483 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
24484 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
24485 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
24486 msgid "On error this function returns -1."
24487 msgstr ""
24488
24489 #. type: textblock
24490 #: ../src/guestfs-actions.pod:99
24491 msgid "(Added in 1.7.4)"
24492 msgstr ""
24493
24494 #. type: =head2
24495 #: ../src/guestfs-actions.pod:101
24496 msgid "guestfs_add_domain_va"
24497 msgstr ""
24498
24499 #. type: verbatim
24500 #: ../src/guestfs-actions.pod:103
24501 #, no-wrap
24502 msgid ""
24503 " int\n"
24504 " guestfs_add_domain_va (guestfs_h *g,\n"
24505 "                        const char *dom,\n"
24506 "                        va_list args);\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../src/guestfs-actions.pod:108
24512 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24513 msgstr ""
24514
24515 #. type: textblock
24516 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24517 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
24518 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
24519 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
24520 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
24521 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
24522 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
24523 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
24524 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
24525 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24526 msgstr ""
24527
24528 #. type: =head2
24529 #: ../src/guestfs-actions.pod:112
24530 msgid "guestfs_add_domain_argv"
24531 msgstr ""
24532
24533 #. type: verbatim
24534 #: ../src/guestfs-actions.pod:114
24535 #, no-wrap
24536 msgid ""
24537 " int\n"
24538 " guestfs_add_domain_argv (guestfs_h *g,\n"
24539 "                          const char *dom,\n"
24540 "                          const struct guestfs_add_domain_argv *optargs);\n"
24541 "\n"
24542 msgstr ""
24543
24544 #. type: textblock
24545 #: ../src/guestfs-actions.pod:119
24546 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24547 msgstr ""
24548
24549 #. type: =head2
24550 #: ../src/guestfs-actions.pod:123
24551 msgid "guestfs_add_drive"
24552 msgstr ""
24553
24554 #. type: verbatim
24555 #: ../src/guestfs-actions.pod:125
24556 #, no-wrap
24557 msgid ""
24558 " int\n"
24559 " guestfs_add_drive (guestfs_h *g,\n"
24560 "                    const char *filename);\n"
24561 "\n"
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../src/guestfs-actions.pod:129
24566 msgid ""
24567 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24568 "optional parameters, so the disk is added writable, with the format being "
24569 "detected automatically."
24570 msgstr ""
24571
24572 #. type: textblock
24573 #: ../src/guestfs-actions.pod:133
24574 msgid ""
24575 "Automatic detection of the format opens you up to a potential security hole "
24576 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24577 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24578 "you should think about replacing calls to this function with calls to "
24579 "C<guestfs_add_drive_opts>, and specifying the format."
24580 msgstr ""
24581
24582 #. type: =head2
24583 #: ../src/guestfs-actions.pod:144
24584 msgid "guestfs_add_drive_opts"
24585 msgstr ""
24586
24587 #. type: verbatim
24588 #: ../src/guestfs-actions.pod:146
24589 #, no-wrap
24590 msgid ""
24591 " int\n"
24592 " guestfs_add_drive_opts (guestfs_h *g,\n"
24593 "                         const char *filename,\n"
24594 "                         ...);\n"
24595 "\n"
24596 msgstr ""
24597
24598 #. type: verbatim
24599 #: ../src/guestfs-actions.pod:156
24600 #, no-wrap
24601 msgid ""
24602 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24603 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24604 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24605 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24606 "\n"
24607 msgstr ""
24608
24609 #. type: textblock
24610 #: ../src/guestfs-actions.pod:186
24611 msgid ""
24612 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24613 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24614 "Possible formats include C<raw> and C<qcow2>."
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../src/guestfs-actions.pod:197
24619 msgid ""
24620 "This rarely-used option lets you emulate the behaviour of the deprecated "
24621 "C<guestfs_add_drive_with_if> call (q.v.)"
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../src/guestfs-actions.pod:209
24626 msgid "(Added in 1.5.23)"
24627 msgstr ""
24628
24629 #. type: =head2
24630 #: ../src/guestfs-actions.pod:211
24631 msgid "guestfs_add_drive_opts_va"
24632 msgstr ""
24633
24634 #. type: verbatim
24635 #: ../src/guestfs-actions.pod:213
24636 #, no-wrap
24637 msgid ""
24638 " int\n"
24639 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24640 "                            const char *filename,\n"
24641 "                            va_list args);\n"
24642 "\n"
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../src/guestfs-actions.pod:218
24647 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24648 msgstr ""
24649
24650 #. type: =head2
24651 #: ../src/guestfs-actions.pod:222
24652 msgid "guestfs_add_drive_opts_argv"
24653 msgstr ""
24654
24655 #. type: verbatim
24656 #: ../src/guestfs-actions.pod:224
24657 #, no-wrap
24658 msgid ""
24659 " int\n"
24660 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24661 "                              const char *filename,\n"
24662 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24663 "\n"
24664 msgstr ""
24665
24666 #. type: textblock
24667 #: ../src/guestfs-actions.pod:229
24668 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24669 msgstr ""
24670
24671 #. type: =head2
24672 #: ../src/guestfs-actions.pod:233
24673 msgid "guestfs_add_drive_ro"
24674 msgstr ""
24675
24676 #. type: verbatim
24677 #: ../src/guestfs-actions.pod:235
24678 #, no-wrap
24679 msgid ""
24680 " int\n"
24681 " guestfs_add_drive_ro (guestfs_h *g,\n"
24682 "                       const char *filename);\n"
24683 "\n"
24684 msgstr ""
24685
24686 #. type: textblock
24687 #: ../src/guestfs-actions.pod:239
24688 msgid ""
24689 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24690 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24691 "disk is added read-only, with the format being detected automatically."
24692 msgstr ""
24693
24694 #. type: textblock
24695 #: ../src/guestfs-actions.pod:246
24696 msgid "(Added in 1.0.38)"
24697 msgstr ""
24698
24699 #. type: =head2
24700 #: ../src/guestfs-actions.pod:248
24701 msgid "guestfs_add_drive_ro_with_if"
24702 msgstr ""
24703
24704 #. type: verbatim
24705 #: ../src/guestfs-actions.pod:250
24706 #, no-wrap
24707 msgid ""
24708 " int\n"
24709 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24710 "                               const char *filename,\n"
24711 "                               const char *iface);\n"
24712 "\n"
24713 msgstr ""
24714
24715 #. type: textblock
24716 #: ../src/guestfs-actions.pod:262
24717 msgid ""
24718 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24719 "QEMU interface emulation to use at run time."
24720 msgstr ""
24721
24722 #. type: textblock
24723 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
24724 #: ../src/guestfs-actions.pod:2586
24725 msgid "(Added in 1.0.84)"
24726 msgstr ""
24727
24728 #. type: =head2
24729 #: ../src/guestfs-actions.pod:269
24730 msgid "guestfs_add_drive_with_if"
24731 msgstr ""
24732
24733 #. type: verbatim
24734 #: ../src/guestfs-actions.pod:271
24735 #, no-wrap
24736 msgid ""
24737 " int\n"
24738 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24739 "                            const char *filename,\n"
24740 "                            const char *iface);\n"
24741 "\n"
24742 msgstr ""
24743
24744 #. type: textblock
24745 #: ../src/guestfs-actions.pod:283
24746 msgid ""
24747 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24748 "QEMU interface emulation to use at run time."
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../src/guestfs-actions.pod:290
24753 msgid "guestfs_aug_clear"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../src/guestfs-actions.pod:292
24758 #, no-wrap
24759 msgid ""
24760 " int\n"
24761 " guestfs_aug_clear (guestfs_h *g,\n"
24762 "                    const char *augpath);\n"
24763 "\n"
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
24768 msgid "(Added in 1.3.4)"
24769 msgstr ""
24770
24771 #. type: =head2
24772 #: ../src/guestfs-actions.pod:303
24773 msgid "guestfs_aug_close"
24774 msgstr ""
24775
24776 #. type: verbatim
24777 #: ../src/guestfs-actions.pod:305
24778 #, no-wrap
24779 msgid ""
24780 " int\n"
24781 " guestfs_aug_close (guestfs_h *g);\n"
24782 "\n"
24783 msgstr ""
24784
24785 #. type: textblock
24786 #: ../src/guestfs-actions.pod:308
24787 msgid ""
24788 "Close the current Augeas handle and free up any resources used by it.  After "
24789 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24790 "any other Augeas functions."
24791 msgstr ""
24792
24793 #. type: textblock
24794 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
24795 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
24796 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
24797 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
24798 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
24799 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
24800 #: ../src/guestfs-actions.pod:6008
24801 msgid "(Added in 0.7)"
24802 msgstr ""
24803
24804 #. type: =head2
24805 #: ../src/guestfs-actions.pod:317
24806 msgid "guestfs_aug_defnode"
24807 msgstr ""
24808
24809 #. type: verbatim
24810 #: ../src/guestfs-actions.pod:319
24811 #, no-wrap
24812 msgid ""
24813 " struct guestfs_int_bool *\n"
24814 " guestfs_aug_defnode (guestfs_h *g,\n"
24815 "                      const char *name,\n"
24816 "                      const char *expr,\n"
24817 "                      const char *val);\n"
24818 "\n"
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../src/guestfs-actions.pod:328
24823 msgid ""
24824 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24825 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24826 "containing that single node."
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../src/guestfs-actions.pod:336
24831 msgid ""
24832 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24833 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24834 msgstr ""
24835
24836 #. type: =head2
24837 #: ../src/guestfs-actions.pod:342
24838 msgid "guestfs_aug_defvar"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../src/guestfs-actions.pod:344
24843 #, no-wrap
24844 msgid ""
24845 " int\n"
24846 " guestfs_aug_defvar (guestfs_h *g,\n"
24847 "                     const char *name,\n"
24848 "                     const char *expr);\n"
24849 "\n"
24850 msgstr ""
24851
24852 #. type: =head2
24853 #: ../src/guestfs-actions.pod:360
24854 msgid "guestfs_aug_get"
24855 msgstr ""
24856
24857 #. type: verbatim
24858 #: ../src/guestfs-actions.pod:362
24859 #, no-wrap
24860 msgid ""
24861 " char *\n"
24862 " guestfs_aug_get (guestfs_h *g,\n"
24863 "                  const char *augpath);\n"
24864 "\n"
24865 msgstr ""
24866
24867 #. type: textblock
24868 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
24869 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
24870 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
24871 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
24872 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
24873 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
24874 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
24875 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
24876 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
24877 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
24878 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
24879 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
24880 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
24881 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
24882 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
24883 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
24884 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
24885 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
24886 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
24887 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
24888 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
24889 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
24890 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
24891 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
24892 msgid ""
24893 "This function returns a string, or NULL on error.  I<The caller must free "
24894 "the returned string after use>."
24895 msgstr ""
24896
24897 #. type: =head2
24898 #: ../src/guestfs-actions.pod:374
24899 msgid "guestfs_aug_init"
24900 msgstr ""
24901
24902 #. type: verbatim
24903 #: ../src/guestfs-actions.pod:376
24904 #, no-wrap
24905 msgid ""
24906 " int\n"
24907 " guestfs_aug_init (guestfs_h *g,\n"
24908 "                   const char *root,\n"
24909 "                   int flags);\n"
24910 "\n"
24911 msgstr ""
24912
24913 #. type: textblock
24914 #: ../src/guestfs-actions.pod:385
24915 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../src/guestfs-actions.pod:410
24920 msgid ""
24921 "This option is only useful when debugging Augeas lenses.  Use of this option "
24922 "may require additional memory for the libguestfs appliance.  You may need to "
24923 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24924 "C<guestfs_set_memsize>."
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../src/guestfs-actions.pod:425
24929 msgid "Do not load the tree in C<guestfs_aug_init>."
24930 msgstr ""
24931
24932 #. type: textblock
24933 #: ../src/guestfs-actions.pod:429
24934 msgid "To close the handle, you can call C<guestfs_aug_close>."
24935 msgstr ""
24936
24937 #. type: =head2
24938 #: ../src/guestfs-actions.pod:437
24939 msgid "guestfs_aug_insert"
24940 msgstr ""
24941
24942 #. type: verbatim
24943 #: ../src/guestfs-actions.pod:439
24944 #, no-wrap
24945 msgid ""
24946 " int\n"
24947 " guestfs_aug_insert (guestfs_h *g,\n"
24948 "                     const char *augpath,\n"
24949 "                     const char *label,\n"
24950 "                     int before);\n"
24951 "\n"
24952 msgstr ""
24953
24954 #. type: =head2
24955 #: ../src/guestfs-actions.pod:457
24956 msgid "guestfs_aug_load"
24957 msgstr ""
24958
24959 #. type: verbatim
24960 #: ../src/guestfs-actions.pod:459
24961 #, no-wrap
24962 msgid ""
24963 " int\n"
24964 " guestfs_aug_load (guestfs_h *g);\n"
24965 "\n"
24966 msgstr ""
24967
24968 #. type: =head2
24969 #: ../src/guestfs-actions.pod:471
24970 msgid "guestfs_aug_ls"
24971 msgstr ""
24972
24973 #. type: verbatim
24974 #: ../src/guestfs-actions.pod:473
24975 #, no-wrap
24976 msgid ""
24977 " char **\n"
24978 " guestfs_aug_ls (guestfs_h *g,\n"
24979 "                 const char *augpath);\n"
24980 "\n"
24981 msgstr ""
24982
24983 #. type: textblock
24984 #: ../src/guestfs-actions.pod:477
24985 msgid ""
24986 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24987 "sorting the resulting nodes into alphabetical order."
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
24992 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
24993 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
24994 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
24995 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
24996 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
24997 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
24998 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
24999 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25000 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25001 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25002 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25003 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25004 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25005 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25006 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25007 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25008 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25009 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25010 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25011 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25012 #: ../src/guestfs-actions.pod:8105
25013 msgid ""
25014 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25015 ">), or NULL if there was an error.  I<The caller must free the strings and "
25016 "the array after use>."
25017 msgstr ""
25018
25019 #. type: textblock
25020 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25021 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25022 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25023 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25024 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25025 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25026 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25027 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25028 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25029 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25030 #: ../src/guestfs-actions.pod:7896
25031 msgid "(Added in 0.8)"
25032 msgstr ""
25033
25034 #. type: =head2
25035 #: ../src/guestfs-actions.pod:486
25036 msgid "guestfs_aug_match"
25037 msgstr ""
25038
25039 #. type: verbatim
25040 #: ../src/guestfs-actions.pod:488
25041 #, no-wrap
25042 msgid ""
25043 " char **\n"
25044 " guestfs_aug_match (guestfs_h *g,\n"
25045 "                    const char *augpath);\n"
25046 "\n"
25047 msgstr ""
25048
25049 #. type: =head2
25050 #: ../src/guestfs-actions.pod:502
25051 msgid "guestfs_aug_mv"
25052 msgstr ""
25053
25054 #. type: verbatim
25055 #: ../src/guestfs-actions.pod:504
25056 #, no-wrap
25057 msgid ""
25058 " int\n"
25059 " guestfs_aug_mv (guestfs_h *g,\n"
25060 "                 const char *src,\n"
25061 "                 const char *dest);\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: =head2
25066 #: ../src/guestfs-actions.pod:516
25067 msgid "guestfs_aug_rm"
25068 msgstr ""
25069
25070 #. type: verbatim
25071 #: ../src/guestfs-actions.pod:518
25072 #, no-wrap
25073 msgid ""
25074 " int\n"
25075 " guestfs_aug_rm (guestfs_h *g,\n"
25076 "                 const char *augpath);\n"
25077 "\n"
25078 msgstr ""
25079
25080 #. type: =head2
25081 #: ../src/guestfs-actions.pod:530
25082 msgid "guestfs_aug_save"
25083 msgstr ""
25084
25085 #. type: verbatim
25086 #: ../src/guestfs-actions.pod:532
25087 #, no-wrap
25088 msgid ""
25089 " int\n"
25090 " guestfs_aug_save (guestfs_h *g);\n"
25091 "\n"
25092 msgstr ""
25093
25094 #. type: textblock
25095 #: ../src/guestfs-actions.pod:537
25096 msgid ""
25097 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25098 "are saved."
25099 msgstr ""
25100
25101 #. type: =head2
25102 #: ../src/guestfs-actions.pod:544
25103 msgid "guestfs_aug_set"
25104 msgstr ""
25105
25106 #. type: verbatim
25107 #: ../src/guestfs-actions.pod:546
25108 #, no-wrap
25109 msgid ""
25110 " int\n"
25111 " guestfs_aug_set (guestfs_h *g,\n"
25112 "                  const char *augpath,\n"
25113 "                  const char *val);\n"
25114 "\n"
25115 msgstr ""
25116
25117 #. type: textblock
25118 #: ../src/guestfs-actions.pod:553
25119 msgid ""
25120 "In the Augeas API, it is possible to clear a node by setting the value to "
25121 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25122 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25123 msgstr ""
25124
25125 #. type: =head2
25126 #: ../src/guestfs-actions.pod:562
25127 msgid "guestfs_available"
25128 msgstr ""
25129
25130 #. type: verbatim
25131 #: ../src/guestfs-actions.pod:564
25132 #, no-wrap
25133 msgid ""
25134 " int\n"
25135 " guestfs_available (guestfs_h *g,\n"
25136 "                    char *const *groups);\n"
25137 "\n"
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../src/guestfs-actions.pod:572
25142 msgid ""
25143 "The libguestfs groups, and the functions that those groups correspond to, "
25144 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25145 "runtime by calling C<guestfs_available_all_groups>."
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../src/guestfs-actions.pod:596
25150 msgid "You must call C<guestfs_launch> before calling this function."
25151 msgstr ""
25152
25153 #. type: textblock
25154 #: ../src/guestfs-actions.pod:618
25155 msgid ""
25156 "This call was added in version C<1.0.80>.  In previous versions of "
25157 "libguestfs all you could do would be to speculatively execute a command to "
25158 "find out if the daemon implemented it.  See also C<guestfs_version>."
25159 msgstr ""
25160
25161 #. type: textblock
25162 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25163 msgid "(Added in 1.0.80)"
25164 msgstr ""
25165
25166 #. type: =head2
25167 #: ../src/guestfs-actions.pod:629
25168 msgid "guestfs_available_all_groups"
25169 msgstr ""
25170
25171 #. type: verbatim
25172 #: ../src/guestfs-actions.pod:631
25173 #, no-wrap
25174 msgid ""
25175 " char **\n"
25176 " guestfs_available_all_groups (guestfs_h *g);\n"
25177 "\n"
25178 msgstr ""
25179
25180 #. type: textblock
25181 #: ../src/guestfs-actions.pod:634
25182 msgid ""
25183 "This command returns a list of all optional groups that this daemon knows "
25184 "about.  Note this returns both supported and unsupported groups.  To find "
25185 "out which ones the daemon can actually support you have to call "
25186 "C<guestfs_available> on each member of the returned list."
25187 msgstr ""
25188
25189 #. type: textblock
25190 #: ../src/guestfs-actions.pod:640
25191 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25192 msgstr ""
25193
25194 #. type: textblock
25195 #: ../src/guestfs-actions.pod:646
25196 msgid "(Added in 1.3.15)"
25197 msgstr ""
25198
25199 #. type: =head2
25200 #: ../src/guestfs-actions.pod:648
25201 msgid "guestfs_base64_in"
25202 msgstr ""
25203
25204 #. type: verbatim
25205 #: ../src/guestfs-actions.pod:650
25206 #, no-wrap
25207 msgid ""
25208 " int\n"
25209 " guestfs_base64_in (guestfs_h *g,\n"
25210 "                    const char *base64file,\n"
25211 "                    const char *filename);\n"
25212 "\n"
25213 msgstr ""
25214
25215 #. type: textblock
25216 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25217 msgid "(Added in 1.3.5)"
25218 msgstr ""
25219
25220 #. type: =head2
25221 #: ../src/guestfs-actions.pod:662
25222 msgid "guestfs_base64_out"
25223 msgstr ""
25224
25225 #. type: verbatim
25226 #: ../src/guestfs-actions.pod:664
25227 #, no-wrap
25228 msgid ""
25229 " int\n"
25230 " guestfs_base64_out (guestfs_h *g,\n"
25231 "                     const char *filename,\n"
25232 "                     const char *base64file);\n"
25233 "\n"
25234 msgstr ""
25235
25236 #. type: =head2
25237 #: ../src/guestfs-actions.pod:676
25238 msgid "guestfs_blockdev_flushbufs"
25239 msgstr ""
25240
25241 #. type: verbatim
25242 #: ../src/guestfs-actions.pod:678
25243 #, no-wrap
25244 msgid ""
25245 " int\n"
25246 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25247 "                             const char *device);\n"
25248 "\n"
25249 msgstr ""
25250
25251 #. type: textblock
25252 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25253 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25254 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25255 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25256 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25257 msgid "(Added in 0.9.3)"
25258 msgstr ""
25259
25260 #. type: =head2
25261 #: ../src/guestfs-actions.pod:691
25262 msgid "guestfs_blockdev_getbsz"
25263 msgstr ""
25264
25265 #. type: verbatim
25266 #: ../src/guestfs-actions.pod:693
25267 #, no-wrap
25268 msgid ""
25269 " int\n"
25270 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25271 "                          const char *device);\n"
25272 "\n"
25273 msgstr ""
25274
25275 #. type: =head2
25276 #: ../src/guestfs-actions.pod:708
25277 msgid "guestfs_blockdev_getro"
25278 msgstr ""
25279
25280 #. type: verbatim
25281 #: ../src/guestfs-actions.pod:710
25282 #, no-wrap
25283 msgid ""
25284 " int\n"
25285 " guestfs_blockdev_getro (guestfs_h *g,\n"
25286 "                         const char *device);\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: textblock
25291 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25292 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25293 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25294 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25295 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25296 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25297 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25298 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25299 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25300 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25301 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25302 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25303 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25304 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25305 #: ../src/guestfs-actions.pod:5501
25306 msgid "This function returns a C truth value on success or -1 on error."
25307 msgstr ""
25308
25309 #. type: =head2
25310 #: ../src/guestfs-actions.pod:723
25311 msgid "guestfs_blockdev_getsize64"
25312 msgstr ""
25313
25314 #. type: verbatim
25315 #: ../src/guestfs-actions.pod:725
25316 #, no-wrap
25317 msgid ""
25318 " int64_t\n"
25319 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25320 "                             const char *device);\n"
25321 "\n"
25322 msgstr ""
25323
25324 #. type: textblock
25325 #: ../src/guestfs-actions.pod:731
25326 msgid "See also C<guestfs_blockdev_getsz>."
25327 msgstr ""
25328
25329 #. type: =head2
25330 #: ../src/guestfs-actions.pod:739
25331 msgid "guestfs_blockdev_getss"
25332 msgstr ""
25333
25334 #. type: verbatim
25335 #: ../src/guestfs-actions.pod:741
25336 #, no-wrap
25337 msgid ""
25338 " int\n"
25339 " guestfs_blockdev_getss (guestfs_h *g,\n"
25340 "                         const char *device);\n"
25341 "\n"
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:748
25346 msgid ""
25347 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25348 "that)."
25349 msgstr ""
25350
25351 #. type: =head2
25352 #: ../src/guestfs-actions.pod:757
25353 msgid "guestfs_blockdev_getsz"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../src/guestfs-actions.pod:759
25358 #, no-wrap
25359 msgid ""
25360 " int64_t\n"
25361 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25362 "                         const char *device);\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../src/guestfs-actions.pod:766
25368 msgid ""
25369 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25370 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25371 msgstr ""
25372
25373 #. type: =head2
25374 #: ../src/guestfs-actions.pod:776
25375 msgid "guestfs_blockdev_rereadpt"
25376 msgstr ""
25377
25378 #. type: verbatim
25379 #: ../src/guestfs-actions.pod:778
25380 #, no-wrap
25381 msgid ""
25382 " int\n"
25383 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25384 "                            const char *device);\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: =head2
25389 #: ../src/guestfs-actions.pod:790
25390 msgid "guestfs_blockdev_setbsz"
25391 msgstr ""
25392
25393 #. type: verbatim
25394 #: ../src/guestfs-actions.pod:792
25395 #, no-wrap
25396 msgid ""
25397 " int\n"
25398 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25399 "                          const char *device,\n"
25400 "                          int blocksize);\n"
25401 "\n"
25402 msgstr ""
25403
25404 #. type: =head2
25405 #: ../src/guestfs-actions.pod:808
25406 msgid "guestfs_blockdev_setro"
25407 msgstr ""
25408
25409 #. type: verbatim
25410 #: ../src/guestfs-actions.pod:810
25411 #, no-wrap
25412 msgid ""
25413 " int\n"
25414 " guestfs_blockdev_setro (guestfs_h *g,\n"
25415 "                         const char *device);\n"
25416 "\n"
25417 msgstr ""
25418
25419 #. type: =head2
25420 #: ../src/guestfs-actions.pod:822
25421 msgid "guestfs_blockdev_setrw"
25422 msgstr ""
25423
25424 #. type: verbatim
25425 #: ../src/guestfs-actions.pod:824
25426 #, no-wrap
25427 msgid ""
25428 " int\n"
25429 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25430 "                         const char *device);\n"
25431 "\n"
25432 msgstr ""
25433
25434 #. type: =head2
25435 #: ../src/guestfs-actions.pod:836
25436 msgid "guestfs_btrfs_filesystem_resize"
25437 msgstr ""
25438
25439 #. type: verbatim
25440 #: ../src/guestfs-actions.pod:838
25441 #, no-wrap
25442 msgid ""
25443 " int\n"
25444 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25445 "                                  const char *mountpoint,\n"
25446 "                                  ...);\n"
25447 "\n"
25448 msgstr ""
25449
25450 #. type: verbatim
25451 #: ../src/guestfs-actions.pod:848
25452 #, no-wrap
25453 msgid ""
25454 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25455 "\n"
25456 msgstr ""
25457
25458 #. type: textblock
25459 #: ../src/guestfs-actions.pod:871
25460 msgid "(Added in 1.11.17)"
25461 msgstr ""
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:873
25465 msgid "guestfs_btrfs_filesystem_resize_va"
25466 msgstr ""
25467
25468 #. type: verbatim
25469 #: ../src/guestfs-actions.pod:875
25470 #, no-wrap
25471 msgid ""
25472 " int\n"
25473 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25474 "                                     const char *mountpoint,\n"
25475 "                                     va_list args);\n"
25476 "\n"
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../src/guestfs-actions.pod:880
25481 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25482 msgstr ""
25483
25484 #. type: =head2
25485 #: ../src/guestfs-actions.pod:884
25486 msgid "guestfs_btrfs_filesystem_resize_argv"
25487 msgstr ""
25488
25489 #. type: verbatim
25490 #: ../src/guestfs-actions.pod:886
25491 #, no-wrap
25492 msgid ""
25493 " int\n"
25494 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25495 "                                       const char *mountpoint,\n"
25496 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25497 "\n"
25498 msgstr ""
25499
25500 #. type: textblock
25501 #: ../src/guestfs-actions.pod:891
25502 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25503 msgstr ""
25504
25505 #. type: =head2
25506 #: ../src/guestfs-actions.pod:895
25507 msgid "guestfs_case_sensitive_path"
25508 msgstr ""
25509
25510 #. type: verbatim
25511 #: ../src/guestfs-actions.pod:897
25512 #, no-wrap
25513 msgid ""
25514 " char *\n"
25515 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25516 "                              const char *path);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../src/guestfs-actions.pod:923
25522 msgid ""
25523 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25524 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25525 "how the directories were originally created under Windows)."
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../src/guestfs-actions.pod:931
25530 msgid "See also C<guestfs_realpath>."
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
25535 msgid "(Added in 1.0.75)"
25536 msgstr ""
25537
25538 #. type: =head2
25539 #: ../src/guestfs-actions.pod:938
25540 msgid "guestfs_cat"
25541 msgstr ""
25542
25543 #. type: verbatim
25544 #: ../src/guestfs-actions.pod:940
25545 #, no-wrap
25546 msgid ""
25547 " char *\n"
25548 " guestfs_cat (guestfs_h *g,\n"
25549 "              const char *path);\n"
25550 "\n"
25551 msgstr ""
25552
25553 #. type: textblock
25554 #: ../src/guestfs-actions.pod:946
25555 msgid ""
25556 "Note that this function cannot correctly handle binary files (specifically, "
25557 "files containing C<\\0> character which is treated as end of string).  For "
25558 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25559 "functions which have a more complex interface."
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
25564 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
25565 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
25566 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
25567 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
25568 #: ../src/guestfs-actions.pod:7732
25569 msgid "(Added in 0.4)"
25570 msgstr ""
25571
25572 #. type: =head2
25573 #: ../src/guestfs-actions.pod:959
25574 msgid "guestfs_checksum"
25575 msgstr ""
25576
25577 #. type: verbatim
25578 #: ../src/guestfs-actions.pod:961
25579 #, no-wrap
25580 msgid ""
25581 " char *\n"
25582 " guestfs_checksum (guestfs_h *g,\n"
25583 "                   const char *csumtype,\n"
25584 "                   const char *path);\n"
25585 "\n"
25586 msgstr ""
25587
25588 #. type: textblock
25589 #: ../src/guestfs-actions.pod:1007
25590 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25591 msgstr ""
25592
25593 #. type: textblock
25594 #: ../src/guestfs-actions.pod:1009
25595 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
25600 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
25601 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
25602 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
25603 msgid "(Added in 1.0.2)"
25604 msgstr ""
25605
25606 #. type: =head2
25607 #: ../src/guestfs-actions.pod:1016
25608 msgid "guestfs_checksum_device"
25609 msgstr ""
25610
25611 #. type: verbatim
25612 #: ../src/guestfs-actions.pod:1018
25613 #, no-wrap
25614 msgid ""
25615 " char *\n"
25616 " guestfs_checksum_device (guestfs_h *g,\n"
25617 "                          const char *csumtype,\n"
25618 "                          const char *device);\n"
25619 "\n"
25620 msgstr ""
25621
25622 #. type: textblock
25623 #: ../src/guestfs-actions.pod:1023
25624 msgid ""
25625 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25626 "device named C<device>.  For the types of checksums supported see the "
25627 "C<guestfs_checksum> command."
25628 msgstr ""
25629
25630 #. type: textblock
25631 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
25632 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
25633 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
25634 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
25635 #: ../src/guestfs-actions.pod:7744
25636 msgid "(Added in 1.3.2)"
25637 msgstr ""
25638
25639 #. type: =head2
25640 #: ../src/guestfs-actions.pod:1032
25641 msgid "guestfs_checksums_out"
25642 msgstr ""
25643
25644 #. type: verbatim
25645 #: ../src/guestfs-actions.pod:1034
25646 #, no-wrap
25647 msgid ""
25648 " int\n"
25649 " guestfs_checksums_out (guestfs_h *g,\n"
25650 "                        const char *csumtype,\n"
25651 "                        const char *directory,\n"
25652 "                        const char *sumsfile);\n"
25653 "\n"
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../src/guestfs-actions.pod:1054
25658 msgid "(Added in 1.3.7)"
25659 msgstr ""
25660
25661 #. type: =head2
25662 #: ../src/guestfs-actions.pod:1056
25663 msgid "guestfs_chmod"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../src/guestfs-actions.pod:1058
25668 #, no-wrap
25669 msgid ""
25670 " int\n"
25671 " guestfs_chmod (guestfs_h *g,\n"
25672 "                int mode,\n"
25673 "                const char *path);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: =head2
25678 #: ../src/guestfs-actions.pod:1076
25679 msgid "guestfs_chown"
25680 msgstr ""
25681
25682 #. type: verbatim
25683 #: ../src/guestfs-actions.pod:1078
25684 #, no-wrap
25685 msgid ""
25686 " int\n"
25687 " guestfs_chown (guestfs_h *g,\n"
25688 "                int owner,\n"
25689 "                int group,\n"
25690 "                const char *path);\n"
25691 "\n"
25692 msgstr ""
25693
25694 #. type: =head2
25695 #: ../src/guestfs-actions.pod:1094
25696 msgid "guestfs_command"
25697 msgstr ""
25698
25699 #. type: verbatim
25700 #: ../src/guestfs-actions.pod:1096
25701 #, no-wrap
25702 msgid ""
25703 " char *\n"
25704 " guestfs_command (guestfs_h *g,\n"
25705 "                  char *const *arguments);\n"
25706 "\n"
25707 msgstr ""
25708
25709 #. type: textblock
25710 #: ../src/guestfs-actions.pod:1105
25711 msgid ""
25712 "The single parameter is an argv-style list of arguments.  The first element "
25713 "is the name of the program to run.  Subsequent elements are parameters.  The "
25714 "list must be non-empty (ie. must contain a program name).  Note that the "
25715 "command runs directly, and is I<not> invoked via the shell (see "
25716 "C<guestfs_sh>)."
25717 msgstr ""
25718
25719 #. type: textblock
25720 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
25721 #: ../src/guestfs-actions.pod:1732
25722 msgid "(Added in 0.9.1)"
25723 msgstr ""
25724
25725 #. type: =head2
25726 #: ../src/guestfs-actions.pod:1138
25727 msgid "guestfs_command_lines"
25728 msgstr ""
25729
25730 #. type: verbatim
25731 #: ../src/guestfs-actions.pod:1140
25732 #, no-wrap
25733 msgid ""
25734 " char **\n"
25735 " guestfs_command_lines (guestfs_h *g,\n"
25736 "                        char *const *arguments);\n"
25737 "\n"
25738 msgstr ""
25739
25740 #. type: textblock
25741 #: ../src/guestfs-actions.pod:1144
25742 msgid ""
25743 "This is the same as C<guestfs_command>, but splits the result into a list of "
25744 "lines."
25745 msgstr ""
25746
25747 #. type: textblock
25748 #: ../src/guestfs-actions.pod:1147
25749 msgid "See also: C<guestfs_sh_lines>"
25750 msgstr ""
25751
25752 #. type: =head2
25753 #: ../src/guestfs-actions.pod:1158
25754 msgid "guestfs_compress_device_out"
25755 msgstr ""
25756
25757 #. type: verbatim
25758 #: ../src/guestfs-actions.pod:1160
25759 #, no-wrap
25760 msgid ""
25761 " int\n"
25762 " guestfs_compress_device_out (guestfs_h *g,\n"
25763 "                              const char *ctype,\n"
25764 "                              const char *device,\n"
25765 "                              const char *zdevice,\n"
25766 "                              ...);\n"
25767 "\n"
25768 msgstr ""
25769
25770 #. type: verbatim
25771 #: ../src/guestfs-actions.pod:1172
25772 #, no-wrap
25773 msgid ""
25774 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25775 "\n"
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../src/guestfs-actions.pod:1177
25780 msgid ""
25781 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25782 "C<guestfs_compress_out>."
25783 msgstr ""
25784
25785 #. type: textblock
25786 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
25787 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
25788 msgid "(Added in 1.13.15)"
25789 msgstr ""
25790
25791 #. type: =head2
25792 #: ../src/guestfs-actions.pod:1184
25793 msgid "guestfs_compress_device_out_va"
25794 msgstr ""
25795
25796 #. type: verbatim
25797 #: ../src/guestfs-actions.pod:1186
25798 #, no-wrap
25799 msgid ""
25800 " int\n"
25801 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25802 "                                 const char *ctype,\n"
25803 "                                 const char *device,\n"
25804 "                                 const char *zdevice,\n"
25805 "                                 va_list args);\n"
25806 "\n"
25807 msgstr ""
25808
25809 #. type: textblock
25810 #: ../src/guestfs-actions.pod:1193
25811 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25812 msgstr ""
25813
25814 #. type: =head2
25815 #: ../src/guestfs-actions.pod:1197
25816 msgid "guestfs_compress_device_out_argv"
25817 msgstr ""
25818
25819 #. type: verbatim
25820 #: ../src/guestfs-actions.pod:1199
25821 #, no-wrap
25822 msgid ""
25823 " int\n"
25824 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25825 "                                   const char *ctype,\n"
25826 "                                   const char *device,\n"
25827 "                                   const char *zdevice,\n"
25828 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25829 "\n"
25830 msgstr ""
25831
25832 #. type: textblock
25833 #: ../src/guestfs-actions.pod:1206
25834 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../src/guestfs-actions.pod:1210
25839 msgid "guestfs_compress_out"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:1212
25844 #, no-wrap
25845 msgid ""
25846 " int\n"
25847 " guestfs_compress_out (guestfs_h *g,\n"
25848 "                       const char *ctype,\n"
25849 "                       const char *file,\n"
25850 "                       const char *zfile,\n"
25851 "                       ...);\n"
25852 "\n"
25853 msgstr ""
25854
25855 #. type: verbatim
25856 #: ../src/guestfs-actions.pod:1224
25857 #, no-wrap
25858 msgid ""
25859 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25860 "\n"
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../src/guestfs-actions.pod:1243
25865 msgid "guestfs_compress_out_va"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../src/guestfs-actions.pod:1245
25870 #, no-wrap
25871 msgid ""
25872 " int\n"
25873 " guestfs_compress_out_va (guestfs_h *g,\n"
25874 "                          const char *ctype,\n"
25875 "                          const char *file,\n"
25876 "                          const char *zfile,\n"
25877 "                          va_list args);\n"
25878 "\n"
25879 msgstr ""
25880
25881 #. type: textblock
25882 #: ../src/guestfs-actions.pod:1252
25883 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25884 msgstr ""
25885
25886 #. type: =head2
25887 #: ../src/guestfs-actions.pod:1256
25888 msgid "guestfs_compress_out_argv"
25889 msgstr ""
25890
25891 #. type: verbatim
25892 #: ../src/guestfs-actions.pod:1258
25893 #, no-wrap
25894 msgid ""
25895 " int\n"
25896 " guestfs_compress_out_argv (guestfs_h *g,\n"
25897 "                            const char *ctype,\n"
25898 "                            const char *file,\n"
25899 "                            const char *zfile,\n"
25900 "                            const struct guestfs_compress_out_argv *optargs);\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../src/guestfs-actions.pod:1265
25906 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25907 msgstr ""
25908
25909 #. type: =head2
25910 #: ../src/guestfs-actions.pod:1269
25911 msgid "guestfs_config"
25912 msgstr ""
25913
25914 #. type: verbatim
25915 #: ../src/guestfs-actions.pod:1271
25916 #, no-wrap
25917 msgid ""
25918 " int\n"
25919 " guestfs_config (guestfs_h *g,\n"
25920 "                 const char *qemuparam,\n"
25921 "                 const char *qemuvalue);\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: =head2
25926 #: ../src/guestfs-actions.pod:1289
25927 msgid "guestfs_copy_size"
25928 msgstr ""
25929
25930 #. type: verbatim
25931 #: ../src/guestfs-actions.pod:1291
25932 #, no-wrap
25933 msgid ""
25934 " int\n"
25935 " guestfs_copy_size (guestfs_h *g,\n"
25936 "                    const char *src,\n"
25937 "                    const char *dest,\n"
25938 "                    int64_t size);\n"
25939 "\n"
25940 msgstr ""
25941
25942 #. type: textblock
25943 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
25944 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
25945 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
25946 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
25947 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
25948 #: ../src/guestfs-actions.pod:7980
25949 msgid ""
25950 "This long-running command can generate progress notification messages so "
25951 "that the caller can display a progress bar or indicator.  To receive these "
25952 "messages, the caller must register a progress event callback.  See L<guestfs"
25953 "(3)/GUESTFS_EVENT_PROGRESS>."
25954 msgstr ""
25955
25956 #. type: textblock
25957 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
25958 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
25959 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
25960 msgid "(Added in 1.0.87)"
25961 msgstr ""
25962
25963 #. type: =head2
25964 #: ../src/guestfs-actions.pod:1312
25965 msgid "guestfs_cp"
25966 msgstr ""
25967
25968 #. type: verbatim
25969 #: ../src/guestfs-actions.pod:1314
25970 #, no-wrap
25971 msgid ""
25972 " int\n"
25973 " guestfs_cp (guestfs_h *g,\n"
25974 "             const char *src,\n"
25975 "             const char *dest);\n"
25976 "\n"
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
25981 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
25982 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
25983 #: ../src/guestfs-actions.pod:5753
25984 msgid "(Added in 1.0.18)"
25985 msgstr ""
25986
25987 #. type: =head2
25988 #: ../src/guestfs-actions.pod:1326
25989 msgid "guestfs_cp_a"
25990 msgstr ""
25991
25992 #. type: verbatim
25993 #: ../src/guestfs-actions.pod:1328
25994 #, no-wrap
25995 msgid ""
25996 " int\n"
25997 " guestfs_cp_a (guestfs_h *g,\n"
25998 "               const char *src,\n"
25999 "               const char *dest);\n"
26000 "\n"
26001 msgstr ""
26002
26003 #. type: =head2
26004 #: ../src/guestfs-actions.pod:1340
26005 msgid "guestfs_dd"
26006 msgstr ""
26007
26008 #. type: verbatim
26009 #: ../src/guestfs-actions.pod:1342
26010 #, no-wrap
26011 msgid ""
26012 " int\n"
26013 " guestfs_dd (guestfs_h *g,\n"
26014 "             const char *src,\n"
26015 "             const char *dest);\n"
26016 "\n"
26017 msgstr ""
26018
26019 #. type: textblock
26020 #: ../src/guestfs-actions.pod:1352
26021 msgid ""
26022 "If the destination is a device, it must be as large or larger than the "
26023 "source file or device, otherwise the copy will fail.  This command cannot do "
26024 "partial copies (see C<guestfs_copy_size>)."
26025 msgstr ""
26026
26027 #. type: =head2
26028 #: ../src/guestfs-actions.pod:1360
26029 msgid "guestfs_df"
26030 msgstr ""
26031
26032 #. type: verbatim
26033 #: ../src/guestfs-actions.pod:1362
26034 #, no-wrap
26035 msgid ""
26036 " char *\n"
26037 " guestfs_df (guestfs_h *g);\n"
26038 "\n"
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26043 msgid ""
26044 "This command is mostly useful for interactive sessions.  It is I<not> "
26045 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26046 "from programs."
26047 msgstr ""
26048
26049 #. type: textblock
26050 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26051 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26052 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26053 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26054 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26055 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26056 #: ../src/guestfs-actions.pod:7823
26057 msgid "(Added in 1.0.54)"
26058 msgstr ""
26059
26060 #. type: =head2
26061 #: ../src/guestfs-actions.pod:1376
26062 msgid "guestfs_df_h"
26063 msgstr ""
26064
26065 #. type: verbatim
26066 #: ../src/guestfs-actions.pod:1378
26067 #, no-wrap
26068 msgid ""
26069 " char *\n"
26070 " guestfs_df_h (guestfs_h *g);\n"
26071 "\n"
26072 msgstr ""
26073
26074 #. type: =head2
26075 #: ../src/guestfs-actions.pod:1393
26076 msgid "guestfs_dmesg"
26077 msgstr ""
26078
26079 #. type: verbatim
26080 #: ../src/guestfs-actions.pod:1395
26081 #, no-wrap
26082 msgid ""
26083 " char *\n"
26084 " guestfs_dmesg (guestfs_h *g);\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../src/guestfs-actions.pod:1402
26090 msgid ""
26091 "Another way to get the same information is to enable verbose messages with "
26092 "C<guestfs_set_verbose> or by setting the environment variable "
26093 "C<LIBGUESTFS_DEBUG=1> before running the program."
26094 msgstr ""
26095
26096 #. type: =head2
26097 #: ../src/guestfs-actions.pod:1412
26098 msgid "guestfs_download"
26099 msgstr ""
26100
26101 #. type: verbatim
26102 #: ../src/guestfs-actions.pod:1414
26103 #, no-wrap
26104 msgid ""
26105 " int\n"
26106 " guestfs_download (guestfs_h *g,\n"
26107 "                   const char *remotefilename,\n"
26108 "                   const char *filename);\n"
26109 "\n"
26110 msgstr ""
26111
26112 #. type: textblock
26113 #: ../src/guestfs-actions.pod:1424
26114 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26115 msgstr ""
26116
26117 #. type: =head2
26118 #: ../src/guestfs-actions.pod:1435
26119 msgid "guestfs_download_offset"
26120 msgstr ""
26121
26122 #. type: verbatim
26123 #: ../src/guestfs-actions.pod:1437
26124 #, no-wrap
26125 msgid ""
26126 " int\n"
26127 " guestfs_download_offset (guestfs_h *g,\n"
26128 "                          const char *remotefilename,\n"
26129 "                          const char *filename,\n"
26130 "                          int64_t offset,\n"
26131 "                          int64_t size);\n"
26132 "\n"
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:1450
26137 msgid ""
26138 "Note that there is no limit on the amount of data that can be downloaded "
26139 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26140 "full amount unless an error occurs."
26141 msgstr ""
26142
26143 #. type: textblock
26144 #: ../src/guestfs-actions.pod:1455
26145 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26146 msgstr ""
26147
26148 #. type: textblock
26149 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26150 msgid "(Added in 1.5.17)"
26151 msgstr ""
26152
26153 #. type: =head2
26154 #: ../src/guestfs-actions.pod:1466
26155 msgid "guestfs_drop_caches"
26156 msgstr ""
26157
26158 #. type: verbatim
26159 #: ../src/guestfs-actions.pod:1468
26160 #, no-wrap
26161 msgid ""
26162 " int\n"
26163 " guestfs_drop_caches (guestfs_h *g,\n"
26164 "                      int whattodrop);\n"
26165 "\n"
26166 msgstr ""
26167
26168 #. type: =head2
26169 #: ../src/guestfs-actions.pod:1486
26170 msgid "guestfs_du"
26171 msgstr ""
26172
26173 #. type: verbatim
26174 #: ../src/guestfs-actions.pod:1488
26175 #, no-wrap
26176 msgid ""
26177 " int64_t\n"
26178 " guestfs_du (guestfs_h *g,\n"
26179 "             const char *path);\n"
26180 "\n"
26181 msgstr ""
26182
26183 #. type: =head2
26184 #: ../src/guestfs-actions.pod:1511
26185 msgid "guestfs_e2fsck_f"
26186 msgstr ""
26187
26188 #. type: verbatim
26189 #: ../src/guestfs-actions.pod:1513
26190 #, no-wrap
26191 msgid ""
26192 " int\n"
26193 " guestfs_e2fsck_f (guestfs_h *g,\n"
26194 "                   const char *device);\n"
26195 "\n"
26196 msgstr ""
26197
26198 #. type: textblock
26199 #: ../src/guestfs-actions.pod:1521
26200 msgid ""
26201 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26202 "Normally you should use C<guestfs_fsck>."
26203 msgstr ""
26204
26205 #. type: textblock
26206 #: ../src/guestfs-actions.pod:1526
26207 msgid "(Added in 1.0.29)"
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../src/guestfs-actions.pod:1528
26212 msgid "guestfs_echo_daemon"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../src/guestfs-actions.pod:1530
26217 #, no-wrap
26218 msgid ""
26219 " char *\n"
26220 " guestfs_echo_daemon (guestfs_h *g,\n"
26221 "                      char *const *words);\n"
26222 "\n"
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../src/guestfs-actions.pod:1539
26227 msgid "See also C<guestfs_ping_daemon>."
26228 msgstr ""
26229
26230 #. type: textblock
26231 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26232 #: ../src/guestfs-actions.pod:6626
26233 msgid "(Added in 1.0.69)"
26234 msgstr ""
26235
26236 #. type: =head2
26237 #: ../src/guestfs-actions.pod:1546
26238 msgid "guestfs_egrep"
26239 msgstr ""
26240
26241 #. type: verbatim
26242 #: ../src/guestfs-actions.pod:1548
26243 #, no-wrap
26244 msgid ""
26245 " char **\n"
26246 " guestfs_egrep (guestfs_h *g,\n"
26247 "                const char *regex,\n"
26248 "                const char *path);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: textblock
26253 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26254 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26255 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26256 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26257 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26258 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26259 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26260 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26261 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26262 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26263 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
26264 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
26265 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
26266 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
26267 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
26268 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
26269 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
26270 msgid "(Added in 1.0.66)"
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:1565
26275 msgid "guestfs_egrepi"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:1567
26280 #, no-wrap
26281 msgid ""
26282 " char **\n"
26283 " guestfs_egrepi (guestfs_h *g,\n"
26284 "                 const char *regex,\n"
26285 "                 const char *path);\n"
26286 "\n"
26287 msgstr ""
26288
26289 #. type: =head2
26290 #: ../src/guestfs-actions.pod:1584
26291 msgid "guestfs_equal"
26292 msgstr ""
26293
26294 #. type: verbatim
26295 #: ../src/guestfs-actions.pod:1586
26296 #, no-wrap
26297 msgid ""
26298 " int\n"
26299 " guestfs_equal (guestfs_h *g,\n"
26300 "                const char *file1,\n"
26301 "                const char *file2);\n"
26302 "\n"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:1600
26307 msgid "guestfs_exists"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:1602
26312 #, no-wrap
26313 msgid ""
26314 " int\n"
26315 " guestfs_exists (guestfs_h *g,\n"
26316 "                 const char *path);\n"
26317 "\n"
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../src/guestfs-actions.pod:1609
26322 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26323 msgstr ""
26324
26325 #. type: =head2
26326 #: ../src/guestfs-actions.pod:1615
26327 msgid "guestfs_fallocate"
26328 msgstr ""
26329
26330 #. type: verbatim
26331 #: ../src/guestfs-actions.pod:1617
26332 #, no-wrap
26333 msgid ""
26334 " int\n"
26335 " guestfs_fallocate (guestfs_h *g,\n"
26336 "                    const char *path,\n"
26337 "                    int len);\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: textblock
26342 #: ../src/guestfs-actions.pod:1622
26343 msgid ""
26344 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26345 "call instead."
26346 msgstr ""
26347
26348 #. type: =head2
26349 #: ../src/guestfs-actions.pod:1641
26350 msgid "guestfs_fallocate64"
26351 msgstr ""
26352
26353 #. type: verbatim
26354 #: ../src/guestfs-actions.pod:1643
26355 #, no-wrap
26356 msgid ""
26357 " int\n"
26358 " guestfs_fallocate64 (guestfs_h *g,\n"
26359 "                      const char *path,\n"
26360 "                      int64_t len);\n"
26361 "\n"
26362 msgstr ""
26363
26364 #. type: textblock
26365 #: ../src/guestfs-actions.pod:1652
26366 msgid ""
26367 "Note that this call allocates disk blocks for the file.  To create a sparse "
26368 "file use C<guestfs_truncate_size> instead."
26369 msgstr ""
26370
26371 #. type: textblock
26372 #: ../src/guestfs-actions.pod:1655
26373 msgid ""
26374 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26375 "oversight it only allowed 30 bit lengths to be specified, effectively "
26376 "limiting the maximum size of files created through that call to 1GB."
26377 msgstr ""
26378
26379 #. type: textblock
26380 #: ../src/guestfs-actions.pod:1666
26381 msgid "(Added in 1.3.17)"
26382 msgstr ""
26383
26384 #. type: =head2
26385 #: ../src/guestfs-actions.pod:1668
26386 msgid "guestfs_fgrep"
26387 msgstr ""
26388
26389 #. type: verbatim
26390 #: ../src/guestfs-actions.pod:1670
26391 #, no-wrap
26392 msgid ""
26393 " char **\n"
26394 " guestfs_fgrep (guestfs_h *g,\n"
26395 "                const char *pattern,\n"
26396 "                const char *path);\n"
26397 "\n"
26398 msgstr ""
26399
26400 #. type: =head2
26401 #: ../src/guestfs-actions.pod:1687
26402 msgid "guestfs_fgrepi"
26403 msgstr ""
26404
26405 #. type: verbatim
26406 #: ../src/guestfs-actions.pod:1689
26407 #, no-wrap
26408 msgid ""
26409 " char **\n"
26410 " guestfs_fgrepi (guestfs_h *g,\n"
26411 "                 const char *pattern,\n"
26412 "                 const char *path);\n"
26413 "\n"
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:1706
26418 msgid "guestfs_file"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:1708
26423 #, no-wrap
26424 msgid ""
26425 " char *\n"
26426 " guestfs_file (guestfs_h *g,\n"
26427 "               const char *path);\n"
26428 "\n"
26429 msgstr ""
26430
26431 #. type: textblock
26432 #: ../src/guestfs-actions.pod:1726
26433 msgid ""
26434 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26435 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26436 msgstr ""
26437
26438 #. type: =head2
26439 #: ../src/guestfs-actions.pod:1734
26440 msgid "guestfs_file_architecture"
26441 msgstr ""
26442
26443 #. type: verbatim
26444 #: ../src/guestfs-actions.pod:1736
26445 #, no-wrap
26446 msgid ""
26447 " char *\n"
26448 " guestfs_file_architecture (guestfs_h *g,\n"
26449 "                            const char *filename);\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: textblock
26454 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
26455 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
26456 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
26457 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
26458 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
26459 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
26460 #: ../src/guestfs-actions.pod:3713
26461 msgid "(Added in 1.5.3)"
26462 msgstr ""
26463
26464 #. type: =head2
26465 #: ../src/guestfs-actions.pod:1846
26466 msgid "guestfs_filesize"
26467 msgstr ""
26468
26469 #. type: verbatim
26470 #: ../src/guestfs-actions.pod:1848
26471 #, no-wrap
26472 msgid ""
26473 " int64_t\n"
26474 " guestfs_filesize (guestfs_h *g,\n"
26475 "                   const char *file);\n"
26476 "\n"
26477 msgstr ""
26478
26479 #. type: textblock
26480 #: ../src/guestfs-actions.pod:1854
26481 msgid ""
26482 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26483 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26484 "devices, use C<guestfs_blockdev_getsize64>."
26485 msgstr ""
26486
26487 #. type: textblock
26488 #: ../src/guestfs-actions.pod:1860
26489 msgid "(Added in 1.0.82)"
26490 msgstr ""
26491
26492 #. type: =head2
26493 #: ../src/guestfs-actions.pod:1862
26494 msgid "guestfs_fill"
26495 msgstr ""
26496
26497 #. type: verbatim
26498 #: ../src/guestfs-actions.pod:1864
26499 #, no-wrap
26500 msgid ""
26501 " int\n"
26502 " guestfs_fill (guestfs_h *g,\n"
26503 "               int c,\n"
26504 "               int len,\n"
26505 "               const char *path);\n"
26506 "\n"
26507 msgstr ""
26508
26509 #. type: textblock
26510 #: ../src/guestfs-actions.pod:1874
26511 msgid ""
26512 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26513 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26514 "bytes use C<guestfs_fill_pattern>."
26515 msgstr ""
26516
26517 #. type: textblock
26518 #: ../src/guestfs-actions.pod:1886
26519 msgid "(Added in 1.0.79)"
26520 msgstr ""
26521
26522 #. type: =head2
26523 #: ../src/guestfs-actions.pod:1888
26524 msgid "guestfs_fill_pattern"
26525 msgstr ""
26526
26527 #. type: verbatim
26528 #: ../src/guestfs-actions.pod:1890
26529 #, no-wrap
26530 msgid ""
26531 " int\n"
26532 " guestfs_fill_pattern (guestfs_h *g,\n"
26533 "                       const char *pattern,\n"
26534 "                       int len,\n"
26535 "                       const char *path);\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: textblock
26540 #: ../src/guestfs-actions.pod:1896
26541 msgid ""
26542 "This function is like C<guestfs_fill> except that it creates a new file of "
26543 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26544 "pattern is truncated if necessary to ensure the length of the file is "
26545 "exactly C<len> bytes."
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../src/guestfs-actions.pod:1908
26550 msgid "(Added in 1.3.12)"
26551 msgstr ""
26552
26553 #. type: =head2
26554 #: ../src/guestfs-actions.pod:1910
26555 msgid "guestfs_find"
26556 msgstr ""
26557
26558 #. type: verbatim
26559 #: ../src/guestfs-actions.pod:1912
26560 #, no-wrap
26561 msgid ""
26562 " char **\n"
26563 " guestfs_find (guestfs_h *g,\n"
26564 "               const char *directory);\n"
26565 "\n"
26566 msgstr ""
26567
26568 #. type: textblock
26569 #: ../src/guestfs-actions.pod:1928
26570 msgid ""
26571 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26572 msgstr ""
26573
26574 #. type: textblock
26575 #: ../src/guestfs-actions.pod:1941
26576 msgid "See also C<guestfs_find0>."
26577 msgstr ""
26578
26579 #. type: textblock
26580 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
26581 #: ../src/guestfs-actions.pod:6171
26582 msgid "(Added in 1.0.27)"
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../src/guestfs-actions.pod:1952
26587 msgid "guestfs_find0"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../src/guestfs-actions.pod:1954
26592 #, no-wrap
26593 msgid ""
26594 " int\n"
26595 " guestfs_find0 (guestfs_h *g,\n"
26596 "                const char *directory,\n"
26597 "                const char *files);\n"
26598 "\n"
26599 msgstr ""
26600
26601 #. type: textblock
26602 #: ../src/guestfs-actions.pod:1963
26603 msgid ""
26604 "This command works the same way as C<guestfs_find> with the following "
26605 "exceptions:"
26606 msgstr ""
26607
26608 #. type: textblock
26609 #: ../src/guestfs-actions.pod:1990
26610 msgid "(Added in 1.0.74)"
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:1992
26615 msgid "guestfs_findfs_label"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:1994
26620 #, no-wrap
26621 msgid ""
26622 " char *\n"
26623 " guestfs_findfs_label (guestfs_h *g,\n"
26624 "                       const char *label);\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../src/guestfs-actions.pod:2002
26630 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../src/guestfs-actions.pod:2009
26635 msgid "guestfs_findfs_uuid"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../src/guestfs-actions.pod:2011
26640 #, no-wrap
26641 msgid ""
26642 " char *\n"
26643 " guestfs_findfs_uuid (guestfs_h *g,\n"
26644 "                      const char *uuid);\n"
26645 "\n"
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../src/guestfs-actions.pod:2019
26650 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26651 msgstr ""
26652
26653 #. type: =head2
26654 #: ../src/guestfs-actions.pod:2026
26655 msgid "guestfs_fsck"
26656 msgstr ""
26657
26658 #. type: verbatim
26659 #: ../src/guestfs-actions.pod:2028
26660 #, no-wrap
26661 msgid ""
26662 " int\n"
26663 " guestfs_fsck (guestfs_h *g,\n"
26664 "               const char *fstype,\n"
26665 "               const char *device);\n"
26666 "\n"
26667 msgstr ""
26668
26669 #. type: textblock
26670 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
26671 msgid "(Added in 1.0.16)"
26672 msgstr ""
26673
26674 #. type: =head2
26675 #: ../src/guestfs-actions.pod:2065
26676 msgid "guestfs_get_append"
26677 msgstr ""
26678
26679 #. type: verbatim
26680 #: ../src/guestfs-actions.pod:2067
26681 #, no-wrap
26682 msgid ""
26683 " const char *\n"
26684 " guestfs_get_append (guestfs_h *g);\n"
26685 "\n"
26686 msgstr ""
26687
26688 #. type: textblock
26689 #: ../src/guestfs-actions.pod:2075
26690 msgid ""
26691 "This function returns a string which may be NULL.  There is no way to return "
26692 "an error from this function.  The string is owned by the guest handle and "
26693 "must I<not> be freed."
26694 msgstr ""
26695
26696 #. type: textblock
26697 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
26698 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
26699 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
26700 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
26701 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
26702 msgid "(Added in 1.0.26)"
26703 msgstr ""
26704
26705 #. type: =head2
26706 #: ../src/guestfs-actions.pod:2081
26707 msgid "guestfs_get_attach_method"
26708 msgstr ""
26709
26710 #. type: verbatim
26711 #: ../src/guestfs-actions.pod:2083
26712 #, no-wrap
26713 msgid ""
26714 " char *\n"
26715 " guestfs_get_attach_method (guestfs_h *g);\n"
26716 "\n"
26717 msgstr ""
26718
26719 #. type: textblock
26720 #: ../src/guestfs-actions.pod:2086
26721 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26722 msgstr ""
26723
26724 #. type: textblock
26725 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
26726 msgid "(Added in 1.9.8)"
26727 msgstr ""
26728
26729 #. type: =head2
26730 #: ../src/guestfs-actions.pod:2093
26731 msgid "guestfs_get_autosync"
26732 msgstr ""
26733
26734 #. type: verbatim
26735 #: ../src/guestfs-actions.pod:2095
26736 #, no-wrap
26737 msgid ""
26738 " int\n"
26739 " guestfs_get_autosync (guestfs_h *g);\n"
26740 "\n"
26741 msgstr ""
26742
26743 #. type: =head2
26744 #: ../src/guestfs-actions.pod:2104
26745 msgid "guestfs_get_direct"
26746 msgstr ""
26747
26748 #. type: verbatim
26749 #: ../src/guestfs-actions.pod:2106
26750 #, no-wrap
26751 msgid ""
26752 " int\n"
26753 " guestfs_get_direct (guestfs_h *g);\n"
26754 "\n"
26755 msgstr ""
26756
26757 #. type: textblock
26758 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
26759 msgid "(Added in 1.0.72)"
26760 msgstr ""
26761
26762 #. type: =head2
26763 #: ../src/guestfs-actions.pod:2115
26764 msgid "guestfs_get_e2label"
26765 msgstr ""
26766
26767 #. type: verbatim
26768 #: ../src/guestfs-actions.pod:2117
26769 #, no-wrap
26770 msgid ""
26771 " char *\n"
26772 " guestfs_get_e2label (guestfs_h *g,\n"
26773 "                      const char *device);\n"
26774 "\n"
26775 msgstr ""
26776
26777 #. type: textblock
26778 #: ../src/guestfs-actions.pod:2121
26779 msgid ""
26780 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26781 "call instead."
26782 msgstr ""
26783
26784 #. type: textblock
26785 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
26786 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
26787 msgid "(Added in 1.0.15)"
26788 msgstr ""
26789
26790 #. type: =head2
26791 #: ../src/guestfs-actions.pod:2136
26792 msgid "guestfs_get_e2uuid"
26793 msgstr ""
26794
26795 #. type: verbatim
26796 #: ../src/guestfs-actions.pod:2138
26797 #, no-wrap
26798 msgid ""
26799 " char *\n"
26800 " guestfs_get_e2uuid (guestfs_h *g,\n"
26801 "                     const char *device);\n"
26802 "\n"
26803 msgstr ""
26804
26805 #. type: textblock
26806 #: ../src/guestfs-actions.pod:2142
26807 msgid ""
26808 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26809 "call instead."
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../src/guestfs-actions.pod:2157
26814 msgid "guestfs_get_memsize"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../src/guestfs-actions.pod:2159
26819 #, no-wrap
26820 msgid ""
26821 " int\n"
26822 " guestfs_get_memsize (guestfs_h *g);\n"
26823 "\n"
26824 msgstr ""
26825
26826 #. type: textblock
26827 #: ../src/guestfs-actions.pod:2165
26828 msgid ""
26829 "If C<guestfs_set_memsize> was not called on this handle, and if "
26830 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26831 "value for memsize."
26832 msgstr ""
26833
26834 #. type: textblock
26835 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
26836 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
26837 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
26838 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
26839 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
26840 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
26841 msgid "(Added in 1.0.55)"
26842 msgstr ""
26843
26844 #. type: =head2
26845 #: ../src/guestfs-actions.pod:2176
26846 msgid "guestfs_get_network"
26847 msgstr ""
26848
26849 #. type: verbatim
26850 #: ../src/guestfs-actions.pod:2178
26851 #, no-wrap
26852 msgid ""
26853 " int\n"
26854 " guestfs_get_network (guestfs_h *g);\n"
26855 "\n"
26856 msgstr ""
26857
26858 #. type: textblock
26859 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
26860 msgid "(Added in 1.5.4)"
26861 msgstr ""
26862
26863 #. type: =head2
26864 #: ../src/guestfs-actions.pod:2187
26865 msgid "guestfs_get_path"
26866 msgstr ""
26867
26868 #. type: verbatim
26869 #: ../src/guestfs-actions.pod:2189
26870 #, no-wrap
26871 msgid ""
26872 " const char *\n"
26873 " guestfs_get_path (guestfs_h *g);\n"
26874 "\n"
26875 msgstr ""
26876
26877 #. type: textblock
26878 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
26879 msgid ""
26880 "This function returns a string, or NULL on error.  The string is owned by "
26881 "the guest handle and must I<not> be freed."
26882 msgstr ""
26883
26884 #. type: =head2
26885 #: ../src/guestfs-actions.pod:2202
26886 msgid "guestfs_get_pgroup"
26887 msgstr ""
26888
26889 #. type: verbatim
26890 #: ../src/guestfs-actions.pod:2204
26891 #, no-wrap
26892 msgid ""
26893 " int\n"
26894 " guestfs_get_pgroup (guestfs_h *g);\n"
26895 "\n"
26896 msgstr ""
26897
26898 #. type: textblock
26899 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
26900 #: ../src/guestfs-actions.pod:7863
26901 msgid "(Added in 1.11.18)"
26902 msgstr ""
26903
26904 #. type: =head2
26905 #: ../src/guestfs-actions.pod:2213
26906 msgid "guestfs_get_pid"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:2215
26911 #, no-wrap
26912 msgid ""
26913 " int\n"
26914 " guestfs_get_pid (guestfs_h *g);\n"
26915 "\n"
26916 msgstr ""
26917
26918 #. type: textblock
26919 #: ../src/guestfs-actions.pod:2225
26920 msgid "(Added in 1.0.56)"
26921 msgstr ""
26922
26923 #. type: =head2
26924 #: ../src/guestfs-actions.pod:2227
26925 msgid "guestfs_get_qemu"
26926 msgstr ""
26927
26928 #. type: verbatim
26929 #: ../src/guestfs-actions.pod:2229
26930 #, no-wrap
26931 msgid ""
26932 " const char *\n"
26933 " guestfs_get_qemu (guestfs_h *g);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: textblock
26938 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
26939 msgid "(Added in 1.0.6)"
26940 msgstr ""
26941
26942 #. type: =head2
26943 #: ../src/guestfs-actions.pod:2242
26944 msgid "guestfs_get_recovery_proc"
26945 msgstr ""
26946
26947 #. type: verbatim
26948 #: ../src/guestfs-actions.pod:2244
26949 #, no-wrap
26950 msgid ""
26951 " int\n"
26952 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26953 "\n"
26954 msgstr ""
26955
26956 #. type: textblock
26957 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
26958 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
26959 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
26960 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
26961 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
26962 #: ../src/guestfs-actions.pod:7486
26963 msgid "(Added in 1.0.77)"
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:2253
26968 msgid "guestfs_get_selinux"
26969 msgstr ""
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:2255
26973 #, no-wrap
26974 msgid ""
26975 " int\n"
26976 " guestfs_get_selinux (guestfs_h *g);\n"
26977 "\n"
26978 msgstr ""
26979
26980 #. type: textblock
26981 #: ../src/guestfs-actions.pod:2258
26982 msgid ""
26983 "This returns the current setting of the selinux flag which is passed to the "
26984 "appliance at boot time.  See C<guestfs_set_selinux>."
26985 msgstr ""
26986
26987 #. type: textblock
26988 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
26989 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
26990 msgid "(Added in 1.0.67)"
26991 msgstr ""
26992
26993 #. type: =head2
26994 #: ../src/guestfs-actions.pod:2268
26995 msgid "guestfs_get_smp"
26996 msgstr ""
26997
26998 #. type: verbatim
26999 #: ../src/guestfs-actions.pod:2270
27000 #, no-wrap
27001 msgid ""
27002 " int\n"
27003 " guestfs_get_smp (guestfs_h *g);\n"
27004 "\n"
27005 msgstr ""
27006
27007 #. type: =head2
27008 #: ../src/guestfs-actions.pod:2279
27009 msgid "guestfs_get_state"
27010 msgstr ""
27011
27012 #. type: verbatim
27013 #: ../src/guestfs-actions.pod:2281
27014 #, no-wrap
27015 msgid ""
27016 " int\n"
27017 " guestfs_get_state (guestfs_h *g);\n"
27018 "\n"
27019 msgstr ""
27020
27021 #. type: =head2
27022 #: ../src/guestfs-actions.pod:2293
27023 msgid "guestfs_get_trace"
27024 msgstr ""
27025
27026 #. type: verbatim
27027 #: ../src/guestfs-actions.pod:2295
27028 #, no-wrap
27029 msgid ""
27030 " int\n"
27031 " guestfs_get_trace (guestfs_h *g);\n"
27032 "\n"
27033 msgstr ""
27034
27035 #. type: =head2
27036 #: ../src/guestfs-actions.pod:2304
27037 msgid "guestfs_get_umask"
27038 msgstr ""
27039
27040 #. type: verbatim
27041 #: ../src/guestfs-actions.pod:2306
27042 #, no-wrap
27043 msgid ""
27044 " int\n"
27045 " guestfs_get_umask (guestfs_h *g);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../src/guestfs-actions.pod:2309
27051 msgid ""
27052 "Return the current umask.  By default the umask is C<022> unless it has been "
27053 "set by calling C<guestfs_umask>."
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../src/guestfs-actions.pod:2316
27058 msgid "guestfs_get_verbose"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../src/guestfs-actions.pod:2318
27063 #, no-wrap
27064 msgid ""
27065 " int\n"
27066 " guestfs_get_verbose (guestfs_h *g);\n"
27067 "\n"
27068 msgstr ""
27069
27070 #. type: =head2
27071 #: ../src/guestfs-actions.pod:2327
27072 msgid "guestfs_getcon"
27073 msgstr ""
27074
27075 #. type: verbatim
27076 #: ../src/guestfs-actions.pod:2329
27077 #, no-wrap
27078 msgid ""
27079 " char *\n"
27080 " guestfs_getcon (guestfs_h *g);\n"
27081 "\n"
27082 msgstr ""
27083
27084 #. type: textblock
27085 #: ../src/guestfs-actions.pod:2334
27086 msgid ""
27087 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27088 msgstr ""
27089
27090 #. type: =head2
27091 #: ../src/guestfs-actions.pod:2342
27092 msgid "guestfs_getxattr"
27093 msgstr ""
27094
27095 #. type: verbatim
27096 #: ../src/guestfs-actions.pod:2344
27097 #, no-wrap
27098 msgid ""
27099 " char *\n"
27100 " guestfs_getxattr (guestfs_h *g,\n"
27101 "                   const char *path,\n"
27102 "                   const char *name,\n"
27103 "                   size_t *size_r);\n"
27104 "\n"
27105 msgstr ""
27106
27107 #. type: textblock
27108 #: ../src/guestfs-actions.pod:2350
27109 msgid ""
27110 "Get a single extended attribute from file C<path> named C<name>.  This call "
27111 "follows symlinks.  If you want to lookup an extended attribute for the "
27112 "symlink itself, use C<guestfs_lgetxattr>."
27113 msgstr ""
27114
27115 #. type: textblock
27116 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27117 msgid ""
27118 "Normally it is better to get all extended attributes from a file in one go "
27119 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27120 "implementations are buggy and do not provide a way to list out attributes.  "
27121 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27122 "extended attributes you want in advance and call this function."
27123 msgstr ""
27124
27125 #. type: textblock
27126 #: ../src/guestfs-actions.pod:2364
27127 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27128 msgstr ""
27129
27130 #. type: textblock
27131 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27132 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27133 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27134 #: ../src/guestfs-actions.pod:5979
27135 msgid ""
27136 "This function returns a buffer, or NULL on error.  The size of the returned "
27137 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27138 "after use>."
27139 msgstr ""
27140
27141 #. type: textblock
27142 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27143 msgid "(Added in 1.7.24)"
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../src/guestfs-actions.pod:2372
27148 msgid "guestfs_getxattrs"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../src/guestfs-actions.pod:2374
27153 #, no-wrap
27154 msgid ""
27155 " struct guestfs_xattr_list *\n"
27156 " guestfs_getxattrs (guestfs_h *g,\n"
27157 "                    const char *path);\n"
27158 "\n"
27159 msgstr ""
27160
27161 #. type: textblock
27162 #: ../src/guestfs-actions.pod:2384
27163 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27164 msgstr ""
27165
27166 #. type: textblock
27167 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27168 #: ../src/guestfs-actions.pod:4565
27169 msgid ""
27170 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27171 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27172 msgstr ""
27173
27174 #. type: textblock
27175 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27176 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27177 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27178 #: ../src/guestfs-actions.pod:8074
27179 msgid "(Added in 1.0.59)"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:2392
27184 msgid "guestfs_glob_expand"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:2394
27189 #, no-wrap
27190 msgid ""
27191 " char **\n"
27192 " guestfs_glob_expand (guestfs_h *g,\n"
27193 "                      const char *pattern);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27199 #: ../src/guestfs-actions.pod:6889
27200 msgid "(Added in 1.0.50)"
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:2415
27205 msgid "guestfs_grep"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:2417
27210 #, no-wrap
27211 msgid ""
27212 " char **\n"
27213 " guestfs_grep (guestfs_h *g,\n"
27214 "               const char *regex,\n"
27215 "               const char *path);\n"
27216 "\n"
27217 msgstr ""
27218
27219 #. type: =head2
27220 #: ../src/guestfs-actions.pod:2434
27221 msgid "guestfs_grepi"
27222 msgstr ""
27223
27224 #. type: verbatim
27225 #: ../src/guestfs-actions.pod:2436
27226 #, no-wrap
27227 msgid ""
27228 " char **\n"
27229 " guestfs_grepi (guestfs_h *g,\n"
27230 "                const char *regex,\n"
27231 "                const char *path);\n"
27232 "\n"
27233 msgstr ""
27234
27235 #. type: =head2
27236 #: ../src/guestfs-actions.pod:2453
27237 msgid "guestfs_grub_install"
27238 msgstr ""
27239
27240 #. type: verbatim
27241 #: ../src/guestfs-actions.pod:2455
27242 #, no-wrap
27243 msgid ""
27244 " int\n"
27245 " guestfs_grub_install (guestfs_h *g,\n"
27246 "                       const char *root,\n"
27247 "                       const char *device);\n"
27248 "\n"
27249 msgstr ""
27250
27251 #. type: textblock
27252 #: ../src/guestfs-actions.pod:2498
27253 msgid "(Added in 1.0.17)"
27254 msgstr ""
27255
27256 #. type: =head2
27257 #: ../src/guestfs-actions.pod:2500
27258 msgid "guestfs_head"
27259 msgstr ""
27260
27261 #. type: verbatim
27262 #: ../src/guestfs-actions.pod:2502
27263 #, no-wrap
27264 msgid ""
27265 " char **\n"
27266 " guestfs_head (guestfs_h *g,\n"
27267 "               const char *path);\n"
27268 "\n"
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../src/guestfs-actions.pod:2518
27273 msgid "guestfs_head_n"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../src/guestfs-actions.pod:2520
27278 #, no-wrap
27279 msgid ""
27280 " char **\n"
27281 " guestfs_head_n (guestfs_h *g,\n"
27282 "                 int nrlines,\n"
27283 "                 const char *path);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: =head2
27288 #: ../src/guestfs-actions.pod:2542
27289 msgid "guestfs_hexdump"
27290 msgstr ""
27291
27292 #. type: verbatim
27293 #: ../src/guestfs-actions.pod:2544
27294 #, no-wrap
27295 msgid ""
27296 " char *\n"
27297 " guestfs_hexdump (guestfs_h *g,\n"
27298 "                  const char *path);\n"
27299 "\n"
27300 msgstr ""
27301
27302 #. type: textblock
27303 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
27304 #: ../src/guestfs-actions.pod:7008
27305 msgid "(Added in 1.0.22)"
27306 msgstr ""
27307
27308 #. type: =head2
27309 #: ../src/guestfs-actions.pod:2559
27310 msgid "guestfs_initrd_cat"
27311 msgstr ""
27312
27313 #. type: verbatim
27314 #: ../src/guestfs-actions.pod:2561
27315 #, no-wrap
27316 msgid ""
27317 " char *\n"
27318 " guestfs_initrd_cat (guestfs_h *g,\n"
27319 "                     const char *initrdpath,\n"
27320 "                     const char *filename,\n"
27321 "                     size_t *size_r);\n"
27322 "\n"
27323 msgstr ""
27324
27325 #. type: textblock
27326 #: ../src/guestfs-actions.pod:2577
27327 msgid "See also C<guestfs_initrd_list>."
27328 msgstr ""
27329
27330 #. type: =head2
27331 #: ../src/guestfs-actions.pod:2588
27332 msgid "guestfs_initrd_list"
27333 msgstr ""
27334
27335 #. type: verbatim
27336 #: ../src/guestfs-actions.pod:2590
27337 #, no-wrap
27338 msgid ""
27339 " char **\n"
27340 " guestfs_initrd_list (guestfs_h *g,\n"
27341 "                      const char *path);\n"
27342 "\n"
27343 msgstr ""
27344
27345 #. type: =head2
27346 #: ../src/guestfs-actions.pod:2610
27347 msgid "guestfs_inotify_add_watch"
27348 msgstr ""
27349
27350 #. type: verbatim
27351 #: ../src/guestfs-actions.pod:2612
27352 #, no-wrap
27353 msgid ""
27354 " int64_t\n"
27355 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27356 "                            const char *path,\n"
27357 "                            int mask);\n"
27358 "\n"
27359 msgstr ""
27360
27361 #. type: =head2
27362 #: ../src/guestfs-actions.pod:2631
27363 msgid "guestfs_inotify_close"
27364 msgstr ""
27365
27366 #. type: verbatim
27367 #: ../src/guestfs-actions.pod:2633
27368 #, no-wrap
27369 msgid ""
27370 " int\n"
27371 " guestfs_inotify_close (guestfs_h *g);\n"
27372 "\n"
27373 msgstr ""
27374
27375 #. type: =head2
27376 #: ../src/guestfs-actions.pod:2644
27377 msgid "guestfs_inotify_files"
27378 msgstr ""
27379
27380 #. type: verbatim
27381 #: ../src/guestfs-actions.pod:2646
27382 #, no-wrap
27383 msgid ""
27384 " char **\n"
27385 " guestfs_inotify_files (guestfs_h *g);\n"
27386 "\n"
27387 msgstr ""
27388
27389 #. type: textblock
27390 #: ../src/guestfs-actions.pod:2649
27391 msgid ""
27392 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27393 "returns a list of pathnames of objects that were touched.  The returned "
27394 "pathnames are sorted and deduplicated."
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../src/guestfs-actions.pod:2659
27399 msgid "guestfs_inotify_init"
27400 msgstr ""
27401
27402 #. type: verbatim
27403 #: ../src/guestfs-actions.pod:2661
27404 #, no-wrap
27405 msgid ""
27406 " int\n"
27407 " guestfs_inotify_init (guestfs_h *g,\n"
27408 "                       int maxevents);\n"
27409 "\n"
27410 msgstr ""
27411
27412 #. type: textblock
27413 #: ../src/guestfs-actions.pod:2669
27414 msgid ""
27415 "C<maxevents> is the maximum number of events which will be queued up between "
27416 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27417 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27418 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27419 "throws away events, but records the fact that it threw them away by setting "
27420 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27421 "C<guestfs_inotify_read>)."
27422 msgstr ""
27423
27424 #. type: textblock
27425 #: ../src/guestfs-actions.pod:2679
27426 msgid ""
27427 "Before any events are generated, you have to add some watches to the "
27428 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27429 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../src/guestfs-actions.pod:2685
27434 msgid ""
27435 "Queued up events should be read periodically by calling "
27436 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27437 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27438 "often enough then you risk the internal queue overflowing."
27439 msgstr ""
27440
27441 #. type: textblock
27442 #: ../src/guestfs-actions.pod:2692
27443 msgid ""
27444 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27445 "This also removes any watches automatically."
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:2705
27450 msgid "guestfs_inotify_read"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../src/guestfs-actions.pod:2707
27455 #, no-wrap
27456 msgid ""
27457 " struct guestfs_inotify_event_list *\n"
27458 " guestfs_inotify_read (guestfs_h *g);\n"
27459 "\n"
27460 msgstr ""
27461
27462 #. type: textblock
27463 #: ../src/guestfs-actions.pod:2721
27464 msgid ""
27465 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27466 "there was an error.  I<The caller must call "
27467 "C<guestfs_free_inotify_event_list> after use>."
27468 msgstr ""
27469
27470 #. type: =head2
27471 #: ../src/guestfs-actions.pod:2727
27472 msgid "guestfs_inotify_rm_watch"
27473 msgstr ""
27474
27475 #. type: verbatim
27476 #: ../src/guestfs-actions.pod:2729
27477 #, no-wrap
27478 msgid ""
27479 " int\n"
27480 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27481 "                           int wd);\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: textblock
27486 #: ../src/guestfs-actions.pod:2733
27487 msgid ""
27488 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
27489 msgstr ""
27490
27491 #. type: =head2
27492 #: ../src/guestfs-actions.pod:2740
27493 msgid "guestfs_inspect_get_arch"
27494 msgstr ""
27495
27496 #. type: verbatim
27497 #: ../src/guestfs-actions.pod:2742
27498 #, no-wrap
27499 msgid ""
27500 " char *\n"
27501 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27502 "                           const char *root);\n"
27503 "\n"
27504 msgstr ""
27505
27506 #. type: textblock
27507 #: ../src/guestfs-actions.pod:2746
27508 msgid ""
27509 "This returns the architecture of the inspected operating system.  The "
27510 "possible return values are listed under C<guestfs_file_architecture>."
27511 msgstr ""
27512
27513 #. type: =head2
27514 #: ../src/guestfs-actions.pod:2760
27515 msgid "guestfs_inspect_get_distro"
27516 msgstr ""
27517
27518 #. type: verbatim
27519 #: ../src/guestfs-actions.pod:2762
27520 #, no-wrap
27521 msgid ""
27522 " char *\n"
27523 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27524 "                             const char *root);\n"
27525 "\n"
27526 msgstr ""
27527
27528 #. type: =head2
27529 #: ../src/guestfs-actions.pod:2862
27530 msgid "guestfs_inspect_get_drive_mappings"
27531 msgstr ""
27532
27533 #. type: verbatim
27534 #: ../src/guestfs-actions.pod:2864
27535 #, no-wrap
27536 msgid ""
27537 " char **\n"
27538 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27539 "                                     const char *root);\n"
27540 "\n"
27541 msgstr ""
27542
27543 #. type: textblock
27544 #: ../src/guestfs-actions.pod:2893
27545 msgid ""
27546 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27547 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27548 msgstr ""
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
27552 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
27553 #: ../src/guestfs-actions.pod:7310
27554 msgid ""
27555 "This function returns a NULL-terminated array of strings, or NULL if there "
27556 "was an error.  The array of strings will always have length C<2n+1>, where "
27557 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27558 "caller must free the strings and the array after use>."
27559 msgstr ""
27560
27561 #. type: textblock
27562 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
27563 msgid "(Added in 1.9.17)"
27564 msgstr ""
27565
27566 #. type: =head2
27567 #: ../src/guestfs-actions.pod:2905
27568 msgid "guestfs_inspect_get_filesystems"
27569 msgstr ""
27570
27571 #. type: verbatim
27572 #: ../src/guestfs-actions.pod:2907
27573 #, no-wrap
27574 msgid ""
27575 " char **\n"
27576 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27577 "                                  const char *root);\n"
27578 "\n"
27579 msgstr ""
27580
27581 #. type: textblock
27582 #: ../src/guestfs-actions.pod:2919
27583 msgid ""
27584 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27585 "C<guestfs_inspect_get_mountpoints>."
27586 msgstr ""
27587
27588 #. type: =head2
27589 #: ../src/guestfs-actions.pod:2928
27590 msgid "guestfs_inspect_get_format"
27591 msgstr ""
27592
27593 #. type: verbatim
27594 #: ../src/guestfs-actions.pod:2930
27595 #, no-wrap
27596 msgid ""
27597 " char *\n"
27598 " guestfs_inspect_get_format (guestfs_h *g,\n"
27599 "                             const char *root);\n"
27600 "\n"
27601 msgstr ""
27602
27603 #. type: textblock
27604 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
27605 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
27606 #: ../src/guestfs-actions.pod:6190
27607 msgid "(Added in 1.9.4)"
27608 msgstr ""
27609
27610 #. type: =head2
27611 #: ../src/guestfs-actions.pod:2966
27612 msgid "guestfs_inspect_get_hostname"
27613 msgstr ""
27614
27615 #. type: verbatim
27616 #: ../src/guestfs-actions.pod:2968
27617 #, no-wrap
27618 msgid ""
27619 " char *\n"
27620 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27621 "                               const char *root);\n"
27622 "\n"
27623 msgstr ""
27624
27625 #. type: textblock
27626 #: ../src/guestfs-actions.pod:2983
27627 msgid "(Added in 1.7.9)"
27628 msgstr ""
27629
27630 #. type: =head2
27631 #: ../src/guestfs-actions.pod:2985
27632 msgid "guestfs_inspect_get_icon"
27633 msgstr ""
27634
27635 #. type: verbatim
27636 #: ../src/guestfs-actions.pod:2987
27637 #, no-wrap
27638 msgid ""
27639 " char *\n"
27640 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27641 "                           const char *root,\n"
27642 "                           size_t *size_r,\n"
27643 "                           ...);\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: verbatim
27648 #: ../src/guestfs-actions.pod:2998
27649 #, no-wrap
27650 msgid ""
27651 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27652 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: textblock
27657 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
27658 #: ../src/guestfs-actions.pod:5139
27659 msgid "(Added in 1.11.12)"
27660 msgstr ""
27661
27662 #. type: =head2
27663 #: ../src/guestfs-actions.pod:3067
27664 msgid "guestfs_inspect_get_icon_va"
27665 msgstr ""
27666
27667 #. type: verbatim
27668 #: ../src/guestfs-actions.pod:3069
27669 #, no-wrap
27670 msgid ""
27671 " char *\n"
27672 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27673 "                              const char *root,\n"
27674 "                              size_t *size_r,\n"
27675 "                              va_list args);\n"
27676 "\n"
27677 msgstr ""
27678
27679 #. type: textblock
27680 #: ../src/guestfs-actions.pod:3075
27681 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27682 msgstr ""
27683
27684 #. type: =head2
27685 #: ../src/guestfs-actions.pod:3079
27686 msgid "guestfs_inspect_get_icon_argv"
27687 msgstr ""
27688
27689 #. type: verbatim
27690 #: ../src/guestfs-actions.pod:3081
27691 #, no-wrap
27692 msgid ""
27693 " char *\n"
27694 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27695 "                                const char *root,\n"
27696 "                                size_t *size_r,\n"
27697 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27698 "\n"
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../src/guestfs-actions.pod:3087
27703 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27704 msgstr ""
27705
27706 #. type: =head2
27707 #: ../src/guestfs-actions.pod:3091
27708 msgid "guestfs_inspect_get_major_version"
27709 msgstr ""
27710
27711 #. type: verbatim
27712 #: ../src/guestfs-actions.pod:3093
27713 #, no-wrap
27714 msgid ""
27715 " int\n"
27716 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27717 "                                    const char *root);\n"
27718 "\n"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:3115
27723 msgid "guestfs_inspect_get_minor_version"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:3117
27728 #, no-wrap
27729 msgid ""
27730 " int\n"
27731 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27732 "                                    const char *root);\n"
27733 "\n"
27734 msgstr ""
27735
27736 #. type: textblock
27737 #: ../src/guestfs-actions.pod:3126
27738 msgid ""
27739 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27740 "C<guestfs_inspect_get_major_version>."
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:3133
27745 msgid "guestfs_inspect_get_mountpoints"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:3135
27750 #, no-wrap
27751 msgid ""
27752 " char **\n"
27753 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27754 "                                  const char *root);\n"
27755 "\n"
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:3156
27760 msgid ""
27761 "For operating systems like Windows which still use drive letters, this call "
27762 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27763 "information about the mapping of drive letters to partitions, see "
27764 "C<guestfs_inspect_get_drive_mappings>."
27765 msgstr ""
27766
27767 #. type: textblock
27768 #: ../src/guestfs-actions.pod:3162
27769 msgid ""
27770 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27771 "C<guestfs_inspect_get_filesystems>."
27772 msgstr ""
27773
27774 #. type: =head2
27775 #: ../src/guestfs-actions.pod:3173
27776 msgid "guestfs_inspect_get_package_format"
27777 msgstr ""
27778
27779 #. type: verbatim
27780 #: ../src/guestfs-actions.pod:3175
27781 #, no-wrap
27782 msgid ""
27783 " char *\n"
27784 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27785 "                                     const char *root);\n"
27786 "\n"
27787 msgstr ""
27788
27789 #. type: textblock
27790 #: ../src/guestfs-actions.pod:3179
27791 msgid ""
27792 "This function and C<guestfs_inspect_get_package_management> return the "
27793 "package format and package management tool used by the inspected operating "
27794 "system.  For example for Fedora these functions would return C<rpm> (package "
27795 "format) and C<yum> (package management)."
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
27800 msgid "(Added in 1.7.5)"
27801 msgstr ""
27802
27803 #. type: =head2
27804 #: ../src/guestfs-actions.pod:3200
27805 msgid "guestfs_inspect_get_package_management"
27806 msgstr ""
27807
27808 #. type: verbatim
27809 #: ../src/guestfs-actions.pod:3202
27810 #, no-wrap
27811 msgid ""
27812 " char *\n"
27813 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27814 "                                         const char *root);\n"
27815 "\n"
27816 msgstr ""
27817
27818 #. type: textblock
27819 #: ../src/guestfs-actions.pod:3206
27820 msgid ""
27821 "C<guestfs_inspect_get_package_format> and this function return the package "
27822 "format and package management tool used by the inspected operating system.  "
27823 "For example for Fedora these functions would return C<rpm> (package format) "
27824 "and C<yum> (package management)."
27825 msgstr ""
27826
27827 #. type: =head2
27828 #: ../src/guestfs-actions.pod:3228
27829 msgid "guestfs_inspect_get_product_name"
27830 msgstr ""
27831
27832 #. type: verbatim
27833 #: ../src/guestfs-actions.pod:3230
27834 #, no-wrap
27835 msgid ""
27836 " char *\n"
27837 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27838 "                                   const char *root);\n"
27839 "\n"
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:3249
27844 msgid "guestfs_inspect_get_product_variant"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:3251
27849 #, no-wrap
27850 msgid ""
27851 " char *\n"
27852 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27853 "                                      const char *root);\n"
27854 "\n"
27855 msgstr ""
27856
27857 #. type: textblock
27858 #: ../src/guestfs-actions.pod:3274
27859 msgid ""
27860 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27861 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27862 msgstr ""
27863
27864 #. type: textblock
27865 #: ../src/guestfs-actions.pod:3281
27866 msgid "(Added in 1.9.13)"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../src/guestfs-actions.pod:3283
27871 msgid "guestfs_inspect_get_roots"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../src/guestfs-actions.pod:3285
27876 #, no-wrap
27877 msgid ""
27878 " char **\n"
27879 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27880 "\n"
27881 msgstr ""
27882
27883 #. type: textblock
27884 #: ../src/guestfs-actions.pod:3288
27885 msgid ""
27886 "This function is a convenient way to get the list of root devices, as "
27887 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27888 "the whole inspection process."
27889 msgstr ""
27890
27891 #. type: textblock
27892 #: ../src/guestfs-actions.pod:3292
27893 msgid ""
27894 "This returns an empty list if either no root devices were found or the "
27895 "caller has not called C<guestfs_inspect_os>."
27896 msgstr ""
27897
27898 #. type: textblock
27899 #: ../src/guestfs-actions.pod:3301
27900 msgid "(Added in 1.7.3)"
27901 msgstr ""
27902
27903 #. type: =head2
27904 #: ../src/guestfs-actions.pod:3303
27905 msgid "guestfs_inspect_get_type"
27906 msgstr ""
27907
27908 #. type: verbatim
27909 #: ../src/guestfs-actions.pod:3305
27910 #, no-wrap
27911 msgid ""
27912 " char *\n"
27913 " guestfs_inspect_get_type (guestfs_h *g,\n"
27914 "                           const char *root);\n"
27915 "\n"
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:3346
27920 msgid "guestfs_inspect_get_windows_current_control_set"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:3348
27925 #, no-wrap
27926 msgid ""
27927 " char *\n"
27928 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27929 "                                                  const char *root);\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: =head2
27934 #: ../src/guestfs-actions.pod:3366
27935 msgid "guestfs_inspect_get_windows_systemroot"
27936 msgstr ""
27937
27938 #. type: verbatim
27939 #: ../src/guestfs-actions.pod:3368
27940 #, no-wrap
27941 msgid ""
27942 " char *\n"
27943 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27944 "                                         const char *root);\n"
27945 "\n"
27946 msgstr ""
27947
27948 #. type: textblock
27949 #: ../src/guestfs-actions.pod:3384
27950 msgid "(Added in 1.5.25)"
27951 msgstr ""
27952
27953 #. type: =head2
27954 #: ../src/guestfs-actions.pod:3386
27955 msgid "guestfs_inspect_is_live"
27956 msgstr ""
27957
27958 #. type: verbatim
27959 #: ../src/guestfs-actions.pod:3388
27960 #, no-wrap
27961 msgid ""
27962 " int\n"
27963 " guestfs_inspect_is_live (guestfs_h *g,\n"
27964 "                          const char *root);\n"
27965 "\n"
27966 msgstr ""
27967
27968 #. type: textblock
27969 #: ../src/guestfs-actions.pod:3392
27970 msgid ""
27971 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27972 "disk), then this returns true if a live image was detected on the disk."
27973 msgstr ""
27974
27975 #. type: =head2
27976 #: ../src/guestfs-actions.pod:3402
27977 msgid "guestfs_inspect_is_multipart"
27978 msgstr ""
27979
27980 #. type: verbatim
27981 #: ../src/guestfs-actions.pod:3404
27982 #, no-wrap
27983 msgid ""
27984 " int\n"
27985 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27986 "                               const char *root);\n"
27987 "\n"
27988 msgstr ""
27989
27990 #. type: textblock
27991 #: ../src/guestfs-actions.pod:3408
27992 msgid ""
27993 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27994 "disk), then this returns true if the disk is part of a set."
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:3418
27999 msgid "guestfs_inspect_is_netinst"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:3420
28004 #, no-wrap
28005 msgid ""
28006 " int\n"
28007 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28008 "                             const char *root);\n"
28009 "\n"
28010 msgstr ""
28011
28012 #. type: textblock
28013 #: ../src/guestfs-actions.pod:3424
28014 msgid ""
28015 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28016 "disk), then this returns true if the disk is a network installer, ie. not a "
28017 "self-contained install CD but one which is likely to require network access "
28018 "to complete the install."
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:3436
28023 msgid "guestfs_inspect_list_applications"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:3438
28028 #, no-wrap
28029 msgid ""
28030 " struct guestfs_application_list *\n"
28031 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28032 "                                    const char *root);\n"
28033 "\n"
28034 msgstr ""
28035
28036 #. type: textblock
28037 #: ../src/guestfs-actions.pod:3444
28038 msgid ""
28039 "I<Note:> This call works differently from other parts of the inspection "
28040 "API.  You have to call C<guestfs_inspect_os>, then "
28041 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28042 "this.  Listing applications is a significantly more difficult operation "
28043 "which requires access to the full filesystem.  Also note that unlike the "
28044 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28045 "the libguestfs handle, this call actually reads parts of the mounted "
28046 "filesystems during the call."
28047 msgstr ""
28048
28049 #. type: textblock
28050 #: ../src/guestfs-actions.pod:3534
28051 msgid ""
28052 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28053 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28054 "after use>."
28055 msgstr ""
28056
28057 #. type: textblock
28058 #: ../src/guestfs-actions.pod:3538
28059 msgid "(Added in 1.7.8)"
28060 msgstr ""
28061
28062 #. type: =head2
28063 #: ../src/guestfs-actions.pod:3540
28064 msgid "guestfs_inspect_os"
28065 msgstr ""
28066
28067 #. type: verbatim
28068 #: ../src/guestfs-actions.pod:3542
28069 #, no-wrap
28070 msgid ""
28071 " char **\n"
28072 " guestfs_inspect_os (guestfs_h *g);\n"
28073 "\n"
28074 msgstr ""
28075
28076 #. type: textblock
28077 #: ../src/guestfs-actions.pod:3558
28078 msgid ""
28079 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28080 "functions in order to query further information about each operating system, "
28081 "such as the name and version."
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../src/guestfs-actions.pod:3563
28086 msgid ""
28087 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28088 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28089 "the contents.  This should be called with no disks currently mounted.  The "
28090 "function may also use Augeas, so any existing Augeas handle will be closed."
28091 msgstr ""
28092
28093 #. type: textblock
28094 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28095 #: ../src/guestfs-actions.pod:3988
28096 msgid "See also C<guestfs_list_filesystems>."
28097 msgstr ""
28098
28099 #. type: =head2
28100 #: ../src/guestfs-actions.pod:3583
28101 msgid "guestfs_is_blockdev"
28102 msgstr ""
28103
28104 #. type: verbatim
28105 #: ../src/guestfs-actions.pod:3585
28106 #, no-wrap
28107 msgid ""
28108 " int\n"
28109 " guestfs_is_blockdev (guestfs_h *g,\n"
28110 "                      const char *path);\n"
28111 "\n"
28112 msgstr ""
28113
28114 #. type: textblock
28115 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28116 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28117 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28118 #: ../src/guestfs-actions.pod:3753
28119 msgid "See also C<guestfs_stat>."
28120 msgstr ""
28121
28122 #. type: textblock
28123 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28124 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28125 #: ../src/guestfs-actions.pod:3757
28126 msgid "(Added in 1.5.10)"
28127 msgstr ""
28128
28129 #. type: =head2
28130 #: ../src/guestfs-actions.pod:3598
28131 msgid "guestfs_is_busy"
28132 msgstr ""
28133
28134 #. type: verbatim
28135 #: ../src/guestfs-actions.pod:3600
28136 #, no-wrap
28137 msgid ""
28138 " int\n"
28139 " guestfs_is_busy (guestfs_h *g);\n"
28140 "\n"
28141 msgstr ""
28142
28143 #. type: =head2
28144 #: ../src/guestfs-actions.pod:3612
28145 msgid "guestfs_is_chardev"
28146 msgstr ""
28147
28148 #. type: verbatim
28149 #: ../src/guestfs-actions.pod:3614
28150 #, no-wrap
28151 msgid ""
28152 " int\n"
28153 " guestfs_is_chardev (guestfs_h *g,\n"
28154 "                     const char *path);\n"
28155 "\n"
28156 msgstr ""
28157
28158 #. type: =head2
28159 #: ../src/guestfs-actions.pod:3627
28160 msgid "guestfs_is_config"
28161 msgstr ""
28162
28163 #. type: verbatim
28164 #: ../src/guestfs-actions.pod:3629
28165 #, no-wrap
28166 msgid ""
28167 " int\n"
28168 " guestfs_is_config (guestfs_h *g);\n"
28169 "\n"
28170 msgstr ""
28171
28172 #. type: =head2
28173 #: ../src/guestfs-actions.pod:3641
28174 msgid "guestfs_is_dir"
28175 msgstr ""
28176
28177 #. type: verbatim
28178 #: ../src/guestfs-actions.pod:3643
28179 #, no-wrap
28180 msgid ""
28181 " int\n"
28182 " guestfs_is_dir (guestfs_h *g,\n"
28183 "                 const char *path);\n"
28184 "\n"
28185 msgstr ""
28186
28187 #. type: =head2
28188 #: ../src/guestfs-actions.pod:3657
28189 msgid "guestfs_is_fifo"
28190 msgstr ""
28191
28192 #. type: verbatim
28193 #: ../src/guestfs-actions.pod:3659
28194 #, no-wrap
28195 msgid ""
28196 " int\n"
28197 " guestfs_is_fifo (guestfs_h *g,\n"
28198 "                  const char *path);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: =head2
28203 #: ../src/guestfs-actions.pod:3672
28204 msgid "guestfs_is_file"
28205 msgstr ""
28206
28207 #. type: verbatim
28208 #: ../src/guestfs-actions.pod:3674
28209 #, no-wrap
28210 msgid ""
28211 " int\n"
28212 " guestfs_is_file (guestfs_h *g,\n"
28213 "                  const char *path);\n"
28214 "\n"
28215 msgstr ""
28216
28217 #. type: =head2
28218 #: ../src/guestfs-actions.pod:3688
28219 msgid "guestfs_is_launching"
28220 msgstr ""
28221
28222 #. type: verbatim
28223 #: ../src/guestfs-actions.pod:3690
28224 #, no-wrap
28225 msgid ""
28226 " int\n"
28227 " guestfs_is_launching (guestfs_h *g);\n"
28228 "\n"
28229 msgstr ""
28230
28231 #. type: =head2
28232 #: ../src/guestfs-actions.pod:3702
28233 msgid "guestfs_is_lv"
28234 msgstr ""
28235
28236 #. type: verbatim
28237 #: ../src/guestfs-actions.pod:3704
28238 #, no-wrap
28239 msgid ""
28240 " int\n"
28241 " guestfs_is_lv (guestfs_h *g,\n"
28242 "                const char *device);\n"
28243 "\n"
28244 msgstr ""
28245
28246 #. type: =head2
28247 #: ../src/guestfs-actions.pod:3715
28248 msgid "guestfs_is_ready"
28249 msgstr ""
28250
28251 #. type: verbatim
28252 #: ../src/guestfs-actions.pod:3717
28253 #, no-wrap
28254 msgid ""
28255 " int\n"
28256 " guestfs_is_ready (guestfs_h *g);\n"
28257 "\n"
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:3729
28262 msgid "guestfs_is_socket"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:3731
28267 #, no-wrap
28268 msgid ""
28269 " int\n"
28270 " guestfs_is_socket (guestfs_h *g,\n"
28271 "                    const char *path);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: =head2
28276 #: ../src/guestfs-actions.pod:3744
28277 msgid "guestfs_is_symlink"
28278 msgstr ""
28279
28280 #. type: verbatim
28281 #: ../src/guestfs-actions.pod:3746
28282 #, no-wrap
28283 msgid ""
28284 " int\n"
28285 " guestfs_is_symlink (guestfs_h *g,\n"
28286 "                     const char *path);\n"
28287 "\n"
28288 msgstr ""
28289
28290 #. type: =head2
28291 #: ../src/guestfs-actions.pod:3759
28292 msgid "guestfs_is_zero"
28293 msgstr ""
28294
28295 #. type: verbatim
28296 #: ../src/guestfs-actions.pod:3761
28297 #, no-wrap
28298 msgid ""
28299 " int\n"
28300 " guestfs_is_zero (guestfs_h *g,\n"
28301 "                  const char *path);\n"
28302 "\n"
28303 msgstr ""
28304
28305 #. type: textblock
28306 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
28307 msgid "(Added in 1.11.8)"
28308 msgstr ""
28309
28310 #. type: =head2
28311 #: ../src/guestfs-actions.pod:3772
28312 msgid "guestfs_is_zero_device"
28313 msgstr ""
28314
28315 #. type: verbatim
28316 #: ../src/guestfs-actions.pod:3774
28317 #, no-wrap
28318 msgid ""
28319 " int\n"
28320 " guestfs_is_zero_device (guestfs_h *g,\n"
28321 "                         const char *device);\n"
28322 "\n"
28323 msgstr ""
28324
28325 #. type: =head2
28326 #: ../src/guestfs-actions.pod:3786
28327 msgid "guestfs_kill_subprocess"
28328 msgstr ""
28329
28330 #. type: verbatim
28331 #: ../src/guestfs-actions.pod:3788
28332 #, no-wrap
28333 msgid ""
28334 " int\n"
28335 " guestfs_kill_subprocess (guestfs_h *g);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: =head2
28340 #: ../src/guestfs-actions.pod:3797
28341 msgid "guestfs_launch"
28342 msgstr ""
28343
28344 #. type: verbatim
28345 #: ../src/guestfs-actions.pod:3799
28346 #, no-wrap
28347 msgid ""
28348 " int\n"
28349 " guestfs_launch (guestfs_h *g);\n"
28350 "\n"
28351 msgstr ""
28352
28353 #. type: =head2
28354 #: ../src/guestfs-actions.pod:3817
28355 msgid "guestfs_lchown"
28356 msgstr ""
28357
28358 #. type: verbatim
28359 #: ../src/guestfs-actions.pod:3819
28360 #, no-wrap
28361 msgid ""
28362 " int\n"
28363 " guestfs_lchown (guestfs_h *g,\n"
28364 "                 int owner,\n"
28365 "                 int group,\n"
28366 "                 const char *path);\n"
28367 "\n"
28368 msgstr ""
28369
28370 #. type: textblock
28371 #: ../src/guestfs-actions.pod:3825
28372 msgid ""
28373 "Change the file owner to C<owner> and group to C<group>.  This is like "
28374 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28375 "changed, not the target."
28376 msgstr ""
28377
28378 #. type: =head2
28379 #: ../src/guestfs-actions.pod:3837
28380 msgid "guestfs_lgetxattr"
28381 msgstr ""
28382
28383 #. type: verbatim
28384 #: ../src/guestfs-actions.pod:3839
28385 #, no-wrap
28386 msgid ""
28387 " char *\n"
28388 " guestfs_lgetxattr (guestfs_h *g,\n"
28389 "                    const char *path,\n"
28390 "                    const char *name,\n"
28391 "                    size_t *size_r);\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:3859
28397 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28398 msgstr ""
28399
28400 #. type: =head2
28401 #: ../src/guestfs-actions.pod:3867
28402 msgid "guestfs_lgetxattrs"
28403 msgstr ""
28404
28405 #. type: verbatim
28406 #: ../src/guestfs-actions.pod:3869
28407 #, no-wrap
28408 msgid ""
28409 " struct guestfs_xattr_list *\n"
28410 " guestfs_lgetxattrs (guestfs_h *g,\n"
28411 "                     const char *path);\n"
28412 "\n"
28413 msgstr ""
28414
28415 #. type: textblock
28416 #: ../src/guestfs-actions.pod:3873
28417 msgid ""
28418 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28419 "then it returns the extended attributes of the link itself."
28420 msgstr ""
28421
28422 #. type: =head2
28423 #: ../src/guestfs-actions.pod:3883
28424 msgid "guestfs_list_9p"
28425 msgstr ""
28426
28427 #. type: verbatim
28428 #: ../src/guestfs-actions.pod:3885
28429 #, no-wrap
28430 msgid ""
28431 " char **\n"
28432 " guestfs_list_9p (guestfs_h *g);\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: =head2
28437 #: ../src/guestfs-actions.pod:3897
28438 msgid "guestfs_list_devices"
28439 msgstr ""
28440
28441 #. type: verbatim
28442 #: ../src/guestfs-actions.pod:3899
28443 #, no-wrap
28444 msgid ""
28445 " char **\n"
28446 " guestfs_list_devices (guestfs_h *g);\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: =head2
28451 #: ../src/guestfs-actions.pod:3914
28452 msgid "guestfs_list_dm_devices"
28453 msgstr ""
28454
28455 #. type: verbatim
28456 #: ../src/guestfs-actions.pod:3916
28457 #, no-wrap
28458 msgid ""
28459 " char **\n"
28460 " guestfs_list_dm_devices (guestfs_h *g);\n"
28461 "\n"
28462 msgstr ""
28463
28464 #. type: textblock
28465 #: ../src/guestfs-actions.pod:3921
28466 msgid ""
28467 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28468 "previous call to C<guestfs_luks_open>."
28469 msgstr ""
28470
28471 #. type: textblock
28472 #: ../src/guestfs-actions.pod:3924
28473 msgid ""
28474 "Device mapper devices which correspond to logical volumes are I<not> "
28475 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28476 "volumes."
28477 msgstr ""
28478
28479 #. type: textblock
28480 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
28481 msgid "(Added in 1.11.15)"
28482 msgstr ""
28483
28484 #. type: =head2
28485 #: ../src/guestfs-actions.pod:3934
28486 msgid "guestfs_list_filesystems"
28487 msgstr ""
28488
28489 #. type: verbatim
28490 #: ../src/guestfs-actions.pod:3936
28491 #, no-wrap
28492 msgid ""
28493 " char **\n"
28494 " guestfs_list_filesystems (guestfs_h *g);\n"
28495 "\n"
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../src/guestfs-actions.pod:3956
28500 msgid ""
28501 "This command runs other libguestfs commands, which might include "
28502 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28503 "soon after launch and only when nothing is mounted."
28504 msgstr ""
28505
28506 #. type: textblock
28507 #: ../src/guestfs-actions.pod:3960
28508 msgid ""
28509 "Not all of the filesystems returned will be mountable.  In particular, swap "
28510 "partitions are returned in the list.  Also this command does not check that "
28511 "each filesystem found is valid and mountable, and some filesystems might be "
28512 "mountable but require special options.  Filesystems may not all belong to a "
28513 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28514 msgstr ""
28515
28516 #. type: textblock
28517 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
28518 msgid "(Added in 1.5.15)"
28519 msgstr ""
28520
28521 #. type: =head2
28522 #: ../src/guestfs-actions.pod:3976
28523 msgid "guestfs_list_partitions"
28524 msgstr ""
28525
28526 #. type: verbatim
28527 #: ../src/guestfs-actions.pod:3978
28528 #, no-wrap
28529 msgid ""
28530 " char **\n"
28531 " guestfs_list_partitions (guestfs_h *g);\n"
28532 "\n"
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:3985
28537 msgid ""
28538 "This does not return logical volumes.  For that you will need to call "
28539 "C<guestfs_lvs>."
28540 msgstr ""
28541
28542 #. type: =head2
28543 #: ../src/guestfs-actions.pod:3996
28544 msgid "guestfs_ll"
28545 msgstr ""
28546
28547 #. type: verbatim
28548 #: ../src/guestfs-actions.pod:3998
28549 #, no-wrap
28550 msgid ""
28551 " char *\n"
28552 " guestfs_ll (guestfs_h *g,\n"
28553 "             const char *directory);\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: =head2
28558 #: ../src/guestfs-actions.pod:4013
28559 msgid "guestfs_ln"
28560 msgstr ""
28561
28562 #. type: verbatim
28563 #: ../src/guestfs-actions.pod:4015
28564 #, no-wrap
28565 msgid ""
28566 " int\n"
28567 " guestfs_ln (guestfs_h *g,\n"
28568 "             const char *target,\n"
28569 "             const char *linkname);\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: =head2
28574 #: ../src/guestfs-actions.pod:4026
28575 msgid "guestfs_ln_f"
28576 msgstr ""
28577
28578 #. type: verbatim
28579 #: ../src/guestfs-actions.pod:4028
28580 #, no-wrap
28581 msgid ""
28582 " int\n"
28583 " guestfs_ln_f (guestfs_h *g,\n"
28584 "               const char *target,\n"
28585 "               const char *linkname);\n"
28586 "\n"
28587 msgstr ""
28588
28589 #. type: =head2
28590 #: ../src/guestfs-actions.pod:4040
28591 msgid "guestfs_ln_s"
28592 msgstr ""
28593
28594 #. type: verbatim
28595 #: ../src/guestfs-actions.pod:4042
28596 #, no-wrap
28597 msgid ""
28598 " int\n"
28599 " guestfs_ln_s (guestfs_h *g,\n"
28600 "               const char *target,\n"
28601 "               const char *linkname);\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: =head2
28606 #: ../src/guestfs-actions.pod:4053
28607 msgid "guestfs_ln_sf"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../src/guestfs-actions.pod:4055
28612 #, no-wrap
28613 msgid ""
28614 " int\n"
28615 " guestfs_ln_sf (guestfs_h *g,\n"
28616 "                const char *target,\n"
28617 "                const char *linkname);\n"
28618 "\n"
28619 msgstr ""
28620
28621 #. type: =head2
28622 #: ../src/guestfs-actions.pod:4067
28623 msgid "guestfs_lremovexattr"
28624 msgstr ""
28625
28626 #. type: verbatim
28627 #: ../src/guestfs-actions.pod:4069
28628 #, no-wrap
28629 msgid ""
28630 " int\n"
28631 " guestfs_lremovexattr (guestfs_h *g,\n"
28632 "                       const char *xattr,\n"
28633 "                       const char *path);\n"
28634 "\n"
28635 msgstr ""
28636
28637 #. type: textblock
28638 #: ../src/guestfs-actions.pod:4074
28639 msgid ""
28640 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28641 "link, then it removes an extended attribute of the link itself."
28642 msgstr ""
28643
28644 #. type: =head2
28645 #: ../src/guestfs-actions.pod:4082
28646 msgid "guestfs_ls"
28647 msgstr ""
28648
28649 #. type: verbatim
28650 #: ../src/guestfs-actions.pod:4084
28651 #, no-wrap
28652 msgid ""
28653 " char **\n"
28654 " guestfs_ls (guestfs_h *g,\n"
28655 "             const char *directory);\n"
28656 "\n"
28657 msgstr ""
28658
28659 #. type: textblock
28660 #: ../src/guestfs-actions.pod:4092
28661 msgid ""
28662 "This command is mostly useful for interactive sessions.  Programs should "
28663 "probably use C<guestfs_readdir> instead."
28664 msgstr ""
28665
28666 #. type: =head2
28667 #: ../src/guestfs-actions.pod:4101
28668 msgid "guestfs_lsetxattr"
28669 msgstr ""
28670
28671 #. type: verbatim
28672 #: ../src/guestfs-actions.pod:4103
28673 #, no-wrap
28674 msgid ""
28675 " int\n"
28676 " guestfs_lsetxattr (guestfs_h *g,\n"
28677 "                    const char *xattr,\n"
28678 "                    const char *val,\n"
28679 "                    int vallen,\n"
28680 "                    const char *path);\n"
28681 "\n"
28682 msgstr ""
28683
28684 #. type: textblock
28685 #: ../src/guestfs-actions.pod:4110
28686 msgid ""
28687 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28688 "then it sets an extended attribute of the link itself."
28689 msgstr ""
28690
28691 #. type: =head2
28692 #: ../src/guestfs-actions.pod:4118
28693 msgid "guestfs_lstat"
28694 msgstr ""
28695
28696 #. type: verbatim
28697 #: ../src/guestfs-actions.pod:4120
28698 #, no-wrap
28699 msgid ""
28700 " struct guestfs_stat *\n"
28701 " guestfs_lstat (guestfs_h *g,\n"
28702 "                const char *path);\n"
28703 "\n"
28704 msgstr ""
28705
28706 #. type: textblock
28707 #: ../src/guestfs-actions.pod:4126
28708 msgid ""
28709 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28710 "link, then the link is stat-ed, not the file it refers to."
28711 msgstr ""
28712
28713 #. type: textblock
28714 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
28715 msgid ""
28716 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28717 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28718 msgstr ""
28719
28720 #. type: textblock
28721 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
28722 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
28723 msgid "(Added in 0.9.2)"
28724 msgstr ""
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:4138
28728 msgid "guestfs_lstatlist"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:4140
28733 #, no-wrap
28734 msgid ""
28735 " struct guestfs_stat_list *\n"
28736 " guestfs_lstatlist (guestfs_h *g,\n"
28737 "                    const char *path,\n"
28738 "                    char *const *names);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:4145
28744 msgid ""
28745 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28746 "files, where all files are in the directory C<path>.  C<names> is the list "
28747 "of files from this directory."
28748 msgstr ""
28749
28750 #. type: textblock
28751 #: ../src/guestfs-actions.pod:4154
28752 msgid ""
28753 "This call is intended for programs that want to efficiently list a directory "
28754 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28755 "for a similarly efficient call for getting extended attributes.  Very long "
28756 "directory listings might cause the protocol message size to be exceeded, "
28757 "causing this call to fail.  The caller must split up such requests into "
28758 "smaller groups of names."
28759 msgstr ""
28760
28761 #. type: textblock
28762 #: ../src/guestfs-actions.pod:4162
28763 msgid ""
28764 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28765 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28766 msgstr ""
28767
28768 #. type: =head2
28769 #: ../src/guestfs-actions.pod:4168
28770 msgid "guestfs_luks_add_key"
28771 msgstr ""
28772
28773 #. type: verbatim
28774 #: ../src/guestfs-actions.pod:4170
28775 #, no-wrap
28776 msgid ""
28777 " int\n"
28778 " guestfs_luks_add_key (guestfs_h *g,\n"
28779 "                       const char *device,\n"
28780 "                       const char *key,\n"
28781 "                       const char *newkey,\n"
28782 "                       int keyslot);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:4182
28788 msgid ""
28789 "Note that if C<keyslot> already contains a key, then this command will "
28790 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28791 msgstr ""
28792
28793 #. type: textblock
28794 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
28795 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
28796 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
28797 msgid ""
28798 "This function takes a key or passphrase parameter which could contain "
28799 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28800 "information."
28801 msgstr ""
28802
28803 #. type: textblock
28804 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
28805 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
28806 msgid "(Added in 1.5.2)"
28807 msgstr ""
28808
28809 #. type: =head2
28810 #: ../src/guestfs-actions.pod:4194
28811 msgid "guestfs_luks_close"
28812 msgstr ""
28813
28814 #. type: verbatim
28815 #: ../src/guestfs-actions.pod:4196
28816 #, no-wrap
28817 msgid ""
28818 " int\n"
28819 " guestfs_luks_close (guestfs_h *g,\n"
28820 "                     const char *device);\n"
28821 "\n"
28822 msgstr ""
28823
28824 #. type: textblock
28825 #: ../src/guestfs-actions.pod:4200
28826 msgid ""
28827 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28828 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28829 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28830 "underlying block device."
28831 msgstr ""
28832
28833 #. type: textblock
28834 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
28835 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
28836 #: ../src/guestfs-actions.pod:4427
28837 msgid "(Added in 1.5.1)"
28838 msgstr ""
28839
28840 #. type: =head2
28841 #: ../src/guestfs-actions.pod:4210
28842 msgid "guestfs_luks_format"
28843 msgstr ""
28844
28845 #. type: verbatim
28846 #: ../src/guestfs-actions.pod:4212
28847 #, no-wrap
28848 msgid ""
28849 " int\n"
28850 " guestfs_luks_format (guestfs_h *g,\n"
28851 "                      const char *device,\n"
28852 "                      const char *key,\n"
28853 "                      int keyslot);\n"
28854 "\n"
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:4234
28859 msgid "guestfs_luks_format_cipher"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:4236
28864 #, no-wrap
28865 msgid ""
28866 " int\n"
28867 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28868 "                             const char *device,\n"
28869 "                             const char *key,\n"
28870 "                             int keyslot,\n"
28871 "                             const char *cipher);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../src/guestfs-actions.pod:4243
28877 msgid ""
28878 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28879 "set the C<cipher> used."
28880 msgstr ""
28881
28882 #. type: =head2
28883 #: ../src/guestfs-actions.pod:4257
28884 msgid "guestfs_luks_kill_slot"
28885 msgstr ""
28886
28887 #. type: verbatim
28888 #: ../src/guestfs-actions.pod:4259
28889 #, no-wrap
28890 msgid ""
28891 " int\n"
28892 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28893 "                         const char *device,\n"
28894 "                         const char *key,\n"
28895 "                         int keyslot);\n"
28896 "\n"
28897 msgstr ""
28898
28899 #. type: =head2
28900 #: ../src/guestfs-actions.pod:4277
28901 msgid "guestfs_luks_open"
28902 msgstr ""
28903
28904 #. type: verbatim
28905 #: ../src/guestfs-actions.pod:4279
28906 #, no-wrap
28907 msgid ""
28908 " int\n"
28909 " guestfs_luks_open (guestfs_h *g,\n"
28910 "                    const char *device,\n"
28911 "                    const char *key,\n"
28912 "                    const char *mapname);\n"
28913 "\n"
28914 msgstr ""
28915
28916 #. type: textblock
28917 #: ../src/guestfs-actions.pod:4297
28918 msgid ""
28919 "If this block device contains LVM volume groups, then calling "
28920 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28921 "visible."
28922 msgstr ""
28923
28924 #. type: textblock
28925 #: ../src/guestfs-actions.pod:4301
28926 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:4312
28931 msgid "guestfs_luks_open_ro"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:4314
28936 #, no-wrap
28937 msgid ""
28938 " int\n"
28939 " guestfs_luks_open_ro (guestfs_h *g,\n"
28940 "                       const char *device,\n"
28941 "                       const char *key,\n"
28942 "                       const char *mapname);\n"
28943 "\n"
28944 msgstr ""
28945
28946 #. type: textblock
28947 #: ../src/guestfs-actions.pod:4320
28948 msgid ""
28949 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28950 "created."
28951 msgstr ""
28952
28953 #. type: =head2
28954 #: ../src/guestfs-actions.pod:4331
28955 msgid "guestfs_lvcreate"
28956 msgstr ""
28957
28958 #. type: verbatim
28959 #: ../src/guestfs-actions.pod:4333
28960 #, no-wrap
28961 msgid ""
28962 " int\n"
28963 " guestfs_lvcreate (guestfs_h *g,\n"
28964 "                   const char *logvol,\n"
28965 "                   const char *volgroup,\n"
28966 "                   int mbytes);\n"
28967 "\n"
28968 msgstr ""
28969
28970 #. type: =head2
28971 #: ../src/guestfs-actions.pod:4346
28972 msgid "guestfs_lvm_canonical_lv_name"
28973 msgstr ""
28974
28975 #. type: verbatim
28976 #: ../src/guestfs-actions.pod:4348
28977 #, no-wrap
28978 msgid ""
28979 " char *\n"
28980 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28981 "                                const char *lvname);\n"
28982 "\n"
28983 msgstr ""
28984
28985 #. type: textblock
28986 #: ../src/guestfs-actions.pod:4359
28987 msgid "See also C<guestfs_is_lv>."
28988 msgstr ""
28989
28990 #. type: textblock
28991 #: ../src/guestfs-actions.pod:4364
28992 msgid "(Added in 1.5.24)"
28993 msgstr ""
28994
28995 #. type: =head2
28996 #: ../src/guestfs-actions.pod:4366
28997 msgid "guestfs_lvm_clear_filter"
28998 msgstr ""
28999
29000 #. type: verbatim
29001 #: ../src/guestfs-actions.pod:4368
29002 #, no-wrap
29003 msgid ""
29004 " int\n"
29005 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29006 "\n"
29007 msgstr ""
29008
29009 #. type: textblock
29010 #: ../src/guestfs-actions.pod:4371
29011 msgid ""
29012 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29013 "see every block device."
29014 msgstr ""
29015
29016 #. type: =head2
29017 #: ../src/guestfs-actions.pod:4381
29018 msgid "guestfs_lvm_remove_all"
29019 msgstr ""
29020
29021 #. type: verbatim
29022 #: ../src/guestfs-actions.pod:4383
29023 #, no-wrap
29024 msgid ""
29025 " int\n"
29026 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29027 "\n"
29028 msgstr ""
29029
29030 #. type: =head2
29031 #: ../src/guestfs-actions.pod:4396
29032 msgid "guestfs_lvm_set_filter"
29033 msgstr ""
29034
29035 #. type: verbatim
29036 #: ../src/guestfs-actions.pod:4398
29037 #, no-wrap
29038 msgid ""
29039 " int\n"
29040 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29041 "                         char *const *devices);\n"
29042 "\n"
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:4429
29047 msgid "guestfs_lvremove"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:4431
29052 #, no-wrap
29053 msgid ""
29054 " int\n"
29055 " guestfs_lvremove (guestfs_h *g,\n"
29056 "                   const char *device);\n"
29057 "\n"
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29062 #: ../src/guestfs-actions.pod:7686
29063 msgid "(Added in 1.0.13)"
29064 msgstr ""
29065
29066 #. type: =head2
29067 #: ../src/guestfs-actions.pod:4445
29068 msgid "guestfs_lvrename"
29069 msgstr ""
29070
29071 #. type: verbatim
29072 #: ../src/guestfs-actions.pod:4447
29073 #, no-wrap
29074 msgid ""
29075 " int\n"
29076 " guestfs_lvrename (guestfs_h *g,\n"
29077 "                   const char *logvol,\n"
29078 "                   const char *newlogvol);\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29084 msgid "(Added in 1.0.83)"
29085 msgstr ""
29086
29087 #. type: =head2
29088 #: ../src/guestfs-actions.pod:4458
29089 msgid "guestfs_lvresize"
29090 msgstr ""
29091
29092 #. type: verbatim
29093 #: ../src/guestfs-actions.pod:4460
29094 #, no-wrap
29095 msgid ""
29096 " int\n"
29097 " guestfs_lvresize (guestfs_h *g,\n"
29098 "                   const char *device,\n"
29099 "                   int mbytes);\n"
29100 "\n"
29101 msgstr ""
29102
29103 #. type: =head2
29104 #: ../src/guestfs-actions.pod:4473
29105 msgid "guestfs_lvresize_free"
29106 msgstr ""
29107
29108 #. type: verbatim
29109 #: ../src/guestfs-actions.pod:4475
29110 #, no-wrap
29111 msgid ""
29112 " int\n"
29113 " guestfs_lvresize_free (guestfs_h *g,\n"
29114 "                        const char *lv,\n"
29115 "                        int percent);\n"
29116 "\n"
29117 msgstr ""
29118
29119 #. type: textblock
29120 #: ../src/guestfs-actions.pod:4488
29121 msgid "(Added in 1.3.3)"
29122 msgstr ""
29123
29124 #. type: =head2
29125 #: ../src/guestfs-actions.pod:4490
29126 msgid "guestfs_lvs"
29127 msgstr ""
29128
29129 #. type: verbatim
29130 #: ../src/guestfs-actions.pod:4492
29131 #, no-wrap
29132 msgid ""
29133 " char **\n"
29134 " guestfs_lvs (guestfs_h *g);\n"
29135 "\n"
29136 msgstr ""
29137
29138 #. type: textblock
29139 #: ../src/guestfs-actions.pod:4501
29140 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29141 msgstr ""
29142
29143 #. type: =head2
29144 #: ../src/guestfs-actions.pod:4509
29145 msgid "guestfs_lvs_full"
29146 msgstr ""
29147
29148 #. type: verbatim
29149 #: ../src/guestfs-actions.pod:4511
29150 #, no-wrap
29151 msgid ""
29152 " struct guestfs_lvm_lv_list *\n"
29153 " guestfs_lvs_full (guestfs_h *g);\n"
29154 "\n"
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:4517
29159 msgid ""
29160 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29161 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29162 msgstr ""
29163
29164 #. type: =head2
29165 #: ../src/guestfs-actions.pod:4523
29166 msgid "guestfs_lvuuid"
29167 msgstr ""
29168
29169 #. type: verbatim
29170 #: ../src/guestfs-actions.pod:4525
29171 #, no-wrap
29172 msgid ""
29173 " char *\n"
29174 " guestfs_lvuuid (guestfs_h *g,\n"
29175 "                 const char *device);\n"
29176 "\n"
29177 msgstr ""
29178
29179 #. type: =head2
29180 #: ../src/guestfs-actions.pod:4536
29181 msgid "guestfs_lxattrlist"
29182 msgstr ""
29183
29184 #. type: verbatim
29185 #: ../src/guestfs-actions.pod:4538
29186 #, no-wrap
29187 msgid ""
29188 " struct guestfs_xattr_list *\n"
29189 " guestfs_lxattrlist (guestfs_h *g,\n"
29190 "                     const char *path,\n"
29191 "                     char *const *names);\n"
29192 "\n"
29193 msgstr ""
29194
29195 #. type: textblock
29196 #: ../src/guestfs-actions.pod:4557
29197 msgid ""
29198 "This call is intended for programs that want to efficiently list a directory "
29199 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29200 "a similarly efficient call for getting standard stats.  Very long directory "
29201 "listings might cause the protocol message size to be exceeded, causing this "
29202 "call to fail.  The caller must split up such requests into smaller groups of "
29203 "names."
29204 msgstr ""
29205
29206 #. type: =head2
29207 #: ../src/guestfs-actions.pod:4571
29208 msgid "guestfs_mkdir"
29209 msgstr ""
29210
29211 #. type: verbatim
29212 #: ../src/guestfs-actions.pod:4573
29213 #, no-wrap
29214 msgid ""
29215 " int\n"
29216 " guestfs_mkdir (guestfs_h *g,\n"
29217 "                const char *path);\n"
29218 "\n"
29219 msgstr ""
29220
29221 #. type: =head2
29222 #: ../src/guestfs-actions.pod:4583
29223 msgid "guestfs_mkdir_mode"
29224 msgstr ""
29225
29226 #. type: verbatim
29227 #: ../src/guestfs-actions.pod:4585
29228 #, no-wrap
29229 msgid ""
29230 " int\n"
29231 " guestfs_mkdir_mode (guestfs_h *g,\n"
29232 "                     const char *path,\n"
29233 "                     int mode);\n"
29234 "\n"
29235 msgstr ""
29236
29237 #. type: textblock
29238 #: ../src/guestfs-actions.pod:4597
29239 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../src/guestfs-actions.pod:4603
29244 msgid "guestfs_mkdir_p"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../src/guestfs-actions.pod:4605
29249 #, no-wrap
29250 msgid ""
29251 " int\n"
29252 " guestfs_mkdir_p (guestfs_h *g,\n"
29253 "                  const char *path);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:4616
29259 msgid "guestfs_mkdtemp"
29260 msgstr ""
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:4618
29264 #, no-wrap
29265 msgid ""
29266 " char *\n"
29267 " guestfs_mkdtemp (guestfs_h *g,\n"
29268 "                  const char *template);\n"
29269 "\n"
29270 msgstr ""
29271
29272 #. type: =head2
29273 #: ../src/guestfs-actions.pod:4646
29274 msgid "guestfs_mke2fs_J"
29275 msgstr ""
29276
29277 #. type: verbatim
29278 #: ../src/guestfs-actions.pod:4648
29279 #, no-wrap
29280 msgid ""
29281 " int\n"
29282 " guestfs_mke2fs_J (guestfs_h *g,\n"
29283 "                   const char *fstype,\n"
29284 "                   int blocksize,\n"
29285 "                   const char *device,\n"
29286 "                   const char *journal);\n"
29287 "\n"
29288 msgstr ""
29289
29290 #. type: textblock
29291 #: ../src/guestfs-actions.pod:4661
29292 msgid "See also C<guestfs_mke2journal>."
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
29297 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
29298 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
29299 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
29300 msgid "(Added in 1.0.68)"
29301 msgstr ""
29302
29303 #. type: =head2
29304 #: ../src/guestfs-actions.pod:4667
29305 msgid "guestfs_mke2fs_JL"
29306 msgstr ""
29307
29308 #. type: verbatim
29309 #: ../src/guestfs-actions.pod:4669
29310 #, no-wrap
29311 msgid ""
29312 " int\n"
29313 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29314 "                    const char *fstype,\n"
29315 "                    int blocksize,\n"
29316 "                    const char *device,\n"
29317 "                    const char *label);\n"
29318 "\n"
29319 msgstr ""
29320
29321 #. type: textblock
29322 #: ../src/guestfs-actions.pod:4679
29323 msgid "See also C<guestfs_mke2journal_L>."
29324 msgstr ""
29325
29326 #. type: =head2
29327 #: ../src/guestfs-actions.pod:4685
29328 msgid "guestfs_mke2fs_JU"
29329 msgstr ""
29330
29331 #. type: verbatim
29332 #: ../src/guestfs-actions.pod:4687
29333 #, no-wrap
29334 msgid ""
29335 " int\n"
29336 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29337 "                    const char *fstype,\n"
29338 "                    int blocksize,\n"
29339 "                    const char *device,\n"
29340 "                    const char *uuid);\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:4697
29346 msgid "See also C<guestfs_mke2journal_U>."
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:4703
29351 msgid "guestfs_mke2journal"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:4705
29356 #, no-wrap
29357 msgid ""
29358 " int\n"
29359 " guestfs_mke2journal (guestfs_h *g,\n"
29360 "                      int blocksize,\n"
29361 "                      const char *device);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:4719
29367 msgid "guestfs_mke2journal_L"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:4721
29372 #, no-wrap
29373 msgid ""
29374 " int\n"
29375 " guestfs_mke2journal_L (guestfs_h *g,\n"
29376 "                        int blocksize,\n"
29377 "                        const char *label,\n"
29378 "                        const char *device);\n"
29379 "\n"
29380 msgstr ""
29381
29382 #. type: =head2
29383 #: ../src/guestfs-actions.pod:4733
29384 msgid "guestfs_mke2journal_U"
29385 msgstr ""
29386
29387 #. type: verbatim
29388 #: ../src/guestfs-actions.pod:4735
29389 #, no-wrap
29390 msgid ""
29391 " int\n"
29392 " guestfs_mke2journal_U (guestfs_h *g,\n"
29393 "                        int blocksize,\n"
29394 "                        const char *uuid,\n"
29395 "                        const char *device);\n"
29396 "\n"
29397 msgstr ""
29398
29399 #. type: =head2
29400 #: ../src/guestfs-actions.pod:4747
29401 msgid "guestfs_mkfifo"
29402 msgstr ""
29403
29404 #. type: verbatim
29405 #: ../src/guestfs-actions.pod:4749
29406 #, no-wrap
29407 msgid ""
29408 " int\n"
29409 " guestfs_mkfifo (guestfs_h *g,\n"
29410 "                 int mode,\n"
29411 "                 const char *path);\n"
29412 "\n"
29413 msgstr ""
29414
29415 #. type: textblock
29416 #: ../src/guestfs-actions.pod:4754
29417 msgid ""
29418 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29419 "is just a convenient wrapper around C<guestfs_mknod>."
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:4764
29424 msgid "guestfs_mkfs"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:4766
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_mkfs (guestfs_h *g,\n"
29433 "               const char *fstype,\n"
29434 "               const char *device);\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:4779
29440 msgid "guestfs_mkfs_b"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:4781
29445 #, no-wrap
29446 msgid ""
29447 " int\n"
29448 " guestfs_mkfs_b (guestfs_h *g,\n"
29449 "                 const char *fstype,\n"
29450 "                 int blocksize,\n"
29451 "                 const char *device);\n"
29452 "\n"
29453 msgstr ""
29454
29455 #. type: textblock
29456 #: ../src/guestfs-actions.pod:4787
29457 msgid ""
29458 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29459 "call instead."
29460 msgstr ""
29461
29462 #. type: textblock
29463 #: ../src/guestfs-actions.pod:4794
29464 msgid ""
29465 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29466 "block size of the resulting filesystem.  Supported block sizes depend on the "
29467 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29468 msgstr ""
29469
29470 #. type: =head2
29471 #: ../src/guestfs-actions.pod:4806
29472 msgid "guestfs_mkfs_opts"
29473 msgstr ""
29474
29475 #. type: verbatim
29476 #: ../src/guestfs-actions.pod:4808
29477 #, no-wrap
29478 msgid ""
29479 " int\n"
29480 " guestfs_mkfs_opts (guestfs_h *g,\n"
29481 "                    const char *fstype,\n"
29482 "                    const char *device,\n"
29483 "                    ...);\n"
29484 "\n"
29485 msgstr ""
29486
29487 #. type: verbatim
29488 #: ../src/guestfs-actions.pod:4819
29489 #, no-wrap
29490 msgid ""
29491 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29492 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29493 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29494 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29495 "\n"
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../src/guestfs-actions.pod:4867
29500 msgid "(Added in 1.7.19)"
29501 msgstr ""
29502
29503 #. type: =head2
29504 #: ../src/guestfs-actions.pod:4869
29505 msgid "guestfs_mkfs_opts_va"
29506 msgstr ""
29507
29508 #. type: verbatim
29509 #: ../src/guestfs-actions.pod:4871
29510 #, no-wrap
29511 msgid ""
29512 " int\n"
29513 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29514 "                       const char *fstype,\n"
29515 "                       const char *device,\n"
29516 "                       va_list args);\n"
29517 "\n"
29518 msgstr ""
29519
29520 #. type: textblock
29521 #: ../src/guestfs-actions.pod:4877
29522 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29523 msgstr ""
29524
29525 #. type: =head2
29526 #: ../src/guestfs-actions.pod:4881
29527 msgid "guestfs_mkfs_opts_argv"
29528 msgstr ""
29529
29530 #. type: verbatim
29531 #: ../src/guestfs-actions.pod:4883
29532 #, no-wrap
29533 msgid ""
29534 " int\n"
29535 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29536 "                         const char *fstype,\n"
29537 "                         const char *device,\n"
29538 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29539 "\n"
29540 msgstr ""
29541
29542 #. type: textblock
29543 #: ../src/guestfs-actions.pod:4889
29544 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29545 msgstr ""
29546
29547 #. type: =head2
29548 #: ../src/guestfs-actions.pod:4893
29549 msgid "guestfs_mkmountpoint"
29550 msgstr ""
29551
29552 #. type: verbatim
29553 #: ../src/guestfs-actions.pod:4895
29554 #, no-wrap
29555 msgid ""
29556 " int\n"
29557 " guestfs_mkmountpoint (guestfs_h *g,\n"
29558 "                       const char *exemptpath);\n"
29559 "\n"
29560 msgstr ""
29561
29562 #. type: textblock
29563 #: ../src/guestfs-actions.pod:4899
29564 msgid ""
29565 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29566 "that can be used to create extra mountpoints before mounting the first "
29567 "filesystem."
29568 msgstr ""
29569
29570 #. type: textblock
29571 #: ../src/guestfs-actions.pod:4923
29572 msgid ""
29573 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29574 "may get unexpected errors if you try to mix these calls.  It is safest to "
29575 "manually unmount filesystems and remove mountpoints after use."
29576 msgstr ""
29577
29578 #. type: textblock
29579 #: ../src/guestfs-actions.pod:4927
29580 msgid ""
29581 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29582 "first, so for this to work for manual mountpoints, you must ensure that the "
29583 "innermost mountpoints have the longest pathnames, as in the example code "
29584 "above."
29585 msgstr ""
29586
29587 #. type: textblock
29588 #: ../src/guestfs-actions.pod:4934
29589 msgid ""
29590 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29591 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29592 "can also trigger these issues."
29593 msgstr ""
29594
29595 #. type: textblock
29596 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
29597 #: ../src/guestfs-actions.pod:6256
29598 msgid "(Added in 1.0.62)"
29599 msgstr ""
29600
29601 #. type: =head2
29602 #: ../src/guestfs-actions.pod:4942
29603 msgid "guestfs_mknod"
29604 msgstr ""
29605
29606 #. type: verbatim
29607 #: ../src/guestfs-actions.pod:4944
29608 #, no-wrap
29609 msgid ""
29610 " int\n"
29611 " guestfs_mknod (guestfs_h *g,\n"
29612 "                int mode,\n"
29613 "                int devmajor,\n"
29614 "                int devminor,\n"
29615 "                const char *path);\n"
29616 "\n"
29617 msgstr ""
29618
29619 #. type: textblock
29620 #: ../src/guestfs-actions.pod:4959
29621 msgid ""
29622 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29623 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29624 "regular file).  These constants are available in the standard Linux header "
29625 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29626 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29627 "the appropriate constant for you."
29628 msgstr ""
29629
29630 #. type: =head2
29631 #: ../src/guestfs-actions.pod:4973
29632 msgid "guestfs_mknod_b"
29633 msgstr ""
29634
29635 #. type: verbatim
29636 #: ../src/guestfs-actions.pod:4975
29637 #, no-wrap
29638 msgid ""
29639 " int\n"
29640 " guestfs_mknod_b (guestfs_h *g,\n"
29641 "                  int mode,\n"
29642 "                  int devmajor,\n"
29643 "                  int devminor,\n"
29644 "                  const char *path);\n"
29645 "\n"
29646 msgstr ""
29647
29648 #. type: textblock
29649 #: ../src/guestfs-actions.pod:4982
29650 msgid ""
29651 "This call creates a block device node called C<path> with mode C<mode> and "
29652 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29653 "wrapper around C<guestfs_mknod>."
29654 msgstr ""
29655
29656 #. type: =head2
29657 #: ../src/guestfs-actions.pod:4992
29658 msgid "guestfs_mknod_c"
29659 msgstr ""
29660
29661 #. type: verbatim
29662 #: ../src/guestfs-actions.pod:4994
29663 #, no-wrap
29664 msgid ""
29665 " int\n"
29666 " guestfs_mknod_c (guestfs_h *g,\n"
29667 "                  int mode,\n"
29668 "                  int devmajor,\n"
29669 "                  int devminor,\n"
29670 "                  const char *path);\n"
29671 "\n"
29672 msgstr ""
29673
29674 #. type: textblock
29675 #: ../src/guestfs-actions.pod:5001
29676 msgid ""
29677 "This call creates a char device node called C<path> with mode C<mode> and "
29678 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29679 "wrapper around C<guestfs_mknod>."
29680 msgstr ""
29681
29682 #. type: =head2
29683 #: ../src/guestfs-actions.pod:5011
29684 msgid "guestfs_mkswap"
29685 msgstr ""
29686
29687 #. type: verbatim
29688 #: ../src/guestfs-actions.pod:5013
29689 #, no-wrap
29690 msgid ""
29691 " int\n"
29692 " guestfs_mkswap (guestfs_h *g,\n"
29693 "                 const char *device);\n"
29694 "\n"
29695 msgstr ""
29696
29697 #. type: =head2
29698 #: ../src/guestfs-actions.pod:5023
29699 msgid "guestfs_mkswap_L"
29700 msgstr ""
29701
29702 #. type: verbatim
29703 #: ../src/guestfs-actions.pod:5025
29704 #, no-wrap
29705 msgid ""
29706 " int\n"
29707 " guestfs_mkswap_L (guestfs_h *g,\n"
29708 "                   const char *label,\n"
29709 "                   const char *device);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: =head2
29714 #: ../src/guestfs-actions.pod:5040
29715 msgid "guestfs_mkswap_U"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-actions.pod:5042
29720 #, no-wrap
29721 msgid ""
29722 " int\n"
29723 " guestfs_mkswap_U (guestfs_h *g,\n"
29724 "                   const char *uuid,\n"
29725 "                   const char *device);\n"
29726 "\n"
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:5053
29731 msgid "guestfs_mkswap_file"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:5055
29736 #, no-wrap
29737 msgid ""
29738 " int\n"
29739 " guestfs_mkswap_file (guestfs_h *g,\n"
29740 "                      const char *path);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:5061
29746 msgid ""
29747 "This command just writes a swap file signature to an existing file.  To "
29748 "create the file itself, use something like C<guestfs_fallocate>."
29749 msgstr ""
29750
29751 #. type: =head2
29752 #: ../src/guestfs-actions.pod:5068
29753 msgid "guestfs_modprobe"
29754 msgstr ""
29755
29756 #. type: verbatim
29757 #: ../src/guestfs-actions.pod:5070
29758 #, no-wrap
29759 msgid ""
29760 " int\n"
29761 " guestfs_modprobe (guestfs_h *g,\n"
29762 "                   const char *modulename);\n"
29763 "\n"
29764 msgstr ""
29765
29766 #. type: =head2
29767 #: ../src/guestfs-actions.pod:5083
29768 msgid "guestfs_mount"
29769 msgstr ""
29770
29771 #. type: verbatim
29772 #: ../src/guestfs-actions.pod:5085
29773 #, no-wrap
29774 msgid ""
29775 " int\n"
29776 " guestfs_mount (guestfs_h *g,\n"
29777 "                const char *device,\n"
29778 "                const char *mountpoint);\n"
29779 "\n"
29780 msgstr ""
29781
29782 #. type: textblock
29783 #: ../src/guestfs-actions.pod:5104
29784 msgid ""
29785 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29786 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29787 "problems for users.  If your program might need to work with older versions "
29788 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29789 "for the first parameter if you don't want any options)."
29790 msgstr ""
29791
29792 #. type: =head2
29793 #: ../src/guestfs-actions.pod:5115
29794 msgid "guestfs_mount_9p"
29795 msgstr ""
29796
29797 #. type: verbatim
29798 #: ../src/guestfs-actions.pod:5117
29799 #, no-wrap
29800 msgid ""
29801 " int\n"
29802 " guestfs_mount_9p (guestfs_h *g,\n"
29803 "                   const char *mounttag,\n"
29804 "                   const char *mountpoint,\n"
29805 "                   ...);\n"
29806 "\n"
29807 msgstr ""
29808
29809 #. type: verbatim
29810 #: ../src/guestfs-actions.pod:5128
29811 #, no-wrap
29812 msgid ""
29813 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29814 "\n"
29815 msgstr ""
29816
29817 #. type: =head2
29818 #: ../src/guestfs-actions.pod:5141
29819 msgid "guestfs_mount_9p_va"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-actions.pod:5143
29824 #, no-wrap
29825 msgid ""
29826 " int\n"
29827 " guestfs_mount_9p_va (guestfs_h *g,\n"
29828 "                      const char *mounttag,\n"
29829 "                      const char *mountpoint,\n"
29830 "                      va_list args);\n"
29831 "\n"
29832 msgstr ""
29833
29834 #. type: textblock
29835 #: ../src/guestfs-actions.pod:5149
29836 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29837 msgstr ""
29838
29839 #. type: =head2
29840 #: ../src/guestfs-actions.pod:5153
29841 msgid "guestfs_mount_9p_argv"
29842 msgstr ""
29843
29844 #. type: verbatim
29845 #: ../src/guestfs-actions.pod:5155
29846 #, no-wrap
29847 msgid ""
29848 " int\n"
29849 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29850 "                        const char *mounttag,\n"
29851 "                        const char *mountpoint,\n"
29852 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29853 "\n"
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:5161
29858 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29859 msgstr ""
29860
29861 #. type: =head2
29862 #: ../src/guestfs-actions.pod:5165
29863 msgid "guestfs_mount_loop"
29864 msgstr ""
29865
29866 #. type: verbatim
29867 #: ../src/guestfs-actions.pod:5167
29868 #, no-wrap
29869 msgid ""
29870 " int\n"
29871 " guestfs_mount_loop (guestfs_h *g,\n"
29872 "                     const char *file,\n"
29873 "                     const char *mountpoint);\n"
29874 "\n"
29875 msgstr ""
29876
29877 #. type: =head2
29878 #: ../src/guestfs-actions.pod:5180
29879 msgid "guestfs_mount_options"
29880 msgstr ""
29881
29882 #. type: verbatim
29883 #: ../src/guestfs-actions.pod:5182
29884 #, no-wrap
29885 msgid ""
29886 " int\n"
29887 " guestfs_mount_options (guestfs_h *g,\n"
29888 "                        const char *options,\n"
29889 "                        const char *device,\n"
29890 "                        const char *mountpoint);\n"
29891 "\n"
29892 msgstr ""
29893
29894 #. type: textblock
29895 #: ../src/guestfs-actions.pod:5188
29896 msgid ""
29897 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29898 "the mount options as for the L<mount(8)> I<-o> flag."
29899 msgstr ""
29900
29901 #. type: textblock
29902 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
29903 #: ../src/guestfs-actions.pod:5229
29904 msgid "(Added in 1.0.10)"
29905 msgstr ""
29906
29907 #. type: =head2
29908 #: ../src/guestfs-actions.pod:5200
29909 msgid "guestfs_mount_ro"
29910 msgstr ""
29911
29912 #. type: verbatim
29913 #: ../src/guestfs-actions.pod:5202
29914 #, no-wrap
29915 msgid ""
29916 " int\n"
29917 " guestfs_mount_ro (guestfs_h *g,\n"
29918 "                   const char *device,\n"
29919 "                   const char *mountpoint);\n"
29920 "\n"
29921 msgstr ""
29922
29923 #. type: textblock
29924 #: ../src/guestfs-actions.pod:5207
29925 msgid ""
29926 "This is the same as the C<guestfs_mount> command, but it mounts the "
29927 "filesystem with the read-only (I<-o ro>) flag."
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:5214
29932 msgid "guestfs_mount_vfs"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:5216
29937 #, no-wrap
29938 msgid ""
29939 " int\n"
29940 " guestfs_mount_vfs (guestfs_h *g,\n"
29941 "                    const char *options,\n"
29942 "                    const char *vfstype,\n"
29943 "                    const char *device,\n"
29944 "                    const char *mountpoint);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: textblock
29949 #: ../src/guestfs-actions.pod:5223
29950 msgid ""
29951 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29952 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29953 "t> flags."
29954 msgstr ""
29955
29956 #. type: =head2
29957 #: ../src/guestfs-actions.pod:5231
29958 msgid "guestfs_mountpoints"
29959 msgstr ""
29960
29961 #. type: verbatim
29962 #: ../src/guestfs-actions.pod:5233
29963 #, no-wrap
29964 msgid ""
29965 " char **\n"
29966 " guestfs_mountpoints (guestfs_h *g);\n"
29967 "\n"
29968 msgstr ""
29969
29970 #. type: textblock
29971 #: ../src/guestfs-actions.pod:5236
29972 msgid ""
29973 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29974 "devices.  This one returns a hash table (map) of device name to directory "
29975 "where the device is mounted."
29976 msgstr ""
29977
29978 #. type: =head2
29979 #: ../src/guestfs-actions.pod:5248
29980 msgid "guestfs_mounts"
29981 msgstr ""
29982
29983 #. type: verbatim
29984 #: ../src/guestfs-actions.pod:5250
29985 #, no-wrap
29986 msgid ""
29987 " char **\n"
29988 " guestfs_mounts (guestfs_h *g);\n"
29989 "\n"
29990 msgstr ""
29991
29992 #. type: textblock
29993 #: ../src/guestfs-actions.pod:5258
29994 msgid "See also: C<guestfs_mountpoints>"
29995 msgstr ""
29996
29997 #. type: =head2
29998 #: ../src/guestfs-actions.pod:5266
29999 msgid "guestfs_mv"
30000 msgstr ""
30001
30002 #. type: verbatim
30003 #: ../src/guestfs-actions.pod:5268
30004 #, no-wrap
30005 msgid ""
30006 " int\n"
30007 " guestfs_mv (guestfs_h *g,\n"
30008 "             const char *src,\n"
30009 "             const char *dest);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:5280
30015 msgid "guestfs_ntfs_3g_probe"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:5282
30020 #, no-wrap
30021 msgid ""
30022 " int\n"
30023 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30024 "                        int rw,\n"
30025 "                        const char *device);\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: textblock
30030 #: ../src/guestfs-actions.pod:5301
30031 msgid "(Added in 1.0.43)"
30032 msgstr ""
30033
30034 #. type: =head2
30035 #: ../src/guestfs-actions.pod:5303
30036 msgid "guestfs_ntfsresize"
30037 msgstr ""
30038
30039 #. type: verbatim
30040 #: ../src/guestfs-actions.pod:5305
30041 #, no-wrap
30042 msgid ""
30043 " int\n"
30044 " guestfs_ntfsresize (guestfs_h *g,\n"
30045 "                     const char *device);\n"
30046 "\n"
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
30051 msgid ""
30052 "I<This function is deprecated.> In new code, use the L</"
30053 "guestfs_ntfsresize_opts> call instead."
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:5333
30058 msgid "guestfs_ntfsresize_opts"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:5335
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30067 "                          const char *device,\n"
30068 "                          ...);\n"
30069 "\n"
30070 msgstr ""
30071
30072 #. type: verbatim
30073 #: ../src/guestfs-actions.pod:5345
30074 #, no-wrap
30075 msgid ""
30076 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30077 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30078 "\n"
30079 msgstr ""
30080
30081 #. type: textblock
30082 #: ../src/guestfs-actions.pod:5365
30083 msgid ""
30084 "After the resize operation, the filesystem is always marked as requiring a "
30085 "consistency check (for safety).  You have to boot into Windows to perform "
30086 "this check and clear this condition.  If you I<don't> set the C<force> "
30087 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30088 "times on a single filesystem without booting into Windows between each "
30089 "resize."
30090 msgstr ""
30091
30092 #. type: =head2
30093 #: ../src/guestfs-actions.pod:5380
30094 msgid "guestfs_ntfsresize_opts_va"
30095 msgstr ""
30096
30097 #. type: verbatim
30098 #: ../src/guestfs-actions.pod:5382
30099 #, no-wrap
30100 msgid ""
30101 " int\n"
30102 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30103 "                             const char *device,\n"
30104 "                             va_list args);\n"
30105 "\n"
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../src/guestfs-actions.pod:5387
30110 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30111 msgstr ""
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:5391
30115 msgid "guestfs_ntfsresize_opts_argv"
30116 msgstr ""
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:5393
30120 #, no-wrap
30121 msgid ""
30122 " int\n"
30123 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30124 "                               const char *device,\n"
30125 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30126 "\n"
30127 msgstr ""
30128
30129 #. type: textblock
30130 #: ../src/guestfs-actions.pod:5398
30131 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30132 msgstr ""
30133
30134 #. type: =head2
30135 #: ../src/guestfs-actions.pod:5402
30136 msgid "guestfs_ntfsresize_size"
30137 msgstr ""
30138
30139 #. type: verbatim
30140 #: ../src/guestfs-actions.pod:5404
30141 #, no-wrap
30142 msgid ""
30143 " int\n"
30144 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30145 "                          const char *device,\n"
30146 "                          int64_t size);\n"
30147 "\n"
30148 msgstr ""
30149
30150 #. type: textblock
30151 #: ../src/guestfs-actions.pod:5416
30152 msgid ""
30153 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30154 "to specify the new size (in bytes) explicitly."
30155 msgstr ""
30156
30157 #. type: textblock
30158 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
30159 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
30160 #: ../src/guestfs-actions.pod:7843
30161 msgid "(Added in 1.3.14)"
30162 msgstr ""
30163
30164 #. type: =head2
30165 #: ../src/guestfs-actions.pod:5423
30166 msgid "guestfs_part_add"
30167 msgstr ""
30168
30169 #. type: verbatim
30170 #: ../src/guestfs-actions.pod:5425
30171 #, no-wrap
30172 msgid ""
30173 " int\n"
30174 " guestfs_part_add (guestfs_h *g,\n"
30175 "                   const char *device,\n"
30176 "                   const char *prlogex,\n"
30177 "                   int64_t startsect,\n"
30178 "                   int64_t endsect);\n"
30179 "\n"
30180 msgstr ""
30181
30182 #. type: textblock
30183 #: ../src/guestfs-actions.pod:5432
30184 msgid ""
30185 "This command adds a partition to C<device>.  If there is no partition table "
30186 "on the device, call C<guestfs_part_init> first."
30187 msgstr ""
30188
30189 #. type: textblock
30190 #: ../src/guestfs-actions.pod:5444
30191 msgid ""
30192 "Creating a partition which covers the whole disk is not so easy.  Use "
30193 "C<guestfs_part_disk> to do that."
30194 msgstr ""
30195
30196 #. type: textblock
30197 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
30198 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
30199 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
30200 #: ../src/guestfs-actions.pod:5721
30201 msgid "(Added in 1.0.78)"
30202 msgstr ""
30203
30204 #. type: =head2
30205 #: ../src/guestfs-actions.pod:5451
30206 msgid "guestfs_part_del"
30207 msgstr ""
30208
30209 #. type: verbatim
30210 #: ../src/guestfs-actions.pod:5453
30211 #, no-wrap
30212 msgid ""
30213 " int\n"
30214 " guestfs_part_del (guestfs_h *g,\n"
30215 "                   const char *device,\n"
30216 "                   int partnum);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: =head2
30221 #: ../src/guestfs-actions.pod:5468
30222 msgid "guestfs_part_disk"
30223 msgstr ""
30224
30225 #. type: verbatim
30226 #: ../src/guestfs-actions.pod:5470
30227 #, no-wrap
30228 msgid ""
30229 " int\n"
30230 " guestfs_part_disk (guestfs_h *g,\n"
30231 "                    const char *device,\n"
30232 "                    const char *parttype);\n"
30233 "\n"
30234 msgstr ""
30235
30236 #. type: textblock
30237 #: ../src/guestfs-actions.pod:5475
30238 msgid ""
30239 "This command is simply a combination of C<guestfs_part_init> followed by "
30240 "C<guestfs_part_add> to create a single primary partition covering the whole "
30241 "disk."
30242 msgstr ""
30243
30244 #. type: textblock
30245 #: ../src/guestfs-actions.pod:5479
30246 msgid ""
30247 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30248 "possible values are described in C<guestfs_part_init>."
30249 msgstr ""
30250
30251 #. type: =head2
30252 #: ../src/guestfs-actions.pod:5489
30253 msgid "guestfs_part_get_bootable"
30254 msgstr ""
30255
30256 #. type: verbatim
30257 #: ../src/guestfs-actions.pod:5491
30258 #, no-wrap
30259 msgid ""
30260 " int\n"
30261 " guestfs_part_get_bootable (guestfs_h *g,\n"
30262 "                            const char *device,\n"
30263 "                            int partnum);\n"
30264 "\n"
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:5499
30269 msgid "See also C<guestfs_part_set_bootable>."
30270 msgstr ""
30271
30272 #. type: =head2
30273 #: ../src/guestfs-actions.pod:5505
30274 msgid "guestfs_part_get_mbr_id"
30275 msgstr ""
30276
30277 #. type: verbatim
30278 #: ../src/guestfs-actions.pod:5507
30279 #, no-wrap
30280 msgid ""
30281 " int\n"
30282 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30283 "                          const char *device,\n"
30284 "                          int partnum);\n"
30285 "\n"
30286 msgstr ""
30287
30288 #. type: textblock
30289 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
30290 msgid ""
30291 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30292 "undefined results for other partition table types (see "
30293 "C<guestfs_part_get_parttype>)."
30294 msgstr ""
30295
30296 #. type: =head2
30297 #: ../src/guestfs-actions.pod:5523
30298 msgid "guestfs_part_get_parttype"
30299 msgstr ""
30300
30301 #. type: verbatim
30302 #: ../src/guestfs-actions.pod:5525
30303 #, no-wrap
30304 msgid ""
30305 " char *\n"
30306 " guestfs_part_get_parttype (guestfs_h *g,\n"
30307 "                            const char *device);\n"
30308 "\n"
30309 msgstr ""
30310
30311 #. type: textblock
30312 #: ../src/guestfs-actions.pod:5532
30313 msgid ""
30314 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30315 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30316 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30317 msgstr ""
30318
30319 #. type: =head2
30320 #: ../src/guestfs-actions.pod:5542
30321 msgid "guestfs_part_init"
30322 msgstr ""
30323
30324 #. type: verbatim
30325 #: ../src/guestfs-actions.pod:5544
30326 #, no-wrap
30327 msgid ""
30328 " int\n"
30329 " guestfs_part_init (guestfs_h *g,\n"
30330 "                    const char *device,\n"
30331 "                    const char *parttype);\n"
30332 "\n"
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../src/guestfs-actions.pod:5553
30337 msgid ""
30338 "Initially there are no partitions.  Following this, you should call "
30339 "C<guestfs_part_add> for each partition required."
30340 msgstr ""
30341
30342 #. type: =head2
30343 #: ../src/guestfs-actions.pod:5626
30344 msgid "guestfs_part_list"
30345 msgstr ""
30346
30347 #. type: verbatim
30348 #: ../src/guestfs-actions.pod:5628
30349 #, no-wrap
30350 msgid ""
30351 " struct guestfs_partition_list *\n"
30352 " guestfs_part_list (guestfs_h *g,\n"
30353 "                    const char *device);\n"
30354 "\n"
30355 msgstr ""
30356
30357 #. type: textblock
30358 #: ../src/guestfs-actions.pod:5645
30359 msgid ""
30360 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30361 "the device's sector size, see C<guestfs_blockdev_getss>."
30362 msgstr ""
30363
30364 #. type: textblock
30365 #: ../src/guestfs-actions.pod:5658
30366 msgid ""
30367 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30368 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30369 "use>."
30370 msgstr ""
30371
30372 #. type: =head2
30373 #: ../src/guestfs-actions.pod:5664
30374 msgid "guestfs_part_set_bootable"
30375 msgstr ""
30376
30377 #. type: verbatim
30378 #: ../src/guestfs-actions.pod:5666
30379 #, no-wrap
30380 msgid ""
30381 " int\n"
30382 " guestfs_part_set_bootable (guestfs_h *g,\n"
30383 "                            const char *device,\n"
30384 "                            int partnum,\n"
30385 "                            int bootable);\n"
30386 "\n"
30387 msgstr ""
30388
30389 #. type: =head2
30390 #: ../src/guestfs-actions.pod:5683
30391 msgid "guestfs_part_set_mbr_id"
30392 msgstr ""
30393
30394 #. type: verbatim
30395 #: ../src/guestfs-actions.pod:5685
30396 #, no-wrap
30397 msgid ""
30398 " int\n"
30399 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30400 "                          const char *device,\n"
30401 "                          int partnum,\n"
30402 "                          int idbyte);\n"
30403 "\n"
30404 msgstr ""
30405
30406 #. type: =head2
30407 #: ../src/guestfs-actions.pod:5705
30408 msgid "guestfs_part_set_name"
30409 msgstr ""
30410
30411 #. type: verbatim
30412 #: ../src/guestfs-actions.pod:5707
30413 #, no-wrap
30414 msgid ""
30415 " int\n"
30416 " guestfs_part_set_name (guestfs_h *g,\n"
30417 "                        const char *device,\n"
30418 "                        int partnum,\n"
30419 "                        const char *name);\n"
30420 "\n"
30421 msgstr ""
30422
30423 #. type: =head2
30424 #: ../src/guestfs-actions.pod:5723
30425 msgid "guestfs_part_to_dev"
30426 msgstr ""
30427
30428 #. type: verbatim
30429 #: ../src/guestfs-actions.pod:5725
30430 #, no-wrap
30431 msgid ""
30432 " char *\n"
30433 " guestfs_part_to_dev (guestfs_h *g,\n"
30434 "                      const char *partition);\n"
30435 "\n"
30436 msgstr ""
30437
30438 #. type: textblock
30439 #: ../src/guestfs-actions.pod:5733
30440 msgid ""
30441 "The named partition must exist, for example as a string returned from "
30442 "C<guestfs_list_partitions>."
30443 msgstr ""
30444
30445 #. type: =head2
30446 #: ../src/guestfs-actions.pod:5741
30447 msgid "guestfs_ping_daemon"
30448 msgstr ""
30449
30450 #. type: verbatim
30451 #: ../src/guestfs-actions.pod:5743
30452 #, no-wrap
30453 msgid ""
30454 " int\n"
30455 " guestfs_ping_daemon (guestfs_h *g);\n"
30456 "\n"
30457 msgstr ""
30458
30459 #. type: =head2
30460 #: ../src/guestfs-actions.pod:5755
30461 msgid "guestfs_pread"
30462 msgstr ""
30463
30464 #. type: verbatim
30465 #: ../src/guestfs-actions.pod:5757
30466 #, no-wrap
30467 msgid ""
30468 " char *\n"
30469 " guestfs_pread (guestfs_h *g,\n"
30470 "                const char *path,\n"
30471 "                int count,\n"
30472 "                int64_t offset,\n"
30473 "                size_t *size_r);\n"
30474 "\n"
30475 msgstr ""
30476
30477 #. type: textblock
30478 #: ../src/guestfs-actions.pod:5770
30479 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30480 msgstr ""
30481
30482 #. type: =head2
30483 #: ../src/guestfs-actions.pod:5781
30484 msgid "guestfs_pread_device"
30485 msgstr ""
30486
30487 #. type: verbatim
30488 #: ../src/guestfs-actions.pod:5783
30489 #, no-wrap
30490 msgid ""
30491 " char *\n"
30492 " guestfs_pread_device (guestfs_h *g,\n"
30493 "                       const char *device,\n"
30494 "                       int count,\n"
30495 "                       int64_t offset,\n"
30496 "                       size_t *size_r);\n"
30497 "\n"
30498 msgstr ""
30499
30500 #. type: textblock
30501 #: ../src/guestfs-actions.pod:5796
30502 msgid "See also C<guestfs_pread>."
30503 msgstr ""
30504
30505 #. type: textblock
30506 #: ../src/guestfs-actions.pod:5805
30507 msgid "(Added in 1.5.21)"
30508 msgstr ""
30509
30510 #. type: =head2
30511 #: ../src/guestfs-actions.pod:5807
30512 msgid "guestfs_pvcreate"
30513 msgstr ""
30514
30515 #. type: verbatim
30516 #: ../src/guestfs-actions.pod:5809
30517 #, no-wrap
30518 msgid ""
30519 " int\n"
30520 " guestfs_pvcreate (guestfs_h *g,\n"
30521 "                   const char *device);\n"
30522 "\n"
30523 msgstr ""
30524
30525 #. type: =head2
30526 #: ../src/guestfs-actions.pod:5821
30527 msgid "guestfs_pvremove"
30528 msgstr ""
30529
30530 #. type: verbatim
30531 #: ../src/guestfs-actions.pod:5823
30532 #, no-wrap
30533 msgid ""
30534 " int\n"
30535 " guestfs_pvremove (guestfs_h *g,\n"
30536 "                   const char *device);\n"
30537 "\n"
30538 msgstr ""
30539
30540 #. type: =head2
30541 #: ../src/guestfs-actions.pod:5838
30542 msgid "guestfs_pvresize"
30543 msgstr ""
30544
30545 #. type: verbatim
30546 #: ../src/guestfs-actions.pod:5840
30547 #, no-wrap
30548 msgid ""
30549 " int\n"
30550 " guestfs_pvresize (guestfs_h *g,\n"
30551 "                   const char *device);\n"
30552 "\n"
30553 msgstr ""
30554
30555 #. type: =head2
30556 #: ../src/guestfs-actions.pod:5851
30557 msgid "guestfs_pvresize_size"
30558 msgstr ""
30559
30560 #. type: verbatim
30561 #: ../src/guestfs-actions.pod:5853
30562 #, no-wrap
30563 msgid ""
30564 " int\n"
30565 " guestfs_pvresize_size (guestfs_h *g,\n"
30566 "                        const char *device,\n"
30567 "                        int64_t size);\n"
30568 "\n"
30569 msgstr ""
30570
30571 #. type: textblock
30572 #: ../src/guestfs-actions.pod:5858
30573 msgid ""
30574 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30575 "specify the new size (in bytes) explicitly."
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:5865
30580 msgid "guestfs_pvs"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:5867
30585 #, no-wrap
30586 msgid ""
30587 " char **\n"
30588 " guestfs_pvs (guestfs_h *g);\n"
30589 "\n"
30590 msgstr ""
30591
30592 #. type: textblock
30593 #: ../src/guestfs-actions.pod:5876
30594 msgid "See also C<guestfs_pvs_full>."
30595 msgstr ""
30596
30597 #. type: =head2
30598 #: ../src/guestfs-actions.pod:5884
30599 msgid "guestfs_pvs_full"
30600 msgstr ""
30601
30602 #. type: verbatim
30603 #: ../src/guestfs-actions.pod:5886
30604 #, no-wrap
30605 msgid ""
30606 " struct guestfs_lvm_pv_list *\n"
30607 " guestfs_pvs_full (guestfs_h *g);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: textblock
30612 #: ../src/guestfs-actions.pod:5892
30613 msgid ""
30614 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30615 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30616 msgstr ""
30617
30618 #. type: =head2
30619 #: ../src/guestfs-actions.pod:5898
30620 msgid "guestfs_pvuuid"
30621 msgstr ""
30622
30623 #. type: verbatim
30624 #: ../src/guestfs-actions.pod:5900
30625 #, no-wrap
30626 msgid ""
30627 " char *\n"
30628 " guestfs_pvuuid (guestfs_h *g,\n"
30629 "                 const char *device);\n"
30630 "\n"
30631 msgstr ""
30632
30633 #. type: =head2
30634 #: ../src/guestfs-actions.pod:5911
30635 msgid "guestfs_pwrite"
30636 msgstr ""
30637
30638 #. type: verbatim
30639 #: ../src/guestfs-actions.pod:5913
30640 #, no-wrap
30641 msgid ""
30642 " int\n"
30643 " guestfs_pwrite (guestfs_h *g,\n"
30644 "                 const char *path,\n"
30645 "                 const char *content,\n"
30646 "                 size_t content_size,\n"
30647 "                 int64_t offset);\n"
30648 "\n"
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:5929
30653 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30654 msgstr ""
30655
30656 #. type: =head2
30657 #: ../src/guestfs-actions.pod:5938
30658 msgid "guestfs_pwrite_device"
30659 msgstr ""
30660
30661 #. type: verbatim
30662 #: ../src/guestfs-actions.pod:5940
30663 #, no-wrap
30664 msgid ""
30665 " int\n"
30666 " guestfs_pwrite_device (guestfs_h *g,\n"
30667 "                        const char *device,\n"
30668 "                        const char *content,\n"
30669 "                        size_t content_size,\n"
30670 "                        int64_t offset);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: textblock
30675 #: ../src/guestfs-actions.pod:5955
30676 msgid "See also C<guestfs_pwrite>."
30677 msgstr ""
30678
30679 #. type: textblock
30680 #: ../src/guestfs-actions.pod:5962
30681 msgid "(Added in 1.5.20)"
30682 msgstr ""
30683
30684 #. type: =head2
30685 #: ../src/guestfs-actions.pod:5964
30686 msgid "guestfs_read_file"
30687 msgstr ""
30688
30689 #. type: verbatim
30690 #: ../src/guestfs-actions.pod:5966
30691 #, no-wrap
30692 msgid ""
30693 " char *\n"
30694 " guestfs_read_file (guestfs_h *g,\n"
30695 "                    const char *path,\n"
30696 "                    size_t *size_r);\n"
30697 "\n"
30698 msgstr ""
30699
30700 #. type: textblock
30701 #: ../src/guestfs-actions.pod:5974
30702 msgid ""
30703 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30704 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30705 "function is limited in the total size of file that can be handled."
30706 msgstr ""
30707
30708 #. type: textblock
30709 #: ../src/guestfs-actions.pod:5986
30710 msgid "(Added in 1.0.63)"
30711 msgstr ""
30712
30713 #. type: =head2
30714 #: ../src/guestfs-actions.pod:5988
30715 msgid "guestfs_read_lines"
30716 msgstr ""
30717
30718 #. type: verbatim
30719 #: ../src/guestfs-actions.pod:5990
30720 #, no-wrap
30721 msgid ""
30722 " char **\n"
30723 " guestfs_read_lines (guestfs_h *g,\n"
30724 "                     const char *path);\n"
30725 "\n"
30726 msgstr ""
30727
30728 #. type: textblock
30729 #: ../src/guestfs-actions.pod:5999
30730 msgid ""
30731 "Note that this function cannot correctly handle binary files (specifically, "
30732 "files containing C<\\0> character which is treated as end of line).  For "
30733 "those you need to use the C<guestfs_read_file> function which has a more "
30734 "complex interface."
30735 msgstr ""
30736
30737 #. type: =head2
30738 #: ../src/guestfs-actions.pod:6010
30739 msgid "guestfs_readdir"
30740 msgstr ""
30741
30742 #. type: verbatim
30743 #: ../src/guestfs-actions.pod:6012
30744 #, no-wrap
30745 msgid ""
30746 " struct guestfs_dirent_list *\n"
30747 " guestfs_readdir (guestfs_h *g,\n"
30748 "                  const char *dir);\n"
30749 "\n"
30750 msgstr ""
30751
30752 #. type: textblock
30753 #: ../src/guestfs-actions.pod:6066
30754 msgid ""
30755 "This function is primarily intended for use by programs.  To get a simple "
30756 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30757 "consumption, use C<guestfs_ll>."
30758 msgstr ""
30759
30760 #. type: textblock
30761 #: ../src/guestfs-actions.pod:6070
30762 msgid ""
30763 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30764 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30765 msgstr ""
30766
30767 #. type: =head2
30768 #: ../src/guestfs-actions.pod:6076
30769 msgid "guestfs_readlink"
30770 msgstr ""
30771
30772 #. type: verbatim
30773 #: ../src/guestfs-actions.pod:6078
30774 #, no-wrap
30775 msgid ""
30776 " char *\n"
30777 " guestfs_readlink (guestfs_h *g,\n"
30778 "                   const char *path);\n"
30779 "\n"
30780 msgstr ""
30781
30782 #. type: =head2
30783 #: ../src/guestfs-actions.pod:6089
30784 msgid "guestfs_readlinklist"
30785 msgstr ""
30786
30787 #. type: verbatim
30788 #: ../src/guestfs-actions.pod:6091
30789 #, no-wrap
30790 msgid ""
30791 " char **\n"
30792 " guestfs_readlinklist (guestfs_h *g,\n"
30793 "                       const char *path,\n"
30794 "                       char *const *names);\n"
30795 "\n"
30796 msgstr ""
30797
30798 #. type: =head2
30799 #: ../src/guestfs-actions.pod:6124
30800 msgid "guestfs_realpath"
30801 msgstr ""
30802
30803 #. type: verbatim
30804 #: ../src/guestfs-actions.pod:6126
30805 #, no-wrap
30806 msgid ""
30807 " char *\n"
30808 " guestfs_realpath (guestfs_h *g,\n"
30809 "                   const char *path);\n"
30810 "\n"
30811 msgstr ""
30812
30813 #. type: =head2
30814 #: ../src/guestfs-actions.pod:6138
30815 msgid "guestfs_removexattr"
30816 msgstr ""
30817
30818 #. type: verbatim
30819 #: ../src/guestfs-actions.pod:6140
30820 #, no-wrap
30821 msgid ""
30822 " int\n"
30823 " guestfs_removexattr (guestfs_h *g,\n"
30824 "                      const char *xattr,\n"
30825 "                      const char *path);\n"
30826 "\n"
30827 msgstr ""
30828
30829 #. type: textblock
30830 #: ../src/guestfs-actions.pod:6148
30831 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30832 msgstr ""
30833
30834 #. type: =head2
30835 #: ../src/guestfs-actions.pod:6154
30836 msgid "guestfs_resize2fs"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-actions.pod:6156
30841 #, no-wrap
30842 msgid ""
30843 " int\n"
30844 " guestfs_resize2fs (guestfs_h *g,\n"
30845 "                    const char *device);\n"
30846 "\n"
30847 msgstr ""
30848
30849 #. type: textblock
30850 #: ../src/guestfs-actions.pod:6163
30851 msgid ""
30852 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30853 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30854 "sometimes gives an error about this and sometimes not.  In any case, it is "
30855 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30856 msgstr ""
30857
30858 #. type: =head2
30859 #: ../src/guestfs-actions.pod:6173
30860 msgid "guestfs_resize2fs_M"
30861 msgstr ""
30862
30863 #. type: verbatim
30864 #: ../src/guestfs-actions.pod:6175
30865 #, no-wrap
30866 msgid ""
30867 " int\n"
30868 " guestfs_resize2fs_M (guestfs_h *g,\n"
30869 "                      const char *device);\n"
30870 "\n"
30871 msgstr ""
30872
30873 #. type: textblock
30874 #: ../src/guestfs-actions.pod:6179
30875 msgid ""
30876 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30877 "resized to its minimum size.  This works like the I<-M> option to the "
30878 "C<resize2fs> command."
30879 msgstr ""
30880
30881 #. type: textblock
30882 #: ../src/guestfs-actions.pod:6183
30883 msgid ""
30884 "To get the resulting size of the filesystem you should call "
30885 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30886 "These two numbers, multiplied together, give the resulting size of the "
30887 "minimal filesystem in bytes."
30888 msgstr ""
30889
30890 #. type: =head2
30891 #: ../src/guestfs-actions.pod:6192
30892 msgid "guestfs_resize2fs_size"
30893 msgstr ""
30894
30895 #. type: verbatim
30896 #: ../src/guestfs-actions.pod:6194
30897 #, no-wrap
30898 msgid ""
30899 " int\n"
30900 " guestfs_resize2fs_size (guestfs_h *g,\n"
30901 "                         const char *device,\n"
30902 "                         int64_t size);\n"
30903 "\n"
30904 msgstr ""
30905
30906 #. type: textblock
30907 #: ../src/guestfs-actions.pod:6199
30908 msgid ""
30909 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30910 "to specify the new size (in bytes) explicitly."
30911 msgstr ""
30912
30913 #. type: =head2
30914 #: ../src/guestfs-actions.pod:6206
30915 msgid "guestfs_rm"
30916 msgstr ""
30917
30918 #. type: verbatim
30919 #: ../src/guestfs-actions.pod:6208
30920 #, no-wrap
30921 msgid ""
30922 " int\n"
30923 " guestfs_rm (guestfs_h *g,\n"
30924 "             const char *path);\n"
30925 "\n"
30926 msgstr ""
30927
30928 #. type: =head2
30929 #: ../src/guestfs-actions.pod:6218
30930 msgid "guestfs_rm_rf"
30931 msgstr ""
30932
30933 #. type: verbatim
30934 #: ../src/guestfs-actions.pod:6220
30935 #, no-wrap
30936 msgid ""
30937 " int\n"
30938 " guestfs_rm_rf (guestfs_h *g,\n"
30939 "                const char *path);\n"
30940 "\n"
30941 msgstr ""
30942
30943 #. type: =head2
30944 #: ../src/guestfs-actions.pod:6232
30945 msgid "guestfs_rmdir"
30946 msgstr ""
30947
30948 #. type: verbatim
30949 #: ../src/guestfs-actions.pod:6234
30950 #, no-wrap
30951 msgid ""
30952 " int\n"
30953 " guestfs_rmdir (guestfs_h *g,\n"
30954 "                const char *path);\n"
30955 "\n"
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs-actions.pod:6244
30960 msgid "guestfs_rmmountpoint"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-actions.pod:6246
30965 #, no-wrap
30966 msgid ""
30967 " int\n"
30968 " guestfs_rmmountpoint (guestfs_h *g,\n"
30969 "                       const char *exemptpath);\n"
30970 "\n"
30971 msgstr ""
30972
30973 #. type: textblock
30974 #: ../src/guestfs-actions.pod:6250
30975 msgid ""
30976 "This calls removes a mountpoint that was previously created with "
30977 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30978 msgstr ""
30979
30980 #. type: =head2
30981 #: ../src/guestfs-actions.pod:6258
30982 msgid "guestfs_scrub_device"
30983 msgstr ""
30984
30985 #. type: verbatim
30986 #: ../src/guestfs-actions.pod:6260
30987 #, no-wrap
30988 msgid ""
30989 " int\n"
30990 " guestfs_scrub_device (guestfs_h *g,\n"
30991 "                       const char *device);\n"
30992 "\n"
30993 msgstr ""
30994
30995 #. type: textblock
30996 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
30997 #: ../src/guestfs-actions.pod:6312
30998 msgid "(Added in 1.0.52)"
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:6277
31003 msgid "guestfs_scrub_file"
31004 msgstr ""
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:6279
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_scrub_file (guestfs_h *g,\n"
31012 "                     const char *file);\n"
31013 "\n"
31014 msgstr ""
31015
31016 #. type: =head2
31017 #: ../src/guestfs-actions.pod:6295
31018 msgid "guestfs_scrub_freespace"
31019 msgstr ""
31020
31021 #. type: verbatim
31022 #: ../src/guestfs-actions.pod:6297
31023 #, no-wrap
31024 msgid ""
31025 " int\n"
31026 " guestfs_scrub_freespace (guestfs_h *g,\n"
31027 "                          const char *dir);\n"
31028 "\n"
31029 msgstr ""
31030
31031 #. type: textblock
31032 #: ../src/guestfs-actions.pod:6301
31033 msgid ""
31034 "This command creates the directory C<dir> and then fills it with files until "
31035 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31036 "and deletes them.  The intention is to scrub any free space on the partition "
31037 "containing C<dir>."
31038 msgstr ""
31039
31040 #. type: =head2
31041 #: ../src/guestfs-actions.pod:6314
31042 msgid "guestfs_set_append"
31043 msgstr ""
31044
31045 #. type: verbatim
31046 #: ../src/guestfs-actions.pod:6316
31047 #, no-wrap
31048 msgid ""
31049 " int\n"
31050 " guestfs_set_append (guestfs_h *g,\n"
31051 "                     const char *append);\n"
31052 "\n"
31053 msgstr ""
31054
31055 #. type: =head2
31056 #: ../src/guestfs-actions.pod:6333
31057 msgid "guestfs_set_attach_method"
31058 msgstr ""
31059
31060 #. type: verbatim
31061 #: ../src/guestfs-actions.pod:6335
31062 #, no-wrap
31063 msgid ""
31064 " int\n"
31065 " guestfs_set_attach_method (guestfs_h *g,\n"
31066 "                            const char *attachmethod);\n"
31067 "\n"
31068 msgstr ""
31069
31070 #. type: =head2
31071 #: ../src/guestfs-actions.pod:6363
31072 msgid "guestfs_set_autosync"
31073 msgstr ""
31074
31075 #. type: verbatim
31076 #: ../src/guestfs-actions.pod:6365
31077 #, no-wrap
31078 msgid ""
31079 " int\n"
31080 " guestfs_set_autosync (guestfs_h *g,\n"
31081 "                       int autosync);\n"
31082 "\n"
31083 msgstr ""
31084
31085 #. type: =head2
31086 #: ../src/guestfs-actions.pod:6381
31087 msgid "guestfs_set_direct"
31088 msgstr ""
31089
31090 #. type: verbatim
31091 #: ../src/guestfs-actions.pod:6383
31092 #, no-wrap
31093 msgid ""
31094 " int\n"
31095 " guestfs_set_direct (guestfs_h *g,\n"
31096 "                     int direct);\n"
31097 "\n"
31098 msgstr ""
31099
31100 #. type: textblock
31101 #: ../src/guestfs-actions.pod:6391
31102 msgid ""
31103 "One consequence of this is that log messages aren't caught by the library "
31104 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31105 "stdout."
31106 msgstr ""
31107
31108 #. type: =head2
31109 #: ../src/guestfs-actions.pod:6404
31110 msgid "guestfs_set_e2label"
31111 msgstr ""
31112
31113 #. type: verbatim
31114 #: ../src/guestfs-actions.pod:6406
31115 #, no-wrap
31116 msgid ""
31117 " int\n"
31118 " guestfs_set_e2label (guestfs_h *g,\n"
31119 "                      const char *device,\n"
31120 "                      const char *label);\n"
31121 "\n"
31122 msgstr ""
31123
31124 #. type: textblock
31125 #: ../src/guestfs-actions.pod:6415
31126 msgid ""
31127 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31128 "the existing label on a filesystem."
31129 msgstr ""
31130
31131 #. type: =head2
31132 #: ../src/guestfs-actions.pod:6422
31133 msgid "guestfs_set_e2uuid"
31134 msgstr ""
31135
31136 #. type: verbatim
31137 #: ../src/guestfs-actions.pod:6424
31138 #, no-wrap
31139 msgid ""
31140 " int\n"
31141 " guestfs_set_e2uuid (guestfs_h *g,\n"
31142 "                     const char *device,\n"
31143 "                     const char *uuid);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: textblock
31148 #: ../src/guestfs-actions.pod:6434
31149 msgid ""
31150 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31151 "the existing UUID of a filesystem."
31152 msgstr ""
31153
31154 #. type: =head2
31155 #: ../src/guestfs-actions.pod:6441
31156 msgid "guestfs_set_memsize"
31157 msgstr ""
31158
31159 #. type: verbatim
31160 #: ../src/guestfs-actions.pod:6443
31161 #, no-wrap
31162 msgid ""
31163 " int\n"
31164 " guestfs_set_memsize (guestfs_h *g,\n"
31165 "                      int memsize);\n"
31166 "\n"
31167 msgstr ""
31168
31169 #. type: textblock
31170 #: ../src/guestfs-actions.pod:6447
31171 msgid ""
31172 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31173 "This only has any effect if called before C<guestfs_launch>."
31174 msgstr ""
31175
31176 #. type: =head2
31177 #: ../src/guestfs-actions.pod:6462
31178 msgid "guestfs_set_network"
31179 msgstr ""
31180
31181 #. type: verbatim
31182 #: ../src/guestfs-actions.pod:6464
31183 #, no-wrap
31184 msgid ""
31185 " int\n"
31186 " guestfs_set_network (guestfs_h *g,\n"
31187 "                      int network);\n"
31188 "\n"
31189 msgstr ""
31190
31191 #. type: textblock
31192 #: ../src/guestfs-actions.pod:6474
31193 msgid ""
31194 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31195 "effect."
31196 msgstr ""
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:6481
31200 msgid "guestfs_set_path"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:6483
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_set_path (guestfs_h *g,\n"
31209 "                   const char *searchpath);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: =head2
31214 #: ../src/guestfs-actions.pod:6498
31215 msgid "guestfs_set_pgroup"
31216 msgstr ""
31217
31218 #. type: verbatim
31219 #: ../src/guestfs-actions.pod:6500
31220 #, no-wrap
31221 msgid ""
31222 " int\n"
31223 " guestfs_set_pgroup (guestfs_h *g,\n"
31224 "                     int pgroup);\n"
31225 "\n"
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:6517
31230 msgid "guestfs_set_qemu"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:6519
31235 #, no-wrap
31236 msgid ""
31237 " int\n"
31238 " guestfs_set_qemu (guestfs_h *g,\n"
31239 "                   const char *qemu);\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:6545
31245 msgid "guestfs_set_recovery_proc"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:6547
31250 #, no-wrap
31251 msgid ""
31252 " int\n"
31253 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31254 "                            int recoveryproc);\n"
31255 "\n"
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs-actions.pod:6551
31260 msgid ""
31261 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31262 "not create a recovery process.  The purpose of the recovery process is to "
31263 "stop runaway qemu processes in the case where the main program aborts "
31264 "abruptly."
31265 msgstr ""
31266
31267 #. type: textblock
31268 #: ../src/guestfs-actions.pod:6556
31269 msgid ""
31270 "This only has any effect if called before C<guestfs_launch>, and the default "
31271 "is true."
31272 msgstr ""
31273
31274 #. type: =head2
31275 #: ../src/guestfs-actions.pod:6569
31276 msgid "guestfs_set_selinux"
31277 msgstr ""
31278
31279 #. type: verbatim
31280 #: ../src/guestfs-actions.pod:6571
31281 #, no-wrap
31282 msgid ""
31283 " int\n"
31284 " guestfs_set_selinux (guestfs_h *g,\n"
31285 "                      int selinux);\n"
31286 "\n"
31287 msgstr ""
31288
31289 #. type: =head2
31290 #: ../src/guestfs-actions.pod:6588
31291 msgid "guestfs_set_smp"
31292 msgstr ""
31293
31294 #. type: verbatim
31295 #: ../src/guestfs-actions.pod:6590
31296 #, no-wrap
31297 msgid ""
31298 " int\n"
31299 " guestfs_set_smp (guestfs_h *g,\n"
31300 "                  int smp);\n"
31301 "\n"
31302 msgstr ""
31303
31304 #. type: textblock
31305 #: ../src/guestfs-actions.pod:6598
31306 msgid "This function must be called before C<guestfs_launch>."
31307 msgstr ""
31308
31309 #. type: =head2
31310 #: ../src/guestfs-actions.pod:6604
31311 msgid "guestfs_set_trace"
31312 msgstr ""
31313
31314 #. type: verbatim
31315 #: ../src/guestfs-actions.pod:6606
31316 #, no-wrap
31317 msgid ""
31318 " int\n"
31319 " guestfs_set_trace (guestfs_h *g,\n"
31320 "                    int trace);\n"
31321 "\n"
31322 msgstr ""
31323
31324 #. type: textblock
31325 #: ../src/guestfs-actions.pod:6620
31326 msgid ""
31327 "Trace messages are normally sent to C<stderr>, unless you register a "
31328 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31329 msgstr ""
31330
31331 #. type: =head2
31332 #: ../src/guestfs-actions.pod:6628
31333 msgid "guestfs_set_verbose"
31334 msgstr ""
31335
31336 #. type: verbatim
31337 #: ../src/guestfs-actions.pod:6630
31338 #, no-wrap
31339 msgid ""
31340 " int\n"
31341 " guestfs_set_verbose (guestfs_h *g,\n"
31342 "                      int verbose);\n"
31343 "\n"
31344 msgstr ""
31345
31346 #. type: textblock
31347 #: ../src/guestfs-actions.pod:6639
31348 msgid ""
31349 "Verbose messages are normally sent to C<stderr>, unless you register a "
31350 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31351 msgstr ""
31352
31353 #. type: =head2
31354 #: ../src/guestfs-actions.pod:6647
31355 msgid "guestfs_setcon"
31356 msgstr ""
31357
31358 #. type: verbatim
31359 #: ../src/guestfs-actions.pod:6649
31360 #, no-wrap
31361 msgid ""
31362 " int\n"
31363 " guestfs_setcon (guestfs_h *g,\n"
31364 "                 const char *context);\n"
31365 "\n"
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:6662
31370 msgid "guestfs_setxattr"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:6664
31375 #, no-wrap
31376 msgid ""
31377 " int\n"
31378 " guestfs_setxattr (guestfs_h *g,\n"
31379 "                   const char *xattr,\n"
31380 "                   const char *val,\n"
31381 "                   int vallen,\n"
31382 "                   const char *path);\n"
31383 "\n"
31384 msgstr ""
31385
31386 #. type: textblock
31387 #: ../src/guestfs-actions.pod:6675
31388 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31389 msgstr ""
31390
31391 #. type: =head2
31392 #: ../src/guestfs-actions.pod:6681
31393 msgid "guestfs_sfdisk"
31394 msgstr ""
31395
31396 #. type: verbatim
31397 #: ../src/guestfs-actions.pod:6683
31398 #, no-wrap
31399 msgid ""
31400 " int\n"
31401 " guestfs_sfdisk (guestfs_h *g,\n"
31402 "                 const char *device,\n"
31403 "                 int cyls,\n"
31404 "                 int heads,\n"
31405 "                 int sectors,\n"
31406 "                 char *const *lines);\n"
31407 "\n"
31408 msgstr ""
31409
31410 #. type: textblock
31411 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
31412 #: ../src/guestfs-actions.pod:6769
31413 msgid ""
31414 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31415 "call instead."
31416 msgstr ""
31417
31418 #. type: textblock
31419 #: ../src/guestfs-actions.pod:6718
31420 msgid ""
31421 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31422 msgstr ""
31423
31424 #. type: =head2
31425 #: ../src/guestfs-actions.pod:6728
31426 msgid "guestfs_sfdiskM"
31427 msgstr ""
31428
31429 #. type: verbatim
31430 #: ../src/guestfs-actions.pod:6730
31431 #, no-wrap
31432 msgid ""
31433 " int\n"
31434 " guestfs_sfdiskM (guestfs_h *g,\n"
31435 "                  const char *device,\n"
31436 "                  char *const *lines);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: textblock
31441 #: ../src/guestfs-actions.pod:6742
31442 msgid ""
31443 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31444 "partition sizes are specified in megabytes only (rounded to the nearest "
31445 "cylinder) and you don't need to specify the cyls, heads and sectors "
31446 "parameters which were rarely if ever used anyway."
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../src/guestfs-actions.pod:6748
31451 msgid ""
31452 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31453 "C<guestfs_part_disk>"
31454 msgstr ""
31455
31456 #. type: =head2
31457 #: ../src/guestfs-actions.pod:6758
31458 msgid "guestfs_sfdisk_N"
31459 msgstr ""
31460
31461 #. type: verbatim
31462 #: ../src/guestfs-actions.pod:6760
31463 #, no-wrap
31464 msgid ""
31465 " int\n"
31466 " guestfs_sfdisk_N (guestfs_h *g,\n"
31467 "                   const char *device,\n"
31468 "                   int partnum,\n"
31469 "                   int cyls,\n"
31470 "                   int heads,\n"
31471 "                   int sectors,\n"
31472 "                   const char *line);\n"
31473 "\n"
31474 msgstr ""
31475
31476 #. type: textblock
31477 #: ../src/guestfs-actions.pod:6779
31478 msgid ""
31479 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31480 "for the cyls/heads/sectors parameters."
31481 msgstr ""
31482
31483 #. type: textblock
31484 #: ../src/guestfs-actions.pod:6782
31485 msgid "See also: C<guestfs_part_add>"
31486 msgstr ""
31487
31488 #. type: =head2
31489 #: ../src/guestfs-actions.pod:6791
31490 msgid "guestfs_sfdisk_disk_geometry"
31491 msgstr ""
31492
31493 #. type: verbatim
31494 #: ../src/guestfs-actions.pod:6793
31495 #, no-wrap
31496 msgid ""
31497 " char *\n"
31498 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31499 "                               const char *device);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: textblock
31504 #: ../src/guestfs-actions.pod:6797
31505 msgid ""
31506 "This displays the disk geometry of C<device> read from the partition table.  "
31507 "Especially in the case where the underlying block device has been resized, "
31508 "this can be different from the kernel's idea of the geometry (see "
31509 "C<guestfs_sfdisk_kernel_geometry>)."
31510 msgstr ""
31511
31512 #. type: =head2
31513 #: ../src/guestfs-actions.pod:6810
31514 msgid "guestfs_sfdisk_kernel_geometry"
31515 msgstr ""
31516
31517 #. type: verbatim
31518 #: ../src/guestfs-actions.pod:6812
31519 #, no-wrap
31520 msgid ""
31521 " char *\n"
31522 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31523 "                                 const char *device);\n"
31524 "\n"
31525 msgstr ""
31526
31527 #. type: =head2
31528 #: ../src/guestfs-actions.pod:6826
31529 msgid "guestfs_sfdisk_l"
31530 msgstr ""
31531
31532 #. type: verbatim
31533 #: ../src/guestfs-actions.pod:6828
31534 #, no-wrap
31535 msgid ""
31536 " char *\n"
31537 " guestfs_sfdisk_l (guestfs_h *g,\n"
31538 "                   const char *device);\n"
31539 "\n"
31540 msgstr ""
31541
31542 #. type: textblock
31543 #: ../src/guestfs-actions.pod:6832
31544 msgid ""
31545 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31546 "call instead."
31547 msgstr ""
31548
31549 #. type: textblock
31550 #: ../src/guestfs-actions.pod:6843
31551 msgid "See also: C<guestfs_part_list>"
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:6850
31556 msgid "guestfs_sh"
31557 msgstr ""
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:6852
31561 #, no-wrap
31562 msgid ""
31563 " char *\n"
31564 " guestfs_sh (guestfs_h *g,\n"
31565 "             const char *command);\n"
31566 "\n"
31567 msgstr ""
31568
31569 #. type: textblock
31570 #: ../src/guestfs-actions.pod:6859
31571 msgid "This is like C<guestfs_command>, but passes the command to:"
31572 msgstr ""
31573
31574 #. type: textblock
31575 #: ../src/guestfs-actions.pod:6867
31576 msgid "All the provisos about C<guestfs_command> apply to this call."
31577 msgstr ""
31578
31579 #. type: =head2
31580 #: ../src/guestfs-actions.pod:6874
31581 msgid "guestfs_sh_lines"
31582 msgstr ""
31583
31584 #. type: verbatim
31585 #: ../src/guestfs-actions.pod:6876
31586 #, no-wrap
31587 msgid ""
31588 " char **\n"
31589 " guestfs_sh_lines (guestfs_h *g,\n"
31590 "                   const char *command);\n"
31591 "\n"
31592 msgstr ""
31593
31594 #. type: textblock
31595 #: ../src/guestfs-actions.pod:6880
31596 msgid ""
31597 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31598 "lines."
31599 msgstr ""
31600
31601 #. type: textblock
31602 #: ../src/guestfs-actions.pod:6883
31603 msgid "See also: C<guestfs_command_lines>"
31604 msgstr ""
31605
31606 #. type: =head2
31607 #: ../src/guestfs-actions.pod:6891
31608 msgid "guestfs_sleep"
31609 msgstr ""
31610
31611 #. type: verbatim
31612 #: ../src/guestfs-actions.pod:6893
31613 #, no-wrap
31614 msgid ""
31615 " int\n"
31616 " guestfs_sleep (guestfs_h *g,\n"
31617 "                int secs);\n"
31618 "\n"
31619 msgstr ""
31620
31621 #. type: textblock
31622 #: ../src/guestfs-actions.pod:6901
31623 msgid "(Added in 1.0.41)"
31624 msgstr ""
31625
31626 #. type: =head2
31627 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
31628 msgid "guestfs_stat"
31629 msgstr ""
31630
31631 #. type: verbatim
31632 #: ../src/guestfs-actions.pod:6905
31633 #, no-wrap
31634 msgid ""
31635 " struct guestfs_stat *\n"
31636 " guestfs_stat (guestfs_h *g,\n"
31637 "               const char *path);\n"
31638 "\n"
31639 msgstr ""
31640
31641 #. type: =head2
31642 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
31643 msgid "guestfs_statvfs"
31644 msgstr ""
31645
31646 #. type: verbatim
31647 #: ../src/guestfs-actions.pod:6921
31648 #, no-wrap
31649 msgid ""
31650 " struct guestfs_statvfs *\n"
31651 " guestfs_statvfs (guestfs_h *g,\n"
31652 "                  const char *path);\n"
31653 "\n"
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs-actions.pod:6931
31658 msgid ""
31659 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31660 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31661 msgstr ""
31662
31663 #. type: =head2
31664 #: ../src/guestfs-actions.pod:6937
31665 msgid "guestfs_strings"
31666 msgstr ""
31667
31668 #. type: verbatim
31669 #: ../src/guestfs-actions.pod:6939
31670 #, no-wrap
31671 msgid ""
31672 " char **\n"
31673 " guestfs_strings (guestfs_h *g,\n"
31674 "                  const char *path);\n"
31675 "\n"
31676 msgstr ""
31677
31678 #. type: =head2
31679 #: ../src/guestfs-actions.pod:6955
31680 msgid "guestfs_strings_e"
31681 msgstr ""
31682
31683 #. type: verbatim
31684 #: ../src/guestfs-actions.pod:6957
31685 #, no-wrap
31686 msgid ""
31687 " char **\n"
31688 " guestfs_strings_e (guestfs_h *g,\n"
31689 "                    const char *encoding,\n"
31690 "                    const char *path);\n"
31691 "\n"
31692 msgstr ""
31693
31694 #. type: textblock
31695 #: ../src/guestfs-actions.pod:6962
31696 msgid ""
31697 "This is like the C<guestfs_strings> command, but allows you to specify the "
31698 "encoding of strings that are looked for in the source file C<path>."
31699 msgstr ""
31700
31701 #. type: textblock
31702 #: ../src/guestfs-actions.pod:6972
31703 msgid ""
31704 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31705 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31706 msgstr ""
31707
31708 #. type: =head2
31709 #: ../src/guestfs-actions.pod:7010
31710 msgid "guestfs_swapoff_device"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs-actions.pod:7012
31715 #, no-wrap
31716 msgid ""
31717 " int\n"
31718 " guestfs_swapoff_device (guestfs_h *g,\n"
31719 "                         const char *device);\n"
31720 "\n"
31721 msgstr ""
31722
31723 #. type: textblock
31724 #: ../src/guestfs-actions.pod:7016
31725 msgid ""
31726 "This command disables the libguestfs appliance swap device or partition "
31727 "named C<device>.  See C<guestfs_swapon_device>."
31728 msgstr ""
31729
31730 #. type: =head2
31731 #: ../src/guestfs-actions.pod:7024
31732 msgid "guestfs_swapoff_file"
31733 msgstr ""
31734
31735 #. type: verbatim
31736 #: ../src/guestfs-actions.pod:7026
31737 #, no-wrap
31738 msgid ""
31739 " int\n"
31740 " guestfs_swapoff_file (guestfs_h *g,\n"
31741 "                       const char *file);\n"
31742 "\n"
31743 msgstr ""
31744
31745 #. type: =head2
31746 #: ../src/guestfs-actions.pod:7036
31747 msgid "guestfs_swapoff_label"
31748 msgstr ""
31749
31750 #. type: verbatim
31751 #: ../src/guestfs-actions.pod:7038
31752 #, no-wrap
31753 msgid ""
31754 " int\n"
31755 " guestfs_swapoff_label (guestfs_h *g,\n"
31756 "                        const char *label);\n"
31757 "\n"
31758 msgstr ""
31759
31760 #. type: =head2
31761 #: ../src/guestfs-actions.pod:7049
31762 msgid "guestfs_swapoff_uuid"
31763 msgstr ""
31764
31765 #. type: verbatim
31766 #: ../src/guestfs-actions.pod:7051
31767 #, no-wrap
31768 msgid ""
31769 " int\n"
31770 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31771 "                       const char *uuid);\n"
31772 "\n"
31773 msgstr ""
31774
31775 #. type: =head2
31776 #: ../src/guestfs-actions.pod:7062
31777 msgid "guestfs_swapon_device"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:7064
31782 #, no-wrap
31783 msgid ""
31784 " int\n"
31785 " guestfs_swapon_device (guestfs_h *g,\n"
31786 "                        const char *device);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs-actions.pod:7068
31792 msgid ""
31793 "This command enables the libguestfs appliance to use the swap device or "
31794 "partition named C<device>.  The increased memory is made available for all "
31795 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31796 msgstr ""
31797
31798 #. type: =head2
31799 #: ../src/guestfs-actions.pod:7084
31800 msgid "guestfs_swapon_file"
31801 msgstr ""
31802
31803 #. type: verbatim
31804 #: ../src/guestfs-actions.pod:7086
31805 #, no-wrap
31806 msgid ""
31807 " int\n"
31808 " guestfs_swapon_file (guestfs_h *g,\n"
31809 "                      const char *file);\n"
31810 "\n"
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs-actions.pod:7090
31815 msgid ""
31816 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31817 "notes."
31818 msgstr ""
31819
31820 #. type: =head2
31821 #: ../src/guestfs-actions.pod:7097
31822 msgid "guestfs_swapon_label"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs-actions.pod:7099
31827 #, no-wrap
31828 msgid ""
31829 " int\n"
31830 " guestfs_swapon_label (guestfs_h *g,\n"
31831 "                       const char *label);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs-actions.pod:7103
31837 msgid ""
31838 "This command enables swap to a labeled swap partition.  See "
31839 "C<guestfs_swapon_device> for other notes."
31840 msgstr ""
31841
31842 #. type: =head2
31843 #: ../src/guestfs-actions.pod:7110
31844 msgid "guestfs_swapon_uuid"
31845 msgstr ""
31846
31847 #. type: verbatim
31848 #: ../src/guestfs-actions.pod:7112
31849 #, no-wrap
31850 msgid ""
31851 " int\n"
31852 " guestfs_swapon_uuid (guestfs_h *g,\n"
31853 "                      const char *uuid);\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs-actions.pod:7116
31859 msgid ""
31860 "This command enables swap to a swap partition with the given UUID.  See "
31861 "C<guestfs_swapon_device> for other notes."
31862 msgstr ""
31863
31864 #. type: =head2
31865 #: ../src/guestfs-actions.pod:7123
31866 msgid "guestfs_sync"
31867 msgstr ""
31868
31869 #. type: verbatim
31870 #: ../src/guestfs-actions.pod:7125
31871 #, no-wrap
31872 msgid ""
31873 " int\n"
31874 " guestfs_sync (guestfs_h *g);\n"
31875 "\n"
31876 msgstr ""
31877
31878 #. type: =head2
31879 #: ../src/guestfs-actions.pod:7138
31880 msgid "guestfs_tail"
31881 msgstr ""
31882
31883 #. type: verbatim
31884 #: ../src/guestfs-actions.pod:7140
31885 #, no-wrap
31886 msgid ""
31887 " char **\n"
31888 " guestfs_tail (guestfs_h *g,\n"
31889 "               const char *path);\n"
31890 "\n"
31891 msgstr ""
31892
31893 #. type: =head2
31894 #: ../src/guestfs-actions.pod:7156
31895 msgid "guestfs_tail_n"
31896 msgstr ""
31897
31898 #. type: verbatim
31899 #: ../src/guestfs-actions.pod:7158
31900 #, no-wrap
31901 msgid ""
31902 " char **\n"
31903 " guestfs_tail_n (guestfs_h *g,\n"
31904 "                 int nrlines,\n"
31905 "                 const char *path);\n"
31906 "\n"
31907 msgstr ""
31908
31909 #. type: =head2
31910 #: ../src/guestfs-actions.pod:7180
31911 msgid "guestfs_tar_in"
31912 msgstr ""
31913
31914 #. type: verbatim
31915 #: ../src/guestfs-actions.pod:7182
31916 #, no-wrap
31917 msgid ""
31918 " int\n"
31919 " guestfs_tar_in (guestfs_h *g,\n"
31920 "                 const char *tarfile,\n"
31921 "                 const char *directory);\n"
31922 "\n"
31923 msgstr ""
31924
31925 #. type: textblock
31926 #: ../src/guestfs-actions.pod:7190
31927 msgid ""
31928 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31929 msgstr ""
31930
31931 #. type: textblock
31932 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
31933 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
31934 msgid "(Added in 1.0.3)"
31935 msgstr ""
31936
31937 #. type: =head2
31938 #: ../src/guestfs-actions.pod:7197
31939 msgid "guestfs_tar_out"
31940 msgstr ""
31941
31942 #. type: verbatim
31943 #: ../src/guestfs-actions.pod:7199
31944 #, no-wrap
31945 msgid ""
31946 " int\n"
31947 " guestfs_tar_out (guestfs_h *g,\n"
31948 "                  const char *directory,\n"
31949 "                  const char *tarfile);\n"
31950 "\n"
31951 msgstr ""
31952
31953 #. type: textblock
31954 #: ../src/guestfs-actions.pod:7207
31955 msgid ""
31956 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31957 "C<guestfs_txz_out>."
31958 msgstr ""
31959
31960 #. type: =head2
31961 #: ../src/guestfs-actions.pod:7214
31962 msgid "guestfs_tgz_in"
31963 msgstr ""
31964
31965 #. type: verbatim
31966 #: ../src/guestfs-actions.pod:7216
31967 #, no-wrap
31968 msgid ""
31969 " int\n"
31970 " guestfs_tgz_in (guestfs_h *g,\n"
31971 "                 const char *tarball,\n"
31972 "                 const char *directory);\n"
31973 "\n"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs-actions.pod:7224
31978 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31979 msgstr ""
31980
31981 #. type: =head2
31982 #: ../src/guestfs-actions.pod:7230
31983 msgid "guestfs_tgz_out"
31984 msgstr ""
31985
31986 #. type: verbatim
31987 #: ../src/guestfs-actions.pod:7232
31988 #, no-wrap
31989 msgid ""
31990 " int\n"
31991 " guestfs_tgz_out (guestfs_h *g,\n"
31992 "                  const char *directory,\n"
31993 "                  const char *tarball);\n"
31994 "\n"
31995 msgstr ""
31996
31997 #. type: textblock
31998 #: ../src/guestfs-actions.pod:7240
31999 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32000 msgstr ""
32001
32002 #. type: =head2
32003 #: ../src/guestfs-actions.pod:7246
32004 msgid "guestfs_touch"
32005 msgstr ""
32006
32007 #. type: verbatim
32008 #: ../src/guestfs-actions.pod:7248
32009 #, no-wrap
32010 msgid ""
32011 " int\n"
32012 " guestfs_touch (guestfs_h *g,\n"
32013 "                const char *path);\n"
32014 "\n"
32015 msgstr ""
32016
32017 #. type: =head2
32018 #: ../src/guestfs-actions.pod:7263
32019 msgid "guestfs_truncate"
32020 msgstr ""
32021
32022 #. type: verbatim
32023 #: ../src/guestfs-actions.pod:7265
32024 #, no-wrap
32025 msgid ""
32026 " int\n"
32027 " guestfs_truncate (guestfs_h *g,\n"
32028 "                   const char *path);\n"
32029 "\n"
32030 msgstr ""
32031
32032 #. type: =head2
32033 #: ../src/guestfs-actions.pod:7276
32034 msgid "guestfs_truncate_size"
32035 msgstr ""
32036
32037 #. type: verbatim
32038 #: ../src/guestfs-actions.pod:7278
32039 #, no-wrap
32040 msgid ""
32041 " int\n"
32042 " guestfs_truncate_size (guestfs_h *g,\n"
32043 "                        const char *path,\n"
32044 "                        int64_t size);\n"
32045 "\n"
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs-actions.pod:7286
32050 msgid ""
32051 "If the current file size is less than C<size> then the file is extended to "
32052 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32053 "blocks are not allocated for the file until you write to it).  To create a "
32054 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32055 msgstr ""
32056
32057 #. type: =head2
32058 #: ../src/guestfs-actions.pod:7296
32059 msgid "guestfs_tune2fs_l"
32060 msgstr ""
32061
32062 #. type: verbatim
32063 #: ../src/guestfs-actions.pod:7298
32064 #, no-wrap
32065 msgid ""
32066 " char **\n"
32067 " guestfs_tune2fs_l (guestfs_h *g,\n"
32068 "                    const char *device);\n"
32069 "\n"
32070 msgstr ""
32071
32072 #. type: =head2
32073 #: ../src/guestfs-actions.pod:7318
32074 msgid "guestfs_txz_in"
32075 msgstr ""
32076
32077 #. type: verbatim
32078 #: ../src/guestfs-actions.pod:7320
32079 #, no-wrap
32080 msgid ""
32081 " int\n"
32082 " guestfs_txz_in (guestfs_h *g,\n"
32083 "                 const char *tarball,\n"
32084 "                 const char *directory);\n"
32085 "\n"
32086 msgstr ""
32087
32088 #. type: =head2
32089 #: ../src/guestfs-actions.pod:7332
32090 msgid "guestfs_txz_out"
32091 msgstr ""
32092
32093 #. type: verbatim
32094 #: ../src/guestfs-actions.pod:7334
32095 #, no-wrap
32096 msgid ""
32097 " int\n"
32098 " guestfs_txz_out (guestfs_h *g,\n"
32099 "                  const char *directory,\n"
32100 "                  const char *tarball);\n"
32101 "\n"
32102 msgstr ""
32103
32104 #. type: =head2
32105 #: ../src/guestfs-actions.pod:7346
32106 msgid "guestfs_umask"
32107 msgstr ""
32108
32109 #. type: verbatim
32110 #: ../src/guestfs-actions.pod:7348
32111 #, no-wrap
32112 msgid ""
32113 " int\n"
32114 " guestfs_umask (guestfs_h *g,\n"
32115 "                int mask);\n"
32116 "\n"
32117 msgstr ""
32118
32119 #. type: textblock
32120 #: ../src/guestfs-actions.pod:7364
32121 msgid ""
32122 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32123 "C<guestfs_mkdir>."
32124 msgstr ""
32125
32126 #. type: =head2
32127 #: ../src/guestfs-actions.pod:7373
32128 msgid "guestfs_umount"
32129 msgstr ""
32130
32131 #. type: verbatim
32132 #: ../src/guestfs-actions.pod:7375
32133 #, no-wrap
32134 msgid ""
32135 " int\n"
32136 " guestfs_umount (guestfs_h *g,\n"
32137 "                 const char *pathordevice);\n"
32138 "\n"
32139 msgstr ""
32140
32141 #. type: =head2
32142 #: ../src/guestfs-actions.pod:7387
32143 msgid "guestfs_umount_all"
32144 msgstr ""
32145
32146 #. type: verbatim
32147 #: ../src/guestfs-actions.pod:7389
32148 #, no-wrap
32149 msgid ""
32150 " int\n"
32151 " guestfs_umount_all (guestfs_h *g);\n"
32152 "\n"
32153 msgstr ""
32154
32155 #. type: =head2
32156 #: ../src/guestfs-actions.pod:7400
32157 msgid "guestfs_upload"
32158 msgstr ""
32159
32160 #. type: verbatim
32161 #: ../src/guestfs-actions.pod:7402
32162 #, no-wrap
32163 msgid ""
32164 " int\n"
32165 " guestfs_upload (guestfs_h *g,\n"
32166 "                 const char *filename,\n"
32167 "                 const char *remotefilename);\n"
32168 "\n"
32169 msgstr ""
32170
32171 #. type: textblock
32172 #: ../src/guestfs-actions.pod:7412
32173 msgid "See also C<guestfs_download>."
32174 msgstr ""
32175
32176 #. type: =head2
32177 #: ../src/guestfs-actions.pod:7423
32178 msgid "guestfs_upload_offset"
32179 msgstr ""
32180
32181 #. type: verbatim
32182 #: ../src/guestfs-actions.pod:7425
32183 #, no-wrap
32184 msgid ""
32185 " int\n"
32186 " guestfs_upload_offset (guestfs_h *g,\n"
32187 "                        const char *filename,\n"
32188 "                        const char *remotefilename,\n"
32189 "                        int64_t offset);\n"
32190 "\n"
32191 msgstr ""
32192
32193 #. type: textblock
32194 #: ../src/guestfs-actions.pod:7441
32195 msgid ""
32196 "Note that there is no limit on the amount of data that can be uploaded with "
32197 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32198 "full amount unless an error occurs."
32199 msgstr ""
32200
32201 #. type: textblock
32202 #: ../src/guestfs-actions.pod:7446
32203 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32204 msgstr ""
32205
32206 #. type: =head2
32207 #: ../src/guestfs-actions.pod:7457
32208 msgid "guestfs_utimens"
32209 msgstr ""
32210
32211 #. type: verbatim
32212 #: ../src/guestfs-actions.pod:7459
32213 #, no-wrap
32214 msgid ""
32215 " int\n"
32216 " guestfs_utimens (guestfs_h *g,\n"
32217 "                  const char *path,\n"
32218 "                  int64_t atsecs,\n"
32219 "                  int64_t atnsecs,\n"
32220 "                  int64_t mtsecs,\n"
32221 "                  int64_t mtnsecs);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: =head2
32226 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
32227 msgid "guestfs_version"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-actions.pod:7490
32232 #, no-wrap
32233 msgid ""
32234 " struct guestfs_version *\n"
32235 " guestfs_version (guestfs_h *g);\n"
32236 "\n"
32237 msgstr ""
32238
32239 #. type: textblock
32240 #: ../src/guestfs-actions.pod:7518
32241 msgid ""
32242 "I<Note:> Don't use this call to test for availability of features.  In "
32243 "enterprise distributions we backport features from later versions into "
32244 "earlier versions, making this an unreliable way to test for features.  Use "
32245 "C<guestfs_available> instead."
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs-actions.pod:7524
32250 msgid ""
32251 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32252 "error.  I<The caller must call C<guestfs_free_version> after use>."
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs-actions.pod:7528
32257 msgid "(Added in 1.0.58)"
32258 msgstr ""
32259
32260 #. type: =head2
32261 #: ../src/guestfs-actions.pod:7530
32262 msgid "guestfs_vfs_label"
32263 msgstr ""
32264
32265 #. type: verbatim
32266 #: ../src/guestfs-actions.pod:7532
32267 #, no-wrap
32268 msgid ""
32269 " char *\n"
32270 " guestfs_vfs_label (guestfs_h *g,\n"
32271 "                    const char *device);\n"
32272 "\n"
32273 msgstr ""
32274
32275 #. type: textblock
32276 #: ../src/guestfs-actions.pod:7541
32277 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32278 msgstr ""
32279
32280 #. type: textblock
32281 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
32282 msgid "(Added in 1.3.18)"
32283 msgstr ""
32284
32285 #. type: =head2
32286 #: ../src/guestfs-actions.pod:7548
32287 msgid "guestfs_vfs_type"
32288 msgstr ""
32289
32290 #. type: verbatim
32291 #: ../src/guestfs-actions.pod:7550
32292 #, no-wrap
32293 msgid ""
32294 " char *\n"
32295 " guestfs_vfs_type (guestfs_h *g,\n"
32296 "                   const char *device);\n"
32297 "\n"
32298 msgstr ""
32299
32300 #. type: =head2
32301 #: ../src/guestfs-actions.pod:7567
32302 msgid "guestfs_vfs_uuid"
32303 msgstr ""
32304
32305 #. type: verbatim
32306 #: ../src/guestfs-actions.pod:7569
32307 #, no-wrap
32308 msgid ""
32309 " char *\n"
32310 " guestfs_vfs_uuid (guestfs_h *g,\n"
32311 "                   const char *device);\n"
32312 "\n"
32313 msgstr ""
32314
32315 #. type: textblock
32316 #: ../src/guestfs-actions.pod:7578
32317 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32318 msgstr ""
32319
32320 #. type: =head2
32321 #: ../src/guestfs-actions.pod:7585
32322 msgid "guestfs_vg_activate"
32323 msgstr ""
32324
32325 #. type: verbatim
32326 #: ../src/guestfs-actions.pod:7587
32327 #, no-wrap
32328 msgid ""
32329 " int\n"
32330 " guestfs_vg_activate (guestfs_h *g,\n"
32331 "                      int activate,\n"
32332 "                      char *const *volgroups);\n"
32333 "\n"
32334 msgstr ""
32335
32336 #. type: =head2
32337 #: ../src/guestfs-actions.pod:7604
32338 msgid "guestfs_vg_activate_all"
32339 msgstr ""
32340
32341 #. type: verbatim
32342 #: ../src/guestfs-actions.pod:7606
32343 #, no-wrap
32344 msgid ""
32345 " int\n"
32346 " guestfs_vg_activate_all (guestfs_h *g,\n"
32347 "                          int activate);\n"
32348 "\n"
32349 msgstr ""
32350
32351 #. type: =head2
32352 #: ../src/guestfs-actions.pod:7619
32353 msgid "guestfs_vgcreate"
32354 msgstr ""
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-actions.pod:7621
32358 #, no-wrap
32359 msgid ""
32360 " int\n"
32361 " guestfs_vgcreate (guestfs_h *g,\n"
32362 "                   const char *volgroup,\n"
32363 "                   char *const *physvols);\n"
32364 "\n"
32365 msgstr ""
32366
32367 #. type: =head2
32368 #: ../src/guestfs-actions.pod:7633
32369 msgid "guestfs_vglvuuids"
32370 msgstr ""
32371
32372 #. type: verbatim
32373 #: ../src/guestfs-actions.pod:7635
32374 #, no-wrap
32375 msgid ""
32376 " char **\n"
32377 " guestfs_vglvuuids (guestfs_h *g,\n"
32378 "                    const char *vgname);\n"
32379 "\n"
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs-actions.pod:7642
32384 msgid ""
32385 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32386 "associate logical volumes and volume groups."
32387 msgstr ""
32388
32389 #. type: textblock
32390 #: ../src/guestfs-actions.pod:7645
32391 msgid "See also C<guestfs_vgpvuuids>."
32392 msgstr ""
32393
32394 #. type: =head2
32395 #: ../src/guestfs-actions.pod:7653
32396 msgid "guestfs_vgpvuuids"
32397 msgstr ""
32398
32399 #. type: verbatim
32400 #: ../src/guestfs-actions.pod:7655
32401 #, no-wrap
32402 msgid ""
32403 " char **\n"
32404 " guestfs_vgpvuuids (guestfs_h *g,\n"
32405 "                    const char *vgname);\n"
32406 "\n"
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../src/guestfs-actions.pod:7662
32411 msgid ""
32412 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32413 "associate physical volumes and volume groups."
32414 msgstr ""
32415
32416 #. type: textblock
32417 #: ../src/guestfs-actions.pod:7665
32418 msgid "See also C<guestfs_vglvuuids>."
32419 msgstr ""
32420
32421 #. type: =head2
32422 #: ../src/guestfs-actions.pod:7673
32423 msgid "guestfs_vgremove"
32424 msgstr ""
32425
32426 #. type: verbatim
32427 #: ../src/guestfs-actions.pod:7675
32428 #, no-wrap
32429 msgid ""
32430 " int\n"
32431 " guestfs_vgremove (guestfs_h *g,\n"
32432 "                   const char *vgname);\n"
32433 "\n"
32434 msgstr ""
32435
32436 #. type: =head2
32437 #: ../src/guestfs-actions.pod:7688
32438 msgid "guestfs_vgrename"
32439 msgstr ""
32440
32441 #. type: verbatim
32442 #: ../src/guestfs-actions.pod:7690
32443 #, no-wrap
32444 msgid ""
32445 " int\n"
32446 " guestfs_vgrename (guestfs_h *g,\n"
32447 "                   const char *volgroup,\n"
32448 "                   const char *newvolgroup);\n"
32449 "\n"
32450 msgstr ""
32451
32452 #. type: =head2
32453 #: ../src/guestfs-actions.pod:7701
32454 msgid "guestfs_vgs"
32455 msgstr ""
32456
32457 #. type: verbatim
32458 #: ../src/guestfs-actions.pod:7703
32459 #, no-wrap
32460 msgid ""
32461 " char **\n"
32462 " guestfs_vgs (guestfs_h *g);\n"
32463 "\n"
32464 msgstr ""
32465
32466 #. type: textblock
32467 #: ../src/guestfs-actions.pod:7712
32468 msgid "See also C<guestfs_vgs_full>."
32469 msgstr ""
32470
32471 #. type: =head2
32472 #: ../src/guestfs-actions.pod:7720
32473 msgid "guestfs_vgs_full"
32474 msgstr ""
32475
32476 #. type: verbatim
32477 #: ../src/guestfs-actions.pod:7722
32478 #, no-wrap
32479 msgid ""
32480 " struct guestfs_lvm_vg_list *\n"
32481 " guestfs_vgs_full (guestfs_h *g);\n"
32482 "\n"
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs-actions.pod:7728
32487 msgid ""
32488 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32489 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32490 msgstr ""
32491
32492 #. type: =head2
32493 #: ../src/guestfs-actions.pod:7734
32494 msgid "guestfs_vgscan"
32495 msgstr ""
32496
32497 #. type: verbatim
32498 #: ../src/guestfs-actions.pod:7736
32499 #, no-wrap
32500 msgid ""
32501 " int\n"
32502 " guestfs_vgscan (guestfs_h *g);\n"
32503 "\n"
32504 msgstr ""
32505
32506 #. type: =head2
32507 #: ../src/guestfs-actions.pod:7746
32508 msgid "guestfs_vguuid"
32509 msgstr ""
32510
32511 #. type: verbatim
32512 #: ../src/guestfs-actions.pod:7748
32513 #, no-wrap
32514 msgid ""
32515 " char *\n"
32516 " guestfs_vguuid (guestfs_h *g,\n"
32517 "                 const char *vgname);\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: =head2
32522 #: ../src/guestfs-actions.pod:7759
32523 msgid "guestfs_wait_ready"
32524 msgstr ""
32525
32526 #. type: verbatim
32527 #: ../src/guestfs-actions.pod:7761
32528 #, no-wrap
32529 msgid ""
32530 " int\n"
32531 " guestfs_wait_ready (guestfs_h *g);\n"
32532 "\n"
32533 msgstr ""
32534
32535 #. type: textblock
32536 #: ../src/guestfs-actions.pod:7764
32537 msgid ""
32538 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32539 "instead."
32540 msgstr ""
32541
32542 #. type: textblock
32543 #: ../src/guestfs-actions.pod:7771
32544 msgid "This function is a no op."
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs-actions.pod:7773
32549 msgid ""
32550 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32551 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32552 "is no longer necessary because C<guestfs_launch> now does the waiting."
32553 msgstr ""
32554
32555 #. type: textblock
32556 #: ../src/guestfs-actions.pod:7778
32557 msgid ""
32558 "If you see any calls to this function in code then you can just remove them, "
32559 "unless you want to retain compatibility with older versions of the API."
32560 msgstr ""
32561
32562 #. type: =head2
32563 #: ../src/guestfs-actions.pod:7786
32564 msgid "guestfs_wc_c"
32565 msgstr ""
32566
32567 #. type: verbatim
32568 #: ../src/guestfs-actions.pod:7788
32569 #, no-wrap
32570 msgid ""
32571 " int\n"
32572 " guestfs_wc_c (guestfs_h *g,\n"
32573 "               const char *path);\n"
32574 "\n"
32575 msgstr ""
32576
32577 #. type: =head2
32578 #: ../src/guestfs-actions.pod:7799
32579 msgid "guestfs_wc_l"
32580 msgstr ""
32581
32582 #. type: verbatim
32583 #: ../src/guestfs-actions.pod:7801
32584 #, no-wrap
32585 msgid ""
32586 " int\n"
32587 " guestfs_wc_l (guestfs_h *g,\n"
32588 "               const char *path);\n"
32589 "\n"
32590 msgstr ""
32591
32592 #. type: =head2
32593 #: ../src/guestfs-actions.pod:7812
32594 msgid "guestfs_wc_w"
32595 msgstr ""
32596
32597 #. type: verbatim
32598 #: ../src/guestfs-actions.pod:7814
32599 #, no-wrap
32600 msgid ""
32601 " int\n"
32602 " guestfs_wc_w (guestfs_h *g,\n"
32603 "               const char *path);\n"
32604 "\n"
32605 msgstr ""
32606
32607 #. type: =head2
32608 #: ../src/guestfs-actions.pod:7825
32609 msgid "guestfs_write"
32610 msgstr ""
32611
32612 #. type: verbatim
32613 #: ../src/guestfs-actions.pod:7827
32614 #, no-wrap
32615 msgid ""
32616 " int\n"
32617 " guestfs_write (guestfs_h *g,\n"
32618 "                const char *path,\n"
32619 "                const char *content,\n"
32620 "                size_t content_size);\n"
32621 "\n"
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs-actions.pod:7836
32626 msgid "See also C<guestfs_write_append>."
32627 msgstr ""
32628
32629 #. type: =head2
32630 #: ../src/guestfs-actions.pod:7845
32631 msgid "guestfs_write_append"
32632 msgstr ""
32633
32634 #. type: verbatim
32635 #: ../src/guestfs-actions.pod:7847
32636 #, no-wrap
32637 msgid ""
32638 " int\n"
32639 " guestfs_write_append (guestfs_h *g,\n"
32640 "                       const char *path,\n"
32641 "                       const char *content,\n"
32642 "                       size_t content_size);\n"
32643 "\n"
32644 msgstr ""
32645
32646 #. type: textblock
32647 #: ../src/guestfs-actions.pod:7856
32648 msgid "See also C<guestfs_write>."
32649 msgstr ""
32650
32651 #. type: =head2
32652 #: ../src/guestfs-actions.pod:7865
32653 msgid "guestfs_write_file"
32654 msgstr ""
32655
32656 #. type: verbatim
32657 #: ../src/guestfs-actions.pod:7867
32658 #, no-wrap
32659 msgid ""
32660 " int\n"
32661 " guestfs_write_file (guestfs_h *g,\n"
32662 "                     const char *path,\n"
32663 "                     const char *content,\n"
32664 "                     int size);\n"
32665 "\n"
32666 msgstr ""
32667
32668 #. type: textblock
32669 #: ../src/guestfs-actions.pod:7873
32670 msgid ""
32671 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32672 "instead."
32673 msgstr ""
32674
32675 #. type: =head2
32676 #: ../src/guestfs-actions.pod:7898
32677 msgid "guestfs_zegrep"
32678 msgstr ""
32679
32680 #. type: verbatim
32681 #: ../src/guestfs-actions.pod:7900
32682 #, no-wrap
32683 msgid ""
32684 " char **\n"
32685 " guestfs_zegrep (guestfs_h *g,\n"
32686 "                 const char *regex,\n"
32687 "                 const char *path);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:7917
32693 msgid "guestfs_zegrepi"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:7919
32698 #, no-wrap
32699 msgid ""
32700 " char **\n"
32701 " guestfs_zegrepi (guestfs_h *g,\n"
32702 "                  const char *regex,\n"
32703 "                  const char *path);\n"
32704 "\n"
32705 msgstr ""
32706
32707 #. type: =head2
32708 #: ../src/guestfs-actions.pod:7936
32709 msgid "guestfs_zero"
32710 msgstr ""
32711
32712 #. type: verbatim
32713 #: ../src/guestfs-actions.pod:7938
32714 #, no-wrap
32715 msgid ""
32716 " int\n"
32717 " guestfs_zero (guestfs_h *g,\n"
32718 "               const char *device);\n"
32719 "\n"
32720 msgstr ""
32721
32722 #. type: textblock
32723 #: ../src/guestfs-actions.pod:7952
32724 msgid ""
32725 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32726 "C<guestfs_is_zero_device>"
32727 msgstr ""
32728
32729 #. type: =head2
32730 #: ../src/guestfs-actions.pod:7964
32731 msgid "guestfs_zero_device"
32732 msgstr ""
32733
32734 #. type: verbatim
32735 #: ../src/guestfs-actions.pod:7966
32736 #, no-wrap
32737 msgid ""
32738 " int\n"
32739 " guestfs_zero_device (guestfs_h *g,\n"
32740 "                      const char *device);\n"
32741 "\n"
32742 msgstr ""
32743
32744 #. type: textblock
32745 #: ../src/guestfs-actions.pod:7970
32746 msgid ""
32747 "This command writes zeroes over the entire C<device>.  Compare with "
32748 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs-actions.pod:7988
32753 msgid "(Added in 1.3.1)"
32754 msgstr ""
32755
32756 #. type: =head2
32757 #: ../src/guestfs-actions.pod:7990
32758 msgid "guestfs_zerofree"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs-actions.pod:7992
32763 #, no-wrap
32764 msgid ""
32765 " int\n"
32766 " guestfs_zerofree (guestfs_h *g,\n"
32767 "                   const char *device);\n"
32768 "\n"
32769 msgstr ""
32770
32771 #. type: =head2
32772 #: ../src/guestfs-actions.pod:8011
32773 msgid "guestfs_zfgrep"
32774 msgstr ""
32775
32776 #. type: verbatim
32777 #: ../src/guestfs-actions.pod:8013
32778 #, no-wrap
32779 msgid ""
32780 " char **\n"
32781 " guestfs_zfgrep (guestfs_h *g,\n"
32782 "                 const char *pattern,\n"
32783 "                 const char *path);\n"
32784 "\n"
32785 msgstr ""
32786
32787 #. type: =head2
32788 #: ../src/guestfs-actions.pod:8030
32789 msgid "guestfs_zfgrepi"
32790 msgstr ""
32791
32792 #. type: verbatim
32793 #: ../src/guestfs-actions.pod:8032
32794 #, no-wrap
32795 msgid ""
32796 " char **\n"
32797 " guestfs_zfgrepi (guestfs_h *g,\n"
32798 "                  const char *pattern,\n"
32799 "                  const char *path);\n"
32800 "\n"
32801 msgstr ""
32802
32803 #. type: =head2
32804 #: ../src/guestfs-actions.pod:8049
32805 msgid "guestfs_zfile"
32806 msgstr ""
32807
32808 #. type: verbatim
32809 #: ../src/guestfs-actions.pod:8051
32810 #, no-wrap
32811 msgid ""
32812 " char *\n"
32813 " guestfs_zfile (guestfs_h *g,\n"
32814 "                const char *meth,\n"
32815 "                const char *path);\n"
32816 "\n"
32817 msgstr ""
32818
32819 #. type: textblock
32820 #: ../src/guestfs-actions.pod:8056
32821 msgid ""
32822 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32823 "instead."
32824 msgstr ""
32825
32826 #. type: textblock
32827 #: ../src/guestfs-actions.pod:8068
32828 msgid ""
32829 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32830 "files."
32831 msgstr ""
32832
32833 #. type: =head2
32834 #: ../src/guestfs-actions.pod:8076
32835 msgid "guestfs_zgrep"
32836 msgstr ""
32837
32838 #. type: verbatim
32839 #: ../src/guestfs-actions.pod:8078
32840 #, no-wrap
32841 msgid ""
32842 " char **\n"
32843 " guestfs_zgrep (guestfs_h *g,\n"
32844 "                const char *regex,\n"
32845 "                const char *path);\n"
32846 "\n"
32847 msgstr ""
32848
32849 #. type: =head2
32850 #: ../src/guestfs-actions.pod:8095
32851 msgid "guestfs_zgrepi"
32852 msgstr ""
32853
32854 #. type: verbatim
32855 #: ../src/guestfs-actions.pod:8097
32856 #, no-wrap
32857 msgid ""
32858 " char **\n"
32859 " guestfs_zgrepi (guestfs_h *g,\n"
32860 "                 const char *regex,\n"
32861 "                 const char *path);\n"
32862 "\n"
32863 msgstr ""
32864
32865 #. type: =item
32866 #: ../src/guestfs-availability.pod:3
32867 msgid "B<augeas>"
32868 msgstr ""
32869
32870 #. type: textblock
32871 #: ../src/guestfs-availability.pod:5
32872 msgid ""
32873 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32874 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32875 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32876 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32877 "L</guestfs_aug_save> L</guestfs_aug_set>"
32878 msgstr ""
32879
32880 #. type: =item
32881 #: ../src/guestfs-availability.pod:21
32882 msgid "B<btrfs>"
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs-availability.pod:23
32887 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32888 msgstr ""
32889
32890 #. type: =item
32891 #: ../src/guestfs-availability.pod:26
32892 msgid "B<grub>"
32893 msgstr ""
32894
32895 #. type: textblock
32896 #: ../src/guestfs-availability.pod:28
32897 msgid "The following functions: L</guestfs_grub_install>"
32898 msgstr ""
32899
32900 #. type: =item
32901 #: ../src/guestfs-availability.pod:31
32902 msgid "B<inotify>"
32903 msgstr ""
32904
32905 #. type: textblock
32906 #: ../src/guestfs-availability.pod:33
32907 msgid ""
32908 "The following functions: L</guestfs_inotify_add_watch> L</"
32909 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32910 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32911 msgstr ""
32912
32913 #. type: =item
32914 #: ../src/guestfs-availability.pod:41
32915 msgid "B<linuxfsuuid>"
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../src/guestfs-availability.pod:43
32920 msgid ""
32921 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32922 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32923 msgstr ""
32924
32925 #. type: =item
32926 #: ../src/guestfs-availability.pod:50
32927 msgid "B<linuxmodules>"
32928 msgstr ""
32929
32930 #. type: textblock
32931 #: ../src/guestfs-availability.pod:52
32932 msgid "The following functions: L</guestfs_modprobe>"
32933 msgstr ""
32934
32935 #. type: =item
32936 #: ../src/guestfs-availability.pod:55
32937 msgid "B<linuxxattrs>"
32938 msgstr ""
32939
32940 #. type: textblock
32941 #: ../src/guestfs-availability.pod:57
32942 msgid ""
32943 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32944 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32945 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32946 "guestfs_setxattr>"
32947 msgstr ""
32948
32949 #. type: =item
32950 #: ../src/guestfs-availability.pod:68
32951 msgid "B<luks>"
32952 msgstr ""
32953
32954 #. type: textblock
32955 #: ../src/guestfs-availability.pod:70
32956 msgid ""
32957 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32958 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32959 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32960 msgstr ""
32961
32962 #. type: =item
32963 #: ../src/guestfs-availability.pod:79
32964 msgid "B<lvm2>"
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs-availability.pod:81
32969 msgid ""
32970 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32971 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32972 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32973 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32974 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32975 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32976 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32977 msgstr ""
32978
32979 #. type: =item
32980 #: ../src/guestfs-availability.pod:104
32981 msgid "B<mknod>"
32982 msgstr ""
32983
32984 #. type: textblock
32985 #: ../src/guestfs-availability.pod:106
32986 msgid ""
32987 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32988 "guestfs_mknod_b> L</guestfs_mknod_c>"
32989 msgstr ""
32990
32991 #. type: =item
32992 #: ../src/guestfs-availability.pod:112
32993 msgid "B<ntfs3g>"
32994 msgstr ""
32995
32996 #. type: textblock
32997 #: ../src/guestfs-availability.pod:114
32998 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32999 msgstr ""
33000
33001 #. type: =item
33002 #: ../src/guestfs-availability.pod:117
33003 msgid "B<ntfsprogs>"
33004 msgstr ""
33005
33006 #. type: textblock
33007 #: ../src/guestfs-availability.pod:119
33008 msgid ""
33009 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33010 "L</guestfs_ntfsresize_size>"
33011 msgstr ""
33012
33013 #. type: =item
33014 #: ../src/guestfs-availability.pod:124
33015 msgid "B<realpath>"
33016 msgstr ""
33017
33018 #. type: textblock
33019 #: ../src/guestfs-availability.pod:126
33020 msgid "The following functions: L</guestfs_realpath>"
33021 msgstr ""
33022
33023 #. type: =item
33024 #: ../src/guestfs-availability.pod:129
33025 msgid "B<scrub>"
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs-availability.pod:131
33030 msgid ""
33031 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33032 "guestfs_scrub_freespace>"
33033 msgstr ""
33034
33035 #. type: =item
33036 #: ../src/guestfs-availability.pod:136
33037 msgid "B<selinux>"
33038 msgstr ""
33039
33040 #. type: textblock
33041 #: ../src/guestfs-availability.pod:138
33042 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33043 msgstr ""
33044
33045 #. type: =item
33046 #: ../src/guestfs-availability.pod:142
33047 msgid "B<xz>"
33048 msgstr ""
33049
33050 #. type: textblock
33051 #: ../src/guestfs-availability.pod:144
33052 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33053 msgstr ""
33054
33055 #. type: =item
33056 #: ../src/guestfs-availability.pod:148
33057 msgid "B<zerofree>"
33058 msgstr ""
33059
33060 #. type: textblock
33061 #: ../src/guestfs-availability.pod:150
33062 msgid "The following functions: L</guestfs_zerofree>"
33063 msgstr ""
33064
33065 #. type: =head2
33066 #: ../src/guestfs-structs.pod:1
33067 msgid "guestfs_int_bool"
33068 msgstr ""
33069
33070 #. type: verbatim
33071 #: ../src/guestfs-structs.pod:3
33072 #, no-wrap
33073 msgid ""
33074 " struct guestfs_int_bool {\n"
33075 "   int32_t i;\n"
33076 "   int32_t b;\n"
33077 " };\n"
33078 " \n"
33079 msgstr ""
33080
33081 #. type: verbatim
33082 #: ../src/guestfs-structs.pod:8
33083 #, no-wrap
33084 msgid ""
33085 " struct guestfs_int_bool_list {\n"
33086 "   uint32_t len; /* Number of elements in list. */\n"
33087 "   struct guestfs_int_bool *val; /* Elements. */\n"
33088 " };\n"
33089 " \n"
33090 msgstr ""
33091
33092 #. type: verbatim
33093 #: ../src/guestfs-structs.pod:13
33094 #, no-wrap
33095 msgid ""
33096 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33097 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33098 "\n"
33099 msgstr ""
33100
33101 #. type: =head2
33102 #: ../src/guestfs-structs.pod:16
33103 msgid "guestfs_lvm_pv"
33104 msgstr ""
33105
33106 #. type: verbatim
33107 #: ../src/guestfs-structs.pod:18
33108 #, no-wrap
33109 msgid ""
33110 " struct guestfs_lvm_pv {\n"
33111 "   char *pv_name;\n"
33112 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33113 "   char pv_uuid[32];\n"
33114 "   char *pv_fmt;\n"
33115 "   uint64_t pv_size;\n"
33116 "   uint64_t dev_size;\n"
33117 "   uint64_t pv_free;\n"
33118 "   uint64_t pv_used;\n"
33119 "   char *pv_attr;\n"
33120 "   int64_t pv_pe_count;\n"
33121 "   int64_t pv_pe_alloc_count;\n"
33122 "   char *pv_tags;\n"
33123 "   uint64_t pe_start;\n"
33124 "   int64_t pv_mda_count;\n"
33125 "   uint64_t pv_mda_free;\n"
33126 " };\n"
33127 " \n"
33128 msgstr ""
33129
33130 #. type: verbatim
33131 #: ../src/guestfs-structs.pod:36
33132 #, no-wrap
33133 msgid ""
33134 " struct guestfs_lvm_pv_list {\n"
33135 "   uint32_t len; /* Number of elements in list. */\n"
33136 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33137 " };\n"
33138 " \n"
33139 msgstr ""
33140
33141 #. type: verbatim
33142 #: ../src/guestfs-structs.pod:41
33143 #, no-wrap
33144 msgid ""
33145 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33146 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33147 "\n"
33148 msgstr ""
33149
33150 #. type: =head2
33151 #: ../src/guestfs-structs.pod:44
33152 msgid "guestfs_lvm_vg"
33153 msgstr ""
33154
33155 #. type: verbatim
33156 #: ../src/guestfs-structs.pod:46
33157 #, no-wrap
33158 msgid ""
33159 " struct guestfs_lvm_vg {\n"
33160 "   char *vg_name;\n"
33161 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33162 "   char vg_uuid[32];\n"
33163 "   char *vg_fmt;\n"
33164 "   char *vg_attr;\n"
33165 "   uint64_t vg_size;\n"
33166 "   uint64_t vg_free;\n"
33167 "   char *vg_sysid;\n"
33168 "   uint64_t vg_extent_size;\n"
33169 "   int64_t vg_extent_count;\n"
33170 "   int64_t vg_free_count;\n"
33171 "   int64_t max_lv;\n"
33172 "   int64_t max_pv;\n"
33173 "   int64_t pv_count;\n"
33174 "   int64_t lv_count;\n"
33175 "   int64_t snap_count;\n"
33176 "   int64_t vg_seqno;\n"
33177 "   char *vg_tags;\n"
33178 "   int64_t vg_mda_count;\n"
33179 "   uint64_t vg_mda_free;\n"
33180 " };\n"
33181 " \n"
33182 msgstr ""
33183
33184 #. type: verbatim
33185 #: ../src/guestfs-structs.pod:69
33186 #, no-wrap
33187 msgid ""
33188 " struct guestfs_lvm_vg_list {\n"
33189 "   uint32_t len; /* Number of elements in list. */\n"
33190 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33191 " };\n"
33192 " \n"
33193 msgstr ""
33194
33195 #. type: verbatim
33196 #: ../src/guestfs-structs.pod:74
33197 #, no-wrap
33198 msgid ""
33199 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33200 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33201 "\n"
33202 msgstr ""
33203
33204 #. type: =head2
33205 #: ../src/guestfs-structs.pod:77
33206 msgid "guestfs_lvm_lv"
33207 msgstr ""
33208
33209 #. type: verbatim
33210 #: ../src/guestfs-structs.pod:79
33211 #, no-wrap
33212 msgid ""
33213 " struct guestfs_lvm_lv {\n"
33214 "   char *lv_name;\n"
33215 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33216 "   char lv_uuid[32];\n"
33217 "   char *lv_attr;\n"
33218 "   int64_t lv_major;\n"
33219 "   int64_t lv_minor;\n"
33220 "   int64_t lv_kernel_major;\n"
33221 "   int64_t lv_kernel_minor;\n"
33222 "   uint64_t lv_size;\n"
33223 "   int64_t seg_count;\n"
33224 "   char *origin;\n"
33225 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33226 "   float snap_percent;\n"
33227 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33228 "   float copy_percent;\n"
33229 "   char *move_pv;\n"
33230 "   char *lv_tags;\n"
33231 "   char *mirror_log;\n"
33232 "   char *modules;\n"
33233 " };\n"
33234 " \n"
33235 msgstr ""
33236
33237 #. type: verbatim
33238 #: ../src/guestfs-structs.pod:101
33239 #, no-wrap
33240 msgid ""
33241 " struct guestfs_lvm_lv_list {\n"
33242 "   uint32_t len; /* Number of elements in list. */\n"
33243 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33244 " };\n"
33245 " \n"
33246 msgstr ""
33247
33248 #. type: verbatim
33249 #: ../src/guestfs-structs.pod:106
33250 #, no-wrap
33251 msgid ""
33252 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33253 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33254 "\n"
33255 msgstr ""
33256
33257 #. type: verbatim
33258 #: ../src/guestfs-structs.pod:111
33259 #, no-wrap
33260 msgid ""
33261 " struct guestfs_stat {\n"
33262 "   int64_t dev;\n"
33263 "   int64_t ino;\n"
33264 "   int64_t mode;\n"
33265 "   int64_t nlink;\n"
33266 "   int64_t uid;\n"
33267 "   int64_t gid;\n"
33268 "   int64_t rdev;\n"
33269 "   int64_t size;\n"
33270 "   int64_t blksize;\n"
33271 "   int64_t blocks;\n"
33272 "   int64_t atime;\n"
33273 "   int64_t mtime;\n"
33274 "   int64_t ctime;\n"
33275 " };\n"
33276 " \n"
33277 msgstr ""
33278
33279 #. type: verbatim
33280 #: ../src/guestfs-structs.pod:127
33281 #, no-wrap
33282 msgid ""
33283 " struct guestfs_stat_list {\n"
33284 "   uint32_t len; /* Number of elements in list. */\n"
33285 "   struct guestfs_stat *val; /* Elements. */\n"
33286 " };\n"
33287 " \n"
33288 msgstr ""
33289
33290 #. type: verbatim
33291 #: ../src/guestfs-structs.pod:132
33292 #, no-wrap
33293 msgid ""
33294 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33295 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33296 "\n"
33297 msgstr ""
33298
33299 #. type: verbatim
33300 #: ../src/guestfs-structs.pod:137
33301 #, no-wrap
33302 msgid ""
33303 " struct guestfs_statvfs {\n"
33304 "   int64_t bsize;\n"
33305 "   int64_t frsize;\n"
33306 "   int64_t blocks;\n"
33307 "   int64_t bfree;\n"
33308 "   int64_t bavail;\n"
33309 "   int64_t files;\n"
33310 "   int64_t ffree;\n"
33311 "   int64_t favail;\n"
33312 "   int64_t fsid;\n"
33313 "   int64_t flag;\n"
33314 "   int64_t namemax;\n"
33315 " };\n"
33316 " \n"
33317 msgstr ""
33318
33319 #. type: verbatim
33320 #: ../src/guestfs-structs.pod:151
33321 #, no-wrap
33322 msgid ""
33323 " struct guestfs_statvfs_list {\n"
33324 "   uint32_t len; /* Number of elements in list. */\n"
33325 "   struct guestfs_statvfs *val; /* Elements. */\n"
33326 " };\n"
33327 " \n"
33328 msgstr ""
33329
33330 #. type: verbatim
33331 #: ../src/guestfs-structs.pod:156
33332 #, no-wrap
33333 msgid ""
33334 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33335 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33336 "\n"
33337 msgstr ""
33338
33339 #. type: =head2
33340 #: ../src/guestfs-structs.pod:159
33341 msgid "guestfs_dirent"
33342 msgstr ""
33343
33344 #. type: verbatim
33345 #: ../src/guestfs-structs.pod:161
33346 #, no-wrap
33347 msgid ""
33348 " struct guestfs_dirent {\n"
33349 "   int64_t ino;\n"
33350 "   char ftyp;\n"
33351 "   char *name;\n"
33352 " };\n"
33353 " \n"
33354 msgstr ""
33355
33356 #. type: verbatim
33357 #: ../src/guestfs-structs.pod:167
33358 #, no-wrap
33359 msgid ""
33360 " struct guestfs_dirent_list {\n"
33361 "   uint32_t len; /* Number of elements in list. */\n"
33362 "   struct guestfs_dirent *val; /* Elements. */\n"
33363 " };\n"
33364 " \n"
33365 msgstr ""
33366
33367 #. type: verbatim
33368 #: ../src/guestfs-structs.pod:172
33369 #, no-wrap
33370 msgid ""
33371 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33372 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33373 "\n"
33374 msgstr ""
33375
33376 #. type: verbatim
33377 #: ../src/guestfs-structs.pod:177
33378 #, no-wrap
33379 msgid ""
33380 " struct guestfs_version {\n"
33381 "   int64_t major;\n"
33382 "   int64_t minor;\n"
33383 "   int64_t release;\n"
33384 "   char *extra;\n"
33385 " };\n"
33386 " \n"
33387 msgstr ""
33388
33389 #. type: verbatim
33390 #: ../src/guestfs-structs.pod:184
33391 #, no-wrap
33392 msgid ""
33393 " struct guestfs_version_list {\n"
33394 "   uint32_t len; /* Number of elements in list. */\n"
33395 "   struct guestfs_version *val; /* Elements. */\n"
33396 " };\n"
33397 " \n"
33398 msgstr ""
33399
33400 #. type: verbatim
33401 #: ../src/guestfs-structs.pod:189
33402 #, no-wrap
33403 msgid ""
33404 " void guestfs_free_version (struct guestfs_free_version *);\n"
33405 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33406 "\n"
33407 msgstr ""
33408
33409 #. type: =head2
33410 #: ../src/guestfs-structs.pod:192
33411 msgid "guestfs_xattr"
33412 msgstr ""
33413
33414 #. type: verbatim
33415 #: ../src/guestfs-structs.pod:194
33416 #, no-wrap
33417 msgid ""
33418 " struct guestfs_xattr {\n"
33419 "   char *attrname;\n"
33420 "   /* The next two fields describe a byte array. */\n"
33421 "   uint32_t attrval_len;\n"
33422 "   char *attrval;\n"
33423 " };\n"
33424 " \n"
33425 msgstr ""
33426
33427 #. type: verbatim
33428 #: ../src/guestfs-structs.pod:201
33429 #, no-wrap
33430 msgid ""
33431 " struct guestfs_xattr_list {\n"
33432 "   uint32_t len; /* Number of elements in list. */\n"
33433 "   struct guestfs_xattr *val; /* Elements. */\n"
33434 " };\n"
33435 " \n"
33436 msgstr ""
33437
33438 #. type: verbatim
33439 #: ../src/guestfs-structs.pod:206
33440 #, no-wrap
33441 msgid ""
33442 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33443 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33444 "\n"
33445 msgstr ""
33446
33447 #. type: =head2
33448 #: ../src/guestfs-structs.pod:209
33449 msgid "guestfs_inotify_event"
33450 msgstr ""
33451
33452 #. type: verbatim
33453 #: ../src/guestfs-structs.pod:211
33454 #, no-wrap
33455 msgid ""
33456 " struct guestfs_inotify_event {\n"
33457 "   int64_t in_wd;\n"
33458 "   uint32_t in_mask;\n"
33459 "   uint32_t in_cookie;\n"
33460 "   char *in_name;\n"
33461 " };\n"
33462 " \n"
33463 msgstr ""
33464
33465 #. type: verbatim
33466 #: ../src/guestfs-structs.pod:218
33467 #, no-wrap
33468 msgid ""
33469 " struct guestfs_inotify_event_list {\n"
33470 "   uint32_t len; /* Number of elements in list. */\n"
33471 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33472 " };\n"
33473 " \n"
33474 msgstr ""
33475
33476 #. type: verbatim
33477 #: ../src/guestfs-structs.pod:223
33478 #, no-wrap
33479 msgid ""
33480 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33481 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33482 "\n"
33483 msgstr ""
33484
33485 #. type: =head2
33486 #: ../src/guestfs-structs.pod:226
33487 msgid "guestfs_partition"
33488 msgstr ""
33489
33490 #. type: verbatim
33491 #: ../src/guestfs-structs.pod:228
33492 #, no-wrap
33493 msgid ""
33494 " struct guestfs_partition {\n"
33495 "   int32_t part_num;\n"
33496 "   uint64_t part_start;\n"
33497 "   uint64_t part_end;\n"
33498 "   uint64_t part_size;\n"
33499 " };\n"
33500 " \n"
33501 msgstr ""
33502
33503 #. type: verbatim
33504 #: ../src/guestfs-structs.pod:235
33505 #, no-wrap
33506 msgid ""
33507 " struct guestfs_partition_list {\n"
33508 "   uint32_t len; /* Number of elements in list. */\n"
33509 "   struct guestfs_partition *val; /* Elements. */\n"
33510 " };\n"
33511 " \n"
33512 msgstr ""
33513
33514 #. type: verbatim
33515 #: ../src/guestfs-structs.pod:240
33516 #, no-wrap
33517 msgid ""
33518 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33519 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33520 "\n"
33521 msgstr ""
33522
33523 #. type: =head2
33524 #: ../src/guestfs-structs.pod:243
33525 msgid "guestfs_application"
33526 msgstr ""
33527
33528 #. type: verbatim
33529 #: ../src/guestfs-structs.pod:245
33530 #, no-wrap
33531 msgid ""
33532 " struct guestfs_application {\n"
33533 "   char *app_name;\n"
33534 "   char *app_display_name;\n"
33535 "   int32_t app_epoch;\n"
33536 "   char *app_version;\n"
33537 "   char *app_release;\n"
33538 "   char *app_install_path;\n"
33539 "   char *app_trans_path;\n"
33540 "   char *app_publisher;\n"
33541 "   char *app_url;\n"
33542 "   char *app_source_package;\n"
33543 "   char *app_summary;\n"
33544 "   char *app_description;\n"
33545 " };\n"
33546 " \n"
33547 msgstr ""
33548
33549 #. type: verbatim
33550 #: ../src/guestfs-structs.pod:260
33551 #, no-wrap
33552 msgid ""
33553 " struct guestfs_application_list {\n"
33554 "   uint32_t len; /* Number of elements in list. */\n"
33555 "   struct guestfs_application *val; /* Elements. */\n"
33556 " };\n"
33557 " \n"
33558 msgstr ""
33559
33560 #. type: verbatim
33561 #: ../src/guestfs-structs.pod:265
33562 #, no-wrap
33563 msgid ""
33564 " void guestfs_free_application (struct guestfs_free_application *);\n"
33565 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33566 "\n"
33567 msgstr ""
33568
33569 #. type: textblock
33570 #: ../src/guestfs.pod:5
33571 msgid "guestfs - Library for accessing and modifying virtual machine images"
33572 msgstr ""
33573
33574 #. type: verbatim
33575 #: ../src/guestfs.pod:11
33576 #, no-wrap
33577 msgid ""
33578 " guestfs_h *g = guestfs_create ();\n"
33579 " guestfs_add_drive (g, \"guest.img\");\n"
33580 " guestfs_launch (g);\n"
33581 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33582 " guestfs_touch (g, \"/hello\");\n"
33583 " guestfs_umount (g, \"/\");\n"
33584 " guestfs_close (g);\n"
33585 "\n"
33586 msgstr ""
33587 " guestfs_h *g = guestfs_create ();\n"
33588 " guestfs_add_drive (g, \"guest.img\");\n"
33589 " guestfs_launch (g);\n"
33590 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33591 " guestfs_touch (g, \"/hello\");\n"
33592 " guestfs_umount (g, \"/\");\n"
33593 " guestfs_close (g);\n"
33594 "\n"
33595
33596 #. type: textblock
33597 #: ../src/guestfs.pod:25
33598 msgid ""
33599 "Libguestfs is a library for accessing and modifying guest disk images.  "
33600 "Amongst the things this is good for: making batch configuration changes to "
33601 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33602 "between virtualization systems (see also: virt-p2v), performing partial "
33603 "backups, performing partial guest clones, cloning guests and changing "
33604 "registry/UUID/hostname info, and much else besides."
33605 msgstr ""
33606
33607 #. type: textblock
33608 #: ../src/guestfs.pod:33
33609 msgid ""
33610 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33611 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33612 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33613 "qcow2, vmdk."
33614 msgstr ""
33615
33616 #. type: textblock
33617 #: ../src/guestfs.pod:38
33618 msgid ""
33619 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33620 "what filesystem is in each LV, etc.).  It can also run commands in the "
33621 "context of the guest.  Also you can access filesystems over FUSE."
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs.pod:43
33626 msgid ""
33627 "Libguestfs is a library that can be linked with C and C++ management "
33628 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33629 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33630 "command line."
33631 msgstr ""
33632
33633 #. type: textblock
33634 #: ../src/guestfs.pod:48
33635 msgid ""
33636 "You don't need to be root to use libguestfs, although obviously you do need "
33637 "enough permissions to access the disk images."
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs.pod:51
33642 msgid ""
33643 "Libguestfs is a large API because it can do many things.  For a gentle "
33644 "introduction, please read the L</API OVERVIEW> section next."
33645 msgstr ""
33646
33647 #. type: textblock
33648 #: ../src/guestfs.pod:54
33649 msgid ""
33650 "There are also some example programs in the L<guestfs-examples(3)> manual "
33651 "page."
33652 msgstr ""
33653
33654 #. type: =head1
33655 #: ../src/guestfs.pod:57
33656 msgid "API OVERVIEW"
33657 msgstr ""
33658
33659 #. type: textblock
33660 #: ../src/guestfs.pod:59
33661 msgid ""
33662 "This section provides a gentler overview of the libguestfs API.  We also try "
33663 "to group API calls together, where that may not be obvious from reading "
33664 "about the individual calls in the main section of this manual."
33665 msgstr ""
33666
33667 #. type: =head2
33668 #: ../src/guestfs.pod:64
33669 msgid "HANDLES"
33670 msgstr ""
33671
33672 #. type: textblock
33673 #: ../src/guestfs.pod:66
33674 msgid ""
33675 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33676 "must add at least one disk image to the handle, followed by launching the "
33677 "handle, then performing whatever operations you want, and finally closing "
33678 "the handle.  By convention we use the single letter C<g> for the name of the "
33679 "handle variable, although of course you can use any name you want."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:73
33684 msgid "The general structure of all libguestfs-using programs looks like this:"
33685 msgstr ""
33686
33687 #. type: verbatim
33688 #: ../src/guestfs.pod:76
33689 #, no-wrap
33690 msgid ""
33691 " guestfs_h *g = guestfs_create ();\n"
33692 " \n"
33693 msgstr ""
33694
33695 #. type: verbatim
33696 #: ../src/guestfs.pod:78
33697 #, no-wrap
33698 msgid ""
33699 " /* Call guestfs_add_drive additional times if there are\n"
33700 "  * multiple disk images.\n"
33701 "  */\n"
33702 " guestfs_add_drive (g, \"guest.img\");\n"
33703 " \n"
33704 msgstr ""
33705
33706 #. type: verbatim
33707 #: ../src/guestfs.pod:83
33708 #, no-wrap
33709 msgid ""
33710 " /* Most manipulation calls won't work until you've launched\n"
33711 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33712 "  * and _before_ other commands.\n"
33713 "  */\n"
33714 " guestfs_launch (g);\n"
33715 " \n"
33716 msgstr ""
33717
33718 #. type: verbatim
33719 #: ../src/guestfs.pod:89
33720 #, no-wrap
33721 msgid ""
33722 " /* Now you can examine what partitions, LVs etc are available.\n"
33723 "  */\n"
33724 " char **partitions = guestfs_list_partitions (g);\n"
33725 " char **logvols = guestfs_lvs (g);\n"
33726 " \n"
33727 msgstr ""
33728
33729 #. type: verbatim
33730 #: ../src/guestfs.pod:94
33731 #, no-wrap
33732 msgid ""
33733 " /* To access a filesystem in the image, you must mount it.\n"
33734 "  */\n"
33735 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33736 " \n"
33737 msgstr ""
33738
33739 #. type: verbatim
33740 #: ../src/guestfs.pod:98
33741 #, no-wrap
33742 msgid ""
33743 " /* Now you can perform filesystem actions on the guest\n"
33744 "  * disk image.\n"
33745 "  */\n"
33746 " guestfs_touch (g, \"/hello\");\n"
33747 " \n"
33748 msgstr ""
33749
33750 #. type: verbatim
33751 #: ../src/guestfs.pod:103
33752 #, no-wrap
33753 msgid ""
33754 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33755 "  * it is done automatically when you close the handle.  See\n"
33756 "  * discussion of autosync in this page.\n"
33757 "  */\n"
33758 " guestfs_sync (g);\n"
33759 " \n"
33760 msgstr ""
33761
33762 #. type: verbatim
33763 #: ../src/guestfs.pod:109
33764 #, no-wrap
33765 msgid ""
33766 " /* Close the handle 'g'. */\n"
33767 " guestfs_close (g);\n"
33768 "\n"
33769 msgstr ""
33770
33771 #. type: textblock
33772 #: ../src/guestfs.pod:112
33773 msgid ""
33774 "The code above doesn't include any error checking.  In real code you should "
33775 "check return values carefully for errors.  In general all functions that "
33776 "return integers return C<-1> on error, and all functions that return "
33777 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33778 "how to handle errors, and consult the documentation for each function call "
33779 "below to see precisely how they return error indications.  See L<guestfs-"
33780 "examples(3)> for fully worked examples."
33781 msgstr ""
33782
33783 #. type: =head2
33784 #: ../src/guestfs.pod:121
33785 msgid "DISK IMAGES"
33786 msgstr ""
33787
33788 #. type: textblock
33789 #: ../src/guestfs.pod:123
33790 msgid ""
33791 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33792 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33793 "actual block device, or simply an empty file of zeroes that you have created "
33794 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33795 "of these."
33796 msgstr ""
33797
33798 #. type: textblock
33799 #: ../src/guestfs.pod:129
33800 msgid ""
33801 "The call you should use in modern code for adding drives is L</"
33802 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33803 "specifying that the format is raw, do:"
33804 msgstr ""
33805
33806 #. type: verbatim
33807 #: ../src/guestfs.pod:133
33808 #, no-wrap
33809 msgid ""
33810 " guestfs_add_drive_opts (g, filename,\n"
33811 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33812 "                         -1);\n"
33813 "\n"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:137
33818 msgid "You can add a disk read-only using:"
33819 msgstr ""
33820
33821 #. type: verbatim
33822 #: ../src/guestfs.pod:139
33823 #, no-wrap
33824 msgid ""
33825 " guestfs_add_drive_opts (g, filename,\n"
33826 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33827 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33828 "                         -1);\n"
33829 "\n"
33830 msgstr ""
33831
33832 #. type: textblock
33833 #: ../src/guestfs.pod:144
33834 msgid ""
33835 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33836 "libguestfs won't modify the file."
33837 msgstr ""
33838
33839 #. type: textblock
33840 #: ../src/guestfs.pod:147
33841 msgid ""
33842 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33843 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33844 "corruption, but adding it read-only is safe."
33845 msgstr ""
33846
33847 #. type: textblock
33848 #: ../src/guestfs.pod:151
33849 msgid ""
33850 "You must add at least one disk image, and you may add multiple disk images.  "
33851 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33852 "first one you added), C</dev/sdb> (for the second one you added), etc."
33853 msgstr ""
33854
33855 #. type: textblock
33856 #: ../src/guestfs.pod:156
33857 msgid ""
33858 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33859 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33860 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33861 msgstr ""
33862
33863 #. type: =head2
33864 #: ../src/guestfs.pod:161
33865 msgid "MOUNTING"
33866 msgstr ""
33867
33868 #. type: textblock
33869 #: ../src/guestfs.pod:163
33870 msgid ""
33871 "Before you can read or write files, create directories and so on in a disk "
33872 "image that contains filesystems, you have to mount those filesystems using "
33873 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33874 "a disk image contains (for example) one partition with a filesystem on that "
33875 "partition, then you can mount it directly:"
33876 msgstr ""
33877
33878 #. type: verbatim
33879 #: ../src/guestfs.pod:170
33880 #, no-wrap
33881 msgid ""
33882 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33883 "\n"
33884 msgstr ""
33885
33886 #. type: textblock
33887 #: ../src/guestfs.pod:172
33888 msgid ""
33889 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33890 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33891 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33892 "that these are libguestfs virtual devices, and are nothing to do with host "
33893 "devices."
33894 msgstr ""
33895
33896 #. type: textblock
33897 #: ../src/guestfs.pod:178
33898 msgid ""
33899 "If you are given a disk image and you don't know what it contains then you "
33900 "have to find out.  Libguestfs can do that too: use L</"
33901 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33902 "LVs, and either try mounting each to see what is mountable, or else examine "
33903 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33904 "filesystems, use L</guestfs_list_filesystems>."
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs.pod:186
33909 msgid ""
33910 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33911 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33912 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33913 msgstr ""
33914
33915 #. type: textblock
33916 #: ../src/guestfs.pod:191
33917 msgid ""
33918 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33919 "several other variations of the C<guestfs_mount_*> call."
33920 msgstr ""
33921
33922 #. type: =head2
33923 #: ../src/guestfs.pod:194
33924 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33925 msgstr ""
33926
33927 #. type: textblock
33928 #: ../src/guestfs.pod:196
33929 msgid ""
33930 "The majority of the libguestfs API consists of fairly low-level calls for "
33931 "accessing and modifying the files, directories, symlinks etc on mounted "
33932 "filesystems.  There are over a hundred such calls which you can find listed "
33933 "in detail below in this man page, and we don't even pretend to cover them "
33934 "all in this overview."
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs.pod:202
33939 msgid ""
33940 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33941 "mount point."
33942 msgstr ""
33943
33944 #. type: textblock
33945 #: ../src/guestfs.pod:205
33946 msgid ""
33947 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33948 "the file called C<\"etc/passwd\"> then you could do:"
33949 msgstr ""
33950
33951 #. type: verbatim
33952 #: ../src/guestfs.pod:208
33953 #, no-wrap
33954 msgid ""
33955 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33956 "\n"
33957 msgstr ""
33958
33959 #. type: textblock
33960 #: ../src/guestfs.pod:210
33961 msgid ""
33962 "This would return C<data> as a newly allocated buffer containing the full "
33963 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33964 "or C<NULL> if there was an error."
33965 msgstr ""
33966
33967 #. type: textblock
33968 #: ../src/guestfs.pod:214
33969 msgid ""
33970 "As another example, to create a top-level directory on that filesystem "
33971 "called C<\"var\"> you would do:"
33972 msgstr ""
33973
33974 #. type: verbatim
33975 #: ../src/guestfs.pod:217
33976 #, no-wrap
33977 msgid ""
33978 " guestfs_mkdir (g, \"/var\");\n"
33979 "\n"
33980 msgstr ""
33981
33982 #. type: textblock
33983 #: ../src/guestfs.pod:219
33984 msgid "To create a symlink you could do:"
33985 msgstr ""
33986
33987 #. type: verbatim
33988 #: ../src/guestfs.pod:221
33989 #, no-wrap
33990 msgid ""
33991 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33992 "               \"/etc/rc3.d/S30portmap\");\n"
33993 "\n"
33994 msgstr ""
33995
33996 #. type: textblock
33997 #: ../src/guestfs.pod:224
33998 msgid ""
33999 "Libguestfs will reject attempts to use relative paths and there is no "
34000 "concept of a current working directory."
34001 msgstr ""
34002
34003 #. type: textblock
34004 #: ../src/guestfs.pod:227
34005 msgid ""
34006 "Libguestfs can return errors in many situations: for example if the "
34007 "filesystem isn't writable, or if a file or directory that you requested "
34008 "doesn't exist.  If you are using the C API (documented here)  you have to "
34009 "check for those error conditions after each call.  (Other language bindings "
34010 "turn these errors into exceptions)."
34011 msgstr ""
34012
34013 #. type: textblock
34014 #: ../src/guestfs.pod:233
34015 msgid ""
34016 "File writes are affected by the per-handle umask, set by calling L</"
34017 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34018 msgstr ""
34019
34020 #. type: =head2
34021 #: ../src/guestfs.pod:236
34022 msgid "PARTITIONING"
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs.pod:238
34027 msgid ""
34028 "Libguestfs contains API calls to read, create and modify partition tables on "
34029 "disk images."
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:241
34034 msgid ""
34035 "In the common case where you want to create a single partition covering the "
34036 "whole disk, you should use the L</guestfs_part_disk> call:"
34037 msgstr ""
34038
34039 #. type: verbatim
34040 #: ../src/guestfs.pod:245
34041 #, no-wrap
34042 msgid ""
34043 " const char *parttype = \"mbr\";\n"
34044 " if (disk_is_larger_than_2TB)\n"
34045 "   parttype = \"gpt\";\n"
34046 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34047 "\n"
34048 msgstr ""
34049
34050 #. type: textblock
34051 #: ../src/guestfs.pod:250
34052 msgid ""
34053 "Obviously this effectively wipes anything that was on that disk image before."
34054 msgstr ""
34055
34056 #. type: =head2
34057 #: ../src/guestfs.pod:253
34058 msgid "LVM2"
34059 msgstr ""
34060
34061 #. type: textblock
34062 #: ../src/guestfs.pod:255
34063 msgid ""
34064 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34065 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34066 "you familiarize yourself with the concepts of physical volumes, volume "
34067 "groups and logical volumes."
34068 msgstr ""
34069
34070 #. type: textblock
34071 #: ../src/guestfs.pod:260
34072 msgid ""
34073 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34074 "tldp.org/HOWTO/LVM-HOWTO/>."
34075 msgstr ""
34076
34077 #. type: =head2
34078 #: ../src/guestfs.pod:263
34079 msgid "DOWNLOADING"
34080 msgstr ""
34081
34082 #. type: textblock
34083 #: ../src/guestfs.pod:265
34084 msgid ""
34085 "Use L</guestfs_cat> to download small, text only files.  This call is "
34086 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34087 "NUL (C<\\0>) characters.  However the API is very simple to use."
34088 msgstr ""
34089
34090 #. type: textblock
34091 #: ../src/guestfs.pod:269
34092 msgid ""
34093 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34094 "bit data, since it returns a (pointer, size) pair.  However it is still "
34095 "limited to \"small\" files, less than 2 MB."
34096 msgstr ""
34097
34098 #. type: textblock
34099 #: ../src/guestfs.pod:273
34100 msgid ""
34101 "L</guestfs_download> can be used to download any file, with no limits on "
34102 "content or size (even files larger than 4 GB)."
34103 msgstr ""
34104
34105 #. type: textblock
34106 #: ../src/guestfs.pod:276
34107 msgid ""
34108 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34109 msgstr ""
34110
34111 #. type: =head2
34112 #: ../src/guestfs.pod:279
34113 msgid "UPLOADING"
34114 msgstr ""
34115
34116 #. type: textblock
34117 #: ../src/guestfs.pod:281
34118 msgid ""
34119 "It's often the case that you want to write a file or files to the disk image."
34120 msgstr ""
34121
34122 #. type: textblock
34123 #: ../src/guestfs.pod:284
34124 msgid ""
34125 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34126 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34127 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34128 "of other functions for creating test files, for example L</guestfs_fill> and "
34129 "L</guestfs_fill_pattern>."
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:290
34134 msgid ""
34135 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34136 "file content or size (even files larger than 4 GB)."
34137 msgstr ""
34138
34139 #. type: textblock
34140 #: ../src/guestfs.pod:293
34141 msgid ""
34142 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34143 msgstr ""
34144
34145 #. type: textblock
34146 #: ../src/guestfs.pod:295
34147 msgid ""
34148 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34149 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34150 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34151 "in a predictable way (eg. adding it last after all other drives) then you "
34152 "can get the device name from L</guestfs_list_devices> and mount it directly "
34153 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34154 "portable between kernel versions, and they don't support labels or UUIDs.  "
34155 "If you want to pre-build an image or you need to mount it using a label or "
34156 "UUID, use an ISO image instead."
34157 msgstr ""
34158
34159 #. type: =head2
34160 #: ../src/guestfs.pod:306
34161 msgid "COPYING"
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:308
34166 msgid ""
34167 "There are various different commands for copying between files and devices "
34168 "and in and out of the guest filesystem.  These are summarised in the table "
34169 "below."
34170 msgstr ""
34171
34172 #. type: =item
34173 #: ../src/guestfs.pod:314
34174 msgid "B<file> to B<file>"
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:316
34179 msgid ""
34180 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34181 "directories recursively."
34182 msgstr ""
34183
34184 #. type: =item
34185 #: ../src/guestfs.pod:319
34186 msgid "B<file or device> to B<file or device>"
34187 msgstr ""
34188
34189 #. type: textblock
34190 #: ../src/guestfs.pod:321
34191 msgid ""
34192 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34193 "devices in the guest."
34194 msgstr ""
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:324
34198 msgid "Example: duplicate the contents of an LV:"
34199 msgstr ""
34200
34201 #. type: verbatim
34202 #: ../src/guestfs.pod:326
34203 #, no-wrap
34204 msgid ""
34205 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34206 "\n"
34207 msgstr ""
34208
34209 #. type: textblock
34210 #: ../src/guestfs.pod:328
34211 msgid ""
34212 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34213 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
34214 "guestfs_copy_size>."
34215 msgstr ""
34216
34217 #. type: =item
34218 #: ../src/guestfs.pod:332
34219 msgid "B<file on the host> to B<file or device>"
34220 msgstr ""
34221
34222 #. type: textblock
34223 #: ../src/guestfs.pod:334
34224 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34225 msgstr ""
34226
34227 #. type: =item
34228 #: ../src/guestfs.pod:336
34229 msgid "B<file or device> to B<file on the host>"
34230 msgstr ""
34231
34232 #. type: textblock
34233 #: ../src/guestfs.pod:338
34234 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34235 msgstr ""
34236
34237 #. type: =head2
34238 #: ../src/guestfs.pod:342
34239 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34240 msgstr ""
34241
34242 #. type: textblock
34243 #: ../src/guestfs.pod:344
34244 msgid ""
34245 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34246 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34247 "appears you can only upload and download to files.  However many Un*x-like "
34248 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34249 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34250 "and arbitrary file descriptor N."
34251 msgstr ""
34252
34253 #. type: textblock
34254 #: ../src/guestfs.pod:352
34255 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34256 msgstr ""
34257
34258 #. type: verbatim
34259 #: ../src/guestfs.pod:355
34260 #, no-wrap
34261 msgid ""
34262 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34263 "\n"
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:357
34268 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs.pod:359
34273 #, no-wrap
34274 msgid ""
34275 " char devfd[64];\n"
34276 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34277 " guestfs_tar_out (g, \"/\", devfd);\n"
34278 "\n"
34279 msgstr ""
34280
34281 #. type: =head2
34282 #: ../src/guestfs.pod:363
34283 msgid "LISTING FILES"
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:365
34288 msgid ""
34289 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34290 "L<guestfish(1)>-equivalent command C<ll>)."
34291 msgstr ""
34292
34293 #. type: textblock
34294 #: ../src/guestfs.pod:368
34295 msgid ""
34296 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34297 "programs, as a flat list of strings."
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs.pod:371
34302 msgid ""
34303 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34304 "directory, plus additional information about each one.  It is more "
34305 "equivalent to using the L<readdir(3)> call on a local filesystem."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:375
34310 msgid ""
34311 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34312 msgstr ""
34313
34314 #. type: =head2
34315 #: ../src/guestfs.pod:378
34316 msgid "RUNNING COMMANDS"
34317 msgstr ""
34318
34319 #. type: textblock
34320 #: ../src/guestfs.pod:380
34321 msgid ""
34322 "Although libguestfs is primarily an API for manipulating files inside guest "
34323 "images, we also provide some limited facilities for running commands inside "
34324 "guests."
34325 msgstr ""
34326
34327 #. type: textblock
34328 #: ../src/guestfs.pod:384
34329 msgid "There are many limitations to this:"
34330 msgstr ""
34331
34332 #. type: textblock
34333 #: ../src/guestfs.pod:390
34334 msgid ""
34335 "The kernel version that the command runs under will be different from what "
34336 "it expects."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:395
34341 msgid ""
34342 "If the command needs to communicate with daemons, then most likely they "
34343 "won't be running."
34344 msgstr ""
34345
34346 #. type: textblock
34347 #: ../src/guestfs.pod:400
34348 msgid "The command will be running in limited memory."
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:404
34353 msgid ""
34354 "The network may not be available unless you enable it (see L</"
34355 "guestfs_set_network>)."
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs.pod:409
34360 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34361 msgstr ""
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:413
34365 msgid ""
34366 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34367 msgstr ""
34368
34369 #. type: textblock
34370 #: ../src/guestfs.pod:418
34371 msgid ""
34372 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34373 "See L</SELINUX> in this manpage."
34374 msgstr ""
34375
34376 #. type: textblock
34377 #: ../src/guestfs.pod:423
34378 msgid ""
34379 "I<Security:> It is not safe to run commands from untrusted, possibly "
34380 "malicious guests.  These commands may attempt to exploit your program by "
34381 "sending unexpected output.  They could also try to exploit the Linux kernel "
34382 "or qemu provided by the libguestfs appliance.  They could use the network "
34383 "provided by the libguestfs appliance to bypass ordinary network partitions "
34384 "and firewalls.  They could use the elevated privileges or different SELinux "
34385 "context of your program to their advantage."
34386 msgstr ""
34387
34388 #. type: textblock
34389 #: ../src/guestfs.pod:432
34390 msgid ""
34391 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34392 "(a script which runs when the guest next boots normally), and to have this "
34393 "script run the commands you want in the normal context of the running guest, "
34394 "network security and so on.  For information about other security issues, "
34395 "see L</SECURITY>."
34396 msgstr ""
34397
34398 #. type: textblock
34399 #: ../src/guestfs.pod:440
34400 msgid ""
34401 "The two main API calls to run commands are L</guestfs_command> and L</"
34402 "guestfs_sh> (there are also variations)."
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs.pod:443
34407 msgid ""
34408 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34409 "shell globs, redirections, etc will work."
34410 msgstr ""
34411
34412 #. type: =head2
34413 #: ../src/guestfs.pod:446
34414 msgid "CONFIGURATION FILES"
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:448
34419 msgid ""
34420 "To read and write configuration files in Linux guest filesystems, we "
34421 "strongly recommend using Augeas.  For example, Augeas understands how to "
34422 "read and write, say, a Linux shadow password file or X.org configuration "
34423 "file, and so avoids you having to write that code."
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:453
34428 msgid ""
34429 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34430 "document Augeas itself here because there is excellent documentation on the "
34431 "L<http://augeas.net/> website."
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:457
34436 msgid ""
34437 "If you don't want to use Augeas (you fool!) then try calling L</"
34438 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34439 "over."
34440 msgstr ""
34441
34442 #. type: =head2
34443 #: ../src/guestfs.pod:461
34444 msgid "SELINUX"
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs.pod:463
34449 msgid ""
34450 "We support SELinux guests.  To ensure that labeling happens correctly in "
34451 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:471
34456 msgid "Before launching, do:"
34457 msgstr ""
34458
34459 #. type: verbatim
34460 #: ../src/guestfs.pod:473
34461 #, no-wrap
34462 msgid ""
34463 " guestfs_set_selinux (g, 1);\n"
34464 "\n"
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs.pod:477
34469 msgid ""
34470 "After mounting the guest's filesystem(s), load the policy.  This is best "
34471 "done by running the L<load_policy(8)> command in the guest itself:"
34472 msgstr ""
34473
34474 #. type: verbatim
34475 #: ../src/guestfs.pod:481
34476 #, no-wrap
34477 msgid ""
34478 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34479 "\n"
34480 msgstr ""
34481
34482 #. type: textblock
34483 #: ../src/guestfs.pod:483
34484 msgid ""
34485 "(Older versions of C<load_policy> require you to specify the name of the "
34486 "policy file)."
34487 msgstr ""
34488
34489 #. type: textblock
34490 #: ../src/guestfs.pod:488
34491 msgid ""
34492 "Optionally, set the security context for the API.  The correct security "
34493 "context to use can only be known by inspecting the guest.  As an example:"
34494 msgstr ""
34495
34496 #. type: verbatim
34497 #: ../src/guestfs.pod:492
34498 #, no-wrap
34499 msgid ""
34500 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34501 "\n"
34502 msgstr ""
34503
34504 #. type: textblock
34505 #: ../src/guestfs.pod:496
34506 msgid "This will work for running commands and editing existing files."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:498
34511 msgid ""
34512 "When new files are created, you may need to label them explicitly, for "
34513 "example by running the external command C<restorecon pathname>."
34514 msgstr ""
34515
34516 #. type: =head2
34517 #: ../src/guestfs.pod:502
34518 msgid "UMASK"
34519 msgstr ""
34520
34521 #. type: textblock
34522 #: ../src/guestfs.pod:504
34523 msgid ""
34524 "Certain calls are affected by the current file mode creation mask (the "
34525 "\"umask\").  In particular ones which create files or directories, such as "
34526 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34527 "either the default mode that the file is created with or modifies the mode "
34528 "that you supply."
34529 msgstr ""
34530
34531 #. type: textblock
34532 #: ../src/guestfs.pod:510
34533 msgid ""
34534 "The default umask is C<022>, so files are created with modes such as C<0644> "
34535 "and directories with C<0755>."
34536 msgstr ""
34537
34538 #. type: textblock
34539 #: ../src/guestfs.pod:513
34540 msgid ""
34541 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34542 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34543 "guestfs_chmod> after creating each file or directory."
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:517
34548 msgid "For more information about umask, see L<umask(2)>."
34549 msgstr ""
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:521
34553 msgid ""
34554 "Libguestfs allows you to access Linux guests which have been encrypted using "
34555 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34556 "standard.  This includes nearly all whole disk encryption systems used by "
34557 "modern Linux guests."
34558 msgstr ""
34559
34560 #. type: textblock
34561 #: ../src/guestfs.pod:527
34562 msgid ""
34563 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34564 "returns the string C<crypto_LUKS>)."
34565 msgstr ""
34566
34567 #. type: textblock
34568 #: ../src/guestfs.pod:530
34569 msgid ""
34570 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34571 "will require the passphrase!"
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:533
34576 msgid ""
34577 "Opening a LUKS device creates a new device mapper device called C</dev/"
34578 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34579 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34580 "from and encrypted to the underlying block device respectively."
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:539
34585 msgid ""
34586 "LVM volume groups on the device can be made visible by calling L</"
34587 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34588 "(s) can now be mounted in the usual way."
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:543
34593 msgid ""
34594 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34595 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34596 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34597 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34598 "underlying encrypted block device)."
34599 msgstr ""
34600
34601 #. type: =head2
34602 #: ../src/guestfs.pod:550
34603 msgid "INSPECTION"
34604 msgstr ""
34605
34606 #. type: textblock
34607 #: ../src/guestfs.pod:552
34608 msgid ""
34609 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34610 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34611 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34612 "version 1.5.3 the most frequently used part of this library has been "
34613 "rewritten in C and moved into the core code)."
34614 msgstr ""
34615
34616 #. type: textblock
34617 #: ../src/guestfs.pod:559
34618 msgid ""
34619 "Add all disks belonging to the unknown virtual machine and call L</"
34620 "guestfs_launch> in the usual way."
34621 msgstr ""
34622
34623 #. type: textblock
34624 #: ../src/guestfs.pod:562
34625 msgid ""
34626 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34627 "and certain heuristics, and returns a list of operating systems that were "
34628 "found.  An empty list means none were found.  A single element is the root "
34629 "filesystem of the operating system.  For dual- or multi-boot guests, "
34630 "multiple roots can be returned, each one corresponding to a separate "
34631 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34632 "world of virtualization, but since this scenario can happen, we have built "
34633 "libguestfs to deal with it.)"
34634 msgstr ""
34635
34636 #. type: textblock
34637 #: ../src/guestfs.pod:571
34638 msgid ""
34639 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34640 "to get additional details about that operating system.  For example, call L</"
34641 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34642 "Windows and Linux-based operating systems respectively."
34643 msgstr ""
34644
34645 #. type: textblock
34646 #: ../src/guestfs.pod:577
34647 msgid ""
34648 "Un*x-like and Linux-based operating systems usually consist of several "
34649 "filesystems which are mounted at boot time (for example, a separate boot "
34650 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34651 "filesystems correspond to mount points.  Call "
34652 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34653 "hash table like this example:"
34654 msgstr ""
34655
34656 #. type: verbatim
34657 #: ../src/guestfs.pod:584
34658 #, no-wrap
34659 msgid ""
34660 " /boot => /dev/sda1\n"
34661 " /     => /dev/vg_guest/lv_root\n"
34662 " /usr  => /dev/vg_guest/lv_usr\n"
34663 "\n"
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:588
34668 msgid ""
34669 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34670 "filesystems as suggested."
34671 msgstr ""
34672
34673 #. type: textblock
34674 #: ../src/guestfs.pod:591
34675 msgid ""
34676 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34677 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34678 msgstr ""
34679
34680 #. type: textblock
34681 #: ../src/guestfs.pod:595
34682 msgid ""
34683 "Inspection currently only works for some common operating systems.  "
34684 "Contributors are welcome to send patches for other operating systems that we "
34685 "currently cannot detect."
34686 msgstr ""
34687
34688 #. type: textblock
34689 #: ../src/guestfs.pod:599
34690 msgid ""
34691 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34692 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34693 "encrypted devices."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:603
34698 msgid ""
34699 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34700 "inspection and caches the results in the guest handle.  Subsequent calls to "
34701 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34702 "read the disks.  If you change the content of the guest disks, you can redo "
34703 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34704 "guestfs_inspect_list_applications> works a little differently from the other "
34705 "calls and does read the disks.  See documentation for that function for "
34706 "details)."
34707 msgstr ""
34708
34709 #. type: =head3
34710 #: ../src/guestfs.pod:612
34711 msgid "INSPECTING INSTALL DISKS"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:614
34716 msgid ""
34717 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34718 "CDs and more."
34719 msgstr ""
34720
34721 #. type: textblock
34722 #: ../src/guestfs.pod:617
34723 msgid ""
34724 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34725 "system, which currently can be C<installed> (a regular operating system) or "
34726 "C<installer> (some sort of install disk)."
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:621
34731 msgid ""
34732 "Further information is available about the operating system that can be "
34733 "installed using the regular inspection APIs like L</"
34734 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34735 msgstr ""
34736
34737 #. type: textblock
34738 #: ../src/guestfs.pod:626
34739 msgid ""
34740 "Some additional information specific to installer disks is also available "
34741 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34742 "guestfs_inspect_is_multipart> calls."
34743 msgstr ""
34744
34745 #. type: =head2
34746 #: ../src/guestfs.pod:631
34747 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34748 msgstr ""
34749
34750 #. type: textblock
34751 #: ../src/guestfs.pod:633
34752 msgid ""
34753 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34754 "ntfs-3g.org/> driver."
34755 msgstr ""
34756
34757 #. type: =head3
34758 #: ../src/guestfs.pod:636
34759 msgid "DRIVE LETTERS AND PATHS"
34760 msgstr ""
34761
34762 #. type: textblock
34763 #: ../src/guestfs.pod:638
34764 msgid ""
34765 "DOS and Windows still use drive letters, and the filesystems are always "
34766 "treated as case insensitive by Windows itself, and therefore you might find "
34767 "a Windows configuration file referring to a path like C<c:\\windows"
34768 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34769 "might be referred to as C</WINDOWS/System32>."
34770 msgstr ""
34771
34772 #. type: textblock
34773 #: ../src/guestfs.pod:644
34774 msgid ""
34775 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34776 "L</guestfs_inspect_get_drive_mappings>)"
34777 msgstr ""
34778
34779 #. type: textblock
34780 #: ../src/guestfs.pod:647
34781 msgid ""
34782 "Dealing with separator characters (backslash vs forward slash) is outside "
34783 "the scope of libguestfs, but usually a simple character replacement will "
34784 "work."
34785 msgstr ""
34786
34787 #. type: textblock
34788 #: ../src/guestfs.pod:651
34789 msgid ""
34790 "To resolve the case insensitivity of paths, call L</"
34791 "guestfs_case_sensitive_path>."
34792 msgstr ""
34793
34794 #. type: =head3
34795 #: ../src/guestfs.pod:654
34796 msgid "ACCESSING THE WINDOWS REGISTRY"
34797 msgstr ""
34798
34799 #. type: textblock
34800 #: ../src/guestfs.pod:656
34801 msgid ""
34802 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34803 "files, through the library C<hivex> which is part of the libguestfs project "
34804 "although ships as a separate tarball.  You have to locate and download the "
34805 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34806 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34807 "reg(1)> for more help on this issue."
34808 msgstr ""
34809
34810 #. type: =head3
34811 #: ../src/guestfs.pod:664
34812 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34813 msgstr ""
34814
34815 #. type: textblock
34816 #: ../src/guestfs.pod:666
34817 msgid ""
34818 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34819 "provide something which looks like a Linux symlink.  The way it tries to do "
34820 "the rewriting is described here:"
34821 msgstr ""
34822
34823 #. type: textblock
34824 #: ../src/guestfs.pod:670
34825 msgid ""
34826 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34827 "symbolic-links/>"
34828 msgstr ""
34829
34830 #. type: textblock
34831 #: ../src/guestfs.pod:672
34832 msgid ""
34833 "The essential problem is that ntfs-3g simply does not have enough "
34834 "information to do a correct job.  NTFS links can contain drive letters and "
34835 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34836 "It is almost certainly the case that libguestfs callers should ignore what "
34837 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34838 msgstr ""
34839
34840 #. type: textblock
34841 #: ../src/guestfs.pod:679
34842 msgid ""
34843 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34844 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34845 "attribute, and read the raw reparse data from that (you can find the format "
34846 "documented in various places around the web)."
34847 msgstr ""
34848
34849 #. type: =head3
34850 #: ../src/guestfs.pod:684
34851 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:686
34856 msgid ""
34857 "There are other useful extended attributes that can be read from ntfs-3g "
34858 "filesystems (using L</guestfs_getxattr>).  See:"
34859 msgstr ""
34860
34861 #. type: textblock
34862 #: ../src/guestfs.pod:689
34863 msgid ""
34864 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34865 msgstr ""
34866
34867 #. type: =head2
34868 #: ../src/guestfs.pod:691
34869 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34870 msgstr ""
34871
34872 #. type: textblock
34873 #: ../src/guestfs.pod:693
34874 msgid ""
34875 "Although we don't want to discourage you from using the C API, we will "
34876 "mention here that the same API is also available in other languages."
34877 msgstr ""
34878
34879 #. type: textblock
34880 #: ../src/guestfs.pod:696
34881 msgid ""
34882 "The API is broadly identical in all supported languages.  This means that "
34883 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34884 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34885 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34886 "each language."
34887 msgstr ""
34888
34889 #. type: textblock
34890 #: ../src/guestfs.pod:702
34891 msgid ""
34892 "Error messages are automatically transformed into exceptions if the language "
34893 "supports it."
34894 msgstr ""
34895
34896 #. type: textblock
34897 #: ../src/guestfs.pod:705
34898 msgid ""
34899 "We don't try to \"object orientify\" parts of the API in OO languages, "
34900 "although contributors are welcome to write higher level APIs above what we "
34901 "provide in their favourite languages if they wish."
34902 msgstr ""
34903
34904 #. type: =item
34905 #: ../src/guestfs.pod:711
34906 msgid "B<C++>"
34907 msgstr ""
34908
34909 #. type: textblock
34910 #: ../src/guestfs.pod:713
34911 msgid ""
34912 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34913 "identical to the C API.  C++ classes and exceptions are not used."
34914 msgstr ""
34915
34916 #. type: =item
34917 #: ../src/guestfs.pod:717
34918 msgid "B<C#>"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs.pod:719
34923 msgid ""
34924 "The C# bindings are highly experimental.  Please read the warnings at the "
34925 "top of C<csharp/Libguestfs.cs>."
34926 msgstr ""
34927
34928 #. type: =item
34929 #: ../src/guestfs.pod:722
34930 msgid "B<Erlang>"
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:724
34935 msgid "See L<guestfs-erlang(3)>."
34936 msgstr ""
34937
34938 #. type: =item
34939 #: ../src/guestfs.pod:726
34940 msgid "B<Haskell>"
34941 msgstr ""
34942
34943 #. type: textblock
34944 #: ../src/guestfs.pod:728
34945 msgid ""
34946 "This is the only language binding that is working but incomplete.  Only "
34947 "calls which return simple integers have been bound in Haskell, and we are "
34948 "looking for help to complete this binding."
34949 msgstr ""
34950
34951 #. type: =item
34952 #: ../src/guestfs.pod:732
34953 msgid "B<Java>"
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:734
34958 msgid ""
34959 "Full documentation is contained in the Javadoc which is distributed with "
34960 "libguestfs.  For examples, see L<guestfs-java(3)>."
34961 msgstr ""
34962
34963 #. type: =item
34964 #: ../src/guestfs.pod:737
34965 msgid "B<OCaml>"
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:739
34970 msgid "See L<guestfs-ocaml(3)>."
34971 msgstr ""
34972
34973 #. type: =item
34974 #: ../src/guestfs.pod:741
34975 msgid "B<Perl>"
34976 msgstr ""
34977
34978 #. type: textblock
34979 #: ../src/guestfs.pod:743
34980 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34981 msgstr ""
34982
34983 #. type: =item
34984 #: ../src/guestfs.pod:745
34985 msgid "B<PHP>"
34986 msgstr ""
34987
34988 #. type: textblock
34989 #: ../src/guestfs.pod:747
34990 msgid ""
34991 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34992 "the php-libguestfs package for your distribution."
34993 msgstr ""
34994
34995 #. type: textblock
34996 #: ../src/guestfs.pod:750
34997 msgid "The PHP binding only works correctly on 64 bit machines."
34998 msgstr ""
34999
35000 #. type: =item
35001 #: ../src/guestfs.pod:752
35002 msgid "B<Python>"
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:754
35007 msgid "See L<guestfs-python(3)>."
35008 msgstr ""
35009
35010 #. type: =item
35011 #: ../src/guestfs.pod:756
35012 msgid "B<Ruby>"
35013 msgstr ""
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:758
35017 msgid "See L<guestfs-ruby(3)>."
35018 msgstr ""
35019
35020 #. type: =item
35021 #: ../src/guestfs.pod:760
35022 msgid "B<shell scripts>"
35023 msgstr ""
35024
35025 #. type: textblock
35026 #: ../src/guestfs.pod:762
35027 msgid "See L<guestfish(1)>."
35028 msgstr ""
35029
35030 #. type: =head2
35031 #: ../src/guestfs.pod:766
35032 msgid "LIBGUESTFS GOTCHAS"
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs.pod:768
35037 msgid ""
35038 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35039 "system [...] that works in the way it is documented but is counterintuitive "
35040 "and almost invites mistakes.\""
35041 msgstr ""
35042
35043 #. type: textblock
35044 #: ../src/guestfs.pod:772
35045 msgid ""
35046 "Since we developed libguestfs and the associated tools, there are several "
35047 "things we would have designed differently, but are now stuck with for "
35048 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35049 "release, you can expect these to change.  Beware of them."
35050 msgstr ""
35051
35052 #. type: =item
35053 #: ../src/guestfs.pod:780
35054 msgid "Autosync / forgetting to sync."
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:782
35059 msgid ""
35060 "I<Update:> Autosync is enabled by default for all API users starting from "
35061 "libguestfs 1.5.24.  This section only applies to older versions."
35062 msgstr ""
35063
35064 #. type: textblock
35065 #: ../src/guestfs.pod:785
35066 msgid ""
35067 "When modifying a filesystem from C or another language, you B<must> unmount "
35068 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35069 "libguestfs handle.  You can also call:"
35070 msgstr ""
35071
35072 #. type: verbatim
35073 #: ../src/guestfs.pod:789
35074 #, no-wrap
35075 msgid ""
35076 " guestfs_set_autosync (g, 1);\n"
35077 "\n"
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs.pod:791
35082 msgid ""
35083 "to have the unmount/sync done automatically for you when the handle 'g' is "
35084 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35085 msgstr ""
35086
35087 #. type: textblock
35088 #: ../src/guestfs.pod:795
35089 msgid ""
35090 "If you forget to do this, then it is entirely possible that your changes "
35091 "won't be written out, or will be partially written, or (very rarely) that "
35092 "you'll get disk corruption."
35093 msgstr ""
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:799
35097 msgid ""
35098 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35099 "guestfish scripts that forget to sync will work just fine, which can make "
35100 "this very puzzling if you are trying to debug a problem."
35101 msgstr ""
35102
35103 #. type: =item
35104 #: ../src/guestfs.pod:803
35105 msgid "Mount option C<-o sync> should not be the default."
35106 msgstr ""
35107
35108 #. type: textblock
35109 #: ../src/guestfs.pod:805
35110 msgid ""
35111 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35112 "libguestfs 1.13.16.  This section only applies to older versions."
35113 msgstr ""
35114
35115 #. type: textblock
35116 #: ../src/guestfs.pod:808
35117 msgid ""
35118 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35119 "However C<-o sync> does not add any reliability benefit, but does have a "
35120 "very large performance impact."
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:812
35125 msgid ""
35126 "The work around is to use L</guestfs_mount_options> and set the mount "
35127 "options that you actually want to use."
35128 msgstr ""
35129
35130 #. type: =item
35131 #: ../src/guestfs.pod:815
35132 msgid "Read-only should be the default."
35133 msgstr ""
35134
35135 #. type: textblock
35136 #: ../src/guestfs.pod:817
35137 msgid ""
35138 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35139 "specify I<--rw> if you want to make changes to the image."
35140 msgstr ""
35141
35142 #. type: textblock
35143 #: ../src/guestfs.pod:820
35144 msgid "This would reduce the potential to corrupt live VM images."
35145 msgstr ""
35146
35147 #. type: textblock
35148 #: ../src/guestfs.pod:822
35149 msgid ""
35150 "Note that many filesystems change the disk when you just mount and unmount, "
35151 "even if you didn't perform any writes.  You need to use L</"
35152 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35153 msgstr ""
35154
35155 #. type: =item
35156 #: ../src/guestfs.pod:826
35157 msgid "guestfish command line is hard to use."
35158 msgstr ""
35159
35160 #. type: textblock
35161 #: ../src/guestfs.pod:828
35162 msgid ""
35163 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35164 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35165 "exist, so it fails.  In earlier versions of guestfish the error message was "
35166 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35167 "we should have used C<guestfish -c command> to run commands."
35168 msgstr ""
35169
35170 #. type: =item
35171 #: ../src/guestfs.pod:835
35172 msgid "guestfish megabyte modifiers don't work right on all commands"
35173 msgstr ""
35174
35175 #. type: textblock
35176 #: ../src/guestfs.pod:837
35177 msgid ""
35178 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35179 "other modifiers).  What guestfish actually does is to multiply the number "
35180 "part by the modifier part and pass the result to the C API.  However this "
35181 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35182 "expecting some other unit (eg. megabytes)."
35183 msgstr ""
35184
35185 #. type: textblock
35186 #: ../src/guestfs.pod:844
35187 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35188 msgstr ""
35189
35190 #. type: verbatim
35191 #: ../src/guestfs.pod:846
35192 #, no-wrap
35193 msgid ""
35194 " lvcreate LV VG 100M\n"
35195 "\n"
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:848
35200 msgid ""
35201 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35202 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35203 "megabytes * megabytes) logical volume.  The error message you get from this "
35204 "is also a little obscure."
35205 msgstr ""
35206
35207 #. type: textblock
35208 #: ../src/guestfs.pod:853
35209 msgid ""
35210 "This could be fixed in the generator by specially marking parameters and "
35211 "return values which take bytes or other units."
35212 msgstr ""
35213
35214 #. type: =item
35215 #: ../src/guestfs.pod:856
35216 msgid "Ambiguity between devices and paths"
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:858
35221 msgid ""
35222 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35223 "sdb2>) and a similar pathname.  A file might just happen to be called "
35224 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:863
35229 msgid ""
35230 "In the current API we usually resolve this ambiguity by having two separate "
35231 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35232 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35233 "detecting if the path supplied begins with C</dev/>."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:869
35238 msgid ""
35239 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35240 "make paths/devices into structured names.  One way to do this would be to "
35241 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35242 "aspect of grub.  Another way would be to use a structured type, equivalent "
35243 "to this OCaml type:"
35244 msgstr ""
35245
35246 #. type: verbatim
35247 #: ../src/guestfs.pod:875
35248 #, no-wrap
35249 msgid ""
35250 " type path = Path of string | Device of int | Partition of int * int\n"
35251 "\n"
35252 msgstr ""
35253
35254 #. type: textblock
35255 #: ../src/guestfs.pod:877
35256 msgid "which would allow you to pass arguments like:"
35257 msgstr ""
35258
35259 #. type: verbatim
35260 #: ../src/guestfs.pod:879
35261 #, no-wrap
35262 msgid ""
35263 " Path \"/foo/bar\"\n"
35264 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35265 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35266 " Path \"/dev/sdb2\"    (* not a device *)\n"
35267 "\n"
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:884
35272 msgid ""
35273 "As you can see there are still problems to resolve even with this "
35274 "representation.  Also consider how it might work in guestfish."
35275 msgstr ""
35276
35277 #. type: =head2
35278 #: ../src/guestfs.pod:889
35279 msgid "KEYS AND PASSPHRASES"
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:891
35284 msgid ""
35285 "Certain libguestfs calls take a parameter that contains sensitive key "
35286 "material, passed in as a C string."
35287 msgstr ""
35288
35289 #. type: textblock
35290 #: ../src/guestfs.pod:894
35291 msgid ""
35292 "In the future we would hope to change the libguestfs implementation so that "
35293 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35294 "swap.  However this is I<not> done at the moment, because of the complexity "
35295 "of such an implementation."
35296 msgstr ""
35297
35298 #. type: textblock
35299 #: ../src/guestfs.pod:899
35300 msgid ""
35301 "Therefore you should be aware that any key parameter you pass to libguestfs "
35302 "might end up being written out to the swap partition.  If this is a concern, "
35303 "scrub the swap partition or don't use libguestfs on encrypted devices."
35304 msgstr ""
35305
35306 #. type: =head2
35307 #: ../src/guestfs.pod:904
35308 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:906
35313 msgid ""
35314 "All high-level libguestfs actions are synchronous.  If you want to use "
35315 "libguestfs asynchronously then you must create a thread."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:909
35320 msgid ""
35321 "Only use the handle from a single thread.  Either use the handle exclusively "
35322 "from one thread, or provide your own mutex so that two threads cannot issue "
35323 "calls on the same handle at the same time."
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs.pod:913
35328 msgid ""
35329 "See the graphical program guestfs-browser for one possible architecture for "
35330 "multithreaded programs using libvirt and libguestfs."
35331 msgstr ""
35332
35333 #. type: =head2
35334 #: ../src/guestfs.pod:916
35335 msgid "PATH"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:918
35340 msgid ""
35341 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35342 "internal path."
35343 msgstr ""
35344
35345 #. type: textblock
35346 #: ../src/guestfs.pod:921
35347 msgid ""
35348 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35349 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:924
35354 msgid ""
35355 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35356 "to change the directories that libguestfs will search in.  The value is a "
35357 "colon-separated list of paths.  The current directory is I<not> searched "
35358 "unless the path contains an empty element or C<.>.  For example "
35359 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35360 "then C</usr/lib/guestfs>."
35361 msgstr ""
35362
35363 #. type: =head2
35364 #: ../src/guestfs.pod:931
35365 msgid "QEMU WRAPPERS"
35366 msgstr ""
35367
35368 #. type: textblock
35369 #: ../src/guestfs.pod:933
35370 msgid ""
35371 "If you want to compile your own qemu, run qemu from a non-standard location, "
35372 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35373 "around qemu."
35374 msgstr ""
35375
35376 #. type: textblock
35377 #: ../src/guestfs.pod:937
35378 msgid ""
35379 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35380 "last command in the shell script (so that qemu replaces the shell and "
35381 "becomes the direct child of the libguestfs-using program).  If you don't do "
35382 "this, then the qemu process won't be cleaned up correctly."
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:942
35387 msgid ""
35388 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35389 "source:"
35390 msgstr ""
35391
35392 #. type: verbatim
35393 #: ../src/guestfs.pod:945
35394 #, no-wrap
35395 msgid ""
35396 " #!/bin/sh -\n"
35397 " qemudir=/home/rjones/d/qemu\n"
35398 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35399 "\n"
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:949
35404 msgid ""
35405 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35406 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35407 "example:"
35408 msgstr ""
35409
35410 #. type: verbatim
35411 #: ../src/guestfs.pod:953
35412 #, no-wrap
35413 msgid ""
35414 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35415 "\n"
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:955
35420 msgid ""
35421 "Note that libguestfs also calls qemu with the -help and -version options in "
35422 "order to determine features."
35423 msgstr ""
35424
35425 #. type: textblock
35426 #: ../src/guestfs.pod:958
35427 msgid ""
35428 "Wrappers can also be used to edit the options passed to qemu.  In the "
35429 "following example, the C<-machine ...> option (C<-machine> and the following "
35430 "argument) are removed from the command line and replaced with C<-machine pc,"
35431 "accel=tcg>.  The while loop iterates over the options until it finds the "
35432 "right one to remove, putting the remaining options into the C<args> array."
35433 msgstr ""
35434
35435 #. type: verbatim
35436 #: ../src/guestfs.pod:967
35437 #, no-wrap
35438 msgid ""
35439 " i=0\n"
35440 " while [ $# -gt 0 ]; do\n"
35441 "     case \"$1\" in\n"
35442 "     -machine)\n"
35443 "         shift 2;;\n"
35444 "     *)\n"
35445 "         args[i]=\"$1\"\n"
35446 "         (( i++ ))\n"
35447 "         shift ;;\n"
35448 "     esac\n"
35449 " done\n"
35450 " \n"
35451 msgstr ""
35452
35453 #. type: verbatim
35454 #: ../src/guestfs.pod:979
35455 #, no-wrap
35456 msgid ""
35457 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35458 "\n"
35459 msgstr ""
35460
35461 #. type: =head2
35462 #: ../src/guestfs.pod:981
35463 msgid "ATTACHING TO RUNNING DAEMONS"
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:983
35468 msgid ""
35469 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35470 "babies.  Use with caution."
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:986
35475 msgid ""
35476 "I<Note (2):> This section explains how to attach to a running daemon from a "
35477 "low level perspective.  For most users, simply using virt tools such as "
35478 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35479 msgstr ""
35480
35481 #. type: =head3
35482 #: ../src/guestfs.pod:990
35483 msgid "Using guestfs_set_attach_method"
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:992
35488 msgid ""
35489 "By calling L</guestfs_set_attach_method> you can change how the library "
35490 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35491 "ARCHITECTURE> for some background)."
35492 msgstr ""
35493
35494 #. type: textblock
35495 #: ../src/guestfs.pod:996
35496 msgid ""
35497 "The normal attach method is C<appliance>, where a small appliance is created "
35498 "containing the daemon, and then the library connects to this."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:999
35503 msgid ""
35504 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35505 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35506 "daemon over the Unix domain socket."
35507 msgstr ""
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:1003
35511 msgid ""
35512 "The normal use for this is to connect to a running virtual machine that "
35513 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35514 "files inside the live virtual machine."
35515 msgstr ""
35516
35517 #. type: =head3
35518 #: ../src/guestfs.pod:1007
35519 msgid "Using guestfs_add_domain with live flag"
35520 msgstr ""
35521
35522 #. type: textblock
35523 #: ../src/guestfs.pod:1009
35524 msgid ""
35525 "L</guestfs_add_domain> provides some help for getting the correct attach "
35526 "method.  If you pass the C<live> option to this function, then (if the "
35527 "virtual machine is running) it will examine the libvirt XML looking for a "
35528 "virtio-serial channel to connect to:"
35529 msgstr ""
35530
35531 #. type: verbatim
35532 #: ../src/guestfs.pod:1015
35533 #, no-wrap
35534 msgid ""
35535 " <domain>\n"
35536 "   ...\n"
35537 "   <devices>\n"
35538 "     ...\n"
35539 "     <channel type='unix'>\n"
35540 "       <source mode='bind' path='/path/to/socket'/>\n"
35541 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35542 "     </channel>\n"
35543 "     ...\n"
35544 "   </devices>\n"
35545 " </domain>\n"
35546 "\n"
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:1027
35551 msgid ""
35552 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35553 "method to C<unix:/path/to/socket>."
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:1030
35558 msgid ""
35559 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35560 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35561 "to attach to and modify live virtual machines."
35562 msgstr ""
35563
35564 #. type: textblock
35565 #: ../src/guestfs.pod:1034
35566 msgid ""
35567 "The virtual machine needs to have been set up beforehand so that it has the "
35568 "virtio-serial channel and so that guestfsd is running inside it."
35569 msgstr ""
35570
35571 #. type: =head2
35572 #: ../src/guestfs.pod:1038
35573 msgid "ABI GUARANTEE"
35574 msgstr ""
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:1040
35578 msgid ""
35579 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35580 "actions as outlined in this section.  Although we will deprecate some "
35581 "actions, for example if they get replaced by newer calls, we will keep the "
35582 "old actions forever.  This allows you the developer to program in confidence "
35583 "against the libguestfs API."
35584 msgstr ""
35585
35586 #. type: =head2
35587 #: ../src/guestfs.pod:1046
35588 msgid "BLOCK DEVICE NAMING"
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:1048
35593 msgid ""
35594 "In the kernel there is now quite a profusion of schemata for naming block "
35595 "devices (in this context, by I<block device> I mean a physical or virtual "
35596 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35597 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35598 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35599 "for the old IDE driver (particularly for SATA devices) those devices also "
35600 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35601 "paravirtualized drivers.  This has created several different naming systems, "
35602 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:1060
35607 msgid ""
35608 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35609 "Linux kernel to access block devices.  We can run a variety of appliances "
35610 "based on a variety of Linux kernels."
35611 msgstr ""
35612
35613 #. type: textblock
35614 #: ../src/guestfs.pod:1064
35615 msgid ""
35616 "This causes a problem for libguestfs because many API calls use device or "
35617 "partition names.  Working scripts and the recipe (example) scripts that we "
35618 "make available over the internet could fail if the naming scheme changes."
35619 msgstr ""
35620
35621 #. type: textblock
35622 #: ../src/guestfs.pod:1069
35623 msgid ""
35624 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35625 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35626 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35627 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:1075
35632 msgid ""
35633 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35634 "L</guestfs_list_partitions> and similar calls return the true names of the "
35635 "devices and partitions as known to the appliance."
35636 msgstr ""
35637
35638 #. type: =head3
35639 #: ../src/guestfs.pod:1080
35640 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35641 msgstr ""
35642
35643 #. type: textblock
35644 #: ../src/guestfs.pod:1082
35645 msgid ""
35646 "Usually this translation is transparent.  However in some (very rare)  cases "
35647 "you may need to know the exact algorithm.  Such cases include where you use "
35648 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35649 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:1088
35654 msgid ""
35655 "The algorithm is applied only to I<parameters> which are known to be either "
35656 "device or partition names.  Return values from functions such as L</"
35657 "guestfs_list_devices> are never changed."
35658 msgstr ""
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:1096
35662 msgid "Is the string a parameter which is a device or partition name?"
35663 msgstr ""
35664
35665 #. type: textblock
35666 #: ../src/guestfs.pod:1100
35667 msgid "Does the string begin with C</dev/sd>?"
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:1104
35672 msgid ""
35673 "Does the named device exist? If so, we use that device.  However if I<not> "
35674 "then we continue with this algorithm."
35675 msgstr ""
35676
35677 #. type: textblock
35678 #: ../src/guestfs.pod:1109
35679 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:1111
35684 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35685 msgstr ""
35686
35687 #. type: textblock
35688 #: ../src/guestfs.pod:1113
35689 msgid "If that named device exists, use it.  If not, continue."
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:1117
35694 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:1119
35699 msgid "If that named device exists, use it.  If not, return an error."
35700 msgstr ""
35701
35702 #. type: =head3
35703 #: ../src/guestfs.pod:1123
35704 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:1125
35709 msgid ""
35710 "Although the standard naming scheme and automatic translation is useful for "
35711 "simple programs and guestfish scripts, for larger programs it is best not to "
35712 "rely on this mechanism."
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../src/guestfs.pod:1129
35717 msgid ""
35718 "Where possible for maximum future portability programs using libguestfs "
35719 "should use these future-proof techniques:"
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:1136
35724 msgid ""
35725 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35726 "device names, and then use those names directly."
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../src/guestfs.pod:1139
35731 msgid ""
35732 "Since those device names exist by definition, they will never be translated."
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../src/guestfs.pod:1144
35737 msgid ""
35738 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35739 "filesystem labels."
35740 msgstr ""
35741
35742 #. type: textblock
35743 #: ../src/guestfs.pod:1151
35744 msgid ""
35745 "This section discusses security implications of using libguestfs, "
35746 "particularly with untrusted or malicious guests or disk images."
35747 msgstr ""
35748
35749 #. type: =head2
35750 #: ../src/guestfs.pod:1154
35751 msgid "GENERAL SECURITY CONSIDERATIONS"
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:1156
35756 msgid ""
35757 "Be careful with any files or data that you download from a guest (by "
35758 "\"download\" we mean not just the L</guestfs_download> command but any "
35759 "command that reads files, filenames, directories or anything else from a "
35760 "disk image).  An attacker could manipulate the data to fool your program "
35761 "into doing the wrong thing.  Consider cases such as:"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:1166
35766 msgid "the data (file etc) not being present"
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:1170
35771 msgid "being present but empty"
35772 msgstr ""
35773
35774 #. type: textblock
35775 #: ../src/guestfs.pod:1174
35776 msgid "being much larger than normal"
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:1178
35781 msgid "containing arbitrary 8 bit data"
35782 msgstr ""
35783
35784 #. type: textblock
35785 #: ../src/guestfs.pod:1182
35786 msgid "being in an unexpected character encoding"
35787 msgstr ""
35788
35789 #. type: textblock
35790 #: ../src/guestfs.pod:1186
35791 msgid "containing homoglyphs."
35792 msgstr ""
35793
35794 #. type: =head2
35795 #: ../src/guestfs.pod:1190
35796 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35797 msgstr ""
35798
35799 #. type: textblock
35800 #: ../src/guestfs.pod:1192
35801 msgid ""
35802 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35803 "(VFS) module can sometimes be escalated into exploits by deliberately "
35804 "creating a malicious, malformed filesystem.  These exploits are very severe "
35805 "for two reasons.  Firstly there are very many filesystem drivers in the "
35806 "kernel, and many of them are infrequently used and not much developer "
35807 "attention has been paid to the code.  Linux userspace helps potential "
35808 "crackers by detecting the filesystem type and automatically choosing the "
35809 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35810 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35811 "exploit (worse in some ways), giving immediate and total access to the "
35812 "system right down to the hardware level."
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../src/guestfs.pod:1205
35817 msgid ""
35818 "That explains why you should never mount a filesystem from an untrusted "
35819 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35820 "inside a qemu virtual machine, usually running as a non-root user.  The "
35821 "attacker would need to write a filesystem which first exploited the kernel, "
35822 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35823 "the libguestfs protocol, and finally to be as serious as the host kernel "
35824 "exploit it would need to escalate its privileges to root.  This multi-step "
35825 "escalation, performed by a static piece of data, is thought to be extremely "
35826 "hard to do, although we never say 'never' about security issues."
35827 msgstr ""
35828
35829 #. type: textblock
35830 #: ../src/guestfs.pod:1216
35831 msgid ""
35832 "In any case callers can reduce the attack surface by forcing the filesystem "
35833 "type when mounting (use L</guestfs_mount_vfs>)."
35834 msgstr ""
35835
35836 #. type: =head2
35837 #: ../src/guestfs.pod:1219
35838 msgid "PROTOCOL SECURITY"
35839 msgstr ""
35840
35841 #. type: textblock
35842 #: ../src/guestfs.pod:1221
35843 msgid ""
35844 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35845 "defined upper message size.  However a program that uses libguestfs must "
35846 "also take care - for example you can write a program that downloads a binary "
35847 "from a disk image and executes it locally, and no amount of protocol "
35848 "security will save you from the consequences."
35849 msgstr ""
35850
35851 #. type: =head2
35852 #: ../src/guestfs.pod:1227
35853 msgid "INSPECTION SECURITY"
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:1229
35858 msgid ""
35859 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35860 "directly from the guest, and these could contain any 8 bit data.  Callers "
35861 "should be careful to escape these before printing them to a structured file "
35862 "(for example, use HTML escaping if creating a web page)."
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:1235
35867 msgid ""
35868 "Guest configuration may be altered in unusual ways by the administrator of "
35869 "the virtual machine, and may not reflect reality (particularly for untrusted "
35870 "or actively malicious guests).  For example we parse the hostname from "
35871 "configuration files like C</etc/sysconfig/network> that we find in the "
35872 "guest, but the guest administrator can easily manipulate these files to "
35873 "provide the wrong hostname."
35874 msgstr ""
35875
35876 #. type: textblock
35877 #: ../src/guestfs.pod:1243
35878 msgid ""
35879 "The inspection API parses guest configuration using two external libraries: "
35880 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35881 "designed to be robust in the face of malicious data, although denial of "
35882 "service attacks are still possible, for example with oversized configuration "
35883 "files."
35884 msgstr ""
35885
35886 #. type: =head2
35887 #: ../src/guestfs.pod:1249
35888 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:1251
35893 msgid ""
35894 "Be very cautious about running commands from the guest.  By running a "
35895 "command in the guest, you are giving CPU time to a binary that you do not "
35896 "control, under the same user account as the library, albeit wrapped in qemu "
35897 "virtualization.  More information and alternatives can be found in the "
35898 "section L</RUNNING COMMANDS>."
35899 msgstr ""
35900
35901 #. type: =head2
35902 #: ../src/guestfs.pod:1257
35903 msgid "CVE-2010-3851"
35904 msgstr ""
35905
35906 #. type: textblock
35907 #: ../src/guestfs.pod:1259
35908 msgid "https://bugzilla.redhat.com/642934"
35909 msgstr ""
35910
35911 #. type: textblock
35912 #: ../src/guestfs.pod:1261
35913 msgid ""
35914 "This security bug concerns the automatic disk format detection that qemu "
35915 "does on disk images."
35916 msgstr ""
35917
35918 #. type: textblock
35919 #: ../src/guestfs.pod:1264
35920 msgid ""
35921 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35922 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35923 "for one of the known headers, and if none is found then assuming the disk "
35924 "image must be raw."
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:1269
35929 msgid ""
35930 "This allows a guest which has been given a raw disk image to write some "
35931 "other header.  At next boot (or when the disk image is accessed by "
35932 "libguestfs) qemu would do autodetection and think the disk image format was, "
35933 "say, qcow2 based on the header written by the guest."
35934 msgstr ""
35935
35936 #. type: textblock
35937 #: ../src/guestfs.pod:1274
35938 msgid ""
35939 "This in itself would not be a problem, but qcow2 offers many features, one "
35940 "of which is to allow a disk image to refer to another image (called the "
35941 "\"backing disk\").  It does this by placing the path to the backing disk "
35942 "into the qcow2 header.  This path is not validated and could point to any "
35943 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35944 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35945 "control of the attacker."
35946 msgstr ""
35947
35948 #. type: textblock
35949 #: ../src/guestfs.pod:1282
35950 msgid ""
35951 "In libguestfs this is rather hard to exploit except under two circumstances:"
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:1289
35956 msgid "You have enabled the network or have opened the disk in write mode."
35957 msgstr ""
35958
35959 #. type: textblock
35960 #: ../src/guestfs.pod:1293
35961 msgid ""
35962 "You are also running untrusted code from the guest (see L</RUNNING "
35963 "COMMANDS>)."
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:1298
35968 msgid ""
35969 "The way to avoid this is to specify the expected disk format when adding "
35970 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35971 "should always do this if the disk is raw format, and it's a good idea for "
35972 "other cases too."
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:1303
35977 msgid ""
35978 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35979 "format is fetched from libvirt and passed through."
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:1306
35984 msgid ""
35985 "For libguestfs tools, use the I<--format> command line parameter as "
35986 "appropriate."
35987 msgstr ""
35988
35989 #. type: =head1
35990 #: ../src/guestfs.pod:1309
35991 msgid "CONNECTION MANAGEMENT"
35992 msgstr ""
35993
35994 #. type: =head2
35995 #: ../src/guestfs.pod:1311
35996 msgid "guestfs_h *"
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:1313
36001 msgid ""
36002 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36003 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36004 "handle and release all resources used."
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:1317
36009 msgid ""
36010 "For information on using multiple handles and threads, see the section L</"
36011 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36012 msgstr ""
36013
36014 #. type: =head2
36015 #: ../src/guestfs.pod:1320
36016 msgid "guestfs_create"
36017 msgstr ""
36018
36019 #. type: verbatim
36020 #: ../src/guestfs.pod:1322
36021 #, no-wrap
36022 msgid ""
36023 " guestfs_h *guestfs_create (void);\n"
36024 "\n"
36025 msgstr ""
36026
36027 #. type: textblock
36028 #: ../src/guestfs.pod:1324
36029 msgid "Create a connection handle."
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:1326
36034 msgid ""
36035 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36036 "NULL."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:1329
36041 msgid ""
36042 "You have to \"configure\" the handle after creating it.  This includes "
36043 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36044 "handle at least once."
36045 msgstr ""
36046
36047 #. type: textblock
36048 #: ../src/guestfs.pod:1333
36049 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:1335
36054 msgid ""
36055 "You may also want to configure error handling for the handle.  See the L</"
36056 "ERROR HANDLING> section below."
36057 msgstr ""
36058
36059 #. type: =head2
36060 #: ../src/guestfs.pod:1338
36061 msgid "guestfs_close"
36062 msgstr ""
36063
36064 #. type: verbatim
36065 #: ../src/guestfs.pod:1340
36066 #, no-wrap
36067 msgid ""
36068 " void guestfs_close (guestfs_h *g);\n"
36069 "\n"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:1342
36074 msgid "This closes the connection handle and frees up all resources used."
36075 msgstr ""
36076
36077 #. type: textblock
36078 #: ../src/guestfs.pod:1344
36079 msgid ""
36080 "If autosync was set on the handle and the handle was launched, then this "
36081 "implicitly calls various functions to unmount filesystems and sync the "
36082 "disk.  See L</guestfs_set_autosync> for more details."
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:1348
36087 msgid "If a close callback was set on the handle, then it is called."
36088 msgstr ""
36089
36090 #. type: =head1
36091 #: ../src/guestfs.pod:1350
36092 msgid "ERROR HANDLING"
36093 msgstr ""
36094
36095 #. type: textblock
36096 #: ../src/guestfs.pod:1352
36097 msgid ""
36098 "API functions can return errors.  For example, almost all functions that "
36099 "return C<int> will return C<-1> to indicate an error."
36100 msgstr ""
36101
36102 #. type: textblock
36103 #: ../src/guestfs.pod:1355
36104 msgid ""
36105 "Additional information is available for errors: an error message string and "
36106 "optionally an error number (errno) if the thing that failed was a system "
36107 "call."
36108 msgstr ""
36109
36110 #. type: textblock
36111 #: ../src/guestfs.pod:1359
36112 msgid ""
36113 "You can get at the additional information about the last error on the handle "
36114 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36115 "up an error handler with L</guestfs_set_error_handler>."
36116 msgstr ""
36117
36118 #. type: textblock
36119 #: ../src/guestfs.pod:1364
36120 msgid ""
36121 "When the handle is created, a default error handler is installed which "
36122 "prints the error message string to C<stderr>.  For small short-running "
36123 "command line programs it is sufficient to do:"
36124 msgstr ""
36125
36126 #. type: verbatim
36127 #: ../src/guestfs.pod:1368
36128 #, no-wrap
36129 msgid ""
36130 " if (guestfs_launch (g) == -1)\n"
36131 "   exit (EXIT_FAILURE);\n"
36132 "\n"
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:1371
36137 msgid ""
36138 "since the default error handler will ensure that an error message has been "
36139 "printed to C<stderr> before the program exits."
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../src/guestfs.pod:1374
36144 msgid ""
36145 "For other programs the caller will almost certainly want to install an "
36146 "alternate error handler or do error handling in-line like this:"
36147 msgstr ""
36148
36149 #. type: verbatim
36150 #: ../src/guestfs.pod:1377
36151 #, no-wrap
36152 msgid ""
36153 " /* This disables the default behaviour of printing errors\n"
36154 "    on stderr. */\n"
36155 " guestfs_set_error_handler (g, NULL, NULL);\n"
36156 " \n"
36157 msgstr ""
36158
36159 #. type: verbatim
36160 #: ../src/guestfs.pod:1381
36161 #, no-wrap
36162 msgid ""
36163 " if (guestfs_launch (g) == -1) {\n"
36164 "   /* Examine the error message and print it etc. */\n"
36165 "   char *msg = guestfs_last_error (g);\n"
36166 "   int errnum = guestfs_last_errno (g);\n"
36167 "   fprintf (stderr, \"%s\", msg);\n"
36168 "   if (errnum != 0)\n"
36169 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36170 "   fprintf (stderr, \"\\n\");\n"
36171 "   /* ... */\n"
36172 " }\n"
36173 "\n"
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../src/guestfs.pod:1392
36178 msgid ""
36179 "Out of memory errors are handled differently.  The default action is to call "
36180 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36181 "guestfs_set_out_of_memory_handler>."
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:1396
36186 msgid ""
36187 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36188 "because there is no handle if this happens there is no way to get additional "
36189 "error information.  However L</guestfs_create> is supposed to be a "
36190 "lightweight operation which can only fail because of insufficient memory (it "
36191 "returns NULL in this case)."
36192 msgstr ""
36193
36194 #. type: =head2
36195 #: ../src/guestfs.pod:1402
36196 msgid "guestfs_last_error"
36197 msgstr ""
36198
36199 #. type: verbatim
36200 #: ../src/guestfs.pod:1404
36201 #, no-wrap
36202 msgid ""
36203 " const char *guestfs_last_error (guestfs_h *g);\n"
36204 "\n"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:1406
36209 msgid ""
36210 "This returns the last error message that happened on C<g>.  If there has not "
36211 "been an error since the handle was created, then this returns C<NULL>."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:1410
36216 msgid ""
36217 "The lifetime of the returned string is until the next error occurs, or L</"
36218 "guestfs_close> is called."
36219 msgstr ""
36220
36221 #. type: =head2
36222 #: ../src/guestfs.pod:1413
36223 msgid "guestfs_last_errno"
36224 msgstr ""
36225
36226 #. type: verbatim
36227 #: ../src/guestfs.pod:1415
36228 #, no-wrap
36229 msgid ""
36230 " int guestfs_last_errno (guestfs_h *g);\n"
36231 "\n"
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../src/guestfs.pod:1417
36236 msgid "This returns the last error number (errno) that happened on C<g>."
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:1419
36241 msgid "If successful, an errno integer not equal to zero is returned."
36242 msgstr ""
36243
36244 #. type: textblock
36245 #: ../src/guestfs.pod:1421
36246 msgid ""
36247 "If no error, this returns 0.  This call can return 0 in three situations:"
36248 msgstr ""
36249
36250 #. type: textblock
36251 #: ../src/guestfs.pod:1428
36252 msgid "There has not been any error on the handle."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:1432
36257 msgid ""
36258 "There has been an error but the errno was meaningless.  This corresponds to "
36259 "the case where the error did not come from a failed system call, but for "
36260 "some other reason."
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:1438
36265 msgid ""
36266 "There was an error from a failed system call, but for some reason the errno "
36267 "was not captured and returned.  This usually indicates a bug in libguestfs."
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:1444
36272 msgid ""
36273 "Libguestfs tries to convert the errno from inside the applicance into a "
36274 "corresponding errno for the caller (not entirely trivial: the appliance "
36275 "might be running a completely different operating system from the library "
36276 "and error numbers are not standardized across Un*xen).  If this could not be "
36277 "done, then the error is translated to C<EINVAL>.  In practice this should "
36278 "only happen in very rare circumstances."
36279 msgstr ""
36280
36281 #. type: =head2
36282 #: ../src/guestfs.pod:1452
36283 msgid "guestfs_set_error_handler"
36284 msgstr ""
36285
36286 #. type: verbatim
36287 #: ../src/guestfs.pod:1454
36288 #, no-wrap
36289 msgid ""
36290 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36291 "                                           void *opaque,\n"
36292 "                                           const char *msg);\n"
36293 " void guestfs_set_error_handler (guestfs_h *g,\n"
36294 "                                 guestfs_error_handler_cb cb,\n"
36295 "                                 void *opaque);\n"
36296 "\n"
36297 msgstr ""
36298
36299 #. type: textblock
36300 #: ../src/guestfs.pod:1461
36301 msgid ""
36302 "The callback C<cb> will be called if there is an error.  The parameters "
36303 "passed to the callback are an opaque data pointer and the error message "
36304 "string."
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:1465
36309 msgid ""
36310 "C<errno> is not passed to the callback.  To get that the callback must call "
36311 "L</guestfs_last_errno>."
36312 msgstr ""
36313
36314 #. type: textblock
36315 #: ../src/guestfs.pod:1468
36316 msgid ""
36317 "Note that the message string C<msg> is freed as soon as the callback "
36318 "function returns, so if you want to stash it somewhere you must make your "
36319 "own copy."
36320 msgstr ""
36321
36322 #. type: textblock
36323 #: ../src/guestfs.pod:1472
36324 msgid "The default handler prints messages on C<stderr>."
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:1474
36329 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36330 msgstr ""
36331
36332 #. type: =head2
36333 #: ../src/guestfs.pod:1476
36334 msgid "guestfs_get_error_handler"
36335 msgstr ""
36336
36337 #. type: verbatim
36338 #: ../src/guestfs.pod:1478
36339 #, no-wrap
36340 msgid ""
36341 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36342 "                                                     void **opaque_rtn);\n"
36343 "\n"
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../src/guestfs.pod:1481
36348 msgid "Returns the current error handler callback."
36349 msgstr ""
36350
36351 #. type: =head2
36352 #: ../src/guestfs.pod:1483
36353 msgid "guestfs_set_out_of_memory_handler"
36354 msgstr ""
36355
36356 #. type: verbatim
36357 #: ../src/guestfs.pod:1485
36358 #, no-wrap
36359 msgid ""
36360 " typedef void (*guestfs_abort_cb) (void);\n"
36361 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36362 "                                         guestfs_abort_cb);\n"
36363 "\n"
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:1489
36368 msgid ""
36369 "The callback C<cb> will be called if there is an out of memory situation.  "
36370 "I<Note this callback must not return>."
36371 msgstr ""
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:1492
36375 msgid "The default is to call L<abort(3)>."
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:1494
36380 msgid ""
36381 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36382 msgstr ""
36383
36384 #. type: =head2
36385 #: ../src/guestfs.pod:1497
36386 msgid "guestfs_get_out_of_memory_handler"
36387 msgstr ""
36388
36389 #. type: verbatim
36390 #: ../src/guestfs.pod:1499
36391 #, no-wrap
36392 msgid ""
36393 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36394 "\n"
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:1501
36399 msgid "This returns the current out of memory handler."
36400 msgstr ""
36401
36402 #. type: =head1
36403 #: ../src/guestfs.pod:1503
36404 msgid "API CALLS"
36405 msgstr ""
36406
36407 #. type: =head1
36408 #: ../src/guestfs.pod:1507
36409 msgid "STRUCTURES"
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:1509
36414 msgid "@STRUCTS@"
36415 msgstr ""
36416
36417 #. type: =head1
36418 #: ../src/guestfs.pod:1511
36419 msgid "AVAILABILITY"
36420 msgstr ""
36421
36422 #. type: =head2
36423 #: ../src/guestfs.pod:1513
36424 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../src/guestfs.pod:1515
36429 msgid ""
36430 "Using L</guestfs_available> you can test availability of the following "
36431 "groups of functions.  This test queries the appliance to see if the "
36432 "appliance you are currently using supports the functionality."
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:1520
36437 msgid "@AVAILABILITY@"
36438 msgstr ""
36439
36440 #. type: =head2
36441 #: ../src/guestfs.pod:1522
36442 msgid "GUESTFISH supported COMMAND"
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:1524
36447 msgid ""
36448 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36449 "prints out the available groups and whether they are supported by this build "
36450 "of libguestfs.  Note however that you have to do C<run> first."
36451 msgstr ""
36452
36453 #. type: =head2
36454 #: ../src/guestfs.pod:1529
36455 msgid "SINGLE CALLS AT COMPILE TIME"
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:1531
36460 msgid ""
36461 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36462 "function, such as:"
36463 msgstr ""
36464
36465 #. type: verbatim
36466 #: ../src/guestfs.pod:1534
36467 #, no-wrap
36468 msgid ""
36469 " #define LIBGUESTFS_HAVE_DD 1\n"
36470 "\n"
36471 msgstr ""
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:1536
36475 msgid "if L</guestfs_dd> is available."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:1538
36480 msgid ""
36481 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36482 "function is available at compile time, we recommended using build tools such "
36483 "as autoconf or cmake.  For example in autotools you could use:"
36484 msgstr ""
36485
36486 #. type: verbatim
36487 #: ../src/guestfs.pod:1543
36488 #, no-wrap
36489 msgid ""
36490 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36491 " AC_CHECK_FUNCS([guestfs_dd])\n"
36492 "\n"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:1546
36497 msgid ""
36498 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36499 "in your program."
36500 msgstr ""
36501
36502 #. type: =head2
36503 #: ../src/guestfs.pod:1549
36504 msgid "SINGLE CALLS AT RUN TIME"
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:1551
36509 msgid ""
36510 "Testing at compile time doesn't guarantee that a function really exists in "
36511 "the library.  The reason is that you might be dynamically linked against a "
36512 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36513 "This situation unfortunately results in a segmentation fault, which is a "
36514 "shortcoming of the C dynamic linking system itself."
36515 msgstr ""
36516
36517 #. type: textblock
36518 #: ../src/guestfs.pod:1558
36519 msgid ""
36520 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36521 "in this example program (note that you still need the compile time check as "
36522 "well):"
36523 msgstr ""
36524
36525 #. type: verbatim
36526 #: ../src/guestfs.pod:1562
36527 #, no-wrap
36528 msgid ""
36529 " #include <stdio.h>\n"
36530 " #include <stdlib.h>\n"
36531 " #include <unistd.h>\n"
36532 " #include <dlfcn.h>\n"
36533 " #include <guestfs.h>\n"
36534 " \n"
36535 msgstr ""
36536
36537 #. type: verbatim
36538 #: ../src/guestfs.pod:1568
36539 #, no-wrap
36540 msgid ""
36541 " main ()\n"
36542 " {\n"
36543 " #ifdef LIBGUESTFS_HAVE_DD\n"
36544 "   void *dl;\n"
36545 "   int has_function;\n"
36546 " \n"
36547 msgstr ""
36548
36549 #. type: verbatim
36550 #: ../src/guestfs.pod:1574
36551 #, no-wrap
36552 msgid ""
36553 "   /* Test if the function guestfs_dd is really available. */\n"
36554 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36555 "   if (!dl) {\n"
36556 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36557 "     exit (EXIT_FAILURE);\n"
36558 "   }\n"
36559 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36560 "   dlclose (dl);\n"
36561 " \n"
36562 msgstr ""
36563
36564 #. type: verbatim
36565 #: ../src/guestfs.pod:1583
36566 #, no-wrap
36567 msgid ""
36568 "   if (!has_function)\n"
36569 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36570 "   else {\n"
36571 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36572 "     /* Now it's safe to call\n"
36573 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36574 "     */\n"
36575 "   }\n"
36576 " #else\n"
36577 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36578 " #endif\n"
36579 "  }\n"
36580 "\n"
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:1596
36585 msgid ""
36586 "You may think the above is an awful lot of hassle, and it is.  There are "
36587 "other ways outside of the C linking system to ensure that this kind of "
36588 "incompatibility never arises, such as using package versioning:"
36589 msgstr ""
36590
36591 #. type: verbatim
36592 #: ../src/guestfs.pod:1601
36593 #, no-wrap
36594 msgid ""
36595 " Requires: libguestfs >= 1.0.80\n"
36596 "\n"
36597 msgstr ""
36598
36599 #. type: =head1
36600 #: ../src/guestfs.pod:1603
36601 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:1605
36606 msgid ""
36607 "A recent feature of the API is the introduction of calls which take optional "
36608 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36609 "takes variable arguments (ie. C<...>), as in this example:"
36610 msgstr ""
36611
36612 #. type: verbatim
36613 #: ../src/guestfs.pod:1610
36614 #, no-wrap
36615 msgid ""
36616 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36617 "\n"
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:1612
36622 msgid ""
36623 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36624 "call with no optional arguments specified:"
36625 msgstr ""
36626
36627 #. type: verbatim
36628 #: ../src/guestfs.pod:1615
36629 #, no-wrap
36630 msgid ""
36631 " guestfs_add_drive_opts (g, filename, -1);\n"
36632 "\n"
36633 msgstr ""
36634
36635 #. type: textblock
36636 #: ../src/guestfs.pod:1617
36637 msgid "With a single optional argument:"
36638 msgstr ""
36639
36640 #. type: verbatim
36641 #: ../src/guestfs.pod:1619
36642 #, no-wrap
36643 msgid ""
36644 " guestfs_add_drive_opts (g, filename,\n"
36645 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36646 "                         -1);\n"
36647 "\n"
36648 msgstr ""
36649
36650 #. type: textblock
36651 #: ../src/guestfs.pod:1623
36652 msgid "With two:"
36653 msgstr ""
36654
36655 #. type: verbatim
36656 #: ../src/guestfs.pod:1625
36657 #, no-wrap
36658 msgid ""
36659 " guestfs_add_drive_opts (g, filename,\n"
36660 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36661 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36662 "                         -1);\n"
36663 "\n"
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../src/guestfs.pod:1630
36668 msgid ""
36669 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36670 "happen!"
36671 msgstr ""
36672
36673 #. type: =head2
36674 #: ../src/guestfs.pod:1633
36675 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:1635
36680 msgid ""
36681 "The second variant has the same name with the suffix C<_va>, which works the "
36682 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36683 "example function, this is declared:"
36684 msgstr ""
36685
36686 #. type: verbatim
36687 #: ../src/guestfs.pod:1639
36688 #, no-wrap
36689 msgid ""
36690 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36691 "                                va_list args);\n"
36692 "\n"
36693 msgstr ""
36694
36695 #. type: =head2
36696 #: ../src/guestfs.pod:1642
36697 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:1644
36702 msgid ""
36703 "The third variant is useful where you need to construct these calls.  You "
36704 "pass in a structure where you fill in the optional fields.  The structure "
36705 "has a bitmask as the first element which you must set to indicate which "
36706 "fields you have filled in.  For our example function the structure and call "
36707 "are declared:"
36708 msgstr ""
36709
36710 #. type: verbatim
36711 #: ../src/guestfs.pod:1650
36712 #, no-wrap
36713 msgid ""
36714 " struct guestfs_add_drive_opts_argv {\n"
36715 "   uint64_t bitmask;\n"
36716 "   int readonly;\n"
36717 "   const char *format;\n"
36718 "   /* ... */\n"
36719 " };\n"
36720 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36721 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36722 "\n"
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../src/guestfs.pod:1659
36727 msgid "You could call it like this:"
36728 msgstr ""
36729
36730 #. type: verbatim
36731 #: ../src/guestfs.pod:1661
36732 #, no-wrap
36733 msgid ""
36734 " struct guestfs_add_drive_opts_argv optargs = {\n"
36735 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36736 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36737 "   .readonly = 1,\n"
36738 "   .format = \"qcow2\"\n"
36739 " };\n"
36740 " \n"
36741 msgstr ""
36742
36743 #. type: verbatim
36744 #: ../src/guestfs.pod:1668
36745 #, no-wrap
36746 msgid ""
36747 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36748 "\n"
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:1676
36753 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../src/guestfs.pod:1681
36758 msgid "You do not need to fill in all fields of the structure."
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:1685
36763 msgid ""
36764 "There must be a one-to-one correspondence between fields of the structure "
36765 "that are filled in, and bits set in the bitmask."
36766 msgstr ""
36767
36768 #. type: =head2
36769 #: ../src/guestfs.pod:1690
36770 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:1692
36775 msgid ""
36776 "In other languages, optional arguments are expressed in the way that is "
36777 "natural for that language.  We refer you to the language-specific "
36778 "documentation for more details on that."
36779 msgstr ""
36780
36781 #. type: textblock
36782 #: ../src/guestfs.pod:1696
36783 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36784 msgstr ""
36785
36786 #. type: =head2
36787 #: ../src/guestfs.pod:1698
36788 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../src/guestfs.pod:1700
36793 msgid ""
36794 "B<Note:> This section documents the generic event mechanism introduced in "
36795 "libguestfs 1.10, which you should use in new code if possible.  The old "
36796 "functions C<guestfs_set_log_message_callback>, "
36797 "C<guestfs_set_subprocess_quit_callback>, "
36798 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36799 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36800 "page.  Because of the ABI guarantee, the old functions continue to work."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1709
36805 msgid ""
36806 "Handles generate events when certain things happen, such as log messages "
36807 "being generated, progress messages during long-running operations, or the "
36808 "handle being closed.  The API calls described below let you register a "
36809 "callback to be called when events happen.  You can register multiple "
36810 "callbacks (for the same, different or overlapping sets of events), and "
36811 "individually remove callbacks.  If callbacks are not removed, then they "
36812 "remain in force until the handle is closed."
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:1717
36817 msgid ""
36818 "In the current implementation, events are only generated synchronously: that "
36819 "means that events (and hence callbacks) can only happen while you are in the "
36820 "middle of making another libguestfs call.  The callback is called in the "
36821 "same thread."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:1722
36826 msgid ""
36827 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36828 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36829 msgstr ""
36830
36831 #. type: =head3
36832 #: ../src/guestfs.pod:1726
36833 msgid "CLASSES OF EVENTS"
36834 msgstr ""
36835
36836 #. type: =item
36837 #: ../src/guestfs.pod:1730
36838 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:1733
36843 msgid ""
36844 "The callback function will be called while the handle is being closed "
36845 "(synchronously from L</guestfs_close>)."
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:1736
36850 msgid ""
36851 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36852 "handles that are open when the program exits.  This means that this callback "
36853 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36854 "problems in higher-level languages (eg. if your HLL interpreter has already "
36855 "been cleaned up by the time this is called, and if your callback then jumps "
36856 "into some HLL function)."
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:1743
36861 msgid ""
36862 "If no callback is registered: the handle is closed without any callback "
36863 "being invoked."
36864 msgstr ""
36865
36866 #. type: =item
36867 #: ../src/guestfs.pod:1746
36868 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:1749
36873 msgid ""
36874 "The callback function will be called when the child process quits, either "
36875 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36876 "corresponds to a transition from any state to the CONFIG state)."
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
36881 msgid "If no callback is registered: the event is ignored."
36882 msgstr ""
36883
36884 #. type: =item
36885 #: ../src/guestfs.pod:1755
36886 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:1758
36891 msgid ""
36892 "The callback function will be called when the child process becomes ready "
36893 "first time after it has been launched.  (This corresponds to a transition "
36894 "from LAUNCHING to the READY state)."
36895 msgstr ""
36896
36897 #. type: =item
36898 #: ../src/guestfs.pod:1764
36899 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36900 msgstr ""
36901
36902 #. type: textblock
36903 #: ../src/guestfs.pod:1767
36904 msgid ""
36905 "Some long-running operations can generate progress messages.  If this "
36906 "callback is registered, then it will be called each time a progress message "
36907 "is generated (usually two seconds after the operation started, and three "
36908 "times per second thereafter until it completes, although the frequency may "
36909 "change in future versions)."
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../src/guestfs.pod:1773
36914 msgid ""
36915 "The callback receives in the payload four unsigned 64 bit numbers which are "
36916 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36917 msgstr ""
36918
36919 #. type: textblock
36920 #: ../src/guestfs.pod:1776
36921 msgid ""
36922 "The units of C<total> are not defined, although for some operations C<total> "
36923 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36924 "or megabytes), and C<position> may be the portion which has been transferred."
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../src/guestfs.pod:1781
36929 msgid "The only defined and stable parts of the API are:"
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:1787
36934 msgid ""
36935 "The callback can display to the user some type of progress bar or indicator "
36936 "which shows the ratio of C<position>:C<total>."
36937 msgstr ""
36938
36939 #. type: textblock
36940 #: ../src/guestfs.pod:1792
36941 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36942 msgstr ""
36943
36944 #. type: textblock
36945 #: ../src/guestfs.pod:1796
36946 msgid ""
36947 "If any progress notification is sent during a call, then a final progress "
36948 "notification is always sent when C<position> = C<total> (I<unless> the call "
36949 "fails with an error)."
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:1800
36954 msgid ""
36955 "This is to simplify caller code, so callers can easily set the progress "
36956 "indicator to \"100%\" at the end of the operation, without requiring special "
36957 "code to detect this case."
36958 msgstr ""
36959
36960 #. type: textblock
36961 #: ../src/guestfs.pod:1806
36962 msgid ""
36963 "For some calls we are unable to estimate the progress of the call, but we "
36964 "can still generate progress messages to indicate activity.  This is known as "
36965 "\"pulse mode\", and is directly supported by certain progress bar "
36966 "implementations (eg. GtkProgressBar)."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:1811
36971 msgid ""
36972 "For these calls, zero or more progress messages are generated with "
36973 "C<position = 0> and C<total = 1>, followed by a final message with "
36974 "C<position = total = 1>."
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:1815
36979 msgid ""
36980 "As noted above, if the call fails with an error then the final message may "
36981 "not be generated."
36982 msgstr ""
36983
36984 #. type: textblock
36985 #: ../src/guestfs.pod:1820
36986 msgid ""
36987 "The callback also receives the procedure number (C<proc_nr>) and serial "
36988 "number (C<serial>) of the call.  These are only useful for debugging "
36989 "protocol issues, and the callback can normally ignore them.  The callback "
36990 "may want to print these numbers in error messages or debugging messages."
36991 msgstr ""
36992
36993 #. type: textblock
36994 #: ../src/guestfs.pod:1826
36995 msgid "If no callback is registered: progress messages are discarded."
36996 msgstr ""
36997
36998 #. type: =item
36999 #: ../src/guestfs.pod:1828
37000 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1831
37005 msgid ""
37006 "The callback function is called whenever a log message is generated by qemu, "
37007 "the appliance kernel, guestfsd (daemon), or utility programs."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../src/guestfs.pod:1834
37012 msgid ""
37013 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37014 "guestfs_launch>) then additional debug messages are generated."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
37019 msgid ""
37020 "If no callback is registered: the messages are discarded unless the verbose "
37021 "flag is set in which case they are sent to stderr.  You can override the "
37022 "printing of verbose messages to stderr by setting up a callback."
37023 msgstr ""
37024
37025 #. type: =item
37026 #: ../src/guestfs.pod:1842
37027 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:1845
37032 msgid ""
37033 "The callback function is called whenever a log message is generated by the "
37034 "library part of libguestfs."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:1848
37039 msgid ""
37040 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37041 "messages are generated."
37042 msgstr ""
37043
37044 #. type: =item
37045 #: ../src/guestfs.pod:1856
37046 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:1859
37051 msgid ""
37052 "The callback function is called whenever a trace message is generated.  This "
37053 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../src/guestfs.pod:1862
37058 msgid ""
37059 "If no callback is registered: the messages are sent to stderr.  You can "
37060 "override the printing of trace messages to stderr by setting up a callback."
37061 msgstr ""
37062
37063 #. type: =item
37064 #: ../src/guestfs.pod:1866
37065 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:1869
37070 msgid ""
37071 "The callback function is called whenever a libguestfs function is entered."
37072 msgstr ""
37073
37074 #. type: textblock
37075 #: ../src/guestfs.pod:1872
37076 msgid ""
37077 "The payload is a string which contains the name of the function that we are "
37078 "entering (not including C<guestfs_> prefix)."
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../src/guestfs.pod:1875
37083 msgid ""
37084 "Note that libguestfs functions can call themselves, so you may see many "
37085 "events from a single call.  A few libguestfs functions do not generate this "
37086 "event."
37087 msgstr ""
37088
37089 #. type: =head3
37090 #: ../src/guestfs.pod:1883
37091 msgid "guestfs_set_event_callback"
37092 msgstr ""
37093
37094 #. type: verbatim
37095 #: ../src/guestfs.pod:1885
37096 #, no-wrap
37097 msgid ""
37098 " int guestfs_set_event_callback (guestfs_h *g,\n"
37099 "                                 guestfs_event_callback cb,\n"
37100 "                                 uint64_t event_bitmask,\n"
37101 "                                 int flags,\n"
37102 "                                 void *opaque);\n"
37103 "\n"
37104 msgstr ""
37105
37106 #. type: textblock
37107 #: ../src/guestfs.pod:1891
37108 msgid ""
37109 "This function registers a callback (C<cb>) for all event classes in the "
37110 "C<event_bitmask>."
37111 msgstr ""
37112
37113 #. type: textblock
37114 #: ../src/guestfs.pod:1894
37115 msgid ""
37116 "For example, to register for all log message events, you could call this "
37117 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37118 "To register a single callback for all possible classes of events, use "
37119 "C<GUESTFS_EVENT_ALL>."
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:1900
37124 msgid "C<flags> should always be passed as 0."
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:1902
37129 msgid ""
37130 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37131 "it for any purpose."
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:1905
37136 msgid ""
37137 "The return value is the event handle (an integer) which you can use to "
37138 "delete the callback (see below)."
37139 msgstr ""
37140
37141 #. type: textblock
37142 #: ../src/guestfs.pod:1908
37143 msgid ""
37144 "If there is an error, this function returns C<-1>, and sets the error in the "
37145 "handle in the usual way (see L</guestfs_last_error> etc.)"
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:1911
37150 msgid ""
37151 "Callbacks remain in effect until they are deleted, or until the handle is "
37152 "closed."
37153 msgstr ""
37154
37155 #. type: textblock
37156 #: ../src/guestfs.pod:1914
37157 msgid ""
37158 "In the case where multiple callbacks are registered for a particular event "
37159 "class, all of the callbacks are called.  The order in which multiple "
37160 "callbacks are called is not defined."
37161 msgstr ""
37162
37163 #. type: =head3
37164 #: ../src/guestfs.pod:1918
37165 msgid "guestfs_delete_event_callback"
37166 msgstr ""
37167
37168 #. type: verbatim
37169 #: ../src/guestfs.pod:1920
37170 #, no-wrap
37171 msgid ""
37172 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37173 "\n"
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:1922
37178 msgid ""
37179 "Delete a callback that was previously registered.  C<event_handle> should be "
37180 "the integer that was returned by a previous call to "
37181 "C<guestfs_set_event_callback> on the same handle."
37182 msgstr ""
37183
37184 #. type: =head3
37185 #: ../src/guestfs.pod:1926
37186 msgid "guestfs_event_callback"
37187 msgstr ""
37188
37189 #. type: verbatim
37190 #: ../src/guestfs.pod:1928
37191 #, no-wrap
37192 msgid ""
37193 " typedef void (*guestfs_event_callback) (\n"
37194 "                  guestfs_h *g,\n"
37195 "                  void *opaque,\n"
37196 "                  uint64_t event,\n"
37197 "                  int event_handle,\n"
37198 "                  int flags,\n"
37199 "                  const char *buf, size_t buf_len,\n"
37200 "                  const uint64_t *array, size_t array_len);\n"
37201 "\n"
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:1937
37206 msgid ""
37207 "This is the type of the event callback function that you have to provide."
37208 msgstr ""
37209
37210 #. type: textblock
37211 #: ../src/guestfs.pod:1940
37212 msgid ""
37213 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37214 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37215 "handle, and C<flags> which in the current API you should ignore."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../src/guestfs.pod:1944
37220 msgid ""
37221 "The remaining parameters contain the event payload (if any).  Each event may "
37222 "contain a payload, which usually relates to the event class, but for future "
37223 "proofing your code should be written to handle any payload for any event "
37224 "class."
37225 msgstr ""
37226
37227 #. type: textblock
37228 #: ../src/guestfs.pod:1949
37229 msgid ""
37230 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37231 "there is no message buffer).  Note that this message buffer can contain "
37232 "arbitrary 8 bit data, including NUL bytes."
37233 msgstr ""
37234
37235 #. type: textblock
37236 #: ../src/guestfs.pod:1953
37237 msgid ""
37238 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37239 "moment this is only used for progress messages."
37240 msgstr ""
37241
37242 #. type: =head3
37243 #: ../src/guestfs.pod:1956
37244 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:1958
37249 msgid ""
37250 "One motivation for the generic event API was to allow GUI programs to "
37251 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37252 "unconditionally to C<stderr>."
37253 msgstr ""
37254
37255 #. type: textblock
37256 #: ../src/guestfs.pod:1962
37257 msgid ""
37258 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37259 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37260 "messages are not events; you must capture error messages separately)."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1967
37265 msgid ""
37266 "Programs have to set up a callback to capture the classes of events of "
37267 "interest:"
37268 msgstr ""
37269
37270 #. type: verbatim
37271 #: ../src/guestfs.pod:1970
37272 #, no-wrap
37273 msgid ""
37274 " int eh =\n"
37275 "   guestfs_set_event_callback\n"
37276 "     (g, message_callback,\n"
37277 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37278 "      GUESTFS_EVENT_TRACE,\n"
37279 "      0, NULL) == -1)\n"
37280 " if (eh == -1) {\n"
37281 "   // handle error in the usual way\n"
37282 " }\n"
37283 "\n"
37284 msgstr ""
37285
37286 #. type: textblock
37287 #: ../src/guestfs.pod:1980
37288 msgid ""
37289 "The callback can then direct messages to the appropriate place.  In this "
37290 "example, messages are directed to syslog:"
37291 msgstr ""
37292
37293 #. type: verbatim
37294 #: ../src/guestfs.pod:1983
37295 #, no-wrap
37296 msgid ""
37297 " static void\n"
37298 " message_callback (\n"
37299 "         guestfs_h *g,\n"
37300 "         void *opaque,\n"
37301 "         uint64_t event,\n"
37302 "         int event_handle,\n"
37303 "         int flags,\n"
37304 "         const char *buf, size_t buf_len,\n"
37305 "         const uint64_t *array, size_t array_len)\n"
37306 " {\n"
37307 "   const int priority = LOG_USER|LOG_INFO;\n"
37308 "   if (buf_len > 0)\n"
37309 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37310 " }\n"
37311 "\n"
37312 msgstr ""
37313
37314 #. type: =head1
37315 #: ../src/guestfs.pod:1998
37316 msgid "CANCELLING LONG TRANSFERS"
37317 msgstr ""
37318
37319 #. type: textblock
37320 #: ../src/guestfs.pod:2000
37321 msgid ""
37322 "Some operations can be cancelled by the caller while they are in progress.  "
37323 "Currently only operations that involve uploading or downloading data can be "
37324 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37325 "parameters in the generator)."
37326 msgstr ""
37327
37328 #. type: =head2
37329 #: ../src/guestfs.pod:2005
37330 msgid "guestfs_user_cancel"
37331 msgstr ""
37332
37333 #. type: verbatim
37334 #: ../src/guestfs.pod:2007
37335 #, no-wrap
37336 msgid ""
37337 " void guestfs_user_cancel (guestfs_h *g);\n"
37338 "\n"
37339 msgstr ""
37340
37341 #. type: textblock
37342 #: ../src/guestfs.pod:2009
37343 msgid ""
37344 "C<guestfs_user_cancel> cancels the current upload or download operation."
37345 msgstr ""
37346
37347 #. type: textblock
37348 #: ../src/guestfs.pod:2012
37349 msgid ""
37350 "Unlike most other libguestfs calls, this function is signal safe and thread "
37351 "safe.  You can call it from a signal handler or from another thread, without "
37352 "needing to do any locking."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2016
37357 msgid ""
37358 "The transfer that was in progress (if there is one) will stop shortly "
37359 "afterwards, and will return an error.  The errno (see L</"
37360 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37361 "out if the operation was cancelled or failed because of another error."
37362 msgstr ""
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:2022
37366 msgid ""
37367 "No cleanup is performed: for example, if a file was being uploaded then "
37368 "after cancellation there may be a partially uploaded file.  It is the "
37369 "caller's responsibility to clean up if necessary."
37370 msgstr ""
37371
37372 #. type: textblock
37373 #: ../src/guestfs.pod:2026
37374 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../src/guestfs.pod:2028
37379 msgid ""
37380 "In an interactive text-based program, you might call it from a C<SIGINT> "
37381 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37382 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37383 "receive the C<^C> signal)."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:2033
37388 msgid ""
37389 "In a graphical program, when the main thread is displaying a progress bar "
37390 "with a cancel button, wire up the cancel button to call this function."
37391 msgstr ""
37392
37393 #. type: =head1
37394 #: ../src/guestfs.pod:2037
37395 msgid "PRIVATE DATA AREA"
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:2039
37400 msgid ""
37401 "You can attach named pieces of private data to the libguestfs handle, fetch "
37402 "them by name, and walk over them, for the lifetime of the handle.  This is "
37403 "called the private data area and is only available from the C API."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:2044
37408 msgid "To attach a named piece of data, use the following call:"
37409 msgstr ""
37410
37411 #. type: verbatim
37412 #: ../src/guestfs.pod:2046
37413 #, no-wrap
37414 msgid ""
37415 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37416 "\n"
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:2048
37421 msgid ""
37422 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37423 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37424 "overwritten."
37425 msgstr ""
37426
37427 #. type: textblock
37428 #: ../src/guestfs.pod:2052
37429 msgid ""
37430 "You can use any C<key> you want, but your key should I<not> start with an "
37431 "underscore character.  Keys beginning with an underscore character are "
37432 "reserved for internal libguestfs purposes (eg. for implementing language "
37433 "bindings).  It is recommended that you prefix the key with some unique "
37434 "string to avoid collisions with other users."
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:2058
37439 msgid "To retrieve the pointer, use:"
37440 msgstr ""
37441
37442 #. type: verbatim
37443 #: ../src/guestfs.pod:2060
37444 #, no-wrap
37445 msgid ""
37446 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37447 "\n"
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:2062
37452 msgid ""
37453 "This function returns C<NULL> if either no data is found associated with "
37454 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37455 "C<NULL>."
37456 msgstr ""
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:2066
37460 msgid ""
37461 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37462 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37463 "all.  In particular, libguestfs does I<not> try to free the data when the "
37464 "handle is closed.  If the data must be freed, then the caller must either "
37465 "free it before calling L</guestfs_close> or must set up a close callback to "
37466 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:2073
37471 msgid "To walk over all entries, use these two functions:"
37472 msgstr ""
37473
37474 #. type: verbatim
37475 #: ../src/guestfs.pod:2075
37476 #, no-wrap
37477 msgid ""
37478 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37479 "\n"
37480 msgstr ""
37481
37482 #. type: verbatim
37483 #: ../src/guestfs.pod:2077
37484 #, no-wrap
37485 msgid ""
37486 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37487 "\n"
37488 msgstr ""
37489
37490 #. type: textblock
37491 #: ../src/guestfs.pod:2079
37492 msgid ""
37493 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37494 "not have any particular meaning -- keys are not returned in any defined "
37495 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37496 "corresponding data pointer is returned from the function.  C<NULL> is "
37497 "returned if there are no keys stored in the handle."
37498 msgstr ""
37499
37500 #. type: textblock
37501 #: ../src/guestfs.pod:2085
37502 msgid ""
37503 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37504 "value of this function is also C<NULL> is there are no further entries to "
37505 "return."
37506 msgstr ""
37507
37508 #. type: textblock
37509 #: ../src/guestfs.pod:2089
37510 msgid "Notes about walking over entries:"
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:2095
37515 msgid ""
37516 "You must not call C<guestfs_set_private> while walking over the entries."
37517 msgstr ""
37518
37519 #. type: textblock
37520 #: ../src/guestfs.pod:2100
37521 msgid ""
37522 "The handle maintains an internal iterator which is reset when you call "
37523 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37524 "call C<guestfs_set_private>."
37525 msgstr ""
37526
37527 #. type: textblock
37528 #: ../src/guestfs.pod:2106
37529 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37530 msgstr ""
37531
37532 #. type: verbatim
37533 #: ../src/guestfs.pod:2108
37534 #, no-wrap
37535 msgid ""
37536 " guestfs_set_private (g, key, NULL);\n"
37537 "\n"
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:2110
37542 msgid "then that C<key> is not returned when walking."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:2114
37547 msgid ""
37548 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37549 "C<guestfs_next_private> or C<guestfs_set_private>."
37550 msgstr ""
37551
37552 #. type: textblock
37553 #: ../src/guestfs.pod:2120
37554 msgid ""
37555 "The following example code shows how to print all keys and data pointers "
37556 "that are associated with the handle C<g>:"
37557 msgstr ""
37558
37559 #. type: verbatim
37560 #: ../src/guestfs.pod:2123
37561 #, no-wrap
37562 msgid ""
37563 " const char *key;\n"
37564 " void *data = guestfs_first_private (g, &key);\n"
37565 " while (data != NULL)\n"
37566 "   {\n"
37567 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37568 "     data = guestfs_next_private (g, &key);\n"
37569 "   }\n"
37570 "\n"
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:2131
37575 msgid ""
37576 "More commonly you are only interested in keys that begin with an application-"
37577 "specific prefix C<foo_>.  Modify the loop like so:"
37578 msgstr ""
37579
37580 #. type: verbatim
37581 #: ../src/guestfs.pod:2134
37582 #, no-wrap
37583 msgid ""
37584 " const char *key;\n"
37585 " void *data = guestfs_first_private (g, &key);\n"
37586 " while (data != NULL)\n"
37587 "   {\n"
37588 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37589 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37590 "     data = guestfs_next_private (g, &key);\n"
37591 "   }\n"
37592 "\n"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2143
37597 msgid ""
37598 "If you need to modify keys while walking, then you have to jump back to the "
37599 "beginning of the loop.  For example, to delete all keys prefixed with "
37600 "C<foo_>:"
37601 msgstr ""
37602
37603 #. type: verbatim
37604 #: ../src/guestfs.pod:2147
37605 #, no-wrap
37606 msgid ""
37607 "  const char *key;\n"
37608 "  void *data;\n"
37609 " again:\n"
37610 "  data = guestfs_first_private (g, &key);\n"
37611 "  while (data != NULL)\n"
37612 "    {\n"
37613 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37614 "        {\n"
37615 "          guestfs_set_private (g, key, NULL);\n"
37616 "          /* note that 'key' pointer is now invalid, and so is\n"
37617 "             the internal iterator */\n"
37618 "          goto again;\n"
37619 "        }\n"
37620 "      data = guestfs_next_private (g, &key);\n"
37621 "    }\n"
37622 "\n"
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:2163
37627 msgid ""
37628 "Note that the above loop is guaranteed to terminate because the keys are "
37629 "being deleted, but other manipulations of keys within the loop might not "
37630 "terminate unless you also maintain an indication of which keys have been "
37631 "visited."
37632 msgstr ""
37633
37634 #. type: =head1
37635 #: ../src/guestfs.pod:2168
37636 msgid "SYSTEMTAP"
37637 msgstr ""
37638
37639 #. type: textblock
37640 #: ../src/guestfs.pod:2170
37641 msgid ""
37642 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
37643 "true of any library, not just libguestfs.  However libguestfs also contains "
37644 "static markers to help in probing internal operations."
37645 msgstr ""
37646
37647 #. type: textblock
37648 #: ../src/guestfs.pod:2174
37649 msgid "You can list all the static markers by doing:"
37650 msgstr ""
37651
37652 #. type: verbatim
37653 #: ../src/guestfs.pod:2176
37654 #, no-wrap
37655 msgid ""
37656 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
37657 "              .provider(\"guestfs\").mark(\"*\")'\n"
37658 "\n"
37659 msgstr ""
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:2179
37663 msgid ""
37664 "B<Note:> These static markers are I<not> part of the stable API and may "
37665 "change in future versions."
37666 msgstr ""
37667
37668 #. type: =head2
37669 #: ../src/guestfs.pod:2182
37670 msgid "SYSTEMTAP SCRIPT EXAMPLE"
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../src/guestfs.pod:2184
37675 msgid ""
37676 "This script contains examples of displaying both the static markers and some "
37677 "ordinary C entry points:"
37678 msgstr ""
37679
37680 #. type: verbatim
37681 #: ../src/guestfs.pod:2187
37682 #, no-wrap
37683 msgid ""
37684 " global last;\n"
37685 " \n"
37686 msgstr ""
37687
37688 #. type: verbatim
37689 #: ../src/guestfs.pod:2189
37690 #, no-wrap
37691 msgid ""
37692 " function display_time () {\n"
37693 "       now = gettimeofday_us ();\n"
37694 "       delta = 0;\n"
37695 "       if (last > 0)\n"
37696 "             delta = now - last;\n"
37697 "       last = now;\n"
37698 " \n"
37699 msgstr ""
37700
37701 #. type: verbatim
37702 #: ../src/guestfs.pod:2196
37703 #, no-wrap
37704 msgid ""
37705 "       printf (\"%d (+%d):\", now, delta);\n"
37706 " }\n"
37707 " \n"
37708 msgstr ""
37709
37710 #. type: verbatim
37711 #: ../src/guestfs.pod:2199
37712 #, no-wrap
37713 msgid ""
37714 " probe begin {\n"
37715 "       last = 0;\n"
37716 "       printf (\"ready\\n\");\n"
37717 " }\n"
37718 " \n"
37719 msgstr ""
37720
37721 #. type: verbatim
37722 #: ../src/guestfs.pod:2204
37723 #, no-wrap
37724 msgid ""
37725 " /* Display all calls to static markers. */\n"
37726 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37727 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
37728 "       display_time();\n"
37729 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
37730 " }\n"
37731 " \n"
37732 msgstr ""
37733
37734 #. type: verbatim
37735 #: ../src/guestfs.pod:2211
37736 #, no-wrap
37737 msgid ""
37738 " /* Display all calls to guestfs_mkfs* functions. */\n"
37739 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37740 "           .function(\"guestfs_mkfs*\") ? {\n"
37741 "       display_time();\n"
37742 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
37743 " }\n"
37744 "\n"
37745 msgstr ""
37746
37747 #. type: textblock
37748 #: ../src/guestfs.pod:2218
37749 msgid ""
37750 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
37751 "program.  Note that you either have to be root, or you have to add yourself "
37752 "to several special stap groups.  Consult the systemtap documentation for "
37753 "more information."
37754 msgstr ""
37755
37756 #. type: verbatim
37757 #: ../src/guestfs.pod:2223
37758 #, no-wrap
37759 msgid ""
37760 " # stap /tmp/test.stap\n"
37761 " ready\n"
37762 "\n"
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:2226
37767 msgid "In another terminal, run a guestfish command such as this:"
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../src/guestfs.pod:2230
37772 msgid "In the first terminal, stap trace output similar to this is shown:"
37773 msgstr ""
37774
37775 #. type: verbatim
37776 #: ../src/guestfs.pod:2232
37777 #, no-wrap
37778 msgid ""
37779 " 1318248056692655 (+0):\tlaunch_start\n"
37780 " 1318248056692850 (+195):       launch_build_appliance_start\n"
37781 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
37782 " 1318248056838059 (+19774):     launch_run_qemu\n"
37783 " 1318248061071167 (+4233108):   launch_end\n"
37784 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
37785 "\n"
37786 msgstr ""
37787
37788 #. type: =end
37789 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
37790 msgid "html"
37791 msgstr ""
37792
37793 #. type: textblock
37794 #: ../src/guestfs.pod:2241
37795 msgid ""
37796 "<!-- old anchor for the next section --> <a name="
37797 "\"state_machine_and_low_level_event_api\"/>"
37798 msgstr ""
37799
37800 #. type: =head1
37801 #: ../src/guestfs.pod:2246
37802 msgid "ARCHITECTURE"
37803 msgstr ""
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:2248
37807 msgid ""
37808 "Internally, libguestfs is implemented by running an appliance (a special "
37809 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37810 "process of the main program."
37811 msgstr ""
37812
37813 #. type: verbatim
37814 #: ../src/guestfs.pod:2252
37815 #, no-wrap
37816 msgid ""
37817 "  ___________________\n"
37818 " /                   \\\n"
37819 " | main program      |\n"
37820 " |                   |\n"
37821 " |                   |           child process / appliance\n"
37822 " |                   |           __________________________\n"
37823 " |                   |          / qemu                     \\\n"
37824 " +-------------------+   RPC    |      +-----------------+ |\n"
37825 " | libguestfs     <--------------------> guestfsd        | |\n"
37826 " |                   |          |      +-----------------+ |\n"
37827 " \\___________________/          |      | Linux kernel    | |\n"
37828 "                                |      +--^--------------+ |\n"
37829 "                                \\_________|________________/\n"
37830 "                                          |\n"
37831 "                                   _______v______\n"
37832 "                                  /              \\\n"
37833 "                                  | Device or    |\n"
37834 "                                  | disk image   |\n"
37835 "                                  \\______________/\n"
37836 "\n"
37837 msgstr ""
37838
37839 #. type: textblock
37840 #: ../src/guestfs.pod:2272
37841 msgid ""
37842 "The library, linked to the main program, creates the child process and hence "
37843 "the appliance in the L</guestfs_launch> function."
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:2275
37848 msgid ""
37849 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37850 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37851 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37852 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37853 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37854 "attached to the qemu process which translates device access by the "
37855 "appliance's Linux kernel into accesses to the image."
37856 msgstr ""
37857
37858 #. type: textblock
37859 #: ../src/guestfs.pod:2284
37860 msgid ""
37861 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37862 "Although the disk image you are attached to might also be used by some "
37863 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37864 "care if both libguestfs's qemu process and your virtual machine are trying "
37865 "to update the disk image at the same time, since these usually results in "
37866 "massive disk corruption)."
37867 msgstr ""
37868
37869 #. type: =head1
37870 #: ../src/guestfs.pod:2291
37871 msgid "STATE MACHINE"
37872 msgstr ""
37873
37874 #. type: textblock
37875 #: ../src/guestfs.pod:2293
37876 msgid "libguestfs uses a state machine to model the child process:"
37877 msgstr ""
37878
37879 #. type: verbatim
37880 #: ../src/guestfs.pod:2295
37881 #, no-wrap
37882 msgid ""
37883 "                         |\n"
37884 "                    guestfs_create\n"
37885 "                         |\n"
37886 "                         |\n"
37887 "                     ____V_____\n"
37888 "                    /          \\\n"
37889 "                    |  CONFIG  |\n"
37890 "                    \\__________/\n"
37891 "                     ^ ^   ^  \\\n"
37892 "                    /  |    \\  \\ guestfs_launch\n"
37893 "                   /   |    _\\__V______\n"
37894 "                  /    |   /           \\\n"
37895 "                 /     |   | LAUNCHING |\n"
37896 "                /      |   \\___________/\n"
37897 "               /       |       /\n"
37898 "              /        |  guestfs_launch\n"
37899 "             /         |     /\n"
37900 "    ______  /        __|____V\n"
37901 "   /      \\ ------> /        \\\n"
37902 "   | BUSY |         | READY  |\n"
37903 "   \\______/ <------ \\________/\n"
37904 "\n"
37905 msgstr ""
37906
37907 #. type: textblock
37908 #: ../src/guestfs.pod:2317
37909 msgid ""
37910 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37911 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37912 "(3) alternating between READY and BUSY as commands are issued to, and "
37913 "carried out by, the child process."
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:2322
37918 msgid ""
37919 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37920 "asynchronously at any time (eg. due to some internal error), and that causes "
37921 "the state to transition back to CONFIG."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:2326
37926 msgid ""
37927 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37928 "issued when in the CONFIG state."
37929 msgstr ""
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:2329
37933 msgid ""
37934 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37935 "L</guestfs_launch> blocks until the child process is READY to accept "
37936 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37937 "moves the state from CONFIG to LAUNCHING while it is running."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:2335
37942 msgid ""
37943 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37944 "state.  These API calls block waiting for the command to be carried out (ie. "
37945 "the state to transition to BUSY and then back to READY).  There are no non-"
37946 "blocking versions, and no way to issue more than one command per handle at "
37947 "the same time."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../src/guestfs.pod:2341
37952 msgid ""
37953 "Finally, the child process sends asynchronous messages back to the main "
37954 "program, such as kernel log messages.  You can register a callback to "
37955 "receive these messages."
37956 msgstr ""
37957
37958 #. type: =head1
37959 #: ../src/guestfs.pod:2345
37960 msgid "INTERNALS"
37961 msgstr ""
37962
37963 #. type: =head2
37964 #: ../src/guestfs.pod:2347
37965 msgid "APPLIANCE BOOT PROCESS"
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:2349
37970 msgid ""
37971 "This process has evolved and continues to evolve.  The description here "
37972 "corresponds only to the current version of libguestfs and is provided for "
37973 "information only."
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:2353
37978 msgid ""
37979 "In order to follow the stages involved below, enable libguestfs debugging "
37980 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37981 msgstr ""
37982
37983 #. type: =item
37984 #: ../src/guestfs.pod:2358
37985 msgid "Create the appliance"
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:2360
37990 msgid ""
37991 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37992 "initrd and the appliance."
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:2363
37997 msgid ""
37998 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37999 "directory if C<TMPDIR> is set)."
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../src/guestfs.pod:2366
38004 msgid ""
38005 "For a complete description of how the appliance is created and cached, read "
38006 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38007 msgstr ""
38008
38009 #. type: =item
38010 #: ../src/guestfs.pod:2370
38011 msgid "Start qemu and boot the kernel"
38012 msgstr ""
38013
38014 #. type: textblock
38015 #: ../src/guestfs.pod:2372
38016 msgid "qemu is invoked to boot the kernel."
38017 msgstr ""
38018
38019 #. type: =item
38020 #: ../src/guestfs.pod:2374
38021 msgid "Run the initrd"
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../src/guestfs.pod:2376
38026 msgid ""
38027 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38028 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38029 "order that the appliance itself can be mounted and started."
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:2380
38034 msgid ""
38035 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38036 "initrd>."
38037 msgstr ""
38038
38039 #. type: textblock
38040 #: ../src/guestfs.pod:2383
38041 msgid ""
38042 "When the initrd has started you will see messages showing that kernel "
38043 "modules are being loaded, similar to this:"
38044 msgstr ""
38045
38046 #. type: verbatim
38047 #: ../src/guestfs.pod:2386
38048 #, no-wrap
38049 msgid ""
38050 " febootstrap: ext2 mini initrd starting up\n"
38051 " febootstrap: mounting /sys\n"
38052 " febootstrap: internal insmod libcrc32c.ko\n"
38053 " febootstrap: internal insmod crc32c-intel.ko\n"
38054 "\n"
38055 msgstr ""
38056
38057 #. type: =item
38058 #: ../src/guestfs.pod:2391
38059 msgid "Find and mount the appliance device"
38060 msgstr ""
38061
38062 #. type: textblock
38063 #: ../src/guestfs.pod:2393
38064 msgid ""
38065 "The appliance is a sparse file containing an ext2 filesystem which contains "
38066 "a familiar (although reduced in size) Linux operating system.  It would "
38067 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38068 msgstr ""
38069
38070 #. type: textblock
38071 #: ../src/guestfs.pod:2397
38072 msgid ""
38073 "The regular disks being inspected by libguestfs are the first devices "
38074 "exposed by qemu (eg. as C</dev/vda>)."
38075 msgstr ""
38076
38077 #. type: textblock
38078 #: ../src/guestfs.pod:2400
38079 msgid ""
38080 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38081 "there was only one regular disk)."
38082 msgstr ""
38083
38084 #. type: textblock
38085 #: ../src/guestfs.pod:2403
38086 msgid ""
38087 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38088 "and switch root into the appliance, and run C</init> from the appliance."
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../src/guestfs.pod:2407
38093 msgid "If this works successfully you will see messages such as:"
38094 msgstr ""
38095
38096 #. type: verbatim
38097 #: ../src/guestfs.pod:2409
38098 #, no-wrap
38099 msgid ""
38100 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38101 " febootstrap: creating /dev/root as block special 252:16\n"
38102 " febootstrap: mounting new root on /root\n"
38103 " febootstrap: chroot\n"
38104 " Starting /init script ...\n"
38105 "\n"
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../src/guestfs.pod:2415
38110 msgid ""
38111 "Note that C<Starting /init script ...> indicates that the appliance's init "
38112 "script is now running."
38113 msgstr ""
38114
38115 #. type: =item
38116 #: ../src/guestfs.pod:2418
38117 msgid "Initialize the appliance"
38118 msgstr ""
38119
38120 #. type: textblock
38121 #: ../src/guestfs.pod:2420
38122 msgid ""
38123 "The appliance itself now initializes itself.  This involves starting certain "
38124 "processes like C<udev>, possibly printing some debug information, and "
38125 "finally running the daemon (C<guestfsd>)."
38126 msgstr ""
38127
38128 #. type: =item
38129 #: ../src/guestfs.pod:2424
38130 msgid "The daemon"
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:2426
38135 msgid ""
38136 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38137 "should see:"
38138 msgstr ""
38139
38140 #. type: verbatim
38141 #: ../src/guestfs.pod:2429
38142 #, no-wrap
38143 msgid ""
38144 " verbose daemon enabled\n"
38145 "\n"
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../src/guestfs.pod:2431
38150 msgid ""
38151 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38152 "connected on the other end to the library."
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:2434
38157 msgid ""
38158 "The daemon connects to this port (and hence to the library) and sends a four "
38159 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38160 "protocol (see below)."
38161 msgstr ""
38162
38163 #. type: =head2
38164 #: ../src/guestfs.pod:2440
38165 msgid "COMMUNICATION PROTOCOL"
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:2442
38170 msgid ""
38171 "Don't rely on using this protocol directly.  This section documents how it "
38172 "currently works, but it may change at any time."
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:2445
38177 msgid ""
38178 "The protocol used to talk between the library and the daemon running inside "
38179 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38180 "1014, RFC 1832, RFC 4506)."
38181 msgstr ""
38182
38183 #. type: textblock
38184 #: ../src/guestfs.pod:2449
38185 msgid ""
38186 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38187 "this file is automatically generated)."
38188 msgstr ""
38189
38190 #. type: textblock
38191 #: ../src/guestfs.pod:2452
38192 msgid ""
38193 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38194 "and C<FileOut> parameters, which are handled with very simple request/reply "
38195 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38196 "parameters, which use the same request and reply messages, but they may also "
38197 "be followed by files sent using a chunked encoding."
38198 msgstr ""
38199
38200 #. type: =head3
38201 #: ../src/guestfs.pod:2459
38202 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:2461
38207 msgid "For ordinary functions, the request message is:"
38208 msgstr ""
38209
38210 #. type: verbatim
38211 #: ../src/guestfs.pod:2463
38212 #, no-wrap
38213 msgid ""
38214 " total length (header + arguments,\n"
38215 "      but not including the length word itself)\n"
38216 " struct guestfs_message_header (encoded as XDR)\n"
38217 " struct guestfs_<foo>_args (encoded as XDR)\n"
38218 "\n"
38219 msgstr ""
38220
38221 #. type: textblock
38222 #: ../src/guestfs.pod:2468
38223 msgid ""
38224 "The total length field allows the daemon to allocate a fixed size buffer "
38225 "into which it slurps the rest of the message.  As a result, the total length "
38226 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38227 "effective size of any request is limited to somewhere under this size."
38228 msgstr ""
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:2474
38232 msgid ""
38233 "Note also that many functions don't take any arguments, in which case the "
38234 "C<guestfs_I<foo>_args> is completely omitted."
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:2477
38239 msgid ""
38240 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38241 "receiver knows what type of args structure to expect, or none at all."
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../src/guestfs.pod:2481
38246 msgid ""
38247 "For functions that take optional arguments, the optional arguments are "
38248 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38249 "arguments.  A bitmask in the header indicates which optional arguments are "
38250 "meaningful.  The bitmask is also checked to see if it contains bits set "
38251 "which the daemon does not know about (eg. if more optional arguments were "
38252 "added in a later version of the library), and this causes the call to be "
38253 "rejected."
38254 msgstr ""
38255
38256 #. type: textblock
38257 #: ../src/guestfs.pod:2489
38258 msgid "The reply message for ordinary functions is:"
38259 msgstr ""
38260
38261 #. type: verbatim
38262 #: ../src/guestfs.pod:2491
38263 #, no-wrap
38264 msgid ""
38265 " total length (header + ret,\n"
38266 "      but not including the length word itself)\n"
38267 " struct guestfs_message_header (encoded as XDR)\n"
38268 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38269 "\n"
38270 msgstr ""
38271
38272 #. type: textblock
38273 #: ../src/guestfs.pod:2496
38274 msgid ""
38275 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38276 "functions that return no formal return values."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:2499
38281 msgid ""
38282 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38283 msgstr ""
38284
38285 #. type: textblock
38286 #: ../src/guestfs.pod:2502
38287 msgid ""
38288 "In the case of an error, a flag is set in the header, and the reply message "
38289 "is slightly changed:"
38290 msgstr ""
38291
38292 #. type: verbatim
38293 #: ../src/guestfs.pod:2505
38294 #, no-wrap
38295 msgid ""
38296 " total length (header + error,\n"
38297 "      but not including the length word itself)\n"
38298 " struct guestfs_message_header (encoded as XDR)\n"
38299 " struct guestfs_message_error (encoded as XDR)\n"
38300 "\n"
38301 msgstr ""
38302
38303 #. type: textblock
38304 #: ../src/guestfs.pod:2510
38305 msgid ""
38306 "The C<guestfs_message_error> structure contains the error message as a "
38307 "string."
38308 msgstr ""
38309
38310 #. type: =head3
38311 #: ../src/guestfs.pod:2513
38312 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38313 msgstr ""
38314
38315 #. type: textblock
38316 #: ../src/guestfs.pod:2515
38317 msgid ""
38318 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38319 "The normal request message is sent (see above).  However this is followed by "
38320 "a sequence of file chunks."
38321 msgstr ""
38322
38323 #. type: verbatim
38324 #: ../src/guestfs.pod:2519
38325 #, no-wrap
38326 msgid ""
38327 " total length (header + arguments,\n"
38328 "      but not including the length word itself,\n"
38329 "      and not including the chunks)\n"
38330 " struct guestfs_message_header (encoded as XDR)\n"
38331 " struct guestfs_<foo>_args (encoded as XDR)\n"
38332 " sequence of chunks for FileIn param #0\n"
38333 " sequence of chunks for FileIn param #1 etc.\n"
38334 "\n"
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:2527
38339 msgid "The \"sequence of chunks\" is:"
38340 msgstr ""
38341
38342 #. type: verbatim
38343 #: ../src/guestfs.pod:2529
38344 #, no-wrap
38345 msgid ""
38346 " length of chunk (not including length word itself)\n"
38347 " struct guestfs_chunk (encoded as XDR)\n"
38348 " length of chunk\n"
38349 " struct guestfs_chunk (encoded as XDR)\n"
38350 "   ...\n"
38351 " length of chunk\n"
38352 " struct guestfs_chunk (with data.data_len == 0)\n"
38353 "\n"
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:2537
38358 msgid ""
38359 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38360 "is set in the final chunk to indicate either successful completion or early "
38361 "cancellation."
38362 msgstr ""
38363
38364 #. type: textblock
38365 #: ../src/guestfs.pod:2541
38366 msgid ""
38367 "At time of writing there are no functions that have more than one FileIn "
38368 "parameter.  However this is (theoretically) supported, by sending the "
38369 "sequence of chunks for each FileIn parameter one after another (from left to "
38370 "right)."
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:2546
38375 msgid ""
38376 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38377 "transfer.  The library does this by sending a chunk with a special flag set "
38378 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38379 "RPC, does I<not> send any reply, and goes back to reading the next request."
38380 msgstr ""
38381
38382 #. type: textblock
38383 #: ../src/guestfs.pod:2552
38384 msgid ""
38385 "The daemon may also cancel.  It does this by writing a special word "
38386 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38387 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38388 "cancel chunk).  The special word is chosen so that even if cancellation "
38389 "happens right at the end of the transfer (after the library has finished "
38390 "writing and has started listening for the reply), the \"spurious\" cancel "
38391 "flag will not be confused with the reply message."
38392 msgstr ""
38393
38394 #. type: textblock
38395 #: ../src/guestfs.pod:2561
38396 msgid ""
38397 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38398 "limit), and also files where the size is not known in advance (eg. from "
38399 "pipes or sockets).  However the chunks are rather small "
38400 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38401 "to keep much in memory."
38402 msgstr ""
38403
38404 #. type: =head3
38405 #: ../src/guestfs.pod:2567
38406 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38407 msgstr ""
38408
38409 #. type: textblock
38410 #: ../src/guestfs.pod:2569
38411 msgid ""
38412 "The protocol for FileOut parameters is exactly the same as for FileIn "
38413 "parameters, but with the roles of daemon and library reversed."
38414 msgstr ""
38415
38416 #. type: verbatim
38417 #: ../src/guestfs.pod:2572
38418 #, no-wrap
38419 msgid ""
38420 " total length (header + ret,\n"
38421 "      but not including the length word itself,\n"
38422 "      and not including the chunks)\n"
38423 " struct guestfs_message_header (encoded as XDR)\n"
38424 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38425 " sequence of chunks for FileOut param #0\n"
38426 " sequence of chunks for FileOut param #1 etc.\n"
38427 "\n"
38428 msgstr ""
38429
38430 #. type: =head3
38431 #: ../src/guestfs.pod:2580
38432 msgid "INITIAL MESSAGE"
38433 msgstr ""
38434
38435 #. type: textblock
38436 #: ../src/guestfs.pod:2582
38437 msgid ""
38438 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38439 "which indicates that the guest and daemon is alive.  This is what L</"
38440 "guestfs_launch> waits for."
38441 msgstr ""
38442
38443 #. type: =head3
38444 #: ../src/guestfs.pod:2586
38445 msgid "PROGRESS NOTIFICATION MESSAGES"
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:2588
38450 msgid ""
38451 "The daemon may send progress notification messages at any time.  These are "
38452 "distinguished by the normal length word being replaced by "
38453 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38454 msgstr ""
38455
38456 #. type: textblock
38457 #: ../src/guestfs.pod:2592
38458 msgid ""
38459 "The library turns them into progress callbacks (see L</"
38460 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38461 "if not."
38462 msgstr ""
38463
38464 #. type: textblock
38465 #: ../src/guestfs.pod:2596
38466 msgid ""
38467 "The daemon self-limits the frequency of progress messages it sends (see "
38468 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38469 "messages."
38470 msgstr ""
38471
38472 #. type: =head1
38473 #: ../src/guestfs.pod:2600
38474 msgid "LIBGUESTFS VERSION NUMBERS"
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../src/guestfs.pod:2602
38479 msgid ""
38480 "Since April 2010, libguestfs has started to make separate development and "
38481 "stable releases, along with corresponding branches in our git repository.  "
38482 "These separate releases can be identified by version number:"
38483 msgstr ""
38484
38485 #. type: verbatim
38486 #: ../src/guestfs.pod:2607
38487 #, no-wrap
38488 msgid ""
38489 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38490 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38491 "       |\n"
38492 "       v\n"
38493 " 1  .  3  .  5\n"
38494 " ^           ^\n"
38495 " |           |\n"
38496 " |           `-------- sub-version\n"
38497 " |\n"
38498 " `------ always '1' because we don't change the ABI\n"
38499 "\n"
38500 msgstr ""
38501
38502 #. type: textblock
38503 #: ../src/guestfs.pod:2618
38504 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38505 msgstr ""
38506
38507 #. type: textblock
38508 #: ../src/guestfs.pod:2620
38509 msgid ""
38510 "As time passes we cherry pick fixes from the development branch and backport "
38511 "those into the stable branch, the effect being that the stable branch should "
38512 "get more stable and less buggy over time.  So the stable releases are ideal "
38513 "for people who don't need new features but would just like the software to "
38514 "work."
38515 msgstr ""
38516
38517 #. type: textblock
38518 #: ../src/guestfs.pod:2626
38519 msgid "Our criteria for backporting changes are:"
38520 msgstr ""
38521
38522 #. type: textblock
38523 #: ../src/guestfs.pod:2632
38524 msgid ""
38525 "Documentation changes which don't affect any code are backported unless the "
38526 "documentation refers to a future feature which is not in stable."
38527 msgstr ""
38528
38529 #. type: textblock
38530 #: ../src/guestfs.pod:2638
38531 msgid ""
38532 "Bug fixes which are not controversial, fix obvious problems, and have been "
38533 "well tested are backported."
38534 msgstr ""
38535
38536 #. type: textblock
38537 #: ../src/guestfs.pod:2643
38538 msgid ""
38539 "Simple rearrangements of code which shouldn't affect how it works get "
38540 "backported.  This is so that the code in the two branches doesn't get too "
38541 "far out of step, allowing us to backport future fixes more easily."
38542 msgstr ""
38543
38544 #. type: textblock
38545 #: ../src/guestfs.pod:2649
38546 msgid ""
38547 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38548 "exceptional case: the new feature is required in order to implement an "
38549 "important bug fix."
38550 msgstr ""
38551
38552 #. type: textblock
38553 #: ../src/guestfs.pod:2655
38554 msgid ""
38555 "A new stable branch starts when we think the new features in development are "
38556 "substantial and compelling enough over the current stable branch to warrant "
38557 "it.  When that happens we create new stable and development versions 1.N.0 "
38558 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38559 "stable at this point, but by backporting fixes from development, that branch "
38560 "will stabilize over time."
38561 msgstr ""
38562
38563 #. type: =head1
38564 #: ../src/guestfs.pod:2663
38565 msgid "EXTENDING LIBGUESTFS"
38566 msgstr ""
38567
38568 #. type: =head2
38569 #: ../src/guestfs.pod:2665
38570 msgid "ADDING A NEW API ACTION"
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:2667
38575 msgid ""
38576 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38577 "documentation) are generated, and this makes it easy to extend the "
38578 "libguestfs API."
38579 msgstr ""
38580
38581 #. type: textblock
38582 #: ../src/guestfs.pod:2671
38583 msgid "To add a new API action there are two changes:"
38584 msgstr ""
38585
38586 #. type: textblock
38587 #: ../src/guestfs.pod:2677
38588 msgid ""
38589 "You need to add a description of the call (name, parameters, return type, "
38590 "tests, documentation) to C<generator/generator_actions.ml>."
38591 msgstr ""
38592
38593 #. type: textblock
38594 #: ../src/guestfs.pod:2680
38595 msgid ""
38596 "There are two sorts of API action, depending on whether the call goes "
38597 "through to the daemon in the appliance, or is serviced entirely by the "
38598 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38599 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38600 "an example of the latter, since a trace flag is maintained in the handle and "
38601 "all tracing is done on the library side."
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:2688
38606 msgid ""
38607 "Most new actions are of the first type, and get added to the "
38608 "C<daemon_functions> list.  Each function has a unique procedure number used "
38609 "in the RPC protocol which is assigned to that action when we publish "
38610 "libguestfs and cannot be reused.  Take the latest procedure number and "
38611 "increment it."
38612 msgstr ""
38613
38614 #. type: textblock
38615 #: ../src/guestfs.pod:2694
38616 msgid ""
38617 "For library-only actions of the second type, add to the "
38618 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38619 "library and do not travel over the RPC mechanism to the daemon, these "
38620 "functions do not need a procedure number, and so the procedure number is set "
38621 "to C<-1>."
38622 msgstr ""
38623
38624 #. type: textblock
38625 #: ../src/guestfs.pod:2702
38626 msgid "Implement the action (in C):"
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:2704
38631 msgid ""
38632 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38633 "C<daemon/> directory."
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:2707
38638 msgid ""
38639 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38640 "(note: double underscore) in the C<src/> directory."
38641 msgstr ""
38642
38643 #. type: textblock
38644 #: ../src/guestfs.pod:2710
38645 msgid "In either case, use another function as an example of what to do."
38646 msgstr ""
38647
38648 #. type: textblock
38649 #: ../src/guestfs.pod:2714
38650 msgid "After making these changes, use C<make> to compile."
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:2716
38655 msgid ""
38656 "Note that you don't need to implement the RPC, language bindings, manual "
38657 "pages or anything else.  It's all automatically generated from the OCaml "
38658 "description."
38659 msgstr ""
38660
38661 #. type: =head2
38662 #: ../src/guestfs.pod:2720
38663 msgid "ADDING TESTS FOR AN API ACTION"
38664 msgstr ""
38665
38666 #. type: textblock
38667 #: ../src/guestfs.pod:2722
38668 msgid ""
38669 "You can supply zero or as many tests as you want per API call.  The tests "
38670 "can either be added as part of the API description (C<generator/"
38671 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38672 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38673 "slower, so if possible use the first method."
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../src/guestfs.pod:2728
38678 msgid ""
38679 "The following describes the test environment used when you add an API test "
38680 "in C<generator_actions.ml>."
38681 msgstr ""
38682
38683 #. type: textblock
38684 #: ../src/guestfs.pod:2731
38685 msgid "The test environment has 4 block devices:"
38686 msgstr ""
38687
38688 #. type: =item
38689 #: ../src/guestfs.pod:2735
38690 msgid "C</dev/sda> 500MB"
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:2737
38695 msgid "General block device for testing."
38696 msgstr ""
38697
38698 #. type: =item
38699 #: ../src/guestfs.pod:2739
38700 msgid "C</dev/sdb> 50MB"
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:2741
38705 msgid ""
38706 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38707 "operations."
38708 msgstr ""
38709
38710 #. type: =item
38711 #: ../src/guestfs.pod:2744
38712 msgid "C</dev/sdc> 10MB"
38713 msgstr ""
38714
38715 #. type: textblock
38716 #: ../src/guestfs.pod:2746
38717 msgid "Used in a few tests where two block devices are needed."
38718 msgstr ""
38719
38720 #. type: =item
38721 #: ../src/guestfs.pod:2748
38722 msgid "C</dev/sdd>"
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../src/guestfs.pod:2750
38727 msgid "ISO with fixed content (see C<images/test.iso>)."
38728 msgstr ""
38729
38730 #. type: textblock
38731 #: ../src/guestfs.pod:2754
38732 msgid ""
38733 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38734 "appliance and block devices are reused between tests.  So don't try testing "
38735 "L</guestfs_kill_subprocess> :-x"
38736 msgstr ""
38737
38738 #. type: textblock
38739 #: ../src/guestfs.pod:2758
38740 msgid ""
38741 "Each test starts with an initial scenario, selected using one of the "
38742 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38743 "initialize the disks mentioned above in a particular way as documented in "
38744 "C<generator_types.ml>.  You should not assume anything about the previous "
38745 "contents of other disks that are not initialized."
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:2764
38750 msgid ""
38751 "You can add a prerequisite clause to any individual test.  This is a run-"
38752 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38753 "testing a command which might not work on all variations of libguestfs "
38754 "builds.  A test that has prerequisite of C<Always> means to run "
38755 "unconditionally."
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../src/guestfs.pod:2770
38760 msgid ""
38761 "In addition, packagers can skip individual tests by setting environment "
38762 "variables before running C<make check>."
38763 msgstr ""
38764
38765 #. type: verbatim
38766 #: ../src/guestfs.pod:2773
38767 #, no-wrap
38768 msgid ""
38769 " SKIP_TEST_<CMD>_<NUM>=1\n"
38770 "\n"
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../src/guestfs.pod:2775
38775 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38776 msgstr ""
38777
38778 #. type: textblock
38779 #: ../src/guestfs.pod:2777
38780 msgid "or:"
38781 msgstr ""
38782
38783 #. type: verbatim
38784 #: ../src/guestfs.pod:2779
38785 #, no-wrap
38786 msgid ""
38787 " SKIP_TEST_<CMD>=1\n"
38788 "\n"
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../src/guestfs.pod:2781
38793 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38794 msgstr ""
38795
38796 #. type: textblock
38797 #: ../src/guestfs.pod:2783
38798 msgid "Packagers can run only certain tests by setting for example:"
38799 msgstr ""
38800
38801 #. type: verbatim
38802 #: ../src/guestfs.pod:2785
38803 #, no-wrap
38804 msgid ""
38805 " TEST_ONLY=\"vfs_type zerofree\"\n"
38806 "\n"
38807 msgstr ""
38808
38809 #. type: textblock
38810 #: ../src/guestfs.pod:2787
38811 msgid ""
38812 "See C<capitests/tests.c> for more details of how these environment variables "
38813 "work."
38814 msgstr ""
38815
38816 #. type: =head2
38817 #: ../src/guestfs.pod:2790
38818 msgid "DEBUGGING NEW API ACTIONS"
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../src/guestfs.pod:2792
38823 msgid "Test new actions work before submitting them."
38824 msgstr ""
38825
38826 #. type: textblock
38827 #: ../src/guestfs.pod:2794
38828 msgid "You can use guestfish to try out new commands."
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../src/guestfs.pod:2796
38833 msgid ""
38834 "Debugging the daemon is a problem because it runs inside a minimal "
38835 "environment.  However you can fprintf messages in the daemon to stderr, and "
38836 "they will show up if you use C<guestfish -v>."
38837 msgstr ""
38838
38839 #. type: =head2
38840 #: ../src/guestfs.pod:2800
38841 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38842 msgstr ""
38843
38844 #. type: textblock
38845 #: ../src/guestfs.pod:2802
38846 msgid ""
38847 "Our C source code generally adheres to some basic code-formatting "
38848 "conventions.  The existing code base is not totally consistent on this "
38849 "front, but we do prefer that contributed code be formatted similarly.  In "
38850 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38851 "indentation level, and other than that, follow the K&R style."
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:2808
38856 msgid ""
38857 "If you use Emacs, add the following to one of one of your start-up files (e."
38858 "g., ~/.emacs), to help ensure that you get indentation right:"
38859 msgstr ""
38860
38861 #. type: verbatim
38862 #: ../src/guestfs.pod:2811
38863 #, no-wrap
38864 msgid ""
38865 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38866 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38867 " (add-hook 'find-file-hook\n"
38868 "     '(lambda () (if (and buffer-file-name\n"
38869 "                          (string-match \"/libguestfs\\\\>\"\n"
38870 "                              (buffer-file-name))\n"
38871 "                          (not (string-equal mode-name \"Change Log\"))\n"
38872 "                          (not (string-equal mode-name \"Makefile\")))\n"
38873 "                     (setq indent-tabs-mode nil))))\n"
38874 " \n"
38875 msgstr ""
38876
38877 #. type: verbatim
38878 #: ../src/guestfs.pod:2821
38879 #, no-wrap
38880 msgid ""
38881 " ;;; When editing C sources in libguestfs, use this style.\n"
38882 " (defun libguestfs-c-mode ()\n"
38883 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38884 "   (interactive)\n"
38885 "   (c-set-style \"K&R\")\n"
38886 "   (setq c-indent-level 2)\n"
38887 "   (setq c-basic-offset 2))\n"
38888 " (add-hook 'c-mode-hook\n"
38889 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38890 "                               (buffer-file-name))\n"
38891 "                           (libguestfs-c-mode))))\n"
38892 "\n"
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../src/guestfs.pod:2833
38897 msgid "Enable warnings when compiling (and fix any problems this finds):"
38898 msgstr ""
38899
38900 #. type: verbatim
38901 #: ../src/guestfs.pod:2836
38902 #, no-wrap
38903 msgid ""
38904 " ./configure --enable-gcc-warnings\n"
38905 "\n"
38906 msgstr ""
38907
38908 #. type: textblock
38909 #: ../src/guestfs.pod:2838
38910 msgid "Useful targets are:"
38911 msgstr ""
38912
38913 #. type: verbatim
38914 #: ../src/guestfs.pod:2840
38915 #, no-wrap
38916 msgid ""
38917 " make syntax-check  # checks the syntax of the C code\n"
38918 " make check         # runs the test suite\n"
38919 "\n"
38920 msgstr ""
38921
38922 #. type: =head2
38923 #: ../src/guestfs.pod:2843
38924 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../src/guestfs.pod:2845
38929 msgid ""
38930 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38931 "which are used to do shell quoting."
38932 msgstr ""
38933
38934 #. type: =item
38935 #: ../src/guestfs.pod:2850
38936 msgid "%Q"
38937 msgstr ""
38938
38939 #. type: textblock
38940 #: ../src/guestfs.pod:2852
38941 msgid ""
38942 "Simple shell quoted string.  Any spaces or other shell characters are "
38943 "escaped for you."
38944 msgstr ""
38945
38946 #. type: =item
38947 #: ../src/guestfs.pod:2855
38948 msgid "%R"
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../src/guestfs.pod:2857
38953 msgid ""
38954 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38955 "the sysroot."
38956 msgstr ""
38957
38958 #. type: verbatim
38959 #: ../src/guestfs.pod:2864
38960 #, no-wrap
38961 msgid ""
38962 " asprintf (&cmd, \"cat %R\", path);\n"
38963 "\n"
38964 msgstr ""
38965
38966 #. type: textblock
38967 #: ../src/guestfs.pod:2866
38968 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:2868
38973 msgid ""
38974 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38975 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38976 "they are not passed via the shell (instead, straight to exec).  You probably "
38977 "want to use the C<sysroot_path()> function however."
38978 msgstr ""
38979
38980 #. type: =head2
38981 #: ../src/guestfs.pod:2874
38982 msgid "SUBMITTING YOUR NEW API ACTIONS"
38983 msgstr ""
38984
38985 #. type: textblock
38986 #: ../src/guestfs.pod:2876
38987 msgid ""
38988 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38989 "libguestfs> and CC to L<rjones@redhat.com>."
38990 msgstr ""
38991
38992 #. type: =head2
38993 #: ../src/guestfs.pod:2880
38994 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38995 msgstr ""
38996
38997 #. type: textblock
38998 #: ../src/guestfs.pod:2882
38999 msgid "We support i18n (gettext anyhow) in the library."
39000 msgstr ""
39001
39002 #. type: textblock
39003 #: ../src/guestfs.pod:2884
39004 msgid ""
39005 "However many messages come from the daemon, and we don't translate those at "
39006 "the moment.  One reason is that the appliance generally has all locale files "
39007 "removed from it, because they take up a lot of space.  So we'd have to readd "
39008 "some of those, as well as copying our PO files into the appliance."
39009 msgstr ""
39010
39011 #. type: textblock
39012 #: ../src/guestfs.pod:2890
39013 msgid ""
39014 "Debugging messages are never translated, since they are intended for the "
39015 "programmers."
39016 msgstr ""
39017
39018 #. type: =head2
39019 #: ../src/guestfs.pod:2893
39020 msgid "SOURCE CODE SUBDIRECTORIES"
39021 msgstr ""
39022
39023 #. type: =item
39024 #: ../src/guestfs.pod:2897
39025 msgid "C<align>"
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:2899
39030 msgid "L<virt-alignment-scan(1)> command and documentation."
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../src/guestfs.pod:2903
39035 msgid "The libguestfs appliance, build scripts and so on."
39036 msgstr ""
39037
39038 #. type: =item
39039 #: ../src/guestfs.pod:2905
39040 msgid "C<capitests>"
39041 msgstr ""
39042
39043 #. type: textblock
39044 #: ../src/guestfs.pod:2907
39045 msgid "Automated tests of the C API."
39046 msgstr ""
39047
39048 #. type: =item
39049 #: ../src/guestfs.pod:2909
39050 msgid "C<cat>"
39051 msgstr ""
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:2911
39055 msgid ""
39056 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39057 "documentation."
39058 msgstr ""
39059
39060 #. type: =item
39061 #: ../src/guestfs.pod:2914
39062 msgid "C<caution>"
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:2916
39067 msgid ""
39068 "Safety and liveness tests of components that libguestfs depends upon (not of "
39069 "libguestfs itself).  Mainly this is for qemu and the kernel."
39070 msgstr ""
39071
39072 #. type: =item
39073 #: ../src/guestfs.pod:2919
39074 msgid "C<clone>"
39075 msgstr ""
39076
39077 #. type: textblock
39078 #: ../src/guestfs.pod:2921
39079 msgid ""
39080 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39081 "command and documentation."
39082 msgstr ""
39083
39084 #. type: =item
39085 #: ../src/guestfs.pod:2924
39086 msgid "C<contrib>"
39087 msgstr ""
39088
39089 #. type: textblock
39090 #: ../src/guestfs.pod:2926
39091 msgid "Outside contributions, experimental parts."
39092 msgstr ""
39093
39094 #. type: =item
39095 #: ../src/guestfs.pod:2928
39096 msgid "C<daemon>"
39097 msgstr ""
39098
39099 #. type: textblock
39100 #: ../src/guestfs.pod:2930
39101 msgid ""
39102 "The daemon that runs inside the libguestfs appliance and carries out actions."
39103 msgstr ""
39104
39105 #. type: =item
39106 #: ../src/guestfs.pod:2933
39107 msgid "C<df>"
39108 msgstr ""
39109
39110 #. type: textblock
39111 #: ../src/guestfs.pod:2935
39112 msgid "L<virt-df(1)> command and documentation."
39113 msgstr ""
39114
39115 #. type: =item
39116 #: ../src/guestfs.pod:2937
39117 msgid "C<edit>"
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../src/guestfs.pod:2939
39122 msgid "L<virt-edit(1)> command and documentation."
39123 msgstr ""
39124
39125 #. type: =item
39126 #: ../src/guestfs.pod:2941
39127 msgid "C<examples>"
39128 msgstr ""
39129
39130 #. type: textblock
39131 #: ../src/guestfs.pod:2943
39132 msgid "C API example code."
39133 msgstr ""
39134
39135 #. type: =item
39136 #: ../src/guestfs.pod:2945
39137 msgid "C<fish>"
39138 msgstr ""
39139
39140 #. type: textblock
39141 #: ../src/guestfs.pod:2947
39142 msgid ""
39143 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39144 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39145 "L<virt-tar-out(1)>."
39146 msgstr ""
39147
39148 #. type: =item
39149 #: ../src/guestfs.pod:2951
39150 msgid "C<fuse>"
39151 msgstr ""
39152
39153 #. type: textblock
39154 #: ../src/guestfs.pod:2953
39155 msgid ""
39156 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39157 msgstr ""
39158
39159 #. type: =item
39160 #: ../src/guestfs.pod:2955
39161 msgid "C<generator>"
39162 msgstr ""
39163
39164 #. type: textblock
39165 #: ../src/guestfs.pod:2957
39166 msgid ""
39167 "The crucially important generator, used to automatically generate large "
39168 "amounts of boilerplate C code for things like RPC and bindings."
39169 msgstr ""
39170
39171 #. type: =item
39172 #: ../src/guestfs.pod:2960
39173 msgid "C<images>"
39174 msgstr ""
39175
39176 #. type: textblock
39177 #: ../src/guestfs.pod:2962
39178 msgid "Files used by the test suite."
39179 msgstr ""
39180
39181 #. type: textblock
39182 #: ../src/guestfs.pod:2964
39183 msgid "Some \"phony\" guest images which we test against."
39184 msgstr ""
39185
39186 #. type: =item
39187 #: ../src/guestfs.pod:2966
39188 msgid "C<inspector>"
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:2968
39193 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39194 msgstr ""
39195
39196 #. type: =item
39197 #: ../src/guestfs.pod:2970
39198 msgid "C<logo>"
39199 msgstr ""
39200
39201 #. type: textblock
39202 #: ../src/guestfs.pod:2972
39203 msgid "Logo used on the website.  The fish is called Arthur by the way."
39204 msgstr ""
39205
39206 #. type: =item
39207 #: ../src/guestfs.pod:2974
39208 msgid "C<m4>"
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2976
39213 msgid "M4 macros used by autoconf."
39214 msgstr ""
39215
39216 #. type: =item
39217 #: ../src/guestfs.pod:2978
39218 msgid "C<po>"
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:2980
39223 msgid "Translations of simple gettext strings."
39224 msgstr ""
39225
39226 #. type: =item
39227 #: ../src/guestfs.pod:2982
39228 msgid "C<po-docs>"
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:2984
39233 msgid ""
39234 "The build infrastructure and PO files for translations of manpages and POD "
39235 "files.  Eventually this will be combined with the C<po> directory, but that "
39236 "is rather complicated."
39237 msgstr ""
39238
39239 #. type: =item
39240 #: ../src/guestfs.pod:2988
39241 msgid "C<regressions>"
39242 msgstr ""
39243
39244 #. type: textblock
39245 #: ../src/guestfs.pod:2990
39246 msgid "Regression tests."
39247 msgstr ""
39248
39249 #. type: =item
39250 #: ../src/guestfs.pod:2992
39251 msgid "C<rescue>"
39252 msgstr ""
39253
39254 #. type: textblock
39255 #: ../src/guestfs.pod:2994
39256 msgid "L<virt-rescue(1)> command and documentation."
39257 msgstr ""
39258
39259 #. type: =item
39260 #: ../src/guestfs.pod:2996
39261 msgid "C<resize>"
39262 msgstr ""
39263
39264 #. type: textblock
39265 #: ../src/guestfs.pod:2998
39266 msgid "L<virt-resize(1)> command and documentation."
39267 msgstr ""
39268
39269 #. type: =item
39270 #: ../src/guestfs.pod:3000
39271 msgid "C<sparsify>"
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:3002
39276 msgid "L<virt-sparsify(1)> command and documentation."
39277 msgstr ""
39278
39279 #. type: =item
39280 #: ../src/guestfs.pod:3004
39281 msgid "C<src>"
39282 msgstr ""
39283
39284 #. type: textblock
39285 #: ../src/guestfs.pod:3006
39286 msgid "Source code to the C library."
39287 msgstr ""
39288
39289 #. type: =item
39290 #: ../src/guestfs.pod:3008
39291 msgid "C<tools>"
39292 msgstr ""
39293
39294 #. type: textblock
39295 #: ../src/guestfs.pod:3010
39296 msgid ""
39297 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39298 msgstr ""
39299
39300 #. type: =item
39301 #: ../src/guestfs.pod:3012
39302 msgid "C<test-tool>"
39303 msgstr ""
39304
39305 #. type: textblock
39306 #: ../src/guestfs.pod:3014
39307 msgid ""
39308 "Test tool for end users to test if their qemu/kernel combination will work "
39309 "with libguestfs."
39310 msgstr ""
39311
39312 #. type: =item
39313 #: ../src/guestfs.pod:3017
39314 msgid "C<csharp>"
39315 msgstr ""
39316
39317 #. type: =item
39318 #: ../src/guestfs.pod:3019
39319 msgid "C<erlang>"
39320 msgstr ""
39321
39322 #. type: =item
39323 #: ../src/guestfs.pod:3021
39324 msgid "C<haskell>"
39325 msgstr ""
39326
39327 #. type: =item
39328 #: ../src/guestfs.pod:3023
39329 msgid "C<java>"
39330 msgstr ""
39331
39332 #. type: =item
39333 #: ../src/guestfs.pod:3025
39334 msgid "C<ocaml>"
39335 msgstr ""
39336
39337 #. type: =item
39338 #: ../src/guestfs.pod:3027
39339 msgid "C<php>"
39340 msgstr ""
39341
39342 #. type: =item
39343 #: ../src/guestfs.pod:3029
39344 msgid "C<perl>"
39345 msgstr ""
39346
39347 #. type: =item
39348 #: ../src/guestfs.pod:3031
39349 msgid "C<python>"
39350 msgstr ""
39351
39352 #. type: =item
39353 #: ../src/guestfs.pod:3033
39354 msgid "C<ruby>"
39355 msgstr ""
39356
39357 #. type: textblock
39358 #: ../src/guestfs.pod:3035
39359 msgid "Language bindings."
39360 msgstr ""
39361
39362 #. type: =head2
39363 #: ../src/guestfs.pod:3039
39364 msgid "MAKING A STABLE RELEASE"
39365 msgstr ""
39366
39367 #. type: textblock
39368 #: ../src/guestfs.pod:3041
39369 msgid ""
39370 "When we make a stable release, there are several steps documented here.  See "
39371 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39372 "branch policy."
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../src/guestfs.pod:3049
39377 msgid ""
39378 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39379 msgstr ""
39380
39381 #. type: textblock
39382 #: ../src/guestfs.pod:3054
39383 msgid "Finalize RELEASE-NOTES."
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../src/guestfs.pod:3058
39388 msgid "Update ROADMAP."
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../src/guestfs.pod:3062
39393 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:3066
39398 msgid "Push and pull from Transifex."
39399 msgstr ""
39400
39401 #. type: textblock
39402 #: ../src/guestfs.pod:3068
39403 msgid "Run:"
39404 msgstr ""
39405
39406 #. type: verbatim
39407 #: ../src/guestfs.pod:3070
39408 #, no-wrap
39409 msgid ""
39410 " tx push -s\n"
39411 "\n"
39412 msgstr ""
39413
39414 #. type: textblock
39415 #: ../src/guestfs.pod:3072
39416 msgid "to push the latest POT files to Transifex.  Then run:"
39417 msgstr ""
39418
39419 #. type: verbatim
39420 #: ../src/guestfs.pod:3074
39421 #, no-wrap
39422 msgid ""
39423 " ./tx-pull.sh\n"
39424 "\n"
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:3076
39429 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39430 msgstr ""
39431
39432 #. type: textblock
39433 #: ../src/guestfs.pod:3080
39434 msgid ""
39435 "Create new stable and development directories under L<http://libguestfs.org/"
39436 "download>."
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../src/guestfs.pod:3085
39441 msgid "Create the branch in git:"
39442 msgstr ""
39443
39444 #. type: verbatim
39445 #: ../src/guestfs.pod:3087
39446 #, no-wrap
39447 msgid ""
39448 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39449 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39450 " git branch stable-1.XX\n"
39451 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39452 "\n"
39453 msgstr ""
39454
39455 #. type: =head1
39456 #: ../src/guestfs.pod:3094
39457 msgid "LIMITS"
39458 msgstr ""
39459
39460 #. type: =head2
39461 #: ../src/guestfs.pod:3096
39462 msgid "PROTOCOL LIMITS"
39463 msgstr ""
39464
39465 #. type: textblock
39466 #: ../src/guestfs.pod:3098
39467 msgid ""
39468 "Internally libguestfs uses a message-based protocol to pass API calls and "
39469 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39470 "plenty more detail about this).  The maximum message size used by the "
39471 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39472 "aware of this limit.  The API calls which may be affected are individually "
39473 "documented, with a link back to this section of the documentation."
39474 msgstr ""
39475
39476 #. type: textblock
39477 #: ../src/guestfs.pod:3106
39478 msgid ""
39479 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39480 "a simple string.  Because this string is at some point internally encoded as "
39481 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39482 "the requested file is larger than this then you will get an error."
39483 msgstr ""
39484
39485 #. type: textblock
39486 #: ../src/guestfs.pod:3112
39487 msgid ""
39488 "In order to transfer large files into and out of the guest filesystem, you "
39489 "need to use particular calls that support this.  The sections L</UPLOADING> "
39490 "and L</DOWNLOADING> document how to do this."
39491 msgstr ""
39492
39493 #. type: textblock
39494 #: ../src/guestfs.pod:3116
39495 msgid ""
39496 "You might also consider mounting the disk image using our FUSE filesystem "
39497 "support (L<guestmount(1)>)."
39498 msgstr ""
39499
39500 #. type: =head2
39501 #: ../src/guestfs.pod:3119
39502 msgid "MAXIMUM NUMBER OF DISKS"
39503 msgstr ""
39504
39505 #. type: textblock
39506 #: ../src/guestfs.pod:3121
39507 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../src/guestfs.pod:3124
39512 msgid ""
39513 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39514 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39515 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39516 "purposes."
39517 msgstr ""
39518
39519 #. type: textblock
39520 #: ../src/guestfs.pod:3129
39521 msgid ""
39522 "We are working to substantially raise this limit in future versions but it "
39523 "requires complex changes to qemu."
39524 msgstr ""
39525
39526 #. type: textblock
39527 #: ../src/guestfs.pod:3132
39528 msgid ""
39529 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39530 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39531 "requires changes to qemu."
39532 msgstr ""
39533
39534 #. type: =head2
39535 #: ../src/guestfs.pod:3136
39536 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39537 msgstr ""
39538
39539 #. type: textblock
39540 #: ../src/guestfs.pod:3138
39541 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39542 msgstr ""
39543
39544 #. type: textblock
39545 #: ../src/guestfs.pod:3140
39546 msgid ""
39547 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39548 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39549 msgstr ""
39550
39551 #. type: textblock
39552 #: ../src/guestfs.pod:3143
39553 msgid ""
39554 "If you attach a disk with more than 15 partitions, the extra partitions are "
39555 "ignored by libguestfs."
39556 msgstr ""
39557
39558 #. type: =head2
39559 #: ../src/guestfs.pod:3146
39560 msgid "MAXIMUM SIZE OF A DISK"
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:3148
39565 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39566 msgstr ""
39567
39568 #. type: textblock
39569 #: ../src/guestfs.pod:3150
39570 msgid ""
39571 "We have tested block devices up to 1 exabyte (2**60 or "
39572 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39573 "filesystem."
39574 msgstr ""
39575
39576 #. type: textblock
39577 #: ../src/guestfs.pod:3154
39578 msgid ""
39579 "Although libguestfs probably does not impose any limit, the underlying host "
39580 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39581 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39582 "TB).  If you store disk images as host logical volumes then you are limited "
39583 "by the maximum size of an LV."
39584 msgstr ""
39585
39586 #. type: textblock
39587 #: ../src/guestfs.pod:3160
39588 msgid ""
39589 "For the hugest disk image files, we recommend using XFS on the host for "
39590 "storage."
39591 msgstr ""
39592
39593 #. type: =head2
39594 #: ../src/guestfs.pod:3163
39595 msgid "MAXIMUM SIZE OF A PARTITION"
39596 msgstr ""
39597
39598 #. type: textblock
39599 #: ../src/guestfs.pod:3165
39600 msgid ""
39601 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39602 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39603 "address a partition located beyond 2 TB on the disk."
39604 msgstr ""
39605
39606 #. type: textblock
39607 #: ../src/guestfs.pod:3169
39608 msgid ""
39609 "It is recommended that you use GPT partitions on disks which are larger than "
39610 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39611 "which are theoretically larger than the largest disk we could support."
39612 msgstr ""
39613
39614 #. type: =head2
39615 #: ../src/guestfs.pod:3174
39616 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39617 msgstr ""
39618
39619 #. type: textblock
39620 #: ../src/guestfs.pod:3176
39621 msgid ""
39622 "This depends on the filesystem type.  libguestfs itself does not impose any "
39623 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39624 "what these limits are."
39625 msgstr ""
39626
39627 #. type: =head2
39628 #: ../src/guestfs.pod:3180
39629 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39630 msgstr ""
39631
39632 #. type: textblock
39633 #: ../src/guestfs.pod:3182
39634 msgid ""
39635 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39636 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39637 "uploads and downloads."
39638 msgstr ""
39639
39640 #. type: =head2
39641 #: ../src/guestfs.pod:3186
39642 msgid "INSPECTION LIMITS"
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../src/guestfs.pod:3188
39647 msgid ""
39648 "The inspection code has several arbitrary limits on things like the size of "
39649 "Windows Registry hive it will read, and the length of product name.  These "
39650 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39651 "memory and disk space on the host, and should not be reached in practice.  "
39652 "See the source code for more information."
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../src/guestfs.pod:3214
39657 msgid ""
39658 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39659 "effect as calling C<guestfs_set_verbose (g, 1)>."
39660 msgstr ""
39661
39662 #. type: textblock
39663 #: ../src/guestfs.pod:3226
39664 msgid ""
39665 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39666 "the discussion of paths in section L</PATH> above."
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../src/guestfs.pod:3235
39671 msgid "See also L</QEMU WRAPPERS> above."
39672 msgstr ""
39673
39674 #. type: textblock
39675 #: ../src/guestfs.pod:3239
39676 msgid ""
39677 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39678 "effect as calling C<guestfs_set_trace (g, 1)>."
39679 msgstr ""
39680
39681 #. type: textblock
39682 #: ../src/guestfs.pod:3257
39683 msgid ""
39684 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39685 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39686 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
39687 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
39688 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
39689 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
39690 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
39691 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39692 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
39693 ">, L<http://libguestfs.org/>."
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../src/guestfs.pod:3293
39698 msgid ""
39699 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39700 "(8)>, L<disktype(1)>."
39701 msgstr ""
39702
39703 #. type: =head1
39704 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
39705 #: ../tools/virt-win-reg.pl:761
39706 msgid "BUGS"
39707 msgstr ""
39708
39709 #. type: textblock
39710 #: ../src/guestfs.pod:3302
39711 msgid "To get a list of bugs against libguestfs use this link:"
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../src/guestfs.pod:3304
39716 msgid ""
39717 "L<https://bugzilla.redhat.com/buglist.cgi?"
39718 "component=libguestfs&product=Virtualization+Tools>"
39719 msgstr ""
39720
39721 #. type: textblock
39722 #: ../src/guestfs.pod:3306
39723 msgid "To report a new bug against libguestfs use this link:"
39724 msgstr ""
39725
39726 #. type: textblock
39727 #: ../src/guestfs.pod:3308
39728 msgid ""
39729 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39730 "component=libguestfs&product=Virtualization+Tools>"
39731 msgstr ""
39732
39733 #. type: textblock
39734 #: ../src/guestfs.pod:3310
39735 msgid "When reporting a bug, please check:"
39736 msgstr ""
39737
39738 #. type: textblock
39739 #: ../src/guestfs.pod:3316
39740 msgid "That the bug hasn't been reported already."
39741 msgstr ""
39742
39743 #. type: textblock
39744 #: ../src/guestfs.pod:3320
39745 msgid "That you are testing a recent version."
39746 msgstr ""
39747
39748 #. type: textblock
39749 #: ../src/guestfs.pod:3324
39750 msgid "Describe the bug accurately, and give a way to reproduce it."
39751 msgstr ""
39752
39753 #. type: textblock
39754 #: ../src/guestfs.pod:3328
39755 msgid ""
39756 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39757 "bug report."
39758 msgstr ""
39759
39760 #. type: textblock
39761 #: ../test-tool/libguestfs-test-tool.pod:5
39762 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39763 msgstr ""
39764
39765 #. type: verbatim
39766 #: ../test-tool/libguestfs-test-tool.pod:9
39767 #, no-wrap
39768 msgid ""
39769 " libguestfs-test-tool [--options]\n"
39770 "\n"
39771 msgstr ""
39772
39773 #. type: textblock
39774 #: ../test-tool/libguestfs-test-tool.pod:13
39775 msgid ""
39776 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39777 "to check basic libguestfs functionality is working.  This is needed because "
39778 "libguestfs occasionally breaks for reasons beyond our control: usually "
39779 "because of changes in the underlying qemu or kernel packages, or the host "
39780 "environment."
39781 msgstr ""
39782
39783 #. type: textblock
39784 #: ../test-tool/libguestfs-test-tool.pod:19
39785 msgid "If you suspect a problem in libguestfs, then just run:"
39786 msgstr ""
39787
39788 #. type: verbatim
39789 #: ../test-tool/libguestfs-test-tool.pod:21
39790 #, no-wrap
39791 msgid ""
39792 " libguestfs-test-tool\n"
39793 "\n"
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../test-tool/libguestfs-test-tool.pod:23
39798 msgid "It will print lots of diagnostic messages."
39799 msgstr ""
39800
39801 #. type: textblock
39802 #: ../test-tool/libguestfs-test-tool.pod:25
39803 msgid "If it runs to completion successfully, you will see this near the end:"
39804 msgstr ""
39805
39806 #. type: verbatim
39807 #: ../test-tool/libguestfs-test-tool.pod:27
39808 #, no-wrap
39809 msgid ""
39810 " ===== TEST FINISHED OK =====\n"
39811 "\n"
39812 msgstr ""
39813
39814 #. type: textblock
39815 #: ../test-tool/libguestfs-test-tool.pod:29
39816 msgid "and the test tool will exit with code 0."
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../test-tool/libguestfs-test-tool.pod:31
39821 msgid ""
39822 "If it fails (and/or exits with non-zero error code), please paste the "
39823 "I<complete, unedited> output of the test tool into a bug report.  More "
39824 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39825 "> website."
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../test-tool/libguestfs-test-tool.pod:42
39830 msgid "Display short usage information and exit."
39831 msgstr ""
39832
39833 #. type: =item
39834 #: ../test-tool/libguestfs-test-tool.pod:44
39835 msgid "B<--qemu qemu_binary>"
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../test-tool/libguestfs-test-tool.pod:46
39840 msgid ""
39841 "If you have downloaded another qemu binary, point this option at the full "
39842 "path of the binary to try it."
39843 msgstr ""
39844
39845 #. type: =item
39846 #: ../test-tool/libguestfs-test-tool.pod:49
39847 msgid "B<--qemudir qemu_source_dir>"
39848 msgstr ""
39849
39850 #. type: textblock
39851 #: ../test-tool/libguestfs-test-tool.pod:51
39852 msgid ""
39853 "If you have compiled qemu from source, point this option at the source "
39854 "directory to try it."
39855 msgstr ""
39856
39857 #. type: =item
39858 #: ../test-tool/libguestfs-test-tool.pod:54
39859 msgid "B<-t N>"
39860 msgstr ""
39861
39862 #. type: =item
39863 #: ../test-tool/libguestfs-test-tool.pod:56
39864 msgid "B<--timeout N>"
39865 msgstr ""
39866
39867 #. type: textblock
39868 #: ../test-tool/libguestfs-test-tool.pod:58
39869 msgid ""
39870 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39871 "minutes) which does not usually need to be adjusted."
39872 msgstr ""
39873
39874 #. type: =head1
39875 #: ../test-tool/libguestfs-test-tool.pod:63
39876 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../test-tool/libguestfs-test-tool.pod:65
39881 msgid ""
39882 "If you have compiled another version of qemu from source and would like to "
39883 "try that, then you can use the I<--qemudir> option to point to the qemu "
39884 "source directory."
39885 msgstr ""
39886
39887 #. type: textblock
39888 #: ../test-tool/libguestfs-test-tool.pod:69
39889 msgid ""
39890 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39891 "option to point to the binary."
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../test-tool/libguestfs-test-tool.pod:72
39896 msgid ""
39897 "Note when using these options, you can ignore the business of qemu wrapper "
39898 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39899 "wrapper script for you if one is needed."
39900 msgstr ""
39901
39902 #. type: =head1
39903 #: ../test-tool/libguestfs-test-tool.pod:76
39904 msgid "TRYING OUT A DIFFERENT KERNEL"
39905 msgstr ""
39906
39907 #. type: textblock
39908 #: ../test-tool/libguestfs-test-tool.pod:78
39909 msgid ""
39910 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39911 "libguestfs tries.  You do this by setting the environment variables "
39912 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39913 msgstr ""
39914
39915 #. type: textblock
39916 #: ../test-tool/libguestfs-test-tool.pod:82
39917 msgid ""
39918 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39919 "information."
39920 msgstr ""
39921
39922 #. type: =head1
39923 #: ../test-tool/libguestfs-test-tool.pod:85
39924 msgid "SELF-DIAGNOSIS"
39925 msgstr ""
39926
39927 #. type: textblock
39928 #: ../test-tool/libguestfs-test-tool.pod:87
39929 msgid ""
39930 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39931 "produced by libguestfs-test-tool and/or possible errors."
39932 msgstr ""
39933
39934 #. type: textblock
39935 #: ../test-tool/libguestfs-test-tool.pod:92
39936 msgid ""
39937 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39938 "I<1> if there was an error."
39939 msgstr ""
39940
39941 #. type: textblock
39942 #: ../test-tool/libguestfs-test-tool.pod:97
39943 msgid ""
39944 "For the full list of environment variables which may affect libguestfs, "
39945 "please see the L<guestfs(3)> manual page."
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../test-tool/libguestfs-test-tool.pod:102
39950 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../tools/virt-list-filesystems.pl:32
39955 msgid ""
39956 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39957 msgstr ""
39958
39959 #. type: verbatim
39960 #: ../tools/virt-list-filesystems.pl:36
39961 #, no-wrap
39962 msgid ""
39963 " virt-list-filesystems [--options] domname\n"
39964 "\n"
39965 msgstr ""
39966
39967 #. type: verbatim
39968 #: ../tools/virt-list-filesystems.pl:38
39969 #, no-wrap
39970 msgid ""
39971 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39972 "\n"
39973 msgstr ""
39974
39975 #. type: textblock
39976 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39977 msgid ""
39978 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39979 "replacement."
39980 msgstr ""
39981
39982 #. type: textblock
39983 #: ../tools/virt-list-filesystems.pl:45
39984 msgid ""
39985 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39986 "are contained in a virtual machine or disk image."
39987 msgstr ""
39988
39989 #. type: textblock
39990 #: ../tools/virt-list-filesystems.pl:49
39991 msgid ""
39992 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39993 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39994 "> tool."
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../tools/virt-list-filesystems.pl:112
39999 msgid ""
40000 "With this option, C<virt-list-filesystems> displays the type of each "
40001 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40002 msgstr ""
40003
40004 #. type: =item
40005 #: ../tools/virt-list-filesystems.pl:119
40006 msgid "B<-a>"
40007 msgstr ""
40008
40009 #. type: textblock
40010 #: ../tools/virt-list-filesystems.pl:123
40011 msgid ""
40012 "Normally we only show mountable filesystems.  If this option is given then "
40013 "swap devices are shown too."
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../tools/virt-list-filesystems.pl:197
40018 msgid ""
40019 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40020 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40021 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40022 msgstr ""
40023
40024 #. type: textblock
40025 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40026 msgid "Copyright (C) 2009 Red Hat Inc."
40027 msgstr ""
40028
40029 #. type: textblock
40030 #: ../tools/virt-list-partitions.pl:32
40031 msgid ""
40032 "virt-list-partitions - List partitions in a virtual machine or disk image"
40033 msgstr ""
40034
40035 #. type: verbatim
40036 #: ../tools/virt-list-partitions.pl:36
40037 #, no-wrap
40038 msgid ""
40039 " virt-list-partitions [--options] domname\n"
40040 "\n"
40041 msgstr ""
40042
40043 #. type: verbatim
40044 #: ../tools/virt-list-partitions.pl:38
40045 #, no-wrap
40046 msgid ""
40047 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40048 "\n"
40049 msgstr ""
40050
40051 #. type: textblock
40052 #: ../tools/virt-list-partitions.pl:45
40053 msgid ""
40054 "C<virt-list-partitions> is a command line tool to list the partitions that "
40055 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40056 "first step to using L<virt-resize(1)>."
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../tools/virt-list-partitions.pl:50
40061 msgid ""
40062 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40063 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40064 "> tool."
40065 msgstr ""
40066
40067 #. type: textblock
40068 #: ../tools/virt-list-partitions.pl:113
40069 msgid "Show sizes in human-readable form (eg. \"1G\")."
40070 msgstr ""
40071
40072 #. type: textblock
40073 #: ../tools/virt-list-partitions.pl:123
40074 msgid ""
40075 "With this option, C<virt-list-partitions> displays the type and size of each "
40076 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40077 msgstr ""
40078
40079 #. type: =item
40080 #: ../tools/virt-list-partitions.pl:130
40081 msgid "B<-t>"
40082 msgstr ""
40083
40084 #. type: =item
40085 #: ../tools/virt-list-partitions.pl:132
40086 msgid "B<--total>"
40087 msgstr ""
40088
40089 #. type: textblock
40090 #: ../tools/virt-list-partitions.pl:134
40091 msgid ""
40092 "Display the total size of each block device (as a separate row or rows)."
40093 msgstr ""
40094
40095 #. type: textblock
40096 #: ../tools/virt-list-partitions.pl:267
40097 msgid ""
40098 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40099 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40100 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../tools/virt-list-partitions.pl:283
40105 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../tools/virt-make-fs.pl:37
40110 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40111 msgstr ""
40112
40113 #. type: verbatim
40114 #: ../tools/virt-make-fs.pl:41
40115 #, no-wrap
40116 msgid ""
40117 " virt-make-fs [--options] input.tar output.img\n"
40118 "\n"
40119 msgstr ""
40120
40121 #. type: verbatim
40122 #: ../tools/virt-make-fs.pl:43
40123 #, no-wrap
40124 msgid ""
40125 " virt-make-fs [--options] input.tar.gz output.img\n"
40126 "\n"
40127 msgstr ""
40128
40129 #. type: verbatim
40130 #: ../tools/virt-make-fs.pl:45
40131 #, no-wrap
40132 msgid ""
40133 " virt-make-fs [--options] directory output.img\n"
40134 "\n"
40135 msgstr ""
40136
40137 #. type: textblock
40138 #: ../tools/virt-make-fs.pl:49
40139 msgid ""
40140 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40141 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40142 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40143 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40144 "you want to attach these filesystems to existing virtual machines (eg. to "
40145 "import large amounts of read-only data to a VM)."
40146 msgstr ""
40147
40148 #. type: textblock
40149 #: ../tools/virt-make-fs.pl:57
40150 msgid "Basic usage is:"
40151 msgstr ""
40152
40153 #. type: verbatim
40154 #: ../tools/virt-make-fs.pl:59
40155 #, no-wrap
40156 msgid ""
40157 " virt-make-fs input output\n"
40158 "\n"
40159 msgstr ""
40160
40161 #. type: textblock
40162 #: ../tools/virt-make-fs.pl:61
40163 msgid ""
40164 "where C<input> is either a directory containing files that you want to add, "
40165 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40166 "C<output> is a disk image.  The input type is detected automatically.  The "
40167 "output disk image defaults to a raw ext2 image unless you specify extra "
40168 "flags (see L</OPTIONS> below)."
40169 msgstr ""
40170
40171 #. type: =head2
40172 #: ../tools/virt-make-fs.pl:67
40173 msgid "EXTRA SPACE"
40174 msgstr ""
40175
40176 #. type: textblock
40177 #: ../tools/virt-make-fs.pl:69
40178 msgid ""
40179 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40180 "the files that it contains, but might have extra space.  Depending on how "
40181 "you are going to use the output, you might think this extra space is wasted "
40182 "and want to minimize it, or you might want to leave space so that more files "
40183 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40184 "but you can use the I<--size> flag to leave space in the filesystem if you "
40185 "want it."
40186 msgstr ""
40187
40188 #. type: textblock
40189 #: ../tools/virt-make-fs.pl:77
40190 msgid ""
40191 "An alternative way to leave extra space but not make the output image any "
40192 "bigger is to use an alternative disk image format (instead of the default "
40193 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40194 "image format (check your hypervisor supports this before using it).  This "
40195 "allows you to choose a large I<--size> but the extra space won't actually be "
40196 "allocated in the image until you try to store something in it."
40197 msgstr ""
40198
40199 #. type: textblock
40200 #: ../tools/virt-make-fs.pl:85
40201 msgid ""
40202 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40203 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40204 "to build another image from scratch."
40205 msgstr ""
40206
40207 #. type: =head3
40208 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
40209 #: ../tools/virt-make-fs.pl:142
40210 msgid "EXAMPLE"
40211 msgstr ""
40212
40213 #. type: verbatim
40214 #: ../tools/virt-make-fs.pl:91
40215 #, no-wrap
40216 msgid ""
40217 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40218 "\n"
40219 msgstr ""
40220
40221 #. type: =head2
40222 #: ../tools/virt-make-fs.pl:93
40223 msgid "FILESYSTEM TYPE"
40224 msgstr ""
40225
40226 #. type: textblock
40227 #: ../tools/virt-make-fs.pl:95
40228 msgid ""
40229 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40230 "libguestfs supports can be used (but I<not> read-only formats like "
40231 "ISO9660).  Here are some of the more common choices:"
40232 msgstr ""
40233
40234 #. type: =item
40235 #: ../tools/virt-make-fs.pl:101
40236 msgid "I<ext3>"
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../tools/virt-make-fs.pl:103
40241 msgid ""
40242 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40243 "you are not going to use the filesystem in a way that requires the journal, "
40244 "then this is just wasted overhead."
40245 msgstr ""
40246
40247 #. type: =item
40248 #: ../tools/virt-make-fs.pl:107
40249 msgid "I<ntfs> or I<vfat>"
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../tools/virt-make-fs.pl:109
40254 msgid "Useful if exporting data to a Windows guest."
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../tools/virt-make-fs.pl:111
40259 msgid ""
40260 "I<Note for vfat>: The tar archive or local directory must only contain files "
40261 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40262 "program running within libguestfs is unable to change the ownership of non-"
40263 "root files, since vfat itself does not support this."
40264 msgstr ""
40265
40266 #. type: =item
40267 #: ../tools/virt-make-fs.pl:116
40268 msgid "I<minix>"
40269 msgstr ""
40270
40271 #. type: textblock
40272 #: ../tools/virt-make-fs.pl:118
40273 msgid ""
40274 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40275 "total filesystem size."
40276 msgstr ""
40277
40278 #. type: verbatim
40279 #: ../tools/virt-make-fs.pl:125
40280 #, no-wrap
40281 msgid ""
40282 " virt-make-fs --type=minix input minixfs.img\n"
40283 "\n"
40284 msgstr ""
40285
40286 #. type: =head2
40287 #: ../tools/virt-make-fs.pl:127
40288 msgid "TO PARTITION OR NOT TO PARTITION"
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../tools/virt-make-fs.pl:129
40293 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40294 msgstr ""
40295
40296 #. type: textblock
40297 #: ../tools/virt-make-fs.pl:131
40298 msgid ""
40299 "Adding a partition can make the disk image more compatible with certain "
40300 "virtualized operating systems which don't expect to see a filesystem "
40301 "directly located on a block device (Linux doesn't care and will happily "
40302 "handle both types)."
40303 msgstr ""
40304
40305 #. type: textblock
40306 #: ../tools/virt-make-fs.pl:136
40307 msgid ""
40308 "On the other hand, if you have a partition table then the output image is no "
40309 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40310 "directly on a partitioned disk image.  (However libguestfs tools such as "
40311 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40312 msgstr ""
40313
40314 #. type: textblock
40315 #: ../tools/virt-make-fs.pl:144
40316 msgid "Add an MBR partition:"
40317 msgstr ""
40318
40319 #. type: verbatim
40320 #: ../tools/virt-make-fs.pl:146
40321 #, no-wrap
40322 msgid ""
40323 " virt-make-fs --partition -- input disk.img\n"
40324 "\n"
40325 msgstr ""
40326
40327 #. type: textblock
40328 #: ../tools/virt-make-fs.pl:148
40329 msgid ""
40330 "If the output disk image could be terabyte-sized or larger, it's better to "
40331 "use an EFI/GPT-compatible partition table:"
40332 msgstr ""
40333
40334 #. type: verbatim
40335 #: ../tools/virt-make-fs.pl:151
40336 #, no-wrap
40337 msgid ""
40338 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40339 "\n"
40340 msgstr ""
40341
40342 #. type: textblock
40343 #: ../tools/virt-make-fs.pl:179
40344 msgid "Enable debugging information."
40345 msgstr ""
40346
40347 #. type: =item
40348 #: ../tools/virt-make-fs.pl:185
40349 msgid "B<--size=E<lt>NE<gt>>"
40350 msgstr ""
40351
40352 #. type: =item
40353 #: ../tools/virt-make-fs.pl:187
40354 msgid "B<--size=+E<lt>NE<gt>>"
40355 msgstr ""
40356
40357 #. type: =item
40358 #: ../tools/virt-make-fs.pl:189
40359 msgid "B<-s E<lt>NE<gt>>"
40360 msgstr ""
40361
40362 #. type: =item
40363 #: ../tools/virt-make-fs.pl:191
40364 msgid "B<-s +E<lt>NE<gt>>"
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../tools/virt-make-fs.pl:193
40369 msgid ""
40370 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40371 msgstr ""
40372
40373 #. type: textblock
40374 #: ../tools/virt-make-fs.pl:196
40375 msgid ""
40376 "If this option is I<not> given, then the output image will be just large "
40377 "enough to contain all the files, with not much wasted space."
40378 msgstr ""
40379
40380 #. type: textblock
40381 #: ../tools/virt-make-fs.pl:199
40382 msgid ""
40383 "To choose a fixed size output disk, specify an absolute number followed by b/"
40384 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40385 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40386 "files, else you will get an error."
40387 msgstr ""
40388
40389 #. type: textblock
40390 #: ../tools/virt-make-fs.pl:204
40391 msgid ""
40392 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40393 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40394 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40395 "the input files, and (approximately) an extra 200 MB free space."
40396 msgstr ""
40397
40398 #. type: textblock
40399 #: ../tools/virt-make-fs.pl:210
40400 msgid ""
40401 "Note that virt-make-fs estimates free space, and therefore will not produce "
40402 "filesystems containing precisely the free space requested.  (It is much more "
40403 "expensive and time-consuming to produce a filesystem which has precisely the "
40404 "desired free space)."
40405 msgstr ""
40406
40407 #. type: =item
40408 #: ../tools/virt-make-fs.pl:219
40409 msgid "B<--format=E<lt>fmtE<gt>>"
40410 msgstr ""
40411
40412 #. type: =item
40413 #: ../tools/virt-make-fs.pl:221
40414 msgid "B<-F E<lt>fmtE<gt>>"
40415 msgstr ""
40416
40417 #. type: textblock
40418 #: ../tools/virt-make-fs.pl:223
40419 msgid "Choose the output disk image format."
40420 msgstr ""
40421
40422 #. type: textblock
40423 #: ../tools/virt-make-fs.pl:225
40424 msgid "The default is C<raw> (raw disk image)."
40425 msgstr ""
40426
40427 #. type: textblock
40428 #: ../tools/virt-make-fs.pl:227
40429 msgid ""
40430 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40431 "that would really make sense here is C<qcow2>."
40432 msgstr ""
40433
40434 #. type: =item
40435 #: ../tools/virt-make-fs.pl:234
40436 msgid "B<--type=E<lt>fsE<gt>>"
40437 msgstr ""
40438
40439 #. type: =item
40440 #: ../tools/virt-make-fs.pl:236
40441 msgid "B<-t E<lt>fsE<gt>>"
40442 msgstr ""
40443
40444 #. type: textblock
40445 #: ../tools/virt-make-fs.pl:238
40446 msgid "Choose the output filesystem type."
40447 msgstr ""
40448
40449 #. type: textblock
40450 #: ../tools/virt-make-fs.pl:240
40451 msgid "The default is C<ext2>."
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../tools/virt-make-fs.pl:242
40456 msgid ""
40457 "Any filesystem which is supported read-write by libguestfs can be used here."
40458 msgstr ""
40459
40460 #. type: =item
40461 #: ../tools/virt-make-fs.pl:249
40462 msgid "B<--partition>"
40463 msgstr ""
40464
40465 #. type: =item
40466 #: ../tools/virt-make-fs.pl:251
40467 msgid "B<--partition=E<lt>parttypeE<gt>>"
40468 msgstr ""
40469
40470 #. type: textblock
40471 #: ../tools/virt-make-fs.pl:253
40472 msgid ""
40473 "If specified, this flag adds an MBR partition table to the output disk image."
40474 msgstr ""
40475
40476 #. type: textblock
40477 #: ../tools/virt-make-fs.pl:256
40478 msgid ""
40479 "You can change the partition table type, eg. I<--partition=gpt> for large "
40480 "disks."
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../tools/virt-make-fs.pl:259
40485 msgid ""
40486 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40487 "might consider the next parameter to be the partition type.  For example:"
40488 msgstr ""
40489
40490 #. type: verbatim
40491 #: ../tools/virt-make-fs.pl:263
40492 #, no-wrap
40493 msgid ""
40494 " virt-make-fs --partition input.tar ...\n"
40495 "\n"
40496 msgstr ""
40497
40498 #. type: textblock
40499 #: ../tools/virt-make-fs.pl:265
40500 msgid ""
40501 "would cause virt-make-fs to think you wanted to use a partition type of "
40502 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40503 "dash) between options and the input file argument:"
40504 msgstr ""
40505
40506 #. type: verbatim
40507 #: ../tools/virt-make-fs.pl:269
40508 #, no-wrap
40509 msgid ""
40510 " virt-make-fs --partition -- input.tar ...\n"
40511 "\n"
40512 msgstr ""
40513
40514 #. type: textblock
40515 #: ../tools/virt-make-fs.pl:541
40516 msgid ""
40517 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40518 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40519 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40520 msgstr ""
40521
40522 #. type: textblock
40523 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40524 msgid ""
40525 "When reporting bugs, please enable debugging and capture the I<complete> "
40526 "output:"
40527 msgstr ""
40528
40529 #. type: verbatim
40530 #: ../tools/virt-make-fs.pl:558
40531 #, no-wrap
40532 msgid ""
40533 " export LIBGUESTFS_DEBUG=1\n"
40534 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40535 "\n"
40536 msgstr ""
40537
40538 #. type: textblock
40539 #: ../tools/virt-make-fs.pl:561
40540 msgid ""
40541 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40542 "redhat.com/>"
40543 msgstr ""
40544
40545 #. type: textblock
40546 #: ../tools/virt-tar.pl:33
40547 msgid "virt-tar - Extract or upload files to a virtual machine"
40548 msgstr ""
40549
40550 #. type: verbatim
40551 #: ../tools/virt-tar.pl:37
40552 #, no-wrap
40553 msgid ""
40554 " virt-tar [--options] -x domname directory tarball\n"
40555 "\n"
40556 msgstr ""
40557
40558 #. type: verbatim
40559 #: ../tools/virt-tar.pl:39
40560 #, no-wrap
40561 msgid ""
40562 " virt-tar [--options] -u domname tarball directory\n"
40563 "\n"
40564 msgstr ""
40565
40566 #. type: verbatim
40567 #: ../tools/virt-tar.pl:41
40568 #, no-wrap
40569 msgid ""
40570 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40571 "\n"
40572 msgstr ""
40573
40574 #. type: verbatim
40575 #: ../tools/virt-tar.pl:43
40576 #, no-wrap
40577 msgid ""
40578 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40579 "\n"
40580 msgstr ""
40581
40582 #. type: =head2
40583 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40584 msgid "NOTE"
40585 msgstr ""
40586
40587 #. type: textblock
40588 #: ../tools/virt-tar.pl:47
40589 msgid ""
40590 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40591 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40592 msgstr ""
40593
40594 #. type: textblock
40595 #: ../tools/virt-tar.pl:52
40596 msgid "Download C</home> from the VM into a local tarball:"
40597 msgstr ""
40598
40599 #. type: verbatim
40600 #: ../tools/virt-tar.pl:54
40601 #, no-wrap
40602 msgid ""
40603 " virt-tar -x domname /home home.tar\n"
40604 "\n"
40605 msgstr ""
40606
40607 #. type: verbatim
40608 #: ../tools/virt-tar.pl:56
40609 #, no-wrap
40610 msgid ""
40611 " virt-tar -zx domname /home home.tar.gz\n"
40612 "\n"
40613 msgstr ""
40614
40615 #. type: textblock
40616 #: ../tools/virt-tar.pl:58
40617 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40618 msgstr ""
40619
40620 #. type: verbatim
40621 #: ../tools/virt-tar.pl:60
40622 #, no-wrap
40623 msgid ""
40624 " virt-tar -u domname uploadstuff.tar /tmp\n"
40625 "\n"
40626 msgstr ""
40627
40628 #. type: verbatim
40629 #: ../tools/virt-tar.pl:62
40630 #, no-wrap
40631 msgid ""
40632 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40633 "\n"
40634 msgstr ""
40635
40636 #. type: textblock
40637 #: ../tools/virt-tar.pl:66
40638 msgid ""
40639 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40640 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40641 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40642 msgstr ""
40643
40644 #. type: textblock
40645 #: ../tools/virt-tar.pl:71
40646 msgid ""
40647 "You can use I<-x> (extract) on live virtual machines, but you might get "
40648 "inconsistent results or errors if there is filesystem activity inside the "
40649 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40650 "work, but the only way to guarantee consistent results is if the virtual "
40651 "machine is shut down."
40652 msgstr ""
40653
40654 #. type: textblock
40655 #: ../tools/virt-tar.pl:79
40656 msgid ""
40657 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40658 "parts of a guest filesystem.  There are many possibilities: making backups, "
40659 "uploading data files, snooping on guest activity, fixing or customizing "
40660 "guests, etc."
40661 msgstr ""
40662
40663 #. type: textblock
40664 #: ../tools/virt-tar.pl:84
40665 msgid ""
40666 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40667 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40668 "should look at the L<guestfish(1)> tool."
40669 msgstr ""
40670
40671 #. type: textblock
40672 #: ../tools/virt-tar.pl:88
40673 msgid ""
40674 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40675 "its contents (recursively) from the virtual machine into a local tarball.  "
40676 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40677 "virtual machine.  You cannot use these two options together."
40678 msgstr ""
40679
40680 #. type: textblock
40681 #: ../tools/virt-tar.pl:94
40682 msgid ""
40683 "In addition, you may need to use the I<-z> (gZip) option to enable "
40684 "compression.  When uploading, you have to specify I<-z> if the upload file "
40685 "is compressed because virt-tar won't detect this on its own."
40686 msgstr ""
40687
40688 #. type: textblock
40689 #: ../tools/virt-tar.pl:98
40690 msgid ""
40691 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40692 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40693 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40694 "the L<libguestfs(3)> API)."
40695 msgstr ""
40696
40697 #. type: =item
40698 #: ../tools/virt-tar.pl:160
40699 msgid "B<--extract>"
40700 msgstr ""
40701
40702 #. type: =item
40703 #: ../tools/virt-tar.pl:162
40704 msgid "B<--download>"
40705 msgstr ""
40706
40707 #. type: =item
40708 #: ../tools/virt-tar.pl:164
40709 msgid "B<-u>"
40710 msgstr ""
40711
40712 #. type: =item
40713 #: ../tools/virt-tar.pl:166
40714 msgid "B<--upload>"
40715 msgstr ""
40716
40717 #. type: textblock
40718 #: ../tools/virt-tar.pl:168
40719 msgid ""
40720 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40721 "local tarball."
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../tools/virt-tar.pl:171
40726 msgid ""
40727 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40728 "Please read the L</WARNING> section above before using this option."
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../tools/virt-tar.pl:175
40733 msgid "You must specify exactly one of these options."
40734 msgstr ""
40735
40736 #. type: =item
40737 #: ../tools/virt-tar.pl:181
40738 msgid "B<-z>"
40739 msgstr ""
40740
40741 #. type: =item
40742 #: ../tools/virt-tar.pl:183
40743 msgid "B<--gzip>"
40744 msgstr ""
40745
40746 #. type: textblock
40747 #: ../tools/virt-tar.pl:185
40748 msgid "Specify that the input or output tarball is gzip-compressed."
40749 msgstr ""
40750
40751 #. type: textblock
40752 #: ../tools/virt-tar.pl:298
40753 msgid ""
40754 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40755 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40756 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40757 "org/>."
40758 msgstr ""
40759
40760 #. type: textblock
40761 #: ../tools/virt-win-reg.pl:37
40762 msgid ""
40763 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40764 msgstr ""
40765
40766 #. type: verbatim
40767 #: ../tools/virt-win-reg.pl:41
40768 #, no-wrap
40769 msgid ""
40770 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40771 "\n"
40772 msgstr ""
40773
40774 #. type: verbatim
40775 #: ../tools/virt-win-reg.pl:43
40776 #, no-wrap
40777 msgid ""
40778 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40779 "\n"
40780 msgstr ""
40781
40782 #. type: verbatim
40783 #: ../tools/virt-win-reg.pl:45
40784 #, no-wrap
40785 msgid ""
40786 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40787 "\n"
40788 msgstr ""
40789
40790 #. type: verbatim
40791 #: ../tools/virt-win-reg.pl:47
40792 #, no-wrap
40793 msgid ""
40794 " virt-win-reg --merge domname [input.reg ...]\n"
40795 "\n"
40796 msgstr ""
40797
40798 #. type: verbatim
40799 #: ../tools/virt-win-reg.pl:49
40800 #, no-wrap
40801 msgid ""
40802 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40803 "\n"
40804 msgstr ""
40805
40806 #. type: textblock
40807 #: ../tools/virt-win-reg.pl:53
40808 msgid ""
40809 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40810 "virtual machines.  If you do this, you I<will> get irreversible disk "
40811 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40812 "but doesn't catch all cases."
40813 msgstr ""
40814
40815 #. type: textblock
40816 #: ../tools/virt-win-reg.pl:58
40817 msgid ""
40818 "Modifying the Windows Registry is an inherently risky operation.  The format "
40819 "is deliberately obscure and undocumented, and Registry changes can leave the "
40820 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40821 "you have a reliable backup first."
40822 msgstr ""
40823
40824 #. type: textblock
40825 #: ../tools/virt-win-reg.pl:65
40826 msgid ""
40827 "This program can export and merge Windows Registry entries from a Windows "
40828 "guest."
40829 msgstr ""
40830
40831 #. type: textblock
40832 #: ../tools/virt-win-reg.pl:68
40833 msgid ""
40834 "The first parameter is the libvirt guest name or the raw disk image of a "
40835 "Windows guest."
40836 msgstr ""
40837
40838 #. type: textblock
40839 #: ../tools/virt-win-reg.pl:71
40840 msgid ""
40841 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40842 "exported (recursively).  For example:"
40843 msgstr ""
40844
40845 #. type: verbatim
40846 #: ../tools/virt-win-reg.pl:74
40847 #, no-wrap
40848 msgid ""
40849 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40850 "\n"
40851 msgstr ""
40852
40853 #. type: textblock
40854 #: ../tools/virt-win-reg.pl:76
40855 msgid ""
40856 "You can also display single values from within registry keys, for example:"
40857 msgstr ""
40858
40859 #. type: verbatim
40860 #: ../tools/virt-win-reg.pl:79
40861 #, no-wrap
40862 msgid ""
40863 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40864 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40865 " Windows 7 Enterprise\n"
40866 "\n"
40867 msgstr ""
40868
40869 #. type: textblock
40870 #: ../tools/virt-win-reg.pl:83
40871 msgid ""
40872 "With I<--merge>, you can merge a textual regedit file into the Windows "
40873 "Registry:"
40874 msgstr ""
40875
40876 #. type: verbatim
40877 #: ../tools/virt-win-reg.pl:86
40878 #, no-wrap
40879 msgid ""
40880 " $ virt-win-reg --merge Windows7 changes.reg\n"
40881 "\n"
40882 msgstr ""
40883
40884 #. type: textblock
40885 #: ../tools/virt-win-reg.pl:90
40886 msgid ""
40887 "This program is only meant for simple access to the registry.  If you want "
40888 "to do complicated things with the registry, we suggest you download the "
40889 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40890 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40891 "L<hivexregedit(1)>."
40892 msgstr ""
40893
40894 #. type: =item
40895 #: ../tools/virt-win-reg.pl:159
40896 msgid "B<--merge>"
40897 msgstr ""
40898
40899 #. type: textblock
40900 #: ../tools/virt-win-reg.pl:161
40901 msgid ""
40902 "In merge mode, this merges a textual regedit file into the Windows Registry "
40903 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40904 "displays or exports Registry entries instead."
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../tools/virt-win-reg.pl:165
40909 msgid ""
40910 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40911 "result in disk corruption.  However exporting (without this flag)  is always "
40912 "safe."
40913 msgstr ""
40914
40915 #. type: =item
40916 #: ../tools/virt-win-reg.pl:173
40917 msgid "B<--encoding> UTF-16LE|ASCII"
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../tools/virt-win-reg.pl:175
40922 msgid ""
40923 "When merging (only), you may need to specify the encoding for strings to be "
40924 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40925 "(3)/ENCODING STRINGS>."
40926 msgstr ""
40927
40928 #. type: textblock
40929 #: ../tools/virt-win-reg.pl:179
40930 msgid ""
40931 "The default is to use UTF-16LE, which should work with recent versions of "
40932 "Windows."
40933 msgstr ""
40934
40935 #. type: =item
40936 #: ../tools/virt-win-reg.pl:186
40937 msgid "B<--unsafe-printable-strings>"
40938 msgstr ""
40939
40940 #. type: textblock
40941 #: ../tools/virt-win-reg.pl:188
40942 msgid ""
40943 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40944 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40945 "present."
40946 msgstr ""
40947
40948 #. type: textblock
40949 #: ../tools/virt-win-reg.pl:192
40950 msgid ""
40951 "This is unsafe and does not preserve the fidelity of strings in the original "
40952 "Registry for various reasons:"
40953 msgstr ""
40954
40955 #. type: textblock
40956 #: ../tools/virt-win-reg.pl:199
40957 msgid ""
40958 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40959 "other encodings will be corrupted by this transformation."
40960 msgstr ""
40961
40962 #. type: textblock
40963 #: ../tools/virt-win-reg.pl:204
40964 msgid ""
40965 "Assumes that everything which has type 1 or 2 is really a string and that "
40966 "everything else is not a string, but the type field in real Registries is "
40967 "not reliable."
40968 msgstr ""
40969
40970 #. type: textblock
40971 #: ../tools/virt-win-reg.pl:210
40972 msgid ""
40973 "Loses information about whether a zero codepoint followed the string in the "
40974 "Registry or not."
40975 msgstr ""
40976
40977 #. type: textblock
40978 #: ../tools/virt-win-reg.pl:215
40979 msgid ""
40980 "This all happens because the Registry itself contains no information about "
40981 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40982 msgstr ""
40983
40984 #. type: textblock
40985 #: ../tools/virt-win-reg.pl:219
40986 msgid ""
40987 "You should only use this option for quick hacking and debugging of the "
40988 "Registry contents, and I<never> use it if the output is going to be passed "
40989 "into another program or stored in another Registry."
40990 msgstr ""
40991
40992 #. type: =head1
40993 #: ../tools/virt-win-reg.pl:556
40994 msgid "SUPPORTED SYSTEMS"
40995 msgstr ""
40996
40997 #. type: textblock
40998 #: ../tools/virt-win-reg.pl:558
40999 msgid ""
41000 "The program currently supports Windows NT-derived guests starting with "
41001 "Windows XP through to at least Windows 7."
41002 msgstr ""
41003
41004 #. type: textblock
41005 #: ../tools/virt-win-reg.pl:561
41006 msgid "The following Registry keys are supported:"
41007 msgstr ""
41008
41009 #. type: =item
41010 #: ../tools/virt-win-reg.pl:565
41011 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41012 msgstr ""
41013
41014 #. type: =item
41015 #: ../tools/virt-win-reg.pl:567
41016 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41017 msgstr ""
41018
41019 #. type: =item
41020 #: ../tools/virt-win-reg.pl:569
41021 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41022 msgstr ""
41023
41024 #. type: =item
41025 #: ../tools/virt-win-reg.pl:571
41026 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41027 msgstr ""
41028
41029 #. type: =item
41030 #: ../tools/virt-win-reg.pl:573
41031 msgid "C<HKEY_USERS\\.DEFAULT>"
41032 msgstr ""
41033
41034 #. type: =item
41035 #: ../tools/virt-win-reg.pl:575
41036 msgid "C<HKEY_USERS\\I<SID>>"
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../tools/virt-win-reg.pl:577
41041 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41042 msgstr ""
41043
41044 #. type: =item
41045 #: ../tools/virt-win-reg.pl:579
41046 msgid "C<HKEY_USERS\\I<username>>"
41047 msgstr ""
41048
41049 #. type: textblock
41050 #: ../tools/virt-win-reg.pl:581
41051 msgid ""
41052 "where I<username> is a local user name (this is a libguestfs extension)."
41053 msgstr ""
41054
41055 #. type: textblock
41056 #: ../tools/virt-win-reg.pl:585
41057 msgid ""
41058 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41059 "C<HKEY_USERS>."
41060 msgstr ""
41061
41062 #. type: textblock
41063 #: ../tools/virt-win-reg.pl:588
41064 msgid ""
41065 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41066 "supported (there is no \"current user\")."
41067 msgstr ""
41068
41069 #. type: =head1
41070 #: ../tools/virt-win-reg.pl:591
41071 msgid "ENCODING"
41072 msgstr ""
41073
41074 #. type: textblock
41075 #: ../tools/virt-win-reg.pl:593
41076 msgid ""
41077 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41078 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41079 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41080 "Windows-style line endings, you may need to reencode the whole file before "
41081 "or after processing."
41082 msgstr ""
41083
41084 #. type: textblock
41085 #: ../tools/virt-win-reg.pl:599
41086 msgid ""
41087 "To reencode a file from Windows format to Linux (before processing it with "
41088 "the I<--merge> option), you would do something like this:"
41089 msgstr ""
41090
41091 #. type: verbatim
41092 #: ../tools/virt-win-reg.pl:602
41093 #, no-wrap
41094 msgid ""
41095 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41096 "\n"
41097 msgstr ""
41098
41099 #. type: textblock
41100 #: ../tools/virt-win-reg.pl:604
41101 msgid ""
41102 "To go in the opposite direction, after exporting and before sending the file "
41103 "to a Windows user, do something like this:"
41104 msgstr ""
41105
41106 #. type: verbatim
41107 #: ../tools/virt-win-reg.pl:607
41108 #, no-wrap
41109 msgid ""
41110 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41111 "\n"
41112 msgstr ""
41113
41114 #. type: textblock
41115 #: ../tools/virt-win-reg.pl:609
41116 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41117 msgstr ""
41118
41119 #. type: textblock
41120 #: ../tools/virt-win-reg.pl:611
41121 msgid ""
41122 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41123 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41124 "style (CRLF) line endings, like this:"
41125 msgstr ""
41126
41127 #. type: verbatim
41128 #: ../tools/virt-win-reg.pl:615
41129 #, no-wrap
41130 msgid ""
41131 " $ file software.reg\n"
41132 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41133 " with CRLF line terminators\n"
41134 "\n"
41135 msgstr ""
41136
41137 #. type: textblock
41138 #: ../tools/virt-win-reg.pl:619
41139 msgid "This file would need conversion before you could I<--merge> it."
41140 msgstr ""
41141
41142 #. type: =head1
41143 #: ../tools/virt-win-reg.pl:621
41144 msgid "CurrentControlSet etc."
41145 msgstr ""
41146
41147 #. type: textblock
41148 #: ../tools/virt-win-reg.pl:623
41149 msgid ""
41150 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41151 "Registry at the level of the hive file, and therefore you cannot modify "
41152 "these."
41153 msgstr ""
41154
41155 #. type: textblock
41156 #: ../tools/virt-win-reg.pl:627
41157 msgid ""
41158 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41159 "circumstances it might refer to another control set.  The way to find out is "
41160 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41161 msgstr ""
41162
41163 #. type: verbatim
41164 #: ../tools/virt-win-reg.pl:631
41165 #, no-wrap
41166 msgid ""
41167 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41168 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41169 " \"Current\"=dword:00000001\n"
41170 " \"Default\"=dword:00000001\n"
41171 " \"Failed\"=dword:00000000\n"
41172 " \"LastKnownGood\"=dword:00000002\n"
41173 "\n"
41174 msgstr ""
41175
41176 #. type: textblock
41177 #: ../tools/virt-win-reg.pl:638
41178 msgid "\"Current\" is the one which Windows will choose when it boots."
41179 msgstr ""
41180
41181 #. type: textblock
41182 #: ../tools/virt-win-reg.pl:640
41183 msgid ""
41184 "Similarly, other C<Current...> keys in the path may need to be replaced."
41185 msgstr ""
41186
41187 #. type: =head1
41188 #: ../tools/virt-win-reg.pl:643
41189 msgid "WINDOWS TIPS"
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../tools/virt-win-reg.pl:645
41194 msgid ""
41195 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41196 "be shut off, else you will get disk corruption."
41197 msgstr ""
41198
41199 #. type: =head2
41200 #: ../tools/virt-win-reg.pl:648
41201 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41202 msgstr ""
41203
41204 #. type: textblock
41205 #: ../tools/virt-win-reg.pl:650
41206 msgid ""
41207 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41208 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41209 "is uploaded into C<C:\\>:"
41210 msgstr ""
41211
41212 #. type: verbatim
41213 #: ../tools/virt-win-reg.pl:654
41214 #, no-wrap
41215 msgid ""
41216 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41217 "\n"
41218 msgstr ""
41219
41220 #. type: textblock
41221 #: ../tools/virt-win-reg.pl:656
41222 msgid "Prepare a regedit file containing the registry change:"
41223 msgstr ""
41224
41225 #. type: verbatim
41226 #: ../tools/virt-win-reg.pl:658
41227 #, no-wrap
41228 msgid ""
41229 " cat > test.reg <<'EOF'\n"
41230 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41231 " \"Test\"=\"c:\\\\test.bat\"\n"
41232 " EOF\n"
41233 "\n"
41234 msgstr ""
41235
41236 #. type: textblock
41237 #: ../tools/virt-win-reg.pl:663
41238 msgid ""
41239 "In this example we use the key C<RunOnce> which means that the script will "
41240 "run precisely once when the first user logs in.  If you want it to run every "
41241 "time a user logs in, replace C<RunOnce> with C<Run>."
41242 msgstr ""
41243
41244 #. type: textblock
41245 #: ../tools/virt-win-reg.pl:667
41246 msgid "Now update the registry:"
41247 msgstr ""
41248
41249 #. type: verbatim
41250 #: ../tools/virt-win-reg.pl:669
41251 #, no-wrap
41252 msgid ""
41253 " virt-win-reg --merge WindowsGuest test.reg\n"
41254 "\n"
41255 msgstr ""
41256
41257 #. type: =head2
41258 #: ../tools/virt-win-reg.pl:671
41259 msgid "INSTALLING A SERVICE"
41260 msgstr ""
41261
41262 #. type: textblock
41263 #: ../tools/virt-win-reg.pl:673
41264 msgid ""
41265 "This section assumes you are familiar with Windows services, and you either "
41266 "have a program which handles the Windows Service Control Protocol directly "
41267 "or you want to run any program using a service wrapper like SrvAny or the "
41268 "free RHSrvAny."
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../tools/virt-win-reg.pl:678
41273 msgid ""
41274 "First upload the program and optionally the service wrapper.  In this case "
41275 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41276 msgstr ""
41277
41278 #. type: verbatim
41279 #: ../tools/virt-win-reg.pl:682
41280 #, no-wrap
41281 msgid ""
41282 " guestfish -i -d WindowsGuest <<EOF\n"
41283 "   upload rhsrvany.exe /rhsrvany.exe\n"
41284 "   upload test.exe /test.exe\n"
41285 " EOF\n"
41286 "\n"
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../tools/virt-win-reg.pl:687
41291 msgid ""
41292 "Prepare a regedit file containing the registry changes.  In this example, "
41293 "the first registry change is needed for the service itself or the service "
41294 "wrapper (if used).  The second registry change is only needed because I am "
41295 "using the RHSrvAny service wrapper."
41296 msgstr ""
41297
41298 #. type: verbatim
41299 #: ../tools/virt-win-reg.pl:692
41300 #, no-wrap
41301 msgid ""
41302 " cat > service.reg <<'EOF'\n"
41303 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41304 " \"Type\"=dword:00000010\n"
41305 " \"Start\"=dword:00000002\n"
41306 " \"ErrorControl\"=dword:00000001\n"
41307 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41308 " \"DisplayName\"=\"RHSrvAny\"\n"
41309 " \"ObjectName\"=\"NetworkService\"\n"
41310 " \n"
41311 msgstr ""
41312
41313 #. type: verbatim
41314 #: ../tools/virt-win-reg.pl:701
41315 #, no-wrap
41316 msgid ""
41317 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41318 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41319 " \"PWD\"=\"c:\\\\Temp\"\n"
41320 " EOF\n"
41321 "\n"
41322 msgstr ""
41323
41324 #. type: textblock
41325 #: ../tools/virt-win-reg.pl:712
41326 msgid ""
41327 "For use of C<ControlSet001> see the section above in this manual page.  You "
41328 "may need to adjust this according to the control set that is in use by the "
41329 "guest."
41330 msgstr ""
41331
41332 #. type: textblock
41333 #: ../tools/virt-win-reg.pl:718
41334 msgid ""
41335 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41336 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41337 "privileged account."
41338 msgstr ""
41339
41340 #. type: textblock
41341 #: ../tools/virt-win-reg.pl:724
41342 msgid ""
41343 "For the meaning of the magic numbers, see this Microsoft KB article: "
41344 "L<http://support.microsoft.com/kb/103000>."
41345 msgstr ""
41346
41347 #. type: textblock
41348 #: ../tools/virt-win-reg.pl:729
41349 msgid "Update the registry:"
41350 msgstr ""
41351
41352 #. type: verbatim
41353 #: ../tools/virt-win-reg.pl:731
41354 #, no-wrap
41355 msgid ""
41356 " virt-win-reg --merge WindowsGuest service.reg\n"
41357 "\n"
41358 msgstr ""
41359
41360 #. type: textblock
41361 #: ../tools/virt-win-reg.pl:735
41362 msgid ""
41363 "Be careful when passing parameters containing C<\\> (backslash) in the "
41364 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41365 "(but not both) to protect them from the shell."
41366 msgstr ""
41367
41368 #. type: textblock
41369 #: ../tools/virt-win-reg.pl:739
41370 msgid "Paths and value names are case-insensitive."
41371 msgstr ""
41372
41373 #. type: textblock
41374 #: ../tools/virt-win-reg.pl:748
41375 msgid ""
41376 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41377 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41378 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41379 msgstr ""
41380
41381 #. type: verbatim
41382 #: ../tools/virt-win-reg.pl:766
41383 #, no-wrap
41384 msgid ""
41385 " export LIBGUESTFS_DEBUG=1\n"
41386 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41387 "\n"
41388 msgstr ""
41389
41390 #. type: textblock
41391 #: ../tools/virt-win-reg.pl:769
41392 msgid ""
41393 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41394 "redhat.com/>"
41395 msgstr ""