Pull latest translations from Transifex.
[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: https://bugzilla.redhat.com/\n"
12 "POT-Creation-Date: 2011-10-26 21:10+0200\n"
13 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Language: ja\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: "
127 "L<http://media.netapp.com/documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a"
332 " particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the"
601 " first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report"
603 " a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the"
626 " hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size,"
704 " and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see "
758 "L<http://docs.redhat.com/docs/en-"
759 "US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-"
760 "iolimits.html>"
761 msgstr ""
762
763 #. type: textblock
764 #: ../align/virt-alignment-scan.pod:261
765 msgid ""
766 "[Thanks to Mike Snitzer for providing NetApp data and additional "
767 "information.]"
768 msgstr ""
769
770 #. type: =head2
771 #: ../align/virt-alignment-scan.pod:264
772 msgid "1 MB PARTITION ALIGNMENT"
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:266
777 msgid ""
778 "Microsoft picked 1 MB as the default alignment for all partitions starting "
779 "with Windows 2008 Server, and Linux has followed this."
780 msgstr ""
781
782 #. type: textblock
783 #: ../align/virt-alignment-scan.pod:269
784 msgid ""
785 "Assuming 512 byte sectors in the guest, you will now see the first partition"
786 " starting at sector 2048, and subsequent partitions (if any)  will start at "
787 "a multiple of 2048 sectors."
788 msgstr ""
789
790 #. type: textblock
791 #: ../align/virt-alignment-scan.pod:273
792 msgid ""
793 "1 MB alignment is compatible with all current alignment requirements (4K, "
794 "64K) and provides room for future growth in physical block sizes."
795 msgstr ""
796
797 #. type: =head2
798 #: ../align/virt-alignment-scan.pod:276
799 msgid "SETTING ALIGNMENT"
800 msgstr ""
801
802 #. type: textblock
803 #: ../align/virt-alignment-scan.pod:278
804 msgid ""
805 "L<virt-resize(1)> can change the alignment of the partitions of some guests."
806 "  Currently it can fully align all the partitions of all Windows guests, and"
807 " it will fix the bootloader where necessary.  For Linux guests, it can align"
808 " the second and subsequent partitions, so the majority of OS accesses except"
809 " at boot will be aligned."
810 msgstr ""
811
812 #. type: textblock
813 #: ../align/virt-alignment-scan.pod:284
814 msgid ""
815 "Another way to correct partition alignment problems is to reinstall your "
816 "guest operating systems.  If you install operating systems from templates, "
817 "ensure these have correct partition alignment too."
818 msgstr ""
819
820 #. type: textblock
821 #: ../align/virt-alignment-scan.pod:288
822 msgid ""
823 "For older versions of Windows, the following NetApp document contains useful"
824 " information: L<http://media.netapp.com/documents/tr-3747.pdf>"
825 msgstr ""
826
827 #. type: textblock
828 #: ../align/virt-alignment-scan.pod:291
829 msgid ""
830 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
831 "an explicit C<%pre> section that creates aligned partitions using "
832 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
833 "document above contains an example."
834 msgstr ""
835
836 #. type: =head1
837 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:231
838 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
839 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
840 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
841 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
842 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
843 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
844 #: ../tools/virt-win-reg.pl:744
845 msgid "SHELL QUOTING"
846 msgstr ""
847
848 #. type: textblock
849 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:233
850 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
851 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
852 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
853 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
854 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
855 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
856 #: ../tools/virt-win-reg.pl:752
857 msgid ""
858 "Libvirt guest names can contain arbitrary characters, some of which have "
859 "meaning to the shell such as C<#> and space.  You may need to quote or "
860 "escape these characters on the command line.  See the shell manual page "
861 "L<sh(1)> for details."
862 msgstr ""
863
864 #. type: =head1
865 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:238
866 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
867 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
868 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
869 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
870 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
871 #: ../test-tool/libguestfs-test-tool.pod:90
872 msgid "EXIT STATUS"
873 msgstr ""
874
875 #. type: textblock
876 #: ../align/virt-alignment-scan.pod:305
877 msgid "This program returns:"
878 msgstr ""
879
880 #. type: =item
881 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
882 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
883 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
884 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
885 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
886 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
887 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
888 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
889 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
890 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
891 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
892 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
893 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
894 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
895 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
896 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
897 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
898 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
899 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
900 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
901 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
902 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
903 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
904 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
905 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
906 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
907 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
908 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
909 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
910 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
911 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
912 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
913 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
914 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
915 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
916 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
917 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
918 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
919 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
920 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
921 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
922 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
923 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
924 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
925 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
926 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2075
927 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
928 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2095
929 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2109
930 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2117
931 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:2259
932 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2269
933 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2334
934 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2754
935 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2768
936 #: ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3319
937 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3334
938 #: ../src/guestfs-actions.pod:3341 ../src/guestfs.pod:403
939 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
940 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
941 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
942 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
943 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
944 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
945 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
946 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
947 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
948 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
949 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
950 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
951 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
952 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
953 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
954 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
955 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
956 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
957 #: ../tools/virt-win-reg.pl:733
958 msgid "*"
959 msgstr ""
960
961 #. type: textblock
962 #: ../align/virt-alignment-scan.pod:311
963 msgid "0"
964 msgstr ""
965
966 #. type: textblock
967 #: ../align/virt-alignment-scan.pod:313
968 msgid ""
969 "successful exit, all partitions are aligned E<ge> 64K for best performance"
970 msgstr ""
971
972 #. type: textblock
973 #: ../align/virt-alignment-scan.pod:317
974 msgid "1"
975 msgstr ""
976
977 #. type: textblock
978 #: ../align/virt-alignment-scan.pod:319
979 msgid "an error scanning the disk image or guest"
980 msgstr ""
981
982 #. type: textblock
983 #: ../align/virt-alignment-scan.pod:323
984 msgid "2"
985 msgstr ""
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:325
989 msgid ""
990 "successful exit, some partitions have alignment E<lt> 64K which can result "
991 "in poor performance on high end network storage"
992 msgstr ""
993
994 #. type: textblock
995 #: ../align/virt-alignment-scan.pod:330
996 msgid "3"
997 msgstr ""
998
999 #. type: textblock
1000 #: ../align/virt-alignment-scan.pod:332
1001 msgid ""
1002 "successful exit, some partitions have alignment E<lt> 4K which can result in"
1003 " poor performance on most hypervisors"
1004 msgstr ""
1005
1006 #. type: =head1
1007 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:243
1008 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1009 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1010 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1011 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1012 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1013 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1014 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1015 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1016 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1017 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1018 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1019 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1020 #: ../test-tool/libguestfs-test-tool.pod:100
1021 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1022 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1023 #: ../tools/virt-win-reg.pl:757
1024 msgid "SEE ALSO"
1025 msgstr ""
1026
1027 #. type: textblock
1028 #: ../align/virt-alignment-scan.pod:339
1029 msgid ""
1030 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, L"
1031 "<virt-resize(1)>, L<http://libguestfs.org/>."
1032 msgstr ""
1033
1034 #. type: =head1
1035 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:252
1036 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1037 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1038 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1039 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1040 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1041 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1042 #: ../tools/virt-win-reg.pl:783
1043 msgid "AUTHOR"
1044 msgstr ""
1045
1046 #. type: textblock
1047 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:254
1048 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1049 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1050 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1051 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1052 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1053 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1054 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1055 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1056 msgstr ""
1057
1058 #. type: =head1
1059 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:256
1060 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1061 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1062 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1063 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1064 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1065 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1066 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1067 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1068 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1069 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1070 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1071 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1072 #: ../test-tool/libguestfs-test-tool.pod:110
1073 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1074 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1075 #: ../tools/virt-win-reg.pl:787
1076 msgid "COPYRIGHT"
1077 msgstr ""
1078
1079 #. type: textblock
1080 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1081 #: ../sparsify/virt-sparsify.pod:270
1082 msgid "Copyright (C) 2011 Red Hat Inc."
1083 msgstr ""
1084
1085 #. type: textblock
1086 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:260
1087 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1088 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1089 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1090 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1091 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1092 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1093 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1094 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1095 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1096 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1097 #: ../tools/virt-win-reg.pl:791
1098 msgid ""
1099 "This program is free software; you can redistribute it and/or modify it "
1100 "under the terms of the GNU General Public License as published by the Free "
1101 "Software Foundation; either version 2 of the License, or (at your option) "
1102 "any later version."
1103 msgstr ""
1104
1105 #. type: textblock
1106 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:265
1107 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1108 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1109 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1110 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1111 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1112 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1113 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1114 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1115 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1116 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1117 #: ../tools/virt-win-reg.pl:796
1118 msgid ""
1119 "This program is distributed in the hope that it will be useful, but WITHOUT "
1120 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1121 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1122 "more details."
1123 msgstr ""
1124
1125 #. type: textblock
1126 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:270
1127 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1128 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1129 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1130 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1131 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1132 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1133 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1134 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1135 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1136 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1137 #: ../tools/virt-win-reg.pl:801
1138 msgid ""
1139 "You should have received a copy of the GNU General Public License along with"
1140 " this program; if not, write to the Free Software Foundation, Inc., 675 Mass"
1141 " Ave, Cambridge, MA 02139, USA."
1142 msgstr ""
1143
1144 #. type: textblock
1145 #: ../cat/virt-cat.pod:5
1146 msgid "virt-cat - Display files in a virtual machine"
1147 msgstr ""
1148
1149 #. type: verbatim
1150 #: ../cat/virt-cat.pod:9
1151 #, no-wrap
1152 msgid ""
1153 " virt-cat [--options] -d domname file [file ...]\n"
1154 "\n"
1155 msgstr ""
1156
1157 #. type: verbatim
1158 #: ../cat/virt-cat.pod:11
1159 #, no-wrap
1160 msgid ""
1161 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1162 "\n"
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1167 #: ../inspector/virt-inspector.pod:13
1168 msgid "Old-style:"
1169 msgstr ""
1170
1171 #. type: verbatim
1172 #: ../cat/virt-cat.pod:15
1173 #, no-wrap
1174 msgid ""
1175 " virt-cat domname file\n"
1176 "\n"
1177 msgstr ""
1178
1179 #. type: verbatim
1180 #: ../cat/virt-cat.pod:17
1181 #, no-wrap
1182 msgid ""
1183 " virt-cat disk.img file\n"
1184 "\n"
1185 msgstr ""
1186
1187 #. type: textblock
1188 #: ../cat/virt-cat.pod:21
1189 msgid ""
1190 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1191 "C<file> exists in the named virtual machine (or disk image)."
1192 msgstr ""
1193
1194 #. type: textblock
1195 #: ../cat/virt-cat.pod:24
1196 msgid ""
1197 "Multiple filenames can be given, in which case they are concatenated "
1198 "together.  Each filename must be a full path, starting at the root directory"
1199 " (starting with '/')."
1200 msgstr ""
1201
1202 #. type: textblock
1203 #: ../cat/virt-cat.pod:28
1204 msgid ""
1205 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1206 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1207 "(see L</USING GUESTFISH> below)."
1208 msgstr ""
1209
1210 #. type: =head1
1211 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1212 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1213 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1214 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1215 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1216 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1217 #: ../tools/virt-tar.pl:50
1218 msgid "EXAMPLES"
1219 msgstr ""
1220
1221 #. type: textblock
1222 #: ../cat/virt-cat.pod:34
1223 msgid ""
1224 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1225 msgstr ""
1226
1227 #. type: verbatim
1228 #: ../cat/virt-cat.pod:37
1229 #, no-wrap
1230 msgid ""
1231 " virt-cat -d mydomain /etc/fstab\n"
1232 "\n"
1233 msgstr ""
1234
1235 #. type: textblock
1236 #: ../cat/virt-cat.pod:39
1237 msgid "List syslog messages from a VM disk image file:"
1238 msgstr ""
1239
1240 #. type: verbatim
1241 #: ../cat/virt-cat.pod:41
1242 #, no-wrap
1243 msgid ""
1244 " virt-cat -a disk.img /var/log/messages | tail\n"
1245 "\n"
1246 msgstr ""
1247
1248 #. type: textblock
1249 #: ../cat/virt-cat.pod:43
1250 msgid "Find out what DHCP IP address a VM acquired:"
1251 msgstr ""
1252
1253 #. type: verbatim
1254 #: ../cat/virt-cat.pod:45
1255 #, no-wrap
1256 msgid ""
1257 " virt-cat -d mydomain /var/log/messages | \\\n"
1258 "   grep 'dhclient: bound to' | tail\n"
1259 "\n"
1260 msgstr ""
1261
1262 #. type: textblock
1263 #: ../cat/virt-cat.pod:48
1264 msgid "Find out what packages were recently installed:"
1265 msgstr ""
1266
1267 #. type: verbatim
1268 #: ../cat/virt-cat.pod:50
1269 #, no-wrap
1270 msgid ""
1271 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1272 "\n"
1273 msgstr ""
1274
1275 #. type: textblock
1276 #: ../cat/virt-cat.pod:52
1277 msgid "Find out who is logged on inside a virtual machine:"
1278 msgstr ""
1279
1280 #. type: verbatim
1281 #: ../cat/virt-cat.pod:54
1282 #, no-wrap
1283 msgid ""
1284 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1285 " who /tmp/utmp\n"
1286 "\n"
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-cat.pod:57
1291 msgid "or who was logged on:"
1292 msgstr ""
1293
1294 #. type: verbatim
1295 #: ../cat/virt-cat.pod:59
1296 #, no-wrap
1297 msgid ""
1298 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1299 " last -f /tmp/wtmp\n"
1300 "\n"
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1305 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1306 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1307 msgid ""
1308 "Add I<file> which should be a disk image from a virtual machine.  If the "
1309 "virtual machine has multiple block devices, you must supply all of them with"
1310 " separate I<-a> options."
1311 msgstr ""
1312
1313 #. type: =item
1314 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1315 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1316 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1317 msgid "B<--echo-keys>"
1318 msgstr ""
1319
1320 #. type: textblock
1321 #: ../cat/virt-cat.pod:100
1322 msgid ""
1323 "When prompting for keys and passphrases, virt-cat normally turns echoing off"
1324 " so you cannot see what you are typing.  If you are not worried about "
1325 "Tempest attacks and there is no one else in the room you can specify this "
1326 "flag to see what you are typing."
1327 msgstr ""
1328
1329 #. type: verbatim
1330 #: ../cat/virt-cat.pod:116
1331 #, no-wrap
1332 msgid ""
1333 " virt-cat --format=raw -a disk.img file\n"
1334 "\n"
1335 msgstr ""
1336
1337 #. type: verbatim
1338 #: ../cat/virt-cat.pod:120
1339 #, no-wrap
1340 msgid ""
1341 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1342 "\n"
1343 msgstr ""
1344
1345 #. type: =item
1346 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1347 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1348 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1349 msgid "B<--keys-from-stdin>"
1350 msgstr ""
1351
1352 #. type: textblock
1353 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1354 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1355 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1356 msgid ""
1357 "Read key or passphrase parameters from stdin.  The default is to try to read"
1358 " passphrases from the user by opening C</dev/tty>."
1359 msgstr ""
1360
1361 #. type: =head1
1362 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1363 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1364 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../cat/virt-cat.pod:154
1369 msgid "Previous versions of virt-cat allowed you to write either:"
1370 msgstr ""
1371
1372 #. type: verbatim
1373 #: ../cat/virt-cat.pod:156
1374 #, no-wrap
1375 msgid ""
1376 " virt-cat disk.img [disk.img ...] file\n"
1377 "\n"
1378 msgstr ""
1379
1380 #. type: textblock
1381 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1382 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1383 msgid "or"
1384 msgstr ""
1385
1386 #. type: verbatim
1387 #: ../cat/virt-cat.pod:160
1388 #, no-wrap
1389 msgid ""
1390 " virt-cat guestname file\n"
1391 "\n"
1392 msgstr ""
1393
1394 #. type: textblock
1395 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1396 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1397 msgid ""
1398 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1399 "the confusing case where a disk image might have the same name as a guest."
1400 msgstr ""
1401
1402 #. type: textblock
1403 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1404 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1405 msgid "For compatibility the old style is still supported."
1406 msgstr ""
1407
1408 #. type: =head1
1409 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1410 msgid "WINDOWS PATHS"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-cat.pod:170
1415 msgid ""
1416 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1417 "paths (eg. C<E:\\foo\\bar.txt>)."
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1422 msgid "If and only if the guest is running Windows then:"
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1427 msgid ""
1428 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1429 "to the correct filesystem."
1430 msgstr ""
1431
1432 #. type: textblock
1433 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1434 msgid ""
1435 "Any backslash (C<\\>) characters in the path are replaced with forward "
1436 "slashes so that libguestfs can process it."
1437 msgstr ""
1438
1439 #. type: textblock
1440 #: ../cat/virt-cat.pod:189
1441 msgid ""
1442 "The path is resolved case insensitively to locate the file that should be "
1443 "displayed."
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1448 msgid "There are some known shortcomings:"
1449 msgstr ""
1450
1451 #. type: textblock
1452 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1453 msgid "Some NTFS symbolic links may not be followed correctly."
1454 msgstr ""
1455
1456 #. type: textblock
1457 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1458 msgid "NTFS junction points that cross filesystems are not followed."
1459 msgstr ""
1460
1461 #. type: =head1
1462 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1463 msgid "USING GUESTFISH"
1464 msgstr ""
1465
1466 #. type: textblock
1467 #: ../cat/virt-cat.pod:210
1468 msgid ""
1469 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1470 "C<virt-cat> doesn't work."
1471 msgstr ""
1472
1473 #. type: textblock
1474 #: ../cat/virt-cat.pod:213
1475 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1476 msgstr ""
1477
1478 #. type: verbatim
1479 #: ../cat/virt-cat.pod:215
1480 #, no-wrap
1481 msgid ""
1482 " guestfish --ro -i -d domname download file -\n"
1483 "\n"
1484 msgstr ""
1485
1486 #. type: textblock
1487 #: ../cat/virt-cat.pod:217
1488 msgid ""
1489 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1490 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-cat.pod:221
1495 msgid ""
1496 "The command above uses libguestfs's guest inspection feature and so does not"
1497 " work on guests that libguestfs cannot inspect, or on things like arbitrary "
1498 "disk images that don't contain guests.  To display a file from a disk image "
1499 "directly, use:"
1500 msgstr ""
1501
1502 #. type: verbatim
1503 #: ../cat/virt-cat.pod:226
1504 #, no-wrap
1505 msgid ""
1506 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1507 "\n"
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-cat.pod:228
1512 msgid ""
1513 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1514 "the disk image, and C<file> is the full path to the file."
1515 msgstr ""
1516
1517 #. type: textblock
1518 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1519 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1520 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1521 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1522 msgid ""
1523 "This program returns 0 if successful, or non-zero if there was an error."
1524 msgstr ""
1525
1526 #. type: textblock
1527 #: ../cat/virt-cat.pod:245
1528 msgid ""
1529 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L"
1530 "<virt-tar-out(1)>, L<http://libguestfs.org/>."
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1535 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1536 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../cat/virt-filesystems.pod:5
1541 msgid ""
1542 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1543 "virtual machine or disk image"
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../cat/virt-filesystems.pod:9
1548 #, no-wrap
1549 msgid ""
1550 " virt-filesystems [--options] -d domname\n"
1551 "\n"
1552 msgstr ""
1553
1554 #. type: verbatim
1555 #: ../cat/virt-filesystems.pod:11
1556 #, no-wrap
1557 msgid ""
1558 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1559 "\n"
1560 msgstr ""
1561
1562 #. type: textblock
1563 #: ../cat/virt-filesystems.pod:15
1564 msgid ""
1565 "This tool allows you to discover filesystems, partitions, logical volumes, "
1566 "and their sizes in a disk image or virtual machine.  It is a replacement for"
1567 " L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1568 msgstr ""
1569
1570 #. type: textblock
1571 #: ../cat/virt-filesystems.pod:20
1572 msgid ""
1573 "One use for this tool is from shell scripts to iterate over all filesystems "
1574 "from a disk image:"
1575 msgstr ""
1576
1577 #. type: verbatim
1578 #: ../cat/virt-filesystems.pod:23
1579 #, no-wrap
1580 msgid ""
1581 " for fs in $(virt-filesystems -a disk.img); do\n"
1582 "   # ...\n"
1583 " done\n"
1584 "\n"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../cat/virt-filesystems.pod:27
1589 msgid ""
1590 "Another use is to list partitions before using another tool to modify those "
1591 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1592 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1593 msgstr ""
1594
1595 #. type: textblock
1596 #: ../cat/virt-filesystems.pod:32
1597 msgid ""
1598 "Various command line options control what this program displays.  You need "
1599 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1600 "guest respectively.  If you just specify that then the program shows "
1601 "filesystems found, one per line, like this:"
1602 msgstr ""
1603
1604 #. type: verbatim
1605 #: ../cat/virt-filesystems.pod:37
1606 #, no-wrap
1607 msgid ""
1608 " $ virt-filesystems -a disk.img\n"
1609 " /dev/sda1\n"
1610 " /dev/vg_guest/lv_root\n"
1611 "\n"
1612 msgstr ""
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:41
1616 msgid ""
1617 "If you add I<-l> or I<--long> then the output includes extra information:"
1618 msgstr ""
1619
1620 #. type: verbatim
1621 #: ../cat/virt-filesystems.pod:44
1622 #, no-wrap
1623 msgid ""
1624 " $ virt-filesystems -a disk.img -l\n"
1625 " Name                   Type         VFS   Label  Size\n"
1626 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1627 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1628 "\n"
1629 msgstr ""
1630
1631 #. type: textblock
1632 #: ../cat/virt-filesystems.pod:49
1633 msgid ""
1634 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1635 "shown as well:"
1636 msgstr ""
1637
1638 #. type: verbatim
1639 #: ../cat/virt-filesystems.pod:52
1640 #, no-wrap
1641 msgid ""
1642 " $ virt-filesystems -a disk.img --extra\n"
1643 " /dev/sda1\n"
1644 " /dev/vg_guest/lv_root\n"
1645 " /dev/vg_guest/lv_swap\n"
1646 " /dev/vg_guest/lv_data\n"
1647 "\n"
1648 msgstr ""
1649
1650 #. type: textblock
1651 #: ../cat/virt-filesystems.pod:58
1652 msgid ""
1653 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1654 msgstr ""
1655
1656 #. type: verbatim
1657 #: ../cat/virt-filesystems.pod:60
1658 #, no-wrap
1659 msgid ""
1660 " $ virt-filesystems -a disk.img --partitions\n"
1661 " /dev/sda1\n"
1662 " /dev/sda2\n"
1663 "\n"
1664 msgstr ""
1665
1666 #. type: textblock
1667 #: ../cat/virt-filesystems.pod:64
1668 msgid ""
1669 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I"
1670 "<--physical-volumes>, I<--block-devices> to list those items."
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-filesystems.pod:67
1675 msgid ""
1676 "You can use these options in combination as well (if you want a combination "
1677 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1678 "items fall into several categories (eg. C</dev/sda1> might be both a "
1679 "partition and a filesystem).  These items are listed several times.  To get "
1680 "a list which includes absolutely everything that virt-filesystems knows "
1681 "about, use the I<--all> option."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-filesystems.pod:74
1686 msgid ""
1687 "UUIDs (because they are quite long) are not shown by default.  Add the "
1688 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:78
1693 msgid ""
1694 "I<--all --long --uuid> is a useful combination to display all possible "
1695 "information about everything."
1696 msgstr ""
1697
1698 #. type: verbatim
1699 #: ../cat/virt-filesystems.pod:81
1700 #, no-wrap
1701 msgid ""
1702 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1703 " Name      Type       VFS  Label           Size Parent   UUID\n"
1704 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1705 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1706 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1707 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1708 " /dev/sda  device     -    -               20G  -        -\n"
1709 "\n"
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:89
1714 msgid ""
1715 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1716 msgstr ""
1717
1718 #. type: =item
1719 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1720 msgid "B<--all>"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-filesystems.pod:112
1725 msgid ""
1726 "Display everything.  This is currently the same as specifying these options:"
1727 " I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I"
1728 "<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1729 "be added to this list in future)."
1730 msgstr ""
1731
1732 #. type: textblock
1733 #: ../cat/virt-filesystems.pod:117
1734 msgid "See also I<--long>."
1735 msgstr ""
1736
1737 #. type: =item
1738 #: ../cat/virt-filesystems.pod:119
1739 msgid "B<--blkdevs>"
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-filesystems.pod:121
1744 msgid "B<--block-devices>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:123
1749 msgid "Display block devices."
1750 msgstr ""
1751
1752 #. type: =item
1753 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1754 msgid "B<--csv>"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1759 msgid ""
1760 "Write out the results in CSV format (comma-separated values).  This format "
1761 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1762 "ABOUT CSV FORMAT> below."
1763 msgstr ""
1764
1765 #. type: textblock
1766 #: ../cat/virt-filesystems.pod:150
1767 msgid ""
1768 "When prompting for keys and passphrases, virt-filesystems normally turns "
1769 "echoing off so you cannot see what you are typing.  If you are not worried "
1770 "about Tempest attacks and there is no one else in the room you can specify "
1771 "this flag to see what you are typing."
1772 msgstr ""
1773
1774 #. type: =item
1775 #: ../cat/virt-filesystems.pod:155
1776 msgid "B<--extra>"
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../cat/virt-filesystems.pod:157
1781 msgid ""
1782 "This causes filesystems that are not ordinary, mountable filesystems to be "
1783 "displayed.  This category includes swapspace, and filesystems that are empty"
1784 " or contain unknown data."
1785 msgstr ""
1786
1787 #. type: textblock
1788 #: ../cat/virt-filesystems.pod:161
1789 msgid "This option implies I<--filesystems>."
1790 msgstr ""
1791
1792 #. type: =item
1793 #: ../cat/virt-filesystems.pod:163
1794 msgid "B<--filesystems>"
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../cat/virt-filesystems.pod:165
1799 msgid ""
1800 "Display mountable filesystems.  If no display option was selected then this "
1801 "option is implied."
1802 msgstr ""
1803
1804 #. type: textblock
1805 #: ../cat/virt-filesystems.pod:168
1806 msgid "With I<--extra>, non-mountable filesystems are shown too."
1807 msgstr ""
1808
1809 #. type: verbatim
1810 #: ../cat/virt-filesystems.pod:181
1811 #, no-wrap
1812 msgid ""
1813 " virt-filesystems --format=raw -a disk.img\n"
1814 "\n"
1815 msgstr ""
1816
1817 #. type: verbatim
1818 #: ../cat/virt-filesystems.pod:185
1819 #, no-wrap
1820 msgid ""
1821 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1822 "\n"
1823 msgstr ""
1824
1825 #. type: =item
1826 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1827 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1828 #: ../tools/virt-list-partitions.pl:109
1829 msgid "B<-h>"
1830 msgstr ""
1831
1832 #. type: =item
1833 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1834 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1835 msgid "B<--human-readable>"
1836 msgstr ""
1837
1838 #. type: textblock
1839 #: ../cat/virt-filesystems.pod:198
1840 msgid "In I<--long> mode, display sizes in human-readable format."
1841 msgstr ""
1842
1843 #. type: =item
1844 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1845 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1846 msgid "B<-l>"
1847 msgstr ""
1848
1849 #. type: =item
1850 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1851 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1852 msgid "B<--long>"
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-filesystems.pod:209
1857 msgid "Display extra columns of data (\"long format\")."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-filesystems.pod:211
1862 msgid "A title row is added unless you also specify I<--no-title>."
1863 msgstr ""
1864
1865 #. type: textblock
1866 #: ../cat/virt-filesystems.pod:213
1867 msgid ""
1868 "The extra columns displayed depend on what output you select, and the "
1869 "ordering of columns may change in future versions.  Use the title row, "
1870 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1871 "programs."
1872 msgstr ""
1873
1874 #. type: textblock
1875 #: ../cat/virt-filesystems.pod:218
1876 msgid ""
1877 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1878 "default is to show raw numbers of I<bytes>."
1879 msgstr ""
1880
1881 #. type: textblock
1882 #: ../cat/virt-filesystems.pod:221
1883 msgid "Use I<--uuid> to display UUIDs too."
1884 msgstr ""
1885
1886 #. type: =item
1887 #: ../cat/virt-filesystems.pod:223
1888 msgid "B<--lvs>"
1889 msgstr ""
1890
1891 #. type: =item
1892 #: ../cat/virt-filesystems.pod:225
1893 msgid "B<--logvols>"
1894 msgstr ""
1895
1896 #. type: =item
1897 #: ../cat/virt-filesystems.pod:227
1898 msgid "B<--logical-volumes>"
1899 msgstr ""
1900
1901 #. type: textblock
1902 #: ../cat/virt-filesystems.pod:229
1903 msgid ""
1904 "Display LVM logical volumes.  In this mode, these are displayed irrespective"
1905 " of whether the LVs contain filesystems."
1906 msgstr ""
1907
1908 #. type: =item
1909 #: ../cat/virt-filesystems.pod:232
1910 msgid "B<--no-title>"
1911 msgstr ""
1912
1913 #. type: textblock
1914 #: ../cat/virt-filesystems.pod:234
1915 msgid "In I<--long> mode, don't add a title row."
1916 msgstr ""
1917
1918 #. type: textblock
1919 #: ../cat/virt-filesystems.pod:236
1920 msgid ""
1921 "Note that the order of the columns is not fixed, and may change in future "
1922 "versions of virt-filesystems, so using this option may give you unexpected "
1923 "surprises."
1924 msgstr ""
1925
1926 #. type: =item
1927 #: ../cat/virt-filesystems.pod:240
1928 msgid "B<--parts>"
1929 msgstr ""
1930
1931 #. type: =item
1932 #: ../cat/virt-filesystems.pod:242
1933 msgid "B<--partitions>"
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-filesystems.pod:244
1938 msgid ""
1939 "Display partitions.  In this mode, these are displayed irrespective of "
1940 "whether the partitions contain filesystems."
1941 msgstr ""
1942
1943 #. type: =item
1944 #: ../cat/virt-filesystems.pod:247
1945 msgid "B<--pvs>"
1946 msgstr ""
1947
1948 #. type: =item
1949 #: ../cat/virt-filesystems.pod:249
1950 msgid "B<--physvols>"
1951 msgstr ""
1952
1953 #. type: =item
1954 #: ../cat/virt-filesystems.pod:251
1955 msgid "B<--physical-volumes>"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-filesystems.pod:253
1960 msgid "Display LVM physical volumes."
1961 msgstr ""
1962
1963 #. type: =item
1964 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1965 msgid "B<--uuid>"
1966 msgstr ""
1967
1968 #. type: =item
1969 #: ../cat/virt-filesystems.pod:257
1970 msgid "B<--uuids>"
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-filesystems.pod:259
1975 msgid "In I<--long> mode, display UUIDs as well."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-filesystems.pod:273
1980 msgid "B<--vgs>"
1981 msgstr ""
1982
1983 #. type: =item
1984 #: ../cat/virt-filesystems.pod:275
1985 msgid "B<--volgroups>"
1986 msgstr ""
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:277
1990 msgid "B<--volume-groups>"
1991 msgstr ""
1992
1993 #. type: textblock
1994 #: ../cat/virt-filesystems.pod:279
1995 msgid "Display LVM volume groups."
1996 msgstr ""
1997
1998 #. type: =head1
1999 #: ../cat/virt-filesystems.pod:287
2000 msgid "COLUMNS"
2001 msgstr ""
2002
2003 #. type: textblock
2004 #: ../cat/virt-filesystems.pod:289
2005 msgid ""
2006 "Note that columns in the output are subject to reordering and change in "
2007 "future versions of this tool."
2008 msgstr ""
2009
2010 #. type: =item
2011 #: ../cat/virt-filesystems.pod:294
2012 msgid "B<Name>"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-filesystems.pod:296
2017 msgid "The filesystem, partition, block device or LVM name."
2018 msgstr ""
2019
2020 #. type: textblock
2021 #: ../cat/virt-filesystems.pod:298
2022 msgid ""
2023 "For device and partition names these are displayed as canonical libguestfs "
2024 "names, so that for example C</dev/sda2> is the second partition on the first"
2025 " device."
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-filesystems.pod:302
2030 msgid ""
2031 "If the I<--long> option is B<not> specified, then only the name column is "
2032 "shown in the output."
2033 msgstr ""
2034
2035 #. type: =item
2036 #: ../cat/virt-filesystems.pod:305
2037 msgid "B<Type>"
2038 msgstr ""
2039
2040 #. type: textblock
2041 #: ../cat/virt-filesystems.pod:307
2042 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2043 msgstr ""
2044
2045 #. type: =item
2046 #: ../cat/virt-filesystems.pod:309
2047 msgid "B<VFS>"
2048 msgstr ""
2049
2050 #. type: textblock
2051 #: ../cat/virt-filesystems.pod:311
2052 msgid ""
2053 "If there is a filesystem, then this column displays the filesystem type if "
2054 "one could be detected, eg. C<ext4>."
2055 msgstr ""
2056
2057 #. type: =item
2058 #: ../cat/virt-filesystems.pod:314
2059 msgid "B<Label>"
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-filesystems.pod:316
2064 msgid ""
2065 "If the object has a label (used for identifying and mounting filesystems) "
2066 "then this column contains the label."
2067 msgstr ""
2068
2069 #. type: =item
2070 #: ../cat/virt-filesystems.pod:319
2071 msgid "B<MBR>"
2072 msgstr ""
2073
2074 #. type: textblock
2075 #: ../cat/virt-filesystems.pod:321
2076 msgid ""
2077 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2078 "comprehensive list of partition types can be found here: "
2079 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
2080 msgstr ""
2081
2082 #. type: textblock
2083 #: ../cat/virt-filesystems.pod:325
2084 msgid "This is only applicable for DOS (MBR) partitions."
2085 msgstr ""
2086
2087 #. type: =item
2088 #: ../cat/virt-filesystems.pod:327
2089 msgid "B<Size>"
2090 msgstr ""
2091
2092 #. type: textblock
2093 #: ../cat/virt-filesystems.pod:329
2094 msgid ""
2095 "The size of the object in bytes.  If the I<--human> option is used then the "
2096 "size is displayed in a human-readable form."
2097 msgstr ""
2098
2099 #. type: =item
2100 #: ../cat/virt-filesystems.pod:332
2101 msgid "B<Parent>"
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../cat/virt-filesystems.pod:334
2106 msgid ""
2107 "The parent column records the parent relationship between objects.  For "
2108 "example, if the object is a partition, then this column contains the name of"
2109 " the containing device.  If the object is a logical volume, then this column"
2110 " is the name of the volume group."
2111 msgstr ""
2112
2113 #. type: =item
2114 #: ../cat/virt-filesystems.pod:339
2115 msgid "B<UUID>"
2116 msgstr ""
2117
2118 #. type: textblock
2119 #: ../cat/virt-filesystems.pod:341
2120 msgid ""
2121 "If the object has a UUID (used for identifying and mounting filesystems and "
2122 "block devices) then this column contains the UUID as a string."
2123 msgstr ""
2124
2125 #. type: textblock
2126 #: ../cat/virt-filesystems.pod:345
2127 msgid "The UUID is only displayed if the I<--uuid> option is given."
2128 msgstr ""
2129
2130 #. type: =head1
2131 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2132 #: ../df/virt-df.pod:191
2133 msgid "NOTE ABOUT CSV FORMAT"
2134 msgstr ""
2135
2136 #. type: textblock
2137 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2138 #: ../df/virt-df.pod:193
2139 msgid ""
2140 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2141 "should be easy to parse, but it is definitely not easy to parse."
2142 msgstr ""
2143
2144 #. type: textblock
2145 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2146 #: ../df/virt-df.pod:196
2147 msgid ""
2148 "Myth: Just split fields at commas.  Reality: This does I<not> work reliably."
2149 "  This example has two columns:"
2150 msgstr ""
2151
2152 #. type: verbatim
2153 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2154 #: ../df/virt-df.pod:199
2155 #, no-wrap
2156 msgid ""
2157 " \"foo,bar\",baz\n"
2158 "\n"
2159 msgstr ""
2160
2161 #. type: textblock
2162 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2163 #: ../df/virt-df.pod:201
2164 msgid ""
2165 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2166 "reliably.  This example has one row:"
2167 msgstr ""
2168
2169 #. type: verbatim
2170 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2171 #: ../df/virt-df.pod:204
2172 #, no-wrap
2173 msgid ""
2174 " \"foo\n"
2175 " bar\",baz\n"
2176 "\n"
2177 msgstr ""
2178
2179 #. type: textblock
2180 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2181 #: ../df/virt-df.pod:207
2182 msgid ""
2183 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2184 "packaged in major Linux distributions)."
2185 msgstr ""
2186
2187 #. type: textblock
2188 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2189 #: ../df/virt-df.pod:210
2190 msgid ""
2191 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl"
2192 " or Python's built-in csv library)."
2193 msgstr ""
2194
2195 #. type: textblock
2196 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2197 #: ../df/virt-df.pod:213
2198 msgid "Most spreadsheets and databases can import CSV directly."
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-filesystems.pod:387
2203 msgid ""
2204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2205 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
2206 "L<http://libguestfs.org/>."
2207 msgstr ""
2208
2209 #. type: textblock
2210 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2211 msgid "Copyright (C) 2010 Red Hat Inc."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:5
2216 msgid "virt-ls - List files in a virtual machine"
2217 msgstr ""
2218
2219 #. type: verbatim
2220 #: ../cat/virt-ls.pod:9
2221 #, no-wrap
2222 msgid ""
2223 " virt-ls [--options] -d domname directory [directory ...]\n"
2224 "\n"
2225 msgstr ""
2226
2227 #. type: verbatim
2228 #: ../cat/virt-ls.pod:11
2229 #, no-wrap
2230 msgid ""
2231 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2232 "\n"
2233 msgstr ""
2234
2235 #. type: textblock
2236 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2237 msgid "Old style:"
2238 msgstr ""
2239
2240 #. type: verbatim
2241 #: ../cat/virt-ls.pod:15
2242 #, no-wrap
2243 msgid ""
2244 " virt-ls [--options] domname directory\n"
2245 "\n"
2246 msgstr ""
2247
2248 #. type: verbatim
2249 #: ../cat/virt-ls.pod:17
2250 #, no-wrap
2251 msgid ""
2252 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2253 "\n"
2254 msgstr ""
2255
2256 #. type: textblock
2257 #: ../cat/virt-ls.pod:21
2258 msgid ""
2259 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2260 "more from a virtual machine or disk image."
2261 msgstr ""
2262
2263 #. type: textblock
2264 #: ../cat/virt-ls.pod:24
2265 msgid ""
2266 "Multiple directory names can be given, in which case the output from each is"
2267 " concatenated."
2268 msgstr ""
2269
2270 #. type: textblock
2271 #: ../cat/virt-ls.pod:27
2272 msgid ""
2273 "To list directories from a libvirt guest use the I<-d> option to specify the"
2274 " name of the guest.  For a disk image, use the I<-a> option."
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../cat/virt-ls.pod:31
2279 msgid ""
2280 "C<virt-ls> can do many simple file listings.  For more complicated cases you"
2281 " may need to use L<guestfish(1)>, or write a program directly to the "
2282 "L<guestfs(3)> API."
2283 msgstr ""
2284
2285 #. type: textblock
2286 #: ../cat/virt-ls.pod:37
2287 msgid "Get a list of all files and directories in a virtual machine:"
2288 msgstr ""
2289
2290 #. type: verbatim
2291 #: ../cat/virt-ls.pod:39
2292 #, no-wrap
2293 msgid ""
2294 " virt-ls -R -d guest /\n"
2295 "\n"
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:41
2300 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2301 msgstr ""
2302
2303 #. type: verbatim
2304 #: ../cat/virt-ls.pod:43
2305 #, no-wrap
2306 msgid ""
2307 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2308 "\n"
2309 msgstr ""
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:45
2313 msgid "List all public-writable directories in a Linux virtual machine:"
2314 msgstr ""
2315
2316 #. type: verbatim
2317 #: ../cat/virt-ls.pod:47
2318 #, no-wrap
2319 msgid ""
2320 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2321 "\n"
2322 msgstr ""
2323
2324 #. type: textblock
2325 #: ../cat/virt-ls.pod:49
2326 msgid "List all Unix domain sockets in a Linux virtual machine:"
2327 msgstr ""
2328
2329 #. type: verbatim
2330 #: ../cat/virt-ls.pod:51
2331 #, no-wrap
2332 msgid ""
2333 " virt-ls -lR -d guest / | grep '^s'\n"
2334 "\n"
2335 msgstr ""
2336
2337 #. type: textblock
2338 #: ../cat/virt-ls.pod:53
2339 msgid "List all regular files with filenames ending in '.png':"
2340 msgstr ""
2341
2342 #. type: verbatim
2343 #: ../cat/virt-ls.pod:55
2344 #, no-wrap
2345 msgid ""
2346 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2347 "\n"
2348 msgstr ""
2349
2350 #. type: textblock
2351 #: ../cat/virt-ls.pod:57
2352 msgid "To display files larger than 10MB in home directories:"
2353 msgstr ""
2354
2355 #. type: verbatim
2356 #: ../cat/virt-ls.pod:59
2357 #, no-wrap
2358 msgid ""
2359 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2360 "\n"
2361 msgstr ""
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:61
2365 msgid "Find everything modified in the last 7 days:"
2366 msgstr ""
2367
2368 #. type: verbatim
2369 #: ../cat/virt-ls.pod:63
2370 #, no-wrap
2371 msgid ""
2372 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2373 "\n"
2374 msgstr ""
2375
2376 #. type: textblock
2377 #: ../cat/virt-ls.pod:65
2378 msgid "Find regular files modified in the last 24 hours:"
2379 msgstr ""
2380
2381 #. type: verbatim
2382 #: ../cat/virt-ls.pod:67
2383 #, no-wrap
2384 msgid ""
2385 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2386 "\n"
2387 msgstr ""
2388
2389 #. type: =head2
2390 #: ../cat/virt-ls.pod:69
2391 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2392 msgstr ""
2393
2394 #. type: textblock
2395 #: ../cat/virt-ls.pod:71
2396 msgid ""
2397 "Find the differences between files in a guest and an earlier snapshot of the"
2398 " same guest."
2399 msgstr ""
2400
2401 #. type: verbatim
2402 #: ../cat/virt-ls.pod:74
2403 #, no-wrap
2404 msgid ""
2405 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2406 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2407 " diff -u old new | less\n"
2408 "\n"
2409 msgstr ""
2410
2411 #. type: textblock
2412 #: ../cat/virt-ls.pod:78
2413 msgid ""
2414 "The commands above won't find files where the content has changed but the "
2415 "metadata (eg. file size and modification date) is the same.  To do that, you"
2416 " need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2417 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2418 "of every regular file in the virtual machine."
2419 msgstr ""
2420
2421 #. type: =head1
2422 #: ../cat/virt-ls.pod:84
2423 msgid "OUTPUT MODES"
2424 msgstr ""
2425
2426 #. type: textblock
2427 #: ../cat/virt-ls.pod:86
2428 msgid ""
2429 "C<virt-ls> has four output modes, controlled by different combinations of "
2430 "the I<-l> and I<-R> options."
2431 msgstr ""
2432
2433 #. type: =head2
2434 #: ../cat/virt-ls.pod:89
2435 msgid "SIMPLE LISTING"
2436 msgstr ""
2437
2438 #. type: textblock
2439 #: ../cat/virt-ls.pod:91
2440 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2441 msgstr ""
2442
2443 #. type: verbatim
2444 #: ../cat/virt-ls.pod:93
2445 #, no-wrap
2446 msgid ""
2447 " $ virt-ls -d guest /\n"
2448 " bin\n"
2449 " boot\n"
2450 " [etc.]\n"
2451 "\n"
2452 msgstr ""
2453
2454 #. type: =head2
2455 #: ../cat/virt-ls.pod:98
2456 msgid "LONG LISTING"
2457 msgstr ""
2458
2459 #. type: textblock
2460 #: ../cat/virt-ls.pod:100
2461 msgid ""
2462 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2463 "(more specifically, like the C<guestfs_ll> function)."
2464 msgstr ""
2465
2466 #. type: verbatim
2467 #: ../cat/virt-ls.pod:103
2468 #, no-wrap
2469 msgid ""
2470 " $ virt-ls -l -d guest /\n"
2471 " total 204\n"
2472 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2473 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2474 " [etc.]\n"
2475 "\n"
2476 msgstr ""
2477
2478 #. type: textblock
2479 #: ../cat/virt-ls.pod:109
2480 msgid ""
2481 "Note that while this is useful for displaying a directory, do not try "
2482 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2483 "instead."
2484 msgstr ""
2485
2486 #. type: =head2
2487 #: ../cat/virt-ls.pod:113
2488 msgid "RECURSIVE LISTING"
2489 msgstr ""
2490
2491 #. type: textblock
2492 #: ../cat/virt-ls.pod:115
2493 msgid ""
2494 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2495 "and directories recursively:"
2496 msgstr ""
2497
2498 #. type: verbatim
2499 #: ../cat/virt-ls.pod:118
2500 #, no-wrap
2501 msgid ""
2502 " $ virt-ls -R -d guest /tmp\n"
2503 " foo\n"
2504 " foo/bar\n"
2505 " [etc.]\n"
2506 "\n"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:123
2511 msgid ""
2512 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2513 "converts C<\\0> characters to C<\\n>."
2514 msgstr ""
2515
2516 #. type: =head2
2517 #: ../cat/virt-ls.pod:126
2518 msgid "RECURSIVE LONG LISTING"
2519 msgstr ""
2520
2521 #. type: textblock
2522 #: ../cat/virt-ls.pod:128
2523 msgid ""
2524 "Using I<-lR> options together changes the output to display directories "
2525 "recursively, with file stats, and optionally other features such as "
2526 "checksums and extended attributes."
2527 msgstr ""
2528
2529 #. type: textblock
2530 #: ../cat/virt-ls.pod:132
2531 msgid ""
2532 "Most of the interesting features of C<virt-ls> are only available when using"
2533 " I<-lR> mode."
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:135
2538 msgid ""
2539 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2540 "you cannot use the output in another program (because filenames can contain "
2541 "spaces and other unsafe characters).  If the guest was untrusted and someone"
2542 " knew you were using C<virt-ls> to analyze the guest, they could play tricks"
2543 " on you by creating filenames with embedded newline characters.  To "
2544 "B<safely> parse the output in another program, use the I<--csv> (Comma-"
2545 "Separated Values) option."
2546 msgstr ""
2547
2548 #. type: textblock
2549 #: ../cat/virt-ls.pod:143
2550 msgid ""
2551 "Note that this output format is completely unrelated to the C<ls -lR> "
2552 "command."
2553 msgstr ""
2554
2555 #. type: verbatim
2556 #: ../cat/virt-ls.pod:146
2557 #, no-wrap
2558 msgid ""
2559 " $ virt-ls -lR -d guest /bin\n"
2560 " d 0555       4096 /bin\n"
2561 " - 0755        123 /bin/alsaunmute\n"
2562 " - 0755      28328 /bin/arch\n"
2563 " l 0777          4 /bin/awk -> gawk\n"
2564 " - 0755      27216 /bin/basename\n"
2565 " - 0755     943360 /bin/bash\n"
2566 " [etc.]\n"
2567 "\n"
2568 msgstr ""
2569
2570 #. type: textblock
2571 #: ../cat/virt-ls.pod:155
2572 msgid "These basic fields are always shown:"
2573 msgstr ""
2574
2575 #. type: =item
2576 #: ../cat/virt-ls.pod:159
2577 msgid "type"
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../cat/virt-ls.pod:161
2582 msgid ""
2583 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2584 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2585 "link), C<s> (socket) or C<u> (unknown)."
2586 msgstr ""
2587
2588 #. type: =item
2589 #: ../cat/virt-ls.pod:171
2590 msgid "permissions"
2591 msgstr ""
2592
2593 #. type: textblock
2594 #: ../cat/virt-ls.pod:173
2595 msgid "The Unix permissions, displayed as a 4 digit octal number."
2596 msgstr ""
2597
2598 #. type: =item
2599 #: ../cat/virt-ls.pod:175
2600 msgid "size"
2601 msgstr ""
2602
2603 #. type: textblock
2604 #: ../cat/virt-ls.pod:177
2605 msgid ""
2606 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2607 "readable> option is given, in which case this is shown as a human-readable "
2608 "number."
2609 msgstr ""
2610
2611 #. type: =head2
2612 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4395
2613 msgid "path"
2614 msgstr ""
2615
2616 #. type: textblock
2617 #: ../cat/virt-ls.pod:183
2618 msgid "The full path of the file or directory."
2619 msgstr ""
2620
2621 #. type: =item
2622 #: ../cat/virt-ls.pod:185
2623 msgid "link"
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../cat/virt-ls.pod:187
2628 msgid "For symbolic links only, the link target."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../cat/virt-ls.pod:191
2633 msgid ""
2634 "In I<-lR> mode, additional command line options enable the display of more "
2635 "fields."
2636 msgstr ""
2637
2638 #. type: textblock
2639 #: ../cat/virt-ls.pod:194
2640 msgid ""
2641 "With the I<--uids> flag, these additional fields are displayed before the "
2642 "path:"
2643 msgstr ""
2644
2645 #. type: =item
2646 #: ../cat/virt-ls.pod:199
2647 msgid "uid"
2648 msgstr ""
2649
2650 #. type: =item
2651 #: ../cat/virt-ls.pod:201
2652 msgid "gid"
2653 msgstr ""
2654
2655 #. type: textblock
2656 #: ../cat/virt-ls.pod:203
2657 msgid ""
2658 "The UID and GID of the owner of the file (displayed numerically).  Note "
2659 "these only make sense in the context of a Unix-like guest."
2660 msgstr ""
2661
2662 #. type: textblock
2663 #: ../cat/virt-ls.pod:208
2664 msgid "With the I<--times> flag, these additional fields are displayed:"
2665 msgstr ""
2666
2667 #. type: =item
2668 #: ../cat/virt-ls.pod:212
2669 msgid "atime"
2670 msgstr ""
2671
2672 #. type: textblock
2673 #: ../cat/virt-ls.pod:214
2674 msgid "The time of last access."
2675 msgstr ""
2676
2677 #. type: =item
2678 #: ../cat/virt-ls.pod:216
2679 msgid "mtime"
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../cat/virt-ls.pod:218
2684 msgid "The time of last modification."
2685 msgstr ""
2686
2687 #. type: =item
2688 #: ../cat/virt-ls.pod:220
2689 msgid "ctime"
2690 msgstr ""
2691
2692 #. type: textblock
2693 #: ../cat/virt-ls.pod:222
2694 msgid "The time of last status change."
2695 msgstr ""
2696
2697 #. type: textblock
2698 #: ../cat/virt-ls.pod:226
2699 msgid ""
2700 "The time fields are displayed as string dates and times, unless one of the "
2701 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2702 msgstr ""
2703
2704 #. type: textblock
2705 #: ../cat/virt-ls.pod:229
2706 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2707 msgstr ""
2708
2709 #. type: =item
2710 #: ../cat/virt-ls.pod:233
2711 msgid "device"
2712 msgstr ""
2713
2714 #. type: textblock
2715 #: ../cat/virt-ls.pod:235
2716 msgid ""
2717 "The device containing the file (displayed as major:minor).  This may not "
2718 "match devices as known to the guest."
2719 msgstr ""
2720
2721 #. type: =item
2722 #: ../cat/virt-ls.pod:238
2723 msgid "inode"
2724 msgstr ""
2725
2726 #. type: textblock
2727 #: ../cat/virt-ls.pod:240
2728 msgid "The inode number."
2729 msgstr ""
2730
2731 #. type: =item
2732 #: ../cat/virt-ls.pod:242
2733 msgid "nlink"
2734 msgstr ""
2735
2736 #. type: textblock
2737 #: ../cat/virt-ls.pod:244
2738 msgid "The number of hard links."
2739 msgstr ""
2740
2741 #. type: =item
2742 #: ../cat/virt-ls.pod:246
2743 msgid "rdev"
2744 msgstr ""
2745
2746 #. type: textblock
2747 #: ../cat/virt-ls.pod:248
2748 msgid ""
2749 "For block and char special files, the device (displayed as major:minor)."
2750 msgstr ""
2751
2752 #. type: =item
2753 #: ../cat/virt-ls.pod:251
2754 msgid "blocks"
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../cat/virt-ls.pod:253
2759 msgid "The number of 512 byte blocks allocated to the file."
2760 msgstr ""
2761
2762 #. type: textblock
2763 #: ../cat/virt-ls.pod:257
2764 msgid ""
2765 "With the I<--checksum> flag, the checksum of the file contents is shown "
2766 "(only for regular files).  Computing file checksums can take a considerable "
2767 "amount of time."
2768 msgstr ""
2769
2770 #. type: =item
2771 #: ../cat/virt-ls.pod:280
2772 msgid "B<--checksum>"
2773 msgstr ""
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:282
2777 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2778 msgstr ""
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:284
2782 msgid ""
2783 "Display checksum over file contents for regular files.  With no argument, "
2784 "this defaults to using I<md5>.  Using an argument, you can select the "
2785 "checksum type to use."
2786 msgstr ""
2787
2788 #. type: textblock
2789 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2790 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2791 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2792 msgid ""
2793 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2794 "LISTING> above."
2795 msgstr ""
2796
2797 #. type: textblock
2798 #: ../cat/virt-ls.pod:316
2799 msgid ""
2800 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2801 "so you cannot see what you are typing.  If you are not worried about Tempest"
2802 " attacks and there is no one else in the room you can specify this flag to "
2803 "see what you are typing."
2804 msgstr ""
2805
2806 #. type: =item
2807 #: ../cat/virt-ls.pod:321
2808 msgid "B<--extra-stats>"
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../cat/virt-ls.pod:323
2813 msgid "Display extra stats."
2814 msgstr ""
2815
2816 #. type: verbatim
2817 #: ../cat/virt-ls.pod:339
2818 #, no-wrap
2819 msgid ""
2820 " virt-ls --format=raw -a disk.img /dir\n"
2821 "\n"
2822 msgstr ""
2823
2824 #. type: verbatim
2825 #: ../cat/virt-ls.pod:343
2826 #, no-wrap
2827 msgid ""
2828 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2829 "\n"
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../cat/virt-ls.pod:356
2834 msgid "Display file sizes in human-readable format."
2835 msgstr ""
2836
2837 #. type: =item
2838 #: ../cat/virt-ls.pod:370
2839 msgid "B<-R>"
2840 msgstr ""
2841
2842 #. type: =item
2843 #: ../cat/virt-ls.pod:372
2844 msgid "B<--recursive>"
2845 msgstr ""
2846
2847 #. type: textblock
2848 #: ../cat/virt-ls.pod:374
2849 msgid ""
2850 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2851 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2852 "LISTING>."
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:378
2857 msgid ""
2858 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2859 "L</LONG LISTING>."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../cat/virt-ls.pod:381
2864 msgid ""
2865 "C<virt-ls -R> produces a recursive list of files starting at the named "
2866 "directory.  See L</RECURSIVE LISTING>."
2867 msgstr ""
2868
2869 #. type: textblock
2870 #: ../cat/virt-ls.pod:384
2871 msgid ""
2872 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2873 "parsed.  See L</RECURSIVE LONG LISTING>."
2874 msgstr ""
2875
2876 #. type: =item
2877 #: ../cat/virt-ls.pod:387
2878 msgid "B<--times>"
2879 msgstr ""
2880
2881 #. type: textblock
2882 #: ../cat/virt-ls.pod:389
2883 msgid "Display time fields."
2884 msgstr ""
2885
2886 #. type: =item
2887 #: ../cat/virt-ls.pod:394
2888 msgid "B<--time-days>"
2889 msgstr ""
2890
2891 #. type: textblock
2892 #: ../cat/virt-ls.pod:396
2893 msgid "Display time fields as days before now (negative if in the future)."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../cat/virt-ls.pod:398
2898 msgid ""
2899 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2900 "of the file is between 0 and 86399 seconds."
2901 msgstr ""
2902
2903 #. type: =item
2904 #: ../cat/virt-ls.pod:404
2905 msgid "B<--time-relative>"
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../cat/virt-ls.pod:406
2910 msgid "Display time fields as seconds before now (negative if in the future)."
2911 msgstr ""
2912
2913 #. type: =item
2914 #: ../cat/virt-ls.pod:411
2915 msgid "B<--time-t>"
2916 msgstr ""
2917
2918 #. type: textblock
2919 #: ../cat/virt-ls.pod:413
2920 msgid "Display time fields as seconds since the Unix epoch."
2921 msgstr ""
2922
2923 #. type: =item
2924 #: ../cat/virt-ls.pod:418
2925 msgid "B<--uids>"
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../cat/virt-ls.pod:420
2930 msgid "Display UID and GID fields."
2931 msgstr ""
2932
2933 #. type: textblock
2934 #: ../cat/virt-ls.pod:445
2935 msgid "Previous versions of virt-ls allowed you to write either:"
2936 msgstr ""
2937
2938 #. type: verbatim
2939 #: ../cat/virt-ls.pod:447
2940 #, no-wrap
2941 msgid ""
2942 " virt-ls disk.img [disk.img ...] /dir\n"
2943 "\n"
2944 msgstr ""
2945
2946 #. type: verbatim
2947 #: ../cat/virt-ls.pod:451
2948 #, no-wrap
2949 msgid ""
2950 " virt-ls guestname /dir\n"
2951 "\n"
2952 msgstr ""
2953
2954 #. type: textblock
2955 #: ../cat/virt-ls.pod:497
2956 msgid ""
2957 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2958 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2959 "L<http://libguestfs.org/>."
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2964 #: ../rescue/virt-rescue.pod:302
2965 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2966 msgstr ""
2967
2968 #. type: textblock
2969 #: ../clone/virt-sysprep.pod:5
2970 msgid ""
2971 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2972 msgstr ""
2973
2974 #. type: verbatim
2975 #: ../clone/virt-sysprep.pod:9
2976 #, no-wrap
2977 msgid ""
2978 " virt-sysprep [--options] -d domname\n"
2979 "\n"
2980 msgstr ""
2981
2982 #. type: verbatim
2983 #: ../clone/virt-sysprep.pod:11
2984 #, no-wrap
2985 msgid ""
2986 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2987 "\n"
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../clone/virt-sysprep.pod:15
2992 msgid ""
2993 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones"
2994 " can be made from it.  Steps in this process include removing SSH host keys,"
2995 " removing persistent network MAC configuration, and removing user accounts."
2996 "  Each step can be enabled or disabled as required."
2997 msgstr ""
2998
2999 #. type: textblock
3000 #: ../clone/virt-sysprep.pod:21
3001 msgid ""
3002 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3003 "customization by the system administrator."
3004 msgstr ""
3005
3006 #. type: textblock
3007 #: ../clone/virt-sysprep.pod:24
3008 msgid ""
3009 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3010 "be shut down.  If you want to preserve the existing contents of the guest, "
3011 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
3012 "below."
3013 msgstr ""
3014
3015 #. type: textblock
3016 #: ../clone/virt-sysprep.pod:29
3017 msgid ""
3018 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3019 "recommend that you don't.  The time you might want to run it as root is when"
3020 " you need root in order to access the disk image, but even in this case it "
3021 "would be better to change the permissions on the disk image to be writable "
3022 "as the non-root user running virt-sysprep."
3023 msgstr ""
3024
3025 #. type: textblock
3026 #: ../clone/virt-sysprep.pod:35
3027 msgid ""
3028 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the"
3029 " Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3030 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3031 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3032 "Windows sysprepping in a future version, and we already have code to do it."
3033 msgstr ""
3034
3035 #. type: =item
3036 #: ../clone/virt-sysprep.pod:76
3037 msgid "B<--enable=...>"
3038 msgstr ""
3039
3040 #. type: textblock
3041 #: ../clone/virt-sysprep.pod:78
3042 msgid ""
3043 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3044 "operations, for example:"
3045 msgstr ""
3046
3047 #. type: verbatim
3048 #: ../clone/virt-sysprep.pod:81
3049 #, no-wrap
3050 msgid ""
3051 " --enable=ssh-hostkeys,udev-persistent-net\n"
3052 "\n"
3053 msgstr ""
3054
3055 #. type: textblock
3056 #: ../clone/virt-sysprep.pod:83
3057 msgid ""
3058 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:85
3063 msgid ""
3064 "If the I<--enable> option is not given, then we default to trying all "
3065 "possible sysprep operations.  But some sysprep operations are skipped for "
3066 "some guest types."
3067 msgstr ""
3068
3069 #. type: textblock
3070 #: ../clone/virt-sysprep.pod:89
3071 msgid ""
3072 "Use I<--list-operations> to list operations supported by a particular "
3073 "version of virt-sysprep."
3074 msgstr ""
3075
3076 #. type: textblock
3077 #: ../clone/virt-sysprep.pod:92
3078 msgid ""
3079 "See L</OPERATIONS> below for a list and an explanation of each operation."
3080 msgstr ""
3081
3082 #. type: verbatim
3083 #: ../clone/virt-sysprep.pod:106
3084 #, no-wrap
3085 msgid ""
3086 " virt-sysprep --format=raw -a disk.img\n"
3087 "\n"
3088 msgstr ""
3089
3090 #. type: verbatim
3091 #: ../clone/virt-sysprep.pod:110
3092 #, no-wrap
3093 msgid ""
3094 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3095 "\n"
3096 msgstr ""
3097
3098 #. type: =item
3099 #: ../clone/virt-sysprep.pod:119
3100 msgid "B<--hostname> newhostname"
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../clone/virt-sysprep.pod:121
3105 msgid ""
3106 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3107 "defaults to C<localhost.localdomain>."
3108 msgstr ""
3109
3110 #. type: =item
3111 #: ../clone/virt-sysprep.pod:124
3112 msgid "B<--list-operations>"
3113 msgstr ""
3114
3115 #. type: textblock
3116 #: ../clone/virt-sysprep.pod:126
3117 msgid "List the operations supported by the virt-sysprep program."
3118 msgstr ""
3119
3120 #. type: =item
3121 #: ../clone/virt-sysprep.pod:128
3122 msgid "B<--selinux-relabel>"
3123 msgstr ""
3124
3125 #. type: =item
3126 #: ../clone/virt-sysprep.pod:130
3127 msgid "B<--no-selinux-relabel>"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:132
3132 msgid ""
3133 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3134 "I<--no-selinux-relabel> disables relabelling."
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:135
3139 msgid ""
3140 "The default is to try to detect if SELinux relabelling is required.  See "
3141 "L</SELINUX RELABELLING> below for more details."
3142 msgstr ""
3143
3144 #. type: =head1
3145 #: ../clone/virt-sysprep.pod:156
3146 msgid "OPERATIONS"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:158
3151 msgid ""
3152 "If the I<--enable> option is I<not> given, then I<all sysprep operations are"
3153 " enabled>, although some are skipped depending on the type of guest."
3154 msgstr ""
3155
3156 #. type: textblock
3157 #: ../clone/virt-sysprep.pod:162
3158 msgid ""
3159 "Operations can be individually enabled using the I<--enable> option.  Use a "
3160 "comma-separated list, for example:"
3161 msgstr ""
3162
3163 #. type: verbatim
3164 #: ../clone/virt-sysprep.pod:165
3165 #, no-wrap
3166 msgid ""
3167 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3168 "\n"
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../clone/virt-sysprep.pod:167
3173 msgid ""
3174 "To list the operations supported by the current version of virt-sysprep, use"
3175 " I<--list-operations>."
3176 msgstr ""
3177
3178 #. type: textblock
3179 #: ../clone/virt-sysprep.pod:170
3180 msgid ""
3181 "Future versions of virt-sysprep may add more operations.  If you are using "
3182 "virt-sysprep and want predictable behaviour, specify only the operations "
3183 "that you want to have enabled."
3184 msgstr ""
3185
3186 #. type: =head2
3187 #: ../clone/virt-sysprep.pod:174
3188 msgid "cron-spool"
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../clone/virt-sysprep.pod:176
3193 msgid "Remove user at-jobs and cron-jobs."
3194 msgstr ""
3195
3196 #. type: =head2
3197 #: ../clone/virt-sysprep.pod:178
3198 msgid "dhcp-client-state"
3199 msgstr ""
3200
3201 #. type: textblock
3202 #: ../clone/virt-sysprep.pod:180
3203 msgid "Remove DHCP client leases."
3204 msgstr ""
3205
3206 #. type: =head2
3207 #: ../clone/virt-sysprep.pod:182
3208 msgid "dhcp-server-state"
3209 msgstr ""
3210
3211 #. type: textblock
3212 #: ../clone/virt-sysprep.pod:184
3213 msgid "Remove DHCP server leases."
3214 msgstr ""
3215
3216 #. type: =head2
3217 #: ../clone/virt-sysprep.pod:186
3218 msgid "hostname"
3219 msgstr ""
3220
3221 #. type: textblock
3222 #: ../clone/virt-sysprep.pod:188
3223 msgid ""
3224 "Changes the hostname of the guest to the value given in the I<--hostname> "
3225 "parameter."
3226 msgstr ""
3227
3228 #. type: textblock
3229 #: ../clone/virt-sysprep.pod:191
3230 msgid ""
3231 "If the I<--hostname> parameter is not given, then the hostname is changed to"
3232 " C<localhost.localdomain>."
3233 msgstr ""
3234
3235 #. type: =head2
3236 #: ../clone/virt-sysprep.pod:194
3237 msgid "logfiles"
3238 msgstr ""
3239
3240 #. type: textblock
3241 #: ../clone/virt-sysprep.pod:196
3242 msgid "Remove many log files."
3243 msgstr ""
3244
3245 #. type: =head2
3246 #: ../clone/virt-sysprep.pod:198
3247 msgid "mail-spool"
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../clone/virt-sysprep.pod:200
3252 msgid "Remove email from the local mail spool directory."
3253 msgstr ""
3254
3255 #. type: =head2
3256 #: ../clone/virt-sysprep.pod:202
3257 msgid "net-hwaddr"
3258 msgstr ""
3259
3260 #. type: textblock
3261 #: ../clone/virt-sysprep.pod:204
3262 msgid ""
3263 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3264 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3265 msgstr ""
3266
3267 #. type: =head2
3268 #: ../clone/virt-sysprep.pod:207
3269 msgid "random-seed"
3270 msgstr ""
3271
3272 #. type: textblock
3273 #: ../clone/virt-sysprep.pod:209
3274 msgid ""
3275 "Write some random bytes from the host into the random seed file of the "
3276 "guest."
3277 msgstr ""
3278
3279 #. type: textblock
3280 #: ../clone/virt-sysprep.pod:212
3281 msgid "See L</RANDOM SEED> below."
3282 msgstr ""
3283
3284 #. type: =head2
3285 #: ../clone/virt-sysprep.pod:214
3286 msgid "rhn-systemid"
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:216
3291 msgid "Remove the RHN system ID."
3292 msgstr ""
3293
3294 #. type: =head2
3295 #: ../clone/virt-sysprep.pod:218
3296 msgid "smolt-uuid"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../clone/virt-sysprep.pod:220
3301 msgid "Remove the Smolt hardware UUID."
3302 msgstr ""
3303
3304 #. type: =head2
3305 #: ../clone/virt-sysprep.pod:222
3306 msgid "ssh-hostkeys"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../clone/virt-sysprep.pod:224
3311 msgid "Remove the SSH host keys in the guest."
3312 msgstr ""
3313
3314 #. type: textblock
3315 #: ../clone/virt-sysprep.pod:226
3316 msgid ""
3317 "The SSH host keys are regenerated (differently) next time the guest is "
3318 "booted."
3319 msgstr ""
3320
3321 #. type: textblock
3322 #: ../clone/virt-sysprep.pod:229
3323 msgid ""
3324 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3325 "stark warning about the host key changing:"
3326 msgstr ""
3327
3328 #. type: verbatim
3329 #: ../clone/virt-sysprep.pod:232
3330 #, no-wrap
3331 msgid ""
3332 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3333 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3334 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3335 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3336 "\n"
3337 msgstr ""
3338
3339 #. type: =head2
3340 #: ../clone/virt-sysprep.pod:237
3341 msgid "udev-persistent-net"
3342 msgstr ""
3343
3344 #. type: textblock
3345 #: ../clone/virt-sysprep.pod:239
3346 msgid ""
3347 "Remove udev persistent net rules which map the guest's existing MAC address "
3348 "to a fixed ethernet device (eg. eth0)."
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:242
3353 msgid ""
3354 "After a guest is cloned, the MAC address usually changes.  Since the old MAC"
3355 " address occupies the old name (eg. eth0), this means the fresh MAC address "
3356 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3357 "Erasing the udev persistent net rules avoids this."
3358 msgstr ""
3359
3360 #. type: =head2
3361 #: ../clone/virt-sysprep.pod:247
3362 msgid "utmp"
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../clone/virt-sysprep.pod:249
3367 msgid "Remove the utmp file."
3368 msgstr ""
3369
3370 #. type: textblock
3371 #: ../clone/virt-sysprep.pod:251
3372 msgid ""
3373 "This records who is currently logged in on a machine.  In modern Linux "
3374 "distros it is stored in a ramdisk and hence not part of the virtual "
3375 "machine's disk, but it was stored on disk in older distros."
3376 msgstr ""
3377
3378 #. type: =head2
3379 #: ../clone/virt-sysprep.pod:255
3380 msgid "yum-uuid"
3381 msgstr ""
3382
3383 #. type: textblock
3384 #: ../clone/virt-sysprep.pod:257
3385 msgid "Remove the yum UUID."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../clone/virt-sysprep.pod:259
3390 msgid ""
3391 "Yum creates a fresh UUID the next time it runs when it notices that the "
3392 "original UUID has been erased."
3393 msgstr ""
3394
3395 #. type: =head1
3396 #: ../clone/virt-sysprep.pod:262
3397 msgid "COPYING AND CLONING"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../clone/virt-sysprep.pod:264
3402 msgid ""
3403 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3404 "prepare a template from which guests can be cloned.  There are many "
3405 "different ways to achieve this using the virt tools, and this section is "
3406 "just an introduction."
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:269
3411 msgid "A virtual machine (when switched off) consists of two parts:"
3412 msgstr ""
3413
3414 #. type: =item
3415 #: ../clone/virt-sysprep.pod:273
3416 msgid "I<configuration>"
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../clone/virt-sysprep.pod:275
3421 msgid ""
3422 "The configuration or description of the guest.  eg. The libvirt XML (see "
3423 "C<virsh dumpxml>), the running configuration of the guest, or another "
3424 "external format like OVF."
3425 msgstr ""
3426
3427 #. type: textblock
3428 #: ../clone/virt-sysprep.pod:279
3429 msgid "Some configuration items that might need to be changed:"
3430 msgstr ""
3431
3432 #. type: textblock
3433 #: ../clone/virt-sysprep.pod:285
3434 msgid "name"
3435 msgstr ""
3436
3437 #. type: textblock
3438 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3439 msgid "UUID"
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../clone/virt-sysprep.pod:293
3444 msgid "path to block device(s)"
3445 msgstr ""
3446
3447 #. type: textblock
3448 #: ../clone/virt-sysprep.pod:297
3449 msgid "network card MAC address"
3450 msgstr ""
3451
3452 #. type: =item
3453 #: ../clone/virt-sysprep.pod:301
3454 msgid "I<block device(s)>"
3455 msgstr ""
3456
3457 #. type: textblock
3458 #: ../clone/virt-sysprep.pod:303
3459 msgid ""
3460 "One or more hard disk images, themselves containing files, directories, "
3461 "applications, kernels, configuration, etc."
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../clone/virt-sysprep.pod:306
3466 msgid "Some things inside the block devices that might need to be changed:"
3467 msgstr ""
3468
3469 #. type: textblock
3470 #: ../clone/virt-sysprep.pod:312
3471 msgid "hostname and other net configuration"
3472 msgstr ""
3473
3474 #. type: textblock
3475 #: ../clone/virt-sysprep.pod:320
3476 msgid "SSH host keys"
3477 msgstr ""
3478
3479 #. type: textblock
3480 #: ../clone/virt-sysprep.pod:324
3481 msgid "Windows unique security ID (SID)"
3482 msgstr ""
3483
3484 #. type: textblock
3485 #: ../clone/virt-sysprep.pod:328
3486 msgid "Puppet registration"
3487 msgstr ""
3488
3489 #. type: =head2
3490 #: ../clone/virt-sysprep.pod:334
3491 msgid "COPYING THE BLOCK DEVICE"
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../clone/virt-sysprep.pod:336
3496 msgid ""
3497 "Starting with an original guest, you probably wish to copy the guest block "
3498 "device and its configuration to make a template.  Then once you are happy "
3499 "with the template, you will want to make many clones from it."
3500 msgstr ""
3501
3502 #. type: verbatim
3503 #: ../clone/virt-sysprep.pod:341
3504 #, no-wrap
3505 msgid ""
3506 "                        virt-sysprep\n"
3507 "                             |\n"
3508 "                             v\n"
3509 " original guest --------> template ---------->\n"
3510 "                                      \\------> cloned\n"
3511 "                                       \\-----> guests\n"
3512 "                                        \\---->\n"
3513 "\n"
3514 msgstr ""
3515
3516 #. type: textblock
3517 #: ../clone/virt-sysprep.pod:349
3518 msgid ""
3519 "You can, of course, just copy the block device on the host using L<cp(1)> or"
3520 " L<dd(1)>."
3521 msgstr ""
3522
3523 #. type: verbatim
3524 #: ../clone/virt-sysprep.pod:352
3525 #, no-wrap
3526 msgid ""
3527 "                   dd                 dd\n"
3528 " original guest --------> template ---------->\n"
3529 "                                      \\------> cloned\n"
3530 "                                       \\-----> guests\n"
3531 "                                        \\---->\n"
3532 "\n"
3533 msgstr ""
3534
3535 #. type: textblock
3536 #: ../clone/virt-sysprep.pod:358
3537 msgid "There are some smarter (and faster) ways too:"
3538 msgstr ""
3539
3540 #. type: verbatim
3541 #: ../clone/virt-sysprep.pod:364
3542 #, no-wrap
3543 msgid ""
3544 "                          snapshot\n"
3545 "                template ---------->\n"
3546 "                            \\------> cloned\n"
3547 "                             \\-----> guests\n"
3548 "                              \\---->\n"
3549 "\n"
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../clone/virt-sysprep.pod:370
3554 msgid ""
3555 "Use the block device as a backing file and create a snapshot on top for each"
3556 " guest.  The advantage is that you don't need to copy the block device (very"
3557 " fast) and only changes are stored (less storage required)."
3558 msgstr ""
3559
3560 #. type: textblock
3561 #: ../clone/virt-sysprep.pod:375
3562 msgid ""
3563 "Note that writing to the backing file once you have created guests on top of"
3564 " it is not possible: you will corrupt the guests."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../clone/virt-sysprep.pod:378
3569 msgid ""
3570 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3571 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3572 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3573 "also create cheap snapshots from files or LUNs."
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../clone/virt-sysprep.pod:386
3578 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../clone/virt-sysprep.pod:390
3583 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3584 msgstr ""
3585
3586 #. type: =head2
3587 #: ../clone/virt-sysprep.pod:394
3588 msgid "VIRT-CLONE"
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../clone/virt-sysprep.pod:396
3593 msgid ""
3594 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device"
3595 " and/or modify the external libvirt configuration of a guest.  It will reset"
3596 " the name, UUID and MAC address of the guest in the libvirt XML."
3597 msgstr ""
3598
3599 #. type: textblock
3600 #: ../clone/virt-sysprep.pod:401
3601 msgid ""
3602 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3603 "image.  This was the original motivation to write virt-sysprep."
3604 msgstr ""
3605
3606 #. type: =head2
3607 #: ../clone/virt-sysprep.pod:404
3608 msgid "SPARSIFY"
3609 msgstr ""
3610
3611 #. type: verbatim
3612 #: ../clone/virt-sysprep.pod:406
3613 #, no-wrap
3614 msgid ""
3615 "              virt-sparsify\n"
3616 " original guest --------> template\n"
3617 "\n"
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../clone/virt-sysprep.pod:409
3622 msgid ""
3623 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making"
3624 " it easier to compress and/or faster to copy."
3625 msgstr ""
3626
3627 #. type: textblock
3628 #: ../clone/virt-sysprep.pod:412
3629 msgid ""
3630 "Notice that since virt-sparsify also copies the image, you can use it to "
3631 "make the initial copy (instead of C<dd>)."
3632 msgstr ""
3633
3634 #. type: =head2
3635 #: ../clone/virt-sysprep.pod:415
3636 msgid "RESIZE"
3637 msgstr ""
3638
3639 #. type: verbatim
3640 #: ../clone/virt-sysprep.pod:417
3641 #, no-wrap
3642 msgid ""
3643 "                         virt-resize\n"
3644 "                template ---------->\n"
3645 "                            \\------> cloned\n"
3646 "                             \\-----> guests\n"
3647 "                              \\---->\n"
3648 "\n"
3649 msgstr ""
3650
3651 #. type: textblock
3652 #: ../clone/virt-sysprep.pod:423
3653 msgid ""
3654 "If you want to give people cloned guests, but let them pick the size of the "
3655 "guest themselves (eg. depending on how much they are prepared to pay for "
3656 "disk space), then instead of copying the template, you can run L<virt-"
3657 "resize(1)>.  Virt-resize performs a copy and resize, and thus is ideal for "
3658 "cloning guests from a template."
3659 msgstr ""
3660
3661 #. type: =head1
3662 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3663 msgid "SECURITY"
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../clone/virt-sysprep.pod:431
3668 msgid ""
3669 "Although virt-sysprep removes some sensitive information from the guest, it "
3670 "does not pretend to remove all of it.  You should examine the L</OPERATIONS>"
3671 " above, and the implementation of the operations in the shell script.  You "
3672 "should also examine the guest afterwards."
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../clone/virt-sysprep.pod:436
3677 msgid ""
3678 "Sensitive files are simply removed.  The data they contained may still exist"
3679 " on the disk, easily recovered with a hex editor or undelete tool.  Use L"
3680 "<virt-sparsify(1)> as one way to remove this content.  See also the "
3681 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3682 "inodes."
3683 msgstr ""
3684
3685 #. type: =head2
3686 #: ../clone/virt-sysprep.pod:442
3687 msgid "RANDOM SEED"
3688 msgstr ""
3689
3690 #. type: textblock
3691 #: ../clone/virt-sysprep.pod:444
3692 msgid "I<(This section applies to Linux guests only)>"
3693 msgstr ""
3694
3695 #. type: textblock
3696 #: ../clone/virt-sysprep.pod:446
3697 msgid ""
3698 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3699 "from the host into the guest's random seed file."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../clone/virt-sysprep.pod:449
3704 msgid ""
3705 "If this is just done once and the guest is cloned from the same template, "
3706 "then each guest will start with the same entropy, and things like SSH host "
3707 "keys and TCP sequence numbers may be predictable."
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../clone/virt-sysprep.pod:453
3712 msgid ""
3713 "Therefore you should arrange to add more randomness I<after> cloning from a "
3714 "template too, which can be done by just enabling the C<random-seed> "
3715 "operation:"
3716 msgstr ""
3717
3718 #. type: verbatim
3719 #: ../clone/virt-sysprep.pod:457
3720 #, no-wrap
3721 msgid ""
3722 " cp template.img newguest.img\n"
3723 " virt-sysprep --enable=random-seed -a newguest.img\n"
3724 "\n"
3725 msgstr ""
3726
3727 #. type: =head2
3728 #: ../clone/virt-sysprep.pod:460
3729 msgid "SELINUX RELABELLING"
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../clone/virt-sysprep.pod:462
3734 msgid "I<(This section applies to Linux guests using SELinux only)>"
3735 msgstr ""
3736
3737 #. type: textblock
3738 #: ../clone/virt-sysprep.pod:464
3739 msgid ""
3740 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3741 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3742 "next time the guest is booted.  This process interrupts boot and can take "
3743 "some time."
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../clone/virt-sysprep.pod:469
3748 msgid ""
3749 "You can force relabelling for all guests by supplying the I<--selinux-"
3750 "relabel> option."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../clone/virt-sysprep.pod:472
3755 msgid ""
3756 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3757 "relabel> option."
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../clone/virt-sysprep.pod:484
3762 msgid "This program returns 0 on success, or 1 if there was an error."
3763 msgstr ""
3764
3765 #. type: textblock
3766 #: ../clone/virt-sysprep.pod:488
3767 msgid ""
3768 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3769 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-"
3770 "img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../df/virt-df.pod:5
3775 msgid "virt-df - Display free space on virtual filesystems"
3776 msgstr ""
3777
3778 #. type: verbatim
3779 #: ../df/virt-df.pod:9
3780 #, no-wrap
3781 msgid ""
3782 " virt-df [--options]\n"
3783 "\n"
3784 msgstr ""
3785
3786 #. type: verbatim
3787 #: ../df/virt-df.pod:11
3788 #, no-wrap
3789 msgid ""
3790 " virt-df [--options] -d domname\n"
3791 "\n"
3792 msgstr ""
3793
3794 #. type: verbatim
3795 #: ../df/virt-df.pod:13
3796 #, no-wrap
3797 msgid ""
3798 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3799 "\n"
3800 msgstr ""
3801
3802 #. type: verbatim
3803 #: ../df/virt-df.pod:17
3804 #, no-wrap
3805 msgid ""
3806 " virt-df [--options] domname\n"
3807 "\n"
3808 msgstr ""
3809
3810 #. type: verbatim
3811 #: ../df/virt-df.pod:19
3812 #, no-wrap
3813 msgid ""
3814 " virt-df [--options] disk.img [disk.img ...]\n"
3815 "\n"
3816 msgstr ""
3817
3818 #. type: textblock
3819 #: ../df/virt-df.pod:23
3820 msgid ""
3821 "C<virt-df> is a command line tool to display free space on virtual machine "
3822 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3823 "allocated to a virtual machine, but can look inside disk images to see how "
3824 "much space is really being used."
3825 msgstr ""
3826
3827 #. type: textblock
3828 #: ../df/virt-df.pod:28
3829 msgid ""
3830 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt"
3831 " to get a list of all active and inactive guests, and performs a C<df>-type "
3832 "operation on each one in turn, printing out the results."
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../df/virt-df.pod:32
3837 msgid ""
3838 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3839 "C<df>-type operation on either the single named libvirt domain, or on the "
3840 "disk image(s) listed on the command line (which must all belong to a single "
3841 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3842 "single guest>.  If you want to run on multiple guests, then you have to "
3843 "invoke C<virt-df> multiple times."
3844 msgstr ""
3845
3846 #. type: textblock
3847 #: ../df/virt-df.pod:39
3848 msgid ""
3849 "Use the I<--csv> option to get a format which can be easily parsed by other "
3850 "programs.  Other options are similar to the standard L<df(1)> command."
3851 msgstr ""
3852
3853 #. type: textblock
3854 #: ../df/virt-df.pod:45
3855 msgid ""
3856 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3857 "output human-readable:"
3858 msgstr ""
3859
3860 #. type: verbatim
3861 #: ../df/virt-df.pod:48
3862 #, no-wrap
3863 msgid ""
3864 " # virt-df -d F14x64 -h\n"
3865 " Filesystem                       Size     Used  Available  Use%\n"
3866 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3867 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3868 "\n"
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:53
3873 msgid "Show disk usage for a disk image file called C<test.img>:"
3874 msgstr ""
3875
3876 #. type: verbatim
3877 #: ../df/virt-df.pod:55
3878 #, no-wrap
3879 msgid ""
3880 " $ virt-df -a test1.img\n"
3881 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3882 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3883 "\n"
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../df/virt-df.pod:112
3888 #, no-wrap
3889 msgid ""
3890 " virt-df --format=raw -a disk.img\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../df/virt-df.pod:116
3896 #, no-wrap
3897 msgid ""
3898 " virt-df --format=raw -a disk.img --format -a another.img\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../df/virt-df.pod:129
3904 msgid "Print sizes in human-readable format."
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../df/virt-df.pod:131
3909 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3910 msgstr ""
3911
3912 #. type: =item
3913 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3914 msgid "B<-i>"
3915 msgstr ""
3916
3917 #. type: =item
3918 #: ../df/virt-df.pod:135
3919 msgid "B<--inodes>"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../df/virt-df.pod:137
3924 msgid "Print inodes instead of blocks."
3925 msgstr ""
3926
3927 #. type: =item
3928 #: ../df/virt-df.pod:139
3929 msgid "B<--one-per-guest>"
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../df/virt-df.pod:141
3934 msgid ""
3935 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3936 "disks from several guests to a single libguestfs appliance."
3937 msgstr ""
3938
3939 #. type: textblock
3940 #: ../df/virt-df.pod:144
3941 msgid "You might use this option in the following circumstances:"
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../df/virt-df.pod:150
3946 msgid ""
3947 "If you think an untrusted guest might actively try to exploit the libguestfs"
3948 " appliance kernel, then this prevents one guest from interfering with the "
3949 "stats printed for another guest."
3950 msgstr ""
3951
3952 #. type: textblock
3953 #: ../df/virt-df.pod:156
3954 msgid ""
3955 "If the kernel has a bug which stops it from accessing a filesystem in one "
3956 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3957 "and report stats for further guests."
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../df/virt-df.pod:165
3962 msgid ""
3963 "Print UUIDs instead of names.  This is useful for following a guest even "
3964 "when the guest is migrated or renamed, or when two guests happen to have the"
3965 " same name."
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../df/virt-df.pod:169
3970 msgid ""
3971 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk"
3972 " images, we still print the disk image name even when this option is "
3973 "specified."
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../df/virt-df.pod:229
3978 msgid ""
3979 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3980 "L<http://libguestfs.org/>."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:5
3985 msgid "virt-edit - Edit a file in a virtual machine"
3986 msgstr ""
3987
3988 #. type: verbatim
3989 #: ../edit/virt-edit.pod:9
3990 #, no-wrap
3991 msgid ""
3992 " virt-edit [--options] -d domname file [file ...]\n"
3993 "\n"
3994 msgstr ""
3995
3996 #. type: verbatim
3997 #: ../edit/virt-edit.pod:11
3998 #, no-wrap
3999 msgid ""
4000 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4001 "\n"
4002 msgstr ""
4003
4004 #. type: verbatim
4005 #: ../edit/virt-edit.pod:13
4006 #, no-wrap
4007 msgid ""
4008 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4009 "\n"
4010 msgstr ""
4011
4012 #. type: verbatim
4013 #: ../edit/virt-edit.pod:17
4014 #, no-wrap
4015 msgid ""
4016 " virt-edit domname file\n"
4017 "\n"
4018 msgstr ""
4019
4020 #. type: verbatim
4021 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4022 #, no-wrap
4023 msgid ""
4024 " virt-edit disk.img [disk.img ...] file\n"
4025 "\n"
4026 msgstr ""
4027
4028 #. type: =head1
4029 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4030 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4031 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4032 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4033 msgid "WARNING"
4034 msgstr ""
4035
4036 #. type: textblock
4037 #: ../edit/virt-edit.pod:23
4038 msgid ""
4039 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4040 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4041 "doing this, but doesn't catch all cases."
4042 msgstr ""
4043
4044 #. type: textblock
4045 #: ../edit/virt-edit.pod:29
4046 msgid ""
4047 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4048 "exists in the named virtual machine (or disk image)."
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../edit/virt-edit.pod:32
4053 msgid ""
4054 "Multiple filenames can be given, in which case they are each edited in turn."
4055 "  Each filename must be a full path, starting at the root directory "
4056 "(starting with '/')."
4057 msgstr ""
4058
4059 #. type: textblock
4060 #: ../edit/virt-edit.pod:36
4061 msgid "If you want to just view a file, use L<virt-cat(1)>."
4062 msgstr ""
4063
4064 #. type: textblock
4065 #: ../edit/virt-edit.pod:38
4066 msgid ""
4067 "For more complex cases you should look at the L<guestfish(1)> tool (see "
4068 "L</USING GUESTFISH> below)."
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../edit/virt-edit.pod:41
4073 msgid ""
4074 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4075 "that and much more."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../edit/virt-edit.pod:46
4080 msgid "Edit the named files interactively:"
4081 msgstr ""
4082
4083 #. type: verbatim
4084 #: ../edit/virt-edit.pod:48
4085 #, no-wrap
4086 msgid ""
4087 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4088 "\n"
4089 msgstr ""
4090
4091 #. type: verbatim
4092 #: ../edit/virt-edit.pod:50
4093 #, no-wrap
4094 msgid ""
4095 " virt-edit -d mydomain /etc/passwd\n"
4096 "\n"
4097 msgstr ""
4098
4099 #. type: textblock
4100 #: ../edit/virt-edit.pod:52
4101 msgid "For Windows guests, some Windows paths are understood:"
4102 msgstr ""
4103
4104 #. type: verbatim
4105 #: ../edit/virt-edit.pod:54
4106 #, no-wrap
4107 msgid ""
4108 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4109 "\n"
4110 msgstr ""
4111
4112 #. type: textblock
4113 #: ../edit/virt-edit.pod:56
4114 msgid ""
4115 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4116 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4117 msgstr ""
4118
4119 #. type: verbatim
4120 #: ../edit/virt-edit.pod:60
4121 #, no-wrap
4122 msgid ""
4123 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4124 "\n"
4125 msgstr ""
4126
4127 #. type: =item
4128 #: ../edit/virt-edit.pod:81
4129 msgid "B<-b> extension"
4130 msgstr ""
4131
4132 #. type: =item
4133 #: ../edit/virt-edit.pod:83
4134 msgid "B<--backup> extension"
4135 msgstr ""
4136
4137 #. type: textblock
4138 #: ../edit/virt-edit.pod:85
4139 msgid ""
4140 "Create a backup of the original file I<in the guest disk image>.  The backup"
4141 " has the original filename with C<extension> added."
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../edit/virt-edit.pod:88
4146 msgid ""
4147 "Usually the first character of C<extension> would be a dot C<.> so you would"
4148 " write:"
4149 msgstr ""
4150
4151 #. type: verbatim
4152 #: ../edit/virt-edit.pod:91
4153 #, no-wrap
4154 msgid ""
4155 " virt-edit -b .orig [etc]\n"
4156 "\n"
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../edit/virt-edit.pod:93
4161 msgid "By default, no backup file is made."
4162 msgstr ""
4163
4164 #. type: =item
4165 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4166 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4167 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4168 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4169 msgid "B<-c URI>"
4170 msgstr ""
4171
4172 #. type: =item
4173 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4174 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4175 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4176 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4177 msgid "B<--connect URI>"
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4182 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4183 #: ../tools/virt-win-reg.pl:135
4184 msgid ""
4185 "If you specify guest block devices directly, then libvirt is not used at "
4186 "all."
4187 msgstr ""
4188
4189 #. type: textblock
4190 #: ../edit/virt-edit.pod:114
4191 msgid ""
4192 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4193 "off so you cannot see what you are typing.  If you are not worried about "
4194 "Tempest attacks and there is no one else in the room you can specify this "
4195 "flag to see what you are typing."
4196 msgstr ""
4197
4198 #. type: =item
4199 #: ../edit/virt-edit.pod:119
4200 msgid "B<-e> EXPR"
4201 msgstr ""
4202
4203 #. type: =item
4204 #: ../edit/virt-edit.pod:121
4205 msgid "B<--expr> EXPR"
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../edit/virt-edit.pod:123
4210 msgid ""
4211 "Instead of launching the external editor, non-interactively apply the Perl "
4212 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4213 "EDITING> below."
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../edit/virt-edit.pod:127
4218 msgid ""
4219 "Be careful to properly quote the expression to prevent it from being altered"
4220 " by the shell."
4221 msgstr ""
4222
4223 #. type: textblock
4224 #: ../edit/virt-edit.pod:130
4225 msgid "Note that this option is only available when Perl 5 is installed."
4226 msgstr ""
4227
4228 #. type: =item
4229 #: ../edit/virt-edit.pod:132
4230 msgid "B<--format> raw|qcow2|..."
4231 msgstr ""
4232
4233 #. type: verbatim
4234 #: ../edit/virt-edit.pod:143
4235 #, no-wrap
4236 msgid ""
4237 " virt-edit --format=raw -a disk.img file\n"
4238 "\n"
4239 msgstr ""
4240
4241 #. type: verbatim
4242 #: ../edit/virt-edit.pod:147
4243 #, no-wrap
4244 msgid ""
4245 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4246 "\n"
4247 msgstr ""
4248
4249 #. type: textblock
4250 #: ../edit/virt-edit.pod:181
4251 msgid "Previous versions of virt-edit allowed you to write either:"
4252 msgstr ""
4253
4254 #. type: verbatim
4255 #: ../edit/virt-edit.pod:187
4256 #, no-wrap
4257 msgid ""
4258 " virt-edit guestname file\n"
4259 "\n"
4260 msgstr ""
4261
4262 #. type: =head1
4263 #: ../edit/virt-edit.pod:195
4264 msgid "NON-INTERACTIVE EDITING"
4265 msgstr ""
4266
4267 #. type: textblock
4268 #: ../edit/virt-edit.pod:197
4269 msgid ""
4270 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4271 "administrator can interactively edit the file."
4272 msgstr ""
4273
4274 #. type: textblock
4275 #: ../edit/virt-edit.pod:200
4276 msgid ""
4277 "There are two ways also to use C<virt-edit> from scripts in order to make "
4278 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4279 "like this, it's less error-prone to write scripts directly using the "
4280 "libguestfs API and Augeas for configuration file editing.)"
4281 msgstr ""
4282
4283 #. type: textblock
4284 #: ../edit/virt-edit.pod:206
4285 msgid ""
4286 "The first method is to temporarily set C<$EDITOR> to any script or program "
4287 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4288 "update C<tmpfile> in place however it likes."
4289 msgstr ""
4290
4291 #. type: textblock
4292 #: ../edit/virt-edit.pod:210
4293 msgid ""
4294 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4295 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4296 "instances of C<foo> with C<bar> in a file:"
4297 msgstr ""
4298
4299 #. type: verbatim
4300 #: ../edit/virt-edit.pod:214
4301 #, no-wrap
4302 msgid ""
4303 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4304 "\n"
4305 msgstr ""
4306
4307 #. type: textblock
4308 #: ../edit/virt-edit.pod:216
4309 msgid ""
4310 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4311 "For example to delete root's password you could do:"
4312 msgstr ""
4313
4314 #. type: verbatim
4315 #: ../edit/virt-edit.pod:219
4316 #, no-wrap
4317 msgid ""
4318 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4319 "\n"
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../edit/virt-edit.pod:221
4324 msgid ""
4325 "What really happens is that the snippet is evaluated as a Perl expression "
4326 "for each line of the file.  The line, including the final C<\\n>, is passed "
4327 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4328 msgstr ""
4329
4330 #. type: textblock
4331 #: ../edit/virt-edit.pod:226
4332 msgid ""
4333 "To delete a line, set C<$_> to the empty string.  For example, to delete the"
4334 " C<apache> user account from the password file you can do:"
4335 msgstr ""
4336
4337 #. type: verbatim
4338 #: ../edit/virt-edit.pod:229
4339 #, no-wrap
4340 msgid ""
4341 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4342 "\n"
4343 msgstr ""
4344
4345 #. type: textblock
4346 #: ../edit/virt-edit.pod:231
4347 msgid ""
4348 "To insert a line, prepend or append it to C<$_>.  However appending lines to"
4349 " the end of the file is rather difficult this way since there is no concept "
4350 "of \"last line of the file\" - your expression just doesn't get called "
4351 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4352 "want to do this."
4353 msgstr ""
4354
4355 #. type: textblock
4356 #: ../edit/virt-edit.pod:237
4357 msgid ""
4358 "The variable C<$lineno> contains the current line number.  As is "
4359 "traditional, the first line in the file is number C<1>."
4360 msgstr ""
4361
4362 #. type: textblock
4363 #: ../edit/virt-edit.pod:240
4364 msgid ""
4365 "The return value from the expression is ignored, but the expression may call"
4366 " C<die> in order to abort the whole program, leaving the original file "
4367 "untouched."
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../edit/virt-edit.pod:244
4372 msgid ""
4373 "Remember when matching the end of a line that C<$_> may contain the final "
4374 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4375 "newline then neither of these.  Thus to match or substitute some text at the"
4376 " end of a line, use this regular expression:"
4377 msgstr ""
4378
4379 #. type: verbatim
4380 #: ../edit/virt-edit.pod:249
4381 #, no-wrap
4382 msgid ""
4383 " /some text(\\r?\\n)?$/\n"
4384 "\n"
4385 msgstr ""
4386
4387 #. type: textblock
4388 #: ../edit/virt-edit.pod:251
4389 msgid ""
4390 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4391 "C<$_> itself (since that would remove all newlines from the file):"
4392 msgstr ""
4393
4394 #. type: verbatim
4395 #: ../edit/virt-edit.pod:255
4396 #, no-wrap
4397 msgid ""
4398 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4399 "\n"
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../edit/virt-edit.pod:259
4404 msgid ""
4405 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4406 "paths (eg. C<E:\\foo\\bar.txt>)."
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../edit/virt-edit.pod:278
4411 msgid ""
4412 "The path is resolved case insensitively to locate the file that should be "
4413 "edited."
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../edit/virt-edit.pod:299
4418 msgid ""
4419 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4420 "C<virt-edit> doesn't work."
4421 msgstr ""
4422
4423 #. type: textblock
4424 #: ../edit/virt-edit.pod:302
4425 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4426 msgstr ""
4427
4428 #. type: verbatim
4429 #: ../edit/virt-edit.pod:304
4430 #, no-wrap
4431 msgid ""
4432 " guestfish --rw -i -d domname edit /file\n"
4433 "\n"
4434 msgstr ""
4435
4436 #. type: textblock
4437 #: ../edit/virt-edit.pod:306
4438 msgid ""
4439 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4440 "path to the file."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../edit/virt-edit.pod:309
4445 msgid ""
4446 "The command above uses libguestfs's guest inspection feature and so does not"
4447 " work on guests that libguestfs cannot inspect, or on things like arbitrary "
4448 "disk images that don't contain guests.  To edit a file on a disk image "
4449 "directly, use:"
4450 msgstr ""
4451
4452 #. type: verbatim
4453 #: ../edit/virt-edit.pod:314
4454 #, no-wrap
4455 msgid ""
4456 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4457 "\n"
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../edit/virt-edit.pod:316
4462 msgid ""
4463 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4464 "the disk image to edit, and C</file> is the full path to the file."
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../edit/virt-edit.pod:320
4469 msgid ""
4470 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4471 "C<write> or C<upload> instead:"
4472 msgstr ""
4473
4474 #. type: verbatim
4475 #: ../edit/virt-edit.pod:323
4476 #, no-wrap
4477 msgid ""
4478 " guestfish --rw -i -d domname touch /newfile\n"
4479 "\n"
4480 msgstr ""
4481
4482 #. type: verbatim
4483 #: ../edit/virt-edit.pod:325
4484 #, no-wrap
4485 msgid ""
4486 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4487 "\n"
4488 msgstr ""
4489
4490 #. type: verbatim
4491 #: ../edit/virt-edit.pod:327
4492 #, no-wrap
4493 msgid ""
4494 " guestfish --rw -i -d domname upload localfile /newfile\n"
4495 "\n"
4496 msgstr ""
4497
4498 #. type: =head1
4499 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4500 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4501 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4502 msgid "ENVIRONMENT VARIABLES"
4503 msgstr ""
4504
4505 #. type: =item
4506 #: ../edit/virt-edit.pod:333
4507 msgid "C<EDITOR>"
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../edit/virt-edit.pod:335
4512 msgid ""
4513 "If set, this string is used as the editor.  It may contain arguments, eg. "
4514 "C<\"emacs -nw\">"
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../edit/virt-edit.pod:338
4519 msgid "If not set, C<vi> is used."
4520 msgstr ""
4521
4522 #. type: textblock
4523 #: ../edit/virt-edit.pod:356
4524 msgid ""
4525 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4526 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4527 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4528 msgstr ""
4529
4530 #. type: textblock
4531 #: ../erlang/examples/guestfs-erlang.pod:5
4532 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4533 msgstr ""
4534
4535 #. type: verbatim
4536 #: ../erlang/examples/guestfs-erlang.pod:9
4537 #, no-wrap
4538 msgid ""
4539 " {ok, G} = guestfs:create(),\n"
4540 " ok = guestfs:add_drive_opts(G, Disk,\n"
4541 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4542 " ok = guestfs:launch(G),\n"
4543 " [Device] = guestfs:list_devices(G),\n"
4544 " ok = guestfs:close(G).\n"
4545 "\n"
4546 msgstr ""
4547
4548 #. type: textblock
4549 #: ../erlang/examples/guestfs-erlang.pod:18
4550 msgid ""
4551 "This manual page documents how to call libguestfs from the Erlang "
4552 "programming language.  This page just documents the differences from the C "
4553 "API and gives some examples.  If you are not familiar with using libguestfs,"
4554 " you also need to read L<guestfs(3)>."
4555 msgstr ""
4556
4557 #. type: =head2
4558 #: ../erlang/examples/guestfs-erlang.pod:23
4559 msgid "OPENING AND CLOSING THE HANDLE"
4560 msgstr ""
4561
4562 #. type: textblock
4563 #: ../erlang/examples/guestfs-erlang.pod:25
4564 msgid ""
4565 "The Erlang bindings are implemented using an external program called C<erl-"
4566 "guestfs>.  This program must be on the current PATH, or else you should "
4567 "specify the full path to the program:"
4568 msgstr ""
4569
4570 #. type: verbatim
4571 #: ../erlang/examples/guestfs-erlang.pod:29
4572 #, no-wrap
4573 msgid ""
4574 " {ok, G} = guestfs:create().\n"
4575 "\n"
4576 msgstr ""
4577
4578 #. type: verbatim
4579 #: ../erlang/examples/guestfs-erlang.pod:31
4580 #, no-wrap
4581 msgid ""
4582 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4583 "\n"
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../erlang/examples/guestfs-erlang.pod:33
4588 msgid ""
4589 "C<G> is the libguestfs handle which you should pass to other functions."
4590 msgstr ""
4591
4592 #. type: textblock
4593 #: ../erlang/examples/guestfs-erlang.pod:36
4594 msgid "To close the handle:"
4595 msgstr ""
4596
4597 #. type: verbatim
4598 #: ../erlang/examples/guestfs-erlang.pod:38
4599 #, no-wrap
4600 msgid ""
4601 " ok = guestfs:close(G).\n"
4602 "\n"
4603 msgstr ""
4604
4605 #. type: =head2
4606 #: ../erlang/examples/guestfs-erlang.pod:40
4607 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../erlang/examples/guestfs-erlang.pod:42
4612 msgid ""
4613 "For functions that take optional arguments, the first arguments are the non-"
4614 "optional ones.  The last argument is a list of tuples supplying the "
4615 "remaining optional arguments."
4616 msgstr ""
4617
4618 #. type: verbatim
4619 #: ../erlang/examples/guestfs-erlang.pod:46
4620 #, no-wrap
4621 msgid ""
4622 " ok = guestfs:add_drive_opts(G, Disk,\n"
4623 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4624 "\n"
4625 msgstr ""
4626
4627 #. type: textblock
4628 #: ../erlang/examples/guestfs-erlang.pod:49
4629 msgid "If the last argument would be an empty list, you can also omit it:"
4630 msgstr ""
4631
4632 #. type: verbatim
4633 #: ../erlang/examples/guestfs-erlang.pod:51
4634 #, no-wrap
4635 msgid ""
4636 " ok = guestfs:add_drive_opts(G, Disk).\n"
4637 "\n"
4638 msgstr ""
4639
4640 #. type: =head2
4641 #: ../erlang/examples/guestfs-erlang.pod:53
4642 msgid "RETURN VALUES AND ERRORS"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../erlang/examples/guestfs-erlang.pod:55
4647 msgid ""
4648 "On success, most functions return a C<Result> term (which could be a list, "
4649 "string, tuple etc.).  If there is nothing for the function to return, then "
4650 "the atom C<ok> is returned."
4651 msgstr ""
4652
4653 #. type: textblock
4654 #: ../erlang/examples/guestfs-erlang.pod:59
4655 msgid "On error, you would see one of the following tuples:"
4656 msgstr ""
4657
4658 #. type: =item
4659 #: ../erlang/examples/guestfs-erlang.pod:63
4660 msgid "C<{error, Msg, Errno}>"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../erlang/examples/guestfs-erlang.pod:65
4665 msgid "This indicates an ordinary error from the function."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../erlang/examples/guestfs-erlang.pod:67
4670 msgid ""
4671 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4672 "(integer)."
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../erlang/examples/guestfs-erlang.pod:70
4677 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4678 msgstr ""
4679
4680 #. type: =item
4681 #: ../erlang/examples/guestfs-erlang.pod:72
4682 msgid "C<{unknown, Function}>"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../erlang/examples/guestfs-erlang.pod:74
4687 msgid ""
4688 "This indicates that the function you called is not known.  Generally this "
4689 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4690 "which you should not do."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../erlang/examples/guestfs-erlang.pod:78
4695 msgid "C<Function> is the name of the unknown function."
4696 msgstr ""
4697
4698 #. type: =item
4699 #: ../erlang/examples/guestfs-erlang.pod:80
4700 msgid "C<{unknownarg, Arg}>"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../erlang/examples/guestfs-erlang.pod:82
4705 msgid ""
4706 "This indicates that you called a function with optional arguments, with an "
4707 "unknown argument name."
4708 msgstr ""
4709
4710 #. type: textblock
4711 #: ../erlang/examples/guestfs-erlang.pod:85
4712 msgid "C<Arg> is the name of the unknown argument."
4713 msgstr ""
4714
4715 #. type: =head1
4716 #: ../erlang/examples/guestfs-erlang.pod:89
4717 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4718 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4719 #: ../python/examples/guestfs-python.pod:34
4720 #: ../ruby/examples/guestfs-ruby.pod:28
4721 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4722 msgstr ""
4723
4724 #. type: textblock
4725 #: ../erlang/examples/guestfs-erlang.pod:91
4726 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4727 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4728 #: ../python/examples/guestfs-python.pod:36
4729 #: ../ruby/examples/guestfs-ruby.pod:30
4730 msgid "@EXAMPLE1@"
4731 msgstr ""
4732
4733 #. type: =head1
4734 #: ../erlang/examples/guestfs-erlang.pod:93
4735 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4736 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4737 #: ../python/examples/guestfs-python.pod:38
4738 #: ../ruby/examples/guestfs-ruby.pod:32
4739 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../erlang/examples/guestfs-erlang.pod:95
4744 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4745 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4746 #: ../python/examples/guestfs-python.pod:40
4747 #: ../ruby/examples/guestfs-ruby.pod:34
4748 msgid "@EXAMPLE2@"
4749 msgstr ""
4750
4751 #. type: textblock
4752 #: ../erlang/examples/guestfs-erlang.pod:99
4753 msgid ""
4754 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-"
4755 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4756 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4757 msgstr ""
4758
4759 #. type: =head1
4760 #: ../erlang/examples/guestfs-erlang.pod:110
4761 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4762 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4763 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4764 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4765 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4766 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4767 #: ../python/examples/guestfs-python.pod:54
4768 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4769 #: ../test-tool/libguestfs-test-tool.pod:106
4770 msgid "AUTHORS"
4771 msgstr ""
4772
4773 #. type: textblock
4774 #: ../erlang/examples/guestfs-erlang.pod:112
4775 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4776 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4777 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4778 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4779 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4780 #: ../perl/examples/guestfs-perl.pod:54
4781 #: ../python/examples/guestfs-python.pod:56
4782 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4783 #: ../test-tool/libguestfs-test-tool.pod:108
4784 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../erlang/examples/guestfs-erlang.pod:116
4789 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4790 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4791 msgstr ""
4792
4793 #. type: textblock
4794 #: ../erlang/examples/guestfs-erlang.pod:118
4795 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4796 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4797 #: ../perl/examples/guestfs-perl.pod:60
4798 #: ../python/examples/guestfs-python.pod:62
4799 #: ../ruby/examples/guestfs-ruby.pod:56
4800 msgid ""
4801 "The examples in this manual page may be freely copied, modified and "
4802 "distributed without any restrictions."
4803 msgstr ""
4804
4805 #. type: textblock
4806 #: ../erlang/examples/guestfs-erlang.pod:121
4807 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4808 #: ../java/examples/guestfs-java.pod:69
4809 #: ../ocaml/examples/guestfs-ocaml.pod:102
4810 #: ../perl/examples/guestfs-perl.pod:63
4811 #: ../python/examples/guestfs-python.pod:65
4812 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4813 msgid ""
4814 "This library is free software; you can redistribute it and/or modify it "
4815 "under the terms of the GNU Lesser General Public License as published by the"
4816 " Free Software Foundation; either version 2 of the License, or (at your "
4817 "option) any later version."
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../erlang/examples/guestfs-erlang.pod:126
4822 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4823 #: ../java/examples/guestfs-java.pod:74
4824 #: ../ocaml/examples/guestfs-ocaml.pod:107
4825 #: ../perl/examples/guestfs-perl.pod:68
4826 #: ../python/examples/guestfs-python.pod:70
4827 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4828 msgid ""
4829 "This library is distributed in the hope that it will be useful, but WITHOUT "
4830 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4831 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License"
4832 " for more details."
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../erlang/examples/guestfs-erlang.pod:131
4837 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4838 #: ../java/examples/guestfs-java.pod:79
4839 #: ../ocaml/examples/guestfs-ocaml.pod:112
4840 #: ../perl/examples/guestfs-perl.pod:73
4841 #: ../python/examples/guestfs-python.pod:75
4842 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4843 msgid ""
4844 "You should have received a copy of the GNU Lesser General Public License "
4845 "along with this library; if not, write to the Free Software Foundation, "
4846 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4847 msgstr ""
4848
4849 #. type: textblock
4850 #: ../examples/guestfs-examples.pod:5
4851 msgid "guestfs-examples - Examples of using libguestfs from C"
4852 msgstr ""
4853
4854 #. type: verbatim
4855 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4856 #, no-wrap
4857 msgid ""
4858 " #include <guestfs.h>\n"
4859 " \n"
4860 msgstr "#include <guestfs.h>\n"
4861
4862 #. type: verbatim
4863 #: ../examples/guestfs-examples.pod:11
4864 #, no-wrap
4865 msgid ""
4866 " guestfs_h *g = guestfs_create ();\n"
4867 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4868 " guestfs_launch (g);\n"
4869 "\n"
4870 msgstr ""
4871
4872 #. type: verbatim
4873 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4874 #, no-wrap
4875 msgid ""
4876 " cc prog.c -o prog -lguestfs\n"
4877 "or:\n"
4878 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4879 "\n"
4880 msgstr ""
4881 " cc prog.c -o prog -lguestfs\n"
4882 "or:\n"
4883 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4884 "\n"
4885
4886 #. type: textblock
4887 #: ../examples/guestfs-examples.pod:21
4888 msgid ""
4889 "This manual page contains examples of calling libguestfs from the C "
4890 "programming language.  If you are not familiar with using libguestfs, you "
4891 "also need to read L<guestfs(3)>."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../examples/guestfs-examples.pod:35
4896 msgid ""
4897 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
4898 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4899 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4900 msgstr ""
4901
4902 #. type: textblock
4903 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4904 #: ../python/examples/guestfs-python.pod:60
4905 #: ../ruby/examples/guestfs-ruby.pod:54
4906 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4907 msgstr ""
4908
4909 #. type: =end
4910 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4911 msgid "comment"
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../examples/guestfs-recipes.pod:5
4916 msgid ""
4917 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4918 "here.  The only way which works for both sorts of output is to just write "
4919 "the URL directly.  Do NOT use L<...> for URLs."
4920 msgstr ""
4921
4922 #. type: textblock
4923 #: ../examples/guestfs-recipes.pod:9
4924 msgid ""
4925 "We break with tradition here and don't use ALL CAPS for the section "
4926 "headings, as this makes them much easier to read."
4927 msgstr ""
4928
4929 #. type: textblock
4930 #: ../examples/guestfs-recipes.pod:16
4931 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4932 msgstr ""
4933
4934 #. type: textblock
4935 #: ../examples/guestfs-recipes.pod:20
4936 msgid ""
4937 "This page contains recipes for and links to things you can do using "
4938 "libguestfs, L<guestfish(1)> and the virt tools."
4939 msgstr ""
4940
4941 #. type: =head1
4942 #: ../examples/guestfs-recipes.pod:23
4943 msgid "Audit a virtual machine for setuid files"
4944 msgstr ""
4945
4946 #. type: textblock
4947 #: ../examples/guestfs-recipes.pod:25
4948 msgid ""
4949 "The link below contains a small program which can be used to audit a Linux "
4950 "virtual machine to see what setuid and setgid files it contains."
4951 msgstr ""
4952
4953 #. type: textblock
4954 #: ../examples/guestfs-recipes.pod:28
4955 msgid ""
4956 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4957 "files/#content"
4958 msgstr ""
4959
4960 #. type: =head1
4961 #: ../examples/guestfs-recipes.pod:30
4962 msgid "Change the background image in a Windows XP VM"
4963 msgstr ""
4964
4965 #. type: textblock
4966 #: ../examples/guestfs-recipes.pod:32
4967 msgid ""
4968 "The links below explain how to use L<guestfish(1)> to change the background "
4969 "image for a user of a Windows XP VM.  Unfortunately the technique appears to"
4970 " be substantially different for each version of Windows."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../examples/guestfs-recipes.pod:37
4975 msgid ""
4976 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4977 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4978 msgstr ""
4979
4980 #. type: =head1
4981 #: ../examples/guestfs-recipes.pod:40
4982 msgid "Cloning a virtual machine (Linux)"
4983 msgstr ""
4984
4985 #. type: textblock
4986 #: ../examples/guestfs-recipes.pod:42
4987 msgid ""
4988 "The guestfish technique described in the link below works well for most "
4989 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4990 "slightly."
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../examples/guestfs-recipes.pod:46
4995 msgid ""
4996 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4997 "vm/#content"
4998 msgstr ""
4999
5000 #. type: textblock
5001 #: ../examples/guestfs-recipes.pod:48
5002 msgid ""
5003 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5004 "discussion."
5005 msgstr ""
5006
5007 #. type: textblock
5008 #: ../examples/guestfs-recipes.pod:51
5009 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5010 msgstr ""
5011
5012 #. type: =head1
5013 #: ../examples/guestfs-recipes.pod:53
5014 msgid "Cloning a virtual machine (Windows)"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../examples/guestfs-recipes.pod:55
5019 msgid ""
5020 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5021 "straightforward.  Currently there is code in the Aeolus Oz project which "
5022 "does this (using libguestfs).  As part of our review of the virt-clone tool,"
5023 " we may add sysprepping ability."
5024 msgstr ""
5025
5026 #. type: textblock
5027 #: ../examples/guestfs-recipes.pod:60
5028 msgid ""
5029 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-"
5030 "tools-list/2011-May/msg00019.html"
5031 msgstr ""
5032
5033 #. type: =head1
5034 #: ../examples/guestfs-recipes.pod:63
5035 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5036 msgstr ""
5037
5038 #. type: textblock
5039 #: ../examples/guestfs-recipes.pod:65
5040 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5041 msgstr ""
5042
5043 #. type: verbatim
5044 #: ../examples/guestfs-recipes.pod:67
5045 #, no-wrap
5046 msgid ""
5047 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5048 "\n"
5049 msgstr ""
5050
5051 #. type: textblock
5052 #: ../examples/guestfs-recipes.pod:69
5053 msgid "To export just a subdirectory, eg. C</files>, do:"
5054 msgstr ""
5055
5056 #. type: verbatim
5057 #: ../examples/guestfs-recipes.pod:71
5058 #, no-wrap
5059 msgid ""
5060 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5061 "\n"
5062 msgstr ""
5063
5064 #. type: =head1
5065 #: ../examples/guestfs-recipes.pod:73
5066 msgid "Create empty disk images"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../examples/guestfs-recipes.pod:75
5071 msgid ""
5072 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5073 "The useful guide below explains the options available."
5074 msgstr ""
5075
5076 #. type: textblock
5077 #: ../examples/guestfs-recipes.pod:78
5078 msgid ""
5079 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-"
5080 "in-1-5-9/#content"
5081 msgstr ""
5082
5083 #. type: =head1
5084 #: ../examples/guestfs-recipes.pod:80
5085 msgid "Dump raw filesystem content from inside a disk image or VM"
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../examples/guestfs-recipes.pod:82
5090 msgid ""
5091 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5092 "filesystem content from any filesystem in a disk image or a VM (even one "
5093 "which is encrypted or buried inside an LV):"
5094 msgstr ""
5095
5096 #. type: verbatim
5097 #: ../examples/guestfs-recipes.pod:86
5098 #, no-wrap
5099 msgid ""
5100 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5101 "\n"
5102 msgstr ""
5103
5104 #. type: verbatim
5105 #: ../examples/guestfs-recipes.pod:88
5106 #, no-wrap
5107 msgid ""
5108 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5109 "\n"
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../examples/guestfs-recipes.pod:90
5114 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5115 msgstr ""
5116
5117 #. type: =head1
5118 #: ../examples/guestfs-recipes.pod:92
5119 msgid "Edit grub configuration in a VM"
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../examples/guestfs-recipes.pod:94
5124 msgid "You can use this to:"
5125 msgstr ""
5126
5127 #. type: textblock
5128 #: ../examples/guestfs-recipes.pod:100
5129 msgid "Fix a virtual machine that does not boot."
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../examples/guestfs-recipes.pod:104
5134 msgid "Change which kernel is used to boot the VM."
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../examples/guestfs-recipes.pod:108
5139 msgid "Change kernel command line options."
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../examples/guestfs-recipes.pod:112
5144 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5145 msgstr ""
5146
5147 #. type: verbatim
5148 #: ../examples/guestfs-recipes.pod:114
5149 #, no-wrap
5150 msgid ""
5151 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5152 "\n"
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../examples/guestfs-recipes.pod:116
5157 msgid ""
5158 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5159 "this:"
5160 msgstr ""
5161
5162 #. type: verbatim
5163 #: ../examples/guestfs-recipes.pod:119
5164 #, no-wrap
5165 msgid ""
5166 " virt-rescue -d BrokenGuest\n"
5167 "\n"
5168 msgstr ""
5169
5170 #. type: =head1
5171 #: ../examples/guestfs-recipes.pod:121
5172 msgid "Export any directory from a VM"
5173 msgstr ""
5174
5175 #. type: textblock
5176 #: ../examples/guestfs-recipes.pod:123
5177 msgid ""
5178 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5179 msgstr ""
5180
5181 #. type: verbatim
5182 #: ../examples/guestfs-recipes.pod:126
5183 #, no-wrap
5184 msgid ""
5185 " virt-copy-out -d Guest /home .\n"
5186 "\n"
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5191 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5192 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5193 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2750
5194 #: ../src/guestfs-actions.pod:3309 ../src/guestfs.pod:1685
5195 #: ../tools/virt-win-reg.pl:717
5196 msgid "Notes:"
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:134
5201 msgid ""
5202 "The final dot of the command is not a printing error.  It means we want to "
5203 "copy out to the current directory."
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:139
5208 msgid "This creates a directory called C<home> under the current directory."
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../examples/guestfs-recipes.pod:143
5213 msgid ""
5214 "If the guest is a Windows guest then you can use drive letters and "
5215 "backslashes, but you must prefix the path with C<win:> and quote it to "
5216 "protect it from the shell, like this:"
5217 msgstr ""
5218
5219 #. type: verbatim
5220 #: ../examples/guestfs-recipes.pod:147
5221 #, no-wrap
5222 msgid ""
5223 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5224 "\n"
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../examples/guestfs-recipes.pod:149
5229 msgid "To get the output as a compressed tarball, do:"
5230 msgstr ""
5231
5232 #. type: verbatim
5233 #: ../examples/guestfs-recipes.pod:151
5234 #, no-wrap
5235 msgid ""
5236 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5237 "\n"
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../examples/guestfs-recipes.pod:153
5242 msgid ""
5243 "Although it sounds tempting, this is usually not a reliable way to get a "
5244 "backup from a running guest.  See the entry in the FAQ: "
5245 "http://libguestfs.org/FAQ.html#backup"
5246 msgstr ""
5247
5248 #. type: =head1
5249 #: ../examples/guestfs-recipes.pod:157
5250 msgid "Find out which user is using the most space"
5251 msgstr ""
5252
5253 #. type: textblock
5254 #: ../examples/guestfs-recipes.pod:159
5255 msgid ""
5256 "This simple script examines a Linux guest to find out which user is using "
5257 "the most space in their home directory:"
5258 msgstr ""
5259
5260 #. type: verbatim
5261 #: ../examples/guestfs-recipes.pod:162
5262 #, no-wrap
5263 msgid ""
5264 " #!/bin/sh -\n"
5265 " \n"
5266 msgstr ""
5267
5268 #. type: verbatim
5269 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5270 #, no-wrap
5271 msgid ""
5272 " set -e\n"
5273 " \n"
5274 msgstr ""
5275
5276 #. type: verbatim
5277 #: ../examples/guestfs-recipes.pod:166
5278 #, no-wrap
5279 msgid ""
5280 " vm=\"$1\"\n"
5281 " dir=/home\n"
5282 " \n"
5283 msgstr ""
5284
5285 #. type: verbatim
5286 #: ../examples/guestfs-recipes.pod:169
5287 #, no-wrap
5288 msgid ""
5289 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5290 " \n"
5291 msgstr ""
5292
5293 #. type: verbatim
5294 #: ../examples/guestfs-recipes.pod:171
5295 #, no-wrap
5296 msgid ""
5297 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5298 "     echo -n \"$dir/$d\"\n"
5299 "     echo -ne '\\t'\n"
5300 "     guestfish --remote du \"$dir/$d\";\n"
5301 " done | sort -nr -k 2\n"
5302 " \n"
5303 msgstr ""
5304
5305 #. type: verbatim
5306 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5307 #, no-wrap
5308 msgid ""
5309 " guestfish --remote exit\n"
5310 "\n"
5311 msgstr ""
5312
5313 #. type: =head1
5314 #: ../examples/guestfs-recipes.pod:179
5315 msgid "Get DHCP address from a VM"
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../examples/guestfs-recipes.pod:181
5320 msgid ""
5321 "The link below explains the many different possible techniques for getting "
5322 "the last assigned DHCP address of a virtual machine."
5323 msgstr ""
5324
5325 #. type: textblock
5326 #: ../examples/guestfs-recipes.pod:184
5327 msgid ""
5328 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-"
5329 "from-a-virtual-machine-disk-image/#content"
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../examples/guestfs-recipes.pod:186
5334 msgid ""
5335 "In the libguestfs source examples directory you will find the latest version"
5336 " of the C<virt-dhcp-address.c> program."
5337 msgstr ""
5338
5339 #. type: =head1
5340 #: ../examples/guestfs-recipes.pod:189
5341 msgid "Get the operating system product name string"
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../examples/guestfs-recipes.pod:191
5346 msgid "Save the following script into a file called C<product-name.sh>:"
5347 msgstr ""
5348
5349 #. type: verbatim
5350 #: ../examples/guestfs-recipes.pod:193
5351 #, no-wrap
5352 msgid ""
5353 " #!/bin/sh -\n"
5354 " set -e\n"
5355 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5356 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5357 " guestfish --remote inspect-get-product-name \"$root\"\n"
5358 " guestfish --remote exit\n"
5359 "\n"
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../examples/guestfs-recipes.pod:200
5364 msgid "Make the script executable and run it on a named guest:"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:202
5369 #, no-wrap
5370 msgid ""
5371 " # product-name.sh RHEL60x64\n"
5372 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5373 "\n"
5374 msgstr ""
5375
5376 #. type: textblock
5377 #: ../examples/guestfs-recipes.pod:205
5378 msgid ""
5379 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5380 "C<xpath> command line tool or from your favourite programming language:"
5381 msgstr ""
5382
5383 #. type: verbatim
5384 #: ../examples/guestfs-recipes.pod:209
5385 #, no-wrap
5386 msgid ""
5387 " # virt-inspector RHEL60x64 > xml\n"
5388 " # xpath '//product_name' < xml\n"
5389 " Found 1 nodes:\n"
5390 " -- NODE --\n"
5391 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5392 "\n"
5393 msgstr ""
5394
5395 #. type: =head1
5396 #: ../examples/guestfs-recipes.pod:215
5397 msgid "Get the default boot kernel for a Linux VM"
5398 msgstr ""
5399
5400 #. type: textblock
5401 #: ../examples/guestfs-recipes.pod:217
5402 msgid ""
5403 "The link below contains a program to print the default boot kernel for a "
5404 "Linux VM."
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../examples/guestfs-recipes.pod:220
5409 msgid ""
5410 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-"
5411 "boot-kernel-for-a-vm/#content"
5412 msgstr ""
5413
5414 #. type: textblock
5415 #: ../examples/guestfs-recipes.pod:222
5416 msgid ""
5417 "It uses Augeas, and the technique is generally applicable for many different"
5418 " tasks, such as:"
5419 msgstr ""
5420
5421 #. type: textblock
5422 #: ../examples/guestfs-recipes.pod:229
5423 msgid "listing the user accounts in the guest"
5424 msgstr ""
5425
5426 #. type: textblock
5427 #: ../examples/guestfs-recipes.pod:233
5428 msgid "what repositories is it configured to use"
5429 msgstr ""
5430
5431 #. type: textblock
5432 #: ../examples/guestfs-recipes.pod:237
5433 msgid "what NTP servers does it connect to"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../examples/guestfs-recipes.pod:241
5438 msgid "what were the boot messages last time it booted"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../examples/guestfs-recipes.pod:245
5443 msgid "listing who was logged in recently"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../examples/guestfs-recipes.pod:249
5448 msgid "http://augeas.net/"
5449 msgstr ""
5450
5451 #. type: =head1
5452 #: ../examples/guestfs-recipes.pod:251
5453 msgid "Install RPMs in a guest"
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../examples/guestfs-recipes.pod:253
5458 msgid ""
5459 "The link below contains a method to install RPMs in a guest.  In fact the "
5460 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5461 "installs them next time the guest is booted.  You could use this technique "
5462 "to install vital security updates in an offline guest."
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../examples/guestfs-recipes.pod:259
5467 msgid ""
5468 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5469 msgstr ""
5470
5471 #. type: =head1
5472 #: ../examples/guestfs-recipes.pod:261
5473 msgid "List applications installed in a VM"
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../examples/guestfs-recipes.pod:263
5478 msgid "Save the following to a file C<list-apps.sh>:"
5479 msgstr ""
5480
5481 #. type: verbatim
5482 #: ../examples/guestfs-recipes.pod:265
5483 #, no-wrap
5484 msgid ""
5485 " #!/bin/sh -\n"
5486 " set -e\n"
5487 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5488 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5489 " guestfish --remote inspect-list-applications \"$root\"\n"
5490 " guestfish --remote exit\n"
5491 "\n"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../examples/guestfs-recipes.pod:272
5496 msgid ""
5497 "Make the file executable and then you can run it on any named virtual "
5498 "machine:"
5499 msgstr ""
5500
5501 #. type: verbatim
5502 #: ../examples/guestfs-recipes.pod:275
5503 #, no-wrap
5504 msgid ""
5505 " # list-apps.sh WinGuest\n"
5506 " [0] = {\n"
5507 "   app_name: Mozilla Firefox (3.6.12)\n"
5508 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5509 "   app_epoch: 0\n"
5510 "   app_version: 3.6.12 (en-GB)\n"
5511 "   app_release:\n"
5512 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5513 "   app_trans_path:\n"
5514 "   app_publisher: Mozilla\n"
5515 "   app_url: http://www.mozilla.com/en-GB/\n"
5516 "   app_source_package:\n"
5517 "   app_summary:\n"
5518 "   app_description: Mozilla Firefox\n"
5519 " }\n"
5520 " [1] = {\n"
5521 "   app_name: VLC media player\n"
5522 "   app_display_name: VLC media player 1.1.5\n"
5523 "   app_epoch: 0\n"
5524 "   app_version: 1.1.5\n"
5525 "   app_release:\n"
5526 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5527 "   app_trans_path:\n"
5528 "   app_publisher: VideoLAN\n"
5529 "   app_url: http://www.videolan.org/\n"
5530 "   app_source_package:\n"
5531 "   app_summary:\n"
5532 "   app_description:\n"
5533 " }\n"
5534 "\n"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../examples/guestfs-recipes.pod:305
5539 msgid ""
5540 "If you want to run the script on disk images (instead of libvirt virtual "
5541 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-"
5542 "inspector(1)>."
5543 msgstr ""
5544
5545 #. type: =head1
5546 #: ../examples/guestfs-recipes.pod:309
5547 msgid "List files and directories in a VM"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../examples/guestfs-recipes.pod:311
5552 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../examples/guestfs-recipes.pod:313
5557 #, no-wrap
5558 msgid ""
5559 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5560 "\n"
5561 msgstr ""
5562
5563 #. type: =head1
5564 #: ../examples/guestfs-recipes.pod:315
5565 msgid "List services in a Windows VM"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:317
5570 msgid ""
5571 "The link below contains a script that can be used to list out the services "
5572 "from a Windows VM, and whether those services run at boot time or are loaded"
5573 " on demand."
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../examples/guestfs-recipes.pod:321
5578 msgid ""
5579 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-"
5580 "guest/#content"
5581 msgstr ""
5582
5583 #. type: =head1
5584 #: ../examples/guestfs-recipes.pod:323
5585 msgid "Make a disk image sparse"
5586 msgstr ""
5587
5588 #. type: textblock
5589 #: ../examples/guestfs-recipes.pod:325
5590 msgid ""
5591 "The link below contains some guides for making a disk image sparse (or "
5592 "reintroducing sparseness)."
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../examples/guestfs-recipes.pod:328
5597 msgid ""
5598 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-"
5599 "sparse/#content"
5600 msgstr ""
5601
5602 #. type: =head1
5603 #: ../examples/guestfs-recipes.pod:330
5604 msgid "Monitor disk usage over time"
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../examples/guestfs-recipes.pod:332
5609 msgid ""
5610 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5611 "The link below contains a guide."
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../examples/guestfs-recipes.pod:335
5616 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:337
5621 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:339
5626 msgid ""
5627 "L<guestfish(1)> plus the tools described in the link below can be used to "
5628 "read out the Windows Event Log from any virtual machine running Windows "
5629 "Vista or a later version."
5630 msgstr ""
5631
5632 #. type: textblock
5633 #: ../examples/guestfs-recipes.pod:343
5634 msgid ""
5635 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5636 "guestfish/#content"
5637 msgstr ""
5638
5639 #. type: =head1
5640 #: ../examples/guestfs-recipes.pod:345
5641 msgid "Remove root password (Linux)"
5642 msgstr ""
5643
5644 #. type: textblock
5645 #: ../examples/guestfs-recipes.pod:347
5646 msgid ""
5647 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5648 "files.  One use is to remove the root password from a Linux guest:"
5649 msgstr ""
5650
5651 #. type: verbatim
5652 #: ../examples/guestfs-recipes.pod:350
5653 #, no-wrap
5654 msgid ""
5655 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5656 "\n"
5657 msgstr ""
5658
5659 #. type: =head1
5660 #: ../examples/guestfs-recipes.pod:352
5661 msgid "Remove Administrator password (Windows)"
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../examples/guestfs-recipes.pod:354
5666 msgid ""
5667 "The link below contains one technique for removing the Administrator "
5668 "password from a Windows VM, or to be more precise, it gives you a command "
5669 "prompt the next time you log in which you can use to bypass any security:"
5670 msgstr ""
5671
5672 #. type: textblock
5673 #: ../examples/guestfs-recipes.pod:359
5674 msgid ""
5675 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5676 "administrator-password-with-guestfish/"
5677 msgstr ""
5678
5679 #. type: =head1
5680 #: ../examples/guestfs-recipes.pod:361
5681 msgid "Unpack a live CD"
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../examples/guestfs-recipes.pod:363
5686 msgid ""
5687 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5688 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5689 "layers, as outlined in the guide below."
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../examples/guestfs-recipes.pod:367
5694 msgid ""
5695 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5696 "cd/#content"
5697 msgstr ""
5698
5699 #. type: =head1
5700 #: ../examples/guestfs-recipes.pod:369
5701 msgid "Uploading and downloading files"
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../examples/guestfs-recipes.pod:371
5706 msgid ""
5707 "The link below contains general tips on uploading (copying in)  and "
5708 "downloading (copying out) files from VMs."
5709 msgstr ""
5710
5711 #. type: textblock
5712 #: ../examples/guestfs-recipes.pod:374
5713 msgid ""
5714 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5715 msgstr ""
5716
5717 #. type: =head1
5718 #: ../examples/guestfs-recipes.pod:376
5719 msgid "Use libguestfs tools on VMware ESX guests"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-recipes.pod:378
5724 msgid ""
5725 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5726 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../examples/guestfs-recipes.pod:382
5731 msgid ""
5732 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5733 "guests/#content"
5734 msgstr ""
5735
5736 #. type: textblock
5737 #: ../examples/guestfs-recipes.pod:386
5738 msgid ""
5739 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-"
5740 "erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L"
5741 "<guestfs-python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5742 msgstr ""
5743
5744 #. type: textblock
5745 #: ../examples/guestfs-recipes.pod:403
5746 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5747 msgstr ""
5748
5749 #. type: =head2
5750 #: ../fish/guestfish-actions.pod:1
5751 msgid "add-cdrom"
5752 msgstr ""
5753
5754 #. type: verbatim
5755 #: ../fish/guestfish-actions.pod:3
5756 #, no-wrap
5757 msgid ""
5758 " add-cdrom filename\n"
5759 "\n"
5760 msgstr ""
5761
5762 #. type: textblock
5763 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5764 msgid "This function adds a virtual CD-ROM disk image to the guest."
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5769 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../fish/guestfish-actions.pod:15
5774 msgid ""
5775 "This call checks for the existence of C<filename>.  This stops you from "
5776 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5777 "and C<http:> URLs.  To specify those, use the general L</config> call "
5778 "instead."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../fish/guestfish-actions.pod:22
5783 msgid ""
5784 "If you just want to add an ISO file (often you use this as an efficient way "
5785 "to transfer large files into the guest), then you should probably use L"
5786 "</add-drive-ro> instead."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5791 #: ../fish/guestfish-actions.pod:228
5792 msgid ""
5793 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call"
5794 " instead."
5795 msgstr ""
5796
5797 #. type: textblock
5798 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5799 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5800 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5801 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5802 #: ../fish/guestfish-actions.pod:3293 ../fish/guestfish-actions.pod:3604
5803 #: ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:4579
5804 #: ../fish/guestfish-actions.pod:4602 ../fish/guestfish-actions.pod:4624
5805 #: ../fish/guestfish-actions.pod:4662 ../fish/guestfish-actions.pod:5311
5806 #: ../fish/guestfish-actions.pod:5417 ../src/guestfs-actions.pod:10
5807 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5808 #: ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629
5809 #: ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:2411
5810 #: ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:5077
5811 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5699
5812 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7043
5813 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7140
5814 #: ../src/guestfs-actions.pod:8072 ../src/guestfs-actions.pod:8181
5815 #: ../src/guestfs-actions.pod:8364
5816 msgid ""
5817 "Deprecated functions will not be removed from the API, but the fact that "
5818 "they are deprecated indicates that there are problems with correct use of "
5819 "these functions."
5820 msgstr ""
5821
5822 #. type: =head2
5823 #: ../fish/guestfish-actions.pod:35
5824 msgid "add-domain"
5825 msgstr ""
5826
5827 #. type: =head2
5828 #: ../fish/guestfish-actions.pod:37
5829 msgid "domain"
5830 msgstr ""
5831
5832 #. type: verbatim
5833 #: ../fish/guestfish-actions.pod:39
5834 #, no-wrap
5835 msgid ""
5836 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..] [readonlydisk:..]\n"
5837 "\n"
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../fish/guestfish-actions.pod:41
5842 msgid ""
5843 "This function adds the disk(s) attached to the named libvirt domain C<dom>."
5844 "  It works by connecting to libvirt, requesting the domain and domain XML "
5845 "from libvirt, parsing it for disks, and calling L</add-drive-opts> on each "
5846 "one."
5847 msgstr ""
5848
5849 #. type: textblock
5850 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5851 msgid ""
5852 "The number of disks added is returned.  This operation is atomic: if an "
5853 "error is returned, then no disks are added."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5858 msgid ""
5859 "This function does some minimal checks to make sure the libvirt domain is "
5860 "not running (unless C<readonly> is true).  In a future version we will try "
5861 "to acquire the libvirt lock on each disk."
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5866 msgid ""
5867 "Disks must be accessible locally.  This often means that adding disks from a"
5868 " remote libvirt connection (see L<http://libvirt.org/remote.html>)  will "
5869 "fail unless those disks are accessible via the same device path locally too."
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5874 msgid ""
5875 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5876 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5877 "default libvirt URI (or one set through an environment variable, see the "
5878 "libvirt documentation for full details)."
5879 msgstr ""
5880
5881 #. type: textblock
5882 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5883 msgid ""
5884 "The optional C<live> flag controls whether this call will try to connect to "
5885 "a running virtual machine C<guestfsd> process if it sees a suitable "
5886 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5887 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING"
5888 " DAEMONS> for more information."
5889 msgstr ""
5890
5891 #. type: textblock
5892 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5893 msgid ""
5894 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5895 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5896 "first and looked up, and if that lookup fails then we treat C<dom> as a name"
5897 " as usual."
5898 msgstr ""
5899
5900 #. type: textblock
5901 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5902 msgid ""
5903 "The optional C<readonlydisk> parameter controls what we do for disks which "
5904 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5905 msgstr ""
5906
5907 #. type: =item
5908 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5909 msgid "readonlydisk = \"error\""
5910 msgstr ""
5911
5912 #. type: textblock
5913 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
5914 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
5915 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
5916 msgid "If C<readonly> is false:"
5917 msgstr ""
5918
5919 #. type: textblock
5920 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5921 msgid ""
5922 "The whole call is aborted with an error if any disk with the "
5923 "E<lt>readonly/E<gt> flag is found."
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
5928 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
5929 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
5930 msgid "If C<readonly> is true:"
5931 msgstr ""
5932
5933 #. type: textblock
5934 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
5935 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
5936 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
5937 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5938 msgstr ""
5939
5940 #. type: =item
5941 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5942 msgid "readonlydisk = \"read\""
5943 msgstr ""
5944
5945 #. type: textblock
5946 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5947 msgid ""
5948 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5949 "are added read/write."
5950 msgstr ""
5951
5952 #. type: =item
5953 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5954 msgid "readonlydisk = \"write\" (default)"
5955 msgstr ""
5956
5957 #. type: textblock
5958 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5959 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5960 msgstr ""
5961
5962 #. type: =item
5963 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5964 msgid "readonlydisk = \"ignore\""
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5969 msgid "If C<readonly> is true or false:"
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5974 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../fish/guestfish-actions.pod:122
5979 msgid ""
5980 "The other optional parameters are passed directly through to L</add-drive-"
5981 "opts>."
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
5986 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
5987 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
5988 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
5989 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
5990 #: ../fish/guestfish-actions.pod:3342 ../fish/guestfish-actions.pod:3505
5991 #: ../fish/guestfish-actions.pod:3640
5992 msgid ""
5993 "This command has one or more optional arguments.  See L</OPTIONAL "
5994 "ARGUMENTS>."
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../fish/guestfish-actions.pod:127
5999 msgid "add-drive"
6000 msgstr ""
6001
6002 #. type: verbatim
6003 #: ../fish/guestfish-actions.pod:129
6004 #, no-wrap
6005 msgid ""
6006 " add-drive filename\n"
6007 "\n"
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:131
6012 msgid ""
6013 "This function is the equivalent of calling L</add-drive-opts> with no "
6014 "optional parameters, so the disk is added writable, with the format being "
6015 "detected automatically."
6016 msgstr ""
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:135
6020 msgid ""
6021 "Automatic detection of the format opens you up to a potential security hole "
6022 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6023 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6024 "you should think about replacing calls to this function with calls to L"
6025 "</add-drive-opts>, and specifying the format."
6026 msgstr ""
6027
6028 #. type: =head2
6029 #: ../fish/guestfish-actions.pod:142
6030 msgid "add-drive-opts"
6031 msgstr ""
6032
6033 #. type: =head2
6034 #: ../fish/guestfish-actions.pod:144
6035 msgid "add"
6036 msgstr ""
6037
6038 #. type: verbatim
6039 #: ../fish/guestfish-actions.pod:146
6040 #, no-wrap
6041 msgid ""
6042 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6043 "\n"
6044 msgstr ""
6045
6046 #. type: textblock
6047 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6048 msgid ""
6049 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6050 "The first time you call this function, the disk appears as C</dev/sda>, the "
6051 "second time as C</dev/sdb>, and so on."
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6056 msgid ""
6057 "You don't necessarily need to be root when using libguestfs.  However you "
6058 "obviously do need sufficient permissions to access the filename for whatever"
6059 " operations you want to perform (ie. read access if you just want to read "
6060 "the image or write access if you want to modify the image)."
6061 msgstr ""
6062
6063 #. type: textblock
6064 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6065 msgid "This call checks that C<filename> exists."
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3304
6070 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5114
6071 msgid "The optional arguments are:"
6072 msgstr ""
6073
6074 #. type: =item
6075 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6076 msgid "C<readonly>"
6077 msgstr ""
6078
6079 #. type: textblock
6080 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6081 msgid ""
6082 "If true then the image is treated as read-only.  Writes are still allowed, "
6083 "but they are stored in a temporary snapshot overlay which is discarded at "
6084 "the end.  The disk that you add is not modified."
6085 msgstr ""
6086
6087 #. type: =item
6088 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6089 msgid "C<format>"
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../fish/guestfish-actions.pod:173
6094 msgid ""
6095 "This forces the image format.  If you omit this (or use L</add-drive> or L"
6096 "</add-drive-ro>) then the format is automatically detected.  Possible "
6097 "formats include C<raw> and C<qcow2>."
6098 msgstr ""
6099
6100 #. type: textblock
6101 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6102 msgid ""
6103 "Automatic detection of the format opens you up to a potential security hole "
6104 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6105 "RHBZ#642934.  Specifying the format closes this security hole."
6106 msgstr ""
6107
6108 #. type: =item
6109 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6110 msgid "C<iface>"
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:184
6115 msgid ""
6116 "This rarely-used option lets you emulate the behaviour of the deprecated L"
6117 "</add-drive-with-if> call (q.v.)"
6118 msgstr ""
6119
6120 #. type: =item
6121 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6122 msgid "C<name>"
6123 msgstr ""
6124
6125 #. type: textblock
6126 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6127 msgid ""
6128 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as"
6129 " a hint to the guest inspection process if it is available."
6130 msgstr ""
6131
6132 #. type: =head2
6133 #: ../fish/guestfish-actions.pod:196
6134 msgid "add-drive-ro"
6135 msgstr ""
6136
6137 #. type: =head2
6138 #: ../fish/guestfish-actions.pod:198
6139 msgid "add-ro"
6140 msgstr ""
6141
6142 #. type: verbatim
6143 #: ../fish/guestfish-actions.pod:200
6144 #, no-wrap
6145 msgid ""
6146 " add-drive-ro filename\n"
6147 "\n"
6148 msgstr ""
6149
6150 #. type: textblock
6151 #: ../fish/guestfish-actions.pod:202
6152 msgid ""
6153 "This function is the equivalent of calling L</add-drive-opts> with the "
6154 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6155 "is added read-only, with the format being detected automatically."
6156 msgstr ""
6157
6158 #. type: =head2
6159 #: ../fish/guestfish-actions.pod:207
6160 msgid "add-drive-ro-with-if"
6161 msgstr ""
6162
6163 #. type: verbatim
6164 #: ../fish/guestfish-actions.pod:209
6165 #, no-wrap
6166 msgid ""
6167 " add-drive-ro-with-if filename iface\n"
6168 "\n"
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:211
6173 msgid ""
6174 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6175 "interface emulation to use at run time."
6176 msgstr ""
6177
6178 #. type: =head2
6179 #: ../fish/guestfish-actions.pod:221
6180 msgid "add-drive-with-if"
6181 msgstr ""
6182
6183 #. type: verbatim
6184 #: ../fish/guestfish-actions.pod:223
6185 #, no-wrap
6186 msgid ""
6187 " add-drive-with-if filename iface\n"
6188 "\n"
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../fish/guestfish-actions.pod:225
6193 msgid ""
6194 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6195 "interface emulation to use at run time."
6196 msgstr ""
6197
6198 #. type: =head2
6199 #: ../fish/guestfish-actions.pod:235
6200 msgid "aug-clear"
6201 msgstr ""
6202
6203 #. type: verbatim
6204 #: ../fish/guestfish-actions.pod:237
6205 #, no-wrap
6206 msgid ""
6207 " aug-clear augpath\n"
6208 "\n"
6209 msgstr ""
6210
6211 #. type: textblock
6212 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6213 msgid ""
6214 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6215 "L<augtool(1)> C<clear> command."
6216 msgstr ""
6217
6218 #. type: =head2
6219 #: ../fish/guestfish-actions.pod:242
6220 msgid "aug-close"
6221 msgstr ""
6222
6223 #. type: verbatim
6224 #: ../fish/guestfish-actions.pod:244
6225 #, no-wrap
6226 msgid ""
6227 " aug-close\n"
6228 "\n"
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:246
6233 msgid ""
6234 "Close the current Augeas handle and free up any resources used by it.  After"
6235 " calling this, you have to call L</aug-init> again before you can use any "
6236 "other Augeas functions."
6237 msgstr ""
6238
6239 #. type: =head2
6240 #: ../fish/guestfish-actions.pod:251
6241 msgid "aug-defnode"
6242 msgstr ""
6243
6244 #. type: verbatim
6245 #: ../fish/guestfish-actions.pod:253
6246 #, no-wrap
6247 msgid ""
6248 " aug-defnode name expr val\n"
6249 "\n"
6250 msgstr ""
6251
6252 #. type: textblock
6253 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6254 msgid ""
6255 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6256 msgstr ""
6257
6258 #. type: textblock
6259 #: ../fish/guestfish-actions.pod:258
6260 msgid ""
6261 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6262 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6263 "containing that single node."
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6268 msgid ""
6269 "On success this returns a pair containing the number of nodes in the "
6270 "nodeset, and a boolean flag if a node was created."
6271 msgstr ""
6272
6273 #. type: =head2
6274 #: ../fish/guestfish-actions.pod:266
6275 msgid "aug-defvar"
6276 msgstr ""
6277
6278 #. type: verbatim
6279 #: ../fish/guestfish-actions.pod:268
6280 #, no-wrap
6281 msgid ""
6282 " aug-defvar name expr\n"
6283 "\n"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6288 msgid ""
6289 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6290 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6295 msgid ""
6296 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6297 "evaluates to something which is not a nodeset."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:277
6302 msgid "aug-get"
6303 msgstr ""
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:279
6307 #, no-wrap
6308 msgid ""
6309 " aug-get augpath\n"
6310 "\n"
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6315 msgid ""
6316 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6317 "node, the C<value> is returned."
6318 msgstr ""
6319
6320 #. type: =head2
6321 #: ../fish/guestfish-actions.pod:284
6322 msgid "aug-init"
6323 msgstr ""
6324
6325 #. type: verbatim
6326 #: ../fish/guestfish-actions.pod:286
6327 #, no-wrap
6328 msgid ""
6329 " aug-init root flags\n"
6330 "\n"
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6335 msgid ""
6336 "Create a new Augeas handle for editing configuration files.  If there was "
6337 "any previous Augeas handle associated with this guestfs session, then it is "
6338 "closed."
6339 msgstr ""
6340
6341 #. type: textblock
6342 #: ../fish/guestfish-actions.pod:292
6343 msgid "You must call this before using any other L</aug-*> commands."
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6348 msgid ""
6349 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6354 msgid ""
6355 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6356 "logical I<or> of the following integers:"
6357 msgstr ""
6358
6359 #. type: =item
6360 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6361 msgid "C<AUG_SAVE_BACKUP> = 1"
6362 msgstr ""
6363
6364 #. type: textblock
6365 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6366 msgid "Keep the original file with a C<.augsave> extension."
6367 msgstr ""
6368
6369 #. type: =item
6370 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6371 msgid "C<AUG_SAVE_NEWFILE> = 2"
6372 msgstr ""
6373
6374 #. type: textblock
6375 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6376 msgid ""
6377 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6378 "original.  Overrides C<AUG_SAVE_BACKUP>."
6379 msgstr ""
6380
6381 #. type: =item
6382 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6383 msgid "C<AUG_TYPE_CHECK> = 4"
6384 msgstr ""
6385
6386 #. type: textblock
6387 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6388 msgid "Typecheck lenses."
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:317
6393 msgid ""
6394 "This option is only useful when debugging Augeas lenses.  Use of this option"
6395 " may require additional memory for the libguestfs appliance.  You may need "
6396 "to set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-"
6397 "memsize>."
6398 msgstr ""
6399
6400 #. type: =item
6401 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6402 msgid "C<AUG_NO_STDINC> = 8"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6407 msgid "Do not use standard load path for modules."
6408 msgstr ""
6409
6410 #. type: =item
6411 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6412 msgid "C<AUG_SAVE_NOOP> = 16"
6413 msgstr ""
6414
6415 #. type: textblock
6416 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6417 msgid "Make save a no-op, just record what would have been changed."
6418 msgstr ""
6419
6420 #. type: =item
6421 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6422 msgid "C<AUG_NO_LOAD> = 32"
6423 msgstr ""
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:332
6427 msgid "Do not load the tree in L</aug-init>."
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:336
6432 msgid "To close the handle, you can call L</aug-close>."
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6437 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6438 msgstr ""
6439
6440 #. type: =head2
6441 #: ../fish/guestfish-actions.pod:340
6442 msgid "aug-insert"
6443 msgstr ""
6444
6445 #. type: verbatim
6446 #: ../fish/guestfish-actions.pod:342
6447 #, no-wrap
6448 msgid ""
6449 " aug-insert augpath label true|false\n"
6450 "\n"
6451 msgstr ""
6452
6453 #. type: textblock
6454 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6455 msgid ""
6456 "Create a new sibling C<label> for C<path>, inserting it into the tree before"
6457 " or after C<path> (depending on the boolean flag C<before>)."
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6462 msgid ""
6463 "C<path> must match exactly one existing node in the tree, and C<label> must "
6464 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6465 msgstr ""
6466
6467 #. type: =head2
6468 #: ../fish/guestfish-actions.pod:352
6469 msgid "aug-load"
6470 msgstr ""
6471
6472 #. type: verbatim
6473 #: ../fish/guestfish-actions.pod:354
6474 #, no-wrap
6475 msgid ""
6476 " aug-load\n"
6477 "\n"
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6482 msgid "Load files into the tree."
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6487 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6488 msgstr ""
6489
6490 #. type: =head2
6491 #: ../fish/guestfish-actions.pod:361
6492 msgid "aug-ls"
6493 msgstr ""
6494
6495 #. type: verbatim
6496 #: ../fish/guestfish-actions.pod:363
6497 #, no-wrap
6498 msgid ""
6499 " aug-ls augpath\n"
6500 "\n"
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:365
6505 msgid ""
6506 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6507 "resulting nodes into alphabetical order."
6508 msgstr ""
6509
6510 #. type: =head2
6511 #: ../fish/guestfish-actions.pod:368
6512 msgid "aug-match"
6513 msgstr ""
6514
6515 #. type: verbatim
6516 #: ../fish/guestfish-actions.pod:370
6517 #, no-wrap
6518 msgid ""
6519 " aug-match augpath\n"
6520 "\n"
6521 msgstr ""
6522
6523 #. type: textblock
6524 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6525 msgid ""
6526 "Returns a list of paths which match the path expression C<path>.  The "
6527 "returned paths are sufficiently qualified so that they match exactly one "
6528 "node in the current tree."
6529 msgstr ""
6530
6531 #. type: =head2
6532 #: ../fish/guestfish-actions.pod:376
6533 msgid "aug-mv"
6534 msgstr ""
6535
6536 #. type: verbatim
6537 #: ../fish/guestfish-actions.pod:378
6538 #, no-wrap
6539 msgid ""
6540 " aug-mv src dest\n"
6541 "\n"
6542 msgstr ""
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6546 msgid ""
6547 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6548 "C<dest> is overwritten if it exists."
6549 msgstr ""
6550
6551 #. type: =head2
6552 #: ../fish/guestfish-actions.pod:383
6553 msgid "aug-rm"
6554 msgstr ""
6555
6556 #. type: verbatim
6557 #: ../fish/guestfish-actions.pod:385
6558 #, no-wrap
6559 msgid ""
6560 " aug-rm augpath\n"
6561 "\n"
6562 msgstr ""
6563
6564 #. type: textblock
6565 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6566 msgid "Remove C<path> and all of its children."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6571 msgid "On success this returns the number of entries which were removed."
6572 msgstr ""
6573
6574 #. type: =head2
6575 #: ../fish/guestfish-actions.pod:391
6576 msgid "aug-save"
6577 msgstr ""
6578
6579 #. type: verbatim
6580 #: ../fish/guestfish-actions.pod:393
6581 #, no-wrap
6582 msgid ""
6583 " aug-save\n"
6584 "\n"
6585 msgstr ""
6586
6587 #. type: textblock
6588 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6589 msgid "This writes all pending changes to disk."
6590 msgstr ""
6591
6592 #. type: textblock
6593 #: ../fish/guestfish-actions.pod:397
6594 msgid ""
6595 "The flags which were passed to L</aug-init> affect exactly how files are "
6596 "saved."
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../fish/guestfish-actions.pod:400
6601 msgid "aug-set"
6602 msgstr ""
6603
6604 #. type: verbatim
6605 #: ../fish/guestfish-actions.pod:402
6606 #, no-wrap
6607 msgid ""
6608 " aug-set augpath val\n"
6609 "\n"
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6614 msgid "Set the value associated with C<path> to C<val>."
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:406
6619 msgid ""
6620 "In the Augeas API, it is possible to clear a node by setting the value to "
6621 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6622 "this call.  Instead you must use the L</aug-clear> call."
6623 msgstr ""
6624
6625 #. type: =head2
6626 #: ../fish/guestfish-actions.pod:411
6627 msgid "available"
6628 msgstr ""
6629
6630 #. type: verbatim
6631 #: ../fish/guestfish-actions.pod:413
6632 #, no-wrap
6633 msgid ""
6634 " available 'groups ...'\n"
6635 "\n"
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6640 msgid ""
6641 "This command is used to check the availability of some groups of "
6642 "functionality in the appliance, which not all builds of the libguestfs "
6643 "appliance will be able to provide."
6644 msgstr ""
6645
6646 #. type: textblock
6647 #: ../fish/guestfish-actions.pod:419
6648 msgid ""
6649 "The libguestfs groups, and the functions that those groups correspond to, "
6650 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6651 "runtime by calling L</available-all-groups>."
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6656 msgid ""
6657 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6658 "\"augeas\"]> would check for the availability of the Linux inotify functions"
6659 " and Augeas (configuration file editing) functions."
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6664 msgid "The command returns no error if I<all> requested groups are available."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6669 msgid ""
6670 "It fails with an error if one or more of the requested groups is unavailable"
6671 " in the appliance."
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6676 msgid ""
6677 "If an unknown group name is included in the list of groups then an error is "
6678 "always returned."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6683 msgid "I<Notes:>"
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:443
6688 msgid "You must call L</launch> before calling this function."
6689 msgstr ""
6690
6691 #. type: textblock
6692 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6693 msgid ""
6694 "The reason is because we don't know what groups are supported by the "
6695 "appliance/daemon until it is running and can be queried."
6696 msgstr ""
6697
6698 #. type: textblock
6699 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6700 msgid ""
6701 "If a group of functions is available, this does not necessarily mean that "
6702 "they will work.  You still have to check for errors when calling individual "
6703 "API functions even if they are available."
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6708 msgid ""
6709 "It is usually the job of distro packagers to build complete functionality "
6710 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6711 "with all requirements satisfied, will support everything."
6712 msgstr ""
6713
6714 #. type: textblock
6715 #: ../fish/guestfish-actions.pod:465
6716 msgid ""
6717 "This call was added in version C<1.0.80>.  In previous versions of "
6718 "libguestfs all you could do would be to speculatively execute a command to "
6719 "find out if the daemon implemented it.  See also L</version>."
6720 msgstr ""
6721
6722 #. type: =head2
6723 #: ../fish/guestfish-actions.pod:472
6724 msgid "available-all-groups"
6725 msgstr ""
6726
6727 #. type: verbatim
6728 #: ../fish/guestfish-actions.pod:474
6729 #, no-wrap
6730 msgid ""
6731 " available-all-groups\n"
6732 "\n"
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:476
6737 msgid ""
6738 "This command returns a list of all optional groups that this daemon knows "
6739 "about.  Note this returns both supported and unsupported groups.  To find "
6740 "out which ones the daemon can actually support you have to call "
6741 "L</available> on each member of the returned list."
6742 msgstr ""
6743
6744 #. type: textblock
6745 #: ../fish/guestfish-actions.pod:482
6746 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6747 msgstr ""
6748
6749 #. type: =head2
6750 #: ../fish/guestfish-actions.pod:484
6751 msgid "base64-in"
6752 msgstr ""
6753
6754 #. type: verbatim
6755 #: ../fish/guestfish-actions.pod:486
6756 #, no-wrap
6757 msgid ""
6758 " base64-in (base64file|-) filename\n"
6759 "\n"
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6764 msgid ""
6765 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6766 msgstr ""
6767
6768 #. type: textblock
6769 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6770 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6771 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6772 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6773 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4894
6774 #: ../fish/guestfish-actions.pod:4905 ../fish/guestfish-actions.pod:4916
6775 #: ../fish/guestfish-actions.pod:4968 ../fish/guestfish-actions.pod:4977
6776 #: ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5054
6777 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6778 msgstr ""
6779
6780 #. type: =head2
6781 #: ../fish/guestfish-actions.pod:493
6782 msgid "base64-out"
6783 msgstr ""
6784
6785 #. type: verbatim
6786 #: ../fish/guestfish-actions.pod:495
6787 #, no-wrap
6788 msgid ""
6789 " base64-out filename (base64file|-)\n"
6790 "\n"
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6795 msgid ""
6796 "This command downloads the contents of C<filename>, writing it out to local "
6797 "file C<base64file> encoded as base64."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:502
6802 msgid "blockdev-flushbufs"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:504
6807 #, no-wrap
6808 msgid ""
6809 " blockdev-flushbufs device\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6815 msgid ""
6816 "This tells the kernel to flush internal buffers associated with C<device>."
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6821 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6822 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6823 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6824 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6825 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6826 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6827 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6828 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6829 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6830 msgid "This uses the L<blockdev(8)> command."
6831 msgstr ""
6832
6833 #. type: =head2
6834 #: ../fish/guestfish-actions.pod:511
6835 msgid "blockdev-getbsz"
6836 msgstr ""
6837
6838 #. type: verbatim
6839 #: ../fish/guestfish-actions.pod:513
6840 #, no-wrap
6841 msgid ""
6842 " blockdev-getbsz device\n"
6843 "\n"
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6848 msgid "This returns the block size of a device."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6853 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6854 msgid ""
6855 "(Note this is different from both I<size in blocks> and I<filesystem block "
6856 "size>)."
6857 msgstr ""
6858
6859 #. type: =head2
6860 #: ../fish/guestfish-actions.pod:522
6861 msgid "blockdev-getro"
6862 msgstr ""
6863
6864 #. type: verbatim
6865 #: ../fish/guestfish-actions.pod:524
6866 #, no-wrap
6867 msgid ""
6868 " blockdev-getro device\n"
6869 "\n"
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6874 msgid ""
6875 "Returns a boolean indicating if the block device is read-only (true if read-"
6876 "only, false if not)."
6877 msgstr ""
6878
6879 #. type: =head2
6880 #: ../fish/guestfish-actions.pod:531
6881 msgid "blockdev-getsize64"
6882 msgstr ""
6883
6884 #. type: verbatim
6885 #: ../fish/guestfish-actions.pod:533
6886 #, no-wrap
6887 msgid ""
6888 " blockdev-getsize64 device\n"
6889 "\n"
6890 msgstr ""
6891
6892 #. type: textblock
6893 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6894 msgid "This returns the size of the device in bytes."
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:537
6899 msgid "See also L</blockdev-getsz>."
6900 msgstr ""
6901
6902 #. type: =head2
6903 #: ../fish/guestfish-actions.pod:541
6904 msgid "blockdev-getss"
6905 msgstr ""
6906
6907 #. type: verbatim
6908 #: ../fish/guestfish-actions.pod:543
6909 #, no-wrap
6910 msgid ""
6911 " blockdev-getss device\n"
6912 "\n"
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6917 msgid ""
6918 "This returns the size of sectors on a block device.  Usually 512, but can be"
6919 " larger for modern devices."
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../fish/guestfish-actions.pod:548
6924 msgid ""
6925 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6926 msgstr ""
6927
6928 #. type: =head2
6929 #: ../fish/guestfish-actions.pod:553
6930 msgid "blockdev-getsz"
6931 msgstr ""
6932
6933 #. type: verbatim
6934 #: ../fish/guestfish-actions.pod:555
6935 #, no-wrap
6936 msgid ""
6937 " blockdev-getsz device\n"
6938 "\n"
6939 msgstr ""
6940
6941 #. type: textblock
6942 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6943 msgid ""
6944 "This returns the size of the device in units of 512-byte sectors (even if "
6945 "the sectorsize isn't 512 bytes ... weird)."
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:560
6950 msgid ""
6951 "See also L</blockdev-getss> for the real sector size of the device, and L"
6952 "</blockdev-getsize64> for the more useful I<size in bytes>."
6953 msgstr ""
6954
6955 #. type: =head2
6956 #: ../fish/guestfish-actions.pod:566
6957 msgid "blockdev-rereadpt"
6958 msgstr ""
6959
6960 #. type: verbatim
6961 #: ../fish/guestfish-actions.pod:568
6962 #, no-wrap
6963 msgid ""
6964 " blockdev-rereadpt device\n"
6965 "\n"
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6970 msgid "Reread the partition table on C<device>."
6971 msgstr ""
6972
6973 #. type: =head2
6974 #: ../fish/guestfish-actions.pod:574
6975 msgid "blockdev-setbsz"
6976 msgstr ""
6977
6978 #. type: verbatim
6979 #: ../fish/guestfish-actions.pod:576
6980 #, no-wrap
6981 msgid ""
6982 " blockdev-setbsz device blocksize\n"
6983 "\n"
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
6988 msgid "This sets the block size of a device."
6989 msgstr ""
6990
6991 #. type: =head2
6992 #: ../fish/guestfish-actions.pod:585
6993 msgid "blockdev-setro"
6994 msgstr ""
6995
6996 #. type: verbatim
6997 #: ../fish/guestfish-actions.pod:587
6998 #, no-wrap
6999 msgid ""
7000 " blockdev-setro device\n"
7001 "\n"
7002 msgstr ""
7003
7004 #. type: textblock
7005 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7006 msgid "Sets the block device named C<device> to read-only."
7007 msgstr ""
7008
7009 #. type: =head2
7010 #: ../fish/guestfish-actions.pod:593
7011 msgid "blockdev-setrw"
7012 msgstr ""
7013
7014 #. type: verbatim
7015 #: ../fish/guestfish-actions.pod:595
7016 #, no-wrap
7017 msgid ""
7018 " blockdev-setrw device\n"
7019 "\n"
7020 msgstr ""
7021
7022 #. type: textblock
7023 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7024 msgid "Sets the block device named C<device> to read-write."
7025 msgstr ""
7026
7027 #. type: =head2
7028 #: ../fish/guestfish-actions.pod:601
7029 msgid "btrfs-filesystem-resize"
7030 msgstr ""
7031
7032 #. type: verbatim
7033 #: ../fish/guestfish-actions.pod:603
7034 #, no-wrap
7035 msgid ""
7036 " btrfs-filesystem-resize mountpoint [size:..]\n"
7037 "\n"
7038 msgstr ""
7039
7040 #. type: textblock
7041 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7042 msgid "This command resizes a btrfs filesystem."
7043 msgstr ""
7044
7045 #. type: textblock
7046 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7047 msgid ""
7048 "Note that unlike other resize calls, the filesystem has to be mounted and "
7049 "the parameter is the mountpoint not the device (this is a requirement of "
7050 "btrfs itself)."
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3615
7055 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5638
7056 msgid "The optional parameters are:"
7057 msgstr ""
7058
7059 #. type: =item
7060 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3619
7061 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5642
7062 msgid "C<size>"
7063 msgstr ""
7064
7065 #. type: textblock
7066 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7067 msgid ""
7068 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7069 "resized to the maximum size."
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7074 msgid "See also L<btrfs(8)>."
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:626
7079 msgid "case-sensitive-path"
7080 msgstr ""
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:628
7084 #, no-wrap
7085 msgid ""
7086 " case-sensitive-path path\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7092 msgid ""
7093 "This can be used to resolve case insensitive paths on a filesystem which is "
7094 "case sensitive.  The use case is to resolve paths which you have read from "
7095 "Windows configuration files or the Windows Registry, to the true path."
7096 msgstr ""
7097
7098 #. type: textblock
7099 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7100 msgid ""
7101 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7102 "(and probably others), which is that although the underlying filesystem is "
7103 "case-insensitive, the driver exports the filesystem to Linux as case-"
7104 "sensitive."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7109 msgid ""
7110 "One consequence of this is that special directories such as C<c:\\windows> "
7111 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7112 "precise details of how they were created.  In Windows itself this would not "
7113 "be a problem."
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7118 msgid ""
7119 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-"
7120 "faq/#posixfilenames1>"
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7125 msgid ""
7126 "This function resolves the true case of each element in the path and returns"
7127 " the case-sensitive path."
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../fish/guestfish-actions.pod:652
7132 msgid ""
7133 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7134 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7135 "how the directories were originally created under Windows)."
7136 msgstr ""
7137
7138 #. type: textblock
7139 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7140 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7141 msgstr ""
7142
7143 #. type: textblock
7144 #: ../fish/guestfish-actions.pod:660
7145 msgid "See also L</realpath>."
7146 msgstr ""
7147
7148 #. type: =head2
7149 #: ../fish/guestfish-actions.pod:662
7150 msgid "cat"
7151 msgstr ""
7152
7153 #. type: verbatim
7154 #: ../fish/guestfish-actions.pod:664
7155 #, no-wrap
7156 msgid ""
7157 " cat path\n"
7158 "\n"
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4049
7163 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6299
7164 msgid "Return the contents of the file named C<path>."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../fish/guestfish-actions.pod:668
7169 msgid ""
7170 "Note that this function cannot correctly handle binary files (specifically, "
7171 "files containing C<\\0> character which is treated as end of string).  For "
7172 "those you need to use the L</read-file> or L</download> functions which have"
7173 " a more complex interface."
7174 msgstr ""
7175
7176 #. type: textblock
7177 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7178 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7179 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7180 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7181 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7182 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7183 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7184 #: ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:3934
7185 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4027
7186 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4723
7187 #: ../fish/guestfish-actions.pod:4769 ../fish/guestfish-actions.pod:4854
7188 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:5275
7189 #: ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5305
7190 #: ../fish/guestfish-actions.pod:5322 ../fish/guestfish-actions.pod:5332
7191 #: ../fish/guestfish-actions.pod:5389 ../fish/guestfish-actions.pod:5399
7192 #: ../fish/guestfish-actions.pod:5428 ../fish/guestfish-actions.pod:5438
7193 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7194 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1847
7195 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1969
7196 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2234
7197 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2735
7198 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2824
7199 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2870
7200 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6107
7201 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6264
7202 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:7255
7203 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-actions.pod:7456
7204 #: ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:8145
7205 #: ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8198
7206 #: ../src/guestfs-actions.pod:8217 ../src/guestfs-actions.pod:8236
7207 #: ../src/guestfs-actions.pod:8330 ../src/guestfs-actions.pod:8349
7208 #: ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8414
7209 msgid ""
7210 "Because of the message protocol, there is a transfer limit of somewhere "
7211 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7212 msgstr ""
7213
7214 #. type: =head2
7215 #: ../fish/guestfish-actions.pod:676
7216 msgid "checksum"
7217 msgstr ""
7218
7219 #. type: verbatim
7220 #: ../fish/guestfish-actions.pod:678
7221 #, no-wrap
7222 msgid ""
7223 " checksum csumtype path\n"
7224 "\n"
7225 msgstr ""
7226
7227 #. type: textblock
7228 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7229 msgid ""
7230 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7235 msgid ""
7236 "The type of checksum to compute is given by the C<csumtype> parameter which "
7237 "must have one of the following values:"
7238 msgstr ""
7239
7240 #. type: =item
7241 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7242 msgid "C<crc>"
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7247 msgid ""
7248 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7249 "C<cksum> command."
7250 msgstr ""
7251
7252 #. type: =item
7253 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7254 msgid "C<md5>"
7255 msgstr ""
7256
7257 #. type: textblock
7258 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7259 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7260 msgstr ""
7261
7262 #. type: =item
7263 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7264 msgid "C<sha1>"
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7269 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7270 msgstr ""
7271
7272 #. type: =item
7273 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7274 msgid "C<sha224>"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7279 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7280 msgstr ""
7281
7282 #. type: =item
7283 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7284 msgid "C<sha256>"
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7289 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7290 msgstr ""
7291
7292 #. type: =item
7293 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7294 msgid "C<sha384>"
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7299 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7300 msgstr ""
7301
7302 #. type: =item
7303 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7304 msgid "C<sha512>"
7305 msgstr ""
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7309 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7314 msgid "The checksum is returned as a printable string."
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:721
7319 msgid "To get the checksum for a device, use L</checksum-device>."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:723
7324 msgid "To get the checksums for many files, use L</checksums-out>."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:725
7329 msgid "checksum-device"
7330 msgstr ""
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:727
7334 #, no-wrap
7335 msgid ""
7336 " checksum-device csumtype device\n"
7337 "\n"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:729
7342 msgid ""
7343 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7344 "device named C<device>.  For the types of checksums supported see the "
7345 "L</checksum> command."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:733
7350 msgid "checksums-out"
7351 msgstr ""
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:735
7355 #, no-wrap
7356 msgid ""
7357 " checksums-out csumtype directory (sumsfile|-)\n"
7358 "\n"
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7363 msgid ""
7364 "This command computes the checksums of all regular files in C<directory> and"
7365 " then emits a list of those checksums to the local output file C<sumsfile>."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7370 msgid ""
7371 "This can be used for verifying the integrity of a virtual machine.  However "
7372 "to be properly secure you should pay attention to the output of the checksum"
7373 " command (it uses the ones from GNU coreutils).  In particular when the "
7374 "filename is not printable, coreutils uses a special backslash syntax.  For "
7375 "more information, see the GNU coreutils info file."
7376 msgstr ""
7377
7378 #. type: =head2
7379 #: ../fish/guestfish-actions.pod:751
7380 msgid "chmod"
7381 msgstr ""
7382
7383 #. type: verbatim
7384 #: ../fish/guestfish-actions.pod:753
7385 #, no-wrap
7386 msgid ""
7387 " chmod mode path\n"
7388 "\n"
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7393 msgid ""
7394 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are"
7395 " supported."
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7400 msgid ""
7401 "I<Note>: When using this command from guestfish, C<mode> by default would be"
7402 " decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7403 "C<700>."
7404 msgstr ""
7405
7406 #. type: textblock
7407 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3268
7408 #: ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3417
7409 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:1117
7410 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5254
7411 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5292
7412 msgid "The mode actually set is affected by the umask."
7413 msgstr ""
7414
7415 #. type: =head2
7416 #: ../fish/guestfish-actions.pod:764
7417 msgid "chown"
7418 msgstr ""
7419
7420 #. type: verbatim
7421 #: ../fish/guestfish-actions.pod:766
7422 #, no-wrap
7423 msgid ""
7424 " chown owner group path\n"
7425 "\n"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7430 msgid "Change the file owner to C<owner> and group to C<group>."
7431 msgstr ""
7432
7433 #. type: textblock
7434 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7435 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4116
7436 msgid ""
7437 "Only numeric uid and gid are supported.  If you want to use names, you will "
7438 "need to locate and parse the password file yourself (Augeas support makes "
7439 "this relatively easy)."
7440 msgstr ""
7441
7442 #. type: =head2
7443 #: ../fish/guestfish-actions.pod:774
7444 msgid "command"
7445 msgstr ""
7446
7447 #. type: verbatim
7448 #: ../fish/guestfish-actions.pod:776
7449 #, no-wrap
7450 msgid ""
7451 " command 'arguments ...'\n"
7452 "\n"
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7457 msgid ""
7458 "This call runs a command from the guest filesystem.  The filesystem must be "
7459 "mounted, and must contain a compatible operating system (ie. something "
7460 "Linux, with the same or compatible processor architecture)."
7461 msgstr ""
7462
7463 #. type: textblock
7464 #: ../fish/guestfish-actions.pod:783
7465 msgid ""
7466 "The single parameter is an argv-style list of arguments.  The first element "
7467 "is the name of the program to run.  Subsequent elements are parameters.  The"
7468 " list must be non-empty (ie. must contain a program name).  Note that the "
7469 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7470 msgstr ""
7471
7472 #. type: textblock
7473 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7474 msgid "The return value is anything printed to I<stdout> by the command."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7479 msgid ""
7480 "If the command returns a non-zero exit status, then this function returns an"
7481 " error message.  The error message string is the content of I<stderr> from "
7482 "the command."
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7487 msgid ""
7488 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7489 "C</bin>.  If you require a program from another location, you should provide"
7490 " the full path in the first parameter."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7495 msgid ""
7496 "Shared libraries and data files required by the program must be available on"
7497 " filesystems which are mounted in the correct places.  It is the caller's "
7498 "responsibility to ensure all filesystems that are needed are mounted at the "
7499 "right locations."
7500 msgstr ""
7501
7502 #. type: =head2
7503 #: ../fish/guestfish-actions.pod:811
7504 msgid "command-lines"
7505 msgstr ""
7506
7507 #. type: verbatim
7508 #: ../fish/guestfish-actions.pod:813
7509 #, no-wrap
7510 msgid ""
7511 " command-lines 'arguments ...'\n"
7512 "\n"
7513 msgstr ""
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:815
7517 msgid ""
7518 "This is the same as L</command>, but splits the result into a list of lines."
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:818
7523 msgid "See also: L</sh-lines>"
7524 msgstr ""
7525
7526 #. type: =head2
7527 #: ../fish/guestfish-actions.pod:823
7528 msgid "compress-device-out"
7529 msgstr ""
7530
7531 #. type: verbatim
7532 #: ../fish/guestfish-actions.pod:825
7533 #, no-wrap
7534 msgid ""
7535 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7536 "\n"
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7541 msgid ""
7542 "This command compresses C<device> and writes it out to the local file "
7543 "C<zdevice>."
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:830
7548 msgid ""
7549 "The C<ctype> and optional C<level> parameters have the same meaning as in L"
7550 "</compress-out>."
7551 msgstr ""
7552
7553 #. type: =head2
7554 #: ../fish/guestfish-actions.pod:837
7555 msgid "compress-out"
7556 msgstr ""
7557
7558 #. type: verbatim
7559 #: ../fish/guestfish-actions.pod:839
7560 #, no-wrap
7561 msgid ""
7562 " compress-out ctype file (zfile|-) [level:..]\n"
7563 "\n"
7564 msgstr ""
7565
7566 #. type: textblock
7567 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7568 msgid ""
7569 "This command compresses C<file> and writes it out to the local file "
7570 "C<zfile>."
7571 msgstr ""
7572
7573 #. type: textblock
7574 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7575 msgid ""
7576 "The compression program used is controlled by the C<ctype> parameter.  "
7577 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7578 "Some compression types may not be supported by particular builds of "
7579 "libguestfs, in which case you will get an error containing the substring "
7580 "\"not supported\"."
7581 msgstr ""
7582
7583 #. type: textblock
7584 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7585 msgid ""
7586 "The optional C<level> parameter controls compression level.  The meaning and"
7587 " default for this parameter depends on the compression program being used."
7588 msgstr ""
7589
7590 #. type: =head2
7591 #: ../fish/guestfish-actions.pod:858
7592 msgid "config"
7593 msgstr ""
7594
7595 #. type: verbatim
7596 #: ../fish/guestfish-actions.pod:860
7597 #, no-wrap
7598 msgid ""
7599 " config qemuparam qemuvalue\n"
7600 "\n"
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7605 msgid ""
7606 "This can be used to add arbitrary qemu command line parameters of the form "
7607 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7608 "setting some parameters which would interfere with parameters that we use."
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7613 msgid "The first character of C<param> string must be a C<-> (dash)."
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7618 msgid "C<value> can be NULL."
7619 msgstr ""
7620
7621 #. type: =head2
7622 #: ../fish/guestfish-actions.pod:871
7623 msgid "copy-device-to-device"
7624 msgstr ""
7625
7626 #. type: verbatim
7627 #: ../fish/guestfish-actions.pod:873
7628 #, no-wrap
7629 msgid ""
7630 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7631 "\n"
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:875
7636 msgid ""
7637 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7638 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7639 "(device|file) to a destination (device|file)."
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7644 msgid ""
7645 "Partial copies can be made since you can specify optionally the source "
7646 "offset, destination offset and size to copy.  These values are all specified"
7647 " in bytes.  If not given, the offsets both default to zero, and the size "
7648 "defaults to copying as much as possible until we hit the end of the source."
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7653 msgid ""
7654 "The source and destination may be the same object.  However overlapping "
7655 "regions may not be copied correctly."
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7660 msgid ""
7661 "If the destination is a file, it is created if required.  If the destination"
7662 " file is not large enough, it is extended."
7663 msgstr ""
7664
7665 #. type: =head2
7666 #: ../fish/guestfish-actions.pod:896
7667 msgid "copy-device-to-file"
7668 msgstr ""
7669
7670 #. type: verbatim
7671 #: ../fish/guestfish-actions.pod:898
7672 #, no-wrap
7673 msgid ""
7674 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7675 "\n"
7676 msgstr ""
7677
7678 #. type: textblock
7679 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7680 #: ../fish/guestfish-actions.pod:918
7681 msgid "See L</copy-device-to-device> for a general overview of this call."
7682 msgstr ""
7683
7684 #. type: =head2
7685 #: ../fish/guestfish-actions.pod:905
7686 msgid "copy-file-to-device"
7687 msgstr ""
7688
7689 #. type: verbatim
7690 #: ../fish/guestfish-actions.pod:907
7691 #, no-wrap
7692 msgid ""
7693 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7694 "\n"
7695 msgstr ""
7696
7697 #. type: =head2
7698 #: ../fish/guestfish-actions.pod:914
7699 msgid "copy-file-to-file"
7700 msgstr ""
7701
7702 #. type: verbatim
7703 #: ../fish/guestfish-actions.pod:916
7704 #, no-wrap
7705 msgid ""
7706 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7707 "\n"
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:921
7712 msgid ""
7713 "This is B<not> the function you want for copying files.  This is for copying"
7714 " blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7715 "file copying and moving functions."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:928
7720 msgid "copy-size"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:930
7725 #, no-wrap
7726 msgid ""
7727 " copy-size src dest size\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1576
7733 msgid ""
7734 "This command copies exactly C<size> bytes from one source device or file "
7735 "C<src> to another destination device or file C<dest>."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1579
7740 msgid ""
7741 "Note this will fail if the source is too short or if the destination is not "
7742 "large enough."
7743 msgstr ""
7744
7745 #. type: textblock
7746 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7747 msgid ""
7748 "I<This function is deprecated.> In new code, use the "
7749 "L</copy_device_to_device> call instead."
7750 msgstr ""
7751
7752 #. type: =head2
7753 #: ../fish/guestfish-actions.pod:945
7754 msgid "cp"
7755 msgstr ""
7756
7757 #. type: verbatim
7758 #: ../fish/guestfish-actions.pod:947
7759 #, no-wrap
7760 msgid ""
7761 " cp src dest\n"
7762 "\n"
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1598
7767 msgid ""
7768 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7769 "destination filename or destination directory."
7770 msgstr ""
7771
7772 #. type: =head2
7773 #: ../fish/guestfish-actions.pod:952
7774 msgid "cp-a"
7775 msgstr ""
7776
7777 #. type: verbatim
7778 #: ../fish/guestfish-actions.pod:954
7779 #, no-wrap
7780 msgid ""
7781 " cp-a src dest\n"
7782 "\n"
7783 msgstr ""
7784
7785 #. type: textblock
7786 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1612
7787 msgid ""
7788 "This copies a file or directory from C<src> to C<dest> recursively using the"
7789 " C<cp -a> command."
7790 msgstr ""
7791
7792 #. type: =head2
7793 #: ../fish/guestfish-actions.pod:959
7794 msgid "dd"
7795 msgstr ""
7796
7797 #. type: verbatim
7798 #: ../fish/guestfish-actions.pod:961
7799 #, no-wrap
7800 msgid ""
7801 " dd src dest\n"
7802 "\n"
7803 msgstr ""
7804
7805 #. type: textblock
7806 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1633
7807 msgid ""
7808 "This command copies from one source device or file C<src> to another "
7809 "destination device or file C<dest>.  Normally you would use this to copy to "
7810 "or from a device or partition, for example to duplicate a filesystem."
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../fish/guestfish-actions.pod:968
7815 msgid ""
7816 "If the destination is a device, it must be as large or larger than the "
7817 "source file or device, otherwise the copy will fail.  This command cannot do"
7818 " partial copies (see L</copy-device-to-device>)."
7819 msgstr ""
7820
7821 #. type: =head2
7822 #: ../fish/guestfish-actions.pod:980
7823 msgid "df"
7824 msgstr ""
7825
7826 #. type: verbatim
7827 #: ../fish/guestfish-actions.pod:982
7828 #, no-wrap
7829 msgid ""
7830 " df\n"
7831 "\n"
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1652
7836 msgid "This command runs the C<df> command to report disk space used."
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7841 msgid ""
7842 "This command is mostly useful for interactive sessions.  It is I<not> "
7843 "intended that you try to parse the output string.  Use L</statvfs> from "
7844 "programs."
7845 msgstr ""
7846
7847 #. type: =head2
7848 #: ../fish/guestfish-actions.pod:990
7849 msgid "df-h"
7850 msgstr ""
7851
7852 #. type: verbatim
7853 #: ../fish/guestfish-actions.pod:992
7854 #, no-wrap
7855 msgid ""
7856 " df-h\n"
7857 "\n"
7858 msgstr ""
7859
7860 #. type: textblock
7861 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1668
7862 msgid ""
7863 "This command runs the C<df -h> command to report disk space used in human-"
7864 "readable format."
7865 msgstr ""
7866
7867 #. type: =head2
7868 #: ../fish/guestfish-actions.pod:1001
7869 msgid "dmesg"
7870 msgstr ""
7871
7872 #. type: verbatim
7873 #: ../fish/guestfish-actions.pod:1003
7874 #, no-wrap
7875 msgid ""
7876 " dmesg\n"
7877 "\n"
7878 msgstr ""
7879
7880 #. type: textblock
7881 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1685
7882 msgid ""
7883 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7884 "This is sometimes useful for extended debugging of problems."
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:1009
7889 msgid ""
7890 "Another way to get the same information is to enable verbose messages with L"
7891 "</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7892 "before running the program."
7893 msgstr ""
7894
7895 #. type: =head2
7896 #: ../fish/guestfish-actions.pod:1014
7897 msgid "download"
7898 msgstr ""
7899
7900 #. type: verbatim
7901 #: ../fish/guestfish-actions.pod:1016
7902 #, no-wrap
7903 msgid ""
7904 " download remotefilename (filename|-)\n"
7905 "\n"
7906 msgstr ""
7907
7908 #. type: textblock
7909 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
7910 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1731
7911 msgid ""
7912 "Download file C<remotefilename> and save it as C<filename> on the local "
7913 "machine."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5027
7918 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:7715
7919 msgid "C<filename> can also be a named pipe."
7920 msgstr ""
7921
7922 #. type: textblock
7923 #: ../fish/guestfish-actions.pod:1023
7924 msgid "See also L</upload>, L</cat>."
7925 msgstr ""
7926
7927 #. type: =head2
7928 #: ../fish/guestfish-actions.pod:1027
7929 msgid "download-offset"
7930 msgstr ""
7931
7932 #. type: verbatim
7933 #: ../fish/guestfish-actions.pod:1029
7934 #, no-wrap
7935 msgid ""
7936 " download-offset remotefilename (filename|-) offset size\n"
7937 "\n"
7938 msgstr ""
7939
7940 #. type: textblock
7941 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1734
7942 msgid ""
7943 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7944 "region must be within the file or device)."
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../fish/guestfish-actions.pod:1037
7949 msgid ""
7950 "Note that there is no limit on the amount of data that can be downloaded "
7951 "with this call, unlike with L</pread>, and this call always reads the full "
7952 "amount unless an error occurs."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1042
7957 msgid "See also L</download>, L</pread>."
7958 msgstr ""
7959
7960 #. type: =head2
7961 #: ../fish/guestfish-actions.pod:1046
7962 msgid "drop-caches"
7963 msgstr ""
7964
7965 #. type: verbatim
7966 #: ../fish/guestfish-actions.pod:1048
7967 #, no-wrap
7968 msgid ""
7969 " drop-caches whattodrop\n"
7970 "\n"
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1759
7975 msgid ""
7976 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7977 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7978 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1764
7983 msgid "Setting C<whattodrop> to 3 should drop everything."
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1766
7988 msgid ""
7989 "This automatically calls L<sync(2)> before the operation, so that the "
7990 "maximum guest memory is freed."
7991 msgstr ""
7992
7993 #. type: =head2
7994 #: ../fish/guestfish-actions.pod:1060
7995 msgid "du"
7996 msgstr ""
7997
7998 #. type: verbatim
7999 #: ../fish/guestfish-actions.pod:1062
8000 #, no-wrap
8001 msgid ""
8002 " du path\n"
8003 "\n"
8004 msgstr ""
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1779
8008 msgid ""
8009 "This command runs the C<du -s> command to estimate file space usage for "
8010 "C<path>."
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1782
8015 msgid ""
8016 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8017 "estimate includes the contents of the directory and all subdirectories "
8018 "(recursively)."
8019 msgstr ""
8020
8021 #. type: textblock
8022 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1786
8023 msgid ""
8024 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8025 msgstr ""
8026
8027 #. type: =head2
8028 #: ../fish/guestfish-actions.pod:1074
8029 msgid "e2fsck-f"
8030 msgstr ""
8031
8032 #. type: verbatim
8033 #: ../fish/guestfish-actions.pod:1076
8034 #, no-wrap
8035 msgid ""
8036 " e2fsck-f device\n"
8037 "\n"
8038 msgstr ""
8039
8040 #. type: textblock
8041 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1804
8042 msgid ""
8043 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8044 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be"
8045 " clean (I<-f>)."
8046 msgstr ""
8047
8048 #. type: textblock
8049 #: ../fish/guestfish-actions.pod:1082
8050 msgid ""
8051 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8052 "should use L</fsck>."
8053 msgstr ""
8054
8055 #. type: =head2
8056 #: ../fish/guestfish-actions.pod:1085
8057 msgid "echo-daemon"
8058 msgstr ""
8059
8060 #. type: verbatim
8061 #: ../fish/guestfish-actions.pod:1087
8062 #, no-wrap
8063 msgid ""
8064 " echo-daemon 'words ...'\n"
8065 "\n"
8066 msgstr ""
8067
8068 #. type: textblock
8069 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1821
8070 msgid ""
8071 "This command concatenates the list of C<words> passed with single spaces "
8072 "between them and returns the resulting string."
8073 msgstr ""
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1824
8077 msgid "You can use this command to test the connection through to the daemon."
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../fish/guestfish-actions.pod:1094
8082 msgid "See also L</ping-daemon>."
8083 msgstr ""
8084
8085 #. type: =head2
8086 #: ../fish/guestfish-actions.pod:1096
8087 msgid "egrep"
8088 msgstr ""
8089
8090 #. type: verbatim
8091 #: ../fish/guestfish-actions.pod:1098
8092 #, no-wrap
8093 msgid ""
8094 " egrep regex path\n"
8095 "\n"
8096 msgstr ""
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1840
8100 msgid ""
8101 "This calls the external C<egrep> program and returns the matching lines."
8102 msgstr ""
8103
8104 #. type: =head2
8105 #: ../fish/guestfish-actions.pod:1106
8106 msgid "egrepi"
8107 msgstr ""
8108
8109 #. type: verbatim
8110 #: ../fish/guestfish-actions.pod:1108
8111 #, no-wrap
8112 msgid ""
8113 " egrepi regex path\n"
8114 "\n"
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1859
8119 msgid ""
8120 "This calls the external C<egrep -i> program and returns the matching lines."
8121 msgstr ""
8122
8123 #. type: =head2
8124 #: ../fish/guestfish-actions.pod:1116
8125 msgid "equal"
8126 msgstr ""
8127
8128 #. type: verbatim
8129 #: ../fish/guestfish-actions.pod:1118
8130 #, no-wrap
8131 msgid ""
8132 " equal file1 file2\n"
8133 "\n"
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1878
8138 msgid ""
8139 "This compares the two files C<file1> and C<file2> and returns true if their "
8140 "content is exactly equal, or false otherwise."
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1881
8145 msgid "The external L<cmp(1)> program is used for the comparison."
8146 msgstr ""
8147
8148 #. type: =head2
8149 #: ../fish/guestfish-actions.pod:1125
8150 msgid "exists"
8151 msgstr ""
8152
8153 #. type: verbatim
8154 #: ../fish/guestfish-actions.pod:1127
8155 #, no-wrap
8156 msgid ""
8157 " exists path\n"
8158 "\n"
8159 msgstr ""
8160
8161 #. type: textblock
8162 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1893
8163 msgid ""
8164 "This returns C<true> if and only if there is a file, directory (or anything)"
8165 " with the given C<path> name."
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1132
8170 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8171 msgstr ""
8172
8173 #. type: =head2
8174 #: ../fish/guestfish-actions.pod:1134
8175 msgid "fallocate"
8176 msgstr ""
8177
8178 #. type: verbatim
8179 #: ../fish/guestfish-actions.pod:1136
8180 #, no-wrap
8181 msgid ""
8182 " fallocate path len\n"
8183 "\n"
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8188 #: ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1935
8189 msgid ""
8190 "This command preallocates a file (containing zero bytes) named C<path> of "
8191 "size C<len> bytes.  If the file exists already, it is overwritten."
8192 msgstr ""
8193
8194 #. type: textblock
8195 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1920
8196 msgid ""
8197 "Do not confuse this with the guestfish-specific C<alloc> command which "
8198 "allocates a file in the host and attaches it as a device."
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1146
8203 msgid ""
8204 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8205 "instead."
8206 msgstr ""
8207
8208 #. type: =head2
8209 #: ../fish/guestfish-actions.pod:1153
8210 msgid "fallocate64"
8211 msgstr ""
8212
8213 #. type: verbatim
8214 #: ../fish/guestfish-actions.pod:1155
8215 #, no-wrap
8216 msgid ""
8217 " fallocate64 path len\n"
8218 "\n"
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1161
8223 msgid ""
8224 "Note that this call allocates disk blocks for the file.  To create a sparse "
8225 "file use L</truncate-size> instead."
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1164
8230 msgid ""
8231 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8232 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8233 "maximum size of files created through that call to 1GB."
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1947
8238 msgid ""
8239 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8240 "commands which create a file in the host and attach it as a device."
8241 msgstr ""
8242
8243 #. type: =head2
8244 #: ../fish/guestfish-actions.pod:1173
8245 msgid "fgrep"
8246 msgstr ""
8247
8248 #. type: verbatim
8249 #: ../fish/guestfish-actions.pod:1175
8250 #, no-wrap
8251 msgid ""
8252 " fgrep pattern path\n"
8253 "\n"
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1962
8258 msgid ""
8259 "This calls the external C<fgrep> program and returns the matching lines."
8260 msgstr ""
8261
8262 #. type: =head2
8263 #: ../fish/guestfish-actions.pod:1183
8264 msgid "fgrepi"
8265 msgstr ""
8266
8267 #. type: verbatim
8268 #: ../fish/guestfish-actions.pod:1185
8269 #, no-wrap
8270 msgid ""
8271 " fgrepi pattern path\n"
8272 "\n"
8273 msgstr ""
8274
8275 #. type: textblock
8276 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1981
8277 msgid ""
8278 "This calls the external C<fgrep -i> program and returns the matching lines."
8279 msgstr ""
8280
8281 #. type: =head2
8282 #: ../fish/guestfish-actions.pod:1193
8283 msgid "file"
8284 msgstr ""
8285
8286 #. type: verbatim
8287 #: ../fish/guestfish-actions.pod:1195
8288 #, no-wrap
8289 msgid ""
8290 " file path\n"
8291 "\n"
8292 msgstr ""
8293
8294 #. type: textblock
8295 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1999
8296 msgid ""
8297 "This call uses the standard L<file(1)> command to determine the type or "
8298 "contents of the file."
8299 msgstr ""
8300
8301 #. type: textblock
8302 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2002
8303 msgid ""
8304 "This call will also transparently look inside various types of compressed "
8305 "file."
8306 msgstr ""
8307
8308 #. type: textblock
8309 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2005
8310 msgid ""
8311 "The exact command which runs is C<file -zb path>.  Note in particular that "
8312 "the filename is not prepended to the output (the I<-b> option)."
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2009
8317 msgid ""
8318 "The output depends on the output of the underlying L<file(1)> command and it"
8319 " can change in future in ways beyond our control.  In other words, the "
8320 "output is not guaranteed by the ABI."
8321 msgstr ""
8322
8323 #. type: textblock
8324 #: ../fish/guestfish-actions.pod:1211
8325 msgid ""
8326 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8327 "(etc), L</is-zero>."
8328 msgstr ""
8329
8330 #. type: =head2
8331 #: ../fish/guestfish-actions.pod:1214
8332 msgid "file-architecture"
8333 msgstr ""
8334
8335 #. type: verbatim
8336 #: ../fish/guestfish-actions.pod:1216
8337 #, no-wrap
8338 msgid ""
8339 " file-architecture filename\n"
8340 "\n"
8341 msgstr ""
8342
8343 #. type: textblock
8344 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2027
8345 msgid ""
8346 "This detects the architecture of the binary C<filename>, and returns it if "
8347 "known."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2030
8352 msgid "Currently defined architectures are:"
8353 msgstr ""
8354
8355 #. type: =item
8356 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2034
8357 msgid "\"i386\""
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2036
8362 msgid ""
8363 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8364 "irrespective of the precise processor requirements of the binary."
8365 msgstr ""
8366
8367 #. type: =item
8368 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2039
8369 msgid "\"x86_64\""
8370 msgstr ""
8371
8372 #. type: textblock
8373 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2041
8374 msgid "64 bit x86-64."
8375 msgstr ""
8376
8377 #. type: =item
8378 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2043
8379 msgid "\"sparc\""
8380 msgstr ""
8381
8382 #. type: textblock
8383 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2045
8384 msgid "32 bit SPARC."
8385 msgstr ""
8386
8387 #. type: =item
8388 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2047
8389 msgid "\"sparc64\""
8390 msgstr ""
8391
8392 #. type: textblock
8393 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2049
8394 msgid "64 bit SPARC V9 and above."
8395 msgstr ""
8396
8397 #. type: =item
8398 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2051
8399 msgid "\"ia64\""
8400 msgstr ""
8401
8402 #. type: textblock
8403 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2053
8404 msgid "Intel Itanium."
8405 msgstr ""
8406
8407 #. type: =item
8408 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2055
8409 msgid "\"ppc\""
8410 msgstr ""
8411
8412 #. type: textblock
8413 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2057
8414 msgid "32 bit Power PC."
8415 msgstr ""
8416
8417 #. type: =item
8418 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2059
8419 msgid "\"ppc64\""
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2061
8424 msgid "64 bit Power PC."
8425 msgstr ""
8426
8427 #. type: textblock
8428 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2065
8429 msgid "Libguestfs may return other architecture strings in future."
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2067
8434 msgid "The function works on at least the following types of files:"
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2073
8439 msgid "many types of Un*x and Linux binary"
8440 msgstr ""
8441
8442 #. type: textblock
8443 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2077
8444 msgid "many types of Un*x and Linux shared library"
8445 msgstr ""
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2081
8449 msgid "Windows Win32 and Win64 binaries"
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2085
8454 msgid "Windows Win32 and Win64 DLLs"
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2087
8459 msgid "Win32 binaries and DLLs return C<i386>."
8460 msgstr ""
8461
8462 #. type: textblock
8463 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2089
8464 msgid "Win64 binaries and DLLs return C<x86_64>."
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2093
8469 msgid "Linux kernel modules"
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2097
8474 msgid "Linux new-style initrd images"
8475 msgstr ""
8476
8477 #. type: textblock
8478 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2101
8479 msgid "some non-x86 Linux vmlinuz kernels"
8480 msgstr ""
8481
8482 #. type: textblock
8483 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2105
8484 msgid "What it can't do currently:"
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2111
8489 msgid "static libraries (libfoo.a)"
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2115
8494 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8495 msgstr ""
8496
8497 #. type: textblock
8498 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2119
8499 msgid "x86 Linux vmlinuz kernels"
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2121
8504 msgid ""
8505 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8506 "compressed code, and are horribly hard to unpack.  If you want to find the "
8507 "architecture of a kernel, use the architecture of the associated initrd or "
8508 "kernel module(s) instead."
8509 msgstr ""
8510
8511 #. type: =head2
8512 #: ../fish/guestfish-actions.pod:1319
8513 msgid "filesize"
8514 msgstr ""
8515
8516 #. type: verbatim
8517 #: ../fish/guestfish-actions.pod:1321
8518 #, no-wrap
8519 msgid ""
8520 " filesize file\n"
8521 "\n"
8522 msgstr ""
8523
8524 #. type: textblock
8525 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2139
8526 msgid "This command returns the size of C<file> in bytes."
8527 msgstr ""
8528
8529 #. type: textblock
8530 #: ../fish/guestfish-actions.pod:1325
8531 msgid ""
8532 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8533 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8534 msgstr ""
8535
8536 #. type: =head2
8537 #: ../fish/guestfish-actions.pod:1329
8538 msgid "fill"
8539 msgstr ""
8540
8541 #. type: verbatim
8542 #: ../fish/guestfish-actions.pod:1331
8543 #, no-wrap
8544 msgid ""
8545 " fill c len path\n"
8546 "\n"
8547 msgstr ""
8548
8549 #. type: textblock
8550 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2157
8551 msgid ""
8552 "This command creates a new file called C<path>.  The initial content of the "
8553 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8554 "C<[0..255]>."
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:1337
8559 msgid ""
8560 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8561 "L</truncate-size>.  To create a file with a pattern of repeating bytes use L"
8562 "</fill-pattern>."
8563 msgstr ""
8564
8565 #. type: =head2
8566 #: ../fish/guestfish-actions.pod:1342
8567 msgid "fill-pattern"
8568 msgstr ""
8569
8570 #. type: verbatim
8571 #: ../fish/guestfish-actions.pod:1344
8572 #, no-wrap
8573 msgid ""
8574 " fill-pattern pattern len path\n"
8575 "\n"
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1346
8580 msgid ""
8581 "This function is like L</fill> except that it creates a new file of length "
8582 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern"
8583 " is truncated if necessary to ensure the length of the file is exactly "
8584 "C<len> bytes."
8585 msgstr ""
8586
8587 #. type: =head2
8588 #: ../fish/guestfish-actions.pod:1351
8589 msgid "find"
8590 msgstr ""
8591
8592 #. type: verbatim
8593 #: ../fish/guestfish-actions.pod:1353
8594 #, no-wrap
8595 msgid ""
8596 " find directory\n"
8597 "\n"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2203
8602 msgid ""
8603 "This command lists out all files and directories, recursively, starting at "
8604 "C<directory>.  It is essentially equivalent to running the shell command "
8605 "C<find directory -print> but some post-processing happens on the output, "
8606 "described below."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2208
8611 msgid ""
8612 "This returns a list of strings I<without any prefix>.  Thus if the directory"
8613 " structure was:"
8614 msgstr ""
8615
8616 #. type: verbatim
8617 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2211
8618 #, no-wrap
8619 msgid ""
8620 " /tmp/a\n"
8621 " /tmp/b\n"
8622 " /tmp/c/d\n"
8623 "\n"
8624 msgstr ""
8625
8626 #. type: textblock
8627 #: ../fish/guestfish-actions.pod:1367
8628 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8629 msgstr ""
8630
8631 #. type: verbatim
8632 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2218
8633 #, no-wrap
8634 msgid ""
8635 " a\n"
8636 " b\n"
8637 " c\n"
8638 " c/d\n"
8639 "\n"
8640 msgstr ""
8641
8642 #. type: textblock
8643 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2223
8644 msgid ""
8645 "If C<directory> is not a directory, then this command returns an error."
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2226
8650 msgid "The returned list is sorted."
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1380
8655 msgid "See also L</find0>."
8656 msgstr ""
8657
8658 #. type: =head2
8659 #: ../fish/guestfish-actions.pod:1385
8660 msgid "find0"
8661 msgstr ""
8662
8663 #. type: verbatim
8664 #: ../fish/guestfish-actions.pod:1387
8665 #, no-wrap
8666 msgid ""
8667 " find0 directory (files|-)\n"
8668 "\n"
8669 msgstr ""
8670
8671 #. type: textblock
8672 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2246
8673 msgid ""
8674 "This command lists out all files and directories, recursively, starting at "
8675 "C<directory>, placing the resulting list in the external file called "
8676 "C<files>."
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1393
8681 msgid ""
8682 "This command works the same way as L</find> with the following exceptions:"
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2257
8687 msgid "The resulting list is written to an external file."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2261
8692 msgid ""
8693 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8694 "L<find(1)> option I<-print0>."
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2266
8699 msgid "This command is not limited in the number of names that it can return."
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2271
8704 msgid "The result list is not sorted."
8705 msgstr ""
8706
8707 #. type: =head2
8708 #: ../fish/guestfish-actions.pod:1420
8709 msgid "findfs-label"
8710 msgstr ""
8711
8712 #. type: verbatim
8713 #: ../fish/guestfish-actions.pod:1422
8714 #, no-wrap
8715 msgid ""
8716 " findfs-label label\n"
8717 "\n"
8718 msgstr ""
8719
8720 #. type: textblock
8721 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2285
8722 msgid ""
8723 "This command searches the filesystems and returns the one which has the "
8724 "given label.  An error is returned if no such filesystem can be found."
8725 msgstr ""
8726
8727 #. type: textblock
8728 #: ../fish/guestfish-actions.pod:1428
8729 msgid "To find the label of a filesystem, use L</vfs-label>."
8730 msgstr ""
8731
8732 #. type: =head2
8733 #: ../fish/guestfish-actions.pod:1430
8734 msgid "findfs-uuid"
8735 msgstr ""
8736
8737 #. type: verbatim
8738 #: ../fish/guestfish-actions.pod:1432
8739 #, no-wrap
8740 msgid ""
8741 " findfs-uuid uuid\n"
8742 "\n"
8743 msgstr ""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2302
8747 msgid ""
8748 "This command searches the filesystems and returns the one which has the "
8749 "given UUID.  An error is returned if no such filesystem can be found."
8750 msgstr ""
8751
8752 #. type: textblock
8753 #: ../fish/guestfish-actions.pod:1438
8754 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8755 msgstr ""
8756
8757 #. type: =head2
8758 #: ../fish/guestfish-actions.pod:1440
8759 msgid "fsck"
8760 msgstr ""
8761
8762 #. type: verbatim
8763 #: ../fish/guestfish-actions.pod:1442
8764 #, no-wrap
8765 msgid ""
8766 " fsck fstype device\n"
8767 "\n"
8768 msgstr ""
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2320
8772 msgid ""
8773 "This runs the filesystem checker (fsck) on C<device> which should have "
8774 "filesystem type C<fstype>."
8775 msgstr ""
8776
8777 #. type: textblock
8778 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2323
8779 msgid ""
8780 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8781 "codes from C<fsck>."
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2332
8786 msgid "Multiple status codes can be summed together."
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2336
8791 msgid ""
8792 "A non-zero return code can mean \"success\", for example if errors have been"
8793 " corrected on the filesystem."
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2341
8798 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8799 msgstr ""
8800
8801 #. type: textblock
8802 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2346
8803 msgid ""
8804 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8805 msgstr ""
8806
8807 #. type: =head2
8808 #: ../fish/guestfish-actions.pod:1472
8809 msgid "get-append"
8810 msgstr ""
8811
8812 #. type: verbatim
8813 #: ../fish/guestfish-actions.pod:1474
8814 #, no-wrap
8815 msgid ""
8816 " get-append\n"
8817 "\n"
8818 msgstr ""
8819
8820 #. type: textblock
8821 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2357
8822 msgid ""
8823 "Return the additional kernel options which are added to the guest kernel "
8824 "command line."
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2360
8829 msgid "If C<NULL> then no options are added."
8830 msgstr ""
8831
8832 #. type: =head2
8833 #: ../fish/guestfish-actions.pod:1481
8834 msgid "get-attach-method"
8835 msgstr ""
8836
8837 #. type: verbatim
8838 #: ../fish/guestfish-actions.pod:1483
8839 #, no-wrap
8840 msgid ""
8841 " get-attach-method\n"
8842 "\n"
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1485
8847 msgid "Return the current attach method.  See L</set-attach-method>."
8848 msgstr ""
8849
8850 #. type: =head2
8851 #: ../fish/guestfish-actions.pod:1487
8852 msgid "get-autosync"
8853 msgstr ""
8854
8855 #. type: verbatim
8856 #: ../fish/guestfish-actions.pod:1489
8857 #, no-wrap
8858 msgid ""
8859 " get-autosync\n"
8860 "\n"
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2385
8865 msgid "Get the autosync flag."
8866 msgstr ""
8867
8868 #. type: =head2
8869 #: ../fish/guestfish-actions.pod:1493
8870 msgid "get-direct"
8871 msgstr ""
8872
8873 #. type: verbatim
8874 #: ../fish/guestfish-actions.pod:1495
8875 #, no-wrap
8876 msgid ""
8877 " get-direct\n"
8878 "\n"
8879 msgstr ""
8880
8881 #. type: textblock
8882 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2396
8883 msgid "Return the direct appliance mode flag."
8884 msgstr ""
8885
8886 #. type: =head2
8887 #: ../fish/guestfish-actions.pod:1499
8888 msgid "get-e2label"
8889 msgstr ""
8890
8891 #. type: verbatim
8892 #: ../fish/guestfish-actions.pod:1501
8893 #, no-wrap
8894 msgid ""
8895 " get-e2label device\n"
8896 "\n"
8897 msgstr ""
8898
8899 #. type: textblock
8900 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2415
8901 msgid ""
8902 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8903 msgstr ""
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:1506
8907 msgid ""
8908 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8909 "instead."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:1513
8914 msgid "get-e2uuid"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:1515
8919 #, no-wrap
8920 msgid ""
8921 " get-e2uuid device\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2436
8927 msgid ""
8928 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8929 msgstr ""
8930
8931 #. type: textblock
8932 #: ../fish/guestfish-actions.pod:1520
8933 msgid ""
8934 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8935 "instead."
8936 msgstr ""
8937
8938 #. type: =head2
8939 #: ../fish/guestfish-actions.pod:1527
8940 msgid "get-memsize"
8941 msgstr ""
8942
8943 #. type: verbatim
8944 #: ../fish/guestfish-actions.pod:1529
8945 #, no-wrap
8946 msgid ""
8947 " get-memsize\n"
8948 "\n"
8949 msgstr ""
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2449
8953 msgid ""
8954 "This gets the memory size in megabytes allocated to the qemu subprocess."
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:1534
8959 msgid ""
8960 "If L</set-memsize> was not called on this handle, and if "
8961 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default"
8962 " value for memsize."
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
8967 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4477
8968 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2548
8969 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6886
8970 msgid ""
8971 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8972 msgstr ""
8973
8974 #. type: =head2
8975 #: ../fish/guestfish-actions.pod:1541
8976 msgid "get-network"
8977 msgstr ""
8978
8979 #. type: verbatim
8980 #: ../fish/guestfish-actions.pod:1543
8981 #, no-wrap
8982 msgid ""
8983 " get-network\n"
8984 "\n"
8985 msgstr ""
8986
8987 #. type: textblock
8988 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2468
8989 msgid "This returns the enable network flag."
8990 msgstr ""
8991
8992 #. type: =head2
8993 #: ../fish/guestfish-actions.pod:1547
8994 msgid "get-path"
8995 msgstr ""
8996
8997 #. type: verbatim
8998 #: ../fish/guestfish-actions.pod:1549
8999 #, no-wrap
9000 msgid ""
9001 " get-path\n"
9002 "\n"
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2479
9007 msgid "Return the current search path."
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2481
9012 msgid ""
9013 "This is always non-NULL.  If it wasn't set already, then this will return "
9014 "the default path."
9015 msgstr ""
9016
9017 #. type: =head2
9018 #: ../fish/guestfish-actions.pod:1556
9019 msgid "get-pgroup"
9020 msgstr ""
9021
9022 #. type: verbatim
9023 #: ../fish/guestfish-actions.pod:1558
9024 #, no-wrap
9025 msgid ""
9026 " get-pgroup\n"
9027 "\n"
9028 msgstr ""
9029
9030 #. type: textblock
9031 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2494
9032 msgid "This returns the process group flag."
9033 msgstr ""
9034
9035 #. type: =head2
9036 #: ../fish/guestfish-actions.pod:1562
9037 msgid "get-pid"
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../fish/guestfish-actions.pod:1564
9042 msgid "pid"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../fish/guestfish-actions.pod:1566
9047 #, no-wrap
9048 msgid ""
9049 " get-pid\n"
9050 "\n"
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2505
9055 msgid ""
9056 "Return the process ID of the qemu subprocess.  If there is no qemu "
9057 "subprocess, then this will return an error."
9058 msgstr ""
9059
9060 #. type: textblock
9061 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2508
9062 msgid "This is an internal call used for debugging and testing."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1573
9067 msgid "get-qemu"
9068 msgstr ""
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1575
9072 #, no-wrap
9073 msgid ""
9074 " get-qemu\n"
9075 "\n"
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2519
9080 msgid "Return the current qemu binary."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2521
9085 msgid ""
9086 "This is always non-NULL.  If it wasn't set already, then this will return "
9087 "the default qemu binary name."
9088 msgstr ""
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:1582
9092 msgid "get-recovery-proc"
9093 msgstr ""
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:1584
9097 #, no-wrap
9098 msgid ""
9099 " get-recovery-proc\n"
9100 "\n"
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2534
9105 msgid "Return the recovery process enabled flag."
9106 msgstr ""
9107
9108 #. type: =head2
9109 #: ../fish/guestfish-actions.pod:1588
9110 msgid "get-selinux"
9111 msgstr ""
9112
9113 #. type: verbatim
9114 #: ../fish/guestfish-actions.pod:1590
9115 #, no-wrap
9116 msgid ""
9117 " get-selinux\n"
9118 "\n"
9119 msgstr ""
9120
9121 #. type: textblock
9122 #: ../fish/guestfish-actions.pod:1592
9123 msgid ""
9124 "This returns the current setting of the selinux flag which is passed to the "
9125 "appliance at boot time.  See L</set-selinux>."
9126 msgstr ""
9127
9128 #. type: =head2
9129 #: ../fish/guestfish-actions.pod:1598
9130 msgid "get-smp"
9131 msgstr ""
9132
9133 #. type: verbatim
9134 #: ../fish/guestfish-actions.pod:1600
9135 #, no-wrap
9136 msgid ""
9137 " get-smp\n"
9138 "\n"
9139 msgstr ""
9140
9141 #. type: textblock
9142 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2560
9143 msgid "This returns the number of virtual CPUs assigned to the appliance."
9144 msgstr ""
9145
9146 #. type: =head2
9147 #: ../fish/guestfish-actions.pod:1604
9148 msgid "get-state"
9149 msgstr ""
9150
9151 #. type: verbatim
9152 #: ../fish/guestfish-actions.pod:1606
9153 #, no-wrap
9154 msgid ""
9155 " get-state\n"
9156 "\n"
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2571
9161 msgid ""
9162 "This returns the current state as an opaque integer.  This is only useful "
9163 "for printing debug and internal error messages."
9164 msgstr ""
9165
9166 #. type: textblock
9167 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9168 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9169 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2574
9170 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3922
9171 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4010
9172 msgid "For more information on states, see L<guestfs(3)>."
9173 msgstr ""
9174
9175 #. type: =head2
9176 #: ../fish/guestfish-actions.pod:1613
9177 msgid "get-trace"
9178 msgstr ""
9179
9180 #. type: verbatim
9181 #: ../fish/guestfish-actions.pod:1615
9182 #, no-wrap
9183 msgid ""
9184 " get-trace\n"
9185 "\n"
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2585
9190 msgid "Return the command trace flag."
9191 msgstr ""
9192
9193 #. type: =head2
9194 #: ../fish/guestfish-actions.pod:1619
9195 msgid "get-umask"
9196 msgstr ""
9197
9198 #. type: verbatim
9199 #: ../fish/guestfish-actions.pod:1621
9200 #, no-wrap
9201 msgid ""
9202 " get-umask\n"
9203 "\n"
9204 msgstr ""
9205
9206 #. type: textblock
9207 #: ../fish/guestfish-actions.pod:1623
9208 msgid ""
9209 "Return the current umask.  By default the umask is C<022> unless it has been"
9210 " set by calling L</umask>."
9211 msgstr ""
9212
9213 #. type: =head2
9214 #: ../fish/guestfish-actions.pod:1626
9215 msgid "get-verbose"
9216 msgstr ""
9217
9218 #. type: verbatim
9219 #: ../fish/guestfish-actions.pod:1628
9220 #, no-wrap
9221 msgid ""
9222 " get-verbose\n"
9223 "\n"
9224 msgstr ""
9225
9226 #. type: textblock
9227 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2608
9228 msgid "This returns the verbose messages flag."
9229 msgstr ""
9230
9231 #. type: =head2
9232 #: ../fish/guestfish-actions.pod:1632
9233 msgid "getcon"
9234 msgstr ""
9235
9236 #. type: verbatim
9237 #: ../fish/guestfish-actions.pod:1634
9238 #, no-wrap
9239 msgid ""
9240 " getcon\n"
9241 "\n"
9242 msgstr ""
9243
9244 #. type: textblock
9245 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2619
9246 msgid "This gets the SELinux security context of the daemon."
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:1638
9251 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9252 msgstr ""
9253
9254 #. type: =head2
9255 #: ../fish/guestfish-actions.pod:1641
9256 msgid "getxattr"
9257 msgstr ""
9258
9259 #. type: verbatim
9260 #: ../fish/guestfish-actions.pod:1643
9261 #, no-wrap
9262 msgid ""
9263 " getxattr path name\n"
9264 "\n"
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:1645
9269 msgid ""
9270 "Get a single extended attribute from file C<path> named C<name>.  This call "
9271 "follows symlinks.  If you want to lookup an extended attribute for the "
9272 "symlink itself, use L</lgetxattr>."
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9277 msgid ""
9278 "Normally it is better to get all extended attributes from a file in one go "
9279 "by calling L</getxattrs>.  However some Linux filesystem implementations are"
9280 " buggy and do not provide a way to list out attributes.  For these "
9281 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9282 "attributes you want in advance and call this function."
9283 msgstr ""
9284
9285 #. type: textblock
9286 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9287 #: ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:4143
9288 msgid ""
9289 "Extended attribute values are blobs of binary data.  If there is no extended"
9290 " attribute named C<name>, this returns an error."
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:1659
9295 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9296 msgstr ""
9297
9298 #. type: =head2
9299 #: ../fish/guestfish-actions.pod:1661
9300 msgid "getxattrs"
9301 msgstr ""
9302
9303 #. type: verbatim
9304 #: ../fish/guestfish-actions.pod:1663
9305 #, no-wrap
9306 msgid ""
9307 " getxattrs path\n"
9308 "\n"
9309 msgstr ""
9310
9311 #. type: textblock
9312 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2665
9313 msgid ""
9314 "This call lists the extended attributes of the file or directory C<path>."
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2668
9319 msgid ""
9320 "At the system call level, this is a combination of the L<listxattr(2)> and "
9321 "L<getxattr(2)> calls."
9322 msgstr ""
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:1671
9326 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9327 msgstr ""
9328
9329 #. type: =head2
9330 #: ../fish/guestfish-actions.pod:1673
9331 msgid "glob-expand"
9332 msgstr ""
9333
9334 #. type: verbatim
9335 #: ../fish/guestfish-actions.pod:1675
9336 #, no-wrap
9337 msgid ""
9338 " glob-expand pattern\n"
9339 "\n"
9340 msgstr ""
9341
9342 #. type: textblock
9343 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2685
9344 msgid ""
9345 "This command searches for all the pathnames matching C<pattern> according to"
9346 " the wildcard expansion rules used by the shell."
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2689
9351 msgid ""
9352 "If no paths match, then this returns an empty list (note: not an error)."
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2692
9357 msgid ""
9358 "It is just a wrapper around the C L<glob(3)> function with flags "
9359 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9360 msgstr ""
9361
9362 #. type: =head2
9363 #: ../fish/guestfish-actions.pod:1688
9364 msgid "grep"
9365 msgstr ""
9366
9367 #. type: verbatim
9368 #: ../fish/guestfish-actions.pod:1690
9369 #, no-wrap
9370 msgid ""
9371 " grep regex path\n"
9372 "\n"
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2709
9377 msgid ""
9378 "This calls the external C<grep> program and returns the matching lines."
9379 msgstr ""
9380
9381 #. type: =head2
9382 #: ../fish/guestfish-actions.pod:1698
9383 msgid "grepi"
9384 msgstr ""
9385
9386 #. type: verbatim
9387 #: ../fish/guestfish-actions.pod:1700
9388 #, no-wrap
9389 msgid ""
9390 " grepi regex path\n"
9391 "\n"
9392 msgstr ""
9393
9394 #. type: textblock
9395 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2728
9396 msgid ""
9397 "This calls the external C<grep -i> program and returns the matching lines."
9398 msgstr ""
9399
9400 #. type: =head2
9401 #: ../fish/guestfish-actions.pod:1708
9402 msgid "grub-install"
9403 msgstr ""
9404
9405 #. type: verbatim
9406 #: ../fish/guestfish-actions.pod:1710
9407 #, no-wrap
9408 msgid ""
9409 " grub-install root device\n"
9410 "\n"
9411 msgstr ""
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2747
9415 msgid ""
9416 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9417 "with the root directory being C<root>."
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2756
9422 msgid ""
9423 "There is currently no way in the API to install grub2, which is used by most"
9424 " modern Linux guests.  It is possible to run the grub2 command from the "
9425 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2763
9430 msgid ""
9431 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9432 "compatible with itself, so this only works in rather narrow circumstances.  "
9433 "Careful testing with each guest version is advisable."
9434 msgstr ""
9435
9436 #. type: textblock
9437 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2770
9438 msgid ""
9439 "If grub-install reports the error \"No suitable drive was found in the "
9440 "generated device map.\" it may be that you need to create a "
9441 "C</boot/grub/device.map> file first that contains the mapping between grub "
9442 "device names and Linux device names.  It is usually sufficient to create a "
9443 "file containing:"
9444 msgstr ""
9445
9446 #. type: verbatim
9447 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2777
9448 #, no-wrap
9449 msgid ""
9450 " (hd0) /dev/vda\n"
9451 "\n"
9452 msgstr ""
9453
9454 #. type: textblock
9455 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2779
9456 msgid "replacing C</dev/vda> with the name of the installation device."
9457 msgstr ""
9458
9459 #. type: =head2
9460 #: ../fish/guestfish-actions.pod:1748
9461 msgid "head"
9462 msgstr ""
9463
9464 #. type: verbatim
9465 #: ../fish/guestfish-actions.pod:1750
9466 #, no-wrap
9467 msgid ""
9468 " head path\n"
9469 "\n"
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2793
9474 msgid ""
9475 "This command returns up to the first 10 lines of a file as a list of "
9476 "strings."
9477 msgstr ""
9478
9479 #. type: =head2
9480 #: ../fish/guestfish-actions.pod:1758
9481 msgid "head-n"
9482 msgstr ""
9483
9484 #. type: verbatim
9485 #: ../fish/guestfish-actions.pod:1760
9486 #, no-wrap
9487 msgid ""
9488 " head-n nrlines path\n"
9489 "\n"
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2812
9494 msgid ""
9495 "If the parameter C<nrlines> is a positive number, this returns the first "
9496 "C<nrlines> lines of the file C<path>."
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2815
9501 msgid ""
9502 "If the parameter C<nrlines> is a negative number, this returns lines from "
9503 "the file C<path>, excluding the last C<nrlines> lines."
9504 msgstr ""
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4867
9508 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:7474
9509 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9510 msgstr ""
9511
9512 #. type: =head2
9513 #: ../fish/guestfish-actions.pod:1773
9514 msgid "hexdump"
9515 msgstr ""
9516
9517 #. type: verbatim
9518 #: ../fish/guestfish-actions.pod:1775
9519 #, no-wrap
9520 msgid ""
9521 " hexdump path\n"
9522 "\n"
9523 msgstr ""
9524
9525 #. type: textblock
9526 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2835
9527 msgid ""
9528 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9529 "readable, canonical hex dump of the file."
9530 msgstr ""
9531
9532 #. type: =head2
9533 #: ../fish/guestfish-actions.pod:1783
9534 msgid "initrd-cat"
9535 msgstr ""
9536
9537 #. type: verbatim
9538 #: ../fish/guestfish-actions.pod:1785
9539 #, no-wrap
9540 msgid ""
9541 " initrd-cat initrdpath filename\n"
9542 "\n"
9543 msgstr ""
9544
9545 #. type: textblock
9546 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2854
9547 msgid ""
9548 "This command unpacks the file C<filename> from the initrd file called "
9549 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9550 "character."
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2858
9555 msgid ""
9556 "For example, in guestfish you could use the following command to examine the"
9557 " boot script (usually called C</init>)  contained in a Linux initrd or "
9558 "initramfs image:"
9559 msgstr ""
9560
9561 #. type: verbatim
9562 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2862
9563 #, no-wrap
9564 msgid ""
9565 " initrd-cat /boot/initrd-<version>.img init\n"
9566 "\n"
9567 msgstr ""
9568
9569 #. type: textblock
9570 #: ../fish/guestfish-actions.pod:1797
9571 msgid "See also L</initrd-list>."
9572 msgstr ""
9573
9574 #. type: =head2
9575 #: ../fish/guestfish-actions.pod:1802
9576 msgid "initrd-list"
9577 msgstr ""
9578
9579 #. type: verbatim
9580 #: ../fish/guestfish-actions.pod:1804
9581 #, no-wrap
9582 msgid ""
9583 " initrd-list path\n"
9584 "\n"
9585 msgstr ""
9586
9587 #. type: textblock
9588 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2881
9589 msgid "This command lists out files contained in an initrd."
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2883
9594 msgid ""
9595 "The files are listed without any initial C</> character.  The files are "
9596 "listed in the order they appear (not necessarily alphabetical).  Directory "
9597 "names are listed as separate items."
9598 msgstr ""
9599
9600 #. type: textblock
9601 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2887
9602 msgid ""
9603 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9604 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9605 "files)."
9606 msgstr ""
9607
9608 #. type: =head2
9609 #: ../fish/guestfish-actions.pod:1816
9610 msgid "inotify-add-watch"
9611 msgstr ""
9612
9613 #. type: verbatim
9614 #: ../fish/guestfish-actions.pod:1818
9615 #, no-wrap
9616 msgid ""
9617 " inotify-add-watch path mask\n"
9618 "\n"
9619 msgstr ""
9620
9621 #. type: textblock
9622 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2904
9623 msgid "Watch C<path> for the events listed in C<mask>."
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2906
9628 msgid ""
9629 "Note that if C<path> is a directory then events within that directory are "
9630 "watched, but this does I<not> happen recursively (in subdirectories)."
9631 msgstr ""
9632
9633 #. type: textblock
9634 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2910
9635 msgid ""
9636 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9637 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9638 msgstr ""
9639
9640 #. type: =head2
9641 #: ../fish/guestfish-actions.pod:1830
9642 msgid "inotify-close"
9643 msgstr ""
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:1832
9647 #, no-wrap
9648 msgid ""
9649 " inotify-close\n"
9650 "\n"
9651 msgstr ""
9652
9653 #. type: textblock
9654 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2923
9655 msgid ""
9656 "This closes the inotify handle which was previously opened by inotify_init."
9657 "  It removes all watches, throws away any pending events, and deallocates "
9658 "all resources."
9659 msgstr ""
9660
9661 #. type: =head2
9662 #: ../fish/guestfish-actions.pod:1838
9663 msgid "inotify-files"
9664 msgstr ""
9665
9666 #. type: verbatim
9667 #: ../fish/guestfish-actions.pod:1840
9668 #, no-wrap
9669 msgid ""
9670 " inotify-files\n"
9671 "\n"
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:1842
9676 msgid ""
9677 "This function is a helpful wrapper around L</inotify-read> which just "
9678 "returns a list of pathnames of objects that were touched.  The returned "
9679 "pathnames are sorted and deduplicated."
9680 msgstr ""
9681
9682 #. type: =head2
9683 #: ../fish/guestfish-actions.pod:1846
9684 msgid "inotify-init"
9685 msgstr ""
9686
9687 #. type: verbatim
9688 #: ../fish/guestfish-actions.pod:1848
9689 #, no-wrap
9690 msgid ""
9691 " inotify-init maxevents\n"
9692 "\n"
9693 msgstr ""
9694
9695 #. type: textblock
9696 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2952
9697 msgid ""
9698 "This command creates a new inotify handle.  The inotify subsystem can be "
9699 "used to notify events which happen to objects in the guest filesystem."
9700 msgstr ""
9701
9702 #. type: textblock
9703 #: ../fish/guestfish-actions.pod:1854
9704 msgid ""
9705 "C<maxevents> is the maximum number of events which will be queued up between"
9706 " calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>,"
9707 " then the kernel (or previously set)  default is used.  For Linux 2.6.29 the"
9708 " default was 16384 events.  Beyond this limit, the kernel throws away "
9709 "events, but records the fact that it threw them away by setting a flag "
9710 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:1864
9715 msgid ""
9716 "Before any events are generated, you have to add some watches to the "
9717 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and L"
9718 "</inotify-watch-all>."
9719 msgstr ""
9720
9721 #. type: textblock
9722 #: ../fish/guestfish-actions.pod:1870
9723 msgid ""
9724 "Queued up events should be read periodically by calling L</inotify-read> (or"
9725 " L</inotify-files> which is just a helpful wrapper around L</inotify-read>)."
9726 "  If you don't read the events out often enough then you risk the internal "
9727 "queue overflowing."
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:1877
9732 msgid ""
9733 "The handle should be closed after use by calling L</inotify-close>.  This "
9734 "also removes any watches automatically."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2983
9739 msgid ""
9740 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9741 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9742 "that there is one global inotify handle per libguestfs instance."
9743 msgstr ""
9744
9745 #. type: =head2
9746 #: ../fish/guestfish-actions.pod:1886
9747 msgid "inotify-read"
9748 msgstr ""
9749
9750 #. type: verbatim
9751 #: ../fish/guestfish-actions.pod:1888
9752 #, no-wrap
9753 msgid ""
9754 " inotify-read\n"
9755 "\n"
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:2997
9760 msgid ""
9761 "Return the complete queue of events that have happened since the previous "
9762 "read call."
9763 msgstr ""
9764
9765 #. type: textblock
9766 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3000
9767 msgid "If no events have happened, this returns an empty list."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3002
9772 msgid ""
9773 "I<Note>: In order to make sure that all events have been read, you must call"
9774 " this function repeatedly until it returns an empty list.  The reason is "
9775 "that the call will read events up to the maximum appliance-to-host message "
9776 "size and leave remaining events in the queue."
9777 msgstr ""
9778
9779 #. type: =head2
9780 #: ../fish/guestfish-actions.pod:1901
9781 msgid "inotify-rm-watch"
9782 msgstr ""
9783
9784 #. type: verbatim
9785 #: ../fish/guestfish-actions.pod:1903
9786 #, no-wrap
9787 msgid ""
9788 " inotify-rm-watch wd\n"
9789 "\n"
9790 msgstr ""
9791
9792 #. type: textblock
9793 #: ../fish/guestfish-actions.pod:1905
9794 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9795 msgstr ""
9796
9797 #. type: =head2
9798 #: ../fish/guestfish-actions.pod:1908
9799 msgid "inspect-get-arch"
9800 msgstr ""
9801
9802 #. type: verbatim
9803 #: ../fish/guestfish-actions.pod:1910
9804 #, no-wrap
9805 msgid ""
9806 " inspect-get-arch root\n"
9807 "\n"
9808 msgstr ""
9809
9810 #. type: textblock
9811 #: ../fish/guestfish-actions.pod:1912
9812 msgid ""
9813 "This returns the architecture of the inspected operating system.  The "
9814 "possible return values are listed under L</file-architecture>."
9815 msgstr ""
9816
9817 #. type: textblock
9818 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3037
9819 msgid ""
9820 "If the architecture could not be determined, then the string C<unknown> is "
9821 "returned."
9822 msgstr ""
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
9826 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
9827 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
9828 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
9829 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
9830 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
9831 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
9832 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
9833 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3040
9834 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3246
9835 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3396
9836 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3508
9837 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3582
9838 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3646
9839 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3683
9840 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3717
9841 #: ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3860
9842 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9843 msgstr ""
9844
9845 #. type: =head2
9846 #: ../fish/guestfish-actions.pod:1921
9847 msgid "inspect-get-distro"
9848 msgstr ""
9849
9850 #. type: verbatim
9851 #: ../fish/guestfish-actions.pod:1923
9852 #, no-wrap
9853 msgid ""
9854 " inspect-get-distro root\n"
9855 "\n"
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3053
9860 msgid ""
9861 "This returns the distro (distribution) of the inspected operating system."
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3056
9866 msgid "Currently defined distros are:"
9867 msgstr ""
9868
9869 #. type: =item
9870 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3060
9871 msgid "\"archlinux\""
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3062
9876 msgid "Arch Linux."
9877 msgstr ""
9878
9879 #. type: =item
9880 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3064
9881 msgid "\"centos\""
9882 msgstr ""
9883
9884 #. type: textblock
9885 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3066
9886 msgid "CentOS."
9887 msgstr ""
9888
9889 #. type: =item
9890 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3068
9891 msgid "\"debian\""
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3070
9896 msgid "Debian."
9897 msgstr ""
9898
9899 #. type: =item
9900 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3072
9901 msgid "\"fedora\""
9902 msgstr ""
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3074
9906 msgid "Fedora."
9907 msgstr ""
9908
9909 #. type: =item
9910 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3076
9911 msgid "\"gentoo\""
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3078
9916 msgid "Gentoo."
9917 msgstr ""
9918
9919 #. type: =item
9920 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3080
9921 msgid "\"linuxmint\""
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3082
9926 msgid "Linux Mint."
9927 msgstr ""
9928
9929 #. type: =item
9930 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3084
9931 msgid "\"mageia\""
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3086
9936 msgid "Mageia."
9937 msgstr ""
9938
9939 #. type: =item
9940 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3088
9941 msgid "\"mandriva\""
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3090
9946 msgid "Mandriva."
9947 msgstr ""
9948
9949 #. type: =item
9950 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3092
9951 msgid "\"meego\""
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3094
9956 msgid "MeeGo."
9957 msgstr ""
9958
9959 #. type: =item
9960 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3096
9961 msgid "\"opensuse\""
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3098
9966 msgid "OpenSUSE."
9967 msgstr ""
9968
9969 #. type: =item
9970 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3100
9971 msgid "\"pardus\""
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3102
9976 msgid "Pardus."
9977 msgstr ""
9978
9979 #. type: =item
9980 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3104
9981 msgid "\"redhat-based\""
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3106
9986 msgid "Some Red Hat-derived distro."
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3108
9991 msgid "\"rhel\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3110
9996 msgid "Red Hat Enterprise Linux."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3112
10001 msgid "\"scientificlinux\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3114
10006 msgid "Scientific Linux."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3116
10011 msgid "\"slackware\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3118
10016 msgid "Slackware."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3120
10021 msgid "\"ttylinux\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3122
10026 msgid "ttylinux."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3124
10031 msgid "\"ubuntu\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3126
10036 msgid "Ubuntu."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10041 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3128
10042 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3617
10043 msgid "\"unknown\""
10044 msgstr ""
10045
10046 #. type: textblock
10047 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3130
10048 msgid "The distro could not be determined."
10049 msgstr ""
10050
10051 #. type: =item
10052 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10053 #: ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3605
10054 msgid "\"windows\""
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3134
10059 msgid ""
10060 "Windows does not have distributions.  This string is returned if the OS type"
10061 " is Windows."
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10066 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3139
10067 #: ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3623
10068 msgid ""
10069 "Future versions of libguestfs may return other strings here.  The caller "
10070 "should be prepared to handle any string."
10071 msgstr ""
10072
10073 #. type: =head2
10074 #: ../fish/guestfish-actions.pod:2016
10075 msgid "inspect-get-drive-mappings"
10076 msgstr ""
10077
10078 #. type: verbatim
10079 #: ../fish/guestfish-actions.pod:2018
10080 #, no-wrap
10081 msgid ""
10082 " inspect-get-drive-mappings root\n"
10083 "\n"
10084 msgstr ""
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3155
10088 msgid ""
10089 "This call is useful for Windows which uses a primitive system of assigning "
10090 "drive letters (like \"C:\") to partitions.  This inspection API examines the"
10091 " Windows Registry to find out how disks/partitions are mapped to drive "
10092 "letters, and returns a hash table as in the example below:"
10093 msgstr ""
10094
10095 #. type: verbatim
10096 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3161
10097 #, no-wrap
10098 msgid ""
10099 " C      =>     /dev/vda2\n"
10100 " E      =>     /dev/vdb1\n"
10101 " F      =>     /dev/vdc1\n"
10102 "\n"
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3165
10107 msgid ""
10108 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10109 "and just contains the drive letter, without the customary colon separator "
10110 "character."
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3169
10115 msgid ""
10116 "In future we may support other operating systems that also used drive "
10117 "letters, but the keys for those might not be case insensitive and might be "
10118 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>,"
10119 " C<h1> etc."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3174
10124 msgid ""
10125 "For Windows guests, currently only hard drive mappings are returned.  "
10126 "Removable disks (eg. DVD-ROMs) are ignored."
10127 msgstr ""
10128
10129 #. type: textblock
10130 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3177
10131 msgid ""
10132 "For guests that do not use drive mappings, or if the drive mappings could "
10133 "not be determined, this returns an empty hash table."
10134 msgstr ""
10135
10136 #. type: textblock
10137 #: ../fish/guestfish-actions.pod:2045
10138 msgid ""
10139 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10140 "get-mountpoints>, L</inspect-get-filesystems>."
10141 msgstr ""
10142
10143 #. type: =head2
10144 #: ../fish/guestfish-actions.pod:2049
10145 msgid "inspect-get-filesystems"
10146 msgstr ""
10147
10148 #. type: verbatim
10149 #: ../fish/guestfish-actions.pod:2051
10150 #, no-wrap
10151 msgid ""
10152 " inspect-get-filesystems root\n"
10153 "\n"
10154 msgstr ""
10155
10156 #. type: textblock
10157 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3198
10158 msgid ""
10159 "This returns a list of all the filesystems that we think are associated with"
10160 " this operating system.  This includes the root filesystem, other ordinary "
10161 "filesystems, and non-mounted devices like swap partitions."
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3203
10166 msgid ""
10167 "In the case of a multi-boot virtual machine, it is possible for a filesystem"
10168 " to be shared between operating systems."
10169 msgstr ""
10170
10171 #. type: textblock
10172 #: ../fish/guestfish-actions.pod:2061
10173 msgid ""
10174 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10175 "get-mountpoints>."
10176 msgstr ""
10177
10178 #. type: =head2
10179 #: ../fish/guestfish-actions.pod:2064
10180 msgid "inspect-get-format"
10181 msgstr ""
10182
10183 #. type: verbatim
10184 #: ../fish/guestfish-actions.pod:2066
10185 #, no-wrap
10186 msgid ""
10187 " inspect-get-format root\n"
10188 "\n"
10189 msgstr ""
10190
10191 #. type: textblock
10192 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3221
10193 msgid ""
10194 "This returns the format of the inspected operating system.  You can use it "
10195 "to detect install images, live CDs and similar."
10196 msgstr ""
10197
10198 #. type: textblock
10199 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3224
10200 msgid "Currently defined formats are:"
10201 msgstr ""
10202
10203 #. type: =item
10204 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3228
10205 msgid "\"installed\""
10206 msgstr ""
10207
10208 #. type: textblock
10209 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3230
10210 msgid "This is an installed operating system."
10211 msgstr ""
10212
10213 #. type: =item
10214 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3232
10215 msgid "\"installer\""
10216 msgstr ""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3234
10220 msgid ""
10221 "The disk image being inspected is not an installed operating system, but a "
10222 "I<bootable> install disk, live CD, or similar."
10223 msgstr ""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3239
10227 msgid "The format of this disk image is not known."
10228 msgstr ""
10229
10230 #. type: =head2
10231 #: ../fish/guestfish-actions.pod:2095
10232 msgid "inspect-get-hostname"
10233 msgstr ""
10234
10235 #. type: verbatim
10236 #: ../fish/guestfish-actions.pod:2097
10237 #, no-wrap
10238 msgid ""
10239 " inspect-get-hostname root\n"
10240 "\n"
10241 msgstr ""
10242
10243 #. type: textblock
10244 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3259
10245 msgid ""
10246 "This function returns the hostname of the operating system as found by "
10247 "inspection of the guest's configuration files."
10248 msgstr ""
10249
10250 #. type: textblock
10251 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3262
10252 msgid ""
10253 "If the hostname could not be determined, then the string C<unknown> is "
10254 "returned."
10255 msgstr ""
10256
10257 #. type: =head2
10258 #: ../fish/guestfish-actions.pod:2107
10259 msgid "inspect-get-icon"
10260 msgstr ""
10261
10262 #. type: verbatim
10263 #: ../fish/guestfish-actions.pod:2109
10264 #, no-wrap
10265 msgid ""
10266 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10267 "\n"
10268 msgstr ""
10269
10270 #. type: textblock
10271 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3288
10272 msgid ""
10273 "This function returns an icon corresponding to the inspected operating "
10274 "system.  The icon is returned as a buffer containing a PNG image (re-encoded"
10275 " to PNG if necessary)."
10276 msgstr ""
10277
10278 #. type: textblock
10279 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3292
10280 msgid ""
10281 "If it was not possible to get an icon this function returns a zero-length "
10282 "(non-NULL) buffer.  I<Callers must check for this case>."
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3295
10287 msgid ""
10288 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10289 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10290 "this file will be returned.  You can disable favicons by passing the "
10291 "optional C<favicon> boolean as false (default is true)."
10292 msgstr ""
10293
10294 #. type: textblock
10295 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3301
10296 msgid ""
10297 "If finding the favicon fails, then we look in other places in the guest for "
10298 "a suitable icon."
10299 msgstr ""
10300
10301 #. type: textblock
10302 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3304
10303 msgid ""
10304 "If the optional C<highquality> boolean is true then only high quality icons "
10305 "are returned, which means only icons of high resolution with an alpha "
10306 "channel.  The default (false) is to return any icon we can, even if it is of"
10307 " substandard quality."
10308 msgstr ""
10309
10310 #. type: textblock
10311 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3315
10312 msgid ""
10313 "Unlike most other inspection API calls, the guest's disks must be mounted up"
10314 " before you call this, since it needs to read information from the guest "
10315 "filesystem during the call."
10316 msgstr ""
10317
10318 #. type: textblock
10319 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3321
10320 msgid ""
10321 "B<Security:> The icon data comes from the untrusted guest, and should be "
10322 "treated with caution.  PNG files have been known to contain exploits.  "
10323 "Ensure that libpng (or other relevant libraries) are fully up to date before"
10324 " trying to process or display the icon."
10325 msgstr ""
10326
10327 #. type: textblock
10328 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3329
10329 msgid ""
10330 "The PNG image returned can be any size.  It might not be square.  Libguestfs"
10331 " tries to return the largest, highest quality icon available.  The "
10332 "application must scale the icon to the required size."
10333 msgstr ""
10334
10335 #. type: textblock
10336 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3336
10337 msgid ""
10338 "Extracting icons from Windows guests requires the external C<wrestool> "
10339 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10340 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10341 "installed separately."
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3343
10346 msgid ""
10347 "Operating system icons are usually trademarks.  Seek legal advice before "
10348 "using trademarks in applications."
10349 msgstr ""
10350
10351 #. type: =head2
10352 #: ../fish/guestfish-actions.pod:2173
10353 msgid "inspect-get-major-version"
10354 msgstr ""
10355
10356 #. type: verbatim
10357 #: ../fish/guestfish-actions.pod:2175
10358 #, no-wrap
10359 msgid ""
10360 " inspect-get-major-version root\n"
10361 "\n"
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3384
10366 msgid ""
10367 "This returns the major version number of the inspected operating system."
10368 msgstr ""
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3387
10372 msgid ""
10373 "Windows uses a consistent versioning scheme which is I<not> reflected in the"
10374 " popular public names used by the operating system.  Notably the operating "
10375 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10376 "1).  You can find out the real versions corresponding to releases of Windows"
10377 " by consulting Wikipedia or MSDN."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10382 #: ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3411
10383 msgid "If the version could not be determined, then C<0> is returned."
10384 msgstr ""
10385
10386 #. type: =head2
10387 #: ../fish/guestfish-actions.pod:2191
10388 msgid "inspect-get-minor-version"
10389 msgstr ""
10390
10391 #. type: verbatim
10392 #: ../fish/guestfish-actions.pod:2193
10393 #, no-wrap
10394 msgid ""
10395 " inspect-get-minor-version root\n"
10396 "\n"
10397 msgstr ""
10398
10399 #. type: textblock
10400 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3408
10401 msgid ""
10402 "This returns the minor version number of the inspected operating system."
10403 msgstr ""
10404
10405 #. type: textblock
10406 #: ../fish/guestfish-actions.pod:2200
10407 msgid ""
10408 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10409 "get-major-version>."
10410 msgstr ""
10411
10412 #. type: =head2
10413 #: ../fish/guestfish-actions.pod:2203
10414 msgid "inspect-get-mountpoints"
10415 msgstr ""
10416
10417 #. type: verbatim
10418 #: ../fish/guestfish-actions.pod:2205
10419 #, no-wrap
10420 msgid ""
10421 " inspect-get-mountpoints root\n"
10422 "\n"
10423 msgstr ""
10424
10425 #. type: textblock
10426 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3426
10427 msgid ""
10428 "This returns a hash of where we think the filesystems associated with this "
10429 "operating system should be mounted.  Callers should note that this is at "
10430 "best an educated guess made by reading configuration files such as "
10431 "C</etc/fstab>.  I<In particular note> that this may return filesystems which"
10432 " are non-existent or not mountable and callers should be prepared to handle "
10433 "or ignore failures if they try to mount them."
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3435
10438 msgid ""
10439 "Each element in the returned hashtable has a key which is the path of the "
10440 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10441 "mounted there (eg. C</dev/sda1>)."
10442 msgstr ""
10443
10444 #. type: textblock
10445 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3440
10446 msgid ""
10447 "Non-mounted devices such as swap devices are I<not> returned in this list."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2224
10452 msgid ""
10453 "For operating systems like Windows which still use drive letters, this call "
10454 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10455 "information about the mapping of drive letters to partitions, see L"
10456 "</inspect-get-drive-mappings>."
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2230
10461 msgid ""
10462 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10463 "get-filesystems>."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2233
10468 msgid "inspect-get-package-format"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2235
10473 #, no-wrap
10474 msgid ""
10475 " inspect-get-package-format root\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2237
10481 msgid ""
10482 "This function and L</inspect-get-package-management> return the package "
10483 "format and package management tool used by the inspected operating system.  "
10484 "For example for Fedora these functions would return C<rpm> (package format) "
10485 "and C<yum> (package management)."
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3472
10490 msgid ""
10491 "This returns the string C<unknown> if we could not determine the package "
10492 "format I<or> if the operating system does not have a real packaging system "
10493 "(eg. Windows)."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3476
10498 msgid ""
10499 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10500 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10501 msgstr ""
10502
10503 #. type: =head2
10504 #: ../fish/guestfish-actions.pod:2253
10505 msgid "inspect-get-package-management"
10506 msgstr ""
10507
10508 #. type: verbatim
10509 #: ../fish/guestfish-actions.pod:2255
10510 #, no-wrap
10511 msgid ""
10512 " inspect-get-package-management root\n"
10513 "\n"
10514 msgstr ""
10515
10516 #. type: textblock
10517 #: ../fish/guestfish-actions.pod:2257
10518 msgid ""
10519 "L</inspect-get-package-format> and this function return the package format "
10520 "and package management tool used by the inspected operating system.  For "
10521 "example for Fedora these functions would return C<rpm> (package format) and "
10522 "C<yum> (package management)."
10523 msgstr ""
10524
10525 #. type: textblock
10526 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3499
10527 msgid ""
10528 "This returns the string C<unknown> if we could not determine the package "
10529 "management tool I<or> if the operating system does not have a real packaging"
10530 " system (eg. Windows)."
10531 msgstr ""
10532
10533 #. type: textblock
10534 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3503
10535 msgid ""
10536 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10537 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10538 "versions of libguestfs may return other strings."
10539 msgstr ""
10540
10541 #. type: =head2
10542 #: ../fish/guestfish-actions.pod:2274
10543 msgid "inspect-get-product-name"
10544 msgstr ""
10545
10546 #. type: verbatim
10547 #: ../fish/guestfish-actions.pod:2276
10548 #, no-wrap
10549 msgid ""
10550 " inspect-get-product-name root\n"
10551 "\n"
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3521
10556 msgid ""
10557 "This returns the product name of the inspected operating system.  The "
10558 "product name is generally some freeform string which can be displayed to the"
10559 " user, but should not be parsed by programs."
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3526
10564 msgid ""
10565 "If the product name could not be determined, then the string C<unknown> is "
10566 "returned."
10567 msgstr ""
10568
10569 #. type: =head2
10570 #: ../fish/guestfish-actions.pod:2288
10571 msgid "inspect-get-product-variant"
10572 msgstr ""
10573
10574 #. type: verbatim
10575 #: ../fish/guestfish-actions.pod:2290
10576 #, no-wrap
10577 msgid ""
10578 " inspect-get-product-variant root\n"
10579 "\n"
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3542
10584 msgid "This returns the product variant of the inspected operating system."
10585 msgstr ""
10586
10587 #. type: textblock
10588 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3545
10589 msgid ""
10590 "For Windows guests, this returns the contents of the Registry key "
10591 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType>"
10592 " which is usually a string such as C<Client> or C<Server> (other values are "
10593 "possible).  This can be used to distinguish consumer and enterprise versions"
10594 " of Windows that have the same version number (for example, Windows 7 and "
10595 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10596 "the latter is C<Server>)."
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3554
10601 msgid ""
10602 "For enterprise Linux guests, in future we intend this to return the product "
10603 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10604 "implemented at present."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3558
10609 msgid ""
10610 "If the product variant could not be determined, then the string C<unknown> "
10611 "is returned."
10612 msgstr ""
10613
10614 #. type: textblock
10615 #: ../fish/guestfish-actions.pod:2311
10616 msgid ""
10617 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10618 "get-product-name>, L</inspect-get-major-version>."
10619 msgstr ""
10620
10621 #. type: =head2
10622 #: ../fish/guestfish-actions.pod:2315
10623 msgid "inspect-get-roots"
10624 msgstr ""
10625
10626 #. type: verbatim
10627 #: ../fish/guestfish-actions.pod:2317
10628 #, no-wrap
10629 msgid ""
10630 " inspect-get-roots\n"
10631 "\n"
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:2319
10636 msgid ""
10637 "This function is a convenient way to get the list of root devices, as "
10638 "returned from a previous call to L</inspect-os>, but without redoing the "
10639 "whole inspection process."
10640 msgstr ""
10641
10642 #. type: textblock
10643 #: ../fish/guestfish-actions.pod:2323
10644 msgid ""
10645 "This returns an empty list if either no root devices were found or the "
10646 "caller has not called L</inspect-os>."
10647 msgstr ""
10648
10649 #. type: =head2
10650 #: ../fish/guestfish-actions.pod:2328
10651 msgid "inspect-get-type"
10652 msgstr ""
10653
10654 #. type: verbatim
10655 #: ../fish/guestfish-actions.pod:2330
10656 #, no-wrap
10657 msgid ""
10658 " inspect-get-type root\n"
10659 "\n"
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3596
10664 msgid ""
10665 "This returns the type of the inspected operating system.  Currently defined "
10666 "types are:"
10667 msgstr ""
10668
10669 #. type: =item
10670 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3601
10671 msgid "\"linux\""
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3603
10676 msgid "Any Linux-based operating system."
10677 msgstr ""
10678
10679 #. type: textblock
10680 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3607
10681 msgid "Any Microsoft Windows operating system."
10682 msgstr ""
10683
10684 #. type: =item
10685 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3609
10686 msgid "\"freebsd\""
10687 msgstr ""
10688
10689 #. type: textblock
10690 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3611
10691 msgid "FreeBSD."
10692 msgstr ""
10693
10694 #. type: =item
10695 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3613
10696 msgid "\"netbsd\""
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3615
10701 msgid "NetBSD."
10702 msgstr ""
10703
10704 #. type: textblock
10705 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3619
10706 msgid "The operating system type could not be determined."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2364
10711 msgid "inspect-get-windows-current-control-set"
10712 msgstr ""
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2366
10716 #, no-wrap
10717 msgid ""
10718 " inspect-get-windows-current-control-set root\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3639
10724 msgid ""
10725 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10726 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3642
10731 msgid ""
10732 "This call assumes that the guest is Windows and that the Registry could be "
10733 "examined by inspection.  If this is not the case then an error is returned."
10734 msgstr ""
10735
10736 #. type: =head2
10737 #: ../fish/guestfish-actions.pod:2377
10738 msgid "inspect-get-windows-systemroot"
10739 msgstr ""
10740
10741 #. type: verbatim
10742 #: ../fish/guestfish-actions.pod:2379
10743 #, no-wrap
10744 msgid ""
10745 " inspect-get-windows-systemroot root\n"
10746 "\n"
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3659
10751 msgid ""
10752 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10753 "is a directory path such as C</WINDOWS>."
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3662
10758 msgid ""
10759 "This call assumes that the guest is Windows and that the systemroot could be"
10760 " determined by inspection.  If this is not the case then an error is "
10761 "returned."
10762 msgstr ""
10763
10764 #. type: =head2
10765 #: ../fish/guestfish-actions.pod:2390
10766 msgid "inspect-is-live"
10767 msgstr ""
10768
10769 #. type: verbatim
10770 #: ../fish/guestfish-actions.pod:2392
10771 #, no-wrap
10772 msgid ""
10773 " inspect-is-live root\n"
10774 "\n"
10775 msgstr ""
10776
10777 #. type: textblock
10778 #: ../fish/guestfish-actions.pod:2394
10779 msgid ""
10780 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10781 "then this returns true if a live image was detected on the disk."
10782 msgstr ""
10783
10784 #. type: =head2
10785 #: ../fish/guestfish-actions.pod:2400
10786 msgid "inspect-is-multipart"
10787 msgstr ""
10788
10789 #. type: verbatim
10790 #: ../fish/guestfish-actions.pod:2402
10791 #, no-wrap
10792 msgid ""
10793 " inspect-is-multipart root\n"
10794 "\n"
10795 msgstr ""
10796
10797 #. type: textblock
10798 #: ../fish/guestfish-actions.pod:2404
10799 msgid ""
10800 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10801 "then this returns true if the disk is part of a set."
10802 msgstr ""
10803
10804 #. type: =head2
10805 #: ../fish/guestfish-actions.pod:2410
10806 msgid "inspect-is-netinst"
10807 msgstr ""
10808
10809 #. type: verbatim
10810 #: ../fish/guestfish-actions.pod:2412
10811 #, no-wrap
10812 msgid ""
10813 " inspect-is-netinst root\n"
10814 "\n"
10815 msgstr ""
10816
10817 #. type: textblock
10818 #: ../fish/guestfish-actions.pod:2414
10819 msgid ""
10820 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10821 "then this returns true if the disk is a network installer, ie. not a self-"
10822 "contained install CD but one which is likely to require network access to "
10823 "complete the install."
10824 msgstr ""
10825
10826 #. type: =head2
10827 #: ../fish/guestfish-actions.pod:2422
10828 msgid "inspect-list-applications"
10829 msgstr ""
10830
10831 #. type: verbatim
10832 #: ../fish/guestfish-actions.pod:2424
10833 #, no-wrap
10834 msgid ""
10835 " inspect-list-applications root\n"
10836 "\n"
10837 msgstr ""
10838
10839 #. type: textblock
10840 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3729
10841 msgid "Return the list of applications installed in the operating system."
10842 msgstr ""
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:2428
10846 msgid ""
10847 "I<Note:> This call works differently from other parts of the inspection API."
10848 "  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, then "
10849 "mount up the disks, before calling this.  Listing applications is a "
10850 "significantly more difficult operation which requires access to the full "
10851 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10852 "are just returning data cached in the libguestfs handle, this call actually "
10853 "reads parts of the mounted filesystems during the call."
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3741
10858 msgid ""
10859 "This returns an empty list if the inspection code was not able to determine "
10860 "the list of applications."
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3744
10865 msgid "The application structure contains the following fields:"
10866 msgstr ""
10867
10868 #. type: =item
10869 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3748
10870 msgid "C<app_name>"
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3750
10875 msgid ""
10876 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10877 "guests, this is the package name."
10878 msgstr ""
10879
10880 #. type: =item
10881 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3753
10882 msgid "C<app_display_name>"
10883 msgstr ""
10884
10885 #. type: textblock
10886 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3755
10887 msgid ""
10888 "The display name of the application, sometimes localized to the install "
10889 "language of the guest operating system."
10890 msgstr ""
10891
10892 #. type: textblock
10893 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3758
10894 msgid ""
10895 "If unavailable this is returned as an empty string C<\"\">.  Callers needing"
10896 " to display something can use C<app_name> instead."
10897 msgstr ""
10898
10899 #. type: =item
10900 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3761
10901 msgid "C<app_epoch>"
10902 msgstr ""
10903
10904 #. type: textblock
10905 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3763
10906 msgid ""
10907 "For package managers which use epochs, this contains the epoch of the "
10908 "package (an integer).  If unavailable, this is returned as C<0>."
10909 msgstr ""
10910
10911 #. type: =item
10912 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3766
10913 msgid "C<app_version>"
10914 msgstr ""
10915
10916 #. type: textblock
10917 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3768
10918 msgid ""
10919 "The version string of the application or package.  If unavailable this is "
10920 "returned as an empty string C<\"\">."
10921 msgstr ""
10922
10923 #. type: =item
10924 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3771
10925 msgid "C<app_release>"
10926 msgstr ""
10927
10928 #. type: textblock
10929 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3773
10930 msgid ""
10931 "The release string of the application or package, for package managers that "
10932 "use this.  If unavailable this is returned as an empty string C<\"\">."
10933 msgstr ""
10934
10935 #. type: =item
10936 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3777
10937 msgid "C<app_install_path>"
10938 msgstr ""
10939
10940 #. type: textblock
10941 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3779
10942 msgid ""
10943 "The installation path of the application (on operating systems such as "
10944 "Windows which use installation paths).  This path is in the format used by "
10945 "the guest operating system, it is not a libguestfs path."
10946 msgstr ""
10947
10948 #. type: textblock
10949 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3784
10950 msgid "If unavailable this is returned as an empty string C<\"\">."
10951 msgstr ""
10952
10953 #. type: =item
10954 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3786
10955 msgid "C<app_trans_path>"
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3788
10960 msgid ""
10961 "The install path translated into a libguestfs path.  If unavailable this is "
10962 "returned as an empty string C<\"\">."
10963 msgstr ""
10964
10965 #. type: =item
10966 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3791
10967 msgid "C<app_publisher>"
10968 msgstr ""
10969
10970 #. type: textblock
10971 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3793
10972 msgid ""
10973 "The name of the publisher of the application, for package managers that use "
10974 "this.  If unavailable this is returned as an empty string C<\"\">."
10975 msgstr ""
10976
10977 #. type: =item
10978 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3797
10979 msgid "C<app_url>"
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3799
10984 msgid ""
10985 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10986 "returned as an empty string C<\"\">."
10987 msgstr ""
10988
10989 #. type: =item
10990 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3802
10991 msgid "C<app_source_package>"
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3804
10996 msgid ""
10997 "For packaging systems which support this, the name of the source package.  "
10998 "If unavailable this is returned as an empty string C<\"\">."
10999 msgstr ""
11000
11001 #. type: =item
11002 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3807
11003 msgid "C<app_summary>"
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3809
11008 msgid ""
11009 "A short (usually one line) description of the application or package.  If "
11010 "unavailable this is returned as an empty string C<\"\">."
11011 msgstr ""
11012
11013 #. type: =item
11014 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3812
11015 msgid "C<app_description>"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3814
11020 msgid ""
11021 "A longer description of the application or package.  If unavailable this is "
11022 "returned as an empty string C<\"\">."
11023 msgstr ""
11024
11025 #. type: =head2
11026 #: ../fish/guestfish-actions.pod:2518
11027 msgid "inspect-os"
11028 msgstr ""
11029
11030 #. type: verbatim
11031 #: ../fish/guestfish-actions.pod:2520
11032 #, no-wrap
11033 msgid ""
11034 " inspect-os\n"
11035 "\n"
11036 msgstr ""
11037
11038 #. type: textblock
11039 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3832
11040 msgid ""
11041 "This function uses other libguestfs functions and certain heuristics to "
11042 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11043 "for operating systems."
11044 msgstr ""
11045
11046 #. type: textblock
11047 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3836
11048 msgid "The list returned is empty if no operating systems were found."
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3838
11053 msgid ""
11054 "If one operating system was found, then this returns a list with a single "
11055 "element, which is the name of the root filesystem of this operating system."
11056 "  It is also possible for this function to return a list containing more "
11057 "than one element, indicating a dual-boot or multi-boot virtual machine, with"
11058 " each element being the root filesystem of one of the operating systems."
11059 msgstr ""
11060
11061 #. type: textblock
11062 #: ../fish/guestfish-actions.pod:2535
11063 msgid ""
11064 "You can pass the root string(s) returned to other L</inspect-get-*> "
11065 "functions in order to query further information about each operating system,"
11066 " such as the name and version."
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2540
11071 msgid ""
11072 "This function uses other libguestfs features such as L</mount-ro> and L"
11073 "</umount-all> in order to mount and unmount filesystems and look at the "
11074 "contents.  This should be called with no disks currently mounted.  The "
11075 "function may also use Augeas, so any existing Augeas handle will be closed."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3856
11080 msgid ""
11081 "This function cannot decrypt encrypted disks.  The caller must do that first"
11082 " (supplying the necessary keys) if the disk is encrypted."
11083 msgstr ""
11084
11085 #. type: textblock
11086 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11087 #: ../fish/guestfish-actions.pod:2809
11088 msgid "See also L</list-filesystems>."
11089 msgstr ""
11090
11091 #. type: =head2
11092 #: ../fish/guestfish-actions.pod:2554
11093 msgid "is-blockdev"
11094 msgstr ""
11095
11096 #. type: verbatim
11097 #: ../fish/guestfish-actions.pod:2556
11098 #, no-wrap
11099 msgid ""
11100 " is-blockdev path\n"
11101 "\n"
11102 msgstr ""
11103
11104 #. type: textblock
11105 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3876
11106 msgid ""
11107 "This returns C<true> if and only if there is a block device with the given "
11108 "C<path> name."
11109 msgstr ""
11110
11111 #. type: textblock
11112 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11113 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11114 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11115 #: ../fish/guestfish-actions.pod:2660
11116 msgid "See also L</stat>."
11117 msgstr ""
11118
11119 #. type: =head2
11120 #: ../fish/guestfish-actions.pod:2563
11121 msgid "is-busy"
11122 msgstr ""
11123
11124 #. type: verbatim
11125 #: ../fish/guestfish-actions.pod:2565
11126 #, no-wrap
11127 msgid ""
11128 " is-busy\n"
11129 "\n"
11130 msgstr ""
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3890
11134 msgid ""
11135 "This returns true iff this handle is busy processing a command (in the "
11136 "C<BUSY> state)."
11137 msgstr ""
11138
11139 #. type: =head2
11140 #: ../fish/guestfish-actions.pod:2572
11141 msgid "is-chardev"
11142 msgstr ""
11143
11144 #. type: verbatim
11145 #: ../fish/guestfish-actions.pod:2574
11146 #, no-wrap
11147 msgid ""
11148 " is-chardev path\n"
11149 "\n"
11150 msgstr ""
11151
11152 #. type: textblock
11153 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3905
11154 msgid ""
11155 "This returns C<true> if and only if there is a character device with the "
11156 "given C<path> name."
11157 msgstr ""
11158
11159 #. type: =head2
11160 #: ../fish/guestfish-actions.pod:2581
11161 msgid "is-config"
11162 msgstr ""
11163
11164 #. type: verbatim
11165 #: ../fish/guestfish-actions.pod:2583
11166 #, no-wrap
11167 msgid ""
11168 " is-config\n"
11169 "\n"
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3919
11174 msgid ""
11175 "This returns true iff this handle is being configured (in the C<CONFIG> "
11176 "state)."
11177 msgstr ""
11178
11179 #. type: =head2
11180 #: ../fish/guestfish-actions.pod:2590
11181 msgid "is-dir"
11182 msgstr ""
11183
11184 #. type: verbatim
11185 #: ../fish/guestfish-actions.pod:2592
11186 #, no-wrap
11187 msgid ""
11188 " is-dir path\n"
11189 "\n"
11190 msgstr ""
11191
11192 #. type: textblock
11193 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3934
11194 msgid ""
11195 "This returns C<true> if and only if there is a directory with the given "
11196 "C<path> name.  Note that it returns false for other objects like files."
11197 msgstr ""
11198
11199 #. type: =head2
11200 #: ../fish/guestfish-actions.pod:2600
11201 msgid "is-fifo"
11202 msgstr ""
11203
11204 #. type: verbatim
11205 #: ../fish/guestfish-actions.pod:2602
11206 #, no-wrap
11207 msgid ""
11208 " is-fifo path\n"
11209 "\n"
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3950
11214 msgid ""
11215 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11216 "given C<path> name."
11217 msgstr ""
11218
11219 #. type: =head2
11220 #: ../fish/guestfish-actions.pod:2609
11221 msgid "is-file"
11222 msgstr ""
11223
11224 #. type: verbatim
11225 #: ../fish/guestfish-actions.pod:2611
11226 #, no-wrap
11227 msgid ""
11228 " is-file path\n"
11229 "\n"
11230 msgstr ""
11231
11232 #. type: textblock
11233 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3965
11234 msgid ""
11235 "This returns C<true> if and only if there is a regular file with the given "
11236 "C<path> name.  Note that it returns false for other objects like "
11237 "directories."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../fish/guestfish-actions.pod:2619
11242 msgid "is-launching"
11243 msgstr ""
11244
11245 #. type: verbatim
11246 #: ../fish/guestfish-actions.pod:2621
11247 #, no-wrap
11248 msgid ""
11249 " is-launching\n"
11250 "\n"
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3980
11255 msgid ""
11256 "This returns true iff this handle is launching the subprocess (in the "
11257 "C<LAUNCHING> state)."
11258 msgstr ""
11259
11260 #. type: =head2
11261 #: ../fish/guestfish-actions.pod:2628
11262 msgid "is-lv"
11263 msgstr ""
11264
11265 #. type: verbatim
11266 #: ../fish/guestfish-actions.pod:2630
11267 #, no-wrap
11268 msgid ""
11269 " is-lv device\n"
11270 "\n"
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:3995
11275 msgid ""
11276 "This command tests whether C<device> is a logical volume, and returns true "
11277 "iff this is the case."
11278 msgstr ""
11279
11280 #. type: =head2
11281 #: ../fish/guestfish-actions.pod:2635
11282 msgid "is-ready"
11283 msgstr ""
11284
11285 #. type: verbatim
11286 #: ../fish/guestfish-actions.pod:2637
11287 #, no-wrap
11288 msgid ""
11289 " is-ready\n"
11290 "\n"
11291 msgstr ""
11292
11293 #. type: textblock
11294 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4007
11295 msgid ""
11296 "This returns true iff this handle is ready to accept commands (in the "
11297 "C<READY> state)."
11298 msgstr ""
11299
11300 #. type: =head2
11301 #: ../fish/guestfish-actions.pod:2644
11302 msgid "is-socket"
11303 msgstr ""
11304
11305 #. type: verbatim
11306 #: ../fish/guestfish-actions.pod:2646
11307 #, no-wrap
11308 msgid ""
11309 " is-socket path\n"
11310 "\n"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4022
11315 msgid ""
11316 "This returns C<true> if and only if there is a Unix domain socket with the "
11317 "given C<path> name."
11318 msgstr ""
11319
11320 #. type: =head2
11321 #: ../fish/guestfish-actions.pod:2653
11322 msgid "is-symlink"
11323 msgstr ""
11324
11325 #. type: verbatim
11326 #: ../fish/guestfish-actions.pod:2655
11327 #, no-wrap
11328 msgid ""
11329 " is-symlink path\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4037
11335 msgid ""
11336 "This returns C<true> if and only if there is a symbolic link with the given "
11337 "C<path> name."
11338 msgstr ""
11339
11340 #. type: =head2
11341 #: ../fish/guestfish-actions.pod:2662
11342 msgid "is-zero"
11343 msgstr ""
11344
11345 #. type: verbatim
11346 #: ../fish/guestfish-actions.pod:2664
11347 #, no-wrap
11348 msgid ""
11349 " is-zero path\n"
11350 "\n"
11351 msgstr ""
11352
11353 #. type: textblock
11354 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4052
11355 msgid ""
11356 "This returns true iff the file exists and the file is empty or it contains "
11357 "all zero bytes."
11358 msgstr ""
11359
11360 #. type: =head2
11361 #: ../fish/guestfish-actions.pod:2669
11362 msgid "is-zero-device"
11363 msgstr ""
11364
11365 #. type: verbatim
11366 #: ../fish/guestfish-actions.pod:2671
11367 #, no-wrap
11368 msgid ""
11369 " is-zero-device device\n"
11370 "\n"
11371 msgstr ""
11372
11373 #. type: textblock
11374 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4065
11375 msgid "This returns true iff the device exists and contains all zero bytes."
11376 msgstr ""
11377
11378 #. type: textblock
11379 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4067
11380 msgid "Note that for large devices this can take a long time to run."
11381 msgstr ""
11382
11383 #. type: =head2
11384 #: ../fish/guestfish-actions.pod:2677
11385 msgid "kill-subprocess"
11386 msgstr ""
11387
11388 #. type: verbatim
11389 #: ../fish/guestfish-actions.pod:2679
11390 #, no-wrap
11391 msgid ""
11392 " kill-subprocess\n"
11393 "\n"
11394 msgstr ""
11395
11396 #. type: textblock
11397 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4078
11398 msgid "This kills the qemu subprocess.  You should never need to call this."
11399 msgstr ""
11400
11401 #. type: =head2
11402 #: ../fish/guestfish-actions.pod:2683
11403 msgid "launch"
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../fish/guestfish-actions.pod:2685
11408 msgid "run"
11409 msgstr ""
11410
11411 #. type: verbatim
11412 #: ../fish/guestfish-actions.pod:2687
11413 #, no-wrap
11414 msgid ""
11415 " launch\n"
11416 "\n"
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4089
11421 msgid ""
11422 "Internally libguestfs is implemented by running a virtual machine using "
11423 "L<qemu(1)>."
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4092
11428 msgid ""
11429 "You should call this after configuring the handle (eg. adding drives) but "
11430 "before performing any actions."
11431 msgstr ""
11432
11433 #. type: =head2
11434 #: ../fish/guestfish-actions.pod:2695
11435 msgid "lchown"
11436 msgstr ""
11437
11438 #. type: verbatim
11439 #: ../fish/guestfish-actions.pod:2697
11440 #, no-wrap
11441 msgid ""
11442 " lchown owner group path\n"
11443 "\n"
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:2699
11448 msgid ""
11449 "Change the file owner to C<owner> and group to C<group>.  This is like "
11450 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11451 "the target."
11452 msgstr ""
11453
11454 #. type: =head2
11455 #: ../fish/guestfish-actions.pod:2707
11456 msgid "lgetxattr"
11457 msgstr ""
11458
11459 #. type: verbatim
11460 #: ../fish/guestfish-actions.pod:2709
11461 #, no-wrap
11462 msgid ""
11463 " lgetxattr path name\n"
11464 "\n"
11465 msgstr ""
11466
11467 #. type: textblock
11468 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4132
11469 msgid ""
11470 "Get a single extended attribute from file C<path> named C<name>.  If C<path>"
11471 " is a symlink, then this call returns an extended attribute from the "
11472 "symlink."
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../fish/guestfish-actions.pod:2725
11477 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11478 msgstr ""
11479
11480 #. type: =head2
11481 #: ../fish/guestfish-actions.pod:2727
11482 msgid "lgetxattrs"
11483 msgstr ""
11484
11485 #. type: verbatim
11486 #: ../fish/guestfish-actions.pod:2729
11487 #, no-wrap
11488 msgid ""
11489 " lgetxattrs path\n"
11490 "\n"
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:2731
11495 msgid ""
11496 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11497 "it returns the extended attributes of the link itself."
11498 msgstr ""
11499
11500 #. type: =head2
11501 #: ../fish/guestfish-actions.pod:2735
11502 msgid "list-9p"
11503 msgstr ""
11504
11505 #. type: verbatim
11506 #: ../fish/guestfish-actions.pod:2737
11507 #, no-wrap
11508 msgid ""
11509 " list-9p\n"
11510 "\n"
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4175
11515 msgid ""
11516 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11517 "returned."
11518 msgstr ""
11519
11520 #. type: =head2
11521 #: ../fish/guestfish-actions.pod:2742
11522 msgid "list-devices"
11523 msgstr ""
11524
11525 #. type: verbatim
11526 #: ../fish/guestfish-actions.pod:2744
11527 #, no-wrap
11528 msgid ""
11529 " list-devices\n"
11530 "\n"
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4189
11535 msgid "List all the block devices."
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4191
11540 msgid "The full block device names are returned, eg. C</dev/sda>."
11541 msgstr ""
11542
11543 #. type: =head2
11544 #: ../fish/guestfish-actions.pod:2752
11545 msgid "list-dm-devices"
11546 msgstr ""
11547
11548 #. type: verbatim
11549 #: ../fish/guestfish-actions.pod:2754
11550 #, no-wrap
11551 msgid ""
11552 " list-dm-devices\n"
11553 "\n"
11554 msgstr ""
11555
11556 #. type: textblock
11557 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4206
11558 msgid "List all device mapper devices."
11559 msgstr ""
11560
11561 #. type: textblock
11562 #: ../fish/guestfish-actions.pod:2758
11563 msgid ""
11564 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11565 "previous call to L</luks-open>."
11566 msgstr ""
11567
11568 #. type: textblock
11569 #: ../fish/guestfish-actions.pod:2761
11570 msgid ""
11571 "Device mapper devices which correspond to logical volumes are I<not> "
11572 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11573 msgstr ""
11574
11575 #. type: =head2
11576 #: ../fish/guestfish-actions.pod:2765
11577 msgid "list-filesystems"
11578 msgstr ""
11579
11580 #. type: verbatim
11581 #: ../fish/guestfish-actions.pod:2767
11582 #, no-wrap
11583 msgid ""
11584 " list-filesystems\n"
11585 "\n"
11586 msgstr ""
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4226
11590 msgid ""
11591 "This inspection command looks for filesystems on partitions, block devices "
11592 "and logical volumes, returning a list of devices containing filesystems and "
11593 "their type."
11594 msgstr ""
11595
11596 #. type: textblock
11597 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4230
11598 msgid ""
11599 "The return value is a hash, where the keys are the devices containing "
11600 "filesystems, and the values are the filesystem types.  For example:"
11601 msgstr ""
11602
11603 #. type: verbatim
11604 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4234
11605 #, no-wrap
11606 msgid ""
11607 " \"/dev/sda1\" => \"ntfs\"\n"
11608 " \"/dev/sda2\" => \"ext2\"\n"
11609 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11610 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11611 "\n"
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4239
11616 msgid ""
11617 "The value can have the special value \"unknown\", meaning the content of the"
11618 " device is undetermined or empty.  \"swap\" means a Linux swap partition."
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:2786
11623 msgid ""
11624 "This command runs other libguestfs commands, which might include L</mount> "
11625 "and L</umount>, and therefore you should use this soon after launch and only"
11626 " when nothing is mounted."
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:2790
11631 msgid ""
11632 "Not all of the filesystems returned will be mountable.  In particular, swap "
11633 "partitions are returned in the list.  Also this command does not check that "
11634 "each filesystem found is valid and mountable, and some filesystems might be "
11635 "mountable but require special options.  Filesystems may not all belong to a "
11636 "single logical operating system (use L</inspect-os> to look for OSes)."
11637 msgstr ""
11638
11639 #. type: =head2
11640 #: ../fish/guestfish-actions.pod:2798
11641 msgid "list-partitions"
11642 msgstr ""
11643
11644 #. type: verbatim
11645 #: ../fish/guestfish-actions.pod:2800
11646 #, no-wrap
11647 msgid ""
11648 " list-partitions\n"
11649 "\n"
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4268
11654 msgid "List all the partitions detected on all block devices."
11655 msgstr ""
11656
11657 #. type: textblock
11658 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4270
11659 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:2806
11664 msgid ""
11665 "This does not return logical volumes.  For that you will need to call "
11666 "L</lvs>."
11667 msgstr ""
11668
11669 #. type: =head2
11670 #: ../fish/guestfish-actions.pod:2811
11671 msgid "ll"
11672 msgstr ""
11673
11674 #. type: verbatim
11675 #: ../fish/guestfish-actions.pod:2813
11676 #, no-wrap
11677 msgid ""
11678 " ll directory\n"
11679 "\n"
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4289
11684 msgid ""
11685 "List the files in C<directory> (relative to the root directory, there is no "
11686 "cwd) in the format of 'ls -la'."
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4292
11691 msgid ""
11692 "This command is mostly useful for interactive sessions.  It is I<not> "
11693 "intended that you try to parse the output string."
11694 msgstr ""
11695
11696 #. type: =head2
11697 #: ../fish/guestfish-actions.pod:2821
11698 msgid "ln"
11699 msgstr ""
11700
11701 #. type: verbatim
11702 #: ../fish/guestfish-actions.pod:2823
11703 #, no-wrap
11704 msgid ""
11705 " ln target linkname\n"
11706 "\n"
11707 msgstr ""
11708
11709 #. type: textblock
11710 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4307
11711 msgid "This command creates a hard link using the C<ln> command."
11712 msgstr ""
11713
11714 #. type: =head2
11715 #: ../fish/guestfish-actions.pod:2827
11716 msgid "ln-f"
11717 msgstr ""
11718
11719 #. type: verbatim
11720 #: ../fish/guestfish-actions.pod:2829
11721 #, no-wrap
11722 msgid ""
11723 " ln-f target linkname\n"
11724 "\n"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4320
11729 msgid ""
11730 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11731 "option removes the link (C<linkname>) if it exists already."
11732 msgstr ""
11733
11734 #. type: =head2
11735 #: ../fish/guestfish-actions.pod:2834
11736 msgid "ln-s"
11737 msgstr ""
11738
11739 #. type: verbatim
11740 #: ../fish/guestfish-actions.pod:2836
11741 #, no-wrap
11742 msgid ""
11743 " ln-s target linkname\n"
11744 "\n"
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4334
11749 msgid "This command creates a symbolic link using the C<ln -s> command."
11750 msgstr ""
11751
11752 #. type: =head2
11753 #: ../fish/guestfish-actions.pod:2840
11754 msgid "ln-sf"
11755 msgstr ""
11756
11757 #. type: verbatim
11758 #: ../fish/guestfish-actions.pod:2842
11759 #, no-wrap
11760 msgid ""
11761 " ln-sf target linkname\n"
11762 "\n"
11763 msgstr ""
11764
11765 #. type: textblock
11766 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4347
11767 msgid ""
11768 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11769 "option removes the link (C<linkname>) if it exists already."
11770 msgstr ""
11771
11772 #. type: =head2
11773 #: ../fish/guestfish-actions.pod:2847
11774 msgid "lremovexattr"
11775 msgstr ""
11776
11777 #. type: verbatim
11778 #: ../fish/guestfish-actions.pod:2849
11779 #, no-wrap
11780 msgid ""
11781 " lremovexattr xattr path\n"
11782 "\n"
11783 msgstr ""
11784
11785 #. type: textblock
11786 #: ../fish/guestfish-actions.pod:2851
11787 msgid ""
11788 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then"
11789 " it removes an extended attribute of the link itself."
11790 msgstr ""
11791
11792 #. type: =head2
11793 #: ../fish/guestfish-actions.pod:2855
11794 msgid "ls"
11795 msgstr ""
11796
11797 #. type: verbatim
11798 #: ../fish/guestfish-actions.pod:2857
11799 #, no-wrap
11800 msgid ""
11801 " ls directory\n"
11802 "\n"
11803 msgstr ""
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4375
11807 msgid ""
11808 "List the files in C<directory> (relative to the root directory, there is no "
11809 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11810 "shown."
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2863
11815 msgid ""
11816 "This command is mostly useful for interactive sessions.  Programs should "
11817 "probably use L</readdir> instead."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2866
11822 msgid "lsetxattr"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2868
11827 #, no-wrap
11828 msgid ""
11829 " lsetxattr xattr val vallen path\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2870
11835 msgid ""
11836 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it"
11837 " sets an extended attribute of the link itself."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:2874
11842 msgid "lstat"
11843 msgstr ""
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:2876
11847 #, no-wrap
11848 msgid ""
11849 " lstat path\n"
11850 "\n"
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4702
11855 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:7214
11856 msgid "Returns file information for the given C<path>."
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:2880
11861 msgid ""
11862 "This is the same as L</stat> except that if C<path> is a symbolic link, then"
11863 " the link is stat-ed, not the file it refers to."
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4417
11868 msgid "This is the same as the C<lstat(2)> system call."
11869 msgstr ""
11870
11871 #. type: =head2
11872 #: ../fish/guestfish-actions.pod:2886
11873 msgid "lstatlist"
11874 msgstr ""
11875
11876 #. type: verbatim
11877 #: ../fish/guestfish-actions.pod:2888
11878 #, no-wrap
11879 msgid ""
11880 " lstatlist path 'names ...'\n"
11881 "\n"
11882 msgstr ""
11883
11884 #. type: textblock
11885 #: ../fish/guestfish-actions.pod:2890
11886 msgid ""
11887 "This call allows you to perform the L</lstat> operation on multiple files, "
11888 "where all files are in the directory C<path>.  C<names> is the list of files"
11889 " from this directory."
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4436
11894 msgid ""
11895 "On return you get a list of stat structs, with a one-to-one correspondence "
11896 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11897 "then the C<ino> field of that structure is set to C<-1>."
11898 msgstr ""
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:2899
11902 msgid ""
11903 "This call is intended for programs that want to efficiently list a directory"
11904 " contents without making many round-trips.  See also L</lxattrlist> for a "
11905 "similarly efficient call for getting extended attributes.  Very long "
11906 "directory listings might cause the protocol message size to be exceeded, "
11907 "causing this call to fail.  The caller must split up such requests into "
11908 "smaller groups of names."
11909 msgstr ""
11910
11911 #. type: =head2
11912 #: ../fish/guestfish-actions.pod:2907
11913 msgid "luks-add-key"
11914 msgstr ""
11915
11916 #. type: verbatim
11917 #: ../fish/guestfish-actions.pod:2909
11918 #, no-wrap
11919 msgid ""
11920 " luks-add-key device keyslot\n"
11921 "\n"
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4464
11926 msgid ""
11927 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11928 "existing key, and is used to access the device.  C<newkey> is the new key to"
11929 " add.  C<keyslot> is the key slot that will be replaced."
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:2916
11934 msgid ""
11935 "Note that if C<keyslot> already contains a key, then this command will fail."
11936 "  You have to use L</luks-kill-slot> first to remove that key."
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
11941 #: ../fish/guestfish-actions.pod:2955 ../fish/guestfish-actions.pod:2969
11942 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
11943 msgid ""
11944 "This command has one or more key or passphrase parameters.  Guestfish will "
11945 "prompt for these separately."
11946 msgstr ""
11947
11948 #. type: =head2
11949 #: ../fish/guestfish-actions.pod:2923
11950 msgid "luks-close"
11951 msgstr ""
11952
11953 #. type: verbatim
11954 #: ../fish/guestfish-actions.pod:2925
11955 #, no-wrap
11956 msgid ""
11957 " luks-close device\n"
11958 "\n"
11959 msgstr ""
11960
11961 #. type: textblock
11962 #: ../fish/guestfish-actions.pod:2927
11963 msgid ""
11964 "This closes a LUKS device that was created earlier by L</luks-open> or L"
11965 "</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
11966 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11967 "underlying block device."
11968 msgstr ""
11969
11970 #. type: =head2
11971 #: ../fish/guestfish-actions.pod:2933
11972 msgid "luks-format"
11973 msgstr ""
11974
11975 #. type: verbatim
11976 #: ../fish/guestfish-actions.pod:2935
11977 #, no-wrap
11978 msgid ""
11979 " luks-format device keyslot\n"
11980 "\n"
11981 msgstr ""
11982
11983 #. type: textblock
11984 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4505
11985 msgid ""
11986 "This command erases existing data on C<device> and formats the device as a "
11987 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11988 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11989 msgstr ""
11990
11991 #. type: textblock
11992 #: ../fish/guestfish-actions.pod:2945 ../fish/guestfish-actions.pod:2958
11993 #: ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3696
11994 #: ../fish/guestfish-actions.pod:4236 ../fish/guestfish-actions.pod:4573
11995 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4618
11996 #: ../fish/guestfish-actions.pod:5364 ../src/guestfs-actions.pod:4512
11997 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4678
11998 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:6577
11999 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7058
12000 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:8290
12001 msgid ""
12002 "B<This command is dangerous.  Without careful use you can easily destroy all"
12003 " your data>."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../fish/guestfish-actions.pod:2948
12008 msgid "luks-format-cipher"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../fish/guestfish-actions.pod:2950
12013 #, no-wrap
12014 msgid ""
12015 " luks-format-cipher device keyslot cipher\n"
12016 "\n"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:2952
12021 msgid ""
12022 "This command is the same as L</luks-format> but it also allows you to set "
12023 "the C<cipher> used."
12024 msgstr ""
12025
12026 #. type: =head2
12027 #: ../fish/guestfish-actions.pod:2961
12028 msgid "luks-kill-slot"
12029 msgstr ""
12030
12031 #. type: verbatim
12032 #: ../fish/guestfish-actions.pod:2963
12033 #, no-wrap
12034 msgid ""
12035 " luks-kill-slot device keyslot\n"
12036 "\n"
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4552
12041 msgid ""
12042 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12043 "device C<device>.  C<key> must be one of the I<other> keys."
12044 msgstr ""
12045
12046 #. type: =head2
12047 #: ../fish/guestfish-actions.pod:2972
12048 msgid "luks-open"
12049 msgstr ""
12050
12051 #. type: verbatim
12052 #: ../fish/guestfish-actions.pod:2974
12053 #, no-wrap
12054 msgid ""
12055 " luks-open device mapname\n"
12056 "\n"
12057 msgstr ""
12058
12059 #. type: textblock
12060 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4572
12061 msgid ""
12062 "This command opens a block device which has been encrypted according to the "
12063 "Linux Unified Key Setup (LUKS) standard."
12064 msgstr ""
12065
12066 #. type: textblock
12067 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4575
12068 msgid "C<device> is the encrypted block device or partition."
12069 msgstr ""
12070
12071 #. type: textblock
12072 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4577
12073 msgid ""
12074 "The caller must supply one of the keys associated with the LUKS block "
12075 "device, in the C<key> parameter."
12076 msgstr ""
12077
12078 #. type: textblock
12079 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4580
12080 msgid ""
12081 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12082 "writes to this block device are decrypted from and encrypted to the "
12083 "underlying C<device> respectively."
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:2988
12088 msgid ""
12089 "If this block device contains LVM volume groups, then calling L</vgscan> "
12090 "followed by L</vg-activate-all> will make them visible."
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:2992
12095 msgid "Use L</list-dm-devices> to list all device mapper devices."
12096 msgstr ""
12097
12098 #. type: =head2
12099 #: ../fish/guestfish-actions.pod:2998
12100 msgid "luks-open-ro"
12101 msgstr ""
12102
12103 #. type: verbatim
12104 #: ../fish/guestfish-actions.pod:3000
12105 #, no-wrap
12106 msgid ""
12107 " luks-open-ro device mapname\n"
12108 "\n"
12109 msgstr ""
12110
12111 #. type: textblock
12112 #: ../fish/guestfish-actions.pod:3002
12113 msgid ""
12114 "This is the same as L</luks-open> except that a read-only mapping is "
12115 "created."
12116 msgstr ""
12117
12118 #. type: =head2
12119 #: ../fish/guestfish-actions.pod:3008
12120 msgid "lvcreate"
12121 msgstr ""
12122
12123 #. type: verbatim
12124 #: ../fish/guestfish-actions.pod:3010
12125 #, no-wrap
12126 msgid ""
12127 " lvcreate logvol volgroup mbytes\n"
12128 "\n"
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4626
12133 msgid ""
12134 "This creates an LVM logical volume called C<logvol> on the volume group "
12135 "C<volgroup>, with C<size> megabytes."
12136 msgstr ""
12137
12138 #. type: =head2
12139 #: ../fish/guestfish-actions.pod:3015
12140 msgid "lvm-canonical-lv-name"
12141 msgstr ""
12142
12143 #. type: verbatim
12144 #: ../fish/guestfish-actions.pod:3017
12145 #, no-wrap
12146 msgid ""
12147 " lvm-canonical-lv-name lvname\n"
12148 "\n"
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4639
12153 msgid ""
12154 "This converts alternative naming schemes for LVs that you might find to the "
12155 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12156 "C</dev/VG/LV>."
12157 msgstr ""
12158
12159 #. type: textblock
12160 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4643
12161 msgid ""
12162 "This command returns an error if the C<lvname> parameter does not refer to a"
12163 " logical volume."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:3026
12168 msgid "See also L</is-lv>."
12169 msgstr ""
12170
12171 #. type: =head2
12172 #: ../fish/guestfish-actions.pod:3028
12173 msgid "lvm-clear-filter"
12174 msgstr ""
12175
12176 #. type: verbatim
12177 #: ../fish/guestfish-actions.pod:3030
12178 #, no-wrap
12179 msgid ""
12180 " lvm-clear-filter\n"
12181 "\n"
12182 msgstr ""
12183
12184 #. type: textblock
12185 #: ../fish/guestfish-actions.pod:3032
12186 msgid ""
12187 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every"
12188 " block device."
12189 msgstr ""
12190
12191 #. type: textblock
12192 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3066
12193 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4703
12194 msgid ""
12195 "This command also clears the LVM cache and performs a volume group scan."
12196 msgstr ""
12197
12198 #. type: =head2
12199 #: ../fish/guestfish-actions.pod:3038
12200 msgid "lvm-remove-all"
12201 msgstr ""
12202
12203 #. type: verbatim
12204 #: ../fish/guestfish-actions.pod:3040
12205 #, no-wrap
12206 msgid ""
12207 " lvm-remove-all\n"
12208 "\n"
12209 msgstr ""
12210
12211 #. type: textblock
12212 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4673
12213 msgid ""
12214 "This command removes all LVM logical volumes, volume groups and physical "
12215 "volumes."
12216 msgstr ""
12217
12218 #. type: =head2
12219 #: ../fish/guestfish-actions.pod:3048
12220 msgid "lvm-set-filter"
12221 msgstr ""
12222
12223 #. type: verbatim
12224 #: ../fish/guestfish-actions.pod:3050
12225 #, no-wrap
12226 msgid ""
12227 " lvm-set-filter 'devices ...'\n"
12228 "\n"
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4689
12233 msgid ""
12234 "This sets the LVM device filter so that LVM will only be able to \"see\" the"
12235 " block devices in the list C<devices>, and will ignore all other attached "
12236 "block devices."
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3056 ../src/guestfs-actions.pod:4693
12241 msgid ""
12242 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12243 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also"
12244 " there are two types of duplication possible: either cloned PVs/VGs which "
12245 "have identical UUIDs; or VGs that are not cloned but just happen to have the"
12246 " same name.  In normal operation you cannot create this situation, but you "
12247 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12248 "inside the LVM metadata."
12249 msgstr ""
12250
12251 #. type: textblock
12252 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4706
12253 msgid "You can filter whole block devices or individual partitions."
12254 msgstr ""
12255
12256 #. type: textblock
12257 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4708
12258 msgid ""
12259 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12260 "filesystem), even if you are not filtering out that VG."
12261 msgstr ""
12262
12263 #. type: =head2
12264 #: ../fish/guestfish-actions.pod:3075
12265 msgid "lvremove"
12266 msgstr ""
12267
12268 #. type: verbatim
12269 #: ../fish/guestfish-actions.pod:3077
12270 #, no-wrap
12271 msgid ""
12272 " lvremove device\n"
12273 "\n"
12274 msgstr ""
12275
12276 #. type: textblock
12277 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4722
12278 msgid ""
12279 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12280 "LV, such as C</dev/VG/LV>."
12281 msgstr ""
12282
12283 #. type: textblock
12284 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4725
12285 msgid ""
12286 "You can also remove all LVs in a volume group by specifying the VG name, "
12287 "C</dev/VG>."
12288 msgstr ""
12289
12290 #. type: =head2
12291 #: ../fish/guestfish-actions.pod:3085
12292 msgid "lvrename"
12293 msgstr ""
12294
12295 #. type: verbatim
12296 #: ../fish/guestfish-actions.pod:3087
12297 #, no-wrap
12298 msgid ""
12299 " lvrename logvol newlogvol\n"
12300 "\n"
12301 msgstr ""
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4739
12305 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12306 msgstr ""
12307
12308 #. type: =head2
12309 #: ../fish/guestfish-actions.pod:3091
12310 msgid "lvresize"
12311 msgstr ""
12312
12313 #. type: verbatim
12314 #: ../fish/guestfish-actions.pod:3093
12315 #, no-wrap
12316 msgid ""
12317 " lvresize device mbytes\n"
12318 "\n"
12319 msgstr ""
12320
12321 #. type: textblock
12322 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4752
12323 msgid ""
12324 "This resizes (expands or shrinks) an existing LVM logical volume to "
12325 "C<mbytes>.  When reducing, data in the reduced part is lost."
12326 msgstr ""
12327
12328 #. type: =head2
12329 #: ../fish/guestfish-actions.pod:3099
12330 msgid "lvresize-free"
12331 msgstr ""
12332
12333 #. type: verbatim
12334 #: ../fish/guestfish-actions.pod:3101
12335 #, no-wrap
12336 msgid ""
12337 " lvresize-free lv percent\n"
12338 "\n"
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4767
12343 msgid ""
12344 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the"
12345 " remaining free space in the volume group.  Commonly you would call this "
12346 "with pc = 100 which expands the logical volume as much as possible, using "
12347 "all remaining free space in the volume group."
12348 msgstr ""
12349
12350 #. type: =head2
12351 #: ../fish/guestfish-actions.pod:3109
12352 msgid "lvs"
12353 msgstr ""
12354
12355 #. type: verbatim
12356 #: ../fish/guestfish-actions.pod:3111
12357 #, no-wrap
12358 msgid ""
12359 " lvs\n"
12360 "\n"
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4782
12365 msgid ""
12366 "List all the logical volumes detected.  This is the equivalent of the "
12367 "L<lvs(8)> command."
12368 msgstr ""
12369
12370 #. type: textblock
12371 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4785
12372 msgid ""
12373 "This returns a list of the logical volume device names (eg. "
12374 "C</dev/VolGroup00/LogVol00>)."
12375 msgstr ""
12376
12377 #. type: textblock
12378 #: ../fish/guestfish-actions.pod:3119
12379 msgid "See also L</lvs-full>, L</list-filesystems>."
12380 msgstr ""
12381
12382 #. type: =head2
12383 #: ../fish/guestfish-actions.pod:3121
12384 msgid "lvs-full"
12385 msgstr ""
12386
12387 #. type: verbatim
12388 #: ../fish/guestfish-actions.pod:3123
12389 #, no-wrap
12390 msgid ""
12391 " lvs-full\n"
12392 "\n"
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4801
12397 msgid ""
12398 "List all the logical volumes detected.  This is the equivalent of the "
12399 "L<lvs(8)> command.  The \"full\" version includes all fields."
12400 msgstr ""
12401
12402 #. type: =head2
12403 #: ../fish/guestfish-actions.pod:3128
12404 msgid "lvuuid"
12405 msgstr ""
12406
12407 #. type: verbatim
12408 #: ../fish/guestfish-actions.pod:3130
12409 #, no-wrap
12410 msgid ""
12411 " lvuuid device\n"
12412 "\n"
12413 msgstr ""
12414
12415 #. type: textblock
12416 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4816
12417 msgid "This command returns the UUID of the LVM LV C<device>."
12418 msgstr ""
12419
12420 #. type: =head2
12421 #: ../fish/guestfish-actions.pod:3134
12422 msgid "lxattrlist"
12423 msgstr ""
12424
12425 #. type: verbatim
12426 #: ../fish/guestfish-actions.pod:3136
12427 #, no-wrap
12428 msgid ""
12429 " lxattrlist path 'names ...'\n"
12430 "\n"
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4830
12435 msgid ""
12436 "This call allows you to get the extended attributes of multiple files, where"
12437 " all files are in the directory C<path>.  C<names> is the list of files from"
12438 " this directory."
12439 msgstr ""
12440
12441 #. type: textblock
12442 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4834
12443 msgid ""
12444 "On return you get a flat list of xattr structs which must be interpreted "
12445 "sequentially.  The first xattr struct always has a zero-length C<attrname>."
12446 "  C<attrval> in this struct is zero-length to indicate there was an error "
12447 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12448 "number (the number of following attributes for this file, which could be "
12449 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12450 "attributes for the first named file.  This repeats for the second and "
12451 "subsequent files."
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../fish/guestfish-actions.pod:3152
12456 msgid ""
12457 "This call is intended for programs that want to efficiently list a directory"
12458 " contents without making many round-trips.  See also L</lstatlist> for a "
12459 "similarly efficient call for getting standard stats.  Very long directory "
12460 "listings might cause the protocol message size to be exceeded, causing this "
12461 "call to fail.  The caller must split up such requests into smaller groups of"
12462 " names."
12463 msgstr ""
12464
12465 #. type: =head2
12466 #: ../fish/guestfish-actions.pod:3160
12467 msgid "mkdir"
12468 msgstr ""
12469
12470 #. type: verbatim
12471 #: ../fish/guestfish-actions.pod:3162
12472 #, no-wrap
12473 msgid ""
12474 " mkdir path\n"
12475 "\n"
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4864
12480 msgid "Create a directory named C<path>."
12481 msgstr ""
12482
12483 #. type: =head2
12484 #: ../fish/guestfish-actions.pod:3166
12485 msgid "mkdir-mode"
12486 msgstr ""
12487
12488 #. type: verbatim
12489 #: ../fish/guestfish-actions.pod:3168
12490 #, no-wrap
12491 msgid ""
12492 " mkdir-mode path mode\n"
12493 "\n"
12494 msgstr ""
12495
12496 #. type: textblock
12497 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4877
12498 msgid ""
12499 "This command creates a directory, setting the initial permissions of the "
12500 "directory to C<mode>."
12501 msgstr ""
12502
12503 #. type: textblock
12504 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4880
12505 msgid ""
12506 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12507 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12508 "other ways."
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3177
12513 msgid "See also L</mkdir>, L</umask>"
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:3179
12518 msgid "mkdir-p"
12519 msgstr ""
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:3181
12523 #, no-wrap
12524 msgid ""
12525 " mkdir-p path\n"
12526 "\n"
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4896
12531 msgid ""
12532 "Create a directory named C<path>, creating any parent directories as "
12533 "necessary.  This is like the C<mkdir -p> shell command."
12534 msgstr ""
12535
12536 #. type: =head2
12537 #: ../fish/guestfish-actions.pod:3186
12538 msgid "mkdtemp"
12539 msgstr ""
12540
12541 #. type: verbatim
12542 #: ../fish/guestfish-actions.pod:3188
12543 #, no-wrap
12544 msgid ""
12545 " mkdtemp template\n"
12546 "\n"
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4909
12551 msgid ""
12552 "This command creates a temporary directory.  The C<template> parameter "
12553 "should be a full pathname for the temporary directory name with the final "
12554 "six characters being \"XXXXXX\"."
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4914
12559 msgid ""
12560 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one"
12561 " being suitable for Windows filesystems."
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4917
12566 msgid "The name of the temporary directory that was created is returned."
12567 msgstr ""
12568
12569 #. type: textblock
12570 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4920
12571 msgid ""
12572 "The temporary directory is created with mode 0700 and is owned by root."
12573 msgstr ""
12574
12575 #. type: textblock
12576 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4923
12577 msgid ""
12578 "The caller is responsible for deleting the temporary directory and its "
12579 "contents after use."
12580 msgstr ""
12581
12582 #. type: textblock
12583 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4926
12584 msgid "See also: L<mkdtemp(3)>"
12585 msgstr ""
12586
12587 #. type: =head2
12588 #: ../fish/guestfish-actions.pod:3209
12589 msgid "mke2fs-J"
12590 msgstr ""
12591
12592 #. type: verbatim
12593 #: ../fish/guestfish-actions.pod:3211
12594 #, no-wrap
12595 msgid ""
12596 " mke2fs-J fstype blocksize device journal\n"
12597 "\n"
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4942
12602 msgid ""
12603 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
12604 " C<journal>.  It is equivalent to the command:"
12605 msgstr ""
12606
12607 #. type: verbatim
12608 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4946
12609 #, no-wrap
12610 msgid ""
12611 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12612 "\n"
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3219
12617 msgid "See also L</mke2journal>."
12618 msgstr ""
12619
12620 #. type: =head2
12621 #: ../fish/guestfish-actions.pod:3221
12622 msgid "mke2fs-JL"
12623 msgstr ""
12624
12625 #. type: verbatim
12626 #: ../fish/guestfish-actions.pod:3223
12627 #, no-wrap
12628 msgid ""
12629 " mke2fs-JL fstype blocksize device label\n"
12630 "\n"
12631 msgstr ""
12632
12633 #. type: textblock
12634 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4963
12635 msgid ""
12636 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
12637 " the journal labeled C<label>."
12638 msgstr ""
12639
12640 #. type: textblock
12641 #: ../fish/guestfish-actions.pod:3228
12642 msgid "See also L</mke2journal-L>."
12643 msgstr ""
12644
12645 #. type: =head2
12646 #: ../fish/guestfish-actions.pod:3230
12647 msgid "mke2fs-JU"
12648 msgstr ""
12649
12650 #. type: verbatim
12651 #: ../fish/guestfish-actions.pod:3232
12652 #, no-wrap
12653 msgid ""
12654 " mke2fs-JU fstype blocksize device uuid\n"
12655 "\n"
12656 msgstr ""
12657
12658 #. type: textblock
12659 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4981
12660 msgid ""
12661 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
12662 " the journal with UUID C<uuid>."
12663 msgstr ""
12664
12665 #. type: textblock
12666 #: ../fish/guestfish-actions.pod:3237
12667 msgid "See also L</mke2journal-U>."
12668 msgstr ""
12669
12670 #. type: =head2
12671 #: ../fish/guestfish-actions.pod:3239
12672 msgid "mke2journal"
12673 msgstr ""
12674
12675 #. type: verbatim
12676 #: ../fish/guestfish-actions.pod:3241
12677 #, no-wrap
12678 msgid ""
12679 " mke2journal blocksize device\n"
12680 "\n"
12681 msgstr ""
12682
12683 #. type: textblock
12684 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4997
12685 msgid ""
12686 "This creates an ext2 external journal on C<device>.  It is equivalent to the"
12687 " command:"
12688 msgstr ""
12689
12690 #. type: verbatim
12691 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:5000
12692 #, no-wrap
12693 msgid ""
12694 " mke2fs -O journal_dev -b blocksize device\n"
12695 "\n"
12696 msgstr ""
12697
12698 #. type: =head2
12699 #: ../fish/guestfish-actions.pod:3248
12700 msgid "mke2journal-L"
12701 msgstr ""
12702
12703 #. type: verbatim
12704 #: ../fish/guestfish-actions.pod:3250
12705 #, no-wrap
12706 msgid ""
12707 " mke2journal-L blocksize label device\n"
12708 "\n"
12709 msgstr ""
12710
12711 #. type: textblock
12712 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
12713 msgid ""
12714 "This creates an ext2 external journal on C<device> with label C<label>."
12715 msgstr ""
12716
12717 #. type: =head2
12718 #: ../fish/guestfish-actions.pod:3254
12719 msgid "mke2journal-U"
12720 msgstr ""
12721
12722 #. type: verbatim
12723 #: ../fish/guestfish-actions.pod:3256
12724 #, no-wrap
12725 msgid ""
12726 " mke2journal-U blocksize uuid device\n"
12727 "\n"
12728 msgstr ""
12729
12730 #. type: textblock
12731 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5028
12732 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12733 msgstr ""
12734
12735 #. type: =head2
12736 #: ../fish/guestfish-actions.pod:3260
12737 msgid "mkfifo"
12738 msgstr ""
12739
12740 #. type: verbatim
12741 #: ../fish/guestfish-actions.pod:3262
12742 #, no-wrap
12743 msgid ""
12744 " mkfifo mode path\n"
12745 "\n"
12746 msgstr ""
12747
12748 #. type: textblock
12749 #: ../fish/guestfish-actions.pod:3264
12750 msgid ""
12751 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12752 "is just a convenient wrapper around L</mknod>."
12753 msgstr ""
12754
12755 #. type: =head2
12756 #: ../fish/guestfish-actions.pod:3270
12757 msgid "mkfs"
12758 msgstr ""
12759
12760 #. type: verbatim
12761 #: ../fish/guestfish-actions.pod:3272
12762 #, no-wrap
12763 msgid ""
12764 " mkfs fstype device\n"
12765 "\n"
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:5058
12770 msgid ""
12771 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12772 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12773 msgstr ""
12774
12775 #. type: =head2
12776 #: ../fish/guestfish-actions.pod:3278
12777 msgid "mkfs-b"
12778 msgstr ""
12779
12780 #. type: verbatim
12781 #: ../fish/guestfish-actions.pod:3280
12782 #, no-wrap
12783 msgid ""
12784 " mkfs-b fstype blocksize device\n"
12785 "\n"
12786 msgstr ""
12787
12788 #. type: textblock
12789 #: ../fish/guestfish-actions.pod:3282
12790 msgid ""
12791 "This call is similar to L</mkfs>, but it allows you to control the block "
12792 "size of the resulting filesystem.  Supported block sizes depend on the "
12793 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3314
12798 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5124
12799 msgid ""
12800 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12801 "cluster size."
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:3290
12806 msgid ""
12807 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12808 "instead."
12809 msgstr ""
12810
12811 #. type: =head2
12812 #: ../fish/guestfish-actions.pod:3297
12813 msgid "mkfs-opts"
12814 msgstr ""
12815
12816 #. type: verbatim
12817 #: ../fish/guestfish-actions.pod:3299
12818 #, no-wrap
12819 msgid ""
12820 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12821 "\n"
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5111
12826 msgid ""
12827 "This function creates a filesystem on C<device>.  The filesystem type is "
12828 "C<fstype>, for example C<ext3>."
12829 msgstr ""
12830
12831 #. type: =item
12832 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5118
12833 msgid "C<blocksize>"
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5120
12838 msgid ""
12839 "The filesystem block size.  Supported block sizes depend on the filesystem "
12840 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12841 "filesystems."
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5127
12846 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12847 msgstr ""
12848
12849 #. type: =item
12850 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5129
12851 msgid "C<features>"
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5131
12856 msgid "This passes the I<-O> parameter to the external mkfs program."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5133
12861 msgid ""
12862 "For certain filesystem types, this allows extra filesystem features to be "
12863 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12864 msgstr ""
12865
12866 #. type: textblock
12867 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:5137
12868 msgid ""
12869 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem"
12870 " type."
12871 msgstr ""
12872
12873 #. type: =item
12874 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5140
12875 msgid "C<inode>"
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5142
12880 msgid ""
12881 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12882 "sets the inode size (only for ext2/3/4 filesystems at present)."
12883 msgstr ""
12884
12885 #. type: =item
12886 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5145
12887 msgid "C<sectorsize>"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5147
12892 msgid ""
12893 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12894 "sets sector size for ufs filesystem."
12895 msgstr ""
12896
12897 #. type: =head2
12898 #: ../fish/guestfish-actions.pod:3344
12899 msgid "mkmountpoint"
12900 msgstr ""
12901
12902 #. type: verbatim
12903 #: ../fish/guestfish-actions.pod:3346
12904 #, no-wrap
12905 msgid ""
12906 " mkmountpoint exemptpath\n"
12907 "\n"
12908 msgstr ""
12909
12910 #. type: textblock
12911 #: ../fish/guestfish-actions.pod:3348
12912 msgid ""
12913 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used"
12914 " to create extra mountpoints before mounting the first filesystem."
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5190
12919 msgid ""
12920 "These calls are I<only> necessary in some very limited circumstances, mainly"
12921 " the case where you want to mount a mix of unrelated and/or read-only "
12922 "filesystems together."
12923 msgstr ""
12924
12925 #. type: textblock
12926 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5194
12927 msgid ""
12928 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12929 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12930 "inside that.  You can unpack this as follows in guestfish:"
12931 msgstr ""
12932
12933 #. type: verbatim
12934 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5199
12935 #, no-wrap
12936 msgid ""
12937 " add-ro Fedora-11-i686-Live.iso\n"
12938 " run\n"
12939 " mkmountpoint /cd\n"
12940 " mkmountpoint /sqsh\n"
12941 " mkmountpoint /ext3fs\n"
12942 " mount /dev/sda /cd\n"
12943 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12944 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12945 "\n"
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3370 ../src/guestfs-actions.pod:5208
12950 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:3372
12955 msgid ""
12956 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12957 "unexpected errors if you try to mix these calls.  It is safest to manually "
12958 "unmount filesystems and remove mountpoints after use."
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../fish/guestfish-actions.pod:3376
12963 msgid ""
12964 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12965 "for this to work for manual mountpoints, you must ensure that the innermost "
12966 "mountpoints have the longest pathnames, as in the example code above."
12967 msgstr ""
12968
12969 #. type: textblock
12970 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:5219
12971 msgid ""
12972 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3383
12977 msgid ""
12978 "Autosync [see L</set-autosync>, this is set by default on handles] can cause"
12979 " L</umount-all> to be called when the handle is closed which can also "
12980 "trigger these issues."
12981 msgstr ""
12982
12983 #. type: =head2
12984 #: ../fish/guestfish-actions.pod:3387
12985 msgid "mknod"
12986 msgstr ""
12987
12988 #. type: verbatim
12989 #: ../fish/guestfish-actions.pod:3389
12990 #, no-wrap
12991 msgid ""
12992 " mknod mode devmajor devminor path\n"
12993 "\n"
12994 msgstr ""
12995
12996 #. type: textblock
12997 #: ../fish/guestfish-actions.pod:3391 ../src/guestfs-actions.pod:5238
12998 msgid ""
12999 "This call creates block or character special devices, or named pipes "
13000 "(FIFOs)."
13001 msgstr ""
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5241
13005 msgid ""
13006 "The C<mode> parameter should be the mode, using the standard constants.  "
13007 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13008 "used when creating block and character special devices."
13009 msgstr ""
13010
13011 #. type: textblock
13012 #: ../fish/guestfish-actions.pod:3399
13013 msgid ""
13014 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13015 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13016 "regular file).  These constants are available in the standard Linux header "
13017 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13018 "wrappers around this command which bitwise OR in the appropriate constant "
13019 "for you."
13020 msgstr ""
13021
13022 #. type: =head2
13023 #: ../fish/guestfish-actions.pod:3409
13024 msgid "mknod-b"
13025 msgstr ""
13026
13027 #. type: verbatim
13028 #: ../fish/guestfish-actions.pod:3411
13029 #, no-wrap
13030 msgid ""
13031 " mknod-b mode devmajor devminor path\n"
13032 "\n"
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:3413
13037 msgid ""
13038 "This call creates a block device node called C<path> with mode C<mode> and "
13039 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13040 "wrapper around L</mknod>."
13041 msgstr ""
13042
13043 #. type: =head2
13044 #: ../fish/guestfish-actions.pod:3419
13045 msgid "mknod-c"
13046 msgstr ""
13047
13048 #. type: verbatim
13049 #: ../fish/guestfish-actions.pod:3421
13050 #, no-wrap
13051 msgid ""
13052 " mknod-c mode devmajor devminor path\n"
13053 "\n"
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:3423
13058 msgid ""
13059 "This call creates a char device node called C<path> with mode C<mode> and "
13060 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13061 "wrapper around L</mknod>."
13062 msgstr ""
13063
13064 #. type: =head2
13065 #: ../fish/guestfish-actions.pod:3429
13066 msgid "mkswap"
13067 msgstr ""
13068
13069 #. type: verbatim
13070 #: ../fish/guestfish-actions.pod:3431
13071 #, no-wrap
13072 msgid ""
13073 " mkswap device\n"
13074 "\n"
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5304
13079 msgid "Create a swap partition on C<device>."
13080 msgstr ""
13081
13082 #. type: =head2
13083 #: ../fish/guestfish-actions.pod:3435
13084 msgid "mkswap-L"
13085 msgstr ""
13086
13087 #. type: verbatim
13088 #: ../fish/guestfish-actions.pod:3437
13089 #, no-wrap
13090 msgid ""
13091 " mkswap-L label device\n"
13092 "\n"
13093 msgstr ""
13094
13095 #. type: textblock
13096 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5317
13097 msgid "Create a swap partition on C<device> with label C<label>."
13098 msgstr ""
13099
13100 #. type: textblock
13101 #: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5319
13102 msgid ""
13103 "Note that you cannot attach a swap label to a block device (eg. "
13104 "C</dev/sda>), just to a partition.  This appears to be a limitation of the "
13105 "kernel or swap tools."
13106 msgstr ""
13107
13108 #. type: =head2
13109 #: ../fish/guestfish-actions.pod:3445
13110 msgid "mkswap-U"
13111 msgstr ""
13112
13113 #. type: verbatim
13114 #: ../fish/guestfish-actions.pod:3447
13115 #, no-wrap
13116 msgid ""
13117 " mkswap-U uuid device\n"
13118 "\n"
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5334
13123 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13124 msgstr ""
13125
13126 #. type: =head2
13127 #: ../fish/guestfish-actions.pod:3451
13128 msgid "mkswap-file"
13129 msgstr ""
13130
13131 #. type: verbatim
13132 #: ../fish/guestfish-actions.pod:3453
13133 #, no-wrap
13134 msgid ""
13135 " mkswap-file path\n"
13136 "\n"
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5346
13141 msgid "Create a swap file."
13142 msgstr ""
13143
13144 #. type: textblock
13145 #: ../fish/guestfish-actions.pod:3457
13146 msgid ""
13147 "This command just writes a swap file signature to an existing file.  To "
13148 "create the file itself, use something like L</fallocate>."
13149 msgstr ""
13150
13151 #. type: =head2
13152 #: ../fish/guestfish-actions.pod:3460
13153 msgid "modprobe"
13154 msgstr ""
13155
13156 #. type: verbatim
13157 #: ../fish/guestfish-actions.pod:3462
13158 #, no-wrap
13159 msgid ""
13160 " modprobe modulename\n"
13161 "\n"
13162 msgstr ""
13163
13164 #. type: textblock
13165 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5361
13166 msgid "This loads a kernel module in the appliance."
13167 msgstr ""
13168
13169 #. type: textblock
13170 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5363
13171 msgid ""
13172 "The kernel module must have been whitelisted when libguestfs was built (see "
13173 "C<appliance/kmod.whitelist.in> in the source)."
13174 msgstr ""
13175
13176 #. type: =head2
13177 #: ../fish/guestfish-actions.pod:3469
13178 msgid "mount"
13179 msgstr ""
13180
13181 #. type: verbatim
13182 #: ../fish/guestfish-actions.pod:3471
13183 #, no-wrap
13184 msgid ""
13185 " mount device mountpoint\n"
13186 "\n"
13187 msgstr ""
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5377
13191 msgid ""
13192 "Mount a guest disk at a position in the filesystem.  Block devices are named"
13193 " C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13194 "those block devices contain partitions, they will have the usual names (eg. "
13195 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13196 msgstr ""
13197
13198 #. type: textblock
13199 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5383
13200 msgid ""
13201 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13202 "mounted on C</> before others can be mounted.  Other filesystems can only be"
13203 " mounted on directories which already exist."
13204 msgstr ""
13205
13206 #. type: textblock
13207 #: ../fish/guestfish-actions.pod:3484 ../src/guestfs-actions.pod:5388
13208 msgid ""
13209 "The mounted filesystem is writable, if we have sufficient permissions on the"
13210 " underlying device."
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:3487
13215 msgid ""
13216 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13217 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13218 "problems for users.  If your program might need to work with older versions "
13219 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13220 "first parameter if you don't want any options)."
13221 msgstr ""
13222
13223 #. type: =head2
13224 #: ../fish/guestfish-actions.pod:3494
13225 msgid "mount-9p"
13226 msgstr ""
13227
13228 #. type: verbatim
13229 #: ../fish/guestfish-actions.pod:3496
13230 #, no-wrap
13231 msgid ""
13232 " mount-9p mounttag mountpoint [options:..]\n"
13233 "\n"
13234 msgstr ""
13235
13236 #. type: textblock
13237 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5417
13238 msgid ""
13239 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13240 "C<mountpoint>."
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5420
13245 msgid ""
13246 "If required, C<trans=virtio> will be automatically added to the options.  "
13247 "Any other options required can be passed in the optional C<options> "
13248 "parameter."
13249 msgstr ""
13250
13251 #. type: =head2
13252 #: ../fish/guestfish-actions.pod:3507
13253 msgid "mount-loop"
13254 msgstr ""
13255
13256 #. type: verbatim
13257 #: ../fish/guestfish-actions.pod:3509
13258 #, no-wrap
13259 msgid ""
13260 " mount-loop file mountpoint\n"
13261 "\n"
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5459
13266 msgid ""
13267 "This command lets you mount C<file> (a filesystem image in a file) on a "
13268 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13269 "mountpoint>."
13270 msgstr ""
13271
13272 #. type: =head2
13273 #: ../fish/guestfish-actions.pod:3515
13274 msgid "mount-options"
13275 msgstr ""
13276
13277 #. type: verbatim
13278 #: ../fish/guestfish-actions.pod:3517
13279 #, no-wrap
13280 msgid ""
13281 " mount-options options device mountpoint\n"
13282 "\n"
13283 msgstr ""
13284
13285 #. type: textblock
13286 #: ../fish/guestfish-actions.pod:3519
13287 msgid ""
13288 "This is the same as the L</mount> command, but it allows you to set the "
13289 "mount options as for the L<mount(8)> I<-o> flag."
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:5479
13294 msgid ""
13295 "If the C<options> parameter is an empty string, then no options are passed "
13296 "(all options default to whatever the filesystem uses)."
13297 msgstr ""
13298
13299 #. type: =head2
13300 #: ../fish/guestfish-actions.pod:3527
13301 msgid "mount-ro"
13302 msgstr ""
13303
13304 #. type: verbatim
13305 #: ../fish/guestfish-actions.pod:3529
13306 #, no-wrap
13307 msgid ""
13308 " mount-ro device mountpoint\n"
13309 "\n"
13310 msgstr ""
13311
13312 #. type: textblock
13313 #: ../fish/guestfish-actions.pod:3531
13314 msgid ""
13315 "This is the same as the L</mount> command, but it mounts the filesystem with"
13316 " the read-only (I<-o ro>) flag."
13317 msgstr ""
13318
13319 #. type: =head2
13320 #: ../fish/guestfish-actions.pod:3534
13321 msgid "mount-vfs"
13322 msgstr ""
13323
13324 #. type: verbatim
13325 #: ../fish/guestfish-actions.pod:3536
13326 #, no-wrap
13327 msgid ""
13328 " mount-vfs options vfstype device mountpoint\n"
13329 "\n"
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../fish/guestfish-actions.pod:3538
13334 msgid ""
13335 "This is the same as the L</mount> command, but it allows you to set both the"
13336 " mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13337 msgstr ""
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:3542
13341 msgid "mountpoints"
13342 msgstr ""
13343
13344 #. type: verbatim
13345 #: ../fish/guestfish-actions.pod:3544
13346 #, no-wrap
13347 msgid ""
13348 " mountpoints\n"
13349 "\n"
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:3546
13354 msgid ""
13355 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13356 "This one returns a hash table (map) of device name to directory where the "
13357 "device is mounted."
13358 msgstr ""
13359
13360 #. type: =head2
13361 #: ../fish/guestfish-actions.pod:3550
13362 msgid "mounts"
13363 msgstr ""
13364
13365 #. type: verbatim
13366 #: ../fish/guestfish-actions.pod:3552
13367 #, no-wrap
13368 msgid ""
13369 " mounts\n"
13370 "\n"
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5540
13375 msgid ""
13376 "This returns the list of currently mounted filesystems.  It returns the list"
13377 " of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5543
13382 msgid "Some internal mounts are not shown."
13383 msgstr ""
13384
13385 #. type: textblock
13386 #: ../fish/guestfish-actions.pod:3559
13387 msgid "See also: L</mountpoints>"
13388 msgstr ""
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:3561
13392 msgid "mv"
13393 msgstr ""
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:3563
13397 #, no-wrap
13398 msgid ""
13399 " mv src dest\n"
13400 "\n"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5560
13405 msgid ""
13406 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13407 "destination filename or destination directory."
13408 msgstr ""
13409
13410 #. type: =head2
13411 #: ../fish/guestfish-actions.pod:3568
13412 msgid "ntfs-3g-probe"
13413 msgstr ""
13414
13415 #. type: verbatim
13416 #: ../fish/guestfish-actions.pod:3570
13417 #, no-wrap
13418 msgid ""
13419 " ntfs-3g-probe true|false device\n"
13420 "\n"
13421 msgstr ""
13422
13423 #. type: textblock
13424 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5574
13425 msgid ""
13426 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13427 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13428 "write, and some cannot be mounted at all)."
13429 msgstr ""
13430
13431 #. type: textblock
13432 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5578
13433 msgid ""
13434 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13435 "can be mounted read-write.  Set it to false if you want to test if the "
13436 "volume can be mounted read-only."
13437 msgstr ""
13438
13439 #. type: textblock
13440 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5582
13441 msgid ""
13442 "The return value is an integer which C<0> if the operation would succeed, or"
13443 " some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13444 msgstr ""
13445
13446 #. type: =head2
13447 #: ../fish/guestfish-actions.pod:3584
13448 msgid "ntfsresize"
13449 msgstr ""
13450
13451 #. type: verbatim
13452 #: ../fish/guestfish-actions.pod:3586
13453 #, no-wrap
13454 msgid ""
13455 " ntfsresize device\n"
13456 "\n"
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3588 ../fish/guestfish-actions.pod:3612
13461 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5635
13462 msgid ""
13463 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13464 "size of the underlying device."
13465 msgstr ""
13466
13467 #. type: textblock
13468 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5606
13469 msgid ""
13470 "I<Note:> After the resize operation, the filesystem is marked as requiring a"
13471 " consistency check (for safety).  You have to boot into Windows to perform "
13472 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13473 "resize filesystems which have been marked in this way.  So in effect it is "
13474 "not possible to call ntfsresize multiple times on a single filesystem "
13475 "without booting into Windows between each resize."
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:3599 ../fish/guestfish-actions.pod:3638
13480 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5661
13481 msgid "See also L<ntfsresize(8)>."
13482 msgstr ""
13483
13484 #. type: textblock
13485 #: ../fish/guestfish-actions.pod:3601 ../fish/guestfish-actions.pod:3649
13486 msgid ""
13487 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13488 "call instead."
13489 msgstr ""
13490
13491 #. type: =head2
13492 #: ../fish/guestfish-actions.pod:3608
13493 msgid "ntfsresize-opts"
13494 msgstr ""
13495
13496 #. type: verbatim
13497 #: ../fish/guestfish-actions.pod:3610
13498 #, no-wrap
13499 msgid ""
13500 " ntfsresize-opts device [size:..] [force:..]\n"
13501 "\n"
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5644
13506 msgid ""
13507 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13508 "resized to fit the container (eg. partition)."
13509 msgstr ""
13510
13511 #. type: =item
13512 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5647
13513 msgid "C<force>"
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5649
13518 msgid ""
13519 "If this option is true, then force the resize of the filesystem even if the "
13520 "filesystem is marked as requiring a consistency check."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3629
13525 msgid ""
13526 "After the resize operation, the filesystem is always marked as requiring a "
13527 "consistency check (for safety).  You have to boot into Windows to perform "
13528 "this check and clear this condition.  If you I<don't> set the C<force> "
13529 "option then it is not possible to call L</ntfsresize-opts> multiple times on"
13530 " a single filesystem without booting into Windows between each resize."
13531 msgstr ""
13532
13533 #. type: =head2
13534 #: ../fish/guestfish-actions.pod:3642
13535 msgid "ntfsresize-size"
13536 msgstr ""
13537
13538 #. type: verbatim
13539 #: ../fish/guestfish-actions.pod:3644
13540 #, no-wrap
13541 msgid ""
13542 " ntfsresize-size device size\n"
13543 "\n"
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:3646
13548 msgid ""
13549 "This command is the same as L</ntfsresize> except that it allows you to "
13550 "specify the new size (in bytes) explicitly."
13551 msgstr ""
13552
13553 #. type: =head2
13554 #: ../fish/guestfish-actions.pod:3656
13555 msgid "part-add"
13556 msgstr ""
13557
13558 #. type: verbatim
13559 #: ../fish/guestfish-actions.pod:3658
13560 #, no-wrap
13561 msgid ""
13562 " part-add device prlogex startsect endsect\n"
13563 "\n"
13564 msgstr ""
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:3660
13568 msgid ""
13569 "This command adds a partition to C<device>.  If there is no partition table "
13570 "on the device, call L</part-init> first."
13571 msgstr ""
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5722
13575 msgid ""
13576 "The C<prlogex> parameter is the type of partition.  Normally you should pass"
13577 " C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13578 "C<logical>) and C<e> (or C<extended>) partition types."
13579 msgstr ""
13580
13581 #. type: textblock
13582 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5727
13583 msgid ""
13584 "C<startsect> and C<endsect> are the start and end of the partition in "
13585 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13586 "from the end of the disk (C<-1> is the last sector)."
13587 msgstr ""
13588
13589 #. type: textblock
13590 #: ../fish/guestfish-actions.pod:3672
13591 msgid ""
13592 "Creating a partition which covers the whole disk is not so easy.  Use L"
13593 "</part-disk> to do that."
13594 msgstr ""
13595
13596 #. type: =head2
13597 #: ../fish/guestfish-actions.pod:3675
13598 msgid "part-del"
13599 msgstr ""
13600
13601 #. type: verbatim
13602 #: ../fish/guestfish-actions.pod:3677
13603 #, no-wrap
13604 msgid ""
13605 " part-del device partnum\n"
13606 "\n"
13607 msgstr ""
13608
13609 #. type: textblock
13610 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5745
13611 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5747
13616 msgid ""
13617 "Note that in the case of MBR partitioning, deleting an extended partition "
13618 "also deletes any logical partitions it contains."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:3685
13623 msgid "part-disk"
13624 msgstr ""
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:3687
13628 #, no-wrap
13629 msgid ""
13630 " part-disk device parttype\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../fish/guestfish-actions.pod:3689
13636 msgid ""
13637 "This command is simply a combination of L</part-init> followed by L</part-"
13638 "add> to create a single primary partition covering the whole disk."
13639 msgstr ""
13640
13641 #. type: textblock
13642 #: ../fish/guestfish-actions.pod:3693
13643 msgid ""
13644 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other"
13645 " possible values are described in L</part-init>."
13646 msgstr ""
13647
13648 #. type: =head2
13649 #: ../fish/guestfish-actions.pod:3699
13650 msgid "part-get-bootable"
13651 msgstr ""
13652
13653 #. type: verbatim
13654 #: ../fish/guestfish-actions.pod:3701
13655 #, no-wrap
13656 msgid ""
13657 " part-get-bootable device partnum\n"
13658 "\n"
13659 msgstr ""
13660
13661 #. type: textblock
13662 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5783
13663 msgid ""
13664 "This command returns true if the partition C<partnum> on C<device> has the "
13665 "bootable flag set."
13666 msgstr ""
13667
13668 #. type: textblock
13669 #: ../fish/guestfish-actions.pod:3706
13670 msgid "See also L</part-set-bootable>."
13671 msgstr ""
13672
13673 #. type: =head2
13674 #: ../fish/guestfish-actions.pod:3708
13675 msgid "part-get-mbr-id"
13676 msgstr ""
13677
13678 #. type: verbatim
13679 #: ../fish/guestfish-actions.pod:3710
13680 #, no-wrap
13681 msgid ""
13682 " part-get-mbr-id device partnum\n"
13683 "\n"
13684 msgstr ""
13685
13686 #. type: textblock
13687 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5799
13688 msgid ""
13689 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13690 "partition C<partnum>."
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../fish/guestfish-actions.pod:3715 ../fish/guestfish-actions.pod:3859
13695 msgid ""
13696 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get"
13697 " undefined results for other partition table types (see L</part-get-"
13698 "parttype>)."
13699 msgstr ""
13700
13701 #. type: =head2
13702 #: ../fish/guestfish-actions.pod:3719
13703 msgid "part-get-parttype"
13704 msgstr ""
13705
13706 #. type: verbatim
13707 #: ../fish/guestfish-actions.pod:3721
13708 #, no-wrap
13709 msgid ""
13710 " part-get-parttype device\n"
13711 "\n"
13712 msgstr ""
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5816
13716 msgid ""
13717 "This command examines the partition table on C<device> and returns the "
13718 "partition table type (format) being used."
13719 msgstr ""
13720
13721 #. type: textblock
13722 #: ../fish/guestfish-actions.pod:3726
13723 msgid ""
13724 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13725 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13726 "possible, although unusual.  See L</part-init> for a full list."
13727 msgstr ""
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:3731
13731 msgid "part-init"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:3733
13736 #, no-wrap
13737 msgid ""
13738 " part-init device parttype\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5836
13744 msgid ""
13745 "This creates an empty partition table on C<device> of one of the partition "
13746 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt>"
13747 " (for large disks)."
13748 msgstr ""
13749
13750 #. type: textblock
13751 #: ../fish/guestfish-actions.pod:3739
13752 msgid ""
13753 "Initially there are no partitions.  Following this, you should call L</part-"
13754 "add> for each partition required."
13755 msgstr ""
13756
13757 #. type: textblock
13758 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5843
13759 msgid "Possible values for C<parttype> are:"
13760 msgstr ""
13761
13762 #. type: =item
13763 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5847
13764 msgid "B<efi>"
13765 msgstr ""
13766
13767 #. type: =item
13768 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5849
13769 msgid "B<gpt>"
13770 msgstr ""
13771
13772 #. type: textblock
13773 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5851
13774 msgid "Intel EFI / GPT partition table."
13775 msgstr ""
13776
13777 #. type: textblock
13778 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5853
13779 msgid ""
13780 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13781 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13782 "the C<mbr> format."
13783 msgstr ""
13784
13785 #. type: =item
13786 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5857
13787 msgid "B<mbr>"
13788 msgstr ""
13789
13790 #. type: =item
13791 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5859
13792 msgid "B<msdos>"
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5861
13797 msgid ""
13798 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13799 "Windows.  This partition type will B<only> work for device sizes up to 2 TB."
13800 "  For large disks we recommend using C<gpt>."
13801 msgstr ""
13802
13803 #. type: textblock
13804 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5868
13805 msgid ""
13806 "Other partition table types that may work but are not supported include:"
13807 msgstr ""
13808
13809 #. type: =item
13810 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5873
13811 msgid "B<aix>"
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5875
13816 msgid "AIX disk labels."
13817 msgstr ""
13818
13819 #. type: =item
13820 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5877
13821 msgid "B<amiga>"
13822 msgstr ""
13823
13824 #. type: =item
13825 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5879
13826 msgid "B<rdb>"
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5881
13831 msgid "Amiga \"Rigid Disk Block\" format."
13832 msgstr ""
13833
13834 #. type: =item
13835 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5883
13836 msgid "B<bsd>"
13837 msgstr ""
13838
13839 #. type: textblock
13840 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5885
13841 msgid "BSD disk labels."
13842 msgstr ""
13843
13844 #. type: =item
13845 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5887
13846 msgid "B<dasd>"
13847 msgstr ""
13848
13849 #. type: textblock
13850 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5889
13851 msgid "DASD, used on IBM mainframes."
13852 msgstr ""
13853
13854 #. type: =item
13855 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5891
13856 msgid "B<dvh>"
13857 msgstr ""
13858
13859 #. type: textblock
13860 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5893
13861 msgid "MIPS/SGI volumes."
13862 msgstr ""
13863
13864 #. type: =item
13865 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5895
13866 msgid "B<mac>"
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5897
13871 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13872 msgstr ""
13873
13874 #. type: =item
13875 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5899
13876 msgid "B<pc98>"
13877 msgstr ""
13878
13879 #. type: textblock
13880 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5901
13881 msgid "NEC PC-98 format, common in Japan apparently."
13882 msgstr ""
13883
13884 #. type: =item
13885 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5903
13886 msgid "B<sun>"
13887 msgstr ""
13888
13889 #. type: textblock
13890 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5905
13891 msgid "Sun disk labels."
13892 msgstr ""
13893
13894 #. type: =head2
13895 #: ../fish/guestfish-actions.pod:3808
13896 msgid "part-list"
13897 msgstr ""
13898
13899 #. type: verbatim
13900 #: ../fish/guestfish-actions.pod:3810
13901 #, no-wrap
13902 msgid ""
13903 " part-list device\n"
13904 "\n"
13905 msgstr ""
13906
13907 #. type: textblock
13908 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5919
13909 msgid ""
13910 "This command parses the partition table on C<device> and returns the list of"
13911 " partitions found."
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5922
13916 msgid "The fields in the returned structure are:"
13917 msgstr ""
13918
13919 #. type: =item
13920 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5926
13921 msgid "B<part_num>"
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5928
13926 msgid "Partition number, counting from 1."
13927 msgstr ""
13928
13929 #. type: =item
13930 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5930
13931 msgid "B<part_start>"
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../fish/guestfish-actions.pod:3825
13936 msgid ""
13937 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13938 "the device's sector size, see L</blockdev-getss>."
13939 msgstr ""
13940
13941 #. type: =item
13942 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5935
13943 msgid "B<part_end>"
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5937
13948 msgid "End of the partition in bytes."
13949 msgstr ""
13950
13951 #. type: =item
13952 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5939
13953 msgid "B<part_size>"
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5941
13958 msgid "Size of the partition in bytes."
13959 msgstr ""
13960
13961 #. type: =head2
13962 #: ../fish/guestfish-actions.pod:3838
13963 msgid "part-set-bootable"
13964 msgstr ""
13965
13966 #. type: verbatim
13967 #: ../fish/guestfish-actions.pod:3840
13968 #, no-wrap
13969 msgid ""
13970 " part-set-bootable device partnum true|false\n"
13971 "\n"
13972 msgstr ""
13973
13974 #. type: textblock
13975 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5959
13976 msgid ""
13977 "This sets the bootable flag on partition numbered C<partnum> on device "
13978 "C<device>.  Note that partitions are numbered from 1."
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5962
13983 msgid ""
13984 "The bootable flag is used by some operating systems (notably Windows) to "
13985 "determine which partition to boot from.  It is by no means universally "
13986 "recognized."
13987 msgstr ""
13988
13989 #. type: =head2
13990 #: ../fish/guestfish-actions.pod:3849
13991 msgid "part-set-mbr-id"
13992 msgstr ""
13993
13994 #. type: verbatim
13995 #: ../fish/guestfish-actions.pod:3851
13996 #, no-wrap
13997 msgid ""
13998 " part-set-mbr-id device partnum idbyte\n"
13999 "\n"
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5978
14004 msgid ""
14005 "Sets the MBR type byte (also known as the ID byte) of the numbered partition"
14006 " C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14007 "documentation are in fact hexadecimal numbers, but usually documented "
14008 "without any leading \"0x\" which might be confusing."
14009 msgstr ""
14010
14011 #. type: =head2
14012 #: ../fish/guestfish-actions.pod:3863
14013 msgid "part-set-name"
14014 msgstr ""
14015
14016 #. type: verbatim
14017 #: ../fish/guestfish-actions.pod:3865
14018 #, no-wrap
14019 msgid ""
14020 " part-set-name device partnum name\n"
14021 "\n"
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6000
14026 msgid ""
14027 "This sets the partition name on partition numbered C<partnum> on device "
14028 "C<device>.  Note that partitions are numbered from 1."
14029 msgstr ""
14030
14031 #. type: textblock
14032 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6003
14033 msgid ""
14034 "The partition name can only be set on certain types of partition table.  "
14035 "This works on C<gpt> but not on C<mbr> partitions."
14036 msgstr ""
14037
14038 #. type: =head2
14039 #: ../fish/guestfish-actions.pod:3873
14040 msgid "part-to-dev"
14041 msgstr ""
14042
14043 #. type: verbatim
14044 #: ../fish/guestfish-actions.pod:3875
14045 #, no-wrap
14046 msgid ""
14047 " part-to-dev partition\n"
14048 "\n"
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6016
14053 msgid ""
14054 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14055 "partition number, returning the device name (eg. \"/dev/sdb\")."
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:3881 ../fish/guestfish-actions.pod:3893
14060 msgid ""
14061 "The named partition must exist, for example as a string returned from L"
14062 "</list-partitions>."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:3884
14067 msgid "See also L</part-to-partnum>."
14068 msgstr ""
14069
14070 #. type: =head2
14071 #: ../fish/guestfish-actions.pod:3886
14072 msgid "part-to-partnum"
14073 msgstr ""
14074
14075 #. type: verbatim
14076 #: ../fish/guestfish-actions.pod:3888
14077 #, no-wrap
14078 msgid ""
14079 " part-to-partnum partition\n"
14080 "\n"
14081 msgstr ""
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6036
14085 msgid ""
14086 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14087 "partition number (eg. C<1>)."
14088 msgstr ""
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:3896
14092 msgid "See also L</part-to-dev>."
14093 msgstr ""
14094
14095 #. type: =head2
14096 #: ../fish/guestfish-actions.pod:3898
14097 msgid "ping-daemon"
14098 msgstr ""
14099
14100 #. type: verbatim
14101 #: ../fish/guestfish-actions.pod:3900
14102 #, no-wrap
14103 msgid ""
14104 " ping-daemon\n"
14105 "\n"
14106 msgstr ""
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6051
14110 msgid ""
14111 "This is a test probe into the guestfs daemon running inside the qemu "
14112 "subprocess.  Calling this function checks that the daemon responds to the "
14113 "ping message, without affecting the daemon or attached block device(s) in "
14114 "any other way."
14115 msgstr ""
14116
14117 #. type: =head2
14118 #: ../fish/guestfish-actions.pod:3907
14119 msgid "pread"
14120 msgstr ""
14121
14122 #. type: verbatim
14123 #: ../fish/guestfish-actions.pod:3909
14124 #, no-wrap
14125 msgid ""
14126 " pread path count offset\n"
14127 "\n"
14128 msgstr ""
14129
14130 #. type: textblock
14131 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6069
14132 msgid ""
14133 "This command lets you read part of a file.  It reads C<count> bytes of the "
14134 "file, starting at C<offset>, from file C<path>."
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:3914 ../fish/guestfish-actions.pod:3929
14139 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6098
14140 msgid ""
14141 "This may read fewer bytes than requested.  For further details see the "
14142 "L<pread(2)> system call."
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:3917
14147 msgid "See also L</pwrite>, L</pread-device>."
14148 msgstr ""
14149
14150 #. type: =head2
14151 #: ../fish/guestfish-actions.pod:3922
14152 msgid "pread-device"
14153 msgstr ""
14154
14155 #. type: verbatim
14156 #: ../fish/guestfish-actions.pod:3924
14157 #, no-wrap
14158 msgid ""
14159 " pread-device device count offset\n"
14160 "\n"
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6095
14165 msgid ""
14166 "This command lets you read part of a file.  It reads C<count> bytes of "
14167 "C<device>, starting at C<offset>."
14168 msgstr ""
14169
14170 #. type: textblock
14171 #: ../fish/guestfish-actions.pod:3932
14172 msgid "See also L</pread>."
14173 msgstr ""
14174
14175 #. type: =head2
14176 #: ../fish/guestfish-actions.pod:3937
14177 msgid "pvcreate"
14178 msgstr ""
14179
14180 #. type: verbatim
14181 #: ../fish/guestfish-actions.pod:3939
14182 #, no-wrap
14183 msgid ""
14184 " pvcreate device\n"
14185 "\n"
14186 msgstr ""
14187
14188 #. type: textblock
14189 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6118
14190 msgid ""
14191 "This creates an LVM physical volume on the named C<device>, where C<device> "
14192 "should usually be a partition name such as C</dev/sda1>."
14193 msgstr ""
14194
14195 #. type: =head2
14196 #: ../fish/guestfish-actions.pod:3945
14197 msgid "pvremove"
14198 msgstr ""
14199
14200 #. type: verbatim
14201 #: ../fish/guestfish-actions.pod:3947
14202 #, no-wrap
14203 msgid ""
14204 " pvremove device\n"
14205 "\n"
14206 msgstr ""
14207
14208 #. type: textblock
14209 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6132
14210 msgid ""
14211 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14212 "it."
14213 msgstr ""
14214
14215 #. type: textblock
14216 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6135
14217 msgid ""
14218 "The implementation uses the C<pvremove> command which refuses to wipe "
14219 "physical volumes that contain any volume groups, so you have to remove those"
14220 " first."
14221 msgstr ""
14222
14223 #. type: =head2
14224 #: ../fish/guestfish-actions.pod:3956
14225 msgid "pvresize"
14226 msgstr ""
14227
14228 #. type: verbatim
14229 #: ../fish/guestfish-actions.pod:3958
14230 #, no-wrap
14231 msgid ""
14232 " pvresize device\n"
14233 "\n"
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6149
14238 msgid ""
14239 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14240 "the new size of the underlying device."
14241 msgstr ""
14242
14243 #. type: =head2
14244 #: ../fish/guestfish-actions.pod:3963
14245 msgid "pvresize-size"
14246 msgstr ""
14247
14248 #. type: verbatim
14249 #: ../fish/guestfish-actions.pod:3965
14250 #, no-wrap
14251 msgid ""
14252 " pvresize-size device size\n"
14253 "\n"
14254 msgstr ""
14255
14256 #. type: textblock
14257 #: ../fish/guestfish-actions.pod:3967
14258 msgid ""
14259 "This command is the same as L</pvresize> except that it allows you to "
14260 "specify the new size (in bytes) explicitly."
14261 msgstr ""
14262
14263 #. type: =head2
14264 #: ../fish/guestfish-actions.pod:3970
14265 msgid "pvs"
14266 msgstr ""
14267
14268 #. type: verbatim
14269 #: ../fish/guestfish-actions.pod:3972
14270 #, no-wrap
14271 msgid ""
14272 " pvs\n"
14273 "\n"
14274 msgstr ""
14275
14276 #. type: textblock
14277 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6175
14278 msgid ""
14279 "List all the physical volumes detected.  This is the equivalent of the "
14280 "L<pvs(8)> command."
14281 msgstr ""
14282
14283 #. type: textblock
14284 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6178
14285 msgid ""
14286 "This returns a list of just the device names that contain PVs (eg. "
14287 "C</dev/sda2>)."
14288 msgstr ""
14289
14290 #. type: textblock
14291 #: ../fish/guestfish-actions.pod:3980
14292 msgid "See also L</pvs-full>."
14293 msgstr ""
14294
14295 #. type: =head2
14296 #: ../fish/guestfish-actions.pod:3982
14297 msgid "pvs-full"
14298 msgstr ""
14299
14300 #. type: verbatim
14301 #: ../fish/guestfish-actions.pod:3984
14302 #, no-wrap
14303 msgid ""
14304 " pvs-full\n"
14305 "\n"
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6194
14310 msgid ""
14311 "List all the physical volumes detected.  This is the equivalent of the "
14312 "L<pvs(8)> command.  The \"full\" version includes all fields."
14313 msgstr ""
14314
14315 #. type: =head2
14316 #: ../fish/guestfish-actions.pod:3989
14317 msgid "pvuuid"
14318 msgstr ""
14319
14320 #. type: verbatim
14321 #: ../fish/guestfish-actions.pod:3991
14322 #, no-wrap
14323 msgid ""
14324 " pvuuid device\n"
14325 "\n"
14326 msgstr ""
14327
14328 #. type: textblock
14329 #: ../fish/guestfish-actions.pod:3993 ../src/guestfs-actions.pod:6209
14330 msgid "This command returns the UUID of the LVM PV C<device>."
14331 msgstr ""
14332
14333 #. type: =head2
14334 #: ../fish/guestfish-actions.pod:3995
14335 msgid "pwrite"
14336 msgstr ""
14337
14338 #. type: verbatim
14339 #: ../fish/guestfish-actions.pod:3997
14340 #, no-wrap
14341 msgid ""
14342 " pwrite path content offset\n"
14343 "\n"
14344 msgstr ""
14345
14346 #. type: textblock
14347 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6225
14348 msgid ""
14349 "This command writes to part of a file.  It writes the data buffer C<content>"
14350 " to the file C<path> starting at offset C<offset>."
14351 msgstr ""
14352
14353 #. type: textblock
14354 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6228
14355 msgid ""
14356 "This command implements the L<pwrite(2)> system call, and like that system "
14357 "call it may not write the full data requested.  The return value is the "
14358 "number of bytes that were actually written to the file.  This could even be "
14359 "0, although short writes are unlikely for regular files in ordinary "
14360 "circumstances."
14361 msgstr ""
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:4008
14365 msgid "See also L</pread>, L</pwrite-device>."
14366 msgstr ""
14367
14368 #. type: =head2
14369 #: ../fish/guestfish-actions.pod:4013
14370 msgid "pwrite-device"
14371 msgstr ""
14372
14373 #. type: verbatim
14374 #: ../fish/guestfish-actions.pod:4015
14375 #, no-wrap
14376 msgid ""
14377 " pwrite-device device content offset\n"
14378 "\n"
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6252
14383 msgid ""
14384 "This command writes to part of a device.  It writes the data buffer "
14385 "C<content> to C<device> starting at offset C<offset>."
14386 msgstr ""
14387
14388 #. type: textblock
14389 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6255
14390 msgid ""
14391 "This command implements the L<pwrite(2)> system call, and like that system "
14392 "call it may not write the full data requested (although short writes to disk"
14393 " devices and partitions are probably impossible with standard Linux "
14394 "kernels)."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:4025
14399 msgid "See also L</pwrite>."
14400 msgstr ""
14401
14402 #. type: =head2
14403 #: ../fish/guestfish-actions.pod:4030
14404 msgid "read-file"
14405 msgstr ""
14406
14407 #. type: verbatim
14408 #: ../fish/guestfish-actions.pod:4032
14409 #, no-wrap
14410 msgid ""
14411 " read-file path\n"
14412 "\n"
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6276
14417 msgid "This calls returns the contents of the file C<path> as a buffer."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:4037
14422 msgid ""
14423 "Unlike L</cat>, this function can correctly handle files that contain "
14424 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14425 "is limited in the total size of file that can be handled."
14426 msgstr ""
14427
14428 #. type: =head2
14429 #: ../fish/guestfish-actions.pod:4045
14430 msgid "read-lines"
14431 msgstr ""
14432
14433 #. type: verbatim
14434 #: ../fish/guestfish-actions.pod:4047
14435 #, no-wrap
14436 msgid ""
14437 " read-lines path\n"
14438 "\n"
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6301
14443 msgid ""
14444 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14445 "C<CRLF> character sequences are I<not> returned."
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:4054
14450 msgid ""
14451 "Note that this function cannot correctly handle binary files (specifically, "
14452 "files containing C<\\0> character which is treated as end of line).  For "
14453 "those you need to use the L</read-file> function which has a more complex "
14454 "interface."
14455 msgstr ""
14456
14457 #. type: =head2
14458 #: ../fish/guestfish-actions.pod:4059
14459 msgid "readdir"
14460 msgstr ""
14461
14462 #. type: verbatim
14463 #: ../fish/guestfish-actions.pod:4061
14464 #, no-wrap
14465 msgid ""
14466 " readdir dir\n"
14467 "\n"
14468 msgstr ""
14469
14470 #. type: textblock
14471 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6321
14472 msgid "This returns the list of directory entries in directory C<dir>."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6323
14477 msgid ""
14478 "All entries in the directory are returned, including C<.> and C<..>.  The "
14479 "entries are I<not> sorted, but returned in the same order as the underlying "
14480 "filesystem."
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6327
14485 msgid ""
14486 "Also this call returns basic file type information about each file.  The "
14487 "C<ftyp> field will contain one of the following characters:"
14488 msgstr ""
14489
14490 #. type: =item
14491 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6332
14492 msgid "'b'"
14493 msgstr ""
14494
14495 #. type: textblock
14496 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6334
14497 msgid "Block special"
14498 msgstr ""
14499
14500 #. type: =item
14501 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6336
14502 msgid "'c'"
14503 msgstr ""
14504
14505 #. type: textblock
14506 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6338
14507 msgid "Char special"
14508 msgstr ""
14509
14510 #. type: =item
14511 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6340
14512 msgid "'d'"
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6342
14517 msgid "Directory"
14518 msgstr ""
14519
14520 #. type: =item
14521 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6344
14522 msgid "'f'"
14523 msgstr ""
14524
14525 #. type: textblock
14526 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6346
14527 msgid "FIFO (named pipe)"
14528 msgstr ""
14529
14530 #. type: =item
14531 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6348
14532 msgid "'l'"
14533 msgstr ""
14534
14535 #. type: textblock
14536 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6350
14537 msgid "Symbolic link"
14538 msgstr ""
14539
14540 #. type: =item
14541 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6352
14542 msgid "'r'"
14543 msgstr ""
14544
14545 #. type: textblock
14546 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6354
14547 msgid "Regular file"
14548 msgstr ""
14549
14550 #. type: =item
14551 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6356
14552 msgid "'s'"
14553 msgstr ""
14554
14555 #. type: textblock
14556 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6358
14557 msgid "Socket"
14558 msgstr ""
14559
14560 #. type: =item
14561 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6360
14562 msgid "'u'"
14563 msgstr ""
14564
14565 #. type: textblock
14566 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6362
14567 msgid "Unknown file type"
14568 msgstr ""
14569
14570 #. type: =item
14571 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6364
14572 msgid "'?'"
14573 msgstr ""
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:4108 ../src/guestfs-actions.pod:6366
14577 msgid ""
14578 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14579 msgstr ""
14580
14581 #. type: textblock
14582 #: ../fish/guestfish-actions.pod:4113
14583 msgid ""
14584 "This function is primarily intended for use by programs.  To get a simple "
14585 "list of names, use L</ls>.  To get a printable directory for human "
14586 "consumption, use L</ll>."
14587 msgstr ""
14588
14589 #. type: =head2
14590 #: ../fish/guestfish-actions.pod:4117
14591 msgid "readlink"
14592 msgstr ""
14593
14594 #. type: verbatim
14595 #: ../fish/guestfish-actions.pod:4119
14596 #, no-wrap
14597 msgid ""
14598 " readlink path\n"
14599 "\n"
14600 msgstr ""
14601
14602 #. type: textblock
14603 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6387
14604 msgid "This command reads the target of a symbolic link."
14605 msgstr ""
14606
14607 #. type: =head2
14608 #: ../fish/guestfish-actions.pod:4123
14609 msgid "readlinklist"
14610 msgstr ""
14611
14612 #. type: verbatim
14613 #: ../fish/guestfish-actions.pod:4125
14614 #, no-wrap
14615 msgid ""
14616 " readlinklist path 'names ...'\n"
14617 "\n"
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:4127 ../src/guestfs-actions.pod:6401
14622 msgid ""
14623 "This call allows you to do a C<readlink> operation on multiple files, where "
14624 "all files are in the directory C<path>.  C<names> is the list of files from "
14625 "this directory."
14626 msgstr ""
14627
14628 #. type: textblock
14629 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6405
14630 msgid ""
14631 "On return you get a list of strings, with a one-to-one correspondence to the"
14632 " C<names> list.  Each string is the value of the symbolic link."
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6409
14637 msgid ""
14638 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14639 "result string is the empty string C<\"\">.  However the whole operation is "
14640 "completed even if there were C<readlink(2)> errors, and so you can call this"
14641 " function with names where you don't know if they are symbolic links already"
14642 " (albeit slightly less efficient)."
14643 msgstr ""
14644
14645 #. type: textblock
14646 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6416
14647 msgid ""
14648 "This call is intended for programs that want to efficiently list a directory"
14649 " contents without making many round-trips.  Very long directory listings "
14650 "might cause the protocol message size to be exceeded, causing this call to "
14651 "fail.  The caller must split up such requests into smaller groups of names."
14652 msgstr ""
14653
14654 #. type: =head2
14655 #: ../fish/guestfish-actions.pod:4149
14656 msgid "realpath"
14657 msgstr ""
14658
14659 #. type: verbatim
14660 #: ../fish/guestfish-actions.pod:4151
14661 #, no-wrap
14662 msgid ""
14663 " realpath path\n"
14664 "\n"
14665 msgstr ""
14666
14667 #. type: textblock
14668 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6435
14669 msgid ""
14670 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14671 "has no C<.>, C<..> or symbolic link path elements."
14672 msgstr ""
14673
14674 #. type: =head2
14675 #: ../fish/guestfish-actions.pod:4156
14676 msgid "removexattr"
14677 msgstr ""
14678
14679 #. type: verbatim
14680 #: ../fish/guestfish-actions.pod:4158
14681 #, no-wrap
14682 msgid ""
14683 " removexattr xattr path\n"
14684 "\n"
14685 msgstr ""
14686
14687 #. type: textblock
14688 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6450
14689 msgid ""
14690 "This call removes the extended attribute named C<xattr> of the file C<path>."
14691 msgstr ""
14692
14693 #. type: textblock
14694 #: ../fish/guestfish-actions.pod:4163
14695 msgid "See also: L</lremovexattr>, L<attr(5)>."
14696 msgstr ""
14697
14698 #. type: =head2
14699 #: ../fish/guestfish-actions.pod:4165
14700 msgid "resize2fs"
14701 msgstr ""
14702
14703 #. type: verbatim
14704 #: ../fish/guestfish-actions.pod:4167
14705 #, no-wrap
14706 msgid ""
14707 " resize2fs device\n"
14708 "\n"
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6465
14713 msgid ""
14714 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14715 "underlying device."
14716 msgstr ""
14717
14718 #. type: textblock
14719 #: ../fish/guestfish-actions.pod:4172
14720 msgid ""
14721 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device>"
14722 " before calling this command.  For unknown reasons C<resize2fs> sometimes "
14723 "gives an error about this and sometimes not.  In any case, it is always safe"
14724 " to call L</e2fsck-f> before calling this function."
14725 msgstr ""
14726
14727 #. type: =head2
14728 #: ../fish/guestfish-actions.pod:4178
14729 msgid "resize2fs-M"
14730 msgstr ""
14731
14732 #. type: verbatim
14733 #: ../fish/guestfish-actions.pod:4180
14734 #, no-wrap
14735 msgid ""
14736 " resize2fs-M device\n"
14737 "\n"
14738 msgstr ""
14739
14740 #. type: textblock
14741 #: ../fish/guestfish-actions.pod:4182
14742 msgid ""
14743 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14744 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14745 "command."
14746 msgstr ""
14747
14748 #. type: textblock
14749 #: ../fish/guestfish-actions.pod:4186
14750 msgid ""
14751 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14752 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14753 "multiplied together, give the resulting size of the minimal filesystem in "
14754 "bytes."
14755 msgstr ""
14756
14757 #. type: =head2
14758 #: ../fish/guestfish-actions.pod:4191
14759 msgid "resize2fs-size"
14760 msgstr ""
14761
14762 #. type: verbatim
14763 #: ../fish/guestfish-actions.pod:4193
14764 #, no-wrap
14765 msgid ""
14766 " resize2fs-size device size\n"
14767 "\n"
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../fish/guestfish-actions.pod:4195
14772 msgid ""
14773 "This command is the same as L</resize2fs> except that it allows you to "
14774 "specify the new size (in bytes) explicitly."
14775 msgstr ""
14776
14777 #. type: =head2
14778 #: ../fish/guestfish-actions.pod:4198
14779 msgid "rm"
14780 msgstr ""
14781
14782 #. type: verbatim
14783 #: ../fish/guestfish-actions.pod:4200
14784 #, no-wrap
14785 msgid ""
14786 " rm path\n"
14787 "\n"
14788 msgstr ""
14789
14790 #. type: textblock
14791 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6517
14792 msgid "Remove the single file C<path>."
14793 msgstr ""
14794
14795 #. type: =head2
14796 #: ../fish/guestfish-actions.pod:4204
14797 msgid "rm-rf"
14798 msgstr ""
14799
14800 #. type: verbatim
14801 #: ../fish/guestfish-actions.pod:4206
14802 #, no-wrap
14803 msgid ""
14804 " rm-rf path\n"
14805 "\n"
14806 msgstr ""
14807
14808 #. type: textblock
14809 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6529
14810 msgid ""
14811 "Remove the file or directory C<path>, recursively removing the contents if "
14812 "its a directory.  This is like the C<rm -rf> shell command."
14813 msgstr ""
14814
14815 #. type: =head2
14816 #: ../fish/guestfish-actions.pod:4212
14817 msgid "rmdir"
14818 msgstr ""
14819
14820 #. type: verbatim
14821 #: ../fish/guestfish-actions.pod:4214
14822 #, no-wrap
14823 msgid ""
14824 " rmdir path\n"
14825 "\n"
14826 msgstr ""
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6543
14830 msgid "Remove the single directory C<path>."
14831 msgstr ""
14832
14833 #. type: =head2
14834 #: ../fish/guestfish-actions.pod:4218
14835 msgid "rmmountpoint"
14836 msgstr ""
14837
14838 #. type: verbatim
14839 #: ../fish/guestfish-actions.pod:4220
14840 #, no-wrap
14841 msgid ""
14842 " rmmountpoint exemptpath\n"
14843 "\n"
14844 msgstr ""
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:4222
14848 msgid ""
14849 "This calls removes a mountpoint that was previously created with "
14850 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
14851 msgstr ""
14852
14853 #. type: =head2
14854 #: ../fish/guestfish-actions.pod:4226
14855 msgid "scrub-device"
14856 msgstr ""
14857
14858 #. type: verbatim
14859 #: ../fish/guestfish-actions.pod:4228
14860 #, no-wrap
14861 msgid ""
14862 " scrub-device device\n"
14863 "\n"
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6569
14868 msgid ""
14869 "This command writes patterns over C<device> to make data retrieval more "
14870 "difficult."
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4248
14875 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6572
14876 #: ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
14877 msgid ""
14878 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14879 "more details."
14880 msgstr ""
14881
14882 #. type: =head2
14883 #: ../fish/guestfish-actions.pod:4239
14884 msgid "scrub-file"
14885 msgstr ""
14886
14887 #. type: verbatim
14888 #: ../fish/guestfish-actions.pod:4241
14889 #, no-wrap
14890 msgid ""
14891 " scrub-file file\n"
14892 "\n"
14893 msgstr ""
14894
14895 #. type: textblock
14896 #: ../fish/guestfish-actions.pod:4243 ../src/guestfs-actions.pod:6588
14897 msgid ""
14898 "This command writes patterns over a file to make data retrieval more "
14899 "difficult."
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6591
14904 msgid "The file is I<removed> after scrubbing."
14905 msgstr ""
14906
14907 #. type: =head2
14908 #: ../fish/guestfish-actions.pod:4251
14909 msgid "scrub-freespace"
14910 msgstr ""
14911
14912 #. type: verbatim
14913 #: ../fish/guestfish-actions.pod:4253
14914 #, no-wrap
14915 msgid ""
14916 " scrub-freespace dir\n"
14917 "\n"
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../fish/guestfish-actions.pod:4255
14922 msgid ""
14923 "This command creates the directory C<dir> and then fills it with files until"
14924 " the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14925 "deletes them.  The intention is to scrub any free space on the partition "
14926 "containing C<dir>."
14927 msgstr ""
14928
14929 #. type: =head2
14930 #: ../fish/guestfish-actions.pod:4264
14931 msgid "set-append"
14932 msgstr ""
14933
14934 #. type: =head2
14935 #: ../fish/guestfish-actions.pod:4266
14936 msgid "append"
14937 msgstr ""
14938
14939 #. type: verbatim
14940 #: ../fish/guestfish-actions.pod:4268
14941 #, no-wrap
14942 msgid ""
14943 " set-append append\n"
14944 "\n"
14945 msgstr ""
14946
14947 #. type: textblock
14948 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6625
14949 msgid ""
14950 "This function is used to add additional options to the guest kernel command "
14951 "line."
14952 msgstr ""
14953
14954 #. type: textblock
14955 #: ../fish/guestfish-actions.pod:4273 ../src/guestfs-actions.pod:6628
14956 msgid ""
14957 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14958 "environment variable."
14959 msgstr ""
14960
14961 #. type: textblock
14962 #: ../fish/guestfish-actions.pod:4276 ../src/guestfs-actions.pod:6631
14963 msgid ""
14964 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14965 "(libguestfs always adds a few of its own)."
14966 msgstr ""
14967
14968 #. type: =head2
14969 #: ../fish/guestfish-actions.pod:4279
14970 msgid "set-attach-method"
14971 msgstr ""
14972
14973 #. type: =head2
14974 #: ../fish/guestfish-actions.pod:4281
14975 msgid "attach-method"
14976 msgstr ""
14977
14978 #. type: verbatim
14979 #: ../fish/guestfish-actions.pod:4283
14980 #, no-wrap
14981 msgid ""
14982 " set-attach-method attachmethod\n"
14983 "\n"
14984 msgstr ""
14985
14986 #. type: textblock
14987 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6644
14988 msgid ""
14989 "Set the method that libguestfs uses to connect to the back end guestfsd "
14990 "daemon.  Possible methods are:"
14991 msgstr ""
14992
14993 #. type: =item
14994 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6649
14995 #: ../src/guestfs.pod:2916
14996 msgid "C<appliance>"
14997 msgstr ""
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6651
15001 msgid ""
15002 "Launch an appliance and connect to it.  This is the ordinary method and the "
15003 "default."
15004 msgstr ""
15005
15006 #. type: =item
15007 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6654
15008 msgid "C<unix:I<path>>"
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6656
15013 msgid "Connect to the Unix domain socket I<path>."
15014 msgstr ""
15015
15016 #. type: textblock
15017 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6658
15018 msgid ""
15019 "This method lets you connect to an existing daemon or (using virtio-serial) "
15020 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15021 "RUNNING DAEMONS>."
15022 msgstr ""
15023
15024 #. type: =head2
15025 #: ../fish/guestfish-actions.pod:4305
15026 msgid "set-autosync"
15027 msgstr ""
15028
15029 #. type: =head2
15030 #: ../fish/guestfish-actions.pod:4307
15031 msgid "autosync"
15032 msgstr ""
15033
15034 #. type: verbatim
15035 #: ../fish/guestfish-actions.pod:4309
15036 #, no-wrap
15037 msgid ""
15038 " set-autosync true|false\n"
15039 "\n"
15040 msgstr ""
15041
15042 #. type: textblock
15043 #: ../fish/guestfish-actions.pod:4311 ../src/guestfs-actions.pod:6674
15044 msgid ""
15045 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15046 "effort attempt to make filesystems consistent and synchronized when the "
15047 "handle is closed (also if the program exits without closing handles)."
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6679
15052 msgid ""
15053 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15054 "disabled by default)."
15055 msgstr ""
15056
15057 #. type: =head2
15058 #: ../fish/guestfish-actions.pod:4319
15059 msgid "set-direct"
15060 msgstr ""
15061
15062 #. type: =head2
15063 #: ../fish/guestfish-actions.pod:4321
15064 msgid "direct"
15065 msgstr ""
15066
15067 #. type: verbatim
15068 #: ../fish/guestfish-actions.pod:4323
15069 #, no-wrap
15070 msgid ""
15071 " set-direct true|false\n"
15072 "\n"
15073 msgstr ""
15074
15075 #. type: textblock
15076 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6692
15077 msgid ""
15078 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15079 "passed directly through to the appliance once it is launched."
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../fish/guestfish-actions.pod:4329
15084 msgid ""
15085 "One consequence of this is that log messages aren't caught by the library "
15086 "and handled by L</set-log-message-callback>, but go straight to stdout."
15087 msgstr ""
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:4333 ../src/guestfs-actions.pod:6700
15091 msgid ""
15092 "You probably don't want to use this unless you know what you are doing."
15093 msgstr ""
15094
15095 #. type: textblock
15096 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6703
15097 msgid "The default is disabled."
15098 msgstr ""
15099
15100 #. type: =head2
15101 #: ../fish/guestfish-actions.pod:4338
15102 msgid "set-e2label"
15103 msgstr ""
15104
15105 #. type: verbatim
15106 #: ../fish/guestfish-actions.pod:4340
15107 #, no-wrap
15108 msgid ""
15109 " set-e2label device label\n"
15110 "\n"
15111 msgstr ""
15112
15113 #. type: textblock
15114 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6716
15115 msgid ""
15116 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15117 "C<label>.  Filesystem labels are limited to 16 characters."
15118 msgstr ""
15119
15120 #. type: textblock
15121 #: ../fish/guestfish-actions.pod:4346
15122 msgid ""
15123 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15124 "label on a filesystem."
15125 msgstr ""
15126
15127 #. type: =head2
15128 #: ../fish/guestfish-actions.pod:4349
15129 msgid "set-e2uuid"
15130 msgstr ""
15131
15132 #. type: verbatim
15133 #: ../fish/guestfish-actions.pod:4351
15134 #, no-wrap
15135 msgid ""
15136 " set-e2uuid device uuid\n"
15137 "\n"
15138 msgstr ""
15139
15140 #. type: textblock
15141 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6734
15142 msgid ""
15143 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15144 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15145 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4358
15150 msgid ""
15151 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15152 "UUID of a filesystem."
15153 msgstr ""
15154
15155 #. type: =head2
15156 #: ../fish/guestfish-actions.pod:4361
15157 msgid "set-memsize"
15158 msgstr ""
15159
15160 #. type: =head2
15161 #: ../fish/guestfish-actions.pod:4363
15162 msgid "memsize"
15163 msgstr ""
15164
15165 #. type: verbatim
15166 #: ../fish/guestfish-actions.pod:4365
15167 #, no-wrap
15168 msgid ""
15169 " set-memsize memsize\n"
15170 "\n"
15171 msgstr ""
15172
15173 #. type: textblock
15174 #: ../fish/guestfish-actions.pod:4367
15175 msgid ""
15176 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15177 "This only has any effect if called before L</launch>."
15178 msgstr ""
15179
15180 #. type: textblock
15181 #: ../fish/guestfish-actions.pod:4371 ../src/guestfs-actions.pod:6756
15182 msgid ""
15183 "You can also change this by setting the environment variable "
15184 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15185 msgstr ""
15186
15187 #. type: =head2
15188 #: ../fish/guestfish-actions.pod:4378
15189 msgid "set-network"
15190 msgstr ""
15191
15192 #. type: =head2
15193 #: ../fish/guestfish-actions.pod:4380
15194 msgid "network"
15195 msgstr ""
15196
15197 #. type: verbatim
15198 #: ../fish/guestfish-actions.pod:4382
15199 #, no-wrap
15200 msgid ""
15201 " set-network true|false\n"
15202 "\n"
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6773
15207 msgid ""
15208 "If C<network> is true, then the network is enabled in the libguestfs "
15209 "appliance.  The default is false."
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:4387 ../src/guestfs-actions.pod:6776
15214 msgid ""
15215 "This affects whether commands are able to access the network (see "
15216 "L<guestfs(3)/RUNNING COMMANDS>)."
15217 msgstr ""
15218
15219 #. type: textblock
15220 #: ../fish/guestfish-actions.pod:4390
15221 msgid ""
15222 "You must call this before calling L</launch>, otherwise it has no effect."
15223 msgstr ""
15224
15225 #. type: =head2
15226 #: ../fish/guestfish-actions.pod:4393
15227 msgid "set-path"
15228 msgstr ""
15229
15230 #. type: verbatim
15231 #: ../fish/guestfish-actions.pod:4397
15232 #, no-wrap
15233 msgid ""
15234 " set-path searchpath\n"
15235 "\n"
15236 msgstr ""
15237
15238 #. type: textblock
15239 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6792
15240 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15241 msgstr ""
15242
15243 #. type: textblock
15244 #: ../fish/guestfish-actions.pod:4401 ../src/guestfs-actions.pod:6794
15245 msgid ""
15246 "The default is C<$libdir/guestfs> unless overridden by setting "
15247 "C<LIBGUESTFS_PATH> environment variable."
15248 msgstr ""
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6797
15252 msgid "Setting C<path> to C<NULL> restores the default path."
15253 msgstr ""
15254
15255 #. type: =head2
15256 #: ../fish/guestfish-actions.pod:4406
15257 msgid "set-pgroup"
15258 msgstr ""
15259
15260 #. type: =head2
15261 #: ../fish/guestfish-actions.pod:4408
15262 msgid "pgroup"
15263 msgstr ""
15264
15265 #. type: verbatim
15266 #: ../fish/guestfish-actions.pod:4410
15267 #, no-wrap
15268 msgid ""
15269 " set-pgroup true|false\n"
15270 "\n"
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6809
15275 msgid ""
15276 "If C<pgroup> is true, child processes are placed into their own process "
15277 "group."
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6812
15282 msgid ""
15283 "The practical upshot of this is that signals like C<SIGINT> (from users "
15284 "pressing C<^C>) won't be received by the child process."
15285 msgstr ""
15286
15287 #. type: textblock
15288 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6815
15289 msgid ""
15290 "The default for this flag is false, because usually you want C<^C> to kill "
15291 "the subprocess."
15292 msgstr ""
15293
15294 #. type: =head2
15295 #: ../fish/guestfish-actions.pod:4421
15296 msgid "set-qemu"
15297 msgstr ""
15298
15299 #. type: =head2
15300 #: ../fish/guestfish-actions.pod:4423
15301 msgid "qemu"
15302 msgstr ""
15303
15304 #. type: verbatim
15305 #: ../fish/guestfish-actions.pod:4425
15306 #, no-wrap
15307 msgid ""
15308 " set-qemu qemu\n"
15309 "\n"
15310 msgstr ""
15311
15312 #. type: textblock
15313 #: ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6828
15314 msgid "Set the qemu binary that we will use."
15315 msgstr ""
15316
15317 #. type: textblock
15318 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6830
15319 msgid ""
15320 "The default is chosen when the library was compiled by the configure script."
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6833
15325 msgid ""
15326 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15327 "variable."
15328 msgstr ""
15329
15330 #. type: textblock
15331 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6836
15332 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15333 msgstr ""
15334
15335 #. type: textblock
15336 #: ../fish/guestfish-actions.pod:4437 ../src/guestfs-actions.pod:6838
15337 msgid ""
15338 "Note that you should call this function as early as possible after creating "
15339 "the handle.  This is because some pre-launch operations depend on testing "
15340 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15341 "don't retest features, and so you might see inconsistent results.  Using the"
15342 " environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15343 "the qemu binary at the same time as the handle is created."
15344 msgstr ""
15345
15346 #. type: =head2
15347 #: ../fish/guestfish-actions.pod:4445
15348 msgid "set-recovery-proc"
15349 msgstr ""
15350
15351 #. type: =head2
15352 #: ../fish/guestfish-actions.pod:4447
15353 msgid "recovery-proc"
15354 msgstr ""
15355
15356 #. type: verbatim
15357 #: ../fish/guestfish-actions.pod:4449
15358 #, no-wrap
15359 msgid ""
15360 " set-recovery-proc true|false\n"
15361 "\n"
15362 msgstr ""
15363
15364 #. type: textblock
15365 #: ../fish/guestfish-actions.pod:4451
15366 msgid ""
15367 "If this is called with the parameter C<false> then L</launch> does not "
15368 "create a recovery process.  The purpose of the recovery process is to stop "
15369 "runaway qemu processes in the case where the main program aborts abruptly."
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:4456
15374 msgid ""
15375 "This only has any effect if called before L</launch>, and the default is "
15376 "true."
15377 msgstr ""
15378
15379 #. type: textblock
15380 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6864
15381 msgid ""
15382 "About the only time when you would want to disable this is if the main "
15383 "process will fork itself into the background (\"daemonize\" itself).  In "
15384 "this case the recovery process thinks that the main program has disappeared "
15385 "and so kills qemu, which is not very helpful."
15386 msgstr ""
15387
15388 #. type: =head2
15389 #: ../fish/guestfish-actions.pod:4465
15390 msgid "set-selinux"
15391 msgstr ""
15392
15393 #. type: =head2
15394 #: ../fish/guestfish-actions.pod:4467
15395 msgid "selinux"
15396 msgstr ""
15397
15398 #. type: verbatim
15399 #: ../fish/guestfish-actions.pod:4469
15400 #, no-wrap
15401 msgid ""
15402 " set-selinux true|false\n"
15403 "\n"
15404 msgstr ""
15405
15406 #. type: textblock
15407 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6880
15408 msgid ""
15409 "This sets the selinux flag that is passed to the appliance at boot time.  "
15410 "The default is C<selinux=0> (disabled)."
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6883
15415 msgid ""
15416 "Note that if SELinux is enabled, it is always in Permissive mode "
15417 "(C<enforcing=0>)."
15418 msgstr ""
15419
15420 #. type: =head2
15421 #: ../fish/guestfish-actions.pod:4480
15422 msgid "set-smp"
15423 msgstr ""
15424
15425 #. type: =head2
15426 #: ../fish/guestfish-actions.pod:4482
15427 msgid "smp"
15428 msgstr ""
15429
15430 #. type: verbatim
15431 #: ../fish/guestfish-actions.pod:4484
15432 #, no-wrap
15433 msgid ""
15434 " set-smp smp\n"
15435 "\n"
15436 msgstr ""
15437
15438 #. type: textblock
15439 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6899
15440 msgid ""
15441 "Change the number of virtual CPUs assigned to the appliance.  The default is"
15442 " C<1>.  Increasing this may improve performance, though often it has no "
15443 "effect."
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:4490
15448 msgid "This function must be called before L</launch>."
15449 msgstr ""
15450
15451 #. type: =head2
15452 #: ../fish/guestfish-actions.pod:4492
15453 msgid "set-trace"
15454 msgstr ""
15455
15456 #. type: =head2
15457 #: ../fish/guestfish-actions.pod:4494
15458 msgid "trace"
15459 msgstr ""
15460
15461 #. type: verbatim
15462 #: ../fish/guestfish-actions.pod:4496
15463 #, no-wrap
15464 msgid ""
15465 " set-trace true|false\n"
15466 "\n"
15467 msgstr ""
15468
15469 #. type: textblock
15470 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6915
15471 msgid ""
15472 "If the command trace flag is set to 1, then libguestfs calls, parameters and"
15473 " return values are traced."
15474 msgstr ""
15475
15476 #. type: textblock
15477 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6918
15478 msgid ""
15479 "If you want to trace C API calls into libguestfs (and other libraries) then "
15480 "possibly a better way is to use the external ltrace(1) command."
15481 msgstr ""
15482
15483 #. type: textblock
15484 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6922
15485 msgid ""
15486 "Command traces are disabled unless the environment variable "
15487 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4508
15492 msgid ""
15493 "Trace messages are normally sent to C<stderr>, unless you register a "
15494 "callback to send them somewhere else (see L</set-event-callback>)."
15495 msgstr ""
15496
15497 #. type: =head2
15498 #: ../fish/guestfish-actions.pod:4512
15499 msgid "set-verbose"
15500 msgstr ""
15501
15502 #. type: =head2
15503 #: ../fish/guestfish-actions.pod:4514
15504 msgid "verbose"
15505 msgstr ""
15506
15507 #. type: verbatim
15508 #: ../fish/guestfish-actions.pod:4516
15509 #, no-wrap
15510 msgid ""
15511 " set-verbose true|false\n"
15512 "\n"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../fish/guestfish-actions.pod:4518 ../src/guestfs-actions.pod:6939
15517 msgid "If C<verbose> is true, this turns on verbose messages."
15518 msgstr ""
15519
15520 #. type: textblock
15521 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6941
15522 msgid ""
15523 "Verbose messages are disabled unless the environment variable "
15524 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-actions.pod:4523
15529 msgid ""
15530 "Verbose messages are normally sent to C<stderr>, unless you register a "
15531 "callback to send them somewhere else (see L</set-event-callback>)."
15532 msgstr ""
15533
15534 #. type: =head2
15535 #: ../fish/guestfish-actions.pod:4527
15536 msgid "setcon"
15537 msgstr ""
15538
15539 #. type: verbatim
15540 #: ../fish/guestfish-actions.pod:4529
15541 #, no-wrap
15542 msgid ""
15543 " setcon context\n"
15544 "\n"
15545 msgstr ""
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:6958
15549 msgid ""
15550 "This sets the SELinux security context of the daemon to the string "
15551 "C<context>."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:6961
15556 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15557 msgstr ""
15558
15559 #. type: =head2
15560 #: ../fish/guestfish-actions.pod:4536
15561 msgid "setxattr"
15562 msgstr ""
15563
15564 #. type: verbatim
15565 #: ../fish/guestfish-actions.pod:4538
15566 #, no-wrap
15567 msgid ""
15568 " setxattr xattr val vallen path\n"
15569 "\n"
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6976
15574 msgid ""
15575 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15576 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15577 msgstr ""
15578
15579 #. type: textblock
15580 #: ../fish/guestfish-actions.pod:4544
15581 msgid "See also: L</lsetxattr>, L<attr(5)>."
15582 msgstr ""
15583
15584 #. type: =head2
15585 #: ../fish/guestfish-actions.pod:4546
15586 msgid "sfdisk"
15587 msgstr ""
15588
15589 #. type: verbatim
15590 #: ../fish/guestfish-actions.pod:4548
15591 #, no-wrap
15592 msgid ""
15593 " sfdisk device cyls heads sectors 'lines ...'\n"
15594 "\n"
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:7003
15599 msgid ""
15600 "This is a direct interface to the L<sfdisk(8)> program for creating "
15601 "partitions on block devices."
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7006
15606 msgid "C<device> should be a block device, for example C</dev/sda>."
15607 msgstr ""
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:7008
15611 msgid ""
15612 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15613 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15614 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15615 "corresponding parameter is omitted.  Usually for 'large' disks, you can just"
15616 " pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather,"
15617 " the kernel) cannot work out the right geometry and you will need to tell "
15618 "it."
15619 msgstr ""
15620
15621 #. type: textblock
15622 #: ../fish/guestfish-actions.pod:4563 ../src/guestfs-actions.pod:7016
15623 msgid ""
15624 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information"
15625 " refer to the L<sfdisk(8)> manpage."
15626 msgstr ""
15627
15628 #. type: textblock
15629 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:7019
15630 msgid ""
15631 "To create a single partition occupying the whole disk, you would pass "
15632 "C<lines> as a single element list, when the single element being the string "
15633 "C<,> (comma)."
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4570
15638 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15639 msgstr ""
15640
15641 #. type: textblock
15642 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4599
15643 #: ../fish/guestfish-actions.pod:4621
15644 msgid ""
15645 "I<This function is deprecated.> In new code, use the L</part_add> call "
15646 "instead."
15647 msgstr ""
15648
15649 #. type: =head2
15650 #: ../fish/guestfish-actions.pod:4583
15651 msgid "sfdiskM"
15652 msgstr ""
15653
15654 #. type: verbatim
15655 #: ../fish/guestfish-actions.pod:4585
15656 #, no-wrap
15657 msgid ""
15658 " sfdiskM device 'lines ...'\n"
15659 "\n"
15660 msgstr ""
15661
15662 #. type: textblock
15663 #: ../fish/guestfish-actions.pod:4587
15664 msgid ""
15665 "This is a simplified interface to the L</sfdisk> command, where partition "
15666 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15667 "you don't need to specify the cyls, heads and sectors parameters which were "
15668 "rarely if ever used anyway."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4593
15673 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4606
15678 msgid "sfdisk-N"
15679 msgstr ""
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-actions.pod:4608
15683 #, no-wrap
15684 msgid ""
15685 " sfdisk-N device partnum cyls heads sectors line\n"
15686 "\n"
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7081
15691 msgid ""
15692 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15693 "(note: C<n> counts from 1)."
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4613
15698 msgid ""
15699 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15700 "cyls/heads/sectors parameters."
15701 msgstr ""
15702
15703 #. type: textblock
15704 #: ../fish/guestfish-actions.pod:4616
15705 msgid "See also: L</part-add>"
15706 msgstr ""
15707
15708 #. type: =head2
15709 #: ../fish/guestfish-actions.pod:4628
15710 msgid "sfdisk-disk-geometry"
15711 msgstr ""
15712
15713 #. type: verbatim
15714 #: ../fish/guestfish-actions.pod:4630
15715 #, no-wrap
15716 msgid ""
15717 " sfdisk-disk-geometry device\n"
15718 "\n"
15719 msgstr ""
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-actions.pod:4632
15723 msgid ""
15724 "This displays the disk geometry of C<device> read from the partition table."
15725 "  Especially in the case where the underlying block device has been resized,"
15726 " this can be different from the kernel's idea of the geometry (see L"
15727 "</sfdisk-kernel-geometry>)."
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4646
15732 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7123
15733 msgid "The result is in human-readable format, and not designed to be parsed."
15734 msgstr ""
15735
15736 #. type: =head2
15737 #: ../fish/guestfish-actions.pod:4640
15738 msgid "sfdisk-kernel-geometry"
15739 msgstr ""
15740
15741 #. type: verbatim
15742 #: ../fish/guestfish-actions.pod:4642
15743 #, no-wrap
15744 msgid ""
15745 " sfdisk-kernel-geometry device\n"
15746 "\n"
15747 msgstr ""
15748
15749 #. type: textblock
15750 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7121
15751 msgid "This displays the kernel's idea of the geometry of C<device>."
15752 msgstr ""
15753
15754 #. type: =head2
15755 #: ../fish/guestfish-actions.pod:4649
15756 msgid "sfdisk-l"
15757 msgstr ""
15758
15759 #. type: verbatim
15760 #: ../fish/guestfish-actions.pod:4651
15761 #, no-wrap
15762 msgid ""
15763 " sfdisk-l device\n"
15764 "\n"
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7144
15769 msgid ""
15770 "This displays the partition table on C<device>, in the human-readable output"
15771 " of the L<sfdisk(8)> command.  It is not intended to be parsed."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-actions.pod:4657
15776 msgid "See also: L</part-list>"
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:4659
15781 msgid ""
15782 "I<This function is deprecated.> In new code, use the L</part_list> call "
15783 "instead."
15784 msgstr ""
15785
15786 #. type: =head2
15787 #: ../fish/guestfish-actions.pod:4666
15788 msgid "sh"
15789 msgstr ""
15790
15791 #. type: verbatim
15792 #: ../fish/guestfish-actions.pod:4668
15793 #, no-wrap
15794 msgid ""
15795 " sh command\n"
15796 "\n"
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:7161
15801 msgid ""
15802 "This call runs a command from the guest filesystem via the guest's "
15803 "C</bin/sh>."
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish-actions.pod:4673
15808 msgid "This is like L</command>, but passes the command to:"
15809 msgstr ""
15810
15811 #. type: verbatim
15812 #: ../fish/guestfish-actions.pod:4675 ../src/guestfs-actions.pod:7166
15813 #, no-wrap
15814 msgid ""
15815 " /bin/sh -c \"command\"\n"
15816 "\n"
15817 msgstr ""
15818
15819 #. type: textblock
15820 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7168
15821 msgid ""
15822 "Depending on the guest's shell, this usually results in wildcards being "
15823 "expanded, shell expressions being interpolated and so on."
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:4681
15828 msgid "All the provisos about L</command> apply to this call."
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:4683
15833 msgid "sh-lines"
15834 msgstr ""
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:4685
15838 #, no-wrap
15839 msgid ""
15840 " sh-lines command\n"
15841 "\n"
15842 msgstr ""
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:4687
15846 msgid ""
15847 "This is the same as L</sh>, but splits the result into a list of lines."
15848 msgstr ""
15849
15850 #. type: textblock
15851 #: ../fish/guestfish-actions.pod:4690
15852 msgid "See also: L</command-lines>"
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-actions.pod:4692
15857 msgid "sleep"
15858 msgstr ""
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-actions.pod:4694
15862 #, no-wrap
15863 msgid ""
15864 " sleep secs\n"
15865 "\n"
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7202
15870 msgid "Sleep for C<secs> seconds."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:4698
15875 msgid "stat"
15876 msgstr ""
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:4700
15880 #, no-wrap
15881 msgid ""
15882 " stat path\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7216
15888 msgid "This is the same as the C<stat(2)> system call."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:4706
15893 msgid "statvfs"
15894 msgstr ""
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:4708
15898 #, no-wrap
15899 msgid ""
15900 " statvfs path\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7230
15906 msgid ""
15907 "Returns file system statistics for any mounted file system.  C<path> should "
15908 "be a file or directory in the mounted file system (typically it is the mount"
15909 " point itself, but it doesn't need to be)."
15910 msgstr ""
15911
15912 #. type: textblock
15913 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7234
15914 msgid "This is the same as the C<statvfs(2)> system call."
15915 msgstr ""
15916
15917 #. type: =head2
15918 #: ../fish/guestfish-actions.pod:4716
15919 msgid "strings"
15920 msgstr ""
15921
15922 #. type: verbatim
15923 #: ../fish/guestfish-actions.pod:4718
15924 #, no-wrap
15925 msgid ""
15926 " strings path\n"
15927 "\n"
15928 msgstr ""
15929
15930 #. type: textblock
15931 #: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7248
15932 msgid ""
15933 "This runs the L<strings(1)> command on a file and returns the list of "
15934 "printable strings found."
15935 msgstr ""
15936
15937 #. type: =head2
15938 #: ../fish/guestfish-actions.pod:4726
15939 msgid "strings-e"
15940 msgstr ""
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish-actions.pod:4728
15944 #, no-wrap
15945 msgid ""
15946 " strings-e encoding path\n"
15947 "\n"
15948 msgstr ""
15949
15950 #. type: textblock
15951 #: ../fish/guestfish-actions.pod:4730
15952 msgid ""
15953 "This is like the L</strings> command, but allows you to specify the encoding"
15954 " of strings that are looked for in the source file C<path>."
15955 msgstr ""
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7271
15959 msgid "Allowed encodings are:"
15960 msgstr ""
15961
15962 #. type: =item
15963 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7275
15964 msgid "s"
15965 msgstr ""
15966
15967 #. type: textblock
15968 #: ../fish/guestfish-actions.pod:4740
15969 msgid ""
15970 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15971 "ISO-8859-X (this is what L</strings> uses)."
15972 msgstr ""
15973
15974 #. type: =item
15975 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7280
15976 msgid "S"
15977 msgstr ""
15978
15979 #. type: textblock
15980 #: ../fish/guestfish-actions.pod:4745 ../src/guestfs-actions.pod:7282
15981 msgid "Single 8-bit-byte characters."
15982 msgstr ""
15983
15984 #. type: =item
15985 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7284
15986 msgid "b"
15987 msgstr ""
15988
15989 #. type: textblock
15990 #: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7286
15991 msgid ""
15992 "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15993 msgstr ""
15994
15995 #. type: =item
15996 #: ../fish/guestfish-actions.pod:4752 ../src/guestfs-actions.pod:7289
15997 msgid "l (lower case letter L)"
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7291
16002 msgid ""
16003 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16004 "examining binaries in Windows guests."
16005 msgstr ""
16006
16007 #. type: =item
16008 #: ../fish/guestfish-actions.pod:4757 ../src/guestfs-actions.pod:7294
16009 msgid "B"
16010 msgstr ""
16011
16012 #. type: textblock
16013 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7296
16014 msgid "32-bit big endian such as UCS-4BE."
16015 msgstr ""
16016
16017 #. type: =item
16018 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298
16019 msgid "L"
16020 msgstr ""
16021
16022 #. type: textblock
16023 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7300
16024 msgid "32-bit little endian such as UCS-4LE."
16025 msgstr ""
16026
16027 #. type: textblock
16028 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7304
16029 msgid "The returned strings are transcoded to UTF-8."
16030 msgstr ""
16031
16032 #. type: =head2
16033 #: ../fish/guestfish-actions.pod:4772
16034 msgid "swapoff-device"
16035 msgstr ""
16036
16037 #. type: verbatim
16038 #: ../fish/guestfish-actions.pod:4774
16039 #, no-wrap
16040 msgid ""
16041 " swapoff-device device\n"
16042 "\n"
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish-actions.pod:4776
16047 msgid ""
16048 "This command disables the libguestfs appliance swap device or partition "
16049 "named C<device>.  See L</swapon-device>."
16050 msgstr ""
16051
16052 #. type: =head2
16053 #: ../fish/guestfish-actions.pod:4780
16054 msgid "swapoff-file"
16055 msgstr ""
16056
16057 #. type: verbatim
16058 #: ../fish/guestfish-actions.pod:4782
16059 #, no-wrap
16060 msgid ""
16061 " swapoff-file file\n"
16062 "\n"
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7335
16067 msgid "This command disables the libguestfs appliance swap on file."
16068 msgstr ""
16069
16070 #. type: =head2
16071 #: ../fish/guestfish-actions.pod:4786
16072 msgid "swapoff-label"
16073 msgstr ""
16074
16075 #. type: verbatim
16076 #: ../fish/guestfish-actions.pod:4788
16077 #, no-wrap
16078 msgid ""
16079 " swapoff-label label\n"
16080 "\n"
16081 msgstr ""
16082
16083 #. type: textblock
16084 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7347
16085 msgid ""
16086 "This command disables the libguestfs appliance swap on labeled swap "
16087 "partition."
16088 msgstr ""
16089
16090 #. type: =head2
16091 #: ../fish/guestfish-actions.pod:4793
16092 msgid "swapoff-uuid"
16093 msgstr ""
16094
16095 #. type: verbatim
16096 #: ../fish/guestfish-actions.pod:4795
16097 #, no-wrap
16098 msgid ""
16099 " swapoff-uuid uuid\n"
16100 "\n"
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7360
16105 msgid ""
16106 "This command disables the libguestfs appliance swap partition with the given"
16107 " UUID."
16108 msgstr ""
16109
16110 #. type: =head2
16111 #: ../fish/guestfish-actions.pod:4800
16112 msgid "swapon-device"
16113 msgstr ""
16114
16115 #. type: verbatim
16116 #: ../fish/guestfish-actions.pod:4802
16117 #, no-wrap
16118 msgid ""
16119 " swapon-device device\n"
16120 "\n"
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../fish/guestfish-actions.pod:4804
16125 msgid ""
16126 "This command enables the libguestfs appliance to use the swap device or "
16127 "partition named C<device>.  The increased memory is made available for all "
16128 "commands, for example those run using L</command> or L</sh>."
16129 msgstr ""
16130
16131 #. type: textblock
16132 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7378
16133 msgid ""
16134 "Note that you should not swap to existing guest swap partitions unless you "
16135 "know what you are doing.  They may contain hibernation information, or other"
16136 " information that the guest doesn't want you to trash.  You also risk "
16137 "leaking information about the host to the guest this way.  Instead, attach a"
16138 " new host device to the guest and swap on that."
16139 msgstr ""
16140
16141 #. type: =head2
16142 #: ../fish/guestfish-actions.pod:4816
16143 msgid "swapon-file"
16144 msgstr ""
16145
16146 #. type: verbatim
16147 #: ../fish/guestfish-actions.pod:4818
16148 #, no-wrap
16149 msgid ""
16150 " swapon-file file\n"
16151 "\n"
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish-actions.pod:4820
16156 msgid ""
16157 "This command enables swap to a file.  See L</swapon-device> for other notes."
16158 msgstr ""
16159
16160 #. type: =head2
16161 #: ../fish/guestfish-actions.pod:4823
16162 msgid "swapon-label"
16163 msgstr ""
16164
16165 #. type: verbatim
16166 #: ../fish/guestfish-actions.pod:4825
16167 #, no-wrap
16168 msgid ""
16169 " swapon-label label\n"
16170 "\n"
16171 msgstr ""
16172
16173 #. type: textblock
16174 #: ../fish/guestfish-actions.pod:4827
16175 msgid ""
16176 "This command enables swap to a labeled swap partition.  See L</swapon-"
16177 "device> for other notes."
16178 msgstr ""
16179
16180 #. type: =head2
16181 #: ../fish/guestfish-actions.pod:4830
16182 msgid "swapon-uuid"
16183 msgstr ""
16184
16185 #. type: verbatim
16186 #: ../fish/guestfish-actions.pod:4832
16187 #, no-wrap
16188 msgid ""
16189 " swapon-uuid uuid\n"
16190 "\n"
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:4834
16195 msgid ""
16196 "This command enables swap to a swap partition with the given UUID.  See L"
16197 "</swapon-device> for other notes."
16198 msgstr ""
16199
16200 #. type: =head2
16201 #: ../fish/guestfish-actions.pod:4837
16202 msgid "sync"
16203 msgstr ""
16204
16205 #. type: verbatim
16206 #: ../fish/guestfish-actions.pod:4839
16207 #, no-wrap
16208 msgid ""
16209 " sync\n"
16210 "\n"
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7433
16215 msgid ""
16216 "This syncs the disk, so that any writes are flushed through to the "
16217 "underlying disk image."
16218 msgstr ""
16219
16220 #. type: textblock
16221 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7436
16222 msgid ""
16223 "You should always call this if you have modified a disk image, before "
16224 "closing the handle."
16225 msgstr ""
16226
16227 #. type: =head2
16228 #: ../fish/guestfish-actions.pod:4847
16229 msgid "tail"
16230 msgstr ""
16231
16232 #. type: verbatim
16233 #: ../fish/guestfish-actions.pod:4849
16234 #, no-wrap
16235 msgid ""
16236 " tail path\n"
16237 "\n"
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7449
16242 msgid ""
16243 "This command returns up to the last 10 lines of a file as a list of strings."
16244 msgstr ""
16245
16246 #. type: =head2
16247 #: ../fish/guestfish-actions.pod:4857
16248 msgid "tail-n"
16249 msgstr ""
16250
16251 #. type: verbatim
16252 #: ../fish/guestfish-actions.pod:4859
16253 #, no-wrap
16254 msgid ""
16255 " tail-n nrlines path\n"
16256 "\n"
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7468
16261 msgid ""
16262 "If the parameter C<nrlines> is a positive number, this returns the last "
16263 "C<nrlines> lines of the file C<path>."
16264 msgstr ""
16265
16266 #. type: textblock
16267 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7471
16268 msgid ""
16269 "If the parameter C<nrlines> is a negative number, this returns lines from "
16270 "the file C<path>, starting with the C<-nrlines>th line."
16271 msgstr ""
16272
16273 #. type: =head2
16274 #: ../fish/guestfish-actions.pod:4872
16275 msgid "tar-in"
16276 msgstr ""
16277
16278 #. type: verbatim
16279 #: ../fish/guestfish-actions.pod:4874
16280 #, no-wrap
16281 msgid ""
16282 " tar-in (tarfile|-) directory\n"
16283 "\n"
16284 msgstr ""
16285
16286 #. type: textblock
16287 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7492
16288 msgid ""
16289 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16290 "tar file) into C<directory>."
16291 msgstr ""
16292
16293 #. type: textblock
16294 #: ../fish/guestfish-actions.pod:4879
16295 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16296 msgstr ""
16297
16298 #. type: =head2
16299 #: ../fish/guestfish-actions.pod:4884
16300 msgid "tar-out"
16301 msgstr ""
16302
16303 #. type: verbatim
16304 #: ../fish/guestfish-actions.pod:4886
16305 #, no-wrap
16306 msgid ""
16307 " tar-out directory (tarfile|-)\n"
16308 "\n"
16309 msgstr ""
16310
16311 #. type: textblock
16312 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7509
16313 msgid ""
16314 "This command packs the contents of C<directory> and downloads it to local "
16315 "file C<tarfile>."
16316 msgstr ""
16317
16318 #. type: textblock
16319 #: ../fish/guestfish-actions.pod:4891
16320 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16321 msgstr ""
16322
16323 #. type: =head2
16324 #: ../fish/guestfish-actions.pod:4896
16325 msgid "tgz-in"
16326 msgstr ""
16327
16328 #. type: verbatim
16329 #: ../fish/guestfish-actions.pod:4898
16330 #, no-wrap
16331 msgid ""
16332 " tgz-in (tarball|-) directory\n"
16333 "\n"
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7526
16338 msgid ""
16339 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed>"
16340 " tar file) into C<directory>."
16341 msgstr ""
16342
16343 #. type: textblock
16344 #: ../fish/guestfish-actions.pod:4903
16345 msgid "To upload an uncompressed tarball, use L</tar-in>."
16346 msgstr ""
16347
16348 #. type: =head2
16349 #: ../fish/guestfish-actions.pod:4907
16350 msgid "tgz-out"
16351 msgstr ""
16352
16353 #. type: verbatim
16354 #: ../fish/guestfish-actions.pod:4909
16355 #, no-wrap
16356 msgid ""
16357 " tgz-out directory (tarball|-)\n"
16358 "\n"
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7542
16363 msgid ""
16364 "This command packs the contents of C<directory> and downloads it to local "
16365 "file C<tarball>."
16366 msgstr ""
16367
16368 #. type: textblock
16369 #: ../fish/guestfish-actions.pod:4914
16370 msgid "To download an uncompressed tarball, use L</tar-out>."
16371 msgstr ""
16372
16373 #. type: =head2
16374 #: ../fish/guestfish-actions.pod:4918
16375 msgid "touch"
16376 msgstr ""
16377
16378 #. type: verbatim
16379 #: ../fish/guestfish-actions.pod:4920
16380 #, no-wrap
16381 msgid ""
16382 " touch path\n"
16383 "\n"
16384 msgstr ""
16385
16386 #. type: textblock
16387 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7557
16388 msgid ""
16389 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16390 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16391 "length file."
16392 msgstr ""
16393
16394 #. type: textblock
16395 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7561
16396 msgid ""
16397 "This command only works on regular files, and will fail on other file types "
16398 "such as directories, symbolic links, block special etc."
16399 msgstr ""
16400
16401 #. type: =head2
16402 #: ../fish/guestfish-actions.pod:4929
16403 msgid "truncate"
16404 msgstr ""
16405
16406 #. type: verbatim
16407 #: ../fish/guestfish-actions.pod:4931
16408 #, no-wrap
16409 msgid ""
16410 " truncate path\n"
16411 "\n"
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7574
16416 msgid ""
16417 "This command truncates C<path> to a zero-length file.  The file must exist "
16418 "already."
16419 msgstr ""
16420
16421 #. type: =head2
16422 #: ../fish/guestfish-actions.pod:4936
16423 msgid "truncate-size"
16424 msgstr ""
16425
16426 #. type: verbatim
16427 #: ../fish/guestfish-actions.pod:4938
16428 #, no-wrap
16429 msgid ""
16430 " truncate-size path size\n"
16431 "\n"
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7588
16436 msgid ""
16437 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16438 "already."
16439 msgstr ""
16440
16441 #. type: textblock
16442 #: ../fish/guestfish-actions.pod:4943
16443 msgid ""
16444 "If the current file size is less than C<size> then the file is extended to "
16445 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16446 "blocks are not allocated for the file until you write to it).  To create a "
16447 "non-sparse file of zeroes, use L</fallocate64> instead."
16448 msgstr ""
16449
16450 #. type: =head2
16451 #: ../fish/guestfish-actions.pod:4949
16452 msgid "tune2fs-l"
16453 msgstr ""
16454
16455 #. type: verbatim
16456 #: ../fish/guestfish-actions.pod:4951
16457 #, no-wrap
16458 msgid ""
16459 " tune2fs-l device\n"
16460 "\n"
16461 msgstr ""
16462
16463 #. type: textblock
16464 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7607
16465 msgid ""
16466 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on"
16467 " C<device>."
16468 msgstr ""
16469
16470 #. type: textblock
16471 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7610
16472 msgid ""
16473 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16474 "for more details.  The list of fields returned isn't clearly defined, and "
16475 "depends on both the version of C<tune2fs> that libguestfs was built against,"
16476 " and the filesystem itself."
16477 msgstr ""
16478
16479 #. type: =head2
16480 #: ../fish/guestfish-actions.pod:4961
16481 msgid "txz-in"
16482 msgstr ""
16483
16484 #. type: verbatim
16485 #: ../fish/guestfish-actions.pod:4963
16486 #, no-wrap
16487 msgid ""
16488 " txz-in (tarball|-) directory\n"
16489 "\n"
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7630
16494 msgid ""
16495 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16496 "tar file) into C<directory>."
16497 msgstr ""
16498
16499 #. type: =head2
16500 #: ../fish/guestfish-actions.pod:4970
16501 msgid "txz-out"
16502 msgstr ""
16503
16504 #. type: verbatim
16505 #: ../fish/guestfish-actions.pod:4972
16506 #, no-wrap
16507 msgid ""
16508 " txz-out directory (tarball|-)\n"
16509 "\n"
16510 msgstr ""
16511
16512 #. type: textblock
16513 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7644
16514 msgid ""
16515 "This command packs the contents of C<directory> and downloads it to local "
16516 "file C<tarball> (as an xz compressed tar archive)."
16517 msgstr ""
16518
16519 #. type: =head2
16520 #: ../fish/guestfish-actions.pod:4979
16521 msgid "umask"
16522 msgstr ""
16523
16524 #. type: verbatim
16525 #: ../fish/guestfish-actions.pod:4981
16526 #, no-wrap
16527 msgid ""
16528 " umask mask\n"
16529 "\n"
16530 msgstr ""
16531
16532 #. type: textblock
16533 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7657
16534 msgid ""
16535 "This function sets the mask used for creating new files and device nodes to "
16536 "C<mask & 0777>."
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:7660
16541 msgid ""
16542 "Typical umask values would be C<022> which creates new files with "
16543 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16544 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16545 msgstr ""
16546
16547 #. type: textblock
16548 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7665
16549 msgid ""
16550 "The default umask is C<022>.  This is important because it means that "
16551 "directories and device nodes will be created with C<0644> or C<0755> mode "
16552 "even if you specify C<0777>."
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-actions.pod:4995
16557 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16558 msgstr ""
16559
16560 #. type: textblock
16561 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7672
16562 msgid "This call returns the previous umask."
16563 msgstr ""
16564
16565 #. type: =head2
16566 #: ../fish/guestfish-actions.pod:5000
16567 msgid "umount"
16568 msgstr ""
16569
16570 #. type: =head2
16571 #: ../fish/guestfish-actions.pod:5002
16572 msgid "unmount"
16573 msgstr ""
16574
16575 #. type: verbatim
16576 #: ../fish/guestfish-actions.pod:5004
16577 #, no-wrap
16578 msgid ""
16579 " umount pathordevice\n"
16580 "\n"
16581 msgstr ""
16582
16583 #. type: textblock
16584 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7684
16585 msgid ""
16586 "This unmounts the given filesystem.  The filesystem may be specified either "
16587 "by its mountpoint (path) or the device which contains the filesystem."
16588 msgstr ""
16589
16590 #. type: =head2
16591 #: ../fish/guestfish-actions.pod:5010
16592 msgid "umount-all"
16593 msgstr ""
16594
16595 #. type: =head2
16596 #: ../fish/guestfish-actions.pod:5012
16597 msgid "unmount-all"
16598 msgstr ""
16599
16600 #. type: verbatim
16601 #: ../fish/guestfish-actions.pod:5014
16602 #, no-wrap
16603 msgid ""
16604 " umount-all\n"
16605 "\n"
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7697
16610 msgid "This unmounts all mounted filesystems."
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7699
16615 msgid "Some internal mounts are not unmounted by this call."
16616 msgstr ""
16617
16618 #. type: =head2
16619 #: ../fish/guestfish-actions.pod:5020
16620 msgid "upload"
16621 msgstr ""
16622
16623 #. type: verbatim
16624 #: ../fish/guestfish-actions.pod:5022
16625 #, no-wrap
16626 msgid ""
16627 " upload (filename|-) remotefilename\n"
16628 "\n"
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5037
16633 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7736
16634 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16635 msgstr ""
16636
16637 #. type: textblock
16638 #: ../fish/guestfish-actions.pod:5029
16639 msgid "See also L</download>."
16640 msgstr ""
16641
16642 #. type: =head2
16643 #: ../fish/guestfish-actions.pod:5033
16644 msgid "upload-offset"
16645 msgstr ""
16646
16647 #. type: verbatim
16648 #: ../fish/guestfish-actions.pod:5035
16649 #, no-wrap
16650 msgid ""
16651 " upload-offset (filename|-) remotefilename offset\n"
16652 "\n"
16653 msgstr ""
16654
16655 #. type: textblock
16656 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7739
16657 msgid ""
16658 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16659 "The intention is to overwrite parts of existing files or devices, although "
16660 "if a non-existant file is specified then it is created with a \"hole\" "
16661 "before C<offset>.  The size of the data written is implicit in the size of "
16662 "the source C<filename>."
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../fish/guestfish-actions.pod:5047
16667 msgid ""
16668 "Note that there is no limit on the amount of data that can be uploaded with "
16669 "this call, unlike with L</pwrite>, and this call always writes the full "
16670 "amount unless an error occurs."
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-actions.pod:5052
16675 msgid "See also L</upload>, L</pwrite>."
16676 msgstr ""
16677
16678 #. type: =head2
16679 #: ../fish/guestfish-actions.pod:5056
16680 msgid "utimens"
16681 msgstr ""
16682
16683 #. type: verbatim
16684 #: ../fish/guestfish-actions.pod:5058
16685 #, no-wrap
16686 msgid ""
16687 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16688 "\n"
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7772
16693 msgid "This command sets the timestamps of a file with nanosecond precision."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7775
16698 msgid ""
16699 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16700 "from the epoch."
16701 msgstr ""
16702
16703 #. type: textblock
16704 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7778
16705 msgid ""
16706 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16707 "nanoseconds from the epoch."
16708 msgstr ""
16709
16710 #. type: textblock
16711 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7781
16712 msgid ""
16713 "If the C<*nsecs> field contains the special value C<-1> then the "
16714 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16715 "ignored in this case)."
16716 msgstr ""
16717
16718 #. type: textblock
16719 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7785
16720 msgid ""
16721 "If the C<*nsecs> field contains the special value C<-2> then the "
16722 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16723 "in this case)."
16724 msgstr ""
16725
16726 #. type: =head2
16727 #: ../fish/guestfish-actions.pod:5077
16728 msgid "version"
16729 msgstr ""
16730
16731 #. type: verbatim
16732 #: ../fish/guestfish-actions.pod:5079
16733 #, no-wrap
16734 msgid ""
16735 " version\n"
16736 "\n"
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7798
16741 msgid ""
16742 "Return the libguestfs version number that the program is linked against."
16743 msgstr ""
16744
16745 #. type: textblock
16746 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7801
16747 msgid ""
16748 "Note that because of dynamic linking this is not necessarily the version of "
16749 "libguestfs that you compiled against.  You can compile the program, and then"
16750 " at runtime dynamically link against a completely different C<libguestfs.so>"
16751 " library."
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7806
16756 msgid ""
16757 "This call was added in version C<1.0.58>.  In previous versions of "
16758 "libguestfs there was no way to get the version number.  From C code you can "
16759 "use dynamic linker functions to find out if this symbol exists (if it "
16760 "doesn't, then it's an earlier version)."
16761 msgstr ""
16762
16763 #. type: textblock
16764 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7812
16765 msgid ""
16766 "The call returns a structure with four elements.  The first three (C<major>,"
16767 " C<minor> and C<release>) are numbers and correspond to the usual version "
16768 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16769 "but may be used for distro-specific information."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7818
16774 msgid ""
16775 "To construct the original version string: C<$major.$minor.$release$extra>"
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7821
16780 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16781 msgstr ""
16782
16783 #. type: textblock
16784 #: ../fish/guestfish-actions.pod:5106
16785 msgid ""
16786 "I<Note:> Don't use this call to test for availability of features.  In "
16787 "enterprise distributions we backport features from later versions into "
16788 "earlier versions, making this an unreliable way to test for features.  Use "
16789 "L</available> instead."
16790 msgstr ""
16791
16792 #. type: =head2
16793 #: ../fish/guestfish-actions.pod:5112
16794 msgid "vfs-label"
16795 msgstr ""
16796
16797 #. type: verbatim
16798 #: ../fish/guestfish-actions.pod:5114
16799 #, no-wrap
16800 msgid ""
16801 " vfs-label device\n"
16802 "\n"
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7841
16807 msgid "This returns the filesystem label of the filesystem on C<device>."
16808 msgstr ""
16809
16810 #. type: textblock
16811 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7844
16812 msgid "If the filesystem is unlabeled, this returns the empty string."
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:5121
16817 msgid "To find a filesystem from the label, use L</findfs-label>."
16818 msgstr ""
16819
16820 #. type: =head2
16821 #: ../fish/guestfish-actions.pod:5123
16822 msgid "vfs-type"
16823 msgstr ""
16824
16825 #. type: verbatim
16826 #: ../fish/guestfish-actions.pod:5125
16827 #, no-wrap
16828 msgid ""
16829 " vfs-type device\n"
16830 "\n"
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish-actions.pod:5127 ../src/guestfs-actions.pod:7859
16835 msgid ""
16836 "This command gets the filesystem type corresponding to the filesystem on "
16837 "C<device>."
16838 msgstr ""
16839
16840 #. type: textblock
16841 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7862
16842 msgid ""
16843 "For most filesystems, the result is the name of the Linux VFS module which "
16844 "would be used to mount this filesystem if you mounted it without specifying "
16845 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16846 msgstr ""
16847
16848 #. type: =head2
16849 #: ../fish/guestfish-actions.pod:5135
16850 msgid "vfs-uuid"
16851 msgstr ""
16852
16853 #. type: verbatim
16854 #: ../fish/guestfish-actions.pod:5137
16855 #, no-wrap
16856 msgid ""
16857 " vfs-uuid device\n"
16858 "\n"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7878
16863 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7881
16868 msgid "If the filesystem does not have a UUID, this returns the empty string."
16869 msgstr ""
16870
16871 #. type: textblock
16872 #: ../fish/guestfish-actions.pod:5144
16873 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16874 msgstr ""
16875
16876 #. type: =head2
16877 #: ../fish/guestfish-actions.pod:5146
16878 msgid "vg-activate"
16879 msgstr ""
16880
16881 #. type: verbatim
16882 #: ../fish/guestfish-actions.pod:5148
16883 #, no-wrap
16884 msgid ""
16885 " vg-activate true|false 'volgroups ...'\n"
16886 "\n"
16887 msgstr ""
16888
16889 #. type: textblock
16890 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7897
16891 msgid ""
16892 "This command activates or (if C<activate> is false) deactivates all logical "
16893 "volumes in the listed volume groups C<volgroups>."
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../fish/guestfish-actions.pod:5153 ../src/guestfs-actions.pod:7900
16898 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7902
16903 msgid ""
16904 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16905 "activated or deactivated."
16906 msgstr ""
16907
16908 #. type: =head2
16909 #: ../fish/guestfish-actions.pod:5158
16910 msgid "vg-activate-all"
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../fish/guestfish-actions.pod:5160
16915 #, no-wrap
16916 msgid ""
16917 " vg-activate-all true|false\n"
16918 "\n"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7915
16923 msgid ""
16924 "This command activates or (if C<activate> is false) deactivates all logical "
16925 "volumes in all volume groups."
16926 msgstr ""
16927
16928 #. type: textblock
16929 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7918
16930 msgid "This command is the same as running C<vgchange -a y|n>"
16931 msgstr ""
16932
16933 #. type: =head2
16934 #: ../fish/guestfish-actions.pod:5167
16935 msgid "vgcreate"
16936 msgstr ""
16937
16938 #. type: verbatim
16939 #: ../fish/guestfish-actions.pod:5169
16940 #, no-wrap
16941 msgid ""
16942 " vgcreate volgroup 'physvols ...'\n"
16943 "\n"
16944 msgstr ""
16945
16946 #. type: textblock
16947 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7931
16948 msgid ""
16949 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16950 "of physical volumes C<physvols>."
16951 msgstr ""
16952
16953 #. type: =head2
16954 #: ../fish/guestfish-actions.pod:5174
16955 msgid "vglvuuids"
16956 msgstr ""
16957
16958 #. type: verbatim
16959 #: ../fish/guestfish-actions.pod:5176
16960 #, no-wrap
16961 msgid ""
16962 " vglvuuids vgname\n"
16963 "\n"
16964 msgstr ""
16965
16966 #. type: textblock
16967 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7944
16968 msgid ""
16969 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16970 "volumes created in this volume group."
16971 msgstr ""
16972
16973 #. type: textblock
16974 #: ../fish/guestfish-actions.pod:5181
16975 msgid ""
16976 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16977 "logical volumes and volume groups."
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish-actions.pod:5184
16982 msgid "See also L</vgpvuuids>."
16983 msgstr ""
16984
16985 #. type: =head2
16986 #: ../fish/guestfish-actions.pod:5186
16987 msgid "vgpvuuids"
16988 msgstr ""
16989
16990 #. type: verbatim
16991 #: ../fish/guestfish-actions.pod:5188
16992 #, no-wrap
16993 msgid ""
16994 " vgpvuuids vgname\n"
16995 "\n"
16996 msgstr ""
16997
16998 #. type: textblock
16999 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7964
17000 msgid ""
17001 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17002 "volumes that this volume group resides on."
17003 msgstr ""
17004
17005 #. type: textblock
17006 #: ../fish/guestfish-actions.pod:5193
17007 msgid ""
17008 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17009 "physical volumes and volume groups."
17010 msgstr ""
17011
17012 #. type: textblock
17013 #: ../fish/guestfish-actions.pod:5196
17014 msgid "See also L</vglvuuids>."
17015 msgstr ""
17016
17017 #. type: =head2
17018 #: ../fish/guestfish-actions.pod:5198
17019 msgid "vgremove"
17020 msgstr ""
17021
17022 #. type: verbatim
17023 #: ../fish/guestfish-actions.pod:5200
17024 #, no-wrap
17025 msgid ""
17026 " vgremove vgname\n"
17027 "\n"
17028 msgstr ""
17029
17030 #. type: textblock
17031 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7984
17032 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7986
17037 msgid ""
17038 "This also forcibly removes all logical volumes in the volume group (if any)."
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish-actions.pod:5207
17043 msgid "vgrename"
17044 msgstr ""
17045
17046 #. type: verbatim
17047 #: ../fish/guestfish-actions.pod:5209
17048 #, no-wrap
17049 msgid ""
17050 " vgrename volgroup newvolgroup\n"
17051 "\n"
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-actions.pod:5211 ../src/guestfs-actions.pod:8000
17056 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17057 msgstr ""
17058
17059 #. type: =head2
17060 #: ../fish/guestfish-actions.pod:5213
17061 msgid "vgs"
17062 msgstr ""
17063
17064 #. type: verbatim
17065 #: ../fish/guestfish-actions.pod:5215
17066 #, no-wrap
17067 msgid ""
17068 " vgs\n"
17069 "\n"
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8011
17074 msgid ""
17075 "List all the volumes groups detected.  This is the equivalent of the "
17076 "L<vgs(8)> command."
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:8014
17081 msgid ""
17082 "This returns a list of just the volume group names that were detected (eg. "
17083 "C<VolGroup00>)."
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish-actions.pod:5223
17088 msgid "See also L</vgs-full>."
17089 msgstr ""
17090
17091 #. type: =head2
17092 #: ../fish/guestfish-actions.pod:5225
17093 msgid "vgs-full"
17094 msgstr ""
17095
17096 #. type: verbatim
17097 #: ../fish/guestfish-actions.pod:5227
17098 #, no-wrap
17099 msgid ""
17100 " vgs-full\n"
17101 "\n"
17102 msgstr ""
17103
17104 #. type: textblock
17105 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8030
17106 msgid ""
17107 "List all the volumes groups detected.  This is the equivalent of the "
17108 "L<vgs(8)> command.  The \"full\" version includes all fields."
17109 msgstr ""
17110
17111 #. type: =head2
17112 #: ../fish/guestfish-actions.pod:5232
17113 msgid "vgscan"
17114 msgstr ""
17115
17116 #. type: verbatim
17117 #: ../fish/guestfish-actions.pod:5234
17118 #, no-wrap
17119 msgid ""
17120 " vgscan\n"
17121 "\n"
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8044
17126 msgid ""
17127 "This rescans all block devices and rebuilds the list of LVM physical "
17128 "volumes, volume groups and logical volumes."
17129 msgstr ""
17130
17131 #. type: =head2
17132 #: ../fish/guestfish-actions.pod:5239
17133 msgid "vguuid"
17134 msgstr ""
17135
17136 #. type: verbatim
17137 #: ../fish/guestfish-actions.pod:5241
17138 #, no-wrap
17139 msgid ""
17140 " vguuid vgname\n"
17141 "\n"
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish-actions.pod:5243 ../src/guestfs-actions.pod:8057
17146 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17147 msgstr ""
17148
17149 #. type: =head2
17150 #: ../fish/guestfish-actions.pod:5245
17151 msgid "wc-c"
17152 msgstr ""
17153
17154 #. type: verbatim
17155 #: ../fish/guestfish-actions.pod:5247
17156 #, no-wrap
17157 msgid ""
17158 " wc-c path\n"
17159 "\n"
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8097
17164 msgid ""
17165 "This command counts the characters in a file, using the C<wc -c> external "
17166 "command."
17167 msgstr ""
17168
17169 #. type: =head2
17170 #: ../fish/guestfish-actions.pod:5252
17171 msgid "wc-l"
17172 msgstr ""
17173
17174 #. type: verbatim
17175 #: ../fish/guestfish-actions.pod:5254
17176 #, no-wrap
17177 msgid ""
17178 " wc-l path\n"
17179 "\n"
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8110
17184 msgid ""
17185 "This command counts the lines in a file, using the C<wc -l> external "
17186 "command."
17187 msgstr ""
17188
17189 #. type: =head2
17190 #: ../fish/guestfish-actions.pod:5259
17191 msgid "wc-w"
17192 msgstr ""
17193
17194 #. type: verbatim
17195 #: ../fish/guestfish-actions.pod:5261
17196 #, no-wrap
17197 msgid ""
17198 " wc-w path\n"
17199 "\n"
17200 msgstr ""
17201
17202 #. type: textblock
17203 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8123
17204 msgid ""
17205 "This command counts the words in a file, using the C<wc -w> external "
17206 "command."
17207 msgstr ""
17208
17209 #. type: =head2
17210 #: ../fish/guestfish-actions.pod:5266
17211 msgid "write"
17212 msgstr ""
17213
17214 #. type: verbatim
17215 #: ../fish/guestfish-actions.pod:5268
17216 #, no-wrap
17217 msgid ""
17218 " write path content\n"
17219 "\n"
17220 msgstr ""
17221
17222 #. type: textblock
17223 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8138
17224 msgid ""
17225 "This call creates a file called C<path>.  The content of the file is the "
17226 "string C<content> (which can contain any 8 bit data)."
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish-actions.pod:5273
17231 msgid "See also L</write-append>."
17232 msgstr ""
17233
17234 #. type: =head2
17235 #: ../fish/guestfish-actions.pod:5278
17236 msgid "write-append"
17237 msgstr ""
17238
17239 #. type: verbatim
17240 #: ../fish/guestfish-actions.pod:5280
17241 #, no-wrap
17242 msgid ""
17243 " write-append path content\n"
17244 "\n"
17245 msgstr ""
17246
17247 #. type: textblock
17248 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8158
17249 msgid ""
17250 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17251 "not exist, then a new file is created."
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish-actions.pod:5285
17256 msgid "See also L</write>."
17257 msgstr ""
17258
17259 #. type: =head2
17260 #: ../fish/guestfish-actions.pod:5290
17261 msgid "write-file"
17262 msgstr ""
17263
17264 #. type: verbatim
17265 #: ../fish/guestfish-actions.pod:5292
17266 #, no-wrap
17267 msgid ""
17268 " write-file path content size\n"
17269 "\n"
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8185
17274 msgid ""
17275 "This call creates a file called C<path>.  The contents of the file is the "
17276 "string C<content> (which can contain any 8 bit data), with length C<size>."
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8189
17281 msgid ""
17282 "As a special case, if C<size> is C<0> then the length is calculated using "
17283 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8193
17288 msgid ""
17289 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17290 "I<not> work, even if the length is specified."
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../fish/guestfish-actions.pod:5308
17295 msgid ""
17296 "I<This function is deprecated.> In new code, use the L</write> call instead."
17297 msgstr ""
17298
17299 #. type: =head2
17300 #: ../fish/guestfish-actions.pod:5315
17301 msgid "zegrep"
17302 msgstr ""
17303
17304 #. type: verbatim
17305 #: ../fish/guestfish-actions.pod:5317
17306 #, no-wrap
17307 msgid ""
17308 " zegrep regex path\n"
17309 "\n"
17310 msgstr ""
17311
17312 #. type: textblock
17313 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8210
17314 msgid ""
17315 "This calls the external C<zegrep> program and returns the matching lines."
17316 msgstr ""
17317
17318 #. type: =head2
17319 #: ../fish/guestfish-actions.pod:5325
17320 msgid "zegrepi"
17321 msgstr ""
17322
17323 #. type: verbatim
17324 #: ../fish/guestfish-actions.pod:5327
17325 #, no-wrap
17326 msgid ""
17327 " zegrepi regex path\n"
17328 "\n"
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish-actions.pod:5329 ../src/guestfs-actions.pod:8229
17333 msgid ""
17334 "This calls the external C<zegrep -i> program and returns the matching lines."
17335 msgstr ""
17336
17337 #. type: =head2
17338 #: ../fish/guestfish-actions.pod:5335
17339 msgid "zero"
17340 msgstr ""
17341
17342 #. type: verbatim
17343 #: ../fish/guestfish-actions.pod:5337
17344 #, no-wrap
17345 msgid ""
17346 " zero device\n"
17347 "\n"
17348 msgstr ""
17349
17350 #. type: textblock
17351 #: ../fish/guestfish-actions.pod:5339 ../src/guestfs-actions.pod:8247
17352 msgid "This command writes zeroes over the first few blocks of C<device>."
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8249
17357 msgid ""
17358 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17359 "securely wipe the device).  It should be sufficient to remove any partition "
17360 "tables, filesystem superblocks and so on."
17361 msgstr ""
17362
17363 #. type: textblock
17364 #: ../fish/guestfish-actions.pod:5345 ../fish/guestfish-actions.pod:5360
17365 #: ../src/guestfs-actions.pod:8253 ../src/guestfs-actions.pod:8279
17366 msgid ""
17367 "If blocks are already zero, then this command avoids writing zeroes.  This "
17368 "prevents the underlying device from becoming non-sparse or growing "
17369 "unnecessarily."
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish-actions.pod:5349
17374 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17375 msgstr ""
17376
17377 #. type: =head2
17378 #: ../fish/guestfish-actions.pod:5352
17379 msgid "zero-device"
17380 msgstr ""
17381
17382 #. type: verbatim
17383 #: ../fish/guestfish-actions.pod:5354
17384 #, no-wrap
17385 msgid ""
17386 " zero-device device\n"
17387 "\n"
17388 msgstr ""
17389
17390 #. type: textblock
17391 #: ../fish/guestfish-actions.pod:5356
17392 msgid ""
17393 "This command writes zeroes over the entire C<device>.  Compare with L</zero>"
17394 " which just zeroes the first few blocks of a device."
17395 msgstr ""
17396
17397 #. type: =head2
17398 #: ../fish/guestfish-actions.pod:5367
17399 msgid "zerofree"
17400 msgstr ""
17401
17402 #. type: verbatim
17403 #: ../fish/guestfish-actions.pod:5369
17404 #, no-wrap
17405 msgid ""
17406 " zerofree device\n"
17407 "\n"
17408 msgstr ""
17409
17410 #. type: textblock
17411 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8301
17412 msgid ""
17413 "This runs the I<zerofree> program on C<device>.  This program claims to zero"
17414 " unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17415 "possible to compress the filesystem more effectively."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish-actions.pod:5376 ../src/guestfs-actions.pod:8306
17420 msgid "You should B<not> run this program if the filesystem is mounted."
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8309
17425 msgid ""
17426 "It is possible that using this program can damage the filesystem or data on "
17427 "the filesystem."
17428 msgstr ""
17429
17430 #. type: =head2
17431 #: ../fish/guestfish-actions.pod:5382
17432 msgid "zfgrep"
17433 msgstr ""
17434
17435 #. type: verbatim
17436 #: ../fish/guestfish-actions.pod:5384
17437 #, no-wrap
17438 msgid ""
17439 " zfgrep pattern path\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8323
17445 msgid ""
17446 "This calls the external C<zfgrep> program and returns the matching lines."
17447 msgstr ""
17448
17449 #. type: =head2
17450 #: ../fish/guestfish-actions.pod:5392
17451 msgid "zfgrepi"
17452 msgstr ""
17453
17454 #. type: verbatim
17455 #: ../fish/guestfish-actions.pod:5394
17456 #, no-wrap
17457 msgid ""
17458 " zfgrepi pattern path\n"
17459 "\n"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8342
17464 msgid ""
17465 "This calls the external C<zfgrep -i> program and returns the matching lines."
17466 msgstr ""
17467
17468 #. type: =head2
17469 #: ../fish/guestfish-actions.pod:5402
17470 msgid "zfile"
17471 msgstr ""
17472
17473 #. type: verbatim
17474 #: ../fish/guestfish-actions.pod:5404
17475 #, no-wrap
17476 msgid ""
17477 " zfile meth path\n"
17478 "\n"
17479 msgstr ""
17480
17481 #. type: textblock
17482 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8368
17483 msgid ""
17484 "This command runs C<file> after first decompressing C<path> using C<method>."
17485 msgstr ""
17486
17487 #. type: textblock
17488 #: ../fish/guestfish-actions.pod:5409 ../src/guestfs-actions.pod:8371
17489 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:5411
17494 msgid ""
17495 "Since 1.0.63, use L</file> instead which can now process compressed files."
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish-actions.pod:5414
17500 msgid ""
17501 "I<This function is deprecated.> In new code, use the L</file> call instead."
17502 msgstr ""
17503
17504 #. type: =head2
17505 #: ../fish/guestfish-actions.pod:5421
17506 msgid "zgrep"
17507 msgstr ""
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish-actions.pod:5423
17511 #, no-wrap
17512 msgid ""
17513 " zgrep regex path\n"
17514 "\n"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8388
17519 msgid ""
17520 "This calls the external C<zgrep> program and returns the matching lines."
17521 msgstr ""
17522
17523 #. type: =head2
17524 #: ../fish/guestfish-actions.pod:5431
17525 msgid "zgrepi"
17526 msgstr ""
17527
17528 #. type: verbatim
17529 #: ../fish/guestfish-actions.pod:5433
17530 #, no-wrap
17531 msgid ""
17532 " zgrepi regex path\n"
17533 "\n"
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../fish/guestfish-actions.pod:5435 ../src/guestfs-actions.pod:8407
17538 msgid ""
17539 "This calls the external C<zgrep -i> program and returns the matching lines."
17540 msgstr ""
17541
17542 #. type: =head2
17543 #: ../fish/guestfish-commands.pod:1
17544 msgid "alloc"
17545 msgstr ""
17546
17547 #. type: =head2
17548 #: ../fish/guestfish-commands.pod:3
17549 msgid "allocate"
17550 msgstr ""
17551
17552 #. type: verbatim
17553 #: ../fish/guestfish-commands.pod:5
17554 #, no-wrap
17555 msgid ""
17556 " alloc filename size\n"
17557 "\n"
17558 msgstr ""
17559
17560 #. type: textblock
17561 #: ../fish/guestfish-commands.pod:7
17562 msgid ""
17563 "This creates an empty (zeroed) file of the given size, and then adds so it "
17564 "can be further examined."
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17569 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17574 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish-commands.pod:14
17579 msgid ""
17580 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17581 "image, see L</PREPARED DISK IMAGES>."
17582 msgstr ""
17583
17584 #. type: =head2
17585 #: ../fish/guestfish-commands.pod:17
17586 msgid "copy-in"
17587 msgstr ""
17588
17589 #. type: verbatim
17590 #: ../fish/guestfish-commands.pod:19
17591 #, no-wrap
17592 msgid ""
17593 " copy-in local [local ...] /remotedir\n"
17594 "\n"
17595 msgstr ""
17596
17597 #. type: textblock
17598 #: ../fish/guestfish-commands.pod:21
17599 msgid ""
17600 "C<copy-in> copies local files or directories recursively into the disk "
17601 "image, placing them in the directory called C</remotedir> (which must "
17602 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and"
17603 " other commands as necessary."
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish-commands.pod:26
17608 msgid ""
17609 "Multiple local files and directories can be specified, but the last "
17610 "parameter must always be a remote directory.  Wildcards cannot be used."
17611 msgstr ""
17612
17613 #. type: =head2
17614 #: ../fish/guestfish-commands.pod:30
17615 msgid "copy-out"
17616 msgstr ""
17617
17618 #. type: verbatim
17619 #: ../fish/guestfish-commands.pod:32
17620 #, no-wrap
17621 msgid ""
17622 " copy-out remote [remote ...] localdir\n"
17623 "\n"
17624 msgstr ""
17625
17626 #. type: textblock
17627 #: ../fish/guestfish-commands.pod:34
17628 msgid ""
17629 "C<copy-out> copies remote files or directories recursively out of the disk "
17630 "image, placing them on the host disk in a local directory called C<localdir>"
17631 " (which must exist).  This guestfish meta-command turns into a sequence of "
17632 "L</download>, L</tar-out> and other commands as necessary."
17633 msgstr ""
17634
17635 #. type: textblock
17636 #: ../fish/guestfish-commands.pod:40
17637 msgid ""
17638 "Multiple remote files and directories can be specified, but the last "
17639 "parameter must always be a local directory.  To download to the current "
17640 "directory, use C<.> as in:"
17641 msgstr ""
17642
17643 #. type: verbatim
17644 #: ../fish/guestfish-commands.pod:44
17645 #, no-wrap
17646 msgid ""
17647 " copy-out /home .\n"
17648 "\n"
17649 msgstr ""
17650
17651 #. type: textblock
17652 #: ../fish/guestfish-commands.pod:46
17653 msgid ""
17654 "Wildcards cannot be used in the ordinary command, but you can use them with "
17655 "the help of L</glob> like this:"
17656 msgstr ""
17657
17658 #. type: verbatim
17659 #: ../fish/guestfish-commands.pod:49
17660 #, no-wrap
17661 msgid ""
17662 " glob copy-out /home/* .\n"
17663 "\n"
17664 msgstr ""
17665
17666 #. type: =head2
17667 #: ../fish/guestfish-commands.pod:51
17668 msgid "display"
17669 msgstr ""
17670
17671 #. type: verbatim
17672 #: ../fish/guestfish-commands.pod:53
17673 #, no-wrap
17674 msgid ""
17675 " display filename\n"
17676 "\n"
17677 msgstr ""
17678
17679 #. type: textblock
17680 #: ../fish/guestfish-commands.pod:55
17681 msgid ""
17682 "Use C<display> (a graphical display program) to display an image file.  It "
17683 "downloads the file, and runs C<display> on it."
17684 msgstr ""
17685
17686 #. type: textblock
17687 #: ../fish/guestfish-commands.pod:58
17688 msgid ""
17689 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17690 "environment variable.  For example to use the GNOME display program:"
17691 msgstr ""
17692
17693 #. type: verbatim
17694 #: ../fish/guestfish-commands.pod:61
17695 #, no-wrap
17696 msgid ""
17697 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17698 "\n"
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-commands.pod:63
17703 msgid "See also L<display(1)>."
17704 msgstr ""
17705
17706 #. type: =head2
17707 #: ../fish/guestfish-commands.pod:65
17708 msgid "echo"
17709 msgstr ""
17710
17711 #. type: verbatim
17712 #: ../fish/guestfish-commands.pod:67
17713 #, no-wrap
17714 msgid ""
17715 " echo [params ...]\n"
17716 "\n"
17717 msgstr ""
17718
17719 #. type: textblock
17720 #: ../fish/guestfish-commands.pod:69
17721 msgid "This echos the parameters to the terminal."
17722 msgstr ""
17723
17724 #. type: =head2
17725 #: ../fish/guestfish-commands.pod:71
17726 msgid "edit"
17727 msgstr ""
17728
17729 #. type: =head2
17730 #: ../fish/guestfish-commands.pod:73
17731 msgid "vi"
17732 msgstr ""
17733
17734 #. type: =head2
17735 #: ../fish/guestfish-commands.pod:75
17736 msgid "emacs"
17737 msgstr ""
17738
17739 #. type: verbatim
17740 #: ../fish/guestfish-commands.pod:77
17741 #, no-wrap
17742 msgid ""
17743 " edit filename\n"
17744 "\n"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-commands.pod:79
17749 msgid ""
17750 "This is used to edit a file.  It downloads the file, edits it locally using "
17751 "your editor, then uploads the result."
17752 msgstr ""
17753
17754 #. type: textblock
17755 #: ../fish/guestfish-commands.pod:82
17756 msgid ""
17757 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17758 "or C<emacs> you will get those corresponding editors."
17759 msgstr ""
17760
17761 #. type: =head2
17762 #: ../fish/guestfish-commands.pod:86
17763 msgid "glob"
17764 msgstr ""
17765
17766 #. type: verbatim
17767 #: ../fish/guestfish-commands.pod:88
17768 #, no-wrap
17769 msgid ""
17770 " glob command args...\n"
17771 "\n"
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../fish/guestfish-commands.pod:90
17776 msgid ""
17777 "Expand wildcards in any paths in the args list, and run C<command> "
17778 "repeatedly on each matching path."
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish-commands.pod:93
17783 msgid "See L</WILDCARDS AND GLOBBING>."
17784 msgstr ""
17785
17786 #. type: =head2
17787 #: ../fish/guestfish-commands.pod:95
17788 msgid "hexedit"
17789 msgstr ""
17790
17791 #. type: verbatim
17792 #: ../fish/guestfish-commands.pod:97
17793 #, no-wrap
17794 msgid ""
17795 " hexedit <filename|device>\n"
17796 " hexedit <filename|device> <max>\n"
17797 " hexedit <filename|device> <start> <max>\n"
17798 "\n"
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../fish/guestfish-commands.pod:101
17803 msgid ""
17804 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17805 "device."
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish-commands.pod:104
17810 msgid ""
17811 "This command works by downloading potentially the whole file or device, "
17812 "editing it locally, then uploading it.  If the file or device is large, you "
17813 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17814 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17815 "usual modifiers allowed such as C<1M> (1 megabyte)."
17816 msgstr ""
17817
17818 #. type: textblock
17819 #: ../fish/guestfish-commands.pod:111
17820 msgid "For example to edit the first few sectors of a disk you might do:"
17821 msgstr ""
17822
17823 #. type: verbatim
17824 #: ../fish/guestfish-commands.pod:114
17825 #, no-wrap
17826 msgid ""
17827 " hexedit /dev/sda 1M\n"
17828 "\n"
17829 msgstr ""
17830
17831 #. type: textblock
17832 #: ../fish/guestfish-commands.pod:116
17833 msgid ""
17834 "which would allow you to edit anywhere within the first megabyte of the "
17835 "disk."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish-commands.pod:119
17840 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17841 msgstr ""
17842
17843 #. type: verbatim
17844 #: ../fish/guestfish-commands.pod:121
17845 #, no-wrap
17846 msgid ""
17847 " hexedit /dev/sda1 0x400 0x400\n"
17848 "\n"
17849 msgstr ""
17850
17851 #. type: textblock
17852 #: ../fish/guestfish-commands.pod:123
17853 msgid "(assuming the superblock is in the standard location)."
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish-commands.pod:125
17858 msgid ""
17859 "This command requires the external L<hexedit(1)> program.  You can specify "
17860 "another program to use by setting the C<HEXEDITOR> environment variable."
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish-commands.pod:129
17865 msgid "See also L</hexdump>."
17866 msgstr ""
17867
17868 #. type: =head2
17869 #: ../fish/guestfish-commands.pod:131
17870 msgid "lcd"
17871 msgstr ""
17872
17873 #. type: verbatim
17874 #: ../fish/guestfish-commands.pod:133
17875 #, no-wrap
17876 msgid ""
17877 " lcd directory\n"
17878 "\n"
17879 msgstr ""
17880
17881 #. type: textblock
17882 #: ../fish/guestfish-commands.pod:135
17883 msgid ""
17884 "Change the local directory, ie. the current directory of guestfish itself."
17885 msgstr ""
17886
17887 #. type: textblock
17888 #: ../fish/guestfish-commands.pod:138
17889 msgid "Note that C<!cd> won't do what you might expect."
17890 msgstr ""
17891
17892 #. type: =head2
17893 #: ../fish/guestfish-commands.pod:140
17894 msgid "man"
17895 msgstr ""
17896
17897 #. type: =head2
17898 #: ../fish/guestfish-commands.pod:142
17899 msgid "manual"
17900 msgstr ""
17901
17902 #. type: verbatim
17903 #: ../fish/guestfish-commands.pod:144
17904 #, no-wrap
17905 msgid ""
17906 "  man\n"
17907 "\n"
17908 msgstr ""
17909
17910 #. type: textblock
17911 #: ../fish/guestfish-commands.pod:146
17912 msgid "Opens the manual page for guestfish."
17913 msgstr ""
17914
17915 #. type: =head2
17916 #: ../fish/guestfish-commands.pod:148
17917 msgid "more"
17918 msgstr ""
17919
17920 #. type: =head2
17921 #: ../fish/guestfish-commands.pod:150
17922 msgid "less"
17923 msgstr ""
17924
17925 #. type: verbatim
17926 #: ../fish/guestfish-commands.pod:152
17927 #, no-wrap
17928 msgid ""
17929 " more filename\n"
17930 "\n"
17931 msgstr ""
17932
17933 #. type: verbatim
17934 #: ../fish/guestfish-commands.pod:154
17935 #, no-wrap
17936 msgid ""
17937 " less filename\n"
17938 "\n"
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish-commands.pod:156
17943 msgid "This is used to view a file."
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish-commands.pod:158
17948 msgid ""
17949 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17950 "C<less> you will get the C<less> command specifically."
17951 msgstr ""
17952
17953 #. type: =head2
17954 #: ../fish/guestfish-commands.pod:161
17955 msgid "reopen"
17956 msgstr ""
17957
17958 #. type: verbatim
17959 #: ../fish/guestfish-commands.pod:163
17960 #, no-wrap
17961 msgid ""
17962 "  reopen\n"
17963 "\n"
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish-commands.pod:165
17968 msgid ""
17969 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17970 "normally, because the handle is closed properly when guestfish exits.  "
17971 "However this is occasionally useful for testing."
17972 msgstr ""
17973
17974 #. type: =head2
17975 #: ../fish/guestfish-commands.pod:169
17976 msgid "setenv"
17977 msgstr ""
17978
17979 #. type: verbatim
17980 #: ../fish/guestfish-commands.pod:171
17981 #, no-wrap
17982 msgid ""
17983 "  setenv VAR value\n"
17984 "\n"
17985 msgstr ""
17986
17987 #. type: textblock
17988 #: ../fish/guestfish-commands.pod:173
17989 msgid "Set the environment variable C<VAR> to the string C<value>."
17990 msgstr ""
17991
17992 #. type: textblock
17993 #: ../fish/guestfish-commands.pod:175
17994 msgid ""
17995 "To print the value of an environment variable use a shell command such as:"
17996 msgstr ""
17997
17998 #. type: verbatim
17999 #: ../fish/guestfish-commands.pod:178
18000 #, no-wrap
18001 msgid ""
18002 " !echo $VAR\n"
18003 "\n"
18004 msgstr ""
18005
18006 #. type: =head2
18007 #: ../fish/guestfish-commands.pod:180
18008 msgid "sparse"
18009 msgstr ""
18010
18011 #. type: verbatim
18012 #: ../fish/guestfish-commands.pod:182
18013 #, no-wrap
18014 msgid ""
18015 " sparse filename size\n"
18016 "\n"
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../fish/guestfish-commands.pod:184
18021 msgid ""
18022 "This creates an empty sparse file of the given size, and then adds so it can"
18023 " be further examined."
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish-commands.pod:187
18028 msgid ""
18029 "In all respects it works the same as the L</alloc> command, except that the "
18030 "image file is allocated sparsely, which means that disk blocks are not "
18031 "assigned to the file until they are needed.  Sparse disk files only use "
18032 "space when written to, but they are slower and there is a danger you could "
18033 "run out of real disk space during a write operation."
18034 msgstr ""
18035
18036 #. type: =head2
18037 #: ../fish/guestfish-commands.pod:197
18038 msgid "supported"
18039 msgstr ""
18040
18041 #. type: verbatim
18042 #: ../fish/guestfish-commands.pod:199
18043 #, no-wrap
18044 msgid ""
18045 " supported\n"
18046 "\n"
18047 msgstr ""
18048
18049 #. type: textblock
18050 #: ../fish/guestfish-commands.pod:201
18051 msgid ""
18052 "This command returns a list of the optional groups known to the daemon, and "
18053 "indicates which ones are supported by this build of the libguestfs "
18054 "appliance."
18055 msgstr ""
18056
18057 #. type: textblock
18058 #: ../fish/guestfish-commands.pod:205
18059 msgid "See also L<guestfs(3)/AVAILABILITY>."
18060 msgstr ""
18061
18062 #. type: =head2
18063 #: ../fish/guestfish-commands.pod:207
18064 msgid "time"
18065 msgstr ""
18066
18067 #. type: verbatim
18068 #: ../fish/guestfish-commands.pod:209
18069 #, no-wrap
18070 msgid ""
18071 " time command args...\n"
18072 "\n"
18073 msgstr ""
18074
18075 #. type: textblock
18076 #: ../fish/guestfish-commands.pod:211
18077 msgid ""
18078 "Run the command as usual, but print the elapsed time afterwards.  This can "
18079 "be useful for benchmarking operations."
18080 msgstr ""
18081
18082 #. type: =head2
18083 #: ../fish/guestfish-commands.pod:214
18084 msgid "unsetenv"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish-commands.pod:216
18089 #, no-wrap
18090 msgid ""
18091 "  unsetenv VAR\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish-commands.pod:218
18097 msgid "Remove C<VAR> from the environment."
18098 msgstr ""
18099
18100 #. type: textblock
18101 #: ../fish/guestfish.pod:5
18102 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18103 msgstr ""
18104
18105 #. type: verbatim
18106 #: ../fish/guestfish.pod:9
18107 #, no-wrap
18108 msgid ""
18109 " guestfish [--options] [commands]\n"
18110 "\n"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish.pod:11
18115 #, no-wrap
18116 msgid ""
18117 " guestfish\n"
18118 "\n"
18119 msgstr ""
18120
18121 #. type: verbatim
18122 #: ../fish/guestfish.pod:13
18123 #, no-wrap
18124 msgid ""
18125 " guestfish [--ro|--rw] -a disk.img\n"
18126 "\n"
18127 msgstr ""
18128
18129 #. type: verbatim
18130 #: ../fish/guestfish.pod:15
18131 #, no-wrap
18132 msgid ""
18133 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18134 "\n"
18135 msgstr ""
18136
18137 #. type: verbatim
18138 #: ../fish/guestfish.pod:17
18139 #, no-wrap
18140 msgid ""
18141 " guestfish -d libvirt-domain\n"
18142 "\n"
18143 msgstr ""
18144
18145 #. type: verbatim
18146 #: ../fish/guestfish.pod:19
18147 #, no-wrap
18148 msgid ""
18149 " guestfish [--ro|--rw] -a disk.img -i\n"
18150 "\n"
18151 msgstr ""
18152
18153 #. type: verbatim
18154 #: ../fish/guestfish.pod:21
18155 #, no-wrap
18156 msgid ""
18157 " guestfish -d libvirt-domain -i\n"
18158 "\n"
18159 msgstr ""
18160
18161 #. type: textblock
18162 #: ../fish/guestfish.pod:25
18163 msgid ""
18164 "Using guestfish in read/write mode on live virtual machines can be "
18165 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only)"
18166 " option to use guestfish safely if the disk image or virtual machine might "
18167 "be live."
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish.pod:32
18172 msgid ""
18173 "Guestfish is a shell and command-line tool for examining and modifying "
18174 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18175 "functionality of the guestfs API, see L<guestfs(3)>."
18176 msgstr ""
18177
18178 #. type: textblock
18179 #: ../fish/guestfish.pod:36
18180 msgid ""
18181 "Guestfish gives you structured access to the libguestfs API, from shell "
18182 "scripts or the command line or interactively.  If you want to rescue a "
18183 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18184 "command."
18185 msgstr ""
18186
18187 #. type: =head2
18188 #: ../fish/guestfish.pod:43
18189 msgid "As an interactive shell"
18190 msgstr ""
18191
18192 #. type: verbatim
18193 #: ../fish/guestfish.pod:45
18194 #, no-wrap
18195 msgid ""
18196 " $ guestfish\n"
18197 " \n"
18198 msgstr ""
18199
18200 #. type: verbatim
18201 #: ../fish/guestfish.pod:47
18202 #, no-wrap
18203 msgid ""
18204 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18205 " editing virtual machine filesystems.\n"
18206 " \n"
18207 msgstr ""
18208
18209 #. type: verbatim
18210 #: ../fish/guestfish.pod:50
18211 #, no-wrap
18212 msgid ""
18213 " Type: 'help' for a list of commands\n"
18214 "       'man' to read the manual\n"
18215 "       'quit' to quit the shell\n"
18216 " \n"
18217 msgstr ""
18218
18219 #. type: verbatim
18220 #: ../fish/guestfish.pod:54
18221 #, no-wrap
18222 msgid ""
18223 " ><fs> add-ro disk.img\n"
18224 " ><fs> run\n"
18225 " ><fs> list-filesystems\n"
18226 " /dev/sda1: ext4\n"
18227 " /dev/vg_guest/lv_root: ext4\n"
18228 " /dev/vg_guest/lv_swap: swap\n"
18229 " ><fs> mount /dev/vg_guest/lv_root /\n"
18230 " ><fs> cat /etc/fstab\n"
18231 " # /etc/fstab\n"
18232 " # Created by anaconda\n"
18233 " [...]\n"
18234 " ><fs> exit\n"
18235 "\n"
18236 msgstr ""
18237
18238 #. type: =head2
18239 #: ../fish/guestfish.pod:67
18240 msgid "From shell scripts"
18241 msgstr ""
18242
18243 #. type: textblock
18244 #: ../fish/guestfish.pod:69
18245 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18246 msgstr ""
18247
18248 #. type: verbatim
18249 #: ../fish/guestfish.pod:71
18250 #, no-wrap
18251 msgid ""
18252 " guestfish <<_EOF_\n"
18253 " add disk.img\n"
18254 " run\n"
18255 " mount /dev/vg_guest/lv_root /\n"
18256 " write /etc/motd \"Welcome, new users\"\n"
18257 " _EOF_\n"
18258 "\n"
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish.pod:78
18263 msgid "List the LVM logical volumes in a disk image:"
18264 msgstr ""
18265
18266 #. type: verbatim
18267 #: ../fish/guestfish.pod:80
18268 #, no-wrap
18269 msgid ""
18270 " guestfish -a disk.img --ro <<_EOF_\n"
18271 " run\n"
18272 " lvs\n"
18273 " _EOF_\n"
18274 "\n"
18275 msgstr ""
18276
18277 #. type: textblock
18278 #: ../fish/guestfish.pod:85
18279 msgid "List all the filesystems in a disk image:"
18280 msgstr ""
18281
18282 #. type: verbatim
18283 #: ../fish/guestfish.pod:87
18284 #, no-wrap
18285 msgid ""
18286 " guestfish -a disk.img --ro <<_EOF_\n"
18287 " run\n"
18288 " list-filesystems\n"
18289 " _EOF_\n"
18290 "\n"
18291 msgstr ""
18292
18293 #. type: =head2
18294 #: ../fish/guestfish.pod:92
18295 msgid "On one command line"
18296 msgstr ""
18297
18298 #. type: textblock
18299 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18300 msgid "Update C</etc/resolv.conf> in a guest:"
18301 msgstr ""
18302
18303 #. type: verbatim
18304 #: ../fish/guestfish.pod:96
18305 #, no-wrap
18306 msgid ""
18307 " guestfish \\\n"
18308 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18309 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18310 "\n"
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:100
18315 msgid "Edit C</boot/grub/grub.conf> interactively:"
18316 msgstr ""
18317
18318 #. type: verbatim
18319 #: ../fish/guestfish.pod:102
18320 #, no-wrap
18321 msgid ""
18322 " guestfish --rw --add disk.img \\\n"
18323 "   --mount /dev/vg_guest/lv_root \\\n"
18324 "   --mount /dev/sda1:/boot \\\n"
18325 "   edit /boot/grub/grub.conf\n"
18326 "\n"
18327 msgstr ""
18328
18329 #. type: =head2
18330 #: ../fish/guestfish.pod:107
18331 msgid "Mount disks automatically"
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:109
18336 msgid ""
18337 "Use the I<-i> option to automatically mount the disks from a virtual "
18338 "machine:"
18339 msgstr ""
18340
18341 #. type: verbatim
18342 #: ../fish/guestfish.pod:112
18343 #, no-wrap
18344 msgid ""
18345 " guestfish --ro -a disk.img -i cat /etc/group\n"
18346 "\n"
18347 msgstr ""
18348
18349 #. type: verbatim
18350 #: ../fish/guestfish.pod:114
18351 #, no-wrap
18352 msgid ""
18353 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18354 "\n"
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../fish/guestfish.pod:116
18359 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18360 msgstr ""
18361
18362 #. type: verbatim
18363 #: ../fish/guestfish.pod:118
18364 #, no-wrap
18365 msgid ""
18366 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18367 "\n"
18368 msgstr ""
18369
18370 #. type: =head2
18371 #: ../fish/guestfish.pod:120
18372 msgid "As a script interpreter"
18373 msgstr ""
18374
18375 #. type: textblock
18376 #: ../fish/guestfish.pod:122
18377 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18378 msgstr ""
18379
18380 #. type: verbatim
18381 #: ../fish/guestfish.pod:124
18382 #, no-wrap
18383 msgid ""
18384 " #!/usr/bin/guestfish -f\n"
18385 " sparse test1.img 100M\n"
18386 " run\n"
18387 " part-disk /dev/sda mbr\n"
18388 " mkfs ext2 /dev/sda1\n"
18389 "\n"
18390 msgstr ""
18391
18392 #. type: =head2
18393 #: ../fish/guestfish.pod:130
18394 msgid "Start with a prepared disk"
18395 msgstr ""
18396
18397 #. type: textblock
18398 #: ../fish/guestfish.pod:132
18399 msgid ""
18400 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18401 "single ext2-formatted partition:"
18402 msgstr ""
18403
18404 #. type: verbatim
18405 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18406 #, no-wrap
18407 msgid ""
18408 " guestfish -N fs\n"
18409 "\n"
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish.pod:137
18414 msgid "To list what is available do:"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18419 #, no-wrap
18420 msgid ""
18421 " guestfish -N help | less\n"
18422 "\n"
18423 msgstr ""
18424
18425 #. type: =head2
18426 #: ../fish/guestfish.pod:141
18427 msgid "Remote control"
18428 msgstr ""
18429
18430 #. type: verbatim
18431 #: ../fish/guestfish.pod:143
18432 #, no-wrap
18433 msgid ""
18434 " eval \"`guestfish --listen`\"\n"
18435 " guestfish --remote add-ro disk.img\n"
18436 " guestfish --remote run\n"
18437 " guestfish --remote lvs\n"
18438 "\n"
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fish/guestfish.pod:154
18443 msgid "Displays general help on options."
18444 msgstr ""
18445
18446 #. type: =item
18447 #: ../fish/guestfish.pod:158
18448 msgid "B<--cmd-help>"
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../fish/guestfish.pod:160
18453 msgid "Lists all available guestfish commands."
18454 msgstr ""
18455
18456 #. type: =item
18457 #: ../fish/guestfish.pod:162
18458 msgid "B<-h cmd>"
18459 msgstr ""
18460
18461 #. type: =item
18462 #: ../fish/guestfish.pod:164
18463 msgid "B<--cmd-help cmd>"
18464 msgstr ""
18465
18466 #. type: textblock
18467 #: ../fish/guestfish.pod:166
18468 msgid "Displays detailed help on a single command C<cmd>."
18469 msgstr ""
18470
18471 #. type: =item
18472 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18473 msgid "B<-a image>"
18474 msgstr ""
18475
18476 #. type: =item
18477 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18478 msgid "B<--add image>"
18479 msgstr ""
18480
18481 #. type: textblock
18482 #: ../fish/guestfish.pod:172
18483 msgid "Add a block device or virtual machine image to the shell."
18484 msgstr ""
18485
18486 #. type: textblock
18487 #: ../fish/guestfish.pod:177
18488 msgid ""
18489 "Using this flag is mostly equivalent to using the C<add> command, with "
18490 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18491 "the I<--format=...> flag was given."
18492 msgstr ""
18493
18494 #. type: textblock
18495 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18496 msgid ""
18497 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18498 "URI to use.  The default is to use the default libvirt connection."
18499 msgstr ""
18500
18501 #. type: =item
18502 #: ../fish/guestfish.pod:189
18503 msgid "B<--csh>"
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:191
18508 msgid ""
18509 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18510 "section L</REMOTE CONTROL AND CSH> below."
18511 msgstr ""
18512
18513 #. type: =item
18514 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18515 msgid "B<-d libvirt-domain>"
18516 msgstr ""
18517
18518 #. type: =item
18519 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18520 msgid "B<--domain libvirt-domain>"
18521 msgstr ""
18522
18523 #. type: textblock
18524 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18525 msgid ""
18526 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18527 "used, then any libvirt domain can be used.  However in write mode, only "
18528 "libvirt domains which are shut down can be named here."
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18533 msgid "Domain UUIDs can be used instead of names."
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../fish/guestfish.pod:204
18538 msgid ""
18539 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18540 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18541 "if the I<--format:...> flag was given."
18542 msgstr ""
18543
18544 #. type: =item
18545 #: ../fish/guestfish.pod:208
18546 msgid "B<-D>"
18547 msgstr ""
18548
18549 #. type: =item
18550 #: ../fish/guestfish.pod:210
18551 msgid "B<--no-dest-paths>"
18552 msgstr ""
18553
18554 #. type: textblock
18555 #: ../fish/guestfish.pod:212
18556 msgid ""
18557 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18558 "to hit the tab key to complete paths on the guest filesystem, but this "
18559 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18560 "allow this feature to be disabled."
18561 msgstr ""
18562
18563 #. type: textblock
18564 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18565 msgid ""
18566 "When prompting for keys and passphrases, guestfish normally turns echoing "
18567 "off so you cannot see what you are typing.  If you are not worried about "
18568 "Tempest attacks and there is no one else in the room you can specify this "
18569 "flag to see what you are typing."
18570 msgstr ""
18571
18572 #. type: =item
18573 #: ../fish/guestfish.pod:224
18574 msgid "B<-f file>"
18575 msgstr ""
18576
18577 #. type: =item
18578 #: ../fish/guestfish.pod:226
18579 msgid "B<--file file>"
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../fish/guestfish.pod:228
18584 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18585 msgstr ""
18586
18587 #. type: verbatim
18588 #: ../fish/guestfish.pod:231
18589 #, no-wrap
18590 msgid ""
18591 " #!/usr/bin/guestfish -f\n"
18592 "\n"
18593 msgstr ""
18594
18595 #. type: verbatim
18596 #: ../fish/guestfish.pod:244
18597 #, no-wrap
18598 msgid ""
18599 " guestfish --format=raw -a disk.img\n"
18600 "\n"
18601 msgstr ""
18602
18603 #. type: verbatim
18604 #: ../fish/guestfish.pod:248
18605 #, no-wrap
18606 msgid ""
18607 " guestfish --format=raw -a disk.img --format -a another.img\n"
18608 "\n"
18609 msgstr ""
18610
18611 #. type: textblock
18612 #: ../fish/guestfish.pod:253
18613 msgid ""
18614 "If you have untrusted raw-format guest disk images, you should use this "
18615 "option to specify the disk format.  This avoids a possible security problem "
18616 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18617 msgstr ""
18618
18619 #. type: =item
18620 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18621 msgid "B<--inspector>"
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18626 msgid ""
18627 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18628 "system and mount filesystems as they would be mounted on the real virtual "
18629 "machine."
18630 msgstr ""
18631
18632 #. type: textblock
18633 #: ../fish/guestfish.pod:266
18634 msgid "Typical usage is either:"
18635 msgstr ""
18636
18637 #. type: verbatim
18638 #: ../fish/guestfish.pod:268
18639 #, no-wrap
18640 msgid ""
18641 " guestfish -d myguest -i\n"
18642 "\n"
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish.pod:270
18647 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18648 msgstr ""
18649
18650 #. type: verbatim
18651 #: ../fish/guestfish.pod:272
18652 #, no-wrap
18653 msgid ""
18654 " guestfish --ro -d myguest -i\n"
18655 "\n"
18656 msgstr ""
18657
18658 #. type: textblock
18659 #: ../fish/guestfish.pod:274
18660 msgid "(for active domains, readonly), or specify the block device directly:"
18661 msgstr ""
18662
18663 #. type: verbatim
18664 #: ../fish/guestfish.pod:276
18665 #, no-wrap
18666 msgid ""
18667 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18668 "\n"
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fish/guestfish.pod:278
18673 msgid ""
18674 "Note that the command line syntax changed slightly over older versions of "
18675 "guestfish.  You can still use the old syntax:"
18676 msgstr ""
18677
18678 #. type: verbatim
18679 #: ../fish/guestfish.pod:281
18680 #, no-wrap
18681 msgid ""
18682 " guestfish [--ro] -i disk.img\n"
18683 "\n"
18684 msgstr ""
18685
18686 #. type: verbatim
18687 #: ../fish/guestfish.pod:283
18688 #, no-wrap
18689 msgid ""
18690 " guestfish [--ro] -i libvirt-domain\n"
18691 "\n"
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/guestfish.pod:285
18696 msgid ""
18697 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18698 "then using other commands to mount the filesystems that were found."
18699 msgstr ""
18700
18701 #. type: =item
18702 #: ../fish/guestfish.pod:294
18703 msgid "B<--listen>"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/guestfish.pod:296
18708 msgid ""
18709 "Fork into the background and listen for remote commands.  See section "
18710 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18711 msgstr ""
18712
18713 #. type: =item
18714 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18715 msgid "B<--live>"
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18720 msgid ""
18721 "Connect to a live virtual machine.  (Experimental, see "
18722 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
18723 msgstr ""
18724
18725 #. type: =item
18726 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18727 msgid "B<-m dev[:mountpoint[:options]]>"
18728 msgstr ""
18729
18730 #. type: =item
18731 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18732 msgid "B<--mount dev[:mountpoint[:options]]>"
18733 msgstr ""
18734
18735 #. type: textblock
18736 #: ../fish/guestfish.pod:308
18737 msgid "Mount the named partition or logical volume on the given mountpoint."
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:310
18742 msgid "If the mountpoint is omitted, it defaults to C</>."
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../fish/guestfish.pod:312
18747 msgid "You have to mount something on C</> before most commands will work."
18748 msgstr ""
18749
18750 #. type: textblock
18751 #: ../fish/guestfish.pod:314
18752 msgid ""
18753 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18754 "launched."
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/guestfish.pod:317
18759 msgid ""
18760 "If you don't know what filesystems a disk image contains, you can either run"
18761 " guestfish without this option, then list the partitions, filesystems and "
18762 "LVs available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18763 "commands), or you can use the L<virt-filesystems(1)> program."
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18768 msgid ""
18769 "The third (and rarely used) part of the mount parameter is the list of mount"
18770 " options used to mount the underlying filesystem.  If this is not given, "
18771 "then the mount options are either the empty string or C<ro> (the latter if "
18772 "the I<--ro> flag is used).  By specifying the mount options, you override "
18773 "this default choice.  Probably the only time you would use this is to enable"
18774 " ACLs and/or extended attributes if the filesystem can support them:"
18775 msgstr ""
18776
18777 #. type: verbatim
18778 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18779 #, no-wrap
18780 msgid ""
18781 " -m /dev/sda1:/:acl,user_xattr\n"
18782 "\n"
18783 msgstr ""
18784
18785 #. type: textblock
18786 #: ../fish/guestfish.pod:333
18787 msgid "Using this flag is equivalent to using the C<mount-options> command."
18788 msgstr ""
18789
18790 #. type: =item
18791 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18792 #: ../resize/virt-resize.pod:435
18793 msgid "B<-n>"
18794 msgstr ""
18795
18796 #. type: =item
18797 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18798 msgid "B<--no-sync>"
18799 msgstr ""
18800
18801 #. type: textblock
18802 #: ../fish/guestfish.pod:339
18803 msgid ""
18804 "Disable autosync.  This is enabled by default.  See the discussion of "
18805 "autosync in the L<guestfs(3)> manpage."
18806 msgstr ""
18807
18808 #. type: =item
18809 #: ../fish/guestfish.pod:342
18810 msgid "B<-N type>"
18811 msgstr ""
18812
18813 #. type: =item
18814 #: ../fish/guestfish.pod:344
18815 msgid "B<--new type>"
18816 msgstr ""
18817
18818 #. type: =item
18819 #: ../fish/guestfish.pod:346
18820 msgid "B<-N help>"
18821 msgstr ""
18822
18823 #. type: textblock
18824 #: ../fish/guestfish.pod:348
18825 msgid ""
18826 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to"
18827 " the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18828 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18829 "IMAGES> below."
18830 msgstr ""
18831
18832 #. type: =item
18833 #: ../fish/guestfish.pod:353
18834 msgid "B<--progress-bars>"
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/guestfish.pod:355
18839 msgid "Enable progress bars, even when guestfish is used non-interactively."
18840 msgstr ""
18841
18842 #. type: textblock
18843 #: ../fish/guestfish.pod:357
18844 msgid ""
18845 "Progress bars are enabled by default when guestfish is used as an "
18846 "interactive shell."
18847 msgstr ""
18848
18849 #. type: =item
18850 #: ../fish/guestfish.pod:360
18851 msgid "B<--no-progress-bars>"
18852 msgstr ""
18853
18854 #. type: textblock
18855 #: ../fish/guestfish.pod:362
18856 msgid "Disable progress bars."
18857 msgstr ""
18858
18859 #. type: =item
18860 #: ../fish/guestfish.pod:364
18861 msgid "B<--remote[=pid]>"
18862 msgstr ""
18863
18864 #. type: textblock
18865 #: ../fish/guestfish.pod:366
18866 msgid ""
18867 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18868 "CONTROL GUESTFISH OVER A SOCKET> below."
18869 msgstr ""
18870
18871 #. type: =item
18872 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18873 #: ../rescue/virt-rescue.pod:161
18874 msgid "B<-r>"
18875 msgstr ""
18876
18877 #. type: =item
18878 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18879 #: ../rescue/virt-rescue.pod:163
18880 msgid "B<--ro>"
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish.pod:373
18885 msgid ""
18886 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18887 "mounts are done read-only."
18888 msgstr ""
18889
18890 #. type: textblock
18891 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18892 msgid ""
18893 "The option must always be used if the disk image or virtual machine might be"
18894 " running, and is generally recommended in cases where you don't need write "
18895 "access to the disk."
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:380
18900 msgid ""
18901 "Note that prepared disk images created with I<-N> are not affected by this "
18902 "option.  Also commands like C<add> are not affected - you have to specify "
18903 "the C<readonly:true> option explicitly if you need it."
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fish/guestfish.pod:384
18908 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18909 msgstr ""
18910
18911 #. type: =item
18912 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18913 #: ../rescue/virt-rescue.pod:173
18914 msgid "B<--selinux>"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:388
18919 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18920 msgstr ""
18921
18922 #. type: textblock
18923 #: ../fish/guestfish.pod:394
18924 msgid ""
18925 "Enable very verbose messages.  This is particularly useful if you find a "
18926 "bug."
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/guestfish.pod:401
18931 msgid "Display the guestfish / libguestfs version number and exit."
18932 msgstr ""
18933
18934 #. type: =item
18935 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18936 #: ../rescue/virt-rescue.pod:194
18937 msgid "B<-w>"
18938 msgstr ""
18939
18940 #. type: =item
18941 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18942 #: ../rescue/virt-rescue.pod:196
18943 msgid "B<--rw>"
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18948 msgid ""
18949 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18950 "mounts are done read-write."
18951 msgstr ""
18952
18953 #. type: textblock
18954 #: ../fish/guestfish.pod:410
18955 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/guestfish.pod:414
18960 msgid "Echo each command before executing it."
18961 msgstr ""
18962
18963 #. type: =head1
18964 #: ../fish/guestfish.pod:418
18965 msgid "COMMANDS ON COMMAND LINE"
18966 msgstr ""
18967
18968 #. type: textblock
18969 #: ../fish/guestfish.pod:420
18970 msgid ""
18971 "Any additional (non-option) arguments are treated as commands to execute."
18972 msgstr ""
18973
18974 #. type: textblock
18975 #: ../fish/guestfish.pod:423
18976 msgid ""
18977 "Commands to execute should be separated by a colon (C<:>), where the colon "
18978 "is a separate parameter.  Thus:"
18979 msgstr ""
18980
18981 #. type: verbatim
18982 #: ../fish/guestfish.pod:426
18983 #, no-wrap
18984 msgid ""
18985 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18986 "\n"
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/guestfish.pod:428
18991 msgid ""
18992 "If there are no additional arguments, then we enter a shell, either an "
18993 "interactive shell with a prompt (if the input is a terminal) or a non-"
18994 "interactive shell."
18995 msgstr ""
18996
18997 #. type: textblock
18998 #: ../fish/guestfish.pod:432
18999 msgid ""
19000 "In either command line mode or non-interactive shell, the first command that"
19001 " gives an error causes the whole shell to exit.  In interactive mode (with a"
19002 " prompt) if a command fails, you can continue to enter commands."
19003 msgstr ""
19004
19005 #. type: =head1
19006 #: ../fish/guestfish.pod:437
19007 msgid "USING launch (OR run)"
19008 msgstr ""
19009
19010 #. type: textblock
19011 #: ../fish/guestfish.pod:439
19012 msgid ""
19013 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19014 "then launch it, then mount any disks you need, and finally issue "
19015 "actions/commands.  So the general order of the day is:"
19016 msgstr ""
19017
19018 #. type: textblock
19019 #: ../fish/guestfish.pod:447
19020 msgid "add or -a/--add"
19021 msgstr ""
19022
19023 #. type: textblock
19024 #: ../fish/guestfish.pod:451
19025 msgid "launch (aka run)"
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../fish/guestfish.pod:455
19030 msgid "mount or -m/--mount"
19031 msgstr ""
19032
19033 #. type: textblock
19034 #: ../fish/guestfish.pod:459
19035 msgid "any other commands"
19036 msgstr ""
19037
19038 #. type: textblock
19039 #: ../fish/guestfish.pod:463
19040 msgid ""
19041 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19042 "guest before mounting or performing any other commands."
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fish/guestfish.pod:466
19047 msgid ""
19048 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19049 "I<--new> options were given then C<run> is done automatically, simply "
19050 "because guestfish can't perform the action you asked for without doing this."
19051 msgstr ""
19052
19053 #. type: =head1
19054 #: ../fish/guestfish.pod:471
19055 msgid "OPENING DISKS FOR READ AND WRITE"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/guestfish.pod:473
19060 msgid ""
19061 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19062 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19063 "I<-i> and I<-m> open disk images read-only or for writing."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:478
19068 msgid ""
19069 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to"
19070 " opening disk images supplied on the command line for write.  To open a disk"
19071 " image read-only you have to do I<-a image --ro>."
19072 msgstr ""
19073
19074 #. type: textblock
19075 #: ../fish/guestfish.pod:482
19076 msgid ""
19077 "This matters: If you accidentally open a live VM disk image writable then "
19078 "you will cause irreversible disk corruption."
19079 msgstr ""
19080
19081 #. type: textblock
19082 #: ../fish/guestfish.pod:485
19083 msgid ""
19084 "In a future libguestfs we intend to change the default the other way.  Disk "
19085 "images will be opened read-only.  You will have to either specify "
19086 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19087 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19088 "access for disk images specified by those other command line options."
19089 msgstr ""
19090
19091 #. type: textblock
19092 #: ../fish/guestfish.pod:492
19093 msgid ""
19094 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19095 "which does nothing (it is already the default).  However it is highly "
19096 "recommended that you use this option to indicate that you need write access,"
19097 " and prepare your scripts for the day when this option will be required for "
19098 "write access."
19099 msgstr ""
19100
19101 #. type: textblock
19102 #: ../fish/guestfish.pod:498
19103 msgid ""
19104 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any"
19105 " other libguestfs program apart from guestfish and guestmount."
19106 msgstr ""
19107
19108 #. type: =head1
19109 #: ../fish/guestfish.pod:501
19110 msgid "QUOTING"
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:503
19115 msgid ""
19116 "You can quote ordinary parameters using either single or double quotes.  For"
19117 " example:"
19118 msgstr ""
19119
19120 #. type: verbatim
19121 #: ../fish/guestfish.pod:506
19122 #, no-wrap
19123 msgid ""
19124 " add \"file with a space.img\"\n"
19125 "\n"
19126 msgstr ""
19127
19128 #. type: verbatim
19129 #: ../fish/guestfish.pod:508
19130 #, no-wrap
19131 msgid ""
19132 " rm '/file name'\n"
19133 "\n"
19134 msgstr ""
19135
19136 #. type: verbatim
19137 #: ../fish/guestfish.pod:510
19138 #, no-wrap
19139 msgid ""
19140 " rm '/\"'\n"
19141 "\n"
19142 msgstr ""
19143
19144 #. type: textblock
19145 #: ../fish/guestfish.pod:512
19146 msgid ""
19147 "A few commands require a list of strings to be passed.  For these, use a "
19148 "whitespace-separated list, enclosed in quotes.  Strings containing "
19149 "whitespace to be passed through must be enclosed in single quotes.  A "
19150 "literal single quote must be escaped with a backslash."
19151 msgstr ""
19152
19153 #. type: verbatim
19154 #: ../fish/guestfish.pod:517
19155 #, no-wrap
19156 msgid ""
19157 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19158 " command \"/bin/echo 'foo      bar'\"\n"
19159 " command \"/bin/echo \\'foo\\'\"\n"
19160 "\n"
19161 msgstr ""
19162
19163 #. type: =head2
19164 #: ../fish/guestfish.pod:521
19165 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19166 msgstr ""
19167
19168 #. type: textblock
19169 #: ../fish/guestfish.pod:523
19170 msgid ""
19171 "In double-quoted arguments (only) use backslash to insert special "
19172 "characters:"
19173 msgstr ""
19174
19175 #. type: =item
19176 #: ../fish/guestfish.pod:528
19177 msgid "C<\\a>"
19178 msgstr ""
19179
19180 #. type: textblock
19181 #: ../fish/guestfish.pod:530
19182 msgid "Alert (bell) character."
19183 msgstr ""
19184
19185 #. type: =item
19186 #: ../fish/guestfish.pod:532
19187 msgid "C<\\b>"
19188 msgstr ""
19189
19190 #. type: textblock
19191 #: ../fish/guestfish.pod:534
19192 msgid "Backspace character."
19193 msgstr ""
19194
19195 #. type: =item
19196 #: ../fish/guestfish.pod:536
19197 msgid "C<\\f>"
19198 msgstr ""
19199
19200 #. type: textblock
19201 #: ../fish/guestfish.pod:538
19202 msgid "Form feed character."
19203 msgstr ""
19204
19205 #. type: =item
19206 #: ../fish/guestfish.pod:540
19207 msgid "C<\\n>"
19208 msgstr ""
19209
19210 #. type: textblock
19211 #: ../fish/guestfish.pod:542
19212 msgid "Newline character."
19213 msgstr ""
19214
19215 #. type: =item
19216 #: ../fish/guestfish.pod:544
19217 msgid "C<\\r>"
19218 msgstr ""
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:546
19222 msgid "Carriage return character."
19223 msgstr ""
19224
19225 #. type: =item
19226 #: ../fish/guestfish.pod:548
19227 msgid "C<\\t>"
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:550
19232 msgid "Horizontal tab character."
19233 msgstr ""
19234
19235 #. type: =item
19236 #: ../fish/guestfish.pod:552
19237 msgid "C<\\v>"
19238 msgstr ""
19239
19240 #. type: textblock
19241 #: ../fish/guestfish.pod:554
19242 msgid "Vertical tab character."
19243 msgstr ""
19244
19245 #. type: =item
19246 #: ../fish/guestfish.pod:556
19247 msgid "C<\\\">"
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fish/guestfish.pod:558
19252 msgid "A literal double quote character."
19253 msgstr ""
19254
19255 #. type: =item
19256 #: ../fish/guestfish.pod:560
19257 msgid "C<\\ooo>"
19258 msgstr ""
19259
19260 #. type: textblock
19261 #: ../fish/guestfish.pod:562
19262 msgid ""
19263 "A character with octal value I<ooo>.  There must be precisely 3 octal digits"
19264 " (unlike C)."
19265 msgstr ""
19266
19267 #. type: =item
19268 #: ../fish/guestfish.pod:565
19269 msgid "C<\\xhh>"
19270 msgstr ""
19271
19272 #. type: textblock
19273 #: ../fish/guestfish.pod:567
19274 msgid ""
19275 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19276 msgstr ""
19277
19278 #. type: textblock
19279 #: ../fish/guestfish.pod:570
19280 msgid ""
19281 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19282 "strings."
19283 msgstr ""
19284
19285 #. type: =item
19286 #: ../fish/guestfish.pod:573
19287 msgid "C<\\\\>"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:575
19292 msgid "A literal backslash character."
19293 msgstr ""
19294
19295 #. type: =head1
19296 #: ../fish/guestfish.pod:579
19297 msgid "OPTIONAL ARGUMENTS"
19298 msgstr ""
19299
19300 #. type: textblock
19301 #: ../fish/guestfish.pod:581
19302 msgid ""
19303 "Some commands take optional arguments.  These arguments appear in this "
19304 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19305 msgstr ""
19306
19307 #. type: verbatim
19308 #: ../fish/guestfish.pod:585
19309 #, no-wrap
19310 msgid ""
19311 " add-drive-opts filename\n"
19312 "\n"
19313 msgstr ""
19314
19315 #. type: verbatim
19316 #: ../fish/guestfish.pod:587
19317 #, no-wrap
19318 msgid ""
19319 " add-drive-opts filename readonly:true\n"
19320 "\n"
19321 msgstr ""
19322
19323 #. type: verbatim
19324 #: ../fish/guestfish.pod:589
19325 #, no-wrap
19326 msgid ""
19327 " add-drive-opts filename format:qcow2 readonly:false\n"
19328 "\n"
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:591
19333 msgid ""
19334 "Each optional argument can appear at most once.  All optional arguments must"
19335 " appear after the required ones."
19336 msgstr ""
19337
19338 #. type: =head1
19339 #: ../fish/guestfish.pod:594
19340 msgid "NUMBERS"
19341 msgstr ""
19342
19343 #. type: textblock
19344 #: ../fish/guestfish.pod:596
19345 msgid ""
19346 "This section applies to all commands which can take integers as parameters."
19347 msgstr ""
19348
19349 #. type: =head2
19350 #: ../fish/guestfish.pod:599
19351 msgid "SIZE SUFFIX"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:601
19356 msgid ""
19357 "When the command takes a parameter measured in bytes, you can use one of the"
19358 " following suffixes to specify kilobytes, megabytes and larger sizes:"
19359 msgstr ""
19360
19361 #. type: =item
19362 #: ../fish/guestfish.pod:607
19363 msgid "B<k> or B<K> or B<KiB>"
19364 msgstr ""
19365
19366 #. type: textblock
19367 #: ../fish/guestfish.pod:609
19368 msgid "The size in kilobytes (multiplied by 1024)."
19369 msgstr ""
19370
19371 #. type: =item
19372 #: ../fish/guestfish.pod:611
19373 msgid "B<KB>"
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish.pod:613
19378 msgid "The size in SI 1000 byte units."
19379 msgstr ""
19380
19381 #. type: =item
19382 #: ../fish/guestfish.pod:615
19383 msgid "B<M> or B<MiB>"
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish.pod:617
19388 msgid "The size in megabytes (multiplied by 1048576)."
19389 msgstr ""
19390
19391 #. type: =item
19392 #: ../fish/guestfish.pod:619
19393 msgid "B<MB>"
19394 msgstr ""
19395
19396 #. type: textblock
19397 #: ../fish/guestfish.pod:621
19398 msgid "The size in SI 1000000 byte units."
19399 msgstr ""
19400
19401 #. type: =item
19402 #: ../fish/guestfish.pod:623
19403 msgid "B<G> or B<GiB>"
19404 msgstr ""
19405
19406 #. type: textblock
19407 #: ../fish/guestfish.pod:625
19408 msgid "The size in gigabytes (multiplied by 2**30)."
19409 msgstr ""
19410
19411 #. type: =item
19412 #: ../fish/guestfish.pod:627
19413 msgid "B<GB>"
19414 msgstr ""
19415
19416 #. type: textblock
19417 #: ../fish/guestfish.pod:629
19418 msgid "The size in SI 10**9 byte units."
19419 msgstr ""
19420
19421 #. type: =item
19422 #: ../fish/guestfish.pod:631
19423 msgid "B<T> or B<TiB>"
19424 msgstr ""
19425
19426 #. type: textblock
19427 #: ../fish/guestfish.pod:633
19428 msgid "The size in terabytes (multiplied by 2**40)."
19429 msgstr ""
19430
19431 #. type: =item
19432 #: ../fish/guestfish.pod:635
19433 msgid "B<TB>"
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fish/guestfish.pod:637
19438 msgid "The size in SI 10**12 byte units."
19439 msgstr ""
19440
19441 #. type: =item
19442 #: ../fish/guestfish.pod:639
19443 msgid "B<P> or B<PiB>"
19444 msgstr ""
19445
19446 #. type: textblock
19447 #: ../fish/guestfish.pod:641
19448 msgid "The size in petabytes (multiplied by 2**50)."
19449 msgstr ""
19450
19451 #. type: =item
19452 #: ../fish/guestfish.pod:643
19453 msgid "B<PB>"
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../fish/guestfish.pod:645
19458 msgid "The size in SI 10**15 byte units."
19459 msgstr ""
19460
19461 #. type: =item
19462 #: ../fish/guestfish.pod:647
19463 msgid "B<E> or B<EiB>"
19464 msgstr ""
19465
19466 #. type: textblock
19467 #: ../fish/guestfish.pod:649
19468 msgid "The size in exabytes (multiplied by 2**60)."
19469 msgstr ""
19470
19471 #. type: =item
19472 #: ../fish/guestfish.pod:651
19473 msgid "B<EB>"
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../fish/guestfish.pod:653
19478 msgid "The size in SI 10**18 byte units."
19479 msgstr ""
19480
19481 #. type: =item
19482 #: ../fish/guestfish.pod:655
19483 msgid "B<Z> or B<ZiB>"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:657
19488 msgid "The size in zettabytes (multiplied by 2**70)."
19489 msgstr ""
19490
19491 #. type: =item
19492 #: ../fish/guestfish.pod:659
19493 msgid "B<ZB>"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fish/guestfish.pod:661
19498 msgid "The size in SI 10**21 byte units."
19499 msgstr ""
19500
19501 #. type: =item
19502 #: ../fish/guestfish.pod:663
19503 msgid "B<Y> or B<YiB>"
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../fish/guestfish.pod:665
19508 msgid "The size in yottabytes (multiplied by 2**80)."
19509 msgstr ""
19510
19511 #. type: =item
19512 #: ../fish/guestfish.pod:667
19513 msgid "B<YB>"
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/guestfish.pod:669
19518 msgid "The size in SI 10**24 byte units."
19519 msgstr ""
19520
19521 #. type: verbatim
19522 #: ../fish/guestfish.pod:675
19523 #, no-wrap
19524 msgid ""
19525 " truncate-size /file 1G\n"
19526 "\n"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:677
19531 msgid "would truncate the file to 1 gigabyte."
19532 msgstr ""
19533
19534 #. type: textblock
19535 #: ../fish/guestfish.pod:679
19536 msgid ""
19537 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19538 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19539 "suffix will probably not do what you expect."
19540 msgstr ""
19541
19542 #. type: =head2
19543 #: ../fish/guestfish.pod:683
19544 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19545 msgstr ""
19546
19547 #. type: textblock
19548 #: ../fish/guestfish.pod:685
19549 msgid ""
19550 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19551 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19552 msgstr ""
19553
19554 #. type: verbatim
19555 #: ../fish/guestfish.pod:688
19556 #, no-wrap
19557 msgid ""
19558 " 1234      decimal number 1234\n"
19559 " 02322     octal number, equivalent to decimal 1234\n"
19560 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19561 "\n"
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../fish/guestfish.pod:692
19566 msgid ""
19567 "When using the C<chmod> command, you almost always want to specify an octal "
19568 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19569 "L<chmod(1)> program):"
19570 msgstr ""
19571
19572 #. type: verbatim
19573 #: ../fish/guestfish.pod:696
19574 #, no-wrap
19575 msgid ""
19576 " chmod 0777 /public  # OK\n"
19577 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19578 "\n"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:699
19583 msgid ""
19584 "Commands that return numbers usually print them in decimal, but some "
19585 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19586 "octal, preceeded by C<0>)."
19587 msgstr ""
19588
19589 #. type: =head1
19590 #: ../fish/guestfish.pod:703
19591 msgid "WILDCARDS AND GLOBBING"
19592 msgstr ""
19593
19594 #. type: textblock
19595 #: ../fish/guestfish.pod:705
19596 msgid ""
19597 "Neither guestfish nor the underlying guestfs API performs wildcard expansion"
19598 " (globbing) by default.  So for example the following will not do what you "
19599 "expect:"
19600 msgstr ""
19601
19602 #. type: verbatim
19603 #: ../fish/guestfish.pod:709
19604 #, no-wrap
19605 msgid ""
19606 " rm-rf /home/*\n"
19607 "\n"
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../fish/guestfish.pod:711
19612 msgid ""
19613 "Assuming you don't have a directory called literally C</home/*> then the "
19614 "above command will return an error."
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../fish/guestfish.pod:714
19619 msgid "To perform wildcard expansion, use the C<glob> command."
19620 msgstr ""
19621
19622 #. type: verbatim
19623 #: ../fish/guestfish.pod:716
19624 #, no-wrap
19625 msgid ""
19626 " glob rm-rf /home/*\n"
19627 "\n"
19628 msgstr ""
19629
19630 #. type: textblock
19631 #: ../fish/guestfish.pod:718
19632 msgid ""
19633 "runs C<rm-rf> on each path that matches (ie. potentially running the command"
19634 " many times), equivalent to:"
19635 msgstr ""
19636
19637 #. type: verbatim
19638 #: ../fish/guestfish.pod:721
19639 #, no-wrap
19640 msgid ""
19641 " rm-rf /home/jim\n"
19642 " rm-rf /home/joe\n"
19643 " rm-rf /home/mary\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:725
19649 msgid "C<glob> only works on simple guest paths and not on device names."
19650 msgstr ""
19651
19652 #. type: textblock
19653 #: ../fish/guestfish.pod:727
19654 msgid ""
19655 "If you have several parameters, each containing a wildcard, then glob will "
19656 "perform a Cartesian product."
19657 msgstr ""
19658
19659 #. type: =head1
19660 #: ../fish/guestfish.pod:730
19661 msgid "COMMENTS"
19662 msgstr ""
19663
19664 #. type: textblock
19665 #: ../fish/guestfish.pod:732
19666 msgid ""
19667 "Any line which starts with a I<#> character is treated as a comment and "
19668 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19669 "a command.  For example:"
19670 msgstr ""
19671
19672 #. type: verbatim
19673 #: ../fish/guestfish.pod:736
19674 #, no-wrap
19675 msgid ""
19676 " # this is a comment\n"
19677 "         # this is a comment\n"
19678 " foo # NOT a comment\n"
19679 "\n"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:740
19684 msgid "Blank lines are also ignored."
19685 msgstr ""
19686
19687 #. type: =head1
19688 #: ../fish/guestfish.pod:742
19689 msgid "RUNNING COMMANDS LOCALLY"
19690 msgstr ""
19691
19692 #. type: textblock
19693 #: ../fish/guestfish.pod:744
19694 msgid ""
19695 "Any line which starts with a I<!> character is treated as a command sent to "
19696 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19697 msgstr ""
19698
19699 #. type: verbatim
19700 #: ../fish/guestfish.pod:748
19701 #, no-wrap
19702 msgid ""
19703 " !mkdir local\n"
19704 " tgz-out /remote local/remote-data.tar.gz\n"
19705 "\n"
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:751
19710 msgid ""
19711 "will create a directory C<local> on the host, and then export the contents "
19712 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19713 "(See C<tgz-out>)."
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/guestfish.pod:755
19718 msgid ""
19719 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19720 "effect, due to the way that subprocesses work in Unix."
19721 msgstr ""
19722
19723 #. type: =head2
19724 #: ../fish/guestfish.pod:758
19725 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19726 msgstr ""
19727
19728 #. type: textblock
19729 #: ../fish/guestfish.pod:760
19730 msgid ""
19731 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19732 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19733 "and executed as guestfish commands."
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:764
19738 msgid ""
19739 "Thus you can use shell script to construct arbitrary guestfish commands "
19740 "which are then parsed by guestfish."
19741 msgstr ""
19742
19743 #. type: textblock
19744 #: ../fish/guestfish.pod:767
19745 msgid ""
19746 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19747 "through C</foo.100>) using guestfish commands alone.  However this is simple"
19748 " if we use a shell script to create the guestfish commands for us:"
19749 msgstr ""
19750
19751 #. type: verbatim
19752 #: ../fish/guestfish.pod:772
19753 #, no-wrap
19754 msgid ""
19755 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19756 "\n"
19757 msgstr ""
19758
19759 #. type: textblock
19760 #: ../fish/guestfish.pod:774
19761 msgid "or with names like C</foo.001>:"
19762 msgstr ""
19763
19764 #. type: verbatim
19765 #: ../fish/guestfish.pod:776
19766 #, no-wrap
19767 msgid ""
19768 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19769 "\n"
19770 msgstr ""
19771
19772 #. type: textblock
19773 #: ../fish/guestfish.pod:778
19774 msgid ""
19775 "When using guestfish interactively it can be helpful to just run the shell "
19776 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19777 "ordinary I<!> local command), see what guestfish commands it would run, and "
19778 "when you are happy with those prepend the C<E<lt>> character to run the "
19779 "guestfish commands for real."
19780 msgstr ""
19781
19782 #. type: =head1
19783 #: ../fish/guestfish.pod:784
19784 msgid "PIPES"
19785 msgstr ""
19786
19787 #. type: textblock
19788 #: ../fish/guestfish.pod:786
19789 msgid ""
19790 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19791 "command (a guestfish command) to the second command (any host command).  For"
19792 " example:"
19793 msgstr ""
19794
19795 #. type: verbatim
19796 #: ../fish/guestfish.pod:790
19797 #, no-wrap
19798 msgid ""
19799 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19800 "\n"
19801 msgstr ""
19802
19803 #. type: textblock
19804 #: ../fish/guestfish.pod:792
19805 msgid ""
19806 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19807 "program).  The above command would list all accounts in the guest filesystem"
19808 " which have UID 0, ie. root accounts including backdoors.  Other examples:"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../fish/guestfish.pod:797
19813 #, no-wrap
19814 msgid ""
19815 " hexdump /bin/ls | head\n"
19816 " list-devices | tail -1\n"
19817 " tgz-out / - | tar ztf -\n"
19818 "\n"
19819 msgstr ""
19820
19821 #. type: textblock
19822 #: ../fish/guestfish.pod:801
19823 msgid ""
19824 "The space before the pipe symbol is required, any space after the pipe "
19825 "symbol is optional.  Everything after the pipe symbol is just passed "
19826 "straight to the host shell, so it can contain redirections, globs and "
19827 "anything else that makes sense on the host side."
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/guestfish.pod:806
19832 msgid ""
19833 "To use a literal argument which begins with a pipe symbol, you have to quote"
19834 " it, eg:"
19835 msgstr ""
19836
19837 #. type: verbatim
19838 #: ../fish/guestfish.pod:809
19839 #, no-wrap
19840 msgid ""
19841 " echo \"|\"\n"
19842 "\n"
19843 msgstr ""
19844
19845 #. type: =head1
19846 #: ../fish/guestfish.pod:811
19847 msgid "HOME DIRECTORIES"
19848 msgstr ""
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:813
19852 msgid ""
19853 "If a parameter starts with the character C<~> then the tilde may be expanded"
19854 " as a home directory path (either C<~> for the current user's home "
19855 "directory, or C<~user> for another user)."
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:817
19860 msgid ""
19861 "Note that home directory expansion happens for users known I<on the host>, "
19862 "not in the guest filesystem."
19863 msgstr ""
19864
19865 #. type: textblock
19866 #: ../fish/guestfish.pod:820
19867 msgid ""
19868 "To use a literal argument which begins with a tilde, you have to quote it, "
19869 "eg:"
19870 msgstr ""
19871
19872 #. type: verbatim
19873 #: ../fish/guestfish.pod:823
19874 #, no-wrap
19875 msgid ""
19876 " echo \"~\"\n"
19877 "\n"
19878 msgstr ""
19879
19880 #. type: =head2
19881 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19882 msgid "ENCRYPTED DISKS"
19883 msgstr ""
19884
19885 #. type: textblock
19886 #: ../fish/guestfish.pod:827
19887 msgid ""
19888 "Libguestfs has some support for Linux guests encrypted according to the "
19889 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19890 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19891 "LUKS is supported."
19892 msgstr ""
19893
19894 #. type: textblock
19895 #: ../fish/guestfish.pod:832
19896 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../fish/guestfish.pod:834
19901 #, no-wrap
19902 msgid ""
19903 " ><fs> vfs-type /dev/sda2\n"
19904 " crypto_LUKS\n"
19905 "\n"
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/guestfish.pod:837
19910 msgid ""
19911 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19912 "device called C</dev/mapper/luksdev>."
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../fish/guestfish.pod:840
19917 #, no-wrap
19918 msgid ""
19919 " ><fs> luks-open /dev/sda2 luksdev\n"
19920 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19921 "\n"
19922 msgstr ""
19923
19924 #. type: textblock
19925 #: ../fish/guestfish.pod:843
19926 msgid ""
19927 "Finally you have to tell LVM to scan for volume groups on the newly created "
19928 "mapper device:"
19929 msgstr ""
19930
19931 #. type: verbatim
19932 #: ../fish/guestfish.pod:846
19933 #, no-wrap
19934 msgid ""
19935 " vgscan\n"
19936 " vg-activate-all true\n"
19937 "\n"
19938 msgstr ""
19939
19940 #. type: textblock
19941 #: ../fish/guestfish.pod:849
19942 msgid "The logical volume(s) can now be mounted in the usual way."
19943 msgstr ""
19944
19945 #. type: textblock
19946 #: ../fish/guestfish.pod:851
19947 msgid ""
19948 "Before closing a LUKS device you must unmount any logical volumes on it and "
19949 "deactivate the volume groups by calling C<vg-activate false VG> on each one."
19950 "  Then you can close the mapper device:"
19951 msgstr ""
19952
19953 #. type: verbatim
19954 #: ../fish/guestfish.pod:855
19955 #, no-wrap
19956 msgid ""
19957 " vg-activate false /dev/VG\n"
19958 " luks-close /dev/mapper/luksdev\n"
19959 "\n"
19960 msgstr ""
19961
19962 #. type: textblock
19963 #: ../fish/guestfish.pod:860
19964 msgid ""
19965 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19966 "letters and paths (with some limitations).  The following commands are "
19967 "equivalent:"
19968 msgstr ""
19969
19970 #. type: verbatim
19971 #: ../fish/guestfish.pod:864
19972 #, no-wrap
19973 msgid ""
19974 " file /WINDOWS/system32/config/system.LOG\n"
19975 "\n"
19976 msgstr ""
19977
19978 #. type: verbatim
19979 #: ../fish/guestfish.pod:866
19980 #, no-wrap
19981 msgid ""
19982 " file win:\\windows\\system32\\config\\system.log\n"
19983 "\n"
19984 msgstr ""
19985
19986 #. type: verbatim
19987 #: ../fish/guestfish.pod:868
19988 #, no-wrap
19989 msgid ""
19990 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19991 "\n"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:870
19996 msgid ""
19997 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19998 "where the drive is mounted, prepending that to the path, changing all "
19999 "backslash characters to forward slash, then resolving the result using L"
20000 "</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20001 "then the parameter might be rewritten like this:"
20002 msgstr ""
20003
20004 #. type: verbatim
20005 #: ../fish/guestfish.pod:876
20006 #, no-wrap
20007 msgid ""
20008 " win:e:\\foo\\bar => /e/FOO/bar\n"
20009 "\n"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/guestfish.pod:878
20014 msgid "This only works in argument positions that expect a path."
20015 msgstr ""
20016
20017 #. type: =head1
20018 #: ../fish/guestfish.pod:880
20019 msgid "UPLOADING AND DOWNLOADING FILES"
20020 msgstr ""
20021
20022 #. type: textblock
20023 #: ../fish/guestfish.pod:882
20024 msgid ""
20025 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20026 "others which upload from or download to a local file, you can use the "
20027 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20028 msgstr ""
20029
20030 #. type: verbatim
20031 #: ../fish/guestfish.pod:886
20032 #, no-wrap
20033 msgid ""
20034 " upload - /foo\n"
20035 "\n"
20036 msgstr ""
20037
20038 #. type: textblock
20039 #: ../fish/guestfish.pod:888
20040 msgid ""
20041 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20042 msgstr ""
20043
20044 #. type: verbatim
20045 #: ../fish/guestfish.pod:891
20046 #, no-wrap
20047 msgid ""
20048 " tar-out /etc - | tar tf -\n"
20049 "\n"
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../fish/guestfish.pod:893
20054 msgid ""
20055 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20056 "command (see L</PIPES>)."
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish.pod:896
20061 msgid ""
20062 "When using C<-> to read from stdin, the input is read up to the end of "
20063 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20064 "some arbitrary end marker:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fish/guestfish.pod:900
20069 #, no-wrap
20070 msgid ""
20071 " upload -<<END /foo\n"
20072 " input line 1\n"
20073 " input line 2\n"
20074 " input line 3\n"
20075 " END\n"
20076 "\n"
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fish/guestfish.pod:906
20081 msgid ""
20082 "Any string of characters can be used instead of C<END>.  The end marker must"
20083 " appear on a line of its own, without any preceeding or following characters"
20084 " (not even spaces)."
20085 msgstr ""
20086
20087 #. type: textblock
20088 #: ../fish/guestfish.pod:910
20089 msgid ""
20090 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20091 "upload local files (so-called \"FileIn\" parameters in the generator)."
20092 msgstr ""
20093
20094 #. type: =head1
20095 #: ../fish/guestfish.pod:913
20096 msgid "EXIT ON ERROR BEHAVIOUR"
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../fish/guestfish.pod:915
20101 msgid ""
20102 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20103 "taking commands from a human over a tty), and will exit on the first error "
20104 "in non-interactive mode (scripts, commands given on the command line)."
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/guestfish.pod:920
20109 msgid ""
20110 "If you prefix a command with a I<-> character, then that command will not "
20111 "cause guestfish to exit, even if that (one) command returns an error."
20112 msgstr ""
20113
20114 #. type: =head1
20115 #: ../fish/guestfish.pod:924
20116 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20117 msgstr ""
20118
20119 #. type: textblock
20120 #: ../fish/guestfish.pod:926
20121 msgid ""
20122 "Guestfish can be remote-controlled over a socket.  This is useful "
20123 "particularly in shell scripts where you want to make several different "
20124 "changes to a filesystem, but you don't want the overhead of starting up a "
20125 "guestfish process each time."
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fish/guestfish.pod:931
20130 msgid "Start a guestfish server process using:"
20131 msgstr ""
20132
20133 #. type: verbatim
20134 #: ../fish/guestfish.pod:933
20135 #, no-wrap
20136 msgid ""
20137 " eval \"`guestfish --listen`\"\n"
20138 "\n"
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fish/guestfish.pod:935
20143 msgid "and then send it commands by doing:"
20144 msgstr ""
20145
20146 #. type: verbatim
20147 #: ../fish/guestfish.pod:937
20148 #, no-wrap
20149 msgid ""
20150 " guestfish --remote cmd [...]\n"
20151 "\n"
20152 msgstr ""
20153
20154 #. type: textblock
20155 #: ../fish/guestfish.pod:939
20156 msgid "To cause the server to exit, send it the exit command:"
20157 msgstr ""
20158
20159 #. type: textblock
20160 #: ../fish/guestfish.pod:943
20161 msgid ""
20162 "Note that the server will normally exit if there is an error in a command.  "
20163 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20164 "BEHAVIOUR>."
20165 msgstr ""
20166
20167 #. type: =head2
20168 #: ../fish/guestfish.pod:947
20169 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20170 msgstr ""
20171
20172 #. type: textblock
20173 #: ../fish/guestfish.pod:949
20174 msgid ""
20175 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which"
20176 " is how the I<--remote> option knows where to send the commands.  You can "
20177 "have several guestfish listener processes running using:"
20178 msgstr ""
20179
20180 #. type: verbatim
20181 #: ../fish/guestfish.pod:953
20182 #, no-wrap
20183 msgid ""
20184 " eval \"`guestfish --listen`\"\n"
20185 " pid1=$GUESTFISH_PID\n"
20186 " eval \"`guestfish --listen`\"\n"
20187 " pid2=$GUESTFISH_PID\n"
20188 " ...\n"
20189 " guestfish --remote=$pid1 cmd\n"
20190 " guestfish --remote=$pid2 cmd\n"
20191 "\n"
20192 msgstr ""
20193
20194 #. type: =head2
20195 #: ../fish/guestfish.pod:961
20196 msgid "REMOTE CONTROL AND CSH"
20197 msgstr ""
20198
20199 #. type: textblock
20200 #: ../fish/guestfish.pod:963
20201 msgid ""
20202 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20203 "option:"
20204 msgstr ""
20205
20206 #. type: verbatim
20207 #: ../fish/guestfish.pod:966
20208 #, no-wrap
20209 msgid ""
20210 " eval \"`guestfish --listen --csh`\"\n"
20211 "\n"
20212 msgstr ""
20213
20214 #. type: =head2
20215 #: ../fish/guestfish.pod:968
20216 msgid "REMOTE CONTROL DETAILS"
20217 msgstr ""
20218
20219 #. type: textblock
20220 #: ../fish/guestfish.pod:970
20221 msgid ""
20222 "Remote control happens over a Unix domain socket called "
20223 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20224 "of the process, and C<$PID> is the process ID of the server."
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:974
20229 msgid "Guestfish client and server versions must match exactly."
20230 msgstr ""
20231
20232 #. type: =head2
20233 #: ../fish/guestfish.pod:976
20234 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:978
20239 msgid ""
20240 "From Bash, you can use the following code which creates a guestfish "
20241 "instance, correctly quotes the command line, handles failure to start, and "
20242 "cleans up guestfish when the script exits:"
20243 msgstr ""
20244
20245 #. type: verbatim
20246 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20247 #, no-wrap
20248 msgid ""
20249 " #!/bin/bash -\n"
20250 " \n"
20251 msgstr ""
20252
20253 #. type: verbatim
20254 #: ../fish/guestfish.pod:986
20255 #, no-wrap
20256 msgid ""
20257 " guestfish[0]=\"guestfish\"\n"
20258 " guestfish[1]=\"--listen\"\n"
20259 " guestfish[2]=\"--ro\"\n"
20260 " guestfish[3]=\"-a\"\n"
20261 " guestfish[4]=\"disk.img\"\n"
20262 " \n"
20263 msgstr ""
20264
20265 #. type: verbatim
20266 #: ../fish/guestfish.pod:992
20267 #, no-wrap
20268 msgid ""
20269 " GUESTFISH_PID=\n"
20270 " eval $(\"${guestfish[@]}\")\n"
20271 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20272 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20273 "     exit 1\n"
20274 " fi\n"
20275 " \n"
20276 msgstr ""
20277
20278 #. type: verbatim
20279 #: ../fish/guestfish.pod:999
20280 #, no-wrap
20281 msgid ""
20282 " cleanup_guestfish ()\n"
20283 " {\n"
20284 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20285 " }\n"
20286 " trap cleanup_guestfish EXIT ERR\n"
20287 " \n"
20288 msgstr ""
20289
20290 #. type: verbatim
20291 #: ../fish/guestfish.pod:1005
20292 #, no-wrap
20293 msgid ""
20294 " guestfish --remote -- run\n"
20295 " \n"
20296 msgstr ""
20297
20298 #. type: verbatim
20299 #: ../fish/guestfish.pod:1007
20300 #, no-wrap
20301 msgid ""
20302 " # ...\n"
20303 "\n"
20304 msgstr ""
20305
20306 #. type: =head2
20307 #: ../fish/guestfish.pod:1009
20308 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../fish/guestfish.pod:1011
20313 msgid ""
20314 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20315 "context hangs, ie. don't do (note the backquotes):"
20316 msgstr ""
20317
20318 #. type: verbatim
20319 #: ../fish/guestfish.pod:1014
20320 #, no-wrap
20321 msgid ""
20322 " a=`guestfish --remote run`\n"
20323 "\n"
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../fish/guestfish.pod:1016
20328 msgid ""
20329 "Since the C<run> command produces no output on stdout, this is not useful "
20330 "anyway.  For further information see "
20331 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20332 msgstr ""
20333
20334 #. type: =head1
20335 #: ../fish/guestfish.pod:1020
20336 msgid "PREPARED DISK IMAGES"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../fish/guestfish.pod:1022
20341 msgid ""
20342 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20343 "preformatted disk images that guestfish can make for you to save typing.  "
20344 "This is particularly useful for testing purposes.  This option is used "
20345 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20346 "can be mixed with I<-a>)."
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fish/guestfish.pod:1028
20351 msgid ""
20352 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20353 "the second and so on.  Existing files in the current directory are "
20354 "I<overwritten>."
20355 msgstr ""
20356
20357 #. type: textblock
20358 #: ../fish/guestfish.pod:1032
20359 msgid ""
20360 "The type briefly describes how the disk should be sized, partitioned, how "
20361 "filesystem(s) should be created, and how content should be added.  "
20362 "Optionally the type can be followed by extra parameters, separated by C<:> "
20363 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20364 "sparsely-allocated disk, containing a single partition, with the partition "
20365 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem"
20366 " on a 1GB disk instead."
20367 msgstr ""
20368
20369 #. type: textblock
20370 #: ../fish/guestfish.pod:1040
20371 msgid "To list the available types and any extra parameters they take, run:"
20372 msgstr ""
20373
20374 #. type: textblock
20375 #: ../fish/guestfish.pod:1044
20376 msgid ""
20377 "Note that the prepared filesystem is not mounted.  You would usually have to"
20378 " use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../fish/guestfish.pod:1048
20383 msgid ""
20384 "If any I<-N> or I<--new> options are given, the guest is automatically "
20385 "launched."
20386 msgstr ""
20387
20388 #. type: textblock
20389 #: ../fish/guestfish.pod:1053
20390 msgid "Create a 100MB disk with an ext4-formatted partition:"
20391 msgstr ""
20392
20393 #. type: verbatim
20394 #: ../fish/guestfish.pod:1055
20395 #, no-wrap
20396 msgid ""
20397 " guestfish -N fs:ext4\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: textblock
20402 #: ../fish/guestfish.pod:1057
20403 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20404 msgstr ""
20405
20406 #. type: verbatim
20407 #: ../fish/guestfish.pod:1059
20408 #, no-wrap
20409 msgid ""
20410 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20411 "\n"
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../fish/guestfish.pod:1061
20416 msgid "Create a blank 200MB disk:"
20417 msgstr ""
20418
20419 #. type: verbatim
20420 #: ../fish/guestfish.pod:1063
20421 #, no-wrap
20422 msgid ""
20423 " guestfish -N disk:200M\n"
20424 "\n"
20425 msgstr ""
20426
20427 #. type: =head1
20428 #: ../fish/guestfish.pod:1065
20429 msgid "PROGRESS BARS"
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:1067
20434 msgid ""
20435 "Some (not all) long-running commands send progress notification messages as "
20436 "they are running.  Guestfish turns these messages into progress bars."
20437 msgstr ""
20438
20439 #. type: textblock
20440 #: ../fish/guestfish.pod:1071
20441 msgid ""
20442 "When a command that supports progress bars takes longer than two seconds to "
20443 "run, and if progress bars are enabled, then you will see one appearing below"
20444 " the command:"
20445 msgstr ""
20446
20447 #. type: verbatim
20448 #: ../fish/guestfish.pod:1075
20449 #, no-wrap
20450 msgid ""
20451 " ><fs> copy-size /large-file /another-file 2048M\n"
20452 " / 10% [#####-----------------------------------------] 00:30\n"
20453 "\n"
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../fish/guestfish.pod:1078
20458 msgid ""
20459 "The spinner on the left hand side moves round once for every progress "
20460 "notification received from the backend.  This is a (reasonably) golden "
20461 "assurance that the command is \"doing something\" even if the progress bar "
20462 "is not moving, because the command is able to send the progress "
20463 "notifications.  When the bar reaches 100% and the command finishes, the "
20464 "spinner disappears."
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../fish/guestfish.pod:1085
20469 msgid ""
20470 "Progress bars are enabled by default when guestfish is used interactively.  "
20471 "You can enable them even for non-interactive modes using I<--progress-bars>,"
20472 " and you can disable them completely using I<--no-progress-bars>."
20473 msgstr ""
20474
20475 #. type: =head1
20476 #: ../fish/guestfish.pod:1090
20477 msgid "GUESTFISH COMMANDS"
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:1092
20482 msgid ""
20483 "The commands in this section are guestfish convenience commands, in other "
20484 "words, they are not part of the L<guestfs(3)> API."
20485 msgstr ""
20486
20487 #. type: =head2
20488 #: ../fish/guestfish.pod:1095
20489 msgid "help"
20490 msgstr ""
20491
20492 #. type: verbatim
20493 #: ../fish/guestfish.pod:1097
20494 #, no-wrap
20495 msgid ""
20496 " help\n"
20497 " help cmd\n"
20498 "\n"
20499 msgstr ""
20500
20501 #. type: textblock
20502 #: ../fish/guestfish.pod:1100
20503 msgid "Without any parameter, this provides general help."
20504 msgstr ""
20505
20506 #. type: textblock
20507 #: ../fish/guestfish.pod:1102
20508 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20509 msgstr ""
20510
20511 #. type: =head2
20512 #: ../fish/guestfish.pod:1104
20513 msgid "quit | exit"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fish/guestfish.pod:1106
20518 msgid "This exits guestfish.  You can also use C<^D> key."
20519 msgstr ""
20520
20521 #. type: textblock
20522 #: ../fish/guestfish.pod:1108
20523 msgid "@FISH_COMMANDS@"
20524 msgstr ""
20525
20526 #. type: =head1
20527 #: ../fish/guestfish.pod:1110
20528 msgid "COMMANDS"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20533 msgid "@ACTIONS@"
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../fish/guestfish.pod:1116
20538 msgid ""
20539 "guestfish returns 0 if the commands completed without error, or 1 if there "
20540 "was an error."
20541 msgstr ""
20542
20543 #. type: =item
20544 #: ../fish/guestfish.pod:1123
20545 msgid "EDITOR"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fish/guestfish.pod:1125
20550 msgid ""
20551 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20552 "C<vi>."
20553 msgstr ""
20554
20555 #. type: =item
20556 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20557 msgid "FEBOOTSTRAP_KERNEL"
20558 msgstr ""
20559
20560 #. type: =item
20561 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20562 msgid "FEBOOTSTRAP_MODULES"
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20567 msgid ""
20568 "These two environment variables allow the kernel that libguestfs uses in the"
20569 " appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20570 "most recent host kernel is chosen.  For more information about kernel "
20571 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20572 "available in febootstrap E<ge> 3.8."
20573 msgstr ""
20574
20575 #. type: =item
20576 #: ../fish/guestfish.pod:1138
20577 msgid "GUESTFISH_DISPLAY_IMAGE"
20578 msgstr ""
20579
20580 #. type: textblock
20581 #: ../fish/guestfish.pod:1140
20582 msgid ""
20583 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20584 "If not set, it uses L<display(1)>."
20585 msgstr ""
20586
20587 #. type: =item
20588 #: ../fish/guestfish.pod:1143
20589 msgid "GUESTFISH_PID"
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fish/guestfish.pod:1145
20594 msgid ""
20595 "Used with the I<--remote> option to specify the remote guestfish process to "
20596 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20597 msgstr ""
20598
20599 #. type: =item
20600 #: ../fish/guestfish.pod:1149
20601 msgid "HEXEDITOR"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:1151
20606 msgid ""
20607 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20608 "not specified, the external L<hexedit(1)> program is used."
20609 msgstr ""
20610
20611 #. type: =item
20612 #: ../fish/guestfish.pod:1155
20613 msgid "HOME"
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../fish/guestfish.pod:1157
20618 msgid ""
20619 "If compiled with GNU readline support, various files in the home directory "
20620 "can be used.  See L</FILES>."
20621 msgstr ""
20622
20623 #. type: =item
20624 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20625 msgid "LIBGUESTFS_APPEND"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20630 msgid "Pass additional options to the guest kernel."
20631 msgstr ""
20632
20633 #. type: =item
20634 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20635 msgid "LIBGUESTFS_DEBUG"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../fish/guestfish.pod:1166
20640 msgid ""
20641 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20642 "effect as using the B<-v> option."
20643 msgstr ""
20644
20645 #. type: =item
20646 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20647 msgid "LIBGUESTFS_MEMSIZE"
20648 msgstr ""
20649
20650 #. type: textblock
20651 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20652 msgid ""
20653 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20654 msgstr ""
20655
20656 #. type: verbatim
20657 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20658 #, no-wrap
20659 msgid ""
20660 " LIBGUESTFS_MEMSIZE=700\n"
20661 "\n"
20662 msgstr ""
20663
20664 #. type: =item
20665 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20666 msgid "LIBGUESTFS_PATH"
20667 msgstr ""
20668
20669 #. type: textblock
20670 #: ../fish/guestfish.pod:1178
20671 msgid ""
20672 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20673 "the discussion of paths in L<guestfs(3)>."
20674 msgstr ""
20675
20676 #. type: =item
20677 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20678 msgid "LIBGUESTFS_QEMU"
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20683 msgid ""
20684 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu"
20685 " which was found at compile time by the configure script is used."
20686 msgstr ""
20687
20688 #. type: =item
20689 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20690 msgid "LIBGUESTFS_TRACE"
20691 msgstr ""
20692
20693 #. type: textblock
20694 #: ../fish/guestfish.pod:1189
20695 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20696 msgstr ""
20697
20698 #. type: =item
20699 #: ../fish/guestfish.pod:1191
20700 msgid "PAGER"
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../fish/guestfish.pod:1193
20705 msgid ""
20706 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20707 "C<more>."
20708 msgstr ""
20709
20710 #. type: =item
20711 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20712 #: ../src/guestfs.pod:3257
20713 msgid "TMPDIR"
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20718 msgid ""
20719 "Location of temporary directory, defaults to C</tmp> except for the cached "
20720 "supermin appliance which defaults to C</var/tmp>."
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20725 msgid ""
20726 "If libguestfs was compiled to use the supermin appliance then the real "
20727 "appliance is cached in this directory, shared between all handles belonging "
20728 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20729 "use in case C</var/tmp> is not large enough."
20730 msgstr ""
20731
20732 #. type: =head1
20733 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20734 #: ../rescue/virt-rescue.pod:273
20735 msgid "FILES"
20736 msgstr ""
20737
20738 #. type: =item
20739 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20740 #: ../rescue/virt-rescue.pod:277
20741 msgid "$HOME/.libguestfs-tools.rc"
20742 msgstr ""
20743
20744 #. type: =item
20745 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20746 #: ../rescue/virt-rescue.pod:279
20747 msgid "/etc/libguestfs-tools.conf"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20752 #: ../rescue/virt-rescue.pod:281
20753 msgid ""
20754 "This configuration file controls the default read-only or read-write mode "
20755 "(I<--ro> or I<--rw>)."
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../fish/guestfish.pod:1220
20760 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20761 msgstr ""
20762
20763 #. type: =item
20764 #: ../fish/guestfish.pod:1222
20765 msgid "$HOME/.guestfish"
20766 msgstr ""
20767
20768 #. type: textblock
20769 #: ../fish/guestfish.pod:1224
20770 msgid ""
20771 "If compiled with GNU readline support, then the command history is saved in "
20772 "this file."
20773 msgstr ""
20774
20775 #. type: =item
20776 #: ../fish/guestfish.pod:1227
20777 msgid "$HOME/.inputrc"
20778 msgstr ""
20779
20780 #. type: =item
20781 #: ../fish/guestfish.pod:1229
20782 msgid "/etc/inputrc"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:1231
20787 msgid ""
20788 "If compiled with GNU readline support, then these files can be used to "
20789 "configure readline.  For further information, please see "
20790 "L<readline(3)/INITIALIZATION FILE>."
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:1235
20795 msgid "To write rules which only apply to guestfish, use:"
20796 msgstr ""
20797
20798 #. type: verbatim
20799 #: ../fish/guestfish.pod:1237
20800 #, no-wrap
20801 msgid ""
20802 " $if guestfish\n"
20803 " ...\n"
20804 " $endif\n"
20805 "\n"
20806 msgstr ""
20807
20808 #. type: textblock
20809 #: ../fish/guestfish.pod:1241
20810 msgid ""
20811 "Variables that you can set in inputrc that change the behaviour of guestfish"
20812 " in useful ways include:"
20813 msgstr ""
20814
20815 #. type: =item
20816 #: ../fish/guestfish.pod:1246
20817 msgid "completion-ignore-case (default: on)"
20818 msgstr ""
20819
20820 #. type: textblock
20821 #: ../fish/guestfish.pod:1248
20822 msgid ""
20823 "By default, guestfish will ignore case when tab-completing paths on the "
20824 "disk.  Use:"
20825 msgstr ""
20826
20827 #. type: verbatim
20828 #: ../fish/guestfish.pod:1251
20829 #, no-wrap
20830 msgid ""
20831 " set completion-ignore-case off\n"
20832 "\n"
20833 msgstr ""
20834
20835 #. type: textblock
20836 #: ../fish/guestfish.pod:1253
20837 msgid "to make guestfish case sensitive."
20838 msgstr ""
20839
20840 #. type: =item
20841 #: ../fish/guestfish.pod:1257
20842 msgid "test1.img"
20843 msgstr ""
20844
20845 #. type: =item
20846 #: ../fish/guestfish.pod:1259
20847 msgid "test2.img (etc)"
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fish/guestfish.pod:1261
20852 msgid ""
20853 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20854 "will be created in the file C<test1.img> in the current directory.  The "
20855 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with"
20856 " the same name will be overwritten."
20857 msgstr ""
20858
20859 #. type: textblock
20860 #: ../fish/guestfish.pod:1270
20861 msgid ""
20862 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20863 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-"
20864 "edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
20865 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-"
20866 "fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-"
20867 "sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-"
20868 "win-reg(1)>, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-"
20869 "helper(8)>."
20870 msgstr ""
20871
20872 #. type: textblock
20873 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
20874 #: ../test-tool/libguestfs-test-tool.pod:112
20875 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20876 msgstr ""
20877
20878 #. type: textblock
20879 #: ../fish/virt-copy-in.pod:5
20880 msgid ""
20881 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20882 msgstr ""
20883
20884 #. type: verbatim
20885 #: ../fish/virt-copy-in.pod:9
20886 #, no-wrap
20887 msgid ""
20888 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20889 "\n"
20890 msgstr ""
20891
20892 #. type: verbatim
20893 #: ../fish/virt-copy-in.pod:11
20894 #, no-wrap
20895 msgid ""
20896 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20897 "\n"
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../fish/virt-copy-in.pod:15
20902 msgid ""
20903 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially"
20904 " causing disk corruption.  The virtual machine must be shut down before you "
20905 "use this command."
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../fish/virt-copy-in.pod:21
20910 msgid ""
20911 "C<virt-copy-in> copies files and directories from the local disk into a "
20912 "virtual machine disk image or named libvirt domain."
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../fish/virt-copy-in.pod:24
20917 msgid ""
20918 "You can give one of more filenames and directories on the command line.  "
20919 "Directories are copied in recursively.  The final parameter must be the "
20920 "destination directory in the disk image which must be an absolute path "
20921 "starting with a C</> character."
20922 msgstr ""
20923
20924 #. type: verbatim
20925 #: ../fish/virt-copy-in.pod:33
20926 #, no-wrap
20927 msgid ""
20928 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20929 "\n"
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20934 msgid "Upload a home directory to a guest:"
20935 msgstr ""
20936
20937 #. type: verbatim
20938 #: ../fish/virt-copy-in.pod:37
20939 #, no-wrap
20940 msgid ""
20941 " virt-copy-in -d MyGuest skel /home\n"
20942 "\n"
20943 msgstr ""
20944
20945 #. type: =head1
20946 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20947 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20948 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20949 msgstr ""
20950
20951 #. type: textblock
20952 #: ../fish/virt-copy-in.pod:41
20953 msgid ""
20954 "This command is just a simple shell script wrapper around the "
20955 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
20956 "trivial copy, you are probably better off using guestfish directly."
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20961 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20962 msgid ""
20963 "Since the shell script just passes options straight to guestfish, read "
20964 "L<guestfish(1)> to see the full list of options."
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../fish/virt-copy-in.pod:52
20969 msgid ""
20970 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L"
20971 "<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20976 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20977 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20978 msgstr ""
20979
20980 #. type: textblock
20981 #: ../fish/virt-copy-out.pod:5
20982 msgid ""
20983 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20984 "image."
20985 msgstr ""
20986
20987 #. type: verbatim
20988 #: ../fish/virt-copy-out.pod:9
20989 #, no-wrap
20990 msgid ""
20991 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20992 "\n"
20993 msgstr ""
20994
20995 #. type: verbatim
20996 #: ../fish/virt-copy-out.pod:11
20997 #, no-wrap
20998 msgid ""
20999 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21000 "\n"
21001 msgstr ""
21002
21003 #. type: textblock
21004 #: ../fish/virt-copy-out.pod:15
21005 msgid ""
21006 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21007 "image or named libvirt domain."
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/virt-copy-out.pod:18
21012 msgid ""
21013 "You can give one of more filenames and directories on the command line.  "
21014 "Directories are copied out recursively."
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fish/virt-copy-out.pod:23
21019 msgid "Download the home directories from a virtual machine:"
21020 msgstr ""
21021
21022 #. type: verbatim
21023 #: ../fish/virt-copy-out.pod:25
21024 #, no-wrap
21025 msgid ""
21026 " mkdir homes\n"
21027 " virt-copy-out -d MyGuest /home homes\n"
21028 "\n"
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../fish/virt-copy-out.pod:30
21033 msgid ""
21034 "This command is just a simple shell script wrapper around the "
21035 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21036 "trivial copy, you are probably better off using guestfish directly."
21037 msgstr ""
21038
21039 #. type: textblock
21040 #: ../fish/virt-copy-out.pod:41
21041 msgid ""
21042 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L"
21043 "<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../fish/virt-tar-in.pod:5
21048 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21049 msgstr ""
21050
21051 #. type: verbatim
21052 #: ../fish/virt-tar-in.pod:9
21053 #, no-wrap
21054 msgid ""
21055 " virt-tar-in -a disk.img data.tar /destination\n"
21056 "\n"
21057 msgstr ""
21058
21059 #. type: verbatim
21060 #: ../fish/virt-tar-in.pod:11
21061 #, no-wrap
21062 msgid ""
21063 " virt-tar-in -d domain data.tar /destination\n"
21064 "\n"
21065 msgstr ""
21066
21067 #. type: verbatim
21068 #: ../fish/virt-tar-in.pod:13
21069 #, no-wrap
21070 msgid ""
21071 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21072 "\n"
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../fish/virt-tar-in.pod:17
21077 msgid ""
21078 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21079 "causing disk corruption.  The virtual machine must be shut down before you "
21080 "use this command."
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../fish/virt-tar-in.pod:23
21085 msgid ""
21086 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21087 "image or named libvirt domain."
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../fish/virt-tar-in.pod:26
21092 msgid ""
21093 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21094 "standard input.  The second parameter is the absolute target directory to "
21095 "unpack into."
21096 msgstr ""
21097
21098 #. type: verbatim
21099 #: ../fish/virt-tar-in.pod:34
21100 #, no-wrap
21101 msgid ""
21102 " virt-tar-in -d MyGuest homes.tar /home\n"
21103 "\n"
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../fish/virt-tar-in.pod:38
21108 msgid ""
21109 "This command is just a simple shell script wrapper around the "
21110 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial"
21111 " copy, you are probably better off using guestfish directly."
21112 msgstr ""
21113
21114 #. type: textblock
21115 #: ../fish/virt-tar-in.pod:49
21116 msgid ""
21117 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L"
21118 "<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21119 "L<http://libguestfs.org/>."
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../fish/virt-tar-out.pod:5
21124 msgid ""
21125 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21126 msgstr ""
21127
21128 #. type: verbatim
21129 #: ../fish/virt-tar-out.pod:9
21130 #, no-wrap
21131 msgid ""
21132 " virt-tar-out -a disk.img /dir files.tar\n"
21133 "\n"
21134 msgstr ""
21135
21136 #. type: verbatim
21137 #: ../fish/virt-tar-out.pod:11
21138 #, no-wrap
21139 msgid ""
21140 " virt-tar-out -d domain /dir files.tar\n"
21141 "\n"
21142 msgstr ""
21143
21144 #. type: verbatim
21145 #: ../fish/virt-tar-out.pod:13
21146 #, no-wrap
21147 msgid ""
21148 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21149 "\n"
21150 msgstr ""
21151
21152 #. type: textblock
21153 #: ../fish/virt-tar-out.pod:17
21154 msgid ""
21155 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../fish/virt-tar-out.pod:20
21160 msgid ""
21161 "The first parameter is the absolute path of the virtual machine directory.  "
21162 "The second parameter is the tar file to write.  Use C<-> to write to "
21163 "standard output."
21164 msgstr ""
21165
21166 #. type: textblock
21167 #: ../fish/virt-tar-out.pod:26
21168 msgid "Download the home directories from a guest:"
21169 msgstr ""
21170
21171 #. type: verbatim
21172 #: ../fish/virt-tar-out.pod:28
21173 #, no-wrap
21174 msgid ""
21175 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21176 "\n"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../fish/virt-tar-out.pod:32
21181 msgid ""
21182 "This command is just a simple shell script wrapper around the "
21183 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21184 "trivial copy, you are probably better off using guestfish directly."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fish/virt-tar-out.pod:43
21189 msgid ""
21190 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L"
21191 "<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21192 msgstr ""
21193
21194 #. type: textblock
21195 #: ../fuse/guestmount.pod:5
21196 msgid ""
21197 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21198 msgstr ""
21199
21200 #. type: verbatim
21201 #: ../fuse/guestmount.pod:9
21202 #, no-wrap
21203 msgid ""
21204 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21205 "\n"
21206 msgstr ""
21207
21208 #. type: verbatim
21209 #: ../fuse/guestmount.pod:11
21210 #, no-wrap
21211 msgid ""
21212 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21213 "\n"
21214 msgstr ""
21215
21216 #. type: verbatim
21217 #: ../fuse/guestmount.pod:13
21218 #, no-wrap
21219 msgid ""
21220 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21221 "\n"
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../fuse/guestmount.pod:17
21226 msgid ""
21227 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21228 "machines.  If you do this, you risk disk corruption in the VM."
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../fuse/guestmount.pod:22
21233 msgid ""
21234 "The guestmount program can be used to mount virtual machine filesystems and "
21235 "other disk images on the host.  It uses libguestfs for access to the guest "
21236 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21237 "a mountable device."
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../fuse/guestmount.pod:27
21242 msgid ""
21243 "Along with other options, you have to give at least one device (I<-a> "
21244 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m>"
21245 " option) or use the I<-i> inspection option or the I<--live> option.  How "
21246 "this works is better explained in the L<guestfish(1)> manual page, or by "
21247 "looking at the examples below."
21248 msgstr ""
21249
21250 #. type: textblock
21251 #: ../fuse/guestmount.pod:33
21252 msgid ""
21253 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21254 "by you, and the filesystem will not be visible to any other users unless you"
21255 " make certain global configuration changes to C</etc/fuse.conf>.  To unmount"
21256 " the filesystem, use the C<fusermount -u> command."
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../fuse/guestmount.pod:41
21261 msgid ""
21262 "For a typical Windows guest which has its main filesystem on the first "
21263 "partition:"
21264 msgstr ""
21265
21266 #. type: verbatim
21267 #: ../fuse/guestmount.pod:44
21268 #, no-wrap
21269 msgid ""
21270 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21271 "\n"
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../fuse/guestmount.pod:46
21276 msgid ""
21277 "For a typical Linux guest which has a /boot filesystem on the first "
21278 "partition, and the root filesystem on a logical volume:"
21279 msgstr ""
21280
21281 #. type: verbatim
21282 #: ../fuse/guestmount.pod:49
21283 #, no-wrap
21284 msgid ""
21285 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21286 "\n"
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../fuse/guestmount.pod:51
21291 msgid "To get libguestfs to detect guest mountpoints for you:"
21292 msgstr ""
21293
21294 #. type: verbatim
21295 #: ../fuse/guestmount.pod:53
21296 #, no-wrap
21297 msgid ""
21298 " guestmount -a guest.img -i --ro /mnt\n"
21299 "\n"
21300 msgstr ""
21301
21302 #. type: textblock
21303 #: ../fuse/guestmount.pod:55
21304 msgid "For a libvirt guest called \"Guest\" you could do:"
21305 msgstr ""
21306
21307 #. type: verbatim
21308 #: ../fuse/guestmount.pod:57
21309 #, no-wrap
21310 msgid ""
21311 " guestmount -d Guest -i --ro /mnt\n"
21312 "\n"
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../fuse/guestmount.pod:59
21317 msgid ""
21318 "If you don't know what filesystems are contained in a guest or disk image, "
21319 "use L<virt-filesystems(1)> first:"
21320 msgstr ""
21321
21322 #. type: verbatim
21323 #: ../fuse/guestmount.pod:62
21324 #, no-wrap
21325 msgid ""
21326 " virt-filesystems MyGuest\n"
21327 "\n"
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../fuse/guestmount.pod:64
21332 msgid ""
21333 "If you want to trace the libguestfs calls but without excessive debugging "
21334 "information, we recommend:"
21335 msgstr ""
21336
21337 #. type: verbatim
21338 #: ../fuse/guestmount.pod:67
21339 #, no-wrap
21340 msgid ""
21341 " guestmount [...] --trace /mnt\n"
21342 "\n"
21343 msgstr ""
21344
21345 #. type: textblock
21346 #: ../fuse/guestmount.pod:69
21347 msgid "If you want to debug the program, we recommend:"
21348 msgstr ""
21349
21350 #. type: verbatim
21351 #: ../fuse/guestmount.pod:71
21352 #, no-wrap
21353 msgid ""
21354 " guestmount [...] --trace --verbose /mnt\n"
21355 "\n"
21356 msgstr ""
21357
21358 #. type: =head1
21359 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21360 #: ../resize/virt-resize.pod:621
21361 msgid "NOTES"
21362 msgstr ""
21363
21364 #. type: =head2
21365 #: ../fuse/guestmount.pod:75
21366 msgid "Other users cannot see the filesystem by default"
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../fuse/guestmount.pod:77
21371 msgid ""
21372 "If you mount a filesystem as one user (eg. root), then other users will not "
21373 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21374 "option when mounting:"
21375 msgstr ""
21376
21377 #. type: verbatim
21378 #: ../fuse/guestmount.pod:81
21379 #, no-wrap
21380 msgid ""
21381 " sudo guestmount [...] -o allow_other /mnt\n"
21382 "\n"
21383 msgstr ""
21384
21385 #. type: =head2
21386 #: ../fuse/guestmount.pod:83
21387 msgid "Enabling FUSE"
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../fuse/guestmount.pod:85
21392 msgid ""
21393 "On some distros, you may need to add yourself to a special group (eg. "
21394 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21395 "Debian and derivatives."
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../fuse/guestmount.pod:89
21400 msgid ""
21401 "On other distros, no special group is required.  It is not necessary on "
21402 "Fedora or Red Hat Enterprise Linux."
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../fuse/guestmount.pod:100
21407 msgid "Add a block device or virtual machine image."
21408 msgstr ""
21409
21410 #. type: =item
21411 #: ../fuse/guestmount.pod:123
21412 msgid "B<--dir-cache-timeout N>"
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../fuse/guestmount.pod:125
21417 msgid ""
21418 "Set the readdir cache timeout to I<N> seconds, the default being 60 seconds."
21419 "  The readdir cache [actually, there are several semi-independent caches] is"
21420 " populated after a readdir(2) call with the stat and extended attributes of "
21421 "the files in the directory, in anticipation that they will be requested soon"
21422 " after."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../fuse/guestmount.pod:131
21427 msgid ""
21428 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21429 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21430 "requests, only cache existing ones."
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../fuse/guestmount.pod:151
21435 msgid ""
21436 "If you have untrusted raw-format guest disk images, you should use this "
21437 "option to specify the disk format.  This avoids a possible security problem "
21438 "with malicious guests (CVE-2010-3851).  See also "
21439 "L<guestfs(3)/guestfs_add_drive_opts>."
21440 msgstr ""
21441
21442 #. type: =item
21443 #: ../fuse/guestmount.pod:156
21444 msgid "B<--fuse-help>"
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../fuse/guestmount.pod:158
21449 msgid "Display help on special FUSE options (see I<-o> below)."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../fuse/guestmount.pod:162
21454 msgid "Display brief help and exit."
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../fuse/guestmount.pod:186
21459 msgid ""
21460 "Mount the named partition or logical volume on the given mountpoint B<in the"
21461 " guest> (this has nothing to do with mountpoints in the host)."
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../fuse/guestmount.pod:189
21466 msgid ""
21467 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21468 "something on C</>."
21469 msgstr ""
21470
21471 #. type: textblock
21472 #: ../fuse/guestmount.pod:206
21473 msgid ""
21474 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21475 "unmounted.  If you specify this option, then we don't attempt to sync the "
21476 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21477 msgstr ""
21478
21479 #. type: =item
21480 #: ../fuse/guestmount.pod:211
21481 msgid "B<-o option>"
21482 msgstr ""
21483
21484 #. type: =item
21485 #: ../fuse/guestmount.pod:213
21486 msgid "B<--option option>"
21487 msgstr ""
21488
21489 #. type: textblock
21490 #: ../fuse/guestmount.pod:215
21491 msgid "Pass extra options to FUSE."
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../fuse/guestmount.pod:217
21496 msgid ""
21497 "To get a list of all the extra options supported by FUSE, use the command "
21498 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21499 "of them are a good idea."
21500 msgstr ""
21501
21502 #. type: verbatim
21503 #: ../fuse/guestmount.pod:221
21504 #, no-wrap
21505 msgid ""
21506 " guestmount --fuse-help\n"
21507 "\n"
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../fuse/guestmount.pod:223
21512 msgid "Some potentially useful FUSE options:"
21513 msgstr ""
21514
21515 #. type: =item
21516 #: ../fuse/guestmount.pod:227
21517 msgid "B<-o allow_other>"
21518 msgstr ""
21519
21520 #. type: textblock
21521 #: ../fuse/guestmount.pod:229
21522 msgid "Allow other users to see the filesystem."
21523 msgstr ""
21524
21525 #. type: =item
21526 #: ../fuse/guestmount.pod:231
21527 msgid "B<-o attr_timeout=N>"
21528 msgstr ""
21529
21530 #. type: textblock
21531 #: ../fuse/guestmount.pod:233
21532 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21533 msgstr ""
21534
21535 #. type: =item
21536 #: ../fuse/guestmount.pod:235
21537 msgid "B<-o kernel_cache>"
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fuse/guestmount.pod:237
21542 msgid ""
21543 "Allow the kernel to cache files (reduces the number of reads that have to go"
21544 " through the L<guestfs(3)> API).  This is generally a good idea if you can "
21545 "afford the extra memory usage."
21546 msgstr ""
21547
21548 #. type: =item
21549 #: ../fuse/guestmount.pod:241
21550 msgid "B<-o uid=N> B<-o gid=N>"
21551 msgstr ""
21552
21553 #. type: textblock
21554 #: ../fuse/guestmount.pod:243
21555 msgid ""
21556 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21557 "the chosen values."
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../fuse/guestmount.pod:252
21562 msgid ""
21563 "Add devices and mount everything read-only.  Also disallow writes and make "
21564 "the disk appear read-only to FUSE."
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../fuse/guestmount.pod:255
21569 msgid ""
21570 "This is highly recommended if you are not going to edit the guest disk.  If "
21571 "the guest is running and this option is I<not> supplied, then there is a "
21572 "strong risk of disk corruption in the guest.  We try to prevent this from "
21573 "happening, but it is not always possible."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21578 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fuse/guestmount.pod:264
21583 msgid "Enable SELinux support for the guest."
21584 msgstr ""
21585
21586 #. type: textblock
21587 #: ../fuse/guestmount.pod:270
21588 msgid "Enable verbose messages from underlying libguestfs."
21589 msgstr ""
21590
21591 #. type: textblock
21592 #: ../fuse/guestmount.pod:276
21593 msgid "Display the program version and exit."
21594 msgstr ""
21595
21596 #. type: textblock
21597 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21598 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21599 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21600 msgstr ""
21601
21602 #. type: =item
21603 #: ../fuse/guestmount.pod:289
21604 msgid "B<--trace>"
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../fuse/guestmount.pod:291
21609 msgid "Trace libguestfs calls and entry into each FUSE function."
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../fuse/guestmount.pod:293
21614 msgid "This also stops the daemon from forking into the background."
21615 msgstr ""
21616
21617 #. type: textblock
21618 #: ../fuse/guestmount.pod:319
21619 msgid ""
21620 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L"
21621 "<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
21622 "L<http://fuse.sf.net/>."
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../fuse/guestmount.pod:334
21627 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21628 msgstr ""
21629
21630 #. type: textblock
21631 #: ../inspector/virt-inspector.pod:5
21632 msgid ""
21633 "virt-inspector - Display operating system version and other information "
21634 "about a virtual machine"
21635 msgstr ""
21636
21637 #. type: verbatim
21638 #: ../inspector/virt-inspector.pod:9
21639 #, no-wrap
21640 msgid ""
21641 " virt-inspector [--options] -d domname\n"
21642 "\n"
21643 msgstr ""
21644
21645 #. type: verbatim
21646 #: ../inspector/virt-inspector.pod:11
21647 #, no-wrap
21648 msgid ""
21649 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21650 "\n"
21651 msgstr ""
21652
21653 #. type: verbatim
21654 #: ../inspector/virt-inspector.pod:15
21655 #, no-wrap
21656 msgid ""
21657 " virt-inspector domname\n"
21658 "\n"
21659 msgstr ""
21660
21661 #. type: verbatim
21662 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21663 #, no-wrap
21664 msgid ""
21665 " virt-inspector disk.img [disk.img ...]\n"
21666 "\n"
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../inspector/virt-inspector.pod:21
21671 msgid ""
21672 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21673 "determine the version of the operating system and other information about "
21674 "the virtual machine."
21675 msgstr ""
21676
21677 #. type: textblock
21678 #: ../inspector/virt-inspector.pod:25
21679 msgid "Virt-inspector produces XML output for feeding into other programs."
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../inspector/virt-inspector.pod:27
21684 msgid ""
21685 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21686 "the libvirt domain (see: C<virsh list --all>)."
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../inspector/virt-inspector.pod:30
21691 msgid ""
21692 "You can also run virt-inspector directly on disk images from a single "
21693 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain"
21694 " has several block devices, in which case you should list several I<-a> "
21695 "options one after another, with the first corresponding to the guest's "
21696 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../inspector/virt-inspector.pod:37
21701 msgid ""
21702 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21703 "keys and similar."
21704 msgstr ""
21705
21706 #. type: textblock
21707 #: ../inspector/virt-inspector.pod:40
21708 msgid ""
21709 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To"
21710 " inspect several virtual machines, you have to run virt-inspector several "
21711 "times (for example, from a shell script for-loop)."
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../inspector/virt-inspector.pod:45
21716 msgid ""
21717 "Because virt-inspector needs direct access to guest images, it won't "
21718 "normally work over remote libvirt connections."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../inspector/virt-inspector.pod:48
21723 msgid ""
21724 "All of the information available from virt-inspector is also available "
21725 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21726 "The same information can also be fetched using guestfish or via libguestfs "
21727 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21728 "WITH OTHER PROGRAMMING LANGUAGES>)."
21729 msgstr ""
21730
21731 #. type: textblock
21732 #: ../inspector/virt-inspector.pod:81
21733 msgid ""
21734 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21735 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21736 "at all."
21737 msgstr ""
21738
21739 #. type: textblock
21740 #: ../inspector/virt-inspector.pod:94
21741 msgid ""
21742 "When prompting for keys and passphrases, virt-inspector normally turns "
21743 "echoing off so you cannot see what you are typing.  If you are not worried "
21744 "about Tempest attacks and there is no one else in the room you can specify "
21745 "this flag to see what you are typing."
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21750 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21751 #: ../tools/virt-win-reg.pl:144
21752 msgid ""
21753 "Specify the format of disk images given on the command line.  If this is "
21754 "omitted then the format is autodetected from the content of the disk image."
21755 msgstr ""
21756
21757 #. type: textblock
21758 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21759 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21760 #: ../tools/virt-win-reg.pl:148
21761 msgid ""
21762 "If disk images are requested from libvirt, then this program asks libvirt "
21763 "for this information.  In this case, the value of the format parameter is "
21764 "ignored."
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
21769 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
21770 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21771 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21772 msgid ""
21773 "If working with untrusted raw-format guest disk images, you should ensure "
21774 "the format is always specified."
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../inspector/virt-inspector.pod:139
21779 msgid "Previous versions of virt-inspector allowed you to write either:"
21780 msgstr ""
21781
21782 #. type: verbatim
21783 #: ../inspector/virt-inspector.pod:145
21784 #, no-wrap
21785 msgid ""
21786 " virt-inspector guestname\n"
21787 "\n"
21788 msgstr ""
21789
21790 #. type: =head1
21791 #: ../inspector/virt-inspector.pod:153
21792 msgid "XML FORMAT"
21793 msgstr ""
21794
21795 #. type: textblock
21796 #: ../inspector/virt-inspector.pod:155
21797 msgid ""
21798 "The virt-inspector XML is described precisely in a RELAX NG schema file C"
21799 "<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21800 "just an overview."
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../inspector/virt-inspector.pod:159
21805 msgid ""
21806 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21807 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21808 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21809 "which is vanishingly rare in real world VMs."
21810 msgstr ""
21811
21812 #. type: =head2
21813 #: ../inspector/virt-inspector.pod:164
21814 msgid "E<lt>operatingsystemE<gt>"
21815 msgstr ""
21816
21817 #. type: textblock
21818 #: ../inspector/virt-inspector.pod:166
21819 msgid ""
21820 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21821 "describe the operating system, its architecture, the descriptive \"product "
21822 "name\" string, the type of OS and so on, as in this example:"
21823 msgstr ""
21824
21825 #. type: verbatim
21826 #: ../inspector/virt-inspector.pod:170
21827 #, no-wrap
21828 msgid ""
21829 " <operatingsystems>\n"
21830 "   <operatingsystem>\n"
21831 "     <root>/dev/sda2</root>\n"
21832 "     <name>windows</name>\n"
21833 "     <arch>i386</arch>\n"
21834 "     <distro>windows</distro>\n"
21835 "     <product_name>Windows 7 Enterprise</product_name>\n"
21836 "     <product_variant>Client</product_variant>\n"
21837 "     <major_version>6</major_version>\n"
21838 "     <minor_version>1</minor_version>\n"
21839 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21840 "     <format>installed</format>\n"
21841 "\n"
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../inspector/virt-inspector.pod:183
21846 msgid ""
21847 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21848 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora>"
21849 " but many other distros are recognized) and E<lt>archE<gt> is the guest "
21850 "architecture.  The other fields are fairly self-explanatory, but because "
21851 "these fields are taken directly from the libguestfs inspection API you can "
21852 "find precise information from L<guestfs(3)/INSPECTION>."
21853 msgstr ""
21854
21855 #. type: textblock
21856 #: ../inspector/virt-inspector.pod:191
21857 msgid ""
21858 "The E<lt>rootE<gt> element is the root filesystem device, but from the point"
21859 " of view of libguestfs (block devices may have completely different names "
21860 "inside the VM itself)."
21861 msgstr ""
21862
21863 #. type: =head2
21864 #: ../inspector/virt-inspector.pod:195
21865 msgid "E<lt>mountpointsE<gt>"
21866 msgstr ""
21867
21868 #. type: textblock
21869 #: ../inspector/virt-inspector.pod:197
21870 msgid ""
21871 "Un*x-like guests typically have multiple filesystems which are mounted at "
21872 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21873 "element which looks like this:"
21874 msgstr ""
21875
21876 #. type: verbatim
21877 #: ../inspector/virt-inspector.pod:201
21878 #, no-wrap
21879 msgid ""
21880 " <operatingsystems>\n"
21881 "   <operatingsystem>\n"
21882 "     ...\n"
21883 "     <mountpoints>\n"
21884 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21885 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21886 "     </mountpoints>\n"
21887 "\n"
21888 msgstr ""
21889
21890 #. type: textblock
21891 #: ../inspector/virt-inspector.pod:209
21892 msgid ""
21893 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21894 "and may have completely different names inside the guest.  Only mountable "
21895 "filesystems appear in this list, not things like swap devices."
21896 msgstr ""
21897
21898 #. type: =head2
21899 #: ../inspector/virt-inspector.pod:214
21900 msgid "E<lt>filesystemsE<gt>"
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../inspector/virt-inspector.pod:216
21905 msgid ""
21906 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21907 "filesystems belonging to the guest, including swap and empty partitions.  "
21908 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21909 "this OS or shared with this OS and other OSes)."
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../inspector/virt-inspector.pod:222
21914 msgid "You might see something like this:"
21915 msgstr ""
21916
21917 #. type: verbatim
21918 #: ../inspector/virt-inspector.pod:224
21919 #, no-wrap
21920 msgid ""
21921 " <operatingsystems>\n"
21922 "   <operatingsystem>\n"
21923 "     ...\n"
21924 "     <filesystems>\n"
21925 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21926 "         <type>ext4</type>\n"
21927 "         <label>Fedora-13-x86_64</label>\n"
21928 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21929 "       </filesystem>\n"
21930 "\n"
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../inspector/virt-inspector.pod:234
21935 msgid ""
21936 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21937 "the label, and the UUID."
21938 msgstr ""
21939
21940 #. type: =head2
21941 #: ../inspector/virt-inspector.pod:237
21942 msgid "E<lt>applicationsE<gt>"
21943 msgstr ""
21944
21945 #. type: textblock
21946 #: ../inspector/virt-inspector.pod:239
21947 msgid ""
21948 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21949 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21950 "machine."
21951 msgstr ""
21952
21953 #. type: textblock
21954 #: ../inspector/virt-inspector.pod:243
21955 msgid ""
21956 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21957 "Typical values would be C<rpm> and C<deb>."
21958 msgstr ""
21959
21960 #. type: textblock
21961 #: ../inspector/virt-inspector.pod:246
21962 msgid ""
21963 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21964 "Typical values include C<yum>, C<up2date> and C<apt>"
21965 msgstr ""
21966
21967 #. type: textblock
21968 #: ../inspector/virt-inspector.pod:249
21969 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21970 msgstr ""
21971
21972 #. type: verbatim
21973 #: ../inspector/virt-inspector.pod:252
21974 #, no-wrap
21975 msgid ""
21976 " <operatingsystems>\n"
21977 "   <operatingsystem>\n"
21978 "     ...\n"
21979 "     <applications>\n"
21980 "       <application>\n"
21981 "         <name>coreutils</name>\n"
21982 "         <version>8.5</version>\n"
21983 "         <release>1</release>\n"
21984 "       </application>\n"
21985 "\n"
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../inspector/virt-inspector.pod:262
21990 msgid ""
21991 "The version and release fields may not be available for some types guests.  "
21992 "Other fields are possible, see "
21993 "L<guestfs(3)/guestfs_inspect_list_applications>."
21994 msgstr ""
21995
21996 #. type: =head2
21997 #: ../inspector/virt-inspector.pod:266
21998 msgid "E<lt>drive_mappingsE<gt>"
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../inspector/virt-inspector.pod:268
22003 msgid ""
22004 "For operating systems like Windows which use drive letters, virt-inspector "
22005 "is able to find out how drive letters map to filesystems."
22006 msgstr ""
22007
22008 #. type: verbatim
22009 #: ../inspector/virt-inspector.pod:272
22010 #, no-wrap
22011 msgid ""
22012 " <operatingsystems>\n"
22013 "   <operatingsystem>\n"
22014 "     ...\n"
22015 "     <drive_mappings>\n"
22016 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22017 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22018 "     </drive_mappings>\n"
22019 "\n"
22020 msgstr ""
22021
22022 #. type: textblock
22023 #: ../inspector/virt-inspector.pod:280
22024 msgid ""
22025 "In the example above, drive C maps to the filesystem on the second partition"
22026 " on the first disk, and drive E maps to the filesystem on the first "
22027 "partition on the second disk."
22028 msgstr ""
22029
22030 #. type: textblock
22031 #: ../inspector/virt-inspector.pod:284
22032 msgid ""
22033 "Note that this only covers permanent local filesystem mappings, not things "
22034 "like network shares.  Furthermore NTFS volume mount points may not be listed"
22035 " here."
22036 msgstr ""
22037
22038 #. type: =head2
22039 #: ../inspector/virt-inspector.pod:288
22040 msgid "E<lt>iconE<gt>"
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../inspector/virt-inspector.pod:290
22045 msgid ""
22046 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22047 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22048 "very large and high quality."
22049 msgstr ""
22050
22051 #. type: verbatim
22052 #: ../inspector/virt-inspector.pod:294
22053 #, no-wrap
22054 msgid ""
22055 " <operatingsystems>\n"
22056 "   <operatingsystem>\n"
22057 "     ...\n"
22058 "     <icon>\n"
22059 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22060 "       [... many lines of base64 data ...]\n"
22061 "     </icon>\n"
22062 "\n"
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../inspector/virt-inspector.pod:302
22067 msgid ""
22068 "To display the icon, you have to extract it and convert the base64 data back"
22069 " to a binary file.  Use an XPath query or simply an editor to extract the "
22070 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22071 "to a PNG file:"
22072 msgstr ""
22073
22074 #. type: verbatim
22075 #: ../inspector/virt-inspector.pod:307
22076 #, no-wrap
22077 msgid ""
22078 " base64 -i -d < icon.data > icon.png\n"
22079 "\n"
22080 msgstr ""
22081
22082 #. type: =head2
22083 #: ../inspector/virt-inspector.pod:309
22084 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../inspector/virt-inspector.pod:311
22089 msgid ""
22090 "Virt-inspector can detect some operating system installers on install disks,"
22091 " live CDs, bootable USB keys and more."
22092 msgstr ""
22093
22094 #. type: textblock
22095 #: ../inspector/virt-inspector.pod:314
22096 msgid ""
22097 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22098 "fields may be present to indicate a live CD, network installer, or one part "
22099 "of a multipart CD.  For example:"
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../inspector/virt-inspector.pod:318
22104 #, no-wrap
22105 msgid ""
22106 " <operatingsystems>\n"
22107 "   <operatingsystem>\n"
22108 "     <root>/dev/sda</root>\n"
22109 "     <name>linux</name>\n"
22110 "     <arch>i386</arch>\n"
22111 "     <distro>ubuntu</distro>\n"
22112 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22113 "     <major_version>10</major_version>\n"
22114 "     <minor_version>10</minor_version>\n"
22115 "     <format>installer</format>\n"
22116 "     <live/>\n"
22117 "\n"
22118 msgstr ""
22119
22120 #. type: =head1
22121 #: ../inspector/virt-inspector.pod:330
22122 msgid "USING XPATH"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../inspector/virt-inspector.pod:332
22127 msgid ""
22128 "You can use the XPath query language to select parts of the XML.  We "
22129 "recommend using C<xmlstarlet> to perform XPath queries from the command "
22130 "line."
22131 msgstr ""
22132
22133 #. type: verbatim
22134 #: ../inspector/virt-inspector.pod:338
22135 #, no-wrap
22136 msgid ""
22137 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22138 " <filesystems>\n"
22139 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22140 "        <type>ext4</type>\n"
22141 " [...]\n"
22142 "\n"
22143 msgstr ""
22144
22145 #. type: verbatim
22146 #: ../inspector/virt-inspector.pod:344
22147 #, no-wrap
22148 msgid ""
22149 " $ virt-inspector -d Guest | \\\n"
22150 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22151 " ext4\n"
22152 "\n"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../inspector/virt-inspector.pod:348
22157 #, no-wrap
22158 msgid ""
22159 " $ virt-inspector -d Guest | \\\n"
22160 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22161 " [displays the guest icon, if there is one]\n"
22162 "\n"
22163 msgstr ""
22164
22165 #. type: =head1
22166 #: ../inspector/virt-inspector.pod:359
22167 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../inspector/virt-inspector.pod:361
22172 msgid ""
22173 "Early versions of libguestfs shipped with a different virt-inspector program"
22174 " written in Perl (the current version is written in C).  The XML output of "
22175 "the Perl virt-inspector was different and it could also output in other "
22176 "formats like text."
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../inspector/virt-inspector.pod:366
22181 msgid ""
22182 "The old virt-inspector is no longer supported or shipped with libguestfs."
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../inspector/virt-inspector.pod:369
22187 msgid ""
22188 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22189 "versions of virt-inspector with different names:"
22190 msgstr ""
22191
22192 #. type: verbatim
22193 #: ../inspector/virt-inspector.pod:372
22194 #, no-wrap
22195 msgid ""
22196 " virt-inspector     Old Perl version.\n"
22197 " virt-inspector2    New C version.\n"
22198 "\n"
22199 msgstr ""
22200
22201 #. type: textblock
22202 #: ../inspector/virt-inspector.pod:382
22203 msgid ""
22204 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22205 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22206 msgstr ""
22207
22208 #. type: textblock
22209 #: ../inspector/virt-inspector.pod:399
22210 msgid "Matthew Booth L<mbooth@redhat.com>"
22211 msgstr ""
22212
22213 #. type: textblock
22214 #: ../java/examples/guestfs-java.pod:5
22215 msgid "guestfs-java - How to use libguestfs from Java"
22216 msgstr ""
22217
22218 #. type: verbatim
22219 #: ../java/examples/guestfs-java.pod:9
22220 #, no-wrap
22221 msgid ""
22222 " import com.redhat.et.libguestfs.*;\n"
22223 " \n"
22224 msgstr ""
22225
22226 #. type: verbatim
22227 #: ../java/examples/guestfs-java.pod:11
22228 #, no-wrap
22229 msgid ""
22230 " GuestFS g = new GuestFS ();\n"
22231 " g.add_drive_opts (\"disk.img\", null);\n"
22232 " g.launch ();\n"
22233 "\n"
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../java/examples/guestfs-java.pod:17
22238 msgid ""
22239 "This manual page documents how to call libguestfs from the Java programming "
22240 "language.  This page just documents the differences from the C API and gives"
22241 " some examples.  If you are not familiar with using libguestfs, you also "
22242 "need to read L<guestfs(3)>."
22243 msgstr ""
22244
22245 #. type: =head2
22246 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22247 msgid "CLOSING THE HANDLE"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../java/examples/guestfs-java.pod:24
22252 msgid ""
22253 "The handle is closed when it is reaped by the garbage collector.  Because "
22254 "libguestfs handles include a lot of state, it is also possible to close (and"
22255 " hence free) them explicitly by calling the C<close> method."
22256 msgstr ""
22257
22258 #. type: =head2
22259 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22260 #: ../python/examples/guestfs-python.pod:21
22261 #: ../ruby/examples/guestfs-ruby.pod:22
22262 msgid "EXCEPTIONS"
22263 msgstr ""
22264
22265 #. type: textblock
22266 #: ../java/examples/guestfs-java.pod:31
22267 msgid ""
22268 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22269 "exception.  This has a single parameter which is the error message (a "
22270 "C<String>)."
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../java/examples/guestfs-java.pod:35
22275 msgid "Calling any method on a closed handle raises the same exception."
22276 msgstr ""
22277
22278 #. type: textblock
22279 #: ../java/examples/guestfs-java.pod:47
22280 msgid ""
22281 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
22282 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22283 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../ocaml/examples/guestfs-ocaml.pod:5
22288 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22289 msgstr ""
22290
22291 #. type: textblock
22292 #: ../ocaml/examples/guestfs-ocaml.pod:9
22293 msgid "Module style:"
22294 msgstr ""
22295
22296 #. type: verbatim
22297 #: ../ocaml/examples/guestfs-ocaml.pod:11
22298 #, no-wrap
22299 msgid ""
22300 " let g = Guestfs.create () in\n"
22301 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22302 " Guestfs.launch g;\n"
22303 "\n"
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../ocaml/examples/guestfs-ocaml.pod:15
22308 msgid "Object-oriented style:"
22309 msgstr ""
22310
22311 #. type: verbatim
22312 #: ../ocaml/examples/guestfs-ocaml.pod:17
22313 #, no-wrap
22314 msgid ""
22315 " let g = new Guestfs.guestfs () in\n"
22316 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22317 " g#launch ();\n"
22318 "\n"
22319 msgstr ""
22320
22321 #. type: verbatim
22322 #: ../ocaml/examples/guestfs-ocaml.pod:21
22323 #, no-wrap
22324 msgid ""
22325 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22326 "or:\n"
22327 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../ocaml/examples/guestfs-ocaml.pod:27
22333 msgid ""
22334 "This manual page documents how to call libguestfs from the OCaml programming"
22335 " language.  This page just documents the differences from the C API and "
22336 "gives some examples.  If you are not familiar with using libguestfs, you "
22337 "also need to read L<guestfs(3)>."
22338 msgstr ""
22339
22340 #. type: =head2
22341 #: ../ocaml/examples/guestfs-ocaml.pod:32
22342 msgid "PROGRAMMING STYLES"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../ocaml/examples/guestfs-ocaml.pod:34
22347 msgid ""
22348 "There are two different programming styles supported by the OCaml bindings."
22349 "  You can use a module style, with each C function mapped to an OCaml "
22350 "function:"
22351 msgstr ""
22352
22353 #. type: verbatim
22354 #: ../ocaml/examples/guestfs-ocaml.pod:38
22355 #, no-wrap
22356 msgid ""
22357 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22358 "\n"
22359 msgstr ""
22360
22361 #. type: textblock
22362 #: ../ocaml/examples/guestfs-ocaml.pod:40
22363 msgid "becomes:"
22364 msgstr ""
22365
22366 #. type: verbatim
22367 #: ../ocaml/examples/guestfs-ocaml.pod:42
22368 #, no-wrap
22369 msgid ""
22370 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22371 "\n"
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../ocaml/examples/guestfs-ocaml.pod:44
22376 msgid ""
22377 "Alternately you can use an object-oriented style, calling methods on the "
22378 "class C<Guestfs.guestfs>:"
22379 msgstr ""
22380
22381 #. type: verbatim
22382 #: ../ocaml/examples/guestfs-ocaml.pod:47
22383 #, no-wrap
22384 msgid ""
22385 " method set_verbose : bool -> unit\n"
22386 "\n"
22387 msgstr ""
22388
22389 #. type: textblock
22390 #: ../ocaml/examples/guestfs-ocaml.pod:49
22391 msgid ""
22392 "The object-oriented style is usually briefer, and the minor performance "
22393 "penalty isn't noticable in the general overhead of performing libguestfs "
22394 "functions."
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../ocaml/examples/guestfs-ocaml.pod:55
22399 msgid ""
22400 "The handle is closed when it is reaped by the garbage collector.  Because "
22401 "libguestfs handles include a lot of state, it is also possible to close (and"
22402 " hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22403 "method."
22404 msgstr ""
22405
22406 #. type: textblock
22407 #: ../ocaml/examples/guestfs-ocaml.pod:62
22408 msgid ""
22409 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22410 "exception.  This has a single parameter which is the error message (a "
22411 "string)."
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../ocaml/examples/guestfs-ocaml.pod:66
22416 msgid ""
22417 "Calling any function/method on a closed handle raises "
22418 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22419 "that you called."
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../ocaml/examples/guestfs-ocaml.pod:80
22424 msgid ""
22425 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
22426 "java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L"
22427 "<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../perl/examples/guestfs-perl.pod:5
22432 msgid "guestfs-perl - How to use libguestfs from Perl"
22433 msgstr ""
22434
22435 #. type: verbatim
22436 #: ../perl/examples/guestfs-perl.pod:9
22437 #, no-wrap
22438 msgid ""
22439 " use Sys::Guestfs;\n"
22440 " \n"
22441 msgstr ""
22442
22443 #. type: verbatim
22444 #: ../perl/examples/guestfs-perl.pod:11
22445 #, no-wrap
22446 msgid ""
22447 " my $h = Sys::Guestfs->new ();\n"
22448 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22449 " $h->launch ();\n"
22450 " $h->mount_options ('', '/dev/sda1', '/');\n"
22451 " $h->touch ('/hello');\n"
22452 " $h->sync ();\n"
22453 "\n"
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../perl/examples/guestfs-perl.pod:20
22458 msgid ""
22459 "This manual page documents how to call libguestfs from the Perl programming "
22460 "language.  This page just documents the differences from the C API and gives"
22461 " some examples.  If you are not familiar with using libguestfs, you also "
22462 "need to read L<guestfs(3)>.  To read the full Perl API, see "
22463 "L<Sys::Guestfs(3)>."
22464 msgstr ""
22465
22466 #. type: =head2
22467 #: ../perl/examples/guestfs-perl.pod:26
22468 msgid "ERRORS"
22469 msgstr ""
22470
22471 #. type: textblock
22472 #: ../perl/examples/guestfs-perl.pod:28
22473 msgid ""
22474 "Errors from libguestfs functions turn into calls to C<croak> (see "
22475 "L<Carp(3)>)."
22476 msgstr ""
22477
22478 #. type: textblock
22479 #: ../perl/examples/guestfs-perl.pod:41
22480 msgid ""
22481 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-"
22482 "erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L"
22483 "<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22484 msgstr ""
22485
22486 #. type: textblock
22487 #: ../python/examples/guestfs-python.pod:5
22488 msgid "guestfs-python - How to use libguestfs from Python"
22489 msgstr ""
22490
22491 #. type: verbatim
22492 #: ../python/examples/guestfs-python.pod:9
22493 #, no-wrap
22494 msgid ""
22495 " import guestfs\n"
22496 " g = guestfs.GuestFS ()\n"
22497 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22498 " g.launch\n"
22499 "\n"
22500 msgstr ""
22501
22502 #. type: textblock
22503 #: ../python/examples/guestfs-python.pod:16
22504 msgid ""
22505 "This manual page documents how to call libguestfs from the Python "
22506 "programming language.  This page just documents the differences from the C "
22507 "API and gives some examples.  If you are not familiar with using libguestfs,"
22508 " you also need to read L<guestfs(3)>."
22509 msgstr ""
22510
22511 #. type: textblock
22512 #: ../python/examples/guestfs-python.pod:23
22513 msgid ""
22514 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22515 "single string argument which is the error message."
22516 msgstr ""
22517
22518 #. type: =head2
22519 #: ../python/examples/guestfs-python.pod:26
22520 msgid "MORE DOCUMENTATION"
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../python/examples/guestfs-python.pod:28
22525 msgid "Type:"
22526 msgstr ""
22527
22528 #. type: verbatim
22529 #: ../python/examples/guestfs-python.pod:30
22530 #, no-wrap
22531 msgid ""
22532 " $ python\n"
22533 " >>> import guestfs\n"
22534 " >>> help (guestfs)\n"
22535 "\n"
22536 msgstr ""
22537
22538 #. type: textblock
22539 #: ../python/examples/guestfs-python.pod:44
22540 msgid ""
22541 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
22542 "java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L"
22543 "<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22544 msgstr ""
22545
22546 #. type: textblock
22547 #: ../rescue/virt-rescue.pod:5
22548 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22549 msgstr ""
22550
22551 #. type: verbatim
22552 #: ../rescue/virt-rescue.pod:9
22553 #, no-wrap
22554 msgid ""
22555 " virt-rescue [--options] -d domname\n"
22556 "\n"
22557 msgstr ""
22558
22559 #. type: verbatim
22560 #: ../rescue/virt-rescue.pod:11
22561 #, no-wrap
22562 msgid ""
22563 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22564 "\n"
22565 msgstr ""
22566
22567 #. type: verbatim
22568 #: ../rescue/virt-rescue.pod:15
22569 #, no-wrap
22570 msgid ""
22571 " virt-rescue [--options] domname\n"
22572 "\n"
22573 msgstr ""
22574
22575 #. type: verbatim
22576 #: ../rescue/virt-rescue.pod:17
22577 #, no-wrap
22578 msgid ""
22579 " virt-rescue [--options] disk.img [disk.img ...]\n"
22580 "\n"
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../rescue/virt-rescue.pod:21
22585 msgid ""
22586 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22587 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22588 "you from doing this, but doesn't catch all cases."
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../rescue/virt-rescue.pod:25
22593 msgid ""
22594 "However if you use the I<--ro> (read only) option, then you can attach a "
22595 "shell to a live virtual machine.  The results might be strange or "
22596 "inconsistent at times but you won't get disk corruption."
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../rescue/virt-rescue.pod:31
22601 msgid ""
22602 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22603 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22604 "recovery tools which you can use to examine or rescue a virtual machine or "
22605 "disk image."
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../rescue/virt-rescue.pod:36
22610 msgid ""
22611 "You can run virt-rescue on any virtual machine known to libvirt, or directly"
22612 " on disk image(s):"
22613 msgstr ""
22614
22615 #. type: verbatim
22616 #: ../rescue/virt-rescue.pod:39
22617 #, no-wrap
22618 msgid ""
22619 " virt-rescue -d GuestName\n"
22620 "\n"
22621 msgstr ""
22622
22623 #. type: verbatim
22624 #: ../rescue/virt-rescue.pod:41
22625 #, no-wrap
22626 msgid ""
22627 " virt-rescue --ro -a /path/to/disk.img\n"
22628 "\n"
22629 msgstr ""
22630
22631 #. type: verbatim
22632 #: ../rescue/virt-rescue.pod:43
22633 #, no-wrap
22634 msgid ""
22635 " virt-rescue -a /dev/sdc\n"
22636 "\n"
22637 msgstr ""
22638
22639 #. type: textblock
22640 #: ../rescue/virt-rescue.pod:45
22641 msgid "For live VMs you I<must> use the --ro option."
22642 msgstr ""
22643
22644 #. type: textblock
22645 #: ../rescue/virt-rescue.pod:47
22646 msgid ""
22647 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22648 "in an interactive bash shell where you can use many ordinary Linux commands."
22649 "  What you see in C</> (C</bin>, C</lib> etc) is the rescue appliance.  You "
22650 "must mount the virtual machine's filesystems by hand.  There is an empty "
22651 "directory called C</sysroot> where you can mount filesystems."
22652 msgstr ""
22653
22654 #. type: textblock
22655 #: ../rescue/virt-rescue.pod:54
22656 msgid ""
22657 "In the example below, we list logical volumes, then choose one to mount "
22658 "under C</sysroot>:"
22659 msgstr ""
22660
22661 #. type: verbatim
22662 #: ../rescue/virt-rescue.pod:57
22663 #, no-wrap
22664 msgid ""
22665 " ><rescue> lvs\n"
22666 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22667 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22668 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22669 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22670 " ><rescue> ls /sysroot\n"
22671 "\n"
22672 msgstr ""
22673
22674 #. type: textblock
22675 #: ../rescue/virt-rescue.pod:64
22676 msgid ""
22677 "If you don't know what filesystems are available on the virtual machine then"
22678 " you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../rescue/virt-rescue.pod:70
22683 msgid ""
22684 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22685 "virtual machine.  For example you can use it on a blank file if you want to "
22686 "partition that file (although we would recommend using L<guestfish(1)> "
22687 "instead as it is more suitable for this purpose).  You can even use virt-"
22688 "rescue on things like SD cards."
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../rescue/virt-rescue.pod:76
22693 msgid ""
22694 "Virt-rescue does not require root.  You only need to run it as root if you "
22695 "need root to open the disk image."
22696 msgstr ""
22697
22698 #. type: textblock
22699 #: ../rescue/virt-rescue.pod:79
22700 msgid ""
22701 "This tool is just designed for quick interactive hacking on a virtual "
22702 "machine.  For more structured access to a virtual machine disk image, you "
22703 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22704 "make scripted changes to guests, use L<guestfish(1)>."
22705 msgstr ""
22706
22707 #. type: =item
22708 #: ../rescue/virt-rescue.pod:103
22709 msgid "B<--append kernelopts>"
22710 msgstr ""
22711
22712 #. type: textblock
22713 #: ../rescue/virt-rescue.pod:105
22714 msgid "Pass additional options to the rescue kernel."
22715 msgstr ""
22716
22717 #. type: verbatim
22718 #: ../rescue/virt-rescue.pod:135
22719 #, no-wrap
22720 msgid ""
22721 " virt-rescue --format=raw -a disk.img\n"
22722 "\n"
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../rescue/virt-rescue.pod:139
22727 #, no-wrap
22728 msgid ""
22729 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22730 "\n"
22731 msgstr ""
22732
22733 #. type: =item
22734 #: ../rescue/virt-rescue.pod:148
22735 msgid "B<-m MB>"
22736 msgstr ""
22737
22738 #. type: =item
22739 #: ../rescue/virt-rescue.pod:150
22740 msgid "B<--memsize MB>"
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../rescue/virt-rescue.pod:152
22745 msgid ""
22746 "Change the amount of memory allocated to the rescue system.  The default is "
22747 "set by libguestfs and is small but adequate for running system tools.  The "
22748 "occasional program might need more memory.  The parameter is specified in "
22749 "megabytes."
22750 msgstr ""
22751
22752 #. type: =item
22753 #: ../rescue/virt-rescue.pod:157
22754 msgid "B<--network>"
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../rescue/virt-rescue.pod:159
22759 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22760 msgstr ""
22761
22762 #. type: textblock
22763 #: ../rescue/virt-rescue.pod:165
22764 msgid "Open the image read-only."
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../rescue/virt-rescue.pod:175
22769 msgid ""
22770 "Enable SELinux in the rescue appliance.  You should read "
22771 "L<guestfs(3)/SELINUX> before using this option."
22772 msgstr ""
22773
22774 #. type: =item
22775 #: ../rescue/virt-rescue.pod:178
22776 msgid "B<--smp> N"
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../rescue/virt-rescue.pod:180
22781 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../rescue/virt-rescue.pod:198
22786 msgid ""
22787 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22788 "are done read-write."
22789 msgstr ""
22790
22791 #. type: textblock
22792 #: ../rescue/virt-rescue.pod:211
22793 msgid "Previous versions of virt-rescue allowed you to write either:"
22794 msgstr ""
22795
22796 #. type: verbatim
22797 #: ../rescue/virt-rescue.pod:213
22798 #, no-wrap
22799 msgid ""
22800 " virt-rescue disk.img [disk.img ...]\n"
22801 "\n"
22802 msgstr ""
22803
22804 #. type: verbatim
22805 #: ../rescue/virt-rescue.pod:217
22806 #, no-wrap
22807 msgid ""
22808 " virt-rescue guestname\n"
22809 "\n"
22810 msgstr ""
22811
22812 #. type: =head1
22813 #: ../rescue/virt-rescue.pod:225
22814 msgid "NETWORK"
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../rescue/virt-rescue.pod:227
22819 msgid ""
22820 "Adding the I<--network> option enables QEMU user networking in the rescue "
22821 "appliance.  There are some differences between user networking and ordinary "
22822 "networking:"
22823 msgstr ""
22824
22825 #. type: =item
22826 #: ../rescue/virt-rescue.pod:233
22827 msgid "ping does not work"
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../rescue/virt-rescue.pod:235
22832 msgid ""
22833 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22834 "send the ping packets, and because virt-rescue must be able to run as non-"
22835 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22836 "The ping command will appear to resolve addresses but will not be able to "
22837 "send or receive any packets.  This does not mean that the network is not "
22838 "working."
22839 msgstr ""
22840
22841 #. type: =item
22842 #: ../rescue/virt-rescue.pod:242
22843 msgid "cannot receive connections"
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../rescue/virt-rescue.pod:244
22848 msgid "QEMU user networking cannot receive incoming connections."
22849 msgstr ""
22850
22851 #. type: =item
22852 #: ../rescue/virt-rescue.pod:246
22853 msgid "making TCP connections"
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../rescue/virt-rescue.pod:248
22858 msgid ""
22859 "The virt-rescue appliance needs to be small and so does not include many "
22860 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22861 "make TCP connections from the shell using the magical "
22862 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22863 msgstr ""
22864
22865 #. type: verbatim
22866 #: ../rescue/virt-rescue.pod:253
22867 #, no-wrap
22868 msgid ""
22869 " exec 3<>/dev/tcp/redhat.com/80\n"
22870 " echo \"GET /\" >&3\n"
22871 " cat <&3\n"
22872 "\n"
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../rescue/virt-rescue.pod:257
22877 msgid "See L<bash(1)> for more details."
22878 msgstr ""
22879
22880 #. type: textblock
22881 #: ../rescue/virt-rescue.pod:263
22882 msgid ""
22883 "Several environment variables affect virt-rescue.  See "
22884 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
22885 msgstr ""
22886
22887 #. type: textblock
22888 #: ../rescue/virt-rescue.pod:290
22889 msgid ""
22890 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22891 "L<http://libguestfs.org/>."
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../resize/virt-resize.pod:5
22896 msgid "virt-resize - Resize a virtual machine disk"
22897 msgstr ""
22898
22899 #. type: verbatim
22900 #: ../resize/virt-resize.pod:9
22901 #, no-wrap
22902 msgid ""
22903 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22904 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22905 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22906 "\n"
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../resize/virt-resize.pod:15
22911 msgid ""
22912 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22913 "larger or smaller overall, and resizing or deleting any partitions contained"
22914 " within."
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../resize/virt-resize.pod:19
22919 msgid ""
22920 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22921 "not> be used on live virtual machines - for consistent results, shut the "
22922 "virtual machine down before resizing it."
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../resize/virt-resize.pod:23
22927 msgid ""
22928 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22929 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22930 msgstr ""
22931
22932 #. type: =item
22933 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
22934 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
22935 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22936 msgid "1."
22937 msgstr ""
22938
22939 #. type: textblock
22940 #: ../resize/virt-resize.pod:33
22941 msgid ""
22942 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22943 "fill the extra 5GB of space."
22944 msgstr ""
22945
22946 #. type: verbatim
22947 #: ../resize/virt-resize.pod:36
22948 #, no-wrap
22949 msgid ""
22950 " virt-filesystems --long -h --all -a olddisk\n"
22951 " \n"
22952 msgstr ""
22953
22954 #. type: verbatim
22955 #: ../resize/virt-resize.pod:38
22956 #, no-wrap
22957 msgid ""
22958 " truncate -r olddisk newdisk\n"
22959 " truncate -s +5G newdisk\n"
22960 " \n"
22961 msgstr ""
22962
22963 #. type: verbatim
22964 #: ../resize/virt-resize.pod:41
22965 #, no-wrap
22966 msgid ""
22967 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22968 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22969 "\n"
22970 msgstr ""
22971
22972 #. type: =item
22973 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
22974 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
22975 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
22976 msgid "2."
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../resize/virt-resize.pod:46
22981 msgid ""
22982 "As above, but make the /boot partition 200MB bigger, while giving the "
22983 "remaining space to /dev/sda2:"
22984 msgstr ""
22985
22986 #. type: verbatim
22987 #: ../resize/virt-resize.pod:49
22988 #, no-wrap
22989 msgid ""
22990 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22991 "   olddisk newdisk\n"
22992 "\n"
22993 msgstr ""
22994
22995 #. type: =item
22996 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
22997 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
22998 #: ../src/guestfs.pod:1451
22999 msgid "3."
23000 msgstr ""
23001
23002 #. type: textblock
23003 #: ../resize/virt-resize.pod:54
23004 msgid ""
23005 "As in the first example, but expand a logical volume as the final step.  "
23006 "This is what you would typically use for Linux guests that use LVM:"
23007 msgstr ""
23008
23009 #. type: verbatim
23010 #: ../resize/virt-resize.pod:58
23011 #, no-wrap
23012 msgid ""
23013 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23014 "   olddisk newdisk\n"
23015 "\n"
23016 msgstr ""
23017
23018 #. type: =item
23019 #: ../resize/virt-resize.pod:61
23020 msgid "4."
23021 msgstr ""
23022
23023 #. type: textblock
23024 #: ../resize/virt-resize.pod:63
23025 msgid ""
23026 "As in the first example, but the output format will be qcow2 instead of a "
23027 "raw disk:"
23028 msgstr ""
23029
23030 #. type: verbatim
23031 #: ../resize/virt-resize.pod:66
23032 #, no-wrap
23033 msgid ""
23034 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23035 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23036 "\n"
23037 msgstr ""
23038
23039 #. type: =head1
23040 #: ../resize/virt-resize.pod:71
23041 msgid "DETAILED USAGE"
23042 msgstr ""
23043
23044 #. type: =head2
23045 #: ../resize/virt-resize.pod:73
23046 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23047 msgstr ""
23048
23049 #. type: =item
23050 #: ../resize/virt-resize.pod:77
23051 msgid "1. Shut down the virtual machine"
23052 msgstr ""
23053
23054 #. type: =item
23055 #: ../resize/virt-resize.pod:79
23056 msgid "2. Locate input disk image"
23057 msgstr ""
23058
23059 #. type: textblock
23060 #: ../resize/virt-resize.pod:81
23061 msgid ""
23062 "Locate the input disk image (ie. the file or device on the host containing "
23063 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23064 "dumpxml> like this to find the disk image name:"
23065 msgstr ""
23066
23067 #. type: verbatim
23068 #: ../resize/virt-resize.pod:85
23069 #, no-wrap
23070 msgid ""
23071 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23072 " Found 1 nodes:\n"
23073 " -- NODE --\n"
23074 " <source dev=\"/dev/vg/lv_guest\" />\n"
23075 "\n"
23076 msgstr ""
23077
23078 #. type: =item
23079 #: ../resize/virt-resize.pod:90
23080 msgid "3. Look at current sizing"
23081 msgstr ""
23082
23083 #. type: textblock
23084 #: ../resize/virt-resize.pod:92
23085 msgid ""
23086 "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23087 msgstr ""
23088
23089 #. type: verbatim
23090 #: ../resize/virt-resize.pod:95
23091 #, no-wrap
23092 msgid ""
23093 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23094 " Name       Type       Size  Parent\n"
23095 " /dev/sda1  partition  101M  /dev/sda\n"
23096 " /dev/sda2  partition  7.9G  /dev/sda\n"
23097 " /dev/sda   device     8.0G  -\n"
23098 "\n"
23099 msgstr ""
23100
23101 #. type: textblock
23102 #: ../resize/virt-resize.pod:101
23103 msgid ""
23104 "(This example is a virtual machine with an 8 GB disk which we would like to "
23105 "expand up to 10 GB)."
23106 msgstr ""
23107
23108 #. type: =item
23109 #: ../resize/virt-resize.pod:104
23110 msgid "4. Create output disk"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../resize/virt-resize.pod:106
23115 msgid ""
23116 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23117 "to store the resized output disk."
23118 msgstr ""
23119
23120 #. type: textblock
23121 #: ../resize/virt-resize.pod:109
23122 msgid ""
23123 "To store the resized disk image in a file, create a file of a suitable size:"
23124 msgstr ""
23125
23126 #. type: verbatim
23127 #: ../resize/virt-resize.pod:112
23128 #, no-wrap
23129 msgid ""
23130 " # rm -f outdisk\n"
23131 " # truncate -s 10G outdisk\n"
23132 "\n"
23133 msgstr ""
23134
23135 #. type: textblock
23136 #: ../resize/virt-resize.pod:115
23137 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23138 msgstr ""
23139
23140 #. type: verbatim
23141 #: ../resize/virt-resize.pod:117
23142 #, no-wrap
23143 msgid ""
23144 " # lvcreate -L 10G -n lv_name vg_name\n"
23145 "\n"
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../resize/virt-resize.pod:119
23150 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23151 msgstr ""
23152
23153 #. type: verbatim
23154 #: ../resize/virt-resize.pod:121
23155 #, no-wrap
23156 msgid ""
23157 " # virsh pool-list\n"
23158 " # virsh vol-create-as poolname newvol 10G\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: =item
23163 #: ../resize/virt-resize.pod:124
23164 msgid "5. Resize"
23165 msgstr ""
23166
23167 #. type: textblock
23168 #: ../resize/virt-resize.pod:126
23169 msgid ""
23170 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23171 "file) and the output disk.  The output disk is the one created in the "
23172 "previous step."
23173 msgstr ""
23174
23175 #. type: verbatim
23176 #: ../resize/virt-resize.pod:130
23177 #, no-wrap
23178 msgid ""
23179 " # virt-resize indisk outdisk\n"
23180 "\n"
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../resize/virt-resize.pod:132
23185 msgid ""
23186 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23187 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23188 "larger, then an extra, empty partition is created at the end of the disk "
23189 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23190 "error."
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../resize/virt-resize.pod:138
23195 msgid ""
23196 "More realistically you'd want to expand existing partitions in the disk "
23197 "image by passing extra options (for the full list see the L</OPTIONS> "
23198 "section below)."
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../resize/virt-resize.pod:142
23203 msgid ""
23204 "L</--expand> is the most useful option.  It expands the named partition "
23205 "within the disk to fill any extra space:"
23206 msgstr ""
23207
23208 #. type: verbatim
23209 #: ../resize/virt-resize.pod:145
23210 #, no-wrap
23211 msgid ""
23212 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23213 "\n"
23214 msgstr ""
23215
23216 #. type: textblock
23217 #: ../resize/virt-resize.pod:147
23218 msgid ""
23219 "(In this case, an extra partition is I<not> created at the end of the disk, "
23220 "because there will be no unused space)."
23221 msgstr ""
23222
23223 #. type: textblock
23224 #: ../resize/virt-resize.pod:150
23225 msgid ""
23226 "L</--resize> is the other commonly used option.  The following would "
23227 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23228 "rest of the available space:"
23229 msgstr ""
23230
23231 #. type: verbatim
23232 #: ../resize/virt-resize.pod:154
23233 #, no-wrap
23234 msgid ""
23235 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23236 "     indisk outdisk\n"
23237 "\n"
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../resize/virt-resize.pod:157
23242 msgid ""
23243 "If the expanded partition in the image contains a filesystem or LVM PV, then"
23244 " if virt-resize knows how, it will resize the contents, the equivalent of "
23245 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23246 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23247 "filesystems, so you would have to online resize them after booting the "
23248 "guest."
23249 msgstr ""
23250
23251 #. type: textblock
23252 #: ../resize/virt-resize.pod:164
23253 msgid "Other options are covered below."
23254 msgstr ""
23255
23256 #. type: =item
23257 #: ../resize/virt-resize.pod:166
23258 msgid "6. Test"
23259 msgstr ""
23260
23261 #. type: textblock
23262 #: ../resize/virt-resize.pod:168
23263 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../resize/virt-resize.pod:170
23268 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23269 msgstr ""
23270
23271 #. type: verbatim
23272 #: ../resize/virt-resize.pod:172
23273 #, no-wrap
23274 msgid ""
23275 " # virsh edit guestname\n"
23276 "\n"
23277 msgstr ""
23278
23279 #. type: textblock
23280 #: ../resize/virt-resize.pod:174
23281 msgid ""
23282 "Change E<lt>source ...E<gt>, see "
23283 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../resize/virt-resize.pod:177
23288 msgid "Then start up the domain with the new, resized disk:"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../resize/virt-resize.pod:179
23293 #, no-wrap
23294 msgid ""
23295 " # virsh start guestname\n"
23296 "\n"
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../resize/virt-resize.pod:181
23301 msgid ""
23302 "and check that it still works.  See also the L</NOTES> section below for "
23303 "additional information."
23304 msgstr ""
23305
23306 #. type: =item
23307 #: ../resize/virt-resize.pod:184
23308 msgid "7. Resize LVs etc inside the guest"
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../resize/virt-resize.pod:186
23313 msgid "(This can also be done offline using L<guestfish(1)>)"
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../resize/virt-resize.pod:188
23318 msgid ""
23319 "Once the guest has booted you should see the new space available, at least "
23320 "for filesystems that virt-resize knows how to resize, and for PVs.  The user"
23321 " may need to resize LVs inside PVs, and also resize filesystem types that "
23322 "virt-resize does not know how to expand."
23323 msgstr ""
23324
23325 #. type: =head2
23326 #: ../resize/virt-resize.pod:195
23327 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../resize/virt-resize.pod:197
23332 msgid ""
23333 "Shrinking is somewhat more complex than expanding, and only an overview is "
23334 "given here."
23335 msgstr ""
23336
23337 #. type: textblock
23338 #: ../resize/virt-resize.pod:200
23339 msgid ""
23340 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23341 "filesystems).  The user has to shrink content before passing the disk image "
23342 "to virt-resize, and virt-resize will check that the content has been shrunk "
23343 "properly."
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../resize/virt-resize.pod:205
23348 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../resize/virt-resize.pod:207
23353 msgid ""
23354 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23355 "steps 3 and 4 above to allocate a new disk image."
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../resize/virt-resize.pod:210
23360 msgid ""
23361 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23362 msgstr ""
23363
23364 #. type: =head2
23365 #: ../resize/virt-resize.pod:213
23366 msgid "IGNORING OR DELETING PARTITIONS"
23367 msgstr ""
23368
23369 #. type: textblock
23370 #: ../resize/virt-resize.pod:215
23371 msgid ""
23372 "virt-resize also gives a convenient way to ignore or delete partitions when "
23373 "copying from the input disk to the output disk.  Ignoring a partition speeds"
23374 " up the copy where you don't care about the existing contents of a "
23375 "partition.  Deleting a partition removes it completely, but note that it "
23376 "also renumbers any partitions after the one which is deleted, which can "
23377 "leave some guests unbootable."
23378 msgstr ""
23379
23380 #. type: =head2
23381 #: ../resize/virt-resize.pod:222
23382 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../resize/virt-resize.pod:224
23387 msgid ""
23388 "If the input disk is in qcow2 format, then you may prefer that the output is"
23389 " in qcow2 format as well.  Alternately, virt-resize can convert the format "
23390 "on the fly.  The output format is simply determined by the format of the "
23391 "empty output container that you provide.  Thus to create qcow2 output, use:"
23392 msgstr ""
23393
23394 #. type: verbatim
23395 #: ../resize/virt-resize.pod:230
23396 #, no-wrap
23397 msgid ""
23398 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23399 "\n"
23400 msgstr ""
23401
23402 #. type: textblock
23403 #: ../resize/virt-resize.pod:232
23404 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../resize/virt-resize.pod:234
23409 msgid "Similarly, to get non-sparse raw output use:"
23410 msgstr ""
23411
23412 #. type: verbatim
23413 #: ../resize/virt-resize.pod:236
23414 #, no-wrap
23415 msgid ""
23416 " fallocate -l size outdisk\n"
23417 "\n"
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../resize/virt-resize.pod:238
23422 msgid ""
23423 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23424 "if=/dev/zero of=outdisk bs=1M count=..>)"
23425 msgstr ""
23426
23427 #. type: =head2
23428 #: ../resize/virt-resize.pod:241
23429 msgid "LOGICAL PARTITIONS"
23430 msgstr ""
23431
23432 #. type: textblock
23433 #: ../resize/virt-resize.pod:243
23434 msgid ""
23435 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23436 "tables) cannot be resized."
23437 msgstr ""
23438
23439 #. type: textblock
23440 #: ../resize/virt-resize.pod:246
23441 msgid ""
23442 "To understand what is going on, firstly one of the four partitions "
23443 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23444 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23445 "partition type."
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../resize/virt-resize.pod:251
23450 msgid "Logical partitions live inside the extended partition."
23451 msgstr ""
23452
23453 #. type: textblock
23454 #: ../resize/virt-resize.pod:253
23455 msgid ""
23456 "The extended partition can be expanded, but not shrunk (unless you force it,"
23457 " which is not advisable).  When the extended partition is copied across, all"
23458 " the logical partitions contained inside are copied over implicitly.  Virt-"
23459 "resize does not look inside the extended partition, so it copies the logical"
23460 " partitions blindly."
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../resize/virt-resize.pod:259
23465 msgid ""
23466 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command"
23467 " line.  Doing so will give an error."
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23472 msgid "Display help."
23473 msgstr ""
23474
23475 #. type: =item
23476 #: ../resize/virt-resize.pod:270
23477 msgid "B<--align-first auto>"
23478 msgstr ""
23479
23480 #. type: =item
23481 #: ../resize/virt-resize.pod:272
23482 msgid "B<--align-first never>"
23483 msgstr ""
23484
23485 #. type: =item
23486 #: ../resize/virt-resize.pod:274
23487 msgid "B<--align-first always>"
23488 msgstr ""
23489
23490 #. type: textblock
23491 #: ../resize/virt-resize.pod:276
23492 msgid ""
23493 "Align the first partition for improved performance (see also the "
23494 "I<--alignment> option)."
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../resize/virt-resize.pod:279
23499 msgid ""
23500 "The default is I<--align-first auto> which only aligns the first partition "
23501 "if it is safe to do so.  That is, only when we know how to fix the "
23502 "bootloader automatically, and at the moment that can only be done for "
23503 "Windows guests."
23504 msgstr ""
23505
23506 #. type: textblock
23507 #: ../resize/virt-resize.pod:284
23508 msgid ""
23509 "I<--align-first never> means we never move the first partition.  This is the"
23510 " safest option.  Try this if the guest does not boot after resizing."
23511 msgstr ""
23512
23513 #. type: textblock
23514 #: ../resize/virt-resize.pod:288
23515 msgid ""
23516 "I<--align-first always> means we always align the first partition (if it "
23517 "needs to be aligned).  For some guests this will break the bootloader, "
23518 "making the guest unbootable."
23519 msgstr ""
23520
23521 #. type: =item
23522 #: ../resize/virt-resize.pod:292
23523 msgid "B<--alignment N>"
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../resize/virt-resize.pod:294
23528 msgid ""
23529 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize"
23530 " E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../resize/virt-resize.pod:298
23535 msgid ""
23536 "Assuming 512 byte sector size inside the guest, here are some suitable "
23537 "values for this:"
23538 msgstr ""
23539
23540 #. type: =item
23541 #: ../resize/virt-resize.pod:303
23542 msgid "I<--alignment 1> (512 bytes)"
23543 msgstr ""
23544
23545 #. type: textblock
23546 #: ../resize/virt-resize.pod:305
23547 msgid ""
23548 "The partitions would be packed together as closely as possible, but would be"
23549 " completely unaligned.  In some cases this can cause very poor performance."
23550 "  See L<virt-alignment-scan(1)> for further details."
23551 msgstr ""
23552
23553 #. type: =item
23554 #: ../resize/virt-resize.pod:309
23555 msgid "I<--alignment 8> (4K)"
23556 msgstr ""
23557
23558 #. type: textblock
23559 #: ../resize/virt-resize.pod:311
23560 msgid ""
23561 "This would be the minimum acceptable alignment for reasonable performance on"
23562 " modern hosts."
23563 msgstr ""
23564
23565 #. type: =item
23566 #: ../resize/virt-resize.pod:314
23567 msgid "I<--alignment 128> (64K)"
23568 msgstr ""
23569
23570 #. type: textblock
23571 #: ../resize/virt-resize.pod:316
23572 msgid ""
23573 "This alignment provides good performance when the host is using high end "
23574 "network storage."
23575 msgstr ""
23576
23577 #. type: =item
23578 #: ../resize/virt-resize.pod:319
23579 msgid "I<--alignment 2048> (1M)"
23580 msgstr ""
23581
23582 #. type: textblock
23583 #: ../resize/virt-resize.pod:321
23584 msgid ""
23585 "This is the standard alignment used by all newly installed guests since "
23586 "around 2008."
23587 msgstr ""
23588
23589 #. type: =item
23590 #: ../resize/virt-resize.pod:326
23591 msgid "B<-d>"
23592 msgstr ""
23593
23594 #. type: =item
23595 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
23596 #: ../tools/virt-win-reg.pl:120
23597 msgid "B<--debug>"
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23602 msgid "Enable debugging messages."
23603 msgstr ""
23604
23605 #. type: =item
23606 #: ../resize/virt-resize.pod:332
23607 msgid "B<--delete part>"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:334
23612 msgid ""
23613 "Delete the named partition.  It would be more accurate to describe this as "
23614 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23615 "the original disk image is left intact."
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../resize/virt-resize.pod:338
23620 msgid ""
23621 "Note that when you delete a partition, then anything contained in the "
23622 "partition is also deleted.  Furthermore, this causes any partitions that "
23623 "come after to be I<renumbered>, which can easily make your guest unbootable."
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
23628 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23629 msgid "You can give this option multiple times."
23630 msgstr ""
23631
23632 #. type: =item
23633 #: ../resize/virt-resize.pod:345
23634 msgid "B<--expand part>"
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../resize/virt-resize.pod:347
23639 msgid ""
23640 "Expand the named partition so it uses up all extra space (space left over "
23641 "after any other resize changes that you request have been done)."
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../resize/virt-resize.pod:350
23646 msgid ""
23647 "If virt-resize knows how, it will expand the direct content of the "
23648 "partition.  For example, if the partition is an LVM PV, it will expand the "
23649 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23650 "content it doesn't know about alone."
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../resize/virt-resize.pod:355
23655 msgid "Currently virt-resize can resize:"
23656 msgstr ""
23657
23658 #. type: textblock
23659 #: ../resize/virt-resize.pod:361
23660 msgid "ext2, ext3 and ext4 filesystems."
23661 msgstr ""
23662
23663 #. type: textblock
23664 #: ../resize/virt-resize.pod:365
23665 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../resize/virt-resize.pod:367
23670 msgid ""
23671 "The filesystem must have been shut down consistently last time it was used."
23672 "  Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a"
23673 " consistency check, so at the first boot after resizing Windows will check "
23674 "the disk."
23675 msgstr ""
23676
23677 #. type: textblock
23678 #: ../resize/virt-resize.pod:374
23679 msgid ""
23680 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23681 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23682 "resize LVs as desired after boot."
23683 msgstr ""
23684
23685 #. type: textblock
23686 #: ../resize/virt-resize.pod:380
23687 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23688 msgstr ""
23689
23690 #. type: textblock
23691 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23692 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23693 msgstr ""
23694
23695 #. type: =item
23696 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
23697 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23698 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23699 msgid "B<--format> raw"
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23704 msgid ""
23705 "Specify the format of the input disk image.  If this flag is not given then "
23706 "it is auto-detected from the image itself."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../resize/virt-resize.pod:394
23711 msgid ""
23712 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23713 "AND NON-SPARSE RAW FORMATS>."
23714 msgstr ""
23715
23716 #. type: =item
23717 #: ../resize/virt-resize.pod:397
23718 msgid "B<--ignore part>"
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../resize/virt-resize.pod:399
23723 msgid ""
23724 "Ignore the named partition.  Effectively this means the partition is "
23725 "allocated on the destination disk, but the content is not copied across from"
23726 " the source disk.  The content of the partition will be blank (all zero "
23727 "bytes)."
23728 msgstr ""
23729
23730 #. type: =item
23731 #: ../resize/virt-resize.pod:406
23732 msgid "B<--LV-expand logvol>"
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../resize/virt-resize.pod:408
23737 msgid ""
23738 "This takes the logical volume and, as a final step, expands it to fill all "
23739 "the space available in its volume group.  A typical usage, assuming a Linux "
23740 "guest with a single PV C</dev/sda2> and a root device called "
23741 "C</dev/vg_guest/lv_root> would be:"
23742 msgstr ""
23743
23744 #. type: verbatim
23745 #: ../resize/virt-resize.pod:413
23746 #, no-wrap
23747 msgid ""
23748 " virt-resize indisk outdisk \\\n"
23749 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23750 "\n"
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../resize/virt-resize.pod:416
23755 msgid ""
23756 "This would first expand the partition (and PV), and then expand the root "
23757 "device to fill the extra space in the PV."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../resize/virt-resize.pod:419
23762 msgid ""
23763 "The contents of the LV are also resized if virt-resize knows how to do that."
23764 "  You can stop virt-resize from trying to expand the content by using the "
23765 "option I<--no-expand-content>."
23766 msgstr ""
23767
23768 #. type: textblock
23769 #: ../resize/virt-resize.pod:423
23770 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../resize/virt-resize.pod:425
23775 msgid ""
23776 "You can give this option multiple times, I<but> it doesn't make sense to do "
23777 "this unless the logical volumes you specify are all in different volume "
23778 "groups."
23779 msgstr ""
23780
23781 #. type: =item
23782 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23783 msgid "B<--machine-readable>"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23788 msgid ""
23789 "This option is used to make the output more machine friendly when being "
23790 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23791 msgstr ""
23792
23793 #. type: =item
23794 #: ../resize/virt-resize.pod:437
23795 msgid "B<--dryrun>"
23796 msgstr ""
23797
23798 #. type: textblock
23799 #: ../resize/virt-resize.pod:439
23800 msgid "Print a summary of what would be done, but don't do anything."
23801 msgstr ""
23802
23803 #. type: =item
23804 #: ../resize/virt-resize.pod:441
23805 msgid "B<--no-copy-boot-loader>"
23806 msgstr ""
23807
23808 #. type: textblock
23809 #: ../resize/virt-resize.pod:443
23810 msgid ""
23811 "By default, virt-resize copies over some sectors at the start of the disk "
23812 "(up to the beginning of the first partition).  Commonly these sectors "
23813 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23814 "in order for the guest to boot correctly."
23815 msgstr ""
23816
23817 #. type: textblock
23818 #: ../resize/virt-resize.pod:448
23819 msgid ""
23820 "If you specify this flag, then this initial copy is not done.  You may need "
23821 "to reinstall the boot loader in this case."
23822 msgstr ""
23823
23824 #. type: =item
23825 #: ../resize/virt-resize.pod:451
23826 msgid "B<--no-extra-partition>"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../resize/virt-resize.pod:453
23831 msgid ""
23832 "By default, virt-resize creates an extra partition if there is any extra, "
23833 "unused space after all resizing has happened.  Use this option to prevent "
23834 "the extra partition from being created.  If you do this then the extra space"
23835 " will be inaccessible until you run fdisk, parted, or some other "
23836 "partitioning tool in the guest."
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../resize/virt-resize.pod:459
23841 msgid ""
23842 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23843 "will be created."
23844 msgstr ""
23845
23846 #. type: =item
23847 #: ../resize/virt-resize.pod:462
23848 msgid "B<--no-expand-content>"
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../resize/virt-resize.pod:464
23853 msgid ""
23854 "By default, virt-resize will try to expand the direct contents of "
23855 "partitions, if it knows how (see I<--expand> option above)."
23856 msgstr ""
23857
23858 #. type: textblock
23859 #: ../resize/virt-resize.pod:467
23860 msgid ""
23861 "If you give the I<--no-expand-content> option then virt-resize will not "
23862 "attempt this."
23863 msgstr ""
23864
23865 #. type: =item
23866 #: ../resize/virt-resize.pod:470
23867 msgid "B<--ntfsresize-force>"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../resize/virt-resize.pod:472
23872 msgid ""
23873 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23874 "the NTFS disk is marked as needing a consistency check.  You have to use "
23875 "this option if you want to resize a Windows guest multiple times without "
23876 "booting into Windows between each resize."
23877 msgstr ""
23878
23879 #. type: =item
23880 #: ../resize/virt-resize.pod:478
23881 msgid "B<--output-format> raw"
23882 msgstr ""
23883
23884 #. type: textblock
23885 #: ../resize/virt-resize.pod:480
23886 msgid ""
23887 "Specify the format of the output disk image.  If this flag is not given then"
23888 " it is auto-detected from the image itself."
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../resize/virt-resize.pod:486
23893 msgid ""
23894 "Note that this option I<does not create> the output format.  This option "
23895 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23896 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23897 "SPARSE RAW FORMATS>."
23898 msgstr ""
23899
23900 #. type: textblock
23901 #: ../resize/virt-resize.pod:495
23902 msgid "Don't print the summary."
23903 msgstr ""
23904
23905 #. type: =item
23906 #: ../resize/virt-resize.pod:497
23907 msgid "B<--resize part=size>"
23908 msgstr ""
23909
23910 #. type: textblock
23911 #: ../resize/virt-resize.pod:499
23912 msgid ""
23913 "Resize the named partition (expanding or shrinking it) so that it has the "
23914 "given size."
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../resize/virt-resize.pod:502
23919 msgid ""
23920 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23921 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current"
23922 " size; or as a relative number or percentage.  For example:"
23923 msgstr ""
23924
23925 #. type: verbatim
23926 #: ../resize/virt-resize.pod:508
23927 #, no-wrap
23928 msgid ""
23929 " --resize /dev/sda2=10G\n"
23930 "\n"
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../resize/virt-resize.pod:510
23935 #, no-wrap
23936 msgid ""
23937 " --resize /dev/sda4=90%\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../resize/virt-resize.pod:512
23943 #, no-wrap
23944 msgid ""
23945 " --resize /dev/sda2=+1G\n"
23946 "\n"
23947 msgstr ""
23948
23949 #. type: verbatim
23950 #: ../resize/virt-resize.pod:514
23951 #, no-wrap
23952 msgid ""
23953 " --resize /dev/sda2=-200M\n"
23954 "\n"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../resize/virt-resize.pod:516
23959 #, no-wrap
23960 msgid ""
23961 " --resize /dev/sda1=+128K\n"
23962 "\n"
23963 msgstr ""
23964
23965 #. type: verbatim
23966 #: ../resize/virt-resize.pod:518
23967 #, no-wrap
23968 msgid ""
23969 " --resize /dev/sda1=+10%\n"
23970 "\n"
23971 msgstr ""
23972
23973 #. type: verbatim
23974 #: ../resize/virt-resize.pod:520
23975 #, no-wrap
23976 msgid ""
23977 " --resize /dev/sda1=-10%\n"
23978 "\n"
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../resize/virt-resize.pod:522
23983 msgid ""
23984 "You can increase the size of any partition.  Virt-resize will expand the "
23985 "direct content of the partition if it knows how (see I<--expand> below)."
23986 msgstr ""
23987
23988 #. type: textblock
23989 #: ../resize/virt-resize.pod:526
23990 msgid ""
23991 "You can only I<decrease> the size of partitions that contain filesystems or "
23992 "PVs which have already been shrunk.  Virt-resize will check this has been "
23993 "done before proceeding, or else will print an error (see also I<--resize-"
23994 "force>)."
23995 msgstr ""
23996
23997 #. type: =item
23998 #: ../resize/virt-resize.pod:533
23999 msgid "B<--resize-force part=size>"
24000 msgstr ""
24001
24002 #. type: textblock
24003 #: ../resize/virt-resize.pod:535
24004 msgid ""
24005 "This is the same as I<--resize> except that it will let you decrease the "
24006 "size of any partition.  Generally this means you will lose any data which "
24007 "was at the end of the partition you shrink, but you may not care about that "
24008 "(eg. if shrinking an unused partition, or if you can easily recreate it such"
24009 " as a swap partition)."
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../resize/virt-resize.pod:541
24014 msgid "See also the I<--ignore> option."
24015 msgstr ""
24016
24017 #. type: =item
24018 #: ../resize/virt-resize.pod:543
24019 msgid "B<--shrink part>"
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../resize/virt-resize.pod:545
24024 msgid ""
24025 "Shrink the named partition until the overall disk image fits in the "
24026 "destination.  The named partition B<must> contain a filesystem or PV which "
24027 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24028 "online tools).  Virt-resize will check this and give an error if it has not "
24029 "been done."
24030 msgstr ""
24031
24032 #. type: textblock
24033 #: ../resize/virt-resize.pod:551
24034 msgid ""
24035 "The amount by which the overall disk must be shrunk (after carrying out all "
24036 "other operations requested by the user) is called the \"deficit\".  For "
24037 "example, a straight copy (assume no other operations)  from a 5GB disk image"
24038 " to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24039 "would give an error unless the user specified a partition to shrink and that"
24040 " partition had more than a gigabyte of free space."
24041 msgstr ""
24042
24043 #. type: =head1
24044 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24045 msgid "MACHINE READABLE OUTPUT"
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../resize/virt-resize.pod:571
24050 msgid ""
24051 "The I<--machine-readable> option can be used to make the output more machine"
24052 " friendly, which is useful when calling virt-resize from other programs, "
24053 "GUIs etc."
24054 msgstr ""
24055
24056 #. type: textblock
24057 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24058 msgid "There are two ways to use this option."
24059 msgstr ""
24060
24061 #. type: textblock
24062 #: ../resize/virt-resize.pod:577
24063 msgid ""
24064 "Firstly use the option on its own to query the capabilities of the virt-"
24065 "resize binary.  Typical output looks like this:"
24066 msgstr ""
24067
24068 #. type: verbatim
24069 #: ../resize/virt-resize.pod:580
24070 #, no-wrap
24071 msgid ""
24072 " $ virt-resize --machine-readable\n"
24073 " virt-resize\n"
24074 " ntfsresize-force\n"
24075 " 32bitok\n"
24076 " ntfs\n"
24077 " btrfs\n"
24078 "\n"
24079 msgstr ""
24080
24081 #. type: textblock
24082 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24083 msgid ""
24084 "A list of features is printed, one per line, and the program exits with "
24085 "status 0."
24086 msgstr ""
24087
24088 #. type: textblock
24089 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24090 msgid ""
24091 "Secondly use the option in conjunction with other options to make the "
24092 "regular program output more machine friendly."
24093 msgstr ""
24094
24095 #. type: textblock
24096 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24097 msgid "At the moment this means:"
24098 msgstr ""
24099
24100 #. type: textblock
24101 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24102 msgid ""
24103 "Progress bar messages can be parsed from stdout by looking for this regular "
24104 "expression:"
24105 msgstr ""
24106
24107 #. type: verbatim
24108 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24109 #, no-wrap
24110 msgid ""
24111 " ^[0-9]+/[0-9]+$\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24117 msgid ""
24118 "The calling program should treat messages sent to stdout (except for "
24119 "progress bar messages) as status messages.  They can be logged and/or "
24120 "displayed to the user."
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../resize/virt-resize.pod:612
24125 msgid ""
24126 "The calling program should treat messages sent to stderr as error messages."
24127 "  In addition, virt-resize exits with a non-zero status code if there was a "
24128 "fatal error."
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../resize/virt-resize.pod:618
24133 msgid ""
24134 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24135 "readable> option and will return an error."
24136 msgstr ""
24137
24138 #. type: =head2
24139 #: ../resize/virt-resize.pod:623
24140 msgid "\"Partition 1 does not end on cylinder boundary.\""
24141 msgstr ""
24142
24143 #. type: textblock
24144 #: ../resize/virt-resize.pod:625
24145 msgid ""
24146 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24147 "I<--alignment> parameter).  Usually this means the partitions will not be "
24148 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24149 "for disks manufactured since the early 1990s, and doubly so for virtual hard"
24150 " drives.  Alignment of partitions to cylinders is not required by any modern"
24151 " operating system."
24152 msgstr ""
24153
24154 #. type: =head2
24155 #: ../resize/virt-resize.pod:632
24156 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24157 msgstr ""
24158
24159 #. type: textblock
24160 #: ../resize/virt-resize.pod:634
24161 msgid ""
24162 "In Windows Vista and later versions, Microsoft switched to using a separate "
24163 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24164 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24165 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24166 "the second partition (ie. C: drive)  should work."
24167 msgstr ""
24168
24169 #. type: textblock
24170 #: ../resize/virt-resize.pod:641
24171 msgid ""
24172 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24173 "NTFS partitions have been expanded.  This is just a safety check and (unless"
24174 " it find errors) is nothing to worry about."
24175 msgstr ""
24176
24177 #. type: =head2
24178 #: ../resize/virt-resize.pod:645
24179 msgid "GUEST BOOT STUCK AT \"GRUB\""
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../resize/virt-resize.pod:647
24184 msgid ""
24185 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24186 "printing C<GRUB> on the console, try reinstalling grub."
24187 msgstr ""
24188
24189 #. type: verbatim
24190 #: ../resize/virt-resize.pod:650
24191 #, no-wrap
24192 msgid ""
24193 " guestfish -i -a newdisk\n"
24194 " ><fs> cat /boot/grub/device.map\n"
24195 " # check the contents of this file are sensible or\n"
24196 " # edit the file if necessary\n"
24197 " ><fs> grub-install / /dev/vda\n"
24198 " ><fs> exit\n"
24199 "\n"
24200 msgstr ""
24201
24202 #. type: textblock
24203 #: ../resize/virt-resize.pod:657
24204 msgid ""
24205 "For more flexible guest reconfiguration, including if you need to specify "
24206 "other parameters to grub-install, use L<virt-rescue(1)>."
24207 msgstr ""
24208
24209 #. type: =head1
24210 #: ../resize/virt-resize.pod:660
24211 msgid "ALTERNATIVE TOOLS"
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../resize/virt-resize.pod:662
24216 msgid ""
24217 "There are several proprietary tools for resizing partitions.  We won't "
24218 "mention any here."
24219 msgstr ""
24220
24221 #. type: textblock
24222 #: ../resize/virt-resize.pod:665
24223 msgid ""
24224 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24225 "operations on disk images.  They can resize and move partitions, but I don't"
24226 " think they can do anything with the contents, and they certainly don't "
24227 "understand LVM."
24228 msgstr ""
24229
24230 #. type: textblock
24231 #: ../resize/virt-resize.pod:670
24232 msgid ""
24233 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24234 "but at a much lower level.  You will probably end up hand-calculating sector"
24235 " offsets, which is something that virt-resize was designed to avoid.  If you"
24236 " want to see the guestfish-equivalent commands that virt-resize runs, use "
24237 "the I<--debug> flag."
24238 msgstr ""
24239
24240 #. type: textblock
24241 #: ../resize/virt-resize.pod:690
24242 msgid ""
24243 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24244 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24245 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24246 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-"
24247 "sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24248 msgstr ""
24249
24250 #. type: textblock
24251 #: ../ruby/examples/guestfs-ruby.pod:5
24252 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24253 msgstr ""
24254
24255 #. type: verbatim
24256 #: ../ruby/examples/guestfs-ruby.pod:9
24257 #, no-wrap
24258 msgid ""
24259 " require 'guestfs'\n"
24260 " g = Guestfs::Guestfs.new()\n"
24261 " g.add_drive_opts(\"disk.img\",\n"
24262 "                  :readonly => 1, :format => \"raw\")\n"
24263 " g.launch()\n"
24264 "\n"
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../ruby/examples/guestfs-ruby.pod:17
24269 msgid ""
24270 "This manual page documents how to call libguestfs from the Ruby programming "
24271 "language.  This page just documents the differences from the C API and gives"
24272 " some examples.  If you are not familiar with using libguestfs, you also "
24273 "need to read L<guestfs(3)>."
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../ruby/examples/guestfs-ruby.pod:24
24278 msgid ""
24279 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24280 "This has a single parameter which is the error message (a string)."
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../ruby/examples/guestfs-ruby.pod:38
24285 msgid ""
24286 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-"
24287 "java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L"
24288 "<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24289 msgstr ""
24290
24291 #. type: textblock
24292 #: ../sparsify/virt-sparsify.pod:5
24293 msgid "virt-sparsify - Make a virtual machine disk sparse"
24294 msgstr ""
24295
24296 #. type: verbatim
24297 #: ../sparsify/virt-sparsify.pod:9
24298 #, no-wrap
24299 msgid ""
24300 " virt-sparsify [--options] indisk outdisk\n"
24301 "\n"
24302 msgstr ""
24303
24304 #. type: textblock
24305 #: ../sparsify/virt-sparsify.pod:13
24306 msgid ""
24307 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24308 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24309 "the disk image can be converted back to free space on the host."
24310 msgstr ""
24311
24312 #. type: textblock
24313 #: ../sparsify/virt-sparsify.pod:18
24314 msgid ""
24315 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24316 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../sparsify/virt-sparsify.pod:21
24321 msgid ""
24322 "Virt-sparsify can also convert between some disk formats, for example "
24323 "converting a raw disk image to a thin-provisioned qcow2 image."
24324 msgstr ""
24325
24326 #. type: textblock
24327 #: ../sparsify/virt-sparsify.pod:24
24328 msgid ""
24329 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24330 "machines.  If a virtual machine has more than one attached disk, you must "
24331 "sparsify each one separately."
24332 msgstr ""
24333
24334 #. type: =head2
24335 #: ../sparsify/virt-sparsify.pod:28
24336 msgid "IMPORTANT LIMITATIONS"
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../sparsify/virt-sparsify.pod:34
24341 msgid ""
24342 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24343 "image to a destination image, leaving the source unchanged.  I<Check that "
24344 "the sparsification was successful before deleting the source image>."
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../sparsify/virt-sparsify.pod:41
24349 msgid "The virtual machine I<must be shut down> before using this tool."
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../sparsify/virt-sparsify.pod:45
24354 msgid ""
24355 "Virt-sparsify may require up to 2x the virtual size of the source disk image"
24356 " (1 temporary copy + 1 destination image).  This is in the worst case and "
24357 "usually much less space is required."
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../sparsify/virt-sparsify.pod:51
24362 msgid ""
24363 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../sparsify/virt-sparsify.pod:56
24368 msgid "Virt-sparsify cannot handle encrypted disks."
24369 msgstr ""
24370
24371 #. type: textblock
24372 #: ../sparsify/virt-sparsify.pod:60
24373 msgid ""
24374 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24375 "this space is often used for critical items like bootloaders so it's not "
24376 "really unused."
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../sparsify/virt-sparsify.pod:66
24381 msgid ""
24382 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24383 "to do this unless we can be sure there is no hibernation data, so at the "
24384 "moment swap partitions are ignored."
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../sparsify/virt-sparsify.pod:72
24389 msgid ""
24390 "You may also want to read the manual pages for the associated tools L<virt-"
24391 "filesystems(1)> and L<virt-df(1)> before starting."
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../sparsify/virt-sparsify.pod:77
24396 msgid "Typical usage is:"
24397 msgstr ""
24398
24399 #. type: verbatim
24400 #: ../sparsify/virt-sparsify.pod:79
24401 #, no-wrap
24402 msgid ""
24403 " virt-sparsify indisk outdisk\n"
24404 "\n"
24405 msgstr ""
24406
24407 #. type: textblock
24408 #: ../sparsify/virt-sparsify.pod:81
24409 msgid ""
24410 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24411 "is created, or overwritten if it already exists.  The format of the input "
24412 "disk is detected (eg. qcow2) and the same format is used for the output "
24413 "disk."
24414 msgstr ""
24415
24416 #. type: textblock
24417 #: ../sparsify/virt-sparsify.pod:86
24418 msgid "To convert between formats, use the I<--convert> option:"
24419 msgstr ""
24420
24421 #. type: verbatim
24422 #: ../sparsify/virt-sparsify.pod:88
24423 #, no-wrap
24424 msgid ""
24425 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24426 "\n"
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../sparsify/virt-sparsify.pod:90
24431 msgid ""
24432 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24433 "can find within the source disk image.  You can get it to ignore (don't zero"
24434 " free space on) certain filesystems by doing:"
24435 msgstr ""
24436
24437 #. type: verbatim
24438 #: ../sparsify/virt-sparsify.pod:94
24439 #, no-wrap
24440 msgid ""
24441 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24442 "\n"
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../sparsify/virt-sparsify.pod:96
24447 msgid ""
24448 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24449 msgstr ""
24450
24451 #. type: =item
24452 #: ../sparsify/virt-sparsify.pod:107
24453 msgid "B<--convert> raw"
24454 msgstr ""
24455
24456 #. type: =item
24457 #: ../sparsify/virt-sparsify.pod:109
24458 msgid "B<--convert> qcow2"
24459 msgstr ""
24460
24461 #. type: =item
24462 #: ../sparsify/virt-sparsify.pod:111
24463 msgid "B<--convert> [other formats]"
24464 msgstr ""
24465
24466 #. type: textblock
24467 #: ../sparsify/virt-sparsify.pod:113
24468 msgid ""
24469 "Use C<output-format> as the format for the destination image.  If this is "
24470 "not specified, then the input format is used."
24471 msgstr ""
24472
24473 #. type: textblock
24474 #: ../sparsify/virt-sparsify.pod:116
24475 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24476 msgstr ""
24477
24478 #. type: textblock
24479 #: ../sparsify/virt-sparsify.pod:118
24480 msgid ""
24481 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24482 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24483 msgstr ""
24484
24485 #. type: textblock
24486 #: ../sparsify/virt-sparsify.pod:122
24487 msgid ""
24488 "Specifying the I<--convert> option is usually a good idea, because then "
24489 "virt-sparsify doesn't need to try to guess the input format."
24490 msgstr ""
24491
24492 #. type: =item
24493 #: ../sparsify/virt-sparsify.pod:127
24494 msgid "B<--format> qcow2"
24495 msgstr ""
24496
24497 #. type: =item
24498 #: ../sparsify/virt-sparsify.pod:135
24499 msgid "B<--ignore> filesystem"
24500 msgstr ""
24501
24502 #. type: =item
24503 #: ../sparsify/virt-sparsify.pod:137
24504 msgid "B<--ignore> volgroup"
24505 msgstr ""
24506
24507 #. type: textblock
24508 #: ../sparsify/virt-sparsify.pod:139
24509 msgid ""
24510 "Ignore the named filesystem.  Free space on the filesystem will not be "
24511 "zeroed, but existing blocks of zeroes will still be sparsified."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../sparsify/virt-sparsify.pod:142
24516 msgid ""
24517 "In the second form, this ignores the named volume group.  Use the volume "
24518 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../sparsify/virt-sparsify.pod:157
24523 msgid "This disables progress bars and other unnecessary output."
24524 msgstr ""
24525
24526 #. type: textblock
24527 #: ../sparsify/virt-sparsify.pod:179
24528 msgid ""
24529 "The I<--machine-readable> option can be used to make the output more machine"
24530 " friendly, which is useful when calling virt-sparsify from other programs, "
24531 "GUIs etc."
24532 msgstr ""
24533
24534 #. type: textblock
24535 #: ../sparsify/virt-sparsify.pod:185
24536 msgid ""
24537 "Firstly use the option on its own to query the capabilities of the virt-"
24538 "sparsify binary.  Typical output looks like this:"
24539 msgstr ""
24540
24541 #. type: verbatim
24542 #: ../sparsify/virt-sparsify.pod:188
24543 #, no-wrap
24544 msgid ""
24545 " $ virt-sparsify --machine-readable\n"
24546 " virt-sparsify\n"
24547 " ntfs\n"
24548 " btrfs\n"
24549 "\n"
24550 msgstr ""
24551
24552 #. type: textblock
24553 #: ../sparsify/virt-sparsify.pod:218
24554 msgid ""
24555 "The calling program should treat messages sent to stderr as error messages."
24556 "  In addition, virt-sparsify exits with a non-zero status code if there was "
24557 "a fatal error."
24558 msgstr ""
24559
24560 #. type: textblock
24561 #: ../sparsify/virt-sparsify.pod:224
24562 msgid ""
24563 "All versions of virt-sparsify have supported the I<--machine-readable> "
24564 "option."
24565 msgstr ""
24566
24567 #. type: textblock
24568 #: ../sparsify/virt-sparsify.pod:238
24569 msgid ""
24570 "Location of the temporary directory used for the potentially large temporary"
24571 " overlay file."
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../sparsify/virt-sparsify.pod:241
24576 msgid ""
24577 "You should ensure there is enough free space in the worst case for a full "
24578 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24579 "to another directory that has enough space."
24580 msgstr ""
24581
24582 #. type: textblock
24583 #: ../sparsify/virt-sparsify.pod:245
24584 msgid "This defaults to C</tmp>."
24585 msgstr ""
24586
24587 #. type: textblock
24588 #: ../sparsify/virt-sparsify.pod:249
24589 msgid ""
24590 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../sparsify/virt-sparsify.pod:253
24595 msgid ""
24596 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>,"
24597 " L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-"
24598 "img(1)>, L<http://libguestfs.org/>."
24599 msgstr ""
24600
24601 #. type: =head2
24602 #: ../src/guestfs-actions.pod:1
24603 msgid "guestfs_add_cdrom"
24604 msgstr ""
24605
24606 #. type: verbatim
24607 #: ../src/guestfs-actions.pod:3
24608 #, no-wrap
24609 msgid ""
24610 " int\n"
24611 " guestfs_add_cdrom (guestfs_h *g,\n"
24612 "                    const char *filename);\n"
24613 "\n"
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
24618 #: ../src/guestfs-actions.pod:323
24619 msgid ""
24620 "I<This function is deprecated.> In new code, use the "
24621 "L</guestfs_add_drive_opts> call instead."
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../src/guestfs-actions.pod:24
24626 msgid ""
24627 "This call checks for the existence of C<filename>.  This stops you from "
24628 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24629 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call"
24630 " instead."
24631 msgstr ""
24632
24633 #. type: textblock
24634 #: ../src/guestfs-actions.pod:31
24635 msgid ""
24636 "If you just want to add an ISO file (often you use this as an efficient way "
24637 "to transfer large files into the guest), then you should probably use "
24638 "C<guestfs_add_drive_ro> instead."
24639 msgstr ""
24640
24641 #. type: textblock
24642 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
24643 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
24644 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
24645 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
24646 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
24647 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
24648 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
24649 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
24650 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
24651 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
24652 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
24653 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
24654 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
24655 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
24656 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
24657 #: ../src/guestfs-actions.pod:1423 ../src/guestfs-actions.pod:1474
24658 #: ../src/guestfs-actions.pod:1530 ../src/guestfs-actions.pod:1582
24659 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1615
24660 #: ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1713
24661 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1769
24662 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:1924
24663 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:2166
24664 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:2275
24665 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2927
24666 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3023
24667 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
24668 #: ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4309
24669 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4336
24670 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
24671 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4473
24672 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4510
24673 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4556
24674 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4610
24675 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4664
24676 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4712
24677 #: ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4741
24678 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4773
24679 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4886
24680 #: ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:4950
24681 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:4986
24682 #: ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5016
24683 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5047
24684 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5089
24685 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5225
24686 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
24687 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5306
24688 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5336
24689 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5366
24690 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5424
24691 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5483
24692 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5514
24693 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5616
24694 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5706
24695 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5751
24696 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5909
24697 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5988
24698 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6056
24699 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6139
24700 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6166
24701 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6474
24702 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6507
24703 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533
24704 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6559
24705 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6596
24706 #: ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6634
24707 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6682
24708 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6723
24709 #: ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6763
24710 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6799
24711 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6846
24712 #: ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6889
24713 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6929
24714 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6963
24715 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7026
24716 #: ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7089
24717 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7325
24718 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7350
24719 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7385
24720 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7411
24721 #: ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439
24722 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7515
24723 #: ../src/guestfs-actions.pod:7531 ../src/guestfs-actions.pod:7547
24724 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7577
24725 #: ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7633
24726 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7688
24727 #: ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:7719
24728 #: ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7789
24729 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7920
24730 #: ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:7989
24731 #: ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8047
24732 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8143
24733 #: ../src/guestfs-actions.pod:8163 ../src/guestfs-actions.pod:8196
24734 #: ../src/guestfs-actions.pod:8260 ../src/guestfs-actions.pod:8283
24735 #: ../src/guestfs-actions.pod:8312
24736 msgid "This function returns 0 on success or -1 on error."
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
24741 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2389
24742 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2612
24743 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4102
24744 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:6684
24745 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6950
24746 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7566
24747 #: ../src/guestfs-actions.pod:8089
24748 msgid "(Added in 0.3)"
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../src/guestfs-actions.pod:41
24753 msgid "guestfs_add_domain"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../src/guestfs-actions.pod:43
24758 #, no-wrap
24759 msgid ""
24760 " int\n"
24761 " guestfs_add_domain (guestfs_h *g,\n"
24762 "                     const char *dom,\n"
24763 "                     ...);\n"
24764 "\n"
24765 msgstr ""
24766
24767 #. type: textblock
24768 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
24769 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
24770 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
24771 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1462
24772 #: ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:3280
24773 #: ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5410
24774 #: ../src/guestfs-actions.pod:5627
24775 msgid ""
24776 "You may supply a list of optional arguments to this call.  Use zero or more "
24777 "of the following pairs of parameters, and terminate the list with C<-1> on "
24778 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24779 msgstr ""
24780
24781 #. type: verbatim
24782 #: ../src/guestfs-actions.pod:53
24783 #, no-wrap
24784 msgid ""
24785 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24786 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24787 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24788 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24789 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24790 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24791 "\n"
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../src/guestfs-actions.pod:60
24796 msgid ""
24797 "This function adds the disk(s) attached to the named libvirt domain C<dom>."
24798 "  It works by connecting to libvirt, requesting the domain and domain XML "
24799 "from libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on"
24800 " each one."
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../src/guestfs-actions.pod:141
24805 msgid ""
24806 "The other optional parameters are passed directly through to "
24807 "C<guestfs_add_drive_opts>."
24808 msgstr ""
24809
24810 #. type: textblock
24811 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
24812 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
24813 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24814 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1789
24815 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2348
24816 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2510
24817 #: ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2576
24818 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2914
24819 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3416
24820 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5806
24821 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6236
24822 #: ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:7674
24823 #: ../src/guestfs-actions.pod:8100 ../src/guestfs-actions.pod:8113
24824 #: ../src/guestfs-actions.pod:8126
24825 msgid "On error this function returns -1."
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../src/guestfs-actions.pod:146
24830 msgid "(Added in 1.7.4)"
24831 msgstr ""
24832
24833 #. type: =head2
24834 #: ../src/guestfs-actions.pod:148
24835 msgid "guestfs_add_domain_va"
24836 msgstr ""
24837
24838 #. type: verbatim
24839 #: ../src/guestfs-actions.pod:150
24840 #, no-wrap
24841 msgid ""
24842 " int\n"
24843 " guestfs_add_domain_va (guestfs_h *g,\n"
24844 "                        const char *dom,\n"
24845 "                        va_list args);\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../src/guestfs-actions.pod:155
24851 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
24856 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
24857 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
24858 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
24859 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
24860 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1401
24861 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1452
24862 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1503
24863 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1559
24864 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3376
24865 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5178
24866 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5450
24867 #: ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5687
24868 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24869 msgstr ""
24870
24871 #. type: =head2
24872 #: ../src/guestfs-actions.pod:159
24873 msgid "guestfs_add_domain_argv"
24874 msgstr ""
24875
24876 #. type: verbatim
24877 #: ../src/guestfs-actions.pod:161
24878 #, no-wrap
24879 msgid ""
24880 " int\n"
24881 " guestfs_add_domain_argv (guestfs_h *g,\n"
24882 "                          const char *dom,\n"
24883 "                          const struct guestfs_add_domain_argv *optargs);\n"
24884 "\n"
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../src/guestfs-actions.pod:166
24889 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24890 msgstr ""
24891
24892 #. type: =head2
24893 #: ../src/guestfs-actions.pod:170
24894 msgid "guestfs_add_drive"
24895 msgstr ""
24896
24897 #. type: verbatim
24898 #: ../src/guestfs-actions.pod:172
24899 #, no-wrap
24900 msgid ""
24901 " int\n"
24902 " guestfs_add_drive (guestfs_h *g,\n"
24903 "                    const char *filename);\n"
24904 "\n"
24905 msgstr ""
24906
24907 #. type: textblock
24908 #: ../src/guestfs-actions.pod:176
24909 msgid ""
24910 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no"
24911 " optional parameters, so the disk is added writable, with the format being "
24912 "detected automatically."
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../src/guestfs-actions.pod:180
24917 msgid ""
24918 "Automatic detection of the format opens you up to a potential security hole "
24919 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24920 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24921 "you should think about replacing calls to this function with calls to "
24922 "C<guestfs_add_drive_opts>, and specifying the format."
24923 msgstr ""
24924
24925 #. type: =head2
24926 #: ../src/guestfs-actions.pod:191
24927 msgid "guestfs_add_drive_opts"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../src/guestfs-actions.pod:193
24932 #, no-wrap
24933 msgid ""
24934 " int\n"
24935 " guestfs_add_drive_opts (guestfs_h *g,\n"
24936 "                         const char *filename,\n"
24937 "                         ...);\n"
24938 "\n"
24939 msgstr ""
24940
24941 #. type: verbatim
24942 #: ../src/guestfs-actions.pod:203
24943 #, no-wrap
24944 msgid ""
24945 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24946 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24947 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24948 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../src/guestfs-actions.pod:233
24954 msgid ""
24955 "This forces the image format.  If you omit this (or use C<guestfs_add_drive>"
24956 " or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24957 "Possible formats include C<raw> and C<qcow2>."
24958 msgstr ""
24959
24960 #. type: textblock
24961 #: ../src/guestfs-actions.pod:244
24962 msgid ""
24963 "This rarely-used option lets you emulate the behaviour of the deprecated "
24964 "C<guestfs_add_drive_with_if> call (q.v.)"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../src/guestfs-actions.pod:256
24969 msgid "(Added in 1.5.23)"
24970 msgstr ""
24971
24972 #. type: =head2
24973 #: ../src/guestfs-actions.pod:258
24974 msgid "guestfs_add_drive_opts_va"
24975 msgstr ""
24976
24977 #. type: verbatim
24978 #: ../src/guestfs-actions.pod:260
24979 #, no-wrap
24980 msgid ""
24981 " int\n"
24982 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24983 "                            const char *filename,\n"
24984 "                            va_list args);\n"
24985 "\n"
24986 msgstr ""
24987
24988 #. type: textblock
24989 #: ../src/guestfs-actions.pod:265
24990 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24991 msgstr ""
24992
24993 #. type: =head2
24994 #: ../src/guestfs-actions.pod:269
24995 msgid "guestfs_add_drive_opts_argv"
24996 msgstr ""
24997
24998 #. type: verbatim
24999 #: ../src/guestfs-actions.pod:271
25000 #, no-wrap
25001 msgid ""
25002 " int\n"
25003 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25004 "                              const char *filename,\n"
25005 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25006 "\n"
25007 msgstr ""
25008
25009 #. type: textblock
25010 #: ../src/guestfs-actions.pod:276
25011 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25012 msgstr ""
25013
25014 #. type: =head2
25015 #: ../src/guestfs-actions.pod:280
25016 msgid "guestfs_add_drive_ro"
25017 msgstr ""
25018
25019 #. type: verbatim
25020 #: ../src/guestfs-actions.pod:282
25021 #, no-wrap
25022 msgid ""
25023 " int\n"
25024 " guestfs_add_drive_ro (guestfs_h *g,\n"
25025 "                       const char *filename);\n"
25026 "\n"
25027 msgstr ""
25028
25029 #. type: textblock
25030 #: ../src/guestfs-actions.pod:286
25031 msgid ""
25032 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25033 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25034 "disk is added read-only, with the format being detected automatically."
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../src/guestfs-actions.pod:293
25039 msgid "(Added in 1.0.38)"
25040 msgstr ""
25041
25042 #. type: =head2
25043 #: ../src/guestfs-actions.pod:295
25044 msgid "guestfs_add_drive_ro_with_if"
25045 msgstr ""
25046
25047 #. type: verbatim
25048 #: ../src/guestfs-actions.pod:297
25049 #, no-wrap
25050 msgid ""
25051 " int\n"
25052 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25053 "                               const char *filename,\n"
25054 "                               const char *iface);\n"
25055 "\n"
25056 msgstr ""
25057
25058 #. type: textblock
25059 #: ../src/guestfs-actions.pod:309
25060 msgid ""
25061 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the"
25062 " QEMU interface emulation to use at run time."
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25067 #: ../src/guestfs-actions.pod:2873
25068 msgid "(Added in 1.0.84)"
25069 msgstr ""
25070
25071 #. type: =head2
25072 #: ../src/guestfs-actions.pod:316
25073 msgid "guestfs_add_drive_with_if"
25074 msgstr ""
25075
25076 #. type: verbatim
25077 #: ../src/guestfs-actions.pod:318
25078 #, no-wrap
25079 msgid ""
25080 " int\n"
25081 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25082 "                            const char *filename,\n"
25083 "                            const char *iface);\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../src/guestfs-actions.pod:330
25089 msgid ""
25090 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25091 "QEMU interface emulation to use at run time."
25092 msgstr ""
25093
25094 #. type: =head2
25095 #: ../src/guestfs-actions.pod:337
25096 msgid "guestfs_aug_clear"
25097 msgstr ""
25098
25099 #. type: verbatim
25100 #: ../src/guestfs-actions.pod:339
25101 #, no-wrap
25102 msgid ""
25103 " int\n"
25104 " guestfs_aug_clear (guestfs_h *g,\n"
25105 "                    const char *augpath);\n"
25106 "\n"
25107 msgstr ""
25108
25109 #. type: textblock
25110 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2601
25111 msgid "(Added in 1.3.4)"
25112 msgstr ""
25113
25114 #. type: =head2
25115 #: ../src/guestfs-actions.pod:350
25116 msgid "guestfs_aug_close"
25117 msgstr ""
25118
25119 #. type: verbatim
25120 #: ../src/guestfs-actions.pod:352
25121 #, no-wrap
25122 msgid ""
25123 " int\n"
25124 " guestfs_aug_close (guestfs_h *g);\n"
25125 "\n"
25126 msgstr ""
25127
25128 #. type: textblock
25129 #: ../src/guestfs-actions.pod:355
25130 msgid ""
25131 "Close the current Augeas handle and free up any resources used by it.  After"
25132 " calling this, you have to call C<guestfs_aug_init> again before you can use"
25133 " any other Augeas functions."
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25138 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25139 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25140 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25141 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25142 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25143 #: ../src/guestfs-actions.pod:6313
25144 msgid "(Added in 0.7)"
25145 msgstr ""
25146
25147 #. type: =head2
25148 #: ../src/guestfs-actions.pod:364
25149 msgid "guestfs_aug_defnode"
25150 msgstr ""
25151
25152 #. type: verbatim
25153 #: ../src/guestfs-actions.pod:366
25154 #, no-wrap
25155 msgid ""
25156 " struct guestfs_int_bool *\n"
25157 " guestfs_aug_defnode (guestfs_h *g,\n"
25158 "                      const char *name,\n"
25159 "                      const char *expr,\n"
25160 "                      const char *val);\n"
25161 "\n"
25162 msgstr ""
25163
25164 #. type: textblock
25165 #: ../src/guestfs-actions.pod:375
25166 msgid ""
25167 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25168 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25169 "containing that single node."
25170 msgstr ""
25171
25172 #. type: textblock
25173 #: ../src/guestfs-actions.pod:383
25174 msgid ""
25175 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25176 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25177 msgstr ""
25178
25179 #. type: =head2
25180 #: ../src/guestfs-actions.pod:389
25181 msgid "guestfs_aug_defvar"
25182 msgstr ""
25183
25184 #. type: verbatim
25185 #: ../src/guestfs-actions.pod:391
25186 #, no-wrap
25187 msgid ""
25188 " int\n"
25189 " guestfs_aug_defvar (guestfs_h *g,\n"
25190 "                     const char *name,\n"
25191 "                     const char *expr);\n"
25192 "\n"
25193 msgstr ""
25194
25195 #. type: =head2
25196 #: ../src/guestfs-actions.pod:407
25197 msgid "guestfs_aug_get"
25198 msgstr ""
25199
25200 #. type: verbatim
25201 #: ../src/guestfs-actions.pod:409
25202 #, no-wrap
25203 msgid ""
25204 " char *\n"
25205 " guestfs_aug_get (guestfs_h *g,\n"
25206 "                  const char *augpath);\n"
25207 "\n"
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25212 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25213 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25214 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1675
25215 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:1828
25216 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2128
25217 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:2308
25218 #: ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2418
25219 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2624
25220 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:3042
25221 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3248
25222 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3482
25223 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3531
25224 #: ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3628
25225 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3668
25226 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4648
25227 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4928
25228 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6025
25229 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6389
25230 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:7110
25231 #: ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7150
25232 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7848
25233 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7885
25234 #: ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8376
25235 msgid ""
25236 "This function returns a string, or NULL on error.  I<The caller must free "
25237 "the returned string after use>."
25238 msgstr ""
25239
25240 #. type: =head2
25241 #: ../src/guestfs-actions.pod:421
25242 msgid "guestfs_aug_init"
25243 msgstr ""
25244
25245 #. type: verbatim
25246 #: ../src/guestfs-actions.pod:423
25247 #, no-wrap
25248 msgid ""
25249 " int\n"
25250 " guestfs_aug_init (guestfs_h *g,\n"
25251 "                   const char *root,\n"
25252 "                   int flags);\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: textblock
25257 #: ../src/guestfs-actions.pod:432
25258 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:457
25263 msgid ""
25264 "This option is only useful when debugging Augeas lenses.  Use of this option"
25265 " may require additional memory for the libguestfs appliance.  You may need "
25266 "to set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25267 "C<guestfs_set_memsize>."
25268 msgstr ""
25269
25270 #. type: textblock
25271 #: ../src/guestfs-actions.pod:472
25272 msgid "Do not load the tree in C<guestfs_aug_init>."
25273 msgstr ""
25274
25275 #. type: textblock
25276 #: ../src/guestfs-actions.pod:476
25277 msgid "To close the handle, you can call C<guestfs_aug_close>."
25278 msgstr ""
25279
25280 #. type: =head2
25281 #: ../src/guestfs-actions.pod:484
25282 msgid "guestfs_aug_insert"
25283 msgstr ""
25284
25285 #. type: verbatim
25286 #: ../src/guestfs-actions.pod:486
25287 #, no-wrap
25288 msgid ""
25289 " int\n"
25290 " guestfs_aug_insert (guestfs_h *g,\n"
25291 "                     const char *augpath,\n"
25292 "                     const char *label,\n"
25293 "                     int before);\n"
25294 "\n"
25295 msgstr ""
25296
25297 #. type: =head2
25298 #: ../src/guestfs-actions.pod:504
25299 msgid "guestfs_aug_load"
25300 msgstr ""
25301
25302 #. type: verbatim
25303 #: ../src/guestfs-actions.pod:506
25304 #, no-wrap
25305 msgid ""
25306 " int\n"
25307 " guestfs_aug_load (guestfs_h *g);\n"
25308 "\n"
25309 msgstr ""
25310
25311 #. type: =head2
25312 #: ../src/guestfs-actions.pod:518
25313 msgid "guestfs_aug_ls"
25314 msgstr ""
25315
25316 #. type: verbatim
25317 #: ../src/guestfs-actions.pod:520
25318 #, no-wrap
25319 msgid ""
25320 " char **\n"
25321 " guestfs_aug_ls (guestfs_h *g,\n"
25322 "                 const char *augpath);\n"
25323 "\n"
25324 msgstr ""
25325
25326 #. type: textblock
25327 #: ../src/guestfs-actions.pod:524
25328 msgid ""
25329 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25330 "sorting the resulting nodes into alphabetical order."
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25335 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25336 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1862
25337 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:1984
25338 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2696
25339 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2731
25340 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2820
25341 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2940
25342 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3584
25343 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:4178
25344 #: ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4215
25345 #: ../src/guestfs-actions.pod:4277 ../src/guestfs-actions.pod:4382
25346 #: ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5547
25347 #: ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6309
25348 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:7190
25349 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7306
25350 #: ../src/guestfs-actions.pod:7452 ../src/guestfs-actions.pod:7476
25351 #: ../src/guestfs-actions.pod:7952 ../src/guestfs-actions.pod:7972
25352 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8213
25353 #: ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8326
25354 #: ../src/guestfs-actions.pod:8345 ../src/guestfs-actions.pod:8391
25355 #: ../src/guestfs-actions.pod:8410
25356 msgid ""
25357 "This function returns a NULL-terminated array of strings (like "
25358 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25359 "strings and the array after use>."
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25364 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1900
25365 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:3973
25366 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
25367 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4901
25368 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5551
25369 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6521
25370 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6547
25371 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7690
25372 #: ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7936
25373 #: ../src/guestfs-actions.pod:8201
25374 msgid "(Added in 0.8)"
25375 msgstr ""
25376
25377 #. type: =head2
25378 #: ../src/guestfs-actions.pod:533
25379 msgid "guestfs_aug_match"
25380 msgstr ""
25381
25382 #. type: verbatim
25383 #: ../src/guestfs-actions.pod:535
25384 #, no-wrap
25385 msgid ""
25386 " char **\n"
25387 " guestfs_aug_match (guestfs_h *g,\n"
25388 "                    const char *augpath);\n"
25389 "\n"
25390 msgstr ""
25391
25392 #. type: =head2
25393 #: ../src/guestfs-actions.pod:549
25394 msgid "guestfs_aug_mv"
25395 msgstr ""
25396
25397 #. type: verbatim
25398 #: ../src/guestfs-actions.pod:551
25399 #, no-wrap
25400 msgid ""
25401 " int\n"
25402 " guestfs_aug_mv (guestfs_h *g,\n"
25403 "                 const char *src,\n"
25404 "                 const char *dest);\n"
25405 "\n"
25406 msgstr ""
25407
25408 #. type: =head2
25409 #: ../src/guestfs-actions.pod:563
25410 msgid "guestfs_aug_rm"
25411 msgstr ""
25412
25413 #. type: verbatim
25414 #: ../src/guestfs-actions.pod:565
25415 #, no-wrap
25416 msgid ""
25417 " int\n"
25418 " guestfs_aug_rm (guestfs_h *g,\n"
25419 "                 const char *augpath);\n"
25420 "\n"
25421 msgstr ""
25422
25423 #. type: =head2
25424 #: ../src/guestfs-actions.pod:577
25425 msgid "guestfs_aug_save"
25426 msgstr ""
25427
25428 #. type: verbatim
25429 #: ../src/guestfs-actions.pod:579
25430 #, no-wrap
25431 msgid ""
25432 " int\n"
25433 " guestfs_aug_save (guestfs_h *g);\n"
25434 "\n"
25435 msgstr ""
25436
25437 #. type: textblock
25438 #: ../src/guestfs-actions.pod:584
25439 msgid ""
25440 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25441 "are saved."
25442 msgstr ""
25443
25444 #. type: =head2
25445 #: ../src/guestfs-actions.pod:591
25446 msgid "guestfs_aug_set"
25447 msgstr ""
25448
25449 #. type: verbatim
25450 #: ../src/guestfs-actions.pod:593
25451 #, no-wrap
25452 msgid ""
25453 " int\n"
25454 " guestfs_aug_set (guestfs_h *g,\n"
25455 "                  const char *augpath,\n"
25456 "                  const char *val);\n"
25457 "\n"
25458 msgstr ""
25459
25460 #. type: textblock
25461 #: ../src/guestfs-actions.pod:600
25462 msgid ""
25463 "In the Augeas API, it is possible to clear a node by setting the value to "
25464 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25465 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25466 msgstr ""
25467
25468 #. type: =head2
25469 #: ../src/guestfs-actions.pod:609
25470 msgid "guestfs_available"
25471 msgstr ""
25472
25473 #. type: verbatim
25474 #: ../src/guestfs-actions.pod:611
25475 #, no-wrap
25476 msgid ""
25477 " int\n"
25478 " guestfs_available (guestfs_h *g,\n"
25479 "                    char *const *groups);\n"
25480 "\n"
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../src/guestfs-actions.pod:619
25485 msgid ""
25486 "The libguestfs groups, and the functions that those groups correspond to, "
25487 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25488 "runtime by calling C<guestfs_available_all_groups>."
25489 msgstr ""
25490
25491 #. type: textblock
25492 #: ../src/guestfs-actions.pod:643
25493 msgid "You must call C<guestfs_launch> before calling this function."
25494 msgstr ""
25495
25496 #. type: textblock
25497 #: ../src/guestfs-actions.pod:665
25498 msgid ""
25499 "This call was added in version C<1.0.80>.  In previous versions of "
25500 "libguestfs all you could do would be to speculatively execute a command to "
25501 "find out if the daemon implemented it.  See also C<guestfs_version>."
25502 msgstr ""
25503
25504 #. type: textblock
25505 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1645
25506 msgid "(Added in 1.0.80)"
25507 msgstr ""
25508
25509 #. type: =head2
25510 #: ../src/guestfs-actions.pod:676
25511 msgid "guestfs_available_all_groups"
25512 msgstr ""
25513
25514 #. type: verbatim
25515 #: ../src/guestfs-actions.pod:678
25516 #, no-wrap
25517 msgid ""
25518 " char **\n"
25519 " guestfs_available_all_groups (guestfs_h *g);\n"
25520 "\n"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:681
25525 msgid ""
25526 "This command returns a list of all optional groups that this daemon knows "
25527 "about.  Note this returns both supported and unsupported groups.  To find "
25528 "out which ones the daemon can actually support you have to call "
25529 "C<guestfs_available> on each member of the returned list."
25530 msgstr ""
25531
25532 #. type: textblock
25533 #: ../src/guestfs-actions.pod:687
25534 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25535 msgstr ""
25536
25537 #. type: textblock
25538 #: ../src/guestfs-actions.pod:693
25539 msgid "(Added in 1.3.15)"
25540 msgstr ""
25541
25542 #. type: =head2
25543 #: ../src/guestfs-actions.pod:695
25544 msgid "guestfs_base64_in"
25545 msgstr ""
25546
25547 #. type: verbatim
25548 #: ../src/guestfs-actions.pod:697
25549 #, no-wrap
25550 msgid ""
25551 " int\n"
25552 " guestfs_base64_in (guestfs_h *g,\n"
25553 "                    const char *base64file,\n"
25554 "                    const char *filename);\n"
25555 "\n"
25556 msgstr ""
25557
25558 #. type: textblock
25559 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25560 msgid "(Added in 1.3.5)"
25561 msgstr ""
25562
25563 #. type: =head2
25564 #: ../src/guestfs-actions.pod:709
25565 msgid "guestfs_base64_out"
25566 msgstr ""
25567
25568 #. type: verbatim
25569 #: ../src/guestfs-actions.pod:711
25570 #, no-wrap
25571 msgid ""
25572 " int\n"
25573 " guestfs_base64_out (guestfs_h *g,\n"
25574 "                     const char *filename,\n"
25575 "                     const char *base64file);\n"
25576 "\n"
25577 msgstr ""
25578
25579 #. type: =head2
25580 #: ../src/guestfs-actions.pod:723
25581 msgid "guestfs_blockdev_flushbufs"
25582 msgstr ""
25583
25584 #. type: verbatim
25585 #: ../src/guestfs-actions.pod:725
25586 #, no-wrap
25587 msgid ""
25588 " int\n"
25589 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25590 "                             const char *device);\n"
25591 "\n"
25592 msgstr ""
25593
25594 #. type: textblock
25595 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
25596 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
25597 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
25598 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
25599 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25600 msgid "(Added in 0.9.3)"
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../src/guestfs-actions.pod:738
25605 msgid "guestfs_blockdev_getbsz"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../src/guestfs-actions.pod:740
25610 #, no-wrap
25611 msgid ""
25612 " int\n"
25613 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25614 "                          const char *device);\n"
25615 "\n"
25616 msgstr ""
25617
25618 #. type: =head2
25619 #: ../src/guestfs-actions.pod:755
25620 msgid "guestfs_blockdev_getro"
25621 msgstr ""
25622
25623 #. type: verbatim
25624 #: ../src/guestfs-actions.pod:757
25625 #, no-wrap
25626 msgid ""
25627 " int\n"
25628 " guestfs_blockdev_getro (guestfs_h *g,\n"
25629 "                         const char *device);\n"
25630 "\n"
25631 msgstr ""
25632
25633 #. type: textblock
25634 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1883
25635 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:2387
25636 #: ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2470
25637 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2536
25638 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2587
25639 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3685
25640 #: ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3719
25641 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895
25642 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924
25643 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955
25644 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:3985
25645 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4012
25646 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4042
25647 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4069
25648 #: ../src/guestfs-actions.pod:5788
25649 msgid "This function returns a C truth value on success or -1 on error."
25650 msgstr ""
25651
25652 #. type: =head2
25653 #: ../src/guestfs-actions.pod:770
25654 msgid "guestfs_blockdev_getsize64"
25655 msgstr ""
25656
25657 #. type: verbatim
25658 #: ../src/guestfs-actions.pod:772
25659 #, no-wrap
25660 msgid ""
25661 " int64_t\n"
25662 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25663 "                             const char *device);\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: textblock
25668 #: ../src/guestfs-actions.pod:778
25669 msgid "See also C<guestfs_blockdev_getsz>."
25670 msgstr ""
25671
25672 #. type: =head2
25673 #: ../src/guestfs-actions.pod:786
25674 msgid "guestfs_blockdev_getss"
25675 msgstr ""
25676
25677 #. type: verbatim
25678 #: ../src/guestfs-actions.pod:788
25679 #, no-wrap
25680 msgid ""
25681 " int\n"
25682 " guestfs_blockdev_getss (guestfs_h *g,\n"
25683 "                         const char *device);\n"
25684 "\n"
25685 msgstr ""
25686
25687 #. type: textblock
25688 #: ../src/guestfs-actions.pod:795
25689 msgid ""
25690 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25691 "that)."
25692 msgstr ""
25693
25694 #. type: =head2
25695 #: ../src/guestfs-actions.pod:804
25696 msgid "guestfs_blockdev_getsz"
25697 msgstr ""
25698
25699 #. type: verbatim
25700 #: ../src/guestfs-actions.pod:806
25701 #, no-wrap
25702 msgid ""
25703 " int64_t\n"
25704 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25705 "                         const char *device);\n"
25706 "\n"
25707 msgstr ""
25708
25709 #. type: textblock
25710 #: ../src/guestfs-actions.pod:813
25711 msgid ""
25712 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25713 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25714 msgstr ""
25715
25716 #. type: =head2
25717 #: ../src/guestfs-actions.pod:823
25718 msgid "guestfs_blockdev_rereadpt"
25719 msgstr ""
25720
25721 #. type: verbatim
25722 #: ../src/guestfs-actions.pod:825
25723 #, no-wrap
25724 msgid ""
25725 " int\n"
25726 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25727 "                            const char *device);\n"
25728 "\n"
25729 msgstr ""
25730
25731 #. type: =head2
25732 #: ../src/guestfs-actions.pod:837
25733 msgid "guestfs_blockdev_setbsz"
25734 msgstr ""
25735
25736 #. type: verbatim
25737 #: ../src/guestfs-actions.pod:839
25738 #, no-wrap
25739 msgid ""
25740 " int\n"
25741 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25742 "                          const char *device,\n"
25743 "                          int blocksize);\n"
25744 "\n"
25745 msgstr ""
25746
25747 #. type: =head2
25748 #: ../src/guestfs-actions.pod:855
25749 msgid "guestfs_blockdev_setro"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../src/guestfs-actions.pod:857
25754 #, no-wrap
25755 msgid ""
25756 " int\n"
25757 " guestfs_blockdev_setro (guestfs_h *g,\n"
25758 "                         const char *device);\n"
25759 "\n"
25760 msgstr ""
25761
25762 #. type: =head2
25763 #: ../src/guestfs-actions.pod:869
25764 msgid "guestfs_blockdev_setrw"
25765 msgstr ""
25766
25767 #. type: verbatim
25768 #: ../src/guestfs-actions.pod:871
25769 #, no-wrap
25770 msgid ""
25771 " int\n"
25772 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25773 "                         const char *device);\n"
25774 "\n"
25775 msgstr ""
25776
25777 #. type: =head2
25778 #: ../src/guestfs-actions.pod:883
25779 msgid "guestfs_btrfs_filesystem_resize"
25780 msgstr ""
25781
25782 #. type: verbatim
25783 #: ../src/guestfs-actions.pod:885
25784 #, no-wrap
25785 msgid ""
25786 " int\n"
25787 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25788 "                                  const char *mountpoint,\n"
25789 "                                  ...);\n"
25790 "\n"
25791 msgstr ""
25792
25793 #. type: verbatim
25794 #: ../src/guestfs-actions.pod:895
25795 #, no-wrap
25796 msgid ""
25797 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25798 "\n"
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:918
25803 msgid "(Added in 1.11.17)"
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:920
25808 msgid "guestfs_btrfs_filesystem_resize_va"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:922
25813 #, no-wrap
25814 msgid ""
25815 " int\n"
25816 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25817 "                                     const char *mountpoint,\n"
25818 "                                     va_list args);\n"
25819 "\n"
25820 msgstr ""
25821
25822 #. type: textblock
25823 #: ../src/guestfs-actions.pod:927
25824 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25825 msgstr ""
25826
25827 #. type: =head2
25828 #: ../src/guestfs-actions.pod:931
25829 msgid "guestfs_btrfs_filesystem_resize_argv"
25830 msgstr ""
25831
25832 #. type: verbatim
25833 #: ../src/guestfs-actions.pod:933
25834 #, no-wrap
25835 msgid ""
25836 " int\n"
25837 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25838 "                                       const char *mountpoint,\n"
25839 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25840 "\n"
25841 msgstr ""
25842
25843 #. type: textblock
25844 #: ../src/guestfs-actions.pod:938
25845 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25846 msgstr ""
25847
25848 #. type: =head2
25849 #: ../src/guestfs-actions.pod:942
25850 msgid "guestfs_case_sensitive_path"
25851 msgstr ""
25852
25853 #. type: verbatim
25854 #: ../src/guestfs-actions.pod:944
25855 #, no-wrap
25856 msgid ""
25857 " char *\n"
25858 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25859 "                              const char *path);\n"
25860 "\n"
25861 msgstr ""
25862
25863 #. type: textblock
25864 #: ../src/guestfs-actions.pod:970
25865 msgid ""
25866 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
25867 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25868 "how the directories were originally created under Windows)."
25869 msgstr ""
25870
25871 #. type: textblock
25872 #: ../src/guestfs-actions.pod:978
25873 msgid "See also C<guestfs_realpath>."
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7870
25878 msgid "(Added in 1.0.75)"
25879 msgstr ""
25880
25881 #. type: =head2
25882 #: ../src/guestfs-actions.pod:985
25883 msgid "guestfs_cat"
25884 msgstr ""
25885
25886 #. type: verbatim
25887 #: ../src/guestfs-actions.pod:987
25888 #, no-wrap
25889 msgid ""
25890 " char *\n"
25891 " guestfs_cat (guestfs_h *g,\n"
25892 "              const char *path);\n"
25893 "\n"
25894 msgstr ""
25895
25896 #. type: textblock
25897 #: ../src/guestfs-actions.pod:993
25898 msgid ""
25899 "Note that this function cannot correctly handle binary files (specifically, "
25900 "files containing C<\\0> character which is treated as end of string).  For "
25901 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25902 "functions which have a more complex interface."
25903 msgstr ""
25904
25905 #. type: textblock
25906 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4199
25907 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4298
25908 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4794
25909 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:6187
25910 #: ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:8023
25911 #: ../src/guestfs-actions.pod:8037
25912 msgid "(Added in 0.4)"
25913 msgstr ""
25914
25915 #. type: =head2
25916 #: ../src/guestfs-actions.pod:1006
25917 msgid "guestfs_checksum"
25918 msgstr ""
25919
25920 #. type: verbatim
25921 #: ../src/guestfs-actions.pod:1008
25922 #, no-wrap
25923 msgid ""
25924 " char *\n"
25925 " guestfs_checksum (guestfs_h *g,\n"
25926 "                   const char *csumtype,\n"
25927 "                   const char *path);\n"
25928 "\n"
25929 msgstr ""
25930
25931 #. type: textblock
25932 #: ../src/guestfs-actions.pod:1054
25933 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25934 msgstr ""
25935
25936 #. type: textblock
25937 #: ../src/guestfs-actions.pod:1056
25938 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25939 msgstr ""
25940
25941 #. type: textblock
25942 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1720
25943 #: ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:3897
25944 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3987
25945 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:7726
25946 msgid "(Added in 1.0.2)"
25947 msgstr ""
25948
25949 #. type: =head2
25950 #: ../src/guestfs-actions.pod:1063
25951 msgid "guestfs_checksum_device"
25952 msgstr ""
25953
25954 #. type: verbatim
25955 #: ../src/guestfs-actions.pod:1065
25956 #, no-wrap
25957 msgid ""
25958 " char *\n"
25959 " guestfs_checksum_device (guestfs_h *g,\n"
25960 "                          const char *csumtype,\n"
25961 "                          const char *device);\n"
25962 "\n"
25963 msgstr ""
25964
25965 #. type: textblock
25966 #: ../src/guestfs-actions.pod:1070
25967 msgid ""
25968 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25969 "device named C<device>.  For the types of checksums supported see the "
25970 "C<guestfs_checksum> command."
25971 msgstr ""
25972
25973 #. type: textblock
25974 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5618
25975 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5790
25976 #: ../src/guestfs-actions.pod:5808 ../src/guestfs-actions.pod:5990
25977 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7649
25978 #: ../src/guestfs-actions.pod:8049
25979 msgid "(Added in 1.3.2)"
25980 msgstr ""
25981
25982 #. type: =head2
25983 #: ../src/guestfs-actions.pod:1079
25984 msgid "guestfs_checksums_out"
25985 msgstr ""
25986
25987 #. type: verbatim
25988 #: ../src/guestfs-actions.pod:1081
25989 #, no-wrap
25990 msgid ""
25991 " int\n"
25992 " guestfs_checksums_out (guestfs_h *g,\n"
25993 "                        const char *csumtype,\n"
25994 "                        const char *directory,\n"
25995 "                        const char *sumsfile);\n"
25996 "\n"
25997 msgstr ""
25998
25999 #. type: textblock
26000 #: ../src/guestfs-actions.pod:1101
26001 msgid "(Added in 1.3.7)"
26002 msgstr ""
26003
26004 #. type: =head2
26005 #: ../src/guestfs-actions.pod:1103
26006 msgid "guestfs_chmod"
26007 msgstr ""
26008
26009 #. type: verbatim
26010 #: ../src/guestfs-actions.pod:1105
26011 #, no-wrap
26012 msgid ""
26013 " int\n"
26014 " guestfs_chmod (guestfs_h *g,\n"
26015 "                int mode,\n"
26016 "                const char *path);\n"
26017 "\n"
26018 msgstr ""
26019
26020 #. type: =head2
26021 #: ../src/guestfs-actions.pod:1123
26022 msgid "guestfs_chown"
26023 msgstr ""
26024
26025 #. type: verbatim
26026 #: ../src/guestfs-actions.pod:1125
26027 #, no-wrap
26028 msgid ""
26029 " int\n"
26030 " guestfs_chown (guestfs_h *g,\n"
26031 "                int owner,\n"
26032 "                int group,\n"
26033 "                const char *path);\n"
26034 "\n"
26035 msgstr ""
26036
26037 #. type: =head2
26038 #: ../src/guestfs-actions.pod:1141
26039 msgid "guestfs_command"
26040 msgstr ""
26041
26042 #. type: verbatim
26043 #: ../src/guestfs-actions.pod:1143
26044 #, no-wrap
26045 msgid ""
26046 " char *\n"
26047 " guestfs_command (guestfs_h *g,\n"
26048 "                  char *const *arguments);\n"
26049 "\n"
26050 msgstr ""
26051
26052 #. type: textblock
26053 #: ../src/guestfs-actions.pod:1152
26054 msgid ""
26055 "The single parameter is an argv-style list of arguments.  The first element "
26056 "is the name of the program to run.  Subsequent elements are parameters.  The"
26057 " list must be non-empty (ie. must contain a program name).  Note that the "
26058 "command runs directly, and is I<not> invoked via the shell (see "
26059 "C<guestfs_sh>)."
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26064 #: ../src/guestfs-actions.pod:2019
26065 msgid "(Added in 0.9.1)"
26066 msgstr ""
26067
26068 #. type: =head2
26069 #: ../src/guestfs-actions.pod:1185
26070 msgid "guestfs_command_lines"
26071 msgstr ""
26072
26073 #. type: verbatim
26074 #: ../src/guestfs-actions.pod:1187
26075 #, no-wrap
26076 msgid ""
26077 " char **\n"
26078 " guestfs_command_lines (guestfs_h *g,\n"
26079 "                        char *const *arguments);\n"
26080 "\n"
26081 msgstr ""
26082
26083 #. type: textblock
26084 #: ../src/guestfs-actions.pod:1191
26085 msgid ""
26086 "This is the same as C<guestfs_command>, but splits the result into a list of"
26087 " lines."
26088 msgstr ""
26089
26090 #. type: textblock
26091 #: ../src/guestfs-actions.pod:1194
26092 msgid "See also: C<guestfs_sh_lines>"
26093 msgstr ""
26094
26095 #. type: =head2
26096 #: ../src/guestfs-actions.pod:1205
26097 msgid "guestfs_compress_device_out"
26098 msgstr ""
26099
26100 #. type: verbatim
26101 #: ../src/guestfs-actions.pod:1207
26102 #, no-wrap
26103 msgid ""
26104 " int\n"
26105 " guestfs_compress_device_out (guestfs_h *g,\n"
26106 "                              const char *ctype,\n"
26107 "                              const char *device,\n"
26108 "                              const char *zdevice,\n"
26109 "                              ...);\n"
26110 "\n"
26111 msgstr ""
26112
26113 #. type: verbatim
26114 #: ../src/guestfs-actions.pod:1219
26115 #, no-wrap
26116 msgid ""
26117 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26118 "\n"
26119 msgstr ""
26120
26121 #. type: textblock
26122 #: ../src/guestfs-actions.pod:1224
26123 msgid ""
26124 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26125 "C<guestfs_compress_out>."
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26130 #: ../src/guestfs-actions.pod:2564 ../src/guestfs-actions.pod:6907
26131 msgid "(Added in 1.13.15)"
26132 msgstr ""
26133
26134 #. type: =head2
26135 #: ../src/guestfs-actions.pod:1231
26136 msgid "guestfs_compress_device_out_va"
26137 msgstr ""
26138
26139 #. type: verbatim
26140 #: ../src/guestfs-actions.pod:1233
26141 #, no-wrap
26142 msgid ""
26143 " int\n"
26144 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26145 "                                 const char *ctype,\n"
26146 "                                 const char *device,\n"
26147 "                                 const char *zdevice,\n"
26148 "                                 va_list args);\n"
26149 "\n"
26150 msgstr ""
26151
26152 #. type: textblock
26153 #: ../src/guestfs-actions.pod:1240
26154 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26155 msgstr ""
26156
26157 #. type: =head2
26158 #: ../src/guestfs-actions.pod:1244
26159 msgid "guestfs_compress_device_out_argv"
26160 msgstr ""
26161
26162 #. type: verbatim
26163 #: ../src/guestfs-actions.pod:1246
26164 #, no-wrap
26165 msgid ""
26166 " int\n"
26167 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26168 "                                   const char *ctype,\n"
26169 "                                   const char *device,\n"
26170 "                                   const char *zdevice,\n"
26171 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26172 "\n"
26173 msgstr ""
26174
26175 #. type: textblock
26176 #: ../src/guestfs-actions.pod:1253
26177 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26178 msgstr ""
26179
26180 #. type: =head2
26181 #: ../src/guestfs-actions.pod:1257
26182 msgid "guestfs_compress_out"
26183 msgstr ""
26184
26185 #. type: verbatim
26186 #: ../src/guestfs-actions.pod:1259
26187 #, no-wrap
26188 msgid ""
26189 " int\n"
26190 " guestfs_compress_out (guestfs_h *g,\n"
26191 "                       const char *ctype,\n"
26192 "                       const char *file,\n"
26193 "                       const char *zfile,\n"
26194 "                       ...);\n"
26195 "\n"
26196 msgstr ""
26197
26198 #. type: verbatim
26199 #: ../src/guestfs-actions.pod:1271
26200 #, no-wrap
26201 msgid ""
26202 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26203 "\n"
26204 msgstr ""
26205
26206 #. type: =head2
26207 #: ../src/guestfs-actions.pod:1290
26208 msgid "guestfs_compress_out_va"
26209 msgstr ""
26210
26211 #. type: verbatim
26212 #: ../src/guestfs-actions.pod:1292
26213 #, no-wrap
26214 msgid ""
26215 " int\n"
26216 " guestfs_compress_out_va (guestfs_h *g,\n"
26217 "                          const char *ctype,\n"
26218 "                          const char *file,\n"
26219 "                          const char *zfile,\n"
26220 "                          va_list args);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:1299
26226 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26227 msgstr ""
26228
26229 #. type: =head2
26230 #: ../src/guestfs-actions.pod:1303
26231 msgid "guestfs_compress_out_argv"
26232 msgstr ""
26233
26234 #. type: verbatim
26235 #: ../src/guestfs-actions.pod:1305
26236 #, no-wrap
26237 msgid ""
26238 " int\n"
26239 " guestfs_compress_out_argv (guestfs_h *g,\n"
26240 "                            const char *ctype,\n"
26241 "                            const char *file,\n"
26242 "                            const char *zfile,\n"
26243 "                            const struct guestfs_compress_out_argv *optargs);\n"
26244 "\n"
26245 msgstr ""
26246
26247 #. type: textblock
26248 #: ../src/guestfs-actions.pod:1312
26249 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26250 msgstr ""
26251
26252 #. type: =head2
26253 #: ../src/guestfs-actions.pod:1316
26254 msgid "guestfs_config"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:1318
26259 #, no-wrap
26260 msgid ""
26261 " int\n"
26262 " guestfs_config (guestfs_h *g,\n"
26263 "                 const char *qemuparam,\n"
26264 "                 const char *qemuvalue);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../src/guestfs-actions.pod:1336
26270 msgid "guestfs_copy_device_to_device"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../src/guestfs-actions.pod:1338
26275 #, no-wrap
26276 msgid ""
26277 " int\n"
26278 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26279 "                                const char *src,\n"
26280 "                                const char *dest,\n"
26281 "                                ...);\n"
26282 "\n"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:1349
26287 #, no-wrap
26288 msgid ""
26289 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26290 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26291 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26292 "\n"
26293 msgstr ""
26294
26295 #. type: textblock
26296 #: ../src/guestfs-actions.pod:1353
26297 msgid ""
26298 "The four calls C<guestfs_copy_device_to_device>, "
26299 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26300 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26301 "destination (device|file)."
26302 msgstr ""
26303
26304 #. type: textblock
26305 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1425
26306 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1532
26307 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1715
26308 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1791
26309 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2190
26310 #: ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:7721
26311 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8262
26312 #: ../src/guestfs-actions.pod:8285
26313 msgid ""
26314 "This long-running command can generate progress notification messages so "
26315 "that the caller can display a progress bar or indicator.  To receive these "
26316 "messages, the caller must register a progress event callback.  See "
26317 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26318 msgstr ""
26319
26320 #. type: =head2
26321 #: ../src/guestfs-actions.pod:1379
26322 msgid "guestfs_copy_device_to_device_va"
26323 msgstr ""
26324
26325 #. type: verbatim
26326 #: ../src/guestfs-actions.pod:1381
26327 #, no-wrap
26328 msgid ""
26329 " int\n"
26330 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26331 "                                   const char *src,\n"
26332 "                                   const char *dest,\n"
26333 "                                   va_list args);\n"
26334 "\n"
26335 msgstr ""
26336
26337 #. type: textblock
26338 #: ../src/guestfs-actions.pod:1387
26339 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26340 msgstr ""
26341
26342 #. type: =head2
26343 #: ../src/guestfs-actions.pod:1391
26344 msgid "guestfs_copy_device_to_device_argv"
26345 msgstr ""
26346
26347 #. type: verbatim
26348 #: ../src/guestfs-actions.pod:1393
26349 #, no-wrap
26350 msgid ""
26351 " int\n"
26352 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26353 "                                     const char *src,\n"
26354 "                                     const char *dest,\n"
26355 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26356 "\n"
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../src/guestfs-actions.pod:1399
26361 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26362 msgstr ""
26363
26364 #. type: =head2
26365 #: ../src/guestfs-actions.pod:1403
26366 msgid "guestfs_copy_device_to_file"
26367 msgstr ""
26368
26369 #. type: verbatim
26370 #: ../src/guestfs-actions.pod:1405
26371 #, no-wrap
26372 msgid ""
26373 " int\n"
26374 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26375 "                              const char *src,\n"
26376 "                              const char *dest,\n"
26377 "                              ...);\n"
26378 "\n"
26379 msgstr ""
26380
26381 #. type: verbatim
26382 #: ../src/guestfs-actions.pod:1416
26383 #, no-wrap
26384 msgid ""
26385 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26386 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26387 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26388 "\n"
26389 msgstr ""
26390
26391 #. type: textblock
26392 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1471
26393 #: ../src/guestfs-actions.pod:1522
26394 msgid ""
26395 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26396 msgstr ""
26397
26398 #. type: =head2
26399 #: ../src/guestfs-actions.pod:1430
26400 msgid "guestfs_copy_device_to_file_va"
26401 msgstr ""
26402
26403 #. type: verbatim
26404 #: ../src/guestfs-actions.pod:1432
26405 #, no-wrap
26406 msgid ""
26407 " int\n"
26408 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26409 "                                 const char *src,\n"
26410 "                                 const char *dest,\n"
26411 "                                 va_list args);\n"
26412 "\n"
26413 msgstr ""
26414
26415 #. type: textblock
26416 #: ../src/guestfs-actions.pod:1438
26417 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26418 msgstr ""
26419
26420 #. type: =head2
26421 #: ../src/guestfs-actions.pod:1442
26422 msgid "guestfs_copy_device_to_file_argv"
26423 msgstr ""
26424
26425 #. type: verbatim
26426 #: ../src/guestfs-actions.pod:1444
26427 #, no-wrap
26428 msgid ""
26429 " int\n"
26430 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26431 "                                   const char *src,\n"
26432 "                                   const char *dest,\n"
26433 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26434 "\n"
26435 msgstr ""
26436
26437 #. type: textblock
26438 #: ../src/guestfs-actions.pod:1450
26439 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26440 msgstr ""
26441
26442 #. type: =head2
26443 #: ../src/guestfs-actions.pod:1454
26444 msgid "guestfs_copy_file_to_device"
26445 msgstr ""
26446
26447 #. type: verbatim
26448 #: ../src/guestfs-actions.pod:1456
26449 #, no-wrap
26450 msgid ""
26451 " int\n"
26452 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26453 "                              const char *src,\n"
26454 "                              const char *dest,\n"
26455 "                              ...);\n"
26456 "\n"
26457 msgstr ""
26458
26459 #. type: verbatim
26460 #: ../src/guestfs-actions.pod:1467
26461 #, no-wrap
26462 msgid ""
26463 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26464 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26465 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26466 "\n"
26467 msgstr ""
26468
26469 #. type: =head2
26470 #: ../src/guestfs-actions.pod:1481
26471 msgid "guestfs_copy_file_to_device_va"
26472 msgstr ""
26473
26474 #. type: verbatim
26475 #: ../src/guestfs-actions.pod:1483
26476 #, no-wrap
26477 msgid ""
26478 " int\n"
26479 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26480 "                                 const char *src,\n"
26481 "                                 const char *dest,\n"
26482 "                                 va_list args);\n"
26483 "\n"
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../src/guestfs-actions.pod:1489
26488 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26489 msgstr ""
26490
26491 #. type: =head2
26492 #: ../src/guestfs-actions.pod:1493
26493 msgid "guestfs_copy_file_to_device_argv"
26494 msgstr ""
26495
26496 #. type: verbatim
26497 #: ../src/guestfs-actions.pod:1495
26498 #, no-wrap
26499 msgid ""
26500 " int\n"
26501 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26502 "                                   const char *src,\n"
26503 "                                   const char *dest,\n"
26504 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26505 "\n"
26506 msgstr ""
26507
26508 #. type: textblock
26509 #: ../src/guestfs-actions.pod:1501
26510 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26511 msgstr ""
26512
26513 #. type: =head2
26514 #: ../src/guestfs-actions.pod:1505
26515 msgid "guestfs_copy_file_to_file"
26516 msgstr ""
26517
26518 #. type: verbatim
26519 #: ../src/guestfs-actions.pod:1507
26520 #, no-wrap
26521 msgid ""
26522 " int\n"
26523 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26524 "                            const char *src,\n"
26525 "                            const char *dest,\n"
26526 "                            ...);\n"
26527 "\n"
26528 msgstr ""
26529
26530 #. type: verbatim
26531 #: ../src/guestfs-actions.pod:1518
26532 #, no-wrap
26533 msgid ""
26534 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26535 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26536 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26537 "\n"
26538 msgstr ""
26539
26540 #. type: textblock
26541 #: ../src/guestfs-actions.pod:1525
26542 msgid ""
26543 "This is B<not> the function you want for copying files.  This is for copying"
26544 " blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26545 "C<guestfs_mv> for general file copying and moving functions."
26546 msgstr ""
26547
26548 #. type: =head2
26549 #: ../src/guestfs-actions.pod:1537
26550 msgid "guestfs_copy_file_to_file_va"
26551 msgstr ""
26552
26553 #. type: verbatim
26554 #: ../src/guestfs-actions.pod:1539
26555 #, no-wrap
26556 msgid ""
26557 " int\n"
26558 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26559 "                               const char *src,\n"
26560 "                               const char *dest,\n"
26561 "                               va_list args);\n"
26562 "\n"
26563 msgstr ""
26564
26565 #. type: textblock
26566 #: ../src/guestfs-actions.pod:1545
26567 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26568 msgstr ""
26569
26570 #. type: =head2
26571 #: ../src/guestfs-actions.pod:1549
26572 msgid "guestfs_copy_file_to_file_argv"
26573 msgstr ""
26574
26575 #. type: verbatim
26576 #: ../src/guestfs-actions.pod:1551
26577 #, no-wrap
26578 msgid ""
26579 " int\n"
26580 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26581 "                                 const char *src,\n"
26582 "                                 const char *dest,\n"
26583 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
26584 "\n"
26585 msgstr ""
26586
26587 #. type: textblock
26588 #: ../src/guestfs-actions.pod:1557
26589 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26590 msgstr ""
26591
26592 #. type: =head2
26593 #: ../src/guestfs-actions.pod:1561
26594 msgid "guestfs_copy_size"
26595 msgstr ""
26596
26597 #. type: verbatim
26598 #: ../src/guestfs-actions.pod:1563
26599 #, no-wrap
26600 msgid ""
26601 " int\n"
26602 " guestfs_copy_size (guestfs_h *g,\n"
26603 "                    const char *src,\n"
26604 "                    const char *dest,\n"
26605 "                    int64_t size);\n"
26606 "\n"
26607 msgstr ""
26608
26609 #. type: textblock
26610 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1626
26611 msgid ""
26612 "I<This function is deprecated.> In new code, use the "
26613 "L</guestfs_copy_device_to_device> call instead."
26614 msgstr ""
26615
26616 #. type: textblock
26617 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:4821
26618 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:7956
26619 #: ../src/guestfs-actions.pod:7976 ../src/guestfs-actions.pod:8062
26620 msgid "(Added in 1.0.87)"
26621 msgstr ""
26622
26623 #. type: =head2
26624 #: ../src/guestfs-actions.pod:1591
26625 msgid "guestfs_cp"
26626 msgstr ""
26627
26628 #. type: verbatim
26629 #: ../src/guestfs-actions.pod:1593
26630 #, no-wrap
26631 msgid ""
26632 " int\n"
26633 " guestfs_cp (guestfs_h *g,\n"
26634 "             const char *src,\n"
26635 "             const char *dest);\n"
26636 "\n"
26637 msgstr ""
26638
26639 #. type: textblock
26640 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1617
26641 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1771
26642 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:5565
26643 #: ../src/guestfs-actions.pod:6058
26644 msgid "(Added in 1.0.18)"
26645 msgstr ""
26646
26647 #. type: =head2
26648 #: ../src/guestfs-actions.pod:1605
26649 msgid "guestfs_cp_a"
26650 msgstr ""
26651
26652 #. type: verbatim
26653 #: ../src/guestfs-actions.pod:1607
26654 #, no-wrap
26655 msgid ""
26656 " int\n"
26657 " guestfs_cp_a (guestfs_h *g,\n"
26658 "               const char *src,\n"
26659 "               const char *dest);\n"
26660 "\n"
26661 msgstr ""
26662
26663 #. type: =head2
26664 #: ../src/guestfs-actions.pod:1619
26665 msgid "guestfs_dd"
26666 msgstr ""
26667
26668 #. type: verbatim
26669 #: ../src/guestfs-actions.pod:1621
26670 #, no-wrap
26671 msgid ""
26672 " int\n"
26673 " guestfs_dd (guestfs_h *g,\n"
26674 "             const char *src,\n"
26675 "             const char *dest);\n"
26676 "\n"
26677 msgstr ""
26678
26679 #. type: textblock
26680 #: ../src/guestfs-actions.pod:1638
26681 msgid ""
26682 "If the destination is a device, it must be as large or larger than the "
26683 "source file or device, otherwise the copy will fail.  This command cannot do"
26684 " partial copies (see C<guestfs_copy_device_to_device>)."
26685 msgstr ""
26686
26687 #. type: =head2
26688 #: ../src/guestfs-actions.pod:1647
26689 msgid "guestfs_df"
26690 msgstr ""
26691
26692 #. type: verbatim
26693 #: ../src/guestfs-actions.pod:1649
26694 #, no-wrap
26695 msgid ""
26696 " char *\n"
26697 " guestfs_df (guestfs_h *g);\n"
26698 "\n"
26699 msgstr ""
26700
26701 #. type: textblock
26702 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1671
26703 msgid ""
26704 "This command is mostly useful for interactive sessions.  It is I<not> "
26705 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26706 "from programs."
26707 msgstr ""
26708
26709 #. type: textblock
26710 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1678
26711 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:2803
26712 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2895
26713 #: ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:5465
26714 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7483
26715 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8115
26716 #: ../src/guestfs-actions.pod:8128
26717 msgid "(Added in 1.0.54)"
26718 msgstr ""
26719
26720 #. type: =head2
26721 #: ../src/guestfs-actions.pod:1663
26722 msgid "guestfs_df_h"
26723 msgstr ""
26724
26725 #. type: verbatim
26726 #: ../src/guestfs-actions.pod:1665
26727 #, no-wrap
26728 msgid ""
26729 " char *\n"
26730 " guestfs_df_h (guestfs_h *g);\n"
26731 "\n"
26732 msgstr ""
26733
26734 #. type: =head2
26735 #: ../src/guestfs-actions.pod:1680
26736 msgid "guestfs_dmesg"
26737 msgstr ""
26738
26739 #. type: verbatim
26740 #: ../src/guestfs-actions.pod:1682
26741 #, no-wrap
26742 msgid ""
26743 " char *\n"
26744 " guestfs_dmesg (guestfs_h *g);\n"
26745 "\n"
26746 msgstr ""
26747
26748 #. type: textblock
26749 #: ../src/guestfs-actions.pod:1689
26750 msgid ""
26751 "Another way to get the same information is to enable verbose messages with "
26752 "C<guestfs_set_verbose> or by setting the environment variable "
26753 "C<LIBGUESTFS_DEBUG=1> before running the program."
26754 msgstr ""
26755
26756 #. type: =head2
26757 #: ../src/guestfs-actions.pod:1699
26758 msgid "guestfs_download"
26759 msgstr ""
26760
26761 #. type: verbatim
26762 #: ../src/guestfs-actions.pod:1701
26763 #, no-wrap
26764 msgid ""
26765 " int\n"
26766 " guestfs_download (guestfs_h *g,\n"
26767 "                   const char *remotefilename,\n"
26768 "                   const char *filename);\n"
26769 "\n"
26770 msgstr ""
26771
26772 #. type: textblock
26773 #: ../src/guestfs-actions.pod:1711
26774 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:1722
26779 msgid "guestfs_download_offset"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:1724
26784 #, no-wrap
26785 msgid ""
26786 " int\n"
26787 " guestfs_download_offset (guestfs_h *g,\n"
26788 "                          const char *remotefilename,\n"
26789 "                          const char *filename,\n"
26790 "                          int64_t offset,\n"
26791 "                          int64_t size);\n"
26792 "\n"
26793 msgstr ""
26794
26795 #. type: textblock
26796 #: ../src/guestfs-actions.pod:1737
26797 msgid ""
26798 "Note that there is no limit on the amount of data that can be downloaded "
26799 "with this call, unlike with C<guestfs_pread>, and this call always reads the"
26800 " full amount unless an error occurs."
26801 msgstr ""
26802
26803 #. type: textblock
26804 #: ../src/guestfs-actions.pod:1742
26805 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26806 msgstr ""
26807
26808 #. type: textblock
26809 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:7760
26810 msgid "(Added in 1.5.17)"
26811 msgstr ""
26812
26813 #. type: =head2
26814 #: ../src/guestfs-actions.pod:1753
26815 msgid "guestfs_drop_caches"
26816 msgstr ""
26817
26818 #. type: verbatim
26819 #: ../src/guestfs-actions.pod:1755
26820 #, no-wrap
26821 msgid ""
26822 " int\n"
26823 " guestfs_drop_caches (guestfs_h *g,\n"
26824 "                      int whattodrop);\n"
26825 "\n"
26826 msgstr ""
26827
26828 #. type: =head2
26829 #: ../src/guestfs-actions.pod:1773
26830 msgid "guestfs_du"
26831 msgstr ""
26832
26833 #. type: verbatim
26834 #: ../src/guestfs-actions.pod:1775
26835 #, no-wrap
26836 msgid ""
26837 " int64_t\n"
26838 " guestfs_du (guestfs_h *g,\n"
26839 "             const char *path);\n"
26840 "\n"
26841 msgstr ""
26842
26843 #. type: =head2
26844 #: ../src/guestfs-actions.pod:1798
26845 msgid "guestfs_e2fsck_f"
26846 msgstr ""
26847
26848 #. type: verbatim
26849 #: ../src/guestfs-actions.pod:1800
26850 #, no-wrap
26851 msgid ""
26852 " int\n"
26853 " guestfs_e2fsck_f (guestfs_h *g,\n"
26854 "                   const char *device);\n"
26855 "\n"
26856 msgstr ""
26857
26858 #. type: textblock
26859 #: ../src/guestfs-actions.pod:1808
26860 msgid ""
26861 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26862 "Normally you should use C<guestfs_fsck>."
26863 msgstr ""
26864
26865 #. type: textblock
26866 #: ../src/guestfs-actions.pod:1813
26867 msgid "(Added in 1.0.29)"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:1815
26872 msgid "guestfs_echo_daemon"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:1817
26877 #, no-wrap
26878 msgid ""
26879 " char *\n"
26880 " guestfs_echo_daemon (guestfs_h *g,\n"
26881 "                      char *const *words);\n"
26882 "\n"
26883 msgstr ""
26884
26885 #. type: textblock
26886 #: ../src/guestfs-actions.pod:1826
26887 msgid "See also C<guestfs_ping_daemon>."
26888 msgstr ""
26889
26890 #. type: textblock
26891 #: ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:2589
26892 #: ../src/guestfs-actions.pod:6931
26893 msgid "(Added in 1.0.69)"
26894 msgstr ""
26895
26896 #. type: =head2
26897 #: ../src/guestfs-actions.pod:1833
26898 msgid "guestfs_egrep"
26899 msgstr ""
26900
26901 #. type: verbatim
26902 #: ../src/guestfs-actions.pod:1835
26903 #, no-wrap
26904 msgid ""
26905 " char **\n"
26906 " guestfs_egrep (guestfs_h *g,\n"
26907 "                const char *regex,\n"
26908 "                const char *path);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: textblock
26913 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1869
26914 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1972
26915 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2719
26916 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2916
26917 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2944
26918 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3012
26919 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:4311
26920 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4338
26921 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5353
26922 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6441
26923 #: ../src/guestfs-actions.pod:7327 ../src/guestfs-actions.pod:7339
26924 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7365
26925 #: ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7400
26926 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426
26927 #: ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8239
26928 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8352
26929 #: ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8417
26930 msgid "(Added in 1.0.66)"
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../src/guestfs-actions.pod:1852
26935 msgid "guestfs_egrepi"
26936 msgstr ""
26937
26938 #. type: verbatim
26939 #: ../src/guestfs-actions.pod:1854
26940 #, no-wrap
26941 msgid ""
26942 " char **\n"
26943 " guestfs_egrepi (guestfs_h *g,\n"
26944 "                 const char *regex,\n"
26945 "                 const char *path);\n"
26946 "\n"
26947 msgstr ""
26948
26949 #. type: =head2
26950 #: ../src/guestfs-actions.pod:1871
26951 msgid "guestfs_equal"
26952 msgstr ""
26953
26954 #. type: verbatim
26955 #: ../src/guestfs-actions.pod:1873
26956 #, no-wrap
26957 msgid ""
26958 " int\n"
26959 " guestfs_equal (guestfs_h *g,\n"
26960 "                const char *file1,\n"
26961 "                const char *file2);\n"
26962 "\n"
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:1887
26967 msgid "guestfs_exists"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:1889
26972 #, no-wrap
26973 msgid ""
26974 " int\n"
26975 " guestfs_exists (guestfs_h *g,\n"
26976 "                 const char *path);\n"
26977 "\n"
26978 msgstr ""
26979
26980 #. type: textblock
26981 #: ../src/guestfs-actions.pod:1896
26982 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26983 msgstr ""
26984
26985 #. type: =head2
26986 #: ../src/guestfs-actions.pod:1902
26987 msgid "guestfs_fallocate"
26988 msgstr ""
26989
26990 #. type: verbatim
26991 #: ../src/guestfs-actions.pod:1904
26992 #, no-wrap
26993 msgid ""
26994 " int\n"
26995 " guestfs_fallocate (guestfs_h *g,\n"
26996 "                    const char *path,\n"
26997 "                    int len);\n"
26998 "\n"
26999 msgstr ""
27000
27001 #. type: textblock
27002 #: ../src/guestfs-actions.pod:1909
27003 msgid ""
27004 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64>"
27005 " call instead."
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../src/guestfs-actions.pod:1928
27010 msgid "guestfs_fallocate64"
27011 msgstr ""
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:1930
27015 #, no-wrap
27016 msgid ""
27017 " int\n"
27018 " guestfs_fallocate64 (guestfs_h *g,\n"
27019 "                      const char *path,\n"
27020 "                      int64_t len);\n"
27021 "\n"
27022 msgstr ""
27023
27024 #. type: textblock
27025 #: ../src/guestfs-actions.pod:1939
27026 msgid ""
27027 "Note that this call allocates disk blocks for the file.  To create a sparse "
27028 "file use C<guestfs_truncate_size> instead."
27029 msgstr ""
27030
27031 #. type: textblock
27032 #: ../src/guestfs-actions.pod:1942
27033 msgid ""
27034 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27035 "oversight it only allowed 30 bit lengths to be specified, effectively "
27036 "limiting the maximum size of files created through that call to 1GB."
27037 msgstr ""
27038
27039 #. type: textblock
27040 #: ../src/guestfs-actions.pod:1953
27041 msgid "(Added in 1.3.17)"
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../src/guestfs-actions.pod:1955
27046 msgid "guestfs_fgrep"
27047 msgstr ""
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:1957
27051 #, no-wrap
27052 msgid ""
27053 " char **\n"
27054 " guestfs_fgrep (guestfs_h *g,\n"
27055 "                const char *pattern,\n"
27056 "                const char *path);\n"
27057 "\n"
27058 msgstr ""
27059
27060 #. type: =head2
27061 #: ../src/guestfs-actions.pod:1974
27062 msgid "guestfs_fgrepi"
27063 msgstr ""
27064
27065 #. type: verbatim
27066 #: ../src/guestfs-actions.pod:1976
27067 #, no-wrap
27068 msgid ""
27069 " char **\n"
27070 " guestfs_fgrepi (guestfs_h *g,\n"
27071 "                 const char *pattern,\n"
27072 "                 const char *path);\n"
27073 "\n"
27074 msgstr ""
27075
27076 #. type: =head2
27077 #: ../src/guestfs-actions.pod:1993
27078 msgid "guestfs_file"
27079 msgstr ""
27080
27081 #. type: verbatim
27082 #: ../src/guestfs-actions.pod:1995
27083 #, no-wrap
27084 msgid ""
27085 " char *\n"
27086 " guestfs_file (guestfs_h *g,\n"
27087 "               const char *path);\n"
27088 "\n"
27089 msgstr ""
27090
27091 #. type: textblock
27092 #: ../src/guestfs-actions.pod:2013
27093 msgid ""
27094 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27095 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:2021
27100 msgid "guestfs_file_architecture"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:2023
27105 #, no-wrap
27106 msgid ""
27107 " char *\n"
27108 " guestfs_file_architecture (guestfs_h *g,\n"
27109 "                            const char *filename);\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2294
27115 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3045
27116 #: ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3213
27117 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3418
27118 #: ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3534
27119 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3868
27120 #: ../src/guestfs-actions.pod:4000
27121 msgid "(Added in 1.5.3)"
27122 msgstr ""
27123
27124 #. type: =head2
27125 #: ../src/guestfs-actions.pod:2133
27126 msgid "guestfs_filesize"
27127 msgstr ""
27128
27129 #. type: verbatim
27130 #: ../src/guestfs-actions.pod:2135
27131 #, no-wrap
27132 msgid ""
27133 " int64_t\n"
27134 " guestfs_filesize (guestfs_h *g,\n"
27135 "                   const char *file);\n"
27136 "\n"
27137 msgstr ""
27138
27139 #. type: textblock
27140 #: ../src/guestfs-actions.pod:2141
27141 msgid ""
27142 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27143 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27144 "devices, use C<guestfs_blockdev_getsize64>."
27145 msgstr ""
27146
27147 #. type: textblock
27148 #: ../src/guestfs-actions.pod:2147
27149 msgid "(Added in 1.0.82)"
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../src/guestfs-actions.pod:2149
27154 msgid "guestfs_fill"
27155 msgstr ""
27156
27157 #. type: verbatim
27158 #: ../src/guestfs-actions.pod:2151
27159 #, no-wrap
27160 msgid ""
27161 " int\n"
27162 " guestfs_fill (guestfs_h *g,\n"
27163 "               int c,\n"
27164 "               int len,\n"
27165 "               const char *path);\n"
27166 "\n"
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:2161
27171 msgid ""
27172 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27173 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27174 "bytes use C<guestfs_fill_pattern>."
27175 msgstr ""
27176
27177 #. type: textblock
27178 #: ../src/guestfs-actions.pod:2173
27179 msgid "(Added in 1.0.79)"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:2175
27184 msgid "guestfs_fill_pattern"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:2177
27189 #, no-wrap
27190 msgid ""
27191 " int\n"
27192 " guestfs_fill_pattern (guestfs_h *g,\n"
27193 "                       const char *pattern,\n"
27194 "                       int len,\n"
27195 "                       const char *path);\n"
27196 "\n"
27197 msgstr ""
27198
27199 #. type: textblock
27200 #: ../src/guestfs-actions.pod:2183
27201 msgid ""
27202 "This function is like C<guestfs_fill> except that it creates a new file of "
27203 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27204 "pattern is truncated if necessary to ensure the length of the file is "
27205 "exactly C<len> bytes."
27206 msgstr ""
27207
27208 #. type: textblock
27209 #: ../src/guestfs-actions.pod:2195
27210 msgid "(Added in 1.3.12)"
27211 msgstr ""
27212
27213 #. type: =head2
27214 #: ../src/guestfs-actions.pod:2197
27215 msgid "guestfs_find"
27216 msgstr ""
27217
27218 #. type: verbatim
27219 #: ../src/guestfs-actions.pod:2199
27220 #, no-wrap
27221 msgid ""
27222 " char **\n"
27223 " guestfs_find (guestfs_h *g,\n"
27224 "               const char *directory);\n"
27225 "\n"
27226 msgstr ""
27227
27228 #. type: textblock
27229 #: ../src/guestfs-actions.pod:2215
27230 msgid ""
27231 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27232 msgstr ""
27233
27234 #. type: textblock
27235 #: ../src/guestfs-actions.pod:2228
27236 msgid "See also C<guestfs_find0>."
27237 msgstr ""
27238
27239 #. type: textblock
27240 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4758
27241 #: ../src/guestfs-actions.pod:6476
27242 msgid "(Added in 1.0.27)"
27243 msgstr ""
27244
27245 #. type: =head2
27246 #: ../src/guestfs-actions.pod:2239
27247 msgid "guestfs_find0"
27248 msgstr ""
27249
27250 #. type: verbatim
27251 #: ../src/guestfs-actions.pod:2241
27252 #, no-wrap
27253 msgid ""
27254 " int\n"
27255 " guestfs_find0 (guestfs_h *g,\n"
27256 "                const char *directory,\n"
27257 "                const char *files);\n"
27258 "\n"
27259 msgstr ""
27260
27261 #. type: textblock
27262 #: ../src/guestfs-actions.pod:2250
27263 msgid ""
27264 "This command works the same way as C<guestfs_find> with the following "
27265 "exceptions:"
27266 msgstr ""
27267
27268 #. type: textblock
27269 #: ../src/guestfs-actions.pod:2277
27270 msgid "(Added in 1.0.74)"
27271 msgstr ""
27272
27273 #. type: =head2
27274 #: ../src/guestfs-actions.pod:2279
27275 msgid "guestfs_findfs_label"
27276 msgstr ""
27277
27278 #. type: verbatim
27279 #: ../src/guestfs-actions.pod:2281
27280 #, no-wrap
27281 msgid ""
27282 " char *\n"
27283 " guestfs_findfs_label (guestfs_h *g,\n"
27284 "                       const char *label);\n"
27285 "\n"
27286 msgstr ""
27287
27288 #. type: textblock
27289 #: ../src/guestfs-actions.pod:2289
27290 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27291 msgstr ""
27292
27293 #. type: =head2
27294 #: ../src/guestfs-actions.pod:2296
27295 msgid "guestfs_findfs_uuid"
27296 msgstr ""
27297
27298 #. type: verbatim
27299 #: ../src/guestfs-actions.pod:2298
27300 #, no-wrap
27301 msgid ""
27302 " char *\n"
27303 " guestfs_findfs_uuid (guestfs_h *g,\n"
27304 "                      const char *uuid);\n"
27305 "\n"
27306 msgstr ""
27307
27308 #. type: textblock
27309 #: ../src/guestfs-actions.pod:2306
27310 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27311 msgstr ""
27312
27313 #. type: =head2
27314 #: ../src/guestfs-actions.pod:2313
27315 msgid "guestfs_fsck"
27316 msgstr ""
27317
27318 #. type: verbatim
27319 #: ../src/guestfs-actions.pod:2315
27320 #, no-wrap
27321 msgid ""
27322 " int\n"
27323 " guestfs_fsck (guestfs_h *g,\n"
27324 "               const char *fstype,\n"
27325 "               const char *device);\n"
27326 "\n"
27327 msgstr ""
27328
27329 #. type: textblock
27330 #: ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:8267
27331 msgid "(Added in 1.0.16)"
27332 msgstr ""
27333
27334 #. type: =head2
27335 #: ../src/guestfs-actions.pod:2352
27336 msgid "guestfs_get_append"
27337 msgstr ""
27338
27339 #. type: verbatim
27340 #: ../src/guestfs-actions.pod:2354
27341 #, no-wrap
27342 msgid ""
27343 " const char *\n"
27344 " guestfs_get_append (guestfs_h *g);\n"
27345 "\n"
27346 msgstr ""
27347
27348 #. type: textblock
27349 #: ../src/guestfs-actions.pod:2362
27350 msgid ""
27351 "This function returns a string which may be NULL.  There is no way to return"
27352 " an error from this function.  The string is owned by the guest handle and "
27353 "must I<not> be freed."
27354 msgstr ""
27355
27356 #. type: textblock
27357 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:6154
27358 #: ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:7094
27359 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7129
27360 #: ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7907
27361 #: ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8314
27362 msgid "(Added in 1.0.26)"
27363 msgstr ""
27364
27365 #. type: =head2
27366 #: ../src/guestfs-actions.pod:2368
27367 msgid "guestfs_get_attach_method"
27368 msgstr ""
27369
27370 #. type: verbatim
27371 #: ../src/guestfs-actions.pod:2370
27372 #, no-wrap
27373 msgid ""
27374 " char *\n"
27375 " guestfs_get_attach_method (guestfs_h *g);\n"
27376 "\n"
27377 msgstr ""
27378
27379 #. type: textblock
27380 #: ../src/guestfs-actions.pod:2373
27381 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27382 msgstr ""
27383
27384 #. type: textblock
27385 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:6666
27386 msgid "(Added in 1.9.8)"
27387 msgstr ""
27388
27389 #. type: =head2
27390 #: ../src/guestfs-actions.pod:2380
27391 msgid "guestfs_get_autosync"
27392 msgstr ""
27393
27394 #. type: verbatim
27395 #: ../src/guestfs-actions.pod:2382
27396 #, no-wrap
27397 msgid ""
27398 " int\n"
27399 " guestfs_get_autosync (guestfs_h *g);\n"
27400 "\n"
27401 msgstr ""
27402
27403 #. type: =head2
27404 #: ../src/guestfs-actions.pod:2391
27405 msgid "guestfs_get_direct"
27406 msgstr ""
27407
27408 #. type: verbatim
27409 #: ../src/guestfs-actions.pod:2393
27410 #, no-wrap
27411 msgid ""
27412 " int\n"
27413 " guestfs_get_direct (guestfs_h *g);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: textblock
27418 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6707
27419 msgid "(Added in 1.0.72)"
27420 msgstr ""
27421
27422 #. type: =head2
27423 #: ../src/guestfs-actions.pod:2402
27424 msgid "guestfs_get_e2label"
27425 msgstr ""
27426
27427 #. type: verbatim
27428 #: ../src/guestfs-actions.pod:2404
27429 #, no-wrap
27430 msgid ""
27431 " char *\n"
27432 " guestfs_get_e2label (guestfs_h *g,\n"
27433 "                      const char *device);\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: textblock
27438 #: ../src/guestfs-actions.pod:2408
27439 msgid ""
27440 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27441 "call instead."
27442 msgstr ""
27443
27444 #. type: textblock
27445 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2442
27446 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6744
27447 msgid "(Added in 1.0.15)"
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:2423
27452 msgid "guestfs_get_e2uuid"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:2425
27457 #, no-wrap
27458 msgid ""
27459 " char *\n"
27460 " guestfs_get_e2uuid (guestfs_h *g,\n"
27461 "                     const char *device);\n"
27462 "\n"
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../src/guestfs-actions.pod:2429
27467 msgid ""
27468 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27469 "call instead."
27470 msgstr ""
27471
27472 #. type: =head2
27473 #: ../src/guestfs-actions.pod:2444
27474 msgid "guestfs_get_memsize"
27475 msgstr ""
27476
27477 #. type: verbatim
27478 #: ../src/guestfs-actions.pod:2446
27479 #, no-wrap
27480 msgid ""
27481 " int\n"
27482 " guestfs_get_memsize (guestfs_h *g);\n"
27483 "\n"
27484 msgstr ""
27485
27486 #. type: textblock
27487 #: ../src/guestfs-actions.pod:2452
27488 msgid ""
27489 "If C<guestfs_set_memsize> was not called on this handle, and if "
27490 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default"
27491 " value for memsize."
27492 msgstr ""
27493
27494 #. type: textblock
27495 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:5049
27496 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5277
27497 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5308
27498 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5338
27499 #: ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6765
27500 #: ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7676
27501 msgid "(Added in 1.0.55)"
27502 msgstr ""
27503
27504 #. type: =head2
27505 #: ../src/guestfs-actions.pod:2463
27506 msgid "guestfs_get_network"
27507 msgstr ""
27508
27509 #. type: verbatim
27510 #: ../src/guestfs-actions.pod:2465
27511 #, no-wrap
27512 msgid ""
27513 " int\n"
27514 " guestfs_get_network (guestfs_h *g);\n"
27515 "\n"
27516 msgstr ""
27517
27518 #. type: textblock
27519 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:6784
27520 msgid "(Added in 1.5.4)"
27521 msgstr ""
27522
27523 #. type: =head2
27524 #: ../src/guestfs-actions.pod:2474
27525 msgid "guestfs_get_path"
27526 msgstr ""
27527
27528 #. type: verbatim
27529 #: ../src/guestfs-actions.pod:2476
27530 #, no-wrap
27531 msgid ""
27532 " const char *\n"
27533 " guestfs_get_path (guestfs_h *g);\n"
27534 "\n"
27535 msgstr ""
27536
27537 #. type: textblock
27538 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2524
27539 msgid ""
27540 "This function returns a string, or NULL on error.  The string is owned by "
27541 "the guest handle and must I<not> be freed."
27542 msgstr ""
27543
27544 #. type: =head2
27545 #: ../src/guestfs-actions.pod:2489
27546 msgid "guestfs_get_pgroup"
27547 msgstr ""
27548
27549 #. type: verbatim
27550 #: ../src/guestfs-actions.pod:2491
27551 #, no-wrap
27552 msgid ""
27553 " int\n"
27554 " guestfs_get_pgroup (guestfs_h *g);\n"
27555 "\n"
27556 msgstr ""
27557
27558 #. type: textblock
27559 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:6820
27560 #: ../src/guestfs-actions.pod:8168
27561 msgid "(Added in 1.11.18)"
27562 msgstr ""
27563
27564 #. type: =head2
27565 #: ../src/guestfs-actions.pod:2500
27566 msgid "guestfs_get_pid"
27567 msgstr ""
27568
27569 #. type: verbatim
27570 #: ../src/guestfs-actions.pod:2502
27571 #, no-wrap
27572 msgid ""
27573 " int\n"
27574 " guestfs_get_pid (guestfs_h *g);\n"
27575 "\n"
27576 msgstr ""
27577
27578 #. type: textblock
27579 #: ../src/guestfs-actions.pod:2512
27580 msgid "(Added in 1.0.56)"
27581 msgstr ""
27582
27583 #. type: =head2
27584 #: ../src/guestfs-actions.pod:2514
27585 msgid "guestfs_get_qemu"
27586 msgstr ""
27587
27588 #. type: verbatim
27589 #: ../src/guestfs-actions.pod:2516
27590 #, no-wrap
27591 msgid ""
27592 " const char *\n"
27593 " guestfs_get_qemu (guestfs_h *g);\n"
27594 "\n"
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:6848
27599 msgid "(Added in 1.0.6)"
27600 msgstr ""
27601
27602 #. type: =head2
27603 #: ../src/guestfs-actions.pod:2529
27604 msgid "guestfs_get_recovery_proc"
27605 msgstr ""
27606
27607 #. type: verbatim
27608 #: ../src/guestfs-actions.pod:2531
27609 #, no-wrap
27610 msgid ""
27611 " int\n"
27612 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: textblock
27617 #: ../src/guestfs-actions.pod:2538 ../src/guestfs-actions.pod:4122
27618 #: ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4856
27619 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:6084
27620 #: ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6872
27621 #: ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7599
27622 #: ../src/guestfs-actions.pod:7791
27623 msgid "(Added in 1.0.77)"
27624 msgstr ""
27625
27626 #. type: =head2
27627 #: ../src/guestfs-actions.pod:2540
27628 msgid "guestfs_get_selinux"
27629 msgstr ""
27630
27631 #. type: verbatim
27632 #: ../src/guestfs-actions.pod:2542
27633 #, no-wrap
27634 msgid ""
27635 " int\n"
27636 " guestfs_get_selinux (guestfs_h *g);\n"
27637 "\n"
27638 msgstr ""
27639
27640 #. type: textblock
27641 #: ../src/guestfs-actions.pod:2545
27642 msgid ""
27643 "This returns the current setting of the selinux flag which is passed to the "
27644 "appliance at boot time.  See C<guestfs_set_selinux>."
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2627
27649 #: ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6965
27650 msgid "(Added in 1.0.67)"
27651 msgstr ""
27652
27653 #. type: =head2
27654 #: ../src/guestfs-actions.pod:2555
27655 msgid "guestfs_get_smp"
27656 msgstr ""
27657
27658 #. type: verbatim
27659 #: ../src/guestfs-actions.pod:2557
27660 #, no-wrap
27661 msgid ""
27662 " int\n"
27663 " guestfs_get_smp (guestfs_h *g);\n"
27664 "\n"
27665 msgstr ""
27666
27667 #. type: =head2
27668 #: ../src/guestfs-actions.pod:2566
27669 msgid "guestfs_get_state"
27670 msgstr ""
27671
27672 #. type: verbatim
27673 #: ../src/guestfs-actions.pod:2568
27674 #, no-wrap
27675 msgid ""
27676 " int\n"
27677 " guestfs_get_state (guestfs_h *g);\n"
27678 "\n"
27679 msgstr ""
27680
27681 #. type: =head2
27682 #: ../src/guestfs-actions.pod:2580
27683 msgid "guestfs_get_trace"
27684 msgstr ""
27685
27686 #. type: verbatim
27687 #: ../src/guestfs-actions.pod:2582
27688 #, no-wrap
27689 msgid ""
27690 " int\n"
27691 " guestfs_get_trace (guestfs_h *g);\n"
27692 "\n"
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../src/guestfs-actions.pod:2591
27697 msgid "guestfs_get_umask"
27698 msgstr ""
27699
27700 #. type: verbatim
27701 #: ../src/guestfs-actions.pod:2593
27702 #, no-wrap
27703 msgid ""
27704 " int\n"
27705 " guestfs_get_umask (guestfs_h *g);\n"
27706 "\n"
27707 msgstr ""
27708
27709 #. type: textblock
27710 #: ../src/guestfs-actions.pod:2596
27711 msgid ""
27712 "Return the current umask.  By default the umask is C<022> unless it has been"
27713 " set by calling C<guestfs_umask>."
27714 msgstr ""
27715
27716 #. type: =head2
27717 #: ../src/guestfs-actions.pod:2603
27718 msgid "guestfs_get_verbose"
27719 msgstr ""
27720
27721 #. type: verbatim
27722 #: ../src/guestfs-actions.pod:2605
27723 #, no-wrap
27724 msgid ""
27725 " int\n"
27726 " guestfs_get_verbose (guestfs_h *g);\n"
27727 "\n"
27728 msgstr ""
27729
27730 #. type: =head2
27731 #: ../src/guestfs-actions.pod:2614
27732 msgid "guestfs_getcon"
27733 msgstr ""
27734
27735 #. type: verbatim
27736 #: ../src/guestfs-actions.pod:2616
27737 #, no-wrap
27738 msgid ""
27739 " char *\n"
27740 " guestfs_getcon (guestfs_h *g);\n"
27741 "\n"
27742 msgstr ""
27743
27744 #. type: textblock
27745 #: ../src/guestfs-actions.pod:2621
27746 msgid ""
27747 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27748 msgstr ""
27749
27750 #. type: =head2
27751 #: ../src/guestfs-actions.pod:2629
27752 msgid "guestfs_getxattr"
27753 msgstr ""
27754
27755 #. type: verbatim
27756 #: ../src/guestfs-actions.pod:2631
27757 #, no-wrap
27758 msgid ""
27759 " char *\n"
27760 " guestfs_getxattr (guestfs_h *g,\n"
27761 "                   const char *path,\n"
27762 "                   const char *name,\n"
27763 "                   size_t *size_r);\n"
27764 "\n"
27765 msgstr ""
27766
27767 #. type: textblock
27768 #: ../src/guestfs-actions.pod:2637
27769 msgid ""
27770 "Get a single extended attribute from file C<path> named C<name>.  This call "
27771 "follows symlinks.  If you want to lookup an extended attribute for the "
27772 "symlink itself, use C<guestfs_lgetxattr>."
27773 msgstr ""
27774
27775 #. type: textblock
27776 #: ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:4136
27777 msgid ""
27778 "Normally it is better to get all extended attributes from a file in one go "
27779 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27780 "implementations are buggy and do not provide a way to list out attributes.  "
27781 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27782 "extended attributes you want in advance and call this function."
27783 msgstr ""
27784
27785 #. type: textblock
27786 #: ../src/guestfs-actions.pod:2651
27787 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27788 msgstr ""
27789
27790 #. type: textblock
27791 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2866
27792 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:4148
27793 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6103
27794 #: ../src/guestfs-actions.pod:6284
27795 msgid ""
27796 "This function returns a buffer, or NULL on error.  The size of the returned "
27797 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer"
27798 " after use>."
27799 msgstr ""
27800
27801 #. type: textblock
27802 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4152
27803 msgid "(Added in 1.7.24)"
27804 msgstr ""
27805
27806 #. type: =head2
27807 #: ../src/guestfs-actions.pod:2659
27808 msgid "guestfs_getxattrs"
27809 msgstr ""
27810
27811 #. type: verbatim
27812 #: ../src/guestfs-actions.pod:2661
27813 #, no-wrap
27814 msgid ""
27815 " struct guestfs_xattr_list *\n"
27816 " guestfs_getxattrs (guestfs_h *g,\n"
27817 "                    const char *path);\n"
27818 "\n"
27819 msgstr ""
27820
27821 #. type: textblock
27822 #: ../src/guestfs-actions.pod:2671
27823 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27824 msgstr ""
27825
27826 #. type: textblock
27827 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:4164
27828 #: ../src/guestfs-actions.pod:4852
27829 msgid ""
27830 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was"
27831 " an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:4168
27836 #: ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4403
27837 #: ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6984
27838 #: ../src/guestfs-actions.pod:8379
27839 msgid "(Added in 1.0.59)"
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:2679
27844 msgid "guestfs_glob_expand"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:2681
27849 #, no-wrap
27850 msgid ""
27851 " char **\n"
27852 " guestfs_glob_expand (guestfs_h *g,\n"
27853 "                      const char *pattern);\n"
27854 "\n"
27855 msgstr ""
27856
27857 #. type: textblock
27858 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:7177
27859 #: ../src/guestfs-actions.pod:7194
27860 msgid "(Added in 1.0.50)"
27861 msgstr ""
27862
27863 #. type: =head2
27864 #: ../src/guestfs-actions.pod:2702
27865 msgid "guestfs_grep"
27866 msgstr ""
27867
27868 #. type: verbatim
27869 #: ../src/guestfs-actions.pod:2704
27870 #, no-wrap
27871 msgid ""
27872 " char **\n"
27873 " guestfs_grep (guestfs_h *g,\n"
27874 "               const char *regex,\n"
27875 "               const char *path);\n"
27876 "\n"
27877 msgstr ""
27878
27879 #. type: =head2
27880 #: ../src/guestfs-actions.pod:2721
27881 msgid "guestfs_grepi"
27882 msgstr ""
27883
27884 #. type: verbatim
27885 #: ../src/guestfs-actions.pod:2723
27886 #, no-wrap
27887 msgid ""
27888 " char **\n"
27889 " guestfs_grepi (guestfs_h *g,\n"
27890 "                const char *regex,\n"
27891 "                const char *path);\n"
27892 "\n"
27893 msgstr ""
27894
27895 #. type: =head2
27896 #: ../src/guestfs-actions.pod:2740
27897 msgid "guestfs_grub_install"
27898 msgstr ""
27899
27900 #. type: verbatim
27901 #: ../src/guestfs-actions.pod:2742
27902 #, no-wrap
27903 msgid ""
27904 " int\n"
27905 " guestfs_grub_install (guestfs_h *g,\n"
27906 "                       const char *root,\n"
27907 "                       const char *device);\n"
27908 "\n"
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:2785
27913 msgid "(Added in 1.0.17)"
27914 msgstr ""
27915
27916 #. type: =head2
27917 #: ../src/guestfs-actions.pod:2787
27918 msgid "guestfs_head"
27919 msgstr ""
27920
27921 #. type: verbatim
27922 #: ../src/guestfs-actions.pod:2789
27923 #, no-wrap
27924 msgid ""
27925 " char **\n"
27926 " guestfs_head (guestfs_h *g,\n"
27927 "               const char *path);\n"
27928 "\n"
27929 msgstr ""
27930
27931 #. type: =head2
27932 #: ../src/guestfs-actions.pod:2805
27933 msgid "guestfs_head_n"
27934 msgstr ""
27935
27936 #. type: verbatim
27937 #: ../src/guestfs-actions.pod:2807
27938 #, no-wrap
27939 msgid ""
27940 " char **\n"
27941 " guestfs_head_n (guestfs_h *g,\n"
27942 "                 int nrlines,\n"
27943 "                 const char *path);\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: =head2
27948 #: ../src/guestfs-actions.pod:2829
27949 msgid "guestfs_hexdump"
27950 msgstr ""
27951
27952 #. type: verbatim
27953 #: ../src/guestfs-actions.pod:2831
27954 #, no-wrap
27955 msgid ""
27956 " char *\n"
27957 " guestfs_hexdump (guestfs_h *g,\n"
27958 "                  const char *path);\n"
27959 "\n"
27960 msgstr ""
27961
27962 #. type: textblock
27963 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:7258
27964 #: ../src/guestfs-actions.pod:7313
27965 msgid "(Added in 1.0.22)"
27966 msgstr ""
27967
27968 #. type: =head2
27969 #: ../src/guestfs-actions.pod:2846
27970 msgid "guestfs_initrd_cat"
27971 msgstr ""
27972
27973 #. type: verbatim
27974 #: ../src/guestfs-actions.pod:2848
27975 #, no-wrap
27976 msgid ""
27977 " char *\n"
27978 " guestfs_initrd_cat (guestfs_h *g,\n"
27979 "                     const char *initrdpath,\n"
27980 "                     const char *filename,\n"
27981 "                     size_t *size_r);\n"
27982 "\n"
27983 msgstr ""
27984
27985 #. type: textblock
27986 #: ../src/guestfs-actions.pod:2864
27987 msgid "See also C<guestfs_initrd_list>."
27988 msgstr ""
27989
27990 #. type: =head2
27991 #: ../src/guestfs-actions.pod:2875
27992 msgid "guestfs_initrd_list"
27993 msgstr ""
27994
27995 #. type: verbatim
27996 #: ../src/guestfs-actions.pod:2877
27997 #, no-wrap
27998 msgid ""
27999 " char **\n"
28000 " guestfs_initrd_list (guestfs_h *g,\n"
28001 "                      const char *path);\n"
28002 "\n"
28003 msgstr ""
28004
28005 #. type: =head2
28006 #: ../src/guestfs-actions.pod:2897
28007 msgid "guestfs_inotify_add_watch"
28008 msgstr ""
28009
28010 #. type: verbatim
28011 #: ../src/guestfs-actions.pod:2899
28012 #, no-wrap
28013 msgid ""
28014 " int64_t\n"
28015 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28016 "                            const char *path,\n"
28017 "                            int mask);\n"
28018 "\n"
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:2918
28023 msgid "guestfs_inotify_close"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:2920
28028 #, no-wrap
28029 msgid ""
28030 " int\n"
28031 " guestfs_inotify_close (guestfs_h *g);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: =head2
28036 #: ../src/guestfs-actions.pod:2931
28037 msgid "guestfs_inotify_files"
28038 msgstr ""
28039
28040 #. type: verbatim
28041 #: ../src/guestfs-actions.pod:2933
28042 #, no-wrap
28043 msgid ""
28044 " char **\n"
28045 " guestfs_inotify_files (guestfs_h *g);\n"
28046 "\n"
28047 msgstr ""
28048
28049 #. type: textblock
28050 #: ../src/guestfs-actions.pod:2936
28051 msgid ""
28052 "This function is a helpful wrapper around C<guestfs_inotify_read> which just"
28053 " returns a list of pathnames of objects that were touched.  The returned "
28054 "pathnames are sorted and deduplicated."
28055 msgstr ""
28056
28057 #. type: =head2
28058 #: ../src/guestfs-actions.pod:2946
28059 msgid "guestfs_inotify_init"
28060 msgstr ""
28061
28062 #. type: verbatim
28063 #: ../src/guestfs-actions.pod:2948
28064 #, no-wrap
28065 msgid ""
28066 " int\n"
28067 " guestfs_inotify_init (guestfs_h *g,\n"
28068 "                       int maxevents);\n"
28069 "\n"
28070 msgstr ""
28071
28072 #. type: textblock
28073 #: ../src/guestfs-actions.pod:2956
28074 msgid ""
28075 "C<maxevents> is the maximum number of events which will be queued up between"
28076 " calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28077 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28078 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28079 "throws away events, but records the fact that it threw them away by setting "
28080 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28081 "C<guestfs_inotify_read>)."
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../src/guestfs-actions.pod:2966
28086 msgid ""
28087 "Before any events are generated, you have to add some watches to the "
28088 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28089 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28090 msgstr ""
28091
28092 #. type: textblock
28093 #: ../src/guestfs-actions.pod:2972
28094 msgid ""
28095 "Queued up events should be read periodically by calling "
28096 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful"
28097 " wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28098 "often enough then you risk the internal queue overflowing."
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:2979
28103 msgid ""
28104 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28105 "This also removes any watches automatically."
28106 msgstr ""
28107
28108 #. type: =head2
28109 #: ../src/guestfs-actions.pod:2992
28110 msgid "guestfs_inotify_read"
28111 msgstr ""
28112
28113 #. type: verbatim
28114 #: ../src/guestfs-actions.pod:2994
28115 #, no-wrap
28116 msgid ""
28117 " struct guestfs_inotify_event_list *\n"
28118 " guestfs_inotify_read (guestfs_h *g);\n"
28119 "\n"
28120 msgstr ""
28121
28122 #. type: textblock
28123 #: ../src/guestfs-actions.pod:3008
28124 msgid ""
28125 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28126 "there was an error.  I<The caller must call "
28127 "C<guestfs_free_inotify_event_list> after use>."
28128 msgstr ""
28129
28130 #. type: =head2
28131 #: ../src/guestfs-actions.pod:3014
28132 msgid "guestfs_inotify_rm_watch"
28133 msgstr ""
28134
28135 #. type: verbatim
28136 #: ../src/guestfs-actions.pod:3016
28137 #, no-wrap
28138 msgid ""
28139 " int\n"
28140 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28141 "                           int wd);\n"
28142 "\n"
28143 msgstr ""
28144
28145 #. type: textblock
28146 #: ../src/guestfs-actions.pod:3020
28147 msgid ""
28148 "Remove a previously defined inotify watch.  See "
28149 "C<guestfs_inotify_add_watch>."
28150 msgstr ""
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:3027
28154 msgid "guestfs_inspect_get_arch"
28155 msgstr ""
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:3029
28159 #, no-wrap
28160 msgid ""
28161 " char *\n"
28162 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28163 "                           const char *root);\n"
28164 "\n"
28165 msgstr ""
28166
28167 #. type: textblock
28168 #: ../src/guestfs-actions.pod:3033
28169 msgid ""
28170 "This returns the architecture of the inspected operating system.  The "
28171 "possible return values are listed under C<guestfs_file_architecture>."
28172 msgstr ""
28173
28174 #. type: =head2
28175 #: ../src/guestfs-actions.pod:3047
28176 msgid "guestfs_inspect_get_distro"
28177 msgstr ""
28178
28179 #. type: verbatim
28180 #: ../src/guestfs-actions.pod:3049
28181 #, no-wrap
28182 msgid ""
28183 " char *\n"
28184 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28185 "                             const char *root);\n"
28186 "\n"
28187 msgstr ""
28188
28189 #. type: =head2
28190 #: ../src/guestfs-actions.pod:3149
28191 msgid "guestfs_inspect_get_drive_mappings"
28192 msgstr ""
28193
28194 #. type: verbatim
28195 #: ../src/guestfs-actions.pod:3151
28196 #, no-wrap
28197 msgid ""
28198 " char **\n"
28199 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28200 "                                     const char *root);\n"
28201 "\n"
28202 msgstr ""
28203
28204 #. type: textblock
28205 #: ../src/guestfs-actions.pod:3180
28206 msgid ""
28207 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28208 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28209 msgstr ""
28210
28211 #. type: textblock
28212 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3452
28213 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:5527
28214 #: ../src/guestfs-actions.pod:7615
28215 msgid ""
28216 "This function returns a NULL-terminated array of strings, or NULL if there "
28217 "was an error.  The array of strings will always have length C<2n+1>, where "
28218 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28219 "caller must free the strings and the array after use>."
28220 msgstr ""
28221
28222 #. type: textblock
28223 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3651
28224 msgid "(Added in 1.9.17)"
28225 msgstr ""
28226
28227 #. type: =head2
28228 #: ../src/guestfs-actions.pod:3192
28229 msgid "guestfs_inspect_get_filesystems"
28230 msgstr ""
28231
28232 #. type: verbatim
28233 #: ../src/guestfs-actions.pod:3194
28234 #, no-wrap
28235 msgid ""
28236 " char **\n"
28237 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28238 "                                  const char *root);\n"
28239 "\n"
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:3206
28244 msgid ""
28245 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28246 "C<guestfs_inspect_get_mountpoints>."
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:3215
28251 msgid "guestfs_inspect_get_format"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:3217
28256 #, no-wrap
28257 msgid ""
28258 " char *\n"
28259 " guestfs_inspect_get_format (guestfs_h *g,\n"
28260 "                             const char *root);\n"
28261 "\n"
28262 msgstr ""
28263
28264 #. type: textblock
28265 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3687
28266 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3721
28267 #: ../src/guestfs-actions.pod:6495
28268 msgid "(Added in 1.9.4)"
28269 msgstr ""
28270
28271 #. type: =head2
28272 #: ../src/guestfs-actions.pod:3253
28273 msgid "guestfs_inspect_get_hostname"
28274 msgstr ""
28275
28276 #. type: verbatim
28277 #: ../src/guestfs-actions.pod:3255
28278 #, no-wrap
28279 msgid ""
28280 " char *\n"
28281 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28282 "                               const char *root);\n"
28283 "\n"
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:3270
28288 msgid "(Added in 1.7.9)"
28289 msgstr ""
28290
28291 #. type: =head2
28292 #: ../src/guestfs-actions.pod:3272
28293 msgid "guestfs_inspect_get_icon"
28294 msgstr ""
28295
28296 #. type: verbatim
28297 #: ../src/guestfs-actions.pod:3274
28298 #, no-wrap
28299 msgid ""
28300 " char *\n"
28301 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28302 "                           const char *root,\n"
28303 "                           size_t *size_r,\n"
28304 "                           ...);\n"
28305 "\n"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:3285
28310 #, no-wrap
28311 msgid ""
28312 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28313 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:4182
28319 #: ../src/guestfs-actions.pod:5426
28320 msgid "(Added in 1.11.12)"
28321 msgstr ""
28322
28323 #. type: =head2
28324 #: ../src/guestfs-actions.pod:3354
28325 msgid "guestfs_inspect_get_icon_va"
28326 msgstr ""
28327
28328 #. type: verbatim
28329 #: ../src/guestfs-actions.pod:3356
28330 #, no-wrap
28331 msgid ""
28332 " char *\n"
28333 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28334 "                              const char *root,\n"
28335 "                              size_t *size_r,\n"
28336 "                              va_list args);\n"
28337 "\n"
28338 msgstr ""
28339
28340 #. type: textblock
28341 #: ../src/guestfs-actions.pod:3362
28342 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28343 msgstr ""
28344
28345 #. type: =head2
28346 #: ../src/guestfs-actions.pod:3366
28347 msgid "guestfs_inspect_get_icon_argv"
28348 msgstr ""
28349
28350 #. type: verbatim
28351 #: ../src/guestfs-actions.pod:3368
28352 #, no-wrap
28353 msgid ""
28354 " char *\n"
28355 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28356 "                                const char *root,\n"
28357 "                                size_t *size_r,\n"
28358 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28359 "\n"
28360 msgstr ""
28361
28362 #. type: textblock
28363 #: ../src/guestfs-actions.pod:3374
28364 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28365 msgstr ""
28366
28367 #. type: =head2
28368 #: ../src/guestfs-actions.pod:3378
28369 msgid "guestfs_inspect_get_major_version"
28370 msgstr ""
28371
28372 #. type: verbatim
28373 #: ../src/guestfs-actions.pod:3380
28374 #, no-wrap
28375 msgid ""
28376 " int\n"
28377 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28378 "                                    const char *root);\n"
28379 "\n"
28380 msgstr ""
28381
28382 #. type: =head2
28383 #: ../src/guestfs-actions.pod:3402
28384 msgid "guestfs_inspect_get_minor_version"
28385 msgstr ""
28386
28387 #. type: verbatim
28388 #: ../src/guestfs-actions.pod:3404
28389 #, no-wrap
28390 msgid ""
28391 " int\n"
28392 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28393 "                                    const char *root);\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: textblock
28398 #: ../src/guestfs-actions.pod:3413
28399 msgid ""
28400 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28401 "C<guestfs_inspect_get_major_version>."
28402 msgstr ""
28403
28404 #. type: =head2
28405 #: ../src/guestfs-actions.pod:3420
28406 msgid "guestfs_inspect_get_mountpoints"
28407 msgstr ""
28408
28409 #. type: verbatim
28410 #: ../src/guestfs-actions.pod:3422
28411 #, no-wrap
28412 msgid ""
28413 " char **\n"
28414 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28415 "                                  const char *root);\n"
28416 "\n"
28417 msgstr ""
28418
28419 #. type: textblock
28420 #: ../src/guestfs-actions.pod:3443
28421 msgid ""
28422 "For operating systems like Windows which still use drive letters, this call "
28423 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28424 "information about the mapping of drive letters to partitions, see "
28425 "C<guestfs_inspect_get_drive_mappings>."
28426 msgstr ""
28427
28428 #. type: textblock
28429 #: ../src/guestfs-actions.pod:3449
28430 msgid ""
28431 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28432 "C<guestfs_inspect_get_filesystems>."
28433 msgstr ""
28434
28435 #. type: =head2
28436 #: ../src/guestfs-actions.pod:3460
28437 msgid "guestfs_inspect_get_package_format"
28438 msgstr ""
28439
28440 #. type: verbatim
28441 #: ../src/guestfs-actions.pod:3462
28442 #, no-wrap
28443 msgid ""
28444 " char *\n"
28445 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28446 "                                     const char *root);\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: textblock
28451 #: ../src/guestfs-actions.pod:3466
28452 msgid ""
28453 "This function and C<guestfs_inspect_get_package_management> return the "
28454 "package format and package management tool used by the inspected operating "
28455 "system.  For example for Fedora these functions would return C<rpm> (package"
28456 " format) and C<yum> (package management)."
28457 msgstr ""
28458
28459 #. type: textblock
28460 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3513
28461 msgid "(Added in 1.7.5)"
28462 msgstr ""
28463
28464 #. type: =head2
28465 #: ../src/guestfs-actions.pod:3487
28466 msgid "guestfs_inspect_get_package_management"
28467 msgstr ""
28468
28469 #. type: verbatim
28470 #: ../src/guestfs-actions.pod:3489
28471 #, no-wrap
28472 msgid ""
28473 " char *\n"
28474 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28475 "                                         const char *root);\n"
28476 "\n"
28477 msgstr ""
28478
28479 #. type: textblock
28480 #: ../src/guestfs-actions.pod:3493
28481 msgid ""
28482 "C<guestfs_inspect_get_package_format> and this function return the package "
28483 "format and package management tool used by the inspected operating system.  "
28484 "For example for Fedora these functions would return C<rpm> (package format) "
28485 "and C<yum> (package management)."
28486 msgstr ""
28487
28488 #. type: =head2
28489 #: ../src/guestfs-actions.pod:3515
28490 msgid "guestfs_inspect_get_product_name"
28491 msgstr ""
28492
28493 #. type: verbatim
28494 #: ../src/guestfs-actions.pod:3517
28495 #, no-wrap
28496 msgid ""
28497 " char *\n"
28498 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28499 "                                   const char *root);\n"
28500 "\n"
28501 msgstr ""
28502
28503 #. type: =head2
28504 #: ../src/guestfs-actions.pod:3536
28505 msgid "guestfs_inspect_get_product_variant"
28506 msgstr ""
28507
28508 #. type: verbatim
28509 #: ../src/guestfs-actions.pod:3538
28510 #, no-wrap
28511 msgid ""
28512 " char *\n"
28513 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28514 "                                      const char *root);\n"
28515 "\n"
28516 msgstr ""
28517
28518 #. type: textblock
28519 #: ../src/guestfs-actions.pod:3561
28520 msgid ""
28521 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28522 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:3568
28527 msgid "(Added in 1.9.13)"
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:3570
28532 msgid "guestfs_inspect_get_roots"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:3572
28537 #, no-wrap
28538 msgid ""
28539 " char **\n"
28540 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28541 "\n"
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../src/guestfs-actions.pod:3575
28546 msgid ""
28547 "This function is a convenient way to get the list of root devices, as "
28548 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28549 "the whole inspection process."
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../src/guestfs-actions.pod:3579
28554 msgid ""
28555 "This returns an empty list if either no root devices were found or the "
28556 "caller has not called C<guestfs_inspect_os>."
28557 msgstr ""
28558
28559 #. type: textblock
28560 #: ../src/guestfs-actions.pod:3588
28561 msgid "(Added in 1.7.3)"
28562 msgstr ""
28563
28564 #. type: =head2
28565 #: ../src/guestfs-actions.pod:3590
28566 msgid "guestfs_inspect_get_type"
28567 msgstr ""
28568
28569 #. type: verbatim
28570 #: ../src/guestfs-actions.pod:3592
28571 #, no-wrap
28572 msgid ""
28573 " char *\n"
28574 " guestfs_inspect_get_type (guestfs_h *g,\n"
28575 "                           const char *root);\n"
28576 "\n"
28577 msgstr ""
28578
28579 #. type: =head2
28580 #: ../src/guestfs-actions.pod:3633
28581 msgid "guestfs_inspect_get_windows_current_control_set"
28582 msgstr ""
28583
28584 #. type: verbatim
28585 #: ../src/guestfs-actions.pod:3635
28586 #, no-wrap
28587 msgid ""
28588 " char *\n"
28589 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28590 "                                                  const char *root);\n"
28591 "\n"
28592 msgstr ""
28593
28594 #. type: =head2
28595 #: ../src/guestfs-actions.pod:3653
28596 msgid "guestfs_inspect_get_windows_systemroot"
28597 msgstr ""
28598
28599 #. type: verbatim
28600 #: ../src/guestfs-actions.pod:3655
28601 #, no-wrap
28602 msgid ""
28603 " char *\n"
28604 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28605 "                                         const char *root);\n"
28606 "\n"
28607 msgstr ""
28608
28609 #. type: textblock
28610 #: ../src/guestfs-actions.pod:3671
28611 msgid "(Added in 1.5.25)"
28612 msgstr ""
28613
28614 #. type: =head2
28615 #: ../src/guestfs-actions.pod:3673
28616 msgid "guestfs_inspect_is_live"
28617 msgstr ""
28618
28619 #. type: verbatim
28620 #: ../src/guestfs-actions.pod:3675
28621 #, no-wrap
28622 msgid ""
28623 " int\n"
28624 " guestfs_inspect_is_live (guestfs_h *g,\n"
28625 "                          const char *root);\n"
28626 "\n"
28627 msgstr ""
28628
28629 #. type: textblock
28630 #: ../src/guestfs-actions.pod:3679
28631 msgid ""
28632 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28633 "disk), then this returns true if a live image was detected on the disk."
28634 msgstr ""
28635
28636 #. type: =head2
28637 #: ../src/guestfs-actions.pod:3689
28638 msgid "guestfs_inspect_is_multipart"
28639 msgstr ""
28640
28641 #. type: verbatim
28642 #: ../src/guestfs-actions.pod:3691
28643 #, no-wrap
28644 msgid ""
28645 " int\n"
28646 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28647 "                               const char *root);\n"
28648 "\n"
28649 msgstr ""
28650
28651 #. type: textblock
28652 #: ../src/guestfs-actions.pod:3695
28653 msgid ""
28654 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28655 "disk), then this returns true if the disk is part of a set."
28656 msgstr ""
28657
28658 #. type: =head2
28659 #: ../src/guestfs-actions.pod:3705
28660 msgid "guestfs_inspect_is_netinst"
28661 msgstr ""
28662
28663 #. type: verbatim
28664 #: ../src/guestfs-actions.pod:3707
28665 #, no-wrap
28666 msgid ""
28667 " int\n"
28668 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28669 "                             const char *root);\n"
28670 "\n"
28671 msgstr ""
28672
28673 #. type: textblock
28674 #: ../src/guestfs-actions.pod:3711
28675 msgid ""
28676 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28677 "disk), then this returns true if the disk is a network installer, ie. not a "
28678 "self-contained install CD but one which is likely to require network access "
28679 "to complete the install."
28680 msgstr ""
28681
28682 #. type: =head2
28683 #: ../src/guestfs-actions.pod:3723
28684 msgid "guestfs_inspect_list_applications"
28685 msgstr ""
28686
28687 #. type: verbatim
28688 #: ../src/guestfs-actions.pod:3725
28689 #, no-wrap
28690 msgid ""
28691 " struct guestfs_application_list *\n"
28692 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28693 "                                    const char *root);\n"
28694 "\n"
28695 msgstr ""
28696
28697 #. type: textblock
28698 #: ../src/guestfs-actions.pod:3731
28699 msgid ""
28700 "I<Note:> This call works differently from other parts of the inspection API."
28701 "  You have to call C<guestfs_inspect_os>, then "
28702 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28703 "this.  Listing applications is a significantly more difficult operation "
28704 "which requires access to the full filesystem.  Also note that unlike the "
28705 "other C<guestfs_inspect_get_*> calls which are just returning data cached in"
28706 " the libguestfs handle, this call actually reads parts of the mounted "
28707 "filesystems during the call."
28708 msgstr ""
28709
28710 #. type: textblock
28711 #: ../src/guestfs-actions.pod:3821
28712 msgid ""
28713 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28714 "there was an error.  I<The caller must call C<guestfs_free_application_list>"
28715 " after use>."
28716 msgstr ""
28717
28718 #. type: textblock
28719 #: ../src/guestfs-actions.pod:3825
28720 msgid "(Added in 1.7.8)"
28721 msgstr ""
28722
28723 #. type: =head2
28724 #: ../src/guestfs-actions.pod:3827
28725 msgid "guestfs_inspect_os"
28726 msgstr ""
28727
28728 #. type: verbatim
28729 #: ../src/guestfs-actions.pod:3829
28730 #, no-wrap
28731 msgid ""
28732 " char **\n"
28733 " guestfs_inspect_os (guestfs_h *g);\n"
28734 "\n"
28735 msgstr ""
28736
28737 #. type: textblock
28738 #: ../src/guestfs-actions.pod:3845
28739 msgid ""
28740 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28741 "functions in order to query further information about each operating system,"
28742 " such as the name and version."
28743 msgstr ""
28744
28745 #. type: textblock
28746 #: ../src/guestfs-actions.pod:3850
28747 msgid ""
28748 "This function uses other libguestfs features such as C<guestfs_mount_ro> and"
28749 " C<guestfs_umount_all> in order to mount and unmount filesystems and look at"
28750 " the contents.  This should be called with no disks currently mounted.  The "
28751 "function may also use Augeas, so any existing Augeas handle will be closed."
28752 msgstr ""
28753
28754 #. type: textblock
28755 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4193
28756 #: ../src/guestfs-actions.pod:4275
28757 msgid "See also C<guestfs_list_filesystems>."
28758 msgstr ""
28759
28760 #. type: =head2
28761 #: ../src/guestfs-actions.pod:3870
28762 msgid "guestfs_is_blockdev"
28763 msgstr ""
28764
28765 #. type: verbatim
28766 #: ../src/guestfs-actions.pod:3872
28767 #, no-wrap
28768 msgid ""
28769 " int\n"
28770 " guestfs_is_blockdev (guestfs_h *g,\n"
28771 "                      const char *path);\n"
28772 "\n"
28773 msgstr ""
28774
28775 #. type: textblock
28776 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3908
28777 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3953
28778 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4025
28779 #: ../src/guestfs-actions.pod:4040
28780 msgid "See also C<guestfs_stat>."
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3912
28785 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4029
28786 #: ../src/guestfs-actions.pod:4044
28787 msgid "(Added in 1.5.10)"
28788 msgstr ""
28789
28790 #. type: =head2
28791 #: ../src/guestfs-actions.pod:3885
28792 msgid "guestfs_is_busy"
28793 msgstr ""
28794
28795 #. type: verbatim
28796 #: ../src/guestfs-actions.pod:3887
28797 #, no-wrap
28798 msgid ""
28799 " int\n"
28800 " guestfs_is_busy (guestfs_h *g);\n"
28801 "\n"
28802 msgstr ""
28803
28804 #. type: =head2
28805 #: ../src/guestfs-actions.pod:3899
28806 msgid "guestfs_is_chardev"
28807 msgstr ""
28808
28809 #. type: verbatim
28810 #: ../src/guestfs-actions.pod:3901
28811 #, no-wrap
28812 msgid ""
28813 " int\n"
28814 " guestfs_is_chardev (guestfs_h *g,\n"
28815 "                     const char *path);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: =head2
28820 #: ../src/guestfs-actions.pod:3914
28821 msgid "guestfs_is_config"
28822 msgstr ""
28823
28824 #. type: verbatim
28825 #: ../src/guestfs-actions.pod:3916
28826 #, no-wrap
28827 msgid ""
28828 " int\n"
28829 " guestfs_is_config (guestfs_h *g);\n"
28830 "\n"
28831 msgstr ""
28832
28833 #. type: =head2
28834 #: ../src/guestfs-actions.pod:3928
28835 msgid "guestfs_is_dir"
28836 msgstr ""
28837
28838 #. type: verbatim
28839 #: ../src/guestfs-actions.pod:3930
28840 #, no-wrap
28841 msgid ""
28842 " int\n"
28843 " guestfs_is_dir (guestfs_h *g,\n"
28844 "                 const char *path);\n"
28845 "\n"
28846 msgstr ""
28847
28848 #. type: =head2
28849 #: ../src/guestfs-actions.pod:3944
28850 msgid "guestfs_is_fifo"
28851 msgstr ""
28852
28853 #. type: verbatim
28854 #: ../src/guestfs-actions.pod:3946
28855 #, no-wrap
28856 msgid ""
28857 " int\n"
28858 " guestfs_is_fifo (guestfs_h *g,\n"
28859 "                  const char *path);\n"
28860 "\n"
28861 msgstr ""
28862
28863 #. type: =head2
28864 #: ../src/guestfs-actions.pod:3959
28865 msgid "guestfs_is_file"
28866 msgstr ""
28867
28868 #. type: verbatim
28869 #: ../src/guestfs-actions.pod:3961
28870 #, no-wrap
28871 msgid ""
28872 " int\n"
28873 " guestfs_is_file (guestfs_h *g,\n"
28874 "                  const char *path);\n"
28875 "\n"
28876 msgstr ""
28877
28878 #. type: =head2
28879 #: ../src/guestfs-actions.pod:3975
28880 msgid "guestfs_is_launching"
28881 msgstr ""
28882
28883 #. type: verbatim
28884 #: ../src/guestfs-actions.pod:3977
28885 #, no-wrap
28886 msgid ""
28887 " int\n"
28888 " guestfs_is_launching (guestfs_h *g);\n"
28889 "\n"
28890 msgstr ""
28891
28892 #. type: =head2
28893 #: ../src/guestfs-actions.pod:3989
28894 msgid "guestfs_is_lv"
28895 msgstr ""
28896
28897 #. type: verbatim
28898 #: ../src/guestfs-actions.pod:3991
28899 #, no-wrap
28900 msgid ""
28901 " int\n"
28902 " guestfs_is_lv (guestfs_h *g,\n"
28903 "                const char *device);\n"
28904 "\n"
28905 msgstr ""
28906
28907 #. type: =head2
28908 #: ../src/guestfs-actions.pod:4002
28909 msgid "guestfs_is_ready"
28910 msgstr ""
28911
28912 #. type: verbatim
28913 #: ../src/guestfs-actions.pod:4004
28914 #, no-wrap
28915 msgid ""
28916 " int\n"
28917 " guestfs_is_ready (guestfs_h *g);\n"
28918 "\n"
28919 msgstr ""
28920
28921 #. type: =head2
28922 #: ../src/guestfs-actions.pod:4016
28923 msgid "guestfs_is_socket"
28924 msgstr ""
28925
28926 #. type: verbatim
28927 #: ../src/guestfs-actions.pod:4018
28928 #, no-wrap
28929 msgid ""
28930 " int\n"
28931 " guestfs_is_socket (guestfs_h *g,\n"
28932 "                    const char *path);\n"
28933 "\n"
28934 msgstr ""
28935
28936 #. type: =head2
28937 #: ../src/guestfs-actions.pod:4031
28938 msgid "guestfs_is_symlink"
28939 msgstr ""
28940
28941 #. type: verbatim
28942 #: ../src/guestfs-actions.pod:4033
28943 #, no-wrap
28944 msgid ""
28945 " int\n"
28946 " guestfs_is_symlink (guestfs_h *g,\n"
28947 "                     const char *path);\n"
28948 "\n"
28949 msgstr ""
28950
28951 #. type: =head2
28952 #: ../src/guestfs-actions.pod:4046
28953 msgid "guestfs_is_zero"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:4048
28958 #, no-wrap
28959 msgid ""
28960 " int\n"
28961 " guestfs_is_zero (guestfs_h *g,\n"
28962 "                  const char *path);\n"
28963 "\n"
28964 msgstr ""
28965
28966 #. type: textblock
28967 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4071
28968 msgid "(Added in 1.11.8)"
28969 msgstr ""
28970
28971 #. type: =head2
28972 #: ../src/guestfs-actions.pod:4059
28973 msgid "guestfs_is_zero_device"
28974 msgstr ""
28975
28976 #. type: verbatim
28977 #: ../src/guestfs-actions.pod:4061
28978 #, no-wrap
28979 msgid ""
28980 " int\n"
28981 " guestfs_is_zero_device (guestfs_h *g,\n"
28982 "                         const char *device);\n"
28983 "\n"
28984 msgstr ""
28985
28986 #. type: =head2
28987 #: ../src/guestfs-actions.pod:4073
28988 msgid "guestfs_kill_subprocess"
28989 msgstr ""
28990
28991 #. type: verbatim
28992 #: ../src/guestfs-actions.pod:4075
28993 #, no-wrap
28994 msgid ""
28995 " int\n"
28996 " guestfs_kill_subprocess (guestfs_h *g);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: =head2
29001 #: ../src/guestfs-actions.pod:4084
29002 msgid "guestfs_launch"
29003 msgstr ""
29004
29005 #. type: verbatim
29006 #: ../src/guestfs-actions.pod:4086
29007 #, no-wrap
29008 msgid ""
29009 " int\n"
29010 " guestfs_launch (guestfs_h *g);\n"
29011 "\n"
29012 msgstr ""
29013
29014 #. type: =head2
29015 #: ../src/guestfs-actions.pod:4104
29016 msgid "guestfs_lchown"
29017 msgstr ""
29018
29019 #. type: verbatim
29020 #: ../src/guestfs-actions.pod:4106
29021 #, no-wrap
29022 msgid ""
29023 " int\n"
29024 " guestfs_lchown (guestfs_h *g,\n"
29025 "                 int owner,\n"
29026 "                 int group,\n"
29027 "                 const char *path);\n"
29028 "\n"
29029 msgstr ""
29030
29031 #. type: textblock
29032 #: ../src/guestfs-actions.pod:4112
29033 msgid ""
29034 "Change the file owner to C<owner> and group to C<group>.  This is like "
29035 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29036 "changed, not the target."
29037 msgstr ""
29038
29039 #. type: =head2
29040 #: ../src/guestfs-actions.pod:4124
29041 msgid "guestfs_lgetxattr"
29042 msgstr ""
29043
29044 #. type: verbatim
29045 #: ../src/guestfs-actions.pod:4126
29046 #, no-wrap
29047 msgid ""
29048 " char *\n"
29049 " guestfs_lgetxattr (guestfs_h *g,\n"
29050 "                    const char *path,\n"
29051 "                    const char *name,\n"
29052 "                    size_t *size_r);\n"
29053 "\n"
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../src/guestfs-actions.pod:4146
29058 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:4154
29063 msgid "guestfs_lgetxattrs"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:4156
29068 #, no-wrap
29069 msgid ""
29070 " struct guestfs_xattr_list *\n"
29071 " guestfs_lgetxattrs (guestfs_h *g,\n"
29072 "                     const char *path);\n"
29073 "\n"
29074 msgstr ""
29075
29076 #. type: textblock
29077 #: ../src/guestfs-actions.pod:4160
29078 msgid ""
29079 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link,"
29080 " then it returns the extended attributes of the link itself."
29081 msgstr ""
29082
29083 #. type: =head2
29084 #: ../src/guestfs-actions.pod:4170
29085 msgid "guestfs_list_9p"
29086 msgstr ""
29087
29088 #. type: verbatim
29089 #: ../src/guestfs-actions.pod:4172
29090 #, no-wrap
29091 msgid ""
29092 " char **\n"
29093 " guestfs_list_9p (guestfs_h *g);\n"
29094 "\n"
29095 msgstr ""
29096
29097 #. type: =head2
29098 #: ../src/guestfs-actions.pod:4184
29099 msgid "guestfs_list_devices"
29100 msgstr ""
29101
29102 #. type: verbatim
29103 #: ../src/guestfs-actions.pod:4186
29104 #, no-wrap
29105 msgid ""
29106 " char **\n"
29107 " guestfs_list_devices (guestfs_h *g);\n"
29108 "\n"
29109 msgstr ""
29110
29111 #. type: =head2
29112 #: ../src/guestfs-actions.pod:4201
29113 msgid "guestfs_list_dm_devices"
29114 msgstr ""
29115
29116 #. type: verbatim
29117 #: ../src/guestfs-actions.pod:4203
29118 #, no-wrap
29119 msgid ""
29120 " char **\n"
29121 " guestfs_list_dm_devices (guestfs_h *g);\n"
29122 "\n"
29123 msgstr ""
29124
29125 #. type: textblock
29126 #: ../src/guestfs-actions.pod:4208
29127 msgid ""
29128 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29129 "previous call to C<guestfs_luks_open>."
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../src/guestfs-actions.pod:4211
29134 msgid ""
29135 "Device mapper devices which correspond to logical volumes are I<not> "
29136 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29137 "volumes."
29138 msgstr ""
29139
29140 #. type: textblock
29141 #: ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5665
29142 msgid "(Added in 1.11.15)"
29143 msgstr ""
29144
29145 #. type: =head2
29146 #: ../src/guestfs-actions.pod:4221
29147 msgid "guestfs_list_filesystems"
29148 msgstr ""
29149
29150 #. type: verbatim
29151 #: ../src/guestfs-actions.pod:4223
29152 #, no-wrap
29153 msgid ""
29154 " char **\n"
29155 " guestfs_list_filesystems (guestfs_h *g);\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: textblock
29160 #: ../src/guestfs-actions.pod:4243
29161 msgid ""
29162 "This command runs other libguestfs commands, which might include "
29163 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29164 "soon after launch and only when nothing is mounted."
29165 msgstr ""
29166
29167 #. type: textblock
29168 #: ../src/guestfs-actions.pod:4247
29169 msgid ""
29170 "Not all of the filesystems returned will be mountable.  In particular, swap "
29171 "partitions are returned in the list.  Also this command does not check that "
29172 "each filesystem found is valid and mountable, and some filesystems might be "
29173 "mountable but require special options.  Filesystems may not all belong to a "
29174 "single logical operating system (use C<guestfs_inspect_os> to look for "
29175 "OSes)."
29176 msgstr ""
29177
29178 #. type: textblock
29179 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:6028
29180 msgid "(Added in 1.5.15)"
29181 msgstr ""
29182
29183 #. type: =head2
29184 #: ../src/guestfs-actions.pod:4263
29185 msgid "guestfs_list_partitions"
29186 msgstr ""
29187
29188 #. type: verbatim
29189 #: ../src/guestfs-actions.pod:4265
29190 #, no-wrap
29191 msgid ""
29192 " char **\n"
29193 " guestfs_list_partitions (guestfs_h *g);\n"
29194 "\n"
29195 msgstr ""
29196
29197 #. type: textblock
29198 #: ../src/guestfs-actions.pod:4272
29199 msgid ""
29200 "This does not return logical volumes.  For that you will need to call "
29201 "C<guestfs_lvs>."
29202 msgstr ""
29203
29204 #. type: =head2
29205 #: ../src/guestfs-actions.pod:4283
29206 msgid "guestfs_ll"
29207 msgstr ""
29208
29209 #. type: verbatim
29210 #: ../src/guestfs-actions.pod:4285
29211 #, no-wrap
29212 msgid ""
29213 " char *\n"
29214 " guestfs_ll (guestfs_h *g,\n"
29215 "             const char *directory);\n"
29216 "\n"
29217 msgstr ""
29218
29219 #. type: =head2
29220 #: ../src/guestfs-actions.pod:4300
29221 msgid "guestfs_ln"
29222 msgstr ""
29223
29224 #. type: verbatim
29225 #: ../src/guestfs-actions.pod:4302
29226 #, no-wrap
29227 msgid ""
29228 " int\n"
29229 " guestfs_ln (guestfs_h *g,\n"
29230 "             const char *target,\n"
29231 "             const char *linkname);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: =head2
29236 #: ../src/guestfs-actions.pod:4313
29237 msgid "guestfs_ln_f"
29238 msgstr ""
29239
29240 #. type: verbatim
29241 #: ../src/guestfs-actions.pod:4315
29242 #, no-wrap
29243 msgid ""
29244 " int\n"
29245 " guestfs_ln_f (guestfs_h *g,\n"
29246 "               const char *target,\n"
29247 "               const char *linkname);\n"
29248 "\n"
29249 msgstr ""
29250
29251 #. type: =head2
29252 #: ../src/guestfs-actions.pod:4327
29253 msgid "guestfs_ln_s"
29254 msgstr ""
29255
29256 #. type: verbatim
29257 #: ../src/guestfs-actions.pod:4329
29258 #, no-wrap
29259 msgid ""
29260 " int\n"
29261 " guestfs_ln_s (guestfs_h *g,\n"
29262 "               const char *target,\n"
29263 "               const char *linkname);\n"
29264 "\n"
29265 msgstr ""
29266
29267 #. type: =head2
29268 #: ../src/guestfs-actions.pod:4340
29269 msgid "guestfs_ln_sf"
29270 msgstr ""
29271
29272 #. type: verbatim
29273 #: ../src/guestfs-actions.pod:4342
29274 #, no-wrap
29275 msgid ""
29276 " int\n"
29277 " guestfs_ln_sf (guestfs_h *g,\n"
29278 "                const char *target,\n"
29279 "                const char *linkname);\n"
29280 "\n"
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:4354
29285 msgid "guestfs_lremovexattr"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:4356
29290 #, no-wrap
29291 msgid ""
29292 " int\n"
29293 " guestfs_lremovexattr (guestfs_h *g,\n"
29294 "                       const char *xattr,\n"
29295 "                       const char *path);\n"
29296 "\n"
29297 msgstr ""
29298
29299 #. type: textblock
29300 #: ../src/guestfs-actions.pod:4361
29301 msgid ""
29302 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29303 "link, then it removes an extended attribute of the link itself."
29304 msgstr ""
29305
29306 #. type: =head2
29307 #: ../src/guestfs-actions.pod:4369
29308 msgid "guestfs_ls"
29309 msgstr ""
29310
29311 #. type: verbatim
29312 #: ../src/guestfs-actions.pod:4371
29313 #, no-wrap
29314 msgid ""
29315 " char **\n"
29316 " guestfs_ls (guestfs_h *g,\n"
29317 "             const char *directory);\n"
29318 "\n"
29319 msgstr ""
29320
29321 #. type: textblock
29322 #: ../src/guestfs-actions.pod:4379
29323 msgid ""
29324 "This command is mostly useful for interactive sessions.  Programs should "
29325 "probably use C<guestfs_readdir> instead."
29326 msgstr ""
29327
29328 #. type: =head2
29329 #: ../src/guestfs-actions.pod:4388
29330 msgid "guestfs_lsetxattr"
29331 msgstr ""
29332
29333 #. type: verbatim
29334 #: ../src/guestfs-actions.pod:4390
29335 #, no-wrap
29336 msgid ""
29337 " int\n"
29338 " guestfs_lsetxattr (guestfs_h *g,\n"
29339 "                    const char *xattr,\n"
29340 "                    const char *val,\n"
29341 "                    int vallen,\n"
29342 "                    const char *path);\n"
29343 "\n"
29344 msgstr ""
29345
29346 #. type: textblock
29347 #: ../src/guestfs-actions.pod:4397
29348 msgid ""
29349 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29350 "then it sets an extended attribute of the link itself."
29351 msgstr ""
29352
29353 #. type: =head2
29354 #: ../src/guestfs-actions.pod:4405
29355 msgid "guestfs_lstat"
29356 msgstr ""
29357
29358 #. type: verbatim
29359 #: ../src/guestfs-actions.pod:4407
29360 #, no-wrap
29361 msgid ""
29362 " struct guestfs_stat *\n"
29363 " guestfs_lstat (guestfs_h *g,\n"
29364 "                const char *path);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../src/guestfs-actions.pod:4413
29370 msgid ""
29371 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29372 "link, then the link is stat-ed, not the file it refers to."
29373 msgstr ""
29374
29375 #. type: textblock
29376 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7218
29377 msgid ""
29378 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29379 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29380 msgstr ""
29381
29382 #. type: textblock
29383 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:7222
29384 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7621
29385 msgid "(Added in 0.9.2)"
29386 msgstr ""
29387
29388 #. type: =head2
29389 #: ../src/guestfs-actions.pod:4425
29390 msgid "guestfs_lstatlist"
29391 msgstr ""
29392
29393 #. type: verbatim
29394 #: ../src/guestfs-actions.pod:4427
29395 #, no-wrap
29396 msgid ""
29397 " struct guestfs_stat_list *\n"
29398 " guestfs_lstatlist (guestfs_h *g,\n"
29399 "                    const char *path,\n"
29400 "                    char *const *names);\n"
29401 "\n"
29402 msgstr ""
29403
29404 #. type: textblock
29405 #: ../src/guestfs-actions.pod:4432
29406 msgid ""
29407 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29408 "files, where all files are in the directory C<path>.  C<names> is the list "
29409 "of files from this directory."
29410 msgstr ""
29411
29412 #. type: textblock
29413 #: ../src/guestfs-actions.pod:4441
29414 msgid ""
29415 "This call is intended for programs that want to efficiently list a directory"
29416 " contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29417 "for a similarly efficient call for getting extended attributes.  Very long "
29418 "directory listings might cause the protocol message size to be exceeded, "
29419 "causing this call to fail.  The caller must split up such requests into "
29420 "smaller groups of names."
29421 msgstr ""
29422
29423 #. type: textblock
29424 #: ../src/guestfs-actions.pod:4449
29425 msgid ""
29426 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29427 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29428 msgstr ""
29429
29430 #. type: =head2
29431 #: ../src/guestfs-actions.pod:4455
29432 msgid "guestfs_luks_add_key"
29433 msgstr ""
29434
29435 #. type: verbatim
29436 #: ../src/guestfs-actions.pod:4457
29437 #, no-wrap
29438 msgid ""
29439 " int\n"
29440 " guestfs_luks_add_key (guestfs_h *g,\n"
29441 "                       const char *device,\n"
29442 "                       const char *key,\n"
29443 "                       const char *newkey,\n"
29444 "                       int keyslot);\n"
29445 "\n"
29446 msgstr ""
29447
29448 #. type: textblock
29449 #: ../src/guestfs-actions.pod:4469
29450 msgid ""
29451 "Note that if C<keyslot> already contains a key, then this command will fail."
29452 "  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29453 msgstr ""
29454
29455 #. type: textblock
29456 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4515
29457 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
29458 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
29459 msgid ""
29460 "This function takes a key or passphrase parameter which could contain "
29461 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29462 "information."
29463 msgstr ""
29464
29465 #. type: textblock
29466 #: ../src/guestfs-actions.pod:4479 ../src/guestfs-actions.pod:4519
29467 #: ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4562
29468 msgid "(Added in 1.5.2)"
29469 msgstr ""
29470
29471 #. type: =head2
29472 #: ../src/guestfs-actions.pod:4481
29473 msgid "guestfs_luks_close"
29474 msgstr ""
29475
29476 #. type: verbatim
29477 #: ../src/guestfs-actions.pod:4483
29478 #, no-wrap
29479 msgid ""
29480 " int\n"
29481 " guestfs_luks_close (guestfs_h *g,\n"
29482 "                     const char *device);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../src/guestfs-actions.pod:4487
29488 msgid ""
29489 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29490 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the"
29491 " LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the"
29492 " underlying block device."
29493 msgstr ""
29494
29495 #. type: textblock
29496 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4597
29497 #: ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4666
29498 #: ../src/guestfs-actions.pod:4714
29499 msgid "(Added in 1.5.1)"
29500 msgstr ""
29501
29502 #. type: =head2
29503 #: ../src/guestfs-actions.pod:4497
29504 msgid "guestfs_luks_format"
29505 msgstr ""
29506
29507 #. type: verbatim
29508 #: ../src/guestfs-actions.pod:4499
29509 #, no-wrap
29510 msgid ""
29511 " int\n"
29512 " guestfs_luks_format (guestfs_h *g,\n"
29513 "                      const char *device,\n"
29514 "                      const char *key,\n"
29515 "                      int keyslot);\n"
29516 "\n"
29517 msgstr ""
29518
29519 #. type: =head2
29520 #: ../src/guestfs-actions.pod:4521
29521 msgid "guestfs_luks_format_cipher"
29522 msgstr ""
29523
29524 #. type: verbatim
29525 #: ../src/guestfs-actions.pod:4523
29526 #, no-wrap
29527 msgid ""
29528 " int\n"
29529 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29530 "                             const char *device,\n"
29531 "                             const char *key,\n"
29532 "                             int keyslot,\n"
29533 "                             const char *cipher);\n"
29534 "\n"
29535 msgstr ""
29536
29537 #. type: textblock
29538 #: ../src/guestfs-actions.pod:4530
29539 msgid ""
29540 "This command is the same as C<guestfs_luks_format> but it also allows you to"
29541 " set the C<cipher> used."
29542 msgstr ""
29543
29544 #. type: =head2
29545 #: ../src/guestfs-actions.pod:4544
29546 msgid "guestfs_luks_kill_slot"
29547 msgstr ""
29548
29549 #. type: verbatim
29550 #: ../src/guestfs-actions.pod:4546
29551 #, no-wrap
29552 msgid ""
29553 " int\n"
29554 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29555 "                         const char *device,\n"
29556 "                         const char *key,\n"
29557 "                         int keyslot);\n"
29558 "\n"
29559 msgstr ""
29560
29561 #. type: =head2
29562 #: ../src/guestfs-actions.pod:4564
29563 msgid "guestfs_luks_open"
29564 msgstr ""
29565
29566 #. type: verbatim
29567 #: ../src/guestfs-actions.pod:4566
29568 #, no-wrap
29569 msgid ""
29570 " int\n"
29571 " guestfs_luks_open (guestfs_h *g,\n"
29572 "                    const char *device,\n"
29573 "                    const char *key,\n"
29574 "                    const char *mapname);\n"
29575 "\n"
29576 msgstr ""
29577
29578 #. type: textblock
29579 #: ../src/guestfs-actions.pod:4584
29580 msgid ""
29581 "If this block device contains LVM volume groups, then calling "
29582 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29583 "visible."
29584 msgstr ""
29585
29586 #. type: textblock
29587 #: ../src/guestfs-actions.pod:4588
29588 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29589 msgstr ""
29590
29591 #. type: =head2
29592 #: ../src/guestfs-actions.pod:4599
29593 msgid "guestfs_luks_open_ro"
29594 msgstr ""
29595
29596 #. type: verbatim
29597 #: ../src/guestfs-actions.pod:4601
29598 #, no-wrap
29599 msgid ""
29600 " int\n"
29601 " guestfs_luks_open_ro (guestfs_h *g,\n"
29602 "                       const char *device,\n"
29603 "                       const char *key,\n"
29604 "                       const char *mapname);\n"
29605 "\n"
29606 msgstr ""
29607
29608 #. type: textblock
29609 #: ../src/guestfs-actions.pod:4607
29610 msgid ""
29611 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29612 "created."
29613 msgstr ""
29614
29615 #. type: =head2
29616 #: ../src/guestfs-actions.pod:4618
29617 msgid "guestfs_lvcreate"
29618 msgstr ""
29619
29620 #. type: verbatim
29621 #: ../src/guestfs-actions.pod:4620
29622 #, no-wrap
29623 msgid ""
29624 " int\n"
29625 " guestfs_lvcreate (guestfs_h *g,\n"
29626 "                   const char *logvol,\n"
29627 "                   const char *volgroup,\n"
29628 "                   int mbytes);\n"
29629 "\n"
29630 msgstr ""
29631
29632 #. type: =head2
29633 #: ../src/guestfs-actions.pod:4633
29634 msgid "guestfs_lvm_canonical_lv_name"
29635 msgstr ""
29636
29637 #. type: verbatim
29638 #: ../src/guestfs-actions.pod:4635
29639 #, no-wrap
29640 msgid ""
29641 " char *\n"
29642 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29643 "                                const char *lvname);\n"
29644 "\n"
29645 msgstr ""
29646
29647 #. type: textblock
29648 #: ../src/guestfs-actions.pod:4646
29649 msgid "See also C<guestfs_is_lv>."
29650 msgstr ""
29651
29652 #. type: textblock
29653 #: ../src/guestfs-actions.pod:4651
29654 msgid "(Added in 1.5.24)"
29655 msgstr ""
29656
29657 #. type: =head2
29658 #: ../src/guestfs-actions.pod:4653
29659 msgid "guestfs_lvm_clear_filter"
29660 msgstr ""
29661
29662 #. type: verbatim
29663 #: ../src/guestfs-actions.pod:4655
29664 #, no-wrap
29665 msgid ""
29666 " int\n"
29667 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29668 "\n"
29669 msgstr ""
29670
29671 #. type: textblock
29672 #: ../src/guestfs-actions.pod:4658
29673 msgid ""
29674 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29675 "see every block device."
29676 msgstr ""
29677
29678 #. type: =head2
29679 #: ../src/guestfs-actions.pod:4668
29680 msgid "guestfs_lvm_remove_all"
29681 msgstr ""
29682
29683 #. type: verbatim
29684 #: ../src/guestfs-actions.pod:4670
29685 #, no-wrap
29686 msgid ""
29687 " int\n"
29688 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29689 "\n"
29690 msgstr ""
29691
29692 #. type: =head2
29693 #: ../src/guestfs-actions.pod:4683
29694 msgid "guestfs_lvm_set_filter"
29695 msgstr ""
29696
29697 #. type: verbatim
29698 #: ../src/guestfs-actions.pod:4685
29699 #, no-wrap
29700 msgid ""
29701 " int\n"
29702 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29703 "                         char *const *devices);\n"
29704 "\n"
29705 msgstr ""
29706
29707 #. type: =head2
29708 #: ../src/guestfs-actions.pod:4716
29709 msgid "guestfs_lvremove"
29710 msgstr ""
29711
29712 #. type: verbatim
29713 #: ../src/guestfs-actions.pod:4718
29714 #, no-wrap
29715 msgid ""
29716 " int\n"
29717 " guestfs_lvremove (guestfs_h *g,\n"
29718 "                   const char *device);\n"
29719 "\n"
29720 msgstr ""
29721
29722 #. type: textblock
29723 #: ../src/guestfs-actions.pod:4730 ../src/guestfs-actions.pod:6141
29724 #: ../src/guestfs-actions.pod:7991
29725 msgid "(Added in 1.0.13)"
29726 msgstr ""
29727
29728 #. type: =head2
29729 #: ../src/guestfs-actions.pod:4732
29730 msgid "guestfs_lvrename"
29731 msgstr ""
29732
29733 #. type: verbatim
29734 #: ../src/guestfs-actions.pod:4734
29735 #, no-wrap
29736 msgid ""
29737 " int\n"
29738 " guestfs_lvrename (guestfs_h *g,\n"
29739 "                   const char *logvol,\n"
29740 "                   const char *newlogvol);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:8004
29746 msgid "(Added in 1.0.83)"
29747 msgstr ""
29748
29749 #. type: =head2
29750 #: ../src/guestfs-actions.pod:4745
29751 msgid "guestfs_lvresize"
29752 msgstr ""
29753
29754 #. type: verbatim
29755 #: ../src/guestfs-actions.pod:4747
29756 #, no-wrap
29757 msgid ""
29758 " int\n"
29759 " guestfs_lvresize (guestfs_h *g,\n"
29760 "                   const char *device,\n"
29761 "                   int mbytes);\n"
29762 "\n"
29763 msgstr ""
29764
29765 #. type: =head2
29766 #: ../src/guestfs-actions.pod:4760
29767 msgid "guestfs_lvresize_free"
29768 msgstr ""
29769
29770 #. type: verbatim
29771 #: ../src/guestfs-actions.pod:4762
29772 #, no-wrap
29773 msgid ""
29774 " int\n"
29775 " guestfs_lvresize_free (guestfs_h *g,\n"
29776 "                        const char *lv,\n"
29777 "                        int percent);\n"
29778 "\n"
29779 msgstr ""
29780
29781 #. type: textblock
29782 #: ../src/guestfs-actions.pod:4775
29783 msgid "(Added in 1.3.3)"
29784 msgstr ""
29785
29786 #. type: =head2
29787 #: ../src/guestfs-actions.pod:4777
29788 msgid "guestfs_lvs"
29789 msgstr ""
29790
29791 #. type: verbatim
29792 #: ../src/guestfs-actions.pod:4779
29793 #, no-wrap
29794 msgid ""
29795 " char **\n"
29796 " guestfs_lvs (guestfs_h *g);\n"
29797 "\n"
29798 msgstr ""
29799
29800 #. type: textblock
29801 #: ../src/guestfs-actions.pod:4788
29802 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29803 msgstr ""
29804
29805 #. type: =head2
29806 #: ../src/guestfs-actions.pod:4796
29807 msgid "guestfs_lvs_full"
29808 msgstr ""
29809
29810 #. type: verbatim
29811 #: ../src/guestfs-actions.pod:4798
29812 #, no-wrap
29813 msgid ""
29814 " struct guestfs_lvm_lv_list *\n"
29815 " guestfs_lvs_full (guestfs_h *g);\n"
29816 "\n"
29817 msgstr ""
29818
29819 #. type: textblock
29820 #: ../src/guestfs-actions.pod:4804
29821 msgid ""
29822 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29823 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
29824 "use>."
29825 msgstr ""
29826
29827 #. type: =head2
29828 #: ../src/guestfs-actions.pod:4810
29829 msgid "guestfs_lvuuid"
29830 msgstr ""
29831
29832 #. type: verbatim
29833 #: ../src/guestfs-actions.pod:4812
29834 #, no-wrap
29835 msgid ""
29836 " char *\n"
29837 " guestfs_lvuuid (guestfs_h *g,\n"
29838 "                 const char *device);\n"
29839 "\n"
29840 msgstr ""
29841
29842 #. type: =head2
29843 #: ../src/guestfs-actions.pod:4823
29844 msgid "guestfs_lxattrlist"
29845 msgstr ""
29846
29847 #. type: verbatim
29848 #: ../src/guestfs-actions.pod:4825
29849 #, no-wrap
29850 msgid ""
29851 " struct guestfs_xattr_list *\n"
29852 " guestfs_lxattrlist (guestfs_h *g,\n"
29853 "                     const char *path,\n"
29854 "                     char *const *names);\n"
29855 "\n"
29856 msgstr ""
29857
29858 #. type: textblock
29859 #: ../src/guestfs-actions.pod:4844
29860 msgid ""
29861 "This call is intended for programs that want to efficiently list a directory"
29862 " contents without making many round-trips.  See also C<guestfs_lstatlist> "
29863 "for a similarly efficient call for getting standard stats.  Very long "
29864 "directory listings might cause the protocol message size to be exceeded, "
29865 "causing this call to fail.  The caller must split up such requests into "
29866 "smaller groups of names."
29867 msgstr ""
29868
29869 #. type: =head2
29870 #: ../src/guestfs-actions.pod:4858
29871 msgid "guestfs_mkdir"
29872 msgstr ""
29873
29874 #. type: verbatim
29875 #: ../src/guestfs-actions.pod:4860
29876 #, no-wrap
29877 msgid ""
29878 " int\n"
29879 " guestfs_mkdir (guestfs_h *g,\n"
29880 "                const char *path);\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: =head2
29885 #: ../src/guestfs-actions.pod:4870
29886 msgid "guestfs_mkdir_mode"
29887 msgstr ""
29888
29889 #. type: verbatim
29890 #: ../src/guestfs-actions.pod:4872
29891 #, no-wrap
29892 msgid ""
29893 " int\n"
29894 " guestfs_mkdir_mode (guestfs_h *g,\n"
29895 "                     const char *path,\n"
29896 "                     int mode);\n"
29897 "\n"
29898 msgstr ""
29899
29900 #. type: textblock
29901 #: ../src/guestfs-actions.pod:4884
29902 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29903 msgstr ""
29904
29905 #. type: =head2
29906 #: ../src/guestfs-actions.pod:4890
29907 msgid "guestfs_mkdir_p"
29908 msgstr ""
29909
29910 #. type: verbatim
29911 #: ../src/guestfs-actions.pod:4892
29912 #, no-wrap
29913 msgid ""
29914 " int\n"
29915 " guestfs_mkdir_p (guestfs_h *g,\n"
29916 "                  const char *path);\n"
29917 "\n"
29918 msgstr ""
29919
29920 #. type: =head2
29921 #: ../src/guestfs-actions.pod:4903
29922 msgid "guestfs_mkdtemp"
29923 msgstr ""
29924
29925 #. type: verbatim
29926 #: ../src/guestfs-actions.pod:4905
29927 #, no-wrap
29928 msgid ""
29929 " char *\n"
29930 " guestfs_mkdtemp (guestfs_h *g,\n"
29931 "                  const char *template);\n"
29932 "\n"
29933 msgstr ""
29934
29935 #. type: =head2
29936 #: ../src/guestfs-actions.pod:4933
29937 msgid "guestfs_mke2fs_J"
29938 msgstr ""
29939
29940 #. type: verbatim
29941 #: ../src/guestfs-actions.pod:4935
29942 #, no-wrap
29943 msgid ""
29944 " int\n"
29945 " guestfs_mke2fs_J (guestfs_h *g,\n"
29946 "                   const char *fstype,\n"
29947 "                   int blocksize,\n"
29948 "                   const char *device,\n"
29949 "                   const char *journal);\n"
29950 "\n"
29951 msgstr ""
29952
29953 #. type: textblock
29954 #: ../src/guestfs-actions.pod:4948
29955 msgid "See also C<guestfs_mke2journal>."
29956 msgstr ""
29957
29958 #. type: textblock
29959 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4970
29960 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5004
29961 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5032
29962 #: ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5368
29963 msgid "(Added in 1.0.68)"
29964 msgstr ""
29965
29966 #. type: =head2
29967 #: ../src/guestfs-actions.pod:4954
29968 msgid "guestfs_mke2fs_JL"
29969 msgstr ""
29970
29971 #. type: verbatim
29972 #: ../src/guestfs-actions.pod:4956
29973 #, no-wrap
29974 msgid ""
29975 " int\n"
29976 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29977 "                    const char *fstype,\n"
29978 "                    int blocksize,\n"
29979 "                    const char *device,\n"
29980 "                    const char *label);\n"
29981 "\n"
29982 msgstr ""
29983
29984 #. type: textblock
29985 #: ../src/guestfs-actions.pod:4966
29986 msgid "See also C<guestfs_mke2journal_L>."
29987 msgstr ""
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:4972
29991 msgid "guestfs_mke2fs_JU"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:4974
29996 #, no-wrap
29997 msgid ""
29998 " int\n"
29999 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30000 "                    const char *fstype,\n"
30001 "                    int blocksize,\n"
30002 "                    const char *device,\n"
30003 "                    const char *uuid);\n"
30004 "\n"
30005 msgstr ""
30006
30007 #. type: textblock
30008 #: ../src/guestfs-actions.pod:4984
30009 msgid "See also C<guestfs_mke2journal_U>."
30010 msgstr ""
30011
30012 #. type: =head2
30013 #: ../src/guestfs-actions.pod:4990
30014 msgid "guestfs_mke2journal"
30015 msgstr ""
30016
30017 #. type: verbatim
30018 #: ../src/guestfs-actions.pod:4992
30019 #, no-wrap
30020 msgid ""
30021 " int\n"
30022 " guestfs_mke2journal (guestfs_h *g,\n"
30023 "                      int blocksize,\n"
30024 "                      const char *device);\n"
30025 "\n"
30026 msgstr ""
30027
30028 #. type: =head2
30029 #: ../src/guestfs-actions.pod:5006
30030 msgid "guestfs_mke2journal_L"
30031 msgstr ""
30032
30033 #. type: verbatim
30034 #: ../src/guestfs-actions.pod:5008
30035 #, no-wrap
30036 msgid ""
30037 " int\n"
30038 " guestfs_mke2journal_L (guestfs_h *g,\n"
30039 "                        int blocksize,\n"
30040 "                        const char *label,\n"
30041 "                        const char *device);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: =head2
30046 #: ../src/guestfs-actions.pod:5020
30047 msgid "guestfs_mke2journal_U"
30048 msgstr ""
30049
30050 #. type: verbatim
30051 #: ../src/guestfs-actions.pod:5022
30052 #, no-wrap
30053 msgid ""
30054 " int\n"
30055 " guestfs_mke2journal_U (guestfs_h *g,\n"
30056 "                        int blocksize,\n"
30057 "                        const char *uuid,\n"
30058 "                        const char *device);\n"
30059 "\n"
30060 msgstr ""
30061
30062 #. type: =head2
30063 #: ../src/guestfs-actions.pod:5034
30064 msgid "guestfs_mkfifo"
30065 msgstr ""
30066
30067 #. type: verbatim
30068 #: ../src/guestfs-actions.pod:5036
30069 #, no-wrap
30070 msgid ""
30071 " int\n"
30072 " guestfs_mkfifo (guestfs_h *g,\n"
30073 "                 int mode,\n"
30074 "                 const char *path);\n"
30075 "\n"
30076 msgstr ""
30077
30078 #. type: textblock
30079 #: ../src/guestfs-actions.pod:5041
30080 msgid ""
30081 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30082 "is just a convenient wrapper around C<guestfs_mknod>."
30083 msgstr ""
30084
30085 #. type: =head2
30086 #: ../src/guestfs-actions.pod:5051
30087 msgid "guestfs_mkfs"
30088 msgstr ""
30089
30090 #. type: verbatim
30091 #: ../src/guestfs-actions.pod:5053
30092 #, no-wrap
30093 msgid ""
30094 " int\n"
30095 " guestfs_mkfs (guestfs_h *g,\n"
30096 "               const char *fstype,\n"
30097 "               const char *device);\n"
30098 "\n"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:5066
30103 msgid "guestfs_mkfs_b"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:5068
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_mkfs_b (guestfs_h *g,\n"
30112 "                 const char *fstype,\n"
30113 "                 int blocksize,\n"
30114 "                 const char *device);\n"
30115 "\n"
30116 msgstr ""
30117
30118 #. type: textblock
30119 #: ../src/guestfs-actions.pod:5074
30120 msgid ""
30121 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30122 "call instead."
30123 msgstr ""
30124
30125 #. type: textblock
30126 #: ../src/guestfs-actions.pod:5081
30127 msgid ""
30128 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30129 "block size of the resulting filesystem.  Supported block sizes depend on the"
30130 " filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30131 msgstr ""
30132
30133 #. type: =head2
30134 #: ../src/guestfs-actions.pod:5093
30135 msgid "guestfs_mkfs_opts"
30136 msgstr ""
30137
30138 #. type: verbatim
30139 #: ../src/guestfs-actions.pod:5095
30140 #, no-wrap
30141 msgid ""
30142 " int\n"
30143 " guestfs_mkfs_opts (guestfs_h *g,\n"
30144 "                    const char *fstype,\n"
30145 "                    const char *device,\n"
30146 "                    ...);\n"
30147 "\n"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs-actions.pod:5106
30152 #, no-wrap
30153 msgid ""
30154 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30155 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30156 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30157 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30158 "\n"
30159 msgstr ""
30160
30161 #. type: textblock
30162 #: ../src/guestfs-actions.pod:5154
30163 msgid "(Added in 1.7.19)"
30164 msgstr ""
30165
30166 #. type: =head2
30167 #: ../src/guestfs-actions.pod:5156
30168 msgid "guestfs_mkfs_opts_va"
30169 msgstr ""
30170
30171 #. type: verbatim
30172 #: ../src/guestfs-actions.pod:5158
30173 #, no-wrap
30174 msgid ""
30175 " int\n"
30176 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30177 "                       const char *fstype,\n"
30178 "                       const char *device,\n"
30179 "                       va_list args);\n"
30180 "\n"
30181 msgstr ""
30182
30183 #. type: textblock
30184 #: ../src/guestfs-actions.pod:5164
30185 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30186 msgstr ""
30187
30188 #. type: =head2
30189 #: ../src/guestfs-actions.pod:5168
30190 msgid "guestfs_mkfs_opts_argv"
30191 msgstr ""
30192
30193 #. type: verbatim
30194 #: ../src/guestfs-actions.pod:5170
30195 #, no-wrap
30196 msgid ""
30197 " int\n"
30198 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30199 "                         const char *fstype,\n"
30200 "                         const char *device,\n"
30201 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30202 "\n"
30203 msgstr ""
30204
30205 #. type: textblock
30206 #: ../src/guestfs-actions.pod:5176
30207 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30208 msgstr ""
30209
30210 #. type: =head2
30211 #: ../src/guestfs-actions.pod:5180
30212 msgid "guestfs_mkmountpoint"
30213 msgstr ""
30214
30215 #. type: verbatim
30216 #: ../src/guestfs-actions.pod:5182
30217 #, no-wrap
30218 msgid ""
30219 " int\n"
30220 " guestfs_mkmountpoint (guestfs_h *g,\n"
30221 "                       const char *exemptpath);\n"
30222 "\n"
30223 msgstr ""
30224
30225 #. type: textblock
30226 #: ../src/guestfs-actions.pod:5186
30227 msgid ""
30228 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30229 "that can be used to create extra mountpoints before mounting the first "
30230 "filesystem."
30231 msgstr ""
30232
30233 #. type: textblock
30234 #: ../src/guestfs-actions.pod:5210
30235 msgid ""
30236 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30237 "may get unexpected errors if you try to mix these calls.  It is safest to "
30238 "manually unmount filesystems and remove mountpoints after use."
30239 msgstr ""
30240
30241 #. type: textblock
30242 #: ../src/guestfs-actions.pod:5214
30243 msgid ""
30244 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30245 "first, so for this to work for manual mountpoints, you must ensure that the "
30246 "innermost mountpoints have the longest pathnames, as in the example code "
30247 "above."
30248 msgstr ""
30249
30250 #. type: textblock
30251 #: ../src/guestfs-actions.pod:5221
30252 msgid ""
30253 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30254 "can cause C<guestfs_umount_all> to be called when the handle is closed which"
30255 " can also trigger these issues."
30256 msgstr ""
30257
30258 #. type: textblock
30259 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5533
30260 #: ../src/guestfs-actions.pod:6561
30261 msgid "(Added in 1.0.62)"
30262 msgstr ""
30263
30264 #. type: =head2
30265 #: ../src/guestfs-actions.pod:5229
30266 msgid "guestfs_mknod"
30267 msgstr ""
30268
30269 #. type: verbatim
30270 #: ../src/guestfs-actions.pod:5231
30271 #, no-wrap
30272 msgid ""
30273 " int\n"
30274 " guestfs_mknod (guestfs_h *g,\n"
30275 "                int mode,\n"
30276 "                int devmajor,\n"
30277 "                int devminor,\n"
30278 "                const char *path);\n"
30279 "\n"
30280 msgstr ""
30281
30282 #. type: textblock
30283 #: ../src/guestfs-actions.pod:5246
30284 msgid ""
30285 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30286 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30287 "regular file).  These constants are available in the standard Linux header "
30288 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30289 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in"
30290 " the appropriate constant for you."
30291 msgstr ""
30292
30293 #. type: =head2
30294 #: ../src/guestfs-actions.pod:5260
30295 msgid "guestfs_mknod_b"
30296 msgstr ""
30297
30298 #. type: verbatim
30299 #: ../src/guestfs-actions.pod:5262
30300 #, no-wrap
30301 msgid ""
30302 " int\n"
30303 " guestfs_mknod_b (guestfs_h *g,\n"
30304 "                  int mode,\n"
30305 "                  int devmajor,\n"
30306 "                  int devminor,\n"
30307 "                  const char *path);\n"
30308 "\n"
30309 msgstr ""
30310
30311 #. type: textblock
30312 #: ../src/guestfs-actions.pod:5269
30313 msgid ""
30314 "This call creates a block device node called C<path> with mode C<mode> and "
30315 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30316 "wrapper around C<guestfs_mknod>."
30317 msgstr ""
30318
30319 #. type: =head2
30320 #: ../src/guestfs-actions.pod:5279
30321 msgid "guestfs_mknod_c"
30322 msgstr ""
30323
30324 #. type: verbatim
30325 #: ../src/guestfs-actions.pod:5281
30326 #, no-wrap
30327 msgid ""
30328 " int\n"
30329 " guestfs_mknod_c (guestfs_h *g,\n"
30330 "                  int mode,\n"
30331 "                  int devmajor,\n"
30332 "                  int devminor,\n"
30333 "                  const char *path);\n"
30334 "\n"
30335 msgstr ""
30336
30337 #. type: textblock
30338 #: ../src/guestfs-actions.pod:5288
30339 msgid ""
30340 "This call creates a char device node called C<path> with mode C<mode> and "
30341 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30342 "wrapper around C<guestfs_mknod>."
30343 msgstr ""
30344
30345 #. type: =head2
30346 #: ../src/guestfs-actions.pod:5298
30347 msgid "guestfs_mkswap"
30348 msgstr ""
30349
30350 #. type: verbatim
30351 #: ../src/guestfs-actions.pod:5300
30352 #, no-wrap
30353 msgid ""
30354 " int\n"
30355 " guestfs_mkswap (guestfs_h *g,\n"
30356 "                 const char *device);\n"
30357 "\n"
30358 msgstr ""
30359
30360 #. type: =head2
30361 #: ../src/guestfs-actions.pod:5310
30362 msgid "guestfs_mkswap_L"
30363 msgstr ""
30364
30365 #. type: verbatim
30366 #: ../src/guestfs-actions.pod:5312
30367 #, no-wrap
30368 msgid ""
30369 " int\n"
30370 " guestfs_mkswap_L (guestfs_h *g,\n"
30371 "                   const char *label,\n"
30372 "                   const char *device);\n"
30373 "\n"
30374 msgstr ""
30375
30376 #. type: =head2
30377 #: ../src/guestfs-actions.pod:5327
30378 msgid "guestfs_mkswap_U"
30379 msgstr ""
30380
30381 #. type: verbatim
30382 #: ../src/guestfs-actions.pod:5329
30383 #, no-wrap
30384 msgid ""
30385 " int\n"
30386 " guestfs_mkswap_U (guestfs_h *g,\n"
30387 "                   const char *uuid,\n"
30388 "                   const char *device);\n"
30389 "\n"
30390 msgstr ""
30391
30392 #. type: =head2
30393 #: ../src/guestfs-actions.pod:5340
30394 msgid "guestfs_mkswap_file"
30395 msgstr ""
30396
30397 #. type: verbatim
30398 #: ../src/guestfs-actions.pod:5342
30399 #, no-wrap
30400 msgid ""
30401 " int\n"
30402 " guestfs_mkswap_file (guestfs_h *g,\n"
30403 "                      const char *path);\n"
30404 "\n"
30405 msgstr ""
30406
30407 #. type: textblock
30408 #: ../src/guestfs-actions.pod:5348
30409 msgid ""
30410 "This command just writes a swap file signature to an existing file.  To "
30411 "create the file itself, use something like C<guestfs_fallocate>."
30412 msgstr ""
30413
30414 #. type: =head2
30415 #: ../src/guestfs-actions.pod:5355
30416 msgid "guestfs_modprobe"
30417 msgstr ""
30418
30419 #. type: verbatim
30420 #: ../src/guestfs-actions.pod:5357
30421 #, no-wrap
30422 msgid ""
30423 " int\n"
30424 " guestfs_modprobe (guestfs_h *g,\n"
30425 "                   const char *modulename);\n"
30426 "\n"
30427 msgstr ""
30428
30429 #. type: =head2
30430 #: ../src/guestfs-actions.pod:5370
30431 msgid "guestfs_mount"
30432 msgstr ""
30433
30434 #. type: verbatim
30435 #: ../src/guestfs-actions.pod:5372
30436 #, no-wrap
30437 msgid ""
30438 " int\n"
30439 " guestfs_mount (guestfs_h *g,\n"
30440 "                const char *device,\n"
30441 "                const char *mountpoint);\n"
30442 "\n"
30443 msgstr ""
30444
30445 #. type: textblock
30446 #: ../src/guestfs-actions.pod:5391
30447 msgid ""
30448 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30449 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30450 "problems for users.  If your program might need to work with older versions "
30451 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30452 "for the first parameter if you don't want any options)."
30453 msgstr ""
30454
30455 #. type: =head2
30456 #: ../src/guestfs-actions.pod:5402
30457 msgid "guestfs_mount_9p"
30458 msgstr ""
30459
30460 #. type: verbatim
30461 #: ../src/guestfs-actions.pod:5404
30462 #, no-wrap
30463 msgid ""
30464 " int\n"
30465 " guestfs_mount_9p (guestfs_h *g,\n"
30466 "                   const char *mounttag,\n"
30467 "                   const char *mountpoint,\n"
30468 "                   ...);\n"
30469 "\n"
30470 msgstr ""
30471
30472 #. type: verbatim
30473 #: ../src/guestfs-actions.pod:5415
30474 #, no-wrap
30475 msgid ""
30476 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30477 "\n"
30478 msgstr ""
30479
30480 #. type: =head2
30481 #: ../src/guestfs-actions.pod:5428
30482 msgid "guestfs_mount_9p_va"
30483 msgstr ""
30484
30485 #. type: verbatim
30486 #: ../src/guestfs-actions.pod:5430
30487 #, no-wrap
30488 msgid ""
30489 " int\n"
30490 " guestfs_mount_9p_va (guestfs_h *g,\n"
30491 "                      const char *mounttag,\n"
30492 "                      const char *mountpoint,\n"
30493 "                      va_list args);\n"
30494 "\n"
30495 msgstr ""
30496
30497 #. type: textblock
30498 #: ../src/guestfs-actions.pod:5436
30499 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30500 msgstr ""
30501
30502 #. type: =head2
30503 #: ../src/guestfs-actions.pod:5440
30504 msgid "guestfs_mount_9p_argv"
30505 msgstr ""
30506
30507 #. type: verbatim
30508 #: ../src/guestfs-actions.pod:5442
30509 #, no-wrap
30510 msgid ""
30511 " int\n"
30512 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30513 "                        const char *mounttag,\n"
30514 "                        const char *mountpoint,\n"
30515 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30516 "\n"
30517 msgstr ""
30518
30519 #. type: textblock
30520 #: ../src/guestfs-actions.pod:5448
30521 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30522 msgstr ""
30523
30524 #. type: =head2
30525 #: ../src/guestfs-actions.pod:5452
30526 msgid "guestfs_mount_loop"
30527 msgstr ""
30528
30529 #. type: verbatim
30530 #: ../src/guestfs-actions.pod:5454
30531 #, no-wrap
30532 msgid ""
30533 " int\n"
30534 " guestfs_mount_loop (guestfs_h *g,\n"
30535 "                     const char *file,\n"
30536 "                     const char *mountpoint);\n"
30537 "\n"
30538 msgstr ""
30539
30540 #. type: =head2
30541 #: ../src/guestfs-actions.pod:5467
30542 msgid "guestfs_mount_options"
30543 msgstr ""
30544
30545 #. type: verbatim
30546 #: ../src/guestfs-actions.pod:5469
30547 #, no-wrap
30548 msgid ""
30549 " int\n"
30550 " guestfs_mount_options (guestfs_h *g,\n"
30551 "                        const char *options,\n"
30552 "                        const char *device,\n"
30553 "                        const char *mountpoint);\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: textblock
30558 #: ../src/guestfs-actions.pod:5475
30559 msgid ""
30560 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30561 "the mount options as for the L<mount(8)> I<-o> flag."
30562 msgstr ""
30563
30564 #. type: textblock
30565 #: ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5499
30566 #: ../src/guestfs-actions.pod:5516
30567 msgid "(Added in 1.0.10)"
30568 msgstr ""
30569
30570 #. type: =head2
30571 #: ../src/guestfs-actions.pod:5487
30572 msgid "guestfs_mount_ro"
30573 msgstr ""
30574
30575 #. type: verbatim
30576 #: ../src/guestfs-actions.pod:5489
30577 #, no-wrap
30578 msgid ""
30579 " int\n"
30580 " guestfs_mount_ro (guestfs_h *g,\n"
30581 "                   const char *device,\n"
30582 "                   const char *mountpoint);\n"
30583 "\n"
30584 msgstr ""
30585
30586 #. type: textblock
30587 #: ../src/guestfs-actions.pod:5494
30588 msgid ""
30589 "This is the same as the C<guestfs_mount> command, but it mounts the "
30590 "filesystem with the read-only (I<-o ro>) flag."
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:5501
30595 msgid "guestfs_mount_vfs"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:5503
30600 #, no-wrap
30601 msgid ""
30602 " int\n"
30603 " guestfs_mount_vfs (guestfs_h *g,\n"
30604 "                    const char *options,\n"
30605 "                    const char *vfstype,\n"
30606 "                    const char *device,\n"
30607 "                    const char *mountpoint);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: textblock
30612 #: ../src/guestfs-actions.pod:5510
30613 msgid ""
30614 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30615 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30616 "I<-t> flags."
30617 msgstr ""
30618
30619 #. type: =head2
30620 #: ../src/guestfs-actions.pod:5518
30621 msgid "guestfs_mountpoints"
30622 msgstr ""
30623
30624 #. type: verbatim
30625 #: ../src/guestfs-actions.pod:5520
30626 #, no-wrap
30627 msgid ""
30628 " char **\n"
30629 " guestfs_mountpoints (guestfs_h *g);\n"
30630 "\n"
30631 msgstr ""
30632
30633 #. type: textblock
30634 #: ../src/guestfs-actions.pod:5523
30635 msgid ""
30636 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30637 "devices.  This one returns a hash table (map) of device name to directory "
30638 "where the device is mounted."
30639 msgstr ""
30640
30641 #. type: =head2
30642 #: ../src/guestfs-actions.pod:5535
30643 msgid "guestfs_mounts"
30644 msgstr ""
30645
30646 #. type: verbatim
30647 #: ../src/guestfs-actions.pod:5537
30648 #, no-wrap
30649 msgid ""
30650 " char **\n"
30651 " guestfs_mounts (guestfs_h *g);\n"
30652 "\n"
30653 msgstr ""
30654
30655 #. type: textblock
30656 #: ../src/guestfs-actions.pod:5545
30657 msgid "See also: C<guestfs_mountpoints>"
30658 msgstr ""
30659
30660 #. type: =head2
30661 #: ../src/guestfs-actions.pod:5553
30662 msgid "guestfs_mv"
30663 msgstr ""
30664
30665 #. type: verbatim
30666 #: ../src/guestfs-actions.pod:5555
30667 #, no-wrap
30668 msgid ""
30669 " int\n"
30670 " guestfs_mv (guestfs_h *g,\n"
30671 "             const char *src,\n"
30672 "             const char *dest);\n"
30673 "\n"
30674 msgstr ""
30675
30676 #. type: =head2
30677 #: ../src/guestfs-actions.pod:5567
30678 msgid "guestfs_ntfs_3g_probe"
30679 msgstr ""
30680
30681 #. type: verbatim
30682 #: ../src/guestfs-actions.pod:5569
30683 #, no-wrap
30684 msgid ""
30685 " int\n"
30686 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30687 "                        int rw,\n"
30688 "                        const char *device);\n"
30689 "\n"
30690 msgstr ""
30691
30692 #. type: textblock
30693 #: ../src/guestfs-actions.pod:5588
30694 msgid "(Added in 1.0.43)"
30695 msgstr ""
30696
30697 #. type: =head2
30698 #: ../src/guestfs-actions.pod:5590
30699 msgid "guestfs_ntfsresize"
30700 msgstr ""
30701
30702 #. type: verbatim
30703 #: ../src/guestfs-actions.pod:5592
30704 #, no-wrap
30705 msgid ""
30706 " int\n"
30707 " guestfs_ntfsresize (guestfs_h *g,\n"
30708 "                     const char *device);\n"
30709 "\n"
30710 msgstr ""
30711
30712 #. type: textblock
30713 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5696
30714 msgid ""
30715 "I<This function is deprecated.> In new code, use the "
30716 "L</guestfs_ntfsresize_opts> call instead."
30717 msgstr ""
30718
30719 #. type: =head2
30720 #: ../src/guestfs-actions.pod:5620
30721 msgid "guestfs_ntfsresize_opts"
30722 msgstr ""
30723
30724 #. type: verbatim
30725 #: ../src/guestfs-actions.pod:5622
30726 #, no-wrap
30727 msgid ""
30728 " int\n"
30729 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30730 "                          const char *device,\n"
30731 "                          ...);\n"
30732 "\n"
30733 msgstr ""
30734
30735 #. type: verbatim
30736 #: ../src/guestfs-actions.pod:5632
30737 #, no-wrap
30738 msgid ""
30739 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30740 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30741 "\n"
30742 msgstr ""
30743
30744 #. type: textblock
30745 #: ../src/guestfs-actions.pod:5652
30746 msgid ""
30747 "After the resize operation, the filesystem is always marked as requiring a "
30748 "consistency check (for safety).  You have to boot into Windows to perform "
30749 "this check and clear this condition.  If you I<don't> set the C<force> "
30750 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30751 "times on a single filesystem without booting into Windows between each "
30752 "resize."
30753 msgstr ""
30754
30755 #. type: =head2
30756 #: ../src/guestfs-actions.pod:5667
30757 msgid "guestfs_ntfsresize_opts_va"
30758 msgstr ""
30759
30760 #. type: verbatim
30761 #: ../src/guestfs-actions.pod:5669
30762 #, no-wrap
30763 msgid ""
30764 " int\n"
30765 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30766 "                             const char *device,\n"
30767 "                             va_list args);\n"
30768 "\n"
30769 msgstr ""
30770
30771 #. type: textblock
30772 #: ../src/guestfs-actions.pod:5674
30773 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30774 msgstr ""
30775
30776 #. type: =head2
30777 #: ../src/guestfs-actions.pod:5678
30778 msgid "guestfs_ntfsresize_opts_argv"
30779 msgstr ""
30780
30781 #. type: verbatim
30782 #: ../src/guestfs-actions.pod:5680
30783 #, no-wrap
30784 msgid ""
30785 " int\n"
30786 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30787 "                               const char *device,\n"
30788 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30789 "\n"
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../src/guestfs-actions.pod:5685
30794 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30795 msgstr ""
30796
30797 #. type: =head2
30798 #: ../src/guestfs-actions.pod:5689
30799 msgid "guestfs_ntfsresize_size"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-actions.pod:5691
30804 #, no-wrap
30805 msgid ""
30806 " int\n"
30807 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30808 "                          const char *device,\n"
30809 "                          int64_t size);\n"
30810 "\n"
30811 msgstr ""
30812
30813 #. type: textblock
30814 #: ../src/guestfs-actions.pod:5703
30815 msgid ""
30816 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30817 "to specify the new size (in bytes) explicitly."
30818 msgstr ""
30819
30820 #. type: textblock
30821 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6168
30822 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6509
30823 #: ../src/guestfs-actions.pod:8148
30824 msgid "(Added in 1.3.14)"
30825 msgstr ""
30826
30827 #. type: =head2
30828 #: ../src/guestfs-actions.pod:5710
30829 msgid "guestfs_part_add"
30830 msgstr ""
30831
30832 #. type: verbatim
30833 #: ../src/guestfs-actions.pod:5712
30834 #, no-wrap
30835 msgid ""
30836 " int\n"
30837 " guestfs_part_add (guestfs_h *g,\n"
30838 "                   const char *device,\n"
30839 "                   const char *prlogex,\n"
30840 "                   int64_t startsect,\n"
30841 "                   int64_t endsect);\n"
30842 "\n"
30843 msgstr ""
30844
30845 #. type: textblock
30846 #: ../src/guestfs-actions.pod:5719
30847 msgid ""
30848 "This command adds a partition to C<device>.  If there is no partition table "
30849 "on the device, call C<guestfs_part_init> first."
30850 msgstr ""
30851
30852 #. type: textblock
30853 #: ../src/guestfs-actions.pod:5731
30854 msgid ""
30855 "Creating a partition which covers the whole disk is not so easy.  Use "
30856 "C<guestfs_part_disk> to do that."
30857 msgstr ""
30858
30859 #. type: textblock
30860 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5774
30861 #: ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5911
30862 #: ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5968
30863 #: ../src/guestfs-actions.pod:6008
30864 msgid "(Added in 1.0.78)"
30865 msgstr ""
30866
30867 #. type: =head2
30868 #: ../src/guestfs-actions.pod:5738
30869 msgid "guestfs_part_del"
30870 msgstr ""
30871
30872 #. type: verbatim
30873 #: ../src/guestfs-actions.pod:5740
30874 #, no-wrap
30875 msgid ""
30876 " int\n"
30877 " guestfs_part_del (guestfs_h *g,\n"
30878 "                   const char *device,\n"
30879 "                   int partnum);\n"
30880 "\n"
30881 msgstr ""
30882
30883 #. type: =head2
30884 #: ../src/guestfs-actions.pod:5755
30885 msgid "guestfs_part_disk"
30886 msgstr ""
30887
30888 #. type: verbatim
30889 #: ../src/guestfs-actions.pod:5757
30890 #, no-wrap
30891 msgid ""
30892 " int\n"
30893 " guestfs_part_disk (guestfs_h *g,\n"
30894 "                    const char *device,\n"
30895 "                    const char *parttype);\n"
30896 "\n"
30897 msgstr ""
30898
30899 #. type: textblock
30900 #: ../src/guestfs-actions.pod:5762
30901 msgid ""
30902 "This command is simply a combination of C<guestfs_part_init> followed by "
30903 "C<guestfs_part_add> to create a single primary partition covering the whole "
30904 "disk."
30905 msgstr ""
30906
30907 #. type: textblock
30908 #: ../src/guestfs-actions.pod:5766
30909 msgid ""
30910 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other"
30911 " possible values are described in C<guestfs_part_init>."
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:5776
30916 msgid "guestfs_part_get_bootable"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:5778
30921 #, no-wrap
30922 msgid ""
30923 " int\n"
30924 " guestfs_part_get_bootable (guestfs_h *g,\n"
30925 "                            const char *device,\n"
30926 "                            int partnum);\n"
30927 "\n"
30928 msgstr ""
30929
30930 #. type: textblock
30931 #: ../src/guestfs-actions.pod:5786
30932 msgid "See also C<guestfs_part_set_bootable>."
30933 msgstr ""
30934
30935 #. type: =head2
30936 #: ../src/guestfs-actions.pod:5792
30937 msgid "guestfs_part_get_mbr_id"
30938 msgstr ""
30939
30940 #. type: verbatim
30941 #: ../src/guestfs-actions.pod:5794
30942 #, no-wrap
30943 msgid ""
30944 " int\n"
30945 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30946 "                          const char *device,\n"
30947 "                          int partnum);\n"
30948 "\n"
30949 msgstr ""
30950
30951 #. type: textblock
30952 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5984
30953 msgid ""
30954 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get"
30955 " undefined results for other partition table types (see "
30956 "C<guestfs_part_get_parttype>)."
30957 msgstr ""
30958
30959 #. type: =head2
30960 #: ../src/guestfs-actions.pod:5810
30961 msgid "guestfs_part_get_parttype"
30962 msgstr ""
30963
30964 #. type: verbatim
30965 #: ../src/guestfs-actions.pod:5812
30966 #, no-wrap
30967 msgid ""
30968 " char *\n"
30969 " guestfs_part_get_parttype (guestfs_h *g,\n"
30970 "                            const char *device);\n"
30971 "\n"
30972 msgstr ""
30973
30974 #. type: textblock
30975 #: ../src/guestfs-actions.pod:5819
30976 msgid ""
30977 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30978 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30979 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30980 msgstr ""
30981
30982 #. type: =head2
30983 #: ../src/guestfs-actions.pod:5829
30984 msgid "guestfs_part_init"
30985 msgstr ""
30986
30987 #. type: verbatim
30988 #: ../src/guestfs-actions.pod:5831
30989 #, no-wrap
30990 msgid ""
30991 " int\n"
30992 " guestfs_part_init (guestfs_h *g,\n"
30993 "                    const char *device,\n"
30994 "                    const char *parttype);\n"
30995 "\n"
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs-actions.pod:5840
31000 msgid ""
31001 "Initially there are no partitions.  Following this, you should call "
31002 "C<guestfs_part_add> for each partition required."
31003 msgstr ""
31004
31005 #. type: =head2
31006 #: ../src/guestfs-actions.pod:5913
31007 msgid "guestfs_part_list"
31008 msgstr ""
31009
31010 #. type: verbatim
31011 #: ../src/guestfs-actions.pod:5915
31012 #, no-wrap
31013 msgid ""
31014 " struct guestfs_partition_list *\n"
31015 " guestfs_part_list (guestfs_h *g,\n"
31016 "                    const char *device);\n"
31017 "\n"
31018 msgstr ""
31019
31020 #. type: textblock
31021 #: ../src/guestfs-actions.pod:5932
31022 msgid ""
31023 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31024 "the device's sector size, see C<guestfs_blockdev_getss>."
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs-actions.pod:5945
31029 msgid ""
31030 "This function returns a C<struct guestfs_partition_list *>, or NULL if there"
31031 " was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31032 "use>."
31033 msgstr ""
31034
31035 #. type: =head2
31036 #: ../src/guestfs-actions.pod:5951
31037 msgid "guestfs_part_set_bootable"
31038 msgstr ""
31039
31040 #. type: verbatim
31041 #: ../src/guestfs-actions.pod:5953
31042 #, no-wrap
31043 msgid ""
31044 " int\n"
31045 " guestfs_part_set_bootable (guestfs_h *g,\n"
31046 "                            const char *device,\n"
31047 "                            int partnum,\n"
31048 "                            int bootable);\n"
31049 "\n"
31050 msgstr ""
31051
31052 #. type: =head2
31053 #: ../src/guestfs-actions.pod:5970
31054 msgid "guestfs_part_set_mbr_id"
31055 msgstr ""
31056
31057 #. type: verbatim
31058 #: ../src/guestfs-actions.pod:5972
31059 #, no-wrap
31060 msgid ""
31061 " int\n"
31062 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31063 "                          const char *device,\n"
31064 "                          int partnum,\n"
31065 "                          int idbyte);\n"
31066 "\n"
31067 msgstr ""
31068
31069 #. type: =head2
31070 #: ../src/guestfs-actions.pod:5992
31071 msgid "guestfs_part_set_name"
31072 msgstr ""
31073
31074 #. type: verbatim
31075 #: ../src/guestfs-actions.pod:5994
31076 #, no-wrap
31077 msgid ""
31078 " int\n"
31079 " guestfs_part_set_name (guestfs_h *g,\n"
31080 "                        const char *device,\n"
31081 "                        int partnum,\n"
31082 "                        const char *name);\n"
31083 "\n"
31084 msgstr ""
31085
31086 #. type: =head2
31087 #: ../src/guestfs-actions.pod:6010
31088 msgid "guestfs_part_to_dev"
31089 msgstr ""
31090
31091 #. type: verbatim
31092 #: ../src/guestfs-actions.pod:6012
31093 #, no-wrap
31094 msgid ""
31095 " char *\n"
31096 " guestfs_part_to_dev (guestfs_h *g,\n"
31097 "                      const char *partition);\n"
31098 "\n"
31099 msgstr ""
31100
31101 #. type: textblock
31102 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
31103 msgid ""
31104 "The named partition must exist, for example as a string returned from "
31105 "C<guestfs_list_partitions>."
31106 msgstr ""
31107
31108 #. type: textblock
31109 #: ../src/guestfs-actions.pod:6023
31110 msgid "See also C<guestfs_part_to_partnum>."
31111 msgstr ""
31112
31113 #. type: =head2
31114 #: ../src/guestfs-actions.pod:6030
31115 msgid "guestfs_part_to_partnum"
31116 msgstr ""
31117
31118 #. type: verbatim
31119 #: ../src/guestfs-actions.pod:6032
31120 #, no-wrap
31121 msgid ""
31122 " int\n"
31123 " guestfs_part_to_partnum (guestfs_h *g,\n"
31124 "                          const char *partition);\n"
31125 "\n"
31126 msgstr ""
31127
31128 #. type: textblock
31129 #: ../src/guestfs-actions.pod:6042
31130 msgid "See also C<guestfs_part_to_dev>."
31131 msgstr ""
31132
31133 #. type: =head2
31134 #: ../src/guestfs-actions.pod:6046
31135 msgid "guestfs_ping_daemon"
31136 msgstr ""
31137
31138 #. type: verbatim
31139 #: ../src/guestfs-actions.pod:6048
31140 #, no-wrap
31141 msgid ""
31142 " int\n"
31143 " guestfs_ping_daemon (guestfs_h *g);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs-actions.pod:6060
31149 msgid "guestfs_pread"
31150 msgstr ""
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-actions.pod:6062
31154 #, no-wrap
31155 msgid ""
31156 " char *\n"
31157 " guestfs_pread (guestfs_h *g,\n"
31158 "                const char *path,\n"
31159 "                int count,\n"
31160 "                int64_t offset,\n"
31161 "                size_t *size_r);\n"
31162 "\n"
31163 msgstr ""
31164
31165 #. type: textblock
31166 #: ../src/guestfs-actions.pod:6075
31167 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31168 msgstr ""
31169
31170 #. type: =head2
31171 #: ../src/guestfs-actions.pod:6086
31172 msgid "guestfs_pread_device"
31173 msgstr ""
31174
31175 #. type: verbatim
31176 #: ../src/guestfs-actions.pod:6088
31177 #, no-wrap
31178 msgid ""
31179 " char *\n"
31180 " guestfs_pread_device (guestfs_h *g,\n"
31181 "                       const char *device,\n"
31182 "                       int count,\n"
31183 "                       int64_t offset,\n"
31184 "                       size_t *size_r);\n"
31185 "\n"
31186 msgstr ""
31187
31188 #. type: textblock
31189 #: ../src/guestfs-actions.pod:6101
31190 msgid "See also C<guestfs_pread>."
31191 msgstr ""
31192
31193 #. type: textblock
31194 #: ../src/guestfs-actions.pod:6110
31195 msgid "(Added in 1.5.21)"
31196 msgstr ""
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:6112
31200 msgid "guestfs_pvcreate"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:6114
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_pvcreate (guestfs_h *g,\n"
31209 "                   const char *device);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: =head2
31214 #: ../src/guestfs-actions.pod:6126
31215 msgid "guestfs_pvremove"
31216 msgstr ""
31217
31218 #. type: verbatim
31219 #: ../src/guestfs-actions.pod:6128
31220 #, no-wrap
31221 msgid ""
31222 " int\n"
31223 " guestfs_pvremove (guestfs_h *g,\n"
31224 "                   const char *device);\n"
31225 "\n"
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:6143
31230 msgid "guestfs_pvresize"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:6145
31235 #, no-wrap
31236 msgid ""
31237 " int\n"
31238 " guestfs_pvresize (guestfs_h *g,\n"
31239 "                   const char *device);\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:6156
31245 msgid "guestfs_pvresize_size"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:6158
31250 #, no-wrap
31251 msgid ""
31252 " int\n"
31253 " guestfs_pvresize_size (guestfs_h *g,\n"
31254 "                        const char *device,\n"
31255 "                        int64_t size);\n"
31256 "\n"
31257 msgstr ""
31258
31259 #. type: textblock
31260 #: ../src/guestfs-actions.pod:6163
31261 msgid ""
31262 "This command is the same as C<guestfs_pvresize> except that it allows you to"
31263 " specify the new size (in bytes) explicitly."
31264 msgstr ""
31265
31266 #. type: =head2
31267 #: ../src/guestfs-actions.pod:6170
31268 msgid "guestfs_pvs"
31269 msgstr ""
31270
31271 #. type: verbatim
31272 #: ../src/guestfs-actions.pod:6172
31273 #, no-wrap
31274 msgid ""
31275 " char **\n"
31276 " guestfs_pvs (guestfs_h *g);\n"
31277 "\n"
31278 msgstr ""
31279
31280 #. type: textblock
31281 #: ../src/guestfs-actions.pod:6181
31282 msgid "See also C<guestfs_pvs_full>."
31283 msgstr ""
31284
31285 #. type: =head2
31286 #: ../src/guestfs-actions.pod:6189
31287 msgid "guestfs_pvs_full"
31288 msgstr ""
31289
31290 #. type: verbatim
31291 #: ../src/guestfs-actions.pod:6191
31292 #, no-wrap
31293 msgid ""
31294 " struct guestfs_lvm_pv_list *\n"
31295 " guestfs_pvs_full (guestfs_h *g);\n"
31296 "\n"
31297 msgstr ""
31298
31299 #. type: textblock
31300 #: ../src/guestfs-actions.pod:6197
31301 msgid ""
31302 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31303 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31304 "use>."
31305 msgstr ""
31306
31307 #. type: =head2
31308 #: ../src/guestfs-actions.pod:6203
31309 msgid "guestfs_pvuuid"
31310 msgstr ""
31311
31312 #. type: verbatim
31313 #: ../src/guestfs-actions.pod:6205
31314 #, no-wrap
31315 msgid ""
31316 " char *\n"
31317 " guestfs_pvuuid (guestfs_h *g,\n"
31318 "                 const char *device);\n"
31319 "\n"
31320 msgstr ""
31321
31322 #. type: =head2
31323 #: ../src/guestfs-actions.pod:6216
31324 msgid "guestfs_pwrite"
31325 msgstr ""
31326
31327 #. type: verbatim
31328 #: ../src/guestfs-actions.pod:6218
31329 #, no-wrap
31330 msgid ""
31331 " int\n"
31332 " guestfs_pwrite (guestfs_h *g,\n"
31333 "                 const char *path,\n"
31334 "                 const char *content,\n"
31335 "                 size_t content_size,\n"
31336 "                 int64_t offset);\n"
31337 "\n"
31338 msgstr ""
31339
31340 #. type: textblock
31341 #: ../src/guestfs-actions.pod:6234
31342 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31343 msgstr ""
31344
31345 #. type: =head2
31346 #: ../src/guestfs-actions.pod:6243
31347 msgid "guestfs_pwrite_device"
31348 msgstr ""
31349
31350 #. type: verbatim
31351 #: ../src/guestfs-actions.pod:6245
31352 #, no-wrap
31353 msgid ""
31354 " int\n"
31355 " guestfs_pwrite_device (guestfs_h *g,\n"
31356 "                        const char *device,\n"
31357 "                        const char *content,\n"
31358 "                        size_t content_size,\n"
31359 "                        int64_t offset);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: textblock
31364 #: ../src/guestfs-actions.pod:6260
31365 msgid "See also C<guestfs_pwrite>."
31366 msgstr ""
31367
31368 #. type: textblock
31369 #: ../src/guestfs-actions.pod:6267
31370 msgid "(Added in 1.5.20)"
31371 msgstr ""
31372
31373 #. type: =head2
31374 #: ../src/guestfs-actions.pod:6269
31375 msgid "guestfs_read_file"
31376 msgstr ""
31377
31378 #. type: verbatim
31379 #: ../src/guestfs-actions.pod:6271
31380 #, no-wrap
31381 msgid ""
31382 " char *\n"
31383 " guestfs_read_file (guestfs_h *g,\n"
31384 "                    const char *path,\n"
31385 "                    size_t *size_r);\n"
31386 "\n"
31387 msgstr ""
31388
31389 #. type: textblock
31390 #: ../src/guestfs-actions.pod:6279
31391 msgid ""
31392 "Unlike C<guestfs_cat>, this function can correctly handle files that contain"
31393 " embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31394 "function is limited in the total size of file that can be handled."
31395 msgstr ""
31396
31397 #. type: textblock
31398 #: ../src/guestfs-actions.pod:6291
31399 msgid "(Added in 1.0.63)"
31400 msgstr ""
31401
31402 #. type: =head2
31403 #: ../src/guestfs-actions.pod:6293
31404 msgid "guestfs_read_lines"
31405 msgstr ""
31406
31407 #. type: verbatim
31408 #: ../src/guestfs-actions.pod:6295
31409 #, no-wrap
31410 msgid ""
31411 " char **\n"
31412 " guestfs_read_lines (guestfs_h *g,\n"
31413 "                     const char *path);\n"
31414 "\n"
31415 msgstr ""
31416
31417 #. type: textblock
31418 #: ../src/guestfs-actions.pod:6304
31419 msgid ""
31420 "Note that this function cannot correctly handle binary files (specifically, "
31421 "files containing C<\\0> character which is treated as end of line).  For "
31422 "those you need to use the C<guestfs_read_file> function which has a more "
31423 "complex interface."
31424 msgstr ""
31425
31426 #. type: =head2
31427 #: ../src/guestfs-actions.pod:6315
31428 msgid "guestfs_readdir"
31429 msgstr ""
31430
31431 #. type: verbatim
31432 #: ../src/guestfs-actions.pod:6317
31433 #, no-wrap
31434 msgid ""
31435 " struct guestfs_dirent_list *\n"
31436 " guestfs_readdir (guestfs_h *g,\n"
31437 "                  const char *dir);\n"
31438 "\n"
31439 msgstr ""
31440
31441 #. type: textblock
31442 #: ../src/guestfs-actions.pod:6371
31443 msgid ""
31444 "This function is primarily intended for use by programs.  To get a simple "
31445 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31446 "consumption, use C<guestfs_ll>."
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../src/guestfs-actions.pod:6375
31451 msgid ""
31452 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31453 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31454 "use>."
31455 msgstr ""
31456
31457 #. type: =head2
31458 #: ../src/guestfs-actions.pod:6381
31459 msgid "guestfs_readlink"
31460 msgstr ""
31461
31462 #. type: verbatim
31463 #: ../src/guestfs-actions.pod:6383
31464 #, no-wrap
31465 msgid ""
31466 " char *\n"
31467 " guestfs_readlink (guestfs_h *g,\n"
31468 "                   const char *path);\n"
31469 "\n"
31470 msgstr ""
31471
31472 #. type: =head2
31473 #: ../src/guestfs-actions.pod:6394
31474 msgid "guestfs_readlinklist"
31475 msgstr ""
31476
31477 #. type: verbatim
31478 #: ../src/guestfs-actions.pod:6396
31479 #, no-wrap
31480 msgid ""
31481 " char **\n"
31482 " guestfs_readlinklist (guestfs_h *g,\n"
31483 "                       const char *path,\n"
31484 "                       char *const *names);\n"
31485 "\n"
31486 msgstr ""
31487
31488 #. type: =head2
31489 #: ../src/guestfs-actions.pod:6429
31490 msgid "guestfs_realpath"
31491 msgstr ""
31492
31493 #. type: verbatim
31494 #: ../src/guestfs-actions.pod:6431
31495 #, no-wrap
31496 msgid ""
31497 " char *\n"
31498 " guestfs_realpath (guestfs_h *g,\n"
31499 "                   const char *path);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: =head2
31504 #: ../src/guestfs-actions.pod:6443
31505 msgid "guestfs_removexattr"
31506 msgstr ""
31507
31508 #. type: verbatim
31509 #: ../src/guestfs-actions.pod:6445
31510 #, no-wrap
31511 msgid ""
31512 " int\n"
31513 " guestfs_removexattr (guestfs_h *g,\n"
31514 "                      const char *xattr,\n"
31515 "                      const char *path);\n"
31516 "\n"
31517 msgstr ""
31518
31519 #. type: textblock
31520 #: ../src/guestfs-actions.pod:6453
31521 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31522 msgstr ""
31523
31524 #. type: =head2
31525 #: ../src/guestfs-actions.pod:6459
31526 msgid "guestfs_resize2fs"
31527 msgstr ""
31528
31529 #. type: verbatim
31530 #: ../src/guestfs-actions.pod:6461
31531 #, no-wrap
31532 msgid ""
31533 " int\n"
31534 " guestfs_resize2fs (guestfs_h *g,\n"
31535 "                    const char *device);\n"
31536 "\n"
31537 msgstr ""
31538
31539 #. type: textblock
31540 #: ../src/guestfs-actions.pod:6468
31541 msgid ""
31542 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31543 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31544 "sometimes gives an error about this and sometimes not.  In any case, it is "
31545 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31546 msgstr ""
31547
31548 #. type: =head2
31549 #: ../src/guestfs-actions.pod:6478
31550 msgid "guestfs_resize2fs_M"
31551 msgstr ""
31552
31553 #. type: verbatim
31554 #: ../src/guestfs-actions.pod:6480
31555 #, no-wrap
31556 msgid ""
31557 " int\n"
31558 " guestfs_resize2fs_M (guestfs_h *g,\n"
31559 "                      const char *device);\n"
31560 "\n"
31561 msgstr ""
31562
31563 #. type: textblock
31564 #: ../src/guestfs-actions.pod:6484
31565 msgid ""
31566 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31567 "resized to its minimum size.  This works like the I<-M> option to the "
31568 "C<resize2fs> command."
31569 msgstr ""
31570
31571 #. type: textblock
31572 #: ../src/guestfs-actions.pod:6488
31573 msgid ""
31574 "To get the resulting size of the filesystem you should call "
31575 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31576 "These two numbers, multiplied together, give the resulting size of the "
31577 "minimal filesystem in bytes."
31578 msgstr ""
31579
31580 #. type: =head2
31581 #: ../src/guestfs-actions.pod:6497
31582 msgid "guestfs_resize2fs_size"
31583 msgstr ""
31584
31585 #. type: verbatim
31586 #: ../src/guestfs-actions.pod:6499
31587 #, no-wrap
31588 msgid ""
31589 " int\n"
31590 " guestfs_resize2fs_size (guestfs_h *g,\n"
31591 "                         const char *device,\n"
31592 "                         int64_t size);\n"
31593 "\n"
31594 msgstr ""
31595
31596 #. type: textblock
31597 #: ../src/guestfs-actions.pod:6504
31598 msgid ""
31599 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31600 "to specify the new size (in bytes) explicitly."
31601 msgstr ""
31602
31603 #. type: =head2
31604 #: ../src/guestfs-actions.pod:6511
31605 msgid "guestfs_rm"
31606 msgstr ""
31607
31608 #. type: verbatim
31609 #: ../src/guestfs-actions.pod:6513
31610 #, no-wrap
31611 msgid ""
31612 " int\n"
31613 " guestfs_rm (guestfs_h *g,\n"
31614 "             const char *path);\n"
31615 "\n"
31616 msgstr ""
31617
31618 #. type: =head2
31619 #: ../src/guestfs-actions.pod:6523
31620 msgid "guestfs_rm_rf"
31621 msgstr ""
31622
31623 #. type: verbatim
31624 #: ../src/guestfs-actions.pod:6525
31625 #, no-wrap
31626 msgid ""
31627 " int\n"
31628 " guestfs_rm_rf (guestfs_h *g,\n"
31629 "                const char *path);\n"
31630 "\n"
31631 msgstr ""
31632
31633 #. type: =head2
31634 #: ../src/guestfs-actions.pod:6537
31635 msgid "guestfs_rmdir"
31636 msgstr ""
31637
31638 #. type: verbatim
31639 #: ../src/guestfs-actions.pod:6539
31640 #, no-wrap
31641 msgid ""
31642 " int\n"
31643 " guestfs_rmdir (guestfs_h *g,\n"
31644 "                const char *path);\n"
31645 "\n"
31646 msgstr ""
31647
31648 #. type: =head2
31649 #: ../src/guestfs-actions.pod:6549
31650 msgid "guestfs_rmmountpoint"
31651 msgstr ""
31652
31653 #. type: verbatim
31654 #: ../src/guestfs-actions.pod:6551
31655 #, no-wrap
31656 msgid ""
31657 " int\n"
31658 " guestfs_rmmountpoint (guestfs_h *g,\n"
31659 "                       const char *exemptpath);\n"
31660 "\n"
31661 msgstr ""
31662
31663 #. type: textblock
31664 #: ../src/guestfs-actions.pod:6555
31665 msgid ""
31666 "This calls removes a mountpoint that was previously created with "
31667 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31668 msgstr ""
31669
31670 #. type: =head2
31671 #: ../src/guestfs-actions.pod:6563
31672 msgid "guestfs_scrub_device"
31673 msgstr ""
31674
31675 #. type: verbatim
31676 #: ../src/guestfs-actions.pod:6565
31677 #, no-wrap
31678 msgid ""
31679 " int\n"
31680 " guestfs_scrub_device (guestfs_h *g,\n"
31681 "                       const char *device);\n"
31682 "\n"
31683 msgstr ""
31684
31685 #. type: textblock
31686 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6598
31687 #: ../src/guestfs-actions.pod:6617
31688 msgid "(Added in 1.0.52)"
31689 msgstr ""
31690
31691 #. type: =head2
31692 #: ../src/guestfs-actions.pod:6582
31693 msgid "guestfs_scrub_file"
31694 msgstr ""
31695
31696 #. type: verbatim
31697 #: ../src/guestfs-actions.pod:6584
31698 #, no-wrap
31699 msgid ""
31700 " int\n"
31701 " guestfs_scrub_file (guestfs_h *g,\n"
31702 "                     const char *file);\n"
31703 "\n"
31704 msgstr ""
31705
31706 #. type: =head2
31707 #: ../src/guestfs-actions.pod:6600
31708 msgid "guestfs_scrub_freespace"
31709 msgstr ""
31710
31711 #. type: verbatim
31712 #: ../src/guestfs-actions.pod:6602
31713 #, no-wrap
31714 msgid ""
31715 " int\n"
31716 " guestfs_scrub_freespace (guestfs_h *g,\n"
31717 "                          const char *dir);\n"
31718 "\n"
31719 msgstr ""
31720
31721 #. type: textblock
31722 #: ../src/guestfs-actions.pod:6606
31723 msgid ""
31724 "This command creates the directory C<dir> and then fills it with files until"
31725 " the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31726 "and deletes them.  The intention is to scrub any free space on the partition"
31727 " containing C<dir>."
31728 msgstr ""
31729
31730 #. type: =head2
31731 #: ../src/guestfs-actions.pod:6619
31732 msgid "guestfs_set_append"
31733 msgstr ""
31734
31735 #. type: verbatim
31736 #: ../src/guestfs-actions.pod:6621
31737 #, no-wrap
31738 msgid ""
31739 " int\n"
31740 " guestfs_set_append (guestfs_h *g,\n"
31741 "                     const char *append);\n"
31742 "\n"
31743 msgstr ""
31744
31745 #. type: =head2
31746 #: ../src/guestfs-actions.pod:6638
31747 msgid "guestfs_set_attach_method"
31748 msgstr ""
31749
31750 #. type: verbatim
31751 #: ../src/guestfs-actions.pod:6640
31752 #, no-wrap
31753 msgid ""
31754 " int\n"
31755 " guestfs_set_attach_method (guestfs_h *g,\n"
31756 "                            const char *attachmethod);\n"
31757 "\n"
31758 msgstr ""
31759
31760 #. type: =head2
31761 #: ../src/guestfs-actions.pod:6668
31762 msgid "guestfs_set_autosync"
31763 msgstr ""
31764
31765 #. type: verbatim
31766 #: ../src/guestfs-actions.pod:6670
31767 #, no-wrap
31768 msgid ""
31769 " int\n"
31770 " guestfs_set_autosync (guestfs_h *g,\n"
31771 "                       int autosync);\n"
31772 "\n"
31773 msgstr ""
31774
31775 #. type: =head2
31776 #: ../src/guestfs-actions.pod:6686
31777 msgid "guestfs_set_direct"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:6688
31782 #, no-wrap
31783 msgid ""
31784 " int\n"
31785 " guestfs_set_direct (guestfs_h *g,\n"
31786 "                     int direct);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs-actions.pod:6696
31792 msgid ""
31793 "One consequence of this is that log messages aren't caught by the library "
31794 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31795 "stdout."
31796 msgstr ""
31797
31798 #. type: =head2
31799 #: ../src/guestfs-actions.pod:6709
31800 msgid "guestfs_set_e2label"
31801 msgstr ""
31802
31803 #. type: verbatim
31804 #: ../src/guestfs-actions.pod:6711
31805 #, no-wrap
31806 msgid ""
31807 " int\n"
31808 " guestfs_set_e2label (guestfs_h *g,\n"
31809 "                      const char *device,\n"
31810 "                      const char *label);\n"
31811 "\n"
31812 msgstr ""
31813
31814 #. type: textblock
31815 #: ../src/guestfs-actions.pod:6720
31816 msgid ""
31817 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31818 "the existing label on a filesystem."
31819 msgstr ""
31820
31821 #. type: =head2
31822 #: ../src/guestfs-actions.pod:6727
31823 msgid "guestfs_set_e2uuid"
31824 msgstr ""
31825
31826 #. type: verbatim
31827 #: ../src/guestfs-actions.pod:6729
31828 #, no-wrap
31829 msgid ""
31830 " int\n"
31831 " guestfs_set_e2uuid (guestfs_h *g,\n"
31832 "                     const char *device,\n"
31833 "                     const char *uuid);\n"
31834 "\n"
31835 msgstr ""
31836
31837 #. type: textblock
31838 #: ../src/guestfs-actions.pod:6739
31839 msgid ""
31840 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31841 "the existing UUID of a filesystem."
31842 msgstr ""
31843
31844 #. type: =head2
31845 #: ../src/guestfs-actions.pod:6746
31846 msgid "guestfs_set_memsize"
31847 msgstr ""
31848
31849 #. type: verbatim
31850 #: ../src/guestfs-actions.pod:6748
31851 #, no-wrap
31852 msgid ""
31853 " int\n"
31854 " guestfs_set_memsize (guestfs_h *g,\n"
31855 "                      int memsize);\n"
31856 "\n"
31857 msgstr ""
31858
31859 #. type: textblock
31860 #: ../src/guestfs-actions.pod:6752
31861 msgid ""
31862 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31863 "This only has any effect if called before C<guestfs_launch>."
31864 msgstr ""
31865
31866 #. type: =head2
31867 #: ../src/guestfs-actions.pod:6767
31868 msgid "guestfs_set_network"
31869 msgstr ""
31870
31871 #. type: verbatim
31872 #: ../src/guestfs-actions.pod:6769
31873 #, no-wrap
31874 msgid ""
31875 " int\n"
31876 " guestfs_set_network (guestfs_h *g,\n"
31877 "                      int network);\n"
31878 "\n"
31879 msgstr ""
31880
31881 #. type: textblock
31882 #: ../src/guestfs-actions.pod:6779
31883 msgid ""
31884 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31885 "effect."
31886 msgstr ""
31887
31888 #. type: =head2
31889 #: ../src/guestfs-actions.pod:6786
31890 msgid "guestfs_set_path"
31891 msgstr ""
31892
31893 #. type: verbatim
31894 #: ../src/guestfs-actions.pod:6788
31895 #, no-wrap
31896 msgid ""
31897 " int\n"
31898 " guestfs_set_path (guestfs_h *g,\n"
31899 "                   const char *searchpath);\n"
31900 "\n"
31901 msgstr ""
31902
31903 #. type: =head2
31904 #: ../src/guestfs-actions.pod:6803
31905 msgid "guestfs_set_pgroup"
31906 msgstr ""
31907
31908 #. type: verbatim
31909 #: ../src/guestfs-actions.pod:6805
31910 #, no-wrap
31911 msgid ""
31912 " int\n"
31913 " guestfs_set_pgroup (guestfs_h *g,\n"
31914 "                     int pgroup);\n"
31915 "\n"
31916 msgstr ""
31917
31918 #. type: =head2
31919 #: ../src/guestfs-actions.pod:6822
31920 msgid "guestfs_set_qemu"
31921 msgstr ""
31922
31923 #. type: verbatim
31924 #: ../src/guestfs-actions.pod:6824
31925 #, no-wrap
31926 msgid ""
31927 " int\n"
31928 " guestfs_set_qemu (guestfs_h *g,\n"
31929 "                   const char *qemu);\n"
31930 "\n"
31931 msgstr ""
31932
31933 #. type: =head2
31934 #: ../src/guestfs-actions.pod:6850
31935 msgid "guestfs_set_recovery_proc"
31936 msgstr ""
31937
31938 #. type: verbatim
31939 #: ../src/guestfs-actions.pod:6852
31940 #, no-wrap
31941 msgid ""
31942 " int\n"
31943 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31944 "                            int recoveryproc);\n"
31945 "\n"
31946 msgstr ""
31947
31948 #. type: textblock
31949 #: ../src/guestfs-actions.pod:6856
31950 msgid ""
31951 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31952 "not create a recovery process.  The purpose of the recovery process is to "
31953 "stop runaway qemu processes in the case where the main program aborts "
31954 "abruptly."
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs-actions.pod:6861
31959 msgid ""
31960 "This only has any effect if called before C<guestfs_launch>, and the default"
31961 " is true."
31962 msgstr ""
31963
31964 #. type: =head2
31965 #: ../src/guestfs-actions.pod:6874
31966 msgid "guestfs_set_selinux"
31967 msgstr ""
31968
31969 #. type: verbatim
31970 #: ../src/guestfs-actions.pod:6876
31971 #, no-wrap
31972 msgid ""
31973 " int\n"
31974 " guestfs_set_selinux (guestfs_h *g,\n"
31975 "                      int selinux);\n"
31976 "\n"
31977 msgstr ""
31978
31979 #. type: =head2
31980 #: ../src/guestfs-actions.pod:6893
31981 msgid "guestfs_set_smp"
31982 msgstr ""
31983
31984 #. type: verbatim
31985 #: ../src/guestfs-actions.pod:6895
31986 #, no-wrap
31987 msgid ""
31988 " int\n"
31989 " guestfs_set_smp (guestfs_h *g,\n"
31990 "                  int smp);\n"
31991 "\n"
31992 msgstr ""
31993
31994 #. type: textblock
31995 #: ../src/guestfs-actions.pod:6903
31996 msgid "This function must be called before C<guestfs_launch>."
31997 msgstr ""
31998
31999 #. type: =head2
32000 #: ../src/guestfs-actions.pod:6909
32001 msgid "guestfs_set_trace"
32002 msgstr ""
32003
32004 #. type: verbatim
32005 #: ../src/guestfs-actions.pod:6911
32006 #, no-wrap
32007 msgid ""
32008 " int\n"
32009 " guestfs_set_trace (guestfs_h *g,\n"
32010 "                    int trace);\n"
32011 "\n"
32012 msgstr ""
32013
32014 #. type: textblock
32015 #: ../src/guestfs-actions.pod:6925
32016 msgid ""
32017 "Trace messages are normally sent to C<stderr>, unless you register a "
32018 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32019 msgstr ""
32020
32021 #. type: =head2
32022 #: ../src/guestfs-actions.pod:6933
32023 msgid "guestfs_set_verbose"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../src/guestfs-actions.pod:6935
32028 #, no-wrap
32029 msgid ""
32030 " int\n"
32031 " guestfs_set_verbose (guestfs_h *g,\n"
32032 "                      int verbose);\n"
32033 "\n"
32034 msgstr ""
32035
32036 #. type: textblock
32037 #: ../src/guestfs-actions.pod:6944
32038 msgid ""
32039 "Verbose messages are normally sent to C<stderr>, unless you register a "
32040 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32041 msgstr ""
32042
32043 #. type: =head2
32044 #: ../src/guestfs-actions.pod:6952
32045 msgid "guestfs_setcon"
32046 msgstr ""
32047
32048 #. type: verbatim
32049 #: ../src/guestfs-actions.pod:6954
32050 #, no-wrap
32051 msgid ""
32052 " int\n"
32053 " guestfs_setcon (guestfs_h *g,\n"
32054 "                 const char *context);\n"
32055 "\n"
32056 msgstr ""
32057
32058 #. type: =head2
32059 #: ../src/guestfs-actions.pod:6967
32060 msgid "guestfs_setxattr"
32061 msgstr ""
32062
32063 #. type: verbatim
32064 #: ../src/guestfs-actions.pod:6969
32065 #, no-wrap
32066 msgid ""
32067 " int\n"
32068 " guestfs_setxattr (guestfs_h *g,\n"
32069 "                   const char *xattr,\n"
32070 "                   const char *val,\n"
32071 "                   int vallen,\n"
32072 "                   const char *path);\n"
32073 "\n"
32074 msgstr ""
32075
32076 #. type: textblock
32077 #: ../src/guestfs-actions.pod:6980
32078 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32079 msgstr ""
32080
32081 #. type: =head2
32082 #: ../src/guestfs-actions.pod:6986
32083 msgid "guestfs_sfdisk"
32084 msgstr ""
32085
32086 #. type: verbatim
32087 #: ../src/guestfs-actions.pod:6988
32088 #, no-wrap
32089 msgid ""
32090 " int\n"
32091 " guestfs_sfdisk (guestfs_h *g,\n"
32092 "                 const char *device,\n"
32093 "                 int cyls,\n"
32094 "                 int heads,\n"
32095 "                 int sectors,\n"
32096 "                 char *const *lines);\n"
32097 "\n"
32098 msgstr ""
32099
32100 #. type: textblock
32101 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7040
32102 #: ../src/guestfs-actions.pod:7074
32103 msgid ""
32104 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32105 "call instead."
32106 msgstr ""
32107
32108 #. type: textblock
32109 #: ../src/guestfs-actions.pod:7023
32110 msgid ""
32111 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32112 msgstr ""
32113
32114 #. type: =head2
32115 #: ../src/guestfs-actions.pod:7033
32116 msgid "guestfs_sfdiskM"
32117 msgstr ""
32118
32119 #. type: verbatim
32120 #: ../src/guestfs-actions.pod:7035
32121 #, no-wrap
32122 msgid ""
32123 " int\n"
32124 " guestfs_sfdiskM (guestfs_h *g,\n"
32125 "                  const char *device,\n"
32126 "                  char *const *lines);\n"
32127 "\n"
32128 msgstr ""
32129
32130 #. type: textblock
32131 #: ../src/guestfs-actions.pod:7047
32132 msgid ""
32133 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32134 "partition sizes are specified in megabytes only (rounded to the nearest "
32135 "cylinder) and you don't need to specify the cyls, heads and sectors "
32136 "parameters which were rarely if ever used anyway."
32137 msgstr ""
32138
32139 #. type: textblock
32140 #: ../src/guestfs-actions.pod:7053
32141 msgid ""
32142 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32143 "C<guestfs_part_disk>"
32144 msgstr ""
32145
32146 #. type: =head2
32147 #: ../src/guestfs-actions.pod:7063
32148 msgid "guestfs_sfdisk_N"
32149 msgstr ""
32150
32151 #. type: verbatim
32152 #: ../src/guestfs-actions.pod:7065
32153 #, no-wrap
32154 msgid ""
32155 " int\n"
32156 " guestfs_sfdisk_N (guestfs_h *g,\n"
32157 "                   const char *device,\n"
32158 "                   int partnum,\n"
32159 "                   int cyls,\n"
32160 "                   int heads,\n"
32161 "                   int sectors,\n"
32162 "                   const char *line);\n"
32163 "\n"
32164 msgstr ""
32165
32166 #. type: textblock
32167 #: ../src/guestfs-actions.pod:7084
32168 msgid ""
32169 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32170 "for the cyls/heads/sectors parameters."
32171 msgstr ""
32172
32173 #. type: textblock
32174 #: ../src/guestfs-actions.pod:7087
32175 msgid "See also: C<guestfs_part_add>"
32176 msgstr ""
32177
32178 #. type: =head2
32179 #: ../src/guestfs-actions.pod:7096
32180 msgid "guestfs_sfdisk_disk_geometry"
32181 msgstr ""
32182
32183 #. type: verbatim
32184 #: ../src/guestfs-actions.pod:7098
32185 #, no-wrap
32186 msgid ""
32187 " char *\n"
32188 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32189 "                               const char *device);\n"
32190 "\n"
32191 msgstr ""
32192
32193 #. type: textblock
32194 #: ../src/guestfs-actions.pod:7102
32195 msgid ""
32196 "This displays the disk geometry of C<device> read from the partition table."
32197 "  Especially in the case where the underlying block device has been resized,"
32198 " this can be different from the kernel's idea of the geometry (see "
32199 "C<guestfs_sfdisk_kernel_geometry>)."
32200 msgstr ""
32201
32202 #. type: =head2
32203 #: ../src/guestfs-actions.pod:7115
32204 msgid "guestfs_sfdisk_kernel_geometry"
32205 msgstr ""
32206
32207 #. type: verbatim
32208 #: ../src/guestfs-actions.pod:7117
32209 #, no-wrap
32210 msgid ""
32211 " char *\n"
32212 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32213 "                                 const char *device);\n"
32214 "\n"
32215 msgstr ""
32216
32217 #. type: =head2
32218 #: ../src/guestfs-actions.pod:7131
32219 msgid "guestfs_sfdisk_l"
32220 msgstr ""
32221
32222 #. type: verbatim
32223 #: ../src/guestfs-actions.pod:7133
32224 #, no-wrap
32225 msgid ""
32226 " char *\n"
32227 " guestfs_sfdisk_l (guestfs_h *g,\n"
32228 "                   const char *device);\n"
32229 "\n"
32230 msgstr ""
32231
32232 #. type: textblock
32233 #: ../src/guestfs-actions.pod:7137
32234 msgid ""
32235 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32236 "call instead."
32237 msgstr ""
32238
32239 #. type: textblock
32240 #: ../src/guestfs-actions.pod:7148
32241 msgid "See also: C<guestfs_part_list>"
32242 msgstr ""
32243
32244 #. type: =head2
32245 #: ../src/guestfs-actions.pod:7155
32246 msgid "guestfs_sh"
32247 msgstr ""
32248
32249 #. type: verbatim
32250 #: ../src/guestfs-actions.pod:7157
32251 #, no-wrap
32252 msgid ""
32253 " char *\n"
32254 " guestfs_sh (guestfs_h *g,\n"
32255 "             const char *command);\n"
32256 "\n"
32257 msgstr ""
32258
32259 #. type: textblock
32260 #: ../src/guestfs-actions.pod:7164
32261 msgid "This is like C<guestfs_command>, but passes the command to:"
32262 msgstr ""
32263
32264 #. type: textblock
32265 #: ../src/guestfs-actions.pod:7172
32266 msgid "All the provisos about C<guestfs_command> apply to this call."
32267 msgstr ""
32268
32269 #. type: =head2
32270 #: ../src/guestfs-actions.pod:7179
32271 msgid "guestfs_sh_lines"
32272 msgstr ""
32273
32274 #. type: verbatim
32275 #: ../src/guestfs-actions.pod:7181
32276 #, no-wrap
32277 msgid ""
32278 " char **\n"
32279 " guestfs_sh_lines (guestfs_h *g,\n"
32280 "                   const char *command);\n"
32281 "\n"
32282 msgstr ""
32283
32284 #. type: textblock
32285 #: ../src/guestfs-actions.pod:7185
32286 msgid ""
32287 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32288 "lines."
32289 msgstr ""
32290
32291 #. type: textblock
32292 #: ../src/guestfs-actions.pod:7188
32293 msgid "See also: C<guestfs_command_lines>"
32294 msgstr ""
32295
32296 #. type: =head2
32297 #: ../src/guestfs-actions.pod:7196
32298 msgid "guestfs_sleep"
32299 msgstr ""
32300
32301 #. type: verbatim
32302 #: ../src/guestfs-actions.pod:7198
32303 #, no-wrap
32304 msgid ""
32305 " int\n"
32306 " guestfs_sleep (guestfs_h *g,\n"
32307 "                int secs);\n"
32308 "\n"
32309 msgstr ""
32310
32311 #. type: textblock
32312 #: ../src/guestfs-actions.pod:7206
32313 msgid "(Added in 1.0.41)"
32314 msgstr ""
32315
32316 #. type: =head2
32317 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-structs.pod:109
32318 msgid "guestfs_stat"
32319 msgstr ""
32320
32321 #. type: verbatim
32322 #: ../src/guestfs-actions.pod:7210
32323 #, no-wrap
32324 msgid ""
32325 " struct guestfs_stat *\n"
32326 " guestfs_stat (guestfs_h *g,\n"
32327 "               const char *path);\n"
32328 "\n"
32329 msgstr ""
32330
32331 #. type: =head2
32332 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-structs.pod:135
32333 msgid "guestfs_statvfs"
32334 msgstr ""
32335
32336 #. type: verbatim
32337 #: ../src/guestfs-actions.pod:7226
32338 #, no-wrap
32339 msgid ""
32340 " struct guestfs_statvfs *\n"
32341 " guestfs_statvfs (guestfs_h *g,\n"
32342 "                  const char *path);\n"
32343 "\n"
32344 msgstr ""
32345
32346 #. type: textblock
32347 #: ../src/guestfs-actions.pod:7236
32348 msgid ""
32349 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an"
32350 " error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32351 msgstr ""
32352
32353 #. type: =head2
32354 #: ../src/guestfs-actions.pod:7242
32355 msgid "guestfs_strings"
32356 msgstr ""
32357
32358 #. type: verbatim
32359 #: ../src/guestfs-actions.pod:7244
32360 #, no-wrap
32361 msgid ""
32362 " char **\n"
32363 " guestfs_strings (guestfs_h *g,\n"
32364 "                  const char *path);\n"
32365 "\n"
32366 msgstr ""
32367
32368 #. type: =head2
32369 #: ../src/guestfs-actions.pod:7260
32370 msgid "guestfs_strings_e"
32371 msgstr ""
32372
32373 #. type: verbatim
32374 #: ../src/guestfs-actions.pod:7262
32375 #, no-wrap
32376 msgid ""
32377 " char **\n"
32378 " guestfs_strings_e (guestfs_h *g,\n"
32379 "                    const char *encoding,\n"
32380 "                    const char *path);\n"
32381 "\n"
32382 msgstr ""
32383
32384 #. type: textblock
32385 #: ../src/guestfs-actions.pod:7267
32386 msgid ""
32387 "This is like the C<guestfs_strings> command, but allows you to specify the "
32388 "encoding of strings that are looked for in the source file C<path>."
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs-actions.pod:7277
32393 msgid ""
32394 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32395 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32396 msgstr ""
32397
32398 #. type: =head2
32399 #: ../src/guestfs-actions.pod:7315
32400 msgid "guestfs_swapoff_device"
32401 msgstr ""
32402
32403 #. type: verbatim
32404 #: ../src/guestfs-actions.pod:7317
32405 #, no-wrap
32406 msgid ""
32407 " int\n"
32408 " guestfs_swapoff_device (guestfs_h *g,\n"
32409 "                         const char *device);\n"
32410 "\n"
32411 msgstr ""
32412
32413 #. type: textblock
32414 #: ../src/guestfs-actions.pod:7321
32415 msgid ""
32416 "This command disables the libguestfs appliance swap device or partition "
32417 "named C<device>.  See C<guestfs_swapon_device>."
32418 msgstr ""
32419
32420 #. type: =head2
32421 #: ../src/guestfs-actions.pod:7329
32422 msgid "guestfs_swapoff_file"
32423 msgstr ""
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-actions.pod:7331
32427 #, no-wrap
32428 msgid ""
32429 " int\n"
32430 " guestfs_swapoff_file (guestfs_h *g,\n"
32431 "                       const char *file);\n"
32432 "\n"
32433 msgstr ""
32434
32435 #. type: =head2
32436 #: ../src/guestfs-actions.pod:7341
32437 msgid "guestfs_swapoff_label"
32438 msgstr ""
32439
32440 #. type: verbatim
32441 #: ../src/guestfs-actions.pod:7343
32442 #, no-wrap
32443 msgid ""
32444 " int\n"
32445 " guestfs_swapoff_label (guestfs_h *g,\n"
32446 "                        const char *label);\n"
32447 "\n"
32448 msgstr ""
32449
32450 #. type: =head2
32451 #: ../src/guestfs-actions.pod:7354
32452 msgid "guestfs_swapoff_uuid"
32453 msgstr ""
32454
32455 #. type: verbatim
32456 #: ../src/guestfs-actions.pod:7356
32457 #, no-wrap
32458 msgid ""
32459 " int\n"
32460 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32461 "                       const char *uuid);\n"
32462 "\n"
32463 msgstr ""
32464
32465 #. type: =head2
32466 #: ../src/guestfs-actions.pod:7367
32467 msgid "guestfs_swapon_device"
32468 msgstr ""
32469
32470 #. type: verbatim
32471 #: ../src/guestfs-actions.pod:7369
32472 #, no-wrap
32473 msgid ""
32474 " int\n"
32475 " guestfs_swapon_device (guestfs_h *g,\n"
32476 "                        const char *device);\n"
32477 "\n"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs-actions.pod:7373
32482 msgid ""
32483 "This command enables the libguestfs appliance to use the swap device or "
32484 "partition named C<device>.  The increased memory is made available for all "
32485 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32486 msgstr ""
32487
32488 #. type: =head2
32489 #: ../src/guestfs-actions.pod:7389
32490 msgid "guestfs_swapon_file"
32491 msgstr ""
32492
32493 #. type: verbatim
32494 #: ../src/guestfs-actions.pod:7391
32495 #, no-wrap
32496 msgid ""
32497 " int\n"
32498 " guestfs_swapon_file (guestfs_h *g,\n"
32499 "                      const char *file);\n"
32500 "\n"
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../src/guestfs-actions.pod:7395
32505 msgid ""
32506 "This command enables swap to a file.  See C<guestfs_swapon_device> for other"
32507 " notes."
32508 msgstr ""
32509
32510 #. type: =head2
32511 #: ../src/guestfs-actions.pod:7402
32512 msgid "guestfs_swapon_label"
32513 msgstr ""
32514
32515 #. type: verbatim
32516 #: ../src/guestfs-actions.pod:7404
32517 #, no-wrap
32518 msgid ""
32519 " int\n"
32520 " guestfs_swapon_label (guestfs_h *g,\n"
32521 "                       const char *label);\n"
32522 "\n"
32523 msgstr ""
32524
32525 #. type: textblock
32526 #: ../src/guestfs-actions.pod:7408
32527 msgid ""
32528 "This command enables swap to a labeled swap partition.  See "
32529 "C<guestfs_swapon_device> for other notes."
32530 msgstr ""
32531
32532 #. type: =head2
32533 #: ../src/guestfs-actions.pod:7415
32534 msgid "guestfs_swapon_uuid"
32535 msgstr ""
32536
32537 #. type: verbatim
32538 #: ../src/guestfs-actions.pod:7417
32539 #, no-wrap
32540 msgid ""
32541 " int\n"
32542 " guestfs_swapon_uuid (guestfs_h *g,\n"
32543 "                      const char *uuid);\n"
32544 "\n"
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs-actions.pod:7421
32549 msgid ""
32550 "This command enables swap to a swap partition with the given UUID.  See "
32551 "C<guestfs_swapon_device> for other notes."
32552 msgstr ""
32553
32554 #. type: =head2
32555 #: ../src/guestfs-actions.pod:7428
32556 msgid "guestfs_sync"
32557 msgstr ""
32558
32559 #. type: verbatim
32560 #: ../src/guestfs-actions.pod:7430
32561 #, no-wrap
32562 msgid ""
32563 " int\n"
32564 " guestfs_sync (guestfs_h *g);\n"
32565 "\n"
32566 msgstr ""
32567
32568 #. type: =head2
32569 #: ../src/guestfs-actions.pod:7443
32570 msgid "guestfs_tail"
32571 msgstr ""
32572
32573 #. type: verbatim
32574 #: ../src/guestfs-actions.pod:7445
32575 #, no-wrap
32576 msgid ""
32577 " char **\n"
32578 " guestfs_tail (guestfs_h *g,\n"
32579 "               const char *path);\n"
32580 "\n"
32581 msgstr ""
32582
32583 #. type: =head2
32584 #: ../src/guestfs-actions.pod:7461
32585 msgid "guestfs_tail_n"
32586 msgstr ""
32587
32588 #. type: verbatim
32589 #: ../src/guestfs-actions.pod:7463
32590 #, no-wrap
32591 msgid ""
32592 " char **\n"
32593 " guestfs_tail_n (guestfs_h *g,\n"
32594 "                 int nrlines,\n"
32595 "                 const char *path);\n"
32596 "\n"
32597 msgstr ""
32598
32599 #. type: =head2
32600 #: ../src/guestfs-actions.pod:7485
32601 msgid "guestfs_tar_in"
32602 msgstr ""
32603
32604 #. type: verbatim
32605 #: ../src/guestfs-actions.pod:7487
32606 #, no-wrap
32607 msgid ""
32608 " int\n"
32609 " guestfs_tar_in (guestfs_h *g,\n"
32610 "                 const char *tarfile,\n"
32611 "                 const char *directory);\n"
32612 "\n"
32613 msgstr ""
32614
32615 #. type: textblock
32616 #: ../src/guestfs-actions.pod:7495
32617 msgid ""
32618 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32619 msgstr ""
32620
32621 #. type: textblock
32622 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7517
32623 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7549
32624 msgid "(Added in 1.0.3)"
32625 msgstr ""
32626
32627 #. type: =head2
32628 #: ../src/guestfs-actions.pod:7502
32629 msgid "guestfs_tar_out"
32630 msgstr ""
32631
32632 #. type: verbatim
32633 #: ../src/guestfs-actions.pod:7504
32634 #, no-wrap
32635 msgid ""
32636 " int\n"
32637 " guestfs_tar_out (guestfs_h *g,\n"
32638 "                  const char *directory,\n"
32639 "                  const char *tarfile);\n"
32640 "\n"
32641 msgstr ""
32642
32643 #. type: textblock
32644 #: ../src/guestfs-actions.pod:7512
32645 msgid ""
32646 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32647 "C<guestfs_txz_out>."
32648 msgstr ""
32649
32650 #. type: =head2
32651 #: ../src/guestfs-actions.pod:7519
32652 msgid "guestfs_tgz_in"
32653 msgstr ""
32654
32655 #. type: verbatim
32656 #: ../src/guestfs-actions.pod:7521
32657 #, no-wrap
32658 msgid ""
32659 " int\n"
32660 " guestfs_tgz_in (guestfs_h *g,\n"
32661 "                 const char *tarball,\n"
32662 "                 const char *directory);\n"
32663 "\n"
32664 msgstr ""
32665
32666 #. type: textblock
32667 #: ../src/guestfs-actions.pod:7529
32668 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32669 msgstr ""
32670
32671 #. type: =head2
32672 #: ../src/guestfs-actions.pod:7535
32673 msgid "guestfs_tgz_out"
32674 msgstr ""
32675
32676 #. type: verbatim
32677 #: ../src/guestfs-actions.pod:7537
32678 #, no-wrap
32679 msgid ""
32680 " int\n"
32681 " guestfs_tgz_out (guestfs_h *g,\n"
32682 "                  const char *directory,\n"
32683 "                  const char *tarball);\n"
32684 "\n"
32685 msgstr ""
32686
32687 #. type: textblock
32688 #: ../src/guestfs-actions.pod:7545
32689 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32690 msgstr ""
32691
32692 #. type: =head2
32693 #: ../src/guestfs-actions.pod:7551
32694 msgid "guestfs_touch"
32695 msgstr ""
32696
32697 #. type: verbatim
32698 #: ../src/guestfs-actions.pod:7553
32699 #, no-wrap
32700 msgid ""
32701 " int\n"
32702 " guestfs_touch (guestfs_h *g,\n"
32703 "                const char *path);\n"
32704 "\n"
32705 msgstr ""
32706
32707 #. type: =head2
32708 #: ../src/guestfs-actions.pod:7568
32709 msgid "guestfs_truncate"
32710 msgstr ""
32711
32712 #. type: verbatim
32713 #: ../src/guestfs-actions.pod:7570
32714 #, no-wrap
32715 msgid ""
32716 " int\n"
32717 " guestfs_truncate (guestfs_h *g,\n"
32718 "                   const char *path);\n"
32719 "\n"
32720 msgstr ""
32721
32722 #. type: =head2
32723 #: ../src/guestfs-actions.pod:7581
32724 msgid "guestfs_truncate_size"
32725 msgstr ""
32726
32727 #. type: verbatim
32728 #: ../src/guestfs-actions.pod:7583
32729 #, no-wrap
32730 msgid ""
32731 " int\n"
32732 " guestfs_truncate_size (guestfs_h *g,\n"
32733 "                        const char *path,\n"
32734 "                        int64_t size);\n"
32735 "\n"
32736 msgstr ""
32737
32738 #. type: textblock
32739 #: ../src/guestfs-actions.pod:7591
32740 msgid ""
32741 "If the current file size is less than C<size> then the file is extended to "
32742 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32743 "blocks are not allocated for the file until you write to it).  To create a "
32744 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32745 msgstr ""
32746
32747 #. type: =head2
32748 #: ../src/guestfs-actions.pod:7601
32749 msgid "guestfs_tune2fs_l"
32750 msgstr ""
32751
32752 #. type: verbatim
32753 #: ../src/guestfs-actions.pod:7603
32754 #, no-wrap
32755 msgid ""
32756 " char **\n"
32757 " guestfs_tune2fs_l (guestfs_h *g,\n"
32758 "                    const char *device);\n"
32759 "\n"
32760 msgstr ""
32761
32762 #. type: =head2
32763 #: ../src/guestfs-actions.pod:7623
32764 msgid "guestfs_txz_in"
32765 msgstr ""
32766
32767 #. type: verbatim
32768 #: ../src/guestfs-actions.pod:7625
32769 #, no-wrap
32770 msgid ""
32771 " int\n"
32772 " guestfs_txz_in (guestfs_h *g,\n"
32773 "                 const char *tarball,\n"
32774 "                 const char *directory);\n"
32775 "\n"
32776 msgstr ""
32777
32778 #. type: =head2
32779 #: ../src/guestfs-actions.pod:7637
32780 msgid "guestfs_txz_out"
32781 msgstr ""
32782
32783 #. type: verbatim
32784 #: ../src/guestfs-actions.pod:7639
32785 #, no-wrap
32786 msgid ""
32787 " int\n"
32788 " guestfs_txz_out (guestfs_h *g,\n"
32789 "                  const char *directory,\n"
32790 "                  const char *tarball);\n"
32791 "\n"
32792 msgstr ""
32793
32794 #. type: =head2
32795 #: ../src/guestfs-actions.pod:7651
32796 msgid "guestfs_umask"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs-actions.pod:7653
32801 #, no-wrap
32802 msgid ""
32803 " int\n"
32804 " guestfs_umask (guestfs_h *g,\n"
32805 "                int mask);\n"
32806 "\n"
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../src/guestfs-actions.pod:7669
32811 msgid ""
32812 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32813 "C<guestfs_mkdir>."
32814 msgstr ""
32815
32816 #. type: =head2
32817 #: ../src/guestfs-actions.pod:7678
32818 msgid "guestfs_umount"
32819 msgstr ""
32820
32821 #. type: verbatim
32822 #: ../src/guestfs-actions.pod:7680
32823 #, no-wrap
32824 msgid ""
32825 " int\n"
32826 " guestfs_umount (guestfs_h *g,\n"
32827 "                 const char *pathordevice);\n"
32828 "\n"
32829 msgstr ""
32830
32831 #. type: =head2
32832 #: ../src/guestfs-actions.pod:7692
32833 msgid "guestfs_umount_all"
32834 msgstr ""
32835
32836 #. type: verbatim
32837 #: ../src/guestfs-actions.pod:7694
32838 #, no-wrap
32839 msgid ""
32840 " int\n"
32841 " guestfs_umount_all (guestfs_h *g);\n"
32842 "\n"
32843 msgstr ""
32844
32845 #. type: =head2
32846 #: ../src/guestfs-actions.pod:7705
32847 msgid "guestfs_upload"
32848 msgstr ""
32849
32850 #. type: verbatim
32851 #: ../src/guestfs-actions.pod:7707
32852 #, no-wrap
32853 msgid ""
32854 " int\n"
32855 " guestfs_upload (guestfs_h *g,\n"
32856 "                 const char *filename,\n"
32857 "                 const char *remotefilename);\n"
32858 "\n"
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs-actions.pod:7717
32863 msgid "See also C<guestfs_download>."
32864 msgstr ""
32865
32866 #. type: =head2
32867 #: ../src/guestfs-actions.pod:7728
32868 msgid "guestfs_upload_offset"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../src/guestfs-actions.pod:7730
32873 #, no-wrap
32874 msgid ""
32875 " int\n"
32876 " guestfs_upload_offset (guestfs_h *g,\n"
32877 "                        const char *filename,\n"
32878 "                        const char *remotefilename,\n"
32879 "                        int64_t offset);\n"
32880 "\n"
32881 msgstr ""
32882
32883 #. type: textblock
32884 #: ../src/guestfs-actions.pod:7746
32885 msgid ""
32886 "Note that there is no limit on the amount of data that can be uploaded with "
32887 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32888 "full amount unless an error occurs."
32889 msgstr ""
32890
32891 #. type: textblock
32892 #: ../src/guestfs-actions.pod:7751
32893 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32894 msgstr ""
32895
32896 #. type: =head2
32897 #: ../src/guestfs-actions.pod:7762
32898 msgid "guestfs_utimens"
32899 msgstr ""
32900
32901 #. type: verbatim
32902 #: ../src/guestfs-actions.pod:7764
32903 #, no-wrap
32904 msgid ""
32905 " int\n"
32906 " guestfs_utimens (guestfs_h *g,\n"
32907 "                  const char *path,\n"
32908 "                  int64_t atsecs,\n"
32909 "                  int64_t atnsecs,\n"
32910 "                  int64_t mtsecs,\n"
32911 "                  int64_t mtnsecs);\n"
32912 "\n"
32913 msgstr ""
32914
32915 #. type: =head2
32916 #: ../src/guestfs-actions.pod:7793 ../src/guestfs-structs.pod:175
32917 msgid "guestfs_version"
32918 msgstr ""
32919
32920 #. type: verbatim
32921 #: ../src/guestfs-actions.pod:7795
32922 #, no-wrap
32923 msgid ""
32924 " struct guestfs_version *\n"
32925 " guestfs_version (guestfs_h *g);\n"
32926 "\n"
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs-actions.pod:7823
32931 msgid ""
32932 "I<Note:> Don't use this call to test for availability of features.  In "
32933 "enterprise distributions we backport features from later versions into "
32934 "earlier versions, making this an unreliable way to test for features.  Use "
32935 "C<guestfs_available> instead."
32936 msgstr ""
32937
32938 #. type: textblock
32939 #: ../src/guestfs-actions.pod:7829
32940 msgid ""
32941 "This function returns a C<struct guestfs_version *>, or NULL if there was an"
32942 " error.  I<The caller must call C<guestfs_free_version> after use>."
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs-actions.pod:7833
32947 msgid "(Added in 1.0.58)"
32948 msgstr ""
32949
32950 #. type: =head2
32951 #: ../src/guestfs-actions.pod:7835
32952 msgid "guestfs_vfs_label"
32953 msgstr ""
32954
32955 #. type: verbatim
32956 #: ../src/guestfs-actions.pod:7837
32957 #, no-wrap
32958 msgid ""
32959 " char *\n"
32960 " guestfs_vfs_label (guestfs_h *g,\n"
32961 "                    const char *device);\n"
32962 "\n"
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs-actions.pod:7846
32967 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32968 msgstr ""
32969
32970 #. type: textblock
32971 #: ../src/guestfs-actions.pod:7851 ../src/guestfs-actions.pod:7888
32972 msgid "(Added in 1.3.18)"
32973 msgstr ""
32974
32975 #. type: =head2
32976 #: ../src/guestfs-actions.pod:7853
32977 msgid "guestfs_vfs_type"
32978 msgstr ""
32979
32980 #. type: verbatim
32981 #: ../src/guestfs-actions.pod:7855
32982 #, no-wrap
32983 msgid ""
32984 " char *\n"
32985 " guestfs_vfs_type (guestfs_h *g,\n"
32986 "                   const char *device);\n"
32987 "\n"
32988 msgstr ""
32989
32990 #. type: =head2
32991 #: ../src/guestfs-actions.pod:7872
32992 msgid "guestfs_vfs_uuid"
32993 msgstr ""
32994
32995 #. type: verbatim
32996 #: ../src/guestfs-actions.pod:7874
32997 #, no-wrap
32998 msgid ""
32999 " char *\n"
33000 " guestfs_vfs_uuid (guestfs_h *g,\n"
33001 "                   const char *device);\n"
33002 "\n"
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs-actions.pod:7883
33007 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33008 msgstr ""
33009
33010 #. type: =head2
33011 #: ../src/guestfs-actions.pod:7890
33012 msgid "guestfs_vg_activate"
33013 msgstr ""
33014
33015 #. type: verbatim
33016 #: ../src/guestfs-actions.pod:7892
33017 #, no-wrap
33018 msgid ""
33019 " int\n"
33020 " guestfs_vg_activate (guestfs_h *g,\n"
33021 "                      int activate,\n"
33022 "                      char *const *volgroups);\n"
33023 "\n"
33024 msgstr ""
33025
33026 #. type: =head2
33027 #: ../src/guestfs-actions.pod:7909
33028 msgid "guestfs_vg_activate_all"
33029 msgstr ""
33030
33031 #. type: verbatim
33032 #: ../src/guestfs-actions.pod:7911
33033 #, no-wrap
33034 msgid ""
33035 " int\n"
33036 " guestfs_vg_activate_all (guestfs_h *g,\n"
33037 "                          int activate);\n"
33038 "\n"
33039 msgstr ""
33040
33041 #. type: =head2
33042 #: ../src/guestfs-actions.pod:7924
33043 msgid "guestfs_vgcreate"
33044 msgstr ""
33045
33046 #. type: verbatim
33047 #: ../src/guestfs-actions.pod:7926
33048 #, no-wrap
33049 msgid ""
33050 " int\n"
33051 " guestfs_vgcreate (guestfs_h *g,\n"
33052 "                   const char *volgroup,\n"
33053 "                   char *const *physvols);\n"
33054 "\n"
33055 msgstr ""
33056
33057 #. type: =head2
33058 #: ../src/guestfs-actions.pod:7938
33059 msgid "guestfs_vglvuuids"
33060 msgstr ""
33061
33062 #. type: verbatim
33063 #: ../src/guestfs-actions.pod:7940
33064 #, no-wrap
33065 msgid ""
33066 " char **\n"
33067 " guestfs_vglvuuids (guestfs_h *g,\n"
33068 "                    const char *vgname);\n"
33069 "\n"
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs-actions.pod:7947
33074 msgid ""
33075 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33076 "associate logical volumes and volume groups."
33077 msgstr ""
33078
33079 #. type: textblock
33080 #: ../src/guestfs-actions.pod:7950
33081 msgid "See also C<guestfs_vgpvuuids>."
33082 msgstr ""
33083
33084 #. type: =head2
33085 #: ../src/guestfs-actions.pod:7958
33086 msgid "guestfs_vgpvuuids"
33087 msgstr ""
33088
33089 #. type: verbatim
33090 #: ../src/guestfs-actions.pod:7960
33091 #, no-wrap
33092 msgid ""
33093 " char **\n"
33094 " guestfs_vgpvuuids (guestfs_h *g,\n"
33095 "                    const char *vgname);\n"
33096 "\n"
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs-actions.pod:7967
33101 msgid ""
33102 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33103 "associate physical volumes and volume groups."
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs-actions.pod:7970
33108 msgid "See also C<guestfs_vglvuuids>."
33109 msgstr ""
33110
33111 #. type: =head2
33112 #: ../src/guestfs-actions.pod:7978
33113 msgid "guestfs_vgremove"
33114 msgstr ""
33115
33116 #. type: verbatim
33117 #: ../src/guestfs-actions.pod:7980
33118 #, no-wrap
33119 msgid ""
33120 " int\n"
33121 " guestfs_vgremove (guestfs_h *g,\n"
33122 "                   const char *vgname);\n"
33123 "\n"
33124 msgstr ""
33125
33126 #. type: =head2
33127 #: ../src/guestfs-actions.pod:7993
33128 msgid "guestfs_vgrename"
33129 msgstr ""
33130
33131 #. type: verbatim
33132 #: ../src/guestfs-actions.pod:7995
33133 #, no-wrap
33134 msgid ""
33135 " int\n"
33136 " guestfs_vgrename (guestfs_h *g,\n"
33137 "                   const char *volgroup,\n"
33138 "                   const char *newvolgroup);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs-actions.pod:8006
33144 msgid "guestfs_vgs"
33145 msgstr ""
33146
33147 #. type: verbatim
33148 #: ../src/guestfs-actions.pod:8008
33149 #, no-wrap
33150 msgid ""
33151 " char **\n"
33152 " guestfs_vgs (guestfs_h *g);\n"
33153 "\n"
33154 msgstr ""
33155
33156 #. type: textblock
33157 #: ../src/guestfs-actions.pod:8017
33158 msgid "See also C<guestfs_vgs_full>."
33159 msgstr ""
33160
33161 #. type: =head2
33162 #: ../src/guestfs-actions.pod:8025
33163 msgid "guestfs_vgs_full"
33164 msgstr ""
33165
33166 #. type: verbatim
33167 #: ../src/guestfs-actions.pod:8027
33168 #, no-wrap
33169 msgid ""
33170 " struct guestfs_lvm_vg_list *\n"
33171 " guestfs_vgs_full (guestfs_h *g);\n"
33172 "\n"
33173 msgstr ""
33174
33175 #. type: textblock
33176 #: ../src/guestfs-actions.pod:8033
33177 msgid ""
33178 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33179 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33180 "use>."
33181 msgstr ""
33182
33183 #. type: =head2
33184 #: ../src/guestfs-actions.pod:8039
33185 msgid "guestfs_vgscan"
33186 msgstr ""
33187
33188 #. type: verbatim
33189 #: ../src/guestfs-actions.pod:8041
33190 #, no-wrap
33191 msgid ""
33192 " int\n"
33193 " guestfs_vgscan (guestfs_h *g);\n"
33194 "\n"
33195 msgstr ""
33196
33197 #. type: =head2
33198 #: ../src/guestfs-actions.pod:8051
33199 msgid "guestfs_vguuid"
33200 msgstr ""
33201
33202 #. type: verbatim
33203 #: ../src/guestfs-actions.pod:8053
33204 #, no-wrap
33205 msgid ""
33206 " char *\n"
33207 " guestfs_vguuid (guestfs_h *g,\n"
33208 "                 const char *vgname);\n"
33209 "\n"
33210 msgstr ""
33211
33212 #. type: =head2
33213 #: ../src/guestfs-actions.pod:8064
33214 msgid "guestfs_wait_ready"
33215 msgstr ""
33216
33217 #. type: verbatim
33218 #: ../src/guestfs-actions.pod:8066
33219 #, no-wrap
33220 msgid ""
33221 " int\n"
33222 " guestfs_wait_ready (guestfs_h *g);\n"
33223 "\n"
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs-actions.pod:8069
33228 msgid ""
33229 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call"
33230 " instead."
33231 msgstr ""
33232
33233 #. type: textblock
33234 #: ../src/guestfs-actions.pod:8076
33235 msgid "This function is a no op."
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs-actions.pod:8078
33240 msgid ""
33241 "In versions of the API E<lt> 1.0.71 you had to call this function just after"
33242 " calling C<guestfs_launch> to wait for the launch to complete.  However this"
33243 " is no longer necessary because C<guestfs_launch> now does the waiting."
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs-actions.pod:8083
33248 msgid ""
33249 "If you see any calls to this function in code then you can just remove them,"
33250 " unless you want to retain compatibility with older versions of the API."
33251 msgstr ""
33252
33253 #. type: =head2
33254 #: ../src/guestfs-actions.pod:8091
33255 msgid "guestfs_wc_c"
33256 msgstr ""
33257
33258 #. type: verbatim
33259 #: ../src/guestfs-actions.pod:8093
33260 #, no-wrap
33261 msgid ""
33262 " int\n"
33263 " guestfs_wc_c (guestfs_h *g,\n"
33264 "               const char *path);\n"
33265 "\n"
33266 msgstr ""
33267
33268 #. type: =head2
33269 #: ../src/guestfs-actions.pod:8104
33270 msgid "guestfs_wc_l"
33271 msgstr ""
33272
33273 #. type: verbatim
33274 #: ../src/guestfs-actions.pod:8106
33275 #, no-wrap
33276 msgid ""
33277 " int\n"
33278 " guestfs_wc_l (guestfs_h *g,\n"
33279 "               const char *path);\n"
33280 "\n"
33281 msgstr ""
33282
33283 #. type: =head2
33284 #: ../src/guestfs-actions.pod:8117
33285 msgid "guestfs_wc_w"
33286 msgstr ""
33287
33288 #. type: verbatim
33289 #: ../src/guestfs-actions.pod:8119
33290 #, no-wrap
33291 msgid ""
33292 " int\n"
33293 " guestfs_wc_w (guestfs_h *g,\n"
33294 "               const char *path);\n"
33295 "\n"
33296 msgstr ""
33297
33298 #. type: =head2
33299 #: ../src/guestfs-actions.pod:8130
33300 msgid "guestfs_write"
33301 msgstr ""
33302
33303 #. type: verbatim
33304 #: ../src/guestfs-actions.pod:8132
33305 #, no-wrap
33306 msgid ""
33307 " int\n"
33308 " guestfs_write (guestfs_h *g,\n"
33309 "                const char *path,\n"
33310 "                const char *content,\n"
33311 "                size_t content_size);\n"
33312 "\n"
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs-actions.pod:8141
33317 msgid "See also C<guestfs_write_append>."
33318 msgstr ""
33319
33320 #. type: =head2
33321 #: ../src/guestfs-actions.pod:8150
33322 msgid "guestfs_write_append"
33323 msgstr ""
33324
33325 #. type: verbatim
33326 #: ../src/guestfs-actions.pod:8152
33327 #, no-wrap
33328 msgid ""
33329 " int\n"
33330 " guestfs_write_append (guestfs_h *g,\n"
33331 "                       const char *path,\n"
33332 "                       const char *content,\n"
33333 "                       size_t content_size);\n"
33334 "\n"
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../src/guestfs-actions.pod:8161
33339 msgid "See also C<guestfs_write>."
33340 msgstr ""
33341
33342 #. type: =head2
33343 #: ../src/guestfs-actions.pod:8170
33344 msgid "guestfs_write_file"
33345 msgstr ""
33346
33347 #. type: verbatim
33348 #: ../src/guestfs-actions.pod:8172
33349 #, no-wrap
33350 msgid ""
33351 " int\n"
33352 " guestfs_write_file (guestfs_h *g,\n"
33353 "                     const char *path,\n"
33354 "                     const char *content,\n"
33355 "                     int size);\n"
33356 "\n"
33357 msgstr ""
33358
33359 #. type: textblock
33360 #: ../src/guestfs-actions.pod:8178
33361 msgid ""
33362 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33363 "instead."
33364 msgstr ""
33365
33366 #. type: =head2
33367 #: ../src/guestfs-actions.pod:8203
33368 msgid "guestfs_zegrep"
33369 msgstr ""
33370
33371 #. type: verbatim
33372 #: ../src/guestfs-actions.pod:8205
33373 #, no-wrap
33374 msgid ""
33375 " char **\n"
33376 " guestfs_zegrep (guestfs_h *g,\n"
33377 "                 const char *regex,\n"
33378 "                 const char *path);\n"
33379 "\n"
33380 msgstr ""
33381
33382 #. type: =head2
33383 #: ../src/guestfs-actions.pod:8222
33384 msgid "guestfs_zegrepi"
33385 msgstr ""
33386
33387 #. type: verbatim
33388 #: ../src/guestfs-actions.pod:8224
33389 #, no-wrap
33390 msgid ""
33391 " char **\n"
33392 " guestfs_zegrepi (guestfs_h *g,\n"
33393 "                  const char *regex,\n"
33394 "                  const char *path);\n"
33395 "\n"
33396 msgstr ""
33397
33398 #. type: =head2
33399 #: ../src/guestfs-actions.pod:8241
33400 msgid "guestfs_zero"
33401 msgstr ""
33402
33403 #. type: verbatim
33404 #: ../src/guestfs-actions.pod:8243
33405 #, no-wrap
33406 msgid ""
33407 " int\n"
33408 " guestfs_zero (guestfs_h *g,\n"
33409 "               const char *device);\n"
33410 "\n"
33411 msgstr ""
33412
33413 #. type: textblock
33414 #: ../src/guestfs-actions.pod:8257
33415 msgid ""
33416 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33417 "C<guestfs_is_zero_device>"
33418 msgstr ""
33419
33420 #. type: =head2
33421 #: ../src/guestfs-actions.pod:8269
33422 msgid "guestfs_zero_device"
33423 msgstr ""
33424
33425 #. type: verbatim
33426 #: ../src/guestfs-actions.pod:8271
33427 #, no-wrap
33428 msgid ""
33429 " int\n"
33430 " guestfs_zero_device (guestfs_h *g,\n"
33431 "                      const char *device);\n"
33432 "\n"
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs-actions.pod:8275
33437 msgid ""
33438 "This command writes zeroes over the entire C<device>.  Compare with "
33439 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33440 msgstr ""
33441
33442 #. type: textblock
33443 #: ../src/guestfs-actions.pod:8293
33444 msgid "(Added in 1.3.1)"
33445 msgstr ""
33446
33447 #. type: =head2
33448 #: ../src/guestfs-actions.pod:8295
33449 msgid "guestfs_zerofree"
33450 msgstr ""
33451
33452 #. type: verbatim
33453 #: ../src/guestfs-actions.pod:8297
33454 #, no-wrap
33455 msgid ""
33456 " int\n"
33457 " guestfs_zerofree (guestfs_h *g,\n"
33458 "                   const char *device);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs-actions.pod:8316
33464 msgid "guestfs_zfgrep"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs-actions.pod:8318
33469 #, no-wrap
33470 msgid ""
33471 " char **\n"
33472 " guestfs_zfgrep (guestfs_h *g,\n"
33473 "                 const char *pattern,\n"
33474 "                 const char *path);\n"
33475 "\n"
33476 msgstr ""
33477
33478 #. type: =head2
33479 #: ../src/guestfs-actions.pod:8335
33480 msgid "guestfs_zfgrepi"
33481 msgstr ""
33482
33483 #. type: verbatim
33484 #: ../src/guestfs-actions.pod:8337
33485 #, no-wrap
33486 msgid ""
33487 " char **\n"
33488 " guestfs_zfgrepi (guestfs_h *g,\n"
33489 "                  const char *pattern,\n"
33490 "                  const char *path);\n"
33491 "\n"
33492 msgstr ""
33493
33494 #. type: =head2
33495 #: ../src/guestfs-actions.pod:8354
33496 msgid "guestfs_zfile"
33497 msgstr ""
33498
33499 #. type: verbatim
33500 #: ../src/guestfs-actions.pod:8356
33501 #, no-wrap
33502 msgid ""
33503 " char *\n"
33504 " guestfs_zfile (guestfs_h *g,\n"
33505 "                const char *meth,\n"
33506 "                const char *path);\n"
33507 "\n"
33508 msgstr ""
33509
33510 #. type: textblock
33511 #: ../src/guestfs-actions.pod:8361
33512 msgid ""
33513 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33514 "instead."
33515 msgstr ""
33516
33517 #. type: textblock
33518 #: ../src/guestfs-actions.pod:8373
33519 msgid ""
33520 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33521 "files."
33522 msgstr ""
33523
33524 #. type: =head2
33525 #: ../src/guestfs-actions.pod:8381
33526 msgid "guestfs_zgrep"
33527 msgstr ""
33528
33529 #. type: verbatim
33530 #: ../src/guestfs-actions.pod:8383
33531 #, no-wrap
33532 msgid ""
33533 " char **\n"
33534 " guestfs_zgrep (guestfs_h *g,\n"
33535 "                const char *regex,\n"
33536 "                const char *path);\n"
33537 "\n"
33538 msgstr ""
33539
33540 #. type: =head2
33541 #: ../src/guestfs-actions.pod:8400
33542 msgid "guestfs_zgrepi"
33543 msgstr ""
33544
33545 #. type: verbatim
33546 #: ../src/guestfs-actions.pod:8402
33547 #, no-wrap
33548 msgid ""
33549 " char **\n"
33550 " guestfs_zgrepi (guestfs_h *g,\n"
33551 "                 const char *regex,\n"
33552 "                 const char *path);\n"
33553 "\n"
33554 msgstr ""
33555
33556 #. type: =item
33557 #: ../src/guestfs-availability.pod:3
33558 msgid "B<augeas>"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs-availability.pod:5
33563 msgid ""
33564 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
33565 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
33566 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
33567 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
33568 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
33569 msgstr ""
33570
33571 #. type: =item
33572 #: ../src/guestfs-availability.pod:21
33573 msgid "B<btrfs>"
33574 msgstr ""
33575
33576 #. type: textblock
33577 #: ../src/guestfs-availability.pod:23
33578 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33579 msgstr ""
33580
33581 #. type: =item
33582 #: ../src/guestfs-availability.pod:26
33583 msgid "B<grub>"
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs-availability.pod:28
33588 msgid "The following functions: L</guestfs_grub_install>"
33589 msgstr ""
33590
33591 #. type: =item
33592 #: ../src/guestfs-availability.pod:31
33593 msgid "B<inotify>"
33594 msgstr ""
33595
33596 #. type: textblock
33597 #: ../src/guestfs-availability.pod:33
33598 msgid ""
33599 "The following functions: L</guestfs_inotify_add_watch> "
33600 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init>"
33601 " L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33602 msgstr ""
33603
33604 #. type: =item
33605 #: ../src/guestfs-availability.pod:41
33606 msgid "B<linuxfsuuid>"
33607 msgstr ""
33608
33609 #. type: textblock
33610 #: ../src/guestfs-availability.pod:43
33611 msgid ""
33612 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
33613 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33614 msgstr ""
33615
33616 #. type: =item
33617 #: ../src/guestfs-availability.pod:50
33618 msgid "B<linuxmodules>"
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs-availability.pod:52
33623 msgid "The following functions: L</guestfs_modprobe>"
33624 msgstr ""
33625
33626 #. type: =item
33627 #: ../src/guestfs-availability.pod:55
33628 msgid "B<linuxxattrs>"
33629 msgstr ""
33630
33631 #. type: textblock
33632 #: ../src/guestfs-availability.pod:57
33633 msgid ""
33634 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
33635 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
33636 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
33637 "L</guestfs_setxattr>"
33638 msgstr ""
33639
33640 #. type: =item
33641 #: ../src/guestfs-availability.pod:68
33642 msgid "B<luks>"
33643 msgstr ""
33644
33645 #. type: textblock
33646 #: ../src/guestfs-availability.pod:70
33647 msgid ""
33648 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
33649 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
33650 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33651 msgstr ""
33652
33653 #. type: =item
33654 #: ../src/guestfs-availability.pod:79
33655 msgid "B<lvm2>"
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs-availability.pod:81
33660 msgid ""
33661 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
33662 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
33663 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
33664 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
33665 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
33666 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
33667 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
33668 "L</guestfs_vgs_full>"
33669 msgstr ""
33670
33671 #. type: =item
33672 #: ../src/guestfs-availability.pod:104
33673 msgid "B<mknod>"
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs-availability.pod:106
33678 msgid ""
33679 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
33680 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
33681 msgstr ""
33682
33683 #. type: =item
33684 #: ../src/guestfs-availability.pod:112
33685 msgid "B<ntfs3g>"
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs-availability.pod:114
33690 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33691 msgstr ""
33692
33693 #. type: =item
33694 #: ../src/guestfs-availability.pod:117
33695 msgid "B<ntfsprogs>"
33696 msgstr ""
33697
33698 #. type: textblock
33699 #: ../src/guestfs-availability.pod:119
33700 msgid ""
33701 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33702 "L</guestfs_ntfsresize_size>"
33703 msgstr ""
33704
33705 #. type: =item
33706 #: ../src/guestfs-availability.pod:124
33707 msgid "B<realpath>"
33708 msgstr ""
33709
33710 #. type: textblock
33711 #: ../src/guestfs-availability.pod:126
33712 msgid "The following functions: L</guestfs_realpath>"
33713 msgstr ""
33714
33715 #. type: =item
33716 #: ../src/guestfs-availability.pod:129
33717 msgid "B<scrub>"
33718 msgstr ""
33719
33720 #. type: textblock
33721 #: ../src/guestfs-availability.pod:131
33722 msgid ""
33723 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
33724 "L</guestfs_scrub_freespace>"
33725 msgstr ""
33726
33727 #. type: =item
33728 #: ../src/guestfs-availability.pod:136
33729 msgid "B<selinux>"
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs-availability.pod:138
33734 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33735 msgstr ""
33736
33737 #. type: =item
33738 #: ../src/guestfs-availability.pod:142
33739 msgid "B<xz>"
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs-availability.pod:144
33744 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33745 msgstr ""
33746
33747 #. type: =item
33748 #: ../src/guestfs-availability.pod:148
33749 msgid "B<zerofree>"
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs-availability.pod:150
33754 msgid "The following functions: L</guestfs_zerofree>"
33755 msgstr ""
33756
33757 #. type: =head2
33758 #: ../src/guestfs-structs.pod:1
33759 msgid "guestfs_int_bool"
33760 msgstr ""
33761
33762 #. type: verbatim
33763 #: ../src/guestfs-structs.pod:3
33764 #, no-wrap
33765 msgid ""
33766 " struct guestfs_int_bool {\n"
33767 "   int32_t i;\n"
33768 "   int32_t b;\n"
33769 " };\n"
33770 " \n"
33771 msgstr ""
33772
33773 #. type: verbatim
33774 #: ../src/guestfs-structs.pod:8
33775 #, no-wrap
33776 msgid ""
33777 " struct guestfs_int_bool_list {\n"
33778 "   uint32_t len; /* Number of elements in list. */\n"
33779 "   struct guestfs_int_bool *val; /* Elements. */\n"
33780 " };\n"
33781 " \n"
33782 msgstr ""
33783
33784 #. type: verbatim
33785 #: ../src/guestfs-structs.pod:13
33786 #, no-wrap
33787 msgid ""
33788 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33789 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33790 "\n"
33791 msgstr ""
33792
33793 #. type: =head2
33794 #: ../src/guestfs-structs.pod:16
33795 msgid "guestfs_lvm_pv"
33796 msgstr ""
33797
33798 #. type: verbatim
33799 #: ../src/guestfs-structs.pod:18
33800 #, no-wrap
33801 msgid ""
33802 " struct guestfs_lvm_pv {\n"
33803 "   char *pv_name;\n"
33804 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33805 "   char pv_uuid[32];\n"
33806 "   char *pv_fmt;\n"
33807 "   uint64_t pv_size;\n"
33808 "   uint64_t dev_size;\n"
33809 "   uint64_t pv_free;\n"
33810 "   uint64_t pv_used;\n"
33811 "   char *pv_attr;\n"
33812 "   int64_t pv_pe_count;\n"
33813 "   int64_t pv_pe_alloc_count;\n"
33814 "   char *pv_tags;\n"
33815 "   uint64_t pe_start;\n"
33816 "   int64_t pv_mda_count;\n"
33817 "   uint64_t pv_mda_free;\n"
33818 " };\n"
33819 " \n"
33820 msgstr ""
33821
33822 #. type: verbatim
33823 #: ../src/guestfs-structs.pod:36
33824 #, no-wrap
33825 msgid ""
33826 " struct guestfs_lvm_pv_list {\n"
33827 "   uint32_t len; /* Number of elements in list. */\n"
33828 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33829 " };\n"
33830 " \n"
33831 msgstr ""
33832
33833 #. type: verbatim
33834 #: ../src/guestfs-structs.pod:41
33835 #, no-wrap
33836 msgid ""
33837 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33838 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33839 "\n"
33840 msgstr ""
33841
33842 #. type: =head2
33843 #: ../src/guestfs-structs.pod:44
33844 msgid "guestfs_lvm_vg"
33845 msgstr ""
33846
33847 #. type: verbatim
33848 #: ../src/guestfs-structs.pod:46
33849 #, no-wrap
33850 msgid ""
33851 " struct guestfs_lvm_vg {\n"
33852 "   char *vg_name;\n"
33853 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33854 "   char vg_uuid[32];\n"
33855 "   char *vg_fmt;\n"
33856 "   char *vg_attr;\n"
33857 "   uint64_t vg_size;\n"
33858 "   uint64_t vg_free;\n"
33859 "   char *vg_sysid;\n"
33860 "   uint64_t vg_extent_size;\n"
33861 "   int64_t vg_extent_count;\n"
33862 "   int64_t vg_free_count;\n"
33863 "   int64_t max_lv;\n"
33864 "   int64_t max_pv;\n"
33865 "   int64_t pv_count;\n"
33866 "   int64_t lv_count;\n"
33867 "   int64_t snap_count;\n"
33868 "   int64_t vg_seqno;\n"
33869 "   char *vg_tags;\n"
33870 "   int64_t vg_mda_count;\n"
33871 "   uint64_t vg_mda_free;\n"
33872 " };\n"
33873 " \n"
33874 msgstr ""
33875
33876 #. type: verbatim
33877 #: ../src/guestfs-structs.pod:69
33878 #, no-wrap
33879 msgid ""
33880 " struct guestfs_lvm_vg_list {\n"
33881 "   uint32_t len; /* Number of elements in list. */\n"
33882 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33883 " };\n"
33884 " \n"
33885 msgstr ""
33886
33887 #. type: verbatim
33888 #: ../src/guestfs-structs.pod:74
33889 #, no-wrap
33890 msgid ""
33891 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33892 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33893 "\n"
33894 msgstr ""
33895
33896 #. type: =head2
33897 #: ../src/guestfs-structs.pod:77
33898 msgid "guestfs_lvm_lv"
33899 msgstr ""
33900
33901 #. type: verbatim
33902 #: ../src/guestfs-structs.pod:79
33903 #, no-wrap
33904 msgid ""
33905 " struct guestfs_lvm_lv {\n"
33906 "   char *lv_name;\n"
33907 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33908 "   char lv_uuid[32];\n"
33909 "   char *lv_attr;\n"
33910 "   int64_t lv_major;\n"
33911 "   int64_t lv_minor;\n"
33912 "   int64_t lv_kernel_major;\n"
33913 "   int64_t lv_kernel_minor;\n"
33914 "   uint64_t lv_size;\n"
33915 "   int64_t seg_count;\n"
33916 "   char *origin;\n"
33917 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33918 "   float snap_percent;\n"
33919 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33920 "   float copy_percent;\n"
33921 "   char *move_pv;\n"
33922 "   char *lv_tags;\n"
33923 "   char *mirror_log;\n"
33924 "   char *modules;\n"
33925 " };\n"
33926 " \n"
33927 msgstr ""
33928
33929 #. type: verbatim
33930 #: ../src/guestfs-structs.pod:101
33931 #, no-wrap
33932 msgid ""
33933 " struct guestfs_lvm_lv_list {\n"
33934 "   uint32_t len; /* Number of elements in list. */\n"
33935 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33936 " };\n"
33937 " \n"
33938 msgstr ""
33939
33940 #. type: verbatim
33941 #: ../src/guestfs-structs.pod:106
33942 #, no-wrap
33943 msgid ""
33944 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33945 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33946 "\n"
33947 msgstr ""
33948
33949 #. type: verbatim
33950 #: ../src/guestfs-structs.pod:111
33951 #, no-wrap
33952 msgid ""
33953 " struct guestfs_stat {\n"
33954 "   int64_t dev;\n"
33955 "   int64_t ino;\n"
33956 "   int64_t mode;\n"
33957 "   int64_t nlink;\n"
33958 "   int64_t uid;\n"
33959 "   int64_t gid;\n"
33960 "   int64_t rdev;\n"
33961 "   int64_t size;\n"
33962 "   int64_t blksize;\n"
33963 "   int64_t blocks;\n"
33964 "   int64_t atime;\n"
33965 "   int64_t mtime;\n"
33966 "   int64_t ctime;\n"
33967 " };\n"
33968 " \n"
33969 msgstr ""
33970
33971 #. type: verbatim
33972 #: ../src/guestfs-structs.pod:127
33973 #, no-wrap
33974 msgid ""
33975 " struct guestfs_stat_list {\n"
33976 "   uint32_t len; /* Number of elements in list. */\n"
33977 "   struct guestfs_stat *val; /* Elements. */\n"
33978 " };\n"
33979 " \n"
33980 msgstr ""
33981
33982 #. type: verbatim
33983 #: ../src/guestfs-structs.pod:132
33984 #, no-wrap
33985 msgid ""
33986 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33987 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33988 "\n"
33989 msgstr ""
33990
33991 #. type: verbatim
33992 #: ../src/guestfs-structs.pod:137
33993 #, no-wrap
33994 msgid ""
33995 " struct guestfs_statvfs {\n"
33996 "   int64_t bsize;\n"
33997 "   int64_t frsize;\n"
33998 "   int64_t blocks;\n"
33999 "   int64_t bfree;\n"
34000 "   int64_t bavail;\n"
34001 "   int64_t files;\n"
34002 "   int64_t ffree;\n"
34003 "   int64_t favail;\n"
34004 "   int64_t fsid;\n"
34005 "   int64_t flag;\n"
34006 "   int64_t namemax;\n"
34007 " };\n"
34008 " \n"
34009 msgstr ""
34010
34011 #. type: verbatim
34012 #: ../src/guestfs-structs.pod:151
34013 #, no-wrap
34014 msgid ""
34015 " struct guestfs_statvfs_list {\n"
34016 "   uint32_t len; /* Number of elements in list. */\n"
34017 "   struct guestfs_statvfs *val; /* Elements. */\n"
34018 " };\n"
34019 " \n"
34020 msgstr ""
34021
34022 #. type: verbatim
34023 #: ../src/guestfs-structs.pod:156
34024 #, no-wrap
34025 msgid ""
34026 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34027 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34028 "\n"
34029 msgstr ""
34030
34031 #. type: =head2
34032 #: ../src/guestfs-structs.pod:159
34033 msgid "guestfs_dirent"
34034 msgstr ""
34035
34036 #. type: verbatim
34037 #: ../src/guestfs-structs.pod:161
34038 #, no-wrap
34039 msgid ""
34040 " struct guestfs_dirent {\n"
34041 "   int64_t ino;\n"
34042 "   char ftyp;\n"
34043 "   char *name;\n"
34044 " };\n"
34045 " \n"
34046 msgstr ""
34047
34048 #. type: verbatim
34049 #: ../src/guestfs-structs.pod:167
34050 #, no-wrap
34051 msgid ""
34052 " struct guestfs_dirent_list {\n"
34053 "   uint32_t len; /* Number of elements in list. */\n"
34054 "   struct guestfs_dirent *val; /* Elements. */\n"
34055 " };\n"
34056 " \n"
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs-structs.pod:172
34061 #, no-wrap
34062 msgid ""
34063 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34064 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34065 "\n"
34066 msgstr ""
34067
34068 #. type: verbatim
34069 #: ../src/guestfs-structs.pod:177
34070 #, no-wrap
34071 msgid ""
34072 " struct guestfs_version {\n"
34073 "   int64_t major;\n"
34074 "   int64_t minor;\n"
34075 "   int64_t release;\n"
34076 "   char *extra;\n"
34077 " };\n"
34078 " \n"
34079 msgstr ""
34080
34081 #. type: verbatim
34082 #: ../src/guestfs-structs.pod:184
34083 #, no-wrap
34084 msgid ""
34085 " struct guestfs_version_list {\n"
34086 "   uint32_t len; /* Number of elements in list. */\n"
34087 "   struct guestfs_version *val; /* Elements. */\n"
34088 " };\n"
34089 " \n"
34090 msgstr ""
34091
34092 #. type: verbatim
34093 #: ../src/guestfs-structs.pod:189
34094 #, no-wrap
34095 msgid ""
34096 " void guestfs_free_version (struct guestfs_free_version *);\n"
34097 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34098 "\n"
34099 msgstr ""
34100
34101 #. type: =head2
34102 #: ../src/guestfs-structs.pod:192
34103 msgid "guestfs_xattr"
34104 msgstr ""
34105
34106 #. type: verbatim
34107 #: ../src/guestfs-structs.pod:194
34108 #, no-wrap
34109 msgid ""
34110 " struct guestfs_xattr {\n"
34111 "   char *attrname;\n"
34112 "   /* The next two fields describe a byte array. */\n"
34113 "   uint32_t attrval_len;\n"
34114 "   char *attrval;\n"
34115 " };\n"
34116 " \n"
34117 msgstr ""
34118
34119 #. type: verbatim
34120 #: ../src/guestfs-structs.pod:201
34121 #, no-wrap
34122 msgid ""
34123 " struct guestfs_xattr_list {\n"
34124 "   uint32_t len; /* Number of elements in list. */\n"
34125 "   struct guestfs_xattr *val; /* Elements. */\n"
34126 " };\n"
34127 " \n"
34128 msgstr ""
34129
34130 #. type: verbatim
34131 #: ../src/guestfs-structs.pod:206
34132 #, no-wrap
34133 msgid ""
34134 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34135 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34136 "\n"
34137 msgstr ""
34138
34139 #. type: =head2
34140 #: ../src/guestfs-structs.pod:209
34141 msgid "guestfs_inotify_event"
34142 msgstr ""
34143
34144 #. type: verbatim
34145 #: ../src/guestfs-structs.pod:211
34146 #, no-wrap
34147 msgid ""
34148 " struct guestfs_inotify_event {\n"
34149 "   int64_t in_wd;\n"
34150 "   uint32_t in_mask;\n"
34151 "   uint32_t in_cookie;\n"
34152 "   char *in_name;\n"
34153 " };\n"
34154 " \n"
34155 msgstr ""
34156
34157 #. type: verbatim
34158 #: ../src/guestfs-structs.pod:218
34159 #, no-wrap
34160 msgid ""
34161 " struct guestfs_inotify_event_list {\n"
34162 "   uint32_t len; /* Number of elements in list. */\n"
34163 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34164 " };\n"
34165 " \n"
34166 msgstr ""
34167
34168 #. type: verbatim
34169 #: ../src/guestfs-structs.pod:223
34170 #, no-wrap
34171 msgid ""
34172 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34173 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34174 "\n"
34175 msgstr ""
34176
34177 #. type: =head2
34178 #: ../src/guestfs-structs.pod:226
34179 msgid "guestfs_partition"
34180 msgstr ""
34181
34182 #. type: verbatim
34183 #: ../src/guestfs-structs.pod:228
34184 #, no-wrap
34185 msgid ""
34186 " struct guestfs_partition {\n"
34187 "   int32_t part_num;\n"
34188 "   uint64_t part_start;\n"
34189 "   uint64_t part_end;\n"
34190 "   uint64_t part_size;\n"
34191 " };\n"
34192 " \n"
34193 msgstr ""
34194
34195 #. type: verbatim
34196 #: ../src/guestfs-structs.pod:235
34197 #, no-wrap
34198 msgid ""
34199 " struct guestfs_partition_list {\n"
34200 "   uint32_t len; /* Number of elements in list. */\n"
34201 "   struct guestfs_partition *val; /* Elements. */\n"
34202 " };\n"
34203 " \n"
34204 msgstr ""
34205
34206 #. type: verbatim
34207 #: ../src/guestfs-structs.pod:240
34208 #, no-wrap
34209 msgid ""
34210 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34211 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34212 "\n"
34213 msgstr ""
34214
34215 #. type: =head2
34216 #: ../src/guestfs-structs.pod:243
34217 msgid "guestfs_application"
34218 msgstr ""
34219
34220 #. type: verbatim
34221 #: ../src/guestfs-structs.pod:245
34222 #, no-wrap
34223 msgid ""
34224 " struct guestfs_application {\n"
34225 "   char *app_name;\n"
34226 "   char *app_display_name;\n"
34227 "   int32_t app_epoch;\n"
34228 "   char *app_version;\n"
34229 "   char *app_release;\n"
34230 "   char *app_install_path;\n"
34231 "   char *app_trans_path;\n"
34232 "   char *app_publisher;\n"
34233 "   char *app_url;\n"
34234 "   char *app_source_package;\n"
34235 "   char *app_summary;\n"
34236 "   char *app_description;\n"
34237 " };\n"
34238 " \n"
34239 msgstr ""
34240
34241 #. type: verbatim
34242 #: ../src/guestfs-structs.pod:260
34243 #, no-wrap
34244 msgid ""
34245 " struct guestfs_application_list {\n"
34246 "   uint32_t len; /* Number of elements in list. */\n"
34247 "   struct guestfs_application *val; /* Elements. */\n"
34248 " };\n"
34249 " \n"
34250 msgstr ""
34251
34252 #. type: verbatim
34253 #: ../src/guestfs-structs.pod:265
34254 #, no-wrap
34255 msgid ""
34256 " void guestfs_free_application (struct guestfs_free_application *);\n"
34257 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34258 "\n"
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:5
34263 msgid "guestfs - Library for accessing and modifying virtual machine images"
34264 msgstr ""
34265
34266 #. type: verbatim
34267 #: ../src/guestfs.pod:11
34268 #, no-wrap
34269 msgid ""
34270 " guestfs_h *g = guestfs_create ();\n"
34271 " guestfs_add_drive (g, \"guest.img\");\n"
34272 " guestfs_launch (g);\n"
34273 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34274 " guestfs_touch (g, \"/hello\");\n"
34275 " guestfs_umount (g, \"/\");\n"
34276 " guestfs_close (g);\n"
34277 "\n"
34278 msgstr ""
34279 " guestfs_h *g = guestfs_create ();\n"
34280 " guestfs_add_drive (g, \"guest.img\");\n"
34281 " guestfs_launch (g);\n"
34282 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34283 " guestfs_touch (g, \"/hello\");\n"
34284 " guestfs_umount (g, \"/\");\n"
34285 " guestfs_close (g);\n"
34286 "\n"
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:25
34290 msgid ""
34291 "Libguestfs is a library for accessing and modifying guest disk images.  "
34292 "Amongst the things this is good for: making batch configuration changes to "
34293 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34294 "between virtualization systems (see also: virt-p2v), performing partial "
34295 "backups, performing partial guest clones, cloning guests and changing "
34296 "registry/UUID/hostname info, and much else besides."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:33
34301 msgid ""
34302 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest"
34303 " filesystem that Linux and qemu can, including but not limited to: ext2/3/4,"
34304 " btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34305 "qcow2, vmdk."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:38
34310 msgid ""
34311 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34312 "what filesystem is in each LV, etc.).  It can also run commands in the "
34313 "context of the guest.  Also you can access filesystems over FUSE."
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:43
34318 msgid ""
34319 "Libguestfs is a library that can be linked with C and C++ management "
34320 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java,"
34321 " PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the"
34322 " command line."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:48
34327 msgid ""
34328 "You don't need to be root to use libguestfs, although obviously you do need "
34329 "enough permissions to access the disk images."
34330 msgstr ""
34331
34332 #. type: textblock
34333 #: ../src/guestfs.pod:51
34334 msgid ""
34335 "Libguestfs is a large API because it can do many things.  For a gentle "
34336 "introduction, please read the L</API OVERVIEW> section next."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:54
34341 msgid ""
34342 "There are also some example programs in the L<guestfs-examples(3)> manual "
34343 "page."
34344 msgstr ""
34345
34346 #. type: =head1
34347 #: ../src/guestfs.pod:57
34348 msgid "API OVERVIEW"
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:59
34353 msgid ""
34354 "This section provides a gentler overview of the libguestfs API.  We also try"
34355 " to group API calls together, where that may not be obvious from reading "
34356 "about the individual calls in the main section of this manual."
34357 msgstr ""
34358
34359 #. type: =head2
34360 #: ../src/guestfs.pod:64
34361 msgid "HANDLES"
34362 msgstr ""
34363
34364 #. type: textblock
34365 #: ../src/guestfs.pod:66
34366 msgid ""
34367 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34368 "must add at least one disk image to the handle, followed by launching the "
34369 "handle, then performing whatever operations you want, and finally closing "
34370 "the handle.  By convention we use the single letter C<g> for the name of the"
34371 " handle variable, although of course you can use any name you want."
34372 msgstr ""
34373
34374 #. type: textblock
34375 #: ../src/guestfs.pod:73
34376 msgid ""
34377 "The general structure of all libguestfs-using programs looks like this:"
34378 msgstr ""
34379
34380 #. type: verbatim
34381 #: ../src/guestfs.pod:76
34382 #, no-wrap
34383 msgid ""
34384 " guestfs_h *g = guestfs_create ();\n"
34385 " \n"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs.pod:78
34390 #, no-wrap
34391 msgid ""
34392 " /* Call guestfs_add_drive additional times if there are\n"
34393 "  * multiple disk images.\n"
34394 "  */\n"
34395 " guestfs_add_drive (g, \"guest.img\");\n"
34396 " \n"
34397 msgstr ""
34398
34399 #. type: verbatim
34400 #: ../src/guestfs.pod:83
34401 #, no-wrap
34402 msgid ""
34403 " /* Most manipulation calls won't work until you've launched\n"
34404 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34405 "  * and _before_ other commands.\n"
34406 "  */\n"
34407 " guestfs_launch (g);\n"
34408 " \n"
34409 msgstr ""
34410
34411 #. type: verbatim
34412 #: ../src/guestfs.pod:89
34413 #, no-wrap
34414 msgid ""
34415 " /* Now you can examine what partitions, LVs etc are available.\n"
34416 "  */\n"
34417 " char **partitions = guestfs_list_partitions (g);\n"
34418 " char **logvols = guestfs_lvs (g);\n"
34419 " \n"
34420 msgstr ""
34421
34422 #. type: verbatim
34423 #: ../src/guestfs.pod:94
34424 #, no-wrap
34425 msgid ""
34426 " /* To access a filesystem in the image, you must mount it.\n"
34427 "  */\n"
34428 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34429 " \n"
34430 msgstr ""
34431
34432 #. type: verbatim
34433 #: ../src/guestfs.pod:98
34434 #, no-wrap
34435 msgid ""
34436 " /* Now you can perform filesystem actions on the guest\n"
34437 "  * disk image.\n"
34438 "  */\n"
34439 " guestfs_touch (g, \"/hello\");\n"
34440 " \n"
34441 msgstr ""
34442
34443 #. type: verbatim
34444 #: ../src/guestfs.pod:103
34445 #, no-wrap
34446 msgid ""
34447 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34448 "  * it is done automatically when you close the handle.  See\n"
34449 "  * discussion of autosync in this page.\n"
34450 "  */\n"
34451 " guestfs_sync (g);\n"
34452 " \n"
34453 msgstr ""
34454
34455 #. type: verbatim
34456 #: ../src/guestfs.pod:109
34457 #, no-wrap
34458 msgid ""
34459 " /* Close the handle 'g'. */\n"
34460 " guestfs_close (g);\n"
34461 "\n"
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:112
34466 msgid ""
34467 "The code above doesn't include any error checking.  In real code you should "
34468 "check return values carefully for errors.  In general all functions that "
34469 "return integers return C<-1> on error, and all functions that return "
34470 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34471 "how to handle errors, and consult the documentation for each function call "
34472 "below to see precisely how they return error indications.  See L<guestfs-"
34473 "examples(3)> for fully worked examples."
34474 msgstr ""
34475
34476 #. type: =head2
34477 #: ../src/guestfs.pod:121
34478 msgid "DISK IMAGES"
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:123
34483 msgid ""
34484 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34485 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34486 "actual block device, or simply an empty file of zeroes that you have created"
34487 " through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all"
34488 " of these."
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs.pod:129
34493 msgid ""
34494 "The call you should use in modern code for adding drives is "
34495 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34496 "specifying that the format is raw, do:"
34497 msgstr ""
34498
34499 #. type: verbatim
34500 #: ../src/guestfs.pod:133
34501 #, no-wrap
34502 msgid ""
34503 " guestfs_add_drive_opts (g, filename,\n"
34504 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34505 "                         -1);\n"
34506 "\n"
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:137
34511 msgid "You can add a disk read-only using:"
34512 msgstr ""
34513
34514 #. type: verbatim
34515 #: ../src/guestfs.pod:139
34516 #, no-wrap
34517 msgid ""
34518 " guestfs_add_drive_opts (g, filename,\n"
34519 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34520 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34521 "                         -1);\n"
34522 "\n"
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs.pod:144
34527 msgid ""
34528 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34529 "libguestfs won't modify the file."
34530 msgstr ""
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:147
34534 msgid ""
34535 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34536 "by a virtual machine.  Adding it read-write will almost certainly cause disk"
34537 " corruption, but adding it read-only is safe."
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs.pod:151
34542 msgid ""
34543 "You must add at least one disk image, and you may add multiple disk images."
34544 "  In the API, the disk images are usually referred to as C</dev/sda> (for "
34545 "the first one you added), C</dev/sdb> (for the second one you added), etc."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:156
34550 msgid ""
34551 "Once L</guestfs_launch> has been called you cannot add any more images.  You"
34552 " can call L</guestfs_list_devices> to get a list of the device names, in the"
34553 " order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34554 msgstr ""
34555
34556 #. type: =head2
34557 #: ../src/guestfs.pod:161
34558 msgid "MOUNTING"
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:163
34563 msgid ""
34564 "Before you can read or write files, create directories and so on in a disk "
34565 "image that contains filesystems, you have to mount those filesystems using "
34566 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that"
34567 " a disk image contains (for example) one partition with a filesystem on that"
34568 " partition, then you can mount it directly:"
34569 msgstr ""
34570
34571 #. type: verbatim
34572 #: ../src/guestfs.pod:170
34573 #, no-wrap
34574 msgid ""
34575 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34576 "\n"
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:172
34581 msgid ""
34582 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34583 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34584 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34585 "that these are libguestfs virtual devices, and are nothing to do with host "
34586 "devices."
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:178
34591 msgid ""
34592 "If you are given a disk image and you don't know what it contains then you "
34593 "have to find out.  Libguestfs can do that too: use "
34594 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
34595 "and LVs, and either try mounting each to see what is mountable, or else "
34596 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34597 "filesystems, use L</guestfs_list_filesystems>."
34598 msgstr ""
34599
34600 #. type: textblock
34601 #: ../src/guestfs.pod:186
34602 msgid ""
34603 "Libguestfs also has a set of APIs for inspection of unknown disk images (see"
34604 " L</INSPECTION> below).  But you might find it easier to look at higher "
34605 "level programs built on top of libguestfs, in particular L<virt-"
34606 "inspector(1)>."
34607 msgstr ""
34608
34609 #. type: textblock
34610 #: ../src/guestfs.pod:191
34611 msgid ""
34612 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34613 "several other variations of the C<guestfs_mount_*> call."
34614 msgstr ""
34615
34616 #. type: =head2
34617 #: ../src/guestfs.pod:194
34618 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34619 msgstr ""
34620
34621 #. type: textblock
34622 #: ../src/guestfs.pod:196
34623 msgid ""
34624 "The majority of the libguestfs API consists of fairly low-level calls for "
34625 "accessing and modifying the files, directories, symlinks etc on mounted "
34626 "filesystems.  There are over a hundred such calls which you can find listed "
34627 "in detail below in this man page, and we don't even pretend to cover them "
34628 "all in this overview."
34629 msgstr ""
34630
34631 #. type: textblock
34632 #: ../src/guestfs.pod:202
34633 msgid ""
34634 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34635 "mount point."
34636 msgstr ""
34637
34638 #. type: textblock
34639 #: ../src/guestfs.pod:205
34640 msgid ""
34641 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34642 "the file called C<\"etc/passwd\"> then you could do:"
34643 msgstr ""
34644
34645 #. type: verbatim
34646 #: ../src/guestfs.pod:208
34647 #, no-wrap
34648 msgid ""
34649 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34650 "\n"
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:210
34655 msgid ""
34656 "This would return C<data> as a newly allocated buffer containing the full "
34657 "content of that file (with some conditions: see also L</DOWNLOADING> below),"
34658 " or C<NULL> if there was an error."
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs.pod:214
34663 msgid ""
34664 "As another example, to create a top-level directory on that filesystem "
34665 "called C<\"var\"> you would do:"
34666 msgstr ""
34667
34668 #. type: verbatim
34669 #: ../src/guestfs.pod:217
34670 #, no-wrap
34671 msgid ""
34672 " guestfs_mkdir (g, \"/var\");\n"
34673 "\n"
34674 msgstr ""
34675
34676 #. type: textblock
34677 #: ../src/guestfs.pod:219
34678 msgid "To create a symlink you could do:"
34679 msgstr ""
34680
34681 #. type: verbatim
34682 #: ../src/guestfs.pod:221
34683 #, no-wrap
34684 msgid ""
34685 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34686 "               \"/etc/rc3.d/S30portmap\");\n"
34687 "\n"
34688 msgstr ""
34689
34690 #. type: textblock
34691 #: ../src/guestfs.pod:224
34692 msgid ""
34693 "Libguestfs will reject attempts to use relative paths and there is no "
34694 "concept of a current working directory."
34695 msgstr ""
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:227
34699 msgid ""
34700 "Libguestfs can return errors in many situations: for example if the "
34701 "filesystem isn't writable, or if a file or directory that you requested "
34702 "doesn't exist.  If you are using the C API (documented here)  you have to "
34703 "check for those error conditions after each call.  (Other language bindings "
34704 "turn these errors into exceptions)."
34705 msgstr ""
34706
34707 #. type: textblock
34708 #: ../src/guestfs.pod:233
34709 msgid ""
34710 "File writes are affected by the per-handle umask, set by calling "
34711 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
34712 msgstr ""
34713
34714 #. type: =head2
34715 #: ../src/guestfs.pod:236
34716 msgid "PARTITIONING"
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:238
34721 msgid ""
34722 "Libguestfs contains API calls to read, create and modify partition tables on"
34723 " disk images."
34724 msgstr ""
34725
34726 #. type: textblock
34727 #: ../src/guestfs.pod:241
34728 msgid ""
34729 "In the common case where you want to create a single partition covering the "
34730 "whole disk, you should use the L</guestfs_part_disk> call:"
34731 msgstr ""
34732
34733 #. type: verbatim
34734 #: ../src/guestfs.pod:245
34735 #, no-wrap
34736 msgid ""
34737 " const char *parttype = \"mbr\";\n"
34738 " if (disk_is_larger_than_2TB)\n"
34739 "   parttype = \"gpt\";\n"
34740 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34741 "\n"
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:250
34746 msgid ""
34747 "Obviously this effectively wipes anything that was on that disk image "
34748 "before."
34749 msgstr ""
34750
34751 #. type: =head2
34752 #: ../src/guestfs.pod:253
34753 msgid "LVM2"
34754 msgstr ""
34755
34756 #. type: textblock
34757 #: ../src/guestfs.pod:255
34758 msgid ""
34759 "Libguestfs provides access to a large part of the LVM2 API, such as "
34760 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
34761 "unless you familiarize yourself with the concepts of physical volumes, "
34762 "volume groups and logical volumes."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:260
34767 msgid ""
34768 "This author strongly recommends reading the LVM HOWTO, online at "
34769 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
34770 msgstr ""
34771
34772 #. type: =head2
34773 #: ../src/guestfs.pod:263
34774 msgid "DOWNLOADING"
34775 msgstr ""
34776
34777 #. type: textblock
34778 #: ../src/guestfs.pod:265
34779 msgid ""
34780 "Use L</guestfs_cat> to download small, text only files.  This call is "
34781 "limited to files which are less than 2 MB and which cannot contain any ASCII"
34782 " NUL (C<\\0>) characters.  However the API is very simple to use."
34783 msgstr ""
34784
34785 #. type: textblock
34786 #: ../src/guestfs.pod:269
34787 msgid ""
34788 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34789 "bit data, since it returns a (pointer, size) pair.  However it is still "
34790 "limited to \"small\" files, less than 2 MB."
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:273
34795 msgid ""
34796 "L</guestfs_download> can be used to download any file, with no limits on "
34797 "content or size (even files larger than 4 GB)."
34798 msgstr ""
34799
34800 #. type: textblock
34801 #: ../src/guestfs.pod:276
34802 msgid ""
34803 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34804 msgstr ""
34805
34806 #. type: =head2
34807 #: ../src/guestfs.pod:279
34808 msgid "UPLOADING"
34809 msgstr ""
34810
34811 #. type: textblock
34812 #: ../src/guestfs.pod:281
34813 msgid ""
34814 "It's often the case that you want to write a file or files to the disk "
34815 "image."
34816 msgstr ""
34817
34818 #. type: textblock
34819 #: ../src/guestfs.pod:284
34820 msgid ""
34821 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34822 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
34823 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
34824 "variety of other functions for creating test files, for example "
34825 "L</guestfs_fill> and L</guestfs_fill_pattern>."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:290
34830 msgid ""
34831 "To upload a single file, use L</guestfs_upload>.  This call has no limits on"
34832 " file content or size (even files larger than 4 GB)."
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:293
34837 msgid ""
34838 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:295
34843 msgid ""
34844 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34845 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
34846 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add"
34847 " the drive in a predictable way (eg. adding it last after all other drives) "
34848 "then you can get the device name from L</guestfs_list_devices> and mount it "
34849 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
34850 "sometimes non-portable between kernel versions, and they don't support "
34851 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
34852 "using a label or UUID, use an ISO image instead."
34853 msgstr ""
34854
34855 #. type: =head2
34856 #: ../src/guestfs.pod:306
34857 msgid "COPYING"
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:308
34862 msgid ""
34863 "There are various different commands for copying between files and devices "
34864 "and in and out of the guest filesystem.  These are summarised in the table "
34865 "below."
34866 msgstr ""
34867
34868 #. type: =item
34869 #: ../src/guestfs.pod:314
34870 msgid "B<file> to B<file>"
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:316
34875 msgid ""
34876 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34877 "directories recursively."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:319
34882 msgid ""
34883 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34884 msgstr ""
34885
34886 #. type: =item
34887 #: ../src/guestfs.pod:322
34888 msgid "B<file> to B<device>"
34889 msgstr ""
34890
34891 #. type: =item
34892 #: ../src/guestfs.pod:324
34893 msgid "B<device> to B<file>"
34894 msgstr ""
34895
34896 #. type: =item
34897 #: ../src/guestfs.pod:326
34898 msgid "B<device> to B<device>"
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:328
34903 msgid ""
34904 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
34905 "L</guestfs_copy_device_to_device>."
34906 msgstr ""
34907
34908 #. type: textblock
34909 #: ../src/guestfs.pod:331
34910 msgid "Example: duplicate the contents of an LV:"
34911 msgstr ""
34912
34913 #. type: verbatim
34914 #: ../src/guestfs.pod:333
34915 #, no-wrap
34916 msgid ""
34917 " guestfs_copy_device_to_device (g,\n"
34918 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34919 "         /* -1 marks the end of the list of optional parameters */\n"
34920 "         -1);\n"
34921 "\n"
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:338
34926 msgid ""
34927 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34928 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34929 "optional C<size> parameter:"
34930 msgstr ""
34931
34932 #. type: verbatim
34933 #: ../src/guestfs.pod:342
34934 #, no-wrap
34935 msgid ""
34936 " guestfs_copy_device_to_device (g,\n"
34937 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34938 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34939 "         -1);\n"
34940 "\n"
34941 msgstr ""
34942
34943 #. type: =item
34944 #: ../src/guestfs.pod:347
34945 msgid "B<file on the host> to B<file or device>"
34946 msgstr ""
34947
34948 #. type: textblock
34949 #: ../src/guestfs.pod:349
34950 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34951 msgstr ""
34952
34953 #. type: =item
34954 #: ../src/guestfs.pod:351
34955 msgid "B<file or device> to B<file on the host>"
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:353
34960 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34961 msgstr ""
34962
34963 #. type: =head2
34964 #: ../src/guestfs.pod:357
34965 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:359
34970 msgid ""
34971 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
34972 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34973 "appears you can only upload and download to files.  However many Un*x-like "
34974 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
34975 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
34976 "stderr, and arbitrary file descriptor N."
34977 msgstr ""
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:367
34981 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34982 msgstr ""
34983
34984 #. type: verbatim
34985 #: ../src/guestfs.pod:370
34986 #, no-wrap
34987 msgid ""
34988 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34989 "\n"
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:372
34994 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34995 msgstr ""
34996
34997 #. type: verbatim
34998 #: ../src/guestfs.pod:374
34999 #, no-wrap
35000 msgid ""
35001 " char devfd[64];\n"
35002 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35003 " guestfs_tar_out (g, \"/\", devfd);\n"
35004 "\n"
35005 msgstr ""
35006
35007 #. type: =head2
35008 #: ../src/guestfs.pod:378
35009 msgid "LISTING FILES"
35010 msgstr ""
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:380
35014 msgid ""
35015 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35016 "L<guestfish(1)>-equivalent command C<ll>)."
35017 msgstr ""
35018
35019 #. type: textblock
35020 #: ../src/guestfs.pod:383
35021 msgid ""
35022 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35023 "programs, as a flat list of strings."
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:386
35028 msgid ""
35029 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35030 "directory, plus additional information about each one.  It is more "
35031 "equivalent to using the L<readdir(3)> call on a local filesystem."
35032 msgstr ""
35033
35034 #. type: textblock
35035 #: ../src/guestfs.pod:390
35036 msgid ""
35037 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35038 "files."
35039 msgstr ""
35040
35041 #. type: =head2
35042 #: ../src/guestfs.pod:393
35043 msgid "RUNNING COMMANDS"
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:395
35048 msgid ""
35049 "Although libguestfs is primarily an API for manipulating files inside guest "
35050 "images, we also provide some limited facilities for running commands inside "
35051 "guests."
35052 msgstr ""
35053
35054 #. type: textblock
35055 #: ../src/guestfs.pod:399
35056 msgid "There are many limitations to this:"
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:405
35061 msgid ""
35062 "The kernel version that the command runs under will be different from what "
35063 "it expects."
35064 msgstr ""
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:410
35068 msgid ""
35069 "If the command needs to communicate with daemons, then most likely they "
35070 "won't be running."
35071 msgstr ""
35072
35073 #. type: textblock
35074 #: ../src/guestfs.pod:415
35075 msgid "The command will be running in limited memory."
35076 msgstr ""
35077
35078 #. type: textblock
35079 #: ../src/guestfs.pod:419
35080 msgid ""
35081 "The network may not be available unless you enable it (see "
35082 "L</guestfs_set_network>)."
35083 msgstr ""
35084
35085 #. type: textblock
35086 #: ../src/guestfs.pod:424
35087 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:428
35092 msgid ""
35093 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:433
35098 msgid ""
35099 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35100 "See L</SELINUX> in this manpage."
35101 msgstr ""
35102
35103 #. type: textblock
35104 #: ../src/guestfs.pod:438
35105 msgid ""
35106 "I<Security:> It is not safe to run commands from untrusted, possibly "
35107 "malicious guests.  These commands may attempt to exploit your program by "
35108 "sending unexpected output.  They could also try to exploit the Linux kernel "
35109 "or qemu provided by the libguestfs appliance.  They could use the network "
35110 "provided by the libguestfs appliance to bypass ordinary network partitions "
35111 "and firewalls.  They could use the elevated privileges or different SELinux "
35112 "context of your program to their advantage."
35113 msgstr ""
35114
35115 #. type: textblock
35116 #: ../src/guestfs.pod:447
35117 msgid ""
35118 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35119 "(a script which runs when the guest next boots normally), and to have this "
35120 "script run the commands you want in the normal context of the running guest,"
35121 " network security and so on.  For information about other security issues, "
35122 "see L</SECURITY>."
35123 msgstr ""
35124
35125 #. type: textblock
35126 #: ../src/guestfs.pod:455
35127 msgid ""
35128 "The two main API calls to run commands are L</guestfs_command> and "
35129 "L</guestfs_sh> (there are also variations)."
35130 msgstr ""
35131
35132 #. type: textblock
35133 #: ../src/guestfs.pod:458
35134 msgid ""
35135 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35136 "shell globs, redirections, etc will work."
35137 msgstr ""
35138
35139 #. type: =head2
35140 #: ../src/guestfs.pod:461
35141 msgid "CONFIGURATION FILES"
35142 msgstr ""
35143
35144 #. type: textblock
35145 #: ../src/guestfs.pod:463
35146 msgid ""
35147 "To read and write configuration files in Linux guest filesystems, we "
35148 "strongly recommend using Augeas.  For example, Augeas understands how to "
35149 "read and write, say, a Linux shadow password file or X.org configuration "
35150 "file, and so avoids you having to write that code."
35151 msgstr ""
35152
35153 #. type: textblock
35154 #: ../src/guestfs.pod:468
35155 msgid ""
35156 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't"
35157 " document Augeas itself here because there is excellent documentation on the"
35158 " L<http://augeas.net/> website."
35159 msgstr ""
35160
35161 #. type: textblock
35162 #: ../src/guestfs.pod:472
35163 msgid ""
35164 "If you don't want to use Augeas (you fool!) then try calling "
35165 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35166 "iterate over."
35167 msgstr ""
35168
35169 #. type: =head2
35170 #: ../src/guestfs.pod:476
35171 msgid "SELINUX"
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:478
35176 msgid ""
35177 "We support SELinux guests.  To ensure that labeling happens correctly in "
35178 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:486
35183 msgid "Before launching, do:"
35184 msgstr ""
35185
35186 #. type: verbatim
35187 #: ../src/guestfs.pod:488
35188 #, no-wrap
35189 msgid ""
35190 " guestfs_set_selinux (g, 1);\n"
35191 "\n"
35192 msgstr ""
35193
35194 #. type: textblock
35195 #: ../src/guestfs.pod:492
35196 msgid ""
35197 "After mounting the guest's filesystem(s), load the policy.  This is best "
35198 "done by running the L<load_policy(8)> command in the guest itself:"
35199 msgstr ""
35200
35201 #. type: verbatim
35202 #: ../src/guestfs.pod:496
35203 #, no-wrap
35204 msgid ""
35205 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35206 "\n"
35207 msgstr ""
35208
35209 #. type: textblock
35210 #: ../src/guestfs.pod:498
35211 msgid ""
35212 "(Older versions of C<load_policy> require you to specify the name of the "
35213 "policy file)."
35214 msgstr ""
35215
35216 #. type: textblock
35217 #: ../src/guestfs.pod:503
35218 msgid ""
35219 "Optionally, set the security context for the API.  The correct security "
35220 "context to use can only be known by inspecting the guest.  As an example:"
35221 msgstr ""
35222
35223 #. type: verbatim
35224 #: ../src/guestfs.pod:507
35225 #, no-wrap
35226 msgid ""
35227 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35228 "\n"
35229 msgstr ""
35230
35231 #. type: textblock
35232 #: ../src/guestfs.pod:511
35233 msgid "This will work for running commands and editing existing files."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:513
35238 msgid ""
35239 "When new files are created, you may need to label them explicitly, for "
35240 "example by running the external command C<restorecon pathname>."
35241 msgstr ""
35242
35243 #. type: =head2
35244 #: ../src/guestfs.pod:517
35245 msgid "UMASK"
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:519
35250 msgid ""
35251 "Certain calls are affected by the current file mode creation mask (the "
35252 "\"umask\").  In particular ones which create files or directories, such as "
35253 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35254 "either the default mode that the file is created with or modifies the mode "
35255 "that you supply."
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:525
35260 msgid ""
35261 "The default umask is C<022>, so files are created with modes such as C<0644>"
35262 " and directories with C<0755>."
35263 msgstr ""
35264
35265 #. type: textblock
35266 #: ../src/guestfs.pod:528
35267 msgid ""
35268 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35269 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35270 "L</guestfs_chmod> after creating each file or directory."
35271 msgstr ""
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:532
35275 msgid "For more information about umask, see L<umask(2)>."
35276 msgstr ""
35277
35278 #. type: textblock
35279 #: ../src/guestfs.pod:536
35280 msgid ""
35281 "Libguestfs allows you to access Linux guests which have been encrypted using"
35282 " whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35283 "standard.  This includes nearly all whole disk encryption systems used by "
35284 "modern Linux guests."
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:542
35289 msgid ""
35290 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35291 "returns the string C<crypto_LUKS>)."
35292 msgstr ""
35293
35294 #. type: textblock
35295 #: ../src/guestfs.pod:545
35296 msgid ""
35297 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35298 "will require the passphrase!"
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:548
35303 msgid ""
35304 "Opening a LUKS device creates a new device mapper device called "
35305 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35306 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35307 "decrypted from and encrypted to the underlying block device respectively."
35308 msgstr ""
35309
35310 #. type: textblock
35311 #: ../src/guestfs.pod:554
35312 msgid ""
35313 "LVM volume groups on the device can be made visible by calling "
35314 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35315 "volume(s) can now be mounted in the usual way."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:558
35320 msgid ""
35321 "Use the reverse process to close a LUKS device.  Unmount any logical volumes"
35322 " on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35323 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35324 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35325 "underlying encrypted block device)."
35326 msgstr ""
35327
35328 #. type: =head2
35329 #: ../src/guestfs.pod:565
35330 msgid "INSPECTION"
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:567
35335 msgid ""
35336 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35337 "contains operating systems, an install CD or a live CD.  (These APIs used to"
35338 " be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since"
35339 " version 1.5.3 the most frequently used part of this library has been "
35340 "rewritten in C and moved into the core code)."
35341 msgstr ""
35342
35343 #. type: textblock
35344 #: ../src/guestfs.pod:574
35345 msgid ""
35346 "Add all disks belonging to the unknown virtual machine and call "
35347 "L</guestfs_launch> in the usual way."
35348 msgstr ""
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:577
35352 msgid ""
35353 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls"
35354 " and certain heuristics, and returns a list of operating systems that were "
35355 "found.  An empty list means none were found.  A single element is the root "
35356 "filesystem of the operating system.  For dual- or multi-boot guests, "
35357 "multiple roots can be returned, each one corresponding to a separate "
35358 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35359 "world of virtualization, but since this scenario can happen, we have built "
35360 "libguestfs to deal with it.)"
35361 msgstr ""
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:586
35365 msgid ""
35366 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35367 "to get additional details about that operating system.  For example, call "
35368 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for"
35369 " Windows and Linux-based operating systems respectively."
35370 msgstr ""
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:592
35374 msgid ""
35375 "Un*x-like and Linux-based operating systems usually consist of several "
35376 "filesystems which are mounted at boot time (for example, a separate boot "
35377 "partition mounted on C</boot>).  The inspection rules are able to detect how"
35378 " filesystems correspond to mount points.  Call "
35379 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35380 "hash table like this example:"
35381 msgstr ""
35382
35383 #. type: verbatim
35384 #: ../src/guestfs.pod:599
35385 #, no-wrap
35386 msgid ""
35387 " /boot => /dev/sda1\n"
35388 " /     => /dev/vg_guest/lv_root\n"
35389 " /usr  => /dev/vg_guest/lv_usr\n"
35390 "\n"
35391 msgstr ""
35392
35393 #. type: textblock
35394 #: ../src/guestfs.pod:603
35395 msgid ""
35396 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35397 "filesystems as suggested."
35398 msgstr ""
35399
35400 #. type: textblock
35401 #: ../src/guestfs.pod:606
35402 msgid ""
35403 "Be careful to mount filesystems in the right order (eg. C</> before "
35404 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35405 "work."
35406 msgstr ""
35407
35408 #. type: textblock
35409 #: ../src/guestfs.pod:610
35410 msgid ""
35411 "Inspection currently only works for some common operating systems.  "
35412 "Contributors are welcome to send patches for other operating systems that we"
35413 " currently cannot detect."
35414 msgstr ""
35415
35416 #. type: textblock
35417 #: ../src/guestfs.pod:614
35418 msgid ""
35419 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35420 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35421 "encrypted devices."
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:618
35426 msgid ""
35427 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35428 "inspection and caches the results in the guest handle.  Subsequent calls to "
35429 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35430 "read the disks.  If you change the content of the guest disks, you can redo "
35431 "inspection by calling L</guestfs_inspect_os> again.  "
35432 "(L</guestfs_inspect_list_applications> works a little differently from the "
35433 "other calls and does read the disks.  See documentation for that function "
35434 "for details)."
35435 msgstr ""
35436
35437 #. type: =head3
35438 #: ../src/guestfs.pod:627
35439 msgid "INSPECTING INSTALL DISKS"
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:629
35444 msgid ""
35445 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35446 "CDs and more."
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:632
35451 msgid ""
35452 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35453 "system, which currently can be C<installed> (a regular operating system) or "
35454 "C<installer> (some sort of install disk)."
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:636
35459 msgid ""
35460 "Further information is available about the operating system that can be "
35461 "installed using the regular inspection APIs like "
35462 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35463 "etc."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:641
35468 msgid ""
35469 "Some additional information specific to installer disks is also available "
35470 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35471 "L</guestfs_inspect_is_multipart> calls."
35472 msgstr ""
35473
35474 #. type: =head2
35475 #: ../src/guestfs.pod:646
35476 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:648
35481 msgid ""
35482 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www"
35483 ".ntfs-3g.org/> driver."
35484 msgstr ""
35485
35486 #. type: =head3
35487 #: ../src/guestfs.pod:651
35488 msgid "DRIVE LETTERS AND PATHS"
35489 msgstr ""
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:653
35493 msgid ""
35494 "DOS and Windows still use drive letters, and the filesystems are always "
35495 "treated as case insensitive by Windows itself, and therefore you might find "
35496 "a Windows configuration file referring to a path like "
35497 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35498 "that directory might be referred to as C</WINDOWS/System32>."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:659
35503 msgid ""
35504 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35505 "L</guestfs_inspect_get_drive_mappings>)"
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:662
35510 msgid ""
35511 "Dealing with separator characters (backslash vs forward slash) is outside "
35512 "the scope of libguestfs, but usually a simple character replacement will "
35513 "work."
35514 msgstr ""
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:666
35518 msgid ""
35519 "To resolve the case insensitivity of paths, call "
35520 "L</guestfs_case_sensitive_path>."
35521 msgstr ""
35522
35523 #. type: =head3
35524 #: ../src/guestfs.pod:669
35525 msgid "ACCESSING THE WINDOWS REGISTRY"
35526 msgstr ""
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:671
35530 msgid ""
35531 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35532 "files, through the library C<hivex> which is part of the libguestfs project "
35533 "although ships as a separate tarball.  You have to locate and download the "
35534 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35535 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-"
35536 "win-reg(1)> for more help on this issue."
35537 msgstr ""
35538
35539 #. type: =head3
35540 #: ../src/guestfs.pod:679
35541 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:681
35546 msgid ""
35547 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35548 "provide something which looks like a Linux symlink.  The way it tries to do "
35549 "the rewriting is described here:"
35550 msgstr ""
35551
35552 #. type: textblock
35553 #: ../src/guestfs.pod:685
35554 msgid ""
35555 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35556 "symbolic-links/>"
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:687
35561 msgid ""
35562 "The essential problem is that ntfs-3g simply does not have enough "
35563 "information to do a correct job.  NTFS links can contain drive letters and "
35564 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35565 "It is almost certainly the case that libguestfs callers should ignore what "
35566 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35567 msgstr ""
35568
35569 #. type: textblock
35570 #: ../src/guestfs.pod:694
35571 msgid ""
35572 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
35573 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35574 "attribute, and read the raw reparse data from that (you can find the format "
35575 "documented in various places around the web)."
35576 msgstr ""
35577
35578 #. type: =head3
35579 #: ../src/guestfs.pod:699
35580 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:701
35585 msgid ""
35586 "There are other useful extended attributes that can be read from ntfs-3g "
35587 "filesystems (using L</guestfs_getxattr>).  See:"
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:704
35592 msgid ""
35593 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35594 msgstr ""
35595
35596 #. type: =head2
35597 #: ../src/guestfs.pod:706
35598 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35599 msgstr ""
35600
35601 #. type: textblock
35602 #: ../src/guestfs.pod:708
35603 msgid ""
35604 "Although we don't want to discourage you from using the C API, we will "
35605 "mention here that the same API is also available in other languages."
35606 msgstr ""
35607
35608 #. type: textblock
35609 #: ../src/guestfs.pod:711
35610 msgid ""
35611 "The API is broadly identical in all supported languages.  This means that "
35612 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)>"
35613 " in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35614 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35615 "each language."
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:717
35620 msgid ""
35621 "Error messages are automatically transformed into exceptions if the language"
35622 " supports it."
35623 msgstr ""
35624
35625 #. type: textblock
35626 #: ../src/guestfs.pod:720
35627 msgid ""
35628 "We don't try to \"object orientify\" parts of the API in OO languages, "
35629 "although contributors are welcome to write higher level APIs above what we "
35630 "provide in their favourite languages if they wish."
35631 msgstr ""
35632
35633 #. type: =item
35634 #: ../src/guestfs.pod:726
35635 msgid "B<C++>"
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:728
35640 msgid ""
35641 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35642 "identical to the C API.  C++ classes and exceptions are not used."
35643 msgstr ""
35644
35645 #. type: =item
35646 #: ../src/guestfs.pod:732
35647 msgid "B<C#>"
35648 msgstr ""
35649
35650 #. type: textblock
35651 #: ../src/guestfs.pod:734
35652 msgid ""
35653 "The C# bindings are highly experimental.  Please read the warnings at the "
35654 "top of C<csharp/Libguestfs.cs>."
35655 msgstr ""
35656
35657 #. type: =item
35658 #: ../src/guestfs.pod:737
35659 msgid "B<Erlang>"
35660 msgstr ""
35661
35662 #. type: textblock
35663 #: ../src/guestfs.pod:739
35664 msgid "See L<guestfs-erlang(3)>."
35665 msgstr ""
35666
35667 #. type: =item
35668 #: ../src/guestfs.pod:741
35669 msgid "B<Haskell>"
35670 msgstr ""
35671
35672 #. type: textblock
35673 #: ../src/guestfs.pod:743
35674 msgid ""
35675 "This is the only language binding that is working but incomplete.  Only "
35676 "calls which return simple integers have been bound in Haskell, and we are "
35677 "looking for help to complete this binding."
35678 msgstr ""
35679
35680 #. type: =item
35681 #: ../src/guestfs.pod:747
35682 msgid "B<Java>"
35683 msgstr ""
35684
35685 #. type: textblock
35686 #: ../src/guestfs.pod:749
35687 msgid ""
35688 "Full documentation is contained in the Javadoc which is distributed with "
35689 "libguestfs.  For examples, see L<guestfs-java(3)>."
35690 msgstr ""
35691
35692 #. type: =item
35693 #: ../src/guestfs.pod:752
35694 msgid "B<OCaml>"
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:754
35699 msgid "See L<guestfs-ocaml(3)>."
35700 msgstr ""
35701
35702 #. type: =item
35703 #: ../src/guestfs.pod:756
35704 msgid "B<Perl>"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:758
35709 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35710 msgstr ""
35711
35712 #. type: =item
35713 #: ../src/guestfs.pod:760
35714 msgid "B<PHP>"
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:762
35719 msgid ""
35720 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35721 "the php-libguestfs package for your distribution."
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:765
35726 msgid "The PHP binding only works correctly on 64 bit machines."
35727 msgstr ""
35728
35729 #. type: =item
35730 #: ../src/guestfs.pod:767
35731 msgid "B<Python>"
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:769
35736 msgid "See L<guestfs-python(3)>."
35737 msgstr ""
35738
35739 #. type: =item
35740 #: ../src/guestfs.pod:771
35741 msgid "B<Ruby>"
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:773
35746 msgid "See L<guestfs-ruby(3)>."
35747 msgstr ""
35748
35749 #. type: =item
35750 #: ../src/guestfs.pod:775
35751 msgid "B<shell scripts>"
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:777
35756 msgid "See L<guestfish(1)>."
35757 msgstr ""
35758
35759 #. type: =head2
35760 #: ../src/guestfs.pod:781
35761 msgid "LIBGUESTFS GOTCHAS"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:783
35766 msgid ""
35767 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35768 "system [...] that works in the way it is documented but is counterintuitive "
35769 "and almost invites mistakes.\""
35770 msgstr ""
35771
35772 #. type: textblock
35773 #: ../src/guestfs.pod:787
35774 msgid ""
35775 "Since we developed libguestfs and the associated tools, there are several "
35776 "things we would have designed differently, but are now stuck with for "
35777 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0"
35778 " release, you can expect these to change.  Beware of them."
35779 msgstr ""
35780
35781 #. type: =item
35782 #: ../src/guestfs.pod:795
35783 msgid "Autosync / forgetting to sync."
35784 msgstr ""
35785
35786 #. type: textblock
35787 #: ../src/guestfs.pod:797
35788 msgid ""
35789 "I<Update:> Autosync is enabled by default for all API users starting from "
35790 "libguestfs 1.5.24.  This section only applies to older versions."
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:800
35795 msgid ""
35796 "When modifying a filesystem from C or another language, you B<must> unmount "
35797 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35798 "libguestfs handle.  You can also call:"
35799 msgstr ""
35800
35801 #. type: verbatim
35802 #: ../src/guestfs.pod:804
35803 #, no-wrap
35804 msgid ""
35805 " guestfs_set_autosync (g, 1);\n"
35806 "\n"
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:806
35811 msgid ""
35812 "to have the unmount/sync done automatically for you when the handle 'g' is "
35813 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
35814 "q.v.)"
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:810
35819 msgid ""
35820 "If you forget to do this, then it is entirely possible that your changes "
35821 "won't be written out, or will be partially written, or (very rarely) that "
35822 "you'll get disk corruption."
35823 msgstr ""
35824
35825 #. type: textblock
35826 #: ../src/guestfs.pod:814
35827 msgid ""
35828 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35829 "guestfish scripts that forget to sync will work just fine, which can make "
35830 "this very puzzling if you are trying to debug a problem."
35831 msgstr ""
35832
35833 #. type: =item
35834 #: ../src/guestfs.pod:818
35835 msgid "Mount option C<-o sync> should not be the default."
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../src/guestfs.pod:820
35840 msgid ""
35841 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35842 "libguestfs 1.13.16.  This section only applies to older versions."
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:823
35847 msgid ""
35848 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly."
35849 "  However C<-o sync> does not add any reliability benefit, but does have a "
35850 "very large performance impact."
35851 msgstr ""
35852
35853 #. type: textblock
35854 #: ../src/guestfs.pod:827
35855 msgid ""
35856 "The work around is to use L</guestfs_mount_options> and set the mount "
35857 "options that you actually want to use."
35858 msgstr ""
35859
35860 #. type: =item
35861 #: ../src/guestfs.pod:830
35862 msgid "Read-only should be the default."
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:832
35867 msgid ""
35868 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35869 "specify I<--rw> if you want to make changes to the image."
35870 msgstr ""
35871
35872 #. type: textblock
35873 #: ../src/guestfs.pod:835
35874 msgid "This would reduce the potential to corrupt live VM images."
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:837
35879 msgid ""
35880 "Note that many filesystems change the disk when you just mount and unmount, "
35881 "even if you didn't perform any writes.  You need to use "
35882 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
35883 msgstr ""
35884
35885 #. type: =item
35886 #: ../src/guestfs.pod:841
35887 msgid "guestfish command line is hard to use."
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:843
35892 msgid ""
35893 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35894 "examination).  It tries to run a guestfish command C<disk.img> which doesn't"
35895 " exist, so it fails.  In earlier versions of guestfish the error message was"
35896 " also unintuitive, but we have corrected this since.  Like the Bourne shell,"
35897 " we should have used C<guestfish -c command> to run commands."
35898 msgstr ""
35899
35900 #. type: =item
35901 #: ../src/guestfs.pod:850
35902 msgid "guestfish megabyte modifiers don't work right on all commands"
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:852
35907 msgid ""
35908 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35909 "other modifiers).  What guestfish actually does is to multiply the number "
35910 "part by the modifier part and pass the result to the C API.  However this "
35911 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35912 "expecting some other unit (eg. megabytes)."
35913 msgstr ""
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:859
35917 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35918 msgstr ""
35919
35920 #. type: verbatim
35921 #: ../src/guestfs.pod:861
35922 #, no-wrap
35923 msgid ""
35924 " lvcreate LV VG 100M\n"
35925 "\n"
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../src/guestfs.pod:863
35930 msgid ""
35931 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35932 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35933 "megabytes * megabytes) logical volume.  The error message you get from this "
35934 "is also a little obscure."
35935 msgstr ""
35936
35937 #. type: textblock
35938 #: ../src/guestfs.pod:868
35939 msgid ""
35940 "This could be fixed in the generator by specially marking parameters and "
35941 "return values which take bytes or other units."
35942 msgstr ""
35943
35944 #. type: =item
35945 #: ../src/guestfs.pod:871
35946 msgid "Ambiguity between devices and paths"
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:873
35951 msgid ""
35952 "There is a subtle ambiguity in the API between a device name (eg. "
35953 "C</dev/sdb2>) and a similar pathname.  A file might just happen to be called"
35954 " C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35955 msgstr ""
35956
35957 #. type: textblock
35958 #: ../src/guestfs.pod:878
35959 msgid ""
35960 "In the current API we usually resolve this ambiguity by having two separate "
35961 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35962 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35963 "detecting if the path supplied begins with C</dev/>."
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:884
35968 msgid ""
35969 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35970 "make paths/devices into structured names.  One way to do this would be to "
35971 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35972 "aspect of grub.  Another way would be to use a structured type, equivalent "
35973 "to this OCaml type:"
35974 msgstr ""
35975
35976 #. type: verbatim
35977 #: ../src/guestfs.pod:890
35978 #, no-wrap
35979 msgid ""
35980 " type path = Path of string | Device of int | Partition of int * int\n"
35981 "\n"
35982 msgstr ""
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:892
35986 msgid "which would allow you to pass arguments like:"
35987 msgstr ""
35988
35989 #. type: verbatim
35990 #: ../src/guestfs.pod:894
35991 #, no-wrap
35992 msgid ""
35993 " Path \"/foo/bar\"\n"
35994 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35995 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35996 " Path \"/dev/sdb2\"    (* not a device *)\n"
35997 "\n"
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:899
36002 msgid ""
36003 "As you can see there are still problems to resolve even with this "
36004 "representation.  Also consider how it might work in guestfish."
36005 msgstr ""
36006
36007 #. type: =head2
36008 #: ../src/guestfs.pod:904
36009 msgid "KEYS AND PASSPHRASES"
36010 msgstr ""
36011
36012 #. type: textblock
36013 #: ../src/guestfs.pod:906
36014 msgid ""
36015 "Certain libguestfs calls take a parameter that contains sensitive key "
36016 "material, passed in as a C string."
36017 msgstr ""
36018
36019 #. type: textblock
36020 #: ../src/guestfs.pod:909
36021 msgid ""
36022 "In the future we would hope to change the libguestfs implementation so that "
36023 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36024 "swap.  However this is I<not> done at the moment, because of the complexity "
36025 "of such an implementation."
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:914
36030 msgid ""
36031 "Therefore you should be aware that any key parameter you pass to libguestfs "
36032 "might end up being written out to the swap partition.  If this is a concern,"
36033 " scrub the swap partition or don't use libguestfs on encrypted devices."
36034 msgstr ""
36035
36036 #. type: =head2
36037 #: ../src/guestfs.pod:919
36038 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:921
36043 msgid ""
36044 "All high-level libguestfs actions are synchronous.  If you want to use "
36045 "libguestfs asynchronously then you must create a thread."
36046 msgstr ""
36047
36048 #. type: textblock
36049 #: ../src/guestfs.pod:924
36050 msgid ""
36051 "Only use the handle from a single thread.  Either use the handle exclusively"
36052 " from one thread, or provide your own mutex so that two threads cannot issue"
36053 " calls on the same handle at the same time."
36054 msgstr ""
36055
36056 #. type: textblock
36057 #: ../src/guestfs.pod:928
36058 msgid ""
36059 "See the graphical program guestfs-browser for one possible architecture for "
36060 "multithreaded programs using libvirt and libguestfs."
36061 msgstr ""
36062
36063 #. type: =head2
36064 #: ../src/guestfs.pod:931
36065 msgid "PATH"
36066 msgstr ""
36067
36068 #. type: textblock
36069 #: ../src/guestfs.pod:933
36070 msgid ""
36071 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36072 "internal path."
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs.pod:936
36077 msgid ""
36078 "By default it looks for these in the directory C<$libdir/guestfs> (eg. "
36079 "C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:939
36084 msgid ""
36085 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH>"
36086 " to change the directories that libguestfs will search in.  The value is a "
36087 "colon-separated list of paths.  The current directory is I<not> searched "
36088 "unless the path contains an empty element or C<.>.  For example "
36089 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36090 "then C</usr/lib/guestfs>."
36091 msgstr ""
36092
36093 #. type: =head2
36094 #: ../src/guestfs.pod:946
36095 msgid "QEMU WRAPPERS"
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:948
36100 msgid ""
36101 "If you want to compile your own qemu, run qemu from a non-standard location,"
36102 " or pass extra arguments to qemu, then you can write a shell-script wrapper "
36103 "around qemu."
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:952
36108 msgid ""
36109 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36110 "last command in the shell script (so that qemu replaces the shell and "
36111 "becomes the direct child of the libguestfs-using program).  If you don't do "
36112 "this, then the qemu process won't be cleaned up correctly."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:957
36117 msgid ""
36118 "Here is an example of a wrapper, where I have built my own copy of qemu from"
36119 " source:"
36120 msgstr ""
36121
36122 #. type: verbatim
36123 #: ../src/guestfs.pod:960
36124 #, no-wrap
36125 msgid ""
36126 " #!/bin/sh -\n"
36127 " qemudir=/home/rjones/d/qemu\n"
36128 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36129 "\n"
36130 msgstr ""
36131
36132 #. type: textblock
36133 #: ../src/guestfs.pod:964
36134 msgid ""
36135 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36136 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36137 "example:"
36138 msgstr ""
36139
36140 #. type: verbatim
36141 #: ../src/guestfs.pod:968
36142 #, no-wrap
36143 msgid ""
36144 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36145 "\n"
36146 msgstr ""
36147
36148 #. type: textblock
36149 #: ../src/guestfs.pod:970
36150 msgid ""
36151 "Note that libguestfs also calls qemu with the -help and -version options in "
36152 "order to determine features."
36153 msgstr ""
36154
36155 #. type: textblock
36156 #: ../src/guestfs.pod:973
36157 msgid ""
36158 "Wrappers can also be used to edit the options passed to qemu.  In the "
36159 "following example, the C<-machine ...> option (C<-machine> and the following"
36160 " argument) are removed from the command line and replaced with C<-machine "
36161 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36162 "right one to remove, putting the remaining options into the C<args> array."
36163 msgstr ""
36164
36165 #. type: verbatim
36166 #: ../src/guestfs.pod:982
36167 #, no-wrap
36168 msgid ""
36169 " i=0\n"
36170 " while [ $# -gt 0 ]; do\n"
36171 "     case \"$1\" in\n"
36172 "     -machine)\n"
36173 "         shift 2;;\n"
36174 "     *)\n"
36175 "         args[i]=\"$1\"\n"
36176 "         (( i++ ))\n"
36177 "         shift ;;\n"
36178 "     esac\n"
36179 " done\n"
36180 " \n"
36181 msgstr ""
36182
36183 #. type: verbatim
36184 #: ../src/guestfs.pod:994
36185 #, no-wrap
36186 msgid ""
36187 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36188 "\n"
36189 msgstr ""
36190
36191 #. type: =head2
36192 #: ../src/guestfs.pod:996
36193 msgid "ATTACHING TO RUNNING DAEMONS"
36194 msgstr ""
36195
36196 #. type: textblock
36197 #: ../src/guestfs.pod:998
36198 msgid ""
36199 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36200 "babies.  Use with caution."
36201 msgstr ""
36202
36203 #. type: textblock
36204 #: ../src/guestfs.pod:1001
36205 msgid ""
36206 "I<Note (2):> This section explains how to attach to a running daemon from a "
36207 "low level perspective.  For most users, simply using virt tools such as "
36208 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36209 msgstr ""
36210
36211 #. type: =head3
36212 #: ../src/guestfs.pod:1005
36213 msgid "Using guestfs_set_attach_method"
36214 msgstr ""
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:1007
36218 msgid ""
36219 "By calling L</guestfs_set_attach_method> you can change how the library "
36220 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36221 "L</ARCHITECTURE> for some background)."
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../src/guestfs.pod:1011
36226 msgid ""
36227 "The normal attach method is C<appliance>, where a small appliance is created"
36228 " containing the daemon, and then the library connects to this."
36229 msgstr ""
36230
36231 #. type: textblock
36232 #: ../src/guestfs.pod:1014
36233 msgid ""
36234 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36235 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36236 "daemon over the Unix domain socket."
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:1018
36241 msgid ""
36242 "The normal use for this is to connect to a running virtual machine that "
36243 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36244 "files inside the live virtual machine."
36245 msgstr ""
36246
36247 #. type: =head3
36248 #: ../src/guestfs.pod:1022
36249 msgid "Using guestfs_add_domain with live flag"
36250 msgstr ""
36251
36252 #. type: textblock
36253 #: ../src/guestfs.pod:1024
36254 msgid ""
36255 "L</guestfs_add_domain> provides some help for getting the correct attach "
36256 "method.  If you pass the C<live> option to this function, then (if the "
36257 "virtual machine is running) it will examine the libvirt XML looking for a "
36258 "virtio-serial channel to connect to:"
36259 msgstr ""
36260
36261 #. type: verbatim
36262 #: ../src/guestfs.pod:1030
36263 #, no-wrap
36264 msgid ""
36265 " <domain>\n"
36266 "   ...\n"
36267 "   <devices>\n"
36268 "     ...\n"
36269 "     <channel type='unix'>\n"
36270 "       <source mode='bind' path='/path/to/socket'/>\n"
36271 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36272 "     </channel>\n"
36273 "     ...\n"
36274 "   </devices>\n"
36275 " </domain>\n"
36276 "\n"
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:1042
36281 msgid ""
36282 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36283 "method to C<unix:/path/to/socket>."
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:1045
36288 msgid ""
36289 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36290 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36291 "to attach to and modify live virtual machines."
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:1049
36296 msgid ""
36297 "The virtual machine needs to have been set up beforehand so that it has the "
36298 "virtio-serial channel and so that guestfsd is running inside it."
36299 msgstr ""
36300
36301 #. type: =head2
36302 #: ../src/guestfs.pod:1053
36303 msgid "ABI GUARANTEE"
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:1055
36308 msgid ""
36309 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36310 "actions as outlined in this section.  Although we will deprecate some "
36311 "actions, for example if they get replaced by newer calls, we will keep the "
36312 "old actions forever.  This allows you the developer to program in confidence"
36313 " against the libguestfs API."
36314 msgstr ""
36315
36316 #. type: =head2
36317 #: ../src/guestfs.pod:1061
36318 msgid "BLOCK DEVICE NAMING"
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:1063
36323 msgid ""
36324 "In the kernel there is now quite a profusion of schemata for naming block "
36325 "devices (in this context, by I<block device> I mean a physical or virtual "
36326 "hard drive).  The original Linux IDE driver used names starting with "
36327 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme,"
36328 " C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36329 "replacement for the old IDE driver (particularly for SATA devices) those "
36330 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36331 "machines with paravirtualized drivers.  This has created several different "
36332 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36333 "Xen PV disks."
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:1075
36338 msgid ""
36339 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36340 "Linux kernel to access block devices.  We can run a variety of appliances "
36341 "based on a variety of Linux kernels."
36342 msgstr ""
36343
36344 #. type: textblock
36345 #: ../src/guestfs.pod:1079
36346 msgid ""
36347 "This causes a problem for libguestfs because many API calls use device or "
36348 "partition names.  Working scripts and the recipe (example) scripts that we "
36349 "make available over the internet could fail if the naming scheme changes."
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:1084
36354 msgid ""
36355 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36356 "Internally C</dev/sd*> names are translated, if necessary, to other names as"
36357 " required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any"
36358 " device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:1090
36363 msgid ""
36364 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>,"
36365 " L</guestfs_list_partitions> and similar calls return the true names of the "
36366 "devices and partitions as known to the appliance."
36367 msgstr ""
36368
36369 #. type: =head3
36370 #: ../src/guestfs.pod:1095
36371 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:1097
36376 msgid ""
36377 "Usually this translation is transparent.  However in some (very rare)  cases"
36378 " you may need to know the exact algorithm.  Such cases include where you use"
36379 " L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36380 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:1103
36385 msgid ""
36386 "The algorithm is applied only to I<parameters> which are known to be either "
36387 "device or partition names.  Return values from functions such as "
36388 "L</guestfs_list_devices> are never changed."
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:1111
36393 msgid "Is the string a parameter which is a device or partition name?"
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:1115
36398 msgid "Does the string begin with C</dev/sd>?"
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:1119
36403 msgid ""
36404 "Does the named device exist? If so, we use that device.  However if I<not> "
36405 "then we continue with this algorithm."
36406 msgstr ""
36407
36408 #. type: textblock
36409 #: ../src/guestfs.pod:1124
36410 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../src/guestfs.pod:1126
36415 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:1128
36420 msgid "If that named device exists, use it.  If not, continue."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:1132
36425 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36426 msgstr ""
36427
36428 #. type: textblock
36429 #: ../src/guestfs.pod:1134
36430 msgid "If that named device exists, use it.  If not, return an error."
36431 msgstr ""
36432
36433 #. type: =head3
36434 #: ../src/guestfs.pod:1138
36435 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36436 msgstr ""
36437
36438 #. type: textblock
36439 #: ../src/guestfs.pod:1140
36440 msgid ""
36441 "Although the standard naming scheme and automatic translation is useful for "
36442 "simple programs and guestfish scripts, for larger programs it is best not to"
36443 " rely on this mechanism."
36444 msgstr ""
36445
36446 #. type: textblock
36447 #: ../src/guestfs.pod:1144
36448 msgid ""
36449 "Where possible for maximum future portability programs using libguestfs "
36450 "should use these future-proof techniques:"
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../src/guestfs.pod:1151
36455 msgid ""
36456 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36457 "device names, and then use those names directly."
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:1154
36462 msgid ""
36463 "Since those device names exist by definition, they will never be translated."
36464 msgstr ""
36465
36466 #. type: textblock
36467 #: ../src/guestfs.pod:1159
36468 msgid ""
36469 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36470 "filesystem labels."
36471 msgstr ""
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:1166
36475 msgid ""
36476 "This section discusses security implications of using libguestfs, "
36477 "particularly with untrusted or malicious guests or disk images."
36478 msgstr ""
36479
36480 #. type: =head2
36481 #: ../src/guestfs.pod:1169
36482 msgid "GENERAL SECURITY CONSIDERATIONS"
36483 msgstr ""
36484
36485 #. type: textblock
36486 #: ../src/guestfs.pod:1171
36487 msgid ""
36488 "Be careful with any files or data that you download from a guest (by "
36489 "\"download\" we mean not just the L</guestfs_download> command but any "
36490 "command that reads files, filenames, directories or anything else from a "
36491 "disk image).  An attacker could manipulate the data to fool your program "
36492 "into doing the wrong thing.  Consider cases such as:"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:1181
36497 msgid "the data (file etc) not being present"
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:1185
36502 msgid "being present but empty"
36503 msgstr ""
36504
36505 #. type: textblock
36506 #: ../src/guestfs.pod:1189
36507 msgid "being much larger than normal"
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:1193
36512 msgid "containing arbitrary 8 bit data"
36513 msgstr ""
36514
36515 #. type: textblock
36516 #: ../src/guestfs.pod:1197
36517 msgid "being in an unexpected character encoding"
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:1201
36522 msgid "containing homoglyphs."
36523 msgstr ""
36524
36525 #. type: =head2
36526 #: ../src/guestfs.pod:1205
36527 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36528 msgstr ""
36529
36530 #. type: textblock
36531 #: ../src/guestfs.pod:1207
36532 msgid ""
36533 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36534 "(VFS) module can sometimes be escalated into exploits by deliberately "
36535 "creating a malicious, malformed filesystem.  These exploits are very severe "
36536 "for two reasons.  Firstly there are very many filesystem drivers in the "
36537 "kernel, and many of them are infrequently used and not much developer "
36538 "attention has been paid to the code.  Linux userspace helps potential "
36539 "crackers by detecting the filesystem type and automatically choosing the "
36540 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36541 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36542 "exploit (worse in some ways), giving immediate and total access to the "
36543 "system right down to the hardware level."
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:1220
36548 msgid ""
36549 "That explains why you should never mount a filesystem from an untrusted "
36550 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36551 "inside a qemu virtual machine, usually running as a non-root user.  The "
36552 "attacker would need to write a filesystem which first exploited the kernel, "
36553 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36554 "the libguestfs protocol, and finally to be as serious as the host kernel "
36555 "exploit it would need to escalate its privileges to root.  This multi-step "
36556 "escalation, performed by a static piece of data, is thought to be extremely "
36557 "hard to do, although we never say 'never' about security issues."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:1231
36562 msgid ""
36563 "In any case callers can reduce the attack surface by forcing the filesystem "
36564 "type when mounting (use L</guestfs_mount_vfs>)."
36565 msgstr ""
36566
36567 #. type: =head2
36568 #: ../src/guestfs.pod:1234
36569 msgid "PROTOCOL SECURITY"
36570 msgstr ""
36571
36572 #. type: textblock
36573 #: ../src/guestfs.pod:1236
36574 msgid ""
36575 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a"
36576 " defined upper message size.  However a program that uses libguestfs must "
36577 "also take care - for example you can write a program that downloads a binary"
36578 " from a disk image and executes it locally, and no amount of protocol "
36579 "security will save you from the consequences."
36580 msgstr ""
36581
36582 #. type: =head2
36583 #: ../src/guestfs.pod:1242
36584 msgid "INSPECTION SECURITY"
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:1244
36589 msgid ""
36590 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36591 "directly from the guest, and these could contain any 8 bit data.  Callers "
36592 "should be careful to escape these before printing them to a structured file "
36593 "(for example, use HTML escaping if creating a web page)."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../src/guestfs.pod:1250
36598 msgid ""
36599 "Guest configuration may be altered in unusual ways by the administrator of "
36600 "the virtual machine, and may not reflect reality (particularly for untrusted"
36601 " or actively malicious guests).  For example we parse the hostname from "
36602 "configuration files like C</etc/sysconfig/network> that we find in the "
36603 "guest, but the guest administrator can easily manipulate these files to "
36604 "provide the wrong hostname."
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../src/guestfs.pod:1258
36609 msgid ""
36610 "The inspection API parses guest configuration using two external libraries: "
36611 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36612 "designed to be robust in the face of malicious data, although denial of "
36613 "service attacks are still possible, for example with oversized configuration"
36614 " files."
36615 msgstr ""
36616
36617 #. type: =head2
36618 #: ../src/guestfs.pod:1264
36619 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36620 msgstr ""
36621
36622 #. type: textblock
36623 #: ../src/guestfs.pod:1266
36624 msgid ""
36625 "Be very cautious about running commands from the guest.  By running a "
36626 "command in the guest, you are giving CPU time to a binary that you do not "
36627 "control, under the same user account as the library, albeit wrapped in qemu "
36628 "virtualization.  More information and alternatives can be found in the "
36629 "section L</RUNNING COMMANDS>."
36630 msgstr ""
36631
36632 #. type: =head2
36633 #: ../src/guestfs.pod:1272
36634 msgid "CVE-2010-3851"
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:1274
36639 msgid "https://bugzilla.redhat.com/642934"
36640 msgstr ""
36641
36642 #. type: textblock
36643 #: ../src/guestfs.pod:1276
36644 msgid ""
36645 "This security bug concerns the automatic disk format detection that qemu "
36646 "does on disk images."
36647 msgstr ""
36648
36649 #. type: textblock
36650 #: ../src/guestfs.pod:1279
36651 msgid ""
36652 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36653 "images like qcow2 contain a special header.  Qemu deals with this by looking"
36654 " for one of the known headers, and if none is found then assuming the disk "
36655 "image must be raw."
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:1284
36660 msgid ""
36661 "This allows a guest which has been given a raw disk image to write some "
36662 "other header.  At next boot (or when the disk image is accessed by "
36663 "libguestfs) qemu would do autodetection and think the disk image format was,"
36664 " say, qcow2 based on the header written by the guest."
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:1289
36669 msgid ""
36670 "This in itself would not be a problem, but qcow2 offers many features, one "
36671 "of which is to allow a disk image to refer to another image (called the "
36672 "\"backing disk\").  It does this by placing the path to the backing disk "
36673 "into the qcow2 header.  This path is not validated and could point to any "
36674 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36675 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36676 "control of the attacker."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:1297
36681 msgid ""
36682 "In libguestfs this is rather hard to exploit except under two circumstances:"
36683 msgstr ""
36684
36685 #. type: textblock
36686 #: ../src/guestfs.pod:1304
36687 msgid "You have enabled the network or have opened the disk in write mode."
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:1308
36692 msgid ""
36693 "You are also running untrusted code from the guest (see L</RUNNING "
36694 "COMMANDS>)."
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:1313
36699 msgid ""
36700 "The way to avoid this is to specify the expected disk format when adding "
36701 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36702 "should always do this if the disk is raw format, and it's a good idea for "
36703 "other cases too."
36704 msgstr ""
36705
36706 #. type: textblock
36707 #: ../src/guestfs.pod:1318
36708 msgid ""
36709 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36710 "format is fetched from libvirt and passed through."
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:1321
36715 msgid ""
36716 "For libguestfs tools, use the I<--format> command line parameter as "
36717 "appropriate."
36718 msgstr ""
36719
36720 #. type: =head1
36721 #: ../src/guestfs.pod:1324
36722 msgid "CONNECTION MANAGEMENT"
36723 msgstr ""
36724
36725 #. type: =head2
36726 #: ../src/guestfs.pod:1326
36727 msgid "guestfs_h *"
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:1328
36732 msgid ""
36733 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36734 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36735 "handle and release all resources used."
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:1332
36740 msgid ""
36741 "For information on using multiple handles and threads, see the section "
36742 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36743 msgstr ""
36744
36745 #. type: =head2
36746 #: ../src/guestfs.pod:1335
36747 msgid "guestfs_create"
36748 msgstr ""
36749
36750 #. type: verbatim
36751 #: ../src/guestfs.pod:1337
36752 #, no-wrap
36753 msgid ""
36754 " guestfs_h *guestfs_create (void);\n"
36755 "\n"
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../src/guestfs.pod:1339
36760 msgid "Create a connection handle."
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:1341
36765 msgid ""
36766 "On success this returns a non-NULL pointer to a handle.  On error it returns"
36767 " NULL."
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:1344
36772 msgid ""
36773 "You have to \"configure\" the handle after creating it.  This includes "
36774 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36775 "handle at least once."
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:1348
36780 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36781 msgstr ""
36782
36783 #. type: textblock
36784 #: ../src/guestfs.pod:1350
36785 msgid ""
36786 "You may also want to configure error handling for the handle.  See the "
36787 "L</ERROR HANDLING> section below."
36788 msgstr ""
36789
36790 #. type: =head2
36791 #: ../src/guestfs.pod:1353
36792 msgid "guestfs_close"
36793 msgstr ""
36794
36795 #. type: verbatim
36796 #: ../src/guestfs.pod:1355
36797 #, no-wrap
36798 msgid ""
36799 " void guestfs_close (guestfs_h *g);\n"
36800 "\n"
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1357
36805 msgid "This closes the connection handle and frees up all resources used."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1359
36810 msgid ""
36811 "If autosync was set on the handle and the handle was launched, then this "
36812 "implicitly calls various functions to unmount filesystems and sync the disk."
36813 "  See L</guestfs_set_autosync> for more details."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:1363
36818 msgid "If a close callback was set on the handle, then it is called."
36819 msgstr ""
36820
36821 #. type: =head1
36822 #: ../src/guestfs.pod:1365
36823 msgid "ERROR HANDLING"
36824 msgstr ""
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:1367
36828 msgid ""
36829 "API functions can return errors.  For example, almost all functions that "
36830 "return C<int> will return C<-1> to indicate an error."
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:1370
36835 msgid ""
36836 "Additional information is available for errors: an error message string and "
36837 "optionally an error number (errno) if the thing that failed was a system "
36838 "call."
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:1374
36843 msgid ""
36844 "You can get at the additional information about the last error on the handle"
36845 " by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by "
36846 "setting up an error handler with L</guestfs_set_error_handler>."
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:1379
36851 msgid ""
36852 "When the handle is created, a default error handler is installed which "
36853 "prints the error message string to C<stderr>.  For small short-running "
36854 "command line programs it is sufficient to do:"
36855 msgstr ""
36856
36857 #. type: verbatim
36858 #: ../src/guestfs.pod:1383
36859 #, no-wrap
36860 msgid ""
36861 " if (guestfs_launch (g) == -1)\n"
36862 "   exit (EXIT_FAILURE);\n"
36863 "\n"
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:1386
36868 msgid ""
36869 "since the default error handler will ensure that an error message has been "
36870 "printed to C<stderr> before the program exits."
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:1389
36875 msgid ""
36876 "For other programs the caller will almost certainly want to install an "
36877 "alternate error handler or do error handling in-line like this:"
36878 msgstr ""
36879
36880 #. type: verbatim
36881 #: ../src/guestfs.pod:1392
36882 #, no-wrap
36883 msgid ""
36884 " /* This disables the default behaviour of printing errors\n"
36885 "    on stderr. */\n"
36886 " guestfs_set_error_handler (g, NULL, NULL);\n"
36887 " \n"
36888 msgstr ""
36889
36890 #. type: verbatim
36891 #: ../src/guestfs.pod:1396
36892 #, no-wrap
36893 msgid ""
36894 " if (guestfs_launch (g) == -1) {\n"
36895 "   /* Examine the error message and print it etc. */\n"
36896 "   char *msg = guestfs_last_error (g);\n"
36897 "   int errnum = guestfs_last_errno (g);\n"
36898 "   fprintf (stderr, \"%s\", msg);\n"
36899 "   if (errnum != 0)\n"
36900 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36901 "   fprintf (stderr, \"\\n\");\n"
36902 "   /* ... */\n"
36903 " }\n"
36904 "\n"
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:1407
36909 msgid ""
36910 "Out of memory errors are handled differently.  The default action is to call"
36911 " L<abort(3)>.  If this is undesirable, then you can set a handler using "
36912 "L</guestfs_set_out_of_memory_handler>."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:1411
36917 msgid ""
36918 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36919 "because there is no handle if this happens there is no way to get additional"
36920 " error information.  However L</guestfs_create> is supposed to be a "
36921 "lightweight operation which can only fail because of insufficient memory (it"
36922 " returns NULL in this case)."
36923 msgstr ""
36924
36925 #. type: =head2
36926 #: ../src/guestfs.pod:1417
36927 msgid "guestfs_last_error"
36928 msgstr ""
36929
36930 #. type: verbatim
36931 #: ../src/guestfs.pod:1419
36932 #, no-wrap
36933 msgid ""
36934 " const char *guestfs_last_error (guestfs_h *g);\n"
36935 "\n"
36936 msgstr ""
36937
36938 #. type: textblock
36939 #: ../src/guestfs.pod:1421
36940 msgid ""
36941 "This returns the last error message that happened on C<g>.  If there has not"
36942 " been an error since the handle was created, then this returns C<NULL>."
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:1425
36947 msgid ""
36948 "The lifetime of the returned string is until the next error occurs, or "
36949 "L</guestfs_close> is called."
36950 msgstr ""
36951
36952 #. type: =head2
36953 #: ../src/guestfs.pod:1428
36954 msgid "guestfs_last_errno"
36955 msgstr ""
36956
36957 #. type: verbatim
36958 #: ../src/guestfs.pod:1430
36959 #, no-wrap
36960 msgid ""
36961 " int guestfs_last_errno (guestfs_h *g);\n"
36962 "\n"
36963 msgstr ""
36964
36965 #. type: textblock
36966 #: ../src/guestfs.pod:1432
36967 msgid "This returns the last error number (errno) that happened on C<g>."
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../src/guestfs.pod:1434
36972 msgid "If successful, an errno integer not equal to zero is returned."
36973 msgstr ""
36974
36975 #. type: textblock
36976 #: ../src/guestfs.pod:1436
36977 msgid ""
36978 "If no error, this returns 0.  This call can return 0 in three situations:"
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:1443
36983 msgid "There has not been any error on the handle."
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:1447
36988 msgid ""
36989 "There has been an error but the errno was meaningless.  This corresponds to "
36990 "the case where the error did not come from a failed system call, but for "
36991 "some other reason."
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../src/guestfs.pod:1453
36996 msgid ""
36997 "There was an error from a failed system call, but for some reason the errno "
36998 "was not captured and returned.  This usually indicates a bug in libguestfs."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:1459
37003 msgid ""
37004 "Libguestfs tries to convert the errno from inside the applicance into a "
37005 "corresponding errno for the caller (not entirely trivial: the appliance "
37006 "might be running a completely different operating system from the library "
37007 "and error numbers are not standardized across Un*xen).  If this could not be"
37008 " done, then the error is translated to C<EINVAL>.  In practice this should "
37009 "only happen in very rare circumstances."
37010 msgstr ""
37011
37012 #. type: =head2
37013 #: ../src/guestfs.pod:1467
37014 msgid "guestfs_set_error_handler"
37015 msgstr ""
37016
37017 #. type: verbatim
37018 #: ../src/guestfs.pod:1469
37019 #, no-wrap
37020 msgid ""
37021 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37022 "                                           void *opaque,\n"
37023 "                                           const char *msg);\n"
37024 " void guestfs_set_error_handler (guestfs_h *g,\n"
37025 "                                 guestfs_error_handler_cb cb,\n"
37026 "                                 void *opaque);\n"
37027 "\n"
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:1476
37032 msgid ""
37033 "The callback C<cb> will be called if there is an error.  The parameters "
37034 "passed to the callback are an opaque data pointer and the error message "
37035 "string."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:1480
37040 msgid ""
37041 "C<errno> is not passed to the callback.  To get that the callback must call "
37042 "L</guestfs_last_errno>."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:1483
37047 msgid ""
37048 "Note that the message string C<msg> is freed as soon as the callback "
37049 "function returns, so if you want to stash it somewhere you must make your "
37050 "own copy."
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:1487
37055 msgid "The default handler prints messages on C<stderr>."
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:1489
37060 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37061 msgstr ""
37062
37063 #. type: =head2
37064 #: ../src/guestfs.pod:1491
37065 msgid "guestfs_get_error_handler"
37066 msgstr ""
37067
37068 #. type: verbatim
37069 #: ../src/guestfs.pod:1493
37070 #, no-wrap
37071 msgid ""
37072 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37073 "                                                     void **opaque_rtn);\n"
37074 "\n"
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../src/guestfs.pod:1496
37079 msgid "Returns the current error handler callback."
37080 msgstr ""
37081
37082 #. type: =head2
37083 #: ../src/guestfs.pod:1498
37084 msgid "guestfs_set_out_of_memory_handler"
37085 msgstr ""
37086
37087 #. type: verbatim
37088 #: ../src/guestfs.pod:1500
37089 #, no-wrap
37090 msgid ""
37091 " typedef void (*guestfs_abort_cb) (void);\n"
37092 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37093 "                                         guestfs_abort_cb);\n"
37094 "\n"
37095 msgstr ""
37096
37097 #. type: textblock
37098 #: ../src/guestfs.pod:1504
37099 msgid ""
37100 "The callback C<cb> will be called if there is an out of memory situation.  "
37101 "I<Note this callback must not return>."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:1507
37106 msgid "The default is to call L<abort(3)>."
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../src/guestfs.pod:1509
37111 msgid ""
37112 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37113 msgstr ""
37114
37115 #. type: =head2
37116 #: ../src/guestfs.pod:1512
37117 msgid "guestfs_get_out_of_memory_handler"
37118 msgstr ""
37119
37120 #. type: verbatim
37121 #: ../src/guestfs.pod:1514
37122 #, no-wrap
37123 msgid ""
37124 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37125 "\n"
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:1516
37130 msgid "This returns the current out of memory handler."
37131 msgstr ""
37132
37133 #. type: =head1
37134 #: ../src/guestfs.pod:1518
37135 msgid "API CALLS"
37136 msgstr ""
37137
37138 #. type: =head1
37139 #: ../src/guestfs.pod:1522
37140 msgid "STRUCTURES"
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:1524
37145 msgid "@STRUCTS@"
37146 msgstr ""
37147
37148 #. type: =head1
37149 #: ../src/guestfs.pod:1526
37150 msgid "AVAILABILITY"
37151 msgstr ""
37152
37153 #. type: =head2
37154 #: ../src/guestfs.pod:1528
37155 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:1530
37160 msgid ""
37161 "Using L</guestfs_available> you can test availability of the following "
37162 "groups of functions.  This test queries the appliance to see if the "
37163 "appliance you are currently using supports the functionality."
37164 msgstr ""
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:1535
37168 msgid "@AVAILABILITY@"
37169 msgstr ""
37170
37171 #. type: =head2
37172 #: ../src/guestfs.pod:1537
37173 msgid "GUESTFISH supported COMMAND"
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:1539
37178 msgid ""
37179 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37180 "prints out the available groups and whether they are supported by this build"
37181 " of libguestfs.  Note however that you have to do C<run> first."
37182 msgstr ""
37183
37184 #. type: =head2
37185 #: ../src/guestfs.pod:1544
37186 msgid "SINGLE CALLS AT COMPILE TIME"
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:1546
37191 msgid ""
37192 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37193 "function, such as:"
37194 msgstr ""
37195
37196 #. type: verbatim
37197 #: ../src/guestfs.pod:1549
37198 #, no-wrap
37199 msgid ""
37200 " #define LIBGUESTFS_HAVE_DD 1\n"
37201 "\n"
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:1551
37206 msgid "if L</guestfs_dd> is available."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:1553
37211 msgid ""
37212 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37213 "function is available at compile time, we recommended using build tools such"
37214 " as autoconf or cmake.  For example in autotools you could use:"
37215 msgstr ""
37216
37217 #. type: verbatim
37218 #: ../src/guestfs.pod:1558
37219 #, no-wrap
37220 msgid ""
37221 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37222 " AC_CHECK_FUNCS([guestfs_dd])\n"
37223 "\n"
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:1561
37228 msgid ""
37229 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined"
37230 " in your program."
37231 msgstr ""
37232
37233 #. type: =head2
37234 #: ../src/guestfs.pod:1564
37235 msgid "SINGLE CALLS AT RUN TIME"
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:1566
37240 msgid ""
37241 "Testing at compile time doesn't guarantee that a function really exists in "
37242 "the library.  The reason is that you might be dynamically linked against a "
37243 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37244 "This situation unfortunately results in a segmentation fault, which is a "
37245 "shortcoming of the C dynamic linking system itself."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:1573
37250 msgid ""
37251 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37252 "in this example program (note that you still need the compile time check as "
37253 "well):"
37254 msgstr ""
37255
37256 #. type: verbatim
37257 #: ../src/guestfs.pod:1577
37258 #, no-wrap
37259 msgid ""
37260 " #include <stdio.h>\n"
37261 " #include <stdlib.h>\n"
37262 " #include <unistd.h>\n"
37263 " #include <dlfcn.h>\n"
37264 " #include <guestfs.h>\n"
37265 " \n"
37266 msgstr ""
37267
37268 #. type: verbatim
37269 #: ../src/guestfs.pod:1583
37270 #, no-wrap
37271 msgid ""
37272 " main ()\n"
37273 " {\n"
37274 " #ifdef LIBGUESTFS_HAVE_DD\n"
37275 "   void *dl;\n"
37276 "   int has_function;\n"
37277 " \n"
37278 msgstr ""
37279
37280 #. type: verbatim
37281 #: ../src/guestfs.pod:1589
37282 #, no-wrap
37283 msgid ""
37284 "   /* Test if the function guestfs_dd is really available. */\n"
37285 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37286 "   if (!dl) {\n"
37287 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37288 "     exit (EXIT_FAILURE);\n"
37289 "   }\n"
37290 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37291 "   dlclose (dl);\n"
37292 " \n"
37293 msgstr ""
37294
37295 #. type: verbatim
37296 #: ../src/guestfs.pod:1598
37297 #, no-wrap
37298 msgid ""
37299 "   if (!has_function)\n"
37300 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37301 "   else {\n"
37302 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37303 "     /* Now it's safe to call\n"
37304 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37305 "     */\n"
37306 "   }\n"
37307 " #else\n"
37308 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37309 " #endif\n"
37310 "  }\n"
37311 "\n"
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../src/guestfs.pod:1611
37316 msgid ""
37317 "You may think the above is an awful lot of hassle, and it is.  There are "
37318 "other ways outside of the C linking system to ensure that this kind of "
37319 "incompatibility never arises, such as using package versioning:"
37320 msgstr ""
37321
37322 #. type: verbatim
37323 #: ../src/guestfs.pod:1616
37324 #, no-wrap
37325 msgid ""
37326 " Requires: libguestfs >= 1.0.80\n"
37327 "\n"
37328 msgstr ""
37329
37330 #. type: =head1
37331 #: ../src/guestfs.pod:1618
37332 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:1620
37337 msgid ""
37338 "A recent feature of the API is the introduction of calls which take optional"
37339 " arguments.  In C these are declared 3 ways.  The main way is as a call "
37340 "which takes variable arguments (ie. C<...>), as in this example:"
37341 msgstr ""
37342
37343 #. type: verbatim
37344 #: ../src/guestfs.pod:1625
37345 #, no-wrap
37346 msgid ""
37347 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37348 "\n"
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:1627
37353 msgid ""
37354 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37355 "call with no optional arguments specified:"
37356 msgstr ""
37357
37358 #. type: verbatim
37359 #: ../src/guestfs.pod:1630
37360 #, no-wrap
37361 msgid ""
37362 " guestfs_add_drive_opts (g, filename, -1);\n"
37363 "\n"
37364 msgstr ""
37365
37366 #. type: textblock
37367 #: ../src/guestfs.pod:1632
37368 msgid "With a single optional argument:"
37369 msgstr ""
37370
37371 #. type: verbatim
37372 #: ../src/guestfs.pod:1634
37373 #, no-wrap
37374 msgid ""
37375 " guestfs_add_drive_opts (g, filename,\n"
37376 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37377 "                         -1);\n"
37378 "\n"
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../src/guestfs.pod:1638
37383 msgid "With two:"
37384 msgstr ""
37385
37386 #. type: verbatim
37387 #: ../src/guestfs.pod:1640
37388 #, no-wrap
37389 msgid ""
37390 " guestfs_add_drive_opts (g, filename,\n"
37391 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37392 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37393 "                         -1);\n"
37394 "\n"
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../src/guestfs.pod:1645
37399 msgid ""
37400 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37401 "happen!"
37402 msgstr ""
37403
37404 #. type: =head2
37405 #: ../src/guestfs.pod:1648
37406 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37407 msgstr ""
37408
37409 #. type: textblock
37410 #: ../src/guestfs.pod:1650
37411 msgid ""
37412 "The second variant has the same name with the suffix C<_va>, which works the"
37413 " same way but takes a C<va_list>.  See the C manual for details.  For the "
37414 "example function, this is declared:"
37415 msgstr ""
37416
37417 #. type: verbatim
37418 #: ../src/guestfs.pod:1654
37419 #, no-wrap
37420 msgid ""
37421 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37422 "                                va_list args);\n"
37423 "\n"
37424 msgstr ""
37425
37426 #. type: =head2
37427 #: ../src/guestfs.pod:1657
37428 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37429 msgstr ""
37430
37431 #. type: textblock
37432 #: ../src/guestfs.pod:1659
37433 msgid ""
37434 "The third variant is useful where you need to construct these calls.  You "
37435 "pass in a structure where you fill in the optional fields.  The structure "
37436 "has a bitmask as the first element which you must set to indicate which "
37437 "fields you have filled in.  For our example function the structure and call "
37438 "are declared:"
37439 msgstr ""
37440
37441 #. type: verbatim
37442 #: ../src/guestfs.pod:1665
37443 #, no-wrap
37444 msgid ""
37445 " struct guestfs_add_drive_opts_argv {\n"
37446 "   uint64_t bitmask;\n"
37447 "   int readonly;\n"
37448 "   const char *format;\n"
37449 "   /* ... */\n"
37450 " };\n"
37451 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37452 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37453 "\n"
37454 msgstr ""
37455
37456 #. type: textblock
37457 #: ../src/guestfs.pod:1674
37458 msgid "You could call it like this:"
37459 msgstr ""
37460
37461 #. type: verbatim
37462 #: ../src/guestfs.pod:1676
37463 #, no-wrap
37464 msgid ""
37465 " struct guestfs_add_drive_opts_argv optargs = {\n"
37466 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37467 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37468 "   .readonly = 1,\n"
37469 "   .format = \"qcow2\"\n"
37470 " };\n"
37471 " \n"
37472 msgstr ""
37473
37474 #. type: verbatim
37475 #: ../src/guestfs.pod:1683
37476 #, no-wrap
37477 msgid ""
37478 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37479 "\n"
37480 msgstr ""
37481
37482 #. type: textblock
37483 #: ../src/guestfs.pod:1691
37484 msgid ""
37485 "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:1696
37490 msgid "You do not need to fill in all fields of the structure."
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:1700
37495 msgid ""
37496 "There must be a one-to-one correspondence between fields of the structure "
37497 "that are filled in, and bits set in the bitmask."
37498 msgstr ""
37499
37500 #. type: =head2
37501 #: ../src/guestfs.pod:1705
37502 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37503 msgstr ""
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:1707
37507 msgid ""
37508 "In other languages, optional arguments are expressed in the way that is "
37509 "natural for that language.  We refer you to the language-specific "
37510 "documentation for more details on that."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:1711
37515 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37516 msgstr ""
37517
37518 #. type: =head2
37519 #: ../src/guestfs.pod:1713
37520 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:1715
37525 msgid ""
37526 "B<Note:> This section documents the generic event mechanism introduced in "
37527 "libguestfs 1.10, which you should use in new code if possible.  The old "
37528 "functions C<guestfs_set_log_message_callback>, "
37529 "C<guestfs_set_subprocess_quit_callback>, "
37530 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37531 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37532 "page.  Because of the ABI guarantee, the old functions continue to work."
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../src/guestfs.pod:1724
37537 msgid ""
37538 "Handles generate events when certain things happen, such as log messages "
37539 "being generated, progress messages during long-running operations, or the "
37540 "handle being closed.  The API calls described below let you register a "
37541 "callback to be called when events happen.  You can register multiple "
37542 "callbacks (for the same, different or overlapping sets of events), and "
37543 "individually remove callbacks.  If callbacks are not removed, then they "
37544 "remain in force until the handle is closed."
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:1732
37549 msgid ""
37550 "In the current implementation, events are only generated synchronously: that"
37551 " means that events (and hence callbacks) can only happen while you are in "
37552 "the middle of making another libguestfs call.  The callback is called in the"
37553 " same thread."
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:1737
37558 msgid ""
37559 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37560 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37561 msgstr ""
37562
37563 #. type: =head3
37564 #: ../src/guestfs.pod:1741
37565 msgid "CLASSES OF EVENTS"
37566 msgstr ""
37567
37568 #. type: =item
37569 #: ../src/guestfs.pod:1745
37570 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:1748
37575 msgid ""
37576 "The callback function will be called while the handle is being closed "
37577 "(synchronously from L</guestfs_close>)."
37578 msgstr ""
37579
37580 #. type: textblock
37581 #: ../src/guestfs.pod:1751
37582 msgid ""
37583 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37584 "handles that are open when the program exits.  This means that this callback"
37585 " might be called indirectly from L<exit(3)>, which can cause unexpected "
37586 "problems in higher-level languages (eg. if your HLL interpreter has already "
37587 "been cleaned up by the time this is called, and if your callback then jumps "
37588 "into some HLL function)."
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:1758
37593 msgid ""
37594 "If no callback is registered: the handle is closed without any callback "
37595 "being invoked."
37596 msgstr ""
37597
37598 #. type: =item
37599 #: ../src/guestfs.pod:1761
37600 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:1764
37605 msgid ""
37606 "The callback function will be called when the child process quits, either "
37607 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37608 "corresponds to a transition from any state to the CONFIG state)."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37613 msgid "If no callback is registered: the event is ignored."
37614 msgstr ""
37615
37616 #. type: =item
37617 #: ../src/guestfs.pod:1770
37618 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:1773
37623 msgid ""
37624 "The callback function will be called when the child process becomes ready "
37625 "first time after it has been launched.  (This corresponds to a transition "
37626 "from LAUNCHING to the READY state)."
37627 msgstr ""
37628
37629 #. type: =item
37630 #: ../src/guestfs.pod:1779
37631 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37632 msgstr ""
37633
37634 #. type: textblock
37635 #: ../src/guestfs.pod:1782
37636 msgid ""
37637 "Some long-running operations can generate progress messages.  If this "
37638 "callback is registered, then it will be called each time a progress message "
37639 "is generated (usually two seconds after the operation started, and three "
37640 "times per second thereafter until it completes, although the frequency may "
37641 "change in future versions)."
37642 msgstr ""
37643
37644 #. type: textblock
37645 #: ../src/guestfs.pod:1788
37646 msgid ""
37647 "The callback receives in the payload four unsigned 64 bit numbers which are "
37648 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37649 msgstr ""
37650
37651 #. type: textblock
37652 #: ../src/guestfs.pod:1791
37653 msgid ""
37654 "The units of C<total> are not defined, although for some operations C<total>"
37655 " may relate in some way to the amount of data to be transferred (eg. in "
37656 "bytes or megabytes), and C<position> may be the portion which has been "
37657 "transferred."
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:1796
37662 msgid "The only defined and stable parts of the API are:"
37663 msgstr ""
37664
37665 #. type: textblock
37666 #: ../src/guestfs.pod:1802
37667 msgid ""
37668 "The callback can display to the user some type of progress bar or indicator "
37669 "which shows the ratio of C<position>:C<total>."
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:1807
37674 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1811
37679 msgid ""
37680 "If any progress notification is sent during a call, then a final progress "
37681 "notification is always sent when C<position> = C<total> (I<unless> the call "
37682 "fails with an error)."
37683 msgstr ""
37684
37685 #. type: textblock
37686 #: ../src/guestfs.pod:1815
37687 msgid ""
37688 "This is to simplify caller code, so callers can easily set the progress "
37689 "indicator to \"100%\" at the end of the operation, without requiring special"
37690 " code to detect this case."
37691 msgstr ""
37692
37693 #. type: textblock
37694 #: ../src/guestfs.pod:1821
37695 msgid ""
37696 "For some calls we are unable to estimate the progress of the call, but we "
37697 "can still generate progress messages to indicate activity.  This is known as"
37698 " \"pulse mode\", and is directly supported by certain progress bar "
37699 "implementations (eg. GtkProgressBar)."
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:1826
37704 msgid ""
37705 "For these calls, zero or more progress messages are generated with "
37706 "C<position = 0> and C<total = 1>, followed by a final message with "
37707 "C<position = total = 1>."
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../src/guestfs.pod:1830
37712 msgid ""
37713 "As noted above, if the call fails with an error then the final message may "
37714 "not be generated."
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../src/guestfs.pod:1835
37719 msgid ""
37720 "The callback also receives the procedure number (C<proc_nr>) and serial "
37721 "number (C<serial>) of the call.  These are only useful for debugging "
37722 "protocol issues, and the callback can normally ignore them.  The callback "
37723 "may want to print these numbers in error messages or debugging messages."
37724 msgstr ""
37725
37726 #. type: textblock
37727 #: ../src/guestfs.pod:1841
37728 msgid "If no callback is registered: progress messages are discarded."
37729 msgstr ""
37730
37731 #. type: =item
37732 #: ../src/guestfs.pod:1843
37733 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:1846
37738 msgid ""
37739 "The callback function is called whenever a log message is generated by qemu,"
37740 " the appliance kernel, guestfsd (daemon), or utility programs."
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:1849
37745 msgid ""
37746 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
37747 "(L</guestfs_launch>) then additional debug messages are generated."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37752 msgid ""
37753 "If no callback is registered: the messages are discarded unless the verbose "
37754 "flag is set in which case they are sent to stderr.  You can override the "
37755 "printing of verbose messages to stderr by setting up a callback."
37756 msgstr ""
37757
37758 #. type: =item
37759 #: ../src/guestfs.pod:1857
37760 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:1860
37765 msgid ""
37766 "The callback function is called whenever a log message is generated by the "
37767 "library part of libguestfs."
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../src/guestfs.pod:1863
37772 msgid ""
37773 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37774 "messages are generated."
37775 msgstr ""
37776
37777 #. type: =item
37778 #: ../src/guestfs.pod:1871
37779 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:1874
37784 msgid ""
37785 "The callback function is called whenever a trace message is generated.  This"
37786 " only applies if the trace flag (L</guestfs_set_trace>) is set."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:1877
37791 msgid ""
37792 "If no callback is registered: the messages are sent to stderr.  You can "
37793 "override the printing of trace messages to stderr by setting up a callback."
37794 msgstr ""
37795
37796 #. type: =item
37797 #: ../src/guestfs.pod:1881
37798 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37799 msgstr ""
37800
37801 #. type: textblock
37802 #: ../src/guestfs.pod:1884
37803 msgid ""
37804 "The callback function is called whenever a libguestfs function is entered."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:1887
37809 msgid ""
37810 "The payload is a string which contains the name of the function that we are "
37811 "entering (not including C<guestfs_> prefix)."
37812 msgstr ""
37813
37814 #. type: textblock
37815 #: ../src/guestfs.pod:1890
37816 msgid ""
37817 "Note that libguestfs functions can call themselves, so you may see many "
37818 "events from a single call.  A few libguestfs functions do not generate this "
37819 "event."
37820 msgstr ""
37821
37822 #. type: =head3
37823 #: ../src/guestfs.pod:1898
37824 msgid "guestfs_set_event_callback"
37825 msgstr ""
37826
37827 #. type: verbatim
37828 #: ../src/guestfs.pod:1900
37829 #, no-wrap
37830 msgid ""
37831 " int guestfs_set_event_callback (guestfs_h *g,\n"
37832 "                                 guestfs_event_callback cb,\n"
37833 "                                 uint64_t event_bitmask,\n"
37834 "                                 int flags,\n"
37835 "                                 void *opaque);\n"
37836 "\n"
37837 msgstr ""
37838
37839 #. type: textblock
37840 #: ../src/guestfs.pod:1906
37841 msgid ""
37842 "This function registers a callback (C<cb>) for all event classes in the "
37843 "C<event_bitmask>."
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:1909
37848 msgid ""
37849 "For example, to register for all log message events, you could call this "
37850 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>."
37851 "  To register a single callback for all possible classes of events, use "
37852 "C<GUESTFS_EVENT_ALL>."
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:1915
37857 msgid "C<flags> should always be passed as 0."
37858 msgstr ""
37859
37860 #. type: textblock
37861 #: ../src/guestfs.pod:1917
37862 msgid ""
37863 "C<opaque> is an opaque pointer which is passed to the callback.  You can use"
37864 " it for any purpose."
37865 msgstr ""
37866
37867 #. type: textblock
37868 #: ../src/guestfs.pod:1920
37869 msgid ""
37870 "The return value is the event handle (an integer) which you can use to "
37871 "delete the callback (see below)."
37872 msgstr ""
37873
37874 #. type: textblock
37875 #: ../src/guestfs.pod:1923
37876 msgid ""
37877 "If there is an error, this function returns C<-1>, and sets the error in the"
37878 " handle in the usual way (see L</guestfs_last_error> etc.)"
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:1926
37883 msgid ""
37884 "Callbacks remain in effect until they are deleted, or until the handle is "
37885 "closed."
37886 msgstr ""
37887
37888 #. type: textblock
37889 #: ../src/guestfs.pod:1929
37890 msgid ""
37891 "In the case where multiple callbacks are registered for a particular event "
37892 "class, all of the callbacks are called.  The order in which multiple "
37893 "callbacks are called is not defined."
37894 msgstr ""
37895
37896 #. type: =head3
37897 #: ../src/guestfs.pod:1933
37898 msgid "guestfs_delete_event_callback"
37899 msgstr ""
37900
37901 #. type: verbatim
37902 #: ../src/guestfs.pod:1935
37903 #, no-wrap
37904 msgid ""
37905 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37906 "\n"
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:1937
37911 msgid ""
37912 "Delete a callback that was previously registered.  C<event_handle> should be"
37913 " the integer that was returned by a previous call to "
37914 "C<guestfs_set_event_callback> on the same handle."
37915 msgstr ""
37916
37917 #. type: =head3
37918 #: ../src/guestfs.pod:1941
37919 msgid "guestfs_event_callback"
37920 msgstr ""
37921
37922 #. type: verbatim
37923 #: ../src/guestfs.pod:1943
37924 #, no-wrap
37925 msgid ""
37926 " typedef void (*guestfs_event_callback) (\n"
37927 "                  guestfs_h *g,\n"
37928 "                  void *opaque,\n"
37929 "                  uint64_t event,\n"
37930 "                  int event_handle,\n"
37931 "                  int flags,\n"
37932 "                  const char *buf, size_t buf_len,\n"
37933 "                  const uint64_t *array, size_t array_len);\n"
37934 "\n"
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../src/guestfs.pod:1952
37939 msgid ""
37940 "This is the type of the event callback function that you have to provide."
37941 msgstr ""
37942
37943 #. type: textblock
37944 #: ../src/guestfs.pod:1955
37945 msgid ""
37946 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37947 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37948 "handle, and C<flags> which in the current API you should ignore."
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:1959
37953 msgid ""
37954 "The remaining parameters contain the event payload (if any).  Each event may"
37955 " contain a payload, which usually relates to the event class, but for future"
37956 " proofing your code should be written to handle any payload for any event "
37957 "class."
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:1964
37962 msgid ""
37963 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37964 "there is no message buffer).  Note that this message buffer can contain "
37965 "arbitrary 8 bit data, including NUL bytes."
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:1968
37970 msgid ""
37971 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37972 "moment this is only used for progress messages."
37973 msgstr ""
37974
37975 #. type: =head3
37976 #: ../src/guestfs.pod:1971
37977 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:1973
37982 msgid ""
37983 "One motivation for the generic event API was to allow GUI programs to "
37984 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37985 "unconditionally to C<stderr>."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:1977
37990 msgid ""
37991 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37992 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37993 "messages are not events; you must capture error messages separately)."
37994 msgstr ""
37995
37996 #. type: textblock
37997 #: ../src/guestfs.pod:1982
37998 msgid ""
37999 "Programs have to set up a callback to capture the classes of events of "
38000 "interest:"
38001 msgstr ""
38002
38003 #. type: verbatim
38004 #: ../src/guestfs.pod:1985
38005 #, no-wrap
38006 msgid ""
38007 " int eh =\n"
38008 "   guestfs_set_event_callback\n"
38009 "     (g, message_callback,\n"
38010 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38011 "      GUESTFS_EVENT_TRACE,\n"
38012 "      0, NULL) == -1)\n"
38013 " if (eh == -1) {\n"
38014 "   // handle error in the usual way\n"
38015 " }\n"
38016 "\n"
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:1995
38021 msgid ""
38022 "The callback can then direct messages to the appropriate place.  In this "
38023 "example, messages are directed to syslog:"
38024 msgstr ""
38025
38026 #. type: verbatim
38027 #: ../src/guestfs.pod:1998
38028 #, no-wrap
38029 msgid ""
38030 " static void\n"
38031 " message_callback (\n"
38032 "         guestfs_h *g,\n"
38033 "         void *opaque,\n"
38034 "         uint64_t event,\n"
38035 "         int event_handle,\n"
38036 "         int flags,\n"
38037 "         const char *buf, size_t buf_len,\n"
38038 "         const uint64_t *array, size_t array_len)\n"
38039 " {\n"
38040 "   const int priority = LOG_USER|LOG_INFO;\n"
38041 "   if (buf_len > 0)\n"
38042 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38043 " }\n"
38044 "\n"
38045 msgstr ""
38046
38047 #. type: =head1
38048 #: ../src/guestfs.pod:2013
38049 msgid "CANCELLING LONG TRANSFERS"
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:2015
38054 msgid ""
38055 "Some operations can be cancelled by the caller while they are in progress.  "
38056 "Currently only operations that involve uploading or downloading data can be "
38057 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38058 "parameters in the generator)."
38059 msgstr ""
38060
38061 #. type: =head2
38062 #: ../src/guestfs.pod:2020
38063 msgid "guestfs_user_cancel"
38064 msgstr ""
38065
38066 #. type: verbatim
38067 #: ../src/guestfs.pod:2022
38068 #, no-wrap
38069 msgid ""
38070 " void guestfs_user_cancel (guestfs_h *g);\n"
38071 "\n"
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:2024
38076 msgid ""
38077 "C<guestfs_user_cancel> cancels the current upload or download operation."
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:2027
38082 msgid ""
38083 "Unlike most other libguestfs calls, this function is signal safe and thread "
38084 "safe.  You can call it from a signal handler or from another thread, without"
38085 " needing to do any locking."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:2031
38090 msgid ""
38091 "The transfer that was in progress (if there is one) will stop shortly "
38092 "afterwards, and will return an error.  The errno (see "
38093 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find"
38094 " out if the operation was cancelled or failed because of another error."
38095 msgstr ""
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:2037
38099 msgid ""
38100 "No cleanup is performed: for example, if a file was being uploaded then "
38101 "after cancellation there may be a partially uploaded file.  It is the "
38102 "caller's responsibility to clean up if necessary."
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../src/guestfs.pod:2041
38107 msgid ""
38108 "There are two common places that you might call C<guestfs_user_cancel>."
38109 msgstr ""
38110
38111 #. type: textblock
38112 #: ../src/guestfs.pod:2043
38113 msgid ""
38114 "In an interactive text-based program, you might call it from a C<SIGINT> "
38115 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38116 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38117 "receive the C<^C> signal)."
38118 msgstr ""
38119
38120 #. type: textblock
38121 #: ../src/guestfs.pod:2048
38122 msgid ""
38123 "In a graphical program, when the main thread is displaying a progress bar "
38124 "with a cancel button, wire up the cancel button to call this function."
38125 msgstr ""
38126
38127 #. type: =head1
38128 #: ../src/guestfs.pod:2052
38129 msgid "PRIVATE DATA AREA"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:2054
38134 msgid ""
38135 "You can attach named pieces of private data to the libguestfs handle, fetch "
38136 "them by name, and walk over them, for the lifetime of the handle.  This is "
38137 "called the private data area and is only available from the C API."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:2059
38142 msgid "To attach a named piece of data, use the following call:"
38143 msgstr ""
38144
38145 #. type: verbatim
38146 #: ../src/guestfs.pod:2061
38147 #, no-wrap
38148 msgid ""
38149 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38150 "\n"
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:2063
38155 msgid ""
38156 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38157 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38158 "overwritten."
38159 msgstr ""
38160
38161 #. type: textblock
38162 #: ../src/guestfs.pod:2067
38163 msgid ""
38164 "You can use any C<key> you want, but your key should I<not> start with an "
38165 "underscore character.  Keys beginning with an underscore character are "
38166 "reserved for internal libguestfs purposes (eg. for implementing language "
38167 "bindings).  It is recommended that you prefix the key with some unique "
38168 "string to avoid collisions with other users."
38169 msgstr ""
38170
38171 #. type: textblock
38172 #: ../src/guestfs.pod:2073
38173 msgid "To retrieve the pointer, use:"
38174 msgstr ""
38175
38176 #. type: verbatim
38177 #: ../src/guestfs.pod:2075
38178 #, no-wrap
38179 msgid ""
38180 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38181 "\n"
38182 msgstr ""
38183
38184 #. type: textblock
38185 #: ../src/guestfs.pod:2077
38186 msgid ""
38187 "This function returns C<NULL> if either no data is found associated with "
38188 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38189 "C<NULL>."
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../src/guestfs.pod:2081
38194 msgid ""
38195 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38196 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38197 "all.  In particular, libguestfs does I<not> try to free the data when the "
38198 "handle is closed.  If the data must be freed, then the caller must either "
38199 "free it before calling L</guestfs_close> or must set up a close callback to "
38200 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:2088
38205 msgid "To walk over all entries, use these two functions:"
38206 msgstr ""
38207
38208 #. type: verbatim
38209 #: ../src/guestfs.pod:2090
38210 #, no-wrap
38211 msgid ""
38212 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38213 "\n"
38214 msgstr ""
38215
38216 #. type: verbatim
38217 #: ../src/guestfs.pod:2092
38218 #, no-wrap
38219 msgid ""
38220 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38221 "\n"
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../src/guestfs.pod:2094
38226 msgid ""
38227 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does"
38228 " not have any particular meaning -- keys are not returned in any defined "
38229 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38230 "corresponding data pointer is returned from the function.  C<NULL> is "
38231 "returned if there are no keys stored in the handle."
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:2100
38236 msgid ""
38237 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38238 "value of this function is also C<NULL> is there are no further entries to "
38239 "return."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2104
38244 msgid "Notes about walking over entries:"
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../src/guestfs.pod:2110
38249 msgid ""
38250 "You must not call C<guestfs_set_private> while walking over the entries."
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:2115
38255 msgid ""
38256 "The handle maintains an internal iterator which is reset when you call "
38257 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38258 "call C<guestfs_set_private>."
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../src/guestfs.pod:2121
38263 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38264 msgstr ""
38265
38266 #. type: verbatim
38267 #: ../src/guestfs.pod:2123
38268 #, no-wrap
38269 msgid ""
38270 " guestfs_set_private (g, key, NULL);\n"
38271 "\n"
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:2125
38276 msgid "then that C<key> is not returned when walking."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:2129
38281 msgid ""
38282 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38283 "C<guestfs_next_private> or C<guestfs_set_private>."
38284 msgstr ""
38285
38286 #. type: textblock
38287 #: ../src/guestfs.pod:2135
38288 msgid ""
38289 "The following example code shows how to print all keys and data pointers "
38290 "that are associated with the handle C<g>:"
38291 msgstr ""
38292
38293 #. type: verbatim
38294 #: ../src/guestfs.pod:2138
38295 #, no-wrap
38296 msgid ""
38297 " const char *key;\n"
38298 " void *data = guestfs_first_private (g, &key);\n"
38299 " while (data != NULL)\n"
38300 "   {\n"
38301 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38302 "     data = guestfs_next_private (g, &key);\n"
38303 "   }\n"
38304 "\n"
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:2146
38309 msgid ""
38310 "More commonly you are only interested in keys that begin with an "
38311 "application-specific prefix C<foo_>.  Modify the loop like so:"
38312 msgstr ""
38313
38314 #. type: verbatim
38315 #: ../src/guestfs.pod:2149
38316 #, no-wrap
38317 msgid ""
38318 " const char *key;\n"
38319 " void *data = guestfs_first_private (g, &key);\n"
38320 " while (data != NULL)\n"
38321 "   {\n"
38322 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38323 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38324 "     data = guestfs_next_private (g, &key);\n"
38325 "   }\n"
38326 "\n"
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../src/guestfs.pod:2158
38331 msgid ""
38332 "If you need to modify keys while walking, then you have to jump back to the "
38333 "beginning of the loop.  For example, to delete all keys prefixed with "
38334 "C<foo_>:"
38335 msgstr ""
38336
38337 #. type: verbatim
38338 #: ../src/guestfs.pod:2162
38339 #, no-wrap
38340 msgid ""
38341 "  const char *key;\n"
38342 "  void *data;\n"
38343 " again:\n"
38344 "  data = guestfs_first_private (g, &key);\n"
38345 "  while (data != NULL)\n"
38346 "    {\n"
38347 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38348 "        {\n"
38349 "          guestfs_set_private (g, key, NULL);\n"
38350 "          /* note that 'key' pointer is now invalid, and so is\n"
38351 "             the internal iterator */\n"
38352 "          goto again;\n"
38353 "        }\n"
38354 "      data = guestfs_next_private (g, &key);\n"
38355 "    }\n"
38356 "\n"
38357 msgstr ""
38358
38359 #. type: textblock
38360 #: ../src/guestfs.pod:2178
38361 msgid ""
38362 "Note that the above loop is guaranteed to terminate because the keys are "
38363 "being deleted, but other manipulations of keys within the loop might not "
38364 "terminate unless you also maintain an indication of which keys have been "
38365 "visited."
38366 msgstr ""
38367
38368 #. type: =head1
38369 #: ../src/guestfs.pod:2183
38370 msgid "SYSTEMTAP"
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:2185
38375 msgid ""
38376 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38377 "true of any library, not just libguestfs.  However libguestfs also contains "
38378 "static markers to help in probing internal operations."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:2189
38383 msgid "You can list all the static markers by doing:"
38384 msgstr ""
38385
38386 #. type: verbatim
38387 #: ../src/guestfs.pod:2191
38388 #, no-wrap
38389 msgid ""
38390 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38391 "              .provider(\"guestfs\").mark(\"*\")'\n"
38392 "\n"
38393 msgstr ""
38394
38395 #. type: textblock
38396 #: ../src/guestfs.pod:2194
38397 msgid ""
38398 "B<Note:> These static markers are I<not> part of the stable API and may "
38399 "change in future versions."
38400 msgstr ""
38401
38402 #. type: =head2
38403 #: ../src/guestfs.pod:2197
38404 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:2199
38409 msgid ""
38410 "This script contains examples of displaying both the static markers and some"
38411 " ordinary C entry points:"
38412 msgstr ""
38413
38414 #. type: verbatim
38415 #: ../src/guestfs.pod:2202
38416 #, no-wrap
38417 msgid ""
38418 " global last;\n"
38419 " \n"
38420 msgstr ""
38421
38422 #. type: verbatim
38423 #: ../src/guestfs.pod:2204
38424 #, no-wrap
38425 msgid ""
38426 " function display_time () {\n"
38427 "       now = gettimeofday_us ();\n"
38428 "       delta = 0;\n"
38429 "       if (last > 0)\n"
38430 "             delta = now - last;\n"
38431 "       last = now;\n"
38432 " \n"
38433 msgstr ""
38434
38435 #. type: verbatim
38436 #: ../src/guestfs.pod:2211
38437 #, no-wrap
38438 msgid ""
38439 "       printf (\"%d (+%d):\", now, delta);\n"
38440 " }\n"
38441 " \n"
38442 msgstr ""
38443
38444 #. type: verbatim
38445 #: ../src/guestfs.pod:2214
38446 #, no-wrap
38447 msgid ""
38448 " probe begin {\n"
38449 "       last = 0;\n"
38450 "       printf (\"ready\\n\");\n"
38451 " }\n"
38452 " \n"
38453 msgstr ""
38454
38455 #. type: verbatim
38456 #: ../src/guestfs.pod:2219
38457 #, no-wrap
38458 msgid ""
38459 " /* Display all calls to static markers. */\n"
38460 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38461 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38462 "       display_time();\n"
38463 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38464 " }\n"
38465 " \n"
38466 msgstr ""
38467
38468 #. type: verbatim
38469 #: ../src/guestfs.pod:2226
38470 #, no-wrap
38471 msgid ""
38472 " /* Display all calls to guestfs_mkfs* functions. */\n"
38473 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38474 "           .function(\"guestfs_mkfs*\") ? {\n"
38475 "       display_time();\n"
38476 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38477 " }\n"
38478 "\n"
38479 msgstr ""
38480
38481 #. type: textblock
38482 #: ../src/guestfs.pod:2233
38483 msgid ""
38484 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38485 "program.  Note that you either have to be root, or you have to add yourself "
38486 "to several special stap groups.  Consult the systemtap documentation for "
38487 "more information."
38488 msgstr ""
38489
38490 #. type: verbatim
38491 #: ../src/guestfs.pod:2238
38492 #, no-wrap
38493 msgid ""
38494 " # stap /tmp/test.stap\n"
38495 " ready\n"
38496 "\n"
38497 msgstr ""
38498
38499 #. type: textblock
38500 #: ../src/guestfs.pod:2241
38501 msgid "In another terminal, run a guestfish command such as this:"
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:2245
38506 msgid "In the first terminal, stap trace output similar to this is shown:"
38507 msgstr ""
38508
38509 #. type: verbatim
38510 #: ../src/guestfs.pod:2247
38511 #, no-wrap
38512 msgid ""
38513 " 1318248056692655 (+0):\tlaunch_start\n"
38514 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38515 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38516 " 1318248056838059 (+19774):     launch_run_qemu\n"
38517 " 1318248061071167 (+4233108):   launch_end\n"
38518 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38519 "\n"
38520 msgstr ""
38521
38522 #. type: =end
38523 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38524 msgid "html"
38525 msgstr ""
38526
38527 #. type: textblock
38528 #: ../src/guestfs.pod:2256
38529 msgid ""
38530 "<!-- old anchor for the next section --> <a "
38531 "name=\"state_machine_and_low_level_event_api\"/>"
38532 msgstr ""
38533
38534 #. type: =head1
38535 #: ../src/guestfs.pod:2261
38536 msgid "ARCHITECTURE"
38537 msgstr ""
38538
38539 #. type: textblock
38540 #: ../src/guestfs.pod:2263
38541 msgid ""
38542 "Internally, libguestfs is implemented by running an appliance (a special "
38543 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38544 "process of the main program."
38545 msgstr ""
38546
38547 #. type: verbatim
38548 #: ../src/guestfs.pod:2267
38549 #, no-wrap
38550 msgid ""
38551 "  ___________________\n"
38552 " /                   \\\n"
38553 " | main program      |\n"
38554 " |                   |\n"
38555 " |                   |           child process / appliance\n"
38556 " |                   |           __________________________\n"
38557 " |                   |          / qemu                     \\\n"
38558 " +-------------------+   RPC    |      +-----------------+ |\n"
38559 " | libguestfs     <--------------------> guestfsd        | |\n"
38560 " |                   |          |      +-----------------+ |\n"
38561 " \\___________________/          |      | Linux kernel    | |\n"
38562 "                                |      +--^--------------+ |\n"
38563 "                                \\_________|________________/\n"
38564 "                                          |\n"
38565 "                                   _______v______\n"
38566 "                                  /              \\\n"
38567 "                                  | Device or    |\n"
38568 "                                  | disk image   |\n"
38569 "                                  \\______________/\n"
38570 "\n"
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:2287
38575 msgid ""
38576 "The library, linked to the main program, creates the child process and hence"
38577 " the appliance in the L</guestfs_launch> function."
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:2290
38582 msgid ""
38583 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38584 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38585 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38586 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs"
38587 " API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38588 "attached to the qemu process which translates device access by the "
38589 "appliance's Linux kernel into accesses to the image."
38590 msgstr ""
38591
38592 #. type: textblock
38593 #: ../src/guestfs.pod:2299
38594 msgid ""
38595 "A common misunderstanding is that the appliance \"is\" the virtual machine."
38596 "  Although the disk image you are attached to might also be used by some "
38597 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38598 "care if both libguestfs's qemu process and your virtual machine are trying "
38599 "to update the disk image at the same time, since these usually results in "
38600 "massive disk corruption)."
38601 msgstr ""
38602
38603 #. type: =head1
38604 #: ../src/guestfs.pod:2306
38605 msgid "STATE MACHINE"
38606 msgstr ""
38607
38608 #. type: textblock
38609 #: ../src/guestfs.pod:2308
38610 msgid "libguestfs uses a state machine to model the child process:"
38611 msgstr ""
38612
38613 #. type: verbatim
38614 #: ../src/guestfs.pod:2310
38615 #, no-wrap
38616 msgid ""
38617 "                         |\n"
38618 "                    guestfs_create\n"
38619 "                         |\n"
38620 "                         |\n"
38621 "                     ____V_____\n"
38622 "                    /          \\\n"
38623 "                    |  CONFIG  |\n"
38624 "                    \\__________/\n"
38625 "                     ^ ^   ^  \\\n"
38626 "                    /  |    \\  \\ guestfs_launch\n"
38627 "                   /   |    _\\__V______\n"
38628 "                  /    |   /           \\\n"
38629 "                 /     |   | LAUNCHING |\n"
38630 "                /      |   \\___________/\n"
38631 "               /       |       /\n"
38632 "              /        |  guestfs_launch\n"
38633 "             /         |     /\n"
38634 "    ______  /        __|____V\n"
38635 "   /      \\ ------> /        \\\n"
38636 "   | BUSY |         | READY  |\n"
38637 "   \\______/ <------ \\________/\n"
38638 "\n"
38639 msgstr ""
38640
38641 #. type: textblock
38642 #: ../src/guestfs.pod:2332
38643 msgid ""
38644 "The normal transitions are (1) CONFIG (when the handle is created, but there"
38645 " is no child process), (2) LAUNCHING (when the child process is booting up),"
38646 " (3) alternating between READY and BUSY as commands are issued to, and "
38647 "carried out by, the child process."
38648 msgstr ""
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:2337
38652 msgid ""
38653 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38654 "asynchronously at any time (eg. due to some internal error), and that causes"
38655 " the state to transition back to CONFIG."
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../src/guestfs.pod:2341
38660 msgid ""
38661 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38662 "issued when in the CONFIG state."
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:2344
38667 msgid ""
38668 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38669 "L</guestfs_launch> blocks until the child process is READY to accept "
38670 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38671 "moves the state from CONFIG to LAUNCHING while it is running."
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:2350
38676 msgid ""
38677 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38678 "state.  These API calls block waiting for the command to be carried out (ie."
38679 " the state to transition to BUSY and then back to READY).  There are no non-"
38680 "blocking versions, and no way to issue more than one command per handle at "
38681 "the same time."
38682 msgstr ""
38683
38684 #. type: textblock
38685 #: ../src/guestfs.pod:2356
38686 msgid ""
38687 "Finally, the child process sends asynchronous messages back to the main "
38688 "program, such as kernel log messages.  You can register a callback to "
38689 "receive these messages."
38690 msgstr ""
38691
38692 #. type: =head1
38693 #: ../src/guestfs.pod:2360
38694 msgid "INTERNALS"
38695 msgstr ""
38696
38697 #. type: =head2
38698 #: ../src/guestfs.pod:2362
38699 msgid "APPLIANCE BOOT PROCESS"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:2364
38704 msgid ""
38705 "This process has evolved and continues to evolve.  The description here "
38706 "corresponds only to the current version of libguestfs and is provided for "
38707 "information only."
38708 msgstr ""
38709
38710 #. type: textblock
38711 #: ../src/guestfs.pod:2368
38712 msgid ""
38713 "In order to follow the stages involved below, enable libguestfs debugging "
38714 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38715 msgstr ""
38716
38717 #. type: =item
38718 #: ../src/guestfs.pod:2373
38719 msgid "Create the appliance"
38720 msgstr ""
38721
38722 #. type: textblock
38723 #: ../src/guestfs.pod:2375
38724 msgid ""
38725 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38726 "initrd and the appliance."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../src/guestfs.pod:2378
38731 msgid ""
38732 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another"
38733 " directory if C<TMPDIR> is set)."
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:2381
38738 msgid ""
38739 "For a complete description of how the appliance is created and cached, read "
38740 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38741 msgstr ""
38742
38743 #. type: =item
38744 #: ../src/guestfs.pod:2385
38745 msgid "Start qemu and boot the kernel"
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:2387
38750 msgid "qemu is invoked to boot the kernel."
38751 msgstr ""
38752
38753 #. type: =item
38754 #: ../src/guestfs.pod:2389
38755 msgid "Run the initrd"
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../src/guestfs.pod:2391
38760 msgid ""
38761 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the"
38762 " appliance.  The purpose of the initrd is to load enough kernel modules in "
38763 "order that the appliance itself can be mounted and started."
38764 msgstr ""
38765
38766 #. type: textblock
38767 #: ../src/guestfs.pod:2395
38768 msgid ""
38769 "The initrd is a cpio archive called "
38770 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../src/guestfs.pod:2398
38775 msgid ""
38776 "When the initrd has started you will see messages showing that kernel "
38777 "modules are being loaded, similar to this:"
38778 msgstr ""
38779
38780 #. type: verbatim
38781 #: ../src/guestfs.pod:2401
38782 #, no-wrap
38783 msgid ""
38784 " febootstrap: ext2 mini initrd starting up\n"
38785 " febootstrap: mounting /sys\n"
38786 " febootstrap: internal insmod libcrc32c.ko\n"
38787 " febootstrap: internal insmod crc32c-intel.ko\n"
38788 "\n"
38789 msgstr ""
38790
38791 #. type: =item
38792 #: ../src/guestfs.pod:2406
38793 msgid "Find and mount the appliance device"
38794 msgstr ""
38795
38796 #. type: textblock
38797 #: ../src/guestfs.pod:2408
38798 msgid ""
38799 "The appliance is a sparse file containing an ext2 filesystem which contains "
38800 "a familiar (although reduced in size) Linux operating system.  It would "
38801 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38802 msgstr ""
38803
38804 #. type: textblock
38805 #: ../src/guestfs.pod:2412
38806 msgid ""
38807 "The regular disks being inspected by libguestfs are the first devices "
38808 "exposed by qemu (eg. as C</dev/vda>)."
38809 msgstr ""
38810
38811 #. type: textblock
38812 #: ../src/guestfs.pod:2415
38813 msgid ""
38814 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38815 "there was only one regular disk)."
38816 msgstr ""
38817
38818 #. type: textblock
38819 #: ../src/guestfs.pod:2418
38820 msgid ""
38821 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38822 "and switch root into the appliance, and run C</init> from the appliance."
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../src/guestfs.pod:2422
38827 msgid "If this works successfully you will see messages such as:"
38828 msgstr ""
38829
38830 #. type: verbatim
38831 #: ../src/guestfs.pod:2424
38832 #, no-wrap
38833 msgid ""
38834 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38835 " febootstrap: creating /dev/root as block special 252:16\n"
38836 " febootstrap: mounting new root on /root\n"
38837 " febootstrap: chroot\n"
38838 " Starting /init script ...\n"
38839 "\n"
38840 msgstr ""
38841
38842 #. type: textblock
38843 #: ../src/guestfs.pod:2430
38844 msgid ""
38845 "Note that C<Starting /init script ...> indicates that the appliance's init "
38846 "script is now running."
38847 msgstr ""
38848
38849 #. type: =item
38850 #: ../src/guestfs.pod:2433
38851 msgid "Initialize the appliance"
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:2435
38856 msgid ""
38857 "The appliance itself now initializes itself.  This involves starting certain"
38858 " processes like C<udev>, possibly printing some debug information, and "
38859 "finally running the daemon (C<guestfsd>)."
38860 msgstr ""
38861
38862 #. type: =item
38863 #: ../src/guestfs.pod:2439
38864 msgid "The daemon"
38865 msgstr ""
38866
38867 #. type: textblock
38868 #: ../src/guestfs.pod:2441
38869 msgid ""
38870 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38871 "should see:"
38872 msgstr ""
38873
38874 #. type: verbatim
38875 #: ../src/guestfs.pod:2444
38876 #, no-wrap
38877 msgid ""
38878 " verbose daemon enabled\n"
38879 "\n"
38880 msgstr ""
38881
38882 #. type: textblock
38883 #: ../src/guestfs.pod:2446
38884 msgid ""
38885 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38886 "connected on the other end to the library."
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:2449
38891 msgid ""
38892 "The daemon connects to this port (and hence to the library) and sends a four"
38893 " byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38894 "protocol (see below)."
38895 msgstr ""
38896
38897 #. type: =head2
38898 #: ../src/guestfs.pod:2455
38899 msgid "COMMUNICATION PROTOCOL"
38900 msgstr ""
38901
38902 #. type: textblock
38903 #: ../src/guestfs.pod:2457
38904 msgid ""
38905 "Don't rely on using this protocol directly.  This section documents how it "
38906 "currently works, but it may change at any time."
38907 msgstr ""
38908
38909 #. type: textblock
38910 #: ../src/guestfs.pod:2460
38911 msgid ""
38912 "The protocol used to talk between the library and the daemon running inside "
38913 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38914 "1014, RFC 1832, RFC 4506)."
38915 msgstr ""
38916
38917 #. type: textblock
38918 #: ../src/guestfs.pod:2464
38919 msgid ""
38920 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38921 "this file is automatically generated)."
38922 msgstr ""
38923
38924 #. type: textblock
38925 #: ../src/guestfs.pod:2467
38926 msgid ""
38927 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38928 "and C<FileOut> parameters, which are handled with very simple request/reply "
38929 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38930 "parameters, which use the same request and reply messages, but they may also"
38931 " be followed by files sent using a chunked encoding."
38932 msgstr ""
38933
38934 #. type: =head3
38935 #: ../src/guestfs.pod:2474
38936 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38937 msgstr ""
38938
38939 #. type: textblock
38940 #: ../src/guestfs.pod:2476
38941 msgid "For ordinary functions, the request message is:"
38942 msgstr ""
38943
38944 #. type: verbatim
38945 #: ../src/guestfs.pod:2478
38946 #, no-wrap
38947 msgid ""
38948 " total length (header + arguments,\n"
38949 "      but not including the length word itself)\n"
38950 " struct guestfs_message_header (encoded as XDR)\n"
38951 " struct guestfs_<foo>_args (encoded as XDR)\n"
38952 "\n"
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../src/guestfs.pod:2483
38957 msgid ""
38958 "The total length field allows the daemon to allocate a fixed size buffer "
38959 "into which it slurps the rest of the message.  As a result, the total length"
38960 " is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the"
38961 " effective size of any request is limited to somewhere under this size."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:2489
38966 msgid ""
38967 "Note also that many functions don't take any arguments, in which case the "
38968 "C<guestfs_I<foo>_args> is completely omitted."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:2492
38973 msgid ""
38974 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38975 "receiver knows what type of args structure to expect, or none at all."
38976 msgstr ""
38977
38978 #. type: textblock
38979 #: ../src/guestfs.pod:2496
38980 msgid ""
38981 "For functions that take optional arguments, the optional arguments are "
38982 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38983 "arguments.  A bitmask in the header indicates which optional arguments are "
38984 "meaningful.  The bitmask is also checked to see if it contains bits set "
38985 "which the daemon does not know about (eg. if more optional arguments were "
38986 "added in a later version of the library), and this causes the call to be "
38987 "rejected."
38988 msgstr ""
38989
38990 #. type: textblock
38991 #: ../src/guestfs.pod:2504
38992 msgid "The reply message for ordinary functions is:"
38993 msgstr ""
38994
38995 #. type: verbatim
38996 #: ../src/guestfs.pod:2506
38997 #, no-wrap
38998 msgid ""
38999 " total length (header + ret,\n"
39000 "      but not including the length word itself)\n"
39001 " struct guestfs_message_header (encoded as XDR)\n"
39002 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39003 "\n"
39004 msgstr ""
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:2511
39008 msgid ""
39009 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39010 "functions that return no formal return values."
39011 msgstr ""
39012
39013 #. type: textblock
39014 #: ../src/guestfs.pod:2514
39015 msgid ""
39016 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39017 msgstr ""
39018
39019 #. type: textblock
39020 #: ../src/guestfs.pod:2517
39021 msgid ""
39022 "In the case of an error, a flag is set in the header, and the reply message "
39023 "is slightly changed:"
39024 msgstr ""
39025
39026 #. type: verbatim
39027 #: ../src/guestfs.pod:2520
39028 #, no-wrap
39029 msgid ""
39030 " total length (header + error,\n"
39031 "      but not including the length word itself)\n"
39032 " struct guestfs_message_header (encoded as XDR)\n"
39033 " struct guestfs_message_error (encoded as XDR)\n"
39034 "\n"
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:2525
39039 msgid ""
39040 "The C<guestfs_message_error> structure contains the error message as a "
39041 "string."
39042 msgstr ""
39043
39044 #. type: =head3
39045 #: ../src/guestfs.pod:2528
39046 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../src/guestfs.pod:2530
39051 msgid ""
39052 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39053 "The normal request message is sent (see above).  However this is followed by"
39054 " a sequence of file chunks."
39055 msgstr ""
39056
39057 #. type: verbatim
39058 #: ../src/guestfs.pod:2534
39059 #, no-wrap
39060 msgid ""
39061 " total length (header + arguments,\n"
39062 "      but not including the length word itself,\n"
39063 "      and not including the chunks)\n"
39064 " struct guestfs_message_header (encoded as XDR)\n"
39065 " struct guestfs_<foo>_args (encoded as XDR)\n"
39066 " sequence of chunks for FileIn param #0\n"
39067 " sequence of chunks for FileIn param #1 etc.\n"
39068 "\n"
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../src/guestfs.pod:2542
39073 msgid "The \"sequence of chunks\" is:"
39074 msgstr ""
39075
39076 #. type: verbatim
39077 #: ../src/guestfs.pod:2544
39078 #, no-wrap
39079 msgid ""
39080 " length of chunk (not including length word itself)\n"
39081 " struct guestfs_chunk (encoded as XDR)\n"
39082 " length of chunk\n"
39083 " struct guestfs_chunk (encoded as XDR)\n"
39084 "   ...\n"
39085 " length of chunk\n"
39086 " struct guestfs_chunk (with data.data_len == 0)\n"
39087 "\n"
39088 msgstr ""
39089
39090 #. type: textblock
39091 #: ../src/guestfs.pod:2552
39092 msgid ""
39093 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39094 "is set in the final chunk to indicate either successful completion or early "
39095 "cancellation."
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2556
39100 msgid ""
39101 "At time of writing there are no functions that have more than one FileIn "
39102 "parameter.  However this is (theoretically) supported, by sending the "
39103 "sequence of chunks for each FileIn parameter one after another (from left to"
39104 " right)."
39105 msgstr ""
39106
39107 #. type: textblock
39108 #: ../src/guestfs.pod:2561
39109 msgid ""
39110 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39111 "transfer.  The library does this by sending a chunk with a special flag set "
39112 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39113 "RPC, does I<not> send any reply, and goes back to reading the next request."
39114 msgstr ""
39115
39116 #. type: textblock
39117 #: ../src/guestfs.pod:2567
39118 msgid ""
39119 "The daemon may also cancel.  It does this by writing a special word "
39120 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39121 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39122 "cancel chunk).  The special word is chosen so that even if cancellation "
39123 "happens right at the end of the transfer (after the library has finished "
39124 "writing and has started listening for the reply), the \"spurious\" cancel "
39125 "flag will not be confused with the reply message."
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:2576
39130 msgid ""
39131 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39132 "limit), and also files where the size is not known in advance (eg. from "
39133 "pipes or sockets).  However the chunks are rather small "
39134 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need"
39135 " to keep much in memory."
39136 msgstr ""
39137
39138 #. type: =head3
39139 #: ../src/guestfs.pod:2582
39140 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../src/guestfs.pod:2584
39145 msgid ""
39146 "The protocol for FileOut parameters is exactly the same as for FileIn "
39147 "parameters, but with the roles of daemon and library reversed."
39148 msgstr ""
39149
39150 #. type: verbatim
39151 #: ../src/guestfs.pod:2587
39152 #, no-wrap
39153 msgid ""
39154 " total length (header + ret,\n"
39155 "      but not including the length word itself,\n"
39156 "      and not including the chunks)\n"
39157 " struct guestfs_message_header (encoded as XDR)\n"
39158 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39159 " sequence of chunks for FileOut param #0\n"
39160 " sequence of chunks for FileOut param #1 etc.\n"
39161 "\n"
39162 msgstr ""
39163
39164 #. type: =head3
39165 #: ../src/guestfs.pod:2595
39166 msgid "INITIAL MESSAGE"
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:2597
39171 msgid ""
39172 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39173 "which indicates that the guest and daemon is alive.  This is what "
39174 "L</guestfs_launch> waits for."
39175 msgstr ""
39176
39177 #. type: =head3
39178 #: ../src/guestfs.pod:2601
39179 msgid "PROGRESS NOTIFICATION MESSAGES"
39180 msgstr ""
39181
39182 #. type: textblock
39183 #: ../src/guestfs.pod:2603
39184 msgid ""
39185 "The daemon may send progress notification messages at any time.  These are "
39186 "distinguished by the normal length word being replaced by "
39187 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39188 msgstr ""
39189
39190 #. type: textblock
39191 #: ../src/guestfs.pod:2607
39192 msgid ""
39193 "The library turns them into progress callbacks (see "
39194 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39195 "them if not."
39196 msgstr ""
39197
39198 #. type: textblock
39199 #: ../src/guestfs.pod:2611
39200 msgid ""
39201 "The daemon self-limits the frequency of progress messages it sends (see "
39202 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39203 "messages."
39204 msgstr ""
39205
39206 #. type: =head1
39207 #: ../src/guestfs.pod:2615
39208 msgid "LIBGUESTFS VERSION NUMBERS"
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2617
39213 msgid ""
39214 "Since April 2010, libguestfs has started to make separate development and "
39215 "stable releases, along with corresponding branches in our git repository.  "
39216 "These separate releases can be identified by version number:"
39217 msgstr ""
39218
39219 #. type: verbatim
39220 #: ../src/guestfs.pod:2622
39221 #, no-wrap
39222 msgid ""
39223 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39224 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39225 "       |\n"
39226 "       v\n"
39227 " 1  .  3  .  5\n"
39228 " ^           ^\n"
39229 " |           |\n"
39230 " |           `-------- sub-version\n"
39231 " |\n"
39232 " `------ always '1' because we don't change the ABI\n"
39233 "\n"
39234 msgstr ""
39235
39236 #. type: textblock
39237 #: ../src/guestfs.pod:2633
39238 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39239 msgstr ""
39240
39241 #. type: textblock
39242 #: ../src/guestfs.pod:2635
39243 msgid ""
39244 "As time passes we cherry pick fixes from the development branch and backport"
39245 " those into the stable branch, the effect being that the stable branch "
39246 "should get more stable and less buggy over time.  So the stable releases are"
39247 " ideal for people who don't need new features but would just like the "
39248 "software to work."
39249 msgstr ""
39250
39251 #. type: textblock
39252 #: ../src/guestfs.pod:2641
39253 msgid "Our criteria for backporting changes are:"
39254 msgstr ""
39255
39256 #. type: textblock
39257 #: ../src/guestfs.pod:2647
39258 msgid ""
39259 "Documentation changes which don't affect any code are backported unless the "
39260 "documentation refers to a future feature which is not in stable."
39261 msgstr ""
39262
39263 #. type: textblock
39264 #: ../src/guestfs.pod:2653
39265 msgid ""
39266 "Bug fixes which are not controversial, fix obvious problems, and have been "
39267 "well tested are backported."
39268 msgstr ""
39269
39270 #. type: textblock
39271 #: ../src/guestfs.pod:2658
39272 msgid ""
39273 "Simple rearrangements of code which shouldn't affect how it works get "
39274 "backported.  This is so that the code in the two branches doesn't get too "
39275 "far out of step, allowing us to backport future fixes more easily."
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../src/guestfs.pod:2664
39280 msgid ""
39281 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39282 "exceptional case: the new feature is required in order to implement an "
39283 "important bug fix."
39284 msgstr ""
39285
39286 #. type: textblock
39287 #: ../src/guestfs.pod:2670
39288 msgid ""
39289 "A new stable branch starts when we think the new features in development are"
39290 " substantial and compelling enough over the current stable branch to warrant"
39291 " it.  When that happens we create new stable and development versions 1.N.0 "
39292 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39293 "stable at this point, but by backporting fixes from development, that branch"
39294 " will stabilize over time."
39295 msgstr ""
39296
39297 #. type: =head1
39298 #: ../src/guestfs.pod:2678
39299 msgid "EXTENDING LIBGUESTFS"
39300 msgstr ""
39301
39302 #. type: =head2
39303 #: ../src/guestfs.pod:2680
39304 msgid "ADDING A NEW API ACTION"
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../src/guestfs.pod:2682
39309 msgid ""
39310 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39311 "documentation) are generated, and this makes it easy to extend the "
39312 "libguestfs API."
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../src/guestfs.pod:2686
39317 msgid "To add a new API action there are two changes:"
39318 msgstr ""
39319
39320 #. type: textblock
39321 #: ../src/guestfs.pod:2692
39322 msgid ""
39323 "You need to add a description of the call (name, parameters, return type, "
39324 "tests, documentation) to C<generator/generator_actions.ml>."
39325 msgstr ""
39326
39327 #. type: textblock
39328 #: ../src/guestfs.pod:2695
39329 msgid ""
39330 "There are two sorts of API action, depending on whether the call goes "
39331 "through to the daemon in the appliance, or is serviced entirely by the "
39332 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the"
39333 " former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39334 "an example of the latter, since a trace flag is maintained in the handle and"
39335 " all tracing is done on the library side."
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:2703
39340 msgid ""
39341 "Most new actions are of the first type, and get added to the "
39342 "C<daemon_functions> list.  Each function has a unique procedure number used "
39343 "in the RPC protocol which is assigned to that action when we publish "
39344 "libguestfs and cannot be reused.  Take the latest procedure number and "
39345 "increment it."
39346 msgstr ""
39347
39348 #. type: textblock
39349 #: ../src/guestfs.pod:2709
39350 msgid ""
39351 "For library-only actions of the second type, add to the "
39352 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39353 "library and do not travel over the RPC mechanism to the daemon, these "
39354 "functions do not need a procedure number, and so the procedure number is set"
39355 " to C<-1>."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:2717
39360 msgid "Implement the action (in C):"
39361 msgstr ""
39362
39363 #. type: textblock
39364 #: ../src/guestfs.pod:2719
39365 msgid ""
39366 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39367 "C<daemon/> directory."
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:2722
39372 msgid ""
39373 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39374 "(note: double underscore) in the C<src/> directory."
39375 msgstr ""
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:2725
39379 msgid "In either case, use another function as an example of what to do."
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:2729
39384 msgid "After making these changes, use C<make> to compile."
39385 msgstr ""
39386
39387 #. type: textblock
39388 #: ../src/guestfs.pod:2731
39389 msgid ""
39390 "Note that you don't need to implement the RPC, language bindings, manual "
39391 "pages or anything else.  It's all automatically generated from the OCaml "
39392 "description."
39393 msgstr ""
39394
39395 #. type: =head2
39396 #: ../src/guestfs.pod:2735
39397 msgid "ADDING TESTS FOR AN API ACTION"
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:2737
39402 msgid ""
39403 "You can supply zero or as many tests as you want per API call.  The tests "
39404 "can either be added as part of the API description "
39405 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39406 "drop a script into C<regressions/>.  Note that adding a script to "
39407 "C<regressions/> is slower, so if possible use the first method."
39408 msgstr ""
39409
39410 #. type: textblock
39411 #: ../src/guestfs.pod:2743
39412 msgid ""
39413 "The following describes the test environment used when you add an API test "
39414 "in C<generator_actions.ml>."
39415 msgstr ""
39416
39417 #. type: textblock
39418 #: ../src/guestfs.pod:2746
39419 msgid "The test environment has 4 block devices:"
39420 msgstr ""
39421
39422 #. type: =item
39423 #: ../src/guestfs.pod:2750
39424 msgid "C</dev/sda> 500MB"
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:2752
39429 msgid "General block device for testing."
39430 msgstr ""
39431
39432 #. type: =item
39433 #: ../src/guestfs.pod:2754
39434 msgid "C</dev/sdb> 50MB"
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:2756
39439 msgid ""
39440 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39441 "operations."
39442 msgstr ""
39443
39444 #. type: =item
39445 #: ../src/guestfs.pod:2759
39446 msgid "C</dev/sdc> 10MB"
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../src/guestfs.pod:2761
39451 msgid "Used in a few tests where two block devices are needed."
39452 msgstr ""
39453
39454 #. type: =item
39455 #: ../src/guestfs.pod:2763
39456 msgid "C</dev/sdd>"
39457 msgstr ""
39458
39459 #. type: textblock
39460 #: ../src/guestfs.pod:2765
39461 msgid "ISO with fixed content (see C<images/test.iso>)."
39462 msgstr ""
39463
39464 #. type: textblock
39465 #: ../src/guestfs.pod:2769
39466 msgid ""
39467 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39468 "appliance and block devices are reused between tests.  So don't try testing "
39469 "L</guestfs_kill_subprocess> :-x"
39470 msgstr ""
39471
39472 #. type: textblock
39473 #: ../src/guestfs.pod:2773
39474 msgid ""
39475 "Each test starts with an initial scenario, selected using one of the "
39476 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39477 "initialize the disks mentioned above in a particular way as documented in "
39478 "C<generator_types.ml>.  You should not assume anything about the previous "
39479 "contents of other disks that are not initialized."
39480 msgstr ""
39481
39482 #. type: textblock
39483 #: ../src/guestfs.pod:2779
39484 msgid ""
39485 "You can add a prerequisite clause to any individual test.  This is a run-"
39486 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39487 "testing a command which might not work on all variations of libguestfs "
39488 "builds.  A test that has prerequisite of C<Always> means to run "
39489 "unconditionally."
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../src/guestfs.pod:2785
39494 msgid ""
39495 "In addition, packagers can skip individual tests by setting environment "
39496 "variables before running C<make check>."
39497 msgstr ""
39498
39499 #. type: verbatim
39500 #: ../src/guestfs.pod:2788
39501 #, no-wrap
39502 msgid ""
39503 " SKIP_TEST_<CMD>_<NUM>=1\n"
39504 "\n"
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../src/guestfs.pod:2790
39509 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../src/guestfs.pod:2792
39514 msgid "or:"
39515 msgstr ""
39516
39517 #. type: verbatim
39518 #: ../src/guestfs.pod:2794
39519 #, no-wrap
39520 msgid ""
39521 " SKIP_TEST_<CMD>=1\n"
39522 "\n"
39523 msgstr ""
39524
39525 #. type: textblock
39526 #: ../src/guestfs.pod:2796
39527 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39528 msgstr ""
39529
39530 #. type: textblock
39531 #: ../src/guestfs.pod:2798
39532 msgid "Packagers can run only certain tests by setting for example:"
39533 msgstr ""
39534
39535 #. type: verbatim
39536 #: ../src/guestfs.pod:2800
39537 #, no-wrap
39538 msgid ""
39539 " TEST_ONLY=\"vfs_type zerofree\"\n"
39540 "\n"
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:2802
39545 msgid ""
39546 "See C<capitests/tests.c> for more details of how these environment variables"
39547 " work."
39548 msgstr ""
39549
39550 #. type: =head2
39551 #: ../src/guestfs.pod:2805
39552 msgid "DEBUGGING NEW API ACTIONS"
39553 msgstr ""
39554
39555 #. type: textblock
39556 #: ../src/guestfs.pod:2807
39557 msgid "Test new actions work before submitting them."
39558 msgstr ""
39559
39560 #. type: textblock
39561 #: ../src/guestfs.pod:2809
39562 msgid "You can use guestfish to try out new commands."
39563 msgstr ""
39564
39565 #. type: textblock
39566 #: ../src/guestfs.pod:2811
39567 msgid ""
39568 "Debugging the daemon is a problem because it runs inside a minimal "
39569 "environment.  However you can fprintf messages in the daemon to stderr, and "
39570 "they will show up if you use C<guestfish -v>."
39571 msgstr ""
39572
39573 #. type: =head2
39574 #: ../src/guestfs.pod:2815
39575 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39576 msgstr ""
39577
39578 #. type: textblock
39579 #: ../src/guestfs.pod:2817
39580 msgid ""
39581 "Our C source code generally adheres to some basic code-formatting "
39582 "conventions.  The existing code base is not totally consistent on this "
39583 "front, but we do prefer that contributed code be formatted similarly.  In "
39584 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39585 "indentation level, and other than that, follow the K&R style."
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../src/guestfs.pod:2823
39590 msgid ""
39591 "If you use Emacs, add the following to one of one of your start-up files "
39592 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
39593 msgstr ""
39594
39595 #. type: verbatim
39596 #: ../src/guestfs.pod:2826
39597 #, no-wrap
39598 msgid ""
39599 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39600 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39601 " (add-hook 'find-file-hook\n"
39602 "     '(lambda () (if (and buffer-file-name\n"
39603 "                          (string-match \"/libguestfs\\\\>\"\n"
39604 "                              (buffer-file-name))\n"
39605 "                          (not (string-equal mode-name \"Change Log\"))\n"
39606 "                          (not (string-equal mode-name \"Makefile\")))\n"
39607 "                     (setq indent-tabs-mode nil))))\n"
39608 " \n"
39609 msgstr ""
39610
39611 #. type: verbatim
39612 #: ../src/guestfs.pod:2836
39613 #, no-wrap
39614 msgid ""
39615 " ;;; When editing C sources in libguestfs, use this style.\n"
39616 " (defun libguestfs-c-mode ()\n"
39617 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39618 "   (interactive)\n"
39619 "   (c-set-style \"K&R\")\n"
39620 "   (setq c-indent-level 2)\n"
39621 "   (setq c-basic-offset 2))\n"
39622 " (add-hook 'c-mode-hook\n"
39623 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39624 "                               (buffer-file-name))\n"
39625 "                           (libguestfs-c-mode))))\n"
39626 "\n"
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../src/guestfs.pod:2848
39631 msgid "Enable warnings when compiling (and fix any problems this finds):"
39632 msgstr ""
39633
39634 #. type: verbatim
39635 #: ../src/guestfs.pod:2851
39636 #, no-wrap
39637 msgid ""
39638 " ./configure --enable-gcc-warnings\n"
39639 "\n"
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2853
39644 msgid "Useful targets are:"
39645 msgstr ""
39646
39647 #. type: verbatim
39648 #: ../src/guestfs.pod:2855
39649 #, no-wrap
39650 msgid ""
39651 " make syntax-check  # checks the syntax of the C code\n"
39652 " make check         # runs the test suite\n"
39653 "\n"
39654 msgstr ""
39655
39656 #. type: =head2
39657 #: ../src/guestfs.pod:2858
39658 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39659 msgstr ""
39660
39661 #. type: textblock
39662 #: ../src/guestfs.pod:2860
39663 msgid ""
39664 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>,"
39665 " which are used to do shell quoting."
39666 msgstr ""
39667
39668 #. type: =item
39669 #: ../src/guestfs.pod:2865
39670 msgid "%Q"
39671 msgstr ""
39672
39673 #. type: textblock
39674 #: ../src/guestfs.pod:2867
39675 msgid ""
39676 "Simple shell quoted string.  Any spaces or other shell characters are "
39677 "escaped for you."
39678 msgstr ""
39679
39680 #. type: =item
39681 #: ../src/guestfs.pod:2870
39682 msgid "%R"
39683 msgstr ""
39684
39685 #. type: textblock
39686 #: ../src/guestfs.pod:2872
39687 msgid ""
39688 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39689 "the sysroot."
39690 msgstr ""
39691
39692 #. type: verbatim
39693 #: ../src/guestfs.pod:2879
39694 #, no-wrap
39695 msgid ""
39696 " asprintf (&cmd, \"cat %R\", path);\n"
39697 "\n"
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../src/guestfs.pod:2881
39702 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39703 msgstr ""
39704
39705 #. type: textblock
39706 #: ../src/guestfs.pod:2883
39707 msgid ""
39708 "I<Note:> Do I<not> use these when you are passing parameters to the "
39709 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
39710 "because they are not passed via the shell (instead, straight to exec).  You "
39711 "probably want to use the C<sysroot_path()> function however."
39712 msgstr ""
39713
39714 #. type: =head2
39715 #: ../src/guestfs.pod:2889
39716 msgid "SUBMITTING YOUR NEW API ACTIONS"
39717 msgstr ""
39718
39719 #. type: textblock
39720 #: ../src/guestfs.pod:2891
39721 msgid ""
39722 "Submit patches to the mailing list: "
39723 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
39724 "L<rjones@redhat.com>."
39725 msgstr ""
39726
39727 #. type: =head2
39728 #: ../src/guestfs.pod:2895
39729 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39730 msgstr ""
39731
39732 #. type: textblock
39733 #: ../src/guestfs.pod:2897
39734 msgid "We support i18n (gettext anyhow) in the library."
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:2899
39739 msgid ""
39740 "However many messages come from the daemon, and we don't translate those at "
39741 "the moment.  One reason is that the appliance generally has all locale files"
39742 " removed from it, because they take up a lot of space.  So we'd have to "
39743 "readd some of those, as well as copying our PO files into the appliance."
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../src/guestfs.pod:2905
39748 msgid ""
39749 "Debugging messages are never translated, since they are intended for the "
39750 "programmers."
39751 msgstr ""
39752
39753 #. type: =head2
39754 #: ../src/guestfs.pod:2908
39755 msgid "SOURCE CODE SUBDIRECTORIES"
39756 msgstr ""
39757
39758 #. type: =item
39759 #: ../src/guestfs.pod:2912
39760 msgid "C<align>"
39761 msgstr ""
39762
39763 #. type: textblock
39764 #: ../src/guestfs.pod:2914
39765 msgid "L<virt-alignment-scan(1)> command and documentation."
39766 msgstr ""
39767
39768 #. type: textblock
39769 #: ../src/guestfs.pod:2918
39770 msgid "The libguestfs appliance, build scripts and so on."
39771 msgstr ""
39772
39773 #. type: =item
39774 #: ../src/guestfs.pod:2920
39775 msgid "C<capitests>"
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:2922
39780 msgid "Automated tests of the C API."
39781 msgstr ""
39782
39783 #. type: =item
39784 #: ../src/guestfs.pod:2924
39785 msgid "C<cat>"
39786 msgstr ""
39787
39788 #. type: textblock
39789 #: ../src/guestfs.pod:2926
39790 msgid ""
39791 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39792 "documentation."
39793 msgstr ""
39794
39795 #. type: =item
39796 #: ../src/guestfs.pod:2929
39797 msgid "C<caution>"
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../src/guestfs.pod:2931
39802 msgid ""
39803 "Safety and liveness tests of components that libguestfs depends upon (not of"
39804 " libguestfs itself).  Mainly this is for qemu and the kernel."
39805 msgstr ""
39806
39807 #. type: =item
39808 #: ../src/guestfs.pod:2934
39809 msgid "C<clone>"
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../src/guestfs.pod:2936
39814 msgid ""
39815 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39816 "command and documentation."
39817 msgstr ""
39818
39819 #. type: =item
39820 #: ../src/guestfs.pod:2939
39821 msgid "C<contrib>"
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../src/guestfs.pod:2941
39826 msgid "Outside contributions, experimental parts."
39827 msgstr ""
39828
39829 #. type: =item
39830 #: ../src/guestfs.pod:2943
39831 msgid "C<daemon>"
39832 msgstr ""
39833
39834 #. type: textblock
39835 #: ../src/guestfs.pod:2945
39836 msgid ""
39837 "The daemon that runs inside the libguestfs appliance and carries out "
39838 "actions."
39839 msgstr ""
39840
39841 #. type: =item
39842 #: ../src/guestfs.pod:2948
39843 msgid "C<df>"
39844 msgstr ""
39845
39846 #. type: textblock
39847 #: ../src/guestfs.pod:2950
39848 msgid "L<virt-df(1)> command and documentation."
39849 msgstr ""
39850
39851 #. type: =item
39852 #: ../src/guestfs.pod:2952
39853 msgid "C<edit>"
39854 msgstr ""
39855
39856 #. type: textblock
39857 #: ../src/guestfs.pod:2954
39858 msgid "L<virt-edit(1)> command and documentation."
39859 msgstr ""
39860
39861 #. type: =item
39862 #: ../src/guestfs.pod:2956
39863 msgid "C<examples>"
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:2958
39868 msgid "C API example code."
39869 msgstr ""
39870
39871 #. type: =item
39872 #: ../src/guestfs.pod:2960
39873 msgid "C<fish>"
39874 msgstr ""
39875
39876 #. type: textblock
39877 #: ../src/guestfs.pod:2962
39878 msgid ""
39879 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39880 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L"
39881 "<virt-tar-out(1)>."
39882 msgstr ""
39883
39884 #. type: =item
39885 #: ../src/guestfs.pod:2966
39886 msgid "C<fuse>"
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../src/guestfs.pod:2968
39891 msgid ""
39892 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39893 msgstr ""
39894
39895 #. type: =item
39896 #: ../src/guestfs.pod:2970
39897 msgid "C<generator>"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2972
39902 msgid ""
39903 "The crucially important generator, used to automatically generate large "
39904 "amounts of boilerplate C code for things like RPC and bindings."
39905 msgstr ""
39906
39907 #. type: =item
39908 #: ../src/guestfs.pod:2975
39909 msgid "C<images>"
39910 msgstr ""
39911
39912 #. type: textblock
39913 #: ../src/guestfs.pod:2977
39914 msgid "Files used by the test suite."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:2979
39919 msgid "Some \"phony\" guest images which we test against."
39920 msgstr ""
39921
39922 #. type: =item
39923 #: ../src/guestfs.pod:2981
39924 msgid "C<inspector>"
39925 msgstr ""
39926
39927 #. type: textblock
39928 #: ../src/guestfs.pod:2983
39929 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39930 msgstr ""
39931
39932 #. type: =item
39933 #: ../src/guestfs.pod:2985
39934 msgid "C<logo>"
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../src/guestfs.pod:2987
39939 msgid "Logo used on the website.  The fish is called Arthur by the way."
39940 msgstr ""
39941
39942 #. type: =item
39943 #: ../src/guestfs.pod:2989
39944 msgid "C<m4>"
39945 msgstr ""
39946
39947 #. type: textblock
39948 #: ../src/guestfs.pod:2991
39949 msgid "M4 macros used by autoconf."
39950 msgstr ""
39951
39952 #. type: =item
39953 #: ../src/guestfs.pod:2993
39954 msgid "C<po>"
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../src/guestfs.pod:2995
39959 msgid "Translations of simple gettext strings."
39960 msgstr ""
39961
39962 #. type: =item
39963 #: ../src/guestfs.pod:2997
39964 msgid "C<po-docs>"
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:2999
39969 msgid ""
39970 "The build infrastructure and PO files for translations of manpages and POD "
39971 "files.  Eventually this will be combined with the C<po> directory, but that "
39972 "is rather complicated."
39973 msgstr ""
39974
39975 #. type: =item
39976 #: ../src/guestfs.pod:3003
39977 msgid "C<regressions>"
39978 msgstr ""
39979
39980 #. type: textblock
39981 #: ../src/guestfs.pod:3005
39982 msgid "Regression tests."
39983 msgstr ""
39984
39985 #. type: =item
39986 #: ../src/guestfs.pod:3007
39987 msgid "C<rescue>"
39988 msgstr ""
39989
39990 #. type: textblock
39991 #: ../src/guestfs.pod:3009
39992 msgid "L<virt-rescue(1)> command and documentation."
39993 msgstr ""
39994
39995 #. type: =item
39996 #: ../src/guestfs.pod:3011
39997 msgid "C<resize>"
39998 msgstr ""
39999
40000 #. type: textblock
40001 #: ../src/guestfs.pod:3013
40002 msgid "L<virt-resize(1)> command and documentation."
40003 msgstr ""
40004
40005 #. type: =item
40006 #: ../src/guestfs.pod:3015
40007 msgid "C<sparsify>"
40008 msgstr ""
40009
40010 #. type: textblock
40011 #: ../src/guestfs.pod:3017
40012 msgid "L<virt-sparsify(1)> command and documentation."
40013 msgstr ""
40014
40015 #. type: =item
40016 #: ../src/guestfs.pod:3019
40017 msgid "C<src>"
40018 msgstr ""
40019
40020 #. type: textblock
40021 #: ../src/guestfs.pod:3021
40022 msgid "Source code to the C library."
40023 msgstr ""
40024
40025 #. type: =item
40026 #: ../src/guestfs.pod:3023
40027 msgid "C<tools>"
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../src/guestfs.pod:3025
40032 msgid ""
40033 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40034 msgstr ""
40035
40036 #. type: =item
40037 #: ../src/guestfs.pod:3027
40038 msgid "C<test-tool>"
40039 msgstr ""
40040
40041 #. type: textblock
40042 #: ../src/guestfs.pod:3029
40043 msgid ""
40044 "Test tool for end users to test if their qemu/kernel combination will work "
40045 "with libguestfs."
40046 msgstr ""
40047
40048 #. type: =item
40049 #: ../src/guestfs.pod:3032
40050 msgid "C<csharp>"
40051 msgstr ""
40052
40053 #. type: =item
40054 #: ../src/guestfs.pod:3034
40055 msgid "C<erlang>"
40056 msgstr ""
40057
40058 #. type: =item
40059 #: ../src/guestfs.pod:3036
40060 msgid "C<haskell>"
40061 msgstr ""
40062
40063 #. type: =item
40064 #: ../src/guestfs.pod:3038
40065 msgid "C<java>"
40066 msgstr ""
40067
40068 #. type: =item
40069 #: ../src/guestfs.pod:3040
40070 msgid "C<ocaml>"
40071 msgstr ""
40072
40073 #. type: =item
40074 #: ../src/guestfs.pod:3042
40075 msgid "C<php>"
40076 msgstr ""
40077
40078 #. type: =item
40079 #: ../src/guestfs.pod:3044
40080 msgid "C<perl>"
40081 msgstr ""
40082
40083 #. type: =item
40084 #: ../src/guestfs.pod:3046
40085 msgid "C<python>"
40086 msgstr ""
40087
40088 #. type: =item
40089 #: ../src/guestfs.pod:3048
40090 msgid "C<ruby>"
40091 msgstr ""
40092
40093 #. type: textblock
40094 #: ../src/guestfs.pod:3050
40095 msgid "Language bindings."
40096 msgstr ""
40097
40098 #. type: =head2
40099 #: ../src/guestfs.pod:3054
40100 msgid "MAKING A STABLE RELEASE"
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../src/guestfs.pod:3056
40105 msgid ""
40106 "When we make a stable release, there are several steps documented here.  See"
40107 " L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40108 "branch policy."
40109 msgstr ""
40110
40111 #. type: textblock
40112 #: ../src/guestfs.pod:3064
40113 msgid ""
40114 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40115 msgstr ""
40116
40117 #. type: textblock
40118 #: ../src/guestfs.pod:3069
40119 msgid "Finalize RELEASE-NOTES."
40120 msgstr ""
40121
40122 #. type: textblock
40123 #: ../src/guestfs.pod:3073
40124 msgid "Update ROADMAP."
40125 msgstr ""
40126
40127 #. type: textblock
40128 #: ../src/guestfs.pod:3077
40129 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40130 msgstr ""
40131
40132 #. type: textblock
40133 #: ../src/guestfs.pod:3081
40134 msgid "Push and pull from Transifex."
40135 msgstr ""
40136
40137 #. type: textblock
40138 #: ../src/guestfs.pod:3083
40139 msgid "Run:"
40140 msgstr ""
40141
40142 #. type: verbatim
40143 #: ../src/guestfs.pod:3085
40144 #, no-wrap
40145 msgid ""
40146 " tx push -s\n"
40147 "\n"
40148 msgstr ""
40149
40150 #. type: textblock
40151 #: ../src/guestfs.pod:3087
40152 msgid "to push the latest POT files to Transifex.  Then run:"
40153 msgstr ""
40154
40155 #. type: verbatim
40156 #: ../src/guestfs.pod:3089
40157 #, no-wrap
40158 msgid ""
40159 " ./tx-pull.sh\n"
40160 "\n"
40161 msgstr ""
40162
40163 #. type: textblock
40164 #: ../src/guestfs.pod:3091
40165 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40166 msgstr ""
40167
40168 #. type: textblock
40169 #: ../src/guestfs.pod:3095
40170 msgid ""
40171 "Create new stable and development directories under "
40172 "L<http://libguestfs.org/download>."
40173 msgstr ""
40174
40175 #. type: textblock
40176 #: ../src/guestfs.pod:3100
40177 msgid "Create the branch in git:"
40178 msgstr ""
40179
40180 #. type: verbatim
40181 #: ../src/guestfs.pod:3102
40182 #, no-wrap
40183 msgid ""
40184 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40185 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40186 " git branch stable-1.XX\n"
40187 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40188 "\n"
40189 msgstr ""
40190
40191 #. type: =head1
40192 #: ../src/guestfs.pod:3109
40193 msgid "LIMITS"
40194 msgstr ""
40195
40196 #. type: =head2
40197 #: ../src/guestfs.pod:3111
40198 msgid "PROTOCOL LIMITS"
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:3113
40203 msgid ""
40204 "Internally libguestfs uses a message-based protocol to pass API calls and "
40205 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40206 "plenty more detail about this).  The maximum message size used by the "
40207 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40208 "aware of this limit.  The API calls which may be affected are individually "
40209 "documented, with a link back to this section of the documentation."
40210 msgstr ""
40211
40212 #. type: textblock
40213 #: ../src/guestfs.pod:3121
40214 msgid ""
40215 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40216 "a simple string.  Because this string is at some point internally encoded as"
40217 " a message, the maximum size that it can return is slightly under 4 MB.  If "
40218 "the requested file is larger than this then you will get an error."
40219 msgstr ""
40220
40221 #. type: textblock
40222 #: ../src/guestfs.pod:3127
40223 msgid ""
40224 "In order to transfer large files into and out of the guest filesystem, you "
40225 "need to use particular calls that support this.  The sections L</UPLOADING> "
40226 "and L</DOWNLOADING> document how to do this."
40227 msgstr ""
40228
40229 #. type: textblock
40230 #: ../src/guestfs.pod:3131
40231 msgid ""
40232 "You might also consider mounting the disk image using our FUSE filesystem "
40233 "support (L<guestmount(1)>)."
40234 msgstr ""
40235
40236 #. type: =head2
40237 #: ../src/guestfs.pod:3134
40238 msgid "MAXIMUM NUMBER OF DISKS"
40239 msgstr ""
40240
40241 #. type: textblock
40242 #: ../src/guestfs.pod:3136
40243 msgid ""
40244 "When using virtio disks (the default) the current limit is B<25> disks."
40245 msgstr ""
40246
40247 #. type: textblock
40248 #: ../src/guestfs.pod:3139
40249 msgid ""
40250 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31"
40251 " slots.  However febootstrap only understands disks with names C</dev/vda> "
40252 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40253 "purposes."
40254 msgstr ""
40255
40256 #. type: textblock
40257 #: ../src/guestfs.pod:3144
40258 msgid ""
40259 "We are working to substantially raise this limit in future versions but it "
40260 "requires complex changes to qemu."
40261 msgstr ""
40262
40263 #. type: textblock
40264 #: ../src/guestfs.pod:3147
40265 msgid ""
40266 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40267 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40268 "requires changes to qemu."
40269 msgstr ""
40270
40271 #. type: =head2
40272 #: ../src/guestfs.pod:3151
40273 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40274 msgstr ""
40275
40276 #. type: textblock
40277 #: ../src/guestfs.pod:3153
40278 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40279 msgstr ""
40280
40281 #. type: textblock
40282 #: ../src/guestfs.pod:3155
40283 msgid ""
40284 "This is because it reserves 4 bits for the minor device number (thus "
40285 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40286 msgstr ""
40287
40288 #. type: textblock
40289 #: ../src/guestfs.pod:3158
40290 msgid ""
40291 "If you attach a disk with more than 15 partitions, the extra partitions are "
40292 "ignored by libguestfs."
40293 msgstr ""
40294
40295 #. type: =head2
40296 #: ../src/guestfs.pod:3161
40297 msgid "MAXIMUM SIZE OF A DISK"
40298 msgstr ""
40299
40300 #. type: textblock
40301 #: ../src/guestfs.pod:3163
40302 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40303 msgstr ""
40304
40305 #. type: textblock
40306 #: ../src/guestfs.pod:3165
40307 msgid ""
40308 "We have tested block devices up to 1 exabyte (2**60 or "
40309 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40310 "filesystem."
40311 msgstr ""
40312
40313 #. type: textblock
40314 #: ../src/guestfs.pod:3169
40315 msgid ""
40316 "Although libguestfs probably does not impose any limit, the underlying host "
40317 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40318 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40319 "TB).  If you store disk images as host logical volumes then you are limited "
40320 "by the maximum size of an LV."
40321 msgstr ""
40322
40323 #. type: textblock
40324 #: ../src/guestfs.pod:3175
40325 msgid ""
40326 "For the hugest disk image files, we recommend using XFS on the host for "
40327 "storage."
40328 msgstr ""
40329
40330 #. type: =head2
40331 #: ../src/guestfs.pod:3178
40332 msgid "MAXIMUM SIZE OF A PARTITION"
40333 msgstr ""
40334
40335 #. type: textblock
40336 #: ../src/guestfs.pod:3180
40337 msgid ""
40338 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector numbers."
40339 "  Assuming a 512 byte sector size, this means that MBR cannot address a "
40340 "partition located beyond 2 TB on the disk."
40341 msgstr ""
40342
40343 #. type: textblock
40344 #: ../src/guestfs.pod:3184
40345 msgid ""
40346 "It is recommended that you use GPT partitions on disks which are larger than"
40347 " this size.  GPT uses 64 bit sector numbers and so can address partitions "
40348 "which are theoretically larger than the largest disk we could support."
40349 msgstr ""
40350
40351 #. type: =head2
40352 #: ../src/guestfs.pod:3189
40353 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40354 msgstr ""
40355
40356 #. type: textblock
40357 #: ../src/guestfs.pod:3191
40358 msgid ""
40359 "This depends on the filesystem type.  libguestfs itself does not impose any "
40360 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40361 "what these limits are."
40362 msgstr ""
40363
40364 #. type: =head2
40365 #: ../src/guestfs.pod:3195
40366 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40367 msgstr ""
40368
40369 #. type: textblock
40370 #: ../src/guestfs.pod:3197
40371 msgid ""
40372 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40373 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40374 "uploads and downloads."
40375 msgstr ""
40376
40377 #. type: =head2
40378 #: ../src/guestfs.pod:3201
40379 msgid "INSPECTION LIMITS"
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../src/guestfs.pod:3203
40384 msgid ""
40385 "The inspection code has several arbitrary limits on things like the size of "
40386 "Windows Registry hive it will read, and the length of product name.  These "
40387 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40388 "memory and disk space on the host, and should not be reached in practice.  "
40389 "See the source code for more information."
40390 msgstr ""
40391
40392 #. type: textblock
40393 #: ../src/guestfs.pod:3229
40394 msgid ""
40395 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40396 "effect as calling C<guestfs_set_verbose (g, 1)>."
40397 msgstr ""
40398
40399 #. type: textblock
40400 #: ../src/guestfs.pod:3241
40401 msgid ""
40402 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40403 "the discussion of paths in section L</PATH> above."
40404 msgstr ""
40405
40406 #. type: textblock
40407 #: ../src/guestfs.pod:3250
40408 msgid "See also L</QEMU WRAPPERS> above."
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:3254
40413 msgid ""
40414 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40415 "effect as calling C<guestfs_set_trace (g, 1)>."
40416 msgstr ""
40417
40418 #. type: textblock
40419 #: ../src/guestfs.pod:3272
40420 msgid ""
40421 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40422 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40423 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-"
40424 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-"
40425 "edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
40426 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-"
40427 "fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-"
40428 "sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-"
40429 "win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-"
40430 "helper(8)>, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
40431 msgstr ""
40432
40433 #. type: textblock
40434 #: ../src/guestfs.pod:3308
40435 msgid ""
40436 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40437 "L<lvm(8)>, L<disktype(1)>."
40438 msgstr ""
40439
40440 #. type: =head1
40441 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
40442 #: ../tools/virt-win-reg.pl:772
40443 msgid "BUGS"
40444 msgstr ""
40445
40446 #. type: textblock
40447 #: ../src/guestfs.pod:3317
40448 msgid "To get a list of bugs against libguestfs use this link:"
40449 msgstr ""
40450
40451 #. type: textblock
40452 #: ../src/guestfs.pod:3319
40453 msgid ""
40454 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../src/guestfs.pod:3321
40459 msgid "To report a new bug against libguestfs use this link:"
40460 msgstr ""
40461
40462 #. type: textblock
40463 #: ../src/guestfs.pod:3323
40464 msgid ""
40465 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40466 msgstr ""
40467
40468 #. type: textblock
40469 #: ../src/guestfs.pod:3325
40470 msgid "When reporting a bug, please check:"
40471 msgstr ""
40472
40473 #. type: textblock
40474 #: ../src/guestfs.pod:3331
40475 msgid "That the bug hasn't been reported already."
40476 msgstr ""
40477
40478 #. type: textblock
40479 #: ../src/guestfs.pod:3335
40480 msgid "That you are testing a recent version."
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:3339
40485 msgid "Describe the bug accurately, and give a way to reproduce it."
40486 msgstr ""
40487
40488 #. type: textblock
40489 #: ../src/guestfs.pod:3343
40490 msgid ""
40491 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the"
40492 " bug report."
40493 msgstr ""
40494
40495 #. type: textblock
40496 #: ../test-tool/libguestfs-test-tool.pod:5
40497 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40498 msgstr ""
40499
40500 #. type: verbatim
40501 #: ../test-tool/libguestfs-test-tool.pod:9
40502 #, no-wrap
40503 msgid ""
40504 " libguestfs-test-tool [--options]\n"
40505 "\n"
40506 msgstr ""
40507
40508 #. type: textblock
40509 #: ../test-tool/libguestfs-test-tool.pod:13
40510 msgid ""
40511 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40512 "to check basic libguestfs functionality is working.  This is needed because "
40513 "libguestfs occasionally breaks for reasons beyond our control: usually "
40514 "because of changes in the underlying qemu or kernel packages, or the host "
40515 "environment."
40516 msgstr ""
40517
40518 #. type: textblock
40519 #: ../test-tool/libguestfs-test-tool.pod:19
40520 msgid "If you suspect a problem in libguestfs, then just run:"
40521 msgstr ""
40522
40523 #. type: verbatim
40524 #: ../test-tool/libguestfs-test-tool.pod:21
40525 #, no-wrap
40526 msgid ""
40527 " libguestfs-test-tool\n"
40528 "\n"
40529 msgstr ""
40530
40531 #. type: textblock
40532 #: ../test-tool/libguestfs-test-tool.pod:23
40533 msgid "It will print lots of diagnostic messages."
40534 msgstr ""
40535
40536 #. type: textblock
40537 #: ../test-tool/libguestfs-test-tool.pod:25
40538 msgid "If it runs to completion successfully, you will see this near the end:"
40539 msgstr ""
40540
40541 #. type: verbatim
40542 #: ../test-tool/libguestfs-test-tool.pod:27
40543 #, no-wrap
40544 msgid ""
40545 " ===== TEST FINISHED OK =====\n"
40546 "\n"
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../test-tool/libguestfs-test-tool.pod:29
40551 msgid "and the test tool will exit with code 0."
40552 msgstr ""
40553
40554 #. type: textblock
40555 #: ../test-tool/libguestfs-test-tool.pod:31
40556 msgid ""
40557 "If it fails (and/or exits with non-zero error code), please paste the "
40558 "I<complete, unedited> output of the test tool into a bug report.  More "
40559 "information about reporting bugs can be found on the "
40560 "L<http://libguestfs.org/> website."
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../test-tool/libguestfs-test-tool.pod:42
40565 msgid "Display short usage information and exit."
40566 msgstr ""
40567
40568 #. type: =item
40569 #: ../test-tool/libguestfs-test-tool.pod:44
40570 msgid "B<--qemu qemu_binary>"
40571 msgstr ""
40572
40573 #. type: textblock
40574 #: ../test-tool/libguestfs-test-tool.pod:46
40575 msgid ""
40576 "If you have downloaded another qemu binary, point this option at the full "
40577 "path of the binary to try it."
40578 msgstr ""
40579
40580 #. type: =item
40581 #: ../test-tool/libguestfs-test-tool.pod:49
40582 msgid "B<--qemudir qemu_source_dir>"
40583 msgstr ""
40584
40585 #. type: textblock
40586 #: ../test-tool/libguestfs-test-tool.pod:51
40587 msgid ""
40588 "If you have compiled qemu from source, point this option at the source "
40589 "directory to try it."
40590 msgstr ""
40591
40592 #. type: =item
40593 #: ../test-tool/libguestfs-test-tool.pod:54
40594 msgid "B<-t N>"
40595 msgstr ""
40596
40597 #. type: =item
40598 #: ../test-tool/libguestfs-test-tool.pod:56
40599 msgid "B<--timeout N>"
40600 msgstr ""
40601
40602 #. type: textblock
40603 #: ../test-tool/libguestfs-test-tool.pod:58
40604 msgid ""
40605 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40606 "minutes) which does not usually need to be adjusted."
40607 msgstr ""
40608
40609 #. type: =head1
40610 #: ../test-tool/libguestfs-test-tool.pod:63
40611 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../test-tool/libguestfs-test-tool.pod:65
40616 msgid ""
40617 "If you have compiled another version of qemu from source and would like to "
40618 "try that, then you can use the I<--qemudir> option to point to the qemu "
40619 "source directory."
40620 msgstr ""
40621
40622 #. type: textblock
40623 #: ../test-tool/libguestfs-test-tool.pod:69
40624 msgid ""
40625 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40626 "option to point to the binary."
40627 msgstr ""
40628
40629 #. type: textblock
40630 #: ../test-tool/libguestfs-test-tool.pod:72
40631 msgid ""
40632 "Note when using these options, you can ignore the business of qemu wrapper "
40633 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40634 "wrapper script for you if one is needed."
40635 msgstr ""
40636
40637 #. type: =head1
40638 #: ../test-tool/libguestfs-test-tool.pod:76
40639 msgid "TRYING OUT A DIFFERENT KERNEL"
40640 msgstr ""
40641
40642 #. type: textblock
40643 #: ../test-tool/libguestfs-test-tool.pod:78
40644 msgid ""
40645 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40646 "libguestfs tries.  You do this by setting the environment variables "
40647 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40648 msgstr ""
40649
40650 #. type: textblock
40651 #: ../test-tool/libguestfs-test-tool.pod:82
40652 msgid ""
40653 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further"
40654 " information."
40655 msgstr ""
40656
40657 #. type: =head1
40658 #: ../test-tool/libguestfs-test-tool.pod:85
40659 msgid "SELF-DIAGNOSIS"
40660 msgstr ""
40661
40662 #. type: textblock
40663 #: ../test-tool/libguestfs-test-tool.pod:87
40664 msgid ""
40665 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40666 "produced by libguestfs-test-tool and/or possible errors."
40667 msgstr ""
40668
40669 #. type: textblock
40670 #: ../test-tool/libguestfs-test-tool.pod:92
40671 msgid ""
40672 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40673 "I<1> if there was an error."
40674 msgstr ""
40675
40676 #. type: textblock
40677 #: ../test-tool/libguestfs-test-tool.pod:97
40678 msgid ""
40679 "For the full list of environment variables which may affect libguestfs, "
40680 "please see the L<guestfs(3)> manual page."
40681 msgstr ""
40682
40683 #. type: textblock
40684 #: ../test-tool/libguestfs-test-tool.pod:102
40685 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40686 msgstr ""
40687
40688 #. type: textblock
40689 #: ../tools/virt-list-filesystems.pl:32
40690 msgid ""
40691 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40692 msgstr ""
40693
40694 #. type: verbatim
40695 #: ../tools/virt-list-filesystems.pl:36
40696 #, no-wrap
40697 msgid ""
40698 " virt-list-filesystems [--options] domname\n"
40699 "\n"
40700 msgstr ""
40701
40702 #. type: verbatim
40703 #: ../tools/virt-list-filesystems.pl:38
40704 #, no-wrap
40705 msgid ""
40706 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40707 "\n"
40708 msgstr ""
40709
40710 #. type: textblock
40711 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40712 msgid ""
40713 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40714 "replacement."
40715 msgstr ""
40716
40717 #. type: textblock
40718 #: ../tools/virt-list-filesystems.pl:45
40719 msgid ""
40720 "C<virt-list-filesystems> is a command line tool to list the filesystems that"
40721 " are contained in a virtual machine or disk image."
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../tools/virt-list-filesystems.pl:49
40726 msgid ""
40727 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40728 "functionality.  For more complex cases you should look at the "
40729 "L<guestfish(1)> tool."
40730 msgstr ""
40731
40732 #. type: textblock
40733 #: ../tools/virt-list-filesystems.pl:112
40734 msgid ""
40735 "With this option, C<virt-list-filesystems> displays the type of each "
40736 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40737 msgstr ""
40738
40739 #. type: =item
40740 #: ../tools/virt-list-filesystems.pl:119
40741 msgid "B<-a>"
40742 msgstr ""
40743
40744 #. type: textblock
40745 #: ../tools/virt-list-filesystems.pl:123
40746 msgid ""
40747 "Normally we only show mountable filesystems.  If this option is given then "
40748 "swap devices are shown too."
40749 msgstr ""
40750
40751 #. type: textblock
40752 #: ../tools/virt-list-filesystems.pl:197
40753 msgid ""
40754 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40755 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
40756 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40757 msgstr ""
40758
40759 #. type: textblock
40760 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40761 msgid "Copyright (C) 2009 Red Hat Inc."
40762 msgstr ""
40763
40764 #. type: textblock
40765 #: ../tools/virt-list-partitions.pl:32
40766 msgid ""
40767 "virt-list-partitions - List partitions in a virtual machine or disk image"
40768 msgstr ""
40769
40770 #. type: verbatim
40771 #: ../tools/virt-list-partitions.pl:36
40772 #, no-wrap
40773 msgid ""
40774 " virt-list-partitions [--options] domname\n"
40775 "\n"
40776 msgstr ""
40777
40778 #. type: verbatim
40779 #: ../tools/virt-list-partitions.pl:38
40780 #, no-wrap
40781 msgid ""
40782 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40783 "\n"
40784 msgstr ""
40785
40786 #. type: textblock
40787 #: ../tools/virt-list-partitions.pl:45
40788 msgid ""
40789 "C<virt-list-partitions> is a command line tool to list the partitions that "
40790 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40791 "first step to using L<virt-resize(1)>."
40792 msgstr ""
40793
40794 #. type: textblock
40795 #: ../tools/virt-list-partitions.pl:50
40796 msgid ""
40797 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40798 "functionality.  For more complex cases you should look at the "
40799 "L<guestfish(1)> tool."
40800 msgstr ""
40801
40802 #. type: textblock
40803 #: ../tools/virt-list-partitions.pl:113
40804 msgid "Show sizes in human-readable form (eg. \"1G\")."
40805 msgstr ""
40806
40807 #. type: textblock
40808 #: ../tools/virt-list-partitions.pl:123
40809 msgid ""
40810 "With this option, C<virt-list-partitions> displays the type and size of each"
40811 " partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40812 msgstr ""
40813
40814 #. type: =item
40815 #: ../tools/virt-list-partitions.pl:130
40816 msgid "B<-t>"
40817 msgstr ""
40818
40819 #. type: =item
40820 #: ../tools/virt-list-partitions.pl:132
40821 msgid "B<--total>"
40822 msgstr ""
40823
40824 #. type: textblock
40825 #: ../tools/virt-list-partitions.pl:134
40826 msgid ""
40827 "Display the total size of each block device (as a separate row or rows)."
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../tools/virt-list-partitions.pl:267
40832 msgid ""
40833 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40834 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
40835 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40836 msgstr ""
40837
40838 #. type: textblock
40839 #: ../tools/virt-list-partitions.pl:283
40840 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40841 msgstr ""
40842
40843 #. type: textblock
40844 #: ../tools/virt-make-fs.pl:37
40845 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40846 msgstr ""
40847
40848 #. type: verbatim
40849 #: ../tools/virt-make-fs.pl:41
40850 #, no-wrap
40851 msgid ""
40852 " virt-make-fs [--options] input.tar output.img\n"
40853 "\n"
40854 msgstr ""
40855
40856 #. type: verbatim
40857 #: ../tools/virt-make-fs.pl:43
40858 #, no-wrap
40859 msgid ""
40860 " virt-make-fs [--options] input.tar.gz output.img\n"
40861 "\n"
40862 msgstr ""
40863
40864 #. type: verbatim
40865 #: ../tools/virt-make-fs.pl:45
40866 #, no-wrap
40867 msgid ""
40868 " virt-make-fs [--options] directory output.img\n"
40869 "\n"
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../tools/virt-make-fs.pl:49
40874 msgid ""
40875 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40876 "archive or some files in a directory.  It is similar to tools like "
40877 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
40878 "it can create common filesystem types like ext2/3 or NTFS, which can be "
40879 "useful if you want to attach these filesystems to existing virtual machines "
40880 "(eg. to import large amounts of read-only data to a VM)."
40881 msgstr ""
40882
40883 #. type: textblock
40884 #: ../tools/virt-make-fs.pl:57
40885 msgid "Basic usage is:"
40886 msgstr ""
40887
40888 #. type: verbatim
40889 #: ../tools/virt-make-fs.pl:59
40890 #, no-wrap
40891 msgid ""
40892 " virt-make-fs input output.img\n"
40893 "\n"
40894 msgstr ""
40895
40896 #. type: textblock
40897 #: ../tools/virt-make-fs.pl:61
40898 msgid ""
40899 "where C<input> is either a directory containing files that you want to add, "
40900 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40901 "C<output.img> is a disk image.  The input type is detected automatically.  "
40902 "The output disk image defaults to a raw ext2 sparse image unless you specify"
40903 " extra flags (see L</OPTIONS> below)."
40904 msgstr ""
40905
40906 #. type: =head2
40907 #: ../tools/virt-make-fs.pl:67
40908 msgid "FILESYSTEM TYPE"
40909 msgstr ""
40910
40911 #. type: textblock
40912 #: ../tools/virt-make-fs.pl:69
40913 msgid ""
40914 "The default filesystem type is C<ext2>.  Just about any filesystem type that"
40915 " libguestfs supports can be used (but I<not> read-only formats like "
40916 "ISO9660).  Here are some of the more common choices:"
40917 msgstr ""
40918
40919 #. type: =item
40920 #: ../tools/virt-make-fs.pl:75
40921 msgid "I<ext3>"
40922 msgstr ""
40923
40924 #. type: textblock
40925 #: ../tools/virt-make-fs.pl:77
40926 msgid ""
40927 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If"
40928 " you are not going to use the filesystem in a way that requires the journal,"
40929 " then this is just wasted overhead."
40930 msgstr ""
40931
40932 #. type: =item
40933 #: ../tools/virt-make-fs.pl:81
40934 msgid "I<ntfs> or I<vfat>"
40935 msgstr ""
40936
40937 #. type: textblock
40938 #: ../tools/virt-make-fs.pl:83
40939 msgid "Useful if exporting data to a Windows guest."
40940 msgstr ""
40941
40942 #. type: textblock
40943 #: ../tools/virt-make-fs.pl:85
40944 msgid ""
40945 "I<Note for vfat>: The tar archive or local directory must only contain files"
40946 " which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40947 "program running within libguestfs is unable to change the ownership of non-"
40948 "root files, since vfat itself does not support this."
40949 msgstr ""
40950
40951 #. type: =item
40952 #: ../tools/virt-make-fs.pl:90
40953 msgid "I<minix>"
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../tools/virt-make-fs.pl:92
40958 msgid ""
40959 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40960 "total filesystem size."
40961 msgstr ""
40962
40963 #. type: =head3
40964 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
40965 #: ../tools/virt-make-fs.pl:149
40966 msgid "EXAMPLE"
40967 msgstr ""
40968
40969 #. type: verbatim
40970 #: ../tools/virt-make-fs.pl:99
40971 #, no-wrap
40972 msgid ""
40973 " virt-make-fs --type=minix input minixfs.img\n"
40974 "\n"
40975 msgstr ""
40976
40977 #. type: =head2
40978 #: ../tools/virt-make-fs.pl:101
40979 msgid "TO PARTITION OR NOT TO PARTITION"
40980 msgstr ""
40981
40982 #. type: textblock
40983 #: ../tools/virt-make-fs.pl:103
40984 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40985 msgstr ""
40986
40987 #. type: textblock
40988 #: ../tools/virt-make-fs.pl:105
40989 msgid ""
40990 "Adding a partition can make the disk image more compatible with certain "
40991 "virtualized operating systems which don't expect to see a filesystem "
40992 "directly located on a block device (Linux doesn't care and will happily "
40993 "handle both types)."
40994 msgstr ""
40995
40996 #. type: textblock
40997 #: ../tools/virt-make-fs.pl:110
40998 msgid ""
40999 "On the other hand, if you have a partition table then the output image is no"
41000 " longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41001 "directly on a partitioned disk image.  (However libguestfs tools such as "
41002 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41003 msgstr ""
41004
41005 #. type: textblock
41006 #: ../tools/virt-make-fs.pl:118
41007 msgid "Add an MBR partition:"
41008 msgstr ""
41009
41010 #. type: verbatim
41011 #: ../tools/virt-make-fs.pl:120
41012 #, no-wrap
41013 msgid ""
41014 " virt-make-fs --partition -- input disk.img\n"
41015 "\n"
41016 msgstr ""
41017
41018 #. type: textblock
41019 #: ../tools/virt-make-fs.pl:122
41020 msgid ""
41021 "If the output disk image could be terabyte-sized or larger, it's better to "
41022 "use an EFI/GPT-compatible partition table:"
41023 msgstr ""
41024
41025 #. type: verbatim
41026 #: ../tools/virt-make-fs.pl:125
41027 #, no-wrap
41028 msgid ""
41029 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41030 "\n"
41031 msgstr ""
41032
41033 #. type: =head2
41034 #: ../tools/virt-make-fs.pl:127
41035 msgid "EXTRA SPACE"
41036 msgstr ""
41037
41038 #. type: textblock
41039 #: ../tools/virt-make-fs.pl:129
41040 msgid ""
41041 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41042 "the files that it contains, but might have extra space.  Depending on how "
41043 "you are going to use the output, you might think this extra space is wasted "
41044 "and want to minimize it, or you might want to leave space so that more files"
41045 " can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41046 "but you can use the I<--size> flag to leave space in the filesystem if you "
41047 "want it."
41048 msgstr ""
41049
41050 #. type: textblock
41051 #: ../tools/virt-make-fs.pl:137
41052 msgid ""
41053 "An alternative way to leave extra space but not make the output image any "
41054 "bigger is to use an alternative disk image format (instead of the default "
41055 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2"
41056 " image format (check your hypervisor supports this before using it).  This "
41057 "allows you to choose a large I<--size> but the extra space won't actually be"
41058 " allocated in the image until you try to store something in it."
41059 msgstr ""
41060
41061 #. type: textblock
41062 #: ../tools/virt-make-fs.pl:145
41063 msgid ""
41064 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41065 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41066 "to build another image from scratch."
41067 msgstr ""
41068
41069 #. type: verbatim
41070 #: ../tools/virt-make-fs.pl:151
41071 #, no-wrap
41072 msgid ""
41073 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41074 "\n"
41075 msgstr ""
41076
41077 #. type: textblock
41078 #: ../tools/virt-make-fs.pl:179
41079 msgid "Enable debugging information."
41080 msgstr ""
41081
41082 #. type: =item
41083 #: ../tools/virt-make-fs.pl:185
41084 msgid "B<--size=E<lt>NE<gt>>"
41085 msgstr ""
41086
41087 #. type: =item
41088 #: ../tools/virt-make-fs.pl:187
41089 msgid "B<--size=+E<lt>NE<gt>>"
41090 msgstr ""
41091
41092 #. type: =item
41093 #: ../tools/virt-make-fs.pl:189
41094 msgid "B<-s E<lt>NE<gt>>"
41095 msgstr ""
41096
41097 #. type: =item
41098 #: ../tools/virt-make-fs.pl:191
41099 msgid "B<-s +E<lt>NE<gt>>"
41100 msgstr ""
41101
41102 #. type: textblock
41103 #: ../tools/virt-make-fs.pl:193
41104 msgid ""
41105 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41106 msgstr ""
41107
41108 #. type: textblock
41109 #: ../tools/virt-make-fs.pl:196
41110 msgid ""
41111 "If this option is I<not> given, then the output image will be just large "
41112 "enough to contain all the files, with not much wasted space."
41113 msgstr ""
41114
41115 #. type: textblock
41116 #: ../tools/virt-make-fs.pl:199
41117 msgid ""
41118 "To choose a fixed size output disk, specify an absolute number followed by "
41119 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41120 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41121 "files, else you will get an error."
41122 msgstr ""
41123
41124 #. type: textblock
41125 #: ../tools/virt-make-fs.pl:204
41126 msgid ""
41127 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41128 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41129 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41130 "the input files, and (approximately) an extra 200 MB free space."
41131 msgstr ""
41132
41133 #. type: textblock
41134 #: ../tools/virt-make-fs.pl:210
41135 msgid ""
41136 "Note that virt-make-fs estimates free space, and therefore will not produce "
41137 "filesystems containing precisely the free space requested.  (It is much more"
41138 " expensive and time-consuming to produce a filesystem which has precisely "
41139 "the desired free space)."
41140 msgstr ""
41141
41142 #. type: =item
41143 #: ../tools/virt-make-fs.pl:219
41144 msgid "B<--format=E<lt>fmtE<gt>>"
41145 msgstr ""
41146
41147 #. type: =item
41148 #: ../tools/virt-make-fs.pl:221
41149 msgid "B<-F E<lt>fmtE<gt>>"
41150 msgstr ""
41151
41152 #. type: textblock
41153 #: ../tools/virt-make-fs.pl:223
41154 msgid "Choose the output disk image format."
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../tools/virt-make-fs.pl:225
41159 msgid "The default is C<raw> (raw sparse disk image)."
41160 msgstr ""
41161
41162 #. type: textblock
41163 #: ../tools/virt-make-fs.pl:227
41164 msgid ""
41165 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41166 "that would really make sense here is C<qcow2>."
41167 msgstr ""
41168
41169 #. type: =item
41170 #: ../tools/virt-make-fs.pl:234
41171 msgid "B<--type=E<lt>fsE<gt>>"
41172 msgstr ""
41173
41174 #. type: =item
41175 #: ../tools/virt-make-fs.pl:236
41176 msgid "B<-t E<lt>fsE<gt>>"
41177 msgstr ""
41178
41179 #. type: textblock
41180 #: ../tools/virt-make-fs.pl:238
41181 msgid "Choose the output filesystem type."
41182 msgstr ""
41183
41184 #. type: textblock
41185 #: ../tools/virt-make-fs.pl:240
41186 msgid "The default is C<ext2>."
41187 msgstr ""
41188
41189 #. type: textblock
41190 #: ../tools/virt-make-fs.pl:242
41191 msgid ""
41192 "Any filesystem which is supported read-write by libguestfs can be used here."
41193 msgstr ""
41194
41195 #. type: =item
41196 #: ../tools/virt-make-fs.pl:249
41197 msgid "B<--partition>"
41198 msgstr ""
41199
41200 #. type: =item
41201 #: ../tools/virt-make-fs.pl:251
41202 msgid "B<--partition=E<lt>parttypeE<gt>>"
41203 msgstr ""
41204
41205 #. type: textblock
41206 #: ../tools/virt-make-fs.pl:253
41207 msgid ""
41208 "If specified, this flag adds an MBR partition table to the output disk "
41209 "image."
41210 msgstr ""
41211
41212 #. type: textblock
41213 #: ../tools/virt-make-fs.pl:256
41214 msgid ""
41215 "You can change the partition table type, eg. I<--partition=gpt> for large "
41216 "disks."
41217 msgstr ""
41218
41219 #. type: textblock
41220 #: ../tools/virt-make-fs.pl:259
41221 msgid ""
41222 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41223 "might consider the next parameter to be the partition type.  For example:"
41224 msgstr ""
41225
41226 #. type: verbatim
41227 #: ../tools/virt-make-fs.pl:263
41228 #, no-wrap
41229 msgid ""
41230 " virt-make-fs --partition input.tar output.img\n"
41231 "\n"
41232 msgstr ""
41233
41234 #. type: textblock
41235 #: ../tools/virt-make-fs.pl:265
41236 msgid ""
41237 "would cause virt-make-fs to think you wanted to use a partition type of "
41238 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41239 "dash) between options and the input and output arguments:"
41240 msgstr ""
41241
41242 #. type: verbatim
41243 #: ../tools/virt-make-fs.pl:269
41244 #, no-wrap
41245 msgid ""
41246 " virt-make-fs --partition -- input.tar output.img\n"
41247 "\n"
41248 msgstr ""
41249
41250 #. type: textblock
41251 #: ../tools/virt-make-fs.pl:271
41252 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41253 msgstr ""
41254
41255 #. type: textblock
41256 #: ../tools/virt-make-fs.pl:559
41257 msgid ""
41258 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41259 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41260 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41261 msgstr ""
41262
41263 #. type: textblock
41264 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41265 msgid ""
41266 "When reporting bugs, please enable debugging and capture the I<complete> "
41267 "output:"
41268 msgstr ""
41269
41270 #. type: verbatim
41271 #: ../tools/virt-make-fs.pl:576
41272 #, no-wrap
41273 msgid ""
41274 " export LIBGUESTFS_DEBUG=1\n"
41275 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41276 "\n"
41277 msgstr ""
41278
41279 #. type: textblock
41280 #: ../tools/virt-make-fs.pl:579
41281 msgid ""
41282 "Attach /tmp/virt-make-fs.log to a new bug report at "
41283 "L<https://bugzilla.redhat.com/>"
41284 msgstr ""
41285
41286 #. type: textblock
41287 #: ../tools/virt-tar.pl:33
41288 msgid "virt-tar - Extract or upload files to a virtual machine"
41289 msgstr ""
41290
41291 #. type: verbatim
41292 #: ../tools/virt-tar.pl:37
41293 #, no-wrap
41294 msgid ""
41295 " virt-tar [--options] -x domname directory tarball\n"
41296 "\n"
41297 msgstr ""
41298
41299 #. type: verbatim
41300 #: ../tools/virt-tar.pl:39
41301 #, no-wrap
41302 msgid ""
41303 " virt-tar [--options] -u domname tarball directory\n"
41304 "\n"
41305 msgstr ""
41306
41307 #. type: verbatim
41308 #: ../tools/virt-tar.pl:41
41309 #, no-wrap
41310 msgid ""
41311 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41312 "\n"
41313 msgstr ""
41314
41315 #. type: verbatim
41316 #: ../tools/virt-tar.pl:43
41317 #, no-wrap
41318 msgid ""
41319 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41320 "\n"
41321 msgstr ""
41322
41323 #. type: =head2
41324 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41325 msgid "NOTE"
41326 msgstr ""
41327
41328 #. type: textblock
41329 #: ../tools/virt-tar.pl:47
41330 msgid ""
41331 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41332 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41333 msgstr ""
41334
41335 #. type: textblock
41336 #: ../tools/virt-tar.pl:52
41337 msgid "Download C</home> from the VM into a local tarball:"
41338 msgstr ""
41339
41340 #. type: verbatim
41341 #: ../tools/virt-tar.pl:54
41342 #, no-wrap
41343 msgid ""
41344 " virt-tar -x domname /home home.tar\n"
41345 "\n"
41346 msgstr ""
41347
41348 #. type: verbatim
41349 #: ../tools/virt-tar.pl:56
41350 #, no-wrap
41351 msgid ""
41352 " virt-tar -zx domname /home home.tar.gz\n"
41353 "\n"
41354 msgstr ""
41355
41356 #. type: textblock
41357 #: ../tools/virt-tar.pl:58
41358 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41359 msgstr ""
41360
41361 #. type: verbatim
41362 #: ../tools/virt-tar.pl:60
41363 #, no-wrap
41364 msgid ""
41365 " virt-tar -u domname uploadstuff.tar /tmp\n"
41366 "\n"
41367 msgstr ""
41368
41369 #. type: verbatim
41370 #: ../tools/virt-tar.pl:62
41371 #, no-wrap
41372 msgid ""
41373 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41374 "\n"
41375 msgstr ""
41376
41377 #. type: textblock
41378 #: ../tools/virt-tar.pl:66
41379 msgid ""
41380 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41381 "virtual machines.  If you do this, you risk disk corruption in the VM.  C"
41382 "<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41383 msgstr ""
41384
41385 #. type: textblock
41386 #: ../tools/virt-tar.pl:71
41387 msgid ""
41388 "You can use I<-x> (extract) on live virtual machines, but you might get "
41389 "inconsistent results or errors if there is filesystem activity inside the "
41390 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41391 "work, but the only way to guarantee consistent results is if the virtual "
41392 "machine is shut down."
41393 msgstr ""
41394
41395 #. type: textblock
41396 #: ../tools/virt-tar.pl:79
41397 msgid ""
41398 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41399 "parts of a guest filesystem.  There are many possibilities: making backups, "
41400 "uploading data files, snooping on guest activity, fixing or customizing "
41401 "guests, etc."
41402 msgstr ""
41403
41404 #. type: textblock
41405 #: ../tools/virt-tar.pl:84
41406 msgid ""
41407 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41408 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you"
41409 " should look at the L<guestfish(1)> tool."
41410 msgstr ""
41411
41412 #. type: textblock
41413 #: ../tools/virt-tar.pl:88
41414 msgid ""
41415 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41416 "its contents (recursively) from the virtual machine into a local tarball.  "
41417 "I<-u> uploads from a local tarball, unpacking it into a directory inside the"
41418 " virtual machine.  You cannot use these two options together."
41419 msgstr ""
41420
41421 #. type: textblock
41422 #: ../tools/virt-tar.pl:94
41423 msgid ""
41424 "In addition, you may need to use the I<-z> (gZip) option to enable "
41425 "compression.  When uploading, you have to specify I<-z> if the upload file "
41426 "is compressed because virt-tar won't detect this on its own."
41427 msgstr ""
41428
41429 #. type: textblock
41430 #: ../tools/virt-tar.pl:98
41431 msgid ""
41432 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41433 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41434 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of"
41435 " the L<libguestfs(3)> API)."
41436 msgstr ""
41437
41438 #. type: =item
41439 #: ../tools/virt-tar.pl:160
41440 msgid "B<--extract>"
41441 msgstr ""
41442
41443 #. type: =item
41444 #: ../tools/virt-tar.pl:162
41445 msgid "B<--download>"
41446 msgstr ""
41447
41448 #. type: =item
41449 #: ../tools/virt-tar.pl:164
41450 msgid "B<-u>"
41451 msgstr ""
41452
41453 #. type: =item
41454 #: ../tools/virt-tar.pl:166
41455 msgid "B<--upload>"
41456 msgstr ""
41457
41458 #. type: textblock
41459 #: ../tools/virt-tar.pl:168
41460 msgid ""
41461 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41462 "local tarball."
41463 msgstr ""
41464
41465 #. type: textblock
41466 #: ../tools/virt-tar.pl:171
41467 msgid ""
41468 "Use I<-u> to upload and unpack from a local tarball into a virtual machine."
41469 "  Please read the L</WARNING> section above before using this option."
41470 msgstr ""
41471
41472 #. type: textblock
41473 #: ../tools/virt-tar.pl:175
41474 msgid "You must specify exactly one of these options."
41475 msgstr ""
41476
41477 #. type: =item
41478 #: ../tools/virt-tar.pl:181
41479 msgid "B<-z>"
41480 msgstr ""
41481
41482 #. type: =item
41483 #: ../tools/virt-tar.pl:183
41484 msgid "B<--gzip>"
41485 msgstr ""
41486
41487 #. type: textblock
41488 #: ../tools/virt-tar.pl:185
41489 msgid "Specify that the input or output tarball is gzip-compressed."
41490 msgstr ""
41491
41492 #. type: textblock
41493 #: ../tools/virt-tar.pl:298
41494 msgid ""
41495 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
41496 "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
41497 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
41498 "L<http://libguestfs.org/>."
41499 msgstr ""
41500
41501 #. type: textblock
41502 #: ../tools/virt-win-reg.pl:37
41503 msgid ""
41504 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41505 "guest"
41506 msgstr ""
41507
41508 #. type: verbatim
41509 #: ../tools/virt-win-reg.pl:41
41510 #, no-wrap
41511 msgid ""
41512 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41513 "\n"
41514 msgstr ""
41515
41516 #. type: verbatim
41517 #: ../tools/virt-win-reg.pl:43
41518 #, no-wrap
41519 msgid ""
41520 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41521 "\n"
41522 msgstr ""
41523
41524 #. type: verbatim
41525 #: ../tools/virt-win-reg.pl:45
41526 #, no-wrap
41527 msgid ""
41528 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41529 "\n"
41530 msgstr ""
41531
41532 #. type: verbatim
41533 #: ../tools/virt-win-reg.pl:47
41534 #, no-wrap
41535 msgid ""
41536 " virt-win-reg --merge domname [input.reg ...]\n"
41537 "\n"
41538 msgstr ""
41539
41540 #. type: verbatim
41541 #: ../tools/virt-win-reg.pl:49
41542 #, no-wrap
41543 msgid ""
41544 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41545 "\n"
41546 msgstr ""
41547
41548 #. type: textblock
41549 #: ../tools/virt-win-reg.pl:53
41550 msgid ""
41551 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41552 "virtual machines.  If you do this, you I<will> get irreversible disk "
41553 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41554 "but doesn't catch all cases."
41555 msgstr ""
41556
41557 #. type: textblock
41558 #: ../tools/virt-win-reg.pl:58
41559 msgid ""
41560 "Modifying the Windows Registry is an inherently risky operation.  The format"
41561 " is deliberately obscure and undocumented, and Registry changes can leave "
41562 "the system unbootable.  Therefore when using the I<--merge> option, make "
41563 "sure you have a reliable backup first."
41564 msgstr ""
41565
41566 #. type: textblock
41567 #: ../tools/virt-win-reg.pl:65
41568 msgid ""
41569 "This program can export and merge Windows Registry entries from a Windows "
41570 "guest."
41571 msgstr ""
41572
41573 #. type: textblock
41574 #: ../tools/virt-win-reg.pl:68
41575 msgid ""
41576 "The first parameter is the libvirt guest name or the raw disk image of a "
41577 "Windows guest."
41578 msgstr ""
41579
41580 #. type: textblock
41581 #: ../tools/virt-win-reg.pl:71
41582 msgid ""
41583 "If I<--merge> is I<not> specified, then the chosen registry key is "
41584 "displayed/exported (recursively).  For example:"
41585 msgstr ""
41586
41587 #. type: verbatim
41588 #: ../tools/virt-win-reg.pl:74
41589 #, no-wrap
41590 msgid ""
41591 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41592 "\n"
41593 msgstr ""
41594
41595 #. type: textblock
41596 #: ../tools/virt-win-reg.pl:76
41597 msgid ""
41598 "You can also display single values from within registry keys, for example:"
41599 msgstr ""
41600
41601 #. type: verbatim
41602 #: ../tools/virt-win-reg.pl:79
41603 #, no-wrap
41604 msgid ""
41605 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41606 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41607 " Windows 7 Enterprise\n"
41608 "\n"
41609 msgstr ""
41610
41611 #. type: textblock
41612 #: ../tools/virt-win-reg.pl:83
41613 msgid ""
41614 "With I<--merge>, you can merge a textual regedit file into the Windows "
41615 "Registry:"
41616 msgstr ""
41617
41618 #. type: verbatim
41619 #: ../tools/virt-win-reg.pl:86
41620 #, no-wrap
41621 msgid ""
41622 " $ virt-win-reg --merge Windows7 changes.reg\n"
41623 "\n"
41624 msgstr ""
41625
41626 #. type: textblock
41627 #: ../tools/virt-win-reg.pl:90
41628 msgid ""
41629 "This program is only meant for simple access to the registry.  If you want "
41630 "to do complicated things with the registry, we suggest you download the "
41631 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)>"
41632 " and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41633 "L<hivexregedit(1)>."
41634 msgstr ""
41635
41636 #. type: =item
41637 #: ../tools/virt-win-reg.pl:159
41638 msgid "B<--merge>"
41639 msgstr ""
41640
41641 #. type: textblock
41642 #: ../tools/virt-win-reg.pl:161
41643 msgid ""
41644 "In merge mode, this merges a textual regedit file into the Windows Registry "
41645 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41646 "displays or exports Registry entries instead."
41647 msgstr ""
41648
41649 #. type: textblock
41650 #: ../tools/virt-win-reg.pl:165
41651 msgid ""
41652 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41653 "result in disk corruption.  However exporting (without this flag)  is always"
41654 " safe."
41655 msgstr ""
41656
41657 #. type: =item
41658 #: ../tools/virt-win-reg.pl:173
41659 msgid "B<--encoding> UTF-16LE|ASCII"
41660 msgstr ""
41661
41662 #. type: textblock
41663 #: ../tools/virt-win-reg.pl:175
41664 msgid ""
41665 "When merging (only), you may need to specify the encoding for strings to be "
41666 "used in the hive file.  This is explained in detail in "
41667 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
41668 msgstr ""
41669
41670 #. type: textblock
41671 #: ../tools/virt-win-reg.pl:179
41672 msgid ""
41673 "The default is to use UTF-16LE, which should work with recent versions of "
41674 "Windows."
41675 msgstr ""
41676
41677 #. type: =item
41678 #: ../tools/virt-win-reg.pl:186
41679 msgid "B<--unsafe-printable-strings>"
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../tools/virt-win-reg.pl:188
41684 msgid ""
41685 "When exporting (only), assume strings are UTF-16LE and print them as strings"
41686 " instead of hex sequences.  Remove the final zero codepoint from strings if "
41687 "present."
41688 msgstr ""
41689
41690 #. type: textblock
41691 #: ../tools/virt-win-reg.pl:192
41692 msgid ""
41693 "This is unsafe and does not preserve the fidelity of strings in the original"
41694 " Registry for various reasons:"
41695 msgstr ""
41696
41697 #. type: textblock
41698 #: ../tools/virt-win-reg.pl:199
41699 msgid ""
41700 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41701 "other encodings will be corrupted by this transformation."
41702 msgstr ""
41703
41704 #. type: textblock
41705 #: ../tools/virt-win-reg.pl:204
41706 msgid ""
41707 "Assumes that everything which has type 1 or 2 is really a string and that "
41708 "everything else is not a string, but the type field in real Registries is "
41709 "not reliable."
41710 msgstr ""
41711
41712 #. type: textblock
41713 #: ../tools/virt-win-reg.pl:210
41714 msgid ""
41715 "Loses information about whether a zero codepoint followed the string in the "
41716 "Registry or not."
41717 msgstr ""
41718
41719 #. type: textblock
41720 #: ../tools/virt-win-reg.pl:215
41721 msgid ""
41722 "This all happens because the Registry itself contains no information about "
41723 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41724 msgstr ""
41725
41726 #. type: textblock
41727 #: ../tools/virt-win-reg.pl:219
41728 msgid ""
41729 "You should only use this option for quick hacking and debugging of the "
41730 "Registry contents, and I<never> use it if the output is going to be passed "
41731 "into another program or stored in another Registry."
41732 msgstr ""
41733
41734 #. type: =head1
41735 #: ../tools/virt-win-reg.pl:556
41736 msgid "SUPPORTED SYSTEMS"
41737 msgstr ""
41738
41739 #. type: textblock
41740 #: ../tools/virt-win-reg.pl:558
41741 msgid ""
41742 "The program currently supports Windows NT-derived guests starting with "
41743 "Windows XP through to at least Windows 7."
41744 msgstr ""
41745
41746 #. type: textblock
41747 #: ../tools/virt-win-reg.pl:561
41748 msgid "The following Registry keys are supported:"
41749 msgstr ""
41750
41751 #. type: =item
41752 #: ../tools/virt-win-reg.pl:565
41753 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41754 msgstr ""
41755
41756 #. type: =item
41757 #: ../tools/virt-win-reg.pl:567
41758 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41759 msgstr ""
41760
41761 #. type: =item
41762 #: ../tools/virt-win-reg.pl:569
41763 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41764 msgstr ""
41765
41766 #. type: =item
41767 #: ../tools/virt-win-reg.pl:571
41768 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41769 msgstr ""
41770
41771 #. type: =item
41772 #: ../tools/virt-win-reg.pl:573
41773 msgid "C<HKEY_USERS\\.DEFAULT>"
41774 msgstr ""
41775
41776 #. type: =item
41777 #: ../tools/virt-win-reg.pl:575
41778 msgid "C<HKEY_USERS\\I<SID>>"
41779 msgstr ""
41780
41781 #. type: textblock
41782 #: ../tools/virt-win-reg.pl:577
41783 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41784 msgstr ""
41785
41786 #. type: =item
41787 #: ../tools/virt-win-reg.pl:579
41788 msgid "C<HKEY_USERS\\I<username>>"
41789 msgstr ""
41790
41791 #. type: textblock
41792 #: ../tools/virt-win-reg.pl:581
41793 msgid ""
41794 "where I<username> is a local user name (this is a libguestfs extension)."
41795 msgstr ""
41796
41797 #. type: textblock
41798 #: ../tools/virt-win-reg.pl:585
41799 msgid ""
41800 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for"
41801 " C<HKEY_USERS>."
41802 msgstr ""
41803
41804 #. type: textblock
41805 #: ../tools/virt-win-reg.pl:588
41806 msgid ""
41807 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41808 "supported (there is no \"current user\")."
41809 msgstr ""
41810
41811 #. type: =head1
41812 #: ../tools/virt-win-reg.pl:591
41813 msgid "ENCODING"
41814 msgstr ""
41815
41816 #. type: textblock
41817 #: ../tools/virt-win-reg.pl:593
41818 msgid ""
41819 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41820 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41821 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41822 "Windows-style line endings, you may need to reencode the whole file before "
41823 "or after processing."
41824 msgstr ""
41825
41826 #. type: textblock
41827 #: ../tools/virt-win-reg.pl:599
41828 msgid ""
41829 "To reencode a file from Windows format to Linux (before processing it with "
41830 "the I<--merge> option), you would do something like this:"
41831 msgstr ""
41832
41833 #. type: verbatim
41834 #: ../tools/virt-win-reg.pl:602
41835 #, no-wrap
41836 msgid ""
41837 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41838 "\n"
41839 msgstr ""
41840
41841 #. type: textblock
41842 #: ../tools/virt-win-reg.pl:604
41843 msgid ""
41844 "To go in the opposite direction, after exporting and before sending the file"
41845 " to a Windows user, do something like this:"
41846 msgstr ""
41847
41848 #. type: verbatim
41849 #: ../tools/virt-win-reg.pl:607
41850 #, no-wrap
41851 msgid ""
41852 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41853 "\n"
41854 msgstr ""
41855
41856 #. type: textblock
41857 #: ../tools/virt-win-reg.pl:609
41858 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41859 msgstr ""
41860
41861 #. type: textblock
41862 #: ../tools/virt-win-reg.pl:611
41863 msgid ""
41864 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41865 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41866 "style (CRLF) line endings, like this:"
41867 msgstr ""
41868
41869 #. type: verbatim
41870 #: ../tools/virt-win-reg.pl:615
41871 #, no-wrap
41872 msgid ""
41873 " $ file software.reg\n"
41874 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41875 " with CRLF line terminators\n"
41876 "\n"
41877 msgstr ""
41878
41879 #. type: textblock
41880 #: ../tools/virt-win-reg.pl:619
41881 msgid "This file would need conversion before you could I<--merge> it."
41882 msgstr ""
41883
41884 #. type: =head1
41885 #: ../tools/virt-win-reg.pl:621
41886 msgid "CurrentControlSet etc."
41887 msgstr ""
41888
41889 #. type: textblock
41890 #: ../tools/virt-win-reg.pl:623
41891 msgid ""
41892 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41893 "Registry at the level of the hive file, and therefore you cannot modify "
41894 "these."
41895 msgstr ""
41896
41897 #. type: textblock
41898 #: ../tools/virt-win-reg.pl:627
41899 msgid ""
41900 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41901 "circumstances it might refer to another control set.  The way to find out is"
41902 " to look at the C<HKLM\\SYSTEM\\Select> key:"
41903 msgstr ""
41904
41905 #. type: verbatim
41906 #: ../tools/virt-win-reg.pl:631
41907 #, no-wrap
41908 msgid ""
41909 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41910 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41911 " \"Current\"=dword:00000001\n"
41912 " \"Default\"=dword:00000001\n"
41913 " \"Failed\"=dword:00000000\n"
41914 " \"LastKnownGood\"=dword:00000002\n"
41915 "\n"
41916 msgstr ""
41917
41918 #. type: textblock
41919 #: ../tools/virt-win-reg.pl:638
41920 msgid "\"Current\" is the one which Windows will choose when it boots."
41921 msgstr ""
41922
41923 #. type: textblock
41924 #: ../tools/virt-win-reg.pl:640
41925 msgid ""
41926 "Similarly, other C<Current...> keys in the path may need to be replaced."
41927 msgstr ""
41928
41929 #. type: =head1
41930 #: ../tools/virt-win-reg.pl:643
41931 msgid "DELETING REGISTRY KEYS AND VALUES"
41932 msgstr ""
41933
41934 #. type: textblock
41935 #: ../tools/virt-win-reg.pl:645
41936 msgid "To delete a whole registry key, use the syntax:"
41937 msgstr ""
41938
41939 #. type: verbatim
41940 #: ../tools/virt-win-reg.pl:647
41941 #, no-wrap
41942 msgid ""
41943 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41944 "\n"
41945 msgstr ""
41946
41947 #. type: textblock
41948 #: ../tools/virt-win-reg.pl:649
41949 msgid "To delete a single value within a key, use the syntax:"
41950 msgstr ""
41951
41952 #. type: verbatim
41953 #: ../tools/virt-win-reg.pl:651
41954 #, no-wrap
41955 msgid ""
41956 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41957 " \"Value\"=-\n"
41958 "\n"
41959 msgstr ""
41960
41961 #. type: =head1
41962 #: ../tools/virt-win-reg.pl:654
41963 msgid "WINDOWS TIPS"
41964 msgstr ""
41965
41966 #. type: textblock
41967 #: ../tools/virt-win-reg.pl:656
41968 msgid ""
41969 "Note that some of these tips modify the guest disk image.  The guest I<must>"
41970 " be shut off, else you will get disk corruption."
41971 msgstr ""
41972
41973 #. type: =head2
41974 #: ../tools/virt-win-reg.pl:659
41975 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41976 msgstr ""
41977
41978 #. type: textblock
41979 #: ../tools/virt-win-reg.pl:661
41980 msgid ""
41981 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41982 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41983 "is uploaded into C<C:\\>:"
41984 msgstr ""
41985
41986 #. type: verbatim
41987 #: ../tools/virt-win-reg.pl:665
41988 #, no-wrap
41989 msgid ""
41990 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41991 "\n"
41992 msgstr ""
41993
41994 #. type: textblock
41995 #: ../tools/virt-win-reg.pl:667
41996 msgid "Prepare a regedit file containing the registry change:"
41997 msgstr ""
41998
41999 #. type: verbatim
42000 #: ../tools/virt-win-reg.pl:669
42001 #, no-wrap
42002 msgid ""
42003 " cat > test.reg <<'EOF'\n"
42004 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42005 " \"Test\"=\"c:\\\\test.bat\"\n"
42006 " EOF\n"
42007 "\n"
42008 msgstr ""
42009
42010 #. type: textblock
42011 #: ../tools/virt-win-reg.pl:674
42012 msgid ""
42013 "In this example we use the key C<RunOnce> which means that the script will "
42014 "run precisely once when the first user logs in.  If you want it to run every"
42015 " time a user logs in, replace C<RunOnce> with C<Run>."
42016 msgstr ""
42017
42018 #. type: textblock
42019 #: ../tools/virt-win-reg.pl:678
42020 msgid "Now update the registry:"
42021 msgstr ""
42022
42023 #. type: verbatim
42024 #: ../tools/virt-win-reg.pl:680
42025 #, no-wrap
42026 msgid ""
42027 " virt-win-reg --merge WindowsGuest test.reg\n"
42028 "\n"
42029 msgstr ""
42030
42031 #. type: =head2
42032 #: ../tools/virt-win-reg.pl:682
42033 msgid "INSTALLING A SERVICE"
42034 msgstr ""
42035
42036 #. type: textblock
42037 #: ../tools/virt-win-reg.pl:684
42038 msgid ""
42039 "This section assumes you are familiar with Windows services, and you either "
42040 "have a program which handles the Windows Service Control Protocol directly "
42041 "or you want to run any program using a service wrapper like SrvAny or the "
42042 "free RHSrvAny."
42043 msgstr ""
42044
42045 #. type: textblock
42046 #: ../tools/virt-win-reg.pl:689
42047 msgid ""
42048 "First upload the program and optionally the service wrapper.  In this case "
42049 "the test program is called C<test.exe> and we are using the RHSrvAny "
42050 "wrapper:"
42051 msgstr ""
42052
42053 #. type: verbatim
42054 #: ../tools/virt-win-reg.pl:693
42055 #, no-wrap
42056 msgid ""
42057 " guestfish -i -d WindowsGuest <<EOF\n"
42058 "   upload rhsrvany.exe /rhsrvany.exe\n"
42059 "   upload test.exe /test.exe\n"
42060 " EOF\n"
42061 "\n"
42062 msgstr ""
42063
42064 #. type: textblock
42065 #: ../tools/virt-win-reg.pl:698
42066 msgid ""
42067 "Prepare a regedit file containing the registry changes.  In this example, "
42068 "the first registry change is needed for the service itself or the service "
42069 "wrapper (if used).  The second registry change is only needed because I am "
42070 "using the RHSrvAny service wrapper."
42071 msgstr ""
42072
42073 #. type: verbatim
42074 #: ../tools/virt-win-reg.pl:703
42075 #, no-wrap
42076 msgid ""
42077 " cat > service.reg <<'EOF'\n"
42078 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42079 " \"Type\"=dword:00000010\n"
42080 " \"Start\"=dword:00000002\n"
42081 " \"ErrorControl\"=dword:00000001\n"
42082 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42083 " \"DisplayName\"=\"RHSrvAny\"\n"
42084 " \"ObjectName\"=\"NetworkService\"\n"
42085 " \n"
42086 msgstr ""
42087
42088 #. type: verbatim
42089 #: ../tools/virt-win-reg.pl:712
42090 #, no-wrap
42091 msgid ""
42092 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42093 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42094 " \"PWD\"=\"c:\\\\Temp\"\n"
42095 " EOF\n"
42096 "\n"
42097 msgstr ""
42098
42099 #. type: textblock
42100 #: ../tools/virt-win-reg.pl:723
42101 msgid ""
42102 "For use of C<ControlSet001> see the section above in this manual page.  You "
42103 "may need to adjust this according to the control set that is in use by the "
42104 "guest."
42105 msgstr ""
42106
42107 #. type: textblock
42108 #: ../tools/virt-win-reg.pl:729
42109 msgid ""
42110 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42111 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42112 "privileged account."
42113 msgstr ""
42114
42115 #. type: textblock
42116 #: ../tools/virt-win-reg.pl:735
42117 msgid ""
42118 "For the meaning of the magic numbers, see this Microsoft KB article: "
42119 "L<http://support.microsoft.com/kb/103000>."
42120 msgstr ""
42121
42122 #. type: textblock
42123 #: ../tools/virt-win-reg.pl:740
42124 msgid "Update the registry:"
42125 msgstr ""
42126
42127 #. type: verbatim
42128 #: ../tools/virt-win-reg.pl:742
42129 #, no-wrap
42130 msgid ""
42131 " virt-win-reg --merge WindowsGuest service.reg\n"
42132 "\n"
42133 msgstr ""
42134
42135 #. type: textblock
42136 #: ../tools/virt-win-reg.pl:746
42137 msgid ""
42138 "Be careful when passing parameters containing C<\\> (backslash) in the "
42139 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42140 "(but not both) to protect them from the shell."
42141 msgstr ""
42142
42143 #. type: textblock
42144 #: ../tools/virt-win-reg.pl:750
42145 msgid "Paths and value names are case-insensitive."
42146 msgstr ""
42147
42148 #. type: textblock
42149 #: ../tools/virt-win-reg.pl:759
42150 msgid ""
42151 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42152 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42153 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42154 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42155 msgstr ""
42156
42157 #. type: verbatim
42158 #: ../tools/virt-win-reg.pl:777
42159 #, no-wrap
42160 msgid ""
42161 " export LIBGUESTFS_DEBUG=1\n"
42162 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42163 "\n"
42164 msgstr ""
42165
42166 #. type: textblock
42167 #: ../tools/virt-win-reg.pl:780
42168 msgid ""
42169 "Attach /tmp/virt-win-reg.log to a new bug report at "
42170 "L<https://bugzilla.redhat.com/>"
42171 msgstr ""
42172
42173