af3b832a5db1a8710473851e7546d3801b1f9cb7
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-10-26 21:10+0200\n"
13 "PO-Revision-Date: 2011-10-19 15:46+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "名前"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests.  Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
809 msgstr ""
810
811 #. type: textblock
812 #: ../align/virt-alignment-scan.pod:284
813 msgid ""
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems.  If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
817 msgstr ""
818
819 #. type: textblock
820 #: ../align/virt-alignment-scan.pod:288
821 msgid ""
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../align/virt-alignment-scan.pod:291
828 msgid ""
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
832 "contains an example."
833 msgstr ""
834
835 #. type: =head1
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:231
837 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:744
844 msgid "SHELL QUOTING"
845 msgstr ""
846
847 #. type: textblock
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:233
849 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:752
856 msgid ""
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space.  You may need to quote or "
859 "escape these characters on the command line.  See the shell manual page L<sh"
860 "(1)> for details."
861 msgstr ""
862
863 #. type: =head1
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:238
865 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
871 msgid "EXIT STATUS"
872 msgstr ""
873
874 #. type: textblock
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
877 msgstr ""
878
879 #. type: =item
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
883 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
884 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
885 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
886 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
887 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
888 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
889 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
890 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
891 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
892 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
893 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
894 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
895 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
896 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
897 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
898 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
899 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
900 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
901 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
902 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
903 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
904 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
905 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
906 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
907 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
908 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
909 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
910 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
911 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
912 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
913 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
914 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
915 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
916 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
917 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
918 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
919 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
920 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
921 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
922 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
923 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
924 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
925 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2075
926 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
927 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2095
928 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2109
929 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2117
930 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:2259
931 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2269
932 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2334
933 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2754
934 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2768
935 #: ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3319
936 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3334
937 #: ../src/guestfs-actions.pod:3341 ../src/guestfs.pod:403
938 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
939 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
940 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
941 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
942 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
943 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
944 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
945 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
946 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
947 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
948 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
949 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
950 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
951 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
952 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
953 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
954 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
955 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
956 #: ../tools/virt-win-reg.pl:733
957 msgid "*"
958 msgstr ""
959
960 #. type: textblock
961 #: ../align/virt-alignment-scan.pod:311
962 msgid "0"
963 msgstr ""
964
965 #. type: textblock
966 #: ../align/virt-alignment-scan.pod:313
967 msgid ""
968 "successful exit, all partitions are aligned E<ge> 64K for best performance"
969 msgstr ""
970
971 #. type: textblock
972 #: ../align/virt-alignment-scan.pod:317
973 msgid "1"
974 msgstr ""
975
976 #. type: textblock
977 #: ../align/virt-alignment-scan.pod:319
978 msgid "an error scanning the disk image or guest"
979 msgstr ""
980
981 #. type: textblock
982 #: ../align/virt-alignment-scan.pod:323
983 msgid "2"
984 msgstr ""
985
986 #. type: textblock
987 #: ../align/virt-alignment-scan.pod:325
988 msgid ""
989 "successful exit, some partitions have alignment E<lt> 64K which can result "
990 "in poor performance on high end network storage"
991 msgstr ""
992
993 #. type: textblock
994 #: ../align/virt-alignment-scan.pod:330
995 msgid "3"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid ""
1001 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1002 "poor performance on most hypervisors"
1003 msgstr ""
1004
1005 #. type: =head1
1006 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:243
1007 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1008 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1009 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1010 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1011 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1012 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1013 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1014 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1015 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1016 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1017 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1018 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1019 #: ../test-tool/libguestfs-test-tool.pod:100
1020 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1021 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1022 #: ../tools/virt-win-reg.pl:757
1023 msgid "SEE ALSO"
1024 msgstr ""
1025
1026 #. type: textblock
1027 #: ../align/virt-alignment-scan.pod:339
1028 msgid ""
1029 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1030 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1031 msgstr ""
1032
1033 #. type: =head1
1034 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:252
1035 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1036 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1037 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1038 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1039 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1040 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1041 #: ../tools/virt-win-reg.pl:783
1042 msgid "AUTHOR"
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:254
1047 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1048 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1049 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1050 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1051 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1052 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1053 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1054 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:256
1059 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1060 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1061 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1062 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1063 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1064 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1065 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1066 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1067 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1068 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1069 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1070 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1071 #: ../test-tool/libguestfs-test-tool.pod:110
1072 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1073 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1074 #: ../tools/virt-win-reg.pl:787
1075 msgid "COPYRIGHT"
1076 msgstr ""
1077
1078 #. type: textblock
1079 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1080 #: ../sparsify/virt-sparsify.pod:270
1081 msgid "Copyright (C) 2011 Red Hat Inc."
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:260
1086 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1087 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1088 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1089 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1090 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1091 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1092 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1093 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1094 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1095 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1096 #: ../tools/virt-win-reg.pl:791
1097 msgid ""
1098 "This program is free software; you can redistribute it and/or modify it "
1099 "under the terms of the GNU General Public License as published by the Free "
1100 "Software Foundation; either version 2 of the License, or (at your option) "
1101 "any later version."
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:265
1106 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1107 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1108 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1109 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1110 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1111 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1112 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1113 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1114 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1115 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1116 #: ../tools/virt-win-reg.pl:796
1117 msgid ""
1118 "This program is distributed in the hope that it will be useful, but WITHOUT "
1119 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1120 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1121 "more details."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:270
1126 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1127 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1128 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1129 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1130 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1131 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1132 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1133 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1134 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1135 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1136 #: ../tools/virt-win-reg.pl:801
1137 msgid ""
1138 "You should have received a copy of the GNU General Public License along with "
1139 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1140 "Ave, Cambridge, MA 02139, USA."
1141 msgstr ""
1142
1143 #. type: textblock
1144 #: ../cat/virt-cat.pod:5
1145 msgid "virt-cat - Display files in a virtual machine"
1146 msgstr ""
1147
1148 #. type: verbatim
1149 #: ../cat/virt-cat.pod:9
1150 #, no-wrap
1151 msgid ""
1152 " virt-cat [--options] -d domname file [file ...]\n"
1153 "\n"
1154 msgstr ""
1155
1156 #. type: verbatim
1157 #: ../cat/virt-cat.pod:11
1158 #, no-wrap
1159 msgid ""
1160 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1161 "\n"
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1166 #: ../inspector/virt-inspector.pod:13
1167 msgid "Old-style:"
1168 msgstr ""
1169
1170 #. type: verbatim
1171 #: ../cat/virt-cat.pod:15
1172 #, no-wrap
1173 msgid ""
1174 " virt-cat domname file\n"
1175 "\n"
1176 msgstr ""
1177
1178 #. type: verbatim
1179 #: ../cat/virt-cat.pod:17
1180 #, no-wrap
1181 msgid ""
1182 " virt-cat disk.img file\n"
1183 "\n"
1184 msgstr ""
1185
1186 #. type: textblock
1187 #: ../cat/virt-cat.pod:21
1188 msgid ""
1189 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1190 "C<file> exists in the named virtual machine (or disk image)."
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../cat/virt-cat.pod:24
1195 msgid ""
1196 "Multiple filenames can be given, in which case they are concatenated "
1197 "together.  Each filename must be a full path, starting at the root directory "
1198 "(starting with '/')."
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-cat.pod:28
1203 msgid ""
1204 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1205 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1206 "(see L</USING GUESTFISH> below)."
1207 msgstr ""
1208
1209 #. type: =head1
1210 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1211 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1212 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1213 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1214 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1215 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1216 #: ../tools/virt-tar.pl:50
1217 msgid "EXAMPLES"
1218 msgstr ""
1219
1220 #. type: textblock
1221 #: ../cat/virt-cat.pod:34
1222 msgid ""
1223 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1224 msgstr ""
1225
1226 #. type: verbatim
1227 #: ../cat/virt-cat.pod:37
1228 #, no-wrap
1229 msgid ""
1230 " virt-cat -d mydomain /etc/fstab\n"
1231 "\n"
1232 msgstr ""
1233
1234 #. type: textblock
1235 #: ../cat/virt-cat.pod:39
1236 msgid "List syslog messages from a VM disk image file:"
1237 msgstr ""
1238
1239 #. type: verbatim
1240 #: ../cat/virt-cat.pod:41
1241 #, no-wrap
1242 msgid ""
1243 " virt-cat -a disk.img /var/log/messages | tail\n"
1244 "\n"
1245 msgstr ""
1246
1247 #. type: textblock
1248 #: ../cat/virt-cat.pod:43
1249 msgid "Find out what DHCP IP address a VM acquired:"
1250 msgstr ""
1251
1252 #. type: verbatim
1253 #: ../cat/virt-cat.pod:45
1254 #, no-wrap
1255 msgid ""
1256 " virt-cat -d mydomain /var/log/messages | \\\n"
1257 "   grep 'dhclient: bound to' | tail\n"
1258 "\n"
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../cat/virt-cat.pod:48
1263 msgid "Find out what packages were recently installed:"
1264 msgstr ""
1265
1266 #. type: verbatim
1267 #: ../cat/virt-cat.pod:50
1268 #, no-wrap
1269 msgid ""
1270 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1271 "\n"
1272 msgstr ""
1273
1274 #. type: textblock
1275 #: ../cat/virt-cat.pod:52
1276 msgid "Find out who is logged on inside a virtual machine:"
1277 msgstr ""
1278
1279 #. type: verbatim
1280 #: ../cat/virt-cat.pod:54
1281 #, no-wrap
1282 msgid ""
1283 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1284 " who /tmp/utmp\n"
1285 "\n"
1286 msgstr ""
1287
1288 #. type: textblock
1289 #: ../cat/virt-cat.pod:57
1290 msgid "or who was logged on:"
1291 msgstr ""
1292
1293 #. type: verbatim
1294 #: ../cat/virt-cat.pod:59
1295 #, no-wrap
1296 msgid ""
1297 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1298 " last -f /tmp/wtmp\n"
1299 "\n"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1304 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1305 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1306 msgid ""
1307 "Add I<file> which should be a disk image from a virtual machine.  If the "
1308 "virtual machine has multiple block devices, you must supply all of them with "
1309 "separate I<-a> options."
1310 msgstr ""
1311
1312 #. type: =item
1313 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1314 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1315 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1316 msgid "B<--echo-keys>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-cat.pod:100
1321 msgid ""
1322 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1323 "so you cannot see what you are typing.  If you are not worried about Tempest "
1324 "attacks and there is no one else in the room you can specify this flag to "
1325 "see what you are typing."
1326 msgstr ""
1327
1328 #. type: verbatim
1329 #: ../cat/virt-cat.pod:116
1330 #, no-wrap
1331 msgid ""
1332 " virt-cat --format=raw -a disk.img file\n"
1333 "\n"
1334 msgstr ""
1335
1336 #. type: verbatim
1337 #: ../cat/virt-cat.pod:120
1338 #, no-wrap
1339 msgid ""
1340 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1341 "\n"
1342 msgstr ""
1343
1344 #. type: =item
1345 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1346 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1347 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1348 msgid "B<--keys-from-stdin>"
1349 msgstr ""
1350
1351 #. type: textblock
1352 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1353 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1354 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1355 msgid ""
1356 "Read key or passphrase parameters from stdin.  The default is to try to read "
1357 "passphrases from the user by opening C</dev/tty>."
1358 msgstr ""
1359
1360 #. type: =head1
1361 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1362 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1363 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-cat.pod:154
1368 msgid "Previous versions of virt-cat allowed you to write either:"
1369 msgstr ""
1370
1371 #. type: verbatim
1372 #: ../cat/virt-cat.pod:156
1373 #, no-wrap
1374 msgid ""
1375 " virt-cat disk.img [disk.img ...] file\n"
1376 "\n"
1377 msgstr ""
1378
1379 #. type: textblock
1380 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1381 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1382 msgid "or"
1383 msgstr ""
1384
1385 #. type: verbatim
1386 #: ../cat/virt-cat.pod:160
1387 #, no-wrap
1388 msgid ""
1389 " virt-cat guestname file\n"
1390 "\n"
1391 msgstr ""
1392
1393 #. type: textblock
1394 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1395 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1396 msgid ""
1397 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1398 "the confusing case where a disk image might have the same name as a guest."
1399 msgstr ""
1400
1401 #. type: textblock
1402 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1403 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1404 msgid "For compatibility the old style is still supported."
1405 msgstr ""
1406
1407 #. type: =head1
1408 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1409 msgid "WINDOWS PATHS"
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-cat.pod:170
1414 msgid ""
1415 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1416 "paths (eg. C<E:\\foo\\bar.txt>)."
1417 msgstr ""
1418
1419 #. type: textblock
1420 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1421 msgid "If and only if the guest is running Windows then:"
1422 msgstr ""
1423
1424 #. type: textblock
1425 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1426 msgid ""
1427 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1428 "to the correct filesystem."
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1433 msgid ""
1434 "Any backslash (C<\\>) characters in the path are replaced with forward "
1435 "slashes so that libguestfs can process it."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-cat.pod:189
1440 msgid ""
1441 "The path is resolved case insensitively to locate the file that should be "
1442 "displayed."
1443 msgstr ""
1444
1445 #. type: textblock
1446 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1447 msgid "There are some known shortcomings:"
1448 msgstr ""
1449
1450 #. type: textblock
1451 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1452 msgid "Some NTFS symbolic links may not be followed correctly."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1457 msgid "NTFS junction points that cross filesystems are not followed."
1458 msgstr ""
1459
1460 #. type: =head1
1461 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1462 msgid "USING GUESTFISH"
1463 msgstr ""
1464
1465 #. type: textblock
1466 #: ../cat/virt-cat.pod:210
1467 msgid ""
1468 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1469 "C<virt-cat> doesn't work."
1470 msgstr ""
1471
1472 #. type: textblock
1473 #: ../cat/virt-cat.pod:213
1474 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1475 msgstr ""
1476
1477 #. type: verbatim
1478 #: ../cat/virt-cat.pod:215
1479 #, no-wrap
1480 msgid ""
1481 " guestfish --ro -i -d domname download file -\n"
1482 "\n"
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../cat/virt-cat.pod:217
1487 msgid ""
1488 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1489 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-cat.pod:221
1494 msgid ""
1495 "The command above uses libguestfs's guest inspection feature and so does not "
1496 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1497 "disk images that don't contain guests.  To display a file from a disk image "
1498 "directly, use:"
1499 msgstr ""
1500
1501 #. type: verbatim
1502 #: ../cat/virt-cat.pod:226
1503 #, no-wrap
1504 msgid ""
1505 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1506 "\n"
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-cat.pod:228
1511 msgid ""
1512 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1513 "the disk image, and C<file> is the full path to the file."
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1518 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1519 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1520 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1521 msgid ""
1522 "This program returns 0 if successful, or non-zero if there was an error."
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../cat/virt-cat.pod:245
1527 msgid ""
1528 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1529 "tar-out(1)>, L<http://libguestfs.org/>."
1530 msgstr ""
1531
1532 #. type: textblock
1533 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1534 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1535 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1536 msgstr ""
1537
1538 #. type: textblock
1539 #: ../cat/virt-filesystems.pod:5
1540 msgid ""
1541 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1542 "virtual machine or disk image"
1543 msgstr ""
1544
1545 #. type: verbatim
1546 #: ../cat/virt-filesystems.pod:9
1547 #, no-wrap
1548 msgid ""
1549 " virt-filesystems [--options] -d domname\n"
1550 "\n"
1551 msgstr ""
1552
1553 #. type: verbatim
1554 #: ../cat/virt-filesystems.pod:11
1555 #, no-wrap
1556 msgid ""
1557 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1558 "\n"
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-filesystems.pod:15
1563 msgid ""
1564 "This tool allows you to discover filesystems, partitions, logical volumes, "
1565 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1566 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1567 msgstr ""
1568
1569 #. type: textblock
1570 #: ../cat/virt-filesystems.pod:20
1571 msgid ""
1572 "One use for this tool is from shell scripts to iterate over all filesystems "
1573 "from a disk image:"
1574 msgstr ""
1575
1576 #. type: verbatim
1577 #: ../cat/virt-filesystems.pod:23
1578 #, no-wrap
1579 msgid ""
1580 " for fs in $(virt-filesystems -a disk.img); do\n"
1581 "   # ...\n"
1582 " done\n"
1583 "\n"
1584 msgstr ""
1585
1586 #. type: textblock
1587 #: ../cat/virt-filesystems.pod:27
1588 msgid ""
1589 "Another use is to list partitions before using another tool to modify those "
1590 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1591 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-filesystems.pod:32
1596 msgid ""
1597 "Various command line options control what this program displays.  You need "
1598 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1599 "guest respectively.  If you just specify that then the program shows "
1600 "filesystems found, one per line, like this:"
1601 msgstr ""
1602
1603 #. type: verbatim
1604 #: ../cat/virt-filesystems.pod:37
1605 #, no-wrap
1606 msgid ""
1607 " $ virt-filesystems -a disk.img\n"
1608 " /dev/sda1\n"
1609 " /dev/vg_guest/lv_root\n"
1610 "\n"
1611 msgstr ""
1612
1613 #. type: textblock
1614 #: ../cat/virt-filesystems.pod:41
1615 msgid ""
1616 "If you add I<-l> or I<--long> then the output includes extra information:"
1617 msgstr ""
1618
1619 #. type: verbatim
1620 #: ../cat/virt-filesystems.pod:44
1621 #, no-wrap
1622 msgid ""
1623 " $ virt-filesystems -a disk.img -l\n"
1624 " Name                   Type         VFS   Label  Size\n"
1625 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1626 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1627 "\n"
1628 msgstr ""
1629
1630 #. type: textblock
1631 #: ../cat/virt-filesystems.pod:49
1632 msgid ""
1633 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1634 "shown as well:"
1635 msgstr ""
1636
1637 #. type: verbatim
1638 #: ../cat/virt-filesystems.pod:52
1639 #, no-wrap
1640 msgid ""
1641 " $ virt-filesystems -a disk.img --extra\n"
1642 " /dev/sda1\n"
1643 " /dev/vg_guest/lv_root\n"
1644 " /dev/vg_guest/lv_swap\n"
1645 " /dev/vg_guest/lv_data\n"
1646 "\n"
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:58
1651 msgid ""
1652 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1653 msgstr ""
1654
1655 #. type: verbatim
1656 #: ../cat/virt-filesystems.pod:60
1657 #, no-wrap
1658 msgid ""
1659 " $ virt-filesystems -a disk.img --partitions\n"
1660 " /dev/sda1\n"
1661 " /dev/sda2\n"
1662 "\n"
1663 msgstr ""
1664
1665 #. type: textblock
1666 #: ../cat/virt-filesystems.pod:64
1667 msgid ""
1668 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1669 "volumes>, I<--block-devices> to list those items."
1670 msgstr ""
1671
1672 #. type: textblock
1673 #: ../cat/virt-filesystems.pod:67
1674 msgid ""
1675 "You can use these options in combination as well (if you want a combination "
1676 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1677 "items fall into several categories (eg. C</dev/sda1> might be both a "
1678 "partition and a filesystem).  These items are listed several times.  To get "
1679 "a list which includes absolutely everything that virt-filesystems knows "
1680 "about, use the I<--all> option."
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../cat/virt-filesystems.pod:74
1685 msgid ""
1686 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1687 "uuid> option to display device and filesystem UUIDs in the long output."
1688 msgstr ""
1689
1690 #. type: textblock
1691 #: ../cat/virt-filesystems.pod:78
1692 msgid ""
1693 "I<--all --long --uuid> is a useful combination to display all possible "
1694 "information about everything."
1695 msgstr ""
1696
1697 #. type: verbatim
1698 #: ../cat/virt-filesystems.pod:81
1699 #, no-wrap
1700 msgid ""
1701 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1702 " Name      Type       VFS  Label           Size Parent   UUID\n"
1703 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1704 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1705 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1706 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1707 " /dev/sda  device     -    -               20G  -        -\n"
1708 "\n"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:89
1713 msgid ""
1714 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1715 msgstr ""
1716
1717 #. type: =item
1718 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1719 msgid "B<--all>"
1720 msgstr ""
1721
1722 #. type: textblock
1723 #: ../cat/virt-filesystems.pod:112
1724 msgid ""
1725 "Display everything.  This is currently the same as specifying these options: "
1726 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1727 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1728 "added to this list in future)."
1729 msgstr ""
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:117
1733 msgid "See also I<--long>."
1734 msgstr ""
1735
1736 #. type: =item
1737 #: ../cat/virt-filesystems.pod:119
1738 msgid "B<--blkdevs>"
1739 msgstr ""
1740
1741 #. type: =item
1742 #: ../cat/virt-filesystems.pod:121
1743 msgid "B<--block-devices>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-filesystems.pod:123
1748 msgid "Display block devices."
1749 msgstr ""
1750
1751 #. type: =item
1752 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1753 msgid "B<--csv>"
1754 msgstr ""
1755
1756 #. type: textblock
1757 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1758 msgid ""
1759 "Write out the results in CSV format (comma-separated values).  This format "
1760 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1761 "ABOUT CSV FORMAT> below."
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:150
1766 msgid ""
1767 "When prompting for keys and passphrases, virt-filesystems normally turns "
1768 "echoing off so you cannot see what you are typing.  If you are not worried "
1769 "about Tempest attacks and there is no one else in the room you can specify "
1770 "this flag to see what you are typing."
1771 msgstr ""
1772
1773 #. type: =item
1774 #: ../cat/virt-filesystems.pod:155
1775 msgid "B<--extra>"
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-filesystems.pod:157
1780 msgid ""
1781 "This causes filesystems that are not ordinary, mountable filesystems to be "
1782 "displayed.  This category includes swapspace, and filesystems that are empty "
1783 "or contain unknown data."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:161
1788 msgid "This option implies I<--filesystems>."
1789 msgstr ""
1790
1791 #. type: =item
1792 #: ../cat/virt-filesystems.pod:163
1793 msgid "B<--filesystems>"
1794 msgstr ""
1795
1796 #. type: textblock
1797 #: ../cat/virt-filesystems.pod:165
1798 msgid ""
1799 "Display mountable filesystems.  If no display option was selected then this "
1800 "option is implied."
1801 msgstr ""
1802
1803 #. type: textblock
1804 #: ../cat/virt-filesystems.pod:168
1805 msgid "With I<--extra>, non-mountable filesystems are shown too."
1806 msgstr ""
1807
1808 #. type: verbatim
1809 #: ../cat/virt-filesystems.pod:181
1810 #, no-wrap
1811 msgid ""
1812 " virt-filesystems --format=raw -a disk.img\n"
1813 "\n"
1814 msgstr ""
1815
1816 #. type: verbatim
1817 #: ../cat/virt-filesystems.pod:185
1818 #, no-wrap
1819 msgid ""
1820 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1821 "\n"
1822 msgstr ""
1823
1824 #. type: =item
1825 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1826 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1827 #: ../tools/virt-list-partitions.pl:109
1828 msgid "B<-h>"
1829 msgstr ""
1830
1831 #. type: =item
1832 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1833 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1834 msgid "B<--human-readable>"
1835 msgstr ""
1836
1837 #. type: textblock
1838 #: ../cat/virt-filesystems.pod:198
1839 msgid "In I<--long> mode, display sizes in human-readable format."
1840 msgstr ""
1841
1842 #. type: =item
1843 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1844 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1845 msgid "B<-l>"
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1850 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1851 msgid "B<--long>"
1852 msgstr ""
1853
1854 #. type: textblock
1855 #: ../cat/virt-filesystems.pod:209
1856 msgid "Display extra columns of data (\"long format\")."
1857 msgstr ""
1858
1859 #. type: textblock
1860 #: ../cat/virt-filesystems.pod:211
1861 msgid "A title row is added unless you also specify I<--no-title>."
1862 msgstr ""
1863
1864 #. type: textblock
1865 #: ../cat/virt-filesystems.pod:213
1866 msgid ""
1867 "The extra columns displayed depend on what output you select, and the "
1868 "ordering of columns may change in future versions.  Use the title row, I<--"
1869 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1870 "programs."
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-filesystems.pod:218
1875 msgid ""
1876 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1877 "default is to show raw numbers of I<bytes>."
1878 msgstr ""
1879
1880 #. type: textblock
1881 #: ../cat/virt-filesystems.pod:221
1882 msgid "Use I<--uuid> to display UUIDs too."
1883 msgstr ""
1884
1885 #. type: =item
1886 #: ../cat/virt-filesystems.pod:223
1887 msgid "B<--lvs>"
1888 msgstr ""
1889
1890 #. type: =item
1891 #: ../cat/virt-filesystems.pod:225
1892 msgid "B<--logvols>"
1893 msgstr ""
1894
1895 #. type: =item
1896 #: ../cat/virt-filesystems.pod:227
1897 msgid "B<--logical-volumes>"
1898 msgstr ""
1899
1900 #. type: textblock
1901 #: ../cat/virt-filesystems.pod:229
1902 msgid ""
1903 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1904 "of whether the LVs contain filesystems."
1905 msgstr ""
1906
1907 #. type: =item
1908 #: ../cat/virt-filesystems.pod:232
1909 msgid "B<--no-title>"
1910 msgstr ""
1911
1912 #. type: textblock
1913 #: ../cat/virt-filesystems.pod:234
1914 msgid "In I<--long> mode, don't add a title row."
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-filesystems.pod:236
1919 msgid ""
1920 "Note that the order of the columns is not fixed, and may change in future "
1921 "versions of virt-filesystems, so using this option may give you unexpected "
1922 "surprises."
1923 msgstr ""
1924
1925 #. type: =item
1926 #: ../cat/virt-filesystems.pod:240
1927 msgid "B<--parts>"
1928 msgstr ""
1929
1930 #. type: =item
1931 #: ../cat/virt-filesystems.pod:242
1932 msgid "B<--partitions>"
1933 msgstr ""
1934
1935 #. type: textblock
1936 #: ../cat/virt-filesystems.pod:244
1937 msgid ""
1938 "Display partitions.  In this mode, these are displayed irrespective of "
1939 "whether the partitions contain filesystems."
1940 msgstr ""
1941
1942 #. type: =item
1943 #: ../cat/virt-filesystems.pod:247
1944 msgid "B<--pvs>"
1945 msgstr ""
1946
1947 #. type: =item
1948 #: ../cat/virt-filesystems.pod:249
1949 msgid "B<--physvols>"
1950 msgstr ""
1951
1952 #. type: =item
1953 #: ../cat/virt-filesystems.pod:251
1954 msgid "B<--physical-volumes>"
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:253
1959 msgid "Display LVM physical volumes."
1960 msgstr ""
1961
1962 #. type: =item
1963 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1964 msgid "B<--uuid>"
1965 msgstr ""
1966
1967 #. type: =item
1968 #: ../cat/virt-filesystems.pod:257
1969 msgid "B<--uuids>"
1970 msgstr ""
1971
1972 #. type: textblock
1973 #: ../cat/virt-filesystems.pod:259
1974 msgid "In I<--long> mode, display UUIDs as well."
1975 msgstr ""
1976
1977 #. type: =item
1978 #: ../cat/virt-filesystems.pod:273
1979 msgid "B<--vgs>"
1980 msgstr ""
1981
1982 #. type: =item
1983 #: ../cat/virt-filesystems.pod:275
1984 msgid "B<--volgroups>"
1985 msgstr ""
1986
1987 #. type: =item
1988 #: ../cat/virt-filesystems.pod:277
1989 msgid "B<--volume-groups>"
1990 msgstr ""
1991
1992 #. type: textblock
1993 #: ../cat/virt-filesystems.pod:279
1994 msgid "Display LVM volume groups."
1995 msgstr ""
1996
1997 #. type: =head1
1998 #: ../cat/virt-filesystems.pod:287
1999 msgid "COLUMNS"
2000 msgstr ""
2001
2002 #. type: textblock
2003 #: ../cat/virt-filesystems.pod:289
2004 msgid ""
2005 "Note that columns in the output are subject to reordering and change in "
2006 "future versions of this tool."
2007 msgstr ""
2008
2009 #. type: =item
2010 #: ../cat/virt-filesystems.pod:294
2011 msgid "B<Name>"
2012 msgstr ""
2013
2014 #. type: textblock
2015 #: ../cat/virt-filesystems.pod:296
2016 msgid "The filesystem, partition, block device or LVM name."
2017 msgstr ""
2018
2019 #. type: textblock
2020 #: ../cat/virt-filesystems.pod:298
2021 msgid ""
2022 "For device and partition names these are displayed as canonical libguestfs "
2023 "names, so that for example C</dev/sda2> is the second partition on the first "
2024 "device."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-filesystems.pod:302
2029 msgid ""
2030 "If the I<--long> option is B<not> specified, then only the name column is "
2031 "shown in the output."
2032 msgstr ""
2033
2034 #. type: =item
2035 #: ../cat/virt-filesystems.pod:305
2036 msgid "B<Type>"
2037 msgstr ""
2038
2039 #. type: textblock
2040 #: ../cat/virt-filesystems.pod:307
2041 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2042 msgstr ""
2043
2044 #. type: =item
2045 #: ../cat/virt-filesystems.pod:309
2046 msgid "B<VFS>"
2047 msgstr ""
2048
2049 #. type: textblock
2050 #: ../cat/virt-filesystems.pod:311
2051 msgid ""
2052 "If there is a filesystem, then this column displays the filesystem type if "
2053 "one could be detected, eg. C<ext4>."
2054 msgstr ""
2055
2056 #. type: =item
2057 #: ../cat/virt-filesystems.pod:314
2058 msgid "B<Label>"
2059 msgstr ""
2060
2061 #. type: textblock
2062 #: ../cat/virt-filesystems.pod:316
2063 msgid ""
2064 "If the object has a label (used for identifying and mounting filesystems) "
2065 "then this column contains the label."
2066 msgstr ""
2067
2068 #. type: =item
2069 #: ../cat/virt-filesystems.pod:319
2070 msgid "B<MBR>"
2071 msgstr ""
2072
2073 #. type: textblock
2074 #: ../cat/virt-filesystems.pod:321
2075 msgid ""
2076 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2077 "comprehensive list of partition types can be found here: L<http://www.win."
2078 "tue.nl/~aeb/partitions/partition_types-1.html>"
2079 msgstr ""
2080
2081 #. type: textblock
2082 #: ../cat/virt-filesystems.pod:325
2083 msgid "This is only applicable for DOS (MBR) partitions."
2084 msgstr ""
2085
2086 #. type: =item
2087 #: ../cat/virt-filesystems.pod:327
2088 msgid "B<Size>"
2089 msgstr ""
2090
2091 #. type: textblock
2092 #: ../cat/virt-filesystems.pod:329
2093 msgid ""
2094 "The size of the object in bytes.  If the I<--human> option is used then the "
2095 "size is displayed in a human-readable form."
2096 msgstr ""
2097
2098 #. type: =item
2099 #: ../cat/virt-filesystems.pod:332
2100 msgid "B<Parent>"
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-filesystems.pod:334
2105 msgid ""
2106 "The parent column records the parent relationship between objects.  For "
2107 "example, if the object is a partition, then this column contains the name of "
2108 "the containing device.  If the object is a logical volume, then this column "
2109 "is the name of the volume group."
2110 msgstr ""
2111
2112 #. type: =item
2113 #: ../cat/virt-filesystems.pod:339
2114 msgid "B<UUID>"
2115 msgstr ""
2116
2117 #. type: textblock
2118 #: ../cat/virt-filesystems.pod:341
2119 msgid ""
2120 "If the object has a UUID (used for identifying and mounting filesystems and "
2121 "block devices) then this column contains the UUID as a string."
2122 msgstr ""
2123
2124 #. type: textblock
2125 #: ../cat/virt-filesystems.pod:345
2126 msgid "The UUID is only displayed if the I<--uuid> option is given."
2127 msgstr ""
2128
2129 #. type: =head1
2130 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2131 #: ../df/virt-df.pod:191
2132 msgid "NOTE ABOUT CSV FORMAT"
2133 msgstr ""
2134
2135 #. type: textblock
2136 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2137 #: ../df/virt-df.pod:193
2138 msgid ""
2139 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2140 "should be easy to parse, but it is definitely not easy to parse."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2145 #: ../df/virt-df.pod:196
2146 msgid ""
2147 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2148 "reliably.  This example has two columns:"
2149 msgstr ""
2150
2151 #. type: verbatim
2152 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2153 #: ../df/virt-df.pod:199
2154 #, no-wrap
2155 msgid ""
2156 " \"foo,bar\",baz\n"
2157 "\n"
2158 msgstr ""
2159
2160 #. type: textblock
2161 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2162 #: ../df/virt-df.pod:201
2163 msgid ""
2164 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2165 "reliably.  This example has one row:"
2166 msgstr ""
2167
2168 #. type: verbatim
2169 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2170 #: ../df/virt-df.pod:204
2171 #, no-wrap
2172 msgid ""
2173 " \"foo\n"
2174 " bar\",baz\n"
2175 "\n"
2176 msgstr ""
2177
2178 #. type: textblock
2179 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2180 #: ../df/virt-df.pod:207
2181 msgid ""
2182 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2183 "packaged in major Linux distributions)."
2184 msgstr ""
2185
2186 #. type: textblock
2187 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2188 #: ../df/virt-df.pod:210
2189 msgid ""
2190 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2191 "or Python's built-in csv library)."
2192 msgstr ""
2193
2194 #. type: textblock
2195 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2196 #: ../df/virt-df.pod:213
2197 msgid "Most spreadsheets and databases can import CSV directly."
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../cat/virt-filesystems.pod:387
2202 msgid ""
2203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2204 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2205 "libguestfs.org/>."
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2210 msgid "Copyright (C) 2010 Red Hat Inc."
2211 msgstr ""
2212
2213 #. type: textblock
2214 #: ../cat/virt-ls.pod:5
2215 msgid "virt-ls - List files in a virtual machine"
2216 msgstr ""
2217
2218 #. type: verbatim
2219 #: ../cat/virt-ls.pod:9
2220 #, no-wrap
2221 msgid ""
2222 " virt-ls [--options] -d domname directory [directory ...]\n"
2223 "\n"
2224 msgstr ""
2225
2226 #. type: verbatim
2227 #: ../cat/virt-ls.pod:11
2228 #, no-wrap
2229 msgid ""
2230 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2231 "\n"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2236 msgid "Old style:"
2237 msgstr ""
2238
2239 #. type: verbatim
2240 #: ../cat/virt-ls.pod:15
2241 #, no-wrap
2242 msgid ""
2243 " virt-ls [--options] domname directory\n"
2244 "\n"
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:17
2249 #, no-wrap
2250 msgid ""
2251 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2252 "\n"
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../cat/virt-ls.pod:21
2257 msgid ""
2258 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2259 "more from a virtual machine or disk image."
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:24
2264 msgid ""
2265 "Multiple directory names can be given, in which case the output from each is "
2266 "concatenated."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../cat/virt-ls.pod:27
2271 msgid ""
2272 "To list directories from a libvirt guest use the I<-d> option to specify the "
2273 "name of the guest.  For a disk image, use the I<-a> option."
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:31
2278 msgid ""
2279 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2280 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2281 "(3)> API."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-ls.pod:37
2286 msgid "Get a list of all files and directories in a virtual machine:"
2287 msgstr ""
2288
2289 #. type: verbatim
2290 #: ../cat/virt-ls.pod:39
2291 #, no-wrap
2292 msgid ""
2293 " virt-ls -R -d guest /\n"
2294 "\n"
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:41
2299 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2300 msgstr ""
2301
2302 #. type: verbatim
2303 #: ../cat/virt-ls.pod:43
2304 #, no-wrap
2305 msgid ""
2306 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2307 "\n"
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../cat/virt-ls.pod:45
2312 msgid "List all public-writable directories in a Linux virtual machine:"
2313 msgstr ""
2314
2315 #. type: verbatim
2316 #: ../cat/virt-ls.pod:47
2317 #, no-wrap
2318 msgid ""
2319 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2320 "\n"
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:49
2325 msgid "List all Unix domain sockets in a Linux virtual machine:"
2326 msgstr ""
2327
2328 #. type: verbatim
2329 #: ../cat/virt-ls.pod:51
2330 #, no-wrap
2331 msgid ""
2332 " virt-ls -lR -d guest / | grep '^s'\n"
2333 "\n"
2334 msgstr ""
2335
2336 #. type: textblock
2337 #: ../cat/virt-ls.pod:53
2338 msgid "List all regular files with filenames ending in '.png':"
2339 msgstr ""
2340
2341 #. type: verbatim
2342 #: ../cat/virt-ls.pod:55
2343 #, no-wrap
2344 msgid ""
2345 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2346 "\n"
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../cat/virt-ls.pod:57
2351 msgid "To display files larger than 10MB in home directories:"
2352 msgstr ""
2353
2354 #. type: verbatim
2355 #: ../cat/virt-ls.pod:59
2356 #, no-wrap
2357 msgid ""
2358 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2359 "\n"
2360 msgstr ""
2361
2362 #. type: textblock
2363 #: ../cat/virt-ls.pod:61
2364 msgid "Find everything modified in the last 7 days:"
2365 msgstr ""
2366
2367 #. type: verbatim
2368 #: ../cat/virt-ls.pod:63
2369 #, no-wrap
2370 msgid ""
2371 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2372 "\n"
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../cat/virt-ls.pod:65
2377 msgid "Find regular files modified in the last 24 hours:"
2378 msgstr ""
2379
2380 #. type: verbatim
2381 #: ../cat/virt-ls.pod:67
2382 #, no-wrap
2383 msgid ""
2384 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2385 "\n"
2386 msgstr ""
2387
2388 #. type: =head2
2389 #: ../cat/virt-ls.pod:69
2390 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2391 msgstr ""
2392
2393 #. type: textblock
2394 #: ../cat/virt-ls.pod:71
2395 msgid ""
2396 "Find the differences between files in a guest and an earlier snapshot of the "
2397 "same guest."
2398 msgstr ""
2399
2400 #. type: verbatim
2401 #: ../cat/virt-ls.pod:74
2402 #, no-wrap
2403 msgid ""
2404 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2405 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2406 " diff -u old new | less\n"
2407 "\n"
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../cat/virt-ls.pod:78
2412 msgid ""
2413 "The commands above won't find files where the content has changed but the "
2414 "metadata (eg. file size and modification date) is the same.  To do that, you "
2415 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2416 "checksum> can be quite slow since it has to read and compute a checksum of "
2417 "every regular file in the virtual machine."
2418 msgstr ""
2419
2420 #. type: =head1
2421 #: ../cat/virt-ls.pod:84
2422 msgid "OUTPUT MODES"
2423 msgstr ""
2424
2425 #. type: textblock
2426 #: ../cat/virt-ls.pod:86
2427 msgid ""
2428 "C<virt-ls> has four output modes, controlled by different combinations of "
2429 "the I<-l> and I<-R> options."
2430 msgstr ""
2431
2432 #. type: =head2
2433 #: ../cat/virt-ls.pod:89
2434 msgid "SIMPLE LISTING"
2435 msgstr ""
2436
2437 #. type: textblock
2438 #: ../cat/virt-ls.pod:91
2439 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:93
2444 #, no-wrap
2445 msgid ""
2446 " $ virt-ls -d guest /\n"
2447 " bin\n"
2448 " boot\n"
2449 " [etc.]\n"
2450 "\n"
2451 msgstr ""
2452
2453 #. type: =head2
2454 #: ../cat/virt-ls.pod:98
2455 msgid "LONG LISTING"
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:100
2460 msgid ""
2461 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2462 "(more specifically, like the C<guestfs_ll> function)."
2463 msgstr ""
2464
2465 #. type: verbatim
2466 #: ../cat/virt-ls.pod:103
2467 #, no-wrap
2468 msgid ""
2469 " $ virt-ls -l -d guest /\n"
2470 " total 204\n"
2471 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2472 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2473 " [etc.]\n"
2474 "\n"
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../cat/virt-ls.pod:109
2479 msgid ""
2480 "Note that while this is useful for displaying a directory, do not try "
2481 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2482 "instead."
2483 msgstr ""
2484
2485 #. type: =head2
2486 #: ../cat/virt-ls.pod:113
2487 msgid "RECURSIVE LISTING"
2488 msgstr ""
2489
2490 #. type: textblock
2491 #: ../cat/virt-ls.pod:115
2492 msgid ""
2493 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2494 "and directories recursively:"
2495 msgstr ""
2496
2497 #. type: verbatim
2498 #: ../cat/virt-ls.pod:118
2499 #, no-wrap
2500 msgid ""
2501 " $ virt-ls -R -d guest /tmp\n"
2502 " foo\n"
2503 " foo/bar\n"
2504 " [etc.]\n"
2505 "\n"
2506 msgstr ""
2507
2508 #. type: textblock
2509 #: ../cat/virt-ls.pod:123
2510 msgid ""
2511 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2512 "converts C<\\0> characters to C<\\n>."
2513 msgstr ""
2514
2515 #. type: =head2
2516 #: ../cat/virt-ls.pod:126
2517 msgid "RECURSIVE LONG LISTING"
2518 msgstr ""
2519
2520 #. type: textblock
2521 #: ../cat/virt-ls.pod:128
2522 msgid ""
2523 "Using I<-lR> options together changes the output to display directories "
2524 "recursively, with file stats, and optionally other features such as "
2525 "checksums and extended attributes."
2526 msgstr ""
2527
2528 #. type: textblock
2529 #: ../cat/virt-ls.pod:132
2530 msgid ""
2531 "Most of the interesting features of C<virt-ls> are only available when using "
2532 "I<-lR> mode."
2533 msgstr ""
2534
2535 #. type: textblock
2536 #: ../cat/virt-ls.pod:135
2537 msgid ""
2538 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2539 "you cannot use the output in another program (because filenames can contain "
2540 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2541 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2542 "on you by creating filenames with embedded newline characters.  To B<safely> "
2543 "parse the output in another program, use the I<--csv> (Comma-Separated "
2544 "Values) option."
2545 msgstr ""
2546
2547 #. type: textblock
2548 #: ../cat/virt-ls.pod:143
2549 msgid ""
2550 "Note that this output format is completely unrelated to the C<ls -lR> "
2551 "command."
2552 msgstr ""
2553
2554 #. type: verbatim
2555 #: ../cat/virt-ls.pod:146
2556 #, no-wrap
2557 msgid ""
2558 " $ virt-ls -lR -d guest /bin\n"
2559 " d 0555       4096 /bin\n"
2560 " - 0755        123 /bin/alsaunmute\n"
2561 " - 0755      28328 /bin/arch\n"
2562 " l 0777          4 /bin/awk -> gawk\n"
2563 " - 0755      27216 /bin/basename\n"
2564 " - 0755     943360 /bin/bash\n"
2565 " [etc.]\n"
2566 "\n"
2567 msgstr ""
2568
2569 #. type: textblock
2570 #: ../cat/virt-ls.pod:155
2571 msgid "These basic fields are always shown:"
2572 msgstr ""
2573
2574 #. type: =item
2575 #: ../cat/virt-ls.pod:159
2576 msgid "type"
2577 msgstr ""
2578
2579 #. type: textblock
2580 #: ../cat/virt-ls.pod:161
2581 msgid ""
2582 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2583 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2584 "link), C<s> (socket) or C<u> (unknown)."
2585 msgstr ""
2586
2587 #. type: =item
2588 #: ../cat/virt-ls.pod:171
2589 msgid "permissions"
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../cat/virt-ls.pod:173
2594 msgid "The Unix permissions, displayed as a 4 digit octal number."
2595 msgstr ""
2596
2597 #. type: =item
2598 #: ../cat/virt-ls.pod:175
2599 msgid "size"
2600 msgstr ""
2601
2602 #. type: textblock
2603 #: ../cat/virt-ls.pod:177
2604 msgid ""
2605 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2606 "readable> option is given, in which case this is shown as a human-readable "
2607 "number."
2608 msgstr ""
2609
2610 #. type: =head2
2611 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4395
2612 msgid "path"
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../cat/virt-ls.pod:183
2617 msgid "The full path of the file or directory."
2618 msgstr ""
2619
2620 #. type: =item
2621 #: ../cat/virt-ls.pod:185
2622 msgid "link"
2623 msgstr ""
2624
2625 #. type: textblock
2626 #: ../cat/virt-ls.pod:187
2627 msgid "For symbolic links only, the link target."
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../cat/virt-ls.pod:191
2632 msgid ""
2633 "In I<-lR> mode, additional command line options enable the display of more "
2634 "fields."
2635 msgstr ""
2636
2637 #. type: textblock
2638 #: ../cat/virt-ls.pod:194
2639 msgid ""
2640 "With the I<--uids> flag, these additional fields are displayed before the "
2641 "path:"
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../cat/virt-ls.pod:199
2646 msgid "uid"
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../cat/virt-ls.pod:201
2651 msgid "gid"
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:203
2656 msgid ""
2657 "The UID and GID of the owner of the file (displayed numerically).  Note "
2658 "these only make sense in the context of a Unix-like guest."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../cat/virt-ls.pod:208
2663 msgid "With the I<--times> flag, these additional fields are displayed:"
2664 msgstr ""
2665
2666 #. type: =item
2667 #: ../cat/virt-ls.pod:212
2668 msgid "atime"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../cat/virt-ls.pod:214
2673 msgid "The time of last access."
2674 msgstr ""
2675
2676 #. type: =item
2677 #: ../cat/virt-ls.pod:216
2678 msgid "mtime"
2679 msgstr ""
2680
2681 #. type: textblock
2682 #: ../cat/virt-ls.pod:218
2683 msgid "The time of last modification."
2684 msgstr ""
2685
2686 #. type: =item
2687 #: ../cat/virt-ls.pod:220
2688 msgid "ctime"
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../cat/virt-ls.pod:222
2693 msgid "The time of last status change."
2694 msgstr ""
2695
2696 #. type: textblock
2697 #: ../cat/virt-ls.pod:226
2698 msgid ""
2699 "The time fields are displayed as string dates and times, unless one of the "
2700 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2701 msgstr ""
2702
2703 #. type: textblock
2704 #: ../cat/virt-ls.pod:229
2705 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2706 msgstr ""
2707
2708 #. type: =item
2709 #: ../cat/virt-ls.pod:233
2710 msgid "device"
2711 msgstr ""
2712
2713 #. type: textblock
2714 #: ../cat/virt-ls.pod:235
2715 msgid ""
2716 "The device containing the file (displayed as major:minor).  This may not "
2717 "match devices as known to the guest."
2718 msgstr ""
2719
2720 #. type: =item
2721 #: ../cat/virt-ls.pod:238
2722 msgid "inode"
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../cat/virt-ls.pod:240
2727 msgid "The inode number."
2728 msgstr ""
2729
2730 #. type: =item
2731 #: ../cat/virt-ls.pod:242
2732 msgid "nlink"
2733 msgstr ""
2734
2735 #. type: textblock
2736 #: ../cat/virt-ls.pod:244
2737 msgid "The number of hard links."
2738 msgstr ""
2739
2740 #. type: =item
2741 #: ../cat/virt-ls.pod:246
2742 msgid "rdev"
2743 msgstr ""
2744
2745 #. type: textblock
2746 #: ../cat/virt-ls.pod:248
2747 msgid ""
2748 "For block and char special files, the device (displayed as major:minor)."
2749 msgstr ""
2750
2751 #. type: =item
2752 #: ../cat/virt-ls.pod:251
2753 msgid "blocks"
2754 msgstr ""
2755
2756 #. type: textblock
2757 #: ../cat/virt-ls.pod:253
2758 msgid "The number of 512 byte blocks allocated to the file."
2759 msgstr ""
2760
2761 #. type: textblock
2762 #: ../cat/virt-ls.pod:257
2763 msgid ""
2764 "With the I<--checksum> flag, the checksum of the file contents is shown "
2765 "(only for regular files).  Computing file checksums can take a considerable "
2766 "amount of time."
2767 msgstr ""
2768
2769 #. type: =item
2770 #: ../cat/virt-ls.pod:280
2771 msgid "B<--checksum>"
2772 msgstr ""
2773
2774 #. type: =item
2775 #: ../cat/virt-ls.pod:282
2776 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../cat/virt-ls.pod:284
2781 msgid ""
2782 "Display checksum over file contents for regular files.  With no argument, "
2783 "this defaults to using I<md5>.  Using an argument, you can select the "
2784 "checksum type to use."
2785 msgstr ""
2786
2787 #. type: textblock
2788 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2789 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2790 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2791 msgid ""
2792 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2793 "LISTING> above."
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../cat/virt-ls.pod:316
2798 msgid ""
2799 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2800 "so you cannot see what you are typing.  If you are not worried about Tempest "
2801 "attacks and there is no one else in the room you can specify this flag to "
2802 "see what you are typing."
2803 msgstr ""
2804
2805 #. type: =item
2806 #: ../cat/virt-ls.pod:321
2807 msgid "B<--extra-stats>"
2808 msgstr ""
2809
2810 #. type: textblock
2811 #: ../cat/virt-ls.pod:323
2812 msgid "Display extra stats."
2813 msgstr ""
2814
2815 #. type: verbatim
2816 #: ../cat/virt-ls.pod:339
2817 #, no-wrap
2818 msgid ""
2819 " virt-ls --format=raw -a disk.img /dir\n"
2820 "\n"
2821 msgstr ""
2822
2823 #. type: verbatim
2824 #: ../cat/virt-ls.pod:343
2825 #, no-wrap
2826 msgid ""
2827 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2828 "\n"
2829 msgstr ""
2830
2831 #. type: textblock
2832 #: ../cat/virt-ls.pod:356
2833 msgid "Display file sizes in human-readable format."
2834 msgstr ""
2835
2836 #. type: =item
2837 #: ../cat/virt-ls.pod:370
2838 msgid "B<-R>"
2839 msgstr ""
2840
2841 #. type: =item
2842 #: ../cat/virt-ls.pod:372
2843 msgid "B<--recursive>"
2844 msgstr ""
2845
2846 #. type: textblock
2847 #: ../cat/virt-ls.pod:374
2848 msgid ""
2849 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2850 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2851 "LISTING>."
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../cat/virt-ls.pod:378
2856 msgid ""
2857 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2858 "LONG LISTING>."
2859 msgstr ""
2860
2861 #. type: textblock
2862 #: ../cat/virt-ls.pod:381
2863 msgid ""
2864 "C<virt-ls -R> produces a recursive list of files starting at the named "
2865 "directory.  See L</RECURSIVE LISTING>."
2866 msgstr ""
2867
2868 #. type: textblock
2869 #: ../cat/virt-ls.pod:384
2870 msgid ""
2871 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2872 "parsed.  See L</RECURSIVE LONG LISTING>."
2873 msgstr ""
2874
2875 #. type: =item
2876 #: ../cat/virt-ls.pod:387
2877 msgid "B<--times>"
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../cat/virt-ls.pod:389
2882 msgid "Display time fields."
2883 msgstr ""
2884
2885 #. type: =item
2886 #: ../cat/virt-ls.pod:394
2887 msgid "B<--time-days>"
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../cat/virt-ls.pod:396
2892 msgid "Display time fields as days before now (negative if in the future)."
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../cat/virt-ls.pod:398
2897 msgid ""
2898 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2899 "of the file is between 0 and 86399 seconds."
2900 msgstr ""
2901
2902 #. type: =item
2903 #: ../cat/virt-ls.pod:404
2904 msgid "B<--time-relative>"
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../cat/virt-ls.pod:406
2909 msgid "Display time fields as seconds before now (negative if in the future)."
2910 msgstr ""
2911
2912 #. type: =item
2913 #: ../cat/virt-ls.pod:411
2914 msgid "B<--time-t>"
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../cat/virt-ls.pod:413
2919 msgid "Display time fields as seconds since the Unix epoch."
2920 msgstr ""
2921
2922 #. type: =item
2923 #: ../cat/virt-ls.pod:418
2924 msgid "B<--uids>"
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../cat/virt-ls.pod:420
2929 msgid "Display UID and GID fields."
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../cat/virt-ls.pod:445
2934 msgid "Previous versions of virt-ls allowed you to write either:"
2935 msgstr ""
2936
2937 #. type: verbatim
2938 #: ../cat/virt-ls.pod:447
2939 #, no-wrap
2940 msgid ""
2941 " virt-ls disk.img [disk.img ...] /dir\n"
2942 "\n"
2943 msgstr ""
2944
2945 #. type: verbatim
2946 #: ../cat/virt-ls.pod:451
2947 #, no-wrap
2948 msgid ""
2949 " virt-ls guestname /dir\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: textblock
2954 #: ../cat/virt-ls.pod:497
2955 msgid ""
2956 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2957 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2958 "L<http://libguestfs.org/>."
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2963 #: ../rescue/virt-rescue.pod:302
2964 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../clone/virt-sysprep.pod:5
2969 msgid ""
2970 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2971 msgstr ""
2972
2973 #. type: verbatim
2974 #: ../clone/virt-sysprep.pod:9
2975 #, no-wrap
2976 msgid ""
2977 " virt-sysprep [--options] -d domname\n"
2978 "\n"
2979 msgstr ""
2980
2981 #. type: verbatim
2982 #: ../clone/virt-sysprep.pod:11
2983 #, no-wrap
2984 msgid ""
2985 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2986 "\n"
2987 msgstr ""
2988
2989 #. type: textblock
2990 #: ../clone/virt-sysprep.pod:15
2991 msgid ""
2992 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2993 "can be made from it.  Steps in this process include removing SSH host keys, "
2994 "removing persistent network MAC configuration, and removing user accounts.  "
2995 "Each step can be enabled or disabled as required."
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../clone/virt-sysprep.pod:21
3000 msgid ""
3001 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3002 "customization by the system administrator."
3003 msgstr ""
3004
3005 #. type: textblock
3006 #: ../clone/virt-sysprep.pod:24
3007 msgid ""
3008 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3009 "be shut down.  If you want to preserve the existing contents of the guest, "
3010 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:29
3015 msgid ""
3016 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3017 "recommend that you don't.  The time you might want to run it as root is when "
3018 "you need root in order to access the disk image, but even in this case it "
3019 "would be better to change the permissions on the disk image to be writable "
3020 "as the non-root user running virt-sysprep."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:35
3025 msgid ""
3026 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3027 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3028 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3029 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3030 "Windows sysprepping in a future version, and we already have code to do it."
3031 msgstr ""
3032
3033 #. type: =item
3034 #: ../clone/virt-sysprep.pod:76
3035 msgid "B<--enable=...>"
3036 msgstr ""
3037
3038 #. type: textblock
3039 #: ../clone/virt-sysprep.pod:78
3040 msgid ""
3041 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3042 "operations, for example:"
3043 msgstr ""
3044
3045 #. type: verbatim
3046 #: ../clone/virt-sysprep.pod:81
3047 #, no-wrap
3048 msgid ""
3049 " --enable=ssh-hostkeys,udev-persistent-net\n"
3050 "\n"
3051 msgstr ""
3052
3053 #. type: textblock
3054 #: ../clone/virt-sysprep.pod:83
3055 msgid ""
3056 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3057 msgstr ""
3058
3059 #. type: textblock
3060 #: ../clone/virt-sysprep.pod:85
3061 msgid ""
3062 "If the I<--enable> option is not given, then we default to trying all "
3063 "possible sysprep operations.  But some sysprep operations are skipped for "
3064 "some guest types."
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../clone/virt-sysprep.pod:89
3069 msgid ""
3070 "Use I<--list-operations> to list operations supported by a particular "
3071 "version of virt-sysprep."
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../clone/virt-sysprep.pod:92
3076 msgid ""
3077 "See L</OPERATIONS> below for a list and an explanation of each operation."
3078 msgstr ""
3079
3080 #. type: verbatim
3081 #: ../clone/virt-sysprep.pod:106
3082 #, no-wrap
3083 msgid ""
3084 " virt-sysprep --format=raw -a disk.img\n"
3085 "\n"
3086 msgstr ""
3087
3088 #. type: verbatim
3089 #: ../clone/virt-sysprep.pod:110
3090 #, no-wrap
3091 msgid ""
3092 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3093 "\n"
3094 msgstr ""
3095
3096 #. type: =item
3097 #: ../clone/virt-sysprep.pod:119
3098 msgid "B<--hostname> newhostname"
3099 msgstr ""
3100
3101 #. type: textblock
3102 #: ../clone/virt-sysprep.pod:121
3103 msgid ""
3104 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3105 "defaults to C<localhost.localdomain>."
3106 msgstr ""
3107
3108 #. type: =item
3109 #: ../clone/virt-sysprep.pod:124
3110 msgid "B<--list-operations>"
3111 msgstr ""
3112
3113 #. type: textblock
3114 #: ../clone/virt-sysprep.pod:126
3115 msgid "List the operations supported by the virt-sysprep program."
3116 msgstr ""
3117
3118 #. type: =item
3119 #: ../clone/virt-sysprep.pod:128
3120 msgid "B<--selinux-relabel>"
3121 msgstr ""
3122
3123 #. type: =item
3124 #: ../clone/virt-sysprep.pod:130
3125 msgid "B<--no-selinux-relabel>"
3126 msgstr ""
3127
3128 #. type: textblock
3129 #: ../clone/virt-sysprep.pod:132
3130 msgid ""
3131 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3132 "I<--no-selinux-relabel> disables relabelling."
3133 msgstr ""
3134
3135 #. type: textblock
3136 #: ../clone/virt-sysprep.pod:135
3137 msgid ""
3138 "The default is to try to detect if SELinux relabelling is required.  See L</"
3139 "SELINUX RELABELLING> below for more details."
3140 msgstr ""
3141
3142 #. type: =head1
3143 #: ../clone/virt-sysprep.pod:156
3144 msgid "OPERATIONS"
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../clone/virt-sysprep.pod:158
3149 msgid ""
3150 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3151 "enabled>, although some are skipped depending on the type of guest."
3152 msgstr ""
3153
3154 #. type: textblock
3155 #: ../clone/virt-sysprep.pod:162
3156 msgid ""
3157 "Operations can be individually enabled using the I<--enable> option.  Use a "
3158 "comma-separated list, for example:"
3159 msgstr ""
3160
3161 #. type: verbatim
3162 #: ../clone/virt-sysprep.pod:165
3163 #, no-wrap
3164 msgid ""
3165 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3166 "\n"
3167 msgstr ""
3168
3169 #. type: textblock
3170 #: ../clone/virt-sysprep.pod:167
3171 msgid ""
3172 "To list the operations supported by the current version of virt-sysprep, use "
3173 "I<--list-operations>."
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:170
3178 msgid ""
3179 "Future versions of virt-sysprep may add more operations.  If you are using "
3180 "virt-sysprep and want predictable behaviour, specify only the operations "
3181 "that you want to have enabled."
3182 msgstr ""
3183
3184 #. type: =head2
3185 #: ../clone/virt-sysprep.pod:174
3186 msgid "cron-spool"
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../clone/virt-sysprep.pod:176
3191 msgid "Remove user at-jobs and cron-jobs."
3192 msgstr ""
3193
3194 #. type: =head2
3195 #: ../clone/virt-sysprep.pod:178
3196 msgid "dhcp-client-state"
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../clone/virt-sysprep.pod:180
3201 msgid "Remove DHCP client leases."
3202 msgstr ""
3203
3204 #. type: =head2
3205 #: ../clone/virt-sysprep.pod:182
3206 msgid "dhcp-server-state"
3207 msgstr ""
3208
3209 #. type: textblock
3210 #: ../clone/virt-sysprep.pod:184
3211 msgid "Remove DHCP server leases."
3212 msgstr ""
3213
3214 #. type: =head2
3215 #: ../clone/virt-sysprep.pod:186
3216 msgid "hostname"
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../clone/virt-sysprep.pod:188
3221 msgid ""
3222 "Changes the hostname of the guest to the value given in the I<--hostname> "
3223 "parameter."
3224 msgstr ""
3225
3226 #. type: textblock
3227 #: ../clone/virt-sysprep.pod:191
3228 msgid ""
3229 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3230 "C<localhost.localdomain>."
3231 msgstr ""
3232
3233 #. type: =head2
3234 #: ../clone/virt-sysprep.pod:194
3235 msgid "logfiles"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../clone/virt-sysprep.pod:196
3240 msgid "Remove many log files."
3241 msgstr ""
3242
3243 #. type: =head2
3244 #: ../clone/virt-sysprep.pod:198
3245 msgid "mail-spool"
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../clone/virt-sysprep.pod:200
3250 msgid "Remove email from the local mail spool directory."
3251 msgstr ""
3252
3253 #. type: =head2
3254 #: ../clone/virt-sysprep.pod:202
3255 msgid "net-hwaddr"
3256 msgstr ""
3257
3258 #. type: textblock
3259 #: ../clone/virt-sysprep.pod:204
3260 msgid ""
3261 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3262 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3263 msgstr ""
3264
3265 #. type: =head2
3266 #: ../clone/virt-sysprep.pod:207
3267 msgid "random-seed"
3268 msgstr ""
3269
3270 #. type: textblock
3271 #: ../clone/virt-sysprep.pod:209
3272 msgid ""
3273 "Write some random bytes from the host into the random seed file of the guest."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:212
3278 msgid "See L</RANDOM SEED> below."
3279 msgstr ""
3280
3281 #. type: =head2
3282 #: ../clone/virt-sysprep.pod:214
3283 msgid "rhn-systemid"
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../clone/virt-sysprep.pod:216
3288 msgid "Remove the RHN system ID."
3289 msgstr ""
3290
3291 #. type: =head2
3292 #: ../clone/virt-sysprep.pod:218
3293 msgid "smolt-uuid"
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../clone/virt-sysprep.pod:220
3298 msgid "Remove the Smolt hardware UUID."
3299 msgstr ""
3300
3301 #. type: =head2
3302 #: ../clone/virt-sysprep.pod:222
3303 msgid "ssh-hostkeys"
3304 msgstr ""
3305
3306 #. type: textblock
3307 #: ../clone/virt-sysprep.pod:224
3308 msgid "Remove the SSH host keys in the guest."
3309 msgstr ""
3310
3311 #. type: textblock
3312 #: ../clone/virt-sysprep.pod:226
3313 msgid ""
3314 "The SSH host keys are regenerated (differently) next time the guest is "
3315 "booted."
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../clone/virt-sysprep.pod:229
3320 msgid ""
3321 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3322 "stark warning about the host key changing:"
3323 msgstr ""
3324
3325 #. type: verbatim
3326 #: ../clone/virt-sysprep.pod:232
3327 #, no-wrap
3328 msgid ""
3329 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3330 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3331 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3332 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3333 "\n"
3334 msgstr ""
3335
3336 #. type: =head2
3337 #: ../clone/virt-sysprep.pod:237
3338 msgid "udev-persistent-net"
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../clone/virt-sysprep.pod:239
3343 msgid ""
3344 "Remove udev persistent net rules which map the guest's existing MAC address "
3345 "to a fixed ethernet device (eg. eth0)."
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../clone/virt-sysprep.pod:242
3350 msgid ""
3351 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3352 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3353 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3354 "Erasing the udev persistent net rules avoids this."
3355 msgstr ""
3356
3357 #. type: =head2
3358 #: ../clone/virt-sysprep.pod:247
3359 msgid "utmp"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:249
3364 msgid "Remove the utmp file."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:251
3369 msgid ""
3370 "This records who is currently logged in on a machine.  In modern Linux "
3371 "distros it is stored in a ramdisk and hence not part of the virtual "
3372 "machine's disk, but it was stored on disk in older distros."
3373 msgstr ""
3374
3375 #. type: =head2
3376 #: ../clone/virt-sysprep.pod:255
3377 msgid "yum-uuid"
3378 msgstr ""
3379
3380 #. type: textblock
3381 #: ../clone/virt-sysprep.pod:257
3382 msgid "Remove the yum UUID."
3383 msgstr ""
3384
3385 #. type: textblock
3386 #: ../clone/virt-sysprep.pod:259
3387 msgid ""
3388 "Yum creates a fresh UUID the next time it runs when it notices that the "
3389 "original UUID has been erased."
3390 msgstr ""
3391
3392 #. type: =head1
3393 #: ../clone/virt-sysprep.pod:262
3394 msgid "COPYING AND CLONING"
3395 msgstr ""
3396
3397 #. type: textblock
3398 #: ../clone/virt-sysprep.pod:264
3399 msgid ""
3400 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3401 "prepare a template from which guests can be cloned.  There are many "
3402 "different ways to achieve this using the virt tools, and this section is "
3403 "just an introduction."
3404 msgstr ""
3405
3406 #. type: textblock
3407 #: ../clone/virt-sysprep.pod:269
3408 msgid "A virtual machine (when switched off) consists of two parts:"
3409 msgstr ""
3410
3411 #. type: =item
3412 #: ../clone/virt-sysprep.pod:273
3413 msgid "I<configuration>"
3414 msgstr ""
3415
3416 #. type: textblock
3417 #: ../clone/virt-sysprep.pod:275
3418 msgid ""
3419 "The configuration or description of the guest.  eg. The libvirt XML (see "
3420 "C<virsh dumpxml>), the running configuration of the guest, or another "
3421 "external format like OVF."
3422 msgstr ""
3423
3424 #. type: textblock
3425 #: ../clone/virt-sysprep.pod:279
3426 msgid "Some configuration items that might need to be changed:"
3427 msgstr ""
3428
3429 #. type: textblock
3430 #: ../clone/virt-sysprep.pod:285
3431 msgid "name"
3432 msgstr ""
3433
3434 #. type: textblock
3435 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3436 msgid "UUID"
3437 msgstr ""
3438
3439 #. type: textblock
3440 #: ../clone/virt-sysprep.pod:293
3441 msgid "path to block device(s)"
3442 msgstr ""
3443
3444 #. type: textblock
3445 #: ../clone/virt-sysprep.pod:297
3446 msgid "network card MAC address"
3447 msgstr ""
3448
3449 #. type: =item
3450 #: ../clone/virt-sysprep.pod:301
3451 msgid "I<block device(s)>"
3452 msgstr ""
3453
3454 #. type: textblock
3455 #: ../clone/virt-sysprep.pod:303
3456 msgid ""
3457 "One or more hard disk images, themselves containing files, directories, "
3458 "applications, kernels, configuration, etc."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../clone/virt-sysprep.pod:306
3463 msgid "Some things inside the block devices that might need to be changed:"
3464 msgstr ""
3465
3466 #. type: textblock
3467 #: ../clone/virt-sysprep.pod:312
3468 msgid "hostname and other net configuration"
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../clone/virt-sysprep.pod:320
3473 msgid "SSH host keys"
3474 msgstr ""
3475
3476 #. type: textblock
3477 #: ../clone/virt-sysprep.pod:324
3478 msgid "Windows unique security ID (SID)"
3479 msgstr ""
3480
3481 #. type: textblock
3482 #: ../clone/virt-sysprep.pod:328
3483 msgid "Puppet registration"
3484 msgstr ""
3485
3486 #. type: =head2
3487 #: ../clone/virt-sysprep.pod:334
3488 msgid "COPYING THE BLOCK DEVICE"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:336
3493 msgid ""
3494 "Starting with an original guest, you probably wish to copy the guest block "
3495 "device and its configuration to make a template.  Then once you are happy "
3496 "with the template, you will want to make many clones from it."
3497 msgstr ""
3498
3499 #. type: verbatim
3500 #: ../clone/virt-sysprep.pod:341
3501 #, no-wrap
3502 msgid ""
3503 "                        virt-sysprep\n"
3504 "                             |\n"
3505 "                             v\n"
3506 " original guest --------> template ---------->\n"
3507 "                                      \\------> cloned\n"
3508 "                                       \\-----> guests\n"
3509 "                                        \\---->\n"
3510 "\n"
3511 msgstr ""
3512
3513 #. type: textblock
3514 #: ../clone/virt-sysprep.pod:349
3515 msgid ""
3516 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3517 "L<dd(1)>."
3518 msgstr ""
3519
3520 #. type: verbatim
3521 #: ../clone/virt-sysprep.pod:352
3522 #, no-wrap
3523 msgid ""
3524 "                   dd                 dd\n"
3525 " original guest --------> template ---------->\n"
3526 "                                      \\------> cloned\n"
3527 "                                       \\-----> guests\n"
3528 "                                        \\---->\n"
3529 "\n"
3530 msgstr ""
3531
3532 #. type: textblock
3533 #: ../clone/virt-sysprep.pod:358
3534 msgid "There are some smarter (and faster) ways too:"
3535 msgstr ""
3536
3537 #. type: verbatim
3538 #: ../clone/virt-sysprep.pod:364
3539 #, no-wrap
3540 msgid ""
3541 "                          snapshot\n"
3542 "                template ---------->\n"
3543 "                            \\------> cloned\n"
3544 "                             \\-----> guests\n"
3545 "                              \\---->\n"
3546 "\n"
3547 msgstr ""
3548
3549 #. type: textblock
3550 #: ../clone/virt-sysprep.pod:370
3551 msgid ""
3552 "Use the block device as a backing file and create a snapshot on top for each "
3553 "guest.  The advantage is that you don't need to copy the block device (very "
3554 "fast) and only changes are stored (less storage required)."
3555 msgstr ""
3556
3557 #. type: textblock
3558 #: ../clone/virt-sysprep.pod:375
3559 msgid ""
3560 "Note that writing to the backing file once you have created guests on top of "
3561 "it is not possible: you will corrupt the guests."
3562 msgstr ""
3563
3564 #. type: textblock
3565 #: ../clone/virt-sysprep.pod:378
3566 msgid ""
3567 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3568 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3569 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3570 "also create cheap snapshots from files or LUNs."
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:386
3575 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:390
3580 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3581 msgstr ""
3582
3583 #. type: =head2
3584 #: ../clone/virt-sysprep.pod:394
3585 msgid "VIRT-CLONE"
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../clone/virt-sysprep.pod:396
3590 msgid ""
3591 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3592 "and/or modify the external libvirt configuration of a guest.  It will reset "
3593 "the name, UUID and MAC address of the guest in the libvirt XML."
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../clone/virt-sysprep.pod:401
3598 msgid ""
3599 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3600 "image.  This was the original motivation to write virt-sysprep."
3601 msgstr ""
3602
3603 #. type: =head2
3604 #: ../clone/virt-sysprep.pod:404
3605 msgid "SPARSIFY"
3606 msgstr ""
3607
3608 #. type: verbatim
3609 #: ../clone/virt-sysprep.pod:406
3610 #, no-wrap
3611 msgid ""
3612 "              virt-sparsify\n"
3613 " original guest --------> template\n"
3614 "\n"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../clone/virt-sysprep.pod:409
3619 msgid ""
3620 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3621 "it easier to compress and/or faster to copy."
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../clone/virt-sysprep.pod:412
3626 msgid ""
3627 "Notice that since virt-sparsify also copies the image, you can use it to "
3628 "make the initial copy (instead of C<dd>)."
3629 msgstr ""
3630
3631 #. type: =head2
3632 #: ../clone/virt-sysprep.pod:415
3633 msgid "RESIZE"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../clone/virt-sysprep.pod:417
3638 #, no-wrap
3639 msgid ""
3640 "                         virt-resize\n"
3641 "                template ---------->\n"
3642 "                            \\------> cloned\n"
3643 "                             \\-----> guests\n"
3644 "                              \\---->\n"
3645 "\n"
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../clone/virt-sysprep.pod:423
3650 msgid ""
3651 "If you want to give people cloned guests, but let them pick the size of the "
3652 "guest themselves (eg. depending on how much they are prepared to pay for "
3653 "disk space), then instead of copying the template, you can run L<virt-resize"
3654 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3655 "guests from a template."
3656 msgstr ""
3657
3658 #. type: =head1
3659 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3660 msgid "SECURITY"
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../clone/virt-sysprep.pod:431
3665 msgid ""
3666 "Although virt-sysprep removes some sensitive information from the guest, it "
3667 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3668 "above, and the implementation of the operations in the shell script.  You "
3669 "should also examine the guest afterwards."
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../clone/virt-sysprep.pod:436
3674 msgid ""
3675 "Sensitive files are simply removed.  The data they contained may still exist "
3676 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3677 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3678 "(1)> command to get rid of deleted content in directory entries and inodes."
3679 msgstr ""
3680
3681 #. type: =head2
3682 #: ../clone/virt-sysprep.pod:442
3683 msgid "RANDOM SEED"
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../clone/virt-sysprep.pod:444
3688 msgid "I<(This section applies to Linux guests only)>"
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../clone/virt-sysprep.pod:446
3693 msgid ""
3694 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3695 "from the host into the guest's random seed file."
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../clone/virt-sysprep.pod:449
3700 msgid ""
3701 "If this is just done once and the guest is cloned from the same template, "
3702 "then each guest will start with the same entropy, and things like SSH host "
3703 "keys and TCP sequence numbers may be predictable."
3704 msgstr ""
3705
3706 #. type: textblock
3707 #: ../clone/virt-sysprep.pod:453
3708 msgid ""
3709 "Therefore you should arrange to add more randomness I<after> cloning from a "
3710 "template too, which can be done by just enabling the C<random-seed> "
3711 "operation:"
3712 msgstr ""
3713
3714 #. type: verbatim
3715 #: ../clone/virt-sysprep.pod:457
3716 #, no-wrap
3717 msgid ""
3718 " cp template.img newguest.img\n"
3719 " virt-sysprep --enable=random-seed -a newguest.img\n"
3720 "\n"
3721 msgstr ""
3722
3723 #. type: =head2
3724 #: ../clone/virt-sysprep.pod:460
3725 msgid "SELINUX RELABELLING"
3726 msgstr ""
3727
3728 #. type: textblock
3729 #: ../clone/virt-sysprep.pod:462
3730 msgid "I<(This section applies to Linux guests using SELinux only)>"
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../clone/virt-sysprep.pod:464
3735 msgid ""
3736 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3737 "autorelabel> so that these will be correctly labelled by SELinux the next "
3738 "time the guest is booted.  This process interrupts boot and can take some "
3739 "time."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../clone/virt-sysprep.pod:469
3744 msgid ""
3745 "You can force relabelling for all guests by supplying the I<--selinux-"
3746 "relabel> option."
3747 msgstr ""
3748
3749 #. type: textblock
3750 #: ../clone/virt-sysprep.pod:472
3751 msgid ""
3752 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3753 "relabel> option."
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../clone/virt-sysprep.pod:484
3758 msgid "This program returns 0 on success, or 1 if there was an error."
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../clone/virt-sysprep.pod:488
3763 msgid ""
3764 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3765 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3766 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../df/virt-df.pod:5
3771 msgid "virt-df - Display free space on virtual filesystems"
3772 msgstr ""
3773
3774 #. type: verbatim
3775 #: ../df/virt-df.pod:9
3776 #, no-wrap
3777 msgid ""
3778 " virt-df [--options]\n"
3779 "\n"
3780 msgstr ""
3781
3782 #. type: verbatim
3783 #: ../df/virt-df.pod:11
3784 #, no-wrap
3785 msgid ""
3786 " virt-df [--options] -d domname\n"
3787 "\n"
3788 msgstr ""
3789
3790 #. type: verbatim
3791 #: ../df/virt-df.pod:13
3792 #, no-wrap
3793 msgid ""
3794 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3795 "\n"
3796 msgstr ""
3797
3798 #. type: verbatim
3799 #: ../df/virt-df.pod:17
3800 #, no-wrap
3801 msgid ""
3802 " virt-df [--options] domname\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../df/virt-df.pod:19
3808 #, no-wrap
3809 msgid ""
3810 " virt-df [--options] disk.img [disk.img ...]\n"
3811 "\n"
3812 msgstr ""
3813
3814 #. type: textblock
3815 #: ../df/virt-df.pod:23
3816 msgid ""
3817 "C<virt-df> is a command line tool to display free space on virtual machine "
3818 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3819 "allocated to a virtual machine, but can look inside disk images to see how "
3820 "much space is really being used."
3821 msgstr ""
3822
3823 #. type: textblock
3824 #: ../df/virt-df.pod:28
3825 msgid ""
3826 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3827 "to get a list of all active and inactive guests, and performs a C<df>-type "
3828 "operation on each one in turn, printing out the results."
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../df/virt-df.pod:32
3833 msgid ""
3834 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3835 "type operation on either the single named libvirt domain, or on the disk "
3836 "image(s) listed on the command line (which must all belong to a single VM).  "
3837 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3838 "guest>.  If you want to run on multiple guests, then you have to invoke "
3839 "C<virt-df> multiple times."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../df/virt-df.pod:39
3844 msgid ""
3845 "Use the I<--csv> option to get a format which can be easily parsed by other "
3846 "programs.  Other options are similar to the standard L<df(1)> command."
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../df/virt-df.pod:45
3851 msgid ""
3852 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3853 "output human-readable:"
3854 msgstr ""
3855
3856 #. type: verbatim
3857 #: ../df/virt-df.pod:48
3858 #, no-wrap
3859 msgid ""
3860 " # virt-df -d F14x64 -h\n"
3861 " Filesystem                       Size     Used  Available  Use%\n"
3862 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3863 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3864 "\n"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../df/virt-df.pod:53
3869 msgid "Show disk usage for a disk image file called C<test.img>:"
3870 msgstr ""
3871
3872 #. type: verbatim
3873 #: ../df/virt-df.pod:55
3874 #, no-wrap
3875 msgid ""
3876 " $ virt-df -a test1.img\n"
3877 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3878 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3879 "\n"
3880 msgstr ""
3881
3882 #. type: verbatim
3883 #: ../df/virt-df.pod:112
3884 #, no-wrap
3885 msgid ""
3886 " virt-df --format=raw -a disk.img\n"
3887 "\n"
3888 msgstr ""
3889
3890 #. type: verbatim
3891 #: ../df/virt-df.pod:116
3892 #, no-wrap
3893 msgid ""
3894 " virt-df --format=raw -a disk.img --format -a another.img\n"
3895 "\n"
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../df/virt-df.pod:129
3900 msgid "Print sizes in human-readable format."
3901 msgstr ""
3902
3903 #. type: textblock
3904 #: ../df/virt-df.pod:131
3905 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3906 msgstr ""
3907
3908 #. type: =item
3909 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3910 msgid "B<-i>"
3911 msgstr ""
3912
3913 #. type: =item
3914 #: ../df/virt-df.pod:135
3915 msgid "B<--inodes>"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../df/virt-df.pod:137
3920 msgid "Print inodes instead of blocks."
3921 msgstr ""
3922
3923 #. type: =item
3924 #: ../df/virt-df.pod:139
3925 msgid "B<--one-per-guest>"
3926 msgstr ""
3927
3928 #. type: textblock
3929 #: ../df/virt-df.pod:141
3930 msgid ""
3931 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3932 "disks from several guests to a single libguestfs appliance."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../df/virt-df.pod:144
3937 msgid "You might use this option in the following circumstances:"
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../df/virt-df.pod:150
3942 msgid ""
3943 "If you think an untrusted guest might actively try to exploit the libguestfs "
3944 "appliance kernel, then this prevents one guest from interfering with the "
3945 "stats printed for another guest."
3946 msgstr ""
3947
3948 #. type: textblock
3949 #: ../df/virt-df.pod:156
3950 msgid ""
3951 "If the kernel has a bug which stops it from accessing a filesystem in one "
3952 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3953 "and report stats for further guests."
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../df/virt-df.pod:165
3958 msgid ""
3959 "Print UUIDs instead of names.  This is useful for following a guest even "
3960 "when the guest is migrated or renamed, or when two guests happen to have the "
3961 "same name."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:169
3966 msgid ""
3967 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3968 "images, we still print the disk image name even when this option is "
3969 "specified."
3970 msgstr ""
3971
3972 #. type: textblock
3973 #: ../df/virt-df.pod:229
3974 msgid ""
3975 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3976 "libguestfs.org/>."
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../edit/virt-edit.pod:5
3981 msgid "virt-edit - Edit a file in a virtual machine"
3982 msgstr ""
3983
3984 #. type: verbatim
3985 #: ../edit/virt-edit.pod:9
3986 #, no-wrap
3987 msgid ""
3988 " virt-edit [--options] -d domname file [file ...]\n"
3989 "\n"
3990 msgstr ""
3991
3992 #. type: verbatim
3993 #: ../edit/virt-edit.pod:11
3994 #, no-wrap
3995 msgid ""
3996 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3997 "\n"
3998 msgstr ""
3999
4000 #. type: verbatim
4001 #: ../edit/virt-edit.pod:13
4002 #, no-wrap
4003 msgid ""
4004 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4005 "\n"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../edit/virt-edit.pod:17
4010 #, no-wrap
4011 msgid ""
4012 " virt-edit domname file\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4018 #, no-wrap
4019 msgid ""
4020 " virt-edit disk.img [disk.img ...] file\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: =head1
4025 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4026 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4027 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4028 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4029 msgid "WARNING"
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../edit/virt-edit.pod:23
4034 msgid ""
4035 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4036 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4037 "doing this, but doesn't catch all cases."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:29
4042 msgid ""
4043 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4044 "exists in the named virtual machine (or disk image)."
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../edit/virt-edit.pod:32
4049 msgid ""
4050 "Multiple filenames can be given, in which case they are each edited in "
4051 "turn.  Each filename must be a full path, starting at the root directory "
4052 "(starting with '/')."
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:36
4057 msgid "If you want to just view a file, use L<virt-cat(1)>."
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../edit/virt-edit.pod:38
4062 msgid ""
4063 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4064 "USING GUESTFISH> below)."
4065 msgstr ""
4066
4067 #. type: textblock
4068 #: ../edit/virt-edit.pod:41
4069 msgid ""
4070 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4071 "that and much more."
4072 msgstr ""
4073
4074 #. type: textblock
4075 #: ../edit/virt-edit.pod:46
4076 msgid "Edit the named files interactively:"
4077 msgstr ""
4078
4079 #. type: verbatim
4080 #: ../edit/virt-edit.pod:48
4081 #, no-wrap
4082 msgid ""
4083 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4084 "\n"
4085 msgstr ""
4086
4087 #. type: verbatim
4088 #: ../edit/virt-edit.pod:50
4089 #, no-wrap
4090 msgid ""
4091 " virt-edit -d mydomain /etc/passwd\n"
4092 "\n"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../edit/virt-edit.pod:52
4097 msgid "For Windows guests, some Windows paths are understood:"
4098 msgstr ""
4099
4100 #. type: verbatim
4101 #: ../edit/virt-edit.pod:54
4102 #, no-wrap
4103 msgid ""
4104 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4105 "\n"
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../edit/virt-edit.pod:56
4110 msgid ""
4111 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4112 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4113 msgstr ""
4114
4115 #. type: verbatim
4116 #: ../edit/virt-edit.pod:60
4117 #, no-wrap
4118 msgid ""
4119 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4120 "\n"
4121 msgstr ""
4122
4123 #. type: =item
4124 #: ../edit/virt-edit.pod:81
4125 msgid "B<-b> extension"
4126 msgstr ""
4127
4128 #. type: =item
4129 #: ../edit/virt-edit.pod:83
4130 msgid "B<--backup> extension"
4131 msgstr ""
4132
4133 #. type: textblock
4134 #: ../edit/virt-edit.pod:85
4135 msgid ""
4136 "Create a backup of the original file I<in the guest disk image>.  The backup "
4137 "has the original filename with C<extension> added."
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../edit/virt-edit.pod:88
4142 msgid ""
4143 "Usually the first character of C<extension> would be a dot C<.> so you would "
4144 "write:"
4145 msgstr ""
4146
4147 #. type: verbatim
4148 #: ../edit/virt-edit.pod:91
4149 #, no-wrap
4150 msgid ""
4151 " virt-edit -b .orig [etc]\n"
4152 "\n"
4153 msgstr ""
4154
4155 #. type: textblock
4156 #: ../edit/virt-edit.pod:93
4157 msgid "By default, no backup file is made."
4158 msgstr ""
4159
4160 #. type: =item
4161 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4162 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4163 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4164 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4165 msgid "B<-c URI>"
4166 msgstr ""
4167
4168 #. type: =item
4169 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4170 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4171 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4172 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4173 msgid "B<--connect URI>"
4174 msgstr ""
4175
4176 #. type: textblock
4177 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4178 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4179 #: ../tools/virt-win-reg.pl:135
4180 msgid ""
4181 "If you specify guest block devices directly, then libvirt is not used at all."
4182 msgstr ""
4183
4184 #. type: textblock
4185 #: ../edit/virt-edit.pod:114
4186 msgid ""
4187 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4188 "off so you cannot see what you are typing.  If you are not worried about "
4189 "Tempest attacks and there is no one else in the room you can specify this "
4190 "flag to see what you are typing."
4191 msgstr ""
4192
4193 #. type: =item
4194 #: ../edit/virt-edit.pod:119
4195 msgid "B<-e> EXPR"
4196 msgstr ""
4197
4198 #. type: =item
4199 #: ../edit/virt-edit.pod:121
4200 msgid "B<--expr> EXPR"
4201 msgstr ""
4202
4203 #. type: textblock
4204 #: ../edit/virt-edit.pod:123
4205 msgid ""
4206 "Instead of launching the external editor, non-interactively apply the Perl "
4207 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4208 "EDITING> below."
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../edit/virt-edit.pod:127
4213 msgid ""
4214 "Be careful to properly quote the expression to prevent it from being altered "
4215 "by the shell."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../edit/virt-edit.pod:130
4220 msgid "Note that this option is only available when Perl 5 is installed."
4221 msgstr ""
4222
4223 #. type: =item
4224 #: ../edit/virt-edit.pod:132
4225 msgid "B<--format> raw|qcow2|..."
4226 msgstr ""
4227
4228 #. type: verbatim
4229 #: ../edit/virt-edit.pod:143
4230 #, no-wrap
4231 msgid ""
4232 " virt-edit --format=raw -a disk.img file\n"
4233 "\n"
4234 msgstr ""
4235
4236 #. type: verbatim
4237 #: ../edit/virt-edit.pod:147
4238 #, no-wrap
4239 msgid ""
4240 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4241 "\n"
4242 msgstr ""
4243
4244 #. type: textblock
4245 #: ../edit/virt-edit.pod:181
4246 msgid "Previous versions of virt-edit allowed you to write either:"
4247 msgstr ""
4248
4249 #. type: verbatim
4250 #: ../edit/virt-edit.pod:187
4251 #, no-wrap
4252 msgid ""
4253 " virt-edit guestname file\n"
4254 "\n"
4255 msgstr ""
4256
4257 #. type: =head1
4258 #: ../edit/virt-edit.pod:195
4259 msgid "NON-INTERACTIVE EDITING"
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../edit/virt-edit.pod:197
4264 msgid ""
4265 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4266 "administrator can interactively edit the file."
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../edit/virt-edit.pod:200
4271 msgid ""
4272 "There are two ways also to use C<virt-edit> from scripts in order to make "
4273 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4274 "like this, it's less error-prone to write scripts directly using the "
4275 "libguestfs API and Augeas for configuration file editing.)"
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../edit/virt-edit.pod:206
4280 msgid ""
4281 "The first method is to temporarily set C<$EDITOR> to any script or program "
4282 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4283 "update C<tmpfile> in place however it likes."
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../edit/virt-edit.pod:210
4288 msgid ""
4289 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4290 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4291 "instances of C<foo> with C<bar> in a file:"
4292 msgstr ""
4293
4294 #. type: verbatim
4295 #: ../edit/virt-edit.pod:214
4296 #, no-wrap
4297 msgid ""
4298 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4299 "\n"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:216
4304 msgid ""
4305 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4306 "For example to delete root's password you could do:"
4307 msgstr ""
4308
4309 #. type: verbatim
4310 #: ../edit/virt-edit.pod:219
4311 #, no-wrap
4312 msgid ""
4313 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4314 "\n"
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../edit/virt-edit.pod:221
4319 msgid ""
4320 "What really happens is that the snippet is evaluated as a Perl expression "
4321 "for each line of the file.  The line, including the final C<\\n>, is passed "
4322 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../edit/virt-edit.pod:226
4327 msgid ""
4328 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4329 "C<apache> user account from the password file you can do:"
4330 msgstr ""
4331
4332 #. type: verbatim
4333 #: ../edit/virt-edit.pod:229
4334 #, no-wrap
4335 msgid ""
4336 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4337 "\n"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../edit/virt-edit.pod:231
4342 msgid ""
4343 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4344 "the end of the file is rather difficult this way since there is no concept "
4345 "of \"last line of the file\" - your expression just doesn't get called "
4346 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4347 "want to do this."
4348 msgstr ""
4349
4350 #. type: textblock
4351 #: ../edit/virt-edit.pod:237
4352 msgid ""
4353 "The variable C<$lineno> contains the current line number.  As is "
4354 "traditional, the first line in the file is number C<1>."
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../edit/virt-edit.pod:240
4359 msgid ""
4360 "The return value from the expression is ignored, but the expression may call "
4361 "C<die> in order to abort the whole program, leaving the original file "
4362 "untouched."
4363 msgstr ""
4364
4365 #. type: textblock
4366 #: ../edit/virt-edit.pod:244
4367 msgid ""
4368 "Remember when matching the end of a line that C<$_> may contain the final C<"
4369 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4370 "newline then neither of these.  Thus to match or substitute some text at the "
4371 "end of a line, use this regular expression:"
4372 msgstr ""
4373
4374 #. type: verbatim
4375 #: ../edit/virt-edit.pod:249
4376 #, no-wrap
4377 msgid ""
4378 " /some text(\\r?\\n)?$/\n"
4379 "\n"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../edit/virt-edit.pod:251
4384 msgid ""
4385 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4386 "$_> itself (since that would remove all newlines from the file):"
4387 msgstr ""
4388
4389 #. type: verbatim
4390 #: ../edit/virt-edit.pod:255
4391 #, no-wrap
4392 msgid ""
4393 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4394 "\n"
4395 msgstr ""
4396
4397 #. type: textblock
4398 #: ../edit/virt-edit.pod:259
4399 msgid ""
4400 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4401 "paths (eg. C<E:\\foo\\bar.txt>)."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:278
4406 msgid ""
4407 "The path is resolved case insensitively to locate the file that should be "
4408 "edited."
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../edit/virt-edit.pod:299
4413 msgid ""
4414 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4415 "C<virt-edit> doesn't work."
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../edit/virt-edit.pod:302
4420 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4421 msgstr ""
4422
4423 #. type: verbatim
4424 #: ../edit/virt-edit.pod:304
4425 #, no-wrap
4426 msgid ""
4427 " guestfish --rw -i -d domname edit /file\n"
4428 "\n"
4429 msgstr ""
4430
4431 #. type: textblock
4432 #: ../edit/virt-edit.pod:306
4433 msgid ""
4434 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4435 "path to the file."
4436 msgstr ""
4437
4438 #. type: textblock
4439 #: ../edit/virt-edit.pod:309
4440 msgid ""
4441 "The command above uses libguestfs's guest inspection feature and so does not "
4442 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4443 "disk images that don't contain guests.  To edit a file on a disk image "
4444 "directly, use:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../edit/virt-edit.pod:314
4449 #, no-wrap
4450 msgid ""
4451 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4452 "\n"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:316
4457 msgid ""
4458 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4459 "the disk image to edit, and C</file> is the full path to the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:320
4464 msgid ""
4465 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4466 "C<write> or C<upload> instead:"
4467 msgstr ""
4468
4469 #. type: verbatim
4470 #: ../edit/virt-edit.pod:323
4471 #, no-wrap
4472 msgid ""
4473 " guestfish --rw -i -d domname touch /newfile\n"
4474 "\n"
4475 msgstr ""
4476
4477 #. type: verbatim
4478 #: ../edit/virt-edit.pod:325
4479 #, no-wrap
4480 msgid ""
4481 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4482 "\n"
4483 msgstr ""
4484
4485 #. type: verbatim
4486 #: ../edit/virt-edit.pod:327
4487 #, no-wrap
4488 msgid ""
4489 " guestfish --rw -i -d domname upload localfile /newfile\n"
4490 "\n"
4491 msgstr ""
4492
4493 #. type: =head1
4494 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4495 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4496 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4497 msgid "ENVIRONMENT VARIABLES"
4498 msgstr ""
4499
4500 #. type: =item
4501 #: ../edit/virt-edit.pod:333
4502 msgid "C<EDITOR>"
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../edit/virt-edit.pod:335
4507 msgid ""
4508 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4509 "\"emacs -nw\">"
4510 msgstr ""
4511
4512 #. type: textblock
4513 #: ../edit/virt-edit.pod:338
4514 msgid "If not set, C<vi> is used."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../edit/virt-edit.pod:356
4519 msgid ""
4520 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4521 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4522 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4523 msgstr ""
4524
4525 #. type: textblock
4526 #: ../erlang/examples/guestfs-erlang.pod:5
4527 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4528 msgstr ""
4529
4530 #. type: verbatim
4531 #: ../erlang/examples/guestfs-erlang.pod:9
4532 #, no-wrap
4533 msgid ""
4534 " {ok, G} = guestfs:create(),\n"
4535 " ok = guestfs:add_drive_opts(G, Disk,\n"
4536 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4537 " ok = guestfs:launch(G),\n"
4538 " [Device] = guestfs:list_devices(G),\n"
4539 " ok = guestfs:close(G).\n"
4540 "\n"
4541 msgstr ""
4542
4543 #. type: textblock
4544 #: ../erlang/examples/guestfs-erlang.pod:18
4545 msgid ""
4546 "This manual page documents how to call libguestfs from the Erlang "
4547 "programming language.  This page just documents the differences from the C "
4548 "API and gives some examples.  If you are not familiar with using libguestfs, "
4549 "you also need to read L<guestfs(3)>."
4550 msgstr ""
4551
4552 #. type: =head2
4553 #: ../erlang/examples/guestfs-erlang.pod:23
4554 msgid "OPENING AND CLOSING THE HANDLE"
4555 msgstr ""
4556
4557 #. type: textblock
4558 #: ../erlang/examples/guestfs-erlang.pod:25
4559 msgid ""
4560 "The Erlang bindings are implemented using an external program called C<erl-"
4561 "guestfs>.  This program must be on the current PATH, or else you should "
4562 "specify the full path to the program:"
4563 msgstr ""
4564
4565 #. type: verbatim
4566 #: ../erlang/examples/guestfs-erlang.pod:29
4567 #, no-wrap
4568 msgid ""
4569 " {ok, G} = guestfs:create().\n"
4570 "\n"
4571 msgstr ""
4572
4573 #. type: verbatim
4574 #: ../erlang/examples/guestfs-erlang.pod:31
4575 #, no-wrap
4576 msgid ""
4577 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4578 "\n"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../erlang/examples/guestfs-erlang.pod:33
4583 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../erlang/examples/guestfs-erlang.pod:36
4588 msgid "To close the handle:"
4589 msgstr ""
4590
4591 #. type: verbatim
4592 #: ../erlang/examples/guestfs-erlang.pod:38
4593 #, no-wrap
4594 msgid ""
4595 " ok = guestfs:close(G).\n"
4596 "\n"
4597 msgstr ""
4598
4599 #. type: =head2
4600 #: ../erlang/examples/guestfs-erlang.pod:40
4601 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4602 msgstr ""
4603
4604 #. type: textblock
4605 #: ../erlang/examples/guestfs-erlang.pod:42
4606 msgid ""
4607 "For functions that take optional arguments, the first arguments are the non-"
4608 "optional ones.  The last argument is a list of tuples supplying the "
4609 "remaining optional arguments."
4610 msgstr ""
4611
4612 #. type: verbatim
4613 #: ../erlang/examples/guestfs-erlang.pod:46
4614 #, no-wrap
4615 msgid ""
4616 " ok = guestfs:add_drive_opts(G, Disk,\n"
4617 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4618 "\n"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../erlang/examples/guestfs-erlang.pod:49
4623 msgid "If the last argument would be an empty list, you can also omit it:"
4624 msgstr ""
4625
4626 #. type: verbatim
4627 #: ../erlang/examples/guestfs-erlang.pod:51
4628 #, no-wrap
4629 msgid ""
4630 " ok = guestfs:add_drive_opts(G, Disk).\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../erlang/examples/guestfs-erlang.pod:53
4636 msgid "RETURN VALUES AND ERRORS"
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../erlang/examples/guestfs-erlang.pod:55
4641 msgid ""
4642 "On success, most functions return a C<Result> term (which could be a list, "
4643 "string, tuple etc.).  If there is nothing for the function to return, then "
4644 "the atom C<ok> is returned."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../erlang/examples/guestfs-erlang.pod:59
4649 msgid "On error, you would see one of the following tuples:"
4650 msgstr ""
4651
4652 #. type: =item
4653 #: ../erlang/examples/guestfs-erlang.pod:63
4654 msgid "C<{error, Msg, Errno}>"
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../erlang/examples/guestfs-erlang.pod:65
4659 msgid "This indicates an ordinary error from the function."
4660 msgstr ""
4661
4662 #. type: textblock
4663 #: ../erlang/examples/guestfs-erlang.pod:67
4664 msgid ""
4665 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4666 "(integer)."
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../erlang/examples/guestfs-erlang.pod:70
4671 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4672 msgstr ""
4673
4674 #. type: =item
4675 #: ../erlang/examples/guestfs-erlang.pod:72
4676 msgid "C<{unknown, Function}>"
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../erlang/examples/guestfs-erlang.pod:74
4681 msgid ""
4682 "This indicates that the function you called is not known.  Generally this "
4683 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4684 "which you should not do."
4685 msgstr ""
4686
4687 #. type: textblock
4688 #: ../erlang/examples/guestfs-erlang.pod:78
4689 msgid "C<Function> is the name of the unknown function."
4690 msgstr ""
4691
4692 #. type: =item
4693 #: ../erlang/examples/guestfs-erlang.pod:80
4694 msgid "C<{unknownarg, Arg}>"
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../erlang/examples/guestfs-erlang.pod:82
4699 msgid ""
4700 "This indicates that you called a function with optional arguments, with an "
4701 "unknown argument name."
4702 msgstr ""
4703
4704 #. type: textblock
4705 #: ../erlang/examples/guestfs-erlang.pod:85
4706 msgid "C<Arg> is the name of the unknown argument."
4707 msgstr ""
4708
4709 #. type: =head1
4710 #: ../erlang/examples/guestfs-erlang.pod:89
4711 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4712 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4713 #: ../python/examples/guestfs-python.pod:34
4714 #: ../ruby/examples/guestfs-ruby.pod:28
4715 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../erlang/examples/guestfs-erlang.pod:91
4720 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4721 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4722 #: ../python/examples/guestfs-python.pod:36
4723 #: ../ruby/examples/guestfs-ruby.pod:30
4724 msgid "@EXAMPLE1@"
4725 msgstr ""
4726
4727 #. type: =head1
4728 #: ../erlang/examples/guestfs-erlang.pod:93
4729 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4730 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4731 #: ../python/examples/guestfs-python.pod:38
4732 #: ../ruby/examples/guestfs-ruby.pod:32
4733 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../erlang/examples/guestfs-erlang.pod:95
4738 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4739 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4740 #: ../python/examples/guestfs-python.pod:40
4741 #: ../ruby/examples/guestfs-ruby.pod:34
4742 msgid "@EXAMPLE2@"
4743 msgstr ""
4744
4745 #. type: textblock
4746 #: ../erlang/examples/guestfs-erlang.pod:99
4747 msgid ""
4748 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4749 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4750 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4751 msgstr ""
4752
4753 #. type: =head1
4754 #: ../erlang/examples/guestfs-erlang.pod:110
4755 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4756 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4757 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4758 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4759 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4760 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4761 #: ../python/examples/guestfs-python.pod:54
4762 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4763 #: ../test-tool/libguestfs-test-tool.pod:106
4764 msgid "AUTHORS"
4765 msgstr ""
4766
4767 #. type: textblock
4768 #: ../erlang/examples/guestfs-erlang.pod:112
4769 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4770 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4771 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4772 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4773 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4774 #: ../perl/examples/guestfs-perl.pod:54
4775 #: ../python/examples/guestfs-python.pod:56
4776 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4777 #: ../test-tool/libguestfs-test-tool.pod:108
4778 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../erlang/examples/guestfs-erlang.pod:116
4783 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4784 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../erlang/examples/guestfs-erlang.pod:118
4789 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4790 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4791 #: ../perl/examples/guestfs-perl.pod:60
4792 #: ../python/examples/guestfs-python.pod:62
4793 #: ../ruby/examples/guestfs-ruby.pod:56
4794 msgid ""
4795 "The examples in this manual page may be freely copied, modified and "
4796 "distributed without any restrictions."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../erlang/examples/guestfs-erlang.pod:121
4801 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4802 #: ../java/examples/guestfs-java.pod:69
4803 #: ../ocaml/examples/guestfs-ocaml.pod:102
4804 #: ../perl/examples/guestfs-perl.pod:63
4805 #: ../python/examples/guestfs-python.pod:65
4806 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4807 msgid ""
4808 "This library is free software; you can redistribute it and/or modify it "
4809 "under the terms of the GNU Lesser General Public License as published by the "
4810 "Free Software Foundation; either version 2 of the License, or (at your "
4811 "option) any later version."
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../erlang/examples/guestfs-erlang.pod:126
4816 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4817 #: ../java/examples/guestfs-java.pod:74
4818 #: ../ocaml/examples/guestfs-ocaml.pod:107
4819 #: ../perl/examples/guestfs-perl.pod:68
4820 #: ../python/examples/guestfs-python.pod:70
4821 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4822 msgid ""
4823 "This library is distributed in the hope that it will be useful, but WITHOUT "
4824 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4825 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4826 "for more details."
4827 msgstr ""
4828
4829 #. type: textblock
4830 #: ../erlang/examples/guestfs-erlang.pod:131
4831 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4832 #: ../java/examples/guestfs-java.pod:79
4833 #: ../ocaml/examples/guestfs-ocaml.pod:112
4834 #: ../perl/examples/guestfs-perl.pod:73
4835 #: ../python/examples/guestfs-python.pod:75
4836 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4837 msgid ""
4838 "You should have received a copy of the GNU Lesser General Public License "
4839 "along with this library; if not, write to the Free Software Foundation, "
4840 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../examples/guestfs-examples.pod:5
4845 msgid "guestfs-examples - Examples of using libguestfs from C"
4846 msgstr ""
4847
4848 #. type: verbatim
4849 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4850 #, no-wrap
4851 msgid ""
4852 " #include <guestfs.h>\n"
4853 " \n"
4854 msgstr "#include <guestfs.h>\n"
4855
4856 #. type: verbatim
4857 #: ../examples/guestfs-examples.pod:11
4858 #, no-wrap
4859 msgid ""
4860 " guestfs_h *g = guestfs_create ();\n"
4861 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4862 " guestfs_launch (g);\n"
4863 "\n"
4864 msgstr ""
4865
4866 #. type: verbatim
4867 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4868 #, no-wrap
4869 msgid ""
4870 " cc prog.c -o prog -lguestfs\n"
4871 "or:\n"
4872 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4873 "\n"
4874 msgstr ""
4875 " cc prog.c -o prog -lguestfs\n"
4876 "or:\n"
4877 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4878 "\n"
4879
4880 #. type: textblock
4881 #: ../examples/guestfs-examples.pod:21
4882 msgid ""
4883 "This manual page contains examples of calling libguestfs from the C "
4884 "programming language.  If you are not familiar with using libguestfs, you "
4885 "also need to read L<guestfs(3)>."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../examples/guestfs-examples.pod:35
4890 msgid ""
4891 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4892 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4893 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4898 #: ../python/examples/guestfs-python.pod:60
4899 #: ../ruby/examples/guestfs-ruby.pod:54
4900 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4901 msgstr ""
4902
4903 #. type: =end
4904 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4905 msgid "comment"
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../examples/guestfs-recipes.pod:5
4910 msgid ""
4911 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4912 "here.  The only way which works for both sorts of output is to just write "
4913 "the URL directly.  Do NOT use L<...> for URLs."
4914 msgstr ""
4915
4916 #. type: textblock
4917 #: ../examples/guestfs-recipes.pod:9
4918 msgid ""
4919 "We break with tradition here and don't use ALL CAPS for the section "
4920 "headings, as this makes them much easier to read."
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-recipes.pod:16
4925 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4926 msgstr ""
4927
4928 #. type: textblock
4929 #: ../examples/guestfs-recipes.pod:20
4930 msgid ""
4931 "This page contains recipes for and links to things you can do using "
4932 "libguestfs, L<guestfish(1)> and the virt tools."
4933 msgstr ""
4934
4935 #. type: =head1
4936 #: ../examples/guestfs-recipes.pod:23
4937 msgid "Audit a virtual machine for setuid files"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../examples/guestfs-recipes.pod:25
4942 msgid ""
4943 "The link below contains a small program which can be used to audit a Linux "
4944 "virtual machine to see what setuid and setgid files it contains."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../examples/guestfs-recipes.pod:28
4949 msgid ""
4950 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4951 "files/#content"
4952 msgstr ""
4953
4954 #. type: =head1
4955 #: ../examples/guestfs-recipes.pod:30
4956 msgid "Change the background image in a Windows XP VM"
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../examples/guestfs-recipes.pod:32
4961 msgid ""
4962 "The links below explain how to use L<guestfish(1)> to change the background "
4963 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4964 "be substantially different for each version of Windows."
4965 msgstr ""
4966
4967 #. type: textblock
4968 #: ../examples/guestfs-recipes.pod:37
4969 msgid ""
4970 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4971 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4972 msgstr ""
4973
4974 #. type: =head1
4975 #: ../examples/guestfs-recipes.pod:40
4976 msgid "Cloning a virtual machine (Linux)"
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../examples/guestfs-recipes.pod:42
4981 msgid ""
4982 "The guestfish technique described in the link below works well for most "
4983 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4984 "slightly."
4985 msgstr ""
4986
4987 #. type: textblock
4988 #: ../examples/guestfs-recipes.pod:46
4989 msgid ""
4990 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4991 "vm/#content"
4992 msgstr ""
4993
4994 #. type: textblock
4995 #: ../examples/guestfs-recipes.pod:48
4996 msgid ""
4997 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4998 "discussion."
4999 msgstr ""
5000
5001 #. type: textblock
5002 #: ../examples/guestfs-recipes.pod:51
5003 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5004 msgstr ""
5005
5006 #. type: =head1
5007 #: ../examples/guestfs-recipes.pod:53
5008 msgid "Cloning a virtual machine (Windows)"
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../examples/guestfs-recipes.pod:55
5013 msgid ""
5014 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5015 "straightforward.  Currently there is code in the Aeolus Oz project which "
5016 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5017 "we may add sysprepping ability."
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../examples/guestfs-recipes.pod:60
5022 msgid ""
5023 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5024 "list/2011-May/msg00019.html"
5025 msgstr ""
5026
5027 #. type: =head1
5028 #: ../examples/guestfs-recipes.pod:63
5029 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5030 msgstr ""
5031
5032 #. type: textblock
5033 #: ../examples/guestfs-recipes.pod:65
5034 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5035 msgstr ""
5036
5037 #. type: verbatim
5038 #: ../examples/guestfs-recipes.pod:67
5039 #, no-wrap
5040 msgid ""
5041 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5042 "\n"
5043 msgstr ""
5044
5045 #. type: textblock
5046 #: ../examples/guestfs-recipes.pod:69
5047 msgid "To export just a subdirectory, eg. C</files>, do:"
5048 msgstr ""
5049
5050 #. type: verbatim
5051 #: ../examples/guestfs-recipes.pod:71
5052 #, no-wrap
5053 msgid ""
5054 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5055 "\n"
5056 msgstr ""
5057
5058 #. type: =head1
5059 #: ../examples/guestfs-recipes.pod:73
5060 msgid "Create empty disk images"
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../examples/guestfs-recipes.pod:75
5065 msgid ""
5066 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5067 "The useful guide below explains the options available."
5068 msgstr ""
5069
5070 #. type: textblock
5071 #: ../examples/guestfs-recipes.pod:78
5072 msgid ""
5073 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5074 "#content"
5075 msgstr ""
5076
5077 #. type: =head1
5078 #: ../examples/guestfs-recipes.pod:80
5079 msgid "Dump raw filesystem content from inside a disk image or VM"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../examples/guestfs-recipes.pod:82
5084 msgid ""
5085 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5086 "filesystem content from any filesystem in a disk image or a VM (even one "
5087 "which is encrypted or buried inside an LV):"
5088 msgstr ""
5089
5090 #. type: verbatim
5091 #: ../examples/guestfs-recipes.pod:86
5092 #, no-wrap
5093 msgid ""
5094 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5095 "\n"
5096 msgstr ""
5097
5098 #. type: verbatim
5099 #: ../examples/guestfs-recipes.pod:88
5100 #, no-wrap
5101 msgid ""
5102 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5103 "\n"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:90
5108 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5109 msgstr ""
5110
5111 #. type: =head1
5112 #: ../examples/guestfs-recipes.pod:92
5113 msgid "Edit grub configuration in a VM"
5114 msgstr ""
5115
5116 #. type: textblock
5117 #: ../examples/guestfs-recipes.pod:94
5118 msgid "You can use this to:"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../examples/guestfs-recipes.pod:100
5123 msgid "Fix a virtual machine that does not boot."
5124 msgstr ""
5125
5126 #. type: textblock
5127 #: ../examples/guestfs-recipes.pod:104
5128 msgid "Change which kernel is used to boot the VM."
5129 msgstr ""
5130
5131 #. type: textblock
5132 #: ../examples/guestfs-recipes.pod:108
5133 msgid "Change kernel command line options."
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../examples/guestfs-recipes.pod:112
5138 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../examples/guestfs-recipes.pod:114
5143 #, no-wrap
5144 msgid ""
5145 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../examples/guestfs-recipes.pod:116
5151 msgid ""
5152 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5153 "this:"
5154 msgstr ""
5155
5156 #. type: verbatim
5157 #: ../examples/guestfs-recipes.pod:119
5158 #, no-wrap
5159 msgid ""
5160 " virt-rescue -d BrokenGuest\n"
5161 "\n"
5162 msgstr ""
5163
5164 #. type: =head1
5165 #: ../examples/guestfs-recipes.pod:121
5166 msgid "Export any directory from a VM"
5167 msgstr ""
5168
5169 #. type: textblock
5170 #: ../examples/guestfs-recipes.pod:123
5171 msgid ""
5172 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5173 msgstr ""
5174
5175 #. type: verbatim
5176 #: ../examples/guestfs-recipes.pod:126
5177 #, no-wrap
5178 msgid ""
5179 " virt-copy-out -d Guest /home .\n"
5180 "\n"
5181 msgstr ""
5182
5183 #. type: textblock
5184 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5185 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5186 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5187 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2750
5188 #: ../src/guestfs-actions.pod:3309 ../src/guestfs.pod:1685
5189 #: ../tools/virt-win-reg.pl:717
5190 msgid "Notes:"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../examples/guestfs-recipes.pod:134
5195 msgid ""
5196 "The final dot of the command is not a printing error.  It means we want to "
5197 "copy out to the current directory."
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../examples/guestfs-recipes.pod:139
5202 msgid "This creates a directory called C<home> under the current directory."
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../examples/guestfs-recipes.pod:143
5207 msgid ""
5208 "If the guest is a Windows guest then you can use drive letters and "
5209 "backslashes, but you must prefix the path with C<win:> and quote it to "
5210 "protect it from the shell, like this:"
5211 msgstr ""
5212
5213 #. type: verbatim
5214 #: ../examples/guestfs-recipes.pod:147
5215 #, no-wrap
5216 msgid ""
5217 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5218 "\n"
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../examples/guestfs-recipes.pod:149
5223 msgid "To get the output as a compressed tarball, do:"
5224 msgstr ""
5225
5226 #. type: verbatim
5227 #: ../examples/guestfs-recipes.pod:151
5228 #, no-wrap
5229 msgid ""
5230 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5231 "\n"
5232 msgstr ""
5233
5234 #. type: textblock
5235 #: ../examples/guestfs-recipes.pod:153
5236 msgid ""
5237 "Although it sounds tempting, this is usually not a reliable way to get a "
5238 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5239 "org/FAQ.html#backup"
5240 msgstr ""
5241
5242 #. type: =head1
5243 #: ../examples/guestfs-recipes.pod:157
5244 msgid "Find out which user is using the most space"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:159
5249 msgid ""
5250 "This simple script examines a Linux guest to find out which user is using "
5251 "the most space in their home directory:"
5252 msgstr ""
5253
5254 #. type: verbatim
5255 #: ../examples/guestfs-recipes.pod:162
5256 #, no-wrap
5257 msgid ""
5258 " #!/bin/sh -\n"
5259 " \n"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5264 #, no-wrap
5265 msgid ""
5266 " set -e\n"
5267 " \n"
5268 msgstr ""
5269
5270 #. type: verbatim
5271 #: ../examples/guestfs-recipes.pod:166
5272 #, no-wrap
5273 msgid ""
5274 " vm=\"$1\"\n"
5275 " dir=/home\n"
5276 " \n"
5277 msgstr ""
5278
5279 #. type: verbatim
5280 #: ../examples/guestfs-recipes.pod:169
5281 #, no-wrap
5282 msgid ""
5283 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5284 " \n"
5285 msgstr ""
5286
5287 #. type: verbatim
5288 #: ../examples/guestfs-recipes.pod:171
5289 #, no-wrap
5290 msgid ""
5291 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5292 "     echo -n \"$dir/$d\"\n"
5293 "     echo -ne '\\t'\n"
5294 "     guestfish --remote du \"$dir/$d\";\n"
5295 " done | sort -nr -k 2\n"
5296 " \n"
5297 msgstr ""
5298
5299 #. type: verbatim
5300 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5301 #, no-wrap
5302 msgid ""
5303 " guestfish --remote exit\n"
5304 "\n"
5305 msgstr ""
5306
5307 #. type: =head1
5308 #: ../examples/guestfs-recipes.pod:179
5309 msgid "Get DHCP address from a VM"
5310 msgstr ""
5311
5312 #. type: textblock
5313 #: ../examples/guestfs-recipes.pod:181
5314 msgid ""
5315 "The link below explains the many different possible techniques for getting "
5316 "the last assigned DHCP address of a virtual machine."
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../examples/guestfs-recipes.pod:184
5321 msgid ""
5322 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5323 "a-virtual-machine-disk-image/#content"
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-recipes.pod:186
5328 msgid ""
5329 "In the libguestfs source examples directory you will find the latest version "
5330 "of the C<virt-dhcp-address.c> program."
5331 msgstr ""
5332
5333 #. type: =head1
5334 #: ../examples/guestfs-recipes.pod:189
5335 msgid "Get the operating system product name string"
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-recipes.pod:191
5340 msgid "Save the following script into a file called C<product-name.sh>:"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../examples/guestfs-recipes.pod:193
5345 #, no-wrap
5346 msgid ""
5347 " #!/bin/sh -\n"
5348 " set -e\n"
5349 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5350 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5351 " guestfish --remote inspect-get-product-name \"$root\"\n"
5352 " guestfish --remote exit\n"
5353 "\n"
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../examples/guestfs-recipes.pod:200
5358 msgid "Make the script executable and run it on a named guest:"
5359 msgstr ""
5360
5361 #. type: verbatim
5362 #: ../examples/guestfs-recipes.pod:202
5363 #, no-wrap
5364 msgid ""
5365 " # product-name.sh RHEL60x64\n"
5366 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5367 "\n"
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../examples/guestfs-recipes.pod:205
5372 msgid ""
5373 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5374 "C<xpath> command line tool or from your favourite programming language:"
5375 msgstr ""
5376
5377 #. type: verbatim
5378 #: ../examples/guestfs-recipes.pod:209
5379 #, no-wrap
5380 msgid ""
5381 " # virt-inspector RHEL60x64 > xml\n"
5382 " # xpath '//product_name' < xml\n"
5383 " Found 1 nodes:\n"
5384 " -- NODE --\n"
5385 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5386 "\n"
5387 msgstr ""
5388
5389 #. type: =head1
5390 #: ../examples/guestfs-recipes.pod:215
5391 msgid "Get the default boot kernel for a Linux VM"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-recipes.pod:217
5396 msgid ""
5397 "The link below contains a program to print the default boot kernel for a "
5398 "Linux VM."
5399 msgstr ""
5400
5401 #. type: textblock
5402 #: ../examples/guestfs-recipes.pod:220
5403 msgid ""
5404 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5405 "kernel-for-a-vm/#content"
5406 msgstr ""
5407
5408 #. type: textblock
5409 #: ../examples/guestfs-recipes.pod:222
5410 msgid ""
5411 "It uses Augeas, and the technique is generally applicable for many different "
5412 "tasks, such as:"
5413 msgstr ""
5414
5415 #. type: textblock
5416 #: ../examples/guestfs-recipes.pod:229
5417 msgid "listing the user accounts in the guest"
5418 msgstr ""
5419
5420 #. type: textblock
5421 #: ../examples/guestfs-recipes.pod:233
5422 msgid "what repositories is it configured to use"
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../examples/guestfs-recipes.pod:237
5427 msgid "what NTP servers does it connect to"
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../examples/guestfs-recipes.pod:241
5432 msgid "what were the boot messages last time it booted"
5433 msgstr ""
5434
5435 #. type: textblock
5436 #: ../examples/guestfs-recipes.pod:245
5437 msgid "listing who was logged in recently"
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../examples/guestfs-recipes.pod:249
5442 msgid "http://augeas.net/"
5443 msgstr ""
5444
5445 #. type: =head1
5446 #: ../examples/guestfs-recipes.pod:251
5447 msgid "Install RPMs in a guest"
5448 msgstr ""
5449
5450 #. type: textblock
5451 #: ../examples/guestfs-recipes.pod:253
5452 msgid ""
5453 "The link below contains a method to install RPMs in a guest.  In fact the "
5454 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5455 "installs them next time the guest is booted.  You could use this technique "
5456 "to install vital security updates in an offline guest."
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:259
5461 msgid ""
5462 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5463 msgstr ""
5464
5465 #. type: =head1
5466 #: ../examples/guestfs-recipes.pod:261
5467 msgid "List applications installed in a VM"
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../examples/guestfs-recipes.pod:263
5472 msgid "Save the following to a file C<list-apps.sh>:"
5473 msgstr ""
5474
5475 #. type: verbatim
5476 #: ../examples/guestfs-recipes.pod:265
5477 #, no-wrap
5478 msgid ""
5479 " #!/bin/sh -\n"
5480 " set -e\n"
5481 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5482 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5483 " guestfish --remote inspect-list-applications \"$root\"\n"
5484 " guestfish --remote exit\n"
5485 "\n"
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../examples/guestfs-recipes.pod:272
5490 msgid ""
5491 "Make the file executable and then you can run it on any named virtual "
5492 "machine:"
5493 msgstr ""
5494
5495 #. type: verbatim
5496 #: ../examples/guestfs-recipes.pod:275
5497 #, no-wrap
5498 msgid ""
5499 " # list-apps.sh WinGuest\n"
5500 " [0] = {\n"
5501 "   app_name: Mozilla Firefox (3.6.12)\n"
5502 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5503 "   app_epoch: 0\n"
5504 "   app_version: 3.6.12 (en-GB)\n"
5505 "   app_release:\n"
5506 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5507 "   app_trans_path:\n"
5508 "   app_publisher: Mozilla\n"
5509 "   app_url: http://www.mozilla.com/en-GB/\n"
5510 "   app_source_package:\n"
5511 "   app_summary:\n"
5512 "   app_description: Mozilla Firefox\n"
5513 " }\n"
5514 " [1] = {\n"
5515 "   app_name: VLC media player\n"
5516 "   app_display_name: VLC media player 1.1.5\n"
5517 "   app_epoch: 0\n"
5518 "   app_version: 1.1.5\n"
5519 "   app_release:\n"
5520 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5521 "   app_trans_path:\n"
5522 "   app_publisher: VideoLAN\n"
5523 "   app_url: http://www.videolan.org/\n"
5524 "   app_source_package:\n"
5525 "   app_summary:\n"
5526 "   app_description:\n"
5527 " }\n"
5528 "\n"
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-recipes.pod:305
5533 msgid ""
5534 "If you want to run the script on disk images (instead of libvirt virtual "
5535 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5536 ">."
5537 msgstr ""
5538
5539 #. type: =head1
5540 #: ../examples/guestfs-recipes.pod:309
5541 msgid "List files and directories in a VM"
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../examples/guestfs-recipes.pod:311
5546 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5547 msgstr ""
5548
5549 #. type: verbatim
5550 #: ../examples/guestfs-recipes.pod:313
5551 #, no-wrap
5552 msgid ""
5553 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5554 "\n"
5555 msgstr ""
5556
5557 #. type: =head1
5558 #: ../examples/guestfs-recipes.pod:315
5559 msgid "List services in a Windows VM"
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../examples/guestfs-recipes.pod:317
5564 msgid ""
5565 "The link below contains a script that can be used to list out the services "
5566 "from a Windows VM, and whether those services run at boot time or are loaded "
5567 "on demand."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../examples/guestfs-recipes.pod:321
5572 msgid ""
5573 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5574 "#content"
5575 msgstr ""
5576
5577 #. type: =head1
5578 #: ../examples/guestfs-recipes.pod:323
5579 msgid "Make a disk image sparse"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../examples/guestfs-recipes.pod:325
5584 msgid ""
5585 "The link below contains some guides for making a disk image sparse (or "
5586 "reintroducing sparseness)."
5587 msgstr ""
5588
5589 #. type: textblock
5590 #: ../examples/guestfs-recipes.pod:328
5591 msgid ""
5592 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5593 msgstr ""
5594
5595 #. type: =head1
5596 #: ../examples/guestfs-recipes.pod:330
5597 msgid "Monitor disk usage over time"
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../examples/guestfs-recipes.pod:332
5602 msgid ""
5603 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5604 "The link below contains a guide."
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../examples/guestfs-recipes.pod:335
5609 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5610 msgstr ""
5611
5612 #. type: =head1
5613 #: ../examples/guestfs-recipes.pod:337
5614 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5615 msgstr ""
5616
5617 #. type: textblock
5618 #: ../examples/guestfs-recipes.pod:339
5619 msgid ""
5620 "L<guestfish(1)> plus the tools described in the link below can be used to "
5621 "read out the Windows Event Log from any virtual machine running Windows "
5622 "Vista or a later version."
5623 msgstr ""
5624
5625 #. type: textblock
5626 #: ../examples/guestfs-recipes.pod:343
5627 msgid ""
5628 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5629 "guestfish/#content"
5630 msgstr ""
5631
5632 #. type: =head1
5633 #: ../examples/guestfs-recipes.pod:345
5634 msgid "Remove root password (Linux)"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../examples/guestfs-recipes.pod:347
5639 msgid ""
5640 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5641 "files.  One use is to remove the root password from a Linux guest:"
5642 msgstr ""
5643
5644 #. type: verbatim
5645 #: ../examples/guestfs-recipes.pod:350
5646 #, no-wrap
5647 msgid ""
5648 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5649 "\n"
5650 msgstr ""
5651
5652 #. type: =head1
5653 #: ../examples/guestfs-recipes.pod:352
5654 msgid "Remove Administrator password (Windows)"
5655 msgstr ""
5656
5657 #. type: textblock
5658 #: ../examples/guestfs-recipes.pod:354
5659 msgid ""
5660 "The link below contains one technique for removing the Administrator "
5661 "password from a Windows VM, or to be more precise, it gives you a command "
5662 "prompt the next time you log in which you can use to bypass any security:"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../examples/guestfs-recipes.pod:359
5667 msgid ""
5668 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5669 "administrator-password-with-guestfish/"
5670 msgstr ""
5671
5672 #. type: =head1
5673 #: ../examples/guestfs-recipes.pod:361
5674 msgid "Unpack a live CD"
5675 msgstr ""
5676
5677 #. type: textblock
5678 #: ../examples/guestfs-recipes.pod:363
5679 msgid ""
5680 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5681 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5682 "layers, as outlined in the guide below."
5683 msgstr ""
5684
5685 #. type: textblock
5686 #: ../examples/guestfs-recipes.pod:367
5687 msgid ""
5688 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5689 "cd/#content"
5690 msgstr ""
5691
5692 #. type: =head1
5693 #: ../examples/guestfs-recipes.pod:369
5694 msgid "Uploading and downloading files"
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../examples/guestfs-recipes.pod:371
5699 msgid ""
5700 "The link below contains general tips on uploading (copying in)  and "
5701 "downloading (copying out) files from VMs."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../examples/guestfs-recipes.pod:374
5706 msgid ""
5707 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5708 msgstr ""
5709
5710 #. type: =head1
5711 #: ../examples/guestfs-recipes.pod:376
5712 msgid "Use libguestfs tools on VMware ESX guests"
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../examples/guestfs-recipes.pod:378
5717 msgid ""
5718 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5719 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-recipes.pod:382
5724 msgid ""
5725 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5726 "guests/#content"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../examples/guestfs-recipes.pod:386
5731 msgid ""
5732 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5733 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5734 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../examples/guestfs-recipes.pod:403
5739 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5740 msgstr ""
5741
5742 #. type: =head2
5743 #: ../fish/guestfish-actions.pod:1
5744 msgid "add-cdrom"
5745 msgstr ""
5746
5747 #. type: verbatim
5748 #: ../fish/guestfish-actions.pod:3
5749 #, no-wrap
5750 msgid ""
5751 " add-cdrom filename\n"
5752 "\n"
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5757 msgid "This function adds a virtual CD-ROM disk image to the guest."
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5762 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../fish/guestfish-actions.pod:15
5767 msgid ""
5768 "This call checks for the existence of C<filename>.  This stops you from "
5769 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5770 "and C<http:> URLs.  To specify those, use the general L</config> call "
5771 "instead."
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../fish/guestfish-actions.pod:22
5776 msgid ""
5777 "If you just want to add an ISO file (often you use this as an efficient way "
5778 "to transfer large files into the guest), then you should probably use L</add-"
5779 "drive-ro> instead."
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5784 #: ../fish/guestfish-actions.pod:228
5785 msgid ""
5786 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5787 "instead."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5792 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5793 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5794 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5795 #: ../fish/guestfish-actions.pod:3293 ../fish/guestfish-actions.pod:3604
5796 #: ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:4579
5797 #: ../fish/guestfish-actions.pod:4602 ../fish/guestfish-actions.pod:4624
5798 #: ../fish/guestfish-actions.pod:4662 ../fish/guestfish-actions.pod:5311
5799 #: ../fish/guestfish-actions.pod:5417 ../src/guestfs-actions.pod:10
5800 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5801 #: ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629
5802 #: ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:2411
5803 #: ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:5077
5804 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5699
5805 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7043
5806 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7140
5807 #: ../src/guestfs-actions.pod:8072 ../src/guestfs-actions.pod:8181
5808 #: ../src/guestfs-actions.pod:8364
5809 msgid ""
5810 "Deprecated functions will not be removed from the API, but the fact that "
5811 "they are deprecated indicates that there are problems with correct use of "
5812 "these functions."
5813 msgstr ""
5814
5815 #. type: =head2
5816 #: ../fish/guestfish-actions.pod:35
5817 msgid "add-domain"
5818 msgstr ""
5819
5820 #. type: =head2
5821 #: ../fish/guestfish-actions.pod:37
5822 msgid "domain"
5823 msgstr ""
5824
5825 #. type: verbatim
5826 #: ../fish/guestfish-actions.pod:39
5827 #, no-wrap
5828 msgid ""
5829 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..] [readonlydisk:..]\n"
5830 "\n"
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../fish/guestfish-actions.pod:41
5835 msgid ""
5836 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5837 "It works by connecting to libvirt, requesting the domain and domain XML from "
5838 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5843 msgid ""
5844 "The number of disks added is returned.  This operation is atomic: if an "
5845 "error is returned, then no disks are added."
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5850 msgid ""
5851 "This function does some minimal checks to make sure the libvirt domain is "
5852 "not running (unless C<readonly> is true).  In a future version we will try "
5853 "to acquire the libvirt lock on each disk."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5858 msgid ""
5859 "Disks must be accessible locally.  This often means that adding disks from a "
5860 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5861 "unless those disks are accessible via the same device path locally too."
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5866 msgid ""
5867 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5868 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5869 "libvirt URI (or one set through an environment variable, see the libvirt "
5870 "documentation for full details)."
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5875 msgid ""
5876 "The optional C<live> flag controls whether this call will try to connect to "
5877 "a running virtual machine C<guestfsd> process if it sees a suitable "
5878 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5879 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5880 "DAEMONS> for more information."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5885 msgid ""
5886 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5887 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5888 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5889 "as usual."
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5894 msgid ""
5895 "The optional C<readonlydisk> parameter controls what we do for disks which "
5896 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5897 msgstr ""
5898
5899 #. type: =item
5900 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5901 msgid "readonlydisk = \"error\""
5902 msgstr ""
5903
5904 #. type: textblock
5905 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
5906 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
5907 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
5908 msgid "If C<readonly> is false:"
5909 msgstr ""
5910
5911 #. type: textblock
5912 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5913 msgid ""
5914 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
5915 "E<gt> flag is found."
5916 msgstr ""
5917
5918 #. type: textblock
5919 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
5920 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
5921 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
5922 msgid "If C<readonly> is true:"
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
5927 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
5928 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
5929 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5930 msgstr ""
5931
5932 #. type: =item
5933 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5934 msgid "readonlydisk = \"read\""
5935 msgstr ""
5936
5937 #. type: textblock
5938 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5939 msgid ""
5940 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5941 "are added read/write."
5942 msgstr ""
5943
5944 #. type: =item
5945 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5946 msgid "readonlydisk = \"write\" (default)"
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5951 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5952 msgstr ""
5953
5954 #. type: =item
5955 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5956 msgid "readonlydisk = \"ignore\""
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5961 msgid "If C<readonly> is true or false:"
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5966 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5967 msgstr ""
5968
5969 #. type: textblock
5970 #: ../fish/guestfish-actions.pod:122
5971 msgid ""
5972 "The other optional parameters are passed directly through to L</add-drive-"
5973 "opts>."
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
5978 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
5979 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
5980 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
5981 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
5982 #: ../fish/guestfish-actions.pod:3342 ../fish/guestfish-actions.pod:3505
5983 #: ../fish/guestfish-actions.pod:3640
5984 msgid ""
5985 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5986 msgstr ""
5987
5988 #. type: =head2
5989 #: ../fish/guestfish-actions.pod:127
5990 msgid "add-drive"
5991 msgstr ""
5992
5993 #. type: verbatim
5994 #: ../fish/guestfish-actions.pod:129
5995 #, no-wrap
5996 msgid ""
5997 " add-drive filename\n"
5998 "\n"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../fish/guestfish-actions.pod:131
6003 msgid ""
6004 "This function is the equivalent of calling L</add-drive-opts> with no "
6005 "optional parameters, so the disk is added writable, with the format being "
6006 "detected automatically."
6007 msgstr ""
6008
6009 #. type: textblock
6010 #: ../fish/guestfish-actions.pod:135
6011 msgid ""
6012 "Automatic detection of the format opens you up to a potential security hole "
6013 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6014 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6015 "you should think about replacing calls to this function with calls to L</add-"
6016 "drive-opts>, and specifying the format."
6017 msgstr ""
6018
6019 #. type: =head2
6020 #: ../fish/guestfish-actions.pod:142
6021 msgid "add-drive-opts"
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../fish/guestfish-actions.pod:144
6026 msgid "add"
6027 msgstr ""
6028
6029 #. type: verbatim
6030 #: ../fish/guestfish-actions.pod:146
6031 #, no-wrap
6032 msgid ""
6033 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6034 "\n"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6039 msgid ""
6040 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6041 "The first time you call this function, the disk appears as C</dev/sda>, the "
6042 "second time as C</dev/sdb>, and so on."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6047 msgid ""
6048 "You don't necessarily need to be root when using libguestfs.  However you "
6049 "obviously do need sufficient permissions to access the filename for whatever "
6050 "operations you want to perform (ie. read access if you just want to read the "
6051 "image or write access if you want to modify the image)."
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6056 msgid "This call checks that C<filename> exists."
6057 msgstr ""
6058
6059 #. type: textblock
6060 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3304
6061 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5114
6062 msgid "The optional arguments are:"
6063 msgstr ""
6064
6065 #. type: =item
6066 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6067 msgid "C<readonly>"
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6072 msgid ""
6073 "If true then the image is treated as read-only.  Writes are still allowed, "
6074 "but they are stored in a temporary snapshot overlay which is discarded at "
6075 "the end.  The disk that you add is not modified."
6076 msgstr ""
6077
6078 #. type: =item
6079 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6080 msgid "C<format>"
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../fish/guestfish-actions.pod:173
6085 msgid ""
6086 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6087 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6088 "include C<raw> and C<qcow2>."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6093 msgid ""
6094 "Automatic detection of the format opens you up to a potential security hole "
6095 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6096 "RHBZ#642934.  Specifying the format closes this security hole."
6097 msgstr ""
6098
6099 #. type: =item
6100 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6101 msgid "C<iface>"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:184
6106 msgid ""
6107 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6108 "add-drive-with-if> call (q.v.)"
6109 msgstr ""
6110
6111 #. type: =item
6112 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6113 msgid "C<name>"
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6118 msgid ""
6119 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6120 "a hint to the guest inspection process if it is available."
6121 msgstr ""
6122
6123 #. type: =head2
6124 #: ../fish/guestfish-actions.pod:196
6125 msgid "add-drive-ro"
6126 msgstr ""
6127
6128 #. type: =head2
6129 #: ../fish/guestfish-actions.pod:198
6130 msgid "add-ro"
6131 msgstr ""
6132
6133 #. type: verbatim
6134 #: ../fish/guestfish-actions.pod:200
6135 #, no-wrap
6136 msgid ""
6137 " add-drive-ro filename\n"
6138 "\n"
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:202
6143 msgid ""
6144 "This function is the equivalent of calling L</add-drive-opts> with the "
6145 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6146 "is added read-only, with the format being detected automatically."
6147 msgstr ""
6148
6149 #. type: =head2
6150 #: ../fish/guestfish-actions.pod:207
6151 msgid "add-drive-ro-with-if"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../fish/guestfish-actions.pod:209
6156 #, no-wrap
6157 msgid ""
6158 " add-drive-ro-with-if filename iface\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../fish/guestfish-actions.pod:211
6164 msgid ""
6165 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6166 "interface emulation to use at run time."
6167 msgstr ""
6168
6169 #. type: =head2
6170 #: ../fish/guestfish-actions.pod:221
6171 msgid "add-drive-with-if"
6172 msgstr ""
6173
6174 #. type: verbatim
6175 #: ../fish/guestfish-actions.pod:223
6176 #, no-wrap
6177 msgid ""
6178 " add-drive-with-if filename iface\n"
6179 "\n"
6180 msgstr ""
6181
6182 #. type: textblock
6183 #: ../fish/guestfish-actions.pod:225
6184 msgid ""
6185 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6186 "interface emulation to use at run time."
6187 msgstr ""
6188
6189 #. type: =head2
6190 #: ../fish/guestfish-actions.pod:235
6191 msgid "aug-clear"
6192 msgstr ""
6193
6194 #. type: verbatim
6195 #: ../fish/guestfish-actions.pod:237
6196 #, no-wrap
6197 msgid ""
6198 " aug-clear augpath\n"
6199 "\n"
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6204 msgid ""
6205 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6206 "L<augtool(1)> C<clear> command."
6207 msgstr ""
6208
6209 #. type: =head2
6210 #: ../fish/guestfish-actions.pod:242
6211 msgid "aug-close"
6212 msgstr ""
6213
6214 #. type: verbatim
6215 #: ../fish/guestfish-actions.pod:244
6216 #, no-wrap
6217 msgid ""
6218 " aug-close\n"
6219 "\n"
6220 msgstr ""
6221
6222 #. type: textblock
6223 #: ../fish/guestfish-actions.pod:246
6224 msgid ""
6225 "Close the current Augeas handle and free up any resources used by it.  After "
6226 "calling this, you have to call L</aug-init> again before you can use any "
6227 "other Augeas functions."
6228 msgstr ""
6229
6230 #. type: =head2
6231 #: ../fish/guestfish-actions.pod:251
6232 msgid "aug-defnode"
6233 msgstr ""
6234
6235 #. type: verbatim
6236 #: ../fish/guestfish-actions.pod:253
6237 #, no-wrap
6238 msgid ""
6239 " aug-defnode name expr val\n"
6240 "\n"
6241 msgstr ""
6242
6243 #. type: textblock
6244 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6245 msgid ""
6246 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:258
6251 msgid ""
6252 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6253 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6254 "containing that single node."
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6259 msgid ""
6260 "On success this returns a pair containing the number of nodes in the "
6261 "nodeset, and a boolean flag if a node was created."
6262 msgstr ""
6263
6264 #. type: =head2
6265 #: ../fish/guestfish-actions.pod:266
6266 msgid "aug-defvar"
6267 msgstr ""
6268
6269 #. type: verbatim
6270 #: ../fish/guestfish-actions.pod:268
6271 #, no-wrap
6272 msgid ""
6273 " aug-defvar name expr\n"
6274 "\n"
6275 msgstr ""
6276
6277 #. type: textblock
6278 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6279 msgid ""
6280 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6281 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6286 msgid ""
6287 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6288 "evaluates to something which is not a nodeset."
6289 msgstr ""
6290
6291 #. type: =head2
6292 #: ../fish/guestfish-actions.pod:277
6293 msgid "aug-get"
6294 msgstr ""
6295
6296 #. type: verbatim
6297 #: ../fish/guestfish-actions.pod:279
6298 #, no-wrap
6299 msgid ""
6300 " aug-get augpath\n"
6301 "\n"
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6306 msgid ""
6307 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6308 "node, the C<value> is returned."
6309 msgstr ""
6310
6311 #. type: =head2
6312 #: ../fish/guestfish-actions.pod:284
6313 msgid "aug-init"
6314 msgstr ""
6315
6316 #. type: verbatim
6317 #: ../fish/guestfish-actions.pod:286
6318 #, no-wrap
6319 msgid ""
6320 " aug-init root flags\n"
6321 "\n"
6322 msgstr ""
6323
6324 #. type: textblock
6325 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6326 msgid ""
6327 "Create a new Augeas handle for editing configuration files.  If there was "
6328 "any previous Augeas handle associated with this guestfs session, then it is "
6329 "closed."
6330 msgstr ""
6331
6332 #. type: textblock
6333 #: ../fish/guestfish-actions.pod:292
6334 msgid "You must call this before using any other L</aug-*> commands."
6335 msgstr ""
6336
6337 #. type: textblock
6338 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6339 msgid ""
6340 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6345 msgid ""
6346 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6347 "logical I<or> of the following integers:"
6348 msgstr ""
6349
6350 #. type: =item
6351 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6352 msgid "C<AUG_SAVE_BACKUP> = 1"
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6357 msgid "Keep the original file with a C<.augsave> extension."
6358 msgstr ""
6359
6360 #. type: =item
6361 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6362 msgid "C<AUG_SAVE_NEWFILE> = 2"
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6367 msgid ""
6368 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6369 "original.  Overrides C<AUG_SAVE_BACKUP>."
6370 msgstr ""
6371
6372 #. type: =item
6373 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6374 msgid "C<AUG_TYPE_CHECK> = 4"
6375 msgstr ""
6376
6377 #. type: textblock
6378 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6379 msgid "Typecheck lenses."
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../fish/guestfish-actions.pod:317
6384 msgid ""
6385 "This option is only useful when debugging Augeas lenses.  Use of this option "
6386 "may require additional memory for the libguestfs appliance.  You may need to "
6387 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6388 msgstr ""
6389
6390 #. type: =item
6391 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6392 msgid "C<AUG_NO_STDINC> = 8"
6393 msgstr ""
6394
6395 #. type: textblock
6396 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6397 msgid "Do not use standard load path for modules."
6398 msgstr ""
6399
6400 #. type: =item
6401 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6402 msgid "C<AUG_SAVE_NOOP> = 16"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6407 msgid "Make save a no-op, just record what would have been changed."
6408 msgstr ""
6409
6410 #. type: =item
6411 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6412 msgid "C<AUG_NO_LOAD> = 32"
6413 msgstr ""
6414
6415 #. type: textblock
6416 #: ../fish/guestfish-actions.pod:332
6417 msgid "Do not load the tree in L</aug-init>."
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:336
6422 msgid "To close the handle, you can call L</aug-close>."
6423 msgstr ""
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6427 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6428 msgstr ""
6429
6430 #. type: =head2
6431 #: ../fish/guestfish-actions.pod:340
6432 msgid "aug-insert"
6433 msgstr ""
6434
6435 #. type: verbatim
6436 #: ../fish/guestfish-actions.pod:342
6437 #, no-wrap
6438 msgid ""
6439 " aug-insert augpath label true|false\n"
6440 "\n"
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6445 msgid ""
6446 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6447 "or after C<path> (depending on the boolean flag C<before>)."
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6452 msgid ""
6453 "C<path> must match exactly one existing node in the tree, and C<label> must "
6454 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6455 msgstr ""
6456
6457 #. type: =head2
6458 #: ../fish/guestfish-actions.pod:352
6459 msgid "aug-load"
6460 msgstr ""
6461
6462 #. type: verbatim
6463 #: ../fish/guestfish-actions.pod:354
6464 #, no-wrap
6465 msgid ""
6466 " aug-load\n"
6467 "\n"
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6472 msgid "Load files into the tree."
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6477 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6478 msgstr ""
6479
6480 #. type: =head2
6481 #: ../fish/guestfish-actions.pod:361
6482 msgid "aug-ls"
6483 msgstr ""
6484
6485 #. type: verbatim
6486 #: ../fish/guestfish-actions.pod:363
6487 #, no-wrap
6488 msgid ""
6489 " aug-ls augpath\n"
6490 "\n"
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:365
6495 msgid ""
6496 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6497 "resulting nodes into alphabetical order."
6498 msgstr ""
6499
6500 #. type: =head2
6501 #: ../fish/guestfish-actions.pod:368
6502 msgid "aug-match"
6503 msgstr ""
6504
6505 #. type: verbatim
6506 #: ../fish/guestfish-actions.pod:370
6507 #, no-wrap
6508 msgid ""
6509 " aug-match augpath\n"
6510 "\n"
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6515 msgid ""
6516 "Returns a list of paths which match the path expression C<path>.  The "
6517 "returned paths are sufficiently qualified so that they match exactly one "
6518 "node in the current tree."
6519 msgstr ""
6520
6521 #. type: =head2
6522 #: ../fish/guestfish-actions.pod:376
6523 msgid "aug-mv"
6524 msgstr ""
6525
6526 #. type: verbatim
6527 #: ../fish/guestfish-actions.pod:378
6528 #, no-wrap
6529 msgid ""
6530 " aug-mv src dest\n"
6531 "\n"
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6536 msgid ""
6537 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6538 "C<dest> is overwritten if it exists."
6539 msgstr ""
6540
6541 #. type: =head2
6542 #: ../fish/guestfish-actions.pod:383
6543 msgid "aug-rm"
6544 msgstr ""
6545
6546 #. type: verbatim
6547 #: ../fish/guestfish-actions.pod:385
6548 #, no-wrap
6549 msgid ""
6550 " aug-rm augpath\n"
6551 "\n"
6552 msgstr ""
6553
6554 #. type: textblock
6555 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6556 msgid "Remove C<path> and all of its children."
6557 msgstr ""
6558
6559 #. type: textblock
6560 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6561 msgid "On success this returns the number of entries which were removed."
6562 msgstr ""
6563
6564 #. type: =head2
6565 #: ../fish/guestfish-actions.pod:391
6566 msgid "aug-save"
6567 msgstr ""
6568
6569 #. type: verbatim
6570 #: ../fish/guestfish-actions.pod:393
6571 #, no-wrap
6572 msgid ""
6573 " aug-save\n"
6574 "\n"
6575 msgstr ""
6576
6577 #. type: textblock
6578 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6579 msgid "This writes all pending changes to disk."
6580 msgstr ""
6581
6582 #. type: textblock
6583 #: ../fish/guestfish-actions.pod:397
6584 msgid ""
6585 "The flags which were passed to L</aug-init> affect exactly how files are "
6586 "saved."
6587 msgstr ""
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:400
6591 msgid "aug-set"
6592 msgstr ""
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:402
6596 #, no-wrap
6597 msgid ""
6598 " aug-set augpath val\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6604 msgid "Set the value associated with C<path> to C<val>."
6605 msgstr ""
6606
6607 #. type: textblock
6608 #: ../fish/guestfish-actions.pod:406
6609 msgid ""
6610 "In the Augeas API, it is possible to clear a node by setting the value to "
6611 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6612 "this call.  Instead you must use the L</aug-clear> call."
6613 msgstr ""
6614
6615 #. type: =head2
6616 #: ../fish/guestfish-actions.pod:411
6617 msgid "available"
6618 msgstr ""
6619
6620 #. type: verbatim
6621 #: ../fish/guestfish-actions.pod:413
6622 #, no-wrap
6623 msgid ""
6624 " available 'groups ...'\n"
6625 "\n"
6626 msgstr ""
6627
6628 #. type: textblock
6629 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6630 msgid ""
6631 "This command is used to check the availability of some groups of "
6632 "functionality in the appliance, which not all builds of the libguestfs "
6633 "appliance will be able to provide."
6634 msgstr ""
6635
6636 #. type: textblock
6637 #: ../fish/guestfish-actions.pod:419
6638 msgid ""
6639 "The libguestfs groups, and the functions that those groups correspond to, "
6640 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6641 "runtime by calling L</available-all-groups>."
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6646 msgid ""
6647 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6648 "\"]> would check for the availability of the Linux inotify functions and "
6649 "Augeas (configuration file editing) functions."
6650 msgstr ""
6651
6652 #. type: textblock
6653 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6654 msgid "The command returns no error if I<all> requested groups are available."
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6659 msgid ""
6660 "It fails with an error if one or more of the requested groups is unavailable "
6661 "in the appliance."
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6666 msgid ""
6667 "If an unknown group name is included in the list of groups then an error is "
6668 "always returned."
6669 msgstr ""
6670
6671 #. type: textblock
6672 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6673 msgid "I<Notes:>"
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:443
6678 msgid "You must call L</launch> before calling this function."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6683 msgid ""
6684 "The reason is because we don't know what groups are supported by the "
6685 "appliance/daemon until it is running and can be queried."
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6690 msgid ""
6691 "If a group of functions is available, this does not necessarily mean that "
6692 "they will work.  You still have to check for errors when calling individual "
6693 "API functions even if they are available."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6698 msgid ""
6699 "It is usually the job of distro packagers to build complete functionality "
6700 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6701 "with all requirements satisfied, will support everything."
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:465
6706 msgid ""
6707 "This call was added in version C<1.0.80>.  In previous versions of "
6708 "libguestfs all you could do would be to speculatively execute a command to "
6709 "find out if the daemon implemented it.  See also L</version>."
6710 msgstr ""
6711
6712 #. type: =head2
6713 #: ../fish/guestfish-actions.pod:472
6714 msgid "available-all-groups"
6715 msgstr ""
6716
6717 #. type: verbatim
6718 #: ../fish/guestfish-actions.pod:474
6719 #, no-wrap
6720 msgid ""
6721 " available-all-groups\n"
6722 "\n"
6723 msgstr ""
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:476
6727 msgid ""
6728 "This command returns a list of all optional groups that this daemon knows "
6729 "about.  Note this returns both supported and unsupported groups.  To find "
6730 "out which ones the daemon can actually support you have to call L</"
6731 "available> on each member of the returned list."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:482
6736 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6737 msgstr ""
6738
6739 #. type: =head2
6740 #: ../fish/guestfish-actions.pod:484
6741 msgid "base64-in"
6742 msgstr ""
6743
6744 #. type: verbatim
6745 #: ../fish/guestfish-actions.pod:486
6746 #, no-wrap
6747 msgid ""
6748 " base64-in (base64file|-) filename\n"
6749 "\n"
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6754 msgid ""
6755 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6760 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6761 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6762 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6763 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4894
6764 #: ../fish/guestfish-actions.pod:4905 ../fish/guestfish-actions.pod:4916
6765 #: ../fish/guestfish-actions.pod:4968 ../fish/guestfish-actions.pod:4977
6766 #: ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5054
6767 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6768 msgstr ""
6769
6770 #. type: =head2
6771 #: ../fish/guestfish-actions.pod:493
6772 msgid "base64-out"
6773 msgstr ""
6774
6775 #. type: verbatim
6776 #: ../fish/guestfish-actions.pod:495
6777 #, no-wrap
6778 msgid ""
6779 " base64-out filename (base64file|-)\n"
6780 "\n"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6785 msgid ""
6786 "This command downloads the contents of C<filename>, writing it out to local "
6787 "file C<base64file> encoded as base64."
6788 msgstr ""
6789
6790 #. type: =head2
6791 #: ../fish/guestfish-actions.pod:502
6792 msgid "blockdev-flushbufs"
6793 msgstr ""
6794
6795 #. type: verbatim
6796 #: ../fish/guestfish-actions.pod:504
6797 #, no-wrap
6798 msgid ""
6799 " blockdev-flushbufs device\n"
6800 "\n"
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6805 msgid ""
6806 "This tells the kernel to flush internal buffers associated with C<device>."
6807 msgstr ""
6808
6809 #. type: textblock
6810 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6811 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6812 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6813 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6814 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6815 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6816 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6817 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6818 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6819 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6820 msgid "This uses the L<blockdev(8)> command."
6821 msgstr ""
6822
6823 #. type: =head2
6824 #: ../fish/guestfish-actions.pod:511
6825 msgid "blockdev-getbsz"
6826 msgstr ""
6827
6828 #. type: verbatim
6829 #: ../fish/guestfish-actions.pod:513
6830 #, no-wrap
6831 msgid ""
6832 " blockdev-getbsz device\n"
6833 "\n"
6834 msgstr ""
6835
6836 #. type: textblock
6837 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6838 msgid "This returns the block size of a device."
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6843 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6844 msgid ""
6845 "(Note this is different from both I<size in blocks> and I<filesystem block "
6846 "size>)."
6847 msgstr ""
6848
6849 #. type: =head2
6850 #: ../fish/guestfish-actions.pod:522
6851 msgid "blockdev-getro"
6852 msgstr ""
6853
6854 #. type: verbatim
6855 #: ../fish/guestfish-actions.pod:524
6856 #, no-wrap
6857 msgid ""
6858 " blockdev-getro device\n"
6859 "\n"
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6864 msgid ""
6865 "Returns a boolean indicating if the block device is read-only (true if read-"
6866 "only, false if not)."
6867 msgstr ""
6868
6869 #. type: =head2
6870 #: ../fish/guestfish-actions.pod:531
6871 msgid "blockdev-getsize64"
6872 msgstr ""
6873
6874 #. type: verbatim
6875 #: ../fish/guestfish-actions.pod:533
6876 #, no-wrap
6877 msgid ""
6878 " blockdev-getsize64 device\n"
6879 "\n"
6880 msgstr ""
6881
6882 #. type: textblock
6883 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6884 msgid "This returns the size of the device in bytes."
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:537
6889 msgid "See also L</blockdev-getsz>."
6890 msgstr ""
6891
6892 #. type: =head2
6893 #: ../fish/guestfish-actions.pod:541
6894 msgid "blockdev-getss"
6895 msgstr ""
6896
6897 #. type: verbatim
6898 #: ../fish/guestfish-actions.pod:543
6899 #, no-wrap
6900 msgid ""
6901 " blockdev-getss device\n"
6902 "\n"
6903 msgstr ""
6904
6905 #. type: textblock
6906 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6907 msgid ""
6908 "This returns the size of sectors on a block device.  Usually 512, but can be "
6909 "larger for modern devices."
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:548
6914 msgid ""
6915 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6916 msgstr ""
6917
6918 #. type: =head2
6919 #: ../fish/guestfish-actions.pod:553
6920 msgid "blockdev-getsz"
6921 msgstr ""
6922
6923 #. type: verbatim
6924 #: ../fish/guestfish-actions.pod:555
6925 #, no-wrap
6926 msgid ""
6927 " blockdev-getsz device\n"
6928 "\n"
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6933 msgid ""
6934 "This returns the size of the device in units of 512-byte sectors (even if "
6935 "the sectorsize isn't 512 bytes ... weird)."
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:560
6940 msgid ""
6941 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6942 "blockdev-getsize64> for the more useful I<size in bytes>."
6943 msgstr ""
6944
6945 #. type: =head2
6946 #: ../fish/guestfish-actions.pod:566
6947 msgid "blockdev-rereadpt"
6948 msgstr ""
6949
6950 #. type: verbatim
6951 #: ../fish/guestfish-actions.pod:568
6952 #, no-wrap
6953 msgid ""
6954 " blockdev-rereadpt device\n"
6955 "\n"
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6960 msgid "Reread the partition table on C<device>."
6961 msgstr ""
6962
6963 #. type: =head2
6964 #: ../fish/guestfish-actions.pod:574
6965 msgid "blockdev-setbsz"
6966 msgstr ""
6967
6968 #. type: verbatim
6969 #: ../fish/guestfish-actions.pod:576
6970 #, no-wrap
6971 msgid ""
6972 " blockdev-setbsz device blocksize\n"
6973 "\n"
6974 msgstr ""
6975
6976 #. type: textblock
6977 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
6978 msgid "This sets the block size of a device."
6979 msgstr ""
6980
6981 #. type: =head2
6982 #: ../fish/guestfish-actions.pod:585
6983 msgid "blockdev-setro"
6984 msgstr ""
6985
6986 #. type: verbatim
6987 #: ../fish/guestfish-actions.pod:587
6988 #, no-wrap
6989 msgid ""
6990 " blockdev-setro device\n"
6991 "\n"
6992 msgstr ""
6993
6994 #. type: textblock
6995 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
6996 msgid "Sets the block device named C<device> to read-only."
6997 msgstr ""
6998
6999 #. type: =head2
7000 #: ../fish/guestfish-actions.pod:593
7001 msgid "blockdev-setrw"
7002 msgstr ""
7003
7004 #. type: verbatim
7005 #: ../fish/guestfish-actions.pod:595
7006 #, no-wrap
7007 msgid ""
7008 " blockdev-setrw device\n"
7009 "\n"
7010 msgstr ""
7011
7012 #. type: textblock
7013 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7014 msgid "Sets the block device named C<device> to read-write."
7015 msgstr ""
7016
7017 #. type: =head2
7018 #: ../fish/guestfish-actions.pod:601
7019 msgid "btrfs-filesystem-resize"
7020 msgstr ""
7021
7022 #. type: verbatim
7023 #: ../fish/guestfish-actions.pod:603
7024 #, no-wrap
7025 msgid ""
7026 " btrfs-filesystem-resize mountpoint [size:..]\n"
7027 "\n"
7028 msgstr ""
7029
7030 #. type: textblock
7031 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7032 msgid "This command resizes a btrfs filesystem."
7033 msgstr ""
7034
7035 #. type: textblock
7036 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7037 msgid ""
7038 "Note that unlike other resize calls, the filesystem has to be mounted and "
7039 "the parameter is the mountpoint not the device (this is a requirement of "
7040 "btrfs itself)."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3615
7045 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5638
7046 msgid "The optional parameters are:"
7047 msgstr ""
7048
7049 #. type: =item
7050 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3619
7051 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5642
7052 msgid "C<size>"
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7057 msgid ""
7058 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7059 "resized to the maximum size."
7060 msgstr ""
7061
7062 #. type: textblock
7063 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7064 msgid "See also L<btrfs(8)>."
7065 msgstr ""
7066
7067 #. type: =head2
7068 #: ../fish/guestfish-actions.pod:626
7069 msgid "case-sensitive-path"
7070 msgstr ""
7071
7072 #. type: verbatim
7073 #: ../fish/guestfish-actions.pod:628
7074 #, no-wrap
7075 msgid ""
7076 " case-sensitive-path path\n"
7077 "\n"
7078 msgstr ""
7079
7080 #. type: textblock
7081 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7082 msgid ""
7083 "This can be used to resolve case insensitive paths on a filesystem which is "
7084 "case sensitive.  The use case is to resolve paths which you have read from "
7085 "Windows configuration files or the Windows Registry, to the true path."
7086 msgstr ""
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7090 msgid ""
7091 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7092 "(and probably others), which is that although the underlying filesystem is "
7093 "case-insensitive, the driver exports the filesystem to Linux as case-"
7094 "sensitive."
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7099 msgid ""
7100 "One consequence of this is that special directories such as C<c:\\windows> "
7101 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7102 "precise details of how they were created.  In Windows itself this would not "
7103 "be a problem."
7104 msgstr ""
7105
7106 #. type: textblock
7107 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7108 msgid ""
7109 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7110 "#posixfilenames1>"
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7115 msgid ""
7116 "This function resolves the true case of each element in the path and returns "
7117 "the case-sensitive path."
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:652
7122 msgid ""
7123 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7124 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7125 "the directories were originally created under Windows)."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7130 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:660
7135 msgid "See also L</realpath>."
7136 msgstr ""
7137
7138 #. type: =head2
7139 #: ../fish/guestfish-actions.pod:662
7140 msgid "cat"
7141 msgstr ""
7142
7143 #. type: verbatim
7144 #: ../fish/guestfish-actions.pod:664
7145 #, no-wrap
7146 msgid ""
7147 " cat path\n"
7148 "\n"
7149 msgstr ""
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4049
7153 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6299
7154 msgid "Return the contents of the file named C<path>."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:668
7159 msgid ""
7160 "Note that this function cannot correctly handle binary files (specifically, "
7161 "files containing C<\\0> character which is treated as end of string).  For "
7162 "those you need to use the L</read-file> or L</download> functions which have "
7163 "a more complex interface."
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7168 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7169 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7170 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7171 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7172 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7173 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7174 #: ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:3934
7175 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4027
7176 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4723
7177 #: ../fish/guestfish-actions.pod:4769 ../fish/guestfish-actions.pod:4854
7178 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:5275
7179 #: ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5305
7180 #: ../fish/guestfish-actions.pod:5322 ../fish/guestfish-actions.pod:5332
7181 #: ../fish/guestfish-actions.pod:5389 ../fish/guestfish-actions.pod:5399
7182 #: ../fish/guestfish-actions.pod:5428 ../fish/guestfish-actions.pod:5438
7183 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7184 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1847
7185 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1969
7186 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2234
7187 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2735
7188 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2824
7189 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2870
7190 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6107
7191 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6264
7192 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:7255
7193 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-actions.pod:7456
7194 #: ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:8145
7195 #: ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8198
7196 #: ../src/guestfs-actions.pod:8217 ../src/guestfs-actions.pod:8236
7197 #: ../src/guestfs-actions.pod:8330 ../src/guestfs-actions.pod:8349
7198 #: ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8414
7199 msgid ""
7200 "Because of the message protocol, there is a transfer limit of somewhere "
7201 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7202 msgstr ""
7203
7204 #. type: =head2
7205 #: ../fish/guestfish-actions.pod:676
7206 msgid "checksum"
7207 msgstr ""
7208
7209 #. type: verbatim
7210 #: ../fish/guestfish-actions.pod:678
7211 #, no-wrap
7212 msgid ""
7213 " checksum csumtype path\n"
7214 "\n"
7215 msgstr ""
7216
7217 #. type: textblock
7218 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7219 msgid ""
7220 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7221 msgstr ""
7222
7223 #. type: textblock
7224 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7225 msgid ""
7226 "The type of checksum to compute is given by the C<csumtype> parameter which "
7227 "must have one of the following values:"
7228 msgstr ""
7229
7230 #. type: =item
7231 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7232 msgid "C<crc>"
7233 msgstr ""
7234
7235 #. type: textblock
7236 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7237 msgid ""
7238 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7239 "C<cksum> command."
7240 msgstr ""
7241
7242 #. type: =item
7243 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7244 msgid "C<md5>"
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7249 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7250 msgstr ""
7251
7252 #. type: =item
7253 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7254 msgid "C<sha1>"
7255 msgstr ""
7256
7257 #. type: textblock
7258 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7259 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7260 msgstr ""
7261
7262 #. type: =item
7263 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7264 msgid "C<sha224>"
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7269 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7270 msgstr ""
7271
7272 #. type: =item
7273 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7274 msgid "C<sha256>"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7279 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7280 msgstr ""
7281
7282 #. type: =item
7283 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7284 msgid "C<sha384>"
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7289 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7290 msgstr ""
7291
7292 #. type: =item
7293 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7294 msgid "C<sha512>"
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7299 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7304 msgid "The checksum is returned as a printable string."
7305 msgstr ""
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:721
7309 msgid "To get the checksum for a device, use L</checksum-device>."
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:723
7314 msgid "To get the checksums for many files, use L</checksums-out>."
7315 msgstr ""
7316
7317 #. type: =head2
7318 #: ../fish/guestfish-actions.pod:725
7319 msgid "checksum-device"
7320 msgstr ""
7321
7322 #. type: verbatim
7323 #: ../fish/guestfish-actions.pod:727
7324 #, no-wrap
7325 msgid ""
7326 " checksum-device csumtype device\n"
7327 "\n"
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:729
7332 msgid ""
7333 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7334 "device named C<device>.  For the types of checksums supported see the L</"
7335 "checksum> command."
7336 msgstr ""
7337
7338 #. type: =head2
7339 #: ../fish/guestfish-actions.pod:733
7340 msgid "checksums-out"
7341 msgstr ""
7342
7343 #. type: verbatim
7344 #: ../fish/guestfish-actions.pod:735
7345 #, no-wrap
7346 msgid ""
7347 " checksums-out csumtype directory (sumsfile|-)\n"
7348 "\n"
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7353 msgid ""
7354 "This command computes the checksums of all regular files in C<directory> and "
7355 "then emits a list of those checksums to the local output file C<sumsfile>."
7356 msgstr ""
7357
7358 #. type: textblock
7359 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7360 msgid ""
7361 "This can be used for verifying the integrity of a virtual machine.  However "
7362 "to be properly secure you should pay attention to the output of the checksum "
7363 "command (it uses the ones from GNU coreutils).  In particular when the "
7364 "filename is not printable, coreutils uses a special backslash syntax.  For "
7365 "more information, see the GNU coreutils info file."
7366 msgstr ""
7367
7368 #. type: =head2
7369 #: ../fish/guestfish-actions.pod:751
7370 msgid "chmod"
7371 msgstr ""
7372
7373 #. type: verbatim
7374 #: ../fish/guestfish-actions.pod:753
7375 #, no-wrap
7376 msgid ""
7377 " chmod mode path\n"
7378 "\n"
7379 msgstr ""
7380
7381 #. type: textblock
7382 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7383 msgid ""
7384 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7385 "supported."
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7390 msgid ""
7391 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7392 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7393 "C<700>."
7394 msgstr ""
7395
7396 #. type: textblock
7397 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3268
7398 #: ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3417
7399 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:1117
7400 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5254
7401 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5292
7402 msgid "The mode actually set is affected by the umask."
7403 msgstr ""
7404
7405 #. type: =head2
7406 #: ../fish/guestfish-actions.pod:764
7407 msgid "chown"
7408 msgstr ""
7409
7410 #. type: verbatim
7411 #: ../fish/guestfish-actions.pod:766
7412 #, no-wrap
7413 msgid ""
7414 " chown owner group path\n"
7415 "\n"
7416 msgstr ""
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7420 msgid "Change the file owner to C<owner> and group to C<group>."
7421 msgstr ""
7422
7423 #. type: textblock
7424 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7425 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4116
7426 msgid ""
7427 "Only numeric uid and gid are supported.  If you want to use names, you will "
7428 "need to locate and parse the password file yourself (Augeas support makes "
7429 "this relatively easy)."
7430 msgstr ""
7431
7432 #. type: =head2
7433 #: ../fish/guestfish-actions.pod:774
7434 msgid "command"
7435 msgstr ""
7436
7437 #. type: verbatim
7438 #: ../fish/guestfish-actions.pod:776
7439 #, no-wrap
7440 msgid ""
7441 " command 'arguments ...'\n"
7442 "\n"
7443 msgstr ""
7444
7445 #. type: textblock
7446 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7447 msgid ""
7448 "This call runs a command from the guest filesystem.  The filesystem must be "
7449 "mounted, and must contain a compatible operating system (ie. something "
7450 "Linux, with the same or compatible processor architecture)."
7451 msgstr ""
7452
7453 #. type: textblock
7454 #: ../fish/guestfish-actions.pod:783
7455 msgid ""
7456 "The single parameter is an argv-style list of arguments.  The first element "
7457 "is the name of the program to run.  Subsequent elements are parameters.  The "
7458 "list must be non-empty (ie. must contain a program name).  Note that the "
7459 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7464 msgid "The return value is anything printed to I<stdout> by the command."
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7469 msgid ""
7470 "If the command returns a non-zero exit status, then this function returns an "
7471 "error message.  The error message string is the content of I<stderr> from "
7472 "the command."
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7477 msgid ""
7478 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7479 "bin>.  If you require a program from another location, you should provide "
7480 "the full path in the first parameter."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7485 msgid ""
7486 "Shared libraries and data files required by the program must be available on "
7487 "filesystems which are mounted in the correct places.  It is the caller's "
7488 "responsibility to ensure all filesystems that are needed are mounted at the "
7489 "right locations."
7490 msgstr ""
7491
7492 #. type: =head2
7493 #: ../fish/guestfish-actions.pod:811
7494 msgid "command-lines"
7495 msgstr ""
7496
7497 #. type: verbatim
7498 #: ../fish/guestfish-actions.pod:813
7499 #, no-wrap
7500 msgid ""
7501 " command-lines 'arguments ...'\n"
7502 "\n"
7503 msgstr ""
7504
7505 #. type: textblock
7506 #: ../fish/guestfish-actions.pod:815
7507 msgid ""
7508 "This is the same as L</command>, but splits the result into a list of lines."
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:818
7513 msgid "See also: L</sh-lines>"
7514 msgstr ""
7515
7516 #. type: =head2
7517 #: ../fish/guestfish-actions.pod:823
7518 msgid "compress-device-out"
7519 msgstr ""
7520
7521 #. type: verbatim
7522 #: ../fish/guestfish-actions.pod:825
7523 #, no-wrap
7524 msgid ""
7525 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7526 "\n"
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7531 msgid ""
7532 "This command compresses C<device> and writes it out to the local file "
7533 "C<zdevice>."
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../fish/guestfish-actions.pod:830
7538 msgid ""
7539 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7540 "compress-out>."
7541 msgstr ""
7542
7543 #. type: =head2
7544 #: ../fish/guestfish-actions.pod:837
7545 msgid "compress-out"
7546 msgstr ""
7547
7548 #. type: verbatim
7549 #: ../fish/guestfish-actions.pod:839
7550 #, no-wrap
7551 msgid ""
7552 " compress-out ctype file (zfile|-) [level:..]\n"
7553 "\n"
7554 msgstr ""
7555
7556 #. type: textblock
7557 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7558 msgid ""
7559 "This command compresses C<file> and writes it out to the local file C<zfile>."
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7564 msgid ""
7565 "The compression program used is controlled by the C<ctype> parameter.  "
7566 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7567 "Some compression types may not be supported by particular builds of "
7568 "libguestfs, in which case you will get an error containing the substring "
7569 "\"not supported\"."
7570 msgstr ""
7571
7572 #. type: textblock
7573 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7574 msgid ""
7575 "The optional C<level> parameter controls compression level.  The meaning and "
7576 "default for this parameter depends on the compression program being used."
7577 msgstr ""
7578
7579 #. type: =head2
7580 #: ../fish/guestfish-actions.pod:858
7581 msgid "config"
7582 msgstr ""
7583
7584 #. type: verbatim
7585 #: ../fish/guestfish-actions.pod:860
7586 #, no-wrap
7587 msgid ""
7588 " config qemuparam qemuvalue\n"
7589 "\n"
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7594 msgid ""
7595 "This can be used to add arbitrary qemu command line parameters of the form "
7596 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7597 "setting some parameters which would interfere with parameters that we use."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7602 msgid "The first character of C<param> string must be a C<-> (dash)."
7603 msgstr ""
7604
7605 #. type: textblock
7606 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7607 msgid "C<value> can be NULL."
7608 msgstr ""
7609
7610 #. type: =head2
7611 #: ../fish/guestfish-actions.pod:871
7612 msgid "copy-device-to-device"
7613 msgstr ""
7614
7615 #. type: verbatim
7616 #: ../fish/guestfish-actions.pod:873
7617 #, no-wrap
7618 msgid ""
7619 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7620 "\n"
7621 msgstr ""
7622
7623 #. type: textblock
7624 #: ../fish/guestfish-actions.pod:875
7625 msgid ""
7626 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7627 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7628 "(device|file) to a destination (device|file)."
7629 msgstr ""
7630
7631 #. type: textblock
7632 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7633 msgid ""
7634 "Partial copies can be made since you can specify optionally the source "
7635 "offset, destination offset and size to copy.  These values are all specified "
7636 "in bytes.  If not given, the offsets both default to zero, and the size "
7637 "defaults to copying as much as possible until we hit the end of the source."
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7642 msgid ""
7643 "The source and destination may be the same object.  However overlapping "
7644 "regions may not be copied correctly."
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7649 msgid ""
7650 "If the destination is a file, it is created if required.  If the destination "
7651 "file is not large enough, it is extended."
7652 msgstr ""
7653
7654 #. type: =head2
7655 #: ../fish/guestfish-actions.pod:896
7656 msgid "copy-device-to-file"
7657 msgstr ""
7658
7659 #. type: verbatim
7660 #: ../fish/guestfish-actions.pod:898
7661 #, no-wrap
7662 msgid ""
7663 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7664 "\n"
7665 msgstr ""
7666
7667 #. type: textblock
7668 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7669 #: ../fish/guestfish-actions.pod:918
7670 msgid "See L</copy-device-to-device> for a general overview of this call."
7671 msgstr ""
7672
7673 #. type: =head2
7674 #: ../fish/guestfish-actions.pod:905
7675 msgid "copy-file-to-device"
7676 msgstr ""
7677
7678 #. type: verbatim
7679 #: ../fish/guestfish-actions.pod:907
7680 #, no-wrap
7681 msgid ""
7682 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7683 "\n"
7684 msgstr ""
7685
7686 #. type: =head2
7687 #: ../fish/guestfish-actions.pod:914
7688 msgid "copy-file-to-file"
7689 msgstr ""
7690
7691 #. type: verbatim
7692 #: ../fish/guestfish-actions.pod:916
7693 #, no-wrap
7694 msgid ""
7695 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7696 "\n"
7697 msgstr ""
7698
7699 #. type: textblock
7700 #: ../fish/guestfish-actions.pod:921
7701 msgid ""
7702 "This is B<not> the function you want for copying files.  This is for copying "
7703 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7704 "file copying and moving functions."
7705 msgstr ""
7706
7707 #. type: =head2
7708 #: ../fish/guestfish-actions.pod:928
7709 msgid "copy-size"
7710 msgstr ""
7711
7712 #. type: verbatim
7713 #: ../fish/guestfish-actions.pod:930
7714 #, no-wrap
7715 msgid ""
7716 " copy-size src dest size\n"
7717 "\n"
7718 msgstr ""
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1576
7722 msgid ""
7723 "This command copies exactly C<size> bytes from one source device or file "
7724 "C<src> to another destination device or file C<dest>."
7725 msgstr ""
7726
7727 #. type: textblock
7728 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1579
7729 msgid ""
7730 "Note this will fail if the source is too short or if the destination is not "
7731 "large enough."
7732 msgstr ""
7733
7734 #. type: textblock
7735 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7736 msgid ""
7737 "I<This function is deprecated.> In new code, use the L</"
7738 "copy_device_to_device> call instead."
7739 msgstr ""
7740
7741 #. type: =head2
7742 #: ../fish/guestfish-actions.pod:945
7743 msgid "cp"
7744 msgstr ""
7745
7746 #. type: verbatim
7747 #: ../fish/guestfish-actions.pod:947
7748 #, no-wrap
7749 msgid ""
7750 " cp src dest\n"
7751 "\n"
7752 msgstr ""
7753
7754 #. type: textblock
7755 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1598
7756 msgid ""
7757 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7758 "destination filename or destination directory."
7759 msgstr ""
7760
7761 #. type: =head2
7762 #: ../fish/guestfish-actions.pod:952
7763 msgid "cp-a"
7764 msgstr ""
7765
7766 #. type: verbatim
7767 #: ../fish/guestfish-actions.pod:954
7768 #, no-wrap
7769 msgid ""
7770 " cp-a src dest\n"
7771 "\n"
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1612
7776 msgid ""
7777 "This copies a file or directory from C<src> to C<dest> recursively using the "
7778 "C<cp -a> command."
7779 msgstr ""
7780
7781 #. type: =head2
7782 #: ../fish/guestfish-actions.pod:959
7783 msgid "dd"
7784 msgstr ""
7785
7786 #. type: verbatim
7787 #: ../fish/guestfish-actions.pod:961
7788 #, no-wrap
7789 msgid ""
7790 " dd src dest\n"
7791 "\n"
7792 msgstr ""
7793
7794 #. type: textblock
7795 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1633
7796 msgid ""
7797 "This command copies from one source device or file C<src> to another "
7798 "destination device or file C<dest>.  Normally you would use this to copy to "
7799 "or from a device or partition, for example to duplicate a filesystem."
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:968
7804 msgid ""
7805 "If the destination is a device, it must be as large or larger than the "
7806 "source file or device, otherwise the copy will fail.  This command cannot do "
7807 "partial copies (see L</copy-device-to-device>)."
7808 msgstr ""
7809
7810 #. type: =head2
7811 #: ../fish/guestfish-actions.pod:980
7812 msgid "df"
7813 msgstr ""
7814
7815 #. type: verbatim
7816 #: ../fish/guestfish-actions.pod:982
7817 #, no-wrap
7818 msgid ""
7819 " df\n"
7820 "\n"
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1652
7825 msgid "This command runs the C<df> command to report disk space used."
7826 msgstr ""
7827
7828 #. type: textblock
7829 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7830 msgid ""
7831 "This command is mostly useful for interactive sessions.  It is I<not> "
7832 "intended that you try to parse the output string.  Use L</statvfs> from "
7833 "programs."
7834 msgstr ""
7835
7836 #. type: =head2
7837 #: ../fish/guestfish-actions.pod:990
7838 msgid "df-h"
7839 msgstr ""
7840
7841 #. type: verbatim
7842 #: ../fish/guestfish-actions.pod:992
7843 #, no-wrap
7844 msgid ""
7845 " df-h\n"
7846 "\n"
7847 msgstr ""
7848
7849 #. type: textblock
7850 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1668
7851 msgid ""
7852 "This command runs the C<df -h> command to report disk space used in human-"
7853 "readable format."
7854 msgstr ""
7855
7856 #. type: =head2
7857 #: ../fish/guestfish-actions.pod:1001
7858 msgid "dmesg"
7859 msgstr ""
7860
7861 #. type: verbatim
7862 #: ../fish/guestfish-actions.pod:1003
7863 #, no-wrap
7864 msgid ""
7865 " dmesg\n"
7866 "\n"
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1685
7871 msgid ""
7872 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7873 "This is sometimes useful for extended debugging of problems."
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../fish/guestfish-actions.pod:1009
7878 msgid ""
7879 "Another way to get the same information is to enable verbose messages with "
7880 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7881 "before running the program."
7882 msgstr ""
7883
7884 #. type: =head2
7885 #: ../fish/guestfish-actions.pod:1014
7886 msgid "download"
7887 msgstr ""
7888
7889 #. type: verbatim
7890 #: ../fish/guestfish-actions.pod:1016
7891 #, no-wrap
7892 msgid ""
7893 " download remotefilename (filename|-)\n"
7894 "\n"
7895 msgstr ""
7896
7897 #. type: textblock
7898 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
7899 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1731
7900 msgid ""
7901 "Download file C<remotefilename> and save it as C<filename> on the local "
7902 "machine."
7903 msgstr ""
7904
7905 #. type: textblock
7906 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5027
7907 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:7715
7908 msgid "C<filename> can also be a named pipe."
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:1023
7913 msgid "See also L</upload>, L</cat>."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:1027
7918 msgid "download-offset"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:1029
7923 #, no-wrap
7924 msgid ""
7925 " download-offset remotefilename (filename|-) offset size\n"
7926 "\n"
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1734
7931 msgid ""
7932 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7933 "region must be within the file or device)."
7934 msgstr ""
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1037
7938 msgid ""
7939 "Note that there is no limit on the amount of data that can be downloaded "
7940 "with this call, unlike with L</pread>, and this call always reads the full "
7941 "amount unless an error occurs."
7942 msgstr ""
7943
7944 #. type: textblock
7945 #: ../fish/guestfish-actions.pod:1042
7946 msgid "See also L</download>, L</pread>."
7947 msgstr ""
7948
7949 #. type: =head2
7950 #: ../fish/guestfish-actions.pod:1046
7951 msgid "drop-caches"
7952 msgstr ""
7953
7954 #. type: verbatim
7955 #: ../fish/guestfish-actions.pod:1048
7956 #, no-wrap
7957 msgid ""
7958 " drop-caches whattodrop\n"
7959 "\n"
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1759
7964 msgid ""
7965 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7966 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7967 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7968 msgstr ""
7969
7970 #. type: textblock
7971 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1764
7972 msgid "Setting C<whattodrop> to 3 should drop everything."
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1766
7977 msgid ""
7978 "This automatically calls L<sync(2)> before the operation, so that the "
7979 "maximum guest memory is freed."
7980 msgstr ""
7981
7982 #. type: =head2
7983 #: ../fish/guestfish-actions.pod:1060
7984 msgid "du"
7985 msgstr ""
7986
7987 #. type: verbatim
7988 #: ../fish/guestfish-actions.pod:1062
7989 #, no-wrap
7990 msgid ""
7991 " du path\n"
7992 "\n"
7993 msgstr ""
7994
7995 #. type: textblock
7996 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1779
7997 msgid ""
7998 "This command runs the C<du -s> command to estimate file space usage for "
7999 "C<path>."
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1782
8004 msgid ""
8005 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8006 "estimate includes the contents of the directory and all subdirectories "
8007 "(recursively)."
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1786
8012 msgid ""
8013 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8014 msgstr ""
8015
8016 #. type: =head2
8017 #: ../fish/guestfish-actions.pod:1074
8018 msgid "e2fsck-f"
8019 msgstr ""
8020
8021 #. type: verbatim
8022 #: ../fish/guestfish-actions.pod:1076
8023 #, no-wrap
8024 msgid ""
8025 " e2fsck-f device\n"
8026 "\n"
8027 msgstr ""
8028
8029 #. type: textblock
8030 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1804
8031 msgid ""
8032 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8033 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8034 "clean (I<-f>)."
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../fish/guestfish-actions.pod:1082
8039 msgid ""
8040 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8041 "should use L</fsck>."
8042 msgstr ""
8043
8044 #. type: =head2
8045 #: ../fish/guestfish-actions.pod:1085
8046 msgid "echo-daemon"
8047 msgstr ""
8048
8049 #. type: verbatim
8050 #: ../fish/guestfish-actions.pod:1087
8051 #, no-wrap
8052 msgid ""
8053 " echo-daemon 'words ...'\n"
8054 "\n"
8055 msgstr ""
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1821
8059 msgid ""
8060 "This command concatenates the list of C<words> passed with single spaces "
8061 "between them and returns the resulting string."
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1824
8066 msgid "You can use this command to test the connection through to the daemon."
8067 msgstr ""
8068
8069 #. type: textblock
8070 #: ../fish/guestfish-actions.pod:1094
8071 msgid "See also L</ping-daemon>."
8072 msgstr ""
8073
8074 #. type: =head2
8075 #: ../fish/guestfish-actions.pod:1096
8076 msgid "egrep"
8077 msgstr ""
8078
8079 #. type: verbatim
8080 #: ../fish/guestfish-actions.pod:1098
8081 #, no-wrap
8082 msgid ""
8083 " egrep regex path\n"
8084 "\n"
8085 msgstr ""
8086
8087 #. type: textblock
8088 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1840
8089 msgid ""
8090 "This calls the external C<egrep> program and returns the matching lines."
8091 msgstr ""
8092
8093 #. type: =head2
8094 #: ../fish/guestfish-actions.pod:1106
8095 msgid "egrepi"
8096 msgstr ""
8097
8098 #. type: verbatim
8099 #: ../fish/guestfish-actions.pod:1108
8100 #, no-wrap
8101 msgid ""
8102 " egrepi regex path\n"
8103 "\n"
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1859
8108 msgid ""
8109 "This calls the external C<egrep -i> program and returns the matching lines."
8110 msgstr ""
8111
8112 #. type: =head2
8113 #: ../fish/guestfish-actions.pod:1116
8114 msgid "equal"
8115 msgstr ""
8116
8117 #. type: verbatim
8118 #: ../fish/guestfish-actions.pod:1118
8119 #, no-wrap
8120 msgid ""
8121 " equal file1 file2\n"
8122 "\n"
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1878
8127 msgid ""
8128 "This compares the two files C<file1> and C<file2> and returns true if their "
8129 "content is exactly equal, or false otherwise."
8130 msgstr ""
8131
8132 #. type: textblock
8133 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1881
8134 msgid "The external L<cmp(1)> program is used for the comparison."
8135 msgstr ""
8136
8137 #. type: =head2
8138 #: ../fish/guestfish-actions.pod:1125
8139 msgid "exists"
8140 msgstr ""
8141
8142 #. type: verbatim
8143 #: ../fish/guestfish-actions.pod:1127
8144 #, no-wrap
8145 msgid ""
8146 " exists path\n"
8147 "\n"
8148 msgstr ""
8149
8150 #. type: textblock
8151 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1893
8152 msgid ""
8153 "This returns C<true> if and only if there is a file, directory (or anything) "
8154 "with the given C<path> name."
8155 msgstr ""
8156
8157 #. type: textblock
8158 #: ../fish/guestfish-actions.pod:1132
8159 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8160 msgstr ""
8161
8162 #. type: =head2
8163 #: ../fish/guestfish-actions.pod:1134
8164 msgid "fallocate"
8165 msgstr ""
8166
8167 #. type: verbatim
8168 #: ../fish/guestfish-actions.pod:1136
8169 #, no-wrap
8170 msgid ""
8171 " fallocate path len\n"
8172 "\n"
8173 msgstr ""
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8177 #: ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1935
8178 msgid ""
8179 "This command preallocates a file (containing zero bytes) named C<path> of "
8180 "size C<len> bytes.  If the file exists already, it is overwritten."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1920
8185 msgid ""
8186 "Do not confuse this with the guestfish-specific C<alloc> command which "
8187 "allocates a file in the host and attaches it as a device."
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:1146
8192 msgid ""
8193 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8194 "instead."
8195 msgstr ""
8196
8197 #. type: =head2
8198 #: ../fish/guestfish-actions.pod:1153
8199 msgid "fallocate64"
8200 msgstr ""
8201
8202 #. type: verbatim
8203 #: ../fish/guestfish-actions.pod:1155
8204 #, no-wrap
8205 msgid ""
8206 " fallocate64 path len\n"
8207 "\n"
8208 msgstr ""
8209
8210 #. type: textblock
8211 #: ../fish/guestfish-actions.pod:1161
8212 msgid ""
8213 "Note that this call allocates disk blocks for the file.  To create a sparse "
8214 "file use L</truncate-size> instead."
8215 msgstr ""
8216
8217 #. type: textblock
8218 #: ../fish/guestfish-actions.pod:1164
8219 msgid ""
8220 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8221 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8222 "maximum size of files created through that call to 1GB."
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1947
8227 msgid ""
8228 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8229 "commands which create a file in the host and attach it as a device."
8230 msgstr ""
8231
8232 #. type: =head2
8233 #: ../fish/guestfish-actions.pod:1173
8234 msgid "fgrep"
8235 msgstr ""
8236
8237 #. type: verbatim
8238 #: ../fish/guestfish-actions.pod:1175
8239 #, no-wrap
8240 msgid ""
8241 " fgrep pattern path\n"
8242 "\n"
8243 msgstr ""
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1962
8247 msgid ""
8248 "This calls the external C<fgrep> program and returns the matching lines."
8249 msgstr ""
8250
8251 #. type: =head2
8252 #: ../fish/guestfish-actions.pod:1183
8253 msgid "fgrepi"
8254 msgstr ""
8255
8256 #. type: verbatim
8257 #: ../fish/guestfish-actions.pod:1185
8258 #, no-wrap
8259 msgid ""
8260 " fgrepi pattern path\n"
8261 "\n"
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1981
8266 msgid ""
8267 "This calls the external C<fgrep -i> program and returns the matching lines."
8268 msgstr ""
8269
8270 #. type: =head2
8271 #: ../fish/guestfish-actions.pod:1193
8272 msgid "file"
8273 msgstr ""
8274
8275 #. type: verbatim
8276 #: ../fish/guestfish-actions.pod:1195
8277 #, no-wrap
8278 msgid ""
8279 " file path\n"
8280 "\n"
8281 msgstr ""
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1999
8285 msgid ""
8286 "This call uses the standard L<file(1)> command to determine the type or "
8287 "contents of the file."
8288 msgstr ""
8289
8290 #. type: textblock
8291 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2002
8292 msgid ""
8293 "This call will also transparently look inside various types of compressed "
8294 "file."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2005
8299 msgid ""
8300 "The exact command which runs is C<file -zb path>.  Note in particular that "
8301 "the filename is not prepended to the output (the I<-b> option)."
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2009
8306 msgid ""
8307 "The output depends on the output of the underlying L<file(1)> command and it "
8308 "can change in future in ways beyond our control.  In other words, the output "
8309 "is not guaranteed by the ABI."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:1211
8314 msgid ""
8315 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8316 "(etc), L</is-zero>."
8317 msgstr ""
8318
8319 #. type: =head2
8320 #: ../fish/guestfish-actions.pod:1214
8321 msgid "file-architecture"
8322 msgstr ""
8323
8324 #. type: verbatim
8325 #: ../fish/guestfish-actions.pod:1216
8326 #, no-wrap
8327 msgid ""
8328 " file-architecture filename\n"
8329 "\n"
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2027
8334 msgid ""
8335 "This detects the architecture of the binary C<filename>, and returns it if "
8336 "known."
8337 msgstr ""
8338
8339 #. type: textblock
8340 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2030
8341 msgid "Currently defined architectures are:"
8342 msgstr ""
8343
8344 #. type: =item
8345 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2034
8346 msgid "\"i386\""
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2036
8351 msgid ""
8352 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8353 "irrespective of the precise processor requirements of the binary."
8354 msgstr ""
8355
8356 #. type: =item
8357 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2039
8358 msgid "\"x86_64\""
8359 msgstr ""
8360
8361 #. type: textblock
8362 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2041
8363 msgid "64 bit x86-64."
8364 msgstr ""
8365
8366 #. type: =item
8367 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2043
8368 msgid "\"sparc\""
8369 msgstr ""
8370
8371 #. type: textblock
8372 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2045
8373 msgid "32 bit SPARC."
8374 msgstr ""
8375
8376 #. type: =item
8377 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2047
8378 msgid "\"sparc64\""
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2049
8383 msgid "64 bit SPARC V9 and above."
8384 msgstr ""
8385
8386 #. type: =item
8387 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2051
8388 msgid "\"ia64\""
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2053
8393 msgid "Intel Itanium."
8394 msgstr ""
8395
8396 #. type: =item
8397 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2055
8398 msgid "\"ppc\""
8399 msgstr ""
8400
8401 #. type: textblock
8402 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2057
8403 msgid "32 bit Power PC."
8404 msgstr ""
8405
8406 #. type: =item
8407 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2059
8408 msgid "\"ppc64\""
8409 msgstr ""
8410
8411 #. type: textblock
8412 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2061
8413 msgid "64 bit Power PC."
8414 msgstr ""
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2065
8418 msgid "Libguestfs may return other architecture strings in future."
8419 msgstr ""
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2067
8423 msgid "The function works on at least the following types of files:"
8424 msgstr ""
8425
8426 #. type: textblock
8427 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2073
8428 msgid "many types of Un*x and Linux binary"
8429 msgstr ""
8430
8431 #. type: textblock
8432 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2077
8433 msgid "many types of Un*x and Linux shared library"
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2081
8438 msgid "Windows Win32 and Win64 binaries"
8439 msgstr ""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2085
8443 msgid "Windows Win32 and Win64 DLLs"
8444 msgstr ""
8445
8446 #. type: textblock
8447 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2087
8448 msgid "Win32 binaries and DLLs return C<i386>."
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2089
8453 msgid "Win64 binaries and DLLs return C<x86_64>."
8454 msgstr ""
8455
8456 #. type: textblock
8457 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2093
8458 msgid "Linux kernel modules"
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2097
8463 msgid "Linux new-style initrd images"
8464 msgstr ""
8465
8466 #. type: textblock
8467 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2101
8468 msgid "some non-x86 Linux vmlinuz kernels"
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2105
8473 msgid "What it can't do currently:"
8474 msgstr ""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2111
8478 msgid "static libraries (libfoo.a)"
8479 msgstr ""
8480
8481 #. type: textblock
8482 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2115
8483 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8484 msgstr ""
8485
8486 #. type: textblock
8487 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2119
8488 msgid "x86 Linux vmlinuz kernels"
8489 msgstr ""
8490
8491 #. type: textblock
8492 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2121
8493 msgid ""
8494 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8495 "compressed code, and are horribly hard to unpack.  If you want to find the "
8496 "architecture of a kernel, use the architecture of the associated initrd or "
8497 "kernel module(s) instead."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:1319
8502 msgid "filesize"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:1321
8507 #, no-wrap
8508 msgid ""
8509 " filesize file\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2139
8515 msgid "This command returns the size of C<file> in bytes."
8516 msgstr ""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:1325
8520 msgid ""
8521 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8522 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8523 msgstr ""
8524
8525 #. type: =head2
8526 #: ../fish/guestfish-actions.pod:1329
8527 msgid "fill"
8528 msgstr ""
8529
8530 #. type: verbatim
8531 #: ../fish/guestfish-actions.pod:1331
8532 #, no-wrap
8533 msgid ""
8534 " fill c len path\n"
8535 "\n"
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2157
8540 msgid ""
8541 "This command creates a new file called C<path>.  The initial content of the "
8542 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8543 "[0..255]>."
8544 msgstr ""
8545
8546 #. type: textblock
8547 #: ../fish/guestfish-actions.pod:1337
8548 msgid ""
8549 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8550 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8551 "L</fill-pattern>."
8552 msgstr ""
8553
8554 #. type: =head2
8555 #: ../fish/guestfish-actions.pod:1342
8556 msgid "fill-pattern"
8557 msgstr ""
8558
8559 #. type: verbatim
8560 #: ../fish/guestfish-actions.pod:1344
8561 #, no-wrap
8562 msgid ""
8563 " fill-pattern pattern len path\n"
8564 "\n"
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../fish/guestfish-actions.pod:1346
8569 msgid ""
8570 "This function is like L</fill> except that it creates a new file of length "
8571 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8572 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8573 "bytes."
8574 msgstr ""
8575
8576 #. type: =head2
8577 #: ../fish/guestfish-actions.pod:1351
8578 msgid "find"
8579 msgstr ""
8580
8581 #. type: verbatim
8582 #: ../fish/guestfish-actions.pod:1353
8583 #, no-wrap
8584 msgid ""
8585 " find directory\n"
8586 "\n"
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2203
8591 msgid ""
8592 "This command lists out all files and directories, recursively, starting at "
8593 "C<directory>.  It is essentially equivalent to running the shell command "
8594 "C<find directory -print> but some post-processing happens on the output, "
8595 "described below."
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2208
8600 msgid ""
8601 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8602 "structure was:"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2211
8607 #, no-wrap
8608 msgid ""
8609 " /tmp/a\n"
8610 " /tmp/b\n"
8611 " /tmp/c/d\n"
8612 "\n"
8613 msgstr ""
8614
8615 #. type: textblock
8616 #: ../fish/guestfish-actions.pod:1367
8617 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8618 msgstr ""
8619
8620 #. type: verbatim
8621 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2218
8622 #, no-wrap
8623 msgid ""
8624 " a\n"
8625 " b\n"
8626 " c\n"
8627 " c/d\n"
8628 "\n"
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2223
8633 msgid "If C<directory> is not a directory, then this command returns an error."
8634 msgstr ""
8635
8636 #. type: textblock
8637 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2226
8638 msgid "The returned list is sorted."
8639 msgstr ""
8640
8641 #. type: textblock
8642 #: ../fish/guestfish-actions.pod:1380
8643 msgid "See also L</find0>."
8644 msgstr ""
8645
8646 #. type: =head2
8647 #: ../fish/guestfish-actions.pod:1385
8648 msgid "find0"
8649 msgstr ""
8650
8651 #. type: verbatim
8652 #: ../fish/guestfish-actions.pod:1387
8653 #, no-wrap
8654 msgid ""
8655 " find0 directory (files|-)\n"
8656 "\n"
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2246
8661 msgid ""
8662 "This command lists out all files and directories, recursively, starting at "
8663 "C<directory>, placing the resulting list in the external file called "
8664 "C<files>."
8665 msgstr ""
8666
8667 #. type: textblock
8668 #: ../fish/guestfish-actions.pod:1393
8669 msgid ""
8670 "This command works the same way as L</find> with the following exceptions:"
8671 msgstr ""
8672
8673 #. type: textblock
8674 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2257
8675 msgid "The resulting list is written to an external file."
8676 msgstr ""
8677
8678 #. type: textblock
8679 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2261
8680 msgid ""
8681 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8682 "L<find(1)> option I<-print0>."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2266
8687 msgid "This command is not limited in the number of names that it can return."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2271
8692 msgid "The result list is not sorted."
8693 msgstr ""
8694
8695 #. type: =head2
8696 #: ../fish/guestfish-actions.pod:1420
8697 msgid "findfs-label"
8698 msgstr ""
8699
8700 #. type: verbatim
8701 #: ../fish/guestfish-actions.pod:1422
8702 #, no-wrap
8703 msgid ""
8704 " findfs-label label\n"
8705 "\n"
8706 msgstr ""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2285
8710 msgid ""
8711 "This command searches the filesystems and returns the one which has the "
8712 "given label.  An error is returned if no such filesystem can be found."
8713 msgstr ""
8714
8715 #. type: textblock
8716 #: ../fish/guestfish-actions.pod:1428
8717 msgid "To find the label of a filesystem, use L</vfs-label>."
8718 msgstr ""
8719
8720 #. type: =head2
8721 #: ../fish/guestfish-actions.pod:1430
8722 msgid "findfs-uuid"
8723 msgstr ""
8724
8725 #. type: verbatim
8726 #: ../fish/guestfish-actions.pod:1432
8727 #, no-wrap
8728 msgid ""
8729 " findfs-uuid uuid\n"
8730 "\n"
8731 msgstr ""
8732
8733 #. type: textblock
8734 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2302
8735 msgid ""
8736 "This command searches the filesystems and returns the one which has the "
8737 "given UUID.  An error is returned if no such filesystem can be found."
8738 msgstr ""
8739
8740 #. type: textblock
8741 #: ../fish/guestfish-actions.pod:1438
8742 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8743 msgstr ""
8744
8745 #. type: =head2
8746 #: ../fish/guestfish-actions.pod:1440
8747 msgid "fsck"
8748 msgstr ""
8749
8750 #. type: verbatim
8751 #: ../fish/guestfish-actions.pod:1442
8752 #, no-wrap
8753 msgid ""
8754 " fsck fstype device\n"
8755 "\n"
8756 msgstr ""
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2320
8760 msgid ""
8761 "This runs the filesystem checker (fsck) on C<device> which should have "
8762 "filesystem type C<fstype>."
8763 msgstr ""
8764
8765 #. type: textblock
8766 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2323
8767 msgid ""
8768 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8769 "codes from C<fsck>."
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2332
8774 msgid "Multiple status codes can be summed together."
8775 msgstr ""
8776
8777 #. type: textblock
8778 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2336
8779 msgid ""
8780 "A non-zero return code can mean \"success\", for example if errors have been "
8781 "corrected on the filesystem."
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2341
8786 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2346
8791 msgid ""
8792 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8793 msgstr ""
8794
8795 #. type: =head2
8796 #: ../fish/guestfish-actions.pod:1472
8797 msgid "get-append"
8798 msgstr ""
8799
8800 #. type: verbatim
8801 #: ../fish/guestfish-actions.pod:1474
8802 #, no-wrap
8803 msgid ""
8804 " get-append\n"
8805 "\n"
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2357
8810 msgid ""
8811 "Return the additional kernel options which are added to the guest kernel "
8812 "command line."
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2360
8817 msgid "If C<NULL> then no options are added."
8818 msgstr ""
8819
8820 #. type: =head2
8821 #: ../fish/guestfish-actions.pod:1481
8822 msgid "get-attach-method"
8823 msgstr ""
8824
8825 #. type: verbatim
8826 #: ../fish/guestfish-actions.pod:1483
8827 #, no-wrap
8828 msgid ""
8829 " get-attach-method\n"
8830 "\n"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:1485
8835 msgid "Return the current attach method.  See L</set-attach-method>."
8836 msgstr ""
8837
8838 #. type: =head2
8839 #: ../fish/guestfish-actions.pod:1487
8840 msgid "get-autosync"
8841 msgstr ""
8842
8843 #. type: verbatim
8844 #: ../fish/guestfish-actions.pod:1489
8845 #, no-wrap
8846 msgid ""
8847 " get-autosync\n"
8848 "\n"
8849 msgstr ""
8850
8851 #. type: textblock
8852 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2385
8853 msgid "Get the autosync flag."
8854 msgstr ""
8855
8856 #. type: =head2
8857 #: ../fish/guestfish-actions.pod:1493
8858 msgid "get-direct"
8859 msgstr ""
8860
8861 #. type: verbatim
8862 #: ../fish/guestfish-actions.pod:1495
8863 #, no-wrap
8864 msgid ""
8865 " get-direct\n"
8866 "\n"
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2396
8871 msgid "Return the direct appliance mode flag."
8872 msgstr ""
8873
8874 #. type: =head2
8875 #: ../fish/guestfish-actions.pod:1499
8876 msgid "get-e2label"
8877 msgstr ""
8878
8879 #. type: verbatim
8880 #: ../fish/guestfish-actions.pod:1501
8881 #, no-wrap
8882 msgid ""
8883 " get-e2label device\n"
8884 "\n"
8885 msgstr ""
8886
8887 #. type: textblock
8888 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2415
8889 msgid ""
8890 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8891 msgstr ""
8892
8893 #. type: textblock
8894 #: ../fish/guestfish-actions.pod:1506
8895 msgid ""
8896 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8897 "instead."
8898 msgstr ""
8899
8900 #. type: =head2
8901 #: ../fish/guestfish-actions.pod:1513
8902 msgid "get-e2uuid"
8903 msgstr ""
8904
8905 #. type: verbatim
8906 #: ../fish/guestfish-actions.pod:1515
8907 #, no-wrap
8908 msgid ""
8909 " get-e2uuid device\n"
8910 "\n"
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2436
8915 msgid ""
8916 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8917 msgstr ""
8918
8919 #. type: textblock
8920 #: ../fish/guestfish-actions.pod:1520
8921 msgid ""
8922 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8923 "instead."
8924 msgstr ""
8925
8926 #. type: =head2
8927 #: ../fish/guestfish-actions.pod:1527
8928 msgid "get-memsize"
8929 msgstr ""
8930
8931 #. type: verbatim
8932 #: ../fish/guestfish-actions.pod:1529
8933 #, no-wrap
8934 msgid ""
8935 " get-memsize\n"
8936 "\n"
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2449
8941 msgid ""
8942 "This gets the memory size in megabytes allocated to the qemu subprocess."
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../fish/guestfish-actions.pod:1534
8947 msgid ""
8948 "If L</set-memsize> was not called on this handle, and if "
8949 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8950 "value for memsize."
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
8955 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4477
8956 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2548
8957 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6886
8958 msgid ""
8959 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8960 msgstr ""
8961
8962 #. type: =head2
8963 #: ../fish/guestfish-actions.pod:1541
8964 msgid "get-network"
8965 msgstr ""
8966
8967 #. type: verbatim
8968 #: ../fish/guestfish-actions.pod:1543
8969 #, no-wrap
8970 msgid ""
8971 " get-network\n"
8972 "\n"
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2468
8977 msgid "This returns the enable network flag."
8978 msgstr ""
8979
8980 #. type: =head2
8981 #: ../fish/guestfish-actions.pod:1547
8982 msgid "get-path"
8983 msgstr ""
8984
8985 #. type: verbatim
8986 #: ../fish/guestfish-actions.pod:1549
8987 #, no-wrap
8988 msgid ""
8989 " get-path\n"
8990 "\n"
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2479
8995 msgid "Return the current search path."
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2481
9000 msgid ""
9001 "This is always non-NULL.  If it wasn't set already, then this will return "
9002 "the default path."
9003 msgstr ""
9004
9005 #. type: =head2
9006 #: ../fish/guestfish-actions.pod:1556
9007 msgid "get-pgroup"
9008 msgstr ""
9009
9010 #. type: verbatim
9011 #: ../fish/guestfish-actions.pod:1558
9012 #, no-wrap
9013 msgid ""
9014 " get-pgroup\n"
9015 "\n"
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2494
9020 msgid "This returns the process group flag."
9021 msgstr ""
9022
9023 #. type: =head2
9024 #: ../fish/guestfish-actions.pod:1562
9025 msgid "get-pid"
9026 msgstr ""
9027
9028 #. type: =head2
9029 #: ../fish/guestfish-actions.pod:1564
9030 msgid "pid"
9031 msgstr ""
9032
9033 #. type: verbatim
9034 #: ../fish/guestfish-actions.pod:1566
9035 #, no-wrap
9036 msgid ""
9037 " get-pid\n"
9038 "\n"
9039 msgstr ""
9040
9041 #. type: textblock
9042 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2505
9043 msgid ""
9044 "Return the process ID of the qemu subprocess.  If there is no qemu "
9045 "subprocess, then this will return an error."
9046 msgstr ""
9047
9048 #. type: textblock
9049 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2508
9050 msgid "This is an internal call used for debugging and testing."
9051 msgstr ""
9052
9053 #. type: =head2
9054 #: ../fish/guestfish-actions.pod:1573
9055 msgid "get-qemu"
9056 msgstr ""
9057
9058 #. type: verbatim
9059 #: ../fish/guestfish-actions.pod:1575
9060 #, no-wrap
9061 msgid ""
9062 " get-qemu\n"
9063 "\n"
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2519
9068 msgid "Return the current qemu binary."
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2521
9073 msgid ""
9074 "This is always non-NULL.  If it wasn't set already, then this will return "
9075 "the default qemu binary name."
9076 msgstr ""
9077
9078 #. type: =head2
9079 #: ../fish/guestfish-actions.pod:1582
9080 msgid "get-recovery-proc"
9081 msgstr ""
9082
9083 #. type: verbatim
9084 #: ../fish/guestfish-actions.pod:1584
9085 #, no-wrap
9086 msgid ""
9087 " get-recovery-proc\n"
9088 "\n"
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2534
9093 msgid "Return the recovery process enabled flag."
9094 msgstr ""
9095
9096 #. type: =head2
9097 #: ../fish/guestfish-actions.pod:1588
9098 msgid "get-selinux"
9099 msgstr ""
9100
9101 #. type: verbatim
9102 #: ../fish/guestfish-actions.pod:1590
9103 #, no-wrap
9104 msgid ""
9105 " get-selinux\n"
9106 "\n"
9107 msgstr ""
9108
9109 #. type: textblock
9110 #: ../fish/guestfish-actions.pod:1592
9111 msgid ""
9112 "This returns the current setting of the selinux flag which is passed to the "
9113 "appliance at boot time.  See L</set-selinux>."
9114 msgstr ""
9115
9116 #. type: =head2
9117 #: ../fish/guestfish-actions.pod:1598
9118 msgid "get-smp"
9119 msgstr ""
9120
9121 #. type: verbatim
9122 #: ../fish/guestfish-actions.pod:1600
9123 #, no-wrap
9124 msgid ""
9125 " get-smp\n"
9126 "\n"
9127 msgstr ""
9128
9129 #. type: textblock
9130 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2560
9131 msgid "This returns the number of virtual CPUs assigned to the appliance."
9132 msgstr ""
9133
9134 #. type: =head2
9135 #: ../fish/guestfish-actions.pod:1604
9136 msgid "get-state"
9137 msgstr ""
9138
9139 #. type: verbatim
9140 #: ../fish/guestfish-actions.pod:1606
9141 #, no-wrap
9142 msgid ""
9143 " get-state\n"
9144 "\n"
9145 msgstr ""
9146
9147 #. type: textblock
9148 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2571
9149 msgid ""
9150 "This returns the current state as an opaque integer.  This is only useful "
9151 "for printing debug and internal error messages."
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9156 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9157 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2574
9158 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3922
9159 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4010
9160 msgid "For more information on states, see L<guestfs(3)>."
9161 msgstr ""
9162
9163 #. type: =head2
9164 #: ../fish/guestfish-actions.pod:1613
9165 msgid "get-trace"
9166 msgstr ""
9167
9168 #. type: verbatim
9169 #: ../fish/guestfish-actions.pod:1615
9170 #, no-wrap
9171 msgid ""
9172 " get-trace\n"
9173 "\n"
9174 msgstr ""
9175
9176 #. type: textblock
9177 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2585
9178 msgid "Return the command trace flag."
9179 msgstr ""
9180
9181 #. type: =head2
9182 #: ../fish/guestfish-actions.pod:1619
9183 msgid "get-umask"
9184 msgstr ""
9185
9186 #. type: verbatim
9187 #: ../fish/guestfish-actions.pod:1621
9188 #, no-wrap
9189 msgid ""
9190 " get-umask\n"
9191 "\n"
9192 msgstr ""
9193
9194 #. type: textblock
9195 #: ../fish/guestfish-actions.pod:1623
9196 msgid ""
9197 "Return the current umask.  By default the umask is C<022> unless it has been "
9198 "set by calling L</umask>."
9199 msgstr ""
9200
9201 #. type: =head2
9202 #: ../fish/guestfish-actions.pod:1626
9203 msgid "get-verbose"
9204 msgstr ""
9205
9206 #. type: verbatim
9207 #: ../fish/guestfish-actions.pod:1628
9208 #, no-wrap
9209 msgid ""
9210 " get-verbose\n"
9211 "\n"
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2608
9216 msgid "This returns the verbose messages flag."
9217 msgstr ""
9218
9219 #. type: =head2
9220 #: ../fish/guestfish-actions.pod:1632
9221 msgid "getcon"
9222 msgstr ""
9223
9224 #. type: verbatim
9225 #: ../fish/guestfish-actions.pod:1634
9226 #, no-wrap
9227 msgid ""
9228 " getcon\n"
9229 "\n"
9230 msgstr ""
9231
9232 #. type: textblock
9233 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2619
9234 msgid "This gets the SELinux security context of the daemon."
9235 msgstr ""
9236
9237 #. type: textblock
9238 #: ../fish/guestfish-actions.pod:1638
9239 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9240 msgstr ""
9241
9242 #. type: =head2
9243 #: ../fish/guestfish-actions.pod:1641
9244 msgid "getxattr"
9245 msgstr ""
9246
9247 #. type: verbatim
9248 #: ../fish/guestfish-actions.pod:1643
9249 #, no-wrap
9250 msgid ""
9251 " getxattr path name\n"
9252 "\n"
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:1645
9257 msgid ""
9258 "Get a single extended attribute from file C<path> named C<name>.  This call "
9259 "follows symlinks.  If you want to lookup an extended attribute for the "
9260 "symlink itself, use L</lgetxattr>."
9261 msgstr ""
9262
9263 #. type: textblock
9264 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9265 msgid ""
9266 "Normally it is better to get all extended attributes from a file in one go "
9267 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9268 "buggy and do not provide a way to list out attributes.  For these "
9269 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9270 "attributes you want in advance and call this function."
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9275 #: ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:4143
9276 msgid ""
9277 "Extended attribute values are blobs of binary data.  If there is no extended "
9278 "attribute named C<name>, this returns an error."
9279 msgstr ""
9280
9281 #. type: textblock
9282 #: ../fish/guestfish-actions.pod:1659
9283 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9284 msgstr ""
9285
9286 #. type: =head2
9287 #: ../fish/guestfish-actions.pod:1661
9288 msgid "getxattrs"
9289 msgstr ""
9290
9291 #. type: verbatim
9292 #: ../fish/guestfish-actions.pod:1663
9293 #, no-wrap
9294 msgid ""
9295 " getxattrs path\n"
9296 "\n"
9297 msgstr ""
9298
9299 #. type: textblock
9300 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2665
9301 msgid ""
9302 "This call lists the extended attributes of the file or directory C<path>."
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2668
9307 msgid ""
9308 "At the system call level, this is a combination of the L<listxattr(2)> and "
9309 "L<getxattr(2)> calls."
9310 msgstr ""
9311
9312 #. type: textblock
9313 #: ../fish/guestfish-actions.pod:1671
9314 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9315 msgstr ""
9316
9317 #. type: =head2
9318 #: ../fish/guestfish-actions.pod:1673
9319 msgid "glob-expand"
9320 msgstr ""
9321
9322 #. type: verbatim
9323 #: ../fish/guestfish-actions.pod:1675
9324 #, no-wrap
9325 msgid ""
9326 " glob-expand pattern\n"
9327 "\n"
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2685
9332 msgid ""
9333 "This command searches for all the pathnames matching C<pattern> according to "
9334 "the wildcard expansion rules used by the shell."
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2689
9339 msgid ""
9340 "If no paths match, then this returns an empty list (note: not an error)."
9341 msgstr ""
9342
9343 #. type: textblock
9344 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2692
9345 msgid ""
9346 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9347 "GLOB_BRACE>.  See that manual page for more details."
9348 msgstr ""
9349
9350 #. type: =head2
9351 #: ../fish/guestfish-actions.pod:1688
9352 msgid "grep"
9353 msgstr ""
9354
9355 #. type: verbatim
9356 #: ../fish/guestfish-actions.pod:1690
9357 #, no-wrap
9358 msgid ""
9359 " grep regex path\n"
9360 "\n"
9361 msgstr ""
9362
9363 #. type: textblock
9364 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2709
9365 msgid "This calls the external C<grep> program and returns the matching lines."
9366 msgstr ""
9367
9368 #. type: =head2
9369 #: ../fish/guestfish-actions.pod:1698
9370 msgid "grepi"
9371 msgstr ""
9372
9373 #. type: verbatim
9374 #: ../fish/guestfish-actions.pod:1700
9375 #, no-wrap
9376 msgid ""
9377 " grepi regex path\n"
9378 "\n"
9379 msgstr ""
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2728
9383 msgid ""
9384 "This calls the external C<grep -i> program and returns the matching lines."
9385 msgstr ""
9386
9387 #. type: =head2
9388 #: ../fish/guestfish-actions.pod:1708
9389 msgid "grub-install"
9390 msgstr ""
9391
9392 #. type: verbatim
9393 #: ../fish/guestfish-actions.pod:1710
9394 #, no-wrap
9395 msgid ""
9396 " grub-install root device\n"
9397 "\n"
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2747
9402 msgid ""
9403 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9404 "with the root directory being C<root>."
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2756
9409 msgid ""
9410 "There is currently no way in the API to install grub2, which is used by most "
9411 "modern Linux guests.  It is possible to run the grub2 command from the "
9412 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2763
9417 msgid ""
9418 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9419 "compatible with itself, so this only works in rather narrow circumstances.  "
9420 "Careful testing with each guest version is advisable."
9421 msgstr ""
9422
9423 #. type: textblock
9424 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2770
9425 msgid ""
9426 "If grub-install reports the error \"No suitable drive was found in the "
9427 "generated device map.\" it may be that you need to create a C</boot/grub/"
9428 "device.map> file first that contains the mapping between grub device names "
9429 "and Linux device names.  It is usually sufficient to create a file "
9430 "containing:"
9431 msgstr ""
9432
9433 #. type: verbatim
9434 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2777
9435 #, no-wrap
9436 msgid ""
9437 " (hd0) /dev/vda\n"
9438 "\n"
9439 msgstr ""
9440
9441 #. type: textblock
9442 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2779
9443 msgid "replacing C</dev/vda> with the name of the installation device."
9444 msgstr ""
9445
9446 #. type: =head2
9447 #: ../fish/guestfish-actions.pod:1748
9448 msgid "head"
9449 msgstr ""
9450
9451 #. type: verbatim
9452 #: ../fish/guestfish-actions.pod:1750
9453 #, no-wrap
9454 msgid ""
9455 " head path\n"
9456 "\n"
9457 msgstr ""
9458
9459 #. type: textblock
9460 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2793
9461 msgid ""
9462 "This command returns up to the first 10 lines of a file as a list of strings."
9463 msgstr ""
9464
9465 #. type: =head2
9466 #: ../fish/guestfish-actions.pod:1758
9467 msgid "head-n"
9468 msgstr ""
9469
9470 #. type: verbatim
9471 #: ../fish/guestfish-actions.pod:1760
9472 #, no-wrap
9473 msgid ""
9474 " head-n nrlines path\n"
9475 "\n"
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2812
9480 msgid ""
9481 "If the parameter C<nrlines> is a positive number, this returns the first "
9482 "C<nrlines> lines of the file C<path>."
9483 msgstr ""
9484
9485 #. type: textblock
9486 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2815
9487 msgid ""
9488 "If the parameter C<nrlines> is a negative number, this returns lines from "
9489 "the file C<path>, excluding the last C<nrlines> lines."
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4867
9494 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:7474
9495 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9496 msgstr ""
9497
9498 #. type: =head2
9499 #: ../fish/guestfish-actions.pod:1773
9500 msgid "hexdump"
9501 msgstr ""
9502
9503 #. type: verbatim
9504 #: ../fish/guestfish-actions.pod:1775
9505 #, no-wrap
9506 msgid ""
9507 " hexdump path\n"
9508 "\n"
9509 msgstr ""
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2835
9513 msgid ""
9514 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9515 "readable, canonical hex dump of the file."
9516 msgstr ""
9517
9518 #. type: =head2
9519 #: ../fish/guestfish-actions.pod:1783
9520 msgid "initrd-cat"
9521 msgstr ""
9522
9523 #. type: verbatim
9524 #: ../fish/guestfish-actions.pod:1785
9525 #, no-wrap
9526 msgid ""
9527 " initrd-cat initrdpath filename\n"
9528 "\n"
9529 msgstr ""
9530
9531 #. type: textblock
9532 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2854
9533 msgid ""
9534 "This command unpacks the file C<filename> from the initrd file called "
9535 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9536 "character."
9537 msgstr ""
9538
9539 #. type: textblock
9540 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2858
9541 msgid ""
9542 "For example, in guestfish you could use the following command to examine the "
9543 "boot script (usually called C</init>)  contained in a Linux initrd or "
9544 "initramfs image:"
9545 msgstr ""
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2862
9549 #, no-wrap
9550 msgid ""
9551 " initrd-cat /boot/initrd-<version>.img init\n"
9552 "\n"
9553 msgstr ""
9554
9555 #. type: textblock
9556 #: ../fish/guestfish-actions.pod:1797
9557 msgid "See also L</initrd-list>."
9558 msgstr ""
9559
9560 #. type: =head2
9561 #: ../fish/guestfish-actions.pod:1802
9562 msgid "initrd-list"
9563 msgstr ""
9564
9565 #. type: verbatim
9566 #: ../fish/guestfish-actions.pod:1804
9567 #, no-wrap
9568 msgid ""
9569 " initrd-list path\n"
9570 "\n"
9571 msgstr ""
9572
9573 #. type: textblock
9574 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2881
9575 msgid "This command lists out files contained in an initrd."
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2883
9580 msgid ""
9581 "The files are listed without any initial C</> character.  The files are "
9582 "listed in the order they appear (not necessarily alphabetical).  Directory "
9583 "names are listed as separate items."
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2887
9588 msgid ""
9589 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9590 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9591 "files)."
9592 msgstr ""
9593
9594 #. type: =head2
9595 #: ../fish/guestfish-actions.pod:1816
9596 msgid "inotify-add-watch"
9597 msgstr ""
9598
9599 #. type: verbatim
9600 #: ../fish/guestfish-actions.pod:1818
9601 #, no-wrap
9602 msgid ""
9603 " inotify-add-watch path mask\n"
9604 "\n"
9605 msgstr ""
9606
9607 #. type: textblock
9608 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2904
9609 msgid "Watch C<path> for the events listed in C<mask>."
9610 msgstr ""
9611
9612 #. type: textblock
9613 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2906
9614 msgid ""
9615 "Note that if C<path> is a directory then events within that directory are "
9616 "watched, but this does I<not> happen recursively (in subdirectories)."
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2910
9621 msgid ""
9622 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9623 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9624 msgstr ""
9625
9626 #. type: =head2
9627 #: ../fish/guestfish-actions.pod:1830
9628 msgid "inotify-close"
9629 msgstr ""
9630
9631 #. type: verbatim
9632 #: ../fish/guestfish-actions.pod:1832
9633 #, no-wrap
9634 msgid ""
9635 " inotify-close\n"
9636 "\n"
9637 msgstr ""
9638
9639 #. type: textblock
9640 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2923
9641 msgid ""
9642 "This closes the inotify handle which was previously opened by inotify_init.  "
9643 "It removes all watches, throws away any pending events, and deallocates all "
9644 "resources."
9645 msgstr ""
9646
9647 #. type: =head2
9648 #: ../fish/guestfish-actions.pod:1838
9649 msgid "inotify-files"
9650 msgstr ""
9651
9652 #. type: verbatim
9653 #: ../fish/guestfish-actions.pod:1840
9654 #, no-wrap
9655 msgid ""
9656 " inotify-files\n"
9657 "\n"
9658 msgstr ""
9659
9660 #. type: textblock
9661 #: ../fish/guestfish-actions.pod:1842
9662 msgid ""
9663 "This function is a helpful wrapper around L</inotify-read> which just "
9664 "returns a list of pathnames of objects that were touched.  The returned "
9665 "pathnames are sorted and deduplicated."
9666 msgstr ""
9667
9668 #. type: =head2
9669 #: ../fish/guestfish-actions.pod:1846
9670 msgid "inotify-init"
9671 msgstr ""
9672
9673 #. type: verbatim
9674 #: ../fish/guestfish-actions.pod:1848
9675 #, no-wrap
9676 msgid ""
9677 " inotify-init maxevents\n"
9678 "\n"
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2952
9683 msgid ""
9684 "This command creates a new inotify handle.  The inotify subsystem can be "
9685 "used to notify events which happen to objects in the guest filesystem."
9686 msgstr ""
9687
9688 #. type: textblock
9689 #: ../fish/guestfish-actions.pod:1854
9690 msgid ""
9691 "C<maxevents> is the maximum number of events which will be queued up between "
9692 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9693 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9694 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9695 "but records the fact that it threw them away by setting a flag "
9696 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:1864
9701 msgid ""
9702 "Before any events are generated, you have to add some watches to the "
9703 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9704 "L</inotify-watch-all>."
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:1870
9709 msgid ""
9710 "Queued up events should be read periodically by calling L</inotify-read> (or "
9711 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9712 "If you don't read the events out often enough then you risk the internal "
9713 "queue overflowing."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../fish/guestfish-actions.pod:1877
9718 msgid ""
9719 "The handle should be closed after use by calling L</inotify-close>.  This "
9720 "also removes any watches automatically."
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2983
9725 msgid ""
9726 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9727 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9728 "that there is one global inotify handle per libguestfs instance."
9729 msgstr ""
9730
9731 #. type: =head2
9732 #: ../fish/guestfish-actions.pod:1886
9733 msgid "inotify-read"
9734 msgstr ""
9735
9736 #. type: verbatim
9737 #: ../fish/guestfish-actions.pod:1888
9738 #, no-wrap
9739 msgid ""
9740 " inotify-read\n"
9741 "\n"
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:2997
9746 msgid ""
9747 "Return the complete queue of events that have happened since the previous "
9748 "read call."
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3000
9753 msgid "If no events have happened, this returns an empty list."
9754 msgstr ""
9755
9756 #. type: textblock
9757 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3002
9758 msgid ""
9759 "I<Note>: In order to make sure that all events have been read, you must call "
9760 "this function repeatedly until it returns an empty list.  The reason is that "
9761 "the call will read events up to the maximum appliance-to-host message size "
9762 "and leave remaining events in the queue."
9763 msgstr ""
9764
9765 #. type: =head2
9766 #: ../fish/guestfish-actions.pod:1901
9767 msgid "inotify-rm-watch"
9768 msgstr ""
9769
9770 #. type: verbatim
9771 #: ../fish/guestfish-actions.pod:1903
9772 #, no-wrap
9773 msgid ""
9774 " inotify-rm-watch wd\n"
9775 "\n"
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:1905
9780 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9781 msgstr ""
9782
9783 #. type: =head2
9784 #: ../fish/guestfish-actions.pod:1908
9785 msgid "inspect-get-arch"
9786 msgstr ""
9787
9788 #. type: verbatim
9789 #: ../fish/guestfish-actions.pod:1910
9790 #, no-wrap
9791 msgid ""
9792 " inspect-get-arch root\n"
9793 "\n"
9794 msgstr ""
9795
9796 #. type: textblock
9797 #: ../fish/guestfish-actions.pod:1912
9798 msgid ""
9799 "This returns the architecture of the inspected operating system.  The "
9800 "possible return values are listed under L</file-architecture>."
9801 msgstr ""
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3037
9805 msgid ""
9806 "If the architecture could not be determined, then the string C<unknown> is "
9807 "returned."
9808 msgstr ""
9809
9810 #. type: textblock
9811 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
9812 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
9813 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
9814 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
9815 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
9816 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
9817 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
9818 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
9819 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3040
9820 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3246
9821 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3396
9822 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3508
9823 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3582
9824 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3646
9825 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3683
9826 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3717
9827 #: ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3860
9828 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9829 msgstr ""
9830
9831 #. type: =head2
9832 #: ../fish/guestfish-actions.pod:1921
9833 msgid "inspect-get-distro"
9834 msgstr ""
9835
9836 #. type: verbatim
9837 #: ../fish/guestfish-actions.pod:1923
9838 #, no-wrap
9839 msgid ""
9840 " inspect-get-distro root\n"
9841 "\n"
9842 msgstr ""
9843
9844 #. type: textblock
9845 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3053
9846 msgid ""
9847 "This returns the distro (distribution) of the inspected operating system."
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3056
9852 msgid "Currently defined distros are:"
9853 msgstr ""
9854
9855 #. type: =item
9856 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3060
9857 msgid "\"archlinux\""
9858 msgstr ""
9859
9860 #. type: textblock
9861 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3062
9862 msgid "Arch Linux."
9863 msgstr ""
9864
9865 #. type: =item
9866 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3064
9867 msgid "\"centos\""
9868 msgstr ""
9869
9870 #. type: textblock
9871 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3066
9872 msgid "CentOS."
9873 msgstr ""
9874
9875 #. type: =item
9876 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3068
9877 msgid "\"debian\""
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3070
9882 msgid "Debian."
9883 msgstr ""
9884
9885 #. type: =item
9886 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3072
9887 msgid "\"fedora\""
9888 msgstr ""
9889
9890 #. type: textblock
9891 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3074
9892 msgid "Fedora."
9893 msgstr ""
9894
9895 #. type: =item
9896 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3076
9897 msgid "\"gentoo\""
9898 msgstr ""
9899
9900 #. type: textblock
9901 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3078
9902 msgid "Gentoo."
9903 msgstr ""
9904
9905 #. type: =item
9906 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3080
9907 msgid "\"linuxmint\""
9908 msgstr ""
9909
9910 #. type: textblock
9911 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3082
9912 msgid "Linux Mint."
9913 msgstr ""
9914
9915 #. type: =item
9916 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3084
9917 msgid "\"mageia\""
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3086
9922 msgid "Mageia."
9923 msgstr ""
9924
9925 #. type: =item
9926 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3088
9927 msgid "\"mandriva\""
9928 msgstr ""
9929
9930 #. type: textblock
9931 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3090
9932 msgid "Mandriva."
9933 msgstr ""
9934
9935 #. type: =item
9936 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3092
9937 msgid "\"meego\""
9938 msgstr ""
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3094
9942 msgid "MeeGo."
9943 msgstr ""
9944
9945 #. type: =item
9946 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3096
9947 msgid "\"opensuse\""
9948 msgstr ""
9949
9950 #. type: textblock
9951 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3098
9952 msgid "OpenSUSE."
9953 msgstr ""
9954
9955 #. type: =item
9956 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3100
9957 msgid "\"pardus\""
9958 msgstr ""
9959
9960 #. type: textblock
9961 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3102
9962 msgid "Pardus."
9963 msgstr ""
9964
9965 #. type: =item
9966 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3104
9967 msgid "\"redhat-based\""
9968 msgstr ""
9969
9970 #. type: textblock
9971 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3106
9972 msgid "Some Red Hat-derived distro."
9973 msgstr ""
9974
9975 #. type: =item
9976 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3108
9977 msgid "\"rhel\""
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3110
9982 msgid "Red Hat Enterprise Linux."
9983 msgstr ""
9984
9985 #. type: =item
9986 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3112
9987 msgid "\"scientificlinux\""
9988 msgstr ""
9989
9990 #. type: textblock
9991 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3114
9992 msgid "Scientific Linux."
9993 msgstr ""
9994
9995 #. type: =item
9996 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3116
9997 msgid "\"slackware\""
9998 msgstr ""
9999
10000 #. type: textblock
10001 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3118
10002 msgid "Slackware."
10003 msgstr ""
10004
10005 #. type: =item
10006 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3120
10007 msgid "\"ttylinux\""
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3122
10012 msgid "ttylinux."
10013 msgstr ""
10014
10015 #. type: =item
10016 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3124
10017 msgid "\"ubuntu\""
10018 msgstr ""
10019
10020 #. type: textblock
10021 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3126
10022 msgid "Ubuntu."
10023 msgstr ""
10024
10025 #. type: =item
10026 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10027 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3128
10028 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3617
10029 msgid "\"unknown\""
10030 msgstr ""
10031
10032 #. type: textblock
10033 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3130
10034 msgid "The distro could not be determined."
10035 msgstr ""
10036
10037 #. type: =item
10038 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10039 #: ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3605
10040 msgid "\"windows\""
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3134
10045 msgid ""
10046 "Windows does not have distributions.  This string is returned if the OS type "
10047 "is Windows."
10048 msgstr ""
10049
10050 #. type: textblock
10051 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10052 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3139
10053 #: ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3623
10054 msgid ""
10055 "Future versions of libguestfs may return other strings here.  The caller "
10056 "should be prepared to handle any string."
10057 msgstr ""
10058
10059 #. type: =head2
10060 #: ../fish/guestfish-actions.pod:2016
10061 msgid "inspect-get-drive-mappings"
10062 msgstr ""
10063
10064 #. type: verbatim
10065 #: ../fish/guestfish-actions.pod:2018
10066 #, no-wrap
10067 msgid ""
10068 " inspect-get-drive-mappings root\n"
10069 "\n"
10070 msgstr ""
10071
10072 #. type: textblock
10073 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3155
10074 msgid ""
10075 "This call is useful for Windows which uses a primitive system of assigning "
10076 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10077 "Windows Registry to find out how disks/partitions are mapped to drive "
10078 "letters, and returns a hash table as in the example below:"
10079 msgstr ""
10080
10081 #. type: verbatim
10082 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3161
10083 #, no-wrap
10084 msgid ""
10085 " C      =>     /dev/vda2\n"
10086 " E      =>     /dev/vdb1\n"
10087 " F      =>     /dev/vdc1\n"
10088 "\n"
10089 msgstr ""
10090
10091 #. type: textblock
10092 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3165
10093 msgid ""
10094 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10095 "and just contains the drive letter, without the customary colon separator "
10096 "character."
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3169
10101 msgid ""
10102 "In future we may support other operating systems that also used drive "
10103 "letters, but the keys for those might not be case insensitive and might be "
10104 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10105 "C<h1> etc."
10106 msgstr ""
10107
10108 #. type: textblock
10109 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3174
10110 msgid ""
10111 "For Windows guests, currently only hard drive mappings are returned.  "
10112 "Removable disks (eg. DVD-ROMs) are ignored."
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3177
10117 msgid ""
10118 "For guests that do not use drive mappings, or if the drive mappings could "
10119 "not be determined, this returns an empty hash table."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2045
10124 msgid ""
10125 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10126 "get-mountpoints>, L</inspect-get-filesystems>."
10127 msgstr ""
10128
10129 #. type: =head2
10130 #: ../fish/guestfish-actions.pod:2049
10131 msgid "inspect-get-filesystems"
10132 msgstr ""
10133
10134 #. type: verbatim
10135 #: ../fish/guestfish-actions.pod:2051
10136 #, no-wrap
10137 msgid ""
10138 " inspect-get-filesystems root\n"
10139 "\n"
10140 msgstr ""
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3198
10144 msgid ""
10145 "This returns a list of all the filesystems that we think are associated with "
10146 "this operating system.  This includes the root filesystem, other ordinary "
10147 "filesystems, and non-mounted devices like swap partitions."
10148 msgstr ""
10149
10150 #. type: textblock
10151 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3203
10152 msgid ""
10153 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10154 "to be shared between operating systems."
10155 msgstr ""
10156
10157 #. type: textblock
10158 #: ../fish/guestfish-actions.pod:2061
10159 msgid ""
10160 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10161 "get-mountpoints>."
10162 msgstr ""
10163
10164 #. type: =head2
10165 #: ../fish/guestfish-actions.pod:2064
10166 msgid "inspect-get-format"
10167 msgstr ""
10168
10169 #. type: verbatim
10170 #: ../fish/guestfish-actions.pod:2066
10171 #, no-wrap
10172 msgid ""
10173 " inspect-get-format root\n"
10174 "\n"
10175 msgstr ""
10176
10177 #. type: textblock
10178 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3221
10179 msgid ""
10180 "This returns the format of the inspected operating system.  You can use it "
10181 "to detect install images, live CDs and similar."
10182 msgstr ""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3224
10186 msgid "Currently defined formats are:"
10187 msgstr ""
10188
10189 #. type: =item
10190 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3228
10191 msgid "\"installed\""
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3230
10196 msgid "This is an installed operating system."
10197 msgstr ""
10198
10199 #. type: =item
10200 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3232
10201 msgid "\"installer\""
10202 msgstr ""
10203
10204 #. type: textblock
10205 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3234
10206 msgid ""
10207 "The disk image being inspected is not an installed operating system, but a "
10208 "I<bootable> install disk, live CD, or similar."
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3239
10213 msgid "The format of this disk image is not known."
10214 msgstr ""
10215
10216 #. type: =head2
10217 #: ../fish/guestfish-actions.pod:2095
10218 msgid "inspect-get-hostname"
10219 msgstr ""
10220
10221 #. type: verbatim
10222 #: ../fish/guestfish-actions.pod:2097
10223 #, no-wrap
10224 msgid ""
10225 " inspect-get-hostname root\n"
10226 "\n"
10227 msgstr ""
10228
10229 #. type: textblock
10230 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3259
10231 msgid ""
10232 "This function returns the hostname of the operating system as found by "
10233 "inspection of the guest's configuration files."
10234 msgstr ""
10235
10236 #. type: textblock
10237 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3262
10238 msgid ""
10239 "If the hostname could not be determined, then the string C<unknown> is "
10240 "returned."
10241 msgstr ""
10242
10243 #. type: =head2
10244 #: ../fish/guestfish-actions.pod:2107
10245 msgid "inspect-get-icon"
10246 msgstr ""
10247
10248 #. type: verbatim
10249 #: ../fish/guestfish-actions.pod:2109
10250 #, no-wrap
10251 msgid ""
10252 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10253 "\n"
10254 msgstr ""
10255
10256 #. type: textblock
10257 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3288
10258 msgid ""
10259 "This function returns an icon corresponding to the inspected operating "
10260 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10261 "to PNG if necessary)."
10262 msgstr ""
10263
10264 #. type: textblock
10265 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3292
10266 msgid ""
10267 "If it was not possible to get an icon this function returns a zero-length "
10268 "(non-NULL) buffer.  I<Callers must check for this case>."
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3295
10273 msgid ""
10274 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10275 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10276 "this file will be returned.  You can disable favicons by passing the "
10277 "optional C<favicon> boolean as false (default is true)."
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3301
10282 msgid ""
10283 "If finding the favicon fails, then we look in other places in the guest for "
10284 "a suitable icon."
10285 msgstr ""
10286
10287 #. type: textblock
10288 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3304
10289 msgid ""
10290 "If the optional C<highquality> boolean is true then only high quality icons "
10291 "are returned, which means only icons of high resolution with an alpha "
10292 "channel.  The default (false) is to return any icon we can, even if it is of "
10293 "substandard quality."
10294 msgstr ""
10295
10296 #. type: textblock
10297 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3315
10298 msgid ""
10299 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10300 "before you call this, since it needs to read information from the guest "
10301 "filesystem during the call."
10302 msgstr ""
10303
10304 #. type: textblock
10305 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3321
10306 msgid ""
10307 "B<Security:> The icon data comes from the untrusted guest, and should be "
10308 "treated with caution.  PNG files have been known to contain exploits.  "
10309 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10310 "trying to process or display the icon."
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3329
10315 msgid ""
10316 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10317 "tries to return the largest, highest quality icon available.  The "
10318 "application must scale the icon to the required size."
10319 msgstr ""
10320
10321 #. type: textblock
10322 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3336
10323 msgid ""
10324 "Extracting icons from Windows guests requires the external C<wrestool> "
10325 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10326 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10327 "installed separately."
10328 msgstr ""
10329
10330 #. type: textblock
10331 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3343
10332 msgid ""
10333 "Operating system icons are usually trademarks.  Seek legal advice before "
10334 "using trademarks in applications."
10335 msgstr ""
10336
10337 #. type: =head2
10338 #: ../fish/guestfish-actions.pod:2173
10339 msgid "inspect-get-major-version"
10340 msgstr ""
10341
10342 #. type: verbatim
10343 #: ../fish/guestfish-actions.pod:2175
10344 #, no-wrap
10345 msgid ""
10346 " inspect-get-major-version root\n"
10347 "\n"
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3384
10352 msgid ""
10353 "This returns the major version number of the inspected operating system."
10354 msgstr ""
10355
10356 #. type: textblock
10357 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3387
10358 msgid ""
10359 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10360 "popular public names used by the operating system.  Notably the operating "
10361 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10362 "1).  You can find out the real versions corresponding to releases of Windows "
10363 "by consulting Wikipedia or MSDN."
10364 msgstr ""
10365
10366 #. type: textblock
10367 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10368 #: ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3411
10369 msgid "If the version could not be determined, then C<0> is returned."
10370 msgstr ""
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:2191
10374 msgid "inspect-get-minor-version"
10375 msgstr ""
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:2193
10379 #, no-wrap
10380 msgid ""
10381 " inspect-get-minor-version root\n"
10382 "\n"
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3408
10387 msgid ""
10388 "This returns the minor version number of the inspected operating system."
10389 msgstr ""
10390
10391 #. type: textblock
10392 #: ../fish/guestfish-actions.pod:2200
10393 msgid ""
10394 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10395 "get-major-version>."
10396 msgstr ""
10397
10398 #. type: =head2
10399 #: ../fish/guestfish-actions.pod:2203
10400 msgid "inspect-get-mountpoints"
10401 msgstr ""
10402
10403 #. type: verbatim
10404 #: ../fish/guestfish-actions.pod:2205
10405 #, no-wrap
10406 msgid ""
10407 " inspect-get-mountpoints root\n"
10408 "\n"
10409 msgstr ""
10410
10411 #. type: textblock
10412 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3426
10413 msgid ""
10414 "This returns a hash of where we think the filesystems associated with this "
10415 "operating system should be mounted.  Callers should note that this is at "
10416 "best an educated guess made by reading configuration files such as C</etc/"
10417 "fstab>.  I<In particular note> that this may return filesystems which are "
10418 "non-existent or not mountable and callers should be prepared to handle or "
10419 "ignore failures if they try to mount them."
10420 msgstr ""
10421
10422 #. type: textblock
10423 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3435
10424 msgid ""
10425 "Each element in the returned hashtable has a key which is the path of the "
10426 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10427 "mounted there (eg. C</dev/sda1>)."
10428 msgstr ""
10429
10430 #. type: textblock
10431 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3440
10432 msgid ""
10433 "Non-mounted devices such as swap devices are I<not> returned in this list."
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2224
10438 msgid ""
10439 "For operating systems like Windows which still use drive letters, this call "
10440 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10441 "information about the mapping of drive letters to partitions, see L</inspect-"
10442 "get-drive-mappings>."
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../fish/guestfish-actions.pod:2230
10447 msgid ""
10448 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10449 "get-filesystems>."
10450 msgstr ""
10451
10452 #. type: =head2
10453 #: ../fish/guestfish-actions.pod:2233
10454 msgid "inspect-get-package-format"
10455 msgstr ""
10456
10457 #. type: verbatim
10458 #: ../fish/guestfish-actions.pod:2235
10459 #, no-wrap
10460 msgid ""
10461 " inspect-get-package-format root\n"
10462 "\n"
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2237
10467 msgid ""
10468 "This function and L</inspect-get-package-management> return the package "
10469 "format and package management tool used by the inspected operating system.  "
10470 "For example for Fedora these functions would return C<rpm> (package format) "
10471 "and C<yum> (package management)."
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3472
10476 msgid ""
10477 "This returns the string C<unknown> if we could not determine the package "
10478 "format I<or> if the operating system does not have a real packaging system "
10479 "(eg. Windows)."
10480 msgstr ""
10481
10482 #. type: textblock
10483 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3476
10484 msgid ""
10485 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10486 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10487 msgstr ""
10488
10489 #. type: =head2
10490 #: ../fish/guestfish-actions.pod:2253
10491 msgid "inspect-get-package-management"
10492 msgstr ""
10493
10494 #. type: verbatim
10495 #: ../fish/guestfish-actions.pod:2255
10496 #, no-wrap
10497 msgid ""
10498 " inspect-get-package-management root\n"
10499 "\n"
10500 msgstr ""
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:2257
10504 msgid ""
10505 "L</inspect-get-package-format> and this function return the package format "
10506 "and package management tool used by the inspected operating system.  For "
10507 "example for Fedora these functions would return C<rpm> (package format) and "
10508 "C<yum> (package management)."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3499
10513 msgid ""
10514 "This returns the string C<unknown> if we could not determine the package "
10515 "management tool I<or> if the operating system does not have a real packaging "
10516 "system (eg. Windows)."
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3503
10521 msgid ""
10522 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10523 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10524 "versions of libguestfs may return other strings."
10525 msgstr ""
10526
10527 #. type: =head2
10528 #: ../fish/guestfish-actions.pod:2274
10529 msgid "inspect-get-product-name"
10530 msgstr ""
10531
10532 #. type: verbatim
10533 #: ../fish/guestfish-actions.pod:2276
10534 #, no-wrap
10535 msgid ""
10536 " inspect-get-product-name root\n"
10537 "\n"
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3521
10542 msgid ""
10543 "This returns the product name of the inspected operating system.  The "
10544 "product name is generally some freeform string which can be displayed to the "
10545 "user, but should not be parsed by programs."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3526
10550 msgid ""
10551 "If the product name could not be determined, then the string C<unknown> is "
10552 "returned."
10553 msgstr ""
10554
10555 #. type: =head2
10556 #: ../fish/guestfish-actions.pod:2288
10557 msgid "inspect-get-product-variant"
10558 msgstr ""
10559
10560 #. type: verbatim
10561 #: ../fish/guestfish-actions.pod:2290
10562 #, no-wrap
10563 msgid ""
10564 " inspect-get-product-variant root\n"
10565 "\n"
10566 msgstr ""
10567
10568 #. type: textblock
10569 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3542
10570 msgid "This returns the product variant of the inspected operating system."
10571 msgstr ""
10572
10573 #. type: textblock
10574 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3545
10575 msgid ""
10576 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10577 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10578 "is usually a string such as C<Client> or C<Server> (other values are "
10579 "possible).  This can be used to distinguish consumer and enterprise versions "
10580 "of Windows that have the same version number (for example, Windows 7 and "
10581 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10582 "the latter is C<Server>)."
10583 msgstr ""
10584
10585 #. type: textblock
10586 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3554
10587 msgid ""
10588 "For enterprise Linux guests, in future we intend this to return the product "
10589 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10590 "implemented at present."
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3558
10595 msgid ""
10596 "If the product variant could not be determined, then the string C<unknown> "
10597 "is returned."
10598 msgstr ""
10599
10600 #. type: textblock
10601 #: ../fish/guestfish-actions.pod:2311
10602 msgid ""
10603 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10604 "get-product-name>, L</inspect-get-major-version>."
10605 msgstr ""
10606
10607 #. type: =head2
10608 #: ../fish/guestfish-actions.pod:2315
10609 msgid "inspect-get-roots"
10610 msgstr ""
10611
10612 #. type: verbatim
10613 #: ../fish/guestfish-actions.pod:2317
10614 #, no-wrap
10615 msgid ""
10616 " inspect-get-roots\n"
10617 "\n"
10618 msgstr ""
10619
10620 #. type: textblock
10621 #: ../fish/guestfish-actions.pod:2319
10622 msgid ""
10623 "This function is a convenient way to get the list of root devices, as "
10624 "returned from a previous call to L</inspect-os>, but without redoing the "
10625 "whole inspection process."
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:2323
10630 msgid ""
10631 "This returns an empty list if either no root devices were found or the "
10632 "caller has not called L</inspect-os>."
10633 msgstr ""
10634
10635 #. type: =head2
10636 #: ../fish/guestfish-actions.pod:2328
10637 msgid "inspect-get-type"
10638 msgstr ""
10639
10640 #. type: verbatim
10641 #: ../fish/guestfish-actions.pod:2330
10642 #, no-wrap
10643 msgid ""
10644 " inspect-get-type root\n"
10645 "\n"
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3596
10650 msgid ""
10651 "This returns the type of the inspected operating system.  Currently defined "
10652 "types are:"
10653 msgstr ""
10654
10655 #. type: =item
10656 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3601
10657 msgid "\"linux\""
10658 msgstr ""
10659
10660 #. type: textblock
10661 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3603
10662 msgid "Any Linux-based operating system."
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3607
10667 msgid "Any Microsoft Windows operating system."
10668 msgstr ""
10669
10670 #. type: =item
10671 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3609
10672 msgid "\"freebsd\""
10673 msgstr ""
10674
10675 #. type: textblock
10676 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3611
10677 msgid "FreeBSD."
10678 msgstr ""
10679
10680 #. type: =item
10681 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3613
10682 msgid "\"netbsd\""
10683 msgstr ""
10684
10685 #. type: textblock
10686 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3615
10687 msgid "NetBSD."
10688 msgstr ""
10689
10690 #. type: textblock
10691 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3619
10692 msgid "The operating system type could not be determined."
10693 msgstr ""
10694
10695 #. type: =head2
10696 #: ../fish/guestfish-actions.pod:2364
10697 msgid "inspect-get-windows-current-control-set"
10698 msgstr ""
10699
10700 #. type: verbatim
10701 #: ../fish/guestfish-actions.pod:2366
10702 #, no-wrap
10703 msgid ""
10704 " inspect-get-windows-current-control-set root\n"
10705 "\n"
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3639
10710 msgid ""
10711 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10712 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3642
10717 msgid ""
10718 "This call assumes that the guest is Windows and that the Registry could be "
10719 "examined by inspection.  If this is not the case then an error is returned."
10720 msgstr ""
10721
10722 #. type: =head2
10723 #: ../fish/guestfish-actions.pod:2377
10724 msgid "inspect-get-windows-systemroot"
10725 msgstr ""
10726
10727 #. type: verbatim
10728 #: ../fish/guestfish-actions.pod:2379
10729 #, no-wrap
10730 msgid ""
10731 " inspect-get-windows-systemroot root\n"
10732 "\n"
10733 msgstr ""
10734
10735 #. type: textblock
10736 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3659
10737 msgid ""
10738 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10739 "is a directory path such as C</WINDOWS>."
10740 msgstr ""
10741
10742 #. type: textblock
10743 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3662
10744 msgid ""
10745 "This call assumes that the guest is Windows and that the systemroot could be "
10746 "determined by inspection.  If this is not the case then an error is returned."
10747 msgstr ""
10748
10749 #. type: =head2
10750 #: ../fish/guestfish-actions.pod:2390
10751 msgid "inspect-is-live"
10752 msgstr ""
10753
10754 #. type: verbatim
10755 #: ../fish/guestfish-actions.pod:2392
10756 #, no-wrap
10757 msgid ""
10758 " inspect-is-live root\n"
10759 "\n"
10760 msgstr ""
10761
10762 #. type: textblock
10763 #: ../fish/guestfish-actions.pod:2394
10764 msgid ""
10765 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10766 "then this returns true if a live image was detected on the disk."
10767 msgstr ""
10768
10769 #. type: =head2
10770 #: ../fish/guestfish-actions.pod:2400
10771 msgid "inspect-is-multipart"
10772 msgstr ""
10773
10774 #. type: verbatim
10775 #: ../fish/guestfish-actions.pod:2402
10776 #, no-wrap
10777 msgid ""
10778 " inspect-is-multipart root\n"
10779 "\n"
10780 msgstr ""
10781
10782 #. type: textblock
10783 #: ../fish/guestfish-actions.pod:2404
10784 msgid ""
10785 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10786 "then this returns true if the disk is part of a set."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:2410
10791 msgid "inspect-is-netinst"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:2412
10796 #, no-wrap
10797 msgid ""
10798 " inspect-is-netinst root\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:2414
10804 msgid ""
10805 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10806 "then this returns true if the disk is a network installer, ie. not a self-"
10807 "contained install CD but one which is likely to require network access to "
10808 "complete the install."
10809 msgstr ""
10810
10811 #. type: =head2
10812 #: ../fish/guestfish-actions.pod:2422
10813 msgid "inspect-list-applications"
10814 msgstr ""
10815
10816 #. type: verbatim
10817 #: ../fish/guestfish-actions.pod:2424
10818 #, no-wrap
10819 msgid ""
10820 " inspect-list-applications root\n"
10821 "\n"
10822 msgstr ""
10823
10824 #. type: textblock
10825 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3729
10826 msgid "Return the list of applications installed in the operating system."
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../fish/guestfish-actions.pod:2428
10831 msgid ""
10832 "I<Note:> This call works differently from other parts of the inspection "
10833 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10834 "then mount up the disks, before calling this.  Listing applications is a "
10835 "significantly more difficult operation which requires access to the full "
10836 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10837 "are just returning data cached in the libguestfs handle, this call actually "
10838 "reads parts of the mounted filesystems during the call."
10839 msgstr ""
10840
10841 #. type: textblock
10842 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3741
10843 msgid ""
10844 "This returns an empty list if the inspection code was not able to determine "
10845 "the list of applications."
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3744
10850 msgid "The application structure contains the following fields:"
10851 msgstr ""
10852
10853 #. type: =item
10854 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3748
10855 msgid "C<app_name>"
10856 msgstr ""
10857
10858 #. type: textblock
10859 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3750
10860 msgid ""
10861 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10862 "guests, this is the package name."
10863 msgstr ""
10864
10865 #. type: =item
10866 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3753
10867 msgid "C<app_display_name>"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3755
10872 msgid ""
10873 "The display name of the application, sometimes localized to the install "
10874 "language of the guest operating system."
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3758
10879 msgid ""
10880 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10881 "to display something can use C<app_name> instead."
10882 msgstr ""
10883
10884 #. type: =item
10885 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3761
10886 msgid "C<app_epoch>"
10887 msgstr ""
10888
10889 #. type: textblock
10890 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3763
10891 msgid ""
10892 "For package managers which use epochs, this contains the epoch of the "
10893 "package (an integer).  If unavailable, this is returned as C<0>."
10894 msgstr ""
10895
10896 #. type: =item
10897 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3766
10898 msgid "C<app_version>"
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3768
10903 msgid ""
10904 "The version string of the application or package.  If unavailable this is "
10905 "returned as an empty string C<\"\">."
10906 msgstr ""
10907
10908 #. type: =item
10909 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3771
10910 msgid "C<app_release>"
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3773
10915 msgid ""
10916 "The release string of the application or package, for package managers that "
10917 "use this.  If unavailable this is returned as an empty string C<\"\">."
10918 msgstr ""
10919
10920 #. type: =item
10921 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3777
10922 msgid "C<app_install_path>"
10923 msgstr ""
10924
10925 #. type: textblock
10926 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3779
10927 msgid ""
10928 "The installation path of the application (on operating systems such as "
10929 "Windows which use installation paths).  This path is in the format used by "
10930 "the guest operating system, it is not a libguestfs path."
10931 msgstr ""
10932
10933 #. type: textblock
10934 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3784
10935 msgid "If unavailable this is returned as an empty string C<\"\">."
10936 msgstr ""
10937
10938 #. type: =item
10939 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3786
10940 msgid "C<app_trans_path>"
10941 msgstr ""
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3788
10945 msgid ""
10946 "The install path translated into a libguestfs path.  If unavailable this is "
10947 "returned as an empty string C<\"\">."
10948 msgstr ""
10949
10950 #. type: =item
10951 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3791
10952 msgid "C<app_publisher>"
10953 msgstr ""
10954
10955 #. type: textblock
10956 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3793
10957 msgid ""
10958 "The name of the publisher of the application, for package managers that use "
10959 "this.  If unavailable this is returned as an empty string C<\"\">."
10960 msgstr ""
10961
10962 #. type: =item
10963 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3797
10964 msgid "C<app_url>"
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3799
10969 msgid ""
10970 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10971 "returned as an empty string C<\"\">."
10972 msgstr ""
10973
10974 #. type: =item
10975 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3802
10976 msgid "C<app_source_package>"
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3804
10981 msgid ""
10982 "For packaging systems which support this, the name of the source package.  "
10983 "If unavailable this is returned as an empty string C<\"\">."
10984 msgstr ""
10985
10986 #. type: =item
10987 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3807
10988 msgid "C<app_summary>"
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3809
10993 msgid ""
10994 "A short (usually one line) description of the application or package.  If "
10995 "unavailable this is returned as an empty string C<\"\">."
10996 msgstr ""
10997
10998 #. type: =item
10999 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3812
11000 msgid "C<app_description>"
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3814
11005 msgid ""
11006 "A longer description of the application or package.  If unavailable this is "
11007 "returned as an empty string C<\"\">."
11008 msgstr ""
11009
11010 #. type: =head2
11011 #: ../fish/guestfish-actions.pod:2518
11012 msgid "inspect-os"
11013 msgstr ""
11014
11015 #. type: verbatim
11016 #: ../fish/guestfish-actions.pod:2520
11017 #, no-wrap
11018 msgid ""
11019 " inspect-os\n"
11020 "\n"
11021 msgstr ""
11022
11023 #. type: textblock
11024 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3832
11025 msgid ""
11026 "This function uses other libguestfs functions and certain heuristics to "
11027 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11028 "for operating systems."
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3836
11033 msgid "The list returned is empty if no operating systems were found."
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3838
11038 msgid ""
11039 "If one operating system was found, then this returns a list with a single "
11040 "element, which is the name of the root filesystem of this operating system.  "
11041 "It is also possible for this function to return a list containing more than "
11042 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11043 "element being the root filesystem of one of the operating systems."
11044 msgstr ""
11045
11046 #. type: textblock
11047 #: ../fish/guestfish-actions.pod:2535
11048 msgid ""
11049 "You can pass the root string(s) returned to other L</inspect-get-*> "
11050 "functions in order to query further information about each operating system, "
11051 "such as the name and version."
11052 msgstr ""
11053
11054 #. type: textblock
11055 #: ../fish/guestfish-actions.pod:2540
11056 msgid ""
11057 "This function uses other libguestfs features such as L</mount-ro> and L</"
11058 "umount-all> in order to mount and unmount filesystems and look at the "
11059 "contents.  This should be called with no disks currently mounted.  The "
11060 "function may also use Augeas, so any existing Augeas handle will be closed."
11061 msgstr ""
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3856
11065 msgid ""
11066 "This function cannot decrypt encrypted disks.  The caller must do that first "
11067 "(supplying the necessary keys) if the disk is encrypted."
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11072 #: ../fish/guestfish-actions.pod:2809
11073 msgid "See also L</list-filesystems>."
11074 msgstr ""
11075
11076 #. type: =head2
11077 #: ../fish/guestfish-actions.pod:2554
11078 msgid "is-blockdev"
11079 msgstr ""
11080
11081 #. type: verbatim
11082 #: ../fish/guestfish-actions.pod:2556
11083 #, no-wrap
11084 msgid ""
11085 " is-blockdev path\n"
11086 "\n"
11087 msgstr ""
11088
11089 #. type: textblock
11090 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3876
11091 msgid ""
11092 "This returns C<true> if and only if there is a block device with the given "
11093 "C<path> name."
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11098 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11099 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11100 #: ../fish/guestfish-actions.pod:2660
11101 msgid "See also L</stat>."
11102 msgstr ""
11103
11104 #. type: =head2
11105 #: ../fish/guestfish-actions.pod:2563
11106 msgid "is-busy"
11107 msgstr ""
11108
11109 #. type: verbatim
11110 #: ../fish/guestfish-actions.pod:2565
11111 #, no-wrap
11112 msgid ""
11113 " is-busy\n"
11114 "\n"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3890
11119 msgid ""
11120 "This returns true iff this handle is busy processing a command (in the "
11121 "C<BUSY> state)."
11122 msgstr ""
11123
11124 #. type: =head2
11125 #: ../fish/guestfish-actions.pod:2572
11126 msgid "is-chardev"
11127 msgstr ""
11128
11129 #. type: verbatim
11130 #: ../fish/guestfish-actions.pod:2574
11131 #, no-wrap
11132 msgid ""
11133 " is-chardev path\n"
11134 "\n"
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3905
11139 msgid ""
11140 "This returns C<true> if and only if there is a character device with the "
11141 "given C<path> name."
11142 msgstr ""
11143
11144 #. type: =head2
11145 #: ../fish/guestfish-actions.pod:2581
11146 msgid "is-config"
11147 msgstr ""
11148
11149 #. type: verbatim
11150 #: ../fish/guestfish-actions.pod:2583
11151 #, no-wrap
11152 msgid ""
11153 " is-config\n"
11154 "\n"
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3919
11159 msgid ""
11160 "This returns true iff this handle is being configured (in the C<CONFIG> "
11161 "state)."
11162 msgstr ""
11163
11164 #. type: =head2
11165 #: ../fish/guestfish-actions.pod:2590
11166 msgid "is-dir"
11167 msgstr ""
11168
11169 #. type: verbatim
11170 #: ../fish/guestfish-actions.pod:2592
11171 #, no-wrap
11172 msgid ""
11173 " is-dir path\n"
11174 "\n"
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3934
11179 msgid ""
11180 "This returns C<true> if and only if there is a directory with the given "
11181 "C<path> name.  Note that it returns false for other objects like files."
11182 msgstr ""
11183
11184 #. type: =head2
11185 #: ../fish/guestfish-actions.pod:2600
11186 msgid "is-fifo"
11187 msgstr ""
11188
11189 #. type: verbatim
11190 #: ../fish/guestfish-actions.pod:2602
11191 #, no-wrap
11192 msgid ""
11193 " is-fifo path\n"
11194 "\n"
11195 msgstr ""
11196
11197 #. type: textblock
11198 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3950
11199 msgid ""
11200 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11201 "given C<path> name."
11202 msgstr ""
11203
11204 #. type: =head2
11205 #: ../fish/guestfish-actions.pod:2609
11206 msgid "is-file"
11207 msgstr ""
11208
11209 #. type: verbatim
11210 #: ../fish/guestfish-actions.pod:2611
11211 #, no-wrap
11212 msgid ""
11213 " is-file path\n"
11214 "\n"
11215 msgstr ""
11216
11217 #. type: textblock
11218 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3965
11219 msgid ""
11220 "This returns C<true> if and only if there is a regular file with the given "
11221 "C<path> name.  Note that it returns false for other objects like directories."
11222 msgstr ""
11223
11224 #. type: =head2
11225 #: ../fish/guestfish-actions.pod:2619
11226 msgid "is-launching"
11227 msgstr ""
11228
11229 #. type: verbatim
11230 #: ../fish/guestfish-actions.pod:2621
11231 #, no-wrap
11232 msgid ""
11233 " is-launching\n"
11234 "\n"
11235 msgstr ""
11236
11237 #. type: textblock
11238 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3980
11239 msgid ""
11240 "This returns true iff this handle is launching the subprocess (in the "
11241 "C<LAUNCHING> state)."
11242 msgstr ""
11243
11244 #. type: =head2
11245 #: ../fish/guestfish-actions.pod:2628
11246 msgid "is-lv"
11247 msgstr ""
11248
11249 #. type: verbatim
11250 #: ../fish/guestfish-actions.pod:2630
11251 #, no-wrap
11252 msgid ""
11253 " is-lv device\n"
11254 "\n"
11255 msgstr ""
11256
11257 #. type: textblock
11258 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:3995
11259 msgid ""
11260 "This command tests whether C<device> is a logical volume, and returns true "
11261 "iff this is the case."
11262 msgstr ""
11263
11264 #. type: =head2
11265 #: ../fish/guestfish-actions.pod:2635
11266 msgid "is-ready"
11267 msgstr ""
11268
11269 #. type: verbatim
11270 #: ../fish/guestfish-actions.pod:2637
11271 #, no-wrap
11272 msgid ""
11273 " is-ready\n"
11274 "\n"
11275 msgstr ""
11276
11277 #. type: textblock
11278 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4007
11279 msgid ""
11280 "This returns true iff this handle is ready to accept commands (in the "
11281 "C<READY> state)."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../fish/guestfish-actions.pod:2644
11286 msgid "is-socket"
11287 msgstr ""
11288
11289 #. type: verbatim
11290 #: ../fish/guestfish-actions.pod:2646
11291 #, no-wrap
11292 msgid ""
11293 " is-socket path\n"
11294 "\n"
11295 msgstr ""
11296
11297 #. type: textblock
11298 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4022
11299 msgid ""
11300 "This returns C<true> if and only if there is a Unix domain socket with the "
11301 "given C<path> name."
11302 msgstr ""
11303
11304 #. type: =head2
11305 #: ../fish/guestfish-actions.pod:2653
11306 msgid "is-symlink"
11307 msgstr ""
11308
11309 #. type: verbatim
11310 #: ../fish/guestfish-actions.pod:2655
11311 #, no-wrap
11312 msgid ""
11313 " is-symlink path\n"
11314 "\n"
11315 msgstr ""
11316
11317 #. type: textblock
11318 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4037
11319 msgid ""
11320 "This returns C<true> if and only if there is a symbolic link with the given "
11321 "C<path> name."
11322 msgstr ""
11323
11324 #. type: =head2
11325 #: ../fish/guestfish-actions.pod:2662
11326 msgid "is-zero"
11327 msgstr ""
11328
11329 #. type: verbatim
11330 #: ../fish/guestfish-actions.pod:2664
11331 #, no-wrap
11332 msgid ""
11333 " is-zero path\n"
11334 "\n"
11335 msgstr ""
11336
11337 #. type: textblock
11338 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4052
11339 msgid ""
11340 "This returns true iff the file exists and the file is empty or it contains "
11341 "all zero bytes."
11342 msgstr ""
11343
11344 #. type: =head2
11345 #: ../fish/guestfish-actions.pod:2669
11346 msgid "is-zero-device"
11347 msgstr ""
11348
11349 #. type: verbatim
11350 #: ../fish/guestfish-actions.pod:2671
11351 #, no-wrap
11352 msgid ""
11353 " is-zero-device device\n"
11354 "\n"
11355 msgstr ""
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4065
11359 msgid "This returns true iff the device exists and contains all zero bytes."
11360 msgstr ""
11361
11362 #. type: textblock
11363 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4067
11364 msgid "Note that for large devices this can take a long time to run."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2677
11369 msgid "kill-subprocess"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2679
11374 #, no-wrap
11375 msgid ""
11376 " kill-subprocess\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4078
11382 msgid "This kills the qemu subprocess.  You should never need to call this."
11383 msgstr ""
11384
11385 #. type: =head2
11386 #: ../fish/guestfish-actions.pod:2683
11387 msgid "launch"
11388 msgstr ""
11389
11390 #. type: =head2
11391 #: ../fish/guestfish-actions.pod:2685
11392 msgid "run"
11393 msgstr ""
11394
11395 #. type: verbatim
11396 #: ../fish/guestfish-actions.pod:2687
11397 #, no-wrap
11398 msgid ""
11399 " launch\n"
11400 "\n"
11401 msgstr ""
11402
11403 #. type: textblock
11404 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4089
11405 msgid ""
11406 "Internally libguestfs is implemented by running a virtual machine using "
11407 "L<qemu(1)>."
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4092
11412 msgid ""
11413 "You should call this after configuring the handle (eg. adding drives) but "
11414 "before performing any actions."
11415 msgstr ""
11416
11417 #. type: =head2
11418 #: ../fish/guestfish-actions.pod:2695
11419 msgid "lchown"
11420 msgstr ""
11421
11422 #. type: verbatim
11423 #: ../fish/guestfish-actions.pod:2697
11424 #, no-wrap
11425 msgid ""
11426 " lchown owner group path\n"
11427 "\n"
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:2699
11432 msgid ""
11433 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11434 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11435 "target."
11436 msgstr ""
11437
11438 #. type: =head2
11439 #: ../fish/guestfish-actions.pod:2707
11440 msgid "lgetxattr"
11441 msgstr ""
11442
11443 #. type: verbatim
11444 #: ../fish/guestfish-actions.pod:2709
11445 #, no-wrap
11446 msgid ""
11447 " lgetxattr path name\n"
11448 "\n"
11449 msgstr ""
11450
11451 #. type: textblock
11452 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4132
11453 msgid ""
11454 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11455 "is a symlink, then this call returns an extended attribute from the symlink."
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../fish/guestfish-actions.pod:2725
11460 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11461 msgstr ""
11462
11463 #. type: =head2
11464 #: ../fish/guestfish-actions.pod:2727
11465 msgid "lgetxattrs"
11466 msgstr ""
11467
11468 #. type: verbatim
11469 #: ../fish/guestfish-actions.pod:2729
11470 #, no-wrap
11471 msgid ""
11472 " lgetxattrs path\n"
11473 "\n"
11474 msgstr ""
11475
11476 #. type: textblock
11477 #: ../fish/guestfish-actions.pod:2731
11478 msgid ""
11479 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11480 "it returns the extended attributes of the link itself."
11481 msgstr ""
11482
11483 #. type: =head2
11484 #: ../fish/guestfish-actions.pod:2735
11485 msgid "list-9p"
11486 msgstr ""
11487
11488 #. type: verbatim
11489 #: ../fish/guestfish-actions.pod:2737
11490 #, no-wrap
11491 msgid ""
11492 " list-9p\n"
11493 "\n"
11494 msgstr ""
11495
11496 #. type: textblock
11497 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4175
11498 msgid ""
11499 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11500 "returned."
11501 msgstr ""
11502
11503 #. type: =head2
11504 #: ../fish/guestfish-actions.pod:2742
11505 msgid "list-devices"
11506 msgstr ""
11507
11508 #. type: verbatim
11509 #: ../fish/guestfish-actions.pod:2744
11510 #, no-wrap
11511 msgid ""
11512 " list-devices\n"
11513 "\n"
11514 msgstr ""
11515
11516 #. type: textblock
11517 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4189
11518 msgid "List all the block devices."
11519 msgstr ""
11520
11521 #. type: textblock
11522 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4191
11523 msgid "The full block device names are returned, eg. C</dev/sda>."
11524 msgstr ""
11525
11526 #. type: =head2
11527 #: ../fish/guestfish-actions.pod:2752
11528 msgid "list-dm-devices"
11529 msgstr ""
11530
11531 #. type: verbatim
11532 #: ../fish/guestfish-actions.pod:2754
11533 #, no-wrap
11534 msgid ""
11535 " list-dm-devices\n"
11536 "\n"
11537 msgstr ""
11538
11539 #. type: textblock
11540 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4206
11541 msgid "List all device mapper devices."
11542 msgstr ""
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:2758
11546 msgid ""
11547 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11548 "previous call to L</luks-open>."
11549 msgstr ""
11550
11551 #. type: textblock
11552 #: ../fish/guestfish-actions.pod:2761
11553 msgid ""
11554 "Device mapper devices which correspond to logical volumes are I<not> "
11555 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11556 msgstr ""
11557
11558 #. type: =head2
11559 #: ../fish/guestfish-actions.pod:2765
11560 msgid "list-filesystems"
11561 msgstr ""
11562
11563 #. type: verbatim
11564 #: ../fish/guestfish-actions.pod:2767
11565 #, no-wrap
11566 msgid ""
11567 " list-filesystems\n"
11568 "\n"
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4226
11573 msgid ""
11574 "This inspection command looks for filesystems on partitions, block devices "
11575 "and logical volumes, returning a list of devices containing filesystems and "
11576 "their type."
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4230
11581 msgid ""
11582 "The return value is a hash, where the keys are the devices containing "
11583 "filesystems, and the values are the filesystem types.  For example:"
11584 msgstr ""
11585
11586 #. type: verbatim
11587 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4234
11588 #, no-wrap
11589 msgid ""
11590 " \"/dev/sda1\" => \"ntfs\"\n"
11591 " \"/dev/sda2\" => \"ext2\"\n"
11592 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11593 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11594 "\n"
11595 msgstr ""
11596
11597 #. type: textblock
11598 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4239
11599 msgid ""
11600 "The value can have the special value \"unknown\", meaning the content of the "
11601 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:2786
11606 msgid ""
11607 "This command runs other libguestfs commands, which might include L</mount> "
11608 "and L</umount>, and therefore you should use this soon after launch and only "
11609 "when nothing is mounted."
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../fish/guestfish-actions.pod:2790
11614 msgid ""
11615 "Not all of the filesystems returned will be mountable.  In particular, swap "
11616 "partitions are returned in the list.  Also this command does not check that "
11617 "each filesystem found is valid and mountable, and some filesystems might be "
11618 "mountable but require special options.  Filesystems may not all belong to a "
11619 "single logical operating system (use L</inspect-os> to look for OSes)."
11620 msgstr ""
11621
11622 #. type: =head2
11623 #: ../fish/guestfish-actions.pod:2798
11624 msgid "list-partitions"
11625 msgstr ""
11626
11627 #. type: verbatim
11628 #: ../fish/guestfish-actions.pod:2800
11629 #, no-wrap
11630 msgid ""
11631 " list-partitions\n"
11632 "\n"
11633 msgstr ""
11634
11635 #. type: textblock
11636 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4268
11637 msgid "List all the partitions detected on all block devices."
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4270
11642 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11643 msgstr ""
11644
11645 #. type: textblock
11646 #: ../fish/guestfish-actions.pod:2806
11647 msgid ""
11648 "This does not return logical volumes.  For that you will need to call L</"
11649 "lvs>."
11650 msgstr ""
11651
11652 #. type: =head2
11653 #: ../fish/guestfish-actions.pod:2811
11654 msgid "ll"
11655 msgstr ""
11656
11657 #. type: verbatim
11658 #: ../fish/guestfish-actions.pod:2813
11659 #, no-wrap
11660 msgid ""
11661 " ll directory\n"
11662 "\n"
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4289
11667 msgid ""
11668 "List the files in C<directory> (relative to the root directory, there is no "
11669 "cwd) in the format of 'ls -la'."
11670 msgstr ""
11671
11672 #. type: textblock
11673 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4292
11674 msgid ""
11675 "This command is mostly useful for interactive sessions.  It is I<not> "
11676 "intended that you try to parse the output string."
11677 msgstr ""
11678
11679 #. type: =head2
11680 #: ../fish/guestfish-actions.pod:2821
11681 msgid "ln"
11682 msgstr ""
11683
11684 #. type: verbatim
11685 #: ../fish/guestfish-actions.pod:2823
11686 #, no-wrap
11687 msgid ""
11688 " ln target linkname\n"
11689 "\n"
11690 msgstr ""
11691
11692 #. type: textblock
11693 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4307
11694 msgid "This command creates a hard link using the C<ln> command."
11695 msgstr ""
11696
11697 #. type: =head2
11698 #: ../fish/guestfish-actions.pod:2827
11699 msgid "ln-f"
11700 msgstr ""
11701
11702 #. type: verbatim
11703 #: ../fish/guestfish-actions.pod:2829
11704 #, no-wrap
11705 msgid ""
11706 " ln-f target linkname\n"
11707 "\n"
11708 msgstr ""
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4320
11712 msgid ""
11713 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11714 "option removes the link (C<linkname>) if it exists already."
11715 msgstr ""
11716
11717 #. type: =head2
11718 #: ../fish/guestfish-actions.pod:2834
11719 msgid "ln-s"
11720 msgstr ""
11721
11722 #. type: verbatim
11723 #: ../fish/guestfish-actions.pod:2836
11724 #, no-wrap
11725 msgid ""
11726 " ln-s target linkname\n"
11727 "\n"
11728 msgstr ""
11729
11730 #. type: textblock
11731 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4334
11732 msgid "This command creates a symbolic link using the C<ln -s> command."
11733 msgstr ""
11734
11735 #. type: =head2
11736 #: ../fish/guestfish-actions.pod:2840
11737 msgid "ln-sf"
11738 msgstr ""
11739
11740 #. type: verbatim
11741 #: ../fish/guestfish-actions.pod:2842
11742 #, no-wrap
11743 msgid ""
11744 " ln-sf target linkname\n"
11745 "\n"
11746 msgstr ""
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4347
11750 msgid ""
11751 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11752 "option removes the link (C<linkname>) if it exists already."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../fish/guestfish-actions.pod:2847
11757 msgid "lremovexattr"
11758 msgstr ""
11759
11760 #. type: verbatim
11761 #: ../fish/guestfish-actions.pod:2849
11762 #, no-wrap
11763 msgid ""
11764 " lremovexattr xattr path\n"
11765 "\n"
11766 msgstr ""
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:2851
11770 msgid ""
11771 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11772 "it removes an extended attribute of the link itself."
11773 msgstr ""
11774
11775 #. type: =head2
11776 #: ../fish/guestfish-actions.pod:2855
11777 msgid "ls"
11778 msgstr ""
11779
11780 #. type: verbatim
11781 #: ../fish/guestfish-actions.pod:2857
11782 #, no-wrap
11783 msgid ""
11784 " ls directory\n"
11785 "\n"
11786 msgstr ""
11787
11788 #. type: textblock
11789 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4375
11790 msgid ""
11791 "List the files in C<directory> (relative to the root directory, there is no "
11792 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11793 msgstr ""
11794
11795 #. type: textblock
11796 #: ../fish/guestfish-actions.pod:2863
11797 msgid ""
11798 "This command is mostly useful for interactive sessions.  Programs should "
11799 "probably use L</readdir> instead."
11800 msgstr ""
11801
11802 #. type: =head2
11803 #: ../fish/guestfish-actions.pod:2866
11804 msgid "lsetxattr"
11805 msgstr ""
11806
11807 #. type: verbatim
11808 #: ../fish/guestfish-actions.pod:2868
11809 #, no-wrap
11810 msgid ""
11811 " lsetxattr xattr val vallen path\n"
11812 "\n"
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:2870
11817 msgid ""
11818 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11819 "sets an extended attribute of the link itself."
11820 msgstr ""
11821
11822 #. type: =head2
11823 #: ../fish/guestfish-actions.pod:2874
11824 msgid "lstat"
11825 msgstr ""
11826
11827 #. type: verbatim
11828 #: ../fish/guestfish-actions.pod:2876
11829 #, no-wrap
11830 msgid ""
11831 " lstat path\n"
11832 "\n"
11833 msgstr ""
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4702
11837 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:7214
11838 msgid "Returns file information for the given C<path>."
11839 msgstr ""
11840
11841 #. type: textblock
11842 #: ../fish/guestfish-actions.pod:2880
11843 msgid ""
11844 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11845 "the link is stat-ed, not the file it refers to."
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4417
11850 msgid "This is the same as the C<lstat(2)> system call."
11851 msgstr ""
11852
11853 #. type: =head2
11854 #: ../fish/guestfish-actions.pod:2886
11855 msgid "lstatlist"
11856 msgstr ""
11857
11858 #. type: verbatim
11859 #: ../fish/guestfish-actions.pod:2888
11860 #, no-wrap
11861 msgid ""
11862 " lstatlist path 'names ...'\n"
11863 "\n"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:2890
11868 msgid ""
11869 "This call allows you to perform the L</lstat> operation on multiple files, "
11870 "where all files are in the directory C<path>.  C<names> is the list of files "
11871 "from this directory."
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4436
11876 msgid ""
11877 "On return you get a list of stat structs, with a one-to-one correspondence "
11878 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11879 "then the C<ino> field of that structure is set to C<-1>."
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../fish/guestfish-actions.pod:2899
11884 msgid ""
11885 "This call is intended for programs that want to efficiently list a directory "
11886 "contents without making many round-trips.  See also L</lxattrlist> for a "
11887 "similarly efficient call for getting extended attributes.  Very long "
11888 "directory listings might cause the protocol message size to be exceeded, "
11889 "causing this call to fail.  The caller must split up such requests into "
11890 "smaller groups of names."
11891 msgstr ""
11892
11893 #. type: =head2
11894 #: ../fish/guestfish-actions.pod:2907
11895 msgid "luks-add-key"
11896 msgstr ""
11897
11898 #. type: verbatim
11899 #: ../fish/guestfish-actions.pod:2909
11900 #, no-wrap
11901 msgid ""
11902 " luks-add-key device keyslot\n"
11903 "\n"
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4464
11908 msgid ""
11909 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11910 "existing key, and is used to access the device.  C<newkey> is the new key to "
11911 "add.  C<keyslot> is the key slot that will be replaced."
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2916
11916 msgid ""
11917 "Note that if C<keyslot> already contains a key, then this command will "
11918 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
11923 #: ../fish/guestfish-actions.pod:2955 ../fish/guestfish-actions.pod:2969
11924 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
11925 msgid ""
11926 "This command has one or more key or passphrase parameters.  Guestfish will "
11927 "prompt for these separately."
11928 msgstr ""
11929
11930 #. type: =head2
11931 #: ../fish/guestfish-actions.pod:2923
11932 msgid "luks-close"
11933 msgstr ""
11934
11935 #. type: verbatim
11936 #: ../fish/guestfish-actions.pod:2925
11937 #, no-wrap
11938 msgid ""
11939 " luks-close device\n"
11940 "\n"
11941 msgstr ""
11942
11943 #. type: textblock
11944 #: ../fish/guestfish-actions.pod:2927
11945 msgid ""
11946 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11947 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11948 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11949 "block device."
11950 msgstr ""
11951
11952 #. type: =head2
11953 #: ../fish/guestfish-actions.pod:2933
11954 msgid "luks-format"
11955 msgstr ""
11956
11957 #. type: verbatim
11958 #: ../fish/guestfish-actions.pod:2935
11959 #, no-wrap
11960 msgid ""
11961 " luks-format device keyslot\n"
11962 "\n"
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4505
11967 msgid ""
11968 "This command erases existing data on C<device> and formats the device as a "
11969 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11970 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../fish/guestfish-actions.pod:2945 ../fish/guestfish-actions.pod:2958
11975 #: ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3696
11976 #: ../fish/guestfish-actions.pod:4236 ../fish/guestfish-actions.pod:4573
11977 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4618
11978 #: ../fish/guestfish-actions.pod:5364 ../src/guestfs-actions.pod:4512
11979 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4678
11980 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:6577
11981 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7058
11982 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:8290
11983 msgid ""
11984 "B<This command is dangerous.  Without careful use you can easily destroy all "
11985 "your data>."
11986 msgstr ""
11987
11988 #. type: =head2
11989 #: ../fish/guestfish-actions.pod:2948
11990 msgid "luks-format-cipher"
11991 msgstr ""
11992
11993 #. type: verbatim
11994 #: ../fish/guestfish-actions.pod:2950
11995 #, no-wrap
11996 msgid ""
11997 " luks-format-cipher device keyslot cipher\n"
11998 "\n"
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:2952
12003 msgid ""
12004 "This command is the same as L</luks-format> but it also allows you to set "
12005 "the C<cipher> used."
12006 msgstr ""
12007
12008 #. type: =head2
12009 #: ../fish/guestfish-actions.pod:2961
12010 msgid "luks-kill-slot"
12011 msgstr ""
12012
12013 #. type: verbatim
12014 #: ../fish/guestfish-actions.pod:2963
12015 #, no-wrap
12016 msgid ""
12017 " luks-kill-slot device keyslot\n"
12018 "\n"
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4552
12023 msgid ""
12024 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12025 "device C<device>.  C<key> must be one of the I<other> keys."
12026 msgstr ""
12027
12028 #. type: =head2
12029 #: ../fish/guestfish-actions.pod:2972
12030 msgid "luks-open"
12031 msgstr ""
12032
12033 #. type: verbatim
12034 #: ../fish/guestfish-actions.pod:2974
12035 #, no-wrap
12036 msgid ""
12037 " luks-open device mapname\n"
12038 "\n"
12039 msgstr ""
12040
12041 #. type: textblock
12042 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4572
12043 msgid ""
12044 "This command opens a block device which has been encrypted according to the "
12045 "Linux Unified Key Setup (LUKS) standard."
12046 msgstr ""
12047
12048 #. type: textblock
12049 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4575
12050 msgid "C<device> is the encrypted block device or partition."
12051 msgstr ""
12052
12053 #. type: textblock
12054 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4577
12055 msgid ""
12056 "The caller must supply one of the keys associated with the LUKS block "
12057 "device, in the C<key> parameter."
12058 msgstr ""
12059
12060 #. type: textblock
12061 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4580
12062 msgid ""
12063 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12064 "writes to this block device are decrypted from and encrypted to the "
12065 "underlying C<device> respectively."
12066 msgstr ""
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:2988
12070 msgid ""
12071 "If this block device contains LVM volume groups, then calling L</vgscan> "
12072 "followed by L</vg-activate-all> will make them visible."
12073 msgstr ""
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:2992
12077 msgid "Use L</list-dm-devices> to list all device mapper devices."
12078 msgstr ""
12079
12080 #. type: =head2
12081 #: ../fish/guestfish-actions.pod:2998
12082 msgid "luks-open-ro"
12083 msgstr ""
12084
12085 #. type: verbatim
12086 #: ../fish/guestfish-actions.pod:3000
12087 #, no-wrap
12088 msgid ""
12089 " luks-open-ro device mapname\n"
12090 "\n"
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3002
12095 msgid ""
12096 "This is the same as L</luks-open> except that a read-only mapping is created."
12097 msgstr ""
12098
12099 #. type: =head2
12100 #: ../fish/guestfish-actions.pod:3008
12101 msgid "lvcreate"
12102 msgstr ""
12103
12104 #. type: verbatim
12105 #: ../fish/guestfish-actions.pod:3010
12106 #, no-wrap
12107 msgid ""
12108 " lvcreate logvol volgroup mbytes\n"
12109 "\n"
12110 msgstr ""
12111
12112 #. type: textblock
12113 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4626
12114 msgid ""
12115 "This creates an LVM logical volume called C<logvol> on the volume group "
12116 "C<volgroup>, with C<size> megabytes."
12117 msgstr ""
12118
12119 #. type: =head2
12120 #: ../fish/guestfish-actions.pod:3015
12121 msgid "lvm-canonical-lv-name"
12122 msgstr ""
12123
12124 #. type: verbatim
12125 #: ../fish/guestfish-actions.pod:3017
12126 #, no-wrap
12127 msgid ""
12128 " lvm-canonical-lv-name lvname\n"
12129 "\n"
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4639
12134 msgid ""
12135 "This converts alternative naming schemes for LVs that you might find to the "
12136 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12137 "LV>."
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4643
12142 msgid ""
12143 "This command returns an error if the C<lvname> parameter does not refer to a "
12144 "logical volume."
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:3026
12149 msgid "See also L</is-lv>."
12150 msgstr ""
12151
12152 #. type: =head2
12153 #: ../fish/guestfish-actions.pod:3028
12154 msgid "lvm-clear-filter"
12155 msgstr ""
12156
12157 #. type: verbatim
12158 #: ../fish/guestfish-actions.pod:3030
12159 #, no-wrap
12160 msgid ""
12161 " lvm-clear-filter\n"
12162 "\n"
12163 msgstr ""
12164
12165 #. type: textblock
12166 #: ../fish/guestfish-actions.pod:3032
12167 msgid ""
12168 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12169 "block device."
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3066
12174 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4703
12175 msgid ""
12176 "This command also clears the LVM cache and performs a volume group scan."
12177 msgstr ""
12178
12179 #. type: =head2
12180 #: ../fish/guestfish-actions.pod:3038
12181 msgid "lvm-remove-all"
12182 msgstr ""
12183
12184 #. type: verbatim
12185 #: ../fish/guestfish-actions.pod:3040
12186 #, no-wrap
12187 msgid ""
12188 " lvm-remove-all\n"
12189 "\n"
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4673
12194 msgid ""
12195 "This command removes all LVM logical volumes, volume groups and physical "
12196 "volumes."
12197 msgstr ""
12198
12199 #. type: =head2
12200 #: ../fish/guestfish-actions.pod:3048
12201 msgid "lvm-set-filter"
12202 msgstr ""
12203
12204 #. type: verbatim
12205 #: ../fish/guestfish-actions.pod:3050
12206 #, no-wrap
12207 msgid ""
12208 " lvm-set-filter 'devices ...'\n"
12209 "\n"
12210 msgstr ""
12211
12212 #. type: textblock
12213 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4689
12214 msgid ""
12215 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12216 "block devices in the list C<devices>, and will ignore all other attached "
12217 "block devices."
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:3056 ../src/guestfs-actions.pod:4693
12222 msgid ""
12223 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12224 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12225 "there are two types of duplication possible: either cloned PVs/VGs which "
12226 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12227 "same name.  In normal operation you cannot create this situation, but you "
12228 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12229 "inside the LVM metadata."
12230 msgstr ""
12231
12232 #. type: textblock
12233 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4706
12234 msgid "You can filter whole block devices or individual partitions."
12235 msgstr ""
12236
12237 #. type: textblock
12238 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4708
12239 msgid ""
12240 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12241 "filesystem), even if you are not filtering out that VG."
12242 msgstr ""
12243
12244 #. type: =head2
12245 #: ../fish/guestfish-actions.pod:3075
12246 msgid "lvremove"
12247 msgstr ""
12248
12249 #. type: verbatim
12250 #: ../fish/guestfish-actions.pod:3077
12251 #, no-wrap
12252 msgid ""
12253 " lvremove device\n"
12254 "\n"
12255 msgstr ""
12256
12257 #. type: textblock
12258 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4722
12259 msgid ""
12260 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12261 "LV, such as C</dev/VG/LV>."
12262 msgstr ""
12263
12264 #. type: textblock
12265 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4725
12266 msgid ""
12267 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12268 "dev/VG>."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:3085
12273 msgid "lvrename"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:3087
12278 #, no-wrap
12279 msgid ""
12280 " lvrename logvol newlogvol\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4739
12286 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12287 msgstr ""
12288
12289 #. type: =head2
12290 #: ../fish/guestfish-actions.pod:3091
12291 msgid "lvresize"
12292 msgstr ""
12293
12294 #. type: verbatim
12295 #: ../fish/guestfish-actions.pod:3093
12296 #, no-wrap
12297 msgid ""
12298 " lvresize device mbytes\n"
12299 "\n"
12300 msgstr ""
12301
12302 #. type: textblock
12303 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4752
12304 msgid ""
12305 "This resizes (expands or shrinks) an existing LVM logical volume to "
12306 "C<mbytes>.  When reducing, data in the reduced part is lost."
12307 msgstr ""
12308
12309 #. type: =head2
12310 #: ../fish/guestfish-actions.pod:3099
12311 msgid "lvresize-free"
12312 msgstr ""
12313
12314 #. type: verbatim
12315 #: ../fish/guestfish-actions.pod:3101
12316 #, no-wrap
12317 msgid ""
12318 " lvresize-free lv percent\n"
12319 "\n"
12320 msgstr ""
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4767
12324 msgid ""
12325 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12326 "remaining free space in the volume group.  Commonly you would call this with "
12327 "pc = 100 which expands the logical volume as much as possible, using all "
12328 "remaining free space in the volume group."
12329 msgstr ""
12330
12331 #. type: =head2
12332 #: ../fish/guestfish-actions.pod:3109
12333 msgid "lvs"
12334 msgstr ""
12335
12336 #. type: verbatim
12337 #: ../fish/guestfish-actions.pod:3111
12338 #, no-wrap
12339 msgid ""
12340 " lvs\n"
12341 "\n"
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4782
12346 msgid ""
12347 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12348 "(8)> command."
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4785
12353 msgid ""
12354 "This returns a list of the logical volume device names (eg. C</dev/"
12355 "VolGroup00/LogVol00>)."
12356 msgstr ""
12357
12358 #. type: textblock
12359 #: ../fish/guestfish-actions.pod:3119
12360 msgid "See also L</lvs-full>, L</list-filesystems>."
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../fish/guestfish-actions.pod:3121
12365 msgid "lvs-full"
12366 msgstr ""
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:3123
12370 #, no-wrap
12371 msgid ""
12372 " lvs-full\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4801
12378 msgid ""
12379 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12380 "(8)> command.  The \"full\" version includes all fields."
12381 msgstr ""
12382
12383 #. type: =head2
12384 #: ../fish/guestfish-actions.pod:3128
12385 msgid "lvuuid"
12386 msgstr ""
12387
12388 #. type: verbatim
12389 #: ../fish/guestfish-actions.pod:3130
12390 #, no-wrap
12391 msgid ""
12392 " lvuuid device\n"
12393 "\n"
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4816
12398 msgid "This command returns the UUID of the LVM LV C<device>."
12399 msgstr ""
12400
12401 #. type: =head2
12402 #: ../fish/guestfish-actions.pod:3134
12403 msgid "lxattrlist"
12404 msgstr ""
12405
12406 #. type: verbatim
12407 #: ../fish/guestfish-actions.pod:3136
12408 #, no-wrap
12409 msgid ""
12410 " lxattrlist path 'names ...'\n"
12411 "\n"
12412 msgstr ""
12413
12414 #. type: textblock
12415 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4830
12416 msgid ""
12417 "This call allows you to get the extended attributes of multiple files, where "
12418 "all files are in the directory C<path>.  C<names> is the list of files from "
12419 "this directory."
12420 msgstr ""
12421
12422 #. type: textblock
12423 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4834
12424 msgid ""
12425 "On return you get a flat list of xattr structs which must be interpreted "
12426 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12427 "C<attrval> in this struct is zero-length to indicate there was an error "
12428 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12429 "number (the number of following attributes for this file, which could be C<"
12430 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12431 "for the first named file.  This repeats for the second and subsequent files."
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3152
12436 msgid ""
12437 "This call is intended for programs that want to efficiently list a directory "
12438 "contents without making many round-trips.  See also L</lstatlist> for a "
12439 "similarly efficient call for getting standard stats.  Very long directory "
12440 "listings might cause the protocol message size to be exceeded, causing this "
12441 "call to fail.  The caller must split up such requests into smaller groups of "
12442 "names."
12443 msgstr ""
12444
12445 #. type: =head2
12446 #: ../fish/guestfish-actions.pod:3160
12447 msgid "mkdir"
12448 msgstr ""
12449
12450 #. type: verbatim
12451 #: ../fish/guestfish-actions.pod:3162
12452 #, no-wrap
12453 msgid ""
12454 " mkdir path\n"
12455 "\n"
12456 msgstr ""
12457
12458 #. type: textblock
12459 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4864
12460 msgid "Create a directory named C<path>."
12461 msgstr ""
12462
12463 #. type: =head2
12464 #: ../fish/guestfish-actions.pod:3166
12465 msgid "mkdir-mode"
12466 msgstr ""
12467
12468 #. type: verbatim
12469 #: ../fish/guestfish-actions.pod:3168
12470 #, no-wrap
12471 msgid ""
12472 " mkdir-mode path mode\n"
12473 "\n"
12474 msgstr ""
12475
12476 #. type: textblock
12477 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4877
12478 msgid ""
12479 "This command creates a directory, setting the initial permissions of the "
12480 "directory to C<mode>."
12481 msgstr ""
12482
12483 #. type: textblock
12484 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4880
12485 msgid ""
12486 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12487 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12488 "other ways."
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3177
12493 msgid "See also L</mkdir>, L</umask>"
12494 msgstr ""
12495
12496 #. type: =head2
12497 #: ../fish/guestfish-actions.pod:3179
12498 msgid "mkdir-p"
12499 msgstr ""
12500
12501 #. type: verbatim
12502 #: ../fish/guestfish-actions.pod:3181
12503 #, no-wrap
12504 msgid ""
12505 " mkdir-p path\n"
12506 "\n"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4896
12511 msgid ""
12512 "Create a directory named C<path>, creating any parent directories as "
12513 "necessary.  This is like the C<mkdir -p> shell command."
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:3186
12518 msgid "mkdtemp"
12519 msgstr ""
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:3188
12523 #, no-wrap
12524 msgid ""
12525 " mkdtemp template\n"
12526 "\n"
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4909
12531 msgid ""
12532 "This command creates a temporary directory.  The C<template> parameter "
12533 "should be a full pathname for the temporary directory name with the final "
12534 "six characters being \"XXXXXX\"."
12535 msgstr ""
12536
12537 #. type: textblock
12538 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4914
12539 msgid ""
12540 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12541 "being suitable for Windows filesystems."
12542 msgstr ""
12543
12544 #. type: textblock
12545 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4917
12546 msgid "The name of the temporary directory that was created is returned."
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4920
12551 msgid "The temporary directory is created with mode 0700 and is owned by root."
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4923
12556 msgid ""
12557 "The caller is responsible for deleting the temporary directory and its "
12558 "contents after use."
12559 msgstr ""
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4926
12563 msgid "See also: L<mkdtemp(3)>"
12564 msgstr ""
12565
12566 #. type: =head2
12567 #: ../fish/guestfish-actions.pod:3209
12568 msgid "mke2fs-J"
12569 msgstr ""
12570
12571 #. type: verbatim
12572 #: ../fish/guestfish-actions.pod:3211
12573 #, no-wrap
12574 msgid ""
12575 " mke2fs-J fstype blocksize device journal\n"
12576 "\n"
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4942
12581 msgid ""
12582 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12583 "C<journal>.  It is equivalent to the command:"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4946
12588 #, no-wrap
12589 msgid ""
12590 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12591 "\n"
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:3219
12596 msgid "See also L</mke2journal>."
12597 msgstr ""
12598
12599 #. type: =head2
12600 #: ../fish/guestfish-actions.pod:3221
12601 msgid "mke2fs-JL"
12602 msgstr ""
12603
12604 #. type: verbatim
12605 #: ../fish/guestfish-actions.pod:3223
12606 #, no-wrap
12607 msgid ""
12608 " mke2fs-JL fstype blocksize device label\n"
12609 "\n"
12610 msgstr ""
12611
12612 #. type: textblock
12613 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4963
12614 msgid ""
12615 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12616 "the journal labeled C<label>."
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../fish/guestfish-actions.pod:3228
12621 msgid "See also L</mke2journal-L>."
12622 msgstr ""
12623
12624 #. type: =head2
12625 #: ../fish/guestfish-actions.pod:3230
12626 msgid "mke2fs-JU"
12627 msgstr ""
12628
12629 #. type: verbatim
12630 #: ../fish/guestfish-actions.pod:3232
12631 #, no-wrap
12632 msgid ""
12633 " mke2fs-JU fstype blocksize device uuid\n"
12634 "\n"
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4981
12639 msgid ""
12640 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12641 "the journal with UUID C<uuid>."
12642 msgstr ""
12643
12644 #. type: textblock
12645 #: ../fish/guestfish-actions.pod:3237
12646 msgid "See also L</mke2journal-U>."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../fish/guestfish-actions.pod:3239
12651 msgid "mke2journal"
12652 msgstr ""
12653
12654 #. type: verbatim
12655 #: ../fish/guestfish-actions.pod:3241
12656 #, no-wrap
12657 msgid ""
12658 " mke2journal blocksize device\n"
12659 "\n"
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4997
12664 msgid ""
12665 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12666 "command:"
12667 msgstr ""
12668
12669 #. type: verbatim
12670 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:5000
12671 #, no-wrap
12672 msgid ""
12673 " mke2fs -O journal_dev -b blocksize device\n"
12674 "\n"
12675 msgstr ""
12676
12677 #. type: =head2
12678 #: ../fish/guestfish-actions.pod:3248
12679 msgid "mke2journal-L"
12680 msgstr ""
12681
12682 #. type: verbatim
12683 #: ../fish/guestfish-actions.pod:3250
12684 #, no-wrap
12685 msgid ""
12686 " mke2journal-L blocksize label device\n"
12687 "\n"
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
12692 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12693 msgstr ""
12694
12695 #. type: =head2
12696 #: ../fish/guestfish-actions.pod:3254
12697 msgid "mke2journal-U"
12698 msgstr ""
12699
12700 #. type: verbatim
12701 #: ../fish/guestfish-actions.pod:3256
12702 #, no-wrap
12703 msgid ""
12704 " mke2journal-U blocksize uuid device\n"
12705 "\n"
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5028
12710 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12711 msgstr ""
12712
12713 #. type: =head2
12714 #: ../fish/guestfish-actions.pod:3260
12715 msgid "mkfifo"
12716 msgstr ""
12717
12718 #. type: verbatim
12719 #: ../fish/guestfish-actions.pod:3262
12720 #, no-wrap
12721 msgid ""
12722 " mkfifo mode path\n"
12723 "\n"
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:3264
12728 msgid ""
12729 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12730 "is just a convenient wrapper around L</mknod>."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:3270
12735 msgid "mkfs"
12736 msgstr ""
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:3272
12740 #, no-wrap
12741 msgid ""
12742 " mkfs fstype device\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:5058
12748 msgid ""
12749 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12750 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12751 msgstr ""
12752
12753 #. type: =head2
12754 #: ../fish/guestfish-actions.pod:3278
12755 msgid "mkfs-b"
12756 msgstr ""
12757
12758 #. type: verbatim
12759 #: ../fish/guestfish-actions.pod:3280
12760 #, no-wrap
12761 msgid ""
12762 " mkfs-b fstype blocksize device\n"
12763 "\n"
12764 msgstr ""
12765
12766 #. type: textblock
12767 #: ../fish/guestfish-actions.pod:3282
12768 msgid ""
12769 "This call is similar to L</mkfs>, but it allows you to control the block "
12770 "size of the resulting filesystem.  Supported block sizes depend on the "
12771 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3314
12776 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5124
12777 msgid ""
12778 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12779 "cluster size."
12780 msgstr ""
12781
12782 #. type: textblock
12783 #: ../fish/guestfish-actions.pod:3290
12784 msgid ""
12785 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12786 "instead."
12787 msgstr ""
12788
12789 #. type: =head2
12790 #: ../fish/guestfish-actions.pod:3297
12791 msgid "mkfs-opts"
12792 msgstr ""
12793
12794 #. type: verbatim
12795 #: ../fish/guestfish-actions.pod:3299
12796 #, no-wrap
12797 msgid ""
12798 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12799 "\n"
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5111
12804 msgid ""
12805 "This function creates a filesystem on C<device>.  The filesystem type is "
12806 "C<fstype>, for example C<ext3>."
12807 msgstr ""
12808
12809 #. type: =item
12810 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5118
12811 msgid "C<blocksize>"
12812 msgstr ""
12813
12814 #. type: textblock
12815 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5120
12816 msgid ""
12817 "The filesystem block size.  Supported block sizes depend on the filesystem "
12818 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12819 "filesystems."
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5127
12824 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12825 msgstr ""
12826
12827 #. type: =item
12828 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5129
12829 msgid "C<features>"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5131
12834 msgid "This passes the I<-O> parameter to the external mkfs program."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5133
12839 msgid ""
12840 "For certain filesystem types, this allows extra filesystem features to be "
12841 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:5137
12846 msgid ""
12847 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12848 "type."
12849 msgstr ""
12850
12851 #. type: =item
12852 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5140
12853 msgid "C<inode>"
12854 msgstr ""
12855
12856 #. type: textblock
12857 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5142
12858 msgid ""
12859 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12860 "sets the inode size (only for ext2/3/4 filesystems at present)."
12861 msgstr ""
12862
12863 #. type: =item
12864 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5145
12865 msgid "C<sectorsize>"
12866 msgstr ""
12867
12868 #. type: textblock
12869 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5147
12870 msgid ""
12871 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12872 "sets sector size for ufs filesystem."
12873 msgstr ""
12874
12875 #. type: =head2
12876 #: ../fish/guestfish-actions.pod:3344
12877 msgid "mkmountpoint"
12878 msgstr ""
12879
12880 #. type: verbatim
12881 #: ../fish/guestfish-actions.pod:3346
12882 #, no-wrap
12883 msgid ""
12884 " mkmountpoint exemptpath\n"
12885 "\n"
12886 msgstr ""
12887
12888 #. type: textblock
12889 #: ../fish/guestfish-actions.pod:3348
12890 msgid ""
12891 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12892 "to create extra mountpoints before mounting the first filesystem."
12893 msgstr ""
12894
12895 #. type: textblock
12896 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5190
12897 msgid ""
12898 "These calls are I<only> necessary in some very limited circumstances, mainly "
12899 "the case where you want to mount a mix of unrelated and/or read-only "
12900 "filesystems together."
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5194
12905 msgid ""
12906 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12907 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12908 "inside that.  You can unpack this as follows in guestfish:"
12909 msgstr ""
12910
12911 #. type: verbatim
12912 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5199
12913 #, no-wrap
12914 msgid ""
12915 " add-ro Fedora-11-i686-Live.iso\n"
12916 " run\n"
12917 " mkmountpoint /cd\n"
12918 " mkmountpoint /sqsh\n"
12919 " mkmountpoint /ext3fs\n"
12920 " mount /dev/sda /cd\n"
12921 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12922 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12923 "\n"
12924 msgstr ""
12925
12926 #. type: textblock
12927 #: ../fish/guestfish-actions.pod:3370 ../src/guestfs-actions.pod:5208
12928 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12929 msgstr ""
12930
12931 #. type: textblock
12932 #: ../fish/guestfish-actions.pod:3372
12933 msgid ""
12934 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12935 "unexpected errors if you try to mix these calls.  It is safest to manually "
12936 "unmount filesystems and remove mountpoints after use."
12937 msgstr ""
12938
12939 #. type: textblock
12940 #: ../fish/guestfish-actions.pod:3376
12941 msgid ""
12942 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12943 "for this to work for manual mountpoints, you must ensure that the innermost "
12944 "mountpoints have the longest pathnames, as in the example code above."
12945 msgstr ""
12946
12947 #. type: textblock
12948 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:5219
12949 msgid ""
12950 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:3383
12955 msgid ""
12956 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12957 "L</umount-all> to be called when the handle is closed which can also trigger "
12958 "these issues."
12959 msgstr ""
12960
12961 #. type: =head2
12962 #: ../fish/guestfish-actions.pod:3387
12963 msgid "mknod"
12964 msgstr ""
12965
12966 #. type: verbatim
12967 #: ../fish/guestfish-actions.pod:3389
12968 #, no-wrap
12969 msgid ""
12970 " mknod mode devmajor devminor path\n"
12971 "\n"
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3391 ../src/guestfs-actions.pod:5238
12976 msgid ""
12977 "This call creates block or character special devices, or named pipes (FIFOs)."
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5241
12982 msgid ""
12983 "The C<mode> parameter should be the mode, using the standard constants.  "
12984 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12985 "used when creating block and character special devices."
12986 msgstr ""
12987
12988 #. type: textblock
12989 #: ../fish/guestfish-actions.pod:3399
12990 msgid ""
12991 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12992 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12993 "regular file).  These constants are available in the standard Linux header "
12994 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12995 "wrappers around this command which bitwise OR in the appropriate constant "
12996 "for you."
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../fish/guestfish-actions.pod:3409
13001 msgid "mknod-b"
13002 msgstr ""
13003
13004 #. type: verbatim
13005 #: ../fish/guestfish-actions.pod:3411
13006 #, no-wrap
13007 msgid ""
13008 " mknod-b mode devmajor devminor path\n"
13009 "\n"
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:3413
13014 msgid ""
13015 "This call creates a block device node called C<path> with mode C<mode> and "
13016 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13017 "wrapper around L</mknod>."
13018 msgstr ""
13019
13020 #. type: =head2
13021 #: ../fish/guestfish-actions.pod:3419
13022 msgid "mknod-c"
13023 msgstr ""
13024
13025 #. type: verbatim
13026 #: ../fish/guestfish-actions.pod:3421
13027 #, no-wrap
13028 msgid ""
13029 " mknod-c mode devmajor devminor path\n"
13030 "\n"
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:3423
13035 msgid ""
13036 "This call creates a char device node called C<path> with mode C<mode> and "
13037 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13038 "wrapper around L</mknod>."
13039 msgstr ""
13040
13041 #. type: =head2
13042 #: ../fish/guestfish-actions.pod:3429
13043 msgid "mkswap"
13044 msgstr ""
13045
13046 #. type: verbatim
13047 #: ../fish/guestfish-actions.pod:3431
13048 #, no-wrap
13049 msgid ""
13050 " mkswap device\n"
13051 "\n"
13052 msgstr ""
13053
13054 #. type: textblock
13055 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5304
13056 msgid "Create a swap partition on C<device>."
13057 msgstr ""
13058
13059 #. type: =head2
13060 #: ../fish/guestfish-actions.pod:3435
13061 msgid "mkswap-L"
13062 msgstr ""
13063
13064 #. type: verbatim
13065 #: ../fish/guestfish-actions.pod:3437
13066 #, no-wrap
13067 msgid ""
13068 " mkswap-L label device\n"
13069 "\n"
13070 msgstr ""
13071
13072 #. type: textblock
13073 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5317
13074 msgid "Create a swap partition on C<device> with label C<label>."
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5319
13079 msgid ""
13080 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13081 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13082 "or swap tools."
13083 msgstr ""
13084
13085 #. type: =head2
13086 #: ../fish/guestfish-actions.pod:3445
13087 msgid "mkswap-U"
13088 msgstr ""
13089
13090 #. type: verbatim
13091 #: ../fish/guestfish-actions.pod:3447
13092 #, no-wrap
13093 msgid ""
13094 " mkswap-U uuid device\n"
13095 "\n"
13096 msgstr ""
13097
13098 #. type: textblock
13099 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5334
13100 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13101 msgstr ""
13102
13103 #. type: =head2
13104 #: ../fish/guestfish-actions.pod:3451
13105 msgid "mkswap-file"
13106 msgstr ""
13107
13108 #. type: verbatim
13109 #: ../fish/guestfish-actions.pod:3453
13110 #, no-wrap
13111 msgid ""
13112 " mkswap-file path\n"
13113 "\n"
13114 msgstr ""
13115
13116 #. type: textblock
13117 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5346
13118 msgid "Create a swap file."
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:3457
13123 msgid ""
13124 "This command just writes a swap file signature to an existing file.  To "
13125 "create the file itself, use something like L</fallocate>."
13126 msgstr ""
13127
13128 #. type: =head2
13129 #: ../fish/guestfish-actions.pod:3460
13130 msgid "modprobe"
13131 msgstr ""
13132
13133 #. type: verbatim
13134 #: ../fish/guestfish-actions.pod:3462
13135 #, no-wrap
13136 msgid ""
13137 " modprobe modulename\n"
13138 "\n"
13139 msgstr ""
13140
13141 #. type: textblock
13142 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5361
13143 msgid "This loads a kernel module in the appliance."
13144 msgstr ""
13145
13146 #. type: textblock
13147 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5363
13148 msgid ""
13149 "The kernel module must have been whitelisted when libguestfs was built (see "
13150 "C<appliance/kmod.whitelist.in> in the source)."
13151 msgstr ""
13152
13153 #. type: =head2
13154 #: ../fish/guestfish-actions.pod:3469
13155 msgid "mount"
13156 msgstr ""
13157
13158 #. type: verbatim
13159 #: ../fish/guestfish-actions.pod:3471
13160 #, no-wrap
13161 msgid ""
13162 " mount device mountpoint\n"
13163 "\n"
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5377
13168 msgid ""
13169 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13170 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13171 "those block devices contain partitions, they will have the usual names (eg. "
13172 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13173 msgstr ""
13174
13175 #. type: textblock
13176 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5383
13177 msgid ""
13178 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13179 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13180 "mounted on directories which already exist."
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3484 ../src/guestfs-actions.pod:5388
13185 msgid ""
13186 "The mounted filesystem is writable, if we have sufficient permissions on the "
13187 "underlying device."
13188 msgstr ""
13189
13190 #. type: textblock
13191 #: ../fish/guestfish-actions.pod:3487
13192 msgid ""
13193 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13194 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13195 "problems for users.  If your program might need to work with older versions "
13196 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13197 "first parameter if you don't want any options)."
13198 msgstr ""
13199
13200 #. type: =head2
13201 #: ../fish/guestfish-actions.pod:3494
13202 msgid "mount-9p"
13203 msgstr ""
13204
13205 #. type: verbatim
13206 #: ../fish/guestfish-actions.pod:3496
13207 #, no-wrap
13208 msgid ""
13209 " mount-9p mounttag mountpoint [options:..]\n"
13210 "\n"
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5417
13215 msgid ""
13216 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13217 "C<mountpoint>."
13218 msgstr ""
13219
13220 #. type: textblock
13221 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5420
13222 msgid ""
13223 "If required, C<trans=virtio> will be automatically added to the options.  "
13224 "Any other options required can be passed in the optional C<options> "
13225 "parameter."
13226 msgstr ""
13227
13228 #. type: =head2
13229 #: ../fish/guestfish-actions.pod:3507
13230 msgid "mount-loop"
13231 msgstr ""
13232
13233 #. type: verbatim
13234 #: ../fish/guestfish-actions.pod:3509
13235 #, no-wrap
13236 msgid ""
13237 " mount-loop file mountpoint\n"
13238 "\n"
13239 msgstr ""
13240
13241 #. type: textblock
13242 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5459
13243 msgid ""
13244 "This command lets you mount C<file> (a filesystem image in a file) on a "
13245 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13246 "mountpoint>."
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:3515
13251 msgid "mount-options"
13252 msgstr ""
13253
13254 #. type: verbatim
13255 #: ../fish/guestfish-actions.pod:3517
13256 #, no-wrap
13257 msgid ""
13258 " mount-options options device mountpoint\n"
13259 "\n"
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:3519
13264 msgid ""
13265 "This is the same as the L</mount> command, but it allows you to set the "
13266 "mount options as for the L<mount(8)> I<-o> flag."
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:5479
13271 msgid ""
13272 "If the C<options> parameter is an empty string, then no options are passed "
13273 "(all options default to whatever the filesystem uses)."
13274 msgstr ""
13275
13276 #. type: =head2
13277 #: ../fish/guestfish-actions.pod:3527
13278 msgid "mount-ro"
13279 msgstr ""
13280
13281 #. type: verbatim
13282 #: ../fish/guestfish-actions.pod:3529
13283 #, no-wrap
13284 msgid ""
13285 " mount-ro device mountpoint\n"
13286 "\n"
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:3531
13291 msgid ""
13292 "This is the same as the L</mount> command, but it mounts the filesystem with "
13293 "the read-only (I<-o ro>) flag."
13294 msgstr ""
13295
13296 #. type: =head2
13297 #: ../fish/guestfish-actions.pod:3534
13298 msgid "mount-vfs"
13299 msgstr ""
13300
13301 #. type: verbatim
13302 #: ../fish/guestfish-actions.pod:3536
13303 #, no-wrap
13304 msgid ""
13305 " mount-vfs options vfstype device mountpoint\n"
13306 "\n"
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:3538
13311 msgid ""
13312 "This is the same as the L</mount> command, but it allows you to set both the "
13313 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13314 msgstr ""
13315
13316 #. type: =head2
13317 #: ../fish/guestfish-actions.pod:3542
13318 msgid "mountpoints"
13319 msgstr ""
13320
13321 #. type: verbatim
13322 #: ../fish/guestfish-actions.pod:3544
13323 #, no-wrap
13324 msgid ""
13325 " mountpoints\n"
13326 "\n"
13327 msgstr ""
13328
13329 #. type: textblock
13330 #: ../fish/guestfish-actions.pod:3546
13331 msgid ""
13332 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13333 "This one returns a hash table (map) of device name to directory where the "
13334 "device is mounted."
13335 msgstr ""
13336
13337 #. type: =head2
13338 #: ../fish/guestfish-actions.pod:3550
13339 msgid "mounts"
13340 msgstr ""
13341
13342 #. type: verbatim
13343 #: ../fish/guestfish-actions.pod:3552
13344 #, no-wrap
13345 msgid ""
13346 " mounts\n"
13347 "\n"
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5540
13352 msgid ""
13353 "This returns the list of currently mounted filesystems.  It returns the list "
13354 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5543
13359 msgid "Some internal mounts are not shown."
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:3559
13364 msgid "See also: L</mountpoints>"
13365 msgstr ""
13366
13367 #. type: =head2
13368 #: ../fish/guestfish-actions.pod:3561
13369 msgid "mv"
13370 msgstr ""
13371
13372 #. type: verbatim
13373 #: ../fish/guestfish-actions.pod:3563
13374 #, no-wrap
13375 msgid ""
13376 " mv src dest\n"
13377 "\n"
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5560
13382 msgid ""
13383 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13384 "destination filename or destination directory."
13385 msgstr ""
13386
13387 #. type: =head2
13388 #: ../fish/guestfish-actions.pod:3568
13389 msgid "ntfs-3g-probe"
13390 msgstr ""
13391
13392 #. type: verbatim
13393 #: ../fish/guestfish-actions.pod:3570
13394 #, no-wrap
13395 msgid ""
13396 " ntfs-3g-probe true|false device\n"
13397 "\n"
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5574
13402 msgid ""
13403 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13404 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13405 "write, and some cannot be mounted at all)."
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5578
13410 msgid ""
13411 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13412 "can be mounted read-write.  Set it to false if you want to test if the "
13413 "volume can be mounted read-only."
13414 msgstr ""
13415
13416 #. type: textblock
13417 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5582
13418 msgid ""
13419 "The return value is an integer which C<0> if the operation would succeed, or "
13420 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13421 msgstr ""
13422
13423 #. type: =head2
13424 #: ../fish/guestfish-actions.pod:3584
13425 msgid "ntfsresize"
13426 msgstr ""
13427
13428 #. type: verbatim
13429 #: ../fish/guestfish-actions.pod:3586
13430 #, no-wrap
13431 msgid ""
13432 " ntfsresize device\n"
13433 "\n"
13434 msgstr ""
13435
13436 #. type: textblock
13437 #: ../fish/guestfish-actions.pod:3588 ../fish/guestfish-actions.pod:3612
13438 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5635
13439 msgid ""
13440 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13441 "size of the underlying device."
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5606
13446 msgid ""
13447 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13448 "consistency check (for safety).  You have to boot into Windows to perform "
13449 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13450 "resize filesystems which have been marked in this way.  So in effect it is "
13451 "not possible to call ntfsresize multiple times on a single filesystem "
13452 "without booting into Windows between each resize."
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../fish/guestfish-actions.pod:3599 ../fish/guestfish-actions.pod:3638
13457 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5661
13458 msgid "See also L<ntfsresize(8)>."
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:3601 ../fish/guestfish-actions.pod:3649
13463 msgid ""
13464 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13465 "call instead."
13466 msgstr ""
13467
13468 #. type: =head2
13469 #: ../fish/guestfish-actions.pod:3608
13470 msgid "ntfsresize-opts"
13471 msgstr ""
13472
13473 #. type: verbatim
13474 #: ../fish/guestfish-actions.pod:3610
13475 #, no-wrap
13476 msgid ""
13477 " ntfsresize-opts device [size:..] [force:..]\n"
13478 "\n"
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5644
13483 msgid ""
13484 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13485 "resized to fit the container (eg. partition)."
13486 msgstr ""
13487
13488 #. type: =item
13489 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5647
13490 msgid "C<force>"
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5649
13495 msgid ""
13496 "If this option is true, then force the resize of the filesystem even if the "
13497 "filesystem is marked as requiring a consistency check."
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../fish/guestfish-actions.pod:3629
13502 msgid ""
13503 "After the resize operation, the filesystem is always marked as requiring a "
13504 "consistency check (for safety).  You have to boot into Windows to perform "
13505 "this check and clear this condition.  If you I<don't> set the C<force> "
13506 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13507 "a single filesystem without booting into Windows between each resize."
13508 msgstr ""
13509
13510 #. type: =head2
13511 #: ../fish/guestfish-actions.pod:3642
13512 msgid "ntfsresize-size"
13513 msgstr ""
13514
13515 #. type: verbatim
13516 #: ../fish/guestfish-actions.pod:3644
13517 #, no-wrap
13518 msgid ""
13519 " ntfsresize-size device size\n"
13520 "\n"
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3646
13525 msgid ""
13526 "This command is the same as L</ntfsresize> except that it allows you to "
13527 "specify the new size (in bytes) explicitly."
13528 msgstr ""
13529
13530 #. type: =head2
13531 #: ../fish/guestfish-actions.pod:3656
13532 msgid "part-add"
13533 msgstr ""
13534
13535 #. type: verbatim
13536 #: ../fish/guestfish-actions.pod:3658
13537 #, no-wrap
13538 msgid ""
13539 " part-add device prlogex startsect endsect\n"
13540 "\n"
13541 msgstr ""
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:3660
13545 msgid ""
13546 "This command adds a partition to C<device>.  If there is no partition table "
13547 "on the device, call L</part-init> first."
13548 msgstr ""
13549
13550 #. type: textblock
13551 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5722
13552 msgid ""
13553 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13554 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13555 "C<logical>) and C<e> (or C<extended>) partition types."
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5727
13560 msgid ""
13561 "C<startsect> and C<endsect> are the start and end of the partition in "
13562 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13563 "from the end of the disk (C<-1> is the last sector)."
13564 msgstr ""
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:3672
13568 msgid ""
13569 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13570 "part-disk> to do that."
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:3675
13575 msgid "part-del"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:3677
13580 #, no-wrap
13581 msgid ""
13582 " part-del device partnum\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5745
13588 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13589 msgstr ""
13590
13591 #. type: textblock
13592 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5747
13593 msgid ""
13594 "Note that in the case of MBR partitioning, deleting an extended partition "
13595 "also deletes any logical partitions it contains."
13596 msgstr ""
13597
13598 #. type: =head2
13599 #: ../fish/guestfish-actions.pod:3685
13600 msgid "part-disk"
13601 msgstr ""
13602
13603 #. type: verbatim
13604 #: ../fish/guestfish-actions.pod:3687
13605 #, no-wrap
13606 msgid ""
13607 " part-disk device parttype\n"
13608 "\n"
13609 msgstr ""
13610
13611 #. type: textblock
13612 #: ../fish/guestfish-actions.pod:3689
13613 msgid ""
13614 "This command is simply a combination of L</part-init> followed by L</part-"
13615 "add> to create a single primary partition covering the whole disk."
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3693
13620 msgid ""
13621 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13622 "possible values are described in L</part-init>."
13623 msgstr ""
13624
13625 #. type: =head2
13626 #: ../fish/guestfish-actions.pod:3699
13627 msgid "part-get-bootable"
13628 msgstr ""
13629
13630 #. type: verbatim
13631 #: ../fish/guestfish-actions.pod:3701
13632 #, no-wrap
13633 msgid ""
13634 " part-get-bootable device partnum\n"
13635 "\n"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5783
13640 msgid ""
13641 "This command returns true if the partition C<partnum> on C<device> has the "
13642 "bootable flag set."
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../fish/guestfish-actions.pod:3706
13647 msgid "See also L</part-set-bootable>."
13648 msgstr ""
13649
13650 #. type: =head2
13651 #: ../fish/guestfish-actions.pod:3708
13652 msgid "part-get-mbr-id"
13653 msgstr ""
13654
13655 #. type: verbatim
13656 #: ../fish/guestfish-actions.pod:3710
13657 #, no-wrap
13658 msgid ""
13659 " part-get-mbr-id device partnum\n"
13660 "\n"
13661 msgstr ""
13662
13663 #. type: textblock
13664 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5799
13665 msgid ""
13666 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13667 "partition C<partnum>."
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:3715 ../fish/guestfish-actions.pod:3859
13672 msgid ""
13673 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13674 "undefined results for other partition table types (see L</part-get-"
13675 "parttype>)."
13676 msgstr ""
13677
13678 #. type: =head2
13679 #: ../fish/guestfish-actions.pod:3719
13680 msgid "part-get-parttype"
13681 msgstr ""
13682
13683 #. type: verbatim
13684 #: ../fish/guestfish-actions.pod:3721
13685 #, no-wrap
13686 msgid ""
13687 " part-get-parttype device\n"
13688 "\n"
13689 msgstr ""
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5816
13693 msgid ""
13694 "This command examines the partition table on C<device> and returns the "
13695 "partition table type (format) being used."
13696 msgstr ""
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:3726
13700 msgid ""
13701 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13702 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13703 "possible, although unusual.  See L</part-init> for a full list."
13704 msgstr ""
13705
13706 #. type: =head2
13707 #: ../fish/guestfish-actions.pod:3731
13708 msgid "part-init"
13709 msgstr ""
13710
13711 #. type: verbatim
13712 #: ../fish/guestfish-actions.pod:3733
13713 #, no-wrap
13714 msgid ""
13715 " part-init device parttype\n"
13716 "\n"
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5836
13721 msgid ""
13722 "This creates an empty partition table on C<device> of one of the partition "
13723 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13724 "(for large disks)."
13725 msgstr ""
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:3739
13729 msgid ""
13730 "Initially there are no partitions.  Following this, you should call L</part-"
13731 "add> for each partition required."
13732 msgstr ""
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5843
13736 msgid "Possible values for C<parttype> are:"
13737 msgstr ""
13738
13739 #. type: =item
13740 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5847
13741 msgid "B<efi>"
13742 msgstr ""
13743
13744 #. type: =item
13745 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5849
13746 msgid "B<gpt>"
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5851
13751 msgid "Intel EFI / GPT partition table."
13752 msgstr ""
13753
13754 #. type: textblock
13755 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5853
13756 msgid ""
13757 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13758 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13759 "the C<mbr> format."
13760 msgstr ""
13761
13762 #. type: =item
13763 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5857
13764 msgid "B<mbr>"
13765 msgstr ""
13766
13767 #. type: =item
13768 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5859
13769 msgid "B<msdos>"
13770 msgstr ""
13771
13772 #. type: textblock
13773 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5861
13774 msgid ""
13775 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13776 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13777 "TB.  For large disks we recommend using C<gpt>."
13778 msgstr ""
13779
13780 #. type: textblock
13781 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5868
13782 msgid ""
13783 "Other partition table types that may work but are not supported include:"
13784 msgstr ""
13785
13786 #. type: =item
13787 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5873
13788 msgid "B<aix>"
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5875
13793 msgid "AIX disk labels."
13794 msgstr ""
13795
13796 #. type: =item
13797 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5877
13798 msgid "B<amiga>"
13799 msgstr ""
13800
13801 #. type: =item
13802 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5879
13803 msgid "B<rdb>"
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5881
13808 msgid "Amiga \"Rigid Disk Block\" format."
13809 msgstr ""
13810
13811 #. type: =item
13812 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5883
13813 msgid "B<bsd>"
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5885
13818 msgid "BSD disk labels."
13819 msgstr ""
13820
13821 #. type: =item
13822 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5887
13823 msgid "B<dasd>"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5889
13828 msgid "DASD, used on IBM mainframes."
13829 msgstr ""
13830
13831 #. type: =item
13832 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5891
13833 msgid "B<dvh>"
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5893
13838 msgid "MIPS/SGI volumes."
13839 msgstr ""
13840
13841 #. type: =item
13842 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5895
13843 msgid "B<mac>"
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5897
13848 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13849 msgstr ""
13850
13851 #. type: =item
13852 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5899
13853 msgid "B<pc98>"
13854 msgstr ""
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5901
13858 msgid "NEC PC-98 format, common in Japan apparently."
13859 msgstr ""
13860
13861 #. type: =item
13862 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5903
13863 msgid "B<sun>"
13864 msgstr ""
13865
13866 #. type: textblock
13867 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5905
13868 msgid "Sun disk labels."
13869 msgstr ""
13870
13871 #. type: =head2
13872 #: ../fish/guestfish-actions.pod:3808
13873 msgid "part-list"
13874 msgstr ""
13875
13876 #. type: verbatim
13877 #: ../fish/guestfish-actions.pod:3810
13878 #, no-wrap
13879 msgid ""
13880 " part-list device\n"
13881 "\n"
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5919
13886 msgid ""
13887 "This command parses the partition table on C<device> and returns the list of "
13888 "partitions found."
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5922
13893 msgid "The fields in the returned structure are:"
13894 msgstr ""
13895
13896 #. type: =item
13897 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5926
13898 msgid "B<part_num>"
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5928
13903 msgid "Partition number, counting from 1."
13904 msgstr ""
13905
13906 #. type: =item
13907 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5930
13908 msgid "B<part_start>"
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../fish/guestfish-actions.pod:3825
13913 msgid ""
13914 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13915 "the device's sector size, see L</blockdev-getss>."
13916 msgstr ""
13917
13918 #. type: =item
13919 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5935
13920 msgid "B<part_end>"
13921 msgstr ""
13922
13923 #. type: textblock
13924 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5937
13925 msgid "End of the partition in bytes."
13926 msgstr ""
13927
13928 #. type: =item
13929 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5939
13930 msgid "B<part_size>"
13931 msgstr ""
13932
13933 #. type: textblock
13934 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5941
13935 msgid "Size of the partition in bytes."
13936 msgstr ""
13937
13938 #. type: =head2
13939 #: ../fish/guestfish-actions.pod:3838
13940 msgid "part-set-bootable"
13941 msgstr ""
13942
13943 #. type: verbatim
13944 #: ../fish/guestfish-actions.pod:3840
13945 #, no-wrap
13946 msgid ""
13947 " part-set-bootable device partnum true|false\n"
13948 "\n"
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5959
13953 msgid ""
13954 "This sets the bootable flag on partition numbered C<partnum> on device "
13955 "C<device>.  Note that partitions are numbered from 1."
13956 msgstr ""
13957
13958 #. type: textblock
13959 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5962
13960 msgid ""
13961 "The bootable flag is used by some operating systems (notably Windows) to "
13962 "determine which partition to boot from.  It is by no means universally "
13963 "recognized."
13964 msgstr ""
13965
13966 #. type: =head2
13967 #: ../fish/guestfish-actions.pod:3849
13968 msgid "part-set-mbr-id"
13969 msgstr ""
13970
13971 #. type: verbatim
13972 #: ../fish/guestfish-actions.pod:3851
13973 #, no-wrap
13974 msgid ""
13975 " part-set-mbr-id device partnum idbyte\n"
13976 "\n"
13977 msgstr ""
13978
13979 #. type: textblock
13980 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5978
13981 msgid ""
13982 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13983 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13984 "documentation are in fact hexadecimal numbers, but usually documented "
13985 "without any leading \"0x\" which might be confusing."
13986 msgstr ""
13987
13988 #. type: =head2
13989 #: ../fish/guestfish-actions.pod:3863
13990 msgid "part-set-name"
13991 msgstr ""
13992
13993 #. type: verbatim
13994 #: ../fish/guestfish-actions.pod:3865
13995 #, no-wrap
13996 msgid ""
13997 " part-set-name device partnum name\n"
13998 "\n"
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6000
14003 msgid ""
14004 "This sets the partition name on partition numbered C<partnum> on device "
14005 "C<device>.  Note that partitions are numbered from 1."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6003
14010 msgid ""
14011 "The partition name can only be set on certain types of partition table.  "
14012 "This works on C<gpt> but not on C<mbr> partitions."
14013 msgstr ""
14014
14015 #. type: =head2
14016 #: ../fish/guestfish-actions.pod:3873
14017 msgid "part-to-dev"
14018 msgstr ""
14019
14020 #. type: verbatim
14021 #: ../fish/guestfish-actions.pod:3875
14022 #, no-wrap
14023 msgid ""
14024 " part-to-dev partition\n"
14025 "\n"
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6016
14030 msgid ""
14031 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14032 "partition number, returning the device name (eg. \"/dev/sdb\")."
14033 msgstr ""
14034
14035 #. type: textblock
14036 #: ../fish/guestfish-actions.pod:3881 ../fish/guestfish-actions.pod:3893
14037 msgid ""
14038 "The named partition must exist, for example as a string returned from L</"
14039 "list-partitions>."
14040 msgstr ""
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:3884
14044 msgid "See also L</part-to-partnum>."
14045 msgstr ""
14046
14047 #. type: =head2
14048 #: ../fish/guestfish-actions.pod:3886
14049 msgid "part-to-partnum"
14050 msgstr ""
14051
14052 #. type: verbatim
14053 #: ../fish/guestfish-actions.pod:3888
14054 #, no-wrap
14055 msgid ""
14056 " part-to-partnum partition\n"
14057 "\n"
14058 msgstr ""
14059
14060 #. type: textblock
14061 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6036
14062 msgid ""
14063 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14064 "partition number (eg. C<1>)."
14065 msgstr ""
14066
14067 #. type: textblock
14068 #: ../fish/guestfish-actions.pod:3896
14069 msgid "See also L</part-to-dev>."
14070 msgstr ""
14071
14072 #. type: =head2
14073 #: ../fish/guestfish-actions.pod:3898
14074 msgid "ping-daemon"
14075 msgstr ""
14076
14077 #. type: verbatim
14078 #: ../fish/guestfish-actions.pod:3900
14079 #, no-wrap
14080 msgid ""
14081 " ping-daemon\n"
14082 "\n"
14083 msgstr ""
14084
14085 #. type: textblock
14086 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6051
14087 msgid ""
14088 "This is a test probe into the guestfs daemon running inside the qemu "
14089 "subprocess.  Calling this function checks that the daemon responds to the "
14090 "ping message, without affecting the daemon or attached block device(s) in "
14091 "any other way."
14092 msgstr ""
14093
14094 #. type: =head2
14095 #: ../fish/guestfish-actions.pod:3907
14096 msgid "pread"
14097 msgstr ""
14098
14099 #. type: verbatim
14100 #: ../fish/guestfish-actions.pod:3909
14101 #, no-wrap
14102 msgid ""
14103 " pread path count offset\n"
14104 "\n"
14105 msgstr ""
14106
14107 #. type: textblock
14108 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6069
14109 msgid ""
14110 "This command lets you read part of a file.  It reads C<count> bytes of the "
14111 "file, starting at C<offset>, from file C<path>."
14112 msgstr ""
14113
14114 #. type: textblock
14115 #: ../fish/guestfish-actions.pod:3914 ../fish/guestfish-actions.pod:3929
14116 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6098
14117 msgid ""
14118 "This may read fewer bytes than requested.  For further details see the "
14119 "L<pread(2)> system call."
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../fish/guestfish-actions.pod:3917
14124 msgid "See also L</pwrite>, L</pread-device>."
14125 msgstr ""
14126
14127 #. type: =head2
14128 #: ../fish/guestfish-actions.pod:3922
14129 msgid "pread-device"
14130 msgstr ""
14131
14132 #. type: verbatim
14133 #: ../fish/guestfish-actions.pod:3924
14134 #, no-wrap
14135 msgid ""
14136 " pread-device device count offset\n"
14137 "\n"
14138 msgstr ""
14139
14140 #. type: textblock
14141 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6095
14142 msgid ""
14143 "This command lets you read part of a file.  It reads C<count> bytes of "
14144 "C<device>, starting at C<offset>."
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:3932
14149 msgid "See also L</pread>."
14150 msgstr ""
14151
14152 #. type: =head2
14153 #: ../fish/guestfish-actions.pod:3937
14154 msgid "pvcreate"
14155 msgstr ""
14156
14157 #. type: verbatim
14158 #: ../fish/guestfish-actions.pod:3939
14159 #, no-wrap
14160 msgid ""
14161 " pvcreate device\n"
14162 "\n"
14163 msgstr ""
14164
14165 #. type: textblock
14166 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6118
14167 msgid ""
14168 "This creates an LVM physical volume on the named C<device>, where C<device> "
14169 "should usually be a partition name such as C</dev/sda1>."
14170 msgstr ""
14171
14172 #. type: =head2
14173 #: ../fish/guestfish-actions.pod:3945
14174 msgid "pvremove"
14175 msgstr ""
14176
14177 #. type: verbatim
14178 #: ../fish/guestfish-actions.pod:3947
14179 #, no-wrap
14180 msgid ""
14181 " pvremove device\n"
14182 "\n"
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6132
14187 msgid ""
14188 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14189 "it."
14190 msgstr ""
14191
14192 #. type: textblock
14193 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6135
14194 msgid ""
14195 "The implementation uses the C<pvremove> command which refuses to wipe "
14196 "physical volumes that contain any volume groups, so you have to remove those "
14197 "first."
14198 msgstr ""
14199
14200 #. type: =head2
14201 #: ../fish/guestfish-actions.pod:3956
14202 msgid "pvresize"
14203 msgstr ""
14204
14205 #. type: verbatim
14206 #: ../fish/guestfish-actions.pod:3958
14207 #, no-wrap
14208 msgid ""
14209 " pvresize device\n"
14210 "\n"
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6149
14215 msgid ""
14216 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14217 "the new size of the underlying device."
14218 msgstr ""
14219
14220 #. type: =head2
14221 #: ../fish/guestfish-actions.pod:3963
14222 msgid "pvresize-size"
14223 msgstr ""
14224
14225 #. type: verbatim
14226 #: ../fish/guestfish-actions.pod:3965
14227 #, no-wrap
14228 msgid ""
14229 " pvresize-size device size\n"
14230 "\n"
14231 msgstr ""
14232
14233 #. type: textblock
14234 #: ../fish/guestfish-actions.pod:3967
14235 msgid ""
14236 "This command is the same as L</pvresize> except that it allows you to "
14237 "specify the new size (in bytes) explicitly."
14238 msgstr ""
14239
14240 #. type: =head2
14241 #: ../fish/guestfish-actions.pod:3970
14242 msgid "pvs"
14243 msgstr ""
14244
14245 #. type: verbatim
14246 #: ../fish/guestfish-actions.pod:3972
14247 #, no-wrap
14248 msgid ""
14249 " pvs\n"
14250 "\n"
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6175
14255 msgid ""
14256 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14257 "(8)> command."
14258 msgstr ""
14259
14260 #. type: textblock
14261 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6178
14262 msgid ""
14263 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14264 "sda2>)."
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:3980
14269 msgid "See also L</pvs-full>."
14270 msgstr ""
14271
14272 #. type: =head2
14273 #: ../fish/guestfish-actions.pod:3982
14274 msgid "pvs-full"
14275 msgstr ""
14276
14277 #. type: verbatim
14278 #: ../fish/guestfish-actions.pod:3984
14279 #, no-wrap
14280 msgid ""
14281 " pvs-full\n"
14282 "\n"
14283 msgstr ""
14284
14285 #. type: textblock
14286 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6194
14287 msgid ""
14288 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14289 "(8)> command.  The \"full\" version includes all fields."
14290 msgstr ""
14291
14292 #. type: =head2
14293 #: ../fish/guestfish-actions.pod:3989
14294 msgid "pvuuid"
14295 msgstr ""
14296
14297 #. type: verbatim
14298 #: ../fish/guestfish-actions.pod:3991
14299 #, no-wrap
14300 msgid ""
14301 " pvuuid device\n"
14302 "\n"
14303 msgstr ""
14304
14305 #. type: textblock
14306 #: ../fish/guestfish-actions.pod:3993 ../src/guestfs-actions.pod:6209
14307 msgid "This command returns the UUID of the LVM PV C<device>."
14308 msgstr ""
14309
14310 #. type: =head2
14311 #: ../fish/guestfish-actions.pod:3995
14312 msgid "pwrite"
14313 msgstr ""
14314
14315 #. type: verbatim
14316 #: ../fish/guestfish-actions.pod:3997
14317 #, no-wrap
14318 msgid ""
14319 " pwrite path content offset\n"
14320 "\n"
14321 msgstr ""
14322
14323 #. type: textblock
14324 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6225
14325 msgid ""
14326 "This command writes to part of a file.  It writes the data buffer C<content> "
14327 "to the file C<path> starting at offset C<offset>."
14328 msgstr ""
14329
14330 #. type: textblock
14331 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6228
14332 msgid ""
14333 "This command implements the L<pwrite(2)> system call, and like that system "
14334 "call it may not write the full data requested.  The return value is the "
14335 "number of bytes that were actually written to the file.  This could even be "
14336 "0, although short writes are unlikely for regular files in ordinary "
14337 "circumstances."
14338 msgstr ""
14339
14340 #. type: textblock
14341 #: ../fish/guestfish-actions.pod:4008
14342 msgid "See also L</pread>, L</pwrite-device>."
14343 msgstr ""
14344
14345 #. type: =head2
14346 #: ../fish/guestfish-actions.pod:4013
14347 msgid "pwrite-device"
14348 msgstr ""
14349
14350 #. type: verbatim
14351 #: ../fish/guestfish-actions.pod:4015
14352 #, no-wrap
14353 msgid ""
14354 " pwrite-device device content offset\n"
14355 "\n"
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6252
14360 msgid ""
14361 "This command writes to part of a device.  It writes the data buffer "
14362 "C<content> to C<device> starting at offset C<offset>."
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6255
14367 msgid ""
14368 "This command implements the L<pwrite(2)> system call, and like that system "
14369 "call it may not write the full data requested (although short writes to disk "
14370 "devices and partitions are probably impossible with standard Linux kernels)."
14371 msgstr ""
14372
14373 #. type: textblock
14374 #: ../fish/guestfish-actions.pod:4025
14375 msgid "See also L</pwrite>."
14376 msgstr ""
14377
14378 #. type: =head2
14379 #: ../fish/guestfish-actions.pod:4030
14380 msgid "read-file"
14381 msgstr ""
14382
14383 #. type: verbatim
14384 #: ../fish/guestfish-actions.pod:4032
14385 #, no-wrap
14386 msgid ""
14387 " read-file path\n"
14388 "\n"
14389 msgstr ""
14390
14391 #. type: textblock
14392 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6276
14393 msgid "This calls returns the contents of the file C<path> as a buffer."
14394 msgstr ""
14395
14396 #. type: textblock
14397 #: ../fish/guestfish-actions.pod:4037
14398 msgid ""
14399 "Unlike L</cat>, this function can correctly handle files that contain "
14400 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14401 "is limited in the total size of file that can be handled."
14402 msgstr ""
14403
14404 #. type: =head2
14405 #: ../fish/guestfish-actions.pod:4045
14406 msgid "read-lines"
14407 msgstr ""
14408
14409 #. type: verbatim
14410 #: ../fish/guestfish-actions.pod:4047
14411 #, no-wrap
14412 msgid ""
14413 " read-lines path\n"
14414 "\n"
14415 msgstr ""
14416
14417 #. type: textblock
14418 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6301
14419 msgid ""
14420 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14421 "C<CRLF> character sequences are I<not> returned."
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../fish/guestfish-actions.pod:4054
14426 msgid ""
14427 "Note that this function cannot correctly handle binary files (specifically, "
14428 "files containing C<\\0> character which is treated as end of line).  For "
14429 "those you need to use the L</read-file> function which has a more complex "
14430 "interface."
14431 msgstr ""
14432
14433 #. type: =head2
14434 #: ../fish/guestfish-actions.pod:4059
14435 msgid "readdir"
14436 msgstr ""
14437
14438 #. type: verbatim
14439 #: ../fish/guestfish-actions.pod:4061
14440 #, no-wrap
14441 msgid ""
14442 " readdir dir\n"
14443 "\n"
14444 msgstr ""
14445
14446 #. type: textblock
14447 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6321
14448 msgid "This returns the list of directory entries in directory C<dir>."
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6323
14453 msgid ""
14454 "All entries in the directory are returned, including C<.> and C<..>.  The "
14455 "entries are I<not> sorted, but returned in the same order as the underlying "
14456 "filesystem."
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6327
14461 msgid ""
14462 "Also this call returns basic file type information about each file.  The "
14463 "C<ftyp> field will contain one of the following characters:"
14464 msgstr ""
14465
14466 #. type: =item
14467 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6332
14468 msgid "'b'"
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6334
14473 msgid "Block special"
14474 msgstr ""
14475
14476 #. type: =item
14477 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6336
14478 msgid "'c'"
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6338
14483 msgid "Char special"
14484 msgstr ""
14485
14486 #. type: =item
14487 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6340
14488 msgid "'d'"
14489 msgstr ""
14490
14491 #. type: textblock
14492 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6342
14493 msgid "Directory"
14494 msgstr ""
14495
14496 #. type: =item
14497 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6344
14498 msgid "'f'"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6346
14503 msgid "FIFO (named pipe)"
14504 msgstr ""
14505
14506 #. type: =item
14507 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6348
14508 msgid "'l'"
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6350
14513 msgid "Symbolic link"
14514 msgstr ""
14515
14516 #. type: =item
14517 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6352
14518 msgid "'r'"
14519 msgstr ""
14520
14521 #. type: textblock
14522 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6354
14523 msgid "Regular file"
14524 msgstr ""
14525
14526 #. type: =item
14527 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6356
14528 msgid "'s'"
14529 msgstr ""
14530
14531 #. type: textblock
14532 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6358
14533 msgid "Socket"
14534 msgstr ""
14535
14536 #. type: =item
14537 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6360
14538 msgid "'u'"
14539 msgstr ""
14540
14541 #. type: textblock
14542 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6362
14543 msgid "Unknown file type"
14544 msgstr ""
14545
14546 #. type: =item
14547 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6364
14548 msgid "'?'"
14549 msgstr ""
14550
14551 #. type: textblock
14552 #: ../fish/guestfish-actions.pod:4108 ../src/guestfs-actions.pod:6366
14553 msgid ""
14554 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14555 msgstr ""
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:4113
14559 msgid ""
14560 "This function is primarily intended for use by programs.  To get a simple "
14561 "list of names, use L</ls>.  To get a printable directory for human "
14562 "consumption, use L</ll>."
14563 msgstr ""
14564
14565 #. type: =head2
14566 #: ../fish/guestfish-actions.pod:4117
14567 msgid "readlink"
14568 msgstr ""
14569
14570 #. type: verbatim
14571 #: ../fish/guestfish-actions.pod:4119
14572 #, no-wrap
14573 msgid ""
14574 " readlink path\n"
14575 "\n"
14576 msgstr ""
14577
14578 #. type: textblock
14579 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6387
14580 msgid "This command reads the target of a symbolic link."
14581 msgstr ""
14582
14583 #. type: =head2
14584 #: ../fish/guestfish-actions.pod:4123
14585 msgid "readlinklist"
14586 msgstr ""
14587
14588 #. type: verbatim
14589 #: ../fish/guestfish-actions.pod:4125
14590 #, no-wrap
14591 msgid ""
14592 " readlinklist path 'names ...'\n"
14593 "\n"
14594 msgstr ""
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4127 ../src/guestfs-actions.pod:6401
14598 msgid ""
14599 "This call allows you to do a C<readlink> operation on multiple files, where "
14600 "all files are in the directory C<path>.  C<names> is the list of files from "
14601 "this directory."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6405
14606 msgid ""
14607 "On return you get a list of strings, with a one-to-one correspondence to the "
14608 "C<names> list.  Each string is the value of the symbolic link."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6409
14613 msgid ""
14614 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14615 "result string is the empty string C<\"\">.  However the whole operation is "
14616 "completed even if there were C<readlink(2)> errors, and so you can call this "
14617 "function with names where you don't know if they are symbolic links already "
14618 "(albeit slightly less efficient)."
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6416
14623 msgid ""
14624 "This call is intended for programs that want to efficiently list a directory "
14625 "contents without making many round-trips.  Very long directory listings "
14626 "might cause the protocol message size to be exceeded, causing this call to "
14627 "fail.  The caller must split up such requests into smaller groups of names."
14628 msgstr ""
14629
14630 #. type: =head2
14631 #: ../fish/guestfish-actions.pod:4149
14632 msgid "realpath"
14633 msgstr ""
14634
14635 #. type: verbatim
14636 #: ../fish/guestfish-actions.pod:4151
14637 #, no-wrap
14638 msgid ""
14639 " realpath path\n"
14640 "\n"
14641 msgstr ""
14642
14643 #. type: textblock
14644 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6435
14645 msgid ""
14646 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14647 "has no C<.>, C<..> or symbolic link path elements."
14648 msgstr ""
14649
14650 #. type: =head2
14651 #: ../fish/guestfish-actions.pod:4156
14652 msgid "removexattr"
14653 msgstr ""
14654
14655 #. type: verbatim
14656 #: ../fish/guestfish-actions.pod:4158
14657 #, no-wrap
14658 msgid ""
14659 " removexattr xattr path\n"
14660 "\n"
14661 msgstr ""
14662
14663 #. type: textblock
14664 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6450
14665 msgid ""
14666 "This call removes the extended attribute named C<xattr> of the file C<path>."
14667 msgstr ""
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:4163
14671 msgid "See also: L</lremovexattr>, L<attr(5)>."
14672 msgstr ""
14673
14674 #. type: =head2
14675 #: ../fish/guestfish-actions.pod:4165
14676 msgid "resize2fs"
14677 msgstr ""
14678
14679 #. type: verbatim
14680 #: ../fish/guestfish-actions.pod:4167
14681 #, no-wrap
14682 msgid ""
14683 " resize2fs device\n"
14684 "\n"
14685 msgstr ""
14686
14687 #. type: textblock
14688 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6465
14689 msgid ""
14690 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14691 "underlying device."
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../fish/guestfish-actions.pod:4172
14696 msgid ""
14697 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14698 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14699 "gives an error about this and sometimes not.  In any case, it is always safe "
14700 "to call L</e2fsck-f> before calling this function."
14701 msgstr ""
14702
14703 #. type: =head2
14704 #: ../fish/guestfish-actions.pod:4178
14705 msgid "resize2fs-M"
14706 msgstr ""
14707
14708 #. type: verbatim
14709 #: ../fish/guestfish-actions.pod:4180
14710 #, no-wrap
14711 msgid ""
14712 " resize2fs-M device\n"
14713 "\n"
14714 msgstr ""
14715
14716 #. type: textblock
14717 #: ../fish/guestfish-actions.pod:4182
14718 msgid ""
14719 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14720 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14721 "command."
14722 msgstr ""
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:4186
14726 msgid ""
14727 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14728 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14729 "multiplied together, give the resulting size of the minimal filesystem in "
14730 "bytes."
14731 msgstr ""
14732
14733 #. type: =head2
14734 #: ../fish/guestfish-actions.pod:4191
14735 msgid "resize2fs-size"
14736 msgstr ""
14737
14738 #. type: verbatim
14739 #: ../fish/guestfish-actions.pod:4193
14740 #, no-wrap
14741 msgid ""
14742 " resize2fs-size device size\n"
14743 "\n"
14744 msgstr ""
14745
14746 #. type: textblock
14747 #: ../fish/guestfish-actions.pod:4195
14748 msgid ""
14749 "This command is the same as L</resize2fs> except that it allows you to "
14750 "specify the new size (in bytes) explicitly."
14751 msgstr ""
14752
14753 #. type: =head2
14754 #: ../fish/guestfish-actions.pod:4198
14755 msgid "rm"
14756 msgstr ""
14757
14758 #. type: verbatim
14759 #: ../fish/guestfish-actions.pod:4200
14760 #, no-wrap
14761 msgid ""
14762 " rm path\n"
14763 "\n"
14764 msgstr ""
14765
14766 #. type: textblock
14767 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6517
14768 msgid "Remove the single file C<path>."
14769 msgstr ""
14770
14771 #. type: =head2
14772 #: ../fish/guestfish-actions.pod:4204
14773 msgid "rm-rf"
14774 msgstr ""
14775
14776 #. type: verbatim
14777 #: ../fish/guestfish-actions.pod:4206
14778 #, no-wrap
14779 msgid ""
14780 " rm-rf path\n"
14781 "\n"
14782 msgstr ""
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6529
14786 msgid ""
14787 "Remove the file or directory C<path>, recursively removing the contents if "
14788 "its a directory.  This is like the C<rm -rf> shell command."
14789 msgstr ""
14790
14791 #. type: =head2
14792 #: ../fish/guestfish-actions.pod:4212
14793 msgid "rmdir"
14794 msgstr ""
14795
14796 #. type: verbatim
14797 #: ../fish/guestfish-actions.pod:4214
14798 #, no-wrap
14799 msgid ""
14800 " rmdir path\n"
14801 "\n"
14802 msgstr ""
14803
14804 #. type: textblock
14805 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6543
14806 msgid "Remove the single directory C<path>."
14807 msgstr ""
14808
14809 #. type: =head2
14810 #: ../fish/guestfish-actions.pod:4218
14811 msgid "rmmountpoint"
14812 msgstr ""
14813
14814 #. type: verbatim
14815 #: ../fish/guestfish-actions.pod:4220
14816 #, no-wrap
14817 msgid ""
14818 " rmmountpoint exemptpath\n"
14819 "\n"
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4222
14824 msgid ""
14825 "This calls removes a mountpoint that was previously created with L</"
14826 "mkmountpoint>.  See L</mkmountpoint> for full details."
14827 msgstr ""
14828
14829 #. type: =head2
14830 #: ../fish/guestfish-actions.pod:4226
14831 msgid "scrub-device"
14832 msgstr ""
14833
14834 #. type: verbatim
14835 #: ../fish/guestfish-actions.pod:4228
14836 #, no-wrap
14837 msgid ""
14838 " scrub-device device\n"
14839 "\n"
14840 msgstr ""
14841
14842 #. type: textblock
14843 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6569
14844 msgid ""
14845 "This command writes patterns over C<device> to make data retrieval more "
14846 "difficult."
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4248
14851 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6572
14852 #: ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
14853 msgid ""
14854 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14855 "more details."
14856 msgstr ""
14857
14858 #. type: =head2
14859 #: ../fish/guestfish-actions.pod:4239
14860 msgid "scrub-file"
14861 msgstr ""
14862
14863 #. type: verbatim
14864 #: ../fish/guestfish-actions.pod:4241
14865 #, no-wrap
14866 msgid ""
14867 " scrub-file file\n"
14868 "\n"
14869 msgstr ""
14870
14871 #. type: textblock
14872 #: ../fish/guestfish-actions.pod:4243 ../src/guestfs-actions.pod:6588
14873 msgid ""
14874 "This command writes patterns over a file to make data retrieval more "
14875 "difficult."
14876 msgstr ""
14877
14878 #. type: textblock
14879 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6591
14880 msgid "The file is I<removed> after scrubbing."
14881 msgstr ""
14882
14883 #. type: =head2
14884 #: ../fish/guestfish-actions.pod:4251
14885 msgid "scrub-freespace"
14886 msgstr ""
14887
14888 #. type: verbatim
14889 #: ../fish/guestfish-actions.pod:4253
14890 #, no-wrap
14891 msgid ""
14892 " scrub-freespace dir\n"
14893 "\n"
14894 msgstr ""
14895
14896 #. type: textblock
14897 #: ../fish/guestfish-actions.pod:4255
14898 msgid ""
14899 "This command creates the directory C<dir> and then fills it with files until "
14900 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14901 "deletes them.  The intention is to scrub any free space on the partition "
14902 "containing C<dir>."
14903 msgstr ""
14904
14905 #. type: =head2
14906 #: ../fish/guestfish-actions.pod:4264
14907 msgid "set-append"
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../fish/guestfish-actions.pod:4266
14912 msgid "append"
14913 msgstr ""
14914
14915 #. type: verbatim
14916 #: ../fish/guestfish-actions.pod:4268
14917 #, no-wrap
14918 msgid ""
14919 " set-append append\n"
14920 "\n"
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6625
14925 msgid ""
14926 "This function is used to add additional options to the guest kernel command "
14927 "line."
14928 msgstr ""
14929
14930 #. type: textblock
14931 #: ../fish/guestfish-actions.pod:4273 ../src/guestfs-actions.pod:6628
14932 msgid ""
14933 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14934 "environment variable."
14935 msgstr ""
14936
14937 #. type: textblock
14938 #: ../fish/guestfish-actions.pod:4276 ../src/guestfs-actions.pod:6631
14939 msgid ""
14940 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14941 "(libguestfs always adds a few of its own)."
14942 msgstr ""
14943
14944 #. type: =head2
14945 #: ../fish/guestfish-actions.pod:4279
14946 msgid "set-attach-method"
14947 msgstr ""
14948
14949 #. type: =head2
14950 #: ../fish/guestfish-actions.pod:4281
14951 msgid "attach-method"
14952 msgstr ""
14953
14954 #. type: verbatim
14955 #: ../fish/guestfish-actions.pod:4283
14956 #, no-wrap
14957 msgid ""
14958 " set-attach-method attachmethod\n"
14959 "\n"
14960 msgstr ""
14961
14962 #. type: textblock
14963 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6644
14964 msgid ""
14965 "Set the method that libguestfs uses to connect to the back end guestfsd "
14966 "daemon.  Possible methods are:"
14967 msgstr ""
14968
14969 #. type: =item
14970 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6649
14971 #: ../src/guestfs.pod:2916
14972 msgid "C<appliance>"
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6651
14977 msgid ""
14978 "Launch an appliance and connect to it.  This is the ordinary method and the "
14979 "default."
14980 msgstr ""
14981
14982 #. type: =item
14983 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6654
14984 msgid "C<unix:I<path>>"
14985 msgstr ""
14986
14987 #. type: textblock
14988 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6656
14989 msgid "Connect to the Unix domain socket I<path>."
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6658
14994 msgid ""
14995 "This method lets you connect to an existing daemon or (using virtio-serial) "
14996 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14997 "RUNNING DAEMONS>."
14998 msgstr ""
14999
15000 #. type: =head2
15001 #: ../fish/guestfish-actions.pod:4305
15002 msgid "set-autosync"
15003 msgstr ""
15004
15005 #. type: =head2
15006 #: ../fish/guestfish-actions.pod:4307
15007 msgid "autosync"
15008 msgstr ""
15009
15010 #. type: verbatim
15011 #: ../fish/guestfish-actions.pod:4309
15012 #, no-wrap
15013 msgid ""
15014 " set-autosync true|false\n"
15015 "\n"
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4311 ../src/guestfs-actions.pod:6674
15020 msgid ""
15021 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15022 "effort attempt to make filesystems consistent and synchronized when the "
15023 "handle is closed (also if the program exits without closing handles)."
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6679
15028 msgid ""
15029 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15030 "disabled by default)."
15031 msgstr ""
15032
15033 #. type: =head2
15034 #: ../fish/guestfish-actions.pod:4319
15035 msgid "set-direct"
15036 msgstr ""
15037
15038 #. type: =head2
15039 #: ../fish/guestfish-actions.pod:4321
15040 msgid "direct"
15041 msgstr ""
15042
15043 #. type: verbatim
15044 #: ../fish/guestfish-actions.pod:4323
15045 #, no-wrap
15046 msgid ""
15047 " set-direct true|false\n"
15048 "\n"
15049 msgstr ""
15050
15051 #. type: textblock
15052 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6692
15053 msgid ""
15054 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15055 "passed directly through to the appliance once it is launched."
15056 msgstr ""
15057
15058 #. type: textblock
15059 #: ../fish/guestfish-actions.pod:4329
15060 msgid ""
15061 "One consequence of this is that log messages aren't caught by the library "
15062 "and handled by L</set-log-message-callback>, but go straight to stdout."
15063 msgstr ""
15064
15065 #. type: textblock
15066 #: ../fish/guestfish-actions.pod:4333 ../src/guestfs-actions.pod:6700
15067 msgid "You probably don't want to use this unless you know what you are doing."
15068 msgstr ""
15069
15070 #. type: textblock
15071 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6703
15072 msgid "The default is disabled."
15073 msgstr ""
15074
15075 #. type: =head2
15076 #: ../fish/guestfish-actions.pod:4338
15077 msgid "set-e2label"
15078 msgstr ""
15079
15080 #. type: verbatim
15081 #: ../fish/guestfish-actions.pod:4340
15082 #, no-wrap
15083 msgid ""
15084 " set-e2label device label\n"
15085 "\n"
15086 msgstr ""
15087
15088 #. type: textblock
15089 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6716
15090 msgid ""
15091 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15092 "C<label>.  Filesystem labels are limited to 16 characters."
15093 msgstr ""
15094
15095 #. type: textblock
15096 #: ../fish/guestfish-actions.pod:4346
15097 msgid ""
15098 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15099 "label on a filesystem."
15100 msgstr ""
15101
15102 #. type: =head2
15103 #: ../fish/guestfish-actions.pod:4349
15104 msgid "set-e2uuid"
15105 msgstr ""
15106
15107 #. type: verbatim
15108 #: ../fish/guestfish-actions.pod:4351
15109 #, no-wrap
15110 msgid ""
15111 " set-e2uuid device uuid\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6734
15117 msgid ""
15118 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15119 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15120 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:4358
15125 msgid ""
15126 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15127 "UUID of a filesystem."
15128 msgstr ""
15129
15130 #. type: =head2
15131 #: ../fish/guestfish-actions.pod:4361
15132 msgid "set-memsize"
15133 msgstr ""
15134
15135 #. type: =head2
15136 #: ../fish/guestfish-actions.pod:4363
15137 msgid "memsize"
15138 msgstr ""
15139
15140 #. type: verbatim
15141 #: ../fish/guestfish-actions.pod:4365
15142 #, no-wrap
15143 msgid ""
15144 " set-memsize memsize\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4367
15150 msgid ""
15151 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15152 "This only has any effect if called before L</launch>."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4371 ../src/guestfs-actions.pod:6756
15157 msgid ""
15158 "You can also change this by setting the environment variable "
15159 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15160 msgstr ""
15161
15162 #. type: =head2
15163 #: ../fish/guestfish-actions.pod:4378
15164 msgid "set-network"
15165 msgstr ""
15166
15167 #. type: =head2
15168 #: ../fish/guestfish-actions.pod:4380
15169 msgid "network"
15170 msgstr ""
15171
15172 #. type: verbatim
15173 #: ../fish/guestfish-actions.pod:4382
15174 #, no-wrap
15175 msgid ""
15176 " set-network true|false\n"
15177 "\n"
15178 msgstr ""
15179
15180 #. type: textblock
15181 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6773
15182 msgid ""
15183 "If C<network> is true, then the network is enabled in the libguestfs "
15184 "appliance.  The default is false."
15185 msgstr ""
15186
15187 #. type: textblock
15188 #: ../fish/guestfish-actions.pod:4387 ../src/guestfs-actions.pod:6776
15189 msgid ""
15190 "This affects whether commands are able to access the network (see L<guestfs"
15191 "(3)/RUNNING COMMANDS>)."
15192 msgstr ""
15193
15194 #. type: textblock
15195 #: ../fish/guestfish-actions.pod:4390
15196 msgid ""
15197 "You must call this before calling L</launch>, otherwise it has no effect."
15198 msgstr ""
15199
15200 #. type: =head2
15201 #: ../fish/guestfish-actions.pod:4393
15202 msgid "set-path"
15203 msgstr ""
15204
15205 #. type: verbatim
15206 #: ../fish/guestfish-actions.pod:4397
15207 #, no-wrap
15208 msgid ""
15209 " set-path searchpath\n"
15210 "\n"
15211 msgstr ""
15212
15213 #. type: textblock
15214 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6792
15215 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15216 msgstr ""
15217
15218 #. type: textblock
15219 #: ../fish/guestfish-actions.pod:4401 ../src/guestfs-actions.pod:6794
15220 msgid ""
15221 "The default is C<$libdir/guestfs> unless overridden by setting "
15222 "C<LIBGUESTFS_PATH> environment variable."
15223 msgstr ""
15224
15225 #. type: textblock
15226 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6797
15227 msgid "Setting C<path> to C<NULL> restores the default path."
15228 msgstr ""
15229
15230 #. type: =head2
15231 #: ../fish/guestfish-actions.pod:4406
15232 msgid "set-pgroup"
15233 msgstr ""
15234
15235 #. type: =head2
15236 #: ../fish/guestfish-actions.pod:4408
15237 msgid "pgroup"
15238 msgstr ""
15239
15240 #. type: verbatim
15241 #: ../fish/guestfish-actions.pod:4410
15242 #, no-wrap
15243 msgid ""
15244 " set-pgroup true|false\n"
15245 "\n"
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6809
15250 msgid ""
15251 "If C<pgroup> is true, child processes are placed into their own process "
15252 "group."
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6812
15257 msgid ""
15258 "The practical upshot of this is that signals like C<SIGINT> (from users "
15259 "pressing C<^C>) won't be received by the child process."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6815
15264 msgid ""
15265 "The default for this flag is false, because usually you want C<^C> to kill "
15266 "the subprocess."
15267 msgstr ""
15268
15269 #. type: =head2
15270 #: ../fish/guestfish-actions.pod:4421
15271 msgid "set-qemu"
15272 msgstr ""
15273
15274 #. type: =head2
15275 #: ../fish/guestfish-actions.pod:4423
15276 msgid "qemu"
15277 msgstr ""
15278
15279 #. type: verbatim
15280 #: ../fish/guestfish-actions.pod:4425
15281 #, no-wrap
15282 msgid ""
15283 " set-qemu qemu\n"
15284 "\n"
15285 msgstr ""
15286
15287 #. type: textblock
15288 #: ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6828
15289 msgid "Set the qemu binary that we will use."
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6830
15294 msgid ""
15295 "The default is chosen when the library was compiled by the configure script."
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6833
15300 msgid ""
15301 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15302 "variable."
15303 msgstr ""
15304
15305 #. type: textblock
15306 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6836
15307 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15308 msgstr ""
15309
15310 #. type: textblock
15311 #: ../fish/guestfish-actions.pod:4437 ../src/guestfs-actions.pod:6838
15312 msgid ""
15313 "Note that you should call this function as early as possible after creating "
15314 "the handle.  This is because some pre-launch operations depend on testing "
15315 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15316 "don't retest features, and so you might see inconsistent results.  Using the "
15317 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15318 "the qemu binary at the same time as the handle is created."
15319 msgstr ""
15320
15321 #. type: =head2
15322 #: ../fish/guestfish-actions.pod:4445
15323 msgid "set-recovery-proc"
15324 msgstr ""
15325
15326 #. type: =head2
15327 #: ../fish/guestfish-actions.pod:4447
15328 msgid "recovery-proc"
15329 msgstr ""
15330
15331 #. type: verbatim
15332 #: ../fish/guestfish-actions.pod:4449
15333 #, no-wrap
15334 msgid ""
15335 " set-recovery-proc true|false\n"
15336 "\n"
15337 msgstr ""
15338
15339 #. type: textblock
15340 #: ../fish/guestfish-actions.pod:4451
15341 msgid ""
15342 "If this is called with the parameter C<false> then L</launch> does not "
15343 "create a recovery process.  The purpose of the recovery process is to stop "
15344 "runaway qemu processes in the case where the main program aborts abruptly."
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:4456
15349 msgid ""
15350 "This only has any effect if called before L</launch>, and the default is "
15351 "true."
15352 msgstr ""
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6864
15356 msgid ""
15357 "About the only time when you would want to disable this is if the main "
15358 "process will fork itself into the background (\"daemonize\" itself).  In "
15359 "this case the recovery process thinks that the main program has disappeared "
15360 "and so kills qemu, which is not very helpful."
15361 msgstr ""
15362
15363 #. type: =head2
15364 #: ../fish/guestfish-actions.pod:4465
15365 msgid "set-selinux"
15366 msgstr ""
15367
15368 #. type: =head2
15369 #: ../fish/guestfish-actions.pod:4467
15370 msgid "selinux"
15371 msgstr ""
15372
15373 #. type: verbatim
15374 #: ../fish/guestfish-actions.pod:4469
15375 #, no-wrap
15376 msgid ""
15377 " set-selinux true|false\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6880
15383 msgid ""
15384 "This sets the selinux flag that is passed to the appliance at boot time.  "
15385 "The default is C<selinux=0> (disabled)."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6883
15390 msgid ""
15391 "Note that if SELinux is enabled, it is always in Permissive mode "
15392 "(C<enforcing=0>)."
15393 msgstr ""
15394
15395 #. type: =head2
15396 #: ../fish/guestfish-actions.pod:4480
15397 msgid "set-smp"
15398 msgstr ""
15399
15400 #. type: =head2
15401 #: ../fish/guestfish-actions.pod:4482
15402 msgid "smp"
15403 msgstr ""
15404
15405 #. type: verbatim
15406 #: ../fish/guestfish-actions.pod:4484
15407 #, no-wrap
15408 msgid ""
15409 " set-smp smp\n"
15410 "\n"
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6899
15415 msgid ""
15416 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15417 "C<1>.  Increasing this may improve performance, though often it has no "
15418 "effect."
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4490
15423 msgid "This function must be called before L</launch>."
15424 msgstr ""
15425
15426 #. type: =head2
15427 #: ../fish/guestfish-actions.pod:4492
15428 msgid "set-trace"
15429 msgstr ""
15430
15431 #. type: =head2
15432 #: ../fish/guestfish-actions.pod:4494
15433 msgid "trace"
15434 msgstr ""
15435
15436 #. type: verbatim
15437 #: ../fish/guestfish-actions.pod:4496
15438 #, no-wrap
15439 msgid ""
15440 " set-trace true|false\n"
15441 "\n"
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6915
15446 msgid ""
15447 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15448 "return values are traced."
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6918
15453 msgid ""
15454 "If you want to trace C API calls into libguestfs (and other libraries) then "
15455 "possibly a better way is to use the external ltrace(1) command."
15456 msgstr ""
15457
15458 #. type: textblock
15459 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6922
15460 msgid ""
15461 "Command traces are disabled unless the environment variable "
15462 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15463 msgstr ""
15464
15465 #. type: textblock
15466 #: ../fish/guestfish-actions.pod:4508
15467 msgid ""
15468 "Trace messages are normally sent to C<stderr>, unless you register a "
15469 "callback to send them somewhere else (see L</set-event-callback>)."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../fish/guestfish-actions.pod:4512
15474 msgid "set-verbose"
15475 msgstr ""
15476
15477 #. type: =head2
15478 #: ../fish/guestfish-actions.pod:4514
15479 msgid "verbose"
15480 msgstr ""
15481
15482 #. type: verbatim
15483 #: ../fish/guestfish-actions.pod:4516
15484 #, no-wrap
15485 msgid ""
15486 " set-verbose true|false\n"
15487 "\n"
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4518 ../src/guestfs-actions.pod:6939
15492 msgid "If C<verbose> is true, this turns on verbose messages."
15493 msgstr ""
15494
15495 #. type: textblock
15496 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6941
15497 msgid ""
15498 "Verbose messages are disabled unless the environment variable "
15499 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15500 msgstr ""
15501
15502 #. type: textblock
15503 #: ../fish/guestfish-actions.pod:4523
15504 msgid ""
15505 "Verbose messages are normally sent to C<stderr>, unless you register a "
15506 "callback to send them somewhere else (see L</set-event-callback>)."
15507 msgstr ""
15508
15509 #. type: =head2
15510 #: ../fish/guestfish-actions.pod:4527
15511 msgid "setcon"
15512 msgstr ""
15513
15514 #. type: verbatim
15515 #: ../fish/guestfish-actions.pod:4529
15516 #, no-wrap
15517 msgid ""
15518 " setcon context\n"
15519 "\n"
15520 msgstr ""
15521
15522 #. type: textblock
15523 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:6958
15524 msgid ""
15525 "This sets the SELinux security context of the daemon to the string "
15526 "C<context>."
15527 msgstr ""
15528
15529 #. type: textblock
15530 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:6961
15531 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15532 msgstr ""
15533
15534 #. type: =head2
15535 #: ../fish/guestfish-actions.pod:4536
15536 msgid "setxattr"
15537 msgstr ""
15538
15539 #. type: verbatim
15540 #: ../fish/guestfish-actions.pod:4538
15541 #, no-wrap
15542 msgid ""
15543 " setxattr xattr val vallen path\n"
15544 "\n"
15545 msgstr ""
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6976
15549 msgid ""
15550 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15551 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4544
15556 msgid "See also: L</lsetxattr>, L<attr(5)>."
15557 msgstr ""
15558
15559 #. type: =head2
15560 #: ../fish/guestfish-actions.pod:4546
15561 msgid "sfdisk"
15562 msgstr ""
15563
15564 #. type: verbatim
15565 #: ../fish/guestfish-actions.pod:4548
15566 #, no-wrap
15567 msgid ""
15568 " sfdisk device cyls heads sectors 'lines ...'\n"
15569 "\n"
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:7003
15574 msgid ""
15575 "This is a direct interface to the L<sfdisk(8)> program for creating "
15576 "partitions on block devices."
15577 msgstr ""
15578
15579 #. type: textblock
15580 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7006
15581 msgid "C<device> should be a block device, for example C</dev/sda>."
15582 msgstr ""
15583
15584 #. type: textblock
15585 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:7008
15586 msgid ""
15587 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15588 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15589 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15590 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15591 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15592 "the kernel) cannot work out the right geometry and you will need to tell it."
15593 msgstr ""
15594
15595 #. type: textblock
15596 #: ../fish/guestfish-actions.pod:4563 ../src/guestfs-actions.pod:7016
15597 msgid ""
15598 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15599 "refer to the L<sfdisk(8)> manpage."
15600 msgstr ""
15601
15602 #. type: textblock
15603 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:7019
15604 msgid ""
15605 "To create a single partition occupying the whole disk, you would pass "
15606 "C<lines> as a single element list, when the single element being the string "
15607 "C<,> (comma)."
15608 msgstr ""
15609
15610 #. type: textblock
15611 #: ../fish/guestfish-actions.pod:4570
15612 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15613 msgstr ""
15614
15615 #. type: textblock
15616 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4599
15617 #: ../fish/guestfish-actions.pod:4621
15618 msgid ""
15619 "I<This function is deprecated.> In new code, use the L</part_add> call "
15620 "instead."
15621 msgstr ""
15622
15623 #. type: =head2
15624 #: ../fish/guestfish-actions.pod:4583
15625 msgid "sfdiskM"
15626 msgstr ""
15627
15628 #. type: verbatim
15629 #: ../fish/guestfish-actions.pod:4585
15630 #, no-wrap
15631 msgid ""
15632 " sfdiskM device 'lines ...'\n"
15633 "\n"
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4587
15638 msgid ""
15639 "This is a simplified interface to the L</sfdisk> command, where partition "
15640 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15641 "you don't need to specify the cyls, heads and sectors parameters which were "
15642 "rarely if ever used anyway."
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-actions.pod:4593
15647 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15648 msgstr ""
15649
15650 #. type: =head2
15651 #: ../fish/guestfish-actions.pod:4606
15652 msgid "sfdisk-N"
15653 msgstr ""
15654
15655 #. type: verbatim
15656 #: ../fish/guestfish-actions.pod:4608
15657 #, no-wrap
15658 msgid ""
15659 " sfdisk-N device partnum cyls heads sectors line\n"
15660 "\n"
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7081
15665 msgid ""
15666 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15667 "(note: C<n> counts from 1)."
15668 msgstr ""
15669
15670 #. type: textblock
15671 #: ../fish/guestfish-actions.pod:4613
15672 msgid ""
15673 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15674 "cyls/heads/sectors parameters."
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../fish/guestfish-actions.pod:4616
15679 msgid "See also: L</part-add>"
15680 msgstr ""
15681
15682 #. type: =head2
15683 #: ../fish/guestfish-actions.pod:4628
15684 msgid "sfdisk-disk-geometry"
15685 msgstr ""
15686
15687 #. type: verbatim
15688 #: ../fish/guestfish-actions.pod:4630
15689 #, no-wrap
15690 msgid ""
15691 " sfdisk-disk-geometry device\n"
15692 "\n"
15693 msgstr ""
15694
15695 #. type: textblock
15696 #: ../fish/guestfish-actions.pod:4632
15697 msgid ""
15698 "This displays the disk geometry of C<device> read from the partition table.  "
15699 "Especially in the case where the underlying block device has been resized, "
15700 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15701 "kernel-geometry>)."
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4646
15706 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7123
15707 msgid "The result is in human-readable format, and not designed to be parsed."
15708 msgstr ""
15709
15710 #. type: =head2
15711 #: ../fish/guestfish-actions.pod:4640
15712 msgid "sfdisk-kernel-geometry"
15713 msgstr ""
15714
15715 #. type: verbatim
15716 #: ../fish/guestfish-actions.pod:4642
15717 #, no-wrap
15718 msgid ""
15719 " sfdisk-kernel-geometry device\n"
15720 "\n"
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7121
15725 msgid "This displays the kernel's idea of the geometry of C<device>."
15726 msgstr ""
15727
15728 #. type: =head2
15729 #: ../fish/guestfish-actions.pod:4649
15730 msgid "sfdisk-l"
15731 msgstr ""
15732
15733 #. type: verbatim
15734 #: ../fish/guestfish-actions.pod:4651
15735 #, no-wrap
15736 msgid ""
15737 " sfdisk-l device\n"
15738 "\n"
15739 msgstr ""
15740
15741 #. type: textblock
15742 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7144
15743 msgid ""
15744 "This displays the partition table on C<device>, in the human-readable output "
15745 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4657
15750 msgid "See also: L</part-list>"
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4659
15755 msgid ""
15756 "I<This function is deprecated.> In new code, use the L</part_list> call "
15757 "instead."
15758 msgstr ""
15759
15760 #. type: =head2
15761 #: ../fish/guestfish-actions.pod:4666
15762 msgid "sh"
15763 msgstr ""
15764
15765 #. type: verbatim
15766 #: ../fish/guestfish-actions.pod:4668
15767 #, no-wrap
15768 msgid ""
15769 " sh command\n"
15770 "\n"
15771 msgstr ""
15772
15773 #. type: textblock
15774 #: ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:7161
15775 msgid ""
15776 "This call runs a command from the guest filesystem via the guest's C</bin/"
15777 "sh>."
15778 msgstr ""
15779
15780 #. type: textblock
15781 #: ../fish/guestfish-actions.pod:4673
15782 msgid "This is like L</command>, but passes the command to:"
15783 msgstr ""
15784
15785 #. type: verbatim
15786 #: ../fish/guestfish-actions.pod:4675 ../src/guestfs-actions.pod:7166
15787 #, no-wrap
15788 msgid ""
15789 " /bin/sh -c \"command\"\n"
15790 "\n"
15791 msgstr ""
15792
15793 #. type: textblock
15794 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7168
15795 msgid ""
15796 "Depending on the guest's shell, this usually results in wildcards being "
15797 "expanded, shell expressions being interpolated and so on."
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../fish/guestfish-actions.pod:4681
15802 msgid "All the provisos about L</command> apply to this call."
15803 msgstr ""
15804
15805 #. type: =head2
15806 #: ../fish/guestfish-actions.pod:4683
15807 msgid "sh-lines"
15808 msgstr ""
15809
15810 #. type: verbatim
15811 #: ../fish/guestfish-actions.pod:4685
15812 #, no-wrap
15813 msgid ""
15814 " sh-lines command\n"
15815 "\n"
15816 msgstr ""
15817
15818 #. type: textblock
15819 #: ../fish/guestfish-actions.pod:4687
15820 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../fish/guestfish-actions.pod:4690
15825 msgid "See also: L</command-lines>"
15826 msgstr ""
15827
15828 #. type: =head2
15829 #: ../fish/guestfish-actions.pod:4692
15830 msgid "sleep"
15831 msgstr ""
15832
15833 #. type: verbatim
15834 #: ../fish/guestfish-actions.pod:4694
15835 #, no-wrap
15836 msgid ""
15837 " sleep secs\n"
15838 "\n"
15839 msgstr ""
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7202
15843 msgid "Sleep for C<secs> seconds."
15844 msgstr ""
15845
15846 #. type: =head2
15847 #: ../fish/guestfish-actions.pod:4698
15848 msgid "stat"
15849 msgstr ""
15850
15851 #. type: verbatim
15852 #: ../fish/guestfish-actions.pod:4700
15853 #, no-wrap
15854 msgid ""
15855 " stat path\n"
15856 "\n"
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7216
15861 msgid "This is the same as the C<stat(2)> system call."
15862 msgstr ""
15863
15864 #. type: =head2
15865 #: ../fish/guestfish-actions.pod:4706
15866 msgid "statvfs"
15867 msgstr ""
15868
15869 #. type: verbatim
15870 #: ../fish/guestfish-actions.pod:4708
15871 #, no-wrap
15872 msgid ""
15873 " statvfs path\n"
15874 "\n"
15875 msgstr ""
15876
15877 #. type: textblock
15878 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7230
15879 msgid ""
15880 "Returns file system statistics for any mounted file system.  C<path> should "
15881 "be a file or directory in the mounted file system (typically it is the mount "
15882 "point itself, but it doesn't need to be)."
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7234
15887 msgid "This is the same as the C<statvfs(2)> system call."
15888 msgstr ""
15889
15890 #. type: =head2
15891 #: ../fish/guestfish-actions.pod:4716
15892 msgid "strings"
15893 msgstr ""
15894
15895 #. type: verbatim
15896 #: ../fish/guestfish-actions.pod:4718
15897 #, no-wrap
15898 msgid ""
15899 " strings path\n"
15900 "\n"
15901 msgstr ""
15902
15903 #. type: textblock
15904 #: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7248
15905 msgid ""
15906 "This runs the L<strings(1)> command on a file and returns the list of "
15907 "printable strings found."
15908 msgstr ""
15909
15910 #. type: =head2
15911 #: ../fish/guestfish-actions.pod:4726
15912 msgid "strings-e"
15913 msgstr ""
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish-actions.pod:4728
15917 #, no-wrap
15918 msgid ""
15919 " strings-e encoding path\n"
15920 "\n"
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-actions.pod:4730
15925 msgid ""
15926 "This is like the L</strings> command, but allows you to specify the encoding "
15927 "of strings that are looked for in the source file C<path>."
15928 msgstr ""
15929
15930 #. type: textblock
15931 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7271
15932 msgid "Allowed encodings are:"
15933 msgstr ""
15934
15935 #. type: =item
15936 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7275
15937 msgid "s"
15938 msgstr ""
15939
15940 #. type: textblock
15941 #: ../fish/guestfish-actions.pod:4740
15942 msgid ""
15943 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15944 "ISO-8859-X (this is what L</strings> uses)."
15945 msgstr ""
15946
15947 #. type: =item
15948 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7280
15949 msgid "S"
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:4745 ../src/guestfs-actions.pod:7282
15954 msgid "Single 8-bit-byte characters."
15955 msgstr ""
15956
15957 #. type: =item
15958 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7284
15959 msgid "b"
15960 msgstr ""
15961
15962 #. type: textblock
15963 #: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7286
15964 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15965 msgstr ""
15966
15967 #. type: =item
15968 #: ../fish/guestfish-actions.pod:4752 ../src/guestfs-actions.pod:7289
15969 msgid "l (lower case letter L)"
15970 msgstr ""
15971
15972 #. type: textblock
15973 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7291
15974 msgid ""
15975 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15976 "examining binaries in Windows guests."
15977 msgstr ""
15978
15979 #. type: =item
15980 #: ../fish/guestfish-actions.pod:4757 ../src/guestfs-actions.pod:7294
15981 msgid "B"
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7296
15986 msgid "32-bit big endian such as UCS-4BE."
15987 msgstr ""
15988
15989 #. type: =item
15990 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298
15991 msgid "L"
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7300
15996 msgid "32-bit little endian such as UCS-4LE."
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7304
16001 msgid "The returned strings are transcoded to UTF-8."
16002 msgstr ""
16003
16004 #. type: =head2
16005 #: ../fish/guestfish-actions.pod:4772
16006 msgid "swapoff-device"
16007 msgstr ""
16008
16009 #. type: verbatim
16010 #: ../fish/guestfish-actions.pod:4774
16011 #, no-wrap
16012 msgid ""
16013 " swapoff-device device\n"
16014 "\n"
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../fish/guestfish-actions.pod:4776
16019 msgid ""
16020 "This command disables the libguestfs appliance swap device or partition "
16021 "named C<device>.  See L</swapon-device>."
16022 msgstr ""
16023
16024 #. type: =head2
16025 #: ../fish/guestfish-actions.pod:4780
16026 msgid "swapoff-file"
16027 msgstr ""
16028
16029 #. type: verbatim
16030 #: ../fish/guestfish-actions.pod:4782
16031 #, no-wrap
16032 msgid ""
16033 " swapoff-file file\n"
16034 "\n"
16035 msgstr ""
16036
16037 #. type: textblock
16038 #: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7335
16039 msgid "This command disables the libguestfs appliance swap on file."
16040 msgstr ""
16041
16042 #. type: =head2
16043 #: ../fish/guestfish-actions.pod:4786
16044 msgid "swapoff-label"
16045 msgstr ""
16046
16047 #. type: verbatim
16048 #: ../fish/guestfish-actions.pod:4788
16049 #, no-wrap
16050 msgid ""
16051 " swapoff-label label\n"
16052 "\n"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7347
16057 msgid ""
16058 "This command disables the libguestfs appliance swap on labeled swap "
16059 "partition."
16060 msgstr ""
16061
16062 #. type: =head2
16063 #: ../fish/guestfish-actions.pod:4793
16064 msgid "swapoff-uuid"
16065 msgstr ""
16066
16067 #. type: verbatim
16068 #: ../fish/guestfish-actions.pod:4795
16069 #, no-wrap
16070 msgid ""
16071 " swapoff-uuid uuid\n"
16072 "\n"
16073 msgstr ""
16074
16075 #. type: textblock
16076 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7360
16077 msgid ""
16078 "This command disables the libguestfs appliance swap partition with the given "
16079 "UUID."
16080 msgstr ""
16081
16082 #. type: =head2
16083 #: ../fish/guestfish-actions.pod:4800
16084 msgid "swapon-device"
16085 msgstr ""
16086
16087 #. type: verbatim
16088 #: ../fish/guestfish-actions.pod:4802
16089 #, no-wrap
16090 msgid ""
16091 " swapon-device device\n"
16092 "\n"
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:4804
16097 msgid ""
16098 "This command enables the libguestfs appliance to use the swap device or "
16099 "partition named C<device>.  The increased memory is made available for all "
16100 "commands, for example those run using L</command> or L</sh>."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7378
16105 msgid ""
16106 "Note that you should not swap to existing guest swap partitions unless you "
16107 "know what you are doing.  They may contain hibernation information, or other "
16108 "information that the guest doesn't want you to trash.  You also risk leaking "
16109 "information about the host to the guest this way.  Instead, attach a new "
16110 "host device to the guest and swap on that."
16111 msgstr ""
16112
16113 #. type: =head2
16114 #: ../fish/guestfish-actions.pod:4816
16115 msgid "swapon-file"
16116 msgstr ""
16117
16118 #. type: verbatim
16119 #: ../fish/guestfish-actions.pod:4818
16120 #, no-wrap
16121 msgid ""
16122 " swapon-file file\n"
16123 "\n"
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:4820
16128 msgid ""
16129 "This command enables swap to a file.  See L</swapon-device> for other notes."
16130 msgstr ""
16131
16132 #. type: =head2
16133 #: ../fish/guestfish-actions.pod:4823
16134 msgid "swapon-label"
16135 msgstr ""
16136
16137 #. type: verbatim
16138 #: ../fish/guestfish-actions.pod:4825
16139 #, no-wrap
16140 msgid ""
16141 " swapon-label label\n"
16142 "\n"
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:4827
16147 msgid ""
16148 "This command enables swap to a labeled swap partition.  See L</swapon-"
16149 "device> for other notes."
16150 msgstr ""
16151
16152 #. type: =head2
16153 #: ../fish/guestfish-actions.pod:4830
16154 msgid "swapon-uuid"
16155 msgstr ""
16156
16157 #. type: verbatim
16158 #: ../fish/guestfish-actions.pod:4832
16159 #, no-wrap
16160 msgid ""
16161 " swapon-uuid uuid\n"
16162 "\n"
16163 msgstr ""
16164
16165 #. type: textblock
16166 #: ../fish/guestfish-actions.pod:4834
16167 msgid ""
16168 "This command enables swap to a swap partition with the given UUID.  See L</"
16169 "swapon-device> for other notes."
16170 msgstr ""
16171
16172 #. type: =head2
16173 #: ../fish/guestfish-actions.pod:4837
16174 msgid "sync"
16175 msgstr ""
16176
16177 #. type: verbatim
16178 #: ../fish/guestfish-actions.pod:4839
16179 #, no-wrap
16180 msgid ""
16181 " sync\n"
16182 "\n"
16183 msgstr ""
16184
16185 #. type: textblock
16186 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7433
16187 msgid ""
16188 "This syncs the disk, so that any writes are flushed through to the "
16189 "underlying disk image."
16190 msgstr ""
16191
16192 #. type: textblock
16193 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7436
16194 msgid ""
16195 "You should always call this if you have modified a disk image, before "
16196 "closing the handle."
16197 msgstr ""
16198
16199 #. type: =head2
16200 #: ../fish/guestfish-actions.pod:4847
16201 msgid "tail"
16202 msgstr ""
16203
16204 #. type: verbatim
16205 #: ../fish/guestfish-actions.pod:4849
16206 #, no-wrap
16207 msgid ""
16208 " tail path\n"
16209 "\n"
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7449
16214 msgid ""
16215 "This command returns up to the last 10 lines of a file as a list of strings."
16216 msgstr ""
16217
16218 #. type: =head2
16219 #: ../fish/guestfish-actions.pod:4857
16220 msgid "tail-n"
16221 msgstr ""
16222
16223 #. type: verbatim
16224 #: ../fish/guestfish-actions.pod:4859
16225 #, no-wrap
16226 msgid ""
16227 " tail-n nrlines path\n"
16228 "\n"
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7468
16233 msgid ""
16234 "If the parameter C<nrlines> is a positive number, this returns the last "
16235 "C<nrlines> lines of the file C<path>."
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7471
16240 msgid ""
16241 "If the parameter C<nrlines> is a negative number, this returns lines from "
16242 "the file C<path>, starting with the C<-nrlines>th line."
16243 msgstr ""
16244
16245 #. type: =head2
16246 #: ../fish/guestfish-actions.pod:4872
16247 msgid "tar-in"
16248 msgstr ""
16249
16250 #. type: verbatim
16251 #: ../fish/guestfish-actions.pod:4874
16252 #, no-wrap
16253 msgid ""
16254 " tar-in (tarfile|-) directory\n"
16255 "\n"
16256 msgstr ""
16257
16258 #. type: textblock
16259 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7492
16260 msgid ""
16261 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16262 "tar file) into C<directory>."
16263 msgstr ""
16264
16265 #. type: textblock
16266 #: ../fish/guestfish-actions.pod:4879
16267 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16268 msgstr ""
16269
16270 #. type: =head2
16271 #: ../fish/guestfish-actions.pod:4884
16272 msgid "tar-out"
16273 msgstr ""
16274
16275 #. type: verbatim
16276 #: ../fish/guestfish-actions.pod:4886
16277 #, no-wrap
16278 msgid ""
16279 " tar-out directory (tarfile|-)\n"
16280 "\n"
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7509
16285 msgid ""
16286 "This command packs the contents of C<directory> and downloads it to local "
16287 "file C<tarfile>."
16288 msgstr ""
16289
16290 #. type: textblock
16291 #: ../fish/guestfish-actions.pod:4891
16292 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16293 msgstr ""
16294
16295 #. type: =head2
16296 #: ../fish/guestfish-actions.pod:4896
16297 msgid "tgz-in"
16298 msgstr ""
16299
16300 #. type: verbatim
16301 #: ../fish/guestfish-actions.pod:4898
16302 #, no-wrap
16303 msgid ""
16304 " tgz-in (tarball|-) directory\n"
16305 "\n"
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7526
16310 msgid ""
16311 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16312 "tar file) into C<directory>."
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../fish/guestfish-actions.pod:4903
16317 msgid "To upload an uncompressed tarball, use L</tar-in>."
16318 msgstr ""
16319
16320 #. type: =head2
16321 #: ../fish/guestfish-actions.pod:4907
16322 msgid "tgz-out"
16323 msgstr ""
16324
16325 #. type: verbatim
16326 #: ../fish/guestfish-actions.pod:4909
16327 #, no-wrap
16328 msgid ""
16329 " tgz-out directory (tarball|-)\n"
16330 "\n"
16331 msgstr ""
16332
16333 #. type: textblock
16334 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7542
16335 msgid ""
16336 "This command packs the contents of C<directory> and downloads it to local "
16337 "file C<tarball>."
16338 msgstr ""
16339
16340 #. type: textblock
16341 #: ../fish/guestfish-actions.pod:4914
16342 msgid "To download an uncompressed tarball, use L</tar-out>."
16343 msgstr ""
16344
16345 #. type: =head2
16346 #: ../fish/guestfish-actions.pod:4918
16347 msgid "touch"
16348 msgstr ""
16349
16350 #. type: verbatim
16351 #: ../fish/guestfish-actions.pod:4920
16352 #, no-wrap
16353 msgid ""
16354 " touch path\n"
16355 "\n"
16356 msgstr ""
16357
16358 #. type: textblock
16359 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7557
16360 msgid ""
16361 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16362 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16363 "length file."
16364 msgstr ""
16365
16366 #. type: textblock
16367 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7561
16368 msgid ""
16369 "This command only works on regular files, and will fail on other file types "
16370 "such as directories, symbolic links, block special etc."
16371 msgstr ""
16372
16373 #. type: =head2
16374 #: ../fish/guestfish-actions.pod:4929
16375 msgid "truncate"
16376 msgstr ""
16377
16378 #. type: verbatim
16379 #: ../fish/guestfish-actions.pod:4931
16380 #, no-wrap
16381 msgid ""
16382 " truncate path\n"
16383 "\n"
16384 msgstr ""
16385
16386 #. type: textblock
16387 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7574
16388 msgid ""
16389 "This command truncates C<path> to a zero-length file.  The file must exist "
16390 "already."
16391 msgstr ""
16392
16393 #. type: =head2
16394 #: ../fish/guestfish-actions.pod:4936
16395 msgid "truncate-size"
16396 msgstr ""
16397
16398 #. type: verbatim
16399 #: ../fish/guestfish-actions.pod:4938
16400 #, no-wrap
16401 msgid ""
16402 " truncate-size path size\n"
16403 "\n"
16404 msgstr ""
16405
16406 #. type: textblock
16407 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7588
16408 msgid ""
16409 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16410 "already."
16411 msgstr ""
16412
16413 #. type: textblock
16414 #: ../fish/guestfish-actions.pod:4943
16415 msgid ""
16416 "If the current file size is less than C<size> then the file is extended to "
16417 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16418 "blocks are not allocated for the file until you write to it).  To create a "
16419 "non-sparse file of zeroes, use L</fallocate64> instead."
16420 msgstr ""
16421
16422 #. type: =head2
16423 #: ../fish/guestfish-actions.pod:4949
16424 msgid "tune2fs-l"
16425 msgstr ""
16426
16427 #. type: verbatim
16428 #: ../fish/guestfish-actions.pod:4951
16429 #, no-wrap
16430 msgid ""
16431 " tune2fs-l device\n"
16432 "\n"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7607
16437 msgid ""
16438 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16439 "C<device>."
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7610
16444 msgid ""
16445 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16446 "for more details.  The list of fields returned isn't clearly defined, and "
16447 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16448 "and the filesystem itself."
16449 msgstr ""
16450
16451 #. type: =head2
16452 #: ../fish/guestfish-actions.pod:4961
16453 msgid "txz-in"
16454 msgstr ""
16455
16456 #. type: verbatim
16457 #: ../fish/guestfish-actions.pod:4963
16458 #, no-wrap
16459 msgid ""
16460 " txz-in (tarball|-) directory\n"
16461 "\n"
16462 msgstr ""
16463
16464 #. type: textblock
16465 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7630
16466 msgid ""
16467 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16468 "tar file) into C<directory>."
16469 msgstr ""
16470
16471 #. type: =head2
16472 #: ../fish/guestfish-actions.pod:4970
16473 msgid "txz-out"
16474 msgstr ""
16475
16476 #. type: verbatim
16477 #: ../fish/guestfish-actions.pod:4972
16478 #, no-wrap
16479 msgid ""
16480 " txz-out directory (tarball|-)\n"
16481 "\n"
16482 msgstr ""
16483
16484 #. type: textblock
16485 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7644
16486 msgid ""
16487 "This command packs the contents of C<directory> and downloads it to local "
16488 "file C<tarball> (as an xz compressed tar archive)."
16489 msgstr ""
16490
16491 #. type: =head2
16492 #: ../fish/guestfish-actions.pod:4979
16493 msgid "umask"
16494 msgstr ""
16495
16496 #. type: verbatim
16497 #: ../fish/guestfish-actions.pod:4981
16498 #, no-wrap
16499 msgid ""
16500 " umask mask\n"
16501 "\n"
16502 msgstr ""
16503
16504 #. type: textblock
16505 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7657
16506 msgid ""
16507 "This function sets the mask used for creating new files and device nodes to "
16508 "C<mask & 0777>."
16509 msgstr ""
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:7660
16513 msgid ""
16514 "Typical umask values would be C<022> which creates new files with "
16515 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16516 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16517 msgstr ""
16518
16519 #. type: textblock
16520 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7665
16521 msgid ""
16522 "The default umask is C<022>.  This is important because it means that "
16523 "directories and device nodes will be created with C<0644> or C<0755> mode "
16524 "even if you specify C<0777>."
16525 msgstr ""
16526
16527 #. type: textblock
16528 #: ../fish/guestfish-actions.pod:4995
16529 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16530 msgstr ""
16531
16532 #. type: textblock
16533 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7672
16534 msgid "This call returns the previous umask."
16535 msgstr ""
16536
16537 #. type: =head2
16538 #: ../fish/guestfish-actions.pod:5000
16539 msgid "umount"
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../fish/guestfish-actions.pod:5002
16544 msgid "unmount"
16545 msgstr ""
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish-actions.pod:5004
16549 #, no-wrap
16550 msgid ""
16551 " umount pathordevice\n"
16552 "\n"
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7684
16557 msgid ""
16558 "This unmounts the given filesystem.  The filesystem may be specified either "
16559 "by its mountpoint (path) or the device which contains the filesystem."
16560 msgstr ""
16561
16562 #. type: =head2
16563 #: ../fish/guestfish-actions.pod:5010
16564 msgid "umount-all"
16565 msgstr ""
16566
16567 #. type: =head2
16568 #: ../fish/guestfish-actions.pod:5012
16569 msgid "unmount-all"
16570 msgstr ""
16571
16572 #. type: verbatim
16573 #: ../fish/guestfish-actions.pod:5014
16574 #, no-wrap
16575 msgid ""
16576 " umount-all\n"
16577 "\n"
16578 msgstr ""
16579
16580 #. type: textblock
16581 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7697
16582 msgid "This unmounts all mounted filesystems."
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7699
16587 msgid "Some internal mounts are not unmounted by this call."
16588 msgstr ""
16589
16590 #. type: =head2
16591 #: ../fish/guestfish-actions.pod:5020
16592 msgid "upload"
16593 msgstr ""
16594
16595 #. type: verbatim
16596 #: ../fish/guestfish-actions.pod:5022
16597 #, no-wrap
16598 msgid ""
16599 " upload (filename|-) remotefilename\n"
16600 "\n"
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5037
16605 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7736
16606 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish-actions.pod:5029
16611 msgid "See also L</download>."
16612 msgstr ""
16613
16614 #. type: =head2
16615 #: ../fish/guestfish-actions.pod:5033
16616 msgid "upload-offset"
16617 msgstr ""
16618
16619 #. type: verbatim
16620 #: ../fish/guestfish-actions.pod:5035
16621 #, no-wrap
16622 msgid ""
16623 " upload-offset (filename|-) remotefilename offset\n"
16624 "\n"
16625 msgstr ""
16626
16627 #. type: textblock
16628 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7739
16629 msgid ""
16630 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16631 "The intention is to overwrite parts of existing files or devices, although "
16632 "if a non-existant file is specified then it is created with a \"hole\" "
16633 "before C<offset>.  The size of the data written is implicit in the size of "
16634 "the source C<filename>."
16635 msgstr ""
16636
16637 #. type: textblock
16638 #: ../fish/guestfish-actions.pod:5047
16639 msgid ""
16640 "Note that there is no limit on the amount of data that can be uploaded with "
16641 "this call, unlike with L</pwrite>, and this call always writes the full "
16642 "amount unless an error occurs."
16643 msgstr ""
16644
16645 #. type: textblock
16646 #: ../fish/guestfish-actions.pod:5052
16647 msgid "See also L</upload>, L</pwrite>."
16648 msgstr ""
16649
16650 #. type: =head2
16651 #: ../fish/guestfish-actions.pod:5056
16652 msgid "utimens"
16653 msgstr ""
16654
16655 #. type: verbatim
16656 #: ../fish/guestfish-actions.pod:5058
16657 #, no-wrap
16658 msgid ""
16659 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16660 "\n"
16661 msgstr ""
16662
16663 #. type: textblock
16664 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7772
16665 msgid "This command sets the timestamps of a file with nanosecond precision."
16666 msgstr ""
16667
16668 #. type: textblock
16669 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7775
16670 msgid ""
16671 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16672 "from the epoch."
16673 msgstr ""
16674
16675 #. type: textblock
16676 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7778
16677 msgid ""
16678 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16679 "nanoseconds from the epoch."
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7781
16684 msgid ""
16685 "If the C<*nsecs> field contains the special value C<-1> then the "
16686 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16687 "ignored in this case)."
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7785
16692 msgid ""
16693 "If the C<*nsecs> field contains the special value C<-2> then the "
16694 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16695 "in this case)."
16696 msgstr ""
16697
16698 #. type: =head2
16699 #: ../fish/guestfish-actions.pod:5077
16700 msgid "version"
16701 msgstr ""
16702
16703 #. type: verbatim
16704 #: ../fish/guestfish-actions.pod:5079
16705 #, no-wrap
16706 msgid ""
16707 " version\n"
16708 "\n"
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7798
16713 msgid ""
16714 "Return the libguestfs version number that the program is linked against."
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7801
16719 msgid ""
16720 "Note that because of dynamic linking this is not necessarily the version of "
16721 "libguestfs that you compiled against.  You can compile the program, and then "
16722 "at runtime dynamically link against a completely different C<libguestfs.so> "
16723 "library."
16724 msgstr ""
16725
16726 #. type: textblock
16727 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7806
16728 msgid ""
16729 "This call was added in version C<1.0.58>.  In previous versions of "
16730 "libguestfs there was no way to get the version number.  From C code you can "
16731 "use dynamic linker functions to find out if this symbol exists (if it "
16732 "doesn't, then it's an earlier version)."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7812
16737 msgid ""
16738 "The call returns a structure with four elements.  The first three (C<major>, "
16739 "C<minor> and C<release>) are numbers and correspond to the usual version "
16740 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16741 "but may be used for distro-specific information."
16742 msgstr ""
16743
16744 #. type: textblock
16745 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7818
16746 msgid ""
16747 "To construct the original version string: C<$major.$minor.$release$extra>"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7821
16752 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16753 msgstr ""
16754
16755 #. type: textblock
16756 #: ../fish/guestfish-actions.pod:5106
16757 msgid ""
16758 "I<Note:> Don't use this call to test for availability of features.  In "
16759 "enterprise distributions we backport features from later versions into "
16760 "earlier versions, making this an unreliable way to test for features.  Use "
16761 "L</available> instead."
16762 msgstr ""
16763
16764 #. type: =head2
16765 #: ../fish/guestfish-actions.pod:5112
16766 msgid "vfs-label"
16767 msgstr ""
16768
16769 #. type: verbatim
16770 #: ../fish/guestfish-actions.pod:5114
16771 #, no-wrap
16772 msgid ""
16773 " vfs-label device\n"
16774 "\n"
16775 msgstr ""
16776
16777 #. type: textblock
16778 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7841
16779 msgid "This returns the filesystem label of the filesystem on C<device>."
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7844
16784 msgid "If the filesystem is unlabeled, this returns the empty string."
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish-actions.pod:5121
16789 msgid "To find a filesystem from the label, use L</findfs-label>."
16790 msgstr ""
16791
16792 #. type: =head2
16793 #: ../fish/guestfish-actions.pod:5123
16794 msgid "vfs-type"
16795 msgstr ""
16796
16797 #. type: verbatim
16798 #: ../fish/guestfish-actions.pod:5125
16799 #, no-wrap
16800 msgid ""
16801 " vfs-type device\n"
16802 "\n"
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../fish/guestfish-actions.pod:5127 ../src/guestfs-actions.pod:7859
16807 msgid ""
16808 "This command gets the filesystem type corresponding to the filesystem on "
16809 "C<device>."
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7862
16814 msgid ""
16815 "For most filesystems, the result is the name of the Linux VFS module which "
16816 "would be used to mount this filesystem if you mounted it without specifying "
16817 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16818 msgstr ""
16819
16820 #. type: =head2
16821 #: ../fish/guestfish-actions.pod:5135
16822 msgid "vfs-uuid"
16823 msgstr ""
16824
16825 #. type: verbatim
16826 #: ../fish/guestfish-actions.pod:5137
16827 #, no-wrap
16828 msgid ""
16829 " vfs-uuid device\n"
16830 "\n"
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7878
16835 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7881
16840 msgid "If the filesystem does not have a UUID, this returns the empty string."
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-actions.pod:5144
16845 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16846 msgstr ""
16847
16848 #. type: =head2
16849 #: ../fish/guestfish-actions.pod:5146
16850 msgid "vg-activate"
16851 msgstr ""
16852
16853 #. type: verbatim
16854 #: ../fish/guestfish-actions.pod:5148
16855 #, no-wrap
16856 msgid ""
16857 " vg-activate true|false 'volgroups ...'\n"
16858 "\n"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7897
16863 msgid ""
16864 "This command activates or (if C<activate> is false) deactivates all logical "
16865 "volumes in the listed volume groups C<volgroups>."
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish-actions.pod:5153 ../src/guestfs-actions.pod:7900
16870 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7902
16875 msgid ""
16876 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16877 "activated or deactivated."
16878 msgstr ""
16879
16880 #. type: =head2
16881 #: ../fish/guestfish-actions.pod:5158
16882 msgid "vg-activate-all"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish-actions.pod:5160
16887 #, no-wrap
16888 msgid ""
16889 " vg-activate-all true|false\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7915
16895 msgid ""
16896 "This command activates or (if C<activate> is false) deactivates all logical "
16897 "volumes in all volume groups."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7918
16902 msgid "This command is the same as running C<vgchange -a y|n>"
16903 msgstr ""
16904
16905 #. type: =head2
16906 #: ../fish/guestfish-actions.pod:5167
16907 msgid "vgcreate"
16908 msgstr ""
16909
16910 #. type: verbatim
16911 #: ../fish/guestfish-actions.pod:5169
16912 #, no-wrap
16913 msgid ""
16914 " vgcreate volgroup 'physvols ...'\n"
16915 "\n"
16916 msgstr ""
16917
16918 #. type: textblock
16919 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7931
16920 msgid ""
16921 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16922 "of physical volumes C<physvols>."
16923 msgstr ""
16924
16925 #. type: =head2
16926 #: ../fish/guestfish-actions.pod:5174
16927 msgid "vglvuuids"
16928 msgstr ""
16929
16930 #. type: verbatim
16931 #: ../fish/guestfish-actions.pod:5176
16932 #, no-wrap
16933 msgid ""
16934 " vglvuuids vgname\n"
16935 "\n"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7944
16940 msgid ""
16941 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16942 "volumes created in this volume group."
16943 msgstr ""
16944
16945 #. type: textblock
16946 #: ../fish/guestfish-actions.pod:5181
16947 msgid ""
16948 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16949 "logical volumes and volume groups."
16950 msgstr ""
16951
16952 #. type: textblock
16953 #: ../fish/guestfish-actions.pod:5184
16954 msgid "See also L</vgpvuuids>."
16955 msgstr ""
16956
16957 #. type: =head2
16958 #: ../fish/guestfish-actions.pod:5186
16959 msgid "vgpvuuids"
16960 msgstr ""
16961
16962 #. type: verbatim
16963 #: ../fish/guestfish-actions.pod:5188
16964 #, no-wrap
16965 msgid ""
16966 " vgpvuuids vgname\n"
16967 "\n"
16968 msgstr ""
16969
16970 #. type: textblock
16971 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7964
16972 msgid ""
16973 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16974 "volumes that this volume group resides on."
16975 msgstr ""
16976
16977 #. type: textblock
16978 #: ../fish/guestfish-actions.pod:5193
16979 msgid ""
16980 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16981 "physical volumes and volume groups."
16982 msgstr ""
16983
16984 #. type: textblock
16985 #: ../fish/guestfish-actions.pod:5196
16986 msgid "See also L</vglvuuids>."
16987 msgstr ""
16988
16989 #. type: =head2
16990 #: ../fish/guestfish-actions.pod:5198
16991 msgid "vgremove"
16992 msgstr ""
16993
16994 #. type: verbatim
16995 #: ../fish/guestfish-actions.pod:5200
16996 #, no-wrap
16997 msgid ""
16998 " vgremove vgname\n"
16999 "\n"
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7984
17004 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7986
17009 msgid ""
17010 "This also forcibly removes all logical volumes in the volume group (if any)."
17011 msgstr ""
17012
17013 #. type: =head2
17014 #: ../fish/guestfish-actions.pod:5207
17015 msgid "vgrename"
17016 msgstr ""
17017
17018 #. type: verbatim
17019 #: ../fish/guestfish-actions.pod:5209
17020 #, no-wrap
17021 msgid ""
17022 " vgrename volgroup newvolgroup\n"
17023 "\n"
17024 msgstr ""
17025
17026 #. type: textblock
17027 #: ../fish/guestfish-actions.pod:5211 ../src/guestfs-actions.pod:8000
17028 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17029 msgstr ""
17030
17031 #. type: =head2
17032 #: ../fish/guestfish-actions.pod:5213
17033 msgid "vgs"
17034 msgstr ""
17035
17036 #. type: verbatim
17037 #: ../fish/guestfish-actions.pod:5215
17038 #, no-wrap
17039 msgid ""
17040 " vgs\n"
17041 "\n"
17042 msgstr ""
17043
17044 #. type: textblock
17045 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8011
17046 msgid ""
17047 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17048 "> command."
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:8014
17053 msgid ""
17054 "This returns a list of just the volume group names that were detected (eg. "
17055 "C<VolGroup00>)."
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish-actions.pod:5223
17060 msgid "See also L</vgs-full>."
17061 msgstr ""
17062
17063 #. type: =head2
17064 #: ../fish/guestfish-actions.pod:5225
17065 msgid "vgs-full"
17066 msgstr ""
17067
17068 #. type: verbatim
17069 #: ../fish/guestfish-actions.pod:5227
17070 #, no-wrap
17071 msgid ""
17072 " vgs-full\n"
17073 "\n"
17074 msgstr ""
17075
17076 #. type: textblock
17077 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8030
17078 msgid ""
17079 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17080 "> command.  The \"full\" version includes all fields."
17081 msgstr ""
17082
17083 #. type: =head2
17084 #: ../fish/guestfish-actions.pod:5232
17085 msgid "vgscan"
17086 msgstr ""
17087
17088 #. type: verbatim
17089 #: ../fish/guestfish-actions.pod:5234
17090 #, no-wrap
17091 msgid ""
17092 " vgscan\n"
17093 "\n"
17094 msgstr ""
17095
17096 #. type: textblock
17097 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8044
17098 msgid ""
17099 "This rescans all block devices and rebuilds the list of LVM physical "
17100 "volumes, volume groups and logical volumes."
17101 msgstr ""
17102
17103 #. type: =head2
17104 #: ../fish/guestfish-actions.pod:5239
17105 msgid "vguuid"
17106 msgstr ""
17107
17108 #. type: verbatim
17109 #: ../fish/guestfish-actions.pod:5241
17110 #, no-wrap
17111 msgid ""
17112 " vguuid vgname\n"
17113 "\n"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-actions.pod:5243 ../src/guestfs-actions.pod:8057
17118 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17119 msgstr ""
17120
17121 #. type: =head2
17122 #: ../fish/guestfish-actions.pod:5245
17123 msgid "wc-c"
17124 msgstr ""
17125
17126 #. type: verbatim
17127 #: ../fish/guestfish-actions.pod:5247
17128 #, no-wrap
17129 msgid ""
17130 " wc-c path\n"
17131 "\n"
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8097
17136 msgid ""
17137 "This command counts the characters in a file, using the C<wc -c> external "
17138 "command."
17139 msgstr ""
17140
17141 #. type: =head2
17142 #: ../fish/guestfish-actions.pod:5252
17143 msgid "wc-l"
17144 msgstr ""
17145
17146 #. type: verbatim
17147 #: ../fish/guestfish-actions.pod:5254
17148 #, no-wrap
17149 msgid ""
17150 " wc-l path\n"
17151 "\n"
17152 msgstr ""
17153
17154 #. type: textblock
17155 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8110
17156 msgid ""
17157 "This command counts the lines in a file, using the C<wc -l> external command."
17158 msgstr ""
17159
17160 #. type: =head2
17161 #: ../fish/guestfish-actions.pod:5259
17162 msgid "wc-w"
17163 msgstr ""
17164
17165 #. type: verbatim
17166 #: ../fish/guestfish-actions.pod:5261
17167 #, no-wrap
17168 msgid ""
17169 " wc-w path\n"
17170 "\n"
17171 msgstr ""
17172
17173 #. type: textblock
17174 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8123
17175 msgid ""
17176 "This command counts the words in a file, using the C<wc -w> external command."
17177 msgstr ""
17178
17179 #. type: =head2
17180 #: ../fish/guestfish-actions.pod:5266
17181 msgid "write"
17182 msgstr ""
17183
17184 #. type: verbatim
17185 #: ../fish/guestfish-actions.pod:5268
17186 #, no-wrap
17187 msgid ""
17188 " write path content\n"
17189 "\n"
17190 msgstr ""
17191
17192 #. type: textblock
17193 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8138
17194 msgid ""
17195 "This call creates a file called C<path>.  The content of the file is the "
17196 "string C<content> (which can contain any 8 bit data)."
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish-actions.pod:5273
17201 msgid "See also L</write-append>."
17202 msgstr ""
17203
17204 #. type: =head2
17205 #: ../fish/guestfish-actions.pod:5278
17206 msgid "write-append"
17207 msgstr ""
17208
17209 #. type: verbatim
17210 #: ../fish/guestfish-actions.pod:5280
17211 #, no-wrap
17212 msgid ""
17213 " write-append path content\n"
17214 "\n"
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8158
17219 msgid ""
17220 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17221 "not exist, then a new file is created."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5285
17226 msgid "See also L</write>."
17227 msgstr ""
17228
17229 #. type: =head2
17230 #: ../fish/guestfish-actions.pod:5290
17231 msgid "write-file"
17232 msgstr ""
17233
17234 #. type: verbatim
17235 #: ../fish/guestfish-actions.pod:5292
17236 #, no-wrap
17237 msgid ""
17238 " write-file path content size\n"
17239 "\n"
17240 msgstr ""
17241
17242 #. type: textblock
17243 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8185
17244 msgid ""
17245 "This call creates a file called C<path>.  The contents of the file is the "
17246 "string C<content> (which can contain any 8 bit data), with length C<size>."
17247 msgstr ""
17248
17249 #. type: textblock
17250 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8189
17251 msgid ""
17252 "As a special case, if C<size> is C<0> then the length is calculated using "
17253 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17254 msgstr ""
17255
17256 #. type: textblock
17257 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8193
17258 msgid ""
17259 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17260 "I<not> work, even if the length is specified."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:5308
17265 msgid ""
17266 "I<This function is deprecated.> In new code, use the L</write> call instead."
17267 msgstr ""
17268
17269 #. type: =head2
17270 #: ../fish/guestfish-actions.pod:5315
17271 msgid "zegrep"
17272 msgstr ""
17273
17274 #. type: verbatim
17275 #: ../fish/guestfish-actions.pod:5317
17276 #, no-wrap
17277 msgid ""
17278 " zegrep regex path\n"
17279 "\n"
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8210
17284 msgid ""
17285 "This calls the external C<zegrep> program and returns the matching lines."
17286 msgstr ""
17287
17288 #. type: =head2
17289 #: ../fish/guestfish-actions.pod:5325
17290 msgid "zegrepi"
17291 msgstr ""
17292
17293 #. type: verbatim
17294 #: ../fish/guestfish-actions.pod:5327
17295 #, no-wrap
17296 msgid ""
17297 " zegrepi regex path\n"
17298 "\n"
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish-actions.pod:5329 ../src/guestfs-actions.pod:8229
17303 msgid ""
17304 "This calls the external C<zegrep -i> program and returns the matching lines."
17305 msgstr ""
17306
17307 #. type: =head2
17308 #: ../fish/guestfish-actions.pod:5335
17309 msgid "zero"
17310 msgstr ""
17311
17312 #. type: verbatim
17313 #: ../fish/guestfish-actions.pod:5337
17314 #, no-wrap
17315 msgid ""
17316 " zero device\n"
17317 "\n"
17318 msgstr ""
17319
17320 #. type: textblock
17321 #: ../fish/guestfish-actions.pod:5339 ../src/guestfs-actions.pod:8247
17322 msgid "This command writes zeroes over the first few blocks of C<device>."
17323 msgstr ""
17324
17325 #. type: textblock
17326 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8249
17327 msgid ""
17328 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17329 "securely wipe the device).  It should be sufficient to remove any partition "
17330 "tables, filesystem superblocks and so on."
17331 msgstr ""
17332
17333 #. type: textblock
17334 #: ../fish/guestfish-actions.pod:5345 ../fish/guestfish-actions.pod:5360
17335 #: ../src/guestfs-actions.pod:8253 ../src/guestfs-actions.pod:8279
17336 msgid ""
17337 "If blocks are already zero, then this command avoids writing zeroes.  This "
17338 "prevents the underlying device from becoming non-sparse or growing "
17339 "unnecessarily."
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5349
17344 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17345 msgstr ""
17346
17347 #. type: =head2
17348 #: ../fish/guestfish-actions.pod:5352
17349 msgid "zero-device"
17350 msgstr ""
17351
17352 #. type: verbatim
17353 #: ../fish/guestfish-actions.pod:5354
17354 #, no-wrap
17355 msgid ""
17356 " zero-device device\n"
17357 "\n"
17358 msgstr ""
17359
17360 #. type: textblock
17361 #: ../fish/guestfish-actions.pod:5356
17362 msgid ""
17363 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17364 "which just zeroes the first few blocks of a device."
17365 msgstr ""
17366
17367 #. type: =head2
17368 #: ../fish/guestfish-actions.pod:5367
17369 msgid "zerofree"
17370 msgstr ""
17371
17372 #. type: verbatim
17373 #: ../fish/guestfish-actions.pod:5369
17374 #, no-wrap
17375 msgid ""
17376 " zerofree device\n"
17377 "\n"
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8301
17382 msgid ""
17383 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17384 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17385 "possible to compress the filesystem more effectively."
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../fish/guestfish-actions.pod:5376 ../src/guestfs-actions.pod:8306
17390 msgid "You should B<not> run this program if the filesystem is mounted."
17391 msgstr ""
17392
17393 #. type: textblock
17394 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8309
17395 msgid ""
17396 "It is possible that using this program can damage the filesystem or data on "
17397 "the filesystem."
17398 msgstr ""
17399
17400 #. type: =head2
17401 #: ../fish/guestfish-actions.pod:5382
17402 msgid "zfgrep"
17403 msgstr ""
17404
17405 #. type: verbatim
17406 #: ../fish/guestfish-actions.pod:5384
17407 #, no-wrap
17408 msgid ""
17409 " zfgrep pattern path\n"
17410 "\n"
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8323
17415 msgid ""
17416 "This calls the external C<zfgrep> program and returns the matching lines."
17417 msgstr ""
17418
17419 #. type: =head2
17420 #: ../fish/guestfish-actions.pod:5392
17421 msgid "zfgrepi"
17422 msgstr ""
17423
17424 #. type: verbatim
17425 #: ../fish/guestfish-actions.pod:5394
17426 #, no-wrap
17427 msgid ""
17428 " zfgrepi pattern path\n"
17429 "\n"
17430 msgstr ""
17431
17432 #. type: textblock
17433 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8342
17434 msgid ""
17435 "This calls the external C<zfgrep -i> program and returns the matching lines."
17436 msgstr ""
17437
17438 #. type: =head2
17439 #: ../fish/guestfish-actions.pod:5402
17440 msgid "zfile"
17441 msgstr ""
17442
17443 #. type: verbatim
17444 #: ../fish/guestfish-actions.pod:5404
17445 #, no-wrap
17446 msgid ""
17447 " zfile meth path\n"
17448 "\n"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8368
17453 msgid ""
17454 "This command runs C<file> after first decompressing C<path> using C<method>."
17455 msgstr ""
17456
17457 #. type: textblock
17458 #: ../fish/guestfish-actions.pod:5409 ../src/guestfs-actions.pod:8371
17459 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish-actions.pod:5411
17464 msgid ""
17465 "Since 1.0.63, use L</file> instead which can now process compressed files."
17466 msgstr ""
17467
17468 #. type: textblock
17469 #: ../fish/guestfish-actions.pod:5414
17470 msgid ""
17471 "I<This function is deprecated.> In new code, use the L</file> call instead."
17472 msgstr ""
17473
17474 #. type: =head2
17475 #: ../fish/guestfish-actions.pod:5421
17476 msgid "zgrep"
17477 msgstr ""
17478
17479 #. type: verbatim
17480 #: ../fish/guestfish-actions.pod:5423
17481 #, no-wrap
17482 msgid ""
17483 " zgrep regex path\n"
17484 "\n"
17485 msgstr ""
17486
17487 #. type: textblock
17488 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8388
17489 msgid ""
17490 "This calls the external C<zgrep> program and returns the matching lines."
17491 msgstr ""
17492
17493 #. type: =head2
17494 #: ../fish/guestfish-actions.pod:5431
17495 msgid "zgrepi"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish-actions.pod:5433
17500 #, no-wrap
17501 msgid ""
17502 " zgrepi regex path\n"
17503 "\n"
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish-actions.pod:5435 ../src/guestfs-actions.pod:8407
17508 msgid ""
17509 "This calls the external C<zgrep -i> program and returns the matching lines."
17510 msgstr ""
17511
17512 #. type: =head2
17513 #: ../fish/guestfish-commands.pod:1
17514 msgid "alloc"
17515 msgstr ""
17516
17517 #. type: =head2
17518 #: ../fish/guestfish-commands.pod:3
17519 msgid "allocate"
17520 msgstr ""
17521
17522 #. type: verbatim
17523 #: ../fish/guestfish-commands.pod:5
17524 #, no-wrap
17525 msgid ""
17526 " alloc filename size\n"
17527 "\n"
17528 msgstr ""
17529
17530 #. type: textblock
17531 #: ../fish/guestfish-commands.pod:7
17532 msgid ""
17533 "This creates an empty (zeroed) file of the given size, and then adds so it "
17534 "can be further examined."
17535 msgstr ""
17536
17537 #. type: textblock
17538 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17539 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17540 msgstr ""
17541
17542 #. type: textblock
17543 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17544 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17545 msgstr ""
17546
17547 #. type: textblock
17548 #: ../fish/guestfish-commands.pod:14
17549 msgid ""
17550 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17551 "image, see L</PREPARED DISK IMAGES>."
17552 msgstr ""
17553
17554 #. type: =head2
17555 #: ../fish/guestfish-commands.pod:17
17556 msgid "copy-in"
17557 msgstr ""
17558
17559 #. type: verbatim
17560 #: ../fish/guestfish-commands.pod:19
17561 #, no-wrap
17562 msgid ""
17563 " copy-in local [local ...] /remotedir\n"
17564 "\n"
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish-commands.pod:21
17569 msgid ""
17570 "C<copy-in> copies local files or directories recursively into the disk "
17571 "image, placing them in the directory called C</remotedir> (which must "
17572 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17573 "other commands as necessary."
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish-commands.pod:26
17578 msgid ""
17579 "Multiple local files and directories can be specified, but the last "
17580 "parameter must always be a remote directory.  Wildcards cannot be used."
17581 msgstr ""
17582
17583 #. type: =head2
17584 #: ../fish/guestfish-commands.pod:30
17585 msgid "copy-out"
17586 msgstr ""
17587
17588 #. type: verbatim
17589 #: ../fish/guestfish-commands.pod:32
17590 #, no-wrap
17591 msgid ""
17592 " copy-out remote [remote ...] localdir\n"
17593 "\n"
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish-commands.pod:34
17598 msgid ""
17599 "C<copy-out> copies remote files or directories recursively out of the disk "
17600 "image, placing them on the host disk in a local directory called C<localdir> "
17601 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17602 "download>, L</tar-out> and other commands as necessary."
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../fish/guestfish-commands.pod:40
17607 msgid ""
17608 "Multiple remote files and directories can be specified, but the last "
17609 "parameter must always be a local directory.  To download to the current "
17610 "directory, use C<.> as in:"
17611 msgstr ""
17612
17613 #. type: verbatim
17614 #: ../fish/guestfish-commands.pod:44
17615 #, no-wrap
17616 msgid ""
17617 " copy-out /home .\n"
17618 "\n"
17619 msgstr ""
17620
17621 #. type: textblock
17622 #: ../fish/guestfish-commands.pod:46
17623 msgid ""
17624 "Wildcards cannot be used in the ordinary command, but you can use them with "
17625 "the help of L</glob> like this:"
17626 msgstr ""
17627
17628 #. type: verbatim
17629 #: ../fish/guestfish-commands.pod:49
17630 #, no-wrap
17631 msgid ""
17632 " glob copy-out /home/* .\n"
17633 "\n"
17634 msgstr ""
17635
17636 #. type: =head2
17637 #: ../fish/guestfish-commands.pod:51
17638 msgid "display"
17639 msgstr ""
17640
17641 #. type: verbatim
17642 #: ../fish/guestfish-commands.pod:53
17643 #, no-wrap
17644 msgid ""
17645 " display filename\n"
17646 "\n"
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../fish/guestfish-commands.pod:55
17651 msgid ""
17652 "Use C<display> (a graphical display program) to display an image file.  It "
17653 "downloads the file, and runs C<display> on it."
17654 msgstr ""
17655
17656 #. type: textblock
17657 #: ../fish/guestfish-commands.pod:58
17658 msgid ""
17659 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17660 "environment variable.  For example to use the GNOME display program:"
17661 msgstr ""
17662
17663 #. type: verbatim
17664 #: ../fish/guestfish-commands.pod:61
17665 #, no-wrap
17666 msgid ""
17667 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17668 "\n"
17669 msgstr ""
17670
17671 #. type: textblock
17672 #: ../fish/guestfish-commands.pod:63
17673 msgid "See also L<display(1)>."
17674 msgstr ""
17675
17676 #. type: =head2
17677 #: ../fish/guestfish-commands.pod:65
17678 msgid "echo"
17679 msgstr ""
17680
17681 #. type: verbatim
17682 #: ../fish/guestfish-commands.pod:67
17683 #, no-wrap
17684 msgid ""
17685 " echo [params ...]\n"
17686 "\n"
17687 msgstr ""
17688
17689 #. type: textblock
17690 #: ../fish/guestfish-commands.pod:69
17691 msgid "This echos the parameters to the terminal."
17692 msgstr ""
17693
17694 #. type: =head2
17695 #: ../fish/guestfish-commands.pod:71
17696 msgid "edit"
17697 msgstr ""
17698
17699 #. type: =head2
17700 #: ../fish/guestfish-commands.pod:73
17701 msgid "vi"
17702 msgstr ""
17703
17704 #. type: =head2
17705 #: ../fish/guestfish-commands.pod:75
17706 msgid "emacs"
17707 msgstr ""
17708
17709 #. type: verbatim
17710 #: ../fish/guestfish-commands.pod:77
17711 #, no-wrap
17712 msgid ""
17713 " edit filename\n"
17714 "\n"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish-commands.pod:79
17719 msgid ""
17720 "This is used to edit a file.  It downloads the file, edits it locally using "
17721 "your editor, then uploads the result."
17722 msgstr ""
17723
17724 #. type: textblock
17725 #: ../fish/guestfish-commands.pod:82
17726 msgid ""
17727 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17728 "or C<emacs> you will get those corresponding editors."
17729 msgstr ""
17730
17731 #. type: =head2
17732 #: ../fish/guestfish-commands.pod:86
17733 msgid "glob"
17734 msgstr ""
17735
17736 #. type: verbatim
17737 #: ../fish/guestfish-commands.pod:88
17738 #, no-wrap
17739 msgid ""
17740 " glob command args...\n"
17741 "\n"
17742 msgstr ""
17743
17744 #. type: textblock
17745 #: ../fish/guestfish-commands.pod:90
17746 msgid ""
17747 "Expand wildcards in any paths in the args list, and run C<command> "
17748 "repeatedly on each matching path."
17749 msgstr ""
17750
17751 #. type: textblock
17752 #: ../fish/guestfish-commands.pod:93
17753 msgid "See L</WILDCARDS AND GLOBBING>."
17754 msgstr ""
17755
17756 #. type: =head2
17757 #: ../fish/guestfish-commands.pod:95
17758 msgid "hexedit"
17759 msgstr ""
17760
17761 #. type: verbatim
17762 #: ../fish/guestfish-commands.pod:97
17763 #, no-wrap
17764 msgid ""
17765 " hexedit <filename|device>\n"
17766 " hexedit <filename|device> <max>\n"
17767 " hexedit <filename|device> <start> <max>\n"
17768 "\n"
17769 msgstr ""
17770
17771 #. type: textblock
17772 #: ../fish/guestfish-commands.pod:101
17773 msgid ""
17774 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17775 "device."
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish-commands.pod:104
17780 msgid ""
17781 "This command works by downloading potentially the whole file or device, "
17782 "editing it locally, then uploading it.  If the file or device is large, you "
17783 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17784 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17785 "usual modifiers allowed such as C<1M> (1 megabyte)."
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish-commands.pod:111
17790 msgid "For example to edit the first few sectors of a disk you might do:"
17791 msgstr ""
17792
17793 #. type: verbatim
17794 #: ../fish/guestfish-commands.pod:114
17795 #, no-wrap
17796 msgid ""
17797 " hexedit /dev/sda 1M\n"
17798 "\n"
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../fish/guestfish-commands.pod:116
17803 msgid ""
17804 "which would allow you to edit anywhere within the first megabyte of the disk."
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish-commands.pod:119
17809 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17810 msgstr ""
17811
17812 #. type: verbatim
17813 #: ../fish/guestfish-commands.pod:121
17814 #, no-wrap
17815 msgid ""
17816 " hexedit /dev/sda1 0x400 0x400\n"
17817 "\n"
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish-commands.pod:123
17822 msgid "(assuming the superblock is in the standard location)."
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish-commands.pod:125
17827 msgid ""
17828 "This command requires the external L<hexedit(1)> program.  You can specify "
17829 "another program to use by setting the C<HEXEDITOR> environment variable."
17830 msgstr ""
17831
17832 #. type: textblock
17833 #: ../fish/guestfish-commands.pod:129
17834 msgid "See also L</hexdump>."
17835 msgstr ""
17836
17837 #. type: =head2
17838 #: ../fish/guestfish-commands.pod:131
17839 msgid "lcd"
17840 msgstr ""
17841
17842 #. type: verbatim
17843 #: ../fish/guestfish-commands.pod:133
17844 #, no-wrap
17845 msgid ""
17846 " lcd directory\n"
17847 "\n"
17848 msgstr ""
17849
17850 #. type: textblock
17851 #: ../fish/guestfish-commands.pod:135
17852 msgid ""
17853 "Change the local directory, ie. the current directory of guestfish itself."
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish-commands.pod:138
17858 msgid "Note that C<!cd> won't do what you might expect."
17859 msgstr ""
17860
17861 #. type: =head2
17862 #: ../fish/guestfish-commands.pod:140
17863 msgid "man"
17864 msgstr ""
17865
17866 #. type: =head2
17867 #: ../fish/guestfish-commands.pod:142
17868 msgid "manual"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish-commands.pod:144
17873 #, no-wrap
17874 msgid ""
17875 "  man\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish-commands.pod:146
17881 msgid "Opens the manual page for guestfish."
17882 msgstr ""
17883
17884 #. type: =head2
17885 #: ../fish/guestfish-commands.pod:148
17886 msgid "more"
17887 msgstr ""
17888
17889 #. type: =head2
17890 #: ../fish/guestfish-commands.pod:150
17891 msgid "less"
17892 msgstr ""
17893
17894 #. type: verbatim
17895 #: ../fish/guestfish-commands.pod:152
17896 #, no-wrap
17897 msgid ""
17898 " more filename\n"
17899 "\n"
17900 msgstr ""
17901
17902 #. type: verbatim
17903 #: ../fish/guestfish-commands.pod:154
17904 #, no-wrap
17905 msgid ""
17906 " less filename\n"
17907 "\n"
17908 msgstr ""
17909
17910 #. type: textblock
17911 #: ../fish/guestfish-commands.pod:156
17912 msgid "This is used to view a file."
17913 msgstr ""
17914
17915 #. type: textblock
17916 #: ../fish/guestfish-commands.pod:158
17917 msgid ""
17918 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17919 "C<less> you will get the C<less> command specifically."
17920 msgstr ""
17921
17922 #. type: =head2
17923 #: ../fish/guestfish-commands.pod:161
17924 msgid "reopen"
17925 msgstr ""
17926
17927 #. type: verbatim
17928 #: ../fish/guestfish-commands.pod:163
17929 #, no-wrap
17930 msgid ""
17931 "  reopen\n"
17932 "\n"
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish-commands.pod:165
17937 msgid ""
17938 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17939 "normally, because the handle is closed properly when guestfish exits.  "
17940 "However this is occasionally useful for testing."
17941 msgstr ""
17942
17943 #. type: =head2
17944 #: ../fish/guestfish-commands.pod:169
17945 msgid "setenv"
17946 msgstr ""
17947
17948 #. type: verbatim
17949 #: ../fish/guestfish-commands.pod:171
17950 #, no-wrap
17951 msgid ""
17952 "  setenv VAR value\n"
17953 "\n"
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish-commands.pod:173
17958 msgid "Set the environment variable C<VAR> to the string C<value>."
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish-commands.pod:175
17963 msgid ""
17964 "To print the value of an environment variable use a shell command such as:"
17965 msgstr ""
17966
17967 #. type: verbatim
17968 #: ../fish/guestfish-commands.pod:178
17969 #, no-wrap
17970 msgid ""
17971 " !echo $VAR\n"
17972 "\n"
17973 msgstr ""
17974
17975 #. type: =head2
17976 #: ../fish/guestfish-commands.pod:180
17977 msgid "sparse"
17978 msgstr ""
17979
17980 #. type: verbatim
17981 #: ../fish/guestfish-commands.pod:182
17982 #, no-wrap
17983 msgid ""
17984 " sparse filename size\n"
17985 "\n"
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish-commands.pod:184
17990 msgid ""
17991 "This creates an empty sparse file of the given size, and then adds so it can "
17992 "be further examined."
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish-commands.pod:187
17997 msgid ""
17998 "In all respects it works the same as the L</alloc> command, except that the "
17999 "image file is allocated sparsely, which means that disk blocks are not "
18000 "assigned to the file until they are needed.  Sparse disk files only use "
18001 "space when written to, but they are slower and there is a danger you could "
18002 "run out of real disk space during a write operation."
18003 msgstr ""
18004
18005 #. type: =head2
18006 #: ../fish/guestfish-commands.pod:197
18007 msgid "supported"
18008 msgstr ""
18009
18010 #. type: verbatim
18011 #: ../fish/guestfish-commands.pod:199
18012 #, no-wrap
18013 msgid ""
18014 " supported\n"
18015 "\n"
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish-commands.pod:201
18020 msgid ""
18021 "This command returns a list of the optional groups known to the daemon, and "
18022 "indicates which ones are supported by this build of the libguestfs appliance."
18023 msgstr ""
18024
18025 #. type: textblock
18026 #: ../fish/guestfish-commands.pod:205
18027 msgid "See also L<guestfs(3)/AVAILABILITY>."
18028 msgstr ""
18029
18030 #. type: =head2
18031 #: ../fish/guestfish-commands.pod:207
18032 msgid "time"
18033 msgstr ""
18034
18035 #. type: verbatim
18036 #: ../fish/guestfish-commands.pod:209
18037 #, no-wrap
18038 msgid ""
18039 " time command args...\n"
18040 "\n"
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../fish/guestfish-commands.pod:211
18045 msgid ""
18046 "Run the command as usual, but print the elapsed time afterwards.  This can "
18047 "be useful for benchmarking operations."
18048 msgstr ""
18049
18050 #. type: =head2
18051 #: ../fish/guestfish-commands.pod:214
18052 msgid "unsetenv"
18053 msgstr ""
18054
18055 #. type: verbatim
18056 #: ../fish/guestfish-commands.pod:216
18057 #, no-wrap
18058 msgid ""
18059 "  unsetenv VAR\n"
18060 "\n"
18061 msgstr ""
18062
18063 #. type: textblock
18064 #: ../fish/guestfish-commands.pod:218
18065 msgid "Remove C<VAR> from the environment."
18066 msgstr ""
18067
18068 #. type: textblock
18069 #: ../fish/guestfish.pod:5
18070 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18071 msgstr ""
18072
18073 #. type: verbatim
18074 #: ../fish/guestfish.pod:9
18075 #, no-wrap
18076 msgid ""
18077 " guestfish [--options] [commands]\n"
18078 "\n"
18079 msgstr ""
18080
18081 #. type: verbatim
18082 #: ../fish/guestfish.pod:11
18083 #, no-wrap
18084 msgid ""
18085 " guestfish\n"
18086 "\n"
18087 msgstr ""
18088
18089 #. type: verbatim
18090 #: ../fish/guestfish.pod:13
18091 #, no-wrap
18092 msgid ""
18093 " guestfish [--ro|--rw] -a disk.img\n"
18094 "\n"
18095 msgstr ""
18096
18097 #. type: verbatim
18098 #: ../fish/guestfish.pod:15
18099 #, no-wrap
18100 msgid ""
18101 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18102 "\n"
18103 msgstr ""
18104
18105 #. type: verbatim
18106 #: ../fish/guestfish.pod:17
18107 #, no-wrap
18108 msgid ""
18109 " guestfish -d libvirt-domain\n"
18110 "\n"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish.pod:19
18115 #, no-wrap
18116 msgid ""
18117 " guestfish [--ro|--rw] -a disk.img -i\n"
18118 "\n"
18119 msgstr ""
18120
18121 #. type: verbatim
18122 #: ../fish/guestfish.pod:21
18123 #, no-wrap
18124 msgid ""
18125 " guestfish -d libvirt-domain -i\n"
18126 "\n"
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish.pod:25
18131 msgid ""
18132 "Using guestfish in read/write mode on live virtual machines can be "
18133 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18134 "option to use guestfish safely if the disk image or virtual machine might be "
18135 "live."
18136 msgstr ""
18137
18138 #. type: textblock
18139 #: ../fish/guestfish.pod:32
18140 msgid ""
18141 "Guestfish is a shell and command-line tool for examining and modifying "
18142 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18143 "functionality of the guestfs API, see L<guestfs(3)>."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:36
18148 msgid ""
18149 "Guestfish gives you structured access to the libguestfs API, from shell "
18150 "scripts or the command line or interactively.  If you want to rescue a "
18151 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18152 "command."
18153 msgstr ""
18154
18155 #. type: =head2
18156 #: ../fish/guestfish.pod:43
18157 msgid "As an interactive shell"
18158 msgstr ""
18159
18160 #. type: verbatim
18161 #: ../fish/guestfish.pod:45
18162 #, no-wrap
18163 msgid ""
18164 " $ guestfish\n"
18165 " \n"
18166 msgstr ""
18167
18168 #. type: verbatim
18169 #: ../fish/guestfish.pod:47
18170 #, no-wrap
18171 msgid ""
18172 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18173 " editing virtual machine filesystems.\n"
18174 " \n"
18175 msgstr ""
18176
18177 #. type: verbatim
18178 #: ../fish/guestfish.pod:50
18179 #, no-wrap
18180 msgid ""
18181 " Type: 'help' for a list of commands\n"
18182 "       'man' to read the manual\n"
18183 "       'quit' to quit the shell\n"
18184 " \n"
18185 msgstr ""
18186
18187 #. type: verbatim
18188 #: ../fish/guestfish.pod:54
18189 #, no-wrap
18190 msgid ""
18191 " ><fs> add-ro disk.img\n"
18192 " ><fs> run\n"
18193 " ><fs> list-filesystems\n"
18194 " /dev/sda1: ext4\n"
18195 " /dev/vg_guest/lv_root: ext4\n"
18196 " /dev/vg_guest/lv_swap: swap\n"
18197 " ><fs> mount /dev/vg_guest/lv_root /\n"
18198 " ><fs> cat /etc/fstab\n"
18199 " # /etc/fstab\n"
18200 " # Created by anaconda\n"
18201 " [...]\n"
18202 " ><fs> exit\n"
18203 "\n"
18204 msgstr ""
18205
18206 #. type: =head2
18207 #: ../fish/guestfish.pod:67
18208 msgid "From shell scripts"
18209 msgstr ""
18210
18211 #. type: textblock
18212 #: ../fish/guestfish.pod:69
18213 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18214 msgstr ""
18215
18216 #. type: verbatim
18217 #: ../fish/guestfish.pod:71
18218 #, no-wrap
18219 msgid ""
18220 " guestfish <<_EOF_\n"
18221 " add disk.img\n"
18222 " run\n"
18223 " mount /dev/vg_guest/lv_root /\n"
18224 " write /etc/motd \"Welcome, new users\"\n"
18225 " _EOF_\n"
18226 "\n"
18227 msgstr ""
18228
18229 #. type: textblock
18230 #: ../fish/guestfish.pod:78
18231 msgid "List the LVM logical volumes in a disk image:"
18232 msgstr ""
18233
18234 #. type: verbatim
18235 #: ../fish/guestfish.pod:80
18236 #, no-wrap
18237 msgid ""
18238 " guestfish -a disk.img --ro <<_EOF_\n"
18239 " run\n"
18240 " lvs\n"
18241 " _EOF_\n"
18242 "\n"
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish.pod:85
18247 msgid "List all the filesystems in a disk image:"
18248 msgstr ""
18249
18250 #. type: verbatim
18251 #: ../fish/guestfish.pod:87
18252 #, no-wrap
18253 msgid ""
18254 " guestfish -a disk.img --ro <<_EOF_\n"
18255 " run\n"
18256 " list-filesystems\n"
18257 " _EOF_\n"
18258 "\n"
18259 msgstr ""
18260
18261 #. type: =head2
18262 #: ../fish/guestfish.pod:92
18263 msgid "On one command line"
18264 msgstr ""
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18268 msgid "Update C</etc/resolv.conf> in a guest:"
18269 msgstr ""
18270
18271 #. type: verbatim
18272 #: ../fish/guestfish.pod:96
18273 #, no-wrap
18274 msgid ""
18275 " guestfish \\\n"
18276 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18277 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18278 "\n"
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../fish/guestfish.pod:100
18283 msgid "Edit C</boot/grub/grub.conf> interactively:"
18284 msgstr ""
18285
18286 #. type: verbatim
18287 #: ../fish/guestfish.pod:102
18288 #, no-wrap
18289 msgid ""
18290 " guestfish --rw --add disk.img \\\n"
18291 "   --mount /dev/vg_guest/lv_root \\\n"
18292 "   --mount /dev/sda1:/boot \\\n"
18293 "   edit /boot/grub/grub.conf\n"
18294 "\n"
18295 msgstr ""
18296
18297 #. type: =head2
18298 #: ../fish/guestfish.pod:107
18299 msgid "Mount disks automatically"
18300 msgstr ""
18301
18302 #. type: textblock
18303 #: ../fish/guestfish.pod:109
18304 msgid ""
18305 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18306 msgstr ""
18307
18308 #. type: verbatim
18309 #: ../fish/guestfish.pod:112
18310 #, no-wrap
18311 msgid ""
18312 " guestfish --ro -a disk.img -i cat /etc/group\n"
18313 "\n"
18314 msgstr ""
18315
18316 #. type: verbatim
18317 #: ../fish/guestfish.pod:114
18318 #, no-wrap
18319 msgid ""
18320 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18321 "\n"
18322 msgstr ""
18323
18324 #. type: textblock
18325 #: ../fish/guestfish.pod:116
18326 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18327 msgstr ""
18328
18329 #. type: verbatim
18330 #: ../fish/guestfish.pod:118
18331 #, no-wrap
18332 msgid ""
18333 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18334 "\n"
18335 msgstr ""
18336
18337 #. type: =head2
18338 #: ../fish/guestfish.pod:120
18339 msgid "As a script interpreter"
18340 msgstr ""
18341
18342 #. type: textblock
18343 #: ../fish/guestfish.pod:122
18344 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18345 msgstr ""
18346
18347 #. type: verbatim
18348 #: ../fish/guestfish.pod:124
18349 #, no-wrap
18350 msgid ""
18351 " #!/usr/bin/guestfish -f\n"
18352 " sparse test1.img 100M\n"
18353 " run\n"
18354 " part-disk /dev/sda mbr\n"
18355 " mkfs ext2 /dev/sda1\n"
18356 "\n"
18357 msgstr ""
18358
18359 #. type: =head2
18360 #: ../fish/guestfish.pod:130
18361 msgid "Start with a prepared disk"
18362 msgstr ""
18363
18364 #. type: textblock
18365 #: ../fish/guestfish.pod:132
18366 msgid ""
18367 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18368 "single ext2-formatted partition:"
18369 msgstr ""
18370
18371 #. type: verbatim
18372 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18373 #, no-wrap
18374 msgid ""
18375 " guestfish -N fs\n"
18376 "\n"
18377 msgstr ""
18378
18379 #. type: textblock
18380 #: ../fish/guestfish.pod:137
18381 msgid "To list what is available do:"
18382 msgstr ""
18383
18384 #. type: verbatim
18385 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18386 #, no-wrap
18387 msgid ""
18388 " guestfish -N help | less\n"
18389 "\n"
18390 msgstr ""
18391
18392 #. type: =head2
18393 #: ../fish/guestfish.pod:141
18394 msgid "Remote control"
18395 msgstr ""
18396
18397 #. type: verbatim
18398 #: ../fish/guestfish.pod:143
18399 #, no-wrap
18400 msgid ""
18401 " eval \"`guestfish --listen`\"\n"
18402 " guestfish --remote add-ro disk.img\n"
18403 " guestfish --remote run\n"
18404 " guestfish --remote lvs\n"
18405 "\n"
18406 msgstr ""
18407
18408 #. type: textblock
18409 #: ../fish/guestfish.pod:154
18410 msgid "Displays general help on options."
18411 msgstr ""
18412
18413 #. type: =item
18414 #: ../fish/guestfish.pod:158
18415 msgid "B<--cmd-help>"
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish.pod:160
18420 msgid "Lists all available guestfish commands."
18421 msgstr ""
18422
18423 #. type: =item
18424 #: ../fish/guestfish.pod:162
18425 msgid "B<-h cmd>"
18426 msgstr ""
18427
18428 #. type: =item
18429 #: ../fish/guestfish.pod:164
18430 msgid "B<--cmd-help cmd>"
18431 msgstr ""
18432
18433 #. type: textblock
18434 #: ../fish/guestfish.pod:166
18435 msgid "Displays detailed help on a single command C<cmd>."
18436 msgstr ""
18437
18438 #. type: =item
18439 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18440 msgid "B<-a image>"
18441 msgstr ""
18442
18443 #. type: =item
18444 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18445 msgid "B<--add image>"
18446 msgstr ""
18447
18448 #. type: textblock
18449 #: ../fish/guestfish.pod:172
18450 msgid "Add a block device or virtual machine image to the shell."
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish.pod:177
18455 msgid ""
18456 "Using this flag is mostly equivalent to using the C<add> command, with "
18457 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18458 "the I<--format=...> flag was given."
18459 msgstr ""
18460
18461 #. type: textblock
18462 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18463 msgid ""
18464 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18465 "URI to use.  The default is to use the default libvirt connection."
18466 msgstr ""
18467
18468 #. type: =item
18469 #: ../fish/guestfish.pod:189
18470 msgid "B<--csh>"
18471 msgstr ""
18472
18473 #. type: textblock
18474 #: ../fish/guestfish.pod:191
18475 msgid ""
18476 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18477 "section L</REMOTE CONTROL AND CSH> below."
18478 msgstr ""
18479
18480 #. type: =item
18481 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18482 msgid "B<-d libvirt-domain>"
18483 msgstr ""
18484
18485 #. type: =item
18486 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18487 msgid "B<--domain libvirt-domain>"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18492 msgid ""
18493 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18494 "used, then any libvirt domain can be used.  However in write mode, only "
18495 "libvirt domains which are shut down can be named here."
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18500 msgid "Domain UUIDs can be used instead of names."
18501 msgstr ""
18502
18503 #. type: textblock
18504 #: ../fish/guestfish.pod:204
18505 msgid ""
18506 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18507 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18508 "if the I<--format:...> flag was given."
18509 msgstr ""
18510
18511 #. type: =item
18512 #: ../fish/guestfish.pod:208
18513 msgid "B<-D>"
18514 msgstr ""
18515
18516 #. type: =item
18517 #: ../fish/guestfish.pod:210
18518 msgid "B<--no-dest-paths>"
18519 msgstr ""
18520
18521 #. type: textblock
18522 #: ../fish/guestfish.pod:212
18523 msgid ""
18524 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18525 "to hit the tab key to complete paths on the guest filesystem, but this "
18526 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18527 "allow this feature to be disabled."
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18532 msgid ""
18533 "When prompting for keys and passphrases, guestfish normally turns echoing "
18534 "off so you cannot see what you are typing.  If you are not worried about "
18535 "Tempest attacks and there is no one else in the room you can specify this "
18536 "flag to see what you are typing."
18537 msgstr ""
18538
18539 #. type: =item
18540 #: ../fish/guestfish.pod:224
18541 msgid "B<-f file>"
18542 msgstr ""
18543
18544 #. type: =item
18545 #: ../fish/guestfish.pod:226
18546 msgid "B<--file file>"
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish.pod:228
18551 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18552 msgstr ""
18553
18554 #. type: verbatim
18555 #: ../fish/guestfish.pod:231
18556 #, no-wrap
18557 msgid ""
18558 " #!/usr/bin/guestfish -f\n"
18559 "\n"
18560 msgstr ""
18561
18562 #. type: verbatim
18563 #: ../fish/guestfish.pod:244
18564 #, no-wrap
18565 msgid ""
18566 " guestfish --format=raw -a disk.img\n"
18567 "\n"
18568 msgstr ""
18569
18570 #. type: verbatim
18571 #: ../fish/guestfish.pod:248
18572 #, no-wrap
18573 msgid ""
18574 " guestfish --format=raw -a disk.img --format -a another.img\n"
18575 "\n"
18576 msgstr ""
18577
18578 #. type: textblock
18579 #: ../fish/guestfish.pod:253
18580 msgid ""
18581 "If you have untrusted raw-format guest disk images, you should use this "
18582 "option to specify the disk format.  This avoids a possible security problem "
18583 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18584 msgstr ""
18585
18586 #. type: =item
18587 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18588 msgid "B<--inspector>"
18589 msgstr ""
18590
18591 #. type: textblock
18592 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18593 msgid ""
18594 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18595 "system and mount filesystems as they would be mounted on the real virtual "
18596 "machine."
18597 msgstr ""
18598
18599 #. type: textblock
18600 #: ../fish/guestfish.pod:266
18601 msgid "Typical usage is either:"
18602 msgstr ""
18603
18604 #. type: verbatim
18605 #: ../fish/guestfish.pod:268
18606 #, no-wrap
18607 msgid ""
18608 " guestfish -d myguest -i\n"
18609 "\n"
18610 msgstr ""
18611
18612 #. type: textblock
18613 #: ../fish/guestfish.pod:270
18614 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18615 msgstr ""
18616
18617 #. type: verbatim
18618 #: ../fish/guestfish.pod:272
18619 #, no-wrap
18620 msgid ""
18621 " guestfish --ro -d myguest -i\n"
18622 "\n"
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish.pod:274
18627 msgid "(for active domains, readonly), or specify the block device directly:"
18628 msgstr ""
18629
18630 #. type: verbatim
18631 #: ../fish/guestfish.pod:276
18632 #, no-wrap
18633 msgid ""
18634 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18635 "\n"
18636 msgstr ""
18637
18638 #. type: textblock
18639 #: ../fish/guestfish.pod:278
18640 msgid ""
18641 "Note that the command line syntax changed slightly over older versions of "
18642 "guestfish.  You can still use the old syntax:"
18643 msgstr ""
18644
18645 #. type: verbatim
18646 #: ../fish/guestfish.pod:281
18647 #, no-wrap
18648 msgid ""
18649 " guestfish [--ro] -i disk.img\n"
18650 "\n"
18651 msgstr ""
18652
18653 #. type: verbatim
18654 #: ../fish/guestfish.pod:283
18655 #, no-wrap
18656 msgid ""
18657 " guestfish [--ro] -i libvirt-domain\n"
18658 "\n"
18659 msgstr ""
18660
18661 #. type: textblock
18662 #: ../fish/guestfish.pod:285
18663 msgid ""
18664 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18665 "then using other commands to mount the filesystems that were found."
18666 msgstr ""
18667
18668 #. type: =item
18669 #: ../fish/guestfish.pod:294
18670 msgid "B<--listen>"
18671 msgstr ""
18672
18673 #. type: textblock
18674 #: ../fish/guestfish.pod:296
18675 msgid ""
18676 "Fork into the background and listen for remote commands.  See section L</"
18677 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18678 msgstr ""
18679
18680 #. type: =item
18681 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18682 msgid "B<--live>"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18687 msgid ""
18688 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18689 "ATTACHING TO RUNNING DAEMONS>)."
18690 msgstr ""
18691
18692 #. type: =item
18693 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18694 msgid "B<-m dev[:mountpoint[:options]]>"
18695 msgstr ""
18696
18697 #. type: =item
18698 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18699 msgid "B<--mount dev[:mountpoint[:options]]>"
18700 msgstr ""
18701
18702 #. type: textblock
18703 #: ../fish/guestfish.pod:308
18704 msgid "Mount the named partition or logical volume on the given mountpoint."
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fish/guestfish.pod:310
18709 msgid "If the mountpoint is omitted, it defaults to C</>."
18710 msgstr ""
18711
18712 #. type: textblock
18713 #: ../fish/guestfish.pod:312
18714 msgid "You have to mount something on C</> before most commands will work."
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:314
18719 msgid ""
18720 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18721 "launched."
18722 msgstr ""
18723
18724 #. type: textblock
18725 #: ../fish/guestfish.pod:317
18726 msgid ""
18727 "If you don't know what filesystems a disk image contains, you can either run "
18728 "guestfish without this option, then list the partitions, filesystems and LVs "
18729 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18730 "commands), or you can use the L<virt-filesystems(1)> program."
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18735 msgid ""
18736 "The third (and rarely used) part of the mount parameter is the list of mount "
18737 "options used to mount the underlying filesystem.  If this is not given, then "
18738 "the mount options are either the empty string or C<ro> (the latter if the "
18739 "I<--ro> flag is used).  By specifying the mount options, you override this "
18740 "default choice.  Probably the only time you would use this is to enable ACLs "
18741 "and/or extended attributes if the filesystem can support them:"
18742 msgstr ""
18743
18744 #. type: verbatim
18745 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18746 #, no-wrap
18747 msgid ""
18748 " -m /dev/sda1:/:acl,user_xattr\n"
18749 "\n"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:333
18754 msgid "Using this flag is equivalent to using the C<mount-options> command."
18755 msgstr ""
18756
18757 #. type: =item
18758 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18759 #: ../resize/virt-resize.pod:435
18760 msgid "B<-n>"
18761 msgstr ""
18762
18763 #. type: =item
18764 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18765 msgid "B<--no-sync>"
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../fish/guestfish.pod:339
18770 msgid ""
18771 "Disable autosync.  This is enabled by default.  See the discussion of "
18772 "autosync in the L<guestfs(3)> manpage."
18773 msgstr ""
18774
18775 #. type: =item
18776 #: ../fish/guestfish.pod:342
18777 msgid "B<-N type>"
18778 msgstr ""
18779
18780 #. type: =item
18781 #: ../fish/guestfish.pod:344
18782 msgid "B<--new type>"
18783 msgstr ""
18784
18785 #. type: =item
18786 #: ../fish/guestfish.pod:346
18787 msgid "B<-N help>"
18788 msgstr ""
18789
18790 #. type: textblock
18791 #: ../fish/guestfish.pod:348
18792 msgid ""
18793 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18794 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18795 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18796 "IMAGES> below."
18797 msgstr ""
18798
18799 #. type: =item
18800 #: ../fish/guestfish.pod:353
18801 msgid "B<--progress-bars>"
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/guestfish.pod:355
18806 msgid "Enable progress bars, even when guestfish is used non-interactively."
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:357
18811 msgid ""
18812 "Progress bars are enabled by default when guestfish is used as an "
18813 "interactive shell."
18814 msgstr ""
18815
18816 #. type: =item
18817 #: ../fish/guestfish.pod:360
18818 msgid "B<--no-progress-bars>"
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../fish/guestfish.pod:362
18823 msgid "Disable progress bars."
18824 msgstr ""
18825
18826 #. type: =item
18827 #: ../fish/guestfish.pod:364
18828 msgid "B<--remote[=pid]>"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:366
18833 msgid ""
18834 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18835 "CONTROL GUESTFISH OVER A SOCKET> below."
18836 msgstr ""
18837
18838 #. type: =item
18839 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18840 #: ../rescue/virt-rescue.pod:161
18841 msgid "B<-r>"
18842 msgstr ""
18843
18844 #. type: =item
18845 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18846 #: ../rescue/virt-rescue.pod:163
18847 msgid "B<--ro>"
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish.pod:373
18852 msgid ""
18853 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18854 "mounts are done read-only."
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18859 msgid ""
18860 "The option must always be used if the disk image or virtual machine might be "
18861 "running, and is generally recommended in cases where you don't need write "
18862 "access to the disk."
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:380
18867 msgid ""
18868 "Note that prepared disk images created with I<-N> are not affected by this "
18869 "option.  Also commands like C<add> are not affected - you have to specify "
18870 "the C<readonly:true> option explicitly if you need it."
18871 msgstr ""
18872
18873 #. type: textblock
18874 #: ../fish/guestfish.pod:384
18875 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18876 msgstr ""
18877
18878 #. type: =item
18879 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18880 #: ../rescue/virt-rescue.pod:173
18881 msgid "B<--selinux>"
18882 msgstr ""
18883
18884 #. type: textblock
18885 #: ../fish/guestfish.pod:388
18886 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18887 msgstr ""
18888
18889 #. type: textblock
18890 #: ../fish/guestfish.pod:394
18891 msgid ""
18892 "Enable very verbose messages.  This is particularly useful if you find a bug."
18893 msgstr ""
18894
18895 #. type: textblock
18896 #: ../fish/guestfish.pod:401
18897 msgid "Display the guestfish / libguestfs version number and exit."
18898 msgstr ""
18899
18900 #. type: =item
18901 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18902 #: ../rescue/virt-rescue.pod:194
18903 msgid "B<-w>"
18904 msgstr ""
18905
18906 #. type: =item
18907 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18908 #: ../rescue/virt-rescue.pod:196
18909 msgid "B<--rw>"
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18914 msgid ""
18915 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18916 "mounts are done read-write."
18917 msgstr ""
18918
18919 #. type: textblock
18920 #: ../fish/guestfish.pod:410
18921 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18922 msgstr ""
18923
18924 #. type: textblock
18925 #: ../fish/guestfish.pod:414
18926 msgid "Echo each command before executing it."
18927 msgstr ""
18928
18929 #. type: =head1
18930 #: ../fish/guestfish.pod:418
18931 msgid "COMMANDS ON COMMAND LINE"
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../fish/guestfish.pod:420
18936 msgid ""
18937 "Any additional (non-option) arguments are treated as commands to execute."
18938 msgstr ""
18939
18940 #. type: textblock
18941 #: ../fish/guestfish.pod:423
18942 msgid ""
18943 "Commands to execute should be separated by a colon (C<:>), where the colon "
18944 "is a separate parameter.  Thus:"
18945 msgstr ""
18946
18947 #. type: verbatim
18948 #: ../fish/guestfish.pod:426
18949 #, no-wrap
18950 msgid ""
18951 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18952 "\n"
18953 msgstr ""
18954
18955 #. type: textblock
18956 #: ../fish/guestfish.pod:428
18957 msgid ""
18958 "If there are no additional arguments, then we enter a shell, either an "
18959 "interactive shell with a prompt (if the input is a terminal) or a non-"
18960 "interactive shell."
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../fish/guestfish.pod:432
18965 msgid ""
18966 "In either command line mode or non-interactive shell, the first command that "
18967 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18968 "prompt) if a command fails, you can continue to enter commands."
18969 msgstr ""
18970
18971 #. type: =head1
18972 #: ../fish/guestfish.pod:437
18973 msgid "USING launch (OR run)"
18974 msgstr ""
18975
18976 #. type: textblock
18977 #: ../fish/guestfish.pod:439
18978 msgid ""
18979 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18980 "then launch it, then mount any disks you need, and finally issue actions/"
18981 "commands.  So the general order of the day is:"
18982 msgstr ""
18983
18984 #. type: textblock
18985 #: ../fish/guestfish.pod:447
18986 msgid "add or -a/--add"
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/guestfish.pod:451
18991 msgid "launch (aka run)"
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:455
18996 msgid "mount or -m/--mount"
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:459
19001 msgid "any other commands"
19002 msgstr ""
19003
19004 #. type: textblock
19005 #: ../fish/guestfish.pod:463
19006 msgid ""
19007 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19008 "guest before mounting or performing any other commands."
19009 msgstr ""
19010
19011 #. type: textblock
19012 #: ../fish/guestfish.pod:466
19013 msgid ""
19014 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19015 "I<--new> options were given then C<run> is done automatically, simply "
19016 "because guestfish can't perform the action you asked for without doing this."
19017 msgstr ""
19018
19019 #. type: =head1
19020 #: ../fish/guestfish.pod:471
19021 msgid "OPENING DISKS FOR READ AND WRITE"
19022 msgstr ""
19023
19024 #. type: textblock
19025 #: ../fish/guestfish.pod:473
19026 msgid ""
19027 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19028 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19029 "I<-i> and I<-m> open disk images read-only or for writing."
19030 msgstr ""
19031
19032 #. type: textblock
19033 #: ../fish/guestfish.pod:478
19034 msgid ""
19035 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19036 "opening disk images supplied on the command line for write.  To open a disk "
19037 "image read-only you have to do I<-a image --ro>."
19038 msgstr ""
19039
19040 #. type: textblock
19041 #: ../fish/guestfish.pod:482
19042 msgid ""
19043 "This matters: If you accidentally open a live VM disk image writable then "
19044 "you will cause irreversible disk corruption."
19045 msgstr ""
19046
19047 #. type: textblock
19048 #: ../fish/guestfish.pod:485
19049 msgid ""
19050 "In a future libguestfs we intend to change the default the other way.  Disk "
19051 "images will be opened read-only.  You will have to either specify "
19052 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19053 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19054 "access for disk images specified by those other command line options."
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish.pod:492
19059 msgid ""
19060 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19061 "which does nothing (it is already the default).  However it is highly "
19062 "recommended that you use this option to indicate that you need write access, "
19063 "and prepare your scripts for the day when this option will be required for "
19064 "write access."
19065 msgstr ""
19066
19067 #. type: textblock
19068 #: ../fish/guestfish.pod:498
19069 msgid ""
19070 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19071 "other libguestfs program apart from guestfish and guestmount."
19072 msgstr ""
19073
19074 #. type: =head1
19075 #: ../fish/guestfish.pod:501
19076 msgid "QUOTING"
19077 msgstr ""
19078
19079 #. type: textblock
19080 #: ../fish/guestfish.pod:503
19081 msgid ""
19082 "You can quote ordinary parameters using either single or double quotes.  For "
19083 "example:"
19084 msgstr ""
19085
19086 #. type: verbatim
19087 #: ../fish/guestfish.pod:506
19088 #, no-wrap
19089 msgid ""
19090 " add \"file with a space.img\"\n"
19091 "\n"
19092 msgstr ""
19093
19094 #. type: verbatim
19095 #: ../fish/guestfish.pod:508
19096 #, no-wrap
19097 msgid ""
19098 " rm '/file name'\n"
19099 "\n"
19100 msgstr ""
19101
19102 #. type: verbatim
19103 #: ../fish/guestfish.pod:510
19104 #, no-wrap
19105 msgid ""
19106 " rm '/\"'\n"
19107 "\n"
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:512
19112 msgid ""
19113 "A few commands require a list of strings to be passed.  For these, use a "
19114 "whitespace-separated list, enclosed in quotes.  Strings containing "
19115 "whitespace to be passed through must be enclosed in single quotes.  A "
19116 "literal single quote must be escaped with a backslash."
19117 msgstr ""
19118
19119 #. type: verbatim
19120 #: ../fish/guestfish.pod:517
19121 #, no-wrap
19122 msgid ""
19123 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19124 " command \"/bin/echo 'foo      bar'\"\n"
19125 " command \"/bin/echo \\'foo\\'\"\n"
19126 "\n"
19127 msgstr ""
19128
19129 #. type: =head2
19130 #: ../fish/guestfish.pod:521
19131 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19132 msgstr ""
19133
19134 #. type: textblock
19135 #: ../fish/guestfish.pod:523
19136 msgid ""
19137 "In double-quoted arguments (only) use backslash to insert special characters:"
19138 msgstr ""
19139
19140 #. type: =item
19141 #: ../fish/guestfish.pod:528
19142 msgid "C<\\a>"
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../fish/guestfish.pod:530
19147 msgid "Alert (bell) character."
19148 msgstr ""
19149
19150 #. type: =item
19151 #: ../fish/guestfish.pod:532
19152 msgid "C<\\b>"
19153 msgstr ""
19154
19155 #. type: textblock
19156 #: ../fish/guestfish.pod:534
19157 msgid "Backspace character."
19158 msgstr ""
19159
19160 #. type: =item
19161 #: ../fish/guestfish.pod:536
19162 msgid "C<\\f>"
19163 msgstr ""
19164
19165 #. type: textblock
19166 #: ../fish/guestfish.pod:538
19167 msgid "Form feed character."
19168 msgstr ""
19169
19170 #. type: =item
19171 #: ../fish/guestfish.pod:540
19172 msgid "C<\\n>"
19173 msgstr ""
19174
19175 #. type: textblock
19176 #: ../fish/guestfish.pod:542
19177 msgid "Newline character."
19178 msgstr ""
19179
19180 #. type: =item
19181 #: ../fish/guestfish.pod:544
19182 msgid "C<\\r>"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:546
19187 msgid "Carriage return character."
19188 msgstr ""
19189
19190 #. type: =item
19191 #: ../fish/guestfish.pod:548
19192 msgid "C<\\t>"
19193 msgstr ""
19194
19195 #. type: textblock
19196 #: ../fish/guestfish.pod:550
19197 msgid "Horizontal tab character."
19198 msgstr ""
19199
19200 #. type: =item
19201 #: ../fish/guestfish.pod:552
19202 msgid "C<\\v>"
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:554
19207 msgid "Vertical tab character."
19208 msgstr ""
19209
19210 #. type: =item
19211 #: ../fish/guestfish.pod:556
19212 msgid "C<\\\">"
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:558
19217 msgid "A literal double quote character."
19218 msgstr ""
19219
19220 #. type: =item
19221 #: ../fish/guestfish.pod:560
19222 msgid "C<\\ooo>"
19223 msgstr ""
19224
19225 #. type: textblock
19226 #: ../fish/guestfish.pod:562
19227 msgid ""
19228 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19229 "(unlike C)."
19230 msgstr ""
19231
19232 #. type: =item
19233 #: ../fish/guestfish.pod:565
19234 msgid "C<\\xhh>"
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fish/guestfish.pod:567
19239 msgid ""
19240 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19241 msgstr ""
19242
19243 #. type: textblock
19244 #: ../fish/guestfish.pod:570
19245 msgid ""
19246 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19247 "strings."
19248 msgstr ""
19249
19250 #. type: =item
19251 #: ../fish/guestfish.pod:573
19252 msgid "C<\\\\>"
19253 msgstr ""
19254
19255 #. type: textblock
19256 #: ../fish/guestfish.pod:575
19257 msgid "A literal backslash character."
19258 msgstr ""
19259
19260 #. type: =head1
19261 #: ../fish/guestfish.pod:579
19262 msgid "OPTIONAL ARGUMENTS"
19263 msgstr ""
19264
19265 #. type: textblock
19266 #: ../fish/guestfish.pod:581
19267 msgid ""
19268 "Some commands take optional arguments.  These arguments appear in this "
19269 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19270 msgstr ""
19271
19272 #. type: verbatim
19273 #: ../fish/guestfish.pod:585
19274 #, no-wrap
19275 msgid ""
19276 " add-drive-opts filename\n"
19277 "\n"
19278 msgstr ""
19279
19280 #. type: verbatim
19281 #: ../fish/guestfish.pod:587
19282 #, no-wrap
19283 msgid ""
19284 " add-drive-opts filename readonly:true\n"
19285 "\n"
19286 msgstr ""
19287
19288 #. type: verbatim
19289 #: ../fish/guestfish.pod:589
19290 #, no-wrap
19291 msgid ""
19292 " add-drive-opts filename format:qcow2 readonly:false\n"
19293 "\n"
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../fish/guestfish.pod:591
19298 msgid ""
19299 "Each optional argument can appear at most once.  All optional arguments must "
19300 "appear after the required ones."
19301 msgstr ""
19302
19303 #. type: =head1
19304 #: ../fish/guestfish.pod:594
19305 msgid "NUMBERS"
19306 msgstr ""
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:596
19310 msgid ""
19311 "This section applies to all commands which can take integers as parameters."
19312 msgstr ""
19313
19314 #. type: =head2
19315 #: ../fish/guestfish.pod:599
19316 msgid "SIZE SUFFIX"
19317 msgstr ""
19318
19319 #. type: textblock
19320 #: ../fish/guestfish.pod:601
19321 msgid ""
19322 "When the command takes a parameter measured in bytes, you can use one of the "
19323 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19324 msgstr ""
19325
19326 #. type: =item
19327 #: ../fish/guestfish.pod:607
19328 msgid "B<k> or B<K> or B<KiB>"
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:609
19333 msgid "The size in kilobytes (multiplied by 1024)."
19334 msgstr ""
19335
19336 #. type: =item
19337 #: ../fish/guestfish.pod:611
19338 msgid "B<KB>"
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:613
19343 msgid "The size in SI 1000 byte units."
19344 msgstr ""
19345
19346 #. type: =item
19347 #: ../fish/guestfish.pod:615
19348 msgid "B<M> or B<MiB>"
19349 msgstr ""
19350
19351 #. type: textblock
19352 #: ../fish/guestfish.pod:617
19353 msgid "The size in megabytes (multiplied by 1048576)."
19354 msgstr ""
19355
19356 #. type: =item
19357 #: ../fish/guestfish.pod:619
19358 msgid "B<MB>"
19359 msgstr ""
19360
19361 #. type: textblock
19362 #: ../fish/guestfish.pod:621
19363 msgid "The size in SI 1000000 byte units."
19364 msgstr ""
19365
19366 #. type: =item
19367 #: ../fish/guestfish.pod:623
19368 msgid "B<G> or B<GiB>"
19369 msgstr ""
19370
19371 #. type: textblock
19372 #: ../fish/guestfish.pod:625
19373 msgid "The size in gigabytes (multiplied by 2**30)."
19374 msgstr ""
19375
19376 #. type: =item
19377 #: ../fish/guestfish.pod:627
19378 msgid "B<GB>"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:629
19383 msgid "The size in SI 10**9 byte units."
19384 msgstr ""
19385
19386 #. type: =item
19387 #: ../fish/guestfish.pod:631
19388 msgid "B<T> or B<TiB>"
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:633
19393 msgid "The size in terabytes (multiplied by 2**40)."
19394 msgstr ""
19395
19396 #. type: =item
19397 #: ../fish/guestfish.pod:635
19398 msgid "B<TB>"
19399 msgstr ""
19400
19401 #. type: textblock
19402 #: ../fish/guestfish.pod:637
19403 msgid "The size in SI 10**12 byte units."
19404 msgstr ""
19405
19406 #. type: =item
19407 #: ../fish/guestfish.pod:639
19408 msgid "B<P> or B<PiB>"
19409 msgstr ""
19410
19411 #. type: textblock
19412 #: ../fish/guestfish.pod:641
19413 msgid "The size in petabytes (multiplied by 2**50)."
19414 msgstr ""
19415
19416 #. type: =item
19417 #: ../fish/guestfish.pod:643
19418 msgid "B<PB>"
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../fish/guestfish.pod:645
19423 msgid "The size in SI 10**15 byte units."
19424 msgstr ""
19425
19426 #. type: =item
19427 #: ../fish/guestfish.pod:647
19428 msgid "B<E> or B<EiB>"
19429 msgstr ""
19430
19431 #. type: textblock
19432 #: ../fish/guestfish.pod:649
19433 msgid "The size in exabytes (multiplied by 2**60)."
19434 msgstr ""
19435
19436 #. type: =item
19437 #: ../fish/guestfish.pod:651
19438 msgid "B<EB>"
19439 msgstr ""
19440
19441 #. type: textblock
19442 #: ../fish/guestfish.pod:653
19443 msgid "The size in SI 10**18 byte units."
19444 msgstr ""
19445
19446 #. type: =item
19447 #: ../fish/guestfish.pod:655
19448 msgid "B<Z> or B<ZiB>"
19449 msgstr ""
19450
19451 #. type: textblock
19452 #: ../fish/guestfish.pod:657
19453 msgid "The size in zettabytes (multiplied by 2**70)."
19454 msgstr ""
19455
19456 #. type: =item
19457 #: ../fish/guestfish.pod:659
19458 msgid "B<ZB>"
19459 msgstr ""
19460
19461 #. type: textblock
19462 #: ../fish/guestfish.pod:661
19463 msgid "The size in SI 10**21 byte units."
19464 msgstr ""
19465
19466 #. type: =item
19467 #: ../fish/guestfish.pod:663
19468 msgid "B<Y> or B<YiB>"
19469 msgstr ""
19470
19471 #. type: textblock
19472 #: ../fish/guestfish.pod:665
19473 msgid "The size in yottabytes (multiplied by 2**80)."
19474 msgstr ""
19475
19476 #. type: =item
19477 #: ../fish/guestfish.pod:667
19478 msgid "B<YB>"
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fish/guestfish.pod:669
19483 msgid "The size in SI 10**24 byte units."
19484 msgstr ""
19485
19486 #. type: verbatim
19487 #: ../fish/guestfish.pod:675
19488 #, no-wrap
19489 msgid ""
19490 " truncate-size /file 1G\n"
19491 "\n"
19492 msgstr ""
19493
19494 #. type: textblock
19495 #: ../fish/guestfish.pod:677
19496 msgid "would truncate the file to 1 gigabyte."
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:679
19501 msgid ""
19502 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19503 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19504 "suffix will probably not do what you expect."
19505 msgstr ""
19506
19507 #. type: =head2
19508 #: ../fish/guestfish.pod:683
19509 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19510 msgstr ""
19511
19512 #. type: textblock
19513 #: ../fish/guestfish.pod:685
19514 msgid ""
19515 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19516 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19517 msgstr ""
19518
19519 #. type: verbatim
19520 #: ../fish/guestfish.pod:688
19521 #, no-wrap
19522 msgid ""
19523 " 1234      decimal number 1234\n"
19524 " 02322     octal number, equivalent to decimal 1234\n"
19525 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19526 "\n"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:692
19531 msgid ""
19532 "When using the C<chmod> command, you almost always want to specify an octal "
19533 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19534 "L<chmod(1)> program):"
19535 msgstr ""
19536
19537 #. type: verbatim
19538 #: ../fish/guestfish.pod:696
19539 #, no-wrap
19540 msgid ""
19541 " chmod 0777 /public  # OK\n"
19542 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19543 "\n"
19544 msgstr ""
19545
19546 #. type: textblock
19547 #: ../fish/guestfish.pod:699
19548 msgid ""
19549 "Commands that return numbers usually print them in decimal, but some "
19550 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19551 "octal, preceeded by C<0>)."
19552 msgstr ""
19553
19554 #. type: =head1
19555 #: ../fish/guestfish.pod:703
19556 msgid "WILDCARDS AND GLOBBING"
19557 msgstr ""
19558
19559 #. type: textblock
19560 #: ../fish/guestfish.pod:705
19561 msgid ""
19562 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19563 "(globbing) by default.  So for example the following will not do what you "
19564 "expect:"
19565 msgstr ""
19566
19567 #. type: verbatim
19568 #: ../fish/guestfish.pod:709
19569 #, no-wrap
19570 msgid ""
19571 " rm-rf /home/*\n"
19572 "\n"
19573 msgstr ""
19574
19575 #. type: textblock
19576 #: ../fish/guestfish.pod:711
19577 msgid ""
19578 "Assuming you don't have a directory called literally C</home/*> then the "
19579 "above command will return an error."
19580 msgstr ""
19581
19582 #. type: textblock
19583 #: ../fish/guestfish.pod:714
19584 msgid "To perform wildcard expansion, use the C<glob> command."
19585 msgstr ""
19586
19587 #. type: verbatim
19588 #: ../fish/guestfish.pod:716
19589 #, no-wrap
19590 msgid ""
19591 " glob rm-rf /home/*\n"
19592 "\n"
19593 msgstr ""
19594
19595 #. type: textblock
19596 #: ../fish/guestfish.pod:718
19597 msgid ""
19598 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19599 "many times), equivalent to:"
19600 msgstr ""
19601
19602 #. type: verbatim
19603 #: ../fish/guestfish.pod:721
19604 #, no-wrap
19605 msgid ""
19606 " rm-rf /home/jim\n"
19607 " rm-rf /home/joe\n"
19608 " rm-rf /home/mary\n"
19609 "\n"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish.pod:725
19614 msgid "C<glob> only works on simple guest paths and not on device names."
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../fish/guestfish.pod:727
19619 msgid ""
19620 "If you have several parameters, each containing a wildcard, then glob will "
19621 "perform a Cartesian product."
19622 msgstr ""
19623
19624 #. type: =head1
19625 #: ../fish/guestfish.pod:730
19626 msgid "COMMENTS"
19627 msgstr ""
19628
19629 #. type: textblock
19630 #: ../fish/guestfish.pod:732
19631 msgid ""
19632 "Any line which starts with a I<#> character is treated as a comment and "
19633 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19634 "a command.  For example:"
19635 msgstr ""
19636
19637 #. type: verbatim
19638 #: ../fish/guestfish.pod:736
19639 #, no-wrap
19640 msgid ""
19641 " # this is a comment\n"
19642 "         # this is a comment\n"
19643 " foo # NOT a comment\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:740
19649 msgid "Blank lines are also ignored."
19650 msgstr ""
19651
19652 #. type: =head1
19653 #: ../fish/guestfish.pod:742
19654 msgid "RUNNING COMMANDS LOCALLY"
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:744
19659 msgid ""
19660 "Any line which starts with a I<!> character is treated as a command sent to "
19661 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19662 msgstr ""
19663
19664 #. type: verbatim
19665 #: ../fish/guestfish.pod:748
19666 #, no-wrap
19667 msgid ""
19668 " !mkdir local\n"
19669 " tgz-out /remote local/remote-data.tar.gz\n"
19670 "\n"
19671 msgstr ""
19672
19673 #. type: textblock
19674 #: ../fish/guestfish.pod:751
19675 msgid ""
19676 "will create a directory C<local> on the host, and then export the contents "
19677 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19678 "(See C<tgz-out>)."
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fish/guestfish.pod:755
19683 msgid ""
19684 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19685 "effect, due to the way that subprocesses work in Unix."
19686 msgstr ""
19687
19688 #. type: =head2
19689 #: ../fish/guestfish.pod:758
19690 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19691 msgstr ""
19692
19693 #. type: textblock
19694 #: ../fish/guestfish.pod:760
19695 msgid ""
19696 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19697 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19698 "and executed as guestfish commands."
19699 msgstr ""
19700
19701 #. type: textblock
19702 #: ../fish/guestfish.pod:764
19703 msgid ""
19704 "Thus you can use shell script to construct arbitrary guestfish commands "
19705 "which are then parsed by guestfish."
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:767
19710 msgid ""
19711 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19712 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19713 "if we use a shell script to create the guestfish commands for us:"
19714 msgstr ""
19715
19716 #. type: verbatim
19717 #: ../fish/guestfish.pod:772
19718 #, no-wrap
19719 msgid ""
19720 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19721 "\n"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:774
19726 msgid "or with names like C</foo.001>:"
19727 msgstr ""
19728
19729 #. type: verbatim
19730 #: ../fish/guestfish.pod:776
19731 #, no-wrap
19732 msgid ""
19733 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19734 "\n"
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../fish/guestfish.pod:778
19739 msgid ""
19740 "When using guestfish interactively it can be helpful to just run the shell "
19741 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19742 "ordinary I<!> local command), see what guestfish commands it would run, and "
19743 "when you are happy with those prepend the C<E<lt>> character to run the "
19744 "guestfish commands for real."
19745 msgstr ""
19746
19747 #. type: =head1
19748 #: ../fish/guestfish.pod:784
19749 msgid "PIPES"
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/guestfish.pod:786
19754 msgid ""
19755 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19756 "command (a guestfish command) to the second command (any host command).  For "
19757 "example:"
19758 msgstr ""
19759
19760 #. type: verbatim
19761 #: ../fish/guestfish.pod:790
19762 #, no-wrap
19763 msgid ""
19764 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19765 "\n"
19766 msgstr ""
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:792
19770 msgid ""
19771 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19772 "program).  The above command would list all accounts in the guest filesystem "
19773 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19774 msgstr ""
19775
19776 #. type: verbatim
19777 #: ../fish/guestfish.pod:797
19778 #, no-wrap
19779 msgid ""
19780 " hexdump /bin/ls | head\n"
19781 " list-devices | tail -1\n"
19782 " tgz-out / - | tar ztf -\n"
19783 "\n"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../fish/guestfish.pod:801
19788 msgid ""
19789 "The space before the pipe symbol is required, any space after the pipe "
19790 "symbol is optional.  Everything after the pipe symbol is just passed "
19791 "straight to the host shell, so it can contain redirections, globs and "
19792 "anything else that makes sense on the host side."
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:806
19797 msgid ""
19798 "To use a literal argument which begins with a pipe symbol, you have to quote "
19799 "it, eg:"
19800 msgstr ""
19801
19802 #. type: verbatim
19803 #: ../fish/guestfish.pod:809
19804 #, no-wrap
19805 msgid ""
19806 " echo \"|\"\n"
19807 "\n"
19808 msgstr ""
19809
19810 #. type: =head1
19811 #: ../fish/guestfish.pod:811
19812 msgid "HOME DIRECTORIES"
19813 msgstr ""
19814
19815 #. type: textblock
19816 #: ../fish/guestfish.pod:813
19817 msgid ""
19818 "If a parameter starts with the character C<~> then the tilde may be expanded "
19819 "as a home directory path (either C<~> for the current user's home directory, "
19820 "or C<~user> for another user)."
19821 msgstr ""
19822
19823 #. type: textblock
19824 #: ../fish/guestfish.pod:817
19825 msgid ""
19826 "Note that home directory expansion happens for users known I<on the host>, "
19827 "not in the guest filesystem."
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/guestfish.pod:820
19832 msgid ""
19833 "To use a literal argument which begins with a tilde, you have to quote it, "
19834 "eg:"
19835 msgstr ""
19836
19837 #. type: verbatim
19838 #: ../fish/guestfish.pod:823
19839 #, no-wrap
19840 msgid ""
19841 " echo \"~\"\n"
19842 "\n"
19843 msgstr ""
19844
19845 #. type: =head2
19846 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19847 msgid "ENCRYPTED DISKS"
19848 msgstr ""
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:827
19852 msgid ""
19853 "Libguestfs has some support for Linux guests encrypted according to the "
19854 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19855 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19856 "LUKS is supported."
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/guestfish.pod:832
19861 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19862 msgstr ""
19863
19864 #. type: verbatim
19865 #: ../fish/guestfish.pod:834
19866 #, no-wrap
19867 msgid ""
19868 " ><fs> vfs-type /dev/sda2\n"
19869 " crypto_LUKS\n"
19870 "\n"
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../fish/guestfish.pod:837
19875 msgid ""
19876 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19877 "device called C</dev/mapper/luksdev>."
19878 msgstr ""
19879
19880 #. type: verbatim
19881 #: ../fish/guestfish.pod:840
19882 #, no-wrap
19883 msgid ""
19884 " ><fs> luks-open /dev/sda2 luksdev\n"
19885 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19886 "\n"
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fish/guestfish.pod:843
19891 msgid ""
19892 "Finally you have to tell LVM to scan for volume groups on the newly created "
19893 "mapper device:"
19894 msgstr ""
19895
19896 #. type: verbatim
19897 #: ../fish/guestfish.pod:846
19898 #, no-wrap
19899 msgid ""
19900 " vgscan\n"
19901 " vg-activate-all true\n"
19902 "\n"
19903 msgstr ""
19904
19905 #. type: textblock
19906 #: ../fish/guestfish.pod:849
19907 msgid "The logical volume(s) can now be mounted in the usual way."
19908 msgstr ""
19909
19910 #. type: textblock
19911 #: ../fish/guestfish.pod:851
19912 msgid ""
19913 "Before closing a LUKS device you must unmount any logical volumes on it and "
19914 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19915 "one.  Then you can close the mapper device:"
19916 msgstr ""
19917
19918 #. type: verbatim
19919 #: ../fish/guestfish.pod:855
19920 #, no-wrap
19921 msgid ""
19922 " vg-activate false /dev/VG\n"
19923 " luks-close /dev/mapper/luksdev\n"
19924 "\n"
19925 msgstr ""
19926
19927 #. type: textblock
19928 #: ../fish/guestfish.pod:860
19929 msgid ""
19930 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19931 "letters and paths (with some limitations).  The following commands are "
19932 "equivalent:"
19933 msgstr ""
19934
19935 #. type: verbatim
19936 #: ../fish/guestfish.pod:864
19937 #, no-wrap
19938 msgid ""
19939 " file /WINDOWS/system32/config/system.LOG\n"
19940 "\n"
19941 msgstr ""
19942
19943 #. type: verbatim
19944 #: ../fish/guestfish.pod:866
19945 #, no-wrap
19946 msgid ""
19947 " file win:\\windows\\system32\\config\\system.log\n"
19948 "\n"
19949 msgstr ""
19950
19951 #. type: verbatim
19952 #: ../fish/guestfish.pod:868
19953 #, no-wrap
19954 msgid ""
19955 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19956 "\n"
19957 msgstr ""
19958
19959 #. type: textblock
19960 #: ../fish/guestfish.pod:870
19961 msgid ""
19962 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19963 "where the drive is mounted, prepending that to the path, changing all "
19964 "backslash characters to forward slash, then resolving the result using L</"
19965 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19966 "the parameter might be rewritten like this:"
19967 msgstr ""
19968
19969 #. type: verbatim
19970 #: ../fish/guestfish.pod:876
19971 #, no-wrap
19972 msgid ""
19973 " win:e:\\foo\\bar => /e/FOO/bar\n"
19974 "\n"
19975 msgstr ""
19976
19977 #. type: textblock
19978 #: ../fish/guestfish.pod:878
19979 msgid "This only works in argument positions that expect a path."
19980 msgstr ""
19981
19982 #. type: =head1
19983 #: ../fish/guestfish.pod:880
19984 msgid "UPLOADING AND DOWNLOADING FILES"
19985 msgstr ""
19986
19987 #. type: textblock
19988 #: ../fish/guestfish.pod:882
19989 msgid ""
19990 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19991 "others which upload from or download to a local file, you can use the "
19992 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19993 msgstr ""
19994
19995 #. type: verbatim
19996 #: ../fish/guestfish.pod:886
19997 #, no-wrap
19998 msgid ""
19999 " upload - /foo\n"
20000 "\n"
20001 msgstr ""
20002
20003 #. type: textblock
20004 #: ../fish/guestfish.pod:888
20005 msgid ""
20006 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20007 msgstr ""
20008
20009 #. type: verbatim
20010 #: ../fish/guestfish.pod:891
20011 #, no-wrap
20012 msgid ""
20013 " tar-out /etc - | tar tf -\n"
20014 "\n"
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../fish/guestfish.pod:893
20019 msgid ""
20020 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20021 "command (see L</PIPES>)."
20022 msgstr ""
20023
20024 #. type: textblock
20025 #: ../fish/guestfish.pod:896
20026 msgid ""
20027 "When using C<-> to read from stdin, the input is read up to the end of "
20028 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20029 "some arbitrary end marker:"
20030 msgstr ""
20031
20032 #. type: verbatim
20033 #: ../fish/guestfish.pod:900
20034 #, no-wrap
20035 msgid ""
20036 " upload -<<END /foo\n"
20037 " input line 1\n"
20038 " input line 2\n"
20039 " input line 3\n"
20040 " END\n"
20041 "\n"
20042 msgstr ""
20043
20044 #. type: textblock
20045 #: ../fish/guestfish.pod:906
20046 msgid ""
20047 "Any string of characters can be used instead of C<END>.  The end marker must "
20048 "appear on a line of its own, without any preceeding or following characters "
20049 "(not even spaces)."
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../fish/guestfish.pod:910
20054 msgid ""
20055 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20056 "upload local files (so-called \"FileIn\" parameters in the generator)."
20057 msgstr ""
20058
20059 #. type: =head1
20060 #: ../fish/guestfish.pod:913
20061 msgid "EXIT ON ERROR BEHAVIOUR"
20062 msgstr ""
20063
20064 #. type: textblock
20065 #: ../fish/guestfish.pod:915
20066 msgid ""
20067 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20068 "taking commands from a human over a tty), and will exit on the first error "
20069 "in non-interactive mode (scripts, commands given on the command line)."
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../fish/guestfish.pod:920
20074 msgid ""
20075 "If you prefix a command with a I<-> character, then that command will not "
20076 "cause guestfish to exit, even if that (one) command returns an error."
20077 msgstr ""
20078
20079 #. type: =head1
20080 #: ../fish/guestfish.pod:924
20081 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:926
20086 msgid ""
20087 "Guestfish can be remote-controlled over a socket.  This is useful "
20088 "particularly in shell scripts where you want to make several different "
20089 "changes to a filesystem, but you don't want the overhead of starting up a "
20090 "guestfish process each time."
20091 msgstr ""
20092
20093 #. type: textblock
20094 #: ../fish/guestfish.pod:931
20095 msgid "Start a guestfish server process using:"
20096 msgstr ""
20097
20098 #. type: verbatim
20099 #: ../fish/guestfish.pod:933
20100 #, no-wrap
20101 msgid ""
20102 " eval \"`guestfish --listen`\"\n"
20103 "\n"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:935
20108 msgid "and then send it commands by doing:"
20109 msgstr ""
20110
20111 #. type: verbatim
20112 #: ../fish/guestfish.pod:937
20113 #, no-wrap
20114 msgid ""
20115 " guestfish --remote cmd [...]\n"
20116 "\n"
20117 msgstr ""
20118
20119 #. type: textblock
20120 #: ../fish/guestfish.pod:939
20121 msgid "To cause the server to exit, send it the exit command:"
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../fish/guestfish.pod:943
20126 msgid ""
20127 "Note that the server will normally exit if there is an error in a command.  "
20128 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20129 "BEHAVIOUR>."
20130 msgstr ""
20131
20132 #. type: =head2
20133 #: ../fish/guestfish.pod:947
20134 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20135 msgstr ""
20136
20137 #. type: textblock
20138 #: ../fish/guestfish.pod:949
20139 msgid ""
20140 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20141 "is how the I<--remote> option knows where to send the commands.  You can "
20142 "have several guestfish listener processes running using:"
20143 msgstr ""
20144
20145 #. type: verbatim
20146 #: ../fish/guestfish.pod:953
20147 #, no-wrap
20148 msgid ""
20149 " eval \"`guestfish --listen`\"\n"
20150 " pid1=$GUESTFISH_PID\n"
20151 " eval \"`guestfish --listen`\"\n"
20152 " pid2=$GUESTFISH_PID\n"
20153 " ...\n"
20154 " guestfish --remote=$pid1 cmd\n"
20155 " guestfish --remote=$pid2 cmd\n"
20156 "\n"
20157 msgstr ""
20158
20159 #. type: =head2
20160 #: ../fish/guestfish.pod:961
20161 msgid "REMOTE CONTROL AND CSH"
20162 msgstr ""
20163
20164 #. type: textblock
20165 #: ../fish/guestfish.pod:963
20166 msgid ""
20167 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20168 "option:"
20169 msgstr ""
20170
20171 #. type: verbatim
20172 #: ../fish/guestfish.pod:966
20173 #, no-wrap
20174 msgid ""
20175 " eval \"`guestfish --listen --csh`\"\n"
20176 "\n"
20177 msgstr ""
20178
20179 #. type: =head2
20180 #: ../fish/guestfish.pod:968
20181 msgid "REMOTE CONTROL DETAILS"
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/guestfish.pod:970
20186 msgid ""
20187 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20188 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20189 "and C<$PID> is the process ID of the server."
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../fish/guestfish.pod:974
20194 msgid "Guestfish client and server versions must match exactly."
20195 msgstr ""
20196
20197 #. type: =head2
20198 #: ../fish/guestfish.pod:976
20199 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../fish/guestfish.pod:978
20204 msgid ""
20205 "From Bash, you can use the following code which creates a guestfish "
20206 "instance, correctly quotes the command line, handles failure to start, and "
20207 "cleans up guestfish when the script exits:"
20208 msgstr ""
20209
20210 #. type: verbatim
20211 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20212 #, no-wrap
20213 msgid ""
20214 " #!/bin/bash -\n"
20215 " \n"
20216 msgstr ""
20217
20218 #. type: verbatim
20219 #: ../fish/guestfish.pod:986
20220 #, no-wrap
20221 msgid ""
20222 " guestfish[0]=\"guestfish\"\n"
20223 " guestfish[1]=\"--listen\"\n"
20224 " guestfish[2]=\"--ro\"\n"
20225 " guestfish[3]=\"-a\"\n"
20226 " guestfish[4]=\"disk.img\"\n"
20227 " \n"
20228 msgstr ""
20229
20230 #. type: verbatim
20231 #: ../fish/guestfish.pod:992
20232 #, no-wrap
20233 msgid ""
20234 " GUESTFISH_PID=\n"
20235 " eval $(\"${guestfish[@]}\")\n"
20236 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20237 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20238 "     exit 1\n"
20239 " fi\n"
20240 " \n"
20241 msgstr ""
20242
20243 #. type: verbatim
20244 #: ../fish/guestfish.pod:999
20245 #, no-wrap
20246 msgid ""
20247 " cleanup_guestfish ()\n"
20248 " {\n"
20249 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20250 " }\n"
20251 " trap cleanup_guestfish EXIT ERR\n"
20252 " \n"
20253 msgstr ""
20254
20255 #. type: verbatim
20256 #: ../fish/guestfish.pod:1005
20257 #, no-wrap
20258 msgid ""
20259 " guestfish --remote -- run\n"
20260 " \n"
20261 msgstr ""
20262
20263 #. type: verbatim
20264 #: ../fish/guestfish.pod:1007
20265 #, no-wrap
20266 msgid ""
20267 " # ...\n"
20268 "\n"
20269 msgstr ""
20270
20271 #. type: =head2
20272 #: ../fish/guestfish.pod:1009
20273 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../fish/guestfish.pod:1011
20278 msgid ""
20279 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20280 "context hangs, ie. don't do (note the backquotes):"
20281 msgstr ""
20282
20283 #. type: verbatim
20284 #: ../fish/guestfish.pod:1014
20285 #, no-wrap
20286 msgid ""
20287 " a=`guestfish --remote run`\n"
20288 "\n"
20289 msgstr ""
20290
20291 #. type: textblock
20292 #: ../fish/guestfish.pod:1016
20293 msgid ""
20294 "Since the C<run> command produces no output on stdout, this is not useful "
20295 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20296 "cgi?id=592910>."
20297 msgstr ""
20298
20299 #. type: =head1
20300 #: ../fish/guestfish.pod:1020
20301 msgid "PREPARED DISK IMAGES"
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fish/guestfish.pod:1022
20306 msgid ""
20307 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20308 "preformatted disk images that guestfish can make for you to save typing.  "
20309 "This is particularly useful for testing purposes.  This option is used "
20310 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20311 "can be mixed with I<-a>)."
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../fish/guestfish.pod:1028
20316 msgid ""
20317 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20318 "the second and so on.  Existing files in the current directory are "
20319 "I<overwritten>."
20320 msgstr ""
20321
20322 #. type: textblock
20323 #: ../fish/guestfish.pod:1032
20324 msgid ""
20325 "The type briefly describes how the disk should be sized, partitioned, how "
20326 "filesystem(s) should be created, and how content should be added.  "
20327 "Optionally the type can be followed by extra parameters, separated by C<:> "
20328 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20329 "allocated disk, containing a single partition, with the partition formatted "
20330 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20331 "disk instead."
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../fish/guestfish.pod:1040
20336 msgid "To list the available types and any extra parameters they take, run:"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../fish/guestfish.pod:1044
20341 msgid ""
20342 "Note that the prepared filesystem is not mounted.  You would usually have to "
20343 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20344 msgstr ""
20345
20346 #. type: textblock
20347 #: ../fish/guestfish.pod:1048
20348 msgid ""
20349 "If any I<-N> or I<--new> options are given, the guest is automatically "
20350 "launched."
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../fish/guestfish.pod:1053
20355 msgid "Create a 100MB disk with an ext4-formatted partition:"
20356 msgstr ""
20357
20358 #. type: verbatim
20359 #: ../fish/guestfish.pod:1055
20360 #, no-wrap
20361 msgid ""
20362 " guestfish -N fs:ext4\n"
20363 "\n"
20364 msgstr ""
20365
20366 #. type: textblock
20367 #: ../fish/guestfish.pod:1057
20368 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20369 msgstr ""
20370
20371 #. type: verbatim
20372 #: ../fish/guestfish.pod:1059
20373 #, no-wrap
20374 msgid ""
20375 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20376 "\n"
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../fish/guestfish.pod:1061
20381 msgid "Create a blank 200MB disk:"
20382 msgstr ""
20383
20384 #. type: verbatim
20385 #: ../fish/guestfish.pod:1063
20386 #, no-wrap
20387 msgid ""
20388 " guestfish -N disk:200M\n"
20389 "\n"
20390 msgstr ""
20391
20392 #. type: =head1
20393 #: ../fish/guestfish.pod:1065
20394 msgid "PROGRESS BARS"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fish/guestfish.pod:1067
20399 msgid ""
20400 "Some (not all) long-running commands send progress notification messages as "
20401 "they are running.  Guestfish turns these messages into progress bars."
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../fish/guestfish.pod:1071
20406 msgid ""
20407 "When a command that supports progress bars takes longer than two seconds to "
20408 "run, and if progress bars are enabled, then you will see one appearing below "
20409 "the command:"
20410 msgstr ""
20411
20412 #. type: verbatim
20413 #: ../fish/guestfish.pod:1075
20414 #, no-wrap
20415 msgid ""
20416 " ><fs> copy-size /large-file /another-file 2048M\n"
20417 " / 10% [#####-----------------------------------------] 00:30\n"
20418 "\n"
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../fish/guestfish.pod:1078
20423 msgid ""
20424 "The spinner on the left hand side moves round once for every progress "
20425 "notification received from the backend.  This is a (reasonably) golden "
20426 "assurance that the command is \"doing something\" even if the progress bar "
20427 "is not moving, because the command is able to send the progress "
20428 "notifications.  When the bar reaches 100% and the command finishes, the "
20429 "spinner disappears."
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:1085
20434 msgid ""
20435 "Progress bars are enabled by default when guestfish is used interactively.  "
20436 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20437 "and you can disable them completely using I<--no-progress-bars>."
20438 msgstr ""
20439
20440 #. type: =head1
20441 #: ../fish/guestfish.pod:1090
20442 msgid "GUESTFISH COMMANDS"
20443 msgstr ""
20444
20445 #. type: textblock
20446 #: ../fish/guestfish.pod:1092
20447 msgid ""
20448 "The commands in this section are guestfish convenience commands, in other "
20449 "words, they are not part of the L<guestfs(3)> API."
20450 msgstr ""
20451
20452 #. type: =head2
20453 #: ../fish/guestfish.pod:1095
20454 msgid "help"
20455 msgstr ""
20456
20457 #. type: verbatim
20458 #: ../fish/guestfish.pod:1097
20459 #, no-wrap
20460 msgid ""
20461 " help\n"
20462 " help cmd\n"
20463 "\n"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:1100
20468 msgid "Without any parameter, this provides general help."
20469 msgstr ""
20470
20471 #. type: textblock
20472 #: ../fish/guestfish.pod:1102
20473 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20474 msgstr ""
20475
20476 #. type: =head2
20477 #: ../fish/guestfish.pod:1104
20478 msgid "quit | exit"
20479 msgstr ""
20480
20481 #. type: textblock
20482 #: ../fish/guestfish.pod:1106
20483 msgid "This exits guestfish.  You can also use C<^D> key."
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../fish/guestfish.pod:1108
20488 msgid "@FISH_COMMANDS@"
20489 msgstr ""
20490
20491 #. type: =head1
20492 #: ../fish/guestfish.pod:1110
20493 msgid "COMMANDS"
20494 msgstr ""
20495
20496 #. type: textblock
20497 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20498 msgid "@ACTIONS@"
20499 msgstr ""
20500
20501 #. type: textblock
20502 #: ../fish/guestfish.pod:1116
20503 msgid ""
20504 "guestfish returns 0 if the commands completed without error, or 1 if there "
20505 "was an error."
20506 msgstr ""
20507
20508 #. type: =item
20509 #: ../fish/guestfish.pod:1123
20510 msgid "EDITOR"
20511 msgstr ""
20512
20513 #. type: textblock
20514 #: ../fish/guestfish.pod:1125
20515 msgid ""
20516 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20517 "C<vi>."
20518 msgstr ""
20519
20520 #. type: =item
20521 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20522 msgid "FEBOOTSTRAP_KERNEL"
20523 msgstr ""
20524
20525 #. type: =item
20526 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20527 msgid "FEBOOTSTRAP_MODULES"
20528 msgstr ""
20529
20530 #. type: textblock
20531 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20532 msgid ""
20533 "These two environment variables allow the kernel that libguestfs uses in the "
20534 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20535 "most recent host kernel is chosen.  For more information about kernel "
20536 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20537 "available in febootstrap E<ge> 3.8."
20538 msgstr ""
20539
20540 #. type: =item
20541 #: ../fish/guestfish.pod:1138
20542 msgid "GUESTFISH_DISPLAY_IMAGE"
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../fish/guestfish.pod:1140
20547 msgid ""
20548 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20549 "If not set, it uses L<display(1)>."
20550 msgstr ""
20551
20552 #. type: =item
20553 #: ../fish/guestfish.pod:1143
20554 msgid "GUESTFISH_PID"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:1145
20559 msgid ""
20560 "Used with the I<--remote> option to specify the remote guestfish process to "
20561 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20562 msgstr ""
20563
20564 #. type: =item
20565 #: ../fish/guestfish.pod:1149
20566 msgid "HEXEDITOR"
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fish/guestfish.pod:1151
20571 msgid ""
20572 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20573 "not specified, the external L<hexedit(1)> program is used."
20574 msgstr ""
20575
20576 #. type: =item
20577 #: ../fish/guestfish.pod:1155
20578 msgid "HOME"
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fish/guestfish.pod:1157
20583 msgid ""
20584 "If compiled with GNU readline support, various files in the home directory "
20585 "can be used.  See L</FILES>."
20586 msgstr ""
20587
20588 #. type: =item
20589 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20590 msgid "LIBGUESTFS_APPEND"
20591 msgstr ""
20592
20593 #. type: textblock
20594 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20595 msgid "Pass additional options to the guest kernel."
20596 msgstr ""
20597
20598 #. type: =item
20599 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20600 msgid "LIBGUESTFS_DEBUG"
20601 msgstr ""
20602
20603 #. type: textblock
20604 #: ../fish/guestfish.pod:1166
20605 msgid ""
20606 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20607 "effect as using the B<-v> option."
20608 msgstr ""
20609
20610 #. type: =item
20611 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20612 msgid "LIBGUESTFS_MEMSIZE"
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20617 msgid ""
20618 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20619 msgstr ""
20620
20621 #. type: verbatim
20622 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20623 #, no-wrap
20624 msgid ""
20625 " LIBGUESTFS_MEMSIZE=700\n"
20626 "\n"
20627 msgstr ""
20628
20629 #. type: =item
20630 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20631 msgid "LIBGUESTFS_PATH"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fish/guestfish.pod:1178
20636 msgid ""
20637 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20638 "the discussion of paths in L<guestfs(3)>."
20639 msgstr ""
20640
20641 #. type: =item
20642 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20643 msgid "LIBGUESTFS_QEMU"
20644 msgstr ""
20645
20646 #. type: textblock
20647 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20648 msgid ""
20649 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20650 "which was found at compile time by the configure script is used."
20651 msgstr ""
20652
20653 #. type: =item
20654 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20655 msgid "LIBGUESTFS_TRACE"
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../fish/guestfish.pod:1189
20660 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20661 msgstr ""
20662
20663 #. type: =item
20664 #: ../fish/guestfish.pod:1191
20665 msgid "PAGER"
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../fish/guestfish.pod:1193
20670 msgid ""
20671 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20672 "C<more>."
20673 msgstr ""
20674
20675 #. type: =item
20676 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20677 #: ../src/guestfs.pod:3257
20678 msgid "TMPDIR"
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20683 msgid ""
20684 "Location of temporary directory, defaults to C</tmp> except for the cached "
20685 "supermin appliance which defaults to C</var/tmp>."
20686 msgstr ""
20687
20688 #. type: textblock
20689 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20690 msgid ""
20691 "If libguestfs was compiled to use the supermin appliance then the real "
20692 "appliance is cached in this directory, shared between all handles belonging "
20693 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20694 "use in case C</var/tmp> is not large enough."
20695 msgstr ""
20696
20697 #. type: =head1
20698 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20699 #: ../rescue/virt-rescue.pod:273
20700 msgid "FILES"
20701 msgstr ""
20702
20703 #. type: =item
20704 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20705 #: ../rescue/virt-rescue.pod:277
20706 msgid "$HOME/.libguestfs-tools.rc"
20707 msgstr ""
20708
20709 #. type: =item
20710 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20711 #: ../rescue/virt-rescue.pod:279
20712 msgid "/etc/libguestfs-tools.conf"
20713 msgstr ""
20714
20715 #. type: textblock
20716 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20717 #: ../rescue/virt-rescue.pod:281
20718 msgid ""
20719 "This configuration file controls the default read-only or read-write mode "
20720 "(I<--ro> or I<--rw>)."
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../fish/guestfish.pod:1220
20725 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20726 msgstr ""
20727
20728 #. type: =item
20729 #: ../fish/guestfish.pod:1222
20730 msgid "$HOME/.guestfish"
20731 msgstr ""
20732
20733 #. type: textblock
20734 #: ../fish/guestfish.pod:1224
20735 msgid ""
20736 "If compiled with GNU readline support, then the command history is saved in "
20737 "this file."
20738 msgstr ""
20739
20740 #. type: =item
20741 #: ../fish/guestfish.pod:1227
20742 msgid "$HOME/.inputrc"
20743 msgstr ""
20744
20745 #. type: =item
20746 #: ../fish/guestfish.pod:1229
20747 msgid "/etc/inputrc"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1231
20752 msgid ""
20753 "If compiled with GNU readline support, then these files can be used to "
20754 "configure readline.  For further information, please see L<readline(3)/"
20755 "INITIALIZATION FILE>."
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../fish/guestfish.pod:1235
20760 msgid "To write rules which only apply to guestfish, use:"
20761 msgstr ""
20762
20763 #. type: verbatim
20764 #: ../fish/guestfish.pod:1237
20765 #, no-wrap
20766 msgid ""
20767 " $if guestfish\n"
20768 " ...\n"
20769 " $endif\n"
20770 "\n"
20771 msgstr ""
20772
20773 #. type: textblock
20774 #: ../fish/guestfish.pod:1241
20775 msgid ""
20776 "Variables that you can set in inputrc that change the behaviour of guestfish "
20777 "in useful ways include:"
20778 msgstr ""
20779
20780 #. type: =item
20781 #: ../fish/guestfish.pod:1246
20782 msgid "completion-ignore-case (default: on)"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:1248
20787 msgid ""
20788 "By default, guestfish will ignore case when tab-completing paths on the "
20789 "disk.  Use:"
20790 msgstr ""
20791
20792 #. type: verbatim
20793 #: ../fish/guestfish.pod:1251
20794 #, no-wrap
20795 msgid ""
20796 " set completion-ignore-case off\n"
20797 "\n"
20798 msgstr ""
20799
20800 #. type: textblock
20801 #: ../fish/guestfish.pod:1253
20802 msgid "to make guestfish case sensitive."
20803 msgstr ""
20804
20805 #. type: =item
20806 #: ../fish/guestfish.pod:1257
20807 msgid "test1.img"
20808 msgstr ""
20809
20810 #. type: =item
20811 #: ../fish/guestfish.pod:1259
20812 msgid "test2.img (etc)"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:1261
20817 msgid ""
20818 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20819 "will be created in the file C<test1.img> in the current directory.  The "
20820 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20821 "the same name will be overwritten."
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:1270
20826 msgid ""
20827 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20828 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20829 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20830 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20831 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20832 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20833 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
20838 #: ../test-tool/libguestfs-test-tool.pod:112
20839 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../fish/virt-copy-in.pod:5
20844 msgid ""
20845 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20846 msgstr ""
20847
20848 #. type: verbatim
20849 #: ../fish/virt-copy-in.pod:9
20850 #, no-wrap
20851 msgid ""
20852 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20853 "\n"
20854 msgstr ""
20855
20856 #. type: verbatim
20857 #: ../fish/virt-copy-in.pod:11
20858 #, no-wrap
20859 msgid ""
20860 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20861 "\n"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/virt-copy-in.pod:15
20866 msgid ""
20867 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20868 "causing disk corruption.  The virtual machine must be shut down before you "
20869 "use this command."
20870 msgstr ""
20871
20872 #. type: textblock
20873 #: ../fish/virt-copy-in.pod:21
20874 msgid ""
20875 "C<virt-copy-in> copies files and directories from the local disk into a "
20876 "virtual machine disk image or named libvirt domain."
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../fish/virt-copy-in.pod:24
20881 msgid ""
20882 "You can give one of more filenames and directories on the command line.  "
20883 "Directories are copied in recursively.  The final parameter must be the "
20884 "destination directory in the disk image which must be an absolute path "
20885 "starting with a C</> character."
20886 msgstr ""
20887
20888 #. type: verbatim
20889 #: ../fish/virt-copy-in.pod:33
20890 #, no-wrap
20891 msgid ""
20892 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20893 "\n"
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20898 msgid "Upload a home directory to a guest:"
20899 msgstr ""
20900
20901 #. type: verbatim
20902 #: ../fish/virt-copy-in.pod:37
20903 #, no-wrap
20904 msgid ""
20905 " virt-copy-in -d MyGuest skel /home\n"
20906 "\n"
20907 msgstr ""
20908
20909 #. type: =head1
20910 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20911 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20912 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../fish/virt-copy-in.pod:41
20917 msgid ""
20918 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20919 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20920 "are probably better off using guestfish directly."
20921 msgstr ""
20922
20923 #. type: textblock
20924 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20925 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20926 msgid ""
20927 "Since the shell script just passes options straight to guestfish, read "
20928 "L<guestfish(1)> to see the full list of options."
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../fish/virt-copy-in.pod:52
20933 msgid ""
20934 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20935 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20936 msgstr ""
20937
20938 #. type: textblock
20939 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20940 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20941 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../fish/virt-copy-out.pod:5
20946 msgid ""
20947 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20948 "image."
20949 msgstr ""
20950
20951 #. type: verbatim
20952 #: ../fish/virt-copy-out.pod:9
20953 #, no-wrap
20954 msgid ""
20955 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20956 "\n"
20957 msgstr ""
20958
20959 #. type: verbatim
20960 #: ../fish/virt-copy-out.pod:11
20961 #, no-wrap
20962 msgid ""
20963 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20964 "\n"
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../fish/virt-copy-out.pod:15
20969 msgid ""
20970 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20971 "image or named libvirt domain."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/virt-copy-out.pod:18
20976 msgid ""
20977 "You can give one of more filenames and directories on the command line.  "
20978 "Directories are copied out recursively."
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../fish/virt-copy-out.pod:23
20983 msgid "Download the home directories from a virtual machine:"
20984 msgstr ""
20985
20986 #. type: verbatim
20987 #: ../fish/virt-copy-out.pod:25
20988 #, no-wrap
20989 msgid ""
20990 " mkdir homes\n"
20991 " virt-copy-out -d MyGuest /home homes\n"
20992 "\n"
20993 msgstr ""
20994
20995 #. type: textblock
20996 #: ../fish/virt-copy-out.pod:30
20997 msgid ""
20998 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20999 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21000 "are probably better off using guestfish directly."
21001 msgstr ""
21002
21003 #. type: textblock
21004 #: ../fish/virt-copy-out.pod:41
21005 msgid ""
21006 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21007 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/virt-tar-in.pod:5
21012 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21013 msgstr ""
21014
21015 #. type: verbatim
21016 #: ../fish/virt-tar-in.pod:9
21017 #, no-wrap
21018 msgid ""
21019 " virt-tar-in -a disk.img data.tar /destination\n"
21020 "\n"
21021 msgstr ""
21022
21023 #. type: verbatim
21024 #: ../fish/virt-tar-in.pod:11
21025 #, no-wrap
21026 msgid ""
21027 " virt-tar-in -d domain data.tar /destination\n"
21028 "\n"
21029 msgstr ""
21030
21031 #. type: verbatim
21032 #: ../fish/virt-tar-in.pod:13
21033 #, no-wrap
21034 msgid ""
21035 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21036 "\n"
21037 msgstr ""
21038
21039 #. type: textblock
21040 #: ../fish/virt-tar-in.pod:17
21041 msgid ""
21042 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21043 "causing disk corruption.  The virtual machine must be shut down before you "
21044 "use this command."
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../fish/virt-tar-in.pod:23
21049 msgid ""
21050 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21051 "image or named libvirt domain."
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../fish/virt-tar-in.pod:26
21056 msgid ""
21057 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21058 "standard input.  The second parameter is the absolute target directory to "
21059 "unpack into."
21060 msgstr ""
21061
21062 #. type: verbatim
21063 #: ../fish/virt-tar-in.pod:34
21064 #, no-wrap
21065 msgid ""
21066 " virt-tar-in -d MyGuest homes.tar /home\n"
21067 "\n"
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../fish/virt-tar-in.pod:38
21072 msgid ""
21073 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21074 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21075 "probably better off using guestfish directly."
21076 msgstr ""
21077
21078 #. type: textblock
21079 #: ../fish/virt-tar-in.pod:49
21080 msgid ""
21081 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21082 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21083 "org/>."
21084 msgstr ""
21085
21086 #. type: textblock
21087 #: ../fish/virt-tar-out.pod:5
21088 msgid ""
21089 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21090 msgstr ""
21091
21092 #. type: verbatim
21093 #: ../fish/virt-tar-out.pod:9
21094 #, no-wrap
21095 msgid ""
21096 " virt-tar-out -a disk.img /dir files.tar\n"
21097 "\n"
21098 msgstr ""
21099
21100 #. type: verbatim
21101 #: ../fish/virt-tar-out.pod:11
21102 #, no-wrap
21103 msgid ""
21104 " virt-tar-out -d domain /dir files.tar\n"
21105 "\n"
21106 msgstr ""
21107
21108 #. type: verbatim
21109 #: ../fish/virt-tar-out.pod:13
21110 #, no-wrap
21111 msgid ""
21112 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21113 "\n"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fish/virt-tar-out.pod:17
21118 msgid ""
21119 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../fish/virt-tar-out.pod:20
21124 msgid ""
21125 "The first parameter is the absolute path of the virtual machine directory.  "
21126 "The second parameter is the tar file to write.  Use C<-> to write to "
21127 "standard output."
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../fish/virt-tar-out.pod:26
21132 msgid "Download the home directories from a guest:"
21133 msgstr ""
21134
21135 #. type: verbatim
21136 #: ../fish/virt-tar-out.pod:28
21137 #, no-wrap
21138 msgid ""
21139 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21140 "\n"
21141 msgstr ""
21142
21143 #. type: textblock
21144 #: ../fish/virt-tar-out.pod:32
21145 msgid ""
21146 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21147 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21148 "are probably better off using guestfish directly."
21149 msgstr ""
21150
21151 #. type: textblock
21152 #: ../fish/virt-tar-out.pod:43
21153 msgid ""
21154 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21155 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../fuse/guestmount.pod:5
21160 msgid ""
21161 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21162 msgstr ""
21163
21164 #. type: verbatim
21165 #: ../fuse/guestmount.pod:9
21166 #, no-wrap
21167 msgid ""
21168 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21169 "\n"
21170 msgstr ""
21171
21172 #. type: verbatim
21173 #: ../fuse/guestmount.pod:11
21174 #, no-wrap
21175 msgid ""
21176 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21177 "\n"
21178 msgstr ""
21179
21180 #. type: verbatim
21181 #: ../fuse/guestmount.pod:13
21182 #, no-wrap
21183 msgid ""
21184 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21185 "\n"
21186 msgstr ""
21187
21188 #. type: textblock
21189 #: ../fuse/guestmount.pod:17
21190 msgid ""
21191 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21192 "machines.  If you do this, you risk disk corruption in the VM."
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../fuse/guestmount.pod:22
21197 msgid ""
21198 "The guestmount program can be used to mount virtual machine filesystems and "
21199 "other disk images on the host.  It uses libguestfs for access to the guest "
21200 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21201 "a mountable device."
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../fuse/guestmount.pod:27
21206 msgid ""
21207 "Along with other options, you have to give at least one device (I<-a> "
21208 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21209 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21210 "this works is better explained in the L<guestfish(1)> manual page, or by "
21211 "looking at the examples below."
21212 msgstr ""
21213
21214 #. type: textblock
21215 #: ../fuse/guestmount.pod:33
21216 msgid ""
21217 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21218 "by you, and the filesystem will not be visible to any other users unless you "
21219 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21220 "the filesystem, use the C<fusermount -u> command."
21221 msgstr ""
21222
21223 #. type: textblock
21224 #: ../fuse/guestmount.pod:41
21225 msgid ""
21226 "For a typical Windows guest which has its main filesystem on the first "
21227 "partition:"
21228 msgstr ""
21229
21230 #. type: verbatim
21231 #: ../fuse/guestmount.pod:44
21232 #, no-wrap
21233 msgid ""
21234 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21235 "\n"
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../fuse/guestmount.pod:46
21240 msgid ""
21241 "For a typical Linux guest which has a /boot filesystem on the first "
21242 "partition, and the root filesystem on a logical volume:"
21243 msgstr ""
21244
21245 #. type: verbatim
21246 #: ../fuse/guestmount.pod:49
21247 #, no-wrap
21248 msgid ""
21249 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21250 "\n"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fuse/guestmount.pod:51
21255 msgid "To get libguestfs to detect guest mountpoints for you:"
21256 msgstr ""
21257
21258 #. type: verbatim
21259 #: ../fuse/guestmount.pod:53
21260 #, no-wrap
21261 msgid ""
21262 " guestmount -a guest.img -i --ro /mnt\n"
21263 "\n"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../fuse/guestmount.pod:55
21268 msgid "For a libvirt guest called \"Guest\" you could do:"
21269 msgstr ""
21270
21271 #. type: verbatim
21272 #: ../fuse/guestmount.pod:57
21273 #, no-wrap
21274 msgid ""
21275 " guestmount -d Guest -i --ro /mnt\n"
21276 "\n"
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../fuse/guestmount.pod:59
21281 msgid ""
21282 "If you don't know what filesystems are contained in a guest or disk image, "
21283 "use L<virt-filesystems(1)> first:"
21284 msgstr ""
21285
21286 #. type: verbatim
21287 #: ../fuse/guestmount.pod:62
21288 #, no-wrap
21289 msgid ""
21290 " virt-filesystems MyGuest\n"
21291 "\n"
21292 msgstr ""
21293
21294 #. type: textblock
21295 #: ../fuse/guestmount.pod:64
21296 msgid ""
21297 "If you want to trace the libguestfs calls but without excessive debugging "
21298 "information, we recommend:"
21299 msgstr ""
21300
21301 #. type: verbatim
21302 #: ../fuse/guestmount.pod:67
21303 #, no-wrap
21304 msgid ""
21305 " guestmount [...] --trace /mnt\n"
21306 "\n"
21307 msgstr ""
21308
21309 #. type: textblock
21310 #: ../fuse/guestmount.pod:69
21311 msgid "If you want to debug the program, we recommend:"
21312 msgstr ""
21313
21314 #. type: verbatim
21315 #: ../fuse/guestmount.pod:71
21316 #, no-wrap
21317 msgid ""
21318 " guestmount [...] --trace --verbose /mnt\n"
21319 "\n"
21320 msgstr ""
21321
21322 #. type: =head1
21323 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21324 #: ../resize/virt-resize.pod:621
21325 msgid "NOTES"
21326 msgstr ""
21327
21328 #. type: =head2
21329 #: ../fuse/guestmount.pod:75
21330 msgid "Other users cannot see the filesystem by default"
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../fuse/guestmount.pod:77
21335 msgid ""
21336 "If you mount a filesystem as one user (eg. root), then other users will not "
21337 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21338 "option when mounting:"
21339 msgstr ""
21340
21341 #. type: verbatim
21342 #: ../fuse/guestmount.pod:81
21343 #, no-wrap
21344 msgid ""
21345 " sudo guestmount [...] -o allow_other /mnt\n"
21346 "\n"
21347 msgstr ""
21348
21349 #. type: =head2
21350 #: ../fuse/guestmount.pod:83
21351 msgid "Enabling FUSE"
21352 msgstr ""
21353
21354 #. type: textblock
21355 #: ../fuse/guestmount.pod:85
21356 msgid ""
21357 "On some distros, you may need to add yourself to a special group (eg. "
21358 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21359 "Debian and derivatives."
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../fuse/guestmount.pod:89
21364 msgid ""
21365 "On other distros, no special group is required.  It is not necessary on "
21366 "Fedora or Red Hat Enterprise Linux."
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../fuse/guestmount.pod:100
21371 msgid "Add a block device or virtual machine image."
21372 msgstr ""
21373
21374 #. type: =item
21375 #: ../fuse/guestmount.pod:123
21376 msgid "B<--dir-cache-timeout N>"
21377 msgstr ""
21378
21379 #. type: textblock
21380 #: ../fuse/guestmount.pod:125
21381 msgid ""
21382 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21383 "seconds.  The readdir cache [actually, there are several semi-independent "
21384 "caches] is populated after a readdir(2) call with the stat and extended "
21385 "attributes of the files in the directory, in anticipation that they will be "
21386 "requested soon after."
21387 msgstr ""
21388
21389 #. type: textblock
21390 #: ../fuse/guestmount.pod:131
21391 msgid ""
21392 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21393 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21394 "requests, only cache existing ones."
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../fuse/guestmount.pod:151
21399 msgid ""
21400 "If you have untrusted raw-format guest disk images, you should use this "
21401 "option to specify the disk format.  This avoids a possible security problem "
21402 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21403 "guestfs_add_drive_opts>."
21404 msgstr ""
21405
21406 #. type: =item
21407 #: ../fuse/guestmount.pod:156
21408 msgid "B<--fuse-help>"
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fuse/guestmount.pod:158
21413 msgid "Display help on special FUSE options (see I<-o> below)."
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../fuse/guestmount.pod:162
21418 msgid "Display brief help and exit."
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../fuse/guestmount.pod:186
21423 msgid ""
21424 "Mount the named partition or logical volume on the given mountpoint B<in the "
21425 "guest> (this has nothing to do with mountpoints in the host)."
21426 msgstr ""
21427
21428 #. type: textblock
21429 #: ../fuse/guestmount.pod:189
21430 msgid ""
21431 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21432 "something on C</>."
21433 msgstr ""
21434
21435 #. type: textblock
21436 #: ../fuse/guestmount.pod:206
21437 msgid ""
21438 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21439 "unmounted.  If you specify this option, then we don't attempt to sync the "
21440 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21441 msgstr ""
21442
21443 #. type: =item
21444 #: ../fuse/guestmount.pod:211
21445 msgid "B<-o option>"
21446 msgstr ""
21447
21448 #. type: =item
21449 #: ../fuse/guestmount.pod:213
21450 msgid "B<--option option>"
21451 msgstr ""
21452
21453 #. type: textblock
21454 #: ../fuse/guestmount.pod:215
21455 msgid "Pass extra options to FUSE."
21456 msgstr ""
21457
21458 #. type: textblock
21459 #: ../fuse/guestmount.pod:217
21460 msgid ""
21461 "To get a list of all the extra options supported by FUSE, use the command "
21462 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21463 "of them are a good idea."
21464 msgstr ""
21465
21466 #. type: verbatim
21467 #: ../fuse/guestmount.pod:221
21468 #, no-wrap
21469 msgid ""
21470 " guestmount --fuse-help\n"
21471 "\n"
21472 msgstr ""
21473
21474 #. type: textblock
21475 #: ../fuse/guestmount.pod:223
21476 msgid "Some potentially useful FUSE options:"
21477 msgstr ""
21478
21479 #. type: =item
21480 #: ../fuse/guestmount.pod:227
21481 msgid "B<-o allow_other>"
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../fuse/guestmount.pod:229
21486 msgid "Allow other users to see the filesystem."
21487 msgstr ""
21488
21489 #. type: =item
21490 #: ../fuse/guestmount.pod:231
21491 msgid "B<-o attr_timeout=N>"
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../fuse/guestmount.pod:233
21496 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21497 msgstr ""
21498
21499 #. type: =item
21500 #: ../fuse/guestmount.pod:235
21501 msgid "B<-o kernel_cache>"
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../fuse/guestmount.pod:237
21506 msgid ""
21507 "Allow the kernel to cache files (reduces the number of reads that have to go "
21508 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21509 "afford the extra memory usage."
21510 msgstr ""
21511
21512 #. type: =item
21513 #: ../fuse/guestmount.pod:241
21514 msgid "B<-o uid=N> B<-o gid=N>"
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../fuse/guestmount.pod:243
21519 msgid ""
21520 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21521 "the chosen values."
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../fuse/guestmount.pod:252
21526 msgid ""
21527 "Add devices and mount everything read-only.  Also disallow writes and make "
21528 "the disk appear read-only to FUSE."
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../fuse/guestmount.pod:255
21533 msgid ""
21534 "This is highly recommended if you are not going to edit the guest disk.  If "
21535 "the guest is running and this option is I<not> supplied, then there is a "
21536 "strong risk of disk corruption in the guest.  We try to prevent this from "
21537 "happening, but it is not always possible."
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21542 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21543 msgstr ""
21544
21545 #. type: textblock
21546 #: ../fuse/guestmount.pod:264
21547 msgid "Enable SELinux support for the guest."
21548 msgstr ""
21549
21550 #. type: textblock
21551 #: ../fuse/guestmount.pod:270
21552 msgid "Enable verbose messages from underlying libguestfs."
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../fuse/guestmount.pod:276
21557 msgid "Display the program version and exit."
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21562 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21563 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21564 msgstr ""
21565
21566 #. type: =item
21567 #: ../fuse/guestmount.pod:289
21568 msgid "B<--trace>"
21569 msgstr ""
21570
21571 #. type: textblock
21572 #: ../fuse/guestmount.pod:291
21573 msgid "Trace libguestfs calls and entry into each FUSE function."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../fuse/guestmount.pod:293
21578 msgid "This also stops the daemon from forking into the background."
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fuse/guestmount.pod:319
21583 msgid ""
21584 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21585 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21586 "net/>."
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../fuse/guestmount.pod:334
21591 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21592 msgstr ""
21593
21594 #. type: textblock
21595 #: ../inspector/virt-inspector.pod:5
21596 msgid ""
21597 "virt-inspector - Display operating system version and other information "
21598 "about a virtual machine"
21599 msgstr ""
21600
21601 #. type: verbatim
21602 #: ../inspector/virt-inspector.pod:9
21603 #, no-wrap
21604 msgid ""
21605 " virt-inspector [--options] -d domname\n"
21606 "\n"
21607 msgstr ""
21608
21609 #. type: verbatim
21610 #: ../inspector/virt-inspector.pod:11
21611 #, no-wrap
21612 msgid ""
21613 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21614 "\n"
21615 msgstr ""
21616
21617 #. type: verbatim
21618 #: ../inspector/virt-inspector.pod:15
21619 #, no-wrap
21620 msgid ""
21621 " virt-inspector domname\n"
21622 "\n"
21623 msgstr ""
21624
21625 #. type: verbatim
21626 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21627 #, no-wrap
21628 msgid ""
21629 " virt-inspector disk.img [disk.img ...]\n"
21630 "\n"
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../inspector/virt-inspector.pod:21
21635 msgid ""
21636 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21637 "determine the version of the operating system and other information about "
21638 "the virtual machine."
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../inspector/virt-inspector.pod:25
21643 msgid "Virt-inspector produces XML output for feeding into other programs."
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../inspector/virt-inspector.pod:27
21648 msgid ""
21649 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21650 "the libvirt domain (see: C<virsh list --all>)."
21651 msgstr ""
21652
21653 #. type: textblock
21654 #: ../inspector/virt-inspector.pod:30
21655 msgid ""
21656 "You can also run virt-inspector directly on disk images from a single "
21657 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21658 "has several block devices, in which case you should list several I<-a> "
21659 "options one after another, with the first corresponding to the guest's C</"
21660 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../inspector/virt-inspector.pod:37
21665 msgid ""
21666 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21667 "keys and similar."
21668 msgstr ""
21669
21670 #. type: textblock
21671 #: ../inspector/virt-inspector.pod:40
21672 msgid ""
21673 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21674 "inspect several virtual machines, you have to run virt-inspector several "
21675 "times (for example, from a shell script for-loop)."
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../inspector/virt-inspector.pod:45
21680 msgid ""
21681 "Because virt-inspector needs direct access to guest images, it won't "
21682 "normally work over remote libvirt connections."
21683 msgstr ""
21684
21685 #. type: textblock
21686 #: ../inspector/virt-inspector.pod:48
21687 msgid ""
21688 "All of the information available from virt-inspector is also available "
21689 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21690 "The same information can also be fetched using guestfish or via libguestfs "
21691 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21692 "WITH OTHER PROGRAMMING LANGUAGES>)."
21693 msgstr ""
21694
21695 #. type: textblock
21696 #: ../inspector/virt-inspector.pod:81
21697 msgid ""
21698 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21699 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21700 "at all."
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../inspector/virt-inspector.pod:94
21705 msgid ""
21706 "When prompting for keys and passphrases, virt-inspector normally turns "
21707 "echoing off so you cannot see what you are typing.  If you are not worried "
21708 "about Tempest attacks and there is no one else in the room you can specify "
21709 "this flag to see what you are typing."
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21714 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21715 #: ../tools/virt-win-reg.pl:144
21716 msgid ""
21717 "Specify the format of disk images given on the command line.  If this is "
21718 "omitted then the format is autodetected from the content of the disk image."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21723 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21724 #: ../tools/virt-win-reg.pl:148
21725 msgid ""
21726 "If disk images are requested from libvirt, then this program asks libvirt "
21727 "for this information.  In this case, the value of the format parameter is "
21728 "ignored."
21729 msgstr ""
21730
21731 #. type: textblock
21732 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
21733 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
21734 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21735 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21736 msgid ""
21737 "If working with untrusted raw-format guest disk images, you should ensure "
21738 "the format is always specified."
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../inspector/virt-inspector.pod:139
21743 msgid "Previous versions of virt-inspector allowed you to write either:"
21744 msgstr ""
21745
21746 #. type: verbatim
21747 #: ../inspector/virt-inspector.pod:145
21748 #, no-wrap
21749 msgid ""
21750 " virt-inspector guestname\n"
21751 "\n"
21752 msgstr ""
21753
21754 #. type: =head1
21755 #: ../inspector/virt-inspector.pod:153
21756 msgid "XML FORMAT"
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../inspector/virt-inspector.pod:155
21761 msgid ""
21762 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21763 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21764 "just an overview."
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../inspector/virt-inspector.pod:159
21769 msgid ""
21770 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21771 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21772 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21773 "which is vanishingly rare in real world VMs."
21774 msgstr ""
21775
21776 #. type: =head2
21777 #: ../inspector/virt-inspector.pod:164
21778 msgid "E<lt>operatingsystemE<gt>"
21779 msgstr ""
21780
21781 #. type: textblock
21782 #: ../inspector/virt-inspector.pod:166
21783 msgid ""
21784 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21785 "describe the operating system, its architecture, the descriptive \"product "
21786 "name\" string, the type of OS and so on, as in this example:"
21787 msgstr ""
21788
21789 #. type: verbatim
21790 #: ../inspector/virt-inspector.pod:170
21791 #, no-wrap
21792 msgid ""
21793 " <operatingsystems>\n"
21794 "   <operatingsystem>\n"
21795 "     <root>/dev/sda2</root>\n"
21796 "     <name>windows</name>\n"
21797 "     <arch>i386</arch>\n"
21798 "     <distro>windows</distro>\n"
21799 "     <product_name>Windows 7 Enterprise</product_name>\n"
21800 "     <product_variant>Client</product_variant>\n"
21801 "     <major_version>6</major_version>\n"
21802 "     <minor_version>1</minor_version>\n"
21803 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21804 "     <format>installed</format>\n"
21805 "\n"
21806 msgstr ""
21807
21808 #. type: textblock
21809 #: ../inspector/virt-inspector.pod:183
21810 msgid ""
21811 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21812 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21813 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21814 "architecture.  The other fields are fairly self-explanatory, but because "
21815 "these fields are taken directly from the libguestfs inspection API you can "
21816 "find precise information from L<guestfs(3)/INSPECTION>."
21817 msgstr ""
21818
21819 #. type: textblock
21820 #: ../inspector/virt-inspector.pod:191
21821 msgid ""
21822 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21823 "of view of libguestfs (block devices may have completely different names "
21824 "inside the VM itself)."
21825 msgstr ""
21826
21827 #. type: =head2
21828 #: ../inspector/virt-inspector.pod:195
21829 msgid "E<lt>mountpointsE<gt>"
21830 msgstr ""
21831
21832 #. type: textblock
21833 #: ../inspector/virt-inspector.pod:197
21834 msgid ""
21835 "Un*x-like guests typically have multiple filesystems which are mounted at "
21836 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21837 "element which looks like this:"
21838 msgstr ""
21839
21840 #. type: verbatim
21841 #: ../inspector/virt-inspector.pod:201
21842 #, no-wrap
21843 msgid ""
21844 " <operatingsystems>\n"
21845 "   <operatingsystem>\n"
21846 "     ...\n"
21847 "     <mountpoints>\n"
21848 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21849 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21850 "     </mountpoints>\n"
21851 "\n"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../inspector/virt-inspector.pod:209
21856 msgid ""
21857 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21858 "and may have completely different names inside the guest.  Only mountable "
21859 "filesystems appear in this list, not things like swap devices."
21860 msgstr ""
21861
21862 #. type: =head2
21863 #: ../inspector/virt-inspector.pod:214
21864 msgid "E<lt>filesystemsE<gt>"
21865 msgstr ""
21866
21867 #. type: textblock
21868 #: ../inspector/virt-inspector.pod:216
21869 msgid ""
21870 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21871 "filesystems belonging to the guest, including swap and empty partitions.  "
21872 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21873 "this OS or shared with this OS and other OSes)."
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../inspector/virt-inspector.pod:222
21878 msgid "You might see something like this:"
21879 msgstr ""
21880
21881 #. type: verbatim
21882 #: ../inspector/virt-inspector.pod:224
21883 #, no-wrap
21884 msgid ""
21885 " <operatingsystems>\n"
21886 "   <operatingsystem>\n"
21887 "     ...\n"
21888 "     <filesystems>\n"
21889 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21890 "         <type>ext4</type>\n"
21891 "         <label>Fedora-13-x86_64</label>\n"
21892 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21893 "       </filesystem>\n"
21894 "\n"
21895 msgstr ""
21896
21897 #. type: textblock
21898 #: ../inspector/virt-inspector.pod:234
21899 msgid ""
21900 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21901 "the label, and the UUID."
21902 msgstr ""
21903
21904 #. type: =head2
21905 #: ../inspector/virt-inspector.pod:237
21906 msgid "E<lt>applicationsE<gt>"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../inspector/virt-inspector.pod:239
21911 msgid ""
21912 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21913 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21914 "machine."
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../inspector/virt-inspector.pod:243
21919 msgid ""
21920 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21921 "Typical values would be C<rpm> and C<deb>."
21922 msgstr ""
21923
21924 #. type: textblock
21925 #: ../inspector/virt-inspector.pod:246
21926 msgid ""
21927 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21928 "Typical values include C<yum>, C<up2date> and C<apt>"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../inspector/virt-inspector.pod:249
21933 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21934 msgstr ""
21935
21936 #. type: verbatim
21937 #: ../inspector/virt-inspector.pod:252
21938 #, no-wrap
21939 msgid ""
21940 " <operatingsystems>\n"
21941 "   <operatingsystem>\n"
21942 "     ...\n"
21943 "     <applications>\n"
21944 "       <application>\n"
21945 "         <name>coreutils</name>\n"
21946 "         <version>8.5</version>\n"
21947 "         <release>1</release>\n"
21948 "       </application>\n"
21949 "\n"
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../inspector/virt-inspector.pod:262
21954 msgid ""
21955 "The version and release fields may not be available for some types guests.  "
21956 "Other fields are possible, see L<guestfs(3)/"
21957 "guestfs_inspect_list_applications>."
21958 msgstr ""
21959
21960 #. type: =head2
21961 #: ../inspector/virt-inspector.pod:266
21962 msgid "E<lt>drive_mappingsE<gt>"
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../inspector/virt-inspector.pod:268
21967 msgid ""
21968 "For operating systems like Windows which use drive letters, virt-inspector "
21969 "is able to find out how drive letters map to filesystems."
21970 msgstr ""
21971
21972 #. type: verbatim
21973 #: ../inspector/virt-inspector.pod:272
21974 #, no-wrap
21975 msgid ""
21976 " <operatingsystems>\n"
21977 "   <operatingsystem>\n"
21978 "     ...\n"
21979 "     <drive_mappings>\n"
21980 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21981 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21982 "     </drive_mappings>\n"
21983 "\n"
21984 msgstr ""
21985
21986 #. type: textblock
21987 #: ../inspector/virt-inspector.pod:280
21988 msgid ""
21989 "In the example above, drive C maps to the filesystem on the second partition "
21990 "on the first disk, and drive E maps to the filesystem on the first partition "
21991 "on the second disk."
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../inspector/virt-inspector.pod:284
21996 msgid ""
21997 "Note that this only covers permanent local filesystem mappings, not things "
21998 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21999 "here."
22000 msgstr ""
22001
22002 #. type: =head2
22003 #: ../inspector/virt-inspector.pod:288
22004 msgid "E<lt>iconE<gt>"
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../inspector/virt-inspector.pod:290
22009 msgid ""
22010 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22011 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22012 "very large and high quality."
22013 msgstr ""
22014
22015 #. type: verbatim
22016 #: ../inspector/virt-inspector.pod:294
22017 #, no-wrap
22018 msgid ""
22019 " <operatingsystems>\n"
22020 "   <operatingsystem>\n"
22021 "     ...\n"
22022 "     <icon>\n"
22023 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22024 "       [... many lines of base64 data ...]\n"
22025 "     </icon>\n"
22026 "\n"
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../inspector/virt-inspector.pod:302
22031 msgid ""
22032 "To display the icon, you have to extract it and convert the base64 data back "
22033 "to a binary file.  Use an XPath query or simply an editor to extract the "
22034 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22035 "to a PNG file:"
22036 msgstr ""
22037
22038 #. type: verbatim
22039 #: ../inspector/virt-inspector.pod:307
22040 #, no-wrap
22041 msgid ""
22042 " base64 -i -d < icon.data > icon.png\n"
22043 "\n"
22044 msgstr ""
22045
22046 #. type: =head2
22047 #: ../inspector/virt-inspector.pod:309
22048 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../inspector/virt-inspector.pod:311
22053 msgid ""
22054 "Virt-inspector can detect some operating system installers on install disks, "
22055 "live CDs, bootable USB keys and more."
22056 msgstr ""
22057
22058 #. type: textblock
22059 #: ../inspector/virt-inspector.pod:314
22060 msgid ""
22061 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22062 "fields may be present to indicate a live CD, network installer, or one part "
22063 "of a multipart CD.  For example:"
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../inspector/virt-inspector.pod:318
22068 #, no-wrap
22069 msgid ""
22070 " <operatingsystems>\n"
22071 "   <operatingsystem>\n"
22072 "     <root>/dev/sda</root>\n"
22073 "     <name>linux</name>\n"
22074 "     <arch>i386</arch>\n"
22075 "     <distro>ubuntu</distro>\n"
22076 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22077 "     <major_version>10</major_version>\n"
22078 "     <minor_version>10</minor_version>\n"
22079 "     <format>installer</format>\n"
22080 "     <live/>\n"
22081 "\n"
22082 msgstr ""
22083
22084 #. type: =head1
22085 #: ../inspector/virt-inspector.pod:330
22086 msgid "USING XPATH"
22087 msgstr ""
22088
22089 #. type: textblock
22090 #: ../inspector/virt-inspector.pod:332
22091 msgid ""
22092 "You can use the XPath query language to select parts of the XML.  We "
22093 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22094 msgstr ""
22095
22096 #. type: verbatim
22097 #: ../inspector/virt-inspector.pod:338
22098 #, no-wrap
22099 msgid ""
22100 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22101 " <filesystems>\n"
22102 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22103 "        <type>ext4</type>\n"
22104 " [...]\n"
22105 "\n"
22106 msgstr ""
22107
22108 #. type: verbatim
22109 #: ../inspector/virt-inspector.pod:344
22110 #, no-wrap
22111 msgid ""
22112 " $ virt-inspector -d Guest | \\\n"
22113 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22114 " ext4\n"
22115 "\n"
22116 msgstr ""
22117
22118 #. type: verbatim
22119 #: ../inspector/virt-inspector.pod:348
22120 #, no-wrap
22121 msgid ""
22122 " $ virt-inspector -d Guest | \\\n"
22123 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22124 " [displays the guest icon, if there is one]\n"
22125 "\n"
22126 msgstr ""
22127
22128 #. type: =head1
22129 #: ../inspector/virt-inspector.pod:359
22130 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22131 msgstr ""
22132
22133 #. type: textblock
22134 #: ../inspector/virt-inspector.pod:361
22135 msgid ""
22136 "Early versions of libguestfs shipped with a different virt-inspector program "
22137 "written in Perl (the current version is written in C).  The XML output of "
22138 "the Perl virt-inspector was different and it could also output in other "
22139 "formats like text."
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../inspector/virt-inspector.pod:366
22144 msgid ""
22145 "The old virt-inspector is no longer supported or shipped with libguestfs."
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../inspector/virt-inspector.pod:369
22150 msgid ""
22151 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22152 "versions of virt-inspector with different names:"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../inspector/virt-inspector.pod:372
22157 #, no-wrap
22158 msgid ""
22159 " virt-inspector     Old Perl version.\n"
22160 " virt-inspector2    New C version.\n"
22161 "\n"
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../inspector/virt-inspector.pod:382
22166 msgid ""
22167 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22168 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22169 msgstr ""
22170
22171 #. type: textblock
22172 #: ../inspector/virt-inspector.pod:399
22173 msgid "Matthew Booth L<mbooth@redhat.com>"
22174 msgstr ""
22175
22176 #. type: textblock
22177 #: ../java/examples/guestfs-java.pod:5
22178 msgid "guestfs-java - How to use libguestfs from Java"
22179 msgstr ""
22180
22181 #. type: verbatim
22182 #: ../java/examples/guestfs-java.pod:9
22183 #, no-wrap
22184 msgid ""
22185 " import com.redhat.et.libguestfs.*;\n"
22186 " \n"
22187 msgstr ""
22188
22189 #. type: verbatim
22190 #: ../java/examples/guestfs-java.pod:11
22191 #, no-wrap
22192 msgid ""
22193 " GuestFS g = new GuestFS ();\n"
22194 " g.add_drive_opts (\"disk.img\", null);\n"
22195 " g.launch ();\n"
22196 "\n"
22197 msgstr ""
22198
22199 #. type: textblock
22200 #: ../java/examples/guestfs-java.pod:17
22201 msgid ""
22202 "This manual page documents how to call libguestfs from the Java programming "
22203 "language.  This page just documents the differences from the C API and gives "
22204 "some examples.  If you are not familiar with using libguestfs, you also need "
22205 "to read L<guestfs(3)>."
22206 msgstr ""
22207
22208 #. type: =head2
22209 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22210 msgid "CLOSING THE HANDLE"
22211 msgstr ""
22212
22213 #. type: textblock
22214 #: ../java/examples/guestfs-java.pod:24
22215 msgid ""
22216 "The handle is closed when it is reaped by the garbage collector.  Because "
22217 "libguestfs handles include a lot of state, it is also possible to close (and "
22218 "hence free) them explicitly by calling the C<close> method."
22219 msgstr ""
22220
22221 #. type: =head2
22222 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22223 #: ../python/examples/guestfs-python.pod:21
22224 #: ../ruby/examples/guestfs-ruby.pod:22
22225 msgid "EXCEPTIONS"
22226 msgstr ""
22227
22228 #. type: textblock
22229 #: ../java/examples/guestfs-java.pod:31
22230 msgid ""
22231 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22232 "exception.  This has a single parameter which is the error message (a "
22233 "C<String>)."
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../java/examples/guestfs-java.pod:35
22238 msgid "Calling any method on a closed handle raises the same exception."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../java/examples/guestfs-java.pod:47
22243 msgid ""
22244 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22245 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22246 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22247 msgstr ""
22248
22249 #. type: textblock
22250 #: ../ocaml/examples/guestfs-ocaml.pod:5
22251 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22252 msgstr ""
22253
22254 #. type: textblock
22255 #: ../ocaml/examples/guestfs-ocaml.pod:9
22256 msgid "Module style:"
22257 msgstr ""
22258
22259 #. type: verbatim
22260 #: ../ocaml/examples/guestfs-ocaml.pod:11
22261 #, no-wrap
22262 msgid ""
22263 " let g = Guestfs.create () in\n"
22264 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22265 " Guestfs.launch g;\n"
22266 "\n"
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../ocaml/examples/guestfs-ocaml.pod:15
22271 msgid "Object-oriented style:"
22272 msgstr ""
22273
22274 #. type: verbatim
22275 #: ../ocaml/examples/guestfs-ocaml.pod:17
22276 #, no-wrap
22277 msgid ""
22278 " let g = new Guestfs.guestfs () in\n"
22279 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22280 " g#launch ();\n"
22281 "\n"
22282 msgstr ""
22283
22284 #. type: verbatim
22285 #: ../ocaml/examples/guestfs-ocaml.pod:21
22286 #, no-wrap
22287 msgid ""
22288 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22289 "or:\n"
22290 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22291 "\n"
22292 msgstr ""
22293
22294 #. type: textblock
22295 #: ../ocaml/examples/guestfs-ocaml.pod:27
22296 msgid ""
22297 "This manual page documents how to call libguestfs from the OCaml programming "
22298 "language.  This page just documents the differences from the C API and gives "
22299 "some examples.  If you are not familiar with using libguestfs, you also need "
22300 "to read L<guestfs(3)>."
22301 msgstr ""
22302
22303 #. type: =head2
22304 #: ../ocaml/examples/guestfs-ocaml.pod:32
22305 msgid "PROGRAMMING STYLES"
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../ocaml/examples/guestfs-ocaml.pod:34
22310 msgid ""
22311 "There are two different programming styles supported by the OCaml bindings.  "
22312 "You can use a module style, with each C function mapped to an OCaml function:"
22313 msgstr ""
22314
22315 #. type: verbatim
22316 #: ../ocaml/examples/guestfs-ocaml.pod:38
22317 #, no-wrap
22318 msgid ""
22319 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22320 "\n"
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../ocaml/examples/guestfs-ocaml.pod:40
22325 msgid "becomes:"
22326 msgstr ""
22327
22328 #. type: verbatim
22329 #: ../ocaml/examples/guestfs-ocaml.pod:42
22330 #, no-wrap
22331 msgid ""
22332 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22333 "\n"
22334 msgstr ""
22335
22336 #. type: textblock
22337 #: ../ocaml/examples/guestfs-ocaml.pod:44
22338 msgid ""
22339 "Alternately you can use an object-oriented style, calling methods on the "
22340 "class C<Guestfs.guestfs>:"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../ocaml/examples/guestfs-ocaml.pod:47
22345 #, no-wrap
22346 msgid ""
22347 " method set_verbose : bool -> unit\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../ocaml/examples/guestfs-ocaml.pod:49
22353 msgid ""
22354 "The object-oriented style is usually briefer, and the minor performance "
22355 "penalty isn't noticable in the general overhead of performing libguestfs "
22356 "functions."
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../ocaml/examples/guestfs-ocaml.pod:55
22361 msgid ""
22362 "The handle is closed when it is reaped by the garbage collector.  Because "
22363 "libguestfs handles include a lot of state, it is also possible to close (and "
22364 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22365 "method."
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../ocaml/examples/guestfs-ocaml.pod:62
22370 msgid ""
22371 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22372 "exception.  This has a single parameter which is the error message (a "
22373 "string)."
22374 msgstr ""
22375
22376 #. type: textblock
22377 #: ../ocaml/examples/guestfs-ocaml.pod:66
22378 msgid ""
22379 "Calling any function/method on a closed handle raises C<Guestfs."
22380 "Handle_closed>.  The single parameter is the name of the function that you "
22381 "called."
22382 msgstr ""
22383
22384 #. type: textblock
22385 #: ../ocaml/examples/guestfs-ocaml.pod:80
22386 msgid ""
22387 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22388 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22389 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22390 msgstr ""
22391
22392 #. type: textblock
22393 #: ../perl/examples/guestfs-perl.pod:5
22394 msgid "guestfs-perl - How to use libguestfs from Perl"
22395 msgstr ""
22396
22397 #. type: verbatim
22398 #: ../perl/examples/guestfs-perl.pod:9
22399 #, no-wrap
22400 msgid ""
22401 " use Sys::Guestfs;\n"
22402 " \n"
22403 msgstr ""
22404
22405 #. type: verbatim
22406 #: ../perl/examples/guestfs-perl.pod:11
22407 #, no-wrap
22408 msgid ""
22409 " my $h = Sys::Guestfs->new ();\n"
22410 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22411 " $h->launch ();\n"
22412 " $h->mount_options ('', '/dev/sda1', '/');\n"
22413 " $h->touch ('/hello');\n"
22414 " $h->sync ();\n"
22415 "\n"
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../perl/examples/guestfs-perl.pod:20
22420 msgid ""
22421 "This manual page documents how to call libguestfs from the Perl programming "
22422 "language.  This page just documents the differences from the C API and gives "
22423 "some examples.  If you are not familiar with using libguestfs, you also need "
22424 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22425 msgstr ""
22426
22427 #. type: =head2
22428 #: ../perl/examples/guestfs-perl.pod:26
22429 msgid "ERRORS"
22430 msgstr ""
22431
22432 #. type: textblock
22433 #: ../perl/examples/guestfs-perl.pod:28
22434 msgid ""
22435 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22436 ">)."
22437 msgstr ""
22438
22439 #. type: textblock
22440 #: ../perl/examples/guestfs-perl.pod:41
22441 msgid ""
22442 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22443 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22444 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22445 msgstr ""
22446
22447 #. type: textblock
22448 #: ../python/examples/guestfs-python.pod:5
22449 msgid "guestfs-python - How to use libguestfs from Python"
22450 msgstr ""
22451
22452 #. type: verbatim
22453 #: ../python/examples/guestfs-python.pod:9
22454 #, no-wrap
22455 msgid ""
22456 " import guestfs\n"
22457 " g = guestfs.GuestFS ()\n"
22458 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22459 " g.launch\n"
22460 "\n"
22461 msgstr ""
22462
22463 #. type: textblock
22464 #: ../python/examples/guestfs-python.pod:16
22465 msgid ""
22466 "This manual page documents how to call libguestfs from the Python "
22467 "programming language.  This page just documents the differences from the C "
22468 "API and gives some examples.  If you are not familiar with using libguestfs, "
22469 "you also need to read L<guestfs(3)>."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../python/examples/guestfs-python.pod:23
22474 msgid ""
22475 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22476 "single string argument which is the error message."
22477 msgstr ""
22478
22479 #. type: =head2
22480 #: ../python/examples/guestfs-python.pod:26
22481 msgid "MORE DOCUMENTATION"
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../python/examples/guestfs-python.pod:28
22486 msgid "Type:"
22487 msgstr ""
22488
22489 #. type: verbatim
22490 #: ../python/examples/guestfs-python.pod:30
22491 #, no-wrap
22492 msgid ""
22493 " $ python\n"
22494 " >>> import guestfs\n"
22495 " >>> help (guestfs)\n"
22496 "\n"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../python/examples/guestfs-python.pod:44
22501 msgid ""
22502 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22503 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22504 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22505 msgstr ""
22506
22507 #. type: textblock
22508 #: ../rescue/virt-rescue.pod:5
22509 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22510 msgstr ""
22511
22512 #. type: verbatim
22513 #: ../rescue/virt-rescue.pod:9
22514 #, no-wrap
22515 msgid ""
22516 " virt-rescue [--options] -d domname\n"
22517 "\n"
22518 msgstr ""
22519
22520 #. type: verbatim
22521 #: ../rescue/virt-rescue.pod:11
22522 #, no-wrap
22523 msgid ""
22524 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22525 "\n"
22526 msgstr ""
22527
22528 #. type: verbatim
22529 #: ../rescue/virt-rescue.pod:15
22530 #, no-wrap
22531 msgid ""
22532 " virt-rescue [--options] domname\n"
22533 "\n"
22534 msgstr ""
22535
22536 #. type: verbatim
22537 #: ../rescue/virt-rescue.pod:17
22538 #, no-wrap
22539 msgid ""
22540 " virt-rescue [--options] disk.img [disk.img ...]\n"
22541 "\n"
22542 msgstr ""
22543
22544 #. type: textblock
22545 #: ../rescue/virt-rescue.pod:21
22546 msgid ""
22547 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22548 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22549 "you from doing this, but doesn't catch all cases."
22550 msgstr ""
22551
22552 #. type: textblock
22553 #: ../rescue/virt-rescue.pod:25
22554 msgid ""
22555 "However if you use the I<--ro> (read only) option, then you can attach a "
22556 "shell to a live virtual machine.  The results might be strange or "
22557 "inconsistent at times but you won't get disk corruption."
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../rescue/virt-rescue.pod:31
22562 msgid ""
22563 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22564 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22565 "recovery tools which you can use to examine or rescue a virtual machine or "
22566 "disk image."
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../rescue/virt-rescue.pod:36
22571 msgid ""
22572 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22573 "on disk image(s):"
22574 msgstr ""
22575
22576 #. type: verbatim
22577 #: ../rescue/virt-rescue.pod:39
22578 #, no-wrap
22579 msgid ""
22580 " virt-rescue -d GuestName\n"
22581 "\n"
22582 msgstr ""
22583
22584 #. type: verbatim
22585 #: ../rescue/virt-rescue.pod:41
22586 #, no-wrap
22587 msgid ""
22588 " virt-rescue --ro -a /path/to/disk.img\n"
22589 "\n"
22590 msgstr ""
22591
22592 #. type: verbatim
22593 #: ../rescue/virt-rescue.pod:43
22594 #, no-wrap
22595 msgid ""
22596 " virt-rescue -a /dev/sdc\n"
22597 "\n"
22598 msgstr ""
22599
22600 #. type: textblock
22601 #: ../rescue/virt-rescue.pod:45
22602 msgid "For live VMs you I<must> use the --ro option."
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../rescue/virt-rescue.pod:47
22607 msgid ""
22608 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22609 "in an interactive bash shell where you can use many ordinary Linux "
22610 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22611 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22612 "is an empty directory called C</sysroot> where you can mount filesystems."
22613 msgstr ""
22614
22615 #. type: textblock
22616 #: ../rescue/virt-rescue.pod:54
22617 msgid ""
22618 "In the example below, we list logical volumes, then choose one to mount "
22619 "under C</sysroot>:"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../rescue/virt-rescue.pod:57
22624 #, no-wrap
22625 msgid ""
22626 " ><rescue> lvs\n"
22627 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22628 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22629 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22630 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22631 " ><rescue> ls /sysroot\n"
22632 "\n"
22633 msgstr ""
22634
22635 #. type: textblock
22636 #: ../rescue/virt-rescue.pod:64
22637 msgid ""
22638 "If you don't know what filesystems are available on the virtual machine then "
22639 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22640 msgstr ""
22641
22642 #. type: textblock
22643 #: ../rescue/virt-rescue.pod:70
22644 msgid ""
22645 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22646 "virtual machine.  For example you can use it on a blank file if you want to "
22647 "partition that file (although we would recommend using L<guestfish(1)> "
22648 "instead as it is more suitable for this purpose).  You can even use virt-"
22649 "rescue on things like SD cards."
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../rescue/virt-rescue.pod:76
22654 msgid ""
22655 "Virt-rescue does not require root.  You only need to run it as root if you "
22656 "need root to open the disk image."
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../rescue/virt-rescue.pod:79
22661 msgid ""
22662 "This tool is just designed for quick interactive hacking on a virtual "
22663 "machine.  For more structured access to a virtual machine disk image, you "
22664 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22665 "make scripted changes to guests, use L<guestfish(1)>."
22666 msgstr ""
22667
22668 #. type: =item
22669 #: ../rescue/virt-rescue.pod:103
22670 msgid "B<--append kernelopts>"
22671 msgstr ""
22672
22673 #. type: textblock
22674 #: ../rescue/virt-rescue.pod:105
22675 msgid "Pass additional options to the rescue kernel."
22676 msgstr ""
22677
22678 #. type: verbatim
22679 #: ../rescue/virt-rescue.pod:135
22680 #, no-wrap
22681 msgid ""
22682 " virt-rescue --format=raw -a disk.img\n"
22683 "\n"
22684 msgstr ""
22685
22686 #. type: verbatim
22687 #: ../rescue/virt-rescue.pod:139
22688 #, no-wrap
22689 msgid ""
22690 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22691 "\n"
22692 msgstr ""
22693
22694 #. type: =item
22695 #: ../rescue/virt-rescue.pod:148
22696 msgid "B<-m MB>"
22697 msgstr ""
22698
22699 #. type: =item
22700 #: ../rescue/virt-rescue.pod:150
22701 msgid "B<--memsize MB>"
22702 msgstr ""
22703
22704 #. type: textblock
22705 #: ../rescue/virt-rescue.pod:152
22706 msgid ""
22707 "Change the amount of memory allocated to the rescue system.  The default is "
22708 "set by libguestfs and is small but adequate for running system tools.  The "
22709 "occasional program might need more memory.  The parameter is specified in "
22710 "megabytes."
22711 msgstr ""
22712
22713 #. type: =item
22714 #: ../rescue/virt-rescue.pod:157
22715 msgid "B<--network>"
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../rescue/virt-rescue.pod:159
22720 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22721 msgstr ""
22722
22723 #. type: textblock
22724 #: ../rescue/virt-rescue.pod:165
22725 msgid "Open the image read-only."
22726 msgstr ""
22727
22728 #. type: textblock
22729 #: ../rescue/virt-rescue.pod:175
22730 msgid ""
22731 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22732 "SELINUX> before using this option."
22733 msgstr ""
22734
22735 #. type: =item
22736 #: ../rescue/virt-rescue.pod:178
22737 msgid "B<--smp> N"
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../rescue/virt-rescue.pod:180
22742 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22743 msgstr ""
22744
22745 #. type: textblock
22746 #: ../rescue/virt-rescue.pod:198
22747 msgid ""
22748 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22749 "are done read-write."
22750 msgstr ""
22751
22752 #. type: textblock
22753 #: ../rescue/virt-rescue.pod:211
22754 msgid "Previous versions of virt-rescue allowed you to write either:"
22755 msgstr ""
22756
22757 #. type: verbatim
22758 #: ../rescue/virt-rescue.pod:213
22759 #, no-wrap
22760 msgid ""
22761 " virt-rescue disk.img [disk.img ...]\n"
22762 "\n"
22763 msgstr ""
22764
22765 #. type: verbatim
22766 #: ../rescue/virt-rescue.pod:217
22767 #, no-wrap
22768 msgid ""
22769 " virt-rescue guestname\n"
22770 "\n"
22771 msgstr ""
22772
22773 #. type: =head1
22774 #: ../rescue/virt-rescue.pod:225
22775 msgid "NETWORK"
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../rescue/virt-rescue.pod:227
22780 msgid ""
22781 "Adding the I<--network> option enables QEMU user networking in the rescue "
22782 "appliance.  There are some differences between user networking and ordinary "
22783 "networking:"
22784 msgstr ""
22785
22786 #. type: =item
22787 #: ../rescue/virt-rescue.pod:233
22788 msgid "ping does not work"
22789 msgstr ""
22790
22791 #. type: textblock
22792 #: ../rescue/virt-rescue.pod:235
22793 msgid ""
22794 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22795 "send the ping packets, and because virt-rescue must be able to run as non-"
22796 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22797 "The ping command will appear to resolve addresses but will not be able to "
22798 "send or receive any packets.  This does not mean that the network is not "
22799 "working."
22800 msgstr ""
22801
22802 #. type: =item
22803 #: ../rescue/virt-rescue.pod:242
22804 msgid "cannot receive connections"
22805 msgstr ""
22806
22807 #. type: textblock
22808 #: ../rescue/virt-rescue.pod:244
22809 msgid "QEMU user networking cannot receive incoming connections."
22810 msgstr ""
22811
22812 #. type: =item
22813 #: ../rescue/virt-rescue.pod:246
22814 msgid "making TCP connections"
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../rescue/virt-rescue.pod:248
22819 msgid ""
22820 "The virt-rescue appliance needs to be small and so does not include many "
22821 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22822 "make TCP connections from the shell using the magical C</dev/tcp/"
22823 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22824 msgstr ""
22825
22826 #. type: verbatim
22827 #: ../rescue/virt-rescue.pod:253
22828 #, no-wrap
22829 msgid ""
22830 " exec 3<>/dev/tcp/redhat.com/80\n"
22831 " echo \"GET /\" >&3\n"
22832 " cat <&3\n"
22833 "\n"
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../rescue/virt-rescue.pod:257
22838 msgid "See L<bash(1)> for more details."
22839 msgstr ""
22840
22841 #. type: textblock
22842 #: ../rescue/virt-rescue.pod:263
22843 msgid ""
22844 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22845 "ENVIRONMENT VARIABLES> for the complete list."
22846 msgstr ""
22847
22848 #. type: textblock
22849 #: ../rescue/virt-rescue.pod:290
22850 msgid ""
22851 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22852 "libguestfs.org/>."
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../resize/virt-resize.pod:5
22857 msgid "virt-resize - Resize a virtual machine disk"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../resize/virt-resize.pod:9
22862 #, no-wrap
22863 msgid ""
22864 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22865 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22866 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22867 "\n"
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../resize/virt-resize.pod:15
22872 msgid ""
22873 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22874 "larger or smaller overall, and resizing or deleting any partitions contained "
22875 "within."
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../resize/virt-resize.pod:19
22880 msgid ""
22881 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22882 "not> be used on live virtual machines - for consistent results, shut the "
22883 "virtual machine down before resizing it."
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../resize/virt-resize.pod:23
22888 msgid ""
22889 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22890 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22891 msgstr ""
22892
22893 #. type: =item
22894 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
22895 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
22896 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22897 msgid "1."
22898 msgstr ""
22899
22900 #. type: textblock
22901 #: ../resize/virt-resize.pod:33
22902 msgid ""
22903 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22904 "fill the extra 5GB of space."
22905 msgstr ""
22906
22907 #. type: verbatim
22908 #: ../resize/virt-resize.pod:36
22909 #, no-wrap
22910 msgid ""
22911 " virt-filesystems --long -h --all -a olddisk\n"
22912 " \n"
22913 msgstr ""
22914
22915 #. type: verbatim
22916 #: ../resize/virt-resize.pod:38
22917 #, no-wrap
22918 msgid ""
22919 " truncate -r olddisk newdisk\n"
22920 " truncate -s +5G newdisk\n"
22921 " \n"
22922 msgstr ""
22923
22924 #. type: verbatim
22925 #: ../resize/virt-resize.pod:41
22926 #, no-wrap
22927 msgid ""
22928 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22929 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22930 "\n"
22931 msgstr ""
22932
22933 #. type: =item
22934 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
22935 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
22936 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
22937 msgid "2."
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../resize/virt-resize.pod:46
22942 msgid ""
22943 "As above, but make the /boot partition 200MB bigger, while giving the "
22944 "remaining space to /dev/sda2:"
22945 msgstr ""
22946
22947 #. type: verbatim
22948 #: ../resize/virt-resize.pod:49
22949 #, no-wrap
22950 msgid ""
22951 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22952 "   olddisk newdisk\n"
22953 "\n"
22954 msgstr ""
22955
22956 #. type: =item
22957 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
22958 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
22959 #: ../src/guestfs.pod:1451
22960 msgid "3."
22961 msgstr ""
22962
22963 #. type: textblock
22964 #: ../resize/virt-resize.pod:54
22965 msgid ""
22966 "As in the first example, but expand a logical volume as the final step.  "
22967 "This is what you would typically use for Linux guests that use LVM:"
22968 msgstr ""
22969
22970 #. type: verbatim
22971 #: ../resize/virt-resize.pod:58
22972 #, no-wrap
22973 msgid ""
22974 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22975 "   olddisk newdisk\n"
22976 "\n"
22977 msgstr ""
22978
22979 #. type: =item
22980 #: ../resize/virt-resize.pod:61
22981 msgid "4."
22982 msgstr ""
22983
22984 #. type: textblock
22985 #: ../resize/virt-resize.pod:63
22986 msgid ""
22987 "As in the first example, but the output format will be qcow2 instead of a "
22988 "raw disk:"
22989 msgstr ""
22990
22991 #. type: verbatim
22992 #: ../resize/virt-resize.pod:66
22993 #, no-wrap
22994 msgid ""
22995 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22996 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: =head1
23001 #: ../resize/virt-resize.pod:71
23002 msgid "DETAILED USAGE"
23003 msgstr ""
23004
23005 #. type: =head2
23006 #: ../resize/virt-resize.pod:73
23007 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23008 msgstr ""
23009
23010 #. type: =item
23011 #: ../resize/virt-resize.pod:77
23012 msgid "1. Shut down the virtual machine"
23013 msgstr ""
23014
23015 #. type: =item
23016 #: ../resize/virt-resize.pod:79
23017 msgid "2. Locate input disk image"
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../resize/virt-resize.pod:81
23022 msgid ""
23023 "Locate the input disk image (ie. the file or device on the host containing "
23024 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23025 "dumpxml> like this to find the disk image name:"
23026 msgstr ""
23027
23028 #. type: verbatim
23029 #: ../resize/virt-resize.pod:85
23030 #, no-wrap
23031 msgid ""
23032 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23033 " Found 1 nodes:\n"
23034 " -- NODE --\n"
23035 " <source dev=\"/dev/vg/lv_guest\" />\n"
23036 "\n"
23037 msgstr ""
23038
23039 #. type: =item
23040 #: ../resize/virt-resize.pod:90
23041 msgid "3. Look at current sizing"
23042 msgstr ""
23043
23044 #. type: textblock
23045 #: ../resize/virt-resize.pod:92
23046 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23047 msgstr ""
23048
23049 #. type: verbatim
23050 #: ../resize/virt-resize.pod:95
23051 #, no-wrap
23052 msgid ""
23053 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23054 " Name       Type       Size  Parent\n"
23055 " /dev/sda1  partition  101M  /dev/sda\n"
23056 " /dev/sda2  partition  7.9G  /dev/sda\n"
23057 " /dev/sda   device     8.0G  -\n"
23058 "\n"
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../resize/virt-resize.pod:101
23063 msgid ""
23064 "(This example is a virtual machine with an 8 GB disk which we would like to "
23065 "expand up to 10 GB)."
23066 msgstr ""
23067
23068 #. type: =item
23069 #: ../resize/virt-resize.pod:104
23070 msgid "4. Create output disk"
23071 msgstr ""
23072
23073 #. type: textblock
23074 #: ../resize/virt-resize.pod:106
23075 msgid ""
23076 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23077 "to store the resized output disk."
23078 msgstr ""
23079
23080 #. type: textblock
23081 #: ../resize/virt-resize.pod:109
23082 msgid ""
23083 "To store the resized disk image in a file, create a file of a suitable size:"
23084 msgstr ""
23085
23086 #. type: verbatim
23087 #: ../resize/virt-resize.pod:112
23088 #, no-wrap
23089 msgid ""
23090 " # rm -f outdisk\n"
23091 " # truncate -s 10G outdisk\n"
23092 "\n"
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../resize/virt-resize.pod:115
23097 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23098 msgstr ""
23099
23100 #. type: verbatim
23101 #: ../resize/virt-resize.pod:117
23102 #, no-wrap
23103 msgid ""
23104 " # lvcreate -L 10G -n lv_name vg_name\n"
23105 "\n"
23106 msgstr ""
23107
23108 #. type: textblock
23109 #: ../resize/virt-resize.pod:119
23110 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../resize/virt-resize.pod:121
23115 #, no-wrap
23116 msgid ""
23117 " # virsh pool-list\n"
23118 " # virsh vol-create-as poolname newvol 10G\n"
23119 "\n"
23120 msgstr ""
23121
23122 #. type: =item
23123 #: ../resize/virt-resize.pod:124
23124 msgid "5. Resize"
23125 msgstr ""
23126
23127 #. type: textblock
23128 #: ../resize/virt-resize.pod:126
23129 msgid ""
23130 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23131 "file) and the output disk.  The output disk is the one created in the "
23132 "previous step."
23133 msgstr ""
23134
23135 #. type: verbatim
23136 #: ../resize/virt-resize.pod:130
23137 #, no-wrap
23138 msgid ""
23139 " # virt-resize indisk outdisk\n"
23140 "\n"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../resize/virt-resize.pod:132
23145 msgid ""
23146 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23147 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23148 "larger, then an extra, empty partition is created at the end of the disk "
23149 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23150 "error."
23151 msgstr ""
23152
23153 #. type: textblock
23154 #: ../resize/virt-resize.pod:138
23155 msgid ""
23156 "More realistically you'd want to expand existing partitions in the disk "
23157 "image by passing extra options (for the full list see the L</OPTIONS> "
23158 "section below)."
23159 msgstr ""
23160
23161 #. type: textblock
23162 #: ../resize/virt-resize.pod:142
23163 msgid ""
23164 "L</--expand> is the most useful option.  It expands the named partition "
23165 "within the disk to fill any extra space:"
23166 msgstr ""
23167
23168 #. type: verbatim
23169 #: ../resize/virt-resize.pod:145
23170 #, no-wrap
23171 msgid ""
23172 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23173 "\n"
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../resize/virt-resize.pod:147
23178 msgid ""
23179 "(In this case, an extra partition is I<not> created at the end of the disk, "
23180 "because there will be no unused space)."
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../resize/virt-resize.pod:150
23185 msgid ""
23186 "L</--resize> is the other commonly used option.  The following would "
23187 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23188 "rest of the available space:"
23189 msgstr ""
23190
23191 #. type: verbatim
23192 #: ../resize/virt-resize.pod:154
23193 #, no-wrap
23194 msgid ""
23195 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23196 "     indisk outdisk\n"
23197 "\n"
23198 msgstr ""
23199
23200 #. type: textblock
23201 #: ../resize/virt-resize.pod:157
23202 msgid ""
23203 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23204 "if virt-resize knows how, it will resize the contents, the equivalent of "
23205 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23206 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23207 "filesystems, so you would have to online resize them after booting the guest."
23208 msgstr ""
23209
23210 #. type: textblock
23211 #: ../resize/virt-resize.pod:164
23212 msgid "Other options are covered below."
23213 msgstr ""
23214
23215 #. type: =item
23216 #: ../resize/virt-resize.pod:166
23217 msgid "6. Test"
23218 msgstr ""
23219
23220 #. type: textblock
23221 #: ../resize/virt-resize.pod:168
23222 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:170
23227 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23228 msgstr ""
23229
23230 #. type: verbatim
23231 #: ../resize/virt-resize.pod:172
23232 #, no-wrap
23233 msgid ""
23234 " # virsh edit guestname\n"
23235 "\n"
23236 msgstr ""
23237
23238 #. type: textblock
23239 #: ../resize/virt-resize.pod:174
23240 msgid ""
23241 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23242 "html#elementsDisks>"
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../resize/virt-resize.pod:177
23247 msgid "Then start up the domain with the new, resized disk:"
23248 msgstr ""
23249
23250 #. type: verbatim
23251 #: ../resize/virt-resize.pod:179
23252 #, no-wrap
23253 msgid ""
23254 " # virsh start guestname\n"
23255 "\n"
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../resize/virt-resize.pod:181
23260 msgid ""
23261 "and check that it still works.  See also the L</NOTES> section below for "
23262 "additional information."
23263 msgstr ""
23264
23265 #. type: =item
23266 #: ../resize/virt-resize.pod:184
23267 msgid "7. Resize LVs etc inside the guest"
23268 msgstr ""
23269
23270 #. type: textblock
23271 #: ../resize/virt-resize.pod:186
23272 msgid "(This can also be done offline using L<guestfish(1)>)"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../resize/virt-resize.pod:188
23277 msgid ""
23278 "Once the guest has booted you should see the new space available, at least "
23279 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23280 "may need to resize LVs inside PVs, and also resize filesystem types that "
23281 "virt-resize does not know how to expand."
23282 msgstr ""
23283
23284 #. type: =head2
23285 #: ../resize/virt-resize.pod:195
23286 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23287 msgstr ""
23288
23289 #. type: textblock
23290 #: ../resize/virt-resize.pod:197
23291 msgid ""
23292 "Shrinking is somewhat more complex than expanding, and only an overview is "
23293 "given here."
23294 msgstr ""
23295
23296 #. type: textblock
23297 #: ../resize/virt-resize.pod:200
23298 msgid ""
23299 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23300 "filesystems).  The user has to shrink content before passing the disk image "
23301 "to virt-resize, and virt-resize will check that the content has been shrunk "
23302 "properly."
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../resize/virt-resize.pod:205
23307 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23308 msgstr ""
23309
23310 #. type: textblock
23311 #: ../resize/virt-resize.pod:207
23312 msgid ""
23313 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23314 "steps 3 and 4 above to allocate a new disk image."
23315 msgstr ""
23316
23317 #. type: textblock
23318 #: ../resize/virt-resize.pod:210
23319 msgid ""
23320 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23321 msgstr ""
23322
23323 #. type: =head2
23324 #: ../resize/virt-resize.pod:213
23325 msgid "IGNORING OR DELETING PARTITIONS"
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../resize/virt-resize.pod:215
23330 msgid ""
23331 "virt-resize also gives a convenient way to ignore or delete partitions when "
23332 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23333 "up the copy where you don't care about the existing contents of a "
23334 "partition.  Deleting a partition removes it completely, but note that it "
23335 "also renumbers any partitions after the one which is deleted, which can "
23336 "leave some guests unbootable."
23337 msgstr ""
23338
23339 #. type: =head2
23340 #: ../resize/virt-resize.pod:222
23341 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23342 msgstr ""
23343
23344 #. type: textblock
23345 #: ../resize/virt-resize.pod:224
23346 msgid ""
23347 "If the input disk is in qcow2 format, then you may prefer that the output is "
23348 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23349 "the fly.  The output format is simply determined by the format of the empty "
23350 "output container that you provide.  Thus to create qcow2 output, use:"
23351 msgstr ""
23352
23353 #. type: verbatim
23354 #: ../resize/virt-resize.pod:230
23355 #, no-wrap
23356 msgid ""
23357 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23358 "\n"
23359 msgstr ""
23360
23361 #. type: textblock
23362 #: ../resize/virt-resize.pod:232
23363 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23364 msgstr ""
23365
23366 #. type: textblock
23367 #: ../resize/virt-resize.pod:234
23368 msgid "Similarly, to get non-sparse raw output use:"
23369 msgstr ""
23370
23371 #. type: verbatim
23372 #: ../resize/virt-resize.pod:236
23373 #, no-wrap
23374 msgid ""
23375 " fallocate -l size outdisk\n"
23376 "\n"
23377 msgstr ""
23378
23379 #. type: textblock
23380 #: ../resize/virt-resize.pod:238
23381 msgid ""
23382 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23383 "dev/zero of=outdisk bs=1M count=..>)"
23384 msgstr ""
23385
23386 #. type: =head2
23387 #: ../resize/virt-resize.pod:241
23388 msgid "LOGICAL PARTITIONS"
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../resize/virt-resize.pod:243
23393 msgid ""
23394 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23395 "tables) cannot be resized."
23396 msgstr ""
23397
23398 #. type: textblock
23399 #: ../resize/virt-resize.pod:246
23400 msgid ""
23401 "To understand what is going on, firstly one of the four partitions C</dev/"
23402 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23403 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23404 "type."
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../resize/virt-resize.pod:251
23409 msgid "Logical partitions live inside the extended partition."
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../resize/virt-resize.pod:253
23414 msgid ""
23415 "The extended partition can be expanded, but not shrunk (unless you force it, "
23416 "which is not advisable).  When the extended partition is copied across, all "
23417 "the logical partitions contained inside are copied over implicitly.  Virt-"
23418 "resize does not look inside the extended partition, so it copies the logical "
23419 "partitions blindly."
23420 msgstr ""
23421
23422 #. type: textblock
23423 #: ../resize/virt-resize.pod:259
23424 msgid ""
23425 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23426 "line.  Doing so will give an error."
23427 msgstr ""
23428
23429 #. type: textblock
23430 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23431 msgid "Display help."
23432 msgstr ""
23433
23434 #. type: =item
23435 #: ../resize/virt-resize.pod:270
23436 msgid "B<--align-first auto>"
23437 msgstr ""
23438
23439 #. type: =item
23440 #: ../resize/virt-resize.pod:272
23441 msgid "B<--align-first never>"
23442 msgstr ""
23443
23444 #. type: =item
23445 #: ../resize/virt-resize.pod:274
23446 msgid "B<--align-first always>"
23447 msgstr ""
23448
23449 #. type: textblock
23450 #: ../resize/virt-resize.pod:276
23451 msgid ""
23452 "Align the first partition for improved performance (see also the I<--"
23453 "alignment> option)."
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../resize/virt-resize.pod:279
23458 msgid ""
23459 "The default is I<--align-first auto> which only aligns the first partition "
23460 "if it is safe to do so.  That is, only when we know how to fix the "
23461 "bootloader automatically, and at the moment that can only be done for "
23462 "Windows guests."
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../resize/virt-resize.pod:284
23467 msgid ""
23468 "I<--align-first never> means we never move the first partition.  This is the "
23469 "safest option.  Try this if the guest does not boot after resizing."
23470 msgstr ""
23471
23472 #. type: textblock
23473 #: ../resize/virt-resize.pod:288
23474 msgid ""
23475 "I<--align-first always> means we always align the first partition (if it "
23476 "needs to be aligned).  For some guests this will break the bootloader, "
23477 "making the guest unbootable."
23478 msgstr ""
23479
23480 #. type: =item
23481 #: ../resize/virt-resize.pod:292
23482 msgid "B<--alignment N>"
23483 msgstr ""
23484
23485 #. type: textblock
23486 #: ../resize/virt-resize.pod:294
23487 msgid ""
23488 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23489 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../resize/virt-resize.pod:298
23494 msgid ""
23495 "Assuming 512 byte sector size inside the guest, here are some suitable "
23496 "values for this:"
23497 msgstr ""
23498
23499 #. type: =item
23500 #: ../resize/virt-resize.pod:303
23501 msgid "I<--alignment 1> (512 bytes)"
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../resize/virt-resize.pod:305
23506 msgid ""
23507 "The partitions would be packed together as closely as possible, but would be "
23508 "completely unaligned.  In some cases this can cause very poor performance.  "
23509 "See L<virt-alignment-scan(1)> for further details."
23510 msgstr ""
23511
23512 #. type: =item
23513 #: ../resize/virt-resize.pod:309
23514 msgid "I<--alignment 8> (4K)"
23515 msgstr ""
23516
23517 #. type: textblock
23518 #: ../resize/virt-resize.pod:311
23519 msgid ""
23520 "This would be the minimum acceptable alignment for reasonable performance on "
23521 "modern hosts."
23522 msgstr ""
23523
23524 #. type: =item
23525 #: ../resize/virt-resize.pod:314
23526 msgid "I<--alignment 128> (64K)"
23527 msgstr ""
23528
23529 #. type: textblock
23530 #: ../resize/virt-resize.pod:316
23531 msgid ""
23532 "This alignment provides good performance when the host is using high end "
23533 "network storage."
23534 msgstr ""
23535
23536 #. type: =item
23537 #: ../resize/virt-resize.pod:319
23538 msgid "I<--alignment 2048> (1M)"
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../resize/virt-resize.pod:321
23543 msgid ""
23544 "This is the standard alignment used by all newly installed guests since "
23545 "around 2008."
23546 msgstr ""
23547
23548 #. type: =item
23549 #: ../resize/virt-resize.pod:326
23550 msgid "B<-d>"
23551 msgstr ""
23552
23553 #. type: =item
23554 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
23555 #: ../tools/virt-win-reg.pl:120
23556 msgid "B<--debug>"
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23561 msgid "Enable debugging messages."
23562 msgstr ""
23563
23564 #. type: =item
23565 #: ../resize/virt-resize.pod:332
23566 msgid "B<--delete part>"
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../resize/virt-resize.pod:334
23571 msgid ""
23572 "Delete the named partition.  It would be more accurate to describe this as "
23573 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23574 "the original disk image is left intact."
23575 msgstr ""
23576
23577 #. type: textblock
23578 #: ../resize/virt-resize.pod:338
23579 msgid ""
23580 "Note that when you delete a partition, then anything contained in the "
23581 "partition is also deleted.  Furthermore, this causes any partitions that "
23582 "come after to be I<renumbered>, which can easily make your guest unbootable."
23583 msgstr ""
23584
23585 #. type: textblock
23586 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
23587 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23588 msgid "You can give this option multiple times."
23589 msgstr ""
23590
23591 #. type: =item
23592 #: ../resize/virt-resize.pod:345
23593 msgid "B<--expand part>"
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../resize/virt-resize.pod:347
23598 msgid ""
23599 "Expand the named partition so it uses up all extra space (space left over "
23600 "after any other resize changes that you request have been done)."
23601 msgstr ""
23602
23603 #. type: textblock
23604 #: ../resize/virt-resize.pod:350
23605 msgid ""
23606 "If virt-resize knows how, it will expand the direct content of the "
23607 "partition.  For example, if the partition is an LVM PV, it will expand the "
23608 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23609 "content it doesn't know about alone."
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../resize/virt-resize.pod:355
23614 msgid "Currently virt-resize can resize:"
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../resize/virt-resize.pod:361
23619 msgid "ext2, ext3 and ext4 filesystems."
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../resize/virt-resize.pod:365
23624 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../resize/virt-resize.pod:367
23629 msgid ""
23630 "The filesystem must have been shut down consistently last time it was used.  "
23631 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23632 "consistency check, so at the first boot after resizing Windows will check "
23633 "the disk."
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../resize/virt-resize.pod:374
23638 msgid ""
23639 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23640 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23641 "resize LVs as desired after boot."
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../resize/virt-resize.pod:380
23646 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23651 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23652 msgstr ""
23653
23654 #. type: =item
23655 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
23656 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23657 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23658 msgid "B<--format> raw"
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23663 msgid ""
23664 "Specify the format of the input disk image.  If this flag is not given then "
23665 "it is auto-detected from the image itself."
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../resize/virt-resize.pod:394
23670 msgid ""
23671 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23672 "AND NON-SPARSE RAW FORMATS>."
23673 msgstr ""
23674
23675 #. type: =item
23676 #: ../resize/virt-resize.pod:397
23677 msgid "B<--ignore part>"
23678 msgstr ""
23679
23680 #. type: textblock
23681 #: ../resize/virt-resize.pod:399
23682 msgid ""
23683 "Ignore the named partition.  Effectively this means the partition is "
23684 "allocated on the destination disk, but the content is not copied across from "
23685 "the source disk.  The content of the partition will be blank (all zero "
23686 "bytes)."
23687 msgstr ""
23688
23689 #. type: =item
23690 #: ../resize/virt-resize.pod:406
23691 msgid "B<--LV-expand logvol>"
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../resize/virt-resize.pod:408
23696 msgid ""
23697 "This takes the logical volume and, as a final step, expands it to fill all "
23698 "the space available in its volume group.  A typical usage, assuming a Linux "
23699 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23700 "lv_root> would be:"
23701 msgstr ""
23702
23703 #. type: verbatim
23704 #: ../resize/virt-resize.pod:413
23705 #, no-wrap
23706 msgid ""
23707 " virt-resize indisk outdisk \\\n"
23708 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23709 "\n"
23710 msgstr ""
23711
23712 #. type: textblock
23713 #: ../resize/virt-resize.pod:416
23714 msgid ""
23715 "This would first expand the partition (and PV), and then expand the root "
23716 "device to fill the extra space in the PV."
23717 msgstr ""
23718
23719 #. type: textblock
23720 #: ../resize/virt-resize.pod:419
23721 msgid ""
23722 "The contents of the LV are also resized if virt-resize knows how to do "
23723 "that.  You can stop virt-resize from trying to expand the content by using "
23724 "the option I<--no-expand-content>."
23725 msgstr ""
23726
23727 #. type: textblock
23728 #: ../resize/virt-resize.pod:423
23729 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../resize/virt-resize.pod:425
23734 msgid ""
23735 "You can give this option multiple times, I<but> it doesn't make sense to do "
23736 "this unless the logical volumes you specify are all in different volume "
23737 "groups."
23738 msgstr ""
23739
23740 #. type: =item
23741 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23742 msgid "B<--machine-readable>"
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23747 msgid ""
23748 "This option is used to make the output more machine friendly when being "
23749 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23750 msgstr ""
23751
23752 #. type: =item
23753 #: ../resize/virt-resize.pod:437
23754 msgid "B<--dryrun>"
23755 msgstr ""
23756
23757 #. type: textblock
23758 #: ../resize/virt-resize.pod:439
23759 msgid "Print a summary of what would be done, but don't do anything."
23760 msgstr ""
23761
23762 #. type: =item
23763 #: ../resize/virt-resize.pod:441
23764 msgid "B<--no-copy-boot-loader>"
23765 msgstr ""
23766
23767 #. type: textblock
23768 #: ../resize/virt-resize.pod:443
23769 msgid ""
23770 "By default, virt-resize copies over some sectors at the start of the disk "
23771 "(up to the beginning of the first partition).  Commonly these sectors "
23772 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23773 "in order for the guest to boot correctly."
23774 msgstr ""
23775
23776 #. type: textblock
23777 #: ../resize/virt-resize.pod:448
23778 msgid ""
23779 "If you specify this flag, then this initial copy is not done.  You may need "
23780 "to reinstall the boot loader in this case."
23781 msgstr ""
23782
23783 #. type: =item
23784 #: ../resize/virt-resize.pod:451
23785 msgid "B<--no-extra-partition>"
23786 msgstr ""
23787
23788 #. type: textblock
23789 #: ../resize/virt-resize.pod:453
23790 msgid ""
23791 "By default, virt-resize creates an extra partition if there is any extra, "
23792 "unused space after all resizing has happened.  Use this option to prevent "
23793 "the extra partition from being created.  If you do this then the extra space "
23794 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23795 "tool in the guest."
23796 msgstr ""
23797
23798 #. type: textblock
23799 #: ../resize/virt-resize.pod:459
23800 msgid ""
23801 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23802 "will be created."
23803 msgstr ""
23804
23805 #. type: =item
23806 #: ../resize/virt-resize.pod:462
23807 msgid "B<--no-expand-content>"
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../resize/virt-resize.pod:464
23812 msgid ""
23813 "By default, virt-resize will try to expand the direct contents of "
23814 "partitions, if it knows how (see I<--expand> option above)."
23815 msgstr ""
23816
23817 #. type: textblock
23818 #: ../resize/virt-resize.pod:467
23819 msgid ""
23820 "If you give the I<--no-expand-content> option then virt-resize will not "
23821 "attempt this."
23822 msgstr ""
23823
23824 #. type: =item
23825 #: ../resize/virt-resize.pod:470
23826 msgid "B<--ntfsresize-force>"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../resize/virt-resize.pod:472
23831 msgid ""
23832 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23833 "the NTFS disk is marked as needing a consistency check.  You have to use "
23834 "this option if you want to resize a Windows guest multiple times without "
23835 "booting into Windows between each resize."
23836 msgstr ""
23837
23838 #. type: =item
23839 #: ../resize/virt-resize.pod:478
23840 msgid "B<--output-format> raw"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../resize/virt-resize.pod:480
23845 msgid ""
23846 "Specify the format of the output disk image.  If this flag is not given then "
23847 "it is auto-detected from the image itself."
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../resize/virt-resize.pod:486
23852 msgid ""
23853 "Note that this option I<does not create> the output format.  This option "
23854 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23855 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23856 "SPARSE RAW FORMATS>."
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:495
23861 msgid "Don't print the summary."
23862 msgstr ""
23863
23864 #. type: =item
23865 #: ../resize/virt-resize.pod:497
23866 msgid "B<--resize part=size>"
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../resize/virt-resize.pod:499
23871 msgid ""
23872 "Resize the named partition (expanding or shrinking it) so that it has the "
23873 "given size."
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:502
23878 msgid ""
23879 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23880 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23881 "size; or as a relative number or percentage.  For example:"
23882 msgstr ""
23883
23884 #. type: verbatim
23885 #: ../resize/virt-resize.pod:508
23886 #, no-wrap
23887 msgid ""
23888 " --resize /dev/sda2=10G\n"
23889 "\n"
23890 msgstr ""
23891
23892 #. type: verbatim
23893 #: ../resize/virt-resize.pod:510
23894 #, no-wrap
23895 msgid ""
23896 " --resize /dev/sda4=90%\n"
23897 "\n"
23898 msgstr ""
23899
23900 #. type: verbatim
23901 #: ../resize/virt-resize.pod:512
23902 #, no-wrap
23903 msgid ""
23904 " --resize /dev/sda2=+1G\n"
23905 "\n"
23906 msgstr ""
23907
23908 #. type: verbatim
23909 #: ../resize/virt-resize.pod:514
23910 #, no-wrap
23911 msgid ""
23912 " --resize /dev/sda2=-200M\n"
23913 "\n"
23914 msgstr ""
23915
23916 #. type: verbatim
23917 #: ../resize/virt-resize.pod:516
23918 #, no-wrap
23919 msgid ""
23920 " --resize /dev/sda1=+128K\n"
23921 "\n"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../resize/virt-resize.pod:518
23926 #, no-wrap
23927 msgid ""
23928 " --resize /dev/sda1=+10%\n"
23929 "\n"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../resize/virt-resize.pod:520
23934 #, no-wrap
23935 msgid ""
23936 " --resize /dev/sda1=-10%\n"
23937 "\n"
23938 msgstr ""
23939
23940 #. type: textblock
23941 #: ../resize/virt-resize.pod:522
23942 msgid ""
23943 "You can increase the size of any partition.  Virt-resize will expand the "
23944 "direct content of the partition if it knows how (see I<--expand> below)."
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../resize/virt-resize.pod:526
23949 msgid ""
23950 "You can only I<decrease> the size of partitions that contain filesystems or "
23951 "PVs which have already been shrunk.  Virt-resize will check this has been "
23952 "done before proceeding, or else will print an error (see also I<--resize-"
23953 "force>)."
23954 msgstr ""
23955
23956 #. type: =item
23957 #: ../resize/virt-resize.pod:533
23958 msgid "B<--resize-force part=size>"
23959 msgstr ""
23960
23961 #. type: textblock
23962 #: ../resize/virt-resize.pod:535
23963 msgid ""
23964 "This is the same as I<--resize> except that it will let you decrease the "
23965 "size of any partition.  Generally this means you will lose any data which "
23966 "was at the end of the partition you shrink, but you may not care about that "
23967 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23968 "as a swap partition)."
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../resize/virt-resize.pod:541
23973 msgid "See also the I<--ignore> option."
23974 msgstr ""
23975
23976 #. type: =item
23977 #: ../resize/virt-resize.pod:543
23978 msgid "B<--shrink part>"
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../resize/virt-resize.pod:545
23983 msgid ""
23984 "Shrink the named partition until the overall disk image fits in the "
23985 "destination.  The named partition B<must> contain a filesystem or PV which "
23986 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23987 "online tools).  Virt-resize will check this and give an error if it has not "
23988 "been done."
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../resize/virt-resize.pod:551
23993 msgid ""
23994 "The amount by which the overall disk must be shrunk (after carrying out all "
23995 "other operations requested by the user) is called the \"deficit\".  For "
23996 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23997 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23998 "would give an error unless the user specified a partition to shrink and that "
23999 "partition had more than a gigabyte of free space."
24000 msgstr ""
24001
24002 #. type: =head1
24003 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24004 msgid "MACHINE READABLE OUTPUT"
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../resize/virt-resize.pod:571
24009 msgid ""
24010 "The I<--machine-readable> option can be used to make the output more machine "
24011 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24012 "etc."
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24017 msgid "There are two ways to use this option."
24018 msgstr ""
24019
24020 #. type: textblock
24021 #: ../resize/virt-resize.pod:577
24022 msgid ""
24023 "Firstly use the option on its own to query the capabilities of the virt-"
24024 "resize binary.  Typical output looks like this:"
24025 msgstr ""
24026
24027 #. type: verbatim
24028 #: ../resize/virt-resize.pod:580
24029 #, no-wrap
24030 msgid ""
24031 " $ virt-resize --machine-readable\n"
24032 " virt-resize\n"
24033 " ntfsresize-force\n"
24034 " 32bitok\n"
24035 " ntfs\n"
24036 " btrfs\n"
24037 "\n"
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24042 msgid ""
24043 "A list of features is printed, one per line, and the program exits with "
24044 "status 0."
24045 msgstr ""
24046
24047 #. type: textblock
24048 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24049 msgid ""
24050 "Secondly use the option in conjunction with other options to make the "
24051 "regular program output more machine friendly."
24052 msgstr ""
24053
24054 #. type: textblock
24055 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24056 msgid "At the moment this means:"
24057 msgstr ""
24058
24059 #. type: textblock
24060 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24061 msgid ""
24062 "Progress bar messages can be parsed from stdout by looking for this regular "
24063 "expression:"
24064 msgstr ""
24065
24066 #. type: verbatim
24067 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24068 #, no-wrap
24069 msgid ""
24070 " ^[0-9]+/[0-9]+$\n"
24071 "\n"
24072 msgstr ""
24073
24074 #. type: textblock
24075 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24076 msgid ""
24077 "The calling program should treat messages sent to stdout (except for "
24078 "progress bar messages) as status messages.  They can be logged and/or "
24079 "displayed to the user."
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../resize/virt-resize.pod:612
24084 msgid ""
24085 "The calling program should treat messages sent to stderr as error messages.  "
24086 "In addition, virt-resize exits with a non-zero status code if there was a "
24087 "fatal error."
24088 msgstr ""
24089
24090 #. type: textblock
24091 #: ../resize/virt-resize.pod:618
24092 msgid ""
24093 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24094 "readable> option and will return an error."
24095 msgstr ""
24096
24097 #. type: =head2
24098 #: ../resize/virt-resize.pod:623
24099 msgid "\"Partition 1 does not end on cylinder boundary.\""
24100 msgstr ""
24101
24102 #. type: textblock
24103 #: ../resize/virt-resize.pod:625
24104 msgid ""
24105 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24106 "alignment> parameter).  Usually this means the partitions will not be "
24107 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24108 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24109 "drives.  Alignment of partitions to cylinders is not required by any modern "
24110 "operating system."
24111 msgstr ""
24112
24113 #. type: =head2
24114 #: ../resize/virt-resize.pod:632
24115 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24116 msgstr ""
24117
24118 #. type: textblock
24119 #: ../resize/virt-resize.pod:634
24120 msgid ""
24121 "In Windows Vista and later versions, Microsoft switched to using a separate "
24122 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24123 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24124 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24125 "the second partition (ie. C: drive)  should work."
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../resize/virt-resize.pod:641
24130 msgid ""
24131 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24132 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24133 "it find errors) is nothing to worry about."
24134 msgstr ""
24135
24136 #. type: =head2
24137 #: ../resize/virt-resize.pod:645
24138 msgid "GUEST BOOT STUCK AT \"GRUB\""
24139 msgstr ""
24140
24141 #. type: textblock
24142 #: ../resize/virt-resize.pod:647
24143 msgid ""
24144 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24145 "printing C<GRUB> on the console, try reinstalling grub."
24146 msgstr ""
24147
24148 #. type: verbatim
24149 #: ../resize/virt-resize.pod:650
24150 #, no-wrap
24151 msgid ""
24152 " guestfish -i -a newdisk\n"
24153 " ><fs> cat /boot/grub/device.map\n"
24154 " # check the contents of this file are sensible or\n"
24155 " # edit the file if necessary\n"
24156 " ><fs> grub-install / /dev/vda\n"
24157 " ><fs> exit\n"
24158 "\n"
24159 msgstr ""
24160
24161 #. type: textblock
24162 #: ../resize/virt-resize.pod:657
24163 msgid ""
24164 "For more flexible guest reconfiguration, including if you need to specify "
24165 "other parameters to grub-install, use L<virt-rescue(1)>."
24166 msgstr ""
24167
24168 #. type: =head1
24169 #: ../resize/virt-resize.pod:660
24170 msgid "ALTERNATIVE TOOLS"
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../resize/virt-resize.pod:662
24175 msgid ""
24176 "There are several proprietary tools for resizing partitions.  We won't "
24177 "mention any here."
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../resize/virt-resize.pod:665
24182 msgid ""
24183 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24184 "operations on disk images.  They can resize and move partitions, but I don't "
24185 "think they can do anything with the contents, and they certainly don't "
24186 "understand LVM."
24187 msgstr ""
24188
24189 #. type: textblock
24190 #: ../resize/virt-resize.pod:670
24191 msgid ""
24192 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24193 "but at a much lower level.  You will probably end up hand-calculating sector "
24194 "offsets, which is something that virt-resize was designed to avoid.  If you "
24195 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24196 "I<--debug> flag."
24197 msgstr ""
24198
24199 #. type: textblock
24200 #: ../resize/virt-resize.pod:690
24201 msgid ""
24202 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24203 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24204 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24205 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24206 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24207 msgstr ""
24208
24209 #. type: textblock
24210 #: ../ruby/examples/guestfs-ruby.pod:5
24211 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24212 msgstr ""
24213
24214 #. type: verbatim
24215 #: ../ruby/examples/guestfs-ruby.pod:9
24216 #, no-wrap
24217 msgid ""
24218 " require 'guestfs'\n"
24219 " g = Guestfs::Guestfs.new()\n"
24220 " g.add_drive_opts(\"disk.img\",\n"
24221 "                  :readonly => 1, :format => \"raw\")\n"
24222 " g.launch()\n"
24223 "\n"
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../ruby/examples/guestfs-ruby.pod:17
24228 msgid ""
24229 "This manual page documents how to call libguestfs from the Ruby programming "
24230 "language.  This page just documents the differences from the C API and gives "
24231 "some examples.  If you are not familiar with using libguestfs, you also need "
24232 "to read L<guestfs(3)>."
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../ruby/examples/guestfs-ruby.pod:24
24237 msgid ""
24238 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24239 "This has a single parameter which is the error message (a string)."
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../ruby/examples/guestfs-ruby.pod:38
24244 msgid ""
24245 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24246 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24247 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24248 msgstr ""
24249
24250 #. type: textblock
24251 #: ../sparsify/virt-sparsify.pod:5
24252 msgid "virt-sparsify - Make a virtual machine disk sparse"
24253 msgstr ""
24254
24255 #. type: verbatim
24256 #: ../sparsify/virt-sparsify.pod:9
24257 #, no-wrap
24258 msgid ""
24259 " virt-sparsify [--options] indisk outdisk\n"
24260 "\n"
24261 msgstr ""
24262
24263 #. type: textblock
24264 #: ../sparsify/virt-sparsify.pod:13
24265 msgid ""
24266 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24267 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24268 "the disk image can be converted back to free space on the host."
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../sparsify/virt-sparsify.pod:18
24273 msgid ""
24274 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24275 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24276 msgstr ""
24277
24278 #. type: textblock
24279 #: ../sparsify/virt-sparsify.pod:21
24280 msgid ""
24281 "Virt-sparsify can also convert between some disk formats, for example "
24282 "converting a raw disk image to a thin-provisioned qcow2 image."
24283 msgstr ""
24284
24285 #. type: textblock
24286 #: ../sparsify/virt-sparsify.pod:24
24287 msgid ""
24288 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24289 "machines.  If a virtual machine has more than one attached disk, you must "
24290 "sparsify each one separately."
24291 msgstr ""
24292
24293 #. type: =head2
24294 #: ../sparsify/virt-sparsify.pod:28
24295 msgid "IMPORTANT LIMITATIONS"
24296 msgstr ""
24297
24298 #. type: textblock
24299 #: ../sparsify/virt-sparsify.pod:34
24300 msgid ""
24301 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24302 "image to a destination image, leaving the source unchanged.  I<Check that "
24303 "the sparsification was successful before deleting the source image>."
24304 msgstr ""
24305
24306 #. type: textblock
24307 #: ../sparsify/virt-sparsify.pod:41
24308 msgid "The virtual machine I<must be shut down> before using this tool."
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../sparsify/virt-sparsify.pod:45
24313 msgid ""
24314 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24315 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24316 "usually much less space is required."
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../sparsify/virt-sparsify.pod:51
24321 msgid ""
24322 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../sparsify/virt-sparsify.pod:56
24327 msgid "Virt-sparsify cannot handle encrypted disks."
24328 msgstr ""
24329
24330 #. type: textblock
24331 #: ../sparsify/virt-sparsify.pod:60
24332 msgid ""
24333 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24334 "this space is often used for critical items like bootloaders so it's not "
24335 "really unused."
24336 msgstr ""
24337
24338 #. type: textblock
24339 #: ../sparsify/virt-sparsify.pod:66
24340 msgid ""
24341 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24342 "to do this unless we can be sure there is no hibernation data, so at the "
24343 "moment swap partitions are ignored."
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../sparsify/virt-sparsify.pod:72
24348 msgid ""
24349 "You may also want to read the manual pages for the associated tools L<virt-"
24350 "filesystems(1)> and L<virt-df(1)> before starting."
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../sparsify/virt-sparsify.pod:77
24355 msgid "Typical usage is:"
24356 msgstr ""
24357
24358 #. type: verbatim
24359 #: ../sparsify/virt-sparsify.pod:79
24360 #, no-wrap
24361 msgid ""
24362 " virt-sparsify indisk outdisk\n"
24363 "\n"
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../sparsify/virt-sparsify.pod:81
24368 msgid ""
24369 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24370 "is created, or overwritten if it already exists.  The format of the input "
24371 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../sparsify/virt-sparsify.pod:86
24376 msgid "To convert between formats, use the I<--convert> option:"
24377 msgstr ""
24378
24379 #. type: verbatim
24380 #: ../sparsify/virt-sparsify.pod:88
24381 #, no-wrap
24382 msgid ""
24383 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24384 "\n"
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../sparsify/virt-sparsify.pod:90
24389 msgid ""
24390 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24391 "can find within the source disk image.  You can get it to ignore (don't zero "
24392 "free space on) certain filesystems by doing:"
24393 msgstr ""
24394
24395 #. type: verbatim
24396 #: ../sparsify/virt-sparsify.pod:94
24397 #, no-wrap
24398 msgid ""
24399 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24400 "\n"
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../sparsify/virt-sparsify.pod:96
24405 msgid ""
24406 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24407 msgstr ""
24408
24409 #. type: =item
24410 #: ../sparsify/virt-sparsify.pod:107
24411 msgid "B<--convert> raw"
24412 msgstr ""
24413
24414 #. type: =item
24415 #: ../sparsify/virt-sparsify.pod:109
24416 msgid "B<--convert> qcow2"
24417 msgstr ""
24418
24419 #. type: =item
24420 #: ../sparsify/virt-sparsify.pod:111
24421 msgid "B<--convert> [other formats]"
24422 msgstr ""
24423
24424 #. type: textblock
24425 #: ../sparsify/virt-sparsify.pod:113
24426 msgid ""
24427 "Use C<output-format> as the format for the destination image.  If this is "
24428 "not specified, then the input format is used."
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../sparsify/virt-sparsify.pod:116
24433 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../sparsify/virt-sparsify.pod:118
24438 msgid ""
24439 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24440 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24441 msgstr ""
24442
24443 #. type: textblock
24444 #: ../sparsify/virt-sparsify.pod:122
24445 msgid ""
24446 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24447 "sparsify doesn't need to try to guess the input format."
24448 msgstr ""
24449
24450 #. type: =item
24451 #: ../sparsify/virt-sparsify.pod:127
24452 msgid "B<--format> qcow2"
24453 msgstr ""
24454
24455 #. type: =item
24456 #: ../sparsify/virt-sparsify.pod:135
24457 msgid "B<--ignore> filesystem"
24458 msgstr ""
24459
24460 #. type: =item
24461 #: ../sparsify/virt-sparsify.pod:137
24462 msgid "B<--ignore> volgroup"
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../sparsify/virt-sparsify.pod:139
24467 msgid ""
24468 "Ignore the named filesystem.  Free space on the filesystem will not be "
24469 "zeroed, but existing blocks of zeroes will still be sparsified."
24470 msgstr ""
24471
24472 #. type: textblock
24473 #: ../sparsify/virt-sparsify.pod:142
24474 msgid ""
24475 "In the second form, this ignores the named volume group.  Use the volume "
24476 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../sparsify/virt-sparsify.pod:157
24481 msgid "This disables progress bars and other unnecessary output."
24482 msgstr ""
24483
24484 #. type: textblock
24485 #: ../sparsify/virt-sparsify.pod:179
24486 msgid ""
24487 "The I<--machine-readable> option can be used to make the output more machine "
24488 "friendly, which is useful when calling virt-sparsify from other programs, "
24489 "GUIs etc."
24490 msgstr ""
24491
24492 #. type: textblock
24493 #: ../sparsify/virt-sparsify.pod:185
24494 msgid ""
24495 "Firstly use the option on its own to query the capabilities of the virt-"
24496 "sparsify binary.  Typical output looks like this:"
24497 msgstr ""
24498
24499 #. type: verbatim
24500 #: ../sparsify/virt-sparsify.pod:188
24501 #, no-wrap
24502 msgid ""
24503 " $ virt-sparsify --machine-readable\n"
24504 " virt-sparsify\n"
24505 " ntfs\n"
24506 " btrfs\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../sparsify/virt-sparsify.pod:218
24512 msgid ""
24513 "The calling program should treat messages sent to stderr as error messages.  "
24514 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24515 "fatal error."
24516 msgstr ""
24517
24518 #. type: textblock
24519 #: ../sparsify/virt-sparsify.pod:224
24520 msgid ""
24521 "All versions of virt-sparsify have supported the I<--machine-readable> "
24522 "option."
24523 msgstr ""
24524
24525 #. type: textblock
24526 #: ../sparsify/virt-sparsify.pod:238
24527 msgid ""
24528 "Location of the temporary directory used for the potentially large temporary "
24529 "overlay file."
24530 msgstr ""
24531
24532 #. type: textblock
24533 #: ../sparsify/virt-sparsify.pod:241
24534 msgid ""
24535 "You should ensure there is enough free space in the worst case for a full "
24536 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24537 "to another directory that has enough space."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../sparsify/virt-sparsify.pod:245
24542 msgid "This defaults to C</tmp>."
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../sparsify/virt-sparsify.pod:249
24547 msgid ""
24548 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24549 msgstr ""
24550
24551 #. type: textblock
24552 #: ../sparsify/virt-sparsify.pod:253
24553 msgid ""
24554 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24555 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24556 "(1)>, L<http://libguestfs.org/>."
24557 msgstr ""
24558
24559 #. type: =head2
24560 #: ../src/guestfs-actions.pod:1
24561 msgid "guestfs_add_cdrom"
24562 msgstr ""
24563
24564 #. type: verbatim
24565 #: ../src/guestfs-actions.pod:3
24566 #, no-wrap
24567 msgid ""
24568 " int\n"
24569 " guestfs_add_cdrom (guestfs_h *g,\n"
24570 "                    const char *filename);\n"
24571 "\n"
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
24576 #: ../src/guestfs-actions.pod:323
24577 msgid ""
24578 "I<This function is deprecated.> In new code, use the L</"
24579 "guestfs_add_drive_opts> call instead."
24580 msgstr ""
24581
24582 #. type: textblock
24583 #: ../src/guestfs-actions.pod:24
24584 msgid ""
24585 "This call checks for the existence of C<filename>.  This stops you from "
24586 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24587 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24588 "instead."
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../src/guestfs-actions.pod:31
24593 msgid ""
24594 "If you just want to add an ISO file (often you use this as an efficient way "
24595 "to transfer large files into the guest), then you should probably use "
24596 "C<guestfs_add_drive_ro> instead."
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
24601 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
24602 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
24603 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
24604 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
24605 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
24606 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
24607 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
24608 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
24609 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
24610 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
24611 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
24612 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
24613 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
24614 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
24615 #: ../src/guestfs-actions.pod:1423 ../src/guestfs-actions.pod:1474
24616 #: ../src/guestfs-actions.pod:1530 ../src/guestfs-actions.pod:1582
24617 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1615
24618 #: ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1713
24619 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1769
24620 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:1924
24621 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:2166
24622 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:2275
24623 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2927
24624 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3023
24625 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
24626 #: ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4309
24627 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4336
24628 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
24629 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4473
24630 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4510
24631 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4556
24632 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4610
24633 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4664
24634 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4712
24635 #: ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4741
24636 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4773
24637 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4886
24638 #: ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:4950
24639 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:4986
24640 #: ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5016
24641 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5047
24642 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5089
24643 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5225
24644 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
24645 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5306
24646 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5336
24647 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5366
24648 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5424
24649 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5483
24650 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5514
24651 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5616
24652 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5706
24653 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5751
24654 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5909
24655 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5988
24656 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6056
24657 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6139
24658 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6166
24659 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6474
24660 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6507
24661 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533
24662 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6559
24663 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6596
24664 #: ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6634
24665 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6682
24666 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6723
24667 #: ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6763
24668 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6799
24669 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6846
24670 #: ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6889
24671 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6929
24672 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6963
24673 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7026
24674 #: ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7089
24675 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7325
24676 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7350
24677 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7385
24678 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7411
24679 #: ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439
24680 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7515
24681 #: ../src/guestfs-actions.pod:7531 ../src/guestfs-actions.pod:7547
24682 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7577
24683 #: ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7633
24684 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7688
24685 #: ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:7719
24686 #: ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7789
24687 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7920
24688 #: ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:7989
24689 #: ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8047
24690 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8143
24691 #: ../src/guestfs-actions.pod:8163 ../src/guestfs-actions.pod:8196
24692 #: ../src/guestfs-actions.pod:8260 ../src/guestfs-actions.pod:8283
24693 #: ../src/guestfs-actions.pod:8312
24694 msgid "This function returns 0 on success or -1 on error."
24695 msgstr ""
24696
24697 #. type: textblock
24698 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
24699 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2389
24700 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2612
24701 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4102
24702 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:6684
24703 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6950
24704 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7566
24705 #: ../src/guestfs-actions.pod:8089
24706 msgid "(Added in 0.3)"
24707 msgstr ""
24708
24709 #. type: =head2
24710 #: ../src/guestfs-actions.pod:41
24711 msgid "guestfs_add_domain"
24712 msgstr ""
24713
24714 #. type: verbatim
24715 #: ../src/guestfs-actions.pod:43
24716 #, no-wrap
24717 msgid ""
24718 " int\n"
24719 " guestfs_add_domain (guestfs_h *g,\n"
24720 "                     const char *dom,\n"
24721 "                     ...);\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: textblock
24726 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
24727 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
24728 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
24729 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1462
24730 #: ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:3280
24731 #: ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5410
24732 #: ../src/guestfs-actions.pod:5627
24733 msgid ""
24734 "You may supply a list of optional arguments to this call.  Use zero or more "
24735 "of the following pairs of parameters, and terminate the list with C<-1> on "
24736 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24737 msgstr ""
24738
24739 #. type: verbatim
24740 #: ../src/guestfs-actions.pod:53
24741 #, no-wrap
24742 msgid ""
24743 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24744 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24745 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24746 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24747 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24748 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24749 "\n"
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../src/guestfs-actions.pod:60
24754 msgid ""
24755 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24756 "It works by connecting to libvirt, requesting the domain and domain XML from "
24757 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24758 "one."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../src/guestfs-actions.pod:141
24763 msgid ""
24764 "The other optional parameters are passed directly through to "
24765 "C<guestfs_add_drive_opts>."
24766 msgstr ""
24767
24768 #. type: textblock
24769 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
24770 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
24771 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24772 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1789
24773 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2348
24774 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2510
24775 #: ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2576
24776 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2914
24777 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3416
24778 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5806
24779 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6236
24780 #: ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:7674
24781 #: ../src/guestfs-actions.pod:8100 ../src/guestfs-actions.pod:8113
24782 #: ../src/guestfs-actions.pod:8126
24783 msgid "On error this function returns -1."
24784 msgstr ""
24785
24786 #. type: textblock
24787 #: ../src/guestfs-actions.pod:146
24788 msgid "(Added in 1.7.4)"
24789 msgstr ""
24790
24791 #. type: =head2
24792 #: ../src/guestfs-actions.pod:148
24793 msgid "guestfs_add_domain_va"
24794 msgstr ""
24795
24796 #. type: verbatim
24797 #: ../src/guestfs-actions.pod:150
24798 #, no-wrap
24799 msgid ""
24800 " int\n"
24801 " guestfs_add_domain_va (guestfs_h *g,\n"
24802 "                        const char *dom,\n"
24803 "                        va_list args);\n"
24804 "\n"
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../src/guestfs-actions.pod:155
24809 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
24814 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
24815 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
24816 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
24817 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
24818 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1401
24819 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1452
24820 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1503
24821 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1559
24822 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3376
24823 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5178
24824 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5450
24825 #: ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5687
24826 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24827 msgstr ""
24828
24829 #. type: =head2
24830 #: ../src/guestfs-actions.pod:159
24831 msgid "guestfs_add_domain_argv"
24832 msgstr ""
24833
24834 #. type: verbatim
24835 #: ../src/guestfs-actions.pod:161
24836 #, no-wrap
24837 msgid ""
24838 " int\n"
24839 " guestfs_add_domain_argv (guestfs_h *g,\n"
24840 "                          const char *dom,\n"
24841 "                          const struct guestfs_add_domain_argv *optargs);\n"
24842 "\n"
24843 msgstr ""
24844
24845 #. type: textblock
24846 #: ../src/guestfs-actions.pod:166
24847 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24848 msgstr ""
24849
24850 #. type: =head2
24851 #: ../src/guestfs-actions.pod:170
24852 msgid "guestfs_add_drive"
24853 msgstr ""
24854
24855 #. type: verbatim
24856 #: ../src/guestfs-actions.pod:172
24857 #, no-wrap
24858 msgid ""
24859 " int\n"
24860 " guestfs_add_drive (guestfs_h *g,\n"
24861 "                    const char *filename);\n"
24862 "\n"
24863 msgstr ""
24864
24865 #. type: textblock
24866 #: ../src/guestfs-actions.pod:176
24867 msgid ""
24868 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24869 "optional parameters, so the disk is added writable, with the format being "
24870 "detected automatically."
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../src/guestfs-actions.pod:180
24875 msgid ""
24876 "Automatic detection of the format opens you up to a potential security hole "
24877 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24878 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24879 "you should think about replacing calls to this function with calls to "
24880 "C<guestfs_add_drive_opts>, and specifying the format."
24881 msgstr ""
24882
24883 #. type: =head2
24884 #: ../src/guestfs-actions.pod:191
24885 msgid "guestfs_add_drive_opts"
24886 msgstr ""
24887
24888 #. type: verbatim
24889 #: ../src/guestfs-actions.pod:193
24890 #, no-wrap
24891 msgid ""
24892 " int\n"
24893 " guestfs_add_drive_opts (guestfs_h *g,\n"
24894 "                         const char *filename,\n"
24895 "                         ...);\n"
24896 "\n"
24897 msgstr ""
24898
24899 #. type: verbatim
24900 #: ../src/guestfs-actions.pod:203
24901 #, no-wrap
24902 msgid ""
24903 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24904 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24905 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24906 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24907 "\n"
24908 msgstr ""
24909
24910 #. type: textblock
24911 #: ../src/guestfs-actions.pod:233
24912 msgid ""
24913 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24914 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24915 "Possible formats include C<raw> and C<qcow2>."
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../src/guestfs-actions.pod:244
24920 msgid ""
24921 "This rarely-used option lets you emulate the behaviour of the deprecated "
24922 "C<guestfs_add_drive_with_if> call (q.v.)"
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../src/guestfs-actions.pod:256
24927 msgid "(Added in 1.5.23)"
24928 msgstr ""
24929
24930 #. type: =head2
24931 #: ../src/guestfs-actions.pod:258
24932 msgid "guestfs_add_drive_opts_va"
24933 msgstr ""
24934
24935 #. type: verbatim
24936 #: ../src/guestfs-actions.pod:260
24937 #, no-wrap
24938 msgid ""
24939 " int\n"
24940 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24941 "                            const char *filename,\n"
24942 "                            va_list args);\n"
24943 "\n"
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../src/guestfs-actions.pod:265
24948 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24949 msgstr ""
24950
24951 #. type: =head2
24952 #: ../src/guestfs-actions.pod:269
24953 msgid "guestfs_add_drive_opts_argv"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../src/guestfs-actions.pod:271
24958 #, no-wrap
24959 msgid ""
24960 " int\n"
24961 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24962 "                              const char *filename,\n"
24963 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../src/guestfs-actions.pod:276
24969 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24970 msgstr ""
24971
24972 #. type: =head2
24973 #: ../src/guestfs-actions.pod:280
24974 msgid "guestfs_add_drive_ro"
24975 msgstr ""
24976
24977 #. type: verbatim
24978 #: ../src/guestfs-actions.pod:282
24979 #, no-wrap
24980 msgid ""
24981 " int\n"
24982 " guestfs_add_drive_ro (guestfs_h *g,\n"
24983 "                       const char *filename);\n"
24984 "\n"
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../src/guestfs-actions.pod:286
24989 msgid ""
24990 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24991 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24992 "disk is added read-only, with the format being detected automatically."
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../src/guestfs-actions.pod:293
24997 msgid "(Added in 1.0.38)"
24998 msgstr ""
24999
25000 #. type: =head2
25001 #: ../src/guestfs-actions.pod:295
25002 msgid "guestfs_add_drive_ro_with_if"
25003 msgstr ""
25004
25005 #. type: verbatim
25006 #: ../src/guestfs-actions.pod:297
25007 #, no-wrap
25008 msgid ""
25009 " int\n"
25010 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25011 "                               const char *filename,\n"
25012 "                               const char *iface);\n"
25013 "\n"
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../src/guestfs-actions.pod:309
25018 msgid ""
25019 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25020 "QEMU interface emulation to use at run time."
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25025 #: ../src/guestfs-actions.pod:2873
25026 msgid "(Added in 1.0.84)"
25027 msgstr ""
25028
25029 #. type: =head2
25030 #: ../src/guestfs-actions.pod:316
25031 msgid "guestfs_add_drive_with_if"
25032 msgstr ""
25033
25034 #. type: verbatim
25035 #: ../src/guestfs-actions.pod:318
25036 #, no-wrap
25037 msgid ""
25038 " int\n"
25039 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25040 "                            const char *filename,\n"
25041 "                            const char *iface);\n"
25042 "\n"
25043 msgstr ""
25044
25045 #. type: textblock
25046 #: ../src/guestfs-actions.pod:330
25047 msgid ""
25048 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25049 "QEMU interface emulation to use at run time."
25050 msgstr ""
25051
25052 #. type: =head2
25053 #: ../src/guestfs-actions.pod:337
25054 msgid "guestfs_aug_clear"
25055 msgstr ""
25056
25057 #. type: verbatim
25058 #: ../src/guestfs-actions.pod:339
25059 #, no-wrap
25060 msgid ""
25061 " int\n"
25062 " guestfs_aug_clear (guestfs_h *g,\n"
25063 "                    const char *augpath);\n"
25064 "\n"
25065 msgstr ""
25066
25067 #. type: textblock
25068 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2601
25069 msgid "(Added in 1.3.4)"
25070 msgstr ""
25071
25072 #. type: =head2
25073 #: ../src/guestfs-actions.pod:350
25074 msgid "guestfs_aug_close"
25075 msgstr ""
25076
25077 #. type: verbatim
25078 #: ../src/guestfs-actions.pod:352
25079 #, no-wrap
25080 msgid ""
25081 " int\n"
25082 " guestfs_aug_close (guestfs_h *g);\n"
25083 "\n"
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../src/guestfs-actions.pod:355
25088 msgid ""
25089 "Close the current Augeas handle and free up any resources used by it.  After "
25090 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25091 "any other Augeas functions."
25092 msgstr ""
25093
25094 #. type: textblock
25095 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25096 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25097 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25098 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25099 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25100 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25101 #: ../src/guestfs-actions.pod:6313
25102 msgid "(Added in 0.7)"
25103 msgstr ""
25104
25105 #. type: =head2
25106 #: ../src/guestfs-actions.pod:364
25107 msgid "guestfs_aug_defnode"
25108 msgstr ""
25109
25110 #. type: verbatim
25111 #: ../src/guestfs-actions.pod:366
25112 #, no-wrap
25113 msgid ""
25114 " struct guestfs_int_bool *\n"
25115 " guestfs_aug_defnode (guestfs_h *g,\n"
25116 "                      const char *name,\n"
25117 "                      const char *expr,\n"
25118 "                      const char *val);\n"
25119 "\n"
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../src/guestfs-actions.pod:375
25124 msgid ""
25125 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25126 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25127 "containing that single node."
25128 msgstr ""
25129
25130 #. type: textblock
25131 #: ../src/guestfs-actions.pod:383
25132 msgid ""
25133 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25134 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25135 msgstr ""
25136
25137 #. type: =head2
25138 #: ../src/guestfs-actions.pod:389
25139 msgid "guestfs_aug_defvar"
25140 msgstr ""
25141
25142 #. type: verbatim
25143 #: ../src/guestfs-actions.pod:391
25144 #, no-wrap
25145 msgid ""
25146 " int\n"
25147 " guestfs_aug_defvar (guestfs_h *g,\n"
25148 "                     const char *name,\n"
25149 "                     const char *expr);\n"
25150 "\n"
25151 msgstr ""
25152
25153 #. type: =head2
25154 #: ../src/guestfs-actions.pod:407
25155 msgid "guestfs_aug_get"
25156 msgstr ""
25157
25158 #. type: verbatim
25159 #: ../src/guestfs-actions.pod:409
25160 #, no-wrap
25161 msgid ""
25162 " char *\n"
25163 " guestfs_aug_get (guestfs_h *g,\n"
25164 "                  const char *augpath);\n"
25165 "\n"
25166 msgstr ""
25167
25168 #. type: textblock
25169 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25170 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25171 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25172 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1675
25173 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:1828
25174 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2128
25175 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:2308
25176 #: ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2418
25177 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2624
25178 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:3042
25179 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3248
25180 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3482
25181 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3531
25182 #: ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3628
25183 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3668
25184 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4648
25185 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4928
25186 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6025
25187 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6389
25188 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:7110
25189 #: ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7150
25190 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7848
25191 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7885
25192 #: ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8376
25193 msgid ""
25194 "This function returns a string, or NULL on error.  I<The caller must free "
25195 "the returned string after use>."
25196 msgstr ""
25197
25198 #. type: =head2
25199 #: ../src/guestfs-actions.pod:421
25200 msgid "guestfs_aug_init"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../src/guestfs-actions.pod:423
25205 #, no-wrap
25206 msgid ""
25207 " int\n"
25208 " guestfs_aug_init (guestfs_h *g,\n"
25209 "                   const char *root,\n"
25210 "                   int flags);\n"
25211 "\n"
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../src/guestfs-actions.pod:432
25216 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25217 msgstr ""
25218
25219 #. type: textblock
25220 #: ../src/guestfs-actions.pod:457
25221 msgid ""
25222 "This option is only useful when debugging Augeas lenses.  Use of this option "
25223 "may require additional memory for the libguestfs appliance.  You may need to "
25224 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25225 "C<guestfs_set_memsize>."
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../src/guestfs-actions.pod:472
25230 msgid "Do not load the tree in C<guestfs_aug_init>."
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../src/guestfs-actions.pod:476
25235 msgid "To close the handle, you can call C<guestfs_aug_close>."
25236 msgstr ""
25237
25238 #. type: =head2
25239 #: ../src/guestfs-actions.pod:484
25240 msgid "guestfs_aug_insert"
25241 msgstr ""
25242
25243 #. type: verbatim
25244 #: ../src/guestfs-actions.pod:486
25245 #, no-wrap
25246 msgid ""
25247 " int\n"
25248 " guestfs_aug_insert (guestfs_h *g,\n"
25249 "                     const char *augpath,\n"
25250 "                     const char *label,\n"
25251 "                     int before);\n"
25252 "\n"
25253 msgstr ""
25254
25255 #. type: =head2
25256 #: ../src/guestfs-actions.pod:504
25257 msgid "guestfs_aug_load"
25258 msgstr ""
25259
25260 #. type: verbatim
25261 #: ../src/guestfs-actions.pod:506
25262 #, no-wrap
25263 msgid ""
25264 " int\n"
25265 " guestfs_aug_load (guestfs_h *g);\n"
25266 "\n"
25267 msgstr ""
25268
25269 #. type: =head2
25270 #: ../src/guestfs-actions.pod:518
25271 msgid "guestfs_aug_ls"
25272 msgstr ""
25273
25274 #. type: verbatim
25275 #: ../src/guestfs-actions.pod:520
25276 #, no-wrap
25277 msgid ""
25278 " char **\n"
25279 " guestfs_aug_ls (guestfs_h *g,\n"
25280 "                 const char *augpath);\n"
25281 "\n"
25282 msgstr ""
25283
25284 #. type: textblock
25285 #: ../src/guestfs-actions.pod:524
25286 msgid ""
25287 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25288 "sorting the resulting nodes into alphabetical order."
25289 msgstr ""
25290
25291 #. type: textblock
25292 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25293 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25294 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1862
25295 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:1984
25296 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2696
25297 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2731
25298 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2820
25299 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2940
25300 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3584
25301 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:4178
25302 #: ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4215
25303 #: ../src/guestfs-actions.pod:4277 ../src/guestfs-actions.pod:4382
25304 #: ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5547
25305 #: ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6309
25306 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:7190
25307 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7306
25308 #: ../src/guestfs-actions.pod:7452 ../src/guestfs-actions.pod:7476
25309 #: ../src/guestfs-actions.pod:7952 ../src/guestfs-actions.pod:7972
25310 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8213
25311 #: ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8326
25312 #: ../src/guestfs-actions.pod:8345 ../src/guestfs-actions.pod:8391
25313 #: ../src/guestfs-actions.pod:8410
25314 msgid ""
25315 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25316 ">), or NULL if there was an error.  I<The caller must free the strings and "
25317 "the array after use>."
25318 msgstr ""
25319
25320 #. type: textblock
25321 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25322 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1900
25323 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:3973
25324 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
25325 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4901
25326 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5551
25327 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6521
25328 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6547
25329 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7690
25330 #: ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7936
25331 #: ../src/guestfs-actions.pod:8201
25332 msgid "(Added in 0.8)"
25333 msgstr ""
25334
25335 #. type: =head2
25336 #: ../src/guestfs-actions.pod:533
25337 msgid "guestfs_aug_match"
25338 msgstr ""
25339
25340 #. type: verbatim
25341 #: ../src/guestfs-actions.pod:535
25342 #, no-wrap
25343 msgid ""
25344 " char **\n"
25345 " guestfs_aug_match (guestfs_h *g,\n"
25346 "                    const char *augpath);\n"
25347 "\n"
25348 msgstr ""
25349
25350 #. type: =head2
25351 #: ../src/guestfs-actions.pod:549
25352 msgid "guestfs_aug_mv"
25353 msgstr ""
25354
25355 #. type: verbatim
25356 #: ../src/guestfs-actions.pod:551
25357 #, no-wrap
25358 msgid ""
25359 " int\n"
25360 " guestfs_aug_mv (guestfs_h *g,\n"
25361 "                 const char *src,\n"
25362 "                 const char *dest);\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: =head2
25367 #: ../src/guestfs-actions.pod:563
25368 msgid "guestfs_aug_rm"
25369 msgstr ""
25370
25371 #. type: verbatim
25372 #: ../src/guestfs-actions.pod:565
25373 #, no-wrap
25374 msgid ""
25375 " int\n"
25376 " guestfs_aug_rm (guestfs_h *g,\n"
25377 "                 const char *augpath);\n"
25378 "\n"
25379 msgstr ""
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:577
25383 msgid "guestfs_aug_save"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:579
25388 #, no-wrap
25389 msgid ""
25390 " int\n"
25391 " guestfs_aug_save (guestfs_h *g);\n"
25392 "\n"
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../src/guestfs-actions.pod:584
25397 msgid ""
25398 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25399 "are saved."
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:591
25404 msgid "guestfs_aug_set"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:593
25409 #, no-wrap
25410 msgid ""
25411 " int\n"
25412 " guestfs_aug_set (guestfs_h *g,\n"
25413 "                  const char *augpath,\n"
25414 "                  const char *val);\n"
25415 "\n"
25416 msgstr ""
25417
25418 #. type: textblock
25419 #: ../src/guestfs-actions.pod:600
25420 msgid ""
25421 "In the Augeas API, it is possible to clear a node by setting the value to "
25422 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25423 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25424 msgstr ""
25425
25426 #. type: =head2
25427 #: ../src/guestfs-actions.pod:609
25428 msgid "guestfs_available"
25429 msgstr ""
25430
25431 #. type: verbatim
25432 #: ../src/guestfs-actions.pod:611
25433 #, no-wrap
25434 msgid ""
25435 " int\n"
25436 " guestfs_available (guestfs_h *g,\n"
25437 "                    char *const *groups);\n"
25438 "\n"
25439 msgstr ""
25440
25441 #. type: textblock
25442 #: ../src/guestfs-actions.pod:619
25443 msgid ""
25444 "The libguestfs groups, and the functions that those groups correspond to, "
25445 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25446 "runtime by calling C<guestfs_available_all_groups>."
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../src/guestfs-actions.pod:643
25451 msgid "You must call C<guestfs_launch> before calling this function."
25452 msgstr ""
25453
25454 #. type: textblock
25455 #: ../src/guestfs-actions.pod:665
25456 msgid ""
25457 "This call was added in version C<1.0.80>.  In previous versions of "
25458 "libguestfs all you could do would be to speculatively execute a command to "
25459 "find out if the daemon implemented it.  See also C<guestfs_version>."
25460 msgstr ""
25461
25462 #. type: textblock
25463 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1645
25464 msgid "(Added in 1.0.80)"
25465 msgstr ""
25466
25467 #. type: =head2
25468 #: ../src/guestfs-actions.pod:676
25469 msgid "guestfs_available_all_groups"
25470 msgstr ""
25471
25472 #. type: verbatim
25473 #: ../src/guestfs-actions.pod:678
25474 #, no-wrap
25475 msgid ""
25476 " char **\n"
25477 " guestfs_available_all_groups (guestfs_h *g);\n"
25478 "\n"
25479 msgstr ""
25480
25481 #. type: textblock
25482 #: ../src/guestfs-actions.pod:681
25483 msgid ""
25484 "This command returns a list of all optional groups that this daemon knows "
25485 "about.  Note this returns both supported and unsupported groups.  To find "
25486 "out which ones the daemon can actually support you have to call "
25487 "C<guestfs_available> on each member of the returned list."
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../src/guestfs-actions.pod:687
25492 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:693
25497 msgid "(Added in 1.3.15)"
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../src/guestfs-actions.pod:695
25502 msgid "guestfs_base64_in"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../src/guestfs-actions.pod:697
25507 #, no-wrap
25508 msgid ""
25509 " int\n"
25510 " guestfs_base64_in (guestfs_h *g,\n"
25511 "                    const char *base64file,\n"
25512 "                    const char *filename);\n"
25513 "\n"
25514 msgstr ""
25515
25516 #. type: textblock
25517 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25518 msgid "(Added in 1.3.5)"
25519 msgstr ""
25520
25521 #. type: =head2
25522 #: ../src/guestfs-actions.pod:709
25523 msgid "guestfs_base64_out"
25524 msgstr ""
25525
25526 #. type: verbatim
25527 #: ../src/guestfs-actions.pod:711
25528 #, no-wrap
25529 msgid ""
25530 " int\n"
25531 " guestfs_base64_out (guestfs_h *g,\n"
25532 "                     const char *filename,\n"
25533 "                     const char *base64file);\n"
25534 "\n"
25535 msgstr ""
25536
25537 #. type: =head2
25538 #: ../src/guestfs-actions.pod:723
25539 msgid "guestfs_blockdev_flushbufs"
25540 msgstr ""
25541
25542 #. type: verbatim
25543 #: ../src/guestfs-actions.pod:725
25544 #, no-wrap
25545 msgid ""
25546 " int\n"
25547 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25548 "                             const char *device);\n"
25549 "\n"
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
25554 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
25555 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
25556 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
25557 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25558 msgid "(Added in 0.9.3)"
25559 msgstr ""
25560
25561 #. type: =head2
25562 #: ../src/guestfs-actions.pod:738
25563 msgid "guestfs_blockdev_getbsz"
25564 msgstr ""
25565
25566 #. type: verbatim
25567 #: ../src/guestfs-actions.pod:740
25568 #, no-wrap
25569 msgid ""
25570 " int\n"
25571 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25572 "                          const char *device);\n"
25573 "\n"
25574 msgstr ""
25575
25576 #. type: =head2
25577 #: ../src/guestfs-actions.pod:755
25578 msgid "guestfs_blockdev_getro"
25579 msgstr ""
25580
25581 #. type: verbatim
25582 #: ../src/guestfs-actions.pod:757
25583 #, no-wrap
25584 msgid ""
25585 " int\n"
25586 " guestfs_blockdev_getro (guestfs_h *g,\n"
25587 "                         const char *device);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1883
25593 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:2387
25594 #: ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2470
25595 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2536
25596 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2587
25597 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3685
25598 #: ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3719
25599 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895
25600 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924
25601 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955
25602 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:3985
25603 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4012
25604 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4042
25605 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4069
25606 #: ../src/guestfs-actions.pod:5788
25607 msgid "This function returns a C truth value on success or -1 on error."
25608 msgstr ""
25609
25610 #. type: =head2
25611 #: ../src/guestfs-actions.pod:770
25612 msgid "guestfs_blockdev_getsize64"
25613 msgstr ""
25614
25615 #. type: verbatim
25616 #: ../src/guestfs-actions.pod:772
25617 #, no-wrap
25618 msgid ""
25619 " int64_t\n"
25620 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25621 "                             const char *device);\n"
25622 "\n"
25623 msgstr ""
25624
25625 #. type: textblock
25626 #: ../src/guestfs-actions.pod:778
25627 msgid "See also C<guestfs_blockdev_getsz>."
25628 msgstr ""
25629
25630 #. type: =head2
25631 #: ../src/guestfs-actions.pod:786
25632 msgid "guestfs_blockdev_getss"
25633 msgstr ""
25634
25635 #. type: verbatim
25636 #: ../src/guestfs-actions.pod:788
25637 #, no-wrap
25638 msgid ""
25639 " int\n"
25640 " guestfs_blockdev_getss (guestfs_h *g,\n"
25641 "                         const char *device);\n"
25642 "\n"
25643 msgstr ""
25644
25645 #. type: textblock
25646 #: ../src/guestfs-actions.pod:795
25647 msgid ""
25648 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25649 "that)."
25650 msgstr ""
25651
25652 #. type: =head2
25653 #: ../src/guestfs-actions.pod:804
25654 msgid "guestfs_blockdev_getsz"
25655 msgstr ""
25656
25657 #. type: verbatim
25658 #: ../src/guestfs-actions.pod:806
25659 #, no-wrap
25660 msgid ""
25661 " int64_t\n"
25662 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25663 "                         const char *device);\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: textblock
25668 #: ../src/guestfs-actions.pod:813
25669 msgid ""
25670 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25671 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25672 msgstr ""
25673
25674 #. type: =head2
25675 #: ../src/guestfs-actions.pod:823
25676 msgid "guestfs_blockdev_rereadpt"
25677 msgstr ""
25678
25679 #. type: verbatim
25680 #: ../src/guestfs-actions.pod:825
25681 #, no-wrap
25682 msgid ""
25683 " int\n"
25684 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25685 "                            const char *device);\n"
25686 "\n"
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../src/guestfs-actions.pod:837
25691 msgid "guestfs_blockdev_setbsz"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../src/guestfs-actions.pod:839
25696 #, no-wrap
25697 msgid ""
25698 " int\n"
25699 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25700 "                          const char *device,\n"
25701 "                          int blocksize);\n"
25702 "\n"
25703 msgstr ""
25704
25705 #. type: =head2
25706 #: ../src/guestfs-actions.pod:855
25707 msgid "guestfs_blockdev_setro"
25708 msgstr ""
25709
25710 #. type: verbatim
25711 #: ../src/guestfs-actions.pod:857
25712 #, no-wrap
25713 msgid ""
25714 " int\n"
25715 " guestfs_blockdev_setro (guestfs_h *g,\n"
25716 "                         const char *device);\n"
25717 "\n"
25718 msgstr ""
25719
25720 #. type: =head2
25721 #: ../src/guestfs-actions.pod:869
25722 msgid "guestfs_blockdev_setrw"
25723 msgstr ""
25724
25725 #. type: verbatim
25726 #: ../src/guestfs-actions.pod:871
25727 #, no-wrap
25728 msgid ""
25729 " int\n"
25730 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25731 "                         const char *device);\n"
25732 "\n"
25733 msgstr ""
25734
25735 #. type: =head2
25736 #: ../src/guestfs-actions.pod:883
25737 msgid "guestfs_btrfs_filesystem_resize"
25738 msgstr ""
25739
25740 #. type: verbatim
25741 #: ../src/guestfs-actions.pod:885
25742 #, no-wrap
25743 msgid ""
25744 " int\n"
25745 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25746 "                                  const char *mountpoint,\n"
25747 "                                  ...);\n"
25748 "\n"
25749 msgstr ""
25750
25751 #. type: verbatim
25752 #: ../src/guestfs-actions.pod:895
25753 #, no-wrap
25754 msgid ""
25755 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25756 "\n"
25757 msgstr ""
25758
25759 #. type: textblock
25760 #: ../src/guestfs-actions.pod:918
25761 msgid "(Added in 1.11.17)"
25762 msgstr ""
25763
25764 #. type: =head2
25765 #: ../src/guestfs-actions.pod:920
25766 msgid "guestfs_btrfs_filesystem_resize_va"
25767 msgstr ""
25768
25769 #. type: verbatim
25770 #: ../src/guestfs-actions.pod:922
25771 #, no-wrap
25772 msgid ""
25773 " int\n"
25774 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25775 "                                     const char *mountpoint,\n"
25776 "                                     va_list args);\n"
25777 "\n"
25778 msgstr ""
25779
25780 #. type: textblock
25781 #: ../src/guestfs-actions.pod:927
25782 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25783 msgstr ""
25784
25785 #. type: =head2
25786 #: ../src/guestfs-actions.pod:931
25787 msgid "guestfs_btrfs_filesystem_resize_argv"
25788 msgstr ""
25789
25790 #. type: verbatim
25791 #: ../src/guestfs-actions.pod:933
25792 #, no-wrap
25793 msgid ""
25794 " int\n"
25795 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25796 "                                       const char *mountpoint,\n"
25797 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25798 "\n"
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:938
25803 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:942
25808 msgid "guestfs_case_sensitive_path"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:944
25813 #, no-wrap
25814 msgid ""
25815 " char *\n"
25816 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25817 "                              const char *path);\n"
25818 "\n"
25819 msgstr ""
25820
25821 #. type: textblock
25822 #: ../src/guestfs-actions.pod:970
25823 msgid ""
25824 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25825 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25826 "how the directories were originally created under Windows)."
25827 msgstr ""
25828
25829 #. type: textblock
25830 #: ../src/guestfs-actions.pod:978
25831 msgid "See also C<guestfs_realpath>."
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7870
25836 msgid "(Added in 1.0.75)"
25837 msgstr ""
25838
25839 #. type: =head2
25840 #: ../src/guestfs-actions.pod:985
25841 msgid "guestfs_cat"
25842 msgstr ""
25843
25844 #. type: verbatim
25845 #: ../src/guestfs-actions.pod:987
25846 #, no-wrap
25847 msgid ""
25848 " char *\n"
25849 " guestfs_cat (guestfs_h *g,\n"
25850 "              const char *path);\n"
25851 "\n"
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../src/guestfs-actions.pod:993
25856 msgid ""
25857 "Note that this function cannot correctly handle binary files (specifically, "
25858 "files containing C<\\0> character which is treated as end of string).  For "
25859 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25860 "functions which have a more complex interface."
25861 msgstr ""
25862
25863 #. type: textblock
25864 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4199
25865 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4298
25866 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4794
25867 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:6187
25868 #: ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:8023
25869 #: ../src/guestfs-actions.pod:8037
25870 msgid "(Added in 0.4)"
25871 msgstr ""
25872
25873 #. type: =head2
25874 #: ../src/guestfs-actions.pod:1006
25875 msgid "guestfs_checksum"
25876 msgstr ""
25877
25878 #. type: verbatim
25879 #: ../src/guestfs-actions.pod:1008
25880 #, no-wrap
25881 msgid ""
25882 " char *\n"
25883 " guestfs_checksum (guestfs_h *g,\n"
25884 "                   const char *csumtype,\n"
25885 "                   const char *path);\n"
25886 "\n"
25887 msgstr ""
25888
25889 #. type: textblock
25890 #: ../src/guestfs-actions.pod:1054
25891 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25892 msgstr ""
25893
25894 #. type: textblock
25895 #: ../src/guestfs-actions.pod:1056
25896 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1720
25901 #: ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:3897
25902 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3987
25903 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:7726
25904 msgid "(Added in 1.0.2)"
25905 msgstr ""
25906
25907 #. type: =head2
25908 #: ../src/guestfs-actions.pod:1063
25909 msgid "guestfs_checksum_device"
25910 msgstr ""
25911
25912 #. type: verbatim
25913 #: ../src/guestfs-actions.pod:1065
25914 #, no-wrap
25915 msgid ""
25916 " char *\n"
25917 " guestfs_checksum_device (guestfs_h *g,\n"
25918 "                          const char *csumtype,\n"
25919 "                          const char *device);\n"
25920 "\n"
25921 msgstr ""
25922
25923 #. type: textblock
25924 #: ../src/guestfs-actions.pod:1070
25925 msgid ""
25926 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25927 "device named C<device>.  For the types of checksums supported see the "
25928 "C<guestfs_checksum> command."
25929 msgstr ""
25930
25931 #. type: textblock
25932 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5618
25933 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5790
25934 #: ../src/guestfs-actions.pod:5808 ../src/guestfs-actions.pod:5990
25935 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7649
25936 #: ../src/guestfs-actions.pod:8049
25937 msgid "(Added in 1.3.2)"
25938 msgstr ""
25939
25940 #. type: =head2
25941 #: ../src/guestfs-actions.pod:1079
25942 msgid "guestfs_checksums_out"
25943 msgstr ""
25944
25945 #. type: verbatim
25946 #: ../src/guestfs-actions.pod:1081
25947 #, no-wrap
25948 msgid ""
25949 " int\n"
25950 " guestfs_checksums_out (guestfs_h *g,\n"
25951 "                        const char *csumtype,\n"
25952 "                        const char *directory,\n"
25953 "                        const char *sumsfile);\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: textblock
25958 #: ../src/guestfs-actions.pod:1101
25959 msgid "(Added in 1.3.7)"
25960 msgstr ""
25961
25962 #. type: =head2
25963 #: ../src/guestfs-actions.pod:1103
25964 msgid "guestfs_chmod"
25965 msgstr ""
25966
25967 #. type: verbatim
25968 #: ../src/guestfs-actions.pod:1105
25969 #, no-wrap
25970 msgid ""
25971 " int\n"
25972 " guestfs_chmod (guestfs_h *g,\n"
25973 "                int mode,\n"
25974 "                const char *path);\n"
25975 "\n"
25976 msgstr ""
25977
25978 #. type: =head2
25979 #: ../src/guestfs-actions.pod:1123
25980 msgid "guestfs_chown"
25981 msgstr ""
25982
25983 #. type: verbatim
25984 #: ../src/guestfs-actions.pod:1125
25985 #, no-wrap
25986 msgid ""
25987 " int\n"
25988 " guestfs_chown (guestfs_h *g,\n"
25989 "                int owner,\n"
25990 "                int group,\n"
25991 "                const char *path);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../src/guestfs-actions.pod:1141
25997 msgid "guestfs_command"
25998 msgstr ""
25999
26000 #. type: verbatim
26001 #: ../src/guestfs-actions.pod:1143
26002 #, no-wrap
26003 msgid ""
26004 " char *\n"
26005 " guestfs_command (guestfs_h *g,\n"
26006 "                  char *const *arguments);\n"
26007 "\n"
26008 msgstr ""
26009
26010 #. type: textblock
26011 #: ../src/guestfs-actions.pod:1152
26012 msgid ""
26013 "The single parameter is an argv-style list of arguments.  The first element "
26014 "is the name of the program to run.  Subsequent elements are parameters.  The "
26015 "list must be non-empty (ie. must contain a program name).  Note that the "
26016 "command runs directly, and is I<not> invoked via the shell (see "
26017 "C<guestfs_sh>)."
26018 msgstr ""
26019
26020 #. type: textblock
26021 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26022 #: ../src/guestfs-actions.pod:2019
26023 msgid "(Added in 0.9.1)"
26024 msgstr ""
26025
26026 #. type: =head2
26027 #: ../src/guestfs-actions.pod:1185
26028 msgid "guestfs_command_lines"
26029 msgstr ""
26030
26031 #. type: verbatim
26032 #: ../src/guestfs-actions.pod:1187
26033 #, no-wrap
26034 msgid ""
26035 " char **\n"
26036 " guestfs_command_lines (guestfs_h *g,\n"
26037 "                        char *const *arguments);\n"
26038 "\n"
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../src/guestfs-actions.pod:1191
26043 msgid ""
26044 "This is the same as C<guestfs_command>, but splits the result into a list of "
26045 "lines."
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:1194
26050 msgid "See also: C<guestfs_sh_lines>"
26051 msgstr ""
26052
26053 #. type: =head2
26054 #: ../src/guestfs-actions.pod:1205
26055 msgid "guestfs_compress_device_out"
26056 msgstr ""
26057
26058 #. type: verbatim
26059 #: ../src/guestfs-actions.pod:1207
26060 #, no-wrap
26061 msgid ""
26062 " int\n"
26063 " guestfs_compress_device_out (guestfs_h *g,\n"
26064 "                              const char *ctype,\n"
26065 "                              const char *device,\n"
26066 "                              const char *zdevice,\n"
26067 "                              ...);\n"
26068 "\n"
26069 msgstr ""
26070
26071 #. type: verbatim
26072 #: ../src/guestfs-actions.pod:1219
26073 #, no-wrap
26074 msgid ""
26075 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26076 "\n"
26077 msgstr ""
26078
26079 #. type: textblock
26080 #: ../src/guestfs-actions.pod:1224
26081 msgid ""
26082 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26083 "C<guestfs_compress_out>."
26084 msgstr ""
26085
26086 #. type: textblock
26087 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26088 #: ../src/guestfs-actions.pod:2564 ../src/guestfs-actions.pod:6907
26089 msgid "(Added in 1.13.15)"
26090 msgstr ""
26091
26092 #. type: =head2
26093 #: ../src/guestfs-actions.pod:1231
26094 msgid "guestfs_compress_device_out_va"
26095 msgstr ""
26096
26097 #. type: verbatim
26098 #: ../src/guestfs-actions.pod:1233
26099 #, no-wrap
26100 msgid ""
26101 " int\n"
26102 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26103 "                                 const char *ctype,\n"
26104 "                                 const char *device,\n"
26105 "                                 const char *zdevice,\n"
26106 "                                 va_list args);\n"
26107 "\n"
26108 msgstr ""
26109
26110 #. type: textblock
26111 #: ../src/guestfs-actions.pod:1240
26112 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26113 msgstr ""
26114
26115 #. type: =head2
26116 #: ../src/guestfs-actions.pod:1244
26117 msgid "guestfs_compress_device_out_argv"
26118 msgstr ""
26119
26120 #. type: verbatim
26121 #: ../src/guestfs-actions.pod:1246
26122 #, no-wrap
26123 msgid ""
26124 " int\n"
26125 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26126 "                                   const char *ctype,\n"
26127 "                                   const char *device,\n"
26128 "                                   const char *zdevice,\n"
26129 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26130 "\n"
26131 msgstr ""
26132
26133 #. type: textblock
26134 #: ../src/guestfs-actions.pod:1253
26135 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26136 msgstr ""
26137
26138 #. type: =head2
26139 #: ../src/guestfs-actions.pod:1257
26140 msgid "guestfs_compress_out"
26141 msgstr ""
26142
26143 #. type: verbatim
26144 #: ../src/guestfs-actions.pod:1259
26145 #, no-wrap
26146 msgid ""
26147 " int\n"
26148 " guestfs_compress_out (guestfs_h *g,\n"
26149 "                       const char *ctype,\n"
26150 "                       const char *file,\n"
26151 "                       const char *zfile,\n"
26152 "                       ...);\n"
26153 "\n"
26154 msgstr ""
26155
26156 #. type: verbatim
26157 #: ../src/guestfs-actions.pod:1271
26158 #, no-wrap
26159 msgid ""
26160 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26161 "\n"
26162 msgstr ""
26163
26164 #. type: =head2
26165 #: ../src/guestfs-actions.pod:1290
26166 msgid "guestfs_compress_out_va"
26167 msgstr ""
26168
26169 #. type: verbatim
26170 #: ../src/guestfs-actions.pod:1292
26171 #, no-wrap
26172 msgid ""
26173 " int\n"
26174 " guestfs_compress_out_va (guestfs_h *g,\n"
26175 "                          const char *ctype,\n"
26176 "                          const char *file,\n"
26177 "                          const char *zfile,\n"
26178 "                          va_list args);\n"
26179 "\n"
26180 msgstr ""
26181
26182 #. type: textblock
26183 #: ../src/guestfs-actions.pod:1299
26184 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26185 msgstr ""
26186
26187 #. type: =head2
26188 #: ../src/guestfs-actions.pod:1303
26189 msgid "guestfs_compress_out_argv"
26190 msgstr ""
26191
26192 #. type: verbatim
26193 #: ../src/guestfs-actions.pod:1305
26194 #, no-wrap
26195 msgid ""
26196 " int\n"
26197 " guestfs_compress_out_argv (guestfs_h *g,\n"
26198 "                            const char *ctype,\n"
26199 "                            const char *file,\n"
26200 "                            const char *zfile,\n"
26201 "                            const struct guestfs_compress_out_argv *optargs);\n"
26202 "\n"
26203 msgstr ""
26204
26205 #. type: textblock
26206 #: ../src/guestfs-actions.pod:1312
26207 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../src/guestfs-actions.pod:1316
26212 msgid "guestfs_config"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../src/guestfs-actions.pod:1318
26217 #, no-wrap
26218 msgid ""
26219 " int\n"
26220 " guestfs_config (guestfs_h *g,\n"
26221 "                 const char *qemuparam,\n"
26222 "                 const char *qemuvalue);\n"
26223 "\n"
26224 msgstr ""
26225
26226 #. type: =head2
26227 #: ../src/guestfs-actions.pod:1336
26228 msgid "guestfs_copy_device_to_device"
26229 msgstr ""
26230
26231 #. type: verbatim
26232 #: ../src/guestfs-actions.pod:1338
26233 #, no-wrap
26234 msgid ""
26235 " int\n"
26236 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26237 "                                const char *src,\n"
26238 "                                const char *dest,\n"
26239 "                                ...);\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: verbatim
26244 #: ../src/guestfs-actions.pod:1349
26245 #, no-wrap
26246 msgid ""
26247 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26248 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26249 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26250 "\n"
26251 msgstr ""
26252
26253 #. type: textblock
26254 #: ../src/guestfs-actions.pod:1353
26255 msgid ""
26256 "The four calls C<guestfs_copy_device_to_device>, "
26257 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26258 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26259 "destination (device|file)."
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1425
26264 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1532
26265 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1715
26266 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1791
26267 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2190
26268 #: ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:7721
26269 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8262
26270 #: ../src/guestfs-actions.pod:8285
26271 msgid ""
26272 "This long-running command can generate progress notification messages so "
26273 "that the caller can display a progress bar or indicator.  To receive these "
26274 "messages, the caller must register a progress event callback.  See L<guestfs"
26275 "(3)/GUESTFS_EVENT_PROGRESS>."
26276 msgstr ""
26277
26278 #. type: =head2
26279 #: ../src/guestfs-actions.pod:1379
26280 msgid "guestfs_copy_device_to_device_va"
26281 msgstr ""
26282
26283 #. type: verbatim
26284 #: ../src/guestfs-actions.pod:1381
26285 #, no-wrap
26286 msgid ""
26287 " int\n"
26288 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26289 "                                   const char *src,\n"
26290 "                                   const char *dest,\n"
26291 "                                   va_list args);\n"
26292 "\n"
26293 msgstr ""
26294
26295 #. type: textblock
26296 #: ../src/guestfs-actions.pod:1387
26297 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26298 msgstr ""
26299
26300 #. type: =head2
26301 #: ../src/guestfs-actions.pod:1391
26302 msgid "guestfs_copy_device_to_device_argv"
26303 msgstr ""
26304
26305 #. type: verbatim
26306 #: ../src/guestfs-actions.pod:1393
26307 #, no-wrap
26308 msgid ""
26309 " int\n"
26310 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26311 "                                     const char *src,\n"
26312 "                                     const char *dest,\n"
26313 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26314 "\n"
26315 msgstr ""
26316
26317 #. type: textblock
26318 #: ../src/guestfs-actions.pod:1399
26319 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26320 msgstr ""
26321
26322 #. type: =head2
26323 #: ../src/guestfs-actions.pod:1403
26324 msgid "guestfs_copy_device_to_file"
26325 msgstr ""
26326
26327 #. type: verbatim
26328 #: ../src/guestfs-actions.pod:1405
26329 #, no-wrap
26330 msgid ""
26331 " int\n"
26332 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26333 "                              const char *src,\n"
26334 "                              const char *dest,\n"
26335 "                              ...);\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:1416
26341 #, no-wrap
26342 msgid ""
26343 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26344 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26345 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26346 "\n"
26347 msgstr ""
26348
26349 #. type: textblock
26350 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1471
26351 #: ../src/guestfs-actions.pod:1522
26352 msgid ""
26353 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26354 msgstr ""
26355
26356 #. type: =head2
26357 #: ../src/guestfs-actions.pod:1430
26358 msgid "guestfs_copy_device_to_file_va"
26359 msgstr ""
26360
26361 #. type: verbatim
26362 #: ../src/guestfs-actions.pod:1432
26363 #, no-wrap
26364 msgid ""
26365 " int\n"
26366 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26367 "                                 const char *src,\n"
26368 "                                 const char *dest,\n"
26369 "                                 va_list args);\n"
26370 "\n"
26371 msgstr ""
26372
26373 #. type: textblock
26374 #: ../src/guestfs-actions.pod:1438
26375 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26376 msgstr ""
26377
26378 #. type: =head2
26379 #: ../src/guestfs-actions.pod:1442
26380 msgid "guestfs_copy_device_to_file_argv"
26381 msgstr ""
26382
26383 #. type: verbatim
26384 #: ../src/guestfs-actions.pod:1444
26385 #, no-wrap
26386 msgid ""
26387 " int\n"
26388 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26389 "                                   const char *src,\n"
26390 "                                   const char *dest,\n"
26391 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26392 "\n"
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../src/guestfs-actions.pod:1450
26397 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26398 msgstr ""
26399
26400 #. type: =head2
26401 #: ../src/guestfs-actions.pod:1454
26402 msgid "guestfs_copy_file_to_device"
26403 msgstr ""
26404
26405 #. type: verbatim
26406 #: ../src/guestfs-actions.pod:1456
26407 #, no-wrap
26408 msgid ""
26409 " int\n"
26410 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26411 "                              const char *src,\n"
26412 "                              const char *dest,\n"
26413 "                              ...);\n"
26414 "\n"
26415 msgstr ""
26416
26417 #. type: verbatim
26418 #: ../src/guestfs-actions.pod:1467
26419 #, no-wrap
26420 msgid ""
26421 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26422 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26423 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26424 "\n"
26425 msgstr ""
26426
26427 #. type: =head2
26428 #: ../src/guestfs-actions.pod:1481
26429 msgid "guestfs_copy_file_to_device_va"
26430 msgstr ""
26431
26432 #. type: verbatim
26433 #: ../src/guestfs-actions.pod:1483
26434 #, no-wrap
26435 msgid ""
26436 " int\n"
26437 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26438 "                                 const char *src,\n"
26439 "                                 const char *dest,\n"
26440 "                                 va_list args);\n"
26441 "\n"
26442 msgstr ""
26443
26444 #. type: textblock
26445 #: ../src/guestfs-actions.pod:1489
26446 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26447 msgstr ""
26448
26449 #. type: =head2
26450 #: ../src/guestfs-actions.pod:1493
26451 msgid "guestfs_copy_file_to_device_argv"
26452 msgstr ""
26453
26454 #. type: verbatim
26455 #: ../src/guestfs-actions.pod:1495
26456 #, no-wrap
26457 msgid ""
26458 " int\n"
26459 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26460 "                                   const char *src,\n"
26461 "                                   const char *dest,\n"
26462 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../src/guestfs-actions.pod:1501
26468 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26469 msgstr ""
26470
26471 #. type: =head2
26472 #: ../src/guestfs-actions.pod:1505
26473 msgid "guestfs_copy_file_to_file"
26474 msgstr ""
26475
26476 #. type: verbatim
26477 #: ../src/guestfs-actions.pod:1507
26478 #, no-wrap
26479 msgid ""
26480 " int\n"
26481 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26482 "                            const char *src,\n"
26483 "                            const char *dest,\n"
26484 "                            ...);\n"
26485 "\n"
26486 msgstr ""
26487
26488 #. type: verbatim
26489 #: ../src/guestfs-actions.pod:1518
26490 #, no-wrap
26491 msgid ""
26492 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26493 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26494 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:1525
26500 msgid ""
26501 "This is B<not> the function you want for copying files.  This is for copying "
26502 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26503 "C<guestfs_mv> for general file copying and moving functions."
26504 msgstr ""
26505
26506 #. type: =head2
26507 #: ../src/guestfs-actions.pod:1537
26508 msgid "guestfs_copy_file_to_file_va"
26509 msgstr ""
26510
26511 #. type: verbatim
26512 #: ../src/guestfs-actions.pod:1539
26513 #, no-wrap
26514 msgid ""
26515 " int\n"
26516 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26517 "                               const char *src,\n"
26518 "                               const char *dest,\n"
26519 "                               va_list args);\n"
26520 "\n"
26521 msgstr ""
26522
26523 #. type: textblock
26524 #: ../src/guestfs-actions.pod:1545
26525 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:1549
26530 msgid "guestfs_copy_file_to_file_argv"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:1551
26535 #, no-wrap
26536 msgid ""
26537 " int\n"
26538 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26539 "                                 const char *src,\n"
26540 "                                 const char *dest,\n"
26541 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
26542 "\n"
26543 msgstr ""
26544
26545 #. type: textblock
26546 #: ../src/guestfs-actions.pod:1557
26547 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../src/guestfs-actions.pod:1561
26552 msgid "guestfs_copy_size"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../src/guestfs-actions.pod:1563
26557 #, no-wrap
26558 msgid ""
26559 " int\n"
26560 " guestfs_copy_size (guestfs_h *g,\n"
26561 "                    const char *src,\n"
26562 "                    const char *dest,\n"
26563 "                    int64_t size);\n"
26564 "\n"
26565 msgstr ""
26566
26567 #. type: textblock
26568 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1626
26569 msgid ""
26570 "I<This function is deprecated.> In new code, use the L</"
26571 "guestfs_copy_device_to_device> call instead."
26572 msgstr ""
26573
26574 #. type: textblock
26575 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:4821
26576 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:7956
26577 #: ../src/guestfs-actions.pod:7976 ../src/guestfs-actions.pod:8062
26578 msgid "(Added in 1.0.87)"
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:1591
26583 msgid "guestfs_cp"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:1593
26588 #, no-wrap
26589 msgid ""
26590 " int\n"
26591 " guestfs_cp (guestfs_h *g,\n"
26592 "             const char *src,\n"
26593 "             const char *dest);\n"
26594 "\n"
26595 msgstr ""
26596
26597 #. type: textblock
26598 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1617
26599 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1771
26600 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:5565
26601 #: ../src/guestfs-actions.pod:6058
26602 msgid "(Added in 1.0.18)"
26603 msgstr ""
26604
26605 #. type: =head2
26606 #: ../src/guestfs-actions.pod:1605
26607 msgid "guestfs_cp_a"
26608 msgstr ""
26609
26610 #. type: verbatim
26611 #: ../src/guestfs-actions.pod:1607
26612 #, no-wrap
26613 msgid ""
26614 " int\n"
26615 " guestfs_cp_a (guestfs_h *g,\n"
26616 "               const char *src,\n"
26617 "               const char *dest);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:1619
26623 msgid "guestfs_dd"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:1621
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_dd (guestfs_h *g,\n"
26632 "             const char *src,\n"
26633 "             const char *dest);\n"
26634 "\n"
26635 msgstr ""
26636
26637 #. type: textblock
26638 #: ../src/guestfs-actions.pod:1638
26639 msgid ""
26640 "If the destination is a device, it must be as large or larger than the "
26641 "source file or device, otherwise the copy will fail.  This command cannot do "
26642 "partial copies (see C<guestfs_copy_device_to_device>)."
26643 msgstr ""
26644
26645 #. type: =head2
26646 #: ../src/guestfs-actions.pod:1647
26647 msgid "guestfs_df"
26648 msgstr ""
26649
26650 #. type: verbatim
26651 #: ../src/guestfs-actions.pod:1649
26652 #, no-wrap
26653 msgid ""
26654 " char *\n"
26655 " guestfs_df (guestfs_h *g);\n"
26656 "\n"
26657 msgstr ""
26658
26659 #. type: textblock
26660 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1671
26661 msgid ""
26662 "This command is mostly useful for interactive sessions.  It is I<not> "
26663 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26664 "from programs."
26665 msgstr ""
26666
26667 #. type: textblock
26668 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1678
26669 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:2803
26670 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2895
26671 #: ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:5465
26672 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7483
26673 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8115
26674 #: ../src/guestfs-actions.pod:8128
26675 msgid "(Added in 1.0.54)"
26676 msgstr ""
26677
26678 #. type: =head2
26679 #: ../src/guestfs-actions.pod:1663
26680 msgid "guestfs_df_h"
26681 msgstr ""
26682
26683 #. type: verbatim
26684 #: ../src/guestfs-actions.pod:1665
26685 #, no-wrap
26686 msgid ""
26687 " char *\n"
26688 " guestfs_df_h (guestfs_h *g);\n"
26689 "\n"
26690 msgstr ""
26691
26692 #. type: =head2
26693 #: ../src/guestfs-actions.pod:1680
26694 msgid "guestfs_dmesg"
26695 msgstr ""
26696
26697 #. type: verbatim
26698 #: ../src/guestfs-actions.pod:1682
26699 #, no-wrap
26700 msgid ""
26701 " char *\n"
26702 " guestfs_dmesg (guestfs_h *g);\n"
26703 "\n"
26704 msgstr ""
26705
26706 #. type: textblock
26707 #: ../src/guestfs-actions.pod:1689
26708 msgid ""
26709 "Another way to get the same information is to enable verbose messages with "
26710 "C<guestfs_set_verbose> or by setting the environment variable "
26711 "C<LIBGUESTFS_DEBUG=1> before running the program."
26712 msgstr ""
26713
26714 #. type: =head2
26715 #: ../src/guestfs-actions.pod:1699
26716 msgid "guestfs_download"
26717 msgstr ""
26718
26719 #. type: verbatim
26720 #: ../src/guestfs-actions.pod:1701
26721 #, no-wrap
26722 msgid ""
26723 " int\n"
26724 " guestfs_download (guestfs_h *g,\n"
26725 "                   const char *remotefilename,\n"
26726 "                   const char *filename);\n"
26727 "\n"
26728 msgstr ""
26729
26730 #. type: textblock
26731 #: ../src/guestfs-actions.pod:1711
26732 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26733 msgstr ""
26734
26735 #. type: =head2
26736 #: ../src/guestfs-actions.pod:1722
26737 msgid "guestfs_download_offset"
26738 msgstr ""
26739
26740 #. type: verbatim
26741 #: ../src/guestfs-actions.pod:1724
26742 #, no-wrap
26743 msgid ""
26744 " int\n"
26745 " guestfs_download_offset (guestfs_h *g,\n"
26746 "                          const char *remotefilename,\n"
26747 "                          const char *filename,\n"
26748 "                          int64_t offset,\n"
26749 "                          int64_t size);\n"
26750 "\n"
26751 msgstr ""
26752
26753 #. type: textblock
26754 #: ../src/guestfs-actions.pod:1737
26755 msgid ""
26756 "Note that there is no limit on the amount of data that can be downloaded "
26757 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26758 "full amount unless an error occurs."
26759 msgstr ""
26760
26761 #. type: textblock
26762 #: ../src/guestfs-actions.pod:1742
26763 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:7760
26768 msgid "(Added in 1.5.17)"
26769 msgstr ""
26770
26771 #. type: =head2
26772 #: ../src/guestfs-actions.pod:1753
26773 msgid "guestfs_drop_caches"
26774 msgstr ""
26775
26776 #. type: verbatim
26777 #: ../src/guestfs-actions.pod:1755
26778 #, no-wrap
26779 msgid ""
26780 " int\n"
26781 " guestfs_drop_caches (guestfs_h *g,\n"
26782 "                      int whattodrop);\n"
26783 "\n"
26784 msgstr ""
26785
26786 #. type: =head2
26787 #: ../src/guestfs-actions.pod:1773
26788 msgid "guestfs_du"
26789 msgstr ""
26790
26791 #. type: verbatim
26792 #: ../src/guestfs-actions.pod:1775
26793 #, no-wrap
26794 msgid ""
26795 " int64_t\n"
26796 " guestfs_du (guestfs_h *g,\n"
26797 "             const char *path);\n"
26798 "\n"
26799 msgstr ""
26800
26801 #. type: =head2
26802 #: ../src/guestfs-actions.pod:1798
26803 msgid "guestfs_e2fsck_f"
26804 msgstr ""
26805
26806 #. type: verbatim
26807 #: ../src/guestfs-actions.pod:1800
26808 #, no-wrap
26809 msgid ""
26810 " int\n"
26811 " guestfs_e2fsck_f (guestfs_h *g,\n"
26812 "                   const char *device);\n"
26813 "\n"
26814 msgstr ""
26815
26816 #. type: textblock
26817 #: ../src/guestfs-actions.pod:1808
26818 msgid ""
26819 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26820 "Normally you should use C<guestfs_fsck>."
26821 msgstr ""
26822
26823 #. type: textblock
26824 #: ../src/guestfs-actions.pod:1813
26825 msgid "(Added in 1.0.29)"
26826 msgstr ""
26827
26828 #. type: =head2
26829 #: ../src/guestfs-actions.pod:1815
26830 msgid "guestfs_echo_daemon"
26831 msgstr ""
26832
26833 #. type: verbatim
26834 #: ../src/guestfs-actions.pod:1817
26835 #, no-wrap
26836 msgid ""
26837 " char *\n"
26838 " guestfs_echo_daemon (guestfs_h *g,\n"
26839 "                      char *const *words);\n"
26840 "\n"
26841 msgstr ""
26842
26843 #. type: textblock
26844 #: ../src/guestfs-actions.pod:1826
26845 msgid "See also C<guestfs_ping_daemon>."
26846 msgstr ""
26847
26848 #. type: textblock
26849 #: ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:2589
26850 #: ../src/guestfs-actions.pod:6931
26851 msgid "(Added in 1.0.69)"
26852 msgstr ""
26853
26854 #. type: =head2
26855 #: ../src/guestfs-actions.pod:1833
26856 msgid "guestfs_egrep"
26857 msgstr ""
26858
26859 #. type: verbatim
26860 #: ../src/guestfs-actions.pod:1835
26861 #, no-wrap
26862 msgid ""
26863 " char **\n"
26864 " guestfs_egrep (guestfs_h *g,\n"
26865 "                const char *regex,\n"
26866 "                const char *path);\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1869
26872 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1972
26873 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2719
26874 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2916
26875 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2944
26876 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3012
26877 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:4311
26878 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4338
26879 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5353
26880 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6441
26881 #: ../src/guestfs-actions.pod:7327 ../src/guestfs-actions.pod:7339
26882 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7365
26883 #: ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7400
26884 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426
26885 #: ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8239
26886 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8352
26887 #: ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8417
26888 msgid "(Added in 1.0.66)"
26889 msgstr ""
26890
26891 #. type: =head2
26892 #: ../src/guestfs-actions.pod:1852
26893 msgid "guestfs_egrepi"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:1854
26898 #, no-wrap
26899 msgid ""
26900 " char **\n"
26901 " guestfs_egrepi (guestfs_h *g,\n"
26902 "                 const char *regex,\n"
26903 "                 const char *path);\n"
26904 "\n"
26905 msgstr ""
26906
26907 #. type: =head2
26908 #: ../src/guestfs-actions.pod:1871
26909 msgid "guestfs_equal"
26910 msgstr ""
26911
26912 #. type: verbatim
26913 #: ../src/guestfs-actions.pod:1873
26914 #, no-wrap
26915 msgid ""
26916 " int\n"
26917 " guestfs_equal (guestfs_h *g,\n"
26918 "                const char *file1,\n"
26919 "                const char *file2);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: =head2
26924 #: ../src/guestfs-actions.pod:1887
26925 msgid "guestfs_exists"
26926 msgstr ""
26927
26928 #. type: verbatim
26929 #: ../src/guestfs-actions.pod:1889
26930 #, no-wrap
26931 msgid ""
26932 " int\n"
26933 " guestfs_exists (guestfs_h *g,\n"
26934 "                 const char *path);\n"
26935 "\n"
26936 msgstr ""
26937
26938 #. type: textblock
26939 #: ../src/guestfs-actions.pod:1896
26940 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26941 msgstr ""
26942
26943 #. type: =head2
26944 #: ../src/guestfs-actions.pod:1902
26945 msgid "guestfs_fallocate"
26946 msgstr ""
26947
26948 #. type: verbatim
26949 #: ../src/guestfs-actions.pod:1904
26950 #, no-wrap
26951 msgid ""
26952 " int\n"
26953 " guestfs_fallocate (guestfs_h *g,\n"
26954 "                    const char *path,\n"
26955 "                    int len);\n"
26956 "\n"
26957 msgstr ""
26958
26959 #. type: textblock
26960 #: ../src/guestfs-actions.pod:1909
26961 msgid ""
26962 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26963 "call instead."
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:1928
26968 msgid "guestfs_fallocate64"
26969 msgstr ""
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:1930
26973 #, no-wrap
26974 msgid ""
26975 " int\n"
26976 " guestfs_fallocate64 (guestfs_h *g,\n"
26977 "                      const char *path,\n"
26978 "                      int64_t len);\n"
26979 "\n"
26980 msgstr ""
26981
26982 #. type: textblock
26983 #: ../src/guestfs-actions.pod:1939
26984 msgid ""
26985 "Note that this call allocates disk blocks for the file.  To create a sparse "
26986 "file use C<guestfs_truncate_size> instead."
26987 msgstr ""
26988
26989 #. type: textblock
26990 #: ../src/guestfs-actions.pod:1942
26991 msgid ""
26992 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26993 "oversight it only allowed 30 bit lengths to be specified, effectively "
26994 "limiting the maximum size of files created through that call to 1GB."
26995 msgstr ""
26996
26997 #. type: textblock
26998 #: ../src/guestfs-actions.pod:1953
26999 msgid "(Added in 1.3.17)"
27000 msgstr ""
27001
27002 #. type: =head2
27003 #: ../src/guestfs-actions.pod:1955
27004 msgid "guestfs_fgrep"
27005 msgstr ""
27006
27007 #. type: verbatim
27008 #: ../src/guestfs-actions.pod:1957
27009 #, no-wrap
27010 msgid ""
27011 " char **\n"
27012 " guestfs_fgrep (guestfs_h *g,\n"
27013 "                const char *pattern,\n"
27014 "                const char *path);\n"
27015 "\n"
27016 msgstr ""
27017
27018 #. type: =head2
27019 #: ../src/guestfs-actions.pod:1974
27020 msgid "guestfs_fgrepi"
27021 msgstr ""
27022
27023 #. type: verbatim
27024 #: ../src/guestfs-actions.pod:1976
27025 #, no-wrap
27026 msgid ""
27027 " char **\n"
27028 " guestfs_fgrepi (guestfs_h *g,\n"
27029 "                 const char *pattern,\n"
27030 "                 const char *path);\n"
27031 "\n"
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:1993
27036 msgid "guestfs_file"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:1995
27041 #, no-wrap
27042 msgid ""
27043 " char *\n"
27044 " guestfs_file (guestfs_h *g,\n"
27045 "               const char *path);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../src/guestfs-actions.pod:2013
27051 msgid ""
27052 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27053 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../src/guestfs-actions.pod:2021
27058 msgid "guestfs_file_architecture"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../src/guestfs-actions.pod:2023
27063 #, no-wrap
27064 msgid ""
27065 " char *\n"
27066 " guestfs_file_architecture (guestfs_h *g,\n"
27067 "                            const char *filename);\n"
27068 "\n"
27069 msgstr ""
27070
27071 #. type: textblock
27072 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2294
27073 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3045
27074 #: ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3213
27075 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3418
27076 #: ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3534
27077 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3868
27078 #: ../src/guestfs-actions.pod:4000
27079 msgid "(Added in 1.5.3)"
27080 msgstr ""
27081
27082 #. type: =head2
27083 #: ../src/guestfs-actions.pod:2133
27084 msgid "guestfs_filesize"
27085 msgstr ""
27086
27087 #. type: verbatim
27088 #: ../src/guestfs-actions.pod:2135
27089 #, no-wrap
27090 msgid ""
27091 " int64_t\n"
27092 " guestfs_filesize (guestfs_h *g,\n"
27093 "                   const char *file);\n"
27094 "\n"
27095 msgstr ""
27096
27097 #. type: textblock
27098 #: ../src/guestfs-actions.pod:2141
27099 msgid ""
27100 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27101 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27102 "devices, use C<guestfs_blockdev_getsize64>."
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../src/guestfs-actions.pod:2147
27107 msgid "(Added in 1.0.82)"
27108 msgstr ""
27109
27110 #. type: =head2
27111 #: ../src/guestfs-actions.pod:2149
27112 msgid "guestfs_fill"
27113 msgstr ""
27114
27115 #. type: verbatim
27116 #: ../src/guestfs-actions.pod:2151
27117 #, no-wrap
27118 msgid ""
27119 " int\n"
27120 " guestfs_fill (guestfs_h *g,\n"
27121 "               int c,\n"
27122 "               int len,\n"
27123 "               const char *path);\n"
27124 "\n"
27125 msgstr ""
27126
27127 #. type: textblock
27128 #: ../src/guestfs-actions.pod:2161
27129 msgid ""
27130 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27131 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27132 "bytes use C<guestfs_fill_pattern>."
27133 msgstr ""
27134
27135 #. type: textblock
27136 #: ../src/guestfs-actions.pod:2173
27137 msgid "(Added in 1.0.79)"
27138 msgstr ""
27139
27140 #. type: =head2
27141 #: ../src/guestfs-actions.pod:2175
27142 msgid "guestfs_fill_pattern"
27143 msgstr ""
27144
27145 #. type: verbatim
27146 #: ../src/guestfs-actions.pod:2177
27147 #, no-wrap
27148 msgid ""
27149 " int\n"
27150 " guestfs_fill_pattern (guestfs_h *g,\n"
27151 "                       const char *pattern,\n"
27152 "                       int len,\n"
27153 "                       const char *path);\n"
27154 "\n"
27155 msgstr ""
27156
27157 #. type: textblock
27158 #: ../src/guestfs-actions.pod:2183
27159 msgid ""
27160 "This function is like C<guestfs_fill> except that it creates a new file of "
27161 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27162 "pattern is truncated if necessary to ensure the length of the file is "
27163 "exactly C<len> bytes."
27164 msgstr ""
27165
27166 #. type: textblock
27167 #: ../src/guestfs-actions.pod:2195
27168 msgid "(Added in 1.3.12)"
27169 msgstr ""
27170
27171 #. type: =head2
27172 #: ../src/guestfs-actions.pod:2197
27173 msgid "guestfs_find"
27174 msgstr ""
27175
27176 #. type: verbatim
27177 #: ../src/guestfs-actions.pod:2199
27178 #, no-wrap
27179 msgid ""
27180 " char **\n"
27181 " guestfs_find (guestfs_h *g,\n"
27182 "               const char *directory);\n"
27183 "\n"
27184 msgstr ""
27185
27186 #. type: textblock
27187 #: ../src/guestfs-actions.pod:2215
27188 msgid ""
27189 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27190 msgstr ""
27191
27192 #. type: textblock
27193 #: ../src/guestfs-actions.pod:2228
27194 msgid "See also C<guestfs_find0>."
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4758
27199 #: ../src/guestfs-actions.pod:6476
27200 msgid "(Added in 1.0.27)"
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:2239
27205 msgid "guestfs_find0"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:2241
27210 #, no-wrap
27211 msgid ""
27212 " int\n"
27213 " guestfs_find0 (guestfs_h *g,\n"
27214 "                const char *directory,\n"
27215 "                const char *files);\n"
27216 "\n"
27217 msgstr ""
27218
27219 #. type: textblock
27220 #: ../src/guestfs-actions.pod:2250
27221 msgid ""
27222 "This command works the same way as C<guestfs_find> with the following "
27223 "exceptions:"
27224 msgstr ""
27225
27226 #. type: textblock
27227 #: ../src/guestfs-actions.pod:2277
27228 msgid "(Added in 1.0.74)"
27229 msgstr ""
27230
27231 #. type: =head2
27232 #: ../src/guestfs-actions.pod:2279
27233 msgid "guestfs_findfs_label"
27234 msgstr ""
27235
27236 #. type: verbatim
27237 #: ../src/guestfs-actions.pod:2281
27238 #, no-wrap
27239 msgid ""
27240 " char *\n"
27241 " guestfs_findfs_label (guestfs_h *g,\n"
27242 "                       const char *label);\n"
27243 "\n"
27244 msgstr ""
27245
27246 #. type: textblock
27247 #: ../src/guestfs-actions.pod:2289
27248 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27249 msgstr ""
27250
27251 #. type: =head2
27252 #: ../src/guestfs-actions.pod:2296
27253 msgid "guestfs_findfs_uuid"
27254 msgstr ""
27255
27256 #. type: verbatim
27257 #: ../src/guestfs-actions.pod:2298
27258 #, no-wrap
27259 msgid ""
27260 " char *\n"
27261 " guestfs_findfs_uuid (guestfs_h *g,\n"
27262 "                      const char *uuid);\n"
27263 "\n"
27264 msgstr ""
27265
27266 #. type: textblock
27267 #: ../src/guestfs-actions.pod:2306
27268 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../src/guestfs-actions.pod:2313
27273 msgid "guestfs_fsck"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../src/guestfs-actions.pod:2315
27278 #, no-wrap
27279 msgid ""
27280 " int\n"
27281 " guestfs_fsck (guestfs_h *g,\n"
27282 "               const char *fstype,\n"
27283 "               const char *device);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:8267
27289 msgid "(Added in 1.0.16)"
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:2352
27294 msgid "guestfs_get_append"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:2354
27299 #, no-wrap
27300 msgid ""
27301 " const char *\n"
27302 " guestfs_get_append (guestfs_h *g);\n"
27303 "\n"
27304 msgstr ""
27305
27306 #. type: textblock
27307 #: ../src/guestfs-actions.pod:2362
27308 msgid ""
27309 "This function returns a string which may be NULL.  There is no way to return "
27310 "an error from this function.  The string is owned by the guest handle and "
27311 "must I<not> be freed."
27312 msgstr ""
27313
27314 #. type: textblock
27315 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:6154
27316 #: ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:7094
27317 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7129
27318 #: ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7907
27319 #: ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8314
27320 msgid "(Added in 1.0.26)"
27321 msgstr ""
27322
27323 #. type: =head2
27324 #: ../src/guestfs-actions.pod:2368
27325 msgid "guestfs_get_attach_method"
27326 msgstr ""
27327
27328 #. type: verbatim
27329 #: ../src/guestfs-actions.pod:2370
27330 #, no-wrap
27331 msgid ""
27332 " char *\n"
27333 " guestfs_get_attach_method (guestfs_h *g);\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: textblock
27338 #: ../src/guestfs-actions.pod:2373
27339 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27340 msgstr ""
27341
27342 #. type: textblock
27343 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:6666
27344 msgid "(Added in 1.9.8)"
27345 msgstr ""
27346
27347 #. type: =head2
27348 #: ../src/guestfs-actions.pod:2380
27349 msgid "guestfs_get_autosync"
27350 msgstr ""
27351
27352 #. type: verbatim
27353 #: ../src/guestfs-actions.pod:2382
27354 #, no-wrap
27355 msgid ""
27356 " int\n"
27357 " guestfs_get_autosync (guestfs_h *g);\n"
27358 "\n"
27359 msgstr ""
27360
27361 #. type: =head2
27362 #: ../src/guestfs-actions.pod:2391
27363 msgid "guestfs_get_direct"
27364 msgstr ""
27365
27366 #. type: verbatim
27367 #: ../src/guestfs-actions.pod:2393
27368 #, no-wrap
27369 msgid ""
27370 " int\n"
27371 " guestfs_get_direct (guestfs_h *g);\n"
27372 "\n"
27373 msgstr ""
27374
27375 #. type: textblock
27376 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6707
27377 msgid "(Added in 1.0.72)"
27378 msgstr ""
27379
27380 #. type: =head2
27381 #: ../src/guestfs-actions.pod:2402
27382 msgid "guestfs_get_e2label"
27383 msgstr ""
27384
27385 #. type: verbatim
27386 #: ../src/guestfs-actions.pod:2404
27387 #, no-wrap
27388 msgid ""
27389 " char *\n"
27390 " guestfs_get_e2label (guestfs_h *g,\n"
27391 "                      const char *device);\n"
27392 "\n"
27393 msgstr ""
27394
27395 #. type: textblock
27396 #: ../src/guestfs-actions.pod:2408
27397 msgid ""
27398 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27399 "call instead."
27400 msgstr ""
27401
27402 #. type: textblock
27403 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2442
27404 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6744
27405 msgid "(Added in 1.0.15)"
27406 msgstr ""
27407
27408 #. type: =head2
27409 #: ../src/guestfs-actions.pod:2423
27410 msgid "guestfs_get_e2uuid"
27411 msgstr ""
27412
27413 #. type: verbatim
27414 #: ../src/guestfs-actions.pod:2425
27415 #, no-wrap
27416 msgid ""
27417 " char *\n"
27418 " guestfs_get_e2uuid (guestfs_h *g,\n"
27419 "                     const char *device);\n"
27420 "\n"
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:2429
27425 msgid ""
27426 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27427 "call instead."
27428 msgstr ""
27429
27430 #. type: =head2
27431 #: ../src/guestfs-actions.pod:2444
27432 msgid "guestfs_get_memsize"
27433 msgstr ""
27434
27435 #. type: verbatim
27436 #: ../src/guestfs-actions.pod:2446
27437 #, no-wrap
27438 msgid ""
27439 " int\n"
27440 " guestfs_get_memsize (guestfs_h *g);\n"
27441 "\n"
27442 msgstr ""
27443
27444 #. type: textblock
27445 #: ../src/guestfs-actions.pod:2452
27446 msgid ""
27447 "If C<guestfs_set_memsize> was not called on this handle, and if "
27448 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27449 "value for memsize."
27450 msgstr ""
27451
27452 #. type: textblock
27453 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:5049
27454 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5277
27455 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5308
27456 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5338
27457 #: ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6765
27458 #: ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7676
27459 msgid "(Added in 1.0.55)"
27460 msgstr ""
27461
27462 #. type: =head2
27463 #: ../src/guestfs-actions.pod:2463
27464 msgid "guestfs_get_network"
27465 msgstr ""
27466
27467 #. type: verbatim
27468 #: ../src/guestfs-actions.pod:2465
27469 #, no-wrap
27470 msgid ""
27471 " int\n"
27472 " guestfs_get_network (guestfs_h *g);\n"
27473 "\n"
27474 msgstr ""
27475
27476 #. type: textblock
27477 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:6784
27478 msgid "(Added in 1.5.4)"
27479 msgstr ""
27480
27481 #. type: =head2
27482 #: ../src/guestfs-actions.pod:2474
27483 msgid "guestfs_get_path"
27484 msgstr ""
27485
27486 #. type: verbatim
27487 #: ../src/guestfs-actions.pod:2476
27488 #, no-wrap
27489 msgid ""
27490 " const char *\n"
27491 " guestfs_get_path (guestfs_h *g);\n"
27492 "\n"
27493 msgstr ""
27494
27495 #. type: textblock
27496 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2524
27497 msgid ""
27498 "This function returns a string, or NULL on error.  The string is owned by "
27499 "the guest handle and must I<not> be freed."
27500 msgstr ""
27501
27502 #. type: =head2
27503 #: ../src/guestfs-actions.pod:2489
27504 msgid "guestfs_get_pgroup"
27505 msgstr ""
27506
27507 #. type: verbatim
27508 #: ../src/guestfs-actions.pod:2491
27509 #, no-wrap
27510 msgid ""
27511 " int\n"
27512 " guestfs_get_pgroup (guestfs_h *g);\n"
27513 "\n"
27514 msgstr ""
27515
27516 #. type: textblock
27517 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:6820
27518 #: ../src/guestfs-actions.pod:8168
27519 msgid "(Added in 1.11.18)"
27520 msgstr ""
27521
27522 #. type: =head2
27523 #: ../src/guestfs-actions.pod:2500
27524 msgid "guestfs_get_pid"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../src/guestfs-actions.pod:2502
27529 #, no-wrap
27530 msgid ""
27531 " int\n"
27532 " guestfs_get_pid (guestfs_h *g);\n"
27533 "\n"
27534 msgstr ""
27535
27536 #. type: textblock
27537 #: ../src/guestfs-actions.pod:2512
27538 msgid "(Added in 1.0.56)"
27539 msgstr ""
27540
27541 #. type: =head2
27542 #: ../src/guestfs-actions.pod:2514
27543 msgid "guestfs_get_qemu"
27544 msgstr ""
27545
27546 #. type: verbatim
27547 #: ../src/guestfs-actions.pod:2516
27548 #, no-wrap
27549 msgid ""
27550 " const char *\n"
27551 " guestfs_get_qemu (guestfs_h *g);\n"
27552 "\n"
27553 msgstr ""
27554
27555 #. type: textblock
27556 #: ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:6848
27557 msgid "(Added in 1.0.6)"
27558 msgstr ""
27559
27560 #. type: =head2
27561 #: ../src/guestfs-actions.pod:2529
27562 msgid "guestfs_get_recovery_proc"
27563 msgstr ""
27564
27565 #. type: verbatim
27566 #: ../src/guestfs-actions.pod:2531
27567 #, no-wrap
27568 msgid ""
27569 " int\n"
27570 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27571 "\n"
27572 msgstr ""
27573
27574 #. type: textblock
27575 #: ../src/guestfs-actions.pod:2538 ../src/guestfs-actions.pod:4122
27576 #: ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4856
27577 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:6084
27578 #: ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6872
27579 #: ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7599
27580 #: ../src/guestfs-actions.pod:7791
27581 msgid "(Added in 1.0.77)"
27582 msgstr ""
27583
27584 #. type: =head2
27585 #: ../src/guestfs-actions.pod:2540
27586 msgid "guestfs_get_selinux"
27587 msgstr ""
27588
27589 #. type: verbatim
27590 #: ../src/guestfs-actions.pod:2542
27591 #, no-wrap
27592 msgid ""
27593 " int\n"
27594 " guestfs_get_selinux (guestfs_h *g);\n"
27595 "\n"
27596 msgstr ""
27597
27598 #. type: textblock
27599 #: ../src/guestfs-actions.pod:2545
27600 msgid ""
27601 "This returns the current setting of the selinux flag which is passed to the "
27602 "appliance at boot time.  See C<guestfs_set_selinux>."
27603 msgstr ""
27604
27605 #. type: textblock
27606 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2627
27607 #: ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6965
27608 msgid "(Added in 1.0.67)"
27609 msgstr ""
27610
27611 #. type: =head2
27612 #: ../src/guestfs-actions.pod:2555
27613 msgid "guestfs_get_smp"
27614 msgstr ""
27615
27616 #. type: verbatim
27617 #: ../src/guestfs-actions.pod:2557
27618 #, no-wrap
27619 msgid ""
27620 " int\n"
27621 " guestfs_get_smp (guestfs_h *g);\n"
27622 "\n"
27623 msgstr ""
27624
27625 #. type: =head2
27626 #: ../src/guestfs-actions.pod:2566
27627 msgid "guestfs_get_state"
27628 msgstr ""
27629
27630 #. type: verbatim
27631 #: ../src/guestfs-actions.pod:2568
27632 #, no-wrap
27633 msgid ""
27634 " int\n"
27635 " guestfs_get_state (guestfs_h *g);\n"
27636 "\n"
27637 msgstr ""
27638
27639 #. type: =head2
27640 #: ../src/guestfs-actions.pod:2580
27641 msgid "guestfs_get_trace"
27642 msgstr ""
27643
27644 #. type: verbatim
27645 #: ../src/guestfs-actions.pod:2582
27646 #, no-wrap
27647 msgid ""
27648 " int\n"
27649 " guestfs_get_trace (guestfs_h *g);\n"
27650 "\n"
27651 msgstr ""
27652
27653 #. type: =head2
27654 #: ../src/guestfs-actions.pod:2591
27655 msgid "guestfs_get_umask"
27656 msgstr ""
27657
27658 #. type: verbatim
27659 #: ../src/guestfs-actions.pod:2593
27660 #, no-wrap
27661 msgid ""
27662 " int\n"
27663 " guestfs_get_umask (guestfs_h *g);\n"
27664 "\n"
27665 msgstr ""
27666
27667 #. type: textblock
27668 #: ../src/guestfs-actions.pod:2596
27669 msgid ""
27670 "Return the current umask.  By default the umask is C<022> unless it has been "
27671 "set by calling C<guestfs_umask>."
27672 msgstr ""
27673
27674 #. type: =head2
27675 #: ../src/guestfs-actions.pod:2603
27676 msgid "guestfs_get_verbose"
27677 msgstr ""
27678
27679 #. type: verbatim
27680 #: ../src/guestfs-actions.pod:2605
27681 #, no-wrap
27682 msgid ""
27683 " int\n"
27684 " guestfs_get_verbose (guestfs_h *g);\n"
27685 "\n"
27686 msgstr ""
27687
27688 #. type: =head2
27689 #: ../src/guestfs-actions.pod:2614
27690 msgid "guestfs_getcon"
27691 msgstr ""
27692
27693 #. type: verbatim
27694 #: ../src/guestfs-actions.pod:2616
27695 #, no-wrap
27696 msgid ""
27697 " char *\n"
27698 " guestfs_getcon (guestfs_h *g);\n"
27699 "\n"
27700 msgstr ""
27701
27702 #. type: textblock
27703 #: ../src/guestfs-actions.pod:2621
27704 msgid ""
27705 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27706 msgstr ""
27707
27708 #. type: =head2
27709 #: ../src/guestfs-actions.pod:2629
27710 msgid "guestfs_getxattr"
27711 msgstr ""
27712
27713 #. type: verbatim
27714 #: ../src/guestfs-actions.pod:2631
27715 #, no-wrap
27716 msgid ""
27717 " char *\n"
27718 " guestfs_getxattr (guestfs_h *g,\n"
27719 "                   const char *path,\n"
27720 "                   const char *name,\n"
27721 "                   size_t *size_r);\n"
27722 "\n"
27723 msgstr ""
27724
27725 #. type: textblock
27726 #: ../src/guestfs-actions.pod:2637
27727 msgid ""
27728 "Get a single extended attribute from file C<path> named C<name>.  This call "
27729 "follows symlinks.  If you want to lookup an extended attribute for the "
27730 "symlink itself, use C<guestfs_lgetxattr>."
27731 msgstr ""
27732
27733 #. type: textblock
27734 #: ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:4136
27735 msgid ""
27736 "Normally it is better to get all extended attributes from a file in one go "
27737 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27738 "implementations are buggy and do not provide a way to list out attributes.  "
27739 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27740 "extended attributes you want in advance and call this function."
27741 msgstr ""
27742
27743 #. type: textblock
27744 #: ../src/guestfs-actions.pod:2651
27745 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27746 msgstr ""
27747
27748 #. type: textblock
27749 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2866
27750 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:4148
27751 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6103
27752 #: ../src/guestfs-actions.pod:6284
27753 msgid ""
27754 "This function returns a buffer, or NULL on error.  The size of the returned "
27755 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27756 "after use>."
27757 msgstr ""
27758
27759 #. type: textblock
27760 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4152
27761 msgid "(Added in 1.7.24)"
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:2659
27766 msgid "guestfs_getxattrs"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:2661
27771 #, no-wrap
27772 msgid ""
27773 " struct guestfs_xattr_list *\n"
27774 " guestfs_getxattrs (guestfs_h *g,\n"
27775 "                    const char *path);\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: textblock
27780 #: ../src/guestfs-actions.pod:2671
27781 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27782 msgstr ""
27783
27784 #. type: textblock
27785 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:4164
27786 #: ../src/guestfs-actions.pod:4852
27787 msgid ""
27788 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27789 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27790 msgstr ""
27791
27792 #. type: textblock
27793 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:4168
27794 #: ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4403
27795 #: ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6984
27796 #: ../src/guestfs-actions.pod:8379
27797 msgid "(Added in 1.0.59)"
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../src/guestfs-actions.pod:2679
27802 msgid "guestfs_glob_expand"
27803 msgstr ""
27804
27805 #. type: verbatim
27806 #: ../src/guestfs-actions.pod:2681
27807 #, no-wrap
27808 msgid ""
27809 " char **\n"
27810 " guestfs_glob_expand (guestfs_h *g,\n"
27811 "                      const char *pattern);\n"
27812 "\n"
27813 msgstr ""
27814
27815 #. type: textblock
27816 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:7177
27817 #: ../src/guestfs-actions.pod:7194
27818 msgid "(Added in 1.0.50)"
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../src/guestfs-actions.pod:2702
27823 msgid "guestfs_grep"
27824 msgstr ""
27825
27826 #. type: verbatim
27827 #: ../src/guestfs-actions.pod:2704
27828 #, no-wrap
27829 msgid ""
27830 " char **\n"
27831 " guestfs_grep (guestfs_h *g,\n"
27832 "               const char *regex,\n"
27833 "               const char *path);\n"
27834 "\n"
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:2721
27839 msgid "guestfs_grepi"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:2723
27844 #, no-wrap
27845 msgid ""
27846 " char **\n"
27847 " guestfs_grepi (guestfs_h *g,\n"
27848 "                const char *regex,\n"
27849 "                const char *path);\n"
27850 "\n"
27851 msgstr ""
27852
27853 #. type: =head2
27854 #: ../src/guestfs-actions.pod:2740
27855 msgid "guestfs_grub_install"
27856 msgstr ""
27857
27858 #. type: verbatim
27859 #: ../src/guestfs-actions.pod:2742
27860 #, no-wrap
27861 msgid ""
27862 " int\n"
27863 " guestfs_grub_install (guestfs_h *g,\n"
27864 "                       const char *root,\n"
27865 "                       const char *device);\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: textblock
27870 #: ../src/guestfs-actions.pod:2785
27871 msgid "(Added in 1.0.17)"
27872 msgstr ""
27873
27874 #. type: =head2
27875 #: ../src/guestfs-actions.pod:2787
27876 msgid "guestfs_head"
27877 msgstr ""
27878
27879 #. type: verbatim
27880 #: ../src/guestfs-actions.pod:2789
27881 #, no-wrap
27882 msgid ""
27883 " char **\n"
27884 " guestfs_head (guestfs_h *g,\n"
27885 "               const char *path);\n"
27886 "\n"
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../src/guestfs-actions.pod:2805
27891 msgid "guestfs_head_n"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../src/guestfs-actions.pod:2807
27896 #, no-wrap
27897 msgid ""
27898 " char **\n"
27899 " guestfs_head_n (guestfs_h *g,\n"
27900 "                 int nrlines,\n"
27901 "                 const char *path);\n"
27902 "\n"
27903 msgstr ""
27904
27905 #. type: =head2
27906 #: ../src/guestfs-actions.pod:2829
27907 msgid "guestfs_hexdump"
27908 msgstr ""
27909
27910 #. type: verbatim
27911 #: ../src/guestfs-actions.pod:2831
27912 #, no-wrap
27913 msgid ""
27914 " char *\n"
27915 " guestfs_hexdump (guestfs_h *g,\n"
27916 "                  const char *path);\n"
27917 "\n"
27918 msgstr ""
27919
27920 #. type: textblock
27921 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:7258
27922 #: ../src/guestfs-actions.pod:7313
27923 msgid "(Added in 1.0.22)"
27924 msgstr ""
27925
27926 #. type: =head2
27927 #: ../src/guestfs-actions.pod:2846
27928 msgid "guestfs_initrd_cat"
27929 msgstr ""
27930
27931 #. type: verbatim
27932 #: ../src/guestfs-actions.pod:2848
27933 #, no-wrap
27934 msgid ""
27935 " char *\n"
27936 " guestfs_initrd_cat (guestfs_h *g,\n"
27937 "                     const char *initrdpath,\n"
27938 "                     const char *filename,\n"
27939 "                     size_t *size_r);\n"
27940 "\n"
27941 msgstr ""
27942
27943 #. type: textblock
27944 #: ../src/guestfs-actions.pod:2864
27945 msgid "See also C<guestfs_initrd_list>."
27946 msgstr ""
27947
27948 #. type: =head2
27949 #: ../src/guestfs-actions.pod:2875
27950 msgid "guestfs_initrd_list"
27951 msgstr ""
27952
27953 #. type: verbatim
27954 #: ../src/guestfs-actions.pod:2877
27955 #, no-wrap
27956 msgid ""
27957 " char **\n"
27958 " guestfs_initrd_list (guestfs_h *g,\n"
27959 "                      const char *path);\n"
27960 "\n"
27961 msgstr ""
27962
27963 #. type: =head2
27964 #: ../src/guestfs-actions.pod:2897
27965 msgid "guestfs_inotify_add_watch"
27966 msgstr ""
27967
27968 #. type: verbatim
27969 #: ../src/guestfs-actions.pod:2899
27970 #, no-wrap
27971 msgid ""
27972 " int64_t\n"
27973 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27974 "                            const char *path,\n"
27975 "                            int mask);\n"
27976 "\n"
27977 msgstr ""
27978
27979 #. type: =head2
27980 #: ../src/guestfs-actions.pod:2918
27981 msgid "guestfs_inotify_close"
27982 msgstr ""
27983
27984 #. type: verbatim
27985 #: ../src/guestfs-actions.pod:2920
27986 #, no-wrap
27987 msgid ""
27988 " int\n"
27989 " guestfs_inotify_close (guestfs_h *g);\n"
27990 "\n"
27991 msgstr ""
27992
27993 #. type: =head2
27994 #: ../src/guestfs-actions.pod:2931
27995 msgid "guestfs_inotify_files"
27996 msgstr ""
27997
27998 #. type: verbatim
27999 #: ../src/guestfs-actions.pod:2933
28000 #, no-wrap
28001 msgid ""
28002 " char **\n"
28003 " guestfs_inotify_files (guestfs_h *g);\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: textblock
28008 #: ../src/guestfs-actions.pod:2936
28009 msgid ""
28010 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28011 "returns a list of pathnames of objects that were touched.  The returned "
28012 "pathnames are sorted and deduplicated."
28013 msgstr ""
28014
28015 #. type: =head2
28016 #: ../src/guestfs-actions.pod:2946
28017 msgid "guestfs_inotify_init"
28018 msgstr ""
28019
28020 #. type: verbatim
28021 #: ../src/guestfs-actions.pod:2948
28022 #, no-wrap
28023 msgid ""
28024 " int\n"
28025 " guestfs_inotify_init (guestfs_h *g,\n"
28026 "                       int maxevents);\n"
28027 "\n"
28028 msgstr ""
28029
28030 #. type: textblock
28031 #: ../src/guestfs-actions.pod:2956
28032 msgid ""
28033 "C<maxevents> is the maximum number of events which will be queued up between "
28034 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28035 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28036 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28037 "throws away events, but records the fact that it threw them away by setting "
28038 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28039 "C<guestfs_inotify_read>)."
28040 msgstr ""
28041
28042 #. type: textblock
28043 #: ../src/guestfs-actions.pod:2966
28044 msgid ""
28045 "Before any events are generated, you have to add some watches to the "
28046 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28047 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28048 msgstr ""
28049
28050 #. type: textblock
28051 #: ../src/guestfs-actions.pod:2972
28052 msgid ""
28053 "Queued up events should be read periodically by calling "
28054 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28055 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28056 "often enough then you risk the internal queue overflowing."
28057 msgstr ""
28058
28059 #. type: textblock
28060 #: ../src/guestfs-actions.pod:2979
28061 msgid ""
28062 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28063 "This also removes any watches automatically."
28064 msgstr ""
28065
28066 #. type: =head2
28067 #: ../src/guestfs-actions.pod:2992
28068 msgid "guestfs_inotify_read"
28069 msgstr ""
28070
28071 #. type: verbatim
28072 #: ../src/guestfs-actions.pod:2994
28073 #, no-wrap
28074 msgid ""
28075 " struct guestfs_inotify_event_list *\n"
28076 " guestfs_inotify_read (guestfs_h *g);\n"
28077 "\n"
28078 msgstr ""
28079
28080 #. type: textblock
28081 #: ../src/guestfs-actions.pod:3008
28082 msgid ""
28083 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28084 "there was an error.  I<The caller must call "
28085 "C<guestfs_free_inotify_event_list> after use>."
28086 msgstr ""
28087
28088 #. type: =head2
28089 #: ../src/guestfs-actions.pod:3014
28090 msgid "guestfs_inotify_rm_watch"
28091 msgstr ""
28092
28093 #. type: verbatim
28094 #: ../src/guestfs-actions.pod:3016
28095 #, no-wrap
28096 msgid ""
28097 " int\n"
28098 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28099 "                           int wd);\n"
28100 "\n"
28101 msgstr ""
28102
28103 #. type: textblock
28104 #: ../src/guestfs-actions.pod:3020
28105 msgid ""
28106 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28107 msgstr ""
28108
28109 #. type: =head2
28110 #: ../src/guestfs-actions.pod:3027
28111 msgid "guestfs_inspect_get_arch"
28112 msgstr ""
28113
28114 #. type: verbatim
28115 #: ../src/guestfs-actions.pod:3029
28116 #, no-wrap
28117 msgid ""
28118 " char *\n"
28119 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28120 "                           const char *root);\n"
28121 "\n"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../src/guestfs-actions.pod:3033
28126 msgid ""
28127 "This returns the architecture of the inspected operating system.  The "
28128 "possible return values are listed under C<guestfs_file_architecture>."
28129 msgstr ""
28130
28131 #. type: =head2
28132 #: ../src/guestfs-actions.pod:3047
28133 msgid "guestfs_inspect_get_distro"
28134 msgstr ""
28135
28136 #. type: verbatim
28137 #: ../src/guestfs-actions.pod:3049
28138 #, no-wrap
28139 msgid ""
28140 " char *\n"
28141 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28142 "                             const char *root);\n"
28143 "\n"
28144 msgstr ""
28145
28146 #. type: =head2
28147 #: ../src/guestfs-actions.pod:3149
28148 msgid "guestfs_inspect_get_drive_mappings"
28149 msgstr ""
28150
28151 #. type: verbatim
28152 #: ../src/guestfs-actions.pod:3151
28153 #, no-wrap
28154 msgid ""
28155 " char **\n"
28156 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28157 "                                     const char *root);\n"
28158 "\n"
28159 msgstr ""
28160
28161 #. type: textblock
28162 #: ../src/guestfs-actions.pod:3180
28163 msgid ""
28164 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28165 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28166 msgstr ""
28167
28168 #. type: textblock
28169 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3452
28170 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:5527
28171 #: ../src/guestfs-actions.pod:7615
28172 msgid ""
28173 "This function returns a NULL-terminated array of strings, or NULL if there "
28174 "was an error.  The array of strings will always have length C<2n+1>, where "
28175 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28176 "caller must free the strings and the array after use>."
28177 msgstr ""
28178
28179 #. type: textblock
28180 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3651
28181 msgid "(Added in 1.9.17)"
28182 msgstr ""
28183
28184 #. type: =head2
28185 #: ../src/guestfs-actions.pod:3192
28186 msgid "guestfs_inspect_get_filesystems"
28187 msgstr ""
28188
28189 #. type: verbatim
28190 #: ../src/guestfs-actions.pod:3194
28191 #, no-wrap
28192 msgid ""
28193 " char **\n"
28194 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28195 "                                  const char *root);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../src/guestfs-actions.pod:3206
28201 msgid ""
28202 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28203 "C<guestfs_inspect_get_mountpoints>."
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../src/guestfs-actions.pod:3215
28208 msgid "guestfs_inspect_get_format"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:3217
28213 #, no-wrap
28214 msgid ""
28215 " char *\n"
28216 " guestfs_inspect_get_format (guestfs_h *g,\n"
28217 "                             const char *root);\n"
28218 "\n"
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3687
28223 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3721
28224 #: ../src/guestfs-actions.pod:6495
28225 msgid "(Added in 1.9.4)"
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:3253
28230 msgid "guestfs_inspect_get_hostname"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:3255
28235 #, no-wrap
28236 msgid ""
28237 " char *\n"
28238 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28239 "                               const char *root);\n"
28240 "\n"
28241 msgstr ""
28242
28243 #. type: textblock
28244 #: ../src/guestfs-actions.pod:3270
28245 msgid "(Added in 1.7.9)"
28246 msgstr ""
28247
28248 #. type: =head2
28249 #: ../src/guestfs-actions.pod:3272
28250 msgid "guestfs_inspect_get_icon"
28251 msgstr ""
28252
28253 #. type: verbatim
28254 #: ../src/guestfs-actions.pod:3274
28255 #, no-wrap
28256 msgid ""
28257 " char *\n"
28258 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28259 "                           const char *root,\n"
28260 "                           size_t *size_r,\n"
28261 "                           ...);\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:3285
28267 #, no-wrap
28268 msgid ""
28269 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28270 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28271 "\n"
28272 msgstr ""
28273
28274 #. type: textblock
28275 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:4182
28276 #: ../src/guestfs-actions.pod:5426
28277 msgid "(Added in 1.11.12)"
28278 msgstr ""
28279
28280 #. type: =head2
28281 #: ../src/guestfs-actions.pod:3354
28282 msgid "guestfs_inspect_get_icon_va"
28283 msgstr ""
28284
28285 #. type: verbatim
28286 #: ../src/guestfs-actions.pod:3356
28287 #, no-wrap
28288 msgid ""
28289 " char *\n"
28290 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28291 "                              const char *root,\n"
28292 "                              size_t *size_r,\n"
28293 "                              va_list args);\n"
28294 "\n"
28295 msgstr ""
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:3362
28299 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:3366
28304 msgid "guestfs_inspect_get_icon_argv"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:3368
28309 #, no-wrap
28310 msgid ""
28311 " char *\n"
28312 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28313 "                                const char *root,\n"
28314 "                                size_t *size_r,\n"
28315 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28316 "\n"
28317 msgstr ""
28318
28319 #. type: textblock
28320 #: ../src/guestfs-actions.pod:3374
28321 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:3378
28326 msgid "guestfs_inspect_get_major_version"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:3380
28331 #, no-wrap
28332 msgid ""
28333 " int\n"
28334 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28335 "                                    const char *root);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: =head2
28340 #: ../src/guestfs-actions.pod:3402
28341 msgid "guestfs_inspect_get_minor_version"
28342 msgstr ""
28343
28344 #. type: verbatim
28345 #: ../src/guestfs-actions.pod:3404
28346 #, no-wrap
28347 msgid ""
28348 " int\n"
28349 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28350 "                                    const char *root);\n"
28351 "\n"
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../src/guestfs-actions.pod:3413
28356 msgid ""
28357 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28358 "C<guestfs_inspect_get_major_version>."
28359 msgstr ""
28360
28361 #. type: =head2
28362 #: ../src/guestfs-actions.pod:3420
28363 msgid "guestfs_inspect_get_mountpoints"
28364 msgstr ""
28365
28366 #. type: verbatim
28367 #: ../src/guestfs-actions.pod:3422
28368 #, no-wrap
28369 msgid ""
28370 " char **\n"
28371 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28372 "                                  const char *root);\n"
28373 "\n"
28374 msgstr ""
28375
28376 #. type: textblock
28377 #: ../src/guestfs-actions.pod:3443
28378 msgid ""
28379 "For operating systems like Windows which still use drive letters, this call "
28380 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28381 "information about the mapping of drive letters to partitions, see "
28382 "C<guestfs_inspect_get_drive_mappings>."
28383 msgstr ""
28384
28385 #. type: textblock
28386 #: ../src/guestfs-actions.pod:3449
28387 msgid ""
28388 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28389 "C<guestfs_inspect_get_filesystems>."
28390 msgstr ""
28391
28392 #. type: =head2
28393 #: ../src/guestfs-actions.pod:3460
28394 msgid "guestfs_inspect_get_package_format"
28395 msgstr ""
28396
28397 #. type: verbatim
28398 #: ../src/guestfs-actions.pod:3462
28399 #, no-wrap
28400 msgid ""
28401 " char *\n"
28402 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28403 "                                     const char *root);\n"
28404 "\n"
28405 msgstr ""
28406
28407 #. type: textblock
28408 #: ../src/guestfs-actions.pod:3466
28409 msgid ""
28410 "This function and C<guestfs_inspect_get_package_management> return the "
28411 "package format and package management tool used by the inspected operating "
28412 "system.  For example for Fedora these functions would return C<rpm> (package "
28413 "format) and C<yum> (package management)."
28414 msgstr ""
28415
28416 #. type: textblock
28417 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3513
28418 msgid "(Added in 1.7.5)"
28419 msgstr ""
28420
28421 #. type: =head2
28422 #: ../src/guestfs-actions.pod:3487
28423 msgid "guestfs_inspect_get_package_management"
28424 msgstr ""
28425
28426 #. type: verbatim
28427 #: ../src/guestfs-actions.pod:3489
28428 #, no-wrap
28429 msgid ""
28430 " char *\n"
28431 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28432 "                                         const char *root);\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: textblock
28437 #: ../src/guestfs-actions.pod:3493
28438 msgid ""
28439 "C<guestfs_inspect_get_package_format> and this function return the package "
28440 "format and package management tool used by the inspected operating system.  "
28441 "For example for Fedora these functions would return C<rpm> (package format) "
28442 "and C<yum> (package management)."
28443 msgstr ""
28444
28445 #. type: =head2
28446 #: ../src/guestfs-actions.pod:3515
28447 msgid "guestfs_inspect_get_product_name"
28448 msgstr ""
28449
28450 #. type: verbatim
28451 #: ../src/guestfs-actions.pod:3517
28452 #, no-wrap
28453 msgid ""
28454 " char *\n"
28455 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28456 "                                   const char *root);\n"
28457 "\n"
28458 msgstr ""
28459
28460 #. type: =head2
28461 #: ../src/guestfs-actions.pod:3536
28462 msgid "guestfs_inspect_get_product_variant"
28463 msgstr ""
28464
28465 #. type: verbatim
28466 #: ../src/guestfs-actions.pod:3538
28467 #, no-wrap
28468 msgid ""
28469 " char *\n"
28470 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28471 "                                      const char *root);\n"
28472 "\n"
28473 msgstr ""
28474
28475 #. type: textblock
28476 #: ../src/guestfs-actions.pod:3561
28477 msgid ""
28478 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28479 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../src/guestfs-actions.pod:3568
28484 msgid "(Added in 1.9.13)"
28485 msgstr ""
28486
28487 #. type: =head2
28488 #: ../src/guestfs-actions.pod:3570
28489 msgid "guestfs_inspect_get_roots"
28490 msgstr ""
28491
28492 #. type: verbatim
28493 #: ../src/guestfs-actions.pod:3572
28494 #, no-wrap
28495 msgid ""
28496 " char **\n"
28497 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28498 "\n"
28499 msgstr ""
28500
28501 #. type: textblock
28502 #: ../src/guestfs-actions.pod:3575
28503 msgid ""
28504 "This function is a convenient way to get the list of root devices, as "
28505 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28506 "the whole inspection process."
28507 msgstr ""
28508
28509 #. type: textblock
28510 #: ../src/guestfs-actions.pod:3579
28511 msgid ""
28512 "This returns an empty list if either no root devices were found or the "
28513 "caller has not called C<guestfs_inspect_os>."
28514 msgstr ""
28515
28516 #. type: textblock
28517 #: ../src/guestfs-actions.pod:3588
28518 msgid "(Added in 1.7.3)"
28519 msgstr ""
28520
28521 #. type: =head2
28522 #: ../src/guestfs-actions.pod:3590
28523 msgid "guestfs_inspect_get_type"
28524 msgstr ""
28525
28526 #. type: verbatim
28527 #: ../src/guestfs-actions.pod:3592
28528 #, no-wrap
28529 msgid ""
28530 " char *\n"
28531 " guestfs_inspect_get_type (guestfs_h *g,\n"
28532 "                           const char *root);\n"
28533 "\n"
28534 msgstr ""
28535
28536 #. type: =head2
28537 #: ../src/guestfs-actions.pod:3633
28538 msgid "guestfs_inspect_get_windows_current_control_set"
28539 msgstr ""
28540
28541 #. type: verbatim
28542 #: ../src/guestfs-actions.pod:3635
28543 #, no-wrap
28544 msgid ""
28545 " char *\n"
28546 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28547 "                                                  const char *root);\n"
28548 "\n"
28549 msgstr ""
28550
28551 #. type: =head2
28552 #: ../src/guestfs-actions.pod:3653
28553 msgid "guestfs_inspect_get_windows_systemroot"
28554 msgstr ""
28555
28556 #. type: verbatim
28557 #: ../src/guestfs-actions.pod:3655
28558 #, no-wrap
28559 msgid ""
28560 " char *\n"
28561 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28562 "                                         const char *root);\n"
28563 "\n"
28564 msgstr ""
28565
28566 #. type: textblock
28567 #: ../src/guestfs-actions.pod:3671
28568 msgid "(Added in 1.5.25)"
28569 msgstr ""
28570
28571 #. type: =head2
28572 #: ../src/guestfs-actions.pod:3673
28573 msgid "guestfs_inspect_is_live"
28574 msgstr ""
28575
28576 #. type: verbatim
28577 #: ../src/guestfs-actions.pod:3675
28578 #, no-wrap
28579 msgid ""
28580 " int\n"
28581 " guestfs_inspect_is_live (guestfs_h *g,\n"
28582 "                          const char *root);\n"
28583 "\n"
28584 msgstr ""
28585
28586 #. type: textblock
28587 #: ../src/guestfs-actions.pod:3679
28588 msgid ""
28589 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28590 "disk), then this returns true if a live image was detected on the disk."
28591 msgstr ""
28592
28593 #. type: =head2
28594 #: ../src/guestfs-actions.pod:3689
28595 msgid "guestfs_inspect_is_multipart"
28596 msgstr ""
28597
28598 #. type: verbatim
28599 #: ../src/guestfs-actions.pod:3691
28600 #, no-wrap
28601 msgid ""
28602 " int\n"
28603 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28604 "                               const char *root);\n"
28605 "\n"
28606 msgstr ""
28607
28608 #. type: textblock
28609 #: ../src/guestfs-actions.pod:3695
28610 msgid ""
28611 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28612 "disk), then this returns true if the disk is part of a set."
28613 msgstr ""
28614
28615 #. type: =head2
28616 #: ../src/guestfs-actions.pod:3705
28617 msgid "guestfs_inspect_is_netinst"
28618 msgstr ""
28619
28620 #. type: verbatim
28621 #: ../src/guestfs-actions.pod:3707
28622 #, no-wrap
28623 msgid ""
28624 " int\n"
28625 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28626 "                             const char *root);\n"
28627 "\n"
28628 msgstr ""
28629
28630 #. type: textblock
28631 #: ../src/guestfs-actions.pod:3711
28632 msgid ""
28633 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28634 "disk), then this returns true if the disk is a network installer, ie. not a "
28635 "self-contained install CD but one which is likely to require network access "
28636 "to complete the install."
28637 msgstr ""
28638
28639 #. type: =head2
28640 #: ../src/guestfs-actions.pod:3723
28641 msgid "guestfs_inspect_list_applications"
28642 msgstr ""
28643
28644 #. type: verbatim
28645 #: ../src/guestfs-actions.pod:3725
28646 #, no-wrap
28647 msgid ""
28648 " struct guestfs_application_list *\n"
28649 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28650 "                                    const char *root);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../src/guestfs-actions.pod:3731
28656 msgid ""
28657 "I<Note:> This call works differently from other parts of the inspection "
28658 "API.  You have to call C<guestfs_inspect_os>, then "
28659 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28660 "this.  Listing applications is a significantly more difficult operation "
28661 "which requires access to the full filesystem.  Also note that unlike the "
28662 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28663 "the libguestfs handle, this call actually reads parts of the mounted "
28664 "filesystems during the call."
28665 msgstr ""
28666
28667 #. type: textblock
28668 #: ../src/guestfs-actions.pod:3821
28669 msgid ""
28670 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28671 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28672 "after use>."
28673 msgstr ""
28674
28675 #. type: textblock
28676 #: ../src/guestfs-actions.pod:3825
28677 msgid "(Added in 1.7.8)"
28678 msgstr ""
28679
28680 #. type: =head2
28681 #: ../src/guestfs-actions.pod:3827
28682 msgid "guestfs_inspect_os"
28683 msgstr ""
28684
28685 #. type: verbatim
28686 #: ../src/guestfs-actions.pod:3829
28687 #, no-wrap
28688 msgid ""
28689 " char **\n"
28690 " guestfs_inspect_os (guestfs_h *g);\n"
28691 "\n"
28692 msgstr ""
28693
28694 #. type: textblock
28695 #: ../src/guestfs-actions.pod:3845
28696 msgid ""
28697 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28698 "functions in order to query further information about each operating system, "
28699 "such as the name and version."
28700 msgstr ""
28701
28702 #. type: textblock
28703 #: ../src/guestfs-actions.pod:3850
28704 msgid ""
28705 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28706 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28707 "the contents.  This should be called with no disks currently mounted.  The "
28708 "function may also use Augeas, so any existing Augeas handle will be closed."
28709 msgstr ""
28710
28711 #. type: textblock
28712 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4193
28713 #: ../src/guestfs-actions.pod:4275
28714 msgid "See also C<guestfs_list_filesystems>."
28715 msgstr ""
28716
28717 #. type: =head2
28718 #: ../src/guestfs-actions.pod:3870
28719 msgid "guestfs_is_blockdev"
28720 msgstr ""
28721
28722 #. type: verbatim
28723 #: ../src/guestfs-actions.pod:3872
28724 #, no-wrap
28725 msgid ""
28726 " int\n"
28727 " guestfs_is_blockdev (guestfs_h *g,\n"
28728 "                      const char *path);\n"
28729 "\n"
28730 msgstr ""
28731
28732 #. type: textblock
28733 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3908
28734 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3953
28735 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4025
28736 #: ../src/guestfs-actions.pod:4040
28737 msgid "See also C<guestfs_stat>."
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3912
28742 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4029
28743 #: ../src/guestfs-actions.pod:4044
28744 msgid "(Added in 1.5.10)"
28745 msgstr ""
28746
28747 #. type: =head2
28748 #: ../src/guestfs-actions.pod:3885
28749 msgid "guestfs_is_busy"
28750 msgstr ""
28751
28752 #. type: verbatim
28753 #: ../src/guestfs-actions.pod:3887
28754 #, no-wrap
28755 msgid ""
28756 " int\n"
28757 " guestfs_is_busy (guestfs_h *g);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: =head2
28762 #: ../src/guestfs-actions.pod:3899
28763 msgid "guestfs_is_chardev"
28764 msgstr ""
28765
28766 #. type: verbatim
28767 #: ../src/guestfs-actions.pod:3901
28768 #, no-wrap
28769 msgid ""
28770 " int\n"
28771 " guestfs_is_chardev (guestfs_h *g,\n"
28772 "                     const char *path);\n"
28773 "\n"
28774 msgstr ""
28775
28776 #. type: =head2
28777 #: ../src/guestfs-actions.pod:3914
28778 msgid "guestfs_is_config"
28779 msgstr ""
28780
28781 #. type: verbatim
28782 #: ../src/guestfs-actions.pod:3916
28783 #, no-wrap
28784 msgid ""
28785 " int\n"
28786 " guestfs_is_config (guestfs_h *g);\n"
28787 "\n"
28788 msgstr ""
28789
28790 #. type: =head2
28791 #: ../src/guestfs-actions.pod:3928
28792 msgid "guestfs_is_dir"
28793 msgstr ""
28794
28795 #. type: verbatim
28796 #: ../src/guestfs-actions.pod:3930
28797 #, no-wrap
28798 msgid ""
28799 " int\n"
28800 " guestfs_is_dir (guestfs_h *g,\n"
28801 "                 const char *path);\n"
28802 "\n"
28803 msgstr ""
28804
28805 #. type: =head2
28806 #: ../src/guestfs-actions.pod:3944
28807 msgid "guestfs_is_fifo"
28808 msgstr ""
28809
28810 #. type: verbatim
28811 #: ../src/guestfs-actions.pod:3946
28812 #, no-wrap
28813 msgid ""
28814 " int\n"
28815 " guestfs_is_fifo (guestfs_h *g,\n"
28816 "                  const char *path);\n"
28817 "\n"
28818 msgstr ""
28819
28820 #. type: =head2
28821 #: ../src/guestfs-actions.pod:3959
28822 msgid "guestfs_is_file"
28823 msgstr ""
28824
28825 #. type: verbatim
28826 #: ../src/guestfs-actions.pod:3961
28827 #, no-wrap
28828 msgid ""
28829 " int\n"
28830 " guestfs_is_file (guestfs_h *g,\n"
28831 "                  const char *path);\n"
28832 "\n"
28833 msgstr ""
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:3975
28837 msgid "guestfs_is_launching"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:3977
28842 #, no-wrap
28843 msgid ""
28844 " int\n"
28845 " guestfs_is_launching (guestfs_h *g);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: =head2
28850 #: ../src/guestfs-actions.pod:3989
28851 msgid "guestfs_is_lv"
28852 msgstr ""
28853
28854 #. type: verbatim
28855 #: ../src/guestfs-actions.pod:3991
28856 #, no-wrap
28857 msgid ""
28858 " int\n"
28859 " guestfs_is_lv (guestfs_h *g,\n"
28860 "                const char *device);\n"
28861 "\n"
28862 msgstr ""
28863
28864 #. type: =head2
28865 #: ../src/guestfs-actions.pod:4002
28866 msgid "guestfs_is_ready"
28867 msgstr ""
28868
28869 #. type: verbatim
28870 #: ../src/guestfs-actions.pod:4004
28871 #, no-wrap
28872 msgid ""
28873 " int\n"
28874 " guestfs_is_ready (guestfs_h *g);\n"
28875 "\n"
28876 msgstr ""
28877
28878 #. type: =head2
28879 #: ../src/guestfs-actions.pod:4016
28880 msgid "guestfs_is_socket"
28881 msgstr ""
28882
28883 #. type: verbatim
28884 #: ../src/guestfs-actions.pod:4018
28885 #, no-wrap
28886 msgid ""
28887 " int\n"
28888 " guestfs_is_socket (guestfs_h *g,\n"
28889 "                    const char *path);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:4031
28895 msgid "guestfs_is_symlink"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:4033
28900 #, no-wrap
28901 msgid ""
28902 " int\n"
28903 " guestfs_is_symlink (guestfs_h *g,\n"
28904 "                     const char *path);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:4046
28910 msgid "guestfs_is_zero"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:4048
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_is_zero (guestfs_h *g,\n"
28919 "                  const char *path);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4071
28925 msgid "(Added in 1.11.8)"
28926 msgstr ""
28927
28928 #. type: =head2
28929 #: ../src/guestfs-actions.pod:4059
28930 msgid "guestfs_is_zero_device"
28931 msgstr ""
28932
28933 #. type: verbatim
28934 #: ../src/guestfs-actions.pod:4061
28935 #, no-wrap
28936 msgid ""
28937 " int\n"
28938 " guestfs_is_zero_device (guestfs_h *g,\n"
28939 "                         const char *device);\n"
28940 "\n"
28941 msgstr ""
28942
28943 #. type: =head2
28944 #: ../src/guestfs-actions.pod:4073
28945 msgid "guestfs_kill_subprocess"
28946 msgstr ""
28947
28948 #. type: verbatim
28949 #: ../src/guestfs-actions.pod:4075
28950 #, no-wrap
28951 msgid ""
28952 " int\n"
28953 " guestfs_kill_subprocess (guestfs_h *g);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: =head2
28958 #: ../src/guestfs-actions.pod:4084
28959 msgid "guestfs_launch"
28960 msgstr ""
28961
28962 #. type: verbatim
28963 #: ../src/guestfs-actions.pod:4086
28964 #, no-wrap
28965 msgid ""
28966 " int\n"
28967 " guestfs_launch (guestfs_h *g);\n"
28968 "\n"
28969 msgstr ""
28970
28971 #. type: =head2
28972 #: ../src/guestfs-actions.pod:4104
28973 msgid "guestfs_lchown"
28974 msgstr ""
28975
28976 #. type: verbatim
28977 #: ../src/guestfs-actions.pod:4106
28978 #, no-wrap
28979 msgid ""
28980 " int\n"
28981 " guestfs_lchown (guestfs_h *g,\n"
28982 "                 int owner,\n"
28983 "                 int group,\n"
28984 "                 const char *path);\n"
28985 "\n"
28986 msgstr ""
28987
28988 #. type: textblock
28989 #: ../src/guestfs-actions.pod:4112
28990 msgid ""
28991 "Change the file owner to C<owner> and group to C<group>.  This is like "
28992 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28993 "changed, not the target."
28994 msgstr ""
28995
28996 #. type: =head2
28997 #: ../src/guestfs-actions.pod:4124
28998 msgid "guestfs_lgetxattr"
28999 msgstr ""
29000
29001 #. type: verbatim
29002 #: ../src/guestfs-actions.pod:4126
29003 #, no-wrap
29004 msgid ""
29005 " char *\n"
29006 " guestfs_lgetxattr (guestfs_h *g,\n"
29007 "                    const char *path,\n"
29008 "                    const char *name,\n"
29009 "                    size_t *size_r);\n"
29010 "\n"
29011 msgstr ""
29012
29013 #. type: textblock
29014 #: ../src/guestfs-actions.pod:4146
29015 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29016 msgstr ""
29017
29018 #. type: =head2
29019 #: ../src/guestfs-actions.pod:4154
29020 msgid "guestfs_lgetxattrs"
29021 msgstr ""
29022
29023 #. type: verbatim
29024 #: ../src/guestfs-actions.pod:4156
29025 #, no-wrap
29026 msgid ""
29027 " struct guestfs_xattr_list *\n"
29028 " guestfs_lgetxattrs (guestfs_h *g,\n"
29029 "                     const char *path);\n"
29030 "\n"
29031 msgstr ""
29032
29033 #. type: textblock
29034 #: ../src/guestfs-actions.pod:4160
29035 msgid ""
29036 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29037 "then it returns the extended attributes of the link itself."
29038 msgstr ""
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:4170
29042 msgid "guestfs_list_9p"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:4172
29047 #, no-wrap
29048 msgid ""
29049 " char **\n"
29050 " guestfs_list_9p (guestfs_h *g);\n"
29051 "\n"
29052 msgstr ""
29053
29054 #. type: =head2
29055 #: ../src/guestfs-actions.pod:4184
29056 msgid "guestfs_list_devices"
29057 msgstr ""
29058
29059 #. type: verbatim
29060 #: ../src/guestfs-actions.pod:4186
29061 #, no-wrap
29062 msgid ""
29063 " char **\n"
29064 " guestfs_list_devices (guestfs_h *g);\n"
29065 "\n"
29066 msgstr ""
29067
29068 #. type: =head2
29069 #: ../src/guestfs-actions.pod:4201
29070 msgid "guestfs_list_dm_devices"
29071 msgstr ""
29072
29073 #. type: verbatim
29074 #: ../src/guestfs-actions.pod:4203
29075 #, no-wrap
29076 msgid ""
29077 " char **\n"
29078 " guestfs_list_dm_devices (guestfs_h *g);\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:4208
29084 msgid ""
29085 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29086 "previous call to C<guestfs_luks_open>."
29087 msgstr ""
29088
29089 #. type: textblock
29090 #: ../src/guestfs-actions.pod:4211
29091 msgid ""
29092 "Device mapper devices which correspond to logical volumes are I<not> "
29093 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29094 "volumes."
29095 msgstr ""
29096
29097 #. type: textblock
29098 #: ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5665
29099 msgid "(Added in 1.11.15)"
29100 msgstr ""
29101
29102 #. type: =head2
29103 #: ../src/guestfs-actions.pod:4221
29104 msgid "guestfs_list_filesystems"
29105 msgstr ""
29106
29107 #. type: verbatim
29108 #: ../src/guestfs-actions.pod:4223
29109 #, no-wrap
29110 msgid ""
29111 " char **\n"
29112 " guestfs_list_filesystems (guestfs_h *g);\n"
29113 "\n"
29114 msgstr ""
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:4243
29118 msgid ""
29119 "This command runs other libguestfs commands, which might include "
29120 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29121 "soon after launch and only when nothing is mounted."
29122 msgstr ""
29123
29124 #. type: textblock
29125 #: ../src/guestfs-actions.pod:4247
29126 msgid ""
29127 "Not all of the filesystems returned will be mountable.  In particular, swap "
29128 "partitions are returned in the list.  Also this command does not check that "
29129 "each filesystem found is valid and mountable, and some filesystems might be "
29130 "mountable but require special options.  Filesystems may not all belong to a "
29131 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29132 msgstr ""
29133
29134 #. type: textblock
29135 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:6028
29136 msgid "(Added in 1.5.15)"
29137 msgstr ""
29138
29139 #. type: =head2
29140 #: ../src/guestfs-actions.pod:4263
29141 msgid "guestfs_list_partitions"
29142 msgstr ""
29143
29144 #. type: verbatim
29145 #: ../src/guestfs-actions.pod:4265
29146 #, no-wrap
29147 msgid ""
29148 " char **\n"
29149 " guestfs_list_partitions (guestfs_h *g);\n"
29150 "\n"
29151 msgstr ""
29152
29153 #. type: textblock
29154 #: ../src/guestfs-actions.pod:4272
29155 msgid ""
29156 "This does not return logical volumes.  For that you will need to call "
29157 "C<guestfs_lvs>."
29158 msgstr ""
29159
29160 #. type: =head2
29161 #: ../src/guestfs-actions.pod:4283
29162 msgid "guestfs_ll"
29163 msgstr ""
29164
29165 #. type: verbatim
29166 #: ../src/guestfs-actions.pod:4285
29167 #, no-wrap
29168 msgid ""
29169 " char *\n"
29170 " guestfs_ll (guestfs_h *g,\n"
29171 "             const char *directory);\n"
29172 "\n"
29173 msgstr ""
29174
29175 #. type: =head2
29176 #: ../src/guestfs-actions.pod:4300
29177 msgid "guestfs_ln"
29178 msgstr ""
29179
29180 #. type: verbatim
29181 #: ../src/guestfs-actions.pod:4302
29182 #, no-wrap
29183 msgid ""
29184 " int\n"
29185 " guestfs_ln (guestfs_h *g,\n"
29186 "             const char *target,\n"
29187 "             const char *linkname);\n"
29188 "\n"
29189 msgstr ""
29190
29191 #. type: =head2
29192 #: ../src/guestfs-actions.pod:4313
29193 msgid "guestfs_ln_f"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../src/guestfs-actions.pod:4315
29198 #, no-wrap
29199 msgid ""
29200 " int\n"
29201 " guestfs_ln_f (guestfs_h *g,\n"
29202 "               const char *target,\n"
29203 "               const char *linkname);\n"
29204 "\n"
29205 msgstr ""
29206
29207 #. type: =head2
29208 #: ../src/guestfs-actions.pod:4327
29209 msgid "guestfs_ln_s"
29210 msgstr ""
29211
29212 #. type: verbatim
29213 #: ../src/guestfs-actions.pod:4329
29214 #, no-wrap
29215 msgid ""
29216 " int\n"
29217 " guestfs_ln_s (guestfs_h *g,\n"
29218 "               const char *target,\n"
29219 "               const char *linkname);\n"
29220 "\n"
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:4340
29225 msgid "guestfs_ln_sf"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:4342
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_ln_sf (guestfs_h *g,\n"
29234 "                const char *target,\n"
29235 "                const char *linkname);\n"
29236 "\n"
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:4354
29241 msgid "guestfs_lremovexattr"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:4356
29246 #, no-wrap
29247 msgid ""
29248 " int\n"
29249 " guestfs_lremovexattr (guestfs_h *g,\n"
29250 "                       const char *xattr,\n"
29251 "                       const char *path);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: textblock
29256 #: ../src/guestfs-actions.pod:4361
29257 msgid ""
29258 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29259 "link, then it removes an extended attribute of the link itself."
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:4369
29264 msgid "guestfs_ls"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:4371
29269 #, no-wrap
29270 msgid ""
29271 " char **\n"
29272 " guestfs_ls (guestfs_h *g,\n"
29273 "             const char *directory);\n"
29274 "\n"
29275 msgstr ""
29276
29277 #. type: textblock
29278 #: ../src/guestfs-actions.pod:4379
29279 msgid ""
29280 "This command is mostly useful for interactive sessions.  Programs should "
29281 "probably use C<guestfs_readdir> instead."
29282 msgstr ""
29283
29284 #. type: =head2
29285 #: ../src/guestfs-actions.pod:4388
29286 msgid "guestfs_lsetxattr"
29287 msgstr ""
29288
29289 #. type: verbatim
29290 #: ../src/guestfs-actions.pod:4390
29291 #, no-wrap
29292 msgid ""
29293 " int\n"
29294 " guestfs_lsetxattr (guestfs_h *g,\n"
29295 "                    const char *xattr,\n"
29296 "                    const char *val,\n"
29297 "                    int vallen,\n"
29298 "                    const char *path);\n"
29299 "\n"
29300 msgstr ""
29301
29302 #. type: textblock
29303 #: ../src/guestfs-actions.pod:4397
29304 msgid ""
29305 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29306 "then it sets an extended attribute of the link itself."
29307 msgstr ""
29308
29309 #. type: =head2
29310 #: ../src/guestfs-actions.pod:4405
29311 msgid "guestfs_lstat"
29312 msgstr ""
29313
29314 #. type: verbatim
29315 #: ../src/guestfs-actions.pod:4407
29316 #, no-wrap
29317 msgid ""
29318 " struct guestfs_stat *\n"
29319 " guestfs_lstat (guestfs_h *g,\n"
29320 "                const char *path);\n"
29321 "\n"
29322 msgstr ""
29323
29324 #. type: textblock
29325 #: ../src/guestfs-actions.pod:4413
29326 msgid ""
29327 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29328 "link, then the link is stat-ed, not the file it refers to."
29329 msgstr ""
29330
29331 #. type: textblock
29332 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7218
29333 msgid ""
29334 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29335 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29336 msgstr ""
29337
29338 #. type: textblock
29339 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:7222
29340 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7621
29341 msgid "(Added in 0.9.2)"
29342 msgstr ""
29343
29344 #. type: =head2
29345 #: ../src/guestfs-actions.pod:4425
29346 msgid "guestfs_lstatlist"
29347 msgstr ""
29348
29349 #. type: verbatim
29350 #: ../src/guestfs-actions.pod:4427
29351 #, no-wrap
29352 msgid ""
29353 " struct guestfs_stat_list *\n"
29354 " guestfs_lstatlist (guestfs_h *g,\n"
29355 "                    const char *path,\n"
29356 "                    char *const *names);\n"
29357 "\n"
29358 msgstr ""
29359
29360 #. type: textblock
29361 #: ../src/guestfs-actions.pod:4432
29362 msgid ""
29363 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29364 "files, where all files are in the directory C<path>.  C<names> is the list "
29365 "of files from this directory."
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../src/guestfs-actions.pod:4441
29370 msgid ""
29371 "This call is intended for programs that want to efficiently list a directory "
29372 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29373 "for a similarly efficient call for getting extended attributes.  Very long "
29374 "directory listings might cause the protocol message size to be exceeded, "
29375 "causing this call to fail.  The caller must split up such requests into "
29376 "smaller groups of names."
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:4449
29381 msgid ""
29382 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29383 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29384 msgstr ""
29385
29386 #. type: =head2
29387 #: ../src/guestfs-actions.pod:4455
29388 msgid "guestfs_luks_add_key"
29389 msgstr ""
29390
29391 #. type: verbatim
29392 #: ../src/guestfs-actions.pod:4457
29393 #, no-wrap
29394 msgid ""
29395 " int\n"
29396 " guestfs_luks_add_key (guestfs_h *g,\n"
29397 "                       const char *device,\n"
29398 "                       const char *key,\n"
29399 "                       const char *newkey,\n"
29400 "                       int keyslot);\n"
29401 "\n"
29402 msgstr ""
29403
29404 #. type: textblock
29405 #: ../src/guestfs-actions.pod:4469
29406 msgid ""
29407 "Note that if C<keyslot> already contains a key, then this command will "
29408 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4515
29413 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
29414 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
29415 msgid ""
29416 "This function takes a key or passphrase parameter which could contain "
29417 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29418 "information."
29419 msgstr ""
29420
29421 #. type: textblock
29422 #: ../src/guestfs-actions.pod:4479 ../src/guestfs-actions.pod:4519
29423 #: ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4562
29424 msgid "(Added in 1.5.2)"
29425 msgstr ""
29426
29427 #. type: =head2
29428 #: ../src/guestfs-actions.pod:4481
29429 msgid "guestfs_luks_close"
29430 msgstr ""
29431
29432 #. type: verbatim
29433 #: ../src/guestfs-actions.pod:4483
29434 #, no-wrap
29435 msgid ""
29436 " int\n"
29437 " guestfs_luks_close (guestfs_h *g,\n"
29438 "                     const char *device);\n"
29439 "\n"
29440 msgstr ""
29441
29442 #. type: textblock
29443 #: ../src/guestfs-actions.pod:4487
29444 msgid ""
29445 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29446 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29447 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29448 "underlying block device."
29449 msgstr ""
29450
29451 #. type: textblock
29452 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4597
29453 #: ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4666
29454 #: ../src/guestfs-actions.pod:4714
29455 msgid "(Added in 1.5.1)"
29456 msgstr ""
29457
29458 #. type: =head2
29459 #: ../src/guestfs-actions.pod:4497
29460 msgid "guestfs_luks_format"
29461 msgstr ""
29462
29463 #. type: verbatim
29464 #: ../src/guestfs-actions.pod:4499
29465 #, no-wrap
29466 msgid ""
29467 " int\n"
29468 " guestfs_luks_format (guestfs_h *g,\n"
29469 "                      const char *device,\n"
29470 "                      const char *key,\n"
29471 "                      int keyslot);\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:4521
29477 msgid "guestfs_luks_format_cipher"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:4523
29482 #, no-wrap
29483 msgid ""
29484 " int\n"
29485 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29486 "                             const char *device,\n"
29487 "                             const char *key,\n"
29488 "                             int keyslot,\n"
29489 "                             const char *cipher);\n"
29490 "\n"
29491 msgstr ""
29492
29493 #. type: textblock
29494 #: ../src/guestfs-actions.pod:4530
29495 msgid ""
29496 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29497 "set the C<cipher> used."
29498 msgstr ""
29499
29500 #. type: =head2
29501 #: ../src/guestfs-actions.pod:4544
29502 msgid "guestfs_luks_kill_slot"
29503 msgstr ""
29504
29505 #. type: verbatim
29506 #: ../src/guestfs-actions.pod:4546
29507 #, no-wrap
29508 msgid ""
29509 " int\n"
29510 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29511 "                         const char *device,\n"
29512 "                         const char *key,\n"
29513 "                         int keyslot);\n"
29514 "\n"
29515 msgstr ""
29516
29517 #. type: =head2
29518 #: ../src/guestfs-actions.pod:4564
29519 msgid "guestfs_luks_open"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../src/guestfs-actions.pod:4566
29524 #, no-wrap
29525 msgid ""
29526 " int\n"
29527 " guestfs_luks_open (guestfs_h *g,\n"
29528 "                    const char *device,\n"
29529 "                    const char *key,\n"
29530 "                    const char *mapname);\n"
29531 "\n"
29532 msgstr ""
29533
29534 #. type: textblock
29535 #: ../src/guestfs-actions.pod:4584
29536 msgid ""
29537 "If this block device contains LVM volume groups, then calling "
29538 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29539 "visible."
29540 msgstr ""
29541
29542 #. type: textblock
29543 #: ../src/guestfs-actions.pod:4588
29544 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29545 msgstr ""
29546
29547 #. type: =head2
29548 #: ../src/guestfs-actions.pod:4599
29549 msgid "guestfs_luks_open_ro"
29550 msgstr ""
29551
29552 #. type: verbatim
29553 #: ../src/guestfs-actions.pod:4601
29554 #, no-wrap
29555 msgid ""
29556 " int\n"
29557 " guestfs_luks_open_ro (guestfs_h *g,\n"
29558 "                       const char *device,\n"
29559 "                       const char *key,\n"
29560 "                       const char *mapname);\n"
29561 "\n"
29562 msgstr ""
29563
29564 #. type: textblock
29565 #: ../src/guestfs-actions.pod:4607
29566 msgid ""
29567 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29568 "created."
29569 msgstr ""
29570
29571 #. type: =head2
29572 #: ../src/guestfs-actions.pod:4618
29573 msgid "guestfs_lvcreate"
29574 msgstr ""
29575
29576 #. type: verbatim
29577 #: ../src/guestfs-actions.pod:4620
29578 #, no-wrap
29579 msgid ""
29580 " int\n"
29581 " guestfs_lvcreate (guestfs_h *g,\n"
29582 "                   const char *logvol,\n"
29583 "                   const char *volgroup,\n"
29584 "                   int mbytes);\n"
29585 "\n"
29586 msgstr ""
29587
29588 #. type: =head2
29589 #: ../src/guestfs-actions.pod:4633
29590 msgid "guestfs_lvm_canonical_lv_name"
29591 msgstr ""
29592
29593 #. type: verbatim
29594 #: ../src/guestfs-actions.pod:4635
29595 #, no-wrap
29596 msgid ""
29597 " char *\n"
29598 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29599 "                                const char *lvname);\n"
29600 "\n"
29601 msgstr ""
29602
29603 #. type: textblock
29604 #: ../src/guestfs-actions.pod:4646
29605 msgid "See also C<guestfs_is_lv>."
29606 msgstr ""
29607
29608 #. type: textblock
29609 #: ../src/guestfs-actions.pod:4651
29610 msgid "(Added in 1.5.24)"
29611 msgstr ""
29612
29613 #. type: =head2
29614 #: ../src/guestfs-actions.pod:4653
29615 msgid "guestfs_lvm_clear_filter"
29616 msgstr ""
29617
29618 #. type: verbatim
29619 #: ../src/guestfs-actions.pod:4655
29620 #, no-wrap
29621 msgid ""
29622 " int\n"
29623 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29624 "\n"
29625 msgstr ""
29626
29627 #. type: textblock
29628 #: ../src/guestfs-actions.pod:4658
29629 msgid ""
29630 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29631 "see every block device."
29632 msgstr ""
29633
29634 #. type: =head2
29635 #: ../src/guestfs-actions.pod:4668
29636 msgid "guestfs_lvm_remove_all"
29637 msgstr ""
29638
29639 #. type: verbatim
29640 #: ../src/guestfs-actions.pod:4670
29641 #, no-wrap
29642 msgid ""
29643 " int\n"
29644 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29645 "\n"
29646 msgstr ""
29647
29648 #. type: =head2
29649 #: ../src/guestfs-actions.pod:4683
29650 msgid "guestfs_lvm_set_filter"
29651 msgstr ""
29652
29653 #. type: verbatim
29654 #: ../src/guestfs-actions.pod:4685
29655 #, no-wrap
29656 msgid ""
29657 " int\n"
29658 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29659 "                         char *const *devices);\n"
29660 "\n"
29661 msgstr ""
29662
29663 #. type: =head2
29664 #: ../src/guestfs-actions.pod:4716
29665 msgid "guestfs_lvremove"
29666 msgstr ""
29667
29668 #. type: verbatim
29669 #: ../src/guestfs-actions.pod:4718
29670 #, no-wrap
29671 msgid ""
29672 " int\n"
29673 " guestfs_lvremove (guestfs_h *g,\n"
29674 "                   const char *device);\n"
29675 "\n"
29676 msgstr ""
29677
29678 #. type: textblock
29679 #: ../src/guestfs-actions.pod:4730 ../src/guestfs-actions.pod:6141
29680 #: ../src/guestfs-actions.pod:7991
29681 msgid "(Added in 1.0.13)"
29682 msgstr ""
29683
29684 #. type: =head2
29685 #: ../src/guestfs-actions.pod:4732
29686 msgid "guestfs_lvrename"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-actions.pod:4734
29691 #, no-wrap
29692 msgid ""
29693 " int\n"
29694 " guestfs_lvrename (guestfs_h *g,\n"
29695 "                   const char *logvol,\n"
29696 "                   const char *newlogvol);\n"
29697 "\n"
29698 msgstr ""
29699
29700 #. type: textblock
29701 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:8004
29702 msgid "(Added in 1.0.83)"
29703 msgstr ""
29704
29705 #. type: =head2
29706 #: ../src/guestfs-actions.pod:4745
29707 msgid "guestfs_lvresize"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../src/guestfs-actions.pod:4747
29712 #, no-wrap
29713 msgid ""
29714 " int\n"
29715 " guestfs_lvresize (guestfs_h *g,\n"
29716 "                   const char *device,\n"
29717 "                   int mbytes);\n"
29718 "\n"
29719 msgstr ""
29720
29721 #. type: =head2
29722 #: ../src/guestfs-actions.pod:4760
29723 msgid "guestfs_lvresize_free"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-actions.pod:4762
29728 #, no-wrap
29729 msgid ""
29730 " int\n"
29731 " guestfs_lvresize_free (guestfs_h *g,\n"
29732 "                        const char *lv,\n"
29733 "                        int percent);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:4775
29739 msgid "(Added in 1.3.3)"
29740 msgstr ""
29741
29742 #. type: =head2
29743 #: ../src/guestfs-actions.pod:4777
29744 msgid "guestfs_lvs"
29745 msgstr ""
29746
29747 #. type: verbatim
29748 #: ../src/guestfs-actions.pod:4779
29749 #, no-wrap
29750 msgid ""
29751 " char **\n"
29752 " guestfs_lvs (guestfs_h *g);\n"
29753 "\n"
29754 msgstr ""
29755
29756 #. type: textblock
29757 #: ../src/guestfs-actions.pod:4788
29758 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29759 msgstr ""
29760
29761 #. type: =head2
29762 #: ../src/guestfs-actions.pod:4796
29763 msgid "guestfs_lvs_full"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../src/guestfs-actions.pod:4798
29768 #, no-wrap
29769 msgid ""
29770 " struct guestfs_lvm_lv_list *\n"
29771 " guestfs_lvs_full (guestfs_h *g);\n"
29772 "\n"
29773 msgstr ""
29774
29775 #. type: textblock
29776 #: ../src/guestfs-actions.pod:4804
29777 msgid ""
29778 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29779 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29780 msgstr ""
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:4810
29784 msgid "guestfs_lvuuid"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:4812
29789 #, no-wrap
29790 msgid ""
29791 " char *\n"
29792 " guestfs_lvuuid (guestfs_h *g,\n"
29793 "                 const char *device);\n"
29794 "\n"
29795 msgstr ""
29796
29797 #. type: =head2
29798 #: ../src/guestfs-actions.pod:4823
29799 msgid "guestfs_lxattrlist"
29800 msgstr ""
29801
29802 #. type: verbatim
29803 #: ../src/guestfs-actions.pod:4825
29804 #, no-wrap
29805 msgid ""
29806 " struct guestfs_xattr_list *\n"
29807 " guestfs_lxattrlist (guestfs_h *g,\n"
29808 "                     const char *path,\n"
29809 "                     char *const *names);\n"
29810 "\n"
29811 msgstr ""
29812
29813 #. type: textblock
29814 #: ../src/guestfs-actions.pod:4844
29815 msgid ""
29816 "This call is intended for programs that want to efficiently list a directory "
29817 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29818 "a similarly efficient call for getting standard stats.  Very long directory "
29819 "listings might cause the protocol message size to be exceeded, causing this "
29820 "call to fail.  The caller must split up such requests into smaller groups of "
29821 "names."
29822 msgstr ""
29823
29824 #. type: =head2
29825 #: ../src/guestfs-actions.pod:4858
29826 msgid "guestfs_mkdir"
29827 msgstr ""
29828
29829 #. type: verbatim
29830 #: ../src/guestfs-actions.pod:4860
29831 #, no-wrap
29832 msgid ""
29833 " int\n"
29834 " guestfs_mkdir (guestfs_h *g,\n"
29835 "                const char *path);\n"
29836 "\n"
29837 msgstr ""
29838
29839 #. type: =head2
29840 #: ../src/guestfs-actions.pod:4870
29841 msgid "guestfs_mkdir_mode"
29842 msgstr ""
29843
29844 #. type: verbatim
29845 #: ../src/guestfs-actions.pod:4872
29846 #, no-wrap
29847 msgid ""
29848 " int\n"
29849 " guestfs_mkdir_mode (guestfs_h *g,\n"
29850 "                     const char *path,\n"
29851 "                     int mode);\n"
29852 "\n"
29853 msgstr ""
29854
29855 #. type: textblock
29856 #: ../src/guestfs-actions.pod:4884
29857 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:4890
29862 msgid "guestfs_mkdir_p"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:4892
29867 #, no-wrap
29868 msgid ""
29869 " int\n"
29870 " guestfs_mkdir_p (guestfs_h *g,\n"
29871 "                  const char *path);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:4903
29877 msgid "guestfs_mkdtemp"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:4905
29882 #, no-wrap
29883 msgid ""
29884 " char *\n"
29885 " guestfs_mkdtemp (guestfs_h *g,\n"
29886 "                  const char *template);\n"
29887 "\n"
29888 msgstr ""
29889
29890 #. type: =head2
29891 #: ../src/guestfs-actions.pod:4933
29892 msgid "guestfs_mke2fs_J"
29893 msgstr ""
29894
29895 #. type: verbatim
29896 #: ../src/guestfs-actions.pod:4935
29897 #, no-wrap
29898 msgid ""
29899 " int\n"
29900 " guestfs_mke2fs_J (guestfs_h *g,\n"
29901 "                   const char *fstype,\n"
29902 "                   int blocksize,\n"
29903 "                   const char *device,\n"
29904 "                   const char *journal);\n"
29905 "\n"
29906 msgstr ""
29907
29908 #. type: textblock
29909 #: ../src/guestfs-actions.pod:4948
29910 msgid "See also C<guestfs_mke2journal>."
29911 msgstr ""
29912
29913 #. type: textblock
29914 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4970
29915 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5004
29916 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5032
29917 #: ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5368
29918 msgid "(Added in 1.0.68)"
29919 msgstr ""
29920
29921 #. type: =head2
29922 #: ../src/guestfs-actions.pod:4954
29923 msgid "guestfs_mke2fs_JL"
29924 msgstr ""
29925
29926 #. type: verbatim
29927 #: ../src/guestfs-actions.pod:4956
29928 #, no-wrap
29929 msgid ""
29930 " int\n"
29931 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29932 "                    const char *fstype,\n"
29933 "                    int blocksize,\n"
29934 "                    const char *device,\n"
29935 "                    const char *label);\n"
29936 "\n"
29937 msgstr ""
29938
29939 #. type: textblock
29940 #: ../src/guestfs-actions.pod:4966
29941 msgid "See also C<guestfs_mke2journal_L>."
29942 msgstr ""
29943
29944 #. type: =head2
29945 #: ../src/guestfs-actions.pod:4972
29946 msgid "guestfs_mke2fs_JU"
29947 msgstr ""
29948
29949 #. type: verbatim
29950 #: ../src/guestfs-actions.pod:4974
29951 #, no-wrap
29952 msgid ""
29953 " int\n"
29954 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29955 "                    const char *fstype,\n"
29956 "                    int blocksize,\n"
29957 "                    const char *device,\n"
29958 "                    const char *uuid);\n"
29959 "\n"
29960 msgstr ""
29961
29962 #. type: textblock
29963 #: ../src/guestfs-actions.pod:4984
29964 msgid "See also C<guestfs_mke2journal_U>."
29965 msgstr ""
29966
29967 #. type: =head2
29968 #: ../src/guestfs-actions.pod:4990
29969 msgid "guestfs_mke2journal"
29970 msgstr ""
29971
29972 #. type: verbatim
29973 #: ../src/guestfs-actions.pod:4992
29974 #, no-wrap
29975 msgid ""
29976 " int\n"
29977 " guestfs_mke2journal (guestfs_h *g,\n"
29978 "                      int blocksize,\n"
29979 "                      const char *device);\n"
29980 "\n"
29981 msgstr ""
29982
29983 #. type: =head2
29984 #: ../src/guestfs-actions.pod:5006
29985 msgid "guestfs_mke2journal_L"
29986 msgstr ""
29987
29988 #. type: verbatim
29989 #: ../src/guestfs-actions.pod:5008
29990 #, no-wrap
29991 msgid ""
29992 " int\n"
29993 " guestfs_mke2journal_L (guestfs_h *g,\n"
29994 "                        int blocksize,\n"
29995 "                        const char *label,\n"
29996 "                        const char *device);\n"
29997 "\n"
29998 msgstr ""
29999
30000 #. type: =head2
30001 #: ../src/guestfs-actions.pod:5020
30002 msgid "guestfs_mke2journal_U"
30003 msgstr ""
30004
30005 #. type: verbatim
30006 #: ../src/guestfs-actions.pod:5022
30007 #, no-wrap
30008 msgid ""
30009 " int\n"
30010 " guestfs_mke2journal_U (guestfs_h *g,\n"
30011 "                        int blocksize,\n"
30012 "                        const char *uuid,\n"
30013 "                        const char *device);\n"
30014 "\n"
30015 msgstr ""
30016
30017 #. type: =head2
30018 #: ../src/guestfs-actions.pod:5034
30019 msgid "guestfs_mkfifo"
30020 msgstr ""
30021
30022 #. type: verbatim
30023 #: ../src/guestfs-actions.pod:5036
30024 #, no-wrap
30025 msgid ""
30026 " int\n"
30027 " guestfs_mkfifo (guestfs_h *g,\n"
30028 "                 int mode,\n"
30029 "                 const char *path);\n"
30030 "\n"
30031 msgstr ""
30032
30033 #. type: textblock
30034 #: ../src/guestfs-actions.pod:5041
30035 msgid ""
30036 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30037 "is just a convenient wrapper around C<guestfs_mknod>."
30038 msgstr ""
30039
30040 #. type: =head2
30041 #: ../src/guestfs-actions.pod:5051
30042 msgid "guestfs_mkfs"
30043 msgstr ""
30044
30045 #. type: verbatim
30046 #: ../src/guestfs-actions.pod:5053
30047 #, no-wrap
30048 msgid ""
30049 " int\n"
30050 " guestfs_mkfs (guestfs_h *g,\n"
30051 "               const char *fstype,\n"
30052 "               const char *device);\n"
30053 "\n"
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:5066
30058 msgid "guestfs_mkfs_b"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:5068
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_mkfs_b (guestfs_h *g,\n"
30067 "                 const char *fstype,\n"
30068 "                 int blocksize,\n"
30069 "                 const char *device);\n"
30070 "\n"
30071 msgstr ""
30072
30073 #. type: textblock
30074 #: ../src/guestfs-actions.pod:5074
30075 msgid ""
30076 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30077 "call instead."
30078 msgstr ""
30079
30080 #. type: textblock
30081 #: ../src/guestfs-actions.pod:5081
30082 msgid ""
30083 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30084 "block size of the resulting filesystem.  Supported block sizes depend on the "
30085 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30086 msgstr ""
30087
30088 #. type: =head2
30089 #: ../src/guestfs-actions.pod:5093
30090 msgid "guestfs_mkfs_opts"
30091 msgstr ""
30092
30093 #. type: verbatim
30094 #: ../src/guestfs-actions.pod:5095
30095 #, no-wrap
30096 msgid ""
30097 " int\n"
30098 " guestfs_mkfs_opts (guestfs_h *g,\n"
30099 "                    const char *fstype,\n"
30100 "                    const char *device,\n"
30101 "                    ...);\n"
30102 "\n"
30103 msgstr ""
30104
30105 #. type: verbatim
30106 #: ../src/guestfs-actions.pod:5106
30107 #, no-wrap
30108 msgid ""
30109 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30110 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30111 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30112 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30113 "\n"
30114 msgstr ""
30115
30116 #. type: textblock
30117 #: ../src/guestfs-actions.pod:5154
30118 msgid "(Added in 1.7.19)"
30119 msgstr ""
30120
30121 #. type: =head2
30122 #: ../src/guestfs-actions.pod:5156
30123 msgid "guestfs_mkfs_opts_va"
30124 msgstr ""
30125
30126 #. type: verbatim
30127 #: ../src/guestfs-actions.pod:5158
30128 #, no-wrap
30129 msgid ""
30130 " int\n"
30131 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30132 "                       const char *fstype,\n"
30133 "                       const char *device,\n"
30134 "                       va_list args);\n"
30135 "\n"
30136 msgstr ""
30137
30138 #. type: textblock
30139 #: ../src/guestfs-actions.pod:5164
30140 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30141 msgstr ""
30142
30143 #. type: =head2
30144 #: ../src/guestfs-actions.pod:5168
30145 msgid "guestfs_mkfs_opts_argv"
30146 msgstr ""
30147
30148 #. type: verbatim
30149 #: ../src/guestfs-actions.pod:5170
30150 #, no-wrap
30151 msgid ""
30152 " int\n"
30153 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30154 "                         const char *fstype,\n"
30155 "                         const char *device,\n"
30156 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30157 "\n"
30158 msgstr ""
30159
30160 #. type: textblock
30161 #: ../src/guestfs-actions.pod:5176
30162 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30163 msgstr ""
30164
30165 #. type: =head2
30166 #: ../src/guestfs-actions.pod:5180
30167 msgid "guestfs_mkmountpoint"
30168 msgstr ""
30169
30170 #. type: verbatim
30171 #: ../src/guestfs-actions.pod:5182
30172 #, no-wrap
30173 msgid ""
30174 " int\n"
30175 " guestfs_mkmountpoint (guestfs_h *g,\n"
30176 "                       const char *exemptpath);\n"
30177 "\n"
30178 msgstr ""
30179
30180 #. type: textblock
30181 #: ../src/guestfs-actions.pod:5186
30182 msgid ""
30183 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30184 "that can be used to create extra mountpoints before mounting the first "
30185 "filesystem."
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../src/guestfs-actions.pod:5210
30190 msgid ""
30191 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30192 "may get unexpected errors if you try to mix these calls.  It is safest to "
30193 "manually unmount filesystems and remove mountpoints after use."
30194 msgstr ""
30195
30196 #. type: textblock
30197 #: ../src/guestfs-actions.pod:5214
30198 msgid ""
30199 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30200 "first, so for this to work for manual mountpoints, you must ensure that the "
30201 "innermost mountpoints have the longest pathnames, as in the example code "
30202 "above."
30203 msgstr ""
30204
30205 #. type: textblock
30206 #: ../src/guestfs-actions.pod:5221
30207 msgid ""
30208 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30209 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30210 "can also trigger these issues."
30211 msgstr ""
30212
30213 #. type: textblock
30214 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5533
30215 #: ../src/guestfs-actions.pod:6561
30216 msgid "(Added in 1.0.62)"
30217 msgstr ""
30218
30219 #. type: =head2
30220 #: ../src/guestfs-actions.pod:5229
30221 msgid "guestfs_mknod"
30222 msgstr ""
30223
30224 #. type: verbatim
30225 #: ../src/guestfs-actions.pod:5231
30226 #, no-wrap
30227 msgid ""
30228 " int\n"
30229 " guestfs_mknod (guestfs_h *g,\n"
30230 "                int mode,\n"
30231 "                int devmajor,\n"
30232 "                int devminor,\n"
30233 "                const char *path);\n"
30234 "\n"
30235 msgstr ""
30236
30237 #. type: textblock
30238 #: ../src/guestfs-actions.pod:5246
30239 msgid ""
30240 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30241 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30242 "regular file).  These constants are available in the standard Linux header "
30243 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30244 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30245 "the appropriate constant for you."
30246 msgstr ""
30247
30248 #. type: =head2
30249 #: ../src/guestfs-actions.pod:5260
30250 msgid "guestfs_mknod_b"
30251 msgstr ""
30252
30253 #. type: verbatim
30254 #: ../src/guestfs-actions.pod:5262
30255 #, no-wrap
30256 msgid ""
30257 " int\n"
30258 " guestfs_mknod_b (guestfs_h *g,\n"
30259 "                  int mode,\n"
30260 "                  int devmajor,\n"
30261 "                  int devminor,\n"
30262 "                  const char *path);\n"
30263 "\n"
30264 msgstr ""
30265
30266 #. type: textblock
30267 #: ../src/guestfs-actions.pod:5269
30268 msgid ""
30269 "This call creates a block device node called C<path> with mode C<mode> and "
30270 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30271 "wrapper around C<guestfs_mknod>."
30272 msgstr ""
30273
30274 #. type: =head2
30275 #: ../src/guestfs-actions.pod:5279
30276 msgid "guestfs_mknod_c"
30277 msgstr ""
30278
30279 #. type: verbatim
30280 #: ../src/guestfs-actions.pod:5281
30281 #, no-wrap
30282 msgid ""
30283 " int\n"
30284 " guestfs_mknod_c (guestfs_h *g,\n"
30285 "                  int mode,\n"
30286 "                  int devmajor,\n"
30287 "                  int devminor,\n"
30288 "                  const char *path);\n"
30289 "\n"
30290 msgstr ""
30291
30292 #. type: textblock
30293 #: ../src/guestfs-actions.pod:5288
30294 msgid ""
30295 "This call creates a char device node called C<path> with mode C<mode> and "
30296 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30297 "wrapper around C<guestfs_mknod>."
30298 msgstr ""
30299
30300 #. type: =head2
30301 #: ../src/guestfs-actions.pod:5298
30302 msgid "guestfs_mkswap"
30303 msgstr ""
30304
30305 #. type: verbatim
30306 #: ../src/guestfs-actions.pod:5300
30307 #, no-wrap
30308 msgid ""
30309 " int\n"
30310 " guestfs_mkswap (guestfs_h *g,\n"
30311 "                 const char *device);\n"
30312 "\n"
30313 msgstr ""
30314
30315 #. type: =head2
30316 #: ../src/guestfs-actions.pod:5310
30317 msgid "guestfs_mkswap_L"
30318 msgstr ""
30319
30320 #. type: verbatim
30321 #: ../src/guestfs-actions.pod:5312
30322 #, no-wrap
30323 msgid ""
30324 " int\n"
30325 " guestfs_mkswap_L (guestfs_h *g,\n"
30326 "                   const char *label,\n"
30327 "                   const char *device);\n"
30328 "\n"
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:5327
30333 msgid "guestfs_mkswap_U"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:5329
30338 #, no-wrap
30339 msgid ""
30340 " int\n"
30341 " guestfs_mkswap_U (guestfs_h *g,\n"
30342 "                   const char *uuid,\n"
30343 "                   const char *device);\n"
30344 "\n"
30345 msgstr ""
30346
30347 #. type: =head2
30348 #: ../src/guestfs-actions.pod:5340
30349 msgid "guestfs_mkswap_file"
30350 msgstr ""
30351
30352 #. type: verbatim
30353 #: ../src/guestfs-actions.pod:5342
30354 #, no-wrap
30355 msgid ""
30356 " int\n"
30357 " guestfs_mkswap_file (guestfs_h *g,\n"
30358 "                      const char *path);\n"
30359 "\n"
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../src/guestfs-actions.pod:5348
30364 msgid ""
30365 "This command just writes a swap file signature to an existing file.  To "
30366 "create the file itself, use something like C<guestfs_fallocate>."
30367 msgstr ""
30368
30369 #. type: =head2
30370 #: ../src/guestfs-actions.pod:5355
30371 msgid "guestfs_modprobe"
30372 msgstr ""
30373
30374 #. type: verbatim
30375 #: ../src/guestfs-actions.pod:5357
30376 #, no-wrap
30377 msgid ""
30378 " int\n"
30379 " guestfs_modprobe (guestfs_h *g,\n"
30380 "                   const char *modulename);\n"
30381 "\n"
30382 msgstr ""
30383
30384 #. type: =head2
30385 #: ../src/guestfs-actions.pod:5370
30386 msgid "guestfs_mount"
30387 msgstr ""
30388
30389 #. type: verbatim
30390 #: ../src/guestfs-actions.pod:5372
30391 #, no-wrap
30392 msgid ""
30393 " int\n"
30394 " guestfs_mount (guestfs_h *g,\n"
30395 "                const char *device,\n"
30396 "                const char *mountpoint);\n"
30397 "\n"
30398 msgstr ""
30399
30400 #. type: textblock
30401 #: ../src/guestfs-actions.pod:5391
30402 msgid ""
30403 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30404 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30405 "problems for users.  If your program might need to work with older versions "
30406 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30407 "for the first parameter if you don't want any options)."
30408 msgstr ""
30409
30410 #. type: =head2
30411 #: ../src/guestfs-actions.pod:5402
30412 msgid "guestfs_mount_9p"
30413 msgstr ""
30414
30415 #. type: verbatim
30416 #: ../src/guestfs-actions.pod:5404
30417 #, no-wrap
30418 msgid ""
30419 " int\n"
30420 " guestfs_mount_9p (guestfs_h *g,\n"
30421 "                   const char *mounttag,\n"
30422 "                   const char *mountpoint,\n"
30423 "                   ...);\n"
30424 "\n"
30425 msgstr ""
30426
30427 #. type: verbatim
30428 #: ../src/guestfs-actions.pod:5415
30429 #, no-wrap
30430 msgid ""
30431 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30432 "\n"
30433 msgstr ""
30434
30435 #. type: =head2
30436 #: ../src/guestfs-actions.pod:5428
30437 msgid "guestfs_mount_9p_va"
30438 msgstr ""
30439
30440 #. type: verbatim
30441 #: ../src/guestfs-actions.pod:5430
30442 #, no-wrap
30443 msgid ""
30444 " int\n"
30445 " guestfs_mount_9p_va (guestfs_h *g,\n"
30446 "                      const char *mounttag,\n"
30447 "                      const char *mountpoint,\n"
30448 "                      va_list args);\n"
30449 "\n"
30450 msgstr ""
30451
30452 #. type: textblock
30453 #: ../src/guestfs-actions.pod:5436
30454 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30455 msgstr ""
30456
30457 #. type: =head2
30458 #: ../src/guestfs-actions.pod:5440
30459 msgid "guestfs_mount_9p_argv"
30460 msgstr ""
30461
30462 #. type: verbatim
30463 #: ../src/guestfs-actions.pod:5442
30464 #, no-wrap
30465 msgid ""
30466 " int\n"
30467 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30468 "                        const char *mounttag,\n"
30469 "                        const char *mountpoint,\n"
30470 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30471 "\n"
30472 msgstr ""
30473
30474 #. type: textblock
30475 #: ../src/guestfs-actions.pod:5448
30476 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30477 msgstr ""
30478
30479 #. type: =head2
30480 #: ../src/guestfs-actions.pod:5452
30481 msgid "guestfs_mount_loop"
30482 msgstr ""
30483
30484 #. type: verbatim
30485 #: ../src/guestfs-actions.pod:5454
30486 #, no-wrap
30487 msgid ""
30488 " int\n"
30489 " guestfs_mount_loop (guestfs_h *g,\n"
30490 "                     const char *file,\n"
30491 "                     const char *mountpoint);\n"
30492 "\n"
30493 msgstr ""
30494
30495 #. type: =head2
30496 #: ../src/guestfs-actions.pod:5467
30497 msgid "guestfs_mount_options"
30498 msgstr ""
30499
30500 #. type: verbatim
30501 #: ../src/guestfs-actions.pod:5469
30502 #, no-wrap
30503 msgid ""
30504 " int\n"
30505 " guestfs_mount_options (guestfs_h *g,\n"
30506 "                        const char *options,\n"
30507 "                        const char *device,\n"
30508 "                        const char *mountpoint);\n"
30509 "\n"
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../src/guestfs-actions.pod:5475
30514 msgid ""
30515 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30516 "the mount options as for the L<mount(8)> I<-o> flag."
30517 msgstr ""
30518
30519 #. type: textblock
30520 #: ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5499
30521 #: ../src/guestfs-actions.pod:5516
30522 msgid "(Added in 1.0.10)"
30523 msgstr ""
30524
30525 #. type: =head2
30526 #: ../src/guestfs-actions.pod:5487
30527 msgid "guestfs_mount_ro"
30528 msgstr ""
30529
30530 #. type: verbatim
30531 #: ../src/guestfs-actions.pod:5489
30532 #, no-wrap
30533 msgid ""
30534 " int\n"
30535 " guestfs_mount_ro (guestfs_h *g,\n"
30536 "                   const char *device,\n"
30537 "                   const char *mountpoint);\n"
30538 "\n"
30539 msgstr ""
30540
30541 #. type: textblock
30542 #: ../src/guestfs-actions.pod:5494
30543 msgid ""
30544 "This is the same as the C<guestfs_mount> command, but it mounts the "
30545 "filesystem with the read-only (I<-o ro>) flag."
30546 msgstr ""
30547
30548 #. type: =head2
30549 #: ../src/guestfs-actions.pod:5501
30550 msgid "guestfs_mount_vfs"
30551 msgstr ""
30552
30553 #. type: verbatim
30554 #: ../src/guestfs-actions.pod:5503
30555 #, no-wrap
30556 msgid ""
30557 " int\n"
30558 " guestfs_mount_vfs (guestfs_h *g,\n"
30559 "                    const char *options,\n"
30560 "                    const char *vfstype,\n"
30561 "                    const char *device,\n"
30562 "                    const char *mountpoint);\n"
30563 "\n"
30564 msgstr ""
30565
30566 #. type: textblock
30567 #: ../src/guestfs-actions.pod:5510
30568 msgid ""
30569 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30570 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30571 "t> flags."
30572 msgstr ""
30573
30574 #. type: =head2
30575 #: ../src/guestfs-actions.pod:5518
30576 msgid "guestfs_mountpoints"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs-actions.pod:5520
30581 #, no-wrap
30582 msgid ""
30583 " char **\n"
30584 " guestfs_mountpoints (guestfs_h *g);\n"
30585 "\n"
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../src/guestfs-actions.pod:5523
30590 msgid ""
30591 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30592 "devices.  This one returns a hash table (map) of device name to directory "
30593 "where the device is mounted."
30594 msgstr ""
30595
30596 #. type: =head2
30597 #: ../src/guestfs-actions.pod:5535
30598 msgid "guestfs_mounts"
30599 msgstr ""
30600
30601 #. type: verbatim
30602 #: ../src/guestfs-actions.pod:5537
30603 #, no-wrap
30604 msgid ""
30605 " char **\n"
30606 " guestfs_mounts (guestfs_h *g);\n"
30607 "\n"
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-actions.pod:5545
30612 msgid "See also: C<guestfs_mountpoints>"
30613 msgstr ""
30614
30615 #. type: =head2
30616 #: ../src/guestfs-actions.pod:5553
30617 msgid "guestfs_mv"
30618 msgstr ""
30619
30620 #. type: verbatim
30621 #: ../src/guestfs-actions.pod:5555
30622 #, no-wrap
30623 msgid ""
30624 " int\n"
30625 " guestfs_mv (guestfs_h *g,\n"
30626 "             const char *src,\n"
30627 "             const char *dest);\n"
30628 "\n"
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs-actions.pod:5567
30633 msgid "guestfs_ntfs_3g_probe"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-actions.pod:5569
30638 #, no-wrap
30639 msgid ""
30640 " int\n"
30641 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30642 "                        int rw,\n"
30643 "                        const char *device);\n"
30644 "\n"
30645 msgstr ""
30646
30647 #. type: textblock
30648 #: ../src/guestfs-actions.pod:5588
30649 msgid "(Added in 1.0.43)"
30650 msgstr ""
30651
30652 #. type: =head2
30653 #: ../src/guestfs-actions.pod:5590
30654 msgid "guestfs_ntfsresize"
30655 msgstr ""
30656
30657 #. type: verbatim
30658 #: ../src/guestfs-actions.pod:5592
30659 #, no-wrap
30660 msgid ""
30661 " int\n"
30662 " guestfs_ntfsresize (guestfs_h *g,\n"
30663 "                     const char *device);\n"
30664 "\n"
30665 msgstr ""
30666
30667 #. type: textblock
30668 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5696
30669 msgid ""
30670 "I<This function is deprecated.> In new code, use the L</"
30671 "guestfs_ntfsresize_opts> call instead."
30672 msgstr ""
30673
30674 #. type: =head2
30675 #: ../src/guestfs-actions.pod:5620
30676 msgid "guestfs_ntfsresize_opts"
30677 msgstr ""
30678
30679 #. type: verbatim
30680 #: ../src/guestfs-actions.pod:5622
30681 #, no-wrap
30682 msgid ""
30683 " int\n"
30684 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30685 "                          const char *device,\n"
30686 "                          ...);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: verbatim
30691 #: ../src/guestfs-actions.pod:5632
30692 #, no-wrap
30693 msgid ""
30694 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30695 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30696 "\n"
30697 msgstr ""
30698
30699 #. type: textblock
30700 #: ../src/guestfs-actions.pod:5652
30701 msgid ""
30702 "After the resize operation, the filesystem is always marked as requiring a "
30703 "consistency check (for safety).  You have to boot into Windows to perform "
30704 "this check and clear this condition.  If you I<don't> set the C<force> "
30705 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30706 "times on a single filesystem without booting into Windows between each "
30707 "resize."
30708 msgstr ""
30709
30710 #. type: =head2
30711 #: ../src/guestfs-actions.pod:5667
30712 msgid "guestfs_ntfsresize_opts_va"
30713 msgstr ""
30714
30715 #. type: verbatim
30716 #: ../src/guestfs-actions.pod:5669
30717 #, no-wrap
30718 msgid ""
30719 " int\n"
30720 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30721 "                             const char *device,\n"
30722 "                             va_list args);\n"
30723 "\n"
30724 msgstr ""
30725
30726 #. type: textblock
30727 #: ../src/guestfs-actions.pod:5674
30728 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30729 msgstr ""
30730
30731 #. type: =head2
30732 #: ../src/guestfs-actions.pod:5678
30733 msgid "guestfs_ntfsresize_opts_argv"
30734 msgstr ""
30735
30736 #. type: verbatim
30737 #: ../src/guestfs-actions.pod:5680
30738 #, no-wrap
30739 msgid ""
30740 " int\n"
30741 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30742 "                               const char *device,\n"
30743 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30744 "\n"
30745 msgstr ""
30746
30747 #. type: textblock
30748 #: ../src/guestfs-actions.pod:5685
30749 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30750 msgstr ""
30751
30752 #. type: =head2
30753 #: ../src/guestfs-actions.pod:5689
30754 msgid "guestfs_ntfsresize_size"
30755 msgstr ""
30756
30757 #. type: verbatim
30758 #: ../src/guestfs-actions.pod:5691
30759 #, no-wrap
30760 msgid ""
30761 " int\n"
30762 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30763 "                          const char *device,\n"
30764 "                          int64_t size);\n"
30765 "\n"
30766 msgstr ""
30767
30768 #. type: textblock
30769 #: ../src/guestfs-actions.pod:5703
30770 msgid ""
30771 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30772 "to specify the new size (in bytes) explicitly."
30773 msgstr ""
30774
30775 #. type: textblock
30776 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6168
30777 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6509
30778 #: ../src/guestfs-actions.pod:8148
30779 msgid "(Added in 1.3.14)"
30780 msgstr ""
30781
30782 #. type: =head2
30783 #: ../src/guestfs-actions.pod:5710
30784 msgid "guestfs_part_add"
30785 msgstr ""
30786
30787 #. type: verbatim
30788 #: ../src/guestfs-actions.pod:5712
30789 #, no-wrap
30790 msgid ""
30791 " int\n"
30792 " guestfs_part_add (guestfs_h *g,\n"
30793 "                   const char *device,\n"
30794 "                   const char *prlogex,\n"
30795 "                   int64_t startsect,\n"
30796 "                   int64_t endsect);\n"
30797 "\n"
30798 msgstr ""
30799
30800 #. type: textblock
30801 #: ../src/guestfs-actions.pod:5719
30802 msgid ""
30803 "This command adds a partition to C<device>.  If there is no partition table "
30804 "on the device, call C<guestfs_part_init> first."
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs-actions.pod:5731
30809 msgid ""
30810 "Creating a partition which covers the whole disk is not so easy.  Use "
30811 "C<guestfs_part_disk> to do that."
30812 msgstr ""
30813
30814 #. type: textblock
30815 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5774
30816 #: ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5911
30817 #: ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5968
30818 #: ../src/guestfs-actions.pod:6008
30819 msgid "(Added in 1.0.78)"
30820 msgstr ""
30821
30822 #. type: =head2
30823 #: ../src/guestfs-actions.pod:5738
30824 msgid "guestfs_part_del"
30825 msgstr ""
30826
30827 #. type: verbatim
30828 #: ../src/guestfs-actions.pod:5740
30829 #, no-wrap
30830 msgid ""
30831 " int\n"
30832 " guestfs_part_del (guestfs_h *g,\n"
30833 "                   const char *device,\n"
30834 "                   int partnum);\n"
30835 "\n"
30836 msgstr ""
30837
30838 #. type: =head2
30839 #: ../src/guestfs-actions.pod:5755
30840 msgid "guestfs_part_disk"
30841 msgstr ""
30842
30843 #. type: verbatim
30844 #: ../src/guestfs-actions.pod:5757
30845 #, no-wrap
30846 msgid ""
30847 " int\n"
30848 " guestfs_part_disk (guestfs_h *g,\n"
30849 "                    const char *device,\n"
30850 "                    const char *parttype);\n"
30851 "\n"
30852 msgstr ""
30853
30854 #. type: textblock
30855 #: ../src/guestfs-actions.pod:5762
30856 msgid ""
30857 "This command is simply a combination of C<guestfs_part_init> followed by "
30858 "C<guestfs_part_add> to create a single primary partition covering the whole "
30859 "disk."
30860 msgstr ""
30861
30862 #. type: textblock
30863 #: ../src/guestfs-actions.pod:5766
30864 msgid ""
30865 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30866 "possible values are described in C<guestfs_part_init>."
30867 msgstr ""
30868
30869 #. type: =head2
30870 #: ../src/guestfs-actions.pod:5776
30871 msgid "guestfs_part_get_bootable"
30872 msgstr ""
30873
30874 #. type: verbatim
30875 #: ../src/guestfs-actions.pod:5778
30876 #, no-wrap
30877 msgid ""
30878 " int\n"
30879 " guestfs_part_get_bootable (guestfs_h *g,\n"
30880 "                            const char *device,\n"
30881 "                            int partnum);\n"
30882 "\n"
30883 msgstr ""
30884
30885 #. type: textblock
30886 #: ../src/guestfs-actions.pod:5786
30887 msgid "See also C<guestfs_part_set_bootable>."
30888 msgstr ""
30889
30890 #. type: =head2
30891 #: ../src/guestfs-actions.pod:5792
30892 msgid "guestfs_part_get_mbr_id"
30893 msgstr ""
30894
30895 #. type: verbatim
30896 #: ../src/guestfs-actions.pod:5794
30897 #, no-wrap
30898 msgid ""
30899 " int\n"
30900 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30901 "                          const char *device,\n"
30902 "                          int partnum);\n"
30903 "\n"
30904 msgstr ""
30905
30906 #. type: textblock
30907 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5984
30908 msgid ""
30909 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30910 "undefined results for other partition table types (see "
30911 "C<guestfs_part_get_parttype>)."
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:5810
30916 msgid "guestfs_part_get_parttype"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:5812
30921 #, no-wrap
30922 msgid ""
30923 " char *\n"
30924 " guestfs_part_get_parttype (guestfs_h *g,\n"
30925 "                            const char *device);\n"
30926 "\n"
30927 msgstr ""
30928
30929 #. type: textblock
30930 #: ../src/guestfs-actions.pod:5819
30931 msgid ""
30932 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30933 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30934 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30935 msgstr ""
30936
30937 #. type: =head2
30938 #: ../src/guestfs-actions.pod:5829
30939 msgid "guestfs_part_init"
30940 msgstr ""
30941
30942 #. type: verbatim
30943 #: ../src/guestfs-actions.pod:5831
30944 #, no-wrap
30945 msgid ""
30946 " int\n"
30947 " guestfs_part_init (guestfs_h *g,\n"
30948 "                    const char *device,\n"
30949 "                    const char *parttype);\n"
30950 "\n"
30951 msgstr ""
30952
30953 #. type: textblock
30954 #: ../src/guestfs-actions.pod:5840
30955 msgid ""
30956 "Initially there are no partitions.  Following this, you should call "
30957 "C<guestfs_part_add> for each partition required."
30958 msgstr ""
30959
30960 #. type: =head2
30961 #: ../src/guestfs-actions.pod:5913
30962 msgid "guestfs_part_list"
30963 msgstr ""
30964
30965 #. type: verbatim
30966 #: ../src/guestfs-actions.pod:5915
30967 #, no-wrap
30968 msgid ""
30969 " struct guestfs_partition_list *\n"
30970 " guestfs_part_list (guestfs_h *g,\n"
30971 "                    const char *device);\n"
30972 "\n"
30973 msgstr ""
30974
30975 #. type: textblock
30976 #: ../src/guestfs-actions.pod:5932
30977 msgid ""
30978 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30979 "the device's sector size, see C<guestfs_blockdev_getss>."
30980 msgstr ""
30981
30982 #. type: textblock
30983 #: ../src/guestfs-actions.pod:5945
30984 msgid ""
30985 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30986 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30987 "use>."
30988 msgstr ""
30989
30990 #. type: =head2
30991 #: ../src/guestfs-actions.pod:5951
30992 msgid "guestfs_part_set_bootable"
30993 msgstr ""
30994
30995 #. type: verbatim
30996 #: ../src/guestfs-actions.pod:5953
30997 #, no-wrap
30998 msgid ""
30999 " int\n"
31000 " guestfs_part_set_bootable (guestfs_h *g,\n"
31001 "                            const char *device,\n"
31002 "                            int partnum,\n"
31003 "                            int bootable);\n"
31004 "\n"
31005 msgstr ""
31006
31007 #. type: =head2
31008 #: ../src/guestfs-actions.pod:5970
31009 msgid "guestfs_part_set_mbr_id"
31010 msgstr ""
31011
31012 #. type: verbatim
31013 #: ../src/guestfs-actions.pod:5972
31014 #, no-wrap
31015 msgid ""
31016 " int\n"
31017 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31018 "                          const char *device,\n"
31019 "                          int partnum,\n"
31020 "                          int idbyte);\n"
31021 "\n"
31022 msgstr ""
31023
31024 #. type: =head2
31025 #: ../src/guestfs-actions.pod:5992
31026 msgid "guestfs_part_set_name"
31027 msgstr ""
31028
31029 #. type: verbatim
31030 #: ../src/guestfs-actions.pod:5994
31031 #, no-wrap
31032 msgid ""
31033 " int\n"
31034 " guestfs_part_set_name (guestfs_h *g,\n"
31035 "                        const char *device,\n"
31036 "                        int partnum,\n"
31037 "                        const char *name);\n"
31038 "\n"
31039 msgstr ""
31040
31041 #. type: =head2
31042 #: ../src/guestfs-actions.pod:6010
31043 msgid "guestfs_part_to_dev"
31044 msgstr ""
31045
31046 #. type: verbatim
31047 #: ../src/guestfs-actions.pod:6012
31048 #, no-wrap
31049 msgid ""
31050 " char *\n"
31051 " guestfs_part_to_dev (guestfs_h *g,\n"
31052 "                      const char *partition);\n"
31053 "\n"
31054 msgstr ""
31055
31056 #. type: textblock
31057 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
31058 msgid ""
31059 "The named partition must exist, for example as a string returned from "
31060 "C<guestfs_list_partitions>."
31061 msgstr ""
31062
31063 #. type: textblock
31064 #: ../src/guestfs-actions.pod:6023
31065 msgid "See also C<guestfs_part_to_partnum>."
31066 msgstr ""
31067
31068 #. type: =head2
31069 #: ../src/guestfs-actions.pod:6030
31070 msgid "guestfs_part_to_partnum"
31071 msgstr ""
31072
31073 #. type: verbatim
31074 #: ../src/guestfs-actions.pod:6032
31075 #, no-wrap
31076 msgid ""
31077 " int\n"
31078 " guestfs_part_to_partnum (guestfs_h *g,\n"
31079 "                          const char *partition);\n"
31080 "\n"
31081 msgstr ""
31082
31083 #. type: textblock
31084 #: ../src/guestfs-actions.pod:6042
31085 msgid "See also C<guestfs_part_to_dev>."
31086 msgstr ""
31087
31088 #. type: =head2
31089 #: ../src/guestfs-actions.pod:6046
31090 msgid "guestfs_ping_daemon"
31091 msgstr ""
31092
31093 #. type: verbatim
31094 #: ../src/guestfs-actions.pod:6048
31095 #, no-wrap
31096 msgid ""
31097 " int\n"
31098 " guestfs_ping_daemon (guestfs_h *g);\n"
31099 "\n"
31100 msgstr ""
31101
31102 #. type: =head2
31103 #: ../src/guestfs-actions.pod:6060
31104 msgid "guestfs_pread"
31105 msgstr ""
31106
31107 #. type: verbatim
31108 #: ../src/guestfs-actions.pod:6062
31109 #, no-wrap
31110 msgid ""
31111 " char *\n"
31112 " guestfs_pread (guestfs_h *g,\n"
31113 "                const char *path,\n"
31114 "                int count,\n"
31115 "                int64_t offset,\n"
31116 "                size_t *size_r);\n"
31117 "\n"
31118 msgstr ""
31119
31120 #. type: textblock
31121 #: ../src/guestfs-actions.pod:6075
31122 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31123 msgstr ""
31124
31125 #. type: =head2
31126 #: ../src/guestfs-actions.pod:6086
31127 msgid "guestfs_pread_device"
31128 msgstr ""
31129
31130 #. type: verbatim
31131 #: ../src/guestfs-actions.pod:6088
31132 #, no-wrap
31133 msgid ""
31134 " char *\n"
31135 " guestfs_pread_device (guestfs_h *g,\n"
31136 "                       const char *device,\n"
31137 "                       int count,\n"
31138 "                       int64_t offset,\n"
31139 "                       size_t *size_r);\n"
31140 "\n"
31141 msgstr ""
31142
31143 #. type: textblock
31144 #: ../src/guestfs-actions.pod:6101
31145 msgid "See also C<guestfs_pread>."
31146 msgstr ""
31147
31148 #. type: textblock
31149 #: ../src/guestfs-actions.pod:6110
31150 msgid "(Added in 1.5.21)"
31151 msgstr ""
31152
31153 #. type: =head2
31154 #: ../src/guestfs-actions.pod:6112
31155 msgid "guestfs_pvcreate"
31156 msgstr ""
31157
31158 #. type: verbatim
31159 #: ../src/guestfs-actions.pod:6114
31160 #, no-wrap
31161 msgid ""
31162 " int\n"
31163 " guestfs_pvcreate (guestfs_h *g,\n"
31164 "                   const char *device);\n"
31165 "\n"
31166 msgstr ""
31167
31168 #. type: =head2
31169 #: ../src/guestfs-actions.pod:6126
31170 msgid "guestfs_pvremove"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs-actions.pod:6128
31175 #, no-wrap
31176 msgid ""
31177 " int\n"
31178 " guestfs_pvremove (guestfs_h *g,\n"
31179 "                   const char *device);\n"
31180 "\n"
31181 msgstr ""
31182
31183 #. type: =head2
31184 #: ../src/guestfs-actions.pod:6143
31185 msgid "guestfs_pvresize"
31186 msgstr ""
31187
31188 #. type: verbatim
31189 #: ../src/guestfs-actions.pod:6145
31190 #, no-wrap
31191 msgid ""
31192 " int\n"
31193 " guestfs_pvresize (guestfs_h *g,\n"
31194 "                   const char *device);\n"
31195 "\n"
31196 msgstr ""
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:6156
31200 msgid "guestfs_pvresize_size"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:6158
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_pvresize_size (guestfs_h *g,\n"
31209 "                        const char *device,\n"
31210 "                        int64_t size);\n"
31211 "\n"
31212 msgstr ""
31213
31214 #. type: textblock
31215 #: ../src/guestfs-actions.pod:6163
31216 msgid ""
31217 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31218 "specify the new size (in bytes) explicitly."
31219 msgstr ""
31220
31221 #. type: =head2
31222 #: ../src/guestfs-actions.pod:6170
31223 msgid "guestfs_pvs"
31224 msgstr ""
31225
31226 #. type: verbatim
31227 #: ../src/guestfs-actions.pod:6172
31228 #, no-wrap
31229 msgid ""
31230 " char **\n"
31231 " guestfs_pvs (guestfs_h *g);\n"
31232 "\n"
31233 msgstr ""
31234
31235 #. type: textblock
31236 #: ../src/guestfs-actions.pod:6181
31237 msgid "See also C<guestfs_pvs_full>."
31238 msgstr ""
31239
31240 #. type: =head2
31241 #: ../src/guestfs-actions.pod:6189
31242 msgid "guestfs_pvs_full"
31243 msgstr ""
31244
31245 #. type: verbatim
31246 #: ../src/guestfs-actions.pod:6191
31247 #, no-wrap
31248 msgid ""
31249 " struct guestfs_lvm_pv_list *\n"
31250 " guestfs_pvs_full (guestfs_h *g);\n"
31251 "\n"
31252 msgstr ""
31253
31254 #. type: textblock
31255 #: ../src/guestfs-actions.pod:6197
31256 msgid ""
31257 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31258 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31259 msgstr ""
31260
31261 #. type: =head2
31262 #: ../src/guestfs-actions.pod:6203
31263 msgid "guestfs_pvuuid"
31264 msgstr ""
31265
31266 #. type: verbatim
31267 #: ../src/guestfs-actions.pod:6205
31268 #, no-wrap
31269 msgid ""
31270 " char *\n"
31271 " guestfs_pvuuid (guestfs_h *g,\n"
31272 "                 const char *device);\n"
31273 "\n"
31274 msgstr ""
31275
31276 #. type: =head2
31277 #: ../src/guestfs-actions.pod:6216
31278 msgid "guestfs_pwrite"
31279 msgstr ""
31280
31281 #. type: verbatim
31282 #: ../src/guestfs-actions.pod:6218
31283 #, no-wrap
31284 msgid ""
31285 " int\n"
31286 " guestfs_pwrite (guestfs_h *g,\n"
31287 "                 const char *path,\n"
31288 "                 const char *content,\n"
31289 "                 size_t content_size,\n"
31290 "                 int64_t offset);\n"
31291 "\n"
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs-actions.pod:6234
31296 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31297 msgstr ""
31298
31299 #. type: =head2
31300 #: ../src/guestfs-actions.pod:6243
31301 msgid "guestfs_pwrite_device"
31302 msgstr ""
31303
31304 #. type: verbatim
31305 #: ../src/guestfs-actions.pod:6245
31306 #, no-wrap
31307 msgid ""
31308 " int\n"
31309 " guestfs_pwrite_device (guestfs_h *g,\n"
31310 "                        const char *device,\n"
31311 "                        const char *content,\n"
31312 "                        size_t content_size,\n"
31313 "                        int64_t offset);\n"
31314 "\n"
31315 msgstr ""
31316
31317 #. type: textblock
31318 #: ../src/guestfs-actions.pod:6260
31319 msgid "See also C<guestfs_pwrite>."
31320 msgstr ""
31321
31322 #. type: textblock
31323 #: ../src/guestfs-actions.pod:6267
31324 msgid "(Added in 1.5.20)"
31325 msgstr ""
31326
31327 #. type: =head2
31328 #: ../src/guestfs-actions.pod:6269
31329 msgid "guestfs_read_file"
31330 msgstr ""
31331
31332 #. type: verbatim
31333 #: ../src/guestfs-actions.pod:6271
31334 #, no-wrap
31335 msgid ""
31336 " char *\n"
31337 " guestfs_read_file (guestfs_h *g,\n"
31338 "                    const char *path,\n"
31339 "                    size_t *size_r);\n"
31340 "\n"
31341 msgstr ""
31342
31343 #. type: textblock
31344 #: ../src/guestfs-actions.pod:6279
31345 msgid ""
31346 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31347 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31348 "function is limited in the total size of file that can be handled."
31349 msgstr ""
31350
31351 #. type: textblock
31352 #: ../src/guestfs-actions.pod:6291
31353 msgid "(Added in 1.0.63)"
31354 msgstr ""
31355
31356 #. type: =head2
31357 #: ../src/guestfs-actions.pod:6293
31358 msgid "guestfs_read_lines"
31359 msgstr ""
31360
31361 #. type: verbatim
31362 #: ../src/guestfs-actions.pod:6295
31363 #, no-wrap
31364 msgid ""
31365 " char **\n"
31366 " guestfs_read_lines (guestfs_h *g,\n"
31367 "                     const char *path);\n"
31368 "\n"
31369 msgstr ""
31370
31371 #. type: textblock
31372 #: ../src/guestfs-actions.pod:6304
31373 msgid ""
31374 "Note that this function cannot correctly handle binary files (specifically, "
31375 "files containing C<\\0> character which is treated as end of line).  For "
31376 "those you need to use the C<guestfs_read_file> function which has a more "
31377 "complex interface."
31378 msgstr ""
31379
31380 #. type: =head2
31381 #: ../src/guestfs-actions.pod:6315
31382 msgid "guestfs_readdir"
31383 msgstr ""
31384
31385 #. type: verbatim
31386 #: ../src/guestfs-actions.pod:6317
31387 #, no-wrap
31388 msgid ""
31389 " struct guestfs_dirent_list *\n"
31390 " guestfs_readdir (guestfs_h *g,\n"
31391 "                  const char *dir);\n"
31392 "\n"
31393 msgstr ""
31394
31395 #. type: textblock
31396 #: ../src/guestfs-actions.pod:6371
31397 msgid ""
31398 "This function is primarily intended for use by programs.  To get a simple "
31399 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31400 "consumption, use C<guestfs_ll>."
31401 msgstr ""
31402
31403 #. type: textblock
31404 #: ../src/guestfs-actions.pod:6375
31405 msgid ""
31406 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31407 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31408 msgstr ""
31409
31410 #. type: =head2
31411 #: ../src/guestfs-actions.pod:6381
31412 msgid "guestfs_readlink"
31413 msgstr ""
31414
31415 #. type: verbatim
31416 #: ../src/guestfs-actions.pod:6383
31417 #, no-wrap
31418 msgid ""
31419 " char *\n"
31420 " guestfs_readlink (guestfs_h *g,\n"
31421 "                   const char *path);\n"
31422 "\n"
31423 msgstr ""
31424
31425 #. type: =head2
31426 #: ../src/guestfs-actions.pod:6394
31427 msgid "guestfs_readlinklist"
31428 msgstr ""
31429
31430 #. type: verbatim
31431 #: ../src/guestfs-actions.pod:6396
31432 #, no-wrap
31433 msgid ""
31434 " char **\n"
31435 " guestfs_readlinklist (guestfs_h *g,\n"
31436 "                       const char *path,\n"
31437 "                       char *const *names);\n"
31438 "\n"
31439 msgstr ""
31440
31441 #. type: =head2
31442 #: ../src/guestfs-actions.pod:6429
31443 msgid "guestfs_realpath"
31444 msgstr ""
31445
31446 #. type: verbatim
31447 #: ../src/guestfs-actions.pod:6431
31448 #, no-wrap
31449 msgid ""
31450 " char *\n"
31451 " guestfs_realpath (guestfs_h *g,\n"
31452 "                   const char *path);\n"
31453 "\n"
31454 msgstr ""
31455
31456 #. type: =head2
31457 #: ../src/guestfs-actions.pod:6443
31458 msgid "guestfs_removexattr"
31459 msgstr ""
31460
31461 #. type: verbatim
31462 #: ../src/guestfs-actions.pod:6445
31463 #, no-wrap
31464 msgid ""
31465 " int\n"
31466 " guestfs_removexattr (guestfs_h *g,\n"
31467 "                      const char *xattr,\n"
31468 "                      const char *path);\n"
31469 "\n"
31470 msgstr ""
31471
31472 #. type: textblock
31473 #: ../src/guestfs-actions.pod:6453
31474 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31475 msgstr ""
31476
31477 #. type: =head2
31478 #: ../src/guestfs-actions.pod:6459
31479 msgid "guestfs_resize2fs"
31480 msgstr ""
31481
31482 #. type: verbatim
31483 #: ../src/guestfs-actions.pod:6461
31484 #, no-wrap
31485 msgid ""
31486 " int\n"
31487 " guestfs_resize2fs (guestfs_h *g,\n"
31488 "                    const char *device);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs-actions.pod:6468
31494 msgid ""
31495 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31496 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31497 "sometimes gives an error about this and sometimes not.  In any case, it is "
31498 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31499 msgstr ""
31500
31501 #. type: =head2
31502 #: ../src/guestfs-actions.pod:6478
31503 msgid "guestfs_resize2fs_M"
31504 msgstr ""
31505
31506 #. type: verbatim
31507 #: ../src/guestfs-actions.pod:6480
31508 #, no-wrap
31509 msgid ""
31510 " int\n"
31511 " guestfs_resize2fs_M (guestfs_h *g,\n"
31512 "                      const char *device);\n"
31513 "\n"
31514 msgstr ""
31515
31516 #. type: textblock
31517 #: ../src/guestfs-actions.pod:6484
31518 msgid ""
31519 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31520 "resized to its minimum size.  This works like the I<-M> option to the "
31521 "C<resize2fs> command."
31522 msgstr ""
31523
31524 #. type: textblock
31525 #: ../src/guestfs-actions.pod:6488
31526 msgid ""
31527 "To get the resulting size of the filesystem you should call "
31528 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31529 "These two numbers, multiplied together, give the resulting size of the "
31530 "minimal filesystem in bytes."
31531 msgstr ""
31532
31533 #. type: =head2
31534 #: ../src/guestfs-actions.pod:6497
31535 msgid "guestfs_resize2fs_size"
31536 msgstr ""
31537
31538 #. type: verbatim
31539 #: ../src/guestfs-actions.pod:6499
31540 #, no-wrap
31541 msgid ""
31542 " int\n"
31543 " guestfs_resize2fs_size (guestfs_h *g,\n"
31544 "                         const char *device,\n"
31545 "                         int64_t size);\n"
31546 "\n"
31547 msgstr ""
31548
31549 #. type: textblock
31550 #: ../src/guestfs-actions.pod:6504
31551 msgid ""
31552 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31553 "to specify the new size (in bytes) explicitly."
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs-actions.pod:6511
31558 msgid "guestfs_rm"
31559 msgstr ""
31560
31561 #. type: verbatim
31562 #: ../src/guestfs-actions.pod:6513
31563 #, no-wrap
31564 msgid ""
31565 " int\n"
31566 " guestfs_rm (guestfs_h *g,\n"
31567 "             const char *path);\n"
31568 "\n"
31569 msgstr ""
31570
31571 #. type: =head2
31572 #: ../src/guestfs-actions.pod:6523
31573 msgid "guestfs_rm_rf"
31574 msgstr ""
31575
31576 #. type: verbatim
31577 #: ../src/guestfs-actions.pod:6525
31578 #, no-wrap
31579 msgid ""
31580 " int\n"
31581 " guestfs_rm_rf (guestfs_h *g,\n"
31582 "                const char *path);\n"
31583 "\n"
31584 msgstr ""
31585
31586 #. type: =head2
31587 #: ../src/guestfs-actions.pod:6537
31588 msgid "guestfs_rmdir"
31589 msgstr ""
31590
31591 #. type: verbatim
31592 #: ../src/guestfs-actions.pod:6539
31593 #, no-wrap
31594 msgid ""
31595 " int\n"
31596 " guestfs_rmdir (guestfs_h *g,\n"
31597 "                const char *path);\n"
31598 "\n"
31599 msgstr ""
31600
31601 #. type: =head2
31602 #: ../src/guestfs-actions.pod:6549
31603 msgid "guestfs_rmmountpoint"
31604 msgstr ""
31605
31606 #. type: verbatim
31607 #: ../src/guestfs-actions.pod:6551
31608 #, no-wrap
31609 msgid ""
31610 " int\n"
31611 " guestfs_rmmountpoint (guestfs_h *g,\n"
31612 "                       const char *exemptpath);\n"
31613 "\n"
31614 msgstr ""
31615
31616 #. type: textblock
31617 #: ../src/guestfs-actions.pod:6555
31618 msgid ""
31619 "This calls removes a mountpoint that was previously created with "
31620 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31621 msgstr ""
31622
31623 #. type: =head2
31624 #: ../src/guestfs-actions.pod:6563
31625 msgid "guestfs_scrub_device"
31626 msgstr ""
31627
31628 #. type: verbatim
31629 #: ../src/guestfs-actions.pod:6565
31630 #, no-wrap
31631 msgid ""
31632 " int\n"
31633 " guestfs_scrub_device (guestfs_h *g,\n"
31634 "                       const char *device);\n"
31635 "\n"
31636 msgstr ""
31637
31638 #. type: textblock
31639 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6598
31640 #: ../src/guestfs-actions.pod:6617
31641 msgid "(Added in 1.0.52)"
31642 msgstr ""
31643
31644 #. type: =head2
31645 #: ../src/guestfs-actions.pod:6582
31646 msgid "guestfs_scrub_file"
31647 msgstr ""
31648
31649 #. type: verbatim
31650 #: ../src/guestfs-actions.pod:6584
31651 #, no-wrap
31652 msgid ""
31653 " int\n"
31654 " guestfs_scrub_file (guestfs_h *g,\n"
31655 "                     const char *file);\n"
31656 "\n"
31657 msgstr ""
31658
31659 #. type: =head2
31660 #: ../src/guestfs-actions.pod:6600
31661 msgid "guestfs_scrub_freespace"
31662 msgstr ""
31663
31664 #. type: verbatim
31665 #: ../src/guestfs-actions.pod:6602
31666 #, no-wrap
31667 msgid ""
31668 " int\n"
31669 " guestfs_scrub_freespace (guestfs_h *g,\n"
31670 "                          const char *dir);\n"
31671 "\n"
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs-actions.pod:6606
31676 msgid ""
31677 "This command creates the directory C<dir> and then fills it with files until "
31678 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31679 "and deletes them.  The intention is to scrub any free space on the partition "
31680 "containing C<dir>."
31681 msgstr ""
31682
31683 #. type: =head2
31684 #: ../src/guestfs-actions.pod:6619
31685 msgid "guestfs_set_append"
31686 msgstr ""
31687
31688 #. type: verbatim
31689 #: ../src/guestfs-actions.pod:6621
31690 #, no-wrap
31691 msgid ""
31692 " int\n"
31693 " guestfs_set_append (guestfs_h *g,\n"
31694 "                     const char *append);\n"
31695 "\n"
31696 msgstr ""
31697
31698 #. type: =head2
31699 #: ../src/guestfs-actions.pod:6638
31700 msgid "guestfs_set_attach_method"
31701 msgstr ""
31702
31703 #. type: verbatim
31704 #: ../src/guestfs-actions.pod:6640
31705 #, no-wrap
31706 msgid ""
31707 " int\n"
31708 " guestfs_set_attach_method (guestfs_h *g,\n"
31709 "                            const char *attachmethod);\n"
31710 "\n"
31711 msgstr ""
31712
31713 #. type: =head2
31714 #: ../src/guestfs-actions.pod:6668
31715 msgid "guestfs_set_autosync"
31716 msgstr ""
31717
31718 #. type: verbatim
31719 #: ../src/guestfs-actions.pod:6670
31720 #, no-wrap
31721 msgid ""
31722 " int\n"
31723 " guestfs_set_autosync (guestfs_h *g,\n"
31724 "                       int autosync);\n"
31725 "\n"
31726 msgstr ""
31727
31728 #. type: =head2
31729 #: ../src/guestfs-actions.pod:6686
31730 msgid "guestfs_set_direct"
31731 msgstr ""
31732
31733 #. type: verbatim
31734 #: ../src/guestfs-actions.pod:6688
31735 #, no-wrap
31736 msgid ""
31737 " int\n"
31738 " guestfs_set_direct (guestfs_h *g,\n"
31739 "                     int direct);\n"
31740 "\n"
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs-actions.pod:6696
31745 msgid ""
31746 "One consequence of this is that log messages aren't caught by the library "
31747 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31748 "stdout."
31749 msgstr ""
31750
31751 #. type: =head2
31752 #: ../src/guestfs-actions.pod:6709
31753 msgid "guestfs_set_e2label"
31754 msgstr ""
31755
31756 #. type: verbatim
31757 #: ../src/guestfs-actions.pod:6711
31758 #, no-wrap
31759 msgid ""
31760 " int\n"
31761 " guestfs_set_e2label (guestfs_h *g,\n"
31762 "                      const char *device,\n"
31763 "                      const char *label);\n"
31764 "\n"
31765 msgstr ""
31766
31767 #. type: textblock
31768 #: ../src/guestfs-actions.pod:6720
31769 msgid ""
31770 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31771 "the existing label on a filesystem."
31772 msgstr ""
31773
31774 #. type: =head2
31775 #: ../src/guestfs-actions.pod:6727
31776 msgid "guestfs_set_e2uuid"
31777 msgstr ""
31778
31779 #. type: verbatim
31780 #: ../src/guestfs-actions.pod:6729
31781 #, no-wrap
31782 msgid ""
31783 " int\n"
31784 " guestfs_set_e2uuid (guestfs_h *g,\n"
31785 "                     const char *device,\n"
31786 "                     const char *uuid);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs-actions.pod:6739
31792 msgid ""
31793 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31794 "the existing UUID of a filesystem."
31795 msgstr ""
31796
31797 #. type: =head2
31798 #: ../src/guestfs-actions.pod:6746
31799 msgid "guestfs_set_memsize"
31800 msgstr ""
31801
31802 #. type: verbatim
31803 #: ../src/guestfs-actions.pod:6748
31804 #, no-wrap
31805 msgid ""
31806 " int\n"
31807 " guestfs_set_memsize (guestfs_h *g,\n"
31808 "                      int memsize);\n"
31809 "\n"
31810 msgstr ""
31811
31812 #. type: textblock
31813 #: ../src/guestfs-actions.pod:6752
31814 msgid ""
31815 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31816 "This only has any effect if called before C<guestfs_launch>."
31817 msgstr ""
31818
31819 #. type: =head2
31820 #: ../src/guestfs-actions.pod:6767
31821 msgid "guestfs_set_network"
31822 msgstr ""
31823
31824 #. type: verbatim
31825 #: ../src/guestfs-actions.pod:6769
31826 #, no-wrap
31827 msgid ""
31828 " int\n"
31829 " guestfs_set_network (guestfs_h *g,\n"
31830 "                      int network);\n"
31831 "\n"
31832 msgstr ""
31833
31834 #. type: textblock
31835 #: ../src/guestfs-actions.pod:6779
31836 msgid ""
31837 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31838 "effect."
31839 msgstr ""
31840
31841 #. type: =head2
31842 #: ../src/guestfs-actions.pod:6786
31843 msgid "guestfs_set_path"
31844 msgstr ""
31845
31846 #. type: verbatim
31847 #: ../src/guestfs-actions.pod:6788
31848 #, no-wrap
31849 msgid ""
31850 " int\n"
31851 " guestfs_set_path (guestfs_h *g,\n"
31852 "                   const char *searchpath);\n"
31853 "\n"
31854 msgstr ""
31855
31856 #. type: =head2
31857 #: ../src/guestfs-actions.pod:6803
31858 msgid "guestfs_set_pgroup"
31859 msgstr ""
31860
31861 #. type: verbatim
31862 #: ../src/guestfs-actions.pod:6805
31863 #, no-wrap
31864 msgid ""
31865 " int\n"
31866 " guestfs_set_pgroup (guestfs_h *g,\n"
31867 "                     int pgroup);\n"
31868 "\n"
31869 msgstr ""
31870
31871 #. type: =head2
31872 #: ../src/guestfs-actions.pod:6822
31873 msgid "guestfs_set_qemu"
31874 msgstr ""
31875
31876 #. type: verbatim
31877 #: ../src/guestfs-actions.pod:6824
31878 #, no-wrap
31879 msgid ""
31880 " int\n"
31881 " guestfs_set_qemu (guestfs_h *g,\n"
31882 "                   const char *qemu);\n"
31883 "\n"
31884 msgstr ""
31885
31886 #. type: =head2
31887 #: ../src/guestfs-actions.pod:6850
31888 msgid "guestfs_set_recovery_proc"
31889 msgstr ""
31890
31891 #. type: verbatim
31892 #: ../src/guestfs-actions.pod:6852
31893 #, no-wrap
31894 msgid ""
31895 " int\n"
31896 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31897 "                            int recoveryproc);\n"
31898 "\n"
31899 msgstr ""
31900
31901 #. type: textblock
31902 #: ../src/guestfs-actions.pod:6856
31903 msgid ""
31904 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31905 "not create a recovery process.  The purpose of the recovery process is to "
31906 "stop runaway qemu processes in the case where the main program aborts "
31907 "abruptly."
31908 msgstr ""
31909
31910 #. type: textblock
31911 #: ../src/guestfs-actions.pod:6861
31912 msgid ""
31913 "This only has any effect if called before C<guestfs_launch>, and the default "
31914 "is true."
31915 msgstr ""
31916
31917 #. type: =head2
31918 #: ../src/guestfs-actions.pod:6874
31919 msgid "guestfs_set_selinux"
31920 msgstr ""
31921
31922 #. type: verbatim
31923 #: ../src/guestfs-actions.pod:6876
31924 #, no-wrap
31925 msgid ""
31926 " int\n"
31927 " guestfs_set_selinux (guestfs_h *g,\n"
31928 "                      int selinux);\n"
31929 "\n"
31930 msgstr ""
31931
31932 #. type: =head2
31933 #: ../src/guestfs-actions.pod:6893
31934 msgid "guestfs_set_smp"
31935 msgstr ""
31936
31937 #. type: verbatim
31938 #: ../src/guestfs-actions.pod:6895
31939 #, no-wrap
31940 msgid ""
31941 " int\n"
31942 " guestfs_set_smp (guestfs_h *g,\n"
31943 "                  int smp);\n"
31944 "\n"
31945 msgstr ""
31946
31947 #. type: textblock
31948 #: ../src/guestfs-actions.pod:6903
31949 msgid "This function must be called before C<guestfs_launch>."
31950 msgstr ""
31951
31952 #. type: =head2
31953 #: ../src/guestfs-actions.pod:6909
31954 msgid "guestfs_set_trace"
31955 msgstr ""
31956
31957 #. type: verbatim
31958 #: ../src/guestfs-actions.pod:6911
31959 #, no-wrap
31960 msgid ""
31961 " int\n"
31962 " guestfs_set_trace (guestfs_h *g,\n"
31963 "                    int trace);\n"
31964 "\n"
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../src/guestfs-actions.pod:6925
31969 msgid ""
31970 "Trace messages are normally sent to C<stderr>, unless you register a "
31971 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31972 msgstr ""
31973
31974 #. type: =head2
31975 #: ../src/guestfs-actions.pod:6933
31976 msgid "guestfs_set_verbose"
31977 msgstr ""
31978
31979 #. type: verbatim
31980 #: ../src/guestfs-actions.pod:6935
31981 #, no-wrap
31982 msgid ""
31983 " int\n"
31984 " guestfs_set_verbose (guestfs_h *g,\n"
31985 "                      int verbose);\n"
31986 "\n"
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs-actions.pod:6944
31991 msgid ""
31992 "Verbose messages are normally sent to C<stderr>, unless you register a "
31993 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31994 msgstr ""
31995
31996 #. type: =head2
31997 #: ../src/guestfs-actions.pod:6952
31998 msgid "guestfs_setcon"
31999 msgstr ""
32000
32001 #. type: verbatim
32002 #: ../src/guestfs-actions.pod:6954
32003 #, no-wrap
32004 msgid ""
32005 " int\n"
32006 " guestfs_setcon (guestfs_h *g,\n"
32007 "                 const char *context);\n"
32008 "\n"
32009 msgstr ""
32010
32011 #. type: =head2
32012 #: ../src/guestfs-actions.pod:6967
32013 msgid "guestfs_setxattr"
32014 msgstr ""
32015
32016 #. type: verbatim
32017 #: ../src/guestfs-actions.pod:6969
32018 #, no-wrap
32019 msgid ""
32020 " int\n"
32021 " guestfs_setxattr (guestfs_h *g,\n"
32022 "                   const char *xattr,\n"
32023 "                   const char *val,\n"
32024 "                   int vallen,\n"
32025 "                   const char *path);\n"
32026 "\n"
32027 msgstr ""
32028
32029 #. type: textblock
32030 #: ../src/guestfs-actions.pod:6980
32031 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32032 msgstr ""
32033
32034 #. type: =head2
32035 #: ../src/guestfs-actions.pod:6986
32036 msgid "guestfs_sfdisk"
32037 msgstr ""
32038
32039 #. type: verbatim
32040 #: ../src/guestfs-actions.pod:6988
32041 #, no-wrap
32042 msgid ""
32043 " int\n"
32044 " guestfs_sfdisk (guestfs_h *g,\n"
32045 "                 const char *device,\n"
32046 "                 int cyls,\n"
32047 "                 int heads,\n"
32048 "                 int sectors,\n"
32049 "                 char *const *lines);\n"
32050 "\n"
32051 msgstr ""
32052
32053 #. type: textblock
32054 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7040
32055 #: ../src/guestfs-actions.pod:7074
32056 msgid ""
32057 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32058 "call instead."
32059 msgstr ""
32060
32061 #. type: textblock
32062 #: ../src/guestfs-actions.pod:7023
32063 msgid ""
32064 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32065 msgstr ""
32066
32067 #. type: =head2
32068 #: ../src/guestfs-actions.pod:7033
32069 msgid "guestfs_sfdiskM"
32070 msgstr ""
32071
32072 #. type: verbatim
32073 #: ../src/guestfs-actions.pod:7035
32074 #, no-wrap
32075 msgid ""
32076 " int\n"
32077 " guestfs_sfdiskM (guestfs_h *g,\n"
32078 "                  const char *device,\n"
32079 "                  char *const *lines);\n"
32080 "\n"
32081 msgstr ""
32082
32083 #. type: textblock
32084 #: ../src/guestfs-actions.pod:7047
32085 msgid ""
32086 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32087 "partition sizes are specified in megabytes only (rounded to the nearest "
32088 "cylinder) and you don't need to specify the cyls, heads and sectors "
32089 "parameters which were rarely if ever used anyway."
32090 msgstr ""
32091
32092 #. type: textblock
32093 #: ../src/guestfs-actions.pod:7053
32094 msgid ""
32095 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32096 "C<guestfs_part_disk>"
32097 msgstr ""
32098
32099 #. type: =head2
32100 #: ../src/guestfs-actions.pod:7063
32101 msgid "guestfs_sfdisk_N"
32102 msgstr ""
32103
32104 #. type: verbatim
32105 #: ../src/guestfs-actions.pod:7065
32106 #, no-wrap
32107 msgid ""
32108 " int\n"
32109 " guestfs_sfdisk_N (guestfs_h *g,\n"
32110 "                   const char *device,\n"
32111 "                   int partnum,\n"
32112 "                   int cyls,\n"
32113 "                   int heads,\n"
32114 "                   int sectors,\n"
32115 "                   const char *line);\n"
32116 "\n"
32117 msgstr ""
32118
32119 #. type: textblock
32120 #: ../src/guestfs-actions.pod:7084
32121 msgid ""
32122 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32123 "for the cyls/heads/sectors parameters."
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs-actions.pod:7087
32128 msgid "See also: C<guestfs_part_add>"
32129 msgstr ""
32130
32131 #. type: =head2
32132 #: ../src/guestfs-actions.pod:7096
32133 msgid "guestfs_sfdisk_disk_geometry"
32134 msgstr ""
32135
32136 #. type: verbatim
32137 #: ../src/guestfs-actions.pod:7098
32138 #, no-wrap
32139 msgid ""
32140 " char *\n"
32141 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32142 "                               const char *device);\n"
32143 "\n"
32144 msgstr ""
32145
32146 #. type: textblock
32147 #: ../src/guestfs-actions.pod:7102
32148 msgid ""
32149 "This displays the disk geometry of C<device> read from the partition table.  "
32150 "Especially in the case where the underlying block device has been resized, "
32151 "this can be different from the kernel's idea of the geometry (see "
32152 "C<guestfs_sfdisk_kernel_geometry>)."
32153 msgstr ""
32154
32155 #. type: =head2
32156 #: ../src/guestfs-actions.pod:7115
32157 msgid "guestfs_sfdisk_kernel_geometry"
32158 msgstr ""
32159
32160 #. type: verbatim
32161 #: ../src/guestfs-actions.pod:7117
32162 #, no-wrap
32163 msgid ""
32164 " char *\n"
32165 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32166 "                                 const char *device);\n"
32167 "\n"
32168 msgstr ""
32169
32170 #. type: =head2
32171 #: ../src/guestfs-actions.pod:7131
32172 msgid "guestfs_sfdisk_l"
32173 msgstr ""
32174
32175 #. type: verbatim
32176 #: ../src/guestfs-actions.pod:7133
32177 #, no-wrap
32178 msgid ""
32179 " char *\n"
32180 " guestfs_sfdisk_l (guestfs_h *g,\n"
32181 "                   const char *device);\n"
32182 "\n"
32183 msgstr ""
32184
32185 #. type: textblock
32186 #: ../src/guestfs-actions.pod:7137
32187 msgid ""
32188 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32189 "call instead."
32190 msgstr ""
32191
32192 #. type: textblock
32193 #: ../src/guestfs-actions.pod:7148
32194 msgid "See also: C<guestfs_part_list>"
32195 msgstr ""
32196
32197 #. type: =head2
32198 #: ../src/guestfs-actions.pod:7155
32199 msgid "guestfs_sh"
32200 msgstr ""
32201
32202 #. type: verbatim
32203 #: ../src/guestfs-actions.pod:7157
32204 #, no-wrap
32205 msgid ""
32206 " char *\n"
32207 " guestfs_sh (guestfs_h *g,\n"
32208 "             const char *command);\n"
32209 "\n"
32210 msgstr ""
32211
32212 #. type: textblock
32213 #: ../src/guestfs-actions.pod:7164
32214 msgid "This is like C<guestfs_command>, but passes the command to:"
32215 msgstr ""
32216
32217 #. type: textblock
32218 #: ../src/guestfs-actions.pod:7172
32219 msgid "All the provisos about C<guestfs_command> apply to this call."
32220 msgstr ""
32221
32222 #. type: =head2
32223 #: ../src/guestfs-actions.pod:7179
32224 msgid "guestfs_sh_lines"
32225 msgstr ""
32226
32227 #. type: verbatim
32228 #: ../src/guestfs-actions.pod:7181
32229 #, no-wrap
32230 msgid ""
32231 " char **\n"
32232 " guestfs_sh_lines (guestfs_h *g,\n"
32233 "                   const char *command);\n"
32234 "\n"
32235 msgstr ""
32236
32237 #. type: textblock
32238 #: ../src/guestfs-actions.pod:7185
32239 msgid ""
32240 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32241 "lines."
32242 msgstr ""
32243
32244 #. type: textblock
32245 #: ../src/guestfs-actions.pod:7188
32246 msgid "See also: C<guestfs_command_lines>"
32247 msgstr ""
32248
32249 #. type: =head2
32250 #: ../src/guestfs-actions.pod:7196
32251 msgid "guestfs_sleep"
32252 msgstr ""
32253
32254 #. type: verbatim
32255 #: ../src/guestfs-actions.pod:7198
32256 #, no-wrap
32257 msgid ""
32258 " int\n"
32259 " guestfs_sleep (guestfs_h *g,\n"
32260 "                int secs);\n"
32261 "\n"
32262 msgstr ""
32263
32264 #. type: textblock
32265 #: ../src/guestfs-actions.pod:7206
32266 msgid "(Added in 1.0.41)"
32267 msgstr ""
32268
32269 #. type: =head2
32270 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-structs.pod:109
32271 msgid "guestfs_stat"
32272 msgstr ""
32273
32274 #. type: verbatim
32275 #: ../src/guestfs-actions.pod:7210
32276 #, no-wrap
32277 msgid ""
32278 " struct guestfs_stat *\n"
32279 " guestfs_stat (guestfs_h *g,\n"
32280 "               const char *path);\n"
32281 "\n"
32282 msgstr ""
32283
32284 #. type: =head2
32285 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-structs.pod:135
32286 msgid "guestfs_statvfs"
32287 msgstr ""
32288
32289 #. type: verbatim
32290 #: ../src/guestfs-actions.pod:7226
32291 #, no-wrap
32292 msgid ""
32293 " struct guestfs_statvfs *\n"
32294 " guestfs_statvfs (guestfs_h *g,\n"
32295 "                  const char *path);\n"
32296 "\n"
32297 msgstr ""
32298
32299 #. type: textblock
32300 #: ../src/guestfs-actions.pod:7236
32301 msgid ""
32302 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32303 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32304 msgstr ""
32305
32306 #. type: =head2
32307 #: ../src/guestfs-actions.pod:7242
32308 msgid "guestfs_strings"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-actions.pod:7244
32313 #, no-wrap
32314 msgid ""
32315 " char **\n"
32316 " guestfs_strings (guestfs_h *g,\n"
32317 "                  const char *path);\n"
32318 "\n"
32319 msgstr ""
32320
32321 #. type: =head2
32322 #: ../src/guestfs-actions.pod:7260
32323 msgid "guestfs_strings_e"
32324 msgstr ""
32325
32326 #. type: verbatim
32327 #: ../src/guestfs-actions.pod:7262
32328 #, no-wrap
32329 msgid ""
32330 " char **\n"
32331 " guestfs_strings_e (guestfs_h *g,\n"
32332 "                    const char *encoding,\n"
32333 "                    const char *path);\n"
32334 "\n"
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs-actions.pod:7267
32339 msgid ""
32340 "This is like the C<guestfs_strings> command, but allows you to specify the "
32341 "encoding of strings that are looked for in the source file C<path>."
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs-actions.pod:7277
32346 msgid ""
32347 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32348 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32349 msgstr ""
32350
32351 #. type: =head2
32352 #: ../src/guestfs-actions.pod:7315
32353 msgid "guestfs_swapoff_device"
32354 msgstr ""
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-actions.pod:7317
32358 #, no-wrap
32359 msgid ""
32360 " int\n"
32361 " guestfs_swapoff_device (guestfs_h *g,\n"
32362 "                         const char *device);\n"
32363 "\n"
32364 msgstr ""
32365
32366 #. type: textblock
32367 #: ../src/guestfs-actions.pod:7321
32368 msgid ""
32369 "This command disables the libguestfs appliance swap device or partition "
32370 "named C<device>.  See C<guestfs_swapon_device>."
32371 msgstr ""
32372
32373 #. type: =head2
32374 #: ../src/guestfs-actions.pod:7329
32375 msgid "guestfs_swapoff_file"
32376 msgstr ""
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-actions.pod:7331
32380 #, no-wrap
32381 msgid ""
32382 " int\n"
32383 " guestfs_swapoff_file (guestfs_h *g,\n"
32384 "                       const char *file);\n"
32385 "\n"
32386 msgstr ""
32387
32388 #. type: =head2
32389 #: ../src/guestfs-actions.pod:7341
32390 msgid "guestfs_swapoff_label"
32391 msgstr ""
32392
32393 #. type: verbatim
32394 #: ../src/guestfs-actions.pod:7343
32395 #, no-wrap
32396 msgid ""
32397 " int\n"
32398 " guestfs_swapoff_label (guestfs_h *g,\n"
32399 "                        const char *label);\n"
32400 "\n"
32401 msgstr ""
32402
32403 #. type: =head2
32404 #: ../src/guestfs-actions.pod:7354
32405 msgid "guestfs_swapoff_uuid"
32406 msgstr ""
32407
32408 #. type: verbatim
32409 #: ../src/guestfs-actions.pod:7356
32410 #, no-wrap
32411 msgid ""
32412 " int\n"
32413 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32414 "                       const char *uuid);\n"
32415 "\n"
32416 msgstr ""
32417
32418 #. type: =head2
32419 #: ../src/guestfs-actions.pod:7367
32420 msgid "guestfs_swapon_device"
32421 msgstr ""
32422
32423 #. type: verbatim
32424 #: ../src/guestfs-actions.pod:7369
32425 #, no-wrap
32426 msgid ""
32427 " int\n"
32428 " guestfs_swapon_device (guestfs_h *g,\n"
32429 "                        const char *device);\n"
32430 "\n"
32431 msgstr ""
32432
32433 #. type: textblock
32434 #: ../src/guestfs-actions.pod:7373
32435 msgid ""
32436 "This command enables the libguestfs appliance to use the swap device or "
32437 "partition named C<device>.  The increased memory is made available for all "
32438 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32439 msgstr ""
32440
32441 #. type: =head2
32442 #: ../src/guestfs-actions.pod:7389
32443 msgid "guestfs_swapon_file"
32444 msgstr ""
32445
32446 #. type: verbatim
32447 #: ../src/guestfs-actions.pod:7391
32448 #, no-wrap
32449 msgid ""
32450 " int\n"
32451 " guestfs_swapon_file (guestfs_h *g,\n"
32452 "                      const char *file);\n"
32453 "\n"
32454 msgstr ""
32455
32456 #. type: textblock
32457 #: ../src/guestfs-actions.pod:7395
32458 msgid ""
32459 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32460 "notes."
32461 msgstr ""
32462
32463 #. type: =head2
32464 #: ../src/guestfs-actions.pod:7402
32465 msgid "guestfs_swapon_label"
32466 msgstr ""
32467
32468 #. type: verbatim
32469 #: ../src/guestfs-actions.pod:7404
32470 #, no-wrap
32471 msgid ""
32472 " int\n"
32473 " guestfs_swapon_label (guestfs_h *g,\n"
32474 "                       const char *label);\n"
32475 "\n"
32476 msgstr ""
32477
32478 #. type: textblock
32479 #: ../src/guestfs-actions.pod:7408
32480 msgid ""
32481 "This command enables swap to a labeled swap partition.  See "
32482 "C<guestfs_swapon_device> for other notes."
32483 msgstr ""
32484
32485 #. type: =head2
32486 #: ../src/guestfs-actions.pod:7415
32487 msgid "guestfs_swapon_uuid"
32488 msgstr ""
32489
32490 #. type: verbatim
32491 #: ../src/guestfs-actions.pod:7417
32492 #, no-wrap
32493 msgid ""
32494 " int\n"
32495 " guestfs_swapon_uuid (guestfs_h *g,\n"
32496 "                      const char *uuid);\n"
32497 "\n"
32498 msgstr ""
32499
32500 #. type: textblock
32501 #: ../src/guestfs-actions.pod:7421
32502 msgid ""
32503 "This command enables swap to a swap partition with the given UUID.  See "
32504 "C<guestfs_swapon_device> for other notes."
32505 msgstr ""
32506
32507 #. type: =head2
32508 #: ../src/guestfs-actions.pod:7428
32509 msgid "guestfs_sync"
32510 msgstr ""
32511
32512 #. type: verbatim
32513 #: ../src/guestfs-actions.pod:7430
32514 #, no-wrap
32515 msgid ""
32516 " int\n"
32517 " guestfs_sync (guestfs_h *g);\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: =head2
32522 #: ../src/guestfs-actions.pod:7443
32523 msgid "guestfs_tail"
32524 msgstr ""
32525
32526 #. type: verbatim
32527 #: ../src/guestfs-actions.pod:7445
32528 #, no-wrap
32529 msgid ""
32530 " char **\n"
32531 " guestfs_tail (guestfs_h *g,\n"
32532 "               const char *path);\n"
32533 "\n"
32534 msgstr ""
32535
32536 #. type: =head2
32537 #: ../src/guestfs-actions.pod:7461
32538 msgid "guestfs_tail_n"
32539 msgstr ""
32540
32541 #. type: verbatim
32542 #: ../src/guestfs-actions.pod:7463
32543 #, no-wrap
32544 msgid ""
32545 " char **\n"
32546 " guestfs_tail_n (guestfs_h *g,\n"
32547 "                 int nrlines,\n"
32548 "                 const char *path);\n"
32549 "\n"
32550 msgstr ""
32551
32552 #. type: =head2
32553 #: ../src/guestfs-actions.pod:7485
32554 msgid "guestfs_tar_in"
32555 msgstr ""
32556
32557 #. type: verbatim
32558 #: ../src/guestfs-actions.pod:7487
32559 #, no-wrap
32560 msgid ""
32561 " int\n"
32562 " guestfs_tar_in (guestfs_h *g,\n"
32563 "                 const char *tarfile,\n"
32564 "                 const char *directory);\n"
32565 "\n"
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs-actions.pod:7495
32570 msgid ""
32571 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32572 msgstr ""
32573
32574 #. type: textblock
32575 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7517
32576 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7549
32577 msgid "(Added in 1.0.3)"
32578 msgstr ""
32579
32580 #. type: =head2
32581 #: ../src/guestfs-actions.pod:7502
32582 msgid "guestfs_tar_out"
32583 msgstr ""
32584
32585 #. type: verbatim
32586 #: ../src/guestfs-actions.pod:7504
32587 #, no-wrap
32588 msgid ""
32589 " int\n"
32590 " guestfs_tar_out (guestfs_h *g,\n"
32591 "                  const char *directory,\n"
32592 "                  const char *tarfile);\n"
32593 "\n"
32594 msgstr ""
32595
32596 #. type: textblock
32597 #: ../src/guestfs-actions.pod:7512
32598 msgid ""
32599 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32600 "C<guestfs_txz_out>."
32601 msgstr ""
32602
32603 #. type: =head2
32604 #: ../src/guestfs-actions.pod:7519
32605 msgid "guestfs_tgz_in"
32606 msgstr ""
32607
32608 #. type: verbatim
32609 #: ../src/guestfs-actions.pod:7521
32610 #, no-wrap
32611 msgid ""
32612 " int\n"
32613 " guestfs_tgz_in (guestfs_h *g,\n"
32614 "                 const char *tarball,\n"
32615 "                 const char *directory);\n"
32616 "\n"
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs-actions.pod:7529
32621 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32622 msgstr ""
32623
32624 #. type: =head2
32625 #: ../src/guestfs-actions.pod:7535
32626 msgid "guestfs_tgz_out"
32627 msgstr ""
32628
32629 #. type: verbatim
32630 #: ../src/guestfs-actions.pod:7537
32631 #, no-wrap
32632 msgid ""
32633 " int\n"
32634 " guestfs_tgz_out (guestfs_h *g,\n"
32635 "                  const char *directory,\n"
32636 "                  const char *tarball);\n"
32637 "\n"
32638 msgstr ""
32639
32640 #. type: textblock
32641 #: ../src/guestfs-actions.pod:7545
32642 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32643 msgstr ""
32644
32645 #. type: =head2
32646 #: ../src/guestfs-actions.pod:7551
32647 msgid "guestfs_touch"
32648 msgstr ""
32649
32650 #. type: verbatim
32651 #: ../src/guestfs-actions.pod:7553
32652 #, no-wrap
32653 msgid ""
32654 " int\n"
32655 " guestfs_touch (guestfs_h *g,\n"
32656 "                const char *path);\n"
32657 "\n"
32658 msgstr ""
32659
32660 #. type: =head2
32661 #: ../src/guestfs-actions.pod:7568
32662 msgid "guestfs_truncate"
32663 msgstr ""
32664
32665 #. type: verbatim
32666 #: ../src/guestfs-actions.pod:7570
32667 #, no-wrap
32668 msgid ""
32669 " int\n"
32670 " guestfs_truncate (guestfs_h *g,\n"
32671 "                   const char *path);\n"
32672 "\n"
32673 msgstr ""
32674
32675 #. type: =head2
32676 #: ../src/guestfs-actions.pod:7581
32677 msgid "guestfs_truncate_size"
32678 msgstr ""
32679
32680 #. type: verbatim
32681 #: ../src/guestfs-actions.pod:7583
32682 #, no-wrap
32683 msgid ""
32684 " int\n"
32685 " guestfs_truncate_size (guestfs_h *g,\n"
32686 "                        const char *path,\n"
32687 "                        int64_t size);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: textblock
32692 #: ../src/guestfs-actions.pod:7591
32693 msgid ""
32694 "If the current file size is less than C<size> then the file is extended to "
32695 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32696 "blocks are not allocated for the file until you write to it).  To create a "
32697 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32698 msgstr ""
32699
32700 #. type: =head2
32701 #: ../src/guestfs-actions.pod:7601
32702 msgid "guestfs_tune2fs_l"
32703 msgstr ""
32704
32705 #. type: verbatim
32706 #: ../src/guestfs-actions.pod:7603
32707 #, no-wrap
32708 msgid ""
32709 " char **\n"
32710 " guestfs_tune2fs_l (guestfs_h *g,\n"
32711 "                    const char *device);\n"
32712 "\n"
32713 msgstr ""
32714
32715 #. type: =head2
32716 #: ../src/guestfs-actions.pod:7623
32717 msgid "guestfs_txz_in"
32718 msgstr ""
32719
32720 #. type: verbatim
32721 #: ../src/guestfs-actions.pod:7625
32722 #, no-wrap
32723 msgid ""
32724 " int\n"
32725 " guestfs_txz_in (guestfs_h *g,\n"
32726 "                 const char *tarball,\n"
32727 "                 const char *directory);\n"
32728 "\n"
32729 msgstr ""
32730
32731 #. type: =head2
32732 #: ../src/guestfs-actions.pod:7637
32733 msgid "guestfs_txz_out"
32734 msgstr ""
32735
32736 #. type: verbatim
32737 #: ../src/guestfs-actions.pod:7639
32738 #, no-wrap
32739 msgid ""
32740 " int\n"
32741 " guestfs_txz_out (guestfs_h *g,\n"
32742 "                  const char *directory,\n"
32743 "                  const char *tarball);\n"
32744 "\n"
32745 msgstr ""
32746
32747 #. type: =head2
32748 #: ../src/guestfs-actions.pod:7651
32749 msgid "guestfs_umask"
32750 msgstr ""
32751
32752 #. type: verbatim
32753 #: ../src/guestfs-actions.pod:7653
32754 #, no-wrap
32755 msgid ""
32756 " int\n"
32757 " guestfs_umask (guestfs_h *g,\n"
32758 "                int mask);\n"
32759 "\n"
32760 msgstr ""
32761
32762 #. type: textblock
32763 #: ../src/guestfs-actions.pod:7669
32764 msgid ""
32765 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32766 "C<guestfs_mkdir>."
32767 msgstr ""
32768
32769 #. type: =head2
32770 #: ../src/guestfs-actions.pod:7678
32771 msgid "guestfs_umount"
32772 msgstr ""
32773
32774 #. type: verbatim
32775 #: ../src/guestfs-actions.pod:7680
32776 #, no-wrap
32777 msgid ""
32778 " int\n"
32779 " guestfs_umount (guestfs_h *g,\n"
32780 "                 const char *pathordevice);\n"
32781 "\n"
32782 msgstr ""
32783
32784 #. type: =head2
32785 #: ../src/guestfs-actions.pod:7692
32786 msgid "guestfs_umount_all"
32787 msgstr ""
32788
32789 #. type: verbatim
32790 #: ../src/guestfs-actions.pod:7694
32791 #, no-wrap
32792 msgid ""
32793 " int\n"
32794 " guestfs_umount_all (guestfs_h *g);\n"
32795 "\n"
32796 msgstr ""
32797
32798 #. type: =head2
32799 #: ../src/guestfs-actions.pod:7705
32800 msgid "guestfs_upload"
32801 msgstr ""
32802
32803 #. type: verbatim
32804 #: ../src/guestfs-actions.pod:7707
32805 #, no-wrap
32806 msgid ""
32807 " int\n"
32808 " guestfs_upload (guestfs_h *g,\n"
32809 "                 const char *filename,\n"
32810 "                 const char *remotefilename);\n"
32811 "\n"
32812 msgstr ""
32813
32814 #. type: textblock
32815 #: ../src/guestfs-actions.pod:7717
32816 msgid "See also C<guestfs_download>."
32817 msgstr ""
32818
32819 #. type: =head2
32820 #: ../src/guestfs-actions.pod:7728
32821 msgid "guestfs_upload_offset"
32822 msgstr ""
32823
32824 #. type: verbatim
32825 #: ../src/guestfs-actions.pod:7730
32826 #, no-wrap
32827 msgid ""
32828 " int\n"
32829 " guestfs_upload_offset (guestfs_h *g,\n"
32830 "                        const char *filename,\n"
32831 "                        const char *remotefilename,\n"
32832 "                        int64_t offset);\n"
32833 "\n"
32834 msgstr ""
32835
32836 #. type: textblock
32837 #: ../src/guestfs-actions.pod:7746
32838 msgid ""
32839 "Note that there is no limit on the amount of data that can be uploaded with "
32840 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32841 "full amount unless an error occurs."
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs-actions.pod:7751
32846 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32847 msgstr ""
32848
32849 #. type: =head2
32850 #: ../src/guestfs-actions.pod:7762
32851 msgid "guestfs_utimens"
32852 msgstr ""
32853
32854 #. type: verbatim
32855 #: ../src/guestfs-actions.pod:7764
32856 #, no-wrap
32857 msgid ""
32858 " int\n"
32859 " guestfs_utimens (guestfs_h *g,\n"
32860 "                  const char *path,\n"
32861 "                  int64_t atsecs,\n"
32862 "                  int64_t atnsecs,\n"
32863 "                  int64_t mtsecs,\n"
32864 "                  int64_t mtnsecs);\n"
32865 "\n"
32866 msgstr ""
32867
32868 #. type: =head2
32869 #: ../src/guestfs-actions.pod:7793 ../src/guestfs-structs.pod:175
32870 msgid "guestfs_version"
32871 msgstr ""
32872
32873 #. type: verbatim
32874 #: ../src/guestfs-actions.pod:7795
32875 #, no-wrap
32876 msgid ""
32877 " struct guestfs_version *\n"
32878 " guestfs_version (guestfs_h *g);\n"
32879 "\n"
32880 msgstr ""
32881
32882 #. type: textblock
32883 #: ../src/guestfs-actions.pod:7823
32884 msgid ""
32885 "I<Note:> Don't use this call to test for availability of features.  In "
32886 "enterprise distributions we backport features from later versions into "
32887 "earlier versions, making this an unreliable way to test for features.  Use "
32888 "C<guestfs_available> instead."
32889 msgstr ""
32890
32891 #. type: textblock
32892 #: ../src/guestfs-actions.pod:7829
32893 msgid ""
32894 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32895 "error.  I<The caller must call C<guestfs_free_version> after use>."
32896 msgstr ""
32897
32898 #. type: textblock
32899 #: ../src/guestfs-actions.pod:7833
32900 msgid "(Added in 1.0.58)"
32901 msgstr ""
32902
32903 #. type: =head2
32904 #: ../src/guestfs-actions.pod:7835
32905 msgid "guestfs_vfs_label"
32906 msgstr ""
32907
32908 #. type: verbatim
32909 #: ../src/guestfs-actions.pod:7837
32910 #, no-wrap
32911 msgid ""
32912 " char *\n"
32913 " guestfs_vfs_label (guestfs_h *g,\n"
32914 "                    const char *device);\n"
32915 "\n"
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../src/guestfs-actions.pod:7846
32920 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs-actions.pod:7851 ../src/guestfs-actions.pod:7888
32925 msgid "(Added in 1.3.18)"
32926 msgstr ""
32927
32928 #. type: =head2
32929 #: ../src/guestfs-actions.pod:7853
32930 msgid "guestfs_vfs_type"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs-actions.pod:7855
32935 #, no-wrap
32936 msgid ""
32937 " char *\n"
32938 " guestfs_vfs_type (guestfs_h *g,\n"
32939 "                   const char *device);\n"
32940 "\n"
32941 msgstr ""
32942
32943 #. type: =head2
32944 #: ../src/guestfs-actions.pod:7872
32945 msgid "guestfs_vfs_uuid"
32946 msgstr ""
32947
32948 #. type: verbatim
32949 #: ../src/guestfs-actions.pod:7874
32950 #, no-wrap
32951 msgid ""
32952 " char *\n"
32953 " guestfs_vfs_uuid (guestfs_h *g,\n"
32954 "                   const char *device);\n"
32955 "\n"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:7883
32960 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32961 msgstr ""
32962
32963 #. type: =head2
32964 #: ../src/guestfs-actions.pod:7890
32965 msgid "guestfs_vg_activate"
32966 msgstr ""
32967
32968 #. type: verbatim
32969 #: ../src/guestfs-actions.pod:7892
32970 #, no-wrap
32971 msgid ""
32972 " int\n"
32973 " guestfs_vg_activate (guestfs_h *g,\n"
32974 "                      int activate,\n"
32975 "                      char *const *volgroups);\n"
32976 "\n"
32977 msgstr ""
32978
32979 #. type: =head2
32980 #: ../src/guestfs-actions.pod:7909
32981 msgid "guestfs_vg_activate_all"
32982 msgstr ""
32983
32984 #. type: verbatim
32985 #: ../src/guestfs-actions.pod:7911
32986 #, no-wrap
32987 msgid ""
32988 " int\n"
32989 " guestfs_vg_activate_all (guestfs_h *g,\n"
32990 "                          int activate);\n"
32991 "\n"
32992 msgstr ""
32993
32994 #. type: =head2
32995 #: ../src/guestfs-actions.pod:7924
32996 msgid "guestfs_vgcreate"
32997 msgstr ""
32998
32999 #. type: verbatim
33000 #: ../src/guestfs-actions.pod:7926
33001 #, no-wrap
33002 msgid ""
33003 " int\n"
33004 " guestfs_vgcreate (guestfs_h *g,\n"
33005 "                   const char *volgroup,\n"
33006 "                   char *const *physvols);\n"
33007 "\n"
33008 msgstr ""
33009
33010 #. type: =head2
33011 #: ../src/guestfs-actions.pod:7938
33012 msgid "guestfs_vglvuuids"
33013 msgstr ""
33014
33015 #. type: verbatim
33016 #: ../src/guestfs-actions.pod:7940
33017 #, no-wrap
33018 msgid ""
33019 " char **\n"
33020 " guestfs_vglvuuids (guestfs_h *g,\n"
33021 "                    const char *vgname);\n"
33022 "\n"
33023 msgstr ""
33024
33025 #. type: textblock
33026 #: ../src/guestfs-actions.pod:7947
33027 msgid ""
33028 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33029 "associate logical volumes and volume groups."
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs-actions.pod:7950
33034 msgid "See also C<guestfs_vgpvuuids>."
33035 msgstr ""
33036
33037 #. type: =head2
33038 #: ../src/guestfs-actions.pod:7958
33039 msgid "guestfs_vgpvuuids"
33040 msgstr ""
33041
33042 #. type: verbatim
33043 #: ../src/guestfs-actions.pod:7960
33044 #, no-wrap
33045 msgid ""
33046 " char **\n"
33047 " guestfs_vgpvuuids (guestfs_h *g,\n"
33048 "                    const char *vgname);\n"
33049 "\n"
33050 msgstr ""
33051
33052 #. type: textblock
33053 #: ../src/guestfs-actions.pod:7967
33054 msgid ""
33055 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33056 "associate physical volumes and volume groups."
33057 msgstr ""
33058
33059 #. type: textblock
33060 #: ../src/guestfs-actions.pod:7970
33061 msgid "See also C<guestfs_vglvuuids>."
33062 msgstr ""
33063
33064 #. type: =head2
33065 #: ../src/guestfs-actions.pod:7978
33066 msgid "guestfs_vgremove"
33067 msgstr ""
33068
33069 #. type: verbatim
33070 #: ../src/guestfs-actions.pod:7980
33071 #, no-wrap
33072 msgid ""
33073 " int\n"
33074 " guestfs_vgremove (guestfs_h *g,\n"
33075 "                   const char *vgname);\n"
33076 "\n"
33077 msgstr ""
33078
33079 #. type: =head2
33080 #: ../src/guestfs-actions.pod:7993
33081 msgid "guestfs_vgrename"
33082 msgstr ""
33083
33084 #. type: verbatim
33085 #: ../src/guestfs-actions.pod:7995
33086 #, no-wrap
33087 msgid ""
33088 " int\n"
33089 " guestfs_vgrename (guestfs_h *g,\n"
33090 "                   const char *volgroup,\n"
33091 "                   const char *newvolgroup);\n"
33092 "\n"
33093 msgstr ""
33094
33095 #. type: =head2
33096 #: ../src/guestfs-actions.pod:8006
33097 msgid "guestfs_vgs"
33098 msgstr ""
33099
33100 #. type: verbatim
33101 #: ../src/guestfs-actions.pod:8008
33102 #, no-wrap
33103 msgid ""
33104 " char **\n"
33105 " guestfs_vgs (guestfs_h *g);\n"
33106 "\n"
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs-actions.pod:8017
33111 msgid "See also C<guestfs_vgs_full>."
33112 msgstr ""
33113
33114 #. type: =head2
33115 #: ../src/guestfs-actions.pod:8025
33116 msgid "guestfs_vgs_full"
33117 msgstr ""
33118
33119 #. type: verbatim
33120 #: ../src/guestfs-actions.pod:8027
33121 #, no-wrap
33122 msgid ""
33123 " struct guestfs_lvm_vg_list *\n"
33124 " guestfs_vgs_full (guestfs_h *g);\n"
33125 "\n"
33126 msgstr ""
33127
33128 #. type: textblock
33129 #: ../src/guestfs-actions.pod:8033
33130 msgid ""
33131 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33132 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33133 msgstr ""
33134
33135 #. type: =head2
33136 #: ../src/guestfs-actions.pod:8039
33137 msgid "guestfs_vgscan"
33138 msgstr ""
33139
33140 #. type: verbatim
33141 #: ../src/guestfs-actions.pod:8041
33142 #, no-wrap
33143 msgid ""
33144 " int\n"
33145 " guestfs_vgscan (guestfs_h *g);\n"
33146 "\n"
33147 msgstr ""
33148
33149 #. type: =head2
33150 #: ../src/guestfs-actions.pod:8051
33151 msgid "guestfs_vguuid"
33152 msgstr ""
33153
33154 #. type: verbatim
33155 #: ../src/guestfs-actions.pod:8053
33156 #, no-wrap
33157 msgid ""
33158 " char *\n"
33159 " guestfs_vguuid (guestfs_h *g,\n"
33160 "                 const char *vgname);\n"
33161 "\n"
33162 msgstr ""
33163
33164 #. type: =head2
33165 #: ../src/guestfs-actions.pod:8064
33166 msgid "guestfs_wait_ready"
33167 msgstr ""
33168
33169 #. type: verbatim
33170 #: ../src/guestfs-actions.pod:8066
33171 #, no-wrap
33172 msgid ""
33173 " int\n"
33174 " guestfs_wait_ready (guestfs_h *g);\n"
33175 "\n"
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs-actions.pod:8069
33180 msgid ""
33181 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33182 "instead."
33183 msgstr ""
33184
33185 #. type: textblock
33186 #: ../src/guestfs-actions.pod:8076
33187 msgid "This function is a no op."
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs-actions.pod:8078
33192 msgid ""
33193 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33194 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33195 "is no longer necessary because C<guestfs_launch> now does the waiting."
33196 msgstr ""
33197
33198 #. type: textblock
33199 #: ../src/guestfs-actions.pod:8083
33200 msgid ""
33201 "If you see any calls to this function in code then you can just remove them, "
33202 "unless you want to retain compatibility with older versions of the API."
33203 msgstr ""
33204
33205 #. type: =head2
33206 #: ../src/guestfs-actions.pod:8091
33207 msgid "guestfs_wc_c"
33208 msgstr ""
33209
33210 #. type: verbatim
33211 #: ../src/guestfs-actions.pod:8093
33212 #, no-wrap
33213 msgid ""
33214 " int\n"
33215 " guestfs_wc_c (guestfs_h *g,\n"
33216 "               const char *path);\n"
33217 "\n"
33218 msgstr ""
33219
33220 #. type: =head2
33221 #: ../src/guestfs-actions.pod:8104
33222 msgid "guestfs_wc_l"
33223 msgstr ""
33224
33225 #. type: verbatim
33226 #: ../src/guestfs-actions.pod:8106
33227 #, no-wrap
33228 msgid ""
33229 " int\n"
33230 " guestfs_wc_l (guestfs_h *g,\n"
33231 "               const char *path);\n"
33232 "\n"
33233 msgstr ""
33234
33235 #. type: =head2
33236 #: ../src/guestfs-actions.pod:8117
33237 msgid "guestfs_wc_w"
33238 msgstr ""
33239
33240 #. type: verbatim
33241 #: ../src/guestfs-actions.pod:8119
33242 #, no-wrap
33243 msgid ""
33244 " int\n"
33245 " guestfs_wc_w (guestfs_h *g,\n"
33246 "               const char *path);\n"
33247 "\n"
33248 msgstr ""
33249
33250 #. type: =head2
33251 #: ../src/guestfs-actions.pod:8130
33252 msgid "guestfs_write"
33253 msgstr ""
33254
33255 #. type: verbatim
33256 #: ../src/guestfs-actions.pod:8132
33257 #, no-wrap
33258 msgid ""
33259 " int\n"
33260 " guestfs_write (guestfs_h *g,\n"
33261 "                const char *path,\n"
33262 "                const char *content,\n"
33263 "                size_t content_size);\n"
33264 "\n"
33265 msgstr ""
33266
33267 #. type: textblock
33268 #: ../src/guestfs-actions.pod:8141
33269 msgid "See also C<guestfs_write_append>."
33270 msgstr ""
33271
33272 #. type: =head2
33273 #: ../src/guestfs-actions.pod:8150
33274 msgid "guestfs_write_append"
33275 msgstr ""
33276
33277 #. type: verbatim
33278 #: ../src/guestfs-actions.pod:8152
33279 #, no-wrap
33280 msgid ""
33281 " int\n"
33282 " guestfs_write_append (guestfs_h *g,\n"
33283 "                       const char *path,\n"
33284 "                       const char *content,\n"
33285 "                       size_t content_size);\n"
33286 "\n"
33287 msgstr ""
33288
33289 #. type: textblock
33290 #: ../src/guestfs-actions.pod:8161
33291 msgid "See also C<guestfs_write>."
33292 msgstr ""
33293
33294 #. type: =head2
33295 #: ../src/guestfs-actions.pod:8170
33296 msgid "guestfs_write_file"
33297 msgstr ""
33298
33299 #. type: verbatim
33300 #: ../src/guestfs-actions.pod:8172
33301 #, no-wrap
33302 msgid ""
33303 " int\n"
33304 " guestfs_write_file (guestfs_h *g,\n"
33305 "                     const char *path,\n"
33306 "                     const char *content,\n"
33307 "                     int size);\n"
33308 "\n"
33309 msgstr ""
33310
33311 #. type: textblock
33312 #: ../src/guestfs-actions.pod:8178
33313 msgid ""
33314 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33315 "instead."
33316 msgstr ""
33317
33318 #. type: =head2
33319 #: ../src/guestfs-actions.pod:8203
33320 msgid "guestfs_zegrep"
33321 msgstr ""
33322
33323 #. type: verbatim
33324 #: ../src/guestfs-actions.pod:8205
33325 #, no-wrap
33326 msgid ""
33327 " char **\n"
33328 " guestfs_zegrep (guestfs_h *g,\n"
33329 "                 const char *regex,\n"
33330 "                 const char *path);\n"
33331 "\n"
33332 msgstr ""
33333
33334 #. type: =head2
33335 #: ../src/guestfs-actions.pod:8222
33336 msgid "guestfs_zegrepi"
33337 msgstr ""
33338
33339 #. type: verbatim
33340 #: ../src/guestfs-actions.pod:8224
33341 #, no-wrap
33342 msgid ""
33343 " char **\n"
33344 " guestfs_zegrepi (guestfs_h *g,\n"
33345 "                  const char *regex,\n"
33346 "                  const char *path);\n"
33347 "\n"
33348 msgstr ""
33349
33350 #. type: =head2
33351 #: ../src/guestfs-actions.pod:8241
33352 msgid "guestfs_zero"
33353 msgstr ""
33354
33355 #. type: verbatim
33356 #: ../src/guestfs-actions.pod:8243
33357 #, no-wrap
33358 msgid ""
33359 " int\n"
33360 " guestfs_zero (guestfs_h *g,\n"
33361 "               const char *device);\n"
33362 "\n"
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs-actions.pod:8257
33367 msgid ""
33368 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33369 "C<guestfs_is_zero_device>"
33370 msgstr ""
33371
33372 #. type: =head2
33373 #: ../src/guestfs-actions.pod:8269
33374 msgid "guestfs_zero_device"
33375 msgstr ""
33376
33377 #. type: verbatim
33378 #: ../src/guestfs-actions.pod:8271
33379 #, no-wrap
33380 msgid ""
33381 " int\n"
33382 " guestfs_zero_device (guestfs_h *g,\n"
33383 "                      const char *device);\n"
33384 "\n"
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs-actions.pod:8275
33389 msgid ""
33390 "This command writes zeroes over the entire C<device>.  Compare with "
33391 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-actions.pod:8293
33396 msgid "(Added in 1.3.1)"
33397 msgstr ""
33398
33399 #. type: =head2
33400 #: ../src/guestfs-actions.pod:8295
33401 msgid "guestfs_zerofree"
33402 msgstr ""
33403
33404 #. type: verbatim
33405 #: ../src/guestfs-actions.pod:8297
33406 #, no-wrap
33407 msgid ""
33408 " int\n"
33409 " guestfs_zerofree (guestfs_h *g,\n"
33410 "                   const char *device);\n"
33411 "\n"
33412 msgstr ""
33413
33414 #. type: =head2
33415 #: ../src/guestfs-actions.pod:8316
33416 msgid "guestfs_zfgrep"
33417 msgstr ""
33418
33419 #. type: verbatim
33420 #: ../src/guestfs-actions.pod:8318
33421 #, no-wrap
33422 msgid ""
33423 " char **\n"
33424 " guestfs_zfgrep (guestfs_h *g,\n"
33425 "                 const char *pattern,\n"
33426 "                 const char *path);\n"
33427 "\n"
33428 msgstr ""
33429
33430 #. type: =head2
33431 #: ../src/guestfs-actions.pod:8335
33432 msgid "guestfs_zfgrepi"
33433 msgstr ""
33434
33435 #. type: verbatim
33436 #: ../src/guestfs-actions.pod:8337
33437 #, no-wrap
33438 msgid ""
33439 " char **\n"
33440 " guestfs_zfgrepi (guestfs_h *g,\n"
33441 "                  const char *pattern,\n"
33442 "                  const char *path);\n"
33443 "\n"
33444 msgstr ""
33445
33446 #. type: =head2
33447 #: ../src/guestfs-actions.pod:8354
33448 msgid "guestfs_zfile"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs-actions.pod:8356
33453 #, no-wrap
33454 msgid ""
33455 " char *\n"
33456 " guestfs_zfile (guestfs_h *g,\n"
33457 "                const char *meth,\n"
33458 "                const char *path);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: textblock
33463 #: ../src/guestfs-actions.pod:8361
33464 msgid ""
33465 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33466 "instead."
33467 msgstr ""
33468
33469 #. type: textblock
33470 #: ../src/guestfs-actions.pod:8373
33471 msgid ""
33472 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33473 "files."
33474 msgstr ""
33475
33476 #. type: =head2
33477 #: ../src/guestfs-actions.pod:8381
33478 msgid "guestfs_zgrep"
33479 msgstr ""
33480
33481 #. type: verbatim
33482 #: ../src/guestfs-actions.pod:8383
33483 #, no-wrap
33484 msgid ""
33485 " char **\n"
33486 " guestfs_zgrep (guestfs_h *g,\n"
33487 "                const char *regex,\n"
33488 "                const char *path);\n"
33489 "\n"
33490 msgstr ""
33491
33492 #. type: =head2
33493 #: ../src/guestfs-actions.pod:8400
33494 msgid "guestfs_zgrepi"
33495 msgstr ""
33496
33497 #. type: verbatim
33498 #: ../src/guestfs-actions.pod:8402
33499 #, no-wrap
33500 msgid ""
33501 " char **\n"
33502 " guestfs_zgrepi (guestfs_h *g,\n"
33503 "                 const char *regex,\n"
33504 "                 const char *path);\n"
33505 "\n"
33506 msgstr ""
33507
33508 #. type: =item
33509 #: ../src/guestfs-availability.pod:3
33510 msgid "B<augeas>"
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs-availability.pod:5
33515 msgid ""
33516 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33517 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33518 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33519 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33520 "L</guestfs_aug_save> L</guestfs_aug_set>"
33521 msgstr ""
33522
33523 #. type: =item
33524 #: ../src/guestfs-availability.pod:21
33525 msgid "B<btrfs>"
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs-availability.pod:23
33530 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33531 msgstr ""
33532
33533 #. type: =item
33534 #: ../src/guestfs-availability.pod:26
33535 msgid "B<grub>"
33536 msgstr ""
33537
33538 #. type: textblock
33539 #: ../src/guestfs-availability.pod:28
33540 msgid "The following functions: L</guestfs_grub_install>"
33541 msgstr ""
33542
33543 #. type: =item
33544 #: ../src/guestfs-availability.pod:31
33545 msgid "B<inotify>"
33546 msgstr ""
33547
33548 #. type: textblock
33549 #: ../src/guestfs-availability.pod:33
33550 msgid ""
33551 "The following functions: L</guestfs_inotify_add_watch> L</"
33552 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33553 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33554 msgstr ""
33555
33556 #. type: =item
33557 #: ../src/guestfs-availability.pod:41
33558 msgid "B<linuxfsuuid>"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs-availability.pod:43
33563 msgid ""
33564 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33565 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33566 msgstr ""
33567
33568 #. type: =item
33569 #: ../src/guestfs-availability.pod:50
33570 msgid "B<linuxmodules>"
33571 msgstr ""
33572
33573 #. type: textblock
33574 #: ../src/guestfs-availability.pod:52
33575 msgid "The following functions: L</guestfs_modprobe>"
33576 msgstr ""
33577
33578 #. type: =item
33579 #: ../src/guestfs-availability.pod:55
33580 msgid "B<linuxxattrs>"
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs-availability.pod:57
33585 msgid ""
33586 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33587 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33588 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33589 "guestfs_setxattr>"
33590 msgstr ""
33591
33592 #. type: =item
33593 #: ../src/guestfs-availability.pod:68
33594 msgid "B<luks>"
33595 msgstr ""
33596
33597 #. type: textblock
33598 #: ../src/guestfs-availability.pod:70
33599 msgid ""
33600 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33601 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33602 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33603 msgstr ""
33604
33605 #. type: =item
33606 #: ../src/guestfs-availability.pod:79
33607 msgid "B<lvm2>"
33608 msgstr ""
33609
33610 #. type: textblock
33611 #: ../src/guestfs-availability.pod:81
33612 msgid ""
33613 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33614 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33615 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33616 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33617 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33618 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33619 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33620 msgstr ""
33621
33622 #. type: =item
33623 #: ../src/guestfs-availability.pod:104
33624 msgid "B<mknod>"
33625 msgstr ""
33626
33627 #. type: textblock
33628 #: ../src/guestfs-availability.pod:106
33629 msgid ""
33630 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33631 "guestfs_mknod_b> L</guestfs_mknod_c>"
33632 msgstr ""
33633
33634 #. type: =item
33635 #: ../src/guestfs-availability.pod:112
33636 msgid "B<ntfs3g>"
33637 msgstr ""
33638
33639 #. type: textblock
33640 #: ../src/guestfs-availability.pod:114
33641 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33642 msgstr ""
33643
33644 #. type: =item
33645 #: ../src/guestfs-availability.pod:117
33646 msgid "B<ntfsprogs>"
33647 msgstr ""
33648
33649 #. type: textblock
33650 #: ../src/guestfs-availability.pod:119
33651 msgid ""
33652 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33653 "L</guestfs_ntfsresize_size>"
33654 msgstr ""
33655
33656 #. type: =item
33657 #: ../src/guestfs-availability.pod:124
33658 msgid "B<realpath>"
33659 msgstr ""
33660
33661 #. type: textblock
33662 #: ../src/guestfs-availability.pod:126
33663 msgid "The following functions: L</guestfs_realpath>"
33664 msgstr ""
33665
33666 #. type: =item
33667 #: ../src/guestfs-availability.pod:129
33668 msgid "B<scrub>"
33669 msgstr ""
33670
33671 #. type: textblock
33672 #: ../src/guestfs-availability.pod:131
33673 msgid ""
33674 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33675 "guestfs_scrub_freespace>"
33676 msgstr ""
33677
33678 #. type: =item
33679 #: ../src/guestfs-availability.pod:136
33680 msgid "B<selinux>"
33681 msgstr ""
33682
33683 #. type: textblock
33684 #: ../src/guestfs-availability.pod:138
33685 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33686 msgstr ""
33687
33688 #. type: =item
33689 #: ../src/guestfs-availability.pod:142
33690 msgid "B<xz>"
33691 msgstr ""
33692
33693 #. type: textblock
33694 #: ../src/guestfs-availability.pod:144
33695 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33696 msgstr ""
33697
33698 #. type: =item
33699 #: ../src/guestfs-availability.pod:148
33700 msgid "B<zerofree>"
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs-availability.pod:150
33705 msgid "The following functions: L</guestfs_zerofree>"
33706 msgstr ""
33707
33708 #. type: =head2
33709 #: ../src/guestfs-structs.pod:1
33710 msgid "guestfs_int_bool"
33711 msgstr ""
33712
33713 #. type: verbatim
33714 #: ../src/guestfs-structs.pod:3
33715 #, no-wrap
33716 msgid ""
33717 " struct guestfs_int_bool {\n"
33718 "   int32_t i;\n"
33719 "   int32_t b;\n"
33720 " };\n"
33721 " \n"
33722 msgstr ""
33723
33724 #. type: verbatim
33725 #: ../src/guestfs-structs.pod:8
33726 #, no-wrap
33727 msgid ""
33728 " struct guestfs_int_bool_list {\n"
33729 "   uint32_t len; /* Number of elements in list. */\n"
33730 "   struct guestfs_int_bool *val; /* Elements. */\n"
33731 " };\n"
33732 " \n"
33733 msgstr ""
33734
33735 #. type: verbatim
33736 #: ../src/guestfs-structs.pod:13
33737 #, no-wrap
33738 msgid ""
33739 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33740 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33741 "\n"
33742 msgstr ""
33743
33744 #. type: =head2
33745 #: ../src/guestfs-structs.pod:16
33746 msgid "guestfs_lvm_pv"
33747 msgstr ""
33748
33749 #. type: verbatim
33750 #: ../src/guestfs-structs.pod:18
33751 #, no-wrap
33752 msgid ""
33753 " struct guestfs_lvm_pv {\n"
33754 "   char *pv_name;\n"
33755 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33756 "   char pv_uuid[32];\n"
33757 "   char *pv_fmt;\n"
33758 "   uint64_t pv_size;\n"
33759 "   uint64_t dev_size;\n"
33760 "   uint64_t pv_free;\n"
33761 "   uint64_t pv_used;\n"
33762 "   char *pv_attr;\n"
33763 "   int64_t pv_pe_count;\n"
33764 "   int64_t pv_pe_alloc_count;\n"
33765 "   char *pv_tags;\n"
33766 "   uint64_t pe_start;\n"
33767 "   int64_t pv_mda_count;\n"
33768 "   uint64_t pv_mda_free;\n"
33769 " };\n"
33770 " \n"
33771 msgstr ""
33772
33773 #. type: verbatim
33774 #: ../src/guestfs-structs.pod:36
33775 #, no-wrap
33776 msgid ""
33777 " struct guestfs_lvm_pv_list {\n"
33778 "   uint32_t len; /* Number of elements in list. */\n"
33779 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33780 " };\n"
33781 " \n"
33782 msgstr ""
33783
33784 #. type: verbatim
33785 #: ../src/guestfs-structs.pod:41
33786 #, no-wrap
33787 msgid ""
33788 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33789 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33790 "\n"
33791 msgstr ""
33792
33793 #. type: =head2
33794 #: ../src/guestfs-structs.pod:44
33795 msgid "guestfs_lvm_vg"
33796 msgstr ""
33797
33798 #. type: verbatim
33799 #: ../src/guestfs-structs.pod:46
33800 #, no-wrap
33801 msgid ""
33802 " struct guestfs_lvm_vg {\n"
33803 "   char *vg_name;\n"
33804 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33805 "   char vg_uuid[32];\n"
33806 "   char *vg_fmt;\n"
33807 "   char *vg_attr;\n"
33808 "   uint64_t vg_size;\n"
33809 "   uint64_t vg_free;\n"
33810 "   char *vg_sysid;\n"
33811 "   uint64_t vg_extent_size;\n"
33812 "   int64_t vg_extent_count;\n"
33813 "   int64_t vg_free_count;\n"
33814 "   int64_t max_lv;\n"
33815 "   int64_t max_pv;\n"
33816 "   int64_t pv_count;\n"
33817 "   int64_t lv_count;\n"
33818 "   int64_t snap_count;\n"
33819 "   int64_t vg_seqno;\n"
33820 "   char *vg_tags;\n"
33821 "   int64_t vg_mda_count;\n"
33822 "   uint64_t vg_mda_free;\n"
33823 " };\n"
33824 " \n"
33825 msgstr ""
33826
33827 #. type: verbatim
33828 #: ../src/guestfs-structs.pod:69
33829 #, no-wrap
33830 msgid ""
33831 " struct guestfs_lvm_vg_list {\n"
33832 "   uint32_t len; /* Number of elements in list. */\n"
33833 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33834 " };\n"
33835 " \n"
33836 msgstr ""
33837
33838 #. type: verbatim
33839 #: ../src/guestfs-structs.pod:74
33840 #, no-wrap
33841 msgid ""
33842 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33843 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33844 "\n"
33845 msgstr ""
33846
33847 #. type: =head2
33848 #: ../src/guestfs-structs.pod:77
33849 msgid "guestfs_lvm_lv"
33850 msgstr ""
33851
33852 #. type: verbatim
33853 #: ../src/guestfs-structs.pod:79
33854 #, no-wrap
33855 msgid ""
33856 " struct guestfs_lvm_lv {\n"
33857 "   char *lv_name;\n"
33858 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33859 "   char lv_uuid[32];\n"
33860 "   char *lv_attr;\n"
33861 "   int64_t lv_major;\n"
33862 "   int64_t lv_minor;\n"
33863 "   int64_t lv_kernel_major;\n"
33864 "   int64_t lv_kernel_minor;\n"
33865 "   uint64_t lv_size;\n"
33866 "   int64_t seg_count;\n"
33867 "   char *origin;\n"
33868 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33869 "   float snap_percent;\n"
33870 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33871 "   float copy_percent;\n"
33872 "   char *move_pv;\n"
33873 "   char *lv_tags;\n"
33874 "   char *mirror_log;\n"
33875 "   char *modules;\n"
33876 " };\n"
33877 " \n"
33878 msgstr ""
33879
33880 #. type: verbatim
33881 #: ../src/guestfs-structs.pod:101
33882 #, no-wrap
33883 msgid ""
33884 " struct guestfs_lvm_lv_list {\n"
33885 "   uint32_t len; /* Number of elements in list. */\n"
33886 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33887 " };\n"
33888 " \n"
33889 msgstr ""
33890
33891 #. type: verbatim
33892 #: ../src/guestfs-structs.pod:106
33893 #, no-wrap
33894 msgid ""
33895 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33896 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33897 "\n"
33898 msgstr ""
33899
33900 #. type: verbatim
33901 #: ../src/guestfs-structs.pod:111
33902 #, no-wrap
33903 msgid ""
33904 " struct guestfs_stat {\n"
33905 "   int64_t dev;\n"
33906 "   int64_t ino;\n"
33907 "   int64_t mode;\n"
33908 "   int64_t nlink;\n"
33909 "   int64_t uid;\n"
33910 "   int64_t gid;\n"
33911 "   int64_t rdev;\n"
33912 "   int64_t size;\n"
33913 "   int64_t blksize;\n"
33914 "   int64_t blocks;\n"
33915 "   int64_t atime;\n"
33916 "   int64_t mtime;\n"
33917 "   int64_t ctime;\n"
33918 " };\n"
33919 " \n"
33920 msgstr ""
33921
33922 #. type: verbatim
33923 #: ../src/guestfs-structs.pod:127
33924 #, no-wrap
33925 msgid ""
33926 " struct guestfs_stat_list {\n"
33927 "   uint32_t len; /* Number of elements in list. */\n"
33928 "   struct guestfs_stat *val; /* Elements. */\n"
33929 " };\n"
33930 " \n"
33931 msgstr ""
33932
33933 #. type: verbatim
33934 #: ../src/guestfs-structs.pod:132
33935 #, no-wrap
33936 msgid ""
33937 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33938 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33939 "\n"
33940 msgstr ""
33941
33942 #. type: verbatim
33943 #: ../src/guestfs-structs.pod:137
33944 #, no-wrap
33945 msgid ""
33946 " struct guestfs_statvfs {\n"
33947 "   int64_t bsize;\n"
33948 "   int64_t frsize;\n"
33949 "   int64_t blocks;\n"
33950 "   int64_t bfree;\n"
33951 "   int64_t bavail;\n"
33952 "   int64_t files;\n"
33953 "   int64_t ffree;\n"
33954 "   int64_t favail;\n"
33955 "   int64_t fsid;\n"
33956 "   int64_t flag;\n"
33957 "   int64_t namemax;\n"
33958 " };\n"
33959 " \n"
33960 msgstr ""
33961
33962 #. type: verbatim
33963 #: ../src/guestfs-structs.pod:151
33964 #, no-wrap
33965 msgid ""
33966 " struct guestfs_statvfs_list {\n"
33967 "   uint32_t len; /* Number of elements in list. */\n"
33968 "   struct guestfs_statvfs *val; /* Elements. */\n"
33969 " };\n"
33970 " \n"
33971 msgstr ""
33972
33973 #. type: verbatim
33974 #: ../src/guestfs-structs.pod:156
33975 #, no-wrap
33976 msgid ""
33977 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33978 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33979 "\n"
33980 msgstr ""
33981
33982 #. type: =head2
33983 #: ../src/guestfs-structs.pod:159
33984 msgid "guestfs_dirent"
33985 msgstr ""
33986
33987 #. type: verbatim
33988 #: ../src/guestfs-structs.pod:161
33989 #, no-wrap
33990 msgid ""
33991 " struct guestfs_dirent {\n"
33992 "   int64_t ino;\n"
33993 "   char ftyp;\n"
33994 "   char *name;\n"
33995 " };\n"
33996 " \n"
33997 msgstr ""
33998
33999 #. type: verbatim
34000 #: ../src/guestfs-structs.pod:167
34001 #, no-wrap
34002 msgid ""
34003 " struct guestfs_dirent_list {\n"
34004 "   uint32_t len; /* Number of elements in list. */\n"
34005 "   struct guestfs_dirent *val; /* Elements. */\n"
34006 " };\n"
34007 " \n"
34008 msgstr ""
34009
34010 #. type: verbatim
34011 #: ../src/guestfs-structs.pod:172
34012 #, no-wrap
34013 msgid ""
34014 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34015 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34016 "\n"
34017 msgstr ""
34018
34019 #. type: verbatim
34020 #: ../src/guestfs-structs.pod:177
34021 #, no-wrap
34022 msgid ""
34023 " struct guestfs_version {\n"
34024 "   int64_t major;\n"
34025 "   int64_t minor;\n"
34026 "   int64_t release;\n"
34027 "   char *extra;\n"
34028 " };\n"
34029 " \n"
34030 msgstr ""
34031
34032 #. type: verbatim
34033 #: ../src/guestfs-structs.pod:184
34034 #, no-wrap
34035 msgid ""
34036 " struct guestfs_version_list {\n"
34037 "   uint32_t len; /* Number of elements in list. */\n"
34038 "   struct guestfs_version *val; /* Elements. */\n"
34039 " };\n"
34040 " \n"
34041 msgstr ""
34042
34043 #. type: verbatim
34044 #: ../src/guestfs-structs.pod:189
34045 #, no-wrap
34046 msgid ""
34047 " void guestfs_free_version (struct guestfs_free_version *);\n"
34048 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34049 "\n"
34050 msgstr ""
34051
34052 #. type: =head2
34053 #: ../src/guestfs-structs.pod:192
34054 msgid "guestfs_xattr"
34055 msgstr ""
34056
34057 #. type: verbatim
34058 #: ../src/guestfs-structs.pod:194
34059 #, no-wrap
34060 msgid ""
34061 " struct guestfs_xattr {\n"
34062 "   char *attrname;\n"
34063 "   /* The next two fields describe a byte array. */\n"
34064 "   uint32_t attrval_len;\n"
34065 "   char *attrval;\n"
34066 " };\n"
34067 " \n"
34068 msgstr ""
34069
34070 #. type: verbatim
34071 #: ../src/guestfs-structs.pod:201
34072 #, no-wrap
34073 msgid ""
34074 " struct guestfs_xattr_list {\n"
34075 "   uint32_t len; /* Number of elements in list. */\n"
34076 "   struct guestfs_xattr *val; /* Elements. */\n"
34077 " };\n"
34078 " \n"
34079 msgstr ""
34080
34081 #. type: verbatim
34082 #: ../src/guestfs-structs.pod:206
34083 #, no-wrap
34084 msgid ""
34085 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34086 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34087 "\n"
34088 msgstr ""
34089
34090 #. type: =head2
34091 #: ../src/guestfs-structs.pod:209
34092 msgid "guestfs_inotify_event"
34093 msgstr ""
34094
34095 #. type: verbatim
34096 #: ../src/guestfs-structs.pod:211
34097 #, no-wrap
34098 msgid ""
34099 " struct guestfs_inotify_event {\n"
34100 "   int64_t in_wd;\n"
34101 "   uint32_t in_mask;\n"
34102 "   uint32_t in_cookie;\n"
34103 "   char *in_name;\n"
34104 " };\n"
34105 " \n"
34106 msgstr ""
34107
34108 #. type: verbatim
34109 #: ../src/guestfs-structs.pod:218
34110 #, no-wrap
34111 msgid ""
34112 " struct guestfs_inotify_event_list {\n"
34113 "   uint32_t len; /* Number of elements in list. */\n"
34114 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34115 " };\n"
34116 " \n"
34117 msgstr ""
34118
34119 #. type: verbatim
34120 #: ../src/guestfs-structs.pod:223
34121 #, no-wrap
34122 msgid ""
34123 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34124 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34125 "\n"
34126 msgstr ""
34127
34128 #. type: =head2
34129 #: ../src/guestfs-structs.pod:226
34130 msgid "guestfs_partition"
34131 msgstr ""
34132
34133 #. type: verbatim
34134 #: ../src/guestfs-structs.pod:228
34135 #, no-wrap
34136 msgid ""
34137 " struct guestfs_partition {\n"
34138 "   int32_t part_num;\n"
34139 "   uint64_t part_start;\n"
34140 "   uint64_t part_end;\n"
34141 "   uint64_t part_size;\n"
34142 " };\n"
34143 " \n"
34144 msgstr ""
34145
34146 #. type: verbatim
34147 #: ../src/guestfs-structs.pod:235
34148 #, no-wrap
34149 msgid ""
34150 " struct guestfs_partition_list {\n"
34151 "   uint32_t len; /* Number of elements in list. */\n"
34152 "   struct guestfs_partition *val; /* Elements. */\n"
34153 " };\n"
34154 " \n"
34155 msgstr ""
34156
34157 #. type: verbatim
34158 #: ../src/guestfs-structs.pod:240
34159 #, no-wrap
34160 msgid ""
34161 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34162 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34163 "\n"
34164 msgstr ""
34165
34166 #. type: =head2
34167 #: ../src/guestfs-structs.pod:243
34168 msgid "guestfs_application"
34169 msgstr ""
34170
34171 #. type: verbatim
34172 #: ../src/guestfs-structs.pod:245
34173 #, no-wrap
34174 msgid ""
34175 " struct guestfs_application {\n"
34176 "   char *app_name;\n"
34177 "   char *app_display_name;\n"
34178 "   int32_t app_epoch;\n"
34179 "   char *app_version;\n"
34180 "   char *app_release;\n"
34181 "   char *app_install_path;\n"
34182 "   char *app_trans_path;\n"
34183 "   char *app_publisher;\n"
34184 "   char *app_url;\n"
34185 "   char *app_source_package;\n"
34186 "   char *app_summary;\n"
34187 "   char *app_description;\n"
34188 " };\n"
34189 " \n"
34190 msgstr ""
34191
34192 #. type: verbatim
34193 #: ../src/guestfs-structs.pod:260
34194 #, no-wrap
34195 msgid ""
34196 " struct guestfs_application_list {\n"
34197 "   uint32_t len; /* Number of elements in list. */\n"
34198 "   struct guestfs_application *val; /* Elements. */\n"
34199 " };\n"
34200 " \n"
34201 msgstr ""
34202
34203 #. type: verbatim
34204 #: ../src/guestfs-structs.pod:265
34205 #, no-wrap
34206 msgid ""
34207 " void guestfs_free_application (struct guestfs_free_application *);\n"
34208 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34209 "\n"
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:5
34214 msgid "guestfs - Library for accessing and modifying virtual machine images"
34215 msgstr ""
34216
34217 #. type: verbatim
34218 #: ../src/guestfs.pod:11
34219 #, no-wrap
34220 msgid ""
34221 " guestfs_h *g = guestfs_create ();\n"
34222 " guestfs_add_drive (g, \"guest.img\");\n"
34223 " guestfs_launch (g);\n"
34224 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34225 " guestfs_touch (g, \"/hello\");\n"
34226 " guestfs_umount (g, \"/\");\n"
34227 " guestfs_close (g);\n"
34228 "\n"
34229 msgstr ""
34230 " guestfs_h *g = guestfs_create ();\n"
34231 " guestfs_add_drive (g, \"guest.img\");\n"
34232 " guestfs_launch (g);\n"
34233 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34234 " guestfs_touch (g, \"/hello\");\n"
34235 " guestfs_umount (g, \"/\");\n"
34236 " guestfs_close (g);\n"
34237 "\n"
34238
34239 #. type: textblock
34240 #: ../src/guestfs.pod:25
34241 msgid ""
34242 "Libguestfs is a library for accessing and modifying guest disk images.  "
34243 "Amongst the things this is good for: making batch configuration changes to "
34244 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34245 "between virtualization systems (see also: virt-p2v), performing partial "
34246 "backups, performing partial guest clones, cloning guests and changing "
34247 "registry/UUID/hostname info, and much else besides."
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:33
34252 msgid ""
34253 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34254 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34255 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34256 "qcow2, vmdk."
34257 msgstr ""
34258
34259 #. type: textblock
34260 #: ../src/guestfs.pod:38
34261 msgid ""
34262 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34263 "what filesystem is in each LV, etc.).  It can also run commands in the "
34264 "context of the guest.  Also you can access filesystems over FUSE."
34265 msgstr ""
34266
34267 #. type: textblock
34268 #: ../src/guestfs.pod:43
34269 msgid ""
34270 "Libguestfs is a library that can be linked with C and C++ management "
34271 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34272 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34273 "command line."
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:48
34278 msgid ""
34279 "You don't need to be root to use libguestfs, although obviously you do need "
34280 "enough permissions to access the disk images."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:51
34285 msgid ""
34286 "Libguestfs is a large API because it can do many things.  For a gentle "
34287 "introduction, please read the L</API OVERVIEW> section next."
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:54
34292 msgid ""
34293 "There are also some example programs in the L<guestfs-examples(3)> manual "
34294 "page."
34295 msgstr ""
34296
34297 #. type: =head1
34298 #: ../src/guestfs.pod:57
34299 msgid "API OVERVIEW"
34300 msgstr ""
34301
34302 #. type: textblock
34303 #: ../src/guestfs.pod:59
34304 msgid ""
34305 "This section provides a gentler overview of the libguestfs API.  We also try "
34306 "to group API calls together, where that may not be obvious from reading "
34307 "about the individual calls in the main section of this manual."
34308 msgstr ""
34309
34310 #. type: =head2
34311 #: ../src/guestfs.pod:64
34312 msgid "HANDLES"
34313 msgstr ""
34314
34315 #. type: textblock
34316 #: ../src/guestfs.pod:66
34317 msgid ""
34318 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34319 "must add at least one disk image to the handle, followed by launching the "
34320 "handle, then performing whatever operations you want, and finally closing "
34321 "the handle.  By convention we use the single letter C<g> for the name of the "
34322 "handle variable, although of course you can use any name you want."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:73
34327 msgid "The general structure of all libguestfs-using programs looks like this:"
34328 msgstr ""
34329
34330 #. type: verbatim
34331 #: ../src/guestfs.pod:76
34332 #, no-wrap
34333 msgid ""
34334 " guestfs_h *g = guestfs_create ();\n"
34335 " \n"
34336 msgstr ""
34337
34338 #. type: verbatim
34339 #: ../src/guestfs.pod:78
34340 #, no-wrap
34341 msgid ""
34342 " /* Call guestfs_add_drive additional times if there are\n"
34343 "  * multiple disk images.\n"
34344 "  */\n"
34345 " guestfs_add_drive (g, \"guest.img\");\n"
34346 " \n"
34347 msgstr ""
34348
34349 #. type: verbatim
34350 #: ../src/guestfs.pod:83
34351 #, no-wrap
34352 msgid ""
34353 " /* Most manipulation calls won't work until you've launched\n"
34354 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34355 "  * and _before_ other commands.\n"
34356 "  */\n"
34357 " guestfs_launch (g);\n"
34358 " \n"
34359 msgstr ""
34360
34361 #. type: verbatim
34362 #: ../src/guestfs.pod:89
34363 #, no-wrap
34364 msgid ""
34365 " /* Now you can examine what partitions, LVs etc are available.\n"
34366 "  */\n"
34367 " char **partitions = guestfs_list_partitions (g);\n"
34368 " char **logvols = guestfs_lvs (g);\n"
34369 " \n"
34370 msgstr ""
34371
34372 #. type: verbatim
34373 #: ../src/guestfs.pod:94
34374 #, no-wrap
34375 msgid ""
34376 " /* To access a filesystem in the image, you must mount it.\n"
34377 "  */\n"
34378 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34379 " \n"
34380 msgstr ""
34381
34382 #. type: verbatim
34383 #: ../src/guestfs.pod:98
34384 #, no-wrap
34385 msgid ""
34386 " /* Now you can perform filesystem actions on the guest\n"
34387 "  * disk image.\n"
34388 "  */\n"
34389 " guestfs_touch (g, \"/hello\");\n"
34390 " \n"
34391 msgstr ""
34392
34393 #. type: verbatim
34394 #: ../src/guestfs.pod:103
34395 #, no-wrap
34396 msgid ""
34397 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34398 "  * it is done automatically when you close the handle.  See\n"
34399 "  * discussion of autosync in this page.\n"
34400 "  */\n"
34401 " guestfs_sync (g);\n"
34402 " \n"
34403 msgstr ""
34404
34405 #. type: verbatim
34406 #: ../src/guestfs.pod:109
34407 #, no-wrap
34408 msgid ""
34409 " /* Close the handle 'g'. */\n"
34410 " guestfs_close (g);\n"
34411 "\n"
34412 msgstr ""
34413
34414 #. type: textblock
34415 #: ../src/guestfs.pod:112
34416 msgid ""
34417 "The code above doesn't include any error checking.  In real code you should "
34418 "check return values carefully for errors.  In general all functions that "
34419 "return integers return C<-1> on error, and all functions that return "
34420 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34421 "how to handle errors, and consult the documentation for each function call "
34422 "below to see precisely how they return error indications.  See L<guestfs-"
34423 "examples(3)> for fully worked examples."
34424 msgstr ""
34425
34426 #. type: =head2
34427 #: ../src/guestfs.pod:121
34428 msgid "DISK IMAGES"
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:123
34433 msgid ""
34434 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34435 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34436 "actual block device, or simply an empty file of zeroes that you have created "
34437 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34438 "of these."
34439 msgstr ""
34440
34441 #. type: textblock
34442 #: ../src/guestfs.pod:129
34443 msgid ""
34444 "The call you should use in modern code for adding drives is L</"
34445 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34446 "specifying that the format is raw, do:"
34447 msgstr ""
34448
34449 #. type: verbatim
34450 #: ../src/guestfs.pod:133
34451 #, no-wrap
34452 msgid ""
34453 " guestfs_add_drive_opts (g, filename,\n"
34454 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34455 "                         -1);\n"
34456 "\n"
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs.pod:137
34461 msgid "You can add a disk read-only using:"
34462 msgstr ""
34463
34464 #. type: verbatim
34465 #: ../src/guestfs.pod:139
34466 #, no-wrap
34467 msgid ""
34468 " guestfs_add_drive_opts (g, filename,\n"
34469 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34470 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34471 "                         -1);\n"
34472 "\n"
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:144
34477 msgid ""
34478 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34479 "libguestfs won't modify the file."
34480 msgstr ""
34481
34482 #. type: textblock
34483 #: ../src/guestfs.pod:147
34484 msgid ""
34485 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34486 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34487 "corruption, but adding it read-only is safe."
34488 msgstr ""
34489
34490 #. type: textblock
34491 #: ../src/guestfs.pod:151
34492 msgid ""
34493 "You must add at least one disk image, and you may add multiple disk images.  "
34494 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34495 "first one you added), C</dev/sdb> (for the second one you added), etc."
34496 msgstr ""
34497
34498 #. type: textblock
34499 #: ../src/guestfs.pod:156
34500 msgid ""
34501 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34502 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34503 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34504 msgstr ""
34505
34506 #. type: =head2
34507 #: ../src/guestfs.pod:161
34508 msgid "MOUNTING"
34509 msgstr ""
34510
34511 #. type: textblock
34512 #: ../src/guestfs.pod:163
34513 msgid ""
34514 "Before you can read or write files, create directories and so on in a disk "
34515 "image that contains filesystems, you have to mount those filesystems using "
34516 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34517 "a disk image contains (for example) one partition with a filesystem on that "
34518 "partition, then you can mount it directly:"
34519 msgstr ""
34520
34521 #. type: verbatim
34522 #: ../src/guestfs.pod:170
34523 #, no-wrap
34524 msgid ""
34525 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34526 "\n"
34527 msgstr ""
34528
34529 #. type: textblock
34530 #: ../src/guestfs.pod:172
34531 msgid ""
34532 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34533 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34534 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34535 "that these are libguestfs virtual devices, and are nothing to do with host "
34536 "devices."
34537 msgstr ""
34538
34539 #. type: textblock
34540 #: ../src/guestfs.pod:178
34541 msgid ""
34542 "If you are given a disk image and you don't know what it contains then you "
34543 "have to find out.  Libguestfs can do that too: use L</"
34544 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34545 "LVs, and either try mounting each to see what is mountable, or else examine "
34546 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34547 "filesystems, use L</guestfs_list_filesystems>."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:186
34552 msgid ""
34553 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34554 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34555 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34556 msgstr ""
34557
34558 #. type: textblock
34559 #: ../src/guestfs.pod:191
34560 msgid ""
34561 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34562 "several other variations of the C<guestfs_mount_*> call."
34563 msgstr ""
34564
34565 #. type: =head2
34566 #: ../src/guestfs.pod:194
34567 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:196
34572 msgid ""
34573 "The majority of the libguestfs API consists of fairly low-level calls for "
34574 "accessing and modifying the files, directories, symlinks etc on mounted "
34575 "filesystems.  There are over a hundred such calls which you can find listed "
34576 "in detail below in this man page, and we don't even pretend to cover them "
34577 "all in this overview."
34578 msgstr ""
34579
34580 #. type: textblock
34581 #: ../src/guestfs.pod:202
34582 msgid ""
34583 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34584 "mount point."
34585 msgstr ""
34586
34587 #. type: textblock
34588 #: ../src/guestfs.pod:205
34589 msgid ""
34590 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34591 "the file called C<\"etc/passwd\"> then you could do:"
34592 msgstr ""
34593
34594 #. type: verbatim
34595 #: ../src/guestfs.pod:208
34596 #, no-wrap
34597 msgid ""
34598 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34599 "\n"
34600 msgstr ""
34601
34602 #. type: textblock
34603 #: ../src/guestfs.pod:210
34604 msgid ""
34605 "This would return C<data> as a newly allocated buffer containing the full "
34606 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34607 "or C<NULL> if there was an error."
34608 msgstr ""
34609
34610 #. type: textblock
34611 #: ../src/guestfs.pod:214
34612 msgid ""
34613 "As another example, to create a top-level directory on that filesystem "
34614 "called C<\"var\"> you would do:"
34615 msgstr ""
34616
34617 #. type: verbatim
34618 #: ../src/guestfs.pod:217
34619 #, no-wrap
34620 msgid ""
34621 " guestfs_mkdir (g, \"/var\");\n"
34622 "\n"
34623 msgstr ""
34624
34625 #. type: textblock
34626 #: ../src/guestfs.pod:219
34627 msgid "To create a symlink you could do:"
34628 msgstr ""
34629
34630 #. type: verbatim
34631 #: ../src/guestfs.pod:221
34632 #, no-wrap
34633 msgid ""
34634 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34635 "               \"/etc/rc3.d/S30portmap\");\n"
34636 "\n"
34637 msgstr ""
34638
34639 #. type: textblock
34640 #: ../src/guestfs.pod:224
34641 msgid ""
34642 "Libguestfs will reject attempts to use relative paths and there is no "
34643 "concept of a current working directory."
34644 msgstr ""
34645
34646 #. type: textblock
34647 #: ../src/guestfs.pod:227
34648 msgid ""
34649 "Libguestfs can return errors in many situations: for example if the "
34650 "filesystem isn't writable, or if a file or directory that you requested "
34651 "doesn't exist.  If you are using the C API (documented here)  you have to "
34652 "check for those error conditions after each call.  (Other language bindings "
34653 "turn these errors into exceptions)."
34654 msgstr ""
34655
34656 #. type: textblock
34657 #: ../src/guestfs.pod:233
34658 msgid ""
34659 "File writes are affected by the per-handle umask, set by calling L</"
34660 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34661 msgstr ""
34662
34663 #. type: =head2
34664 #: ../src/guestfs.pod:236
34665 msgid "PARTITIONING"
34666 msgstr ""
34667
34668 #. type: textblock
34669 #: ../src/guestfs.pod:238
34670 msgid ""
34671 "Libguestfs contains API calls to read, create and modify partition tables on "
34672 "disk images."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:241
34677 msgid ""
34678 "In the common case where you want to create a single partition covering the "
34679 "whole disk, you should use the L</guestfs_part_disk> call:"
34680 msgstr ""
34681
34682 #. type: verbatim
34683 #: ../src/guestfs.pod:245
34684 #, no-wrap
34685 msgid ""
34686 " const char *parttype = \"mbr\";\n"
34687 " if (disk_is_larger_than_2TB)\n"
34688 "   parttype = \"gpt\";\n"
34689 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34690 "\n"
34691 msgstr ""
34692
34693 #. type: textblock
34694 #: ../src/guestfs.pod:250
34695 msgid ""
34696 "Obviously this effectively wipes anything that was on that disk image before."
34697 msgstr ""
34698
34699 #. type: =head2
34700 #: ../src/guestfs.pod:253
34701 msgid "LVM2"
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:255
34706 msgid ""
34707 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34708 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34709 "you familiarize yourself with the concepts of physical volumes, volume "
34710 "groups and logical volumes."
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs.pod:260
34715 msgid ""
34716 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34717 "tldp.org/HOWTO/LVM-HOWTO/>."
34718 msgstr ""
34719
34720 #. type: =head2
34721 #: ../src/guestfs.pod:263
34722 msgid "DOWNLOADING"
34723 msgstr ""
34724
34725 #. type: textblock
34726 #: ../src/guestfs.pod:265
34727 msgid ""
34728 "Use L</guestfs_cat> to download small, text only files.  This call is "
34729 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34730 "NUL (C<\\0>) characters.  However the API is very simple to use."
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:269
34735 msgid ""
34736 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34737 "bit data, since it returns a (pointer, size) pair.  However it is still "
34738 "limited to \"small\" files, less than 2 MB."
34739 msgstr ""
34740
34741 #. type: textblock
34742 #: ../src/guestfs.pod:273
34743 msgid ""
34744 "L</guestfs_download> can be used to download any file, with no limits on "
34745 "content or size (even files larger than 4 GB)."
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:276
34750 msgid ""
34751 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34752 msgstr ""
34753
34754 #. type: =head2
34755 #: ../src/guestfs.pod:279
34756 msgid "UPLOADING"
34757 msgstr ""
34758
34759 #. type: textblock
34760 #: ../src/guestfs.pod:281
34761 msgid ""
34762 "It's often the case that you want to write a file or files to the disk image."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:284
34767 msgid ""
34768 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34769 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34770 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34771 "of other functions for creating test files, for example L</guestfs_fill> and "
34772 "L</guestfs_fill_pattern>."
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:290
34777 msgid ""
34778 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34779 "file content or size (even files larger than 4 GB)."
34780 msgstr ""
34781
34782 #. type: textblock
34783 #: ../src/guestfs.pod:293
34784 msgid ""
34785 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:295
34790 msgid ""
34791 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34792 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34793 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34794 "in a predictable way (eg. adding it last after all other drives) then you "
34795 "can get the device name from L</guestfs_list_devices> and mount it directly "
34796 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34797 "portable between kernel versions, and they don't support labels or UUIDs.  "
34798 "If you want to pre-build an image or you need to mount it using a label or "
34799 "UUID, use an ISO image instead."
34800 msgstr ""
34801
34802 #. type: =head2
34803 #: ../src/guestfs.pod:306
34804 msgid "COPYING"
34805 msgstr ""
34806
34807 #. type: textblock
34808 #: ../src/guestfs.pod:308
34809 msgid ""
34810 "There are various different commands for copying between files and devices "
34811 "and in and out of the guest filesystem.  These are summarised in the table "
34812 "below."
34813 msgstr ""
34814
34815 #. type: =item
34816 #: ../src/guestfs.pod:314
34817 msgid "B<file> to B<file>"
34818 msgstr ""
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:316
34822 msgid ""
34823 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34824 "directories recursively."
34825 msgstr ""
34826
34827 #. type: textblock
34828 #: ../src/guestfs.pod:319
34829 msgid ""
34830 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34831 msgstr ""
34832
34833 #. type: =item
34834 #: ../src/guestfs.pod:322
34835 msgid "B<file> to B<device>"
34836 msgstr ""
34837
34838 #. type: =item
34839 #: ../src/guestfs.pod:324
34840 msgid "B<device> to B<file>"
34841 msgstr ""
34842
34843 #. type: =item
34844 #: ../src/guestfs.pod:326
34845 msgid "B<device> to B<device>"
34846 msgstr ""
34847
34848 #. type: textblock
34849 #: ../src/guestfs.pod:328
34850 msgid ""
34851 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
34852 "guestfs_copy_device_to_device>."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:331
34857 msgid "Example: duplicate the contents of an LV:"
34858 msgstr ""
34859
34860 #. type: verbatim
34861 #: ../src/guestfs.pod:333
34862 #, no-wrap
34863 msgid ""
34864 " guestfs_copy_device_to_device (g,\n"
34865 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34866 "         /* -1 marks the end of the list of optional parameters */\n"
34867 "         -1);\n"
34868 "\n"
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:338
34873 msgid ""
34874 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34875 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34876 "optional C<size> parameter:"
34877 msgstr ""
34878
34879 #. type: verbatim
34880 #: ../src/guestfs.pod:342
34881 #, no-wrap
34882 msgid ""
34883 " guestfs_copy_device_to_device (g,\n"
34884 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34885 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34886 "         -1);\n"
34887 "\n"
34888 msgstr ""
34889
34890 #. type: =item
34891 #: ../src/guestfs.pod:347
34892 msgid "B<file on the host> to B<file or device>"
34893 msgstr ""
34894
34895 #. type: textblock
34896 #: ../src/guestfs.pod:349
34897 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34898 msgstr ""
34899
34900 #. type: =item
34901 #: ../src/guestfs.pod:351
34902 msgid "B<file or device> to B<file on the host>"
34903 msgstr ""
34904
34905 #. type: textblock
34906 #: ../src/guestfs.pod:353
34907 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34908 msgstr ""
34909
34910 #. type: =head2
34911 #: ../src/guestfs.pod:357
34912 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:359
34917 msgid ""
34918 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34919 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34920 "appears you can only upload and download to files.  However many Un*x-like "
34921 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34922 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34923 "and arbitrary file descriptor N."
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:367
34928 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34929 msgstr ""
34930
34931 #. type: verbatim
34932 #: ../src/guestfs.pod:370
34933 #, no-wrap
34934 msgid ""
34935 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34936 "\n"
34937 msgstr ""
34938
34939 #. type: textblock
34940 #: ../src/guestfs.pod:372
34941 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34942 msgstr ""
34943
34944 #. type: verbatim
34945 #: ../src/guestfs.pod:374
34946 #, no-wrap
34947 msgid ""
34948 " char devfd[64];\n"
34949 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34950 " guestfs_tar_out (g, \"/\", devfd);\n"
34951 "\n"
34952 msgstr ""
34953
34954 #. type: =head2
34955 #: ../src/guestfs.pod:378
34956 msgid "LISTING FILES"
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:380
34961 msgid ""
34962 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34963 "L<guestfish(1)>-equivalent command C<ll>)."
34964 msgstr ""
34965
34966 #. type: textblock
34967 #: ../src/guestfs.pod:383
34968 msgid ""
34969 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34970 "programs, as a flat list of strings."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:386
34975 msgid ""
34976 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34977 "directory, plus additional information about each one.  It is more "
34978 "equivalent to using the L<readdir(3)> call on a local filesystem."
34979 msgstr ""
34980
34981 #. type: textblock
34982 #: ../src/guestfs.pod:390
34983 msgid ""
34984 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34985 msgstr ""
34986
34987 #. type: =head2
34988 #: ../src/guestfs.pod:393
34989 msgid "RUNNING COMMANDS"
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:395
34994 msgid ""
34995 "Although libguestfs is primarily an API for manipulating files inside guest "
34996 "images, we also provide some limited facilities for running commands inside "
34997 "guests."
34998 msgstr ""
34999
35000 #. type: textblock
35001 #: ../src/guestfs.pod:399
35002 msgid "There are many limitations to this:"
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:405
35007 msgid ""
35008 "The kernel version that the command runs under will be different from what "
35009 "it expects."
35010 msgstr ""
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:410
35014 msgid ""
35015 "If the command needs to communicate with daemons, then most likely they "
35016 "won't be running."
35017 msgstr ""
35018
35019 #. type: textblock
35020 #: ../src/guestfs.pod:415
35021 msgid "The command will be running in limited memory."
35022 msgstr ""
35023
35024 #. type: textblock
35025 #: ../src/guestfs.pod:419
35026 msgid ""
35027 "The network may not be available unless you enable it (see L</"
35028 "guestfs_set_network>)."
35029 msgstr ""
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:424
35033 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35034 msgstr ""
35035
35036 #. type: textblock
35037 #: ../src/guestfs.pod:428
35038 msgid ""
35039 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:433
35044 msgid ""
35045 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35046 "See L</SELINUX> in this manpage."
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:438
35051 msgid ""
35052 "I<Security:> It is not safe to run commands from untrusted, possibly "
35053 "malicious guests.  These commands may attempt to exploit your program by "
35054 "sending unexpected output.  They could also try to exploit the Linux kernel "
35055 "or qemu provided by the libguestfs appliance.  They could use the network "
35056 "provided by the libguestfs appliance to bypass ordinary network partitions "
35057 "and firewalls.  They could use the elevated privileges or different SELinux "
35058 "context of your program to their advantage."
35059 msgstr ""
35060
35061 #. type: textblock
35062 #: ../src/guestfs.pod:447
35063 msgid ""
35064 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35065 "(a script which runs when the guest next boots normally), and to have this "
35066 "script run the commands you want in the normal context of the running guest, "
35067 "network security and so on.  For information about other security issues, "
35068 "see L</SECURITY>."
35069 msgstr ""
35070
35071 #. type: textblock
35072 #: ../src/guestfs.pod:455
35073 msgid ""
35074 "The two main API calls to run commands are L</guestfs_command> and L</"
35075 "guestfs_sh> (there are also variations)."
35076 msgstr ""
35077
35078 #. type: textblock
35079 #: ../src/guestfs.pod:458
35080 msgid ""
35081 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35082 "shell globs, redirections, etc will work."
35083 msgstr ""
35084
35085 #. type: =head2
35086 #: ../src/guestfs.pod:461
35087 msgid "CONFIGURATION FILES"
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:463
35092 msgid ""
35093 "To read and write configuration files in Linux guest filesystems, we "
35094 "strongly recommend using Augeas.  For example, Augeas understands how to "
35095 "read and write, say, a Linux shadow password file or X.org configuration "
35096 "file, and so avoids you having to write that code."
35097 msgstr ""
35098
35099 #. type: textblock
35100 #: ../src/guestfs.pod:468
35101 msgid ""
35102 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35103 "document Augeas itself here because there is excellent documentation on the "
35104 "L<http://augeas.net/> website."
35105 msgstr ""
35106
35107 #. type: textblock
35108 #: ../src/guestfs.pod:472
35109 msgid ""
35110 "If you don't want to use Augeas (you fool!) then try calling L</"
35111 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35112 "over."
35113 msgstr ""
35114
35115 #. type: =head2
35116 #: ../src/guestfs.pod:476
35117 msgid "SELINUX"
35118 msgstr ""
35119
35120 #. type: textblock
35121 #: ../src/guestfs.pod:478
35122 msgid ""
35123 "We support SELinux guests.  To ensure that labeling happens correctly in "
35124 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35125 msgstr ""
35126
35127 #. type: textblock
35128 #: ../src/guestfs.pod:486
35129 msgid "Before launching, do:"
35130 msgstr ""
35131
35132 #. type: verbatim
35133 #: ../src/guestfs.pod:488
35134 #, no-wrap
35135 msgid ""
35136 " guestfs_set_selinux (g, 1);\n"
35137 "\n"
35138 msgstr ""
35139
35140 #. type: textblock
35141 #: ../src/guestfs.pod:492
35142 msgid ""
35143 "After mounting the guest's filesystem(s), load the policy.  This is best "
35144 "done by running the L<load_policy(8)> command in the guest itself:"
35145 msgstr ""
35146
35147 #. type: verbatim
35148 #: ../src/guestfs.pod:496
35149 #, no-wrap
35150 msgid ""
35151 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35152 "\n"
35153 msgstr ""
35154
35155 #. type: textblock
35156 #: ../src/guestfs.pod:498
35157 msgid ""
35158 "(Older versions of C<load_policy> require you to specify the name of the "
35159 "policy file)."
35160 msgstr ""
35161
35162 #. type: textblock
35163 #: ../src/guestfs.pod:503
35164 msgid ""
35165 "Optionally, set the security context for the API.  The correct security "
35166 "context to use can only be known by inspecting the guest.  As an example:"
35167 msgstr ""
35168
35169 #. type: verbatim
35170 #: ../src/guestfs.pod:507
35171 #, no-wrap
35172 msgid ""
35173 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35174 "\n"
35175 msgstr ""
35176
35177 #. type: textblock
35178 #: ../src/guestfs.pod:511
35179 msgid "This will work for running commands and editing existing files."
35180 msgstr ""
35181
35182 #. type: textblock
35183 #: ../src/guestfs.pod:513
35184 msgid ""
35185 "When new files are created, you may need to label them explicitly, for "
35186 "example by running the external command C<restorecon pathname>."
35187 msgstr ""
35188
35189 #. type: =head2
35190 #: ../src/guestfs.pod:517
35191 msgid "UMASK"
35192 msgstr ""
35193
35194 #. type: textblock
35195 #: ../src/guestfs.pod:519
35196 msgid ""
35197 "Certain calls are affected by the current file mode creation mask (the "
35198 "\"umask\").  In particular ones which create files or directories, such as "
35199 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35200 "either the default mode that the file is created with or modifies the mode "
35201 "that you supply."
35202 msgstr ""
35203
35204 #. type: textblock
35205 #: ../src/guestfs.pod:525
35206 msgid ""
35207 "The default umask is C<022>, so files are created with modes such as C<0644> "
35208 "and directories with C<0755>."
35209 msgstr ""
35210
35211 #. type: textblock
35212 #: ../src/guestfs.pod:528
35213 msgid ""
35214 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35215 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35216 "guestfs_chmod> after creating each file or directory."
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:532
35221 msgid "For more information about umask, see L<umask(2)>."
35222 msgstr ""
35223
35224 #. type: textblock
35225 #: ../src/guestfs.pod:536
35226 msgid ""
35227 "Libguestfs allows you to access Linux guests which have been encrypted using "
35228 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35229 "standard.  This includes nearly all whole disk encryption systems used by "
35230 "modern Linux guests."
35231 msgstr ""
35232
35233 #. type: textblock
35234 #: ../src/guestfs.pod:542
35235 msgid ""
35236 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35237 "returns the string C<crypto_LUKS>)."
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:545
35242 msgid ""
35243 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35244 "will require the passphrase!"
35245 msgstr ""
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:548
35249 msgid ""
35250 "Opening a LUKS device creates a new device mapper device called C</dev/"
35251 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35252 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35253 "from and encrypted to the underlying block device respectively."
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../src/guestfs.pod:554
35258 msgid ""
35259 "LVM volume groups on the device can be made visible by calling L</"
35260 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35261 "(s) can now be mounted in the usual way."
35262 msgstr ""
35263
35264 #. type: textblock
35265 #: ../src/guestfs.pod:558
35266 msgid ""
35267 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35268 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35269 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35270 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35271 "underlying encrypted block device)."
35272 msgstr ""
35273
35274 #. type: =head2
35275 #: ../src/guestfs.pod:565
35276 msgid "INSPECTION"
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:567
35281 msgid ""
35282 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35283 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35284 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35285 "version 1.5.3 the most frequently used part of this library has been "
35286 "rewritten in C and moved into the core code)."
35287 msgstr ""
35288
35289 #. type: textblock
35290 #: ../src/guestfs.pod:574
35291 msgid ""
35292 "Add all disks belonging to the unknown virtual machine and call L</"
35293 "guestfs_launch> in the usual way."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:577
35298 msgid ""
35299 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35300 "and certain heuristics, and returns a list of operating systems that were "
35301 "found.  An empty list means none were found.  A single element is the root "
35302 "filesystem of the operating system.  For dual- or multi-boot guests, "
35303 "multiple roots can be returned, each one corresponding to a separate "
35304 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35305 "world of virtualization, but since this scenario can happen, we have built "
35306 "libguestfs to deal with it.)"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:586
35311 msgid ""
35312 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35313 "to get additional details about that operating system.  For example, call L</"
35314 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35315 "Windows and Linux-based operating systems respectively."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:592
35320 msgid ""
35321 "Un*x-like and Linux-based operating systems usually consist of several "
35322 "filesystems which are mounted at boot time (for example, a separate boot "
35323 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35324 "filesystems correspond to mount points.  Call "
35325 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35326 "hash table like this example:"
35327 msgstr ""
35328
35329 #. type: verbatim
35330 #: ../src/guestfs.pod:599
35331 #, no-wrap
35332 msgid ""
35333 " /boot => /dev/sda1\n"
35334 " /     => /dev/vg_guest/lv_root\n"
35335 " /usr  => /dev/vg_guest/lv_usr\n"
35336 "\n"
35337 msgstr ""
35338
35339 #. type: textblock
35340 #: ../src/guestfs.pod:603
35341 msgid ""
35342 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35343 "filesystems as suggested."
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:606
35348 msgid ""
35349 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35350 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35351 msgstr ""
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:610
35355 msgid ""
35356 "Inspection currently only works for some common operating systems.  "
35357 "Contributors are welcome to send patches for other operating systems that we "
35358 "currently cannot detect."
35359 msgstr ""
35360
35361 #. type: textblock
35362 #: ../src/guestfs.pod:614
35363 msgid ""
35364 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35365 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35366 "encrypted devices."
35367 msgstr ""
35368
35369 #. type: textblock
35370 #: ../src/guestfs.pod:618
35371 msgid ""
35372 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35373 "inspection and caches the results in the guest handle.  Subsequent calls to "
35374 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35375 "read the disks.  If you change the content of the guest disks, you can redo "
35376 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35377 "guestfs_inspect_list_applications> works a little differently from the other "
35378 "calls and does read the disks.  See documentation for that function for "
35379 "details)."
35380 msgstr ""
35381
35382 #. type: =head3
35383 #: ../src/guestfs.pod:627
35384 msgid "INSPECTING INSTALL DISKS"
35385 msgstr ""
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:629
35389 msgid ""
35390 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35391 "CDs and more."
35392 msgstr ""
35393
35394 #. type: textblock
35395 #: ../src/guestfs.pod:632
35396 msgid ""
35397 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35398 "system, which currently can be C<installed> (a regular operating system) or "
35399 "C<installer> (some sort of install disk)."
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:636
35404 msgid ""
35405 "Further information is available about the operating system that can be "
35406 "installed using the regular inspection APIs like L</"
35407 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35408 msgstr ""
35409
35410 #. type: textblock
35411 #: ../src/guestfs.pod:641
35412 msgid ""
35413 "Some additional information specific to installer disks is also available "
35414 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35415 "guestfs_inspect_is_multipart> calls."
35416 msgstr ""
35417
35418 #. type: =head2
35419 #: ../src/guestfs.pod:646
35420 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35421 msgstr ""
35422
35423 #. type: textblock
35424 #: ../src/guestfs.pod:648
35425 msgid ""
35426 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35427 "ntfs-3g.org/> driver."
35428 msgstr ""
35429
35430 #. type: =head3
35431 #: ../src/guestfs.pod:651
35432 msgid "DRIVE LETTERS AND PATHS"
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:653
35437 msgid ""
35438 "DOS and Windows still use drive letters, and the filesystems are always "
35439 "treated as case insensitive by Windows itself, and therefore you might find "
35440 "a Windows configuration file referring to a path like C<c:\\windows"
35441 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35442 "might be referred to as C</WINDOWS/System32>."
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:659
35447 msgid ""
35448 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35449 "L</guestfs_inspect_get_drive_mappings>)"
35450 msgstr ""
35451
35452 #. type: textblock
35453 #: ../src/guestfs.pod:662
35454 msgid ""
35455 "Dealing with separator characters (backslash vs forward slash) is outside "
35456 "the scope of libguestfs, but usually a simple character replacement will "
35457 "work."
35458 msgstr ""
35459
35460 #. type: textblock
35461 #: ../src/guestfs.pod:666
35462 msgid ""
35463 "To resolve the case insensitivity of paths, call L</"
35464 "guestfs_case_sensitive_path>."
35465 msgstr ""
35466
35467 #. type: =head3
35468 #: ../src/guestfs.pod:669
35469 msgid "ACCESSING THE WINDOWS REGISTRY"
35470 msgstr ""
35471
35472 #. type: textblock
35473 #: ../src/guestfs.pod:671
35474 msgid ""
35475 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35476 "files, through the library C<hivex> which is part of the libguestfs project "
35477 "although ships as a separate tarball.  You have to locate and download the "
35478 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35479 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35480 "reg(1)> for more help on this issue."
35481 msgstr ""
35482
35483 #. type: =head3
35484 #: ../src/guestfs.pod:679
35485 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:681
35490 msgid ""
35491 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35492 "provide something which looks like a Linux symlink.  The way it tries to do "
35493 "the rewriting is described here:"
35494 msgstr ""
35495
35496 #. type: textblock
35497 #: ../src/guestfs.pod:685
35498 msgid ""
35499 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35500 "symbolic-links/>"
35501 msgstr ""
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:687
35505 msgid ""
35506 "The essential problem is that ntfs-3g simply does not have enough "
35507 "information to do a correct job.  NTFS links can contain drive letters and "
35508 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35509 "It is almost certainly the case that libguestfs callers should ignore what "
35510 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:694
35515 msgid ""
35516 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35517 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35518 "attribute, and read the raw reparse data from that (you can find the format "
35519 "documented in various places around the web)."
35520 msgstr ""
35521
35522 #. type: =head3
35523 #: ../src/guestfs.pod:699
35524 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35525 msgstr ""
35526
35527 #. type: textblock
35528 #: ../src/guestfs.pod:701
35529 msgid ""
35530 "There are other useful extended attributes that can be read from ntfs-3g "
35531 "filesystems (using L</guestfs_getxattr>).  See:"
35532 msgstr ""
35533
35534 #. type: textblock
35535 #: ../src/guestfs.pod:704
35536 msgid ""
35537 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35538 msgstr ""
35539
35540 #. type: =head2
35541 #: ../src/guestfs.pod:706
35542 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35543 msgstr ""
35544
35545 #. type: textblock
35546 #: ../src/guestfs.pod:708
35547 msgid ""
35548 "Although we don't want to discourage you from using the C API, we will "
35549 "mention here that the same API is also available in other languages."
35550 msgstr ""
35551
35552 #. type: textblock
35553 #: ../src/guestfs.pod:711
35554 msgid ""
35555 "The API is broadly identical in all supported languages.  This means that "
35556 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35557 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35558 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35559 "each language."
35560 msgstr ""
35561
35562 #. type: textblock
35563 #: ../src/guestfs.pod:717
35564 msgid ""
35565 "Error messages are automatically transformed into exceptions if the language "
35566 "supports it."
35567 msgstr ""
35568
35569 #. type: textblock
35570 #: ../src/guestfs.pod:720
35571 msgid ""
35572 "We don't try to \"object orientify\" parts of the API in OO languages, "
35573 "although contributors are welcome to write higher level APIs above what we "
35574 "provide in their favourite languages if they wish."
35575 msgstr ""
35576
35577 #. type: =item
35578 #: ../src/guestfs.pod:726
35579 msgid "B<C++>"
35580 msgstr ""
35581
35582 #. type: textblock
35583 #: ../src/guestfs.pod:728
35584 msgid ""
35585 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35586 "identical to the C API.  C++ classes and exceptions are not used."
35587 msgstr ""
35588
35589 #. type: =item
35590 #: ../src/guestfs.pod:732
35591 msgid "B<C#>"
35592 msgstr ""
35593
35594 #. type: textblock
35595 #: ../src/guestfs.pod:734
35596 msgid ""
35597 "The C# bindings are highly experimental.  Please read the warnings at the "
35598 "top of C<csharp/Libguestfs.cs>."
35599 msgstr ""
35600
35601 #. type: =item
35602 #: ../src/guestfs.pod:737
35603 msgid "B<Erlang>"
35604 msgstr ""
35605
35606 #. type: textblock
35607 #: ../src/guestfs.pod:739
35608 msgid "See L<guestfs-erlang(3)>."
35609 msgstr ""
35610
35611 #. type: =item
35612 #: ../src/guestfs.pod:741
35613 msgid "B<Haskell>"
35614 msgstr ""
35615
35616 #. type: textblock
35617 #: ../src/guestfs.pod:743
35618 msgid ""
35619 "This is the only language binding that is working but incomplete.  Only "
35620 "calls which return simple integers have been bound in Haskell, and we are "
35621 "looking for help to complete this binding."
35622 msgstr ""
35623
35624 #. type: =item
35625 #: ../src/guestfs.pod:747
35626 msgid "B<Java>"
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:749
35631 msgid ""
35632 "Full documentation is contained in the Javadoc which is distributed with "
35633 "libguestfs.  For examples, see L<guestfs-java(3)>."
35634 msgstr ""
35635
35636 #. type: =item
35637 #: ../src/guestfs.pod:752
35638 msgid "B<OCaml>"
35639 msgstr ""
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:754
35643 msgid "See L<guestfs-ocaml(3)>."
35644 msgstr ""
35645
35646 #. type: =item
35647 #: ../src/guestfs.pod:756
35648 msgid "B<Perl>"
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:758
35653 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35654 msgstr ""
35655
35656 #. type: =item
35657 #: ../src/guestfs.pod:760
35658 msgid "B<PHP>"
35659 msgstr ""
35660
35661 #. type: textblock
35662 #: ../src/guestfs.pod:762
35663 msgid ""
35664 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35665 "the php-libguestfs package for your distribution."
35666 msgstr ""
35667
35668 #. type: textblock
35669 #: ../src/guestfs.pod:765
35670 msgid "The PHP binding only works correctly on 64 bit machines."
35671 msgstr ""
35672
35673 #. type: =item
35674 #: ../src/guestfs.pod:767
35675 msgid "B<Python>"
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:769
35680 msgid "See L<guestfs-python(3)>."
35681 msgstr ""
35682
35683 #. type: =item
35684 #: ../src/guestfs.pod:771
35685 msgid "B<Ruby>"
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:773
35690 msgid "See L<guestfs-ruby(3)>."
35691 msgstr ""
35692
35693 #. type: =item
35694 #: ../src/guestfs.pod:775
35695 msgid "B<shell scripts>"
35696 msgstr ""
35697
35698 #. type: textblock
35699 #: ../src/guestfs.pod:777
35700 msgid "See L<guestfish(1)>."
35701 msgstr ""
35702
35703 #. type: =head2
35704 #: ../src/guestfs.pod:781
35705 msgid "LIBGUESTFS GOTCHAS"
35706 msgstr ""
35707
35708 #. type: textblock
35709 #: ../src/guestfs.pod:783
35710 msgid ""
35711 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35712 "system [...] that works in the way it is documented but is counterintuitive "
35713 "and almost invites mistakes.\""
35714 msgstr ""
35715
35716 #. type: textblock
35717 #: ../src/guestfs.pod:787
35718 msgid ""
35719 "Since we developed libguestfs and the associated tools, there are several "
35720 "things we would have designed differently, but are now stuck with for "
35721 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35722 "release, you can expect these to change.  Beware of them."
35723 msgstr ""
35724
35725 #. type: =item
35726 #: ../src/guestfs.pod:795
35727 msgid "Autosync / forgetting to sync."
35728 msgstr ""
35729
35730 #. type: textblock
35731 #: ../src/guestfs.pod:797
35732 msgid ""
35733 "I<Update:> Autosync is enabled by default for all API users starting from "
35734 "libguestfs 1.5.24.  This section only applies to older versions."
35735 msgstr ""
35736
35737 #. type: textblock
35738 #: ../src/guestfs.pod:800
35739 msgid ""
35740 "When modifying a filesystem from C or another language, you B<must> unmount "
35741 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35742 "libguestfs handle.  You can also call:"
35743 msgstr ""
35744
35745 #. type: verbatim
35746 #: ../src/guestfs.pod:804
35747 #, no-wrap
35748 msgid ""
35749 " guestfs_set_autosync (g, 1);\n"
35750 "\n"
35751 msgstr ""
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:806
35755 msgid ""
35756 "to have the unmount/sync done automatically for you when the handle 'g' is "
35757 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35758 msgstr ""
35759
35760 #. type: textblock
35761 #: ../src/guestfs.pod:810
35762 msgid ""
35763 "If you forget to do this, then it is entirely possible that your changes "
35764 "won't be written out, or will be partially written, or (very rarely) that "
35765 "you'll get disk corruption."
35766 msgstr ""
35767
35768 #. type: textblock
35769 #: ../src/guestfs.pod:814
35770 msgid ""
35771 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35772 "guestfish scripts that forget to sync will work just fine, which can make "
35773 "this very puzzling if you are trying to debug a problem."
35774 msgstr ""
35775
35776 #. type: =item
35777 #: ../src/guestfs.pod:818
35778 msgid "Mount option C<-o sync> should not be the default."
35779 msgstr ""
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:820
35783 msgid ""
35784 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35785 "libguestfs 1.13.16.  This section only applies to older versions."
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:823
35790 msgid ""
35791 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35792 "However C<-o sync> does not add any reliability benefit, but does have a "
35793 "very large performance impact."
35794 msgstr ""
35795
35796 #. type: textblock
35797 #: ../src/guestfs.pod:827
35798 msgid ""
35799 "The work around is to use L</guestfs_mount_options> and set the mount "
35800 "options that you actually want to use."
35801 msgstr ""
35802
35803 #. type: =item
35804 #: ../src/guestfs.pod:830
35805 msgid "Read-only should be the default."
35806 msgstr ""
35807
35808 #. type: textblock
35809 #: ../src/guestfs.pod:832
35810 msgid ""
35811 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35812 "specify I<--rw> if you want to make changes to the image."
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../src/guestfs.pod:835
35817 msgid "This would reduce the potential to corrupt live VM images."
35818 msgstr ""
35819
35820 #. type: textblock
35821 #: ../src/guestfs.pod:837
35822 msgid ""
35823 "Note that many filesystems change the disk when you just mount and unmount, "
35824 "even if you didn't perform any writes.  You need to use L</"
35825 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35826 msgstr ""
35827
35828 #. type: =item
35829 #: ../src/guestfs.pod:841
35830 msgid "guestfish command line is hard to use."
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../src/guestfs.pod:843
35835 msgid ""
35836 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35837 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35838 "exist, so it fails.  In earlier versions of guestfish the error message was "
35839 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35840 "we should have used C<guestfish -c command> to run commands."
35841 msgstr ""
35842
35843 #. type: =item
35844 #: ../src/guestfs.pod:850
35845 msgid "guestfish megabyte modifiers don't work right on all commands"
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:852
35850 msgid ""
35851 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35852 "other modifiers).  What guestfish actually does is to multiply the number "
35853 "part by the modifier part and pass the result to the C API.  However this "
35854 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35855 "expecting some other unit (eg. megabytes)."
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:859
35860 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35861 msgstr ""
35862
35863 #. type: verbatim
35864 #: ../src/guestfs.pod:861
35865 #, no-wrap
35866 msgid ""
35867 " lvcreate LV VG 100M\n"
35868 "\n"
35869 msgstr ""
35870
35871 #. type: textblock
35872 #: ../src/guestfs.pod:863
35873 msgid ""
35874 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35875 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35876 "megabytes * megabytes) logical volume.  The error message you get from this "
35877 "is also a little obscure."
35878 msgstr ""
35879
35880 #. type: textblock
35881 #: ../src/guestfs.pod:868
35882 msgid ""
35883 "This could be fixed in the generator by specially marking parameters and "
35884 "return values which take bytes or other units."
35885 msgstr ""
35886
35887 #. type: =item
35888 #: ../src/guestfs.pod:871
35889 msgid "Ambiguity between devices and paths"
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:873
35894 msgid ""
35895 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35896 "sdb2>) and a similar pathname.  A file might just happen to be called "
35897 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:878
35902 msgid ""
35903 "In the current API we usually resolve this ambiguity by having two separate "
35904 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35905 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35906 "detecting if the path supplied begins with C</dev/>."
35907 msgstr ""
35908
35909 #. type: textblock
35910 #: ../src/guestfs.pod:884
35911 msgid ""
35912 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35913 "make paths/devices into structured names.  One way to do this would be to "
35914 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35915 "aspect of grub.  Another way would be to use a structured type, equivalent "
35916 "to this OCaml type:"
35917 msgstr ""
35918
35919 #. type: verbatim
35920 #: ../src/guestfs.pod:890
35921 #, no-wrap
35922 msgid ""
35923 " type path = Path of string | Device of int | Partition of int * int\n"
35924 "\n"
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:892
35929 msgid "which would allow you to pass arguments like:"
35930 msgstr ""
35931
35932 #. type: verbatim
35933 #: ../src/guestfs.pod:894
35934 #, no-wrap
35935 msgid ""
35936 " Path \"/foo/bar\"\n"
35937 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35938 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35939 " Path \"/dev/sdb2\"    (* not a device *)\n"
35940 "\n"
35941 msgstr ""
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:899
35945 msgid ""
35946 "As you can see there are still problems to resolve even with this "
35947 "representation.  Also consider how it might work in guestfish."
35948 msgstr ""
35949
35950 #. type: =head2
35951 #: ../src/guestfs.pod:904
35952 msgid "KEYS AND PASSPHRASES"
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:906
35957 msgid ""
35958 "Certain libguestfs calls take a parameter that contains sensitive key "
35959 "material, passed in as a C string."
35960 msgstr ""
35961
35962 #. type: textblock
35963 #: ../src/guestfs.pod:909
35964 msgid ""
35965 "In the future we would hope to change the libguestfs implementation so that "
35966 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35967 "swap.  However this is I<not> done at the moment, because of the complexity "
35968 "of such an implementation."
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs.pod:914
35973 msgid ""
35974 "Therefore you should be aware that any key parameter you pass to libguestfs "
35975 "might end up being written out to the swap partition.  If this is a concern, "
35976 "scrub the swap partition or don't use libguestfs on encrypted devices."
35977 msgstr ""
35978
35979 #. type: =head2
35980 #: ../src/guestfs.pod:919
35981 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35982 msgstr ""
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:921
35986 msgid ""
35987 "All high-level libguestfs actions are synchronous.  If you want to use "
35988 "libguestfs asynchronously then you must create a thread."
35989 msgstr ""
35990
35991 #. type: textblock
35992 #: ../src/guestfs.pod:924
35993 msgid ""
35994 "Only use the handle from a single thread.  Either use the handle exclusively "
35995 "from one thread, or provide your own mutex so that two threads cannot issue "
35996 "calls on the same handle at the same time."
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:928
36001 msgid ""
36002 "See the graphical program guestfs-browser for one possible architecture for "
36003 "multithreaded programs using libvirt and libguestfs."
36004 msgstr ""
36005
36006 #. type: =head2
36007 #: ../src/guestfs.pod:931
36008 msgid "PATH"
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:933
36013 msgid ""
36014 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36015 "internal path."
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:936
36020 msgid ""
36021 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36022 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:939
36027 msgid ""
36028 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36029 "to change the directories that libguestfs will search in.  The value is a "
36030 "colon-separated list of paths.  The current directory is I<not> searched "
36031 "unless the path contains an empty element or C<.>.  For example "
36032 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36033 "then C</usr/lib/guestfs>."
36034 msgstr ""
36035
36036 #. type: =head2
36037 #: ../src/guestfs.pod:946
36038 msgid "QEMU WRAPPERS"
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:948
36043 msgid ""
36044 "If you want to compile your own qemu, run qemu from a non-standard location, "
36045 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36046 "around qemu."
36047 msgstr ""
36048
36049 #. type: textblock
36050 #: ../src/guestfs.pod:952
36051 msgid ""
36052 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36053 "last command in the shell script (so that qemu replaces the shell and "
36054 "becomes the direct child of the libguestfs-using program).  If you don't do "
36055 "this, then the qemu process won't be cleaned up correctly."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:957
36060 msgid ""
36061 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36062 "source:"
36063 msgstr ""
36064
36065 #. type: verbatim
36066 #: ../src/guestfs.pod:960
36067 #, no-wrap
36068 msgid ""
36069 " #!/bin/sh -\n"
36070 " qemudir=/home/rjones/d/qemu\n"
36071 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36072 "\n"
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs.pod:964
36077 msgid ""
36078 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36079 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36080 "example:"
36081 msgstr ""
36082
36083 #. type: verbatim
36084 #: ../src/guestfs.pod:968
36085 #, no-wrap
36086 msgid ""
36087 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36088 "\n"
36089 msgstr ""
36090
36091 #. type: textblock
36092 #: ../src/guestfs.pod:970
36093 msgid ""
36094 "Note that libguestfs also calls qemu with the -help and -version options in "
36095 "order to determine features."
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:973
36100 msgid ""
36101 "Wrappers can also be used to edit the options passed to qemu.  In the "
36102 "following example, the C<-machine ...> option (C<-machine> and the following "
36103 "argument) are removed from the command line and replaced with C<-machine pc,"
36104 "accel=tcg>.  The while loop iterates over the options until it finds the "
36105 "right one to remove, putting the remaining options into the C<args> array."
36106 msgstr ""
36107
36108 #. type: verbatim
36109 #: ../src/guestfs.pod:982
36110 #, no-wrap
36111 msgid ""
36112 " i=0\n"
36113 " while [ $# -gt 0 ]; do\n"
36114 "     case \"$1\" in\n"
36115 "     -machine)\n"
36116 "         shift 2;;\n"
36117 "     *)\n"
36118 "         args[i]=\"$1\"\n"
36119 "         (( i++ ))\n"
36120 "         shift ;;\n"
36121 "     esac\n"
36122 " done\n"
36123 " \n"
36124 msgstr ""
36125
36126 #. type: verbatim
36127 #: ../src/guestfs.pod:994
36128 #, no-wrap
36129 msgid ""
36130 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36131 "\n"
36132 msgstr ""
36133
36134 #. type: =head2
36135 #: ../src/guestfs.pod:996
36136 msgid "ATTACHING TO RUNNING DAEMONS"
36137 msgstr ""
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:998
36141 msgid ""
36142 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36143 "babies.  Use with caution."
36144 msgstr ""
36145
36146 #. type: textblock
36147 #: ../src/guestfs.pod:1001
36148 msgid ""
36149 "I<Note (2):> This section explains how to attach to a running daemon from a "
36150 "low level perspective.  For most users, simply using virt tools such as "
36151 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36152 msgstr ""
36153
36154 #. type: =head3
36155 #: ../src/guestfs.pod:1005
36156 msgid "Using guestfs_set_attach_method"
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:1007
36161 msgid ""
36162 "By calling L</guestfs_set_attach_method> you can change how the library "
36163 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36164 "ARCHITECTURE> for some background)."
36165 msgstr ""
36166
36167 #. type: textblock
36168 #: ../src/guestfs.pod:1011
36169 msgid ""
36170 "The normal attach method is C<appliance>, where a small appliance is created "
36171 "containing the daemon, and then the library connects to this."
36172 msgstr ""
36173
36174 #. type: textblock
36175 #: ../src/guestfs.pod:1014
36176 msgid ""
36177 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36178 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36179 "daemon over the Unix domain socket."
36180 msgstr ""
36181
36182 #. type: textblock
36183 #: ../src/guestfs.pod:1018
36184 msgid ""
36185 "The normal use for this is to connect to a running virtual machine that "
36186 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36187 "files inside the live virtual machine."
36188 msgstr ""
36189
36190 #. type: =head3
36191 #: ../src/guestfs.pod:1022
36192 msgid "Using guestfs_add_domain with live flag"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:1024
36197 msgid ""
36198 "L</guestfs_add_domain> provides some help for getting the correct attach "
36199 "method.  If you pass the C<live> option to this function, then (if the "
36200 "virtual machine is running) it will examine the libvirt XML looking for a "
36201 "virtio-serial channel to connect to:"
36202 msgstr ""
36203
36204 #. type: verbatim
36205 #: ../src/guestfs.pod:1030
36206 #, no-wrap
36207 msgid ""
36208 " <domain>\n"
36209 "   ...\n"
36210 "   <devices>\n"
36211 "     ...\n"
36212 "     <channel type='unix'>\n"
36213 "       <source mode='bind' path='/path/to/socket'/>\n"
36214 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36215 "     </channel>\n"
36216 "     ...\n"
36217 "   </devices>\n"
36218 " </domain>\n"
36219 "\n"
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:1042
36224 msgid ""
36225 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36226 "method to C<unix:/path/to/socket>."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:1045
36231 msgid ""
36232 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36233 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36234 "to attach to and modify live virtual machines."
36235 msgstr ""
36236
36237 #. type: textblock
36238 #: ../src/guestfs.pod:1049
36239 msgid ""
36240 "The virtual machine needs to have been set up beforehand so that it has the "
36241 "virtio-serial channel and so that guestfsd is running inside it."
36242 msgstr ""
36243
36244 #. type: =head2
36245 #: ../src/guestfs.pod:1053
36246 msgid "ABI GUARANTEE"
36247 msgstr ""
36248
36249 #. type: textblock
36250 #: ../src/guestfs.pod:1055
36251 msgid ""
36252 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36253 "actions as outlined in this section.  Although we will deprecate some "
36254 "actions, for example if they get replaced by newer calls, we will keep the "
36255 "old actions forever.  This allows you the developer to program in confidence "
36256 "against the libguestfs API."
36257 msgstr ""
36258
36259 #. type: =head2
36260 #: ../src/guestfs.pod:1061
36261 msgid "BLOCK DEVICE NAMING"
36262 msgstr ""
36263
36264 #. type: textblock
36265 #: ../src/guestfs.pod:1063
36266 msgid ""
36267 "In the kernel there is now quite a profusion of schemata for naming block "
36268 "devices (in this context, by I<block device> I mean a physical or virtual "
36269 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36270 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36271 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36272 "for the old IDE driver (particularly for SATA devices) those devices also "
36273 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36274 "paravirtualized drivers.  This has created several different naming systems, "
36275 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36276 msgstr ""
36277
36278 #. type: textblock
36279 #: ../src/guestfs.pod:1075
36280 msgid ""
36281 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36282 "Linux kernel to access block devices.  We can run a variety of appliances "
36283 "based on a variety of Linux kernels."
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:1079
36288 msgid ""
36289 "This causes a problem for libguestfs because many API calls use device or "
36290 "partition names.  Working scripts and the recipe (example) scripts that we "
36291 "make available over the internet could fail if the naming scheme changes."
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:1084
36296 msgid ""
36297 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36298 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36299 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36300 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36301 msgstr ""
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:1090
36305 msgid ""
36306 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36307 "L</guestfs_list_partitions> and similar calls return the true names of the "
36308 "devices and partitions as known to the appliance."
36309 msgstr ""
36310
36311 #. type: =head3
36312 #: ../src/guestfs.pod:1095
36313 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:1097
36318 msgid ""
36319 "Usually this translation is transparent.  However in some (very rare)  cases "
36320 "you may need to know the exact algorithm.  Such cases include where you use "
36321 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36322 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36323 msgstr ""
36324
36325 #. type: textblock
36326 #: ../src/guestfs.pod:1103
36327 msgid ""
36328 "The algorithm is applied only to I<parameters> which are known to be either "
36329 "device or partition names.  Return values from functions such as L</"
36330 "guestfs_list_devices> are never changed."
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:1111
36335 msgid "Is the string a parameter which is a device or partition name?"
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:1115
36340 msgid "Does the string begin with C</dev/sd>?"
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:1119
36345 msgid ""
36346 "Does the named device exist? If so, we use that device.  However if I<not> "
36347 "then we continue with this algorithm."
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:1124
36352 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36353 msgstr ""
36354
36355 #. type: textblock
36356 #: ../src/guestfs.pod:1126
36357 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:1128
36362 msgid "If that named device exists, use it.  If not, continue."
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:1132
36367 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:1134
36372 msgid "If that named device exists, use it.  If not, return an error."
36373 msgstr ""
36374
36375 #. type: =head3
36376 #: ../src/guestfs.pod:1138
36377 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:1140
36382 msgid ""
36383 "Although the standard naming scheme and automatic translation is useful for "
36384 "simple programs and guestfish scripts, for larger programs it is best not to "
36385 "rely on this mechanism."
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:1144
36390 msgid ""
36391 "Where possible for maximum future portability programs using libguestfs "
36392 "should use these future-proof techniques:"
36393 msgstr ""
36394
36395 #. type: textblock
36396 #: ../src/guestfs.pod:1151
36397 msgid ""
36398 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36399 "device names, and then use those names directly."
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:1154
36404 msgid ""
36405 "Since those device names exist by definition, they will never be translated."
36406 msgstr ""
36407
36408 #. type: textblock
36409 #: ../src/guestfs.pod:1159
36410 msgid ""
36411 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36412 "filesystem labels."
36413 msgstr ""
36414
36415 #. type: textblock
36416 #: ../src/guestfs.pod:1166
36417 msgid ""
36418 "This section discusses security implications of using libguestfs, "
36419 "particularly with untrusted or malicious guests or disk images."
36420 msgstr ""
36421
36422 #. type: =head2
36423 #: ../src/guestfs.pod:1169
36424 msgid "GENERAL SECURITY CONSIDERATIONS"
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../src/guestfs.pod:1171
36429 msgid ""
36430 "Be careful with any files or data that you download from a guest (by "
36431 "\"download\" we mean not just the L</guestfs_download> command but any "
36432 "command that reads files, filenames, directories or anything else from a "
36433 "disk image).  An attacker could manipulate the data to fool your program "
36434 "into doing the wrong thing.  Consider cases such as:"
36435 msgstr ""
36436
36437 #. type: textblock
36438 #: ../src/guestfs.pod:1181
36439 msgid "the data (file etc) not being present"
36440 msgstr ""
36441
36442 #. type: textblock
36443 #: ../src/guestfs.pod:1185
36444 msgid "being present but empty"
36445 msgstr ""
36446
36447 #. type: textblock
36448 #: ../src/guestfs.pod:1189
36449 msgid "being much larger than normal"
36450 msgstr ""
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:1193
36454 msgid "containing arbitrary 8 bit data"
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../src/guestfs.pod:1197
36459 msgid "being in an unexpected character encoding"
36460 msgstr ""
36461
36462 #. type: textblock
36463 #: ../src/guestfs.pod:1201
36464 msgid "containing homoglyphs."
36465 msgstr ""
36466
36467 #. type: =head2
36468 #: ../src/guestfs.pod:1205
36469 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:1207
36474 msgid ""
36475 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36476 "(VFS) module can sometimes be escalated into exploits by deliberately "
36477 "creating a malicious, malformed filesystem.  These exploits are very severe "
36478 "for two reasons.  Firstly there are very many filesystem drivers in the "
36479 "kernel, and many of them are infrequently used and not much developer "
36480 "attention has been paid to the code.  Linux userspace helps potential "
36481 "crackers by detecting the filesystem type and automatically choosing the "
36482 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36483 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36484 "exploit (worse in some ways), giving immediate and total access to the "
36485 "system right down to the hardware level."
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:1220
36490 msgid ""
36491 "That explains why you should never mount a filesystem from an untrusted "
36492 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36493 "inside a qemu virtual machine, usually running as a non-root user.  The "
36494 "attacker would need to write a filesystem which first exploited the kernel, "
36495 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36496 "the libguestfs protocol, and finally to be as serious as the host kernel "
36497 "exploit it would need to escalate its privileges to root.  This multi-step "
36498 "escalation, performed by a static piece of data, is thought to be extremely "
36499 "hard to do, although we never say 'never' about security issues."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:1231
36504 msgid ""
36505 "In any case callers can reduce the attack surface by forcing the filesystem "
36506 "type when mounting (use L</guestfs_mount_vfs>)."
36507 msgstr ""
36508
36509 #. type: =head2
36510 #: ../src/guestfs.pod:1234
36511 msgid "PROTOCOL SECURITY"
36512 msgstr ""
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:1236
36516 msgid ""
36517 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36518 "defined upper message size.  However a program that uses libguestfs must "
36519 "also take care - for example you can write a program that downloads a binary "
36520 "from a disk image and executes it locally, and no amount of protocol "
36521 "security will save you from the consequences."
36522 msgstr ""
36523
36524 #. type: =head2
36525 #: ../src/guestfs.pod:1242
36526 msgid "INSPECTION SECURITY"
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:1244
36531 msgid ""
36532 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36533 "directly from the guest, and these could contain any 8 bit data.  Callers "
36534 "should be careful to escape these before printing them to a structured file "
36535 "(for example, use HTML escaping if creating a web page)."
36536 msgstr ""
36537
36538 #. type: textblock
36539 #: ../src/guestfs.pod:1250
36540 msgid ""
36541 "Guest configuration may be altered in unusual ways by the administrator of "
36542 "the virtual machine, and may not reflect reality (particularly for untrusted "
36543 "or actively malicious guests).  For example we parse the hostname from "
36544 "configuration files like C</etc/sysconfig/network> that we find in the "
36545 "guest, but the guest administrator can easily manipulate these files to "
36546 "provide the wrong hostname."
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:1258
36551 msgid ""
36552 "The inspection API parses guest configuration using two external libraries: "
36553 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36554 "designed to be robust in the face of malicious data, although denial of "
36555 "service attacks are still possible, for example with oversized configuration "
36556 "files."
36557 msgstr ""
36558
36559 #. type: =head2
36560 #: ../src/guestfs.pod:1264
36561 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36562 msgstr ""
36563
36564 #. type: textblock
36565 #: ../src/guestfs.pod:1266
36566 msgid ""
36567 "Be very cautious about running commands from the guest.  By running a "
36568 "command in the guest, you are giving CPU time to a binary that you do not "
36569 "control, under the same user account as the library, albeit wrapped in qemu "
36570 "virtualization.  More information and alternatives can be found in the "
36571 "section L</RUNNING COMMANDS>."
36572 msgstr ""
36573
36574 #. type: =head2
36575 #: ../src/guestfs.pod:1272
36576 msgid "CVE-2010-3851"
36577 msgstr ""
36578
36579 #. type: textblock
36580 #: ../src/guestfs.pod:1274
36581 msgid "https://bugzilla.redhat.com/642934"
36582 msgstr ""
36583
36584 #. type: textblock
36585 #: ../src/guestfs.pod:1276
36586 msgid ""
36587 "This security bug concerns the automatic disk format detection that qemu "
36588 "does on disk images."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:1279
36593 msgid ""
36594 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36595 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36596 "for one of the known headers, and if none is found then assuming the disk "
36597 "image must be raw."
36598 msgstr ""
36599
36600 #. type: textblock
36601 #: ../src/guestfs.pod:1284
36602 msgid ""
36603 "This allows a guest which has been given a raw disk image to write some "
36604 "other header.  At next boot (or when the disk image is accessed by "
36605 "libguestfs) qemu would do autodetection and think the disk image format was, "
36606 "say, qcow2 based on the header written by the guest."
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../src/guestfs.pod:1289
36611 msgid ""
36612 "This in itself would not be a problem, but qcow2 offers many features, one "
36613 "of which is to allow a disk image to refer to another image (called the "
36614 "\"backing disk\").  It does this by placing the path to the backing disk "
36615 "into the qcow2 header.  This path is not validated and could point to any "
36616 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36617 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36618 "control of the attacker."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:1297
36623 msgid ""
36624 "In libguestfs this is rather hard to exploit except under two circumstances:"
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:1304
36629 msgid "You have enabled the network or have opened the disk in write mode."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:1308
36634 msgid ""
36635 "You are also running untrusted code from the guest (see L</RUNNING "
36636 "COMMANDS>)."
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:1313
36641 msgid ""
36642 "The way to avoid this is to specify the expected disk format when adding "
36643 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36644 "should always do this if the disk is raw format, and it's a good idea for "
36645 "other cases too."
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:1318
36650 msgid ""
36651 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36652 "format is fetched from libvirt and passed through."
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../src/guestfs.pod:1321
36657 msgid ""
36658 "For libguestfs tools, use the I<--format> command line parameter as "
36659 "appropriate."
36660 msgstr ""
36661
36662 #. type: =head1
36663 #: ../src/guestfs.pod:1324
36664 msgid "CONNECTION MANAGEMENT"
36665 msgstr ""
36666
36667 #. type: =head2
36668 #: ../src/guestfs.pod:1326
36669 msgid "guestfs_h *"
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:1328
36674 msgid ""
36675 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36676 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36677 "handle and release all resources used."
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../src/guestfs.pod:1332
36682 msgid ""
36683 "For information on using multiple handles and threads, see the section L</"
36684 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36685 msgstr ""
36686
36687 #. type: =head2
36688 #: ../src/guestfs.pod:1335
36689 msgid "guestfs_create"
36690 msgstr ""
36691
36692 #. type: verbatim
36693 #: ../src/guestfs.pod:1337
36694 #, no-wrap
36695 msgid ""
36696 " guestfs_h *guestfs_create (void);\n"
36697 "\n"
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:1339
36702 msgid "Create a connection handle."
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:1341
36707 msgid ""
36708 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36709 "NULL."
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:1344
36714 msgid ""
36715 "You have to \"configure\" the handle after creating it.  This includes "
36716 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36717 "handle at least once."
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:1348
36722 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../src/guestfs.pod:1350
36727 msgid ""
36728 "You may also want to configure error handling for the handle.  See the L</"
36729 "ERROR HANDLING> section below."
36730 msgstr ""
36731
36732 #. type: =head2
36733 #: ../src/guestfs.pod:1353
36734 msgid "guestfs_close"
36735 msgstr ""
36736
36737 #. type: verbatim
36738 #: ../src/guestfs.pod:1355
36739 #, no-wrap
36740 msgid ""
36741 " void guestfs_close (guestfs_h *g);\n"
36742 "\n"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:1357
36747 msgid "This closes the connection handle and frees up all resources used."
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../src/guestfs.pod:1359
36752 msgid ""
36753 "If autosync was set on the handle and the handle was launched, then this "
36754 "implicitly calls various functions to unmount filesystems and sync the "
36755 "disk.  See L</guestfs_set_autosync> for more details."
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../src/guestfs.pod:1363
36760 msgid "If a close callback was set on the handle, then it is called."
36761 msgstr ""
36762
36763 #. type: =head1
36764 #: ../src/guestfs.pod:1365
36765 msgid "ERROR HANDLING"
36766 msgstr ""
36767
36768 #. type: textblock
36769 #: ../src/guestfs.pod:1367
36770 msgid ""
36771 "API functions can return errors.  For example, almost all functions that "
36772 "return C<int> will return C<-1> to indicate an error."
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:1370
36777 msgid ""
36778 "Additional information is available for errors: an error message string and "
36779 "optionally an error number (errno) if the thing that failed was a system "
36780 "call."
36781 msgstr ""
36782
36783 #. type: textblock
36784 #: ../src/guestfs.pod:1374
36785 msgid ""
36786 "You can get at the additional information about the last error on the handle "
36787 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36788 "up an error handler with L</guestfs_set_error_handler>."
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../src/guestfs.pod:1379
36793 msgid ""
36794 "When the handle is created, a default error handler is installed which "
36795 "prints the error message string to C<stderr>.  For small short-running "
36796 "command line programs it is sufficient to do:"
36797 msgstr ""
36798
36799 #. type: verbatim
36800 #: ../src/guestfs.pod:1383
36801 #, no-wrap
36802 msgid ""
36803 " if (guestfs_launch (g) == -1)\n"
36804 "   exit (EXIT_FAILURE);\n"
36805 "\n"
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1386
36810 msgid ""
36811 "since the default error handler will ensure that an error message has been "
36812 "printed to C<stderr> before the program exits."
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:1389
36817 msgid ""
36818 "For other programs the caller will almost certainly want to install an "
36819 "alternate error handler or do error handling in-line like this:"
36820 msgstr ""
36821
36822 #. type: verbatim
36823 #: ../src/guestfs.pod:1392
36824 #, no-wrap
36825 msgid ""
36826 " /* This disables the default behaviour of printing errors\n"
36827 "    on stderr. */\n"
36828 " guestfs_set_error_handler (g, NULL, NULL);\n"
36829 " \n"
36830 msgstr ""
36831
36832 #. type: verbatim
36833 #: ../src/guestfs.pod:1396
36834 #, no-wrap
36835 msgid ""
36836 " if (guestfs_launch (g) == -1) {\n"
36837 "   /* Examine the error message and print it etc. */\n"
36838 "   char *msg = guestfs_last_error (g);\n"
36839 "   int errnum = guestfs_last_errno (g);\n"
36840 "   fprintf (stderr, \"%s\", msg);\n"
36841 "   if (errnum != 0)\n"
36842 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36843 "   fprintf (stderr, \"\\n\");\n"
36844 "   /* ... */\n"
36845 " }\n"
36846 "\n"
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:1407
36851 msgid ""
36852 "Out of memory errors are handled differently.  The default action is to call "
36853 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36854 "guestfs_set_out_of_memory_handler>."
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:1411
36859 msgid ""
36860 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36861 "because there is no handle if this happens there is no way to get additional "
36862 "error information.  However L</guestfs_create> is supposed to be a "
36863 "lightweight operation which can only fail because of insufficient memory (it "
36864 "returns NULL in this case)."
36865 msgstr ""
36866
36867 #. type: =head2
36868 #: ../src/guestfs.pod:1417
36869 msgid "guestfs_last_error"
36870 msgstr ""
36871
36872 #. type: verbatim
36873 #: ../src/guestfs.pod:1419
36874 #, no-wrap
36875 msgid ""
36876 " const char *guestfs_last_error (guestfs_h *g);\n"
36877 "\n"
36878 msgstr ""
36879
36880 #. type: textblock
36881 #: ../src/guestfs.pod:1421
36882 msgid ""
36883 "This returns the last error message that happened on C<g>.  If there has not "
36884 "been an error since the handle was created, then this returns C<NULL>."
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:1425
36889 msgid ""
36890 "The lifetime of the returned string is until the next error occurs, or L</"
36891 "guestfs_close> is called."
36892 msgstr ""
36893
36894 #. type: =head2
36895 #: ../src/guestfs.pod:1428
36896 msgid "guestfs_last_errno"
36897 msgstr ""
36898
36899 #. type: verbatim
36900 #: ../src/guestfs.pod:1430
36901 #, no-wrap
36902 msgid ""
36903 " int guestfs_last_errno (guestfs_h *g);\n"
36904 "\n"
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:1432
36909 msgid "This returns the last error number (errno) that happened on C<g>."
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../src/guestfs.pod:1434
36914 msgid "If successful, an errno integer not equal to zero is returned."
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../src/guestfs.pod:1436
36919 msgid ""
36920 "If no error, this returns 0.  This call can return 0 in three situations:"
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:1443
36925 msgid "There has not been any error on the handle."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:1447
36930 msgid ""
36931 "There has been an error but the errno was meaningless.  This corresponds to "
36932 "the case where the error did not come from a failed system call, but for "
36933 "some other reason."
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:1453
36938 msgid ""
36939 "There was an error from a failed system call, but for some reason the errno "
36940 "was not captured and returned.  This usually indicates a bug in libguestfs."
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../src/guestfs.pod:1459
36945 msgid ""
36946 "Libguestfs tries to convert the errno from inside the applicance into a "
36947 "corresponding errno for the caller (not entirely trivial: the appliance "
36948 "might be running a completely different operating system from the library "
36949 "and error numbers are not standardized across Un*xen).  If this could not be "
36950 "done, then the error is translated to C<EINVAL>.  In practice this should "
36951 "only happen in very rare circumstances."
36952 msgstr ""
36953
36954 #. type: =head2
36955 #: ../src/guestfs.pod:1467
36956 msgid "guestfs_set_error_handler"
36957 msgstr ""
36958
36959 #. type: verbatim
36960 #: ../src/guestfs.pod:1469
36961 #, no-wrap
36962 msgid ""
36963 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36964 "                                           void *opaque,\n"
36965 "                                           const char *msg);\n"
36966 " void guestfs_set_error_handler (guestfs_h *g,\n"
36967 "                                 guestfs_error_handler_cb cb,\n"
36968 "                                 void *opaque);\n"
36969 "\n"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../src/guestfs.pod:1476
36974 msgid ""
36975 "The callback C<cb> will be called if there is an error.  The parameters "
36976 "passed to the callback are an opaque data pointer and the error message "
36977 "string."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:1480
36982 msgid ""
36983 "C<errno> is not passed to the callback.  To get that the callback must call "
36984 "L</guestfs_last_errno>."
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../src/guestfs.pod:1483
36989 msgid ""
36990 "Note that the message string C<msg> is freed as soon as the callback "
36991 "function returns, so if you want to stash it somewhere you must make your "
36992 "own copy."
36993 msgstr ""
36994
36995 #. type: textblock
36996 #: ../src/guestfs.pod:1487
36997 msgid "The default handler prints messages on C<stderr>."
36998 msgstr ""
36999
37000 #. type: textblock
37001 #: ../src/guestfs.pod:1489
37002 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37003 msgstr ""
37004
37005 #. type: =head2
37006 #: ../src/guestfs.pod:1491
37007 msgid "guestfs_get_error_handler"
37008 msgstr ""
37009
37010 #. type: verbatim
37011 #: ../src/guestfs.pod:1493
37012 #, no-wrap
37013 msgid ""
37014 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37015 "                                                     void **opaque_rtn);\n"
37016 "\n"
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:1496
37021 msgid "Returns the current error handler callback."
37022 msgstr ""
37023
37024 #. type: =head2
37025 #: ../src/guestfs.pod:1498
37026 msgid "guestfs_set_out_of_memory_handler"
37027 msgstr ""
37028
37029 #. type: verbatim
37030 #: ../src/guestfs.pod:1500
37031 #, no-wrap
37032 msgid ""
37033 " typedef void (*guestfs_abort_cb) (void);\n"
37034 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37035 "                                         guestfs_abort_cb);\n"
37036 "\n"
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../src/guestfs.pod:1504
37041 msgid ""
37042 "The callback C<cb> will be called if there is an out of memory situation.  "
37043 "I<Note this callback must not return>."
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:1507
37048 msgid "The default is to call L<abort(3)>."
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../src/guestfs.pod:1509
37053 msgid ""
37054 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37055 msgstr ""
37056
37057 #. type: =head2
37058 #: ../src/guestfs.pod:1512
37059 msgid "guestfs_get_out_of_memory_handler"
37060 msgstr ""
37061
37062 #. type: verbatim
37063 #: ../src/guestfs.pod:1514
37064 #, no-wrap
37065 msgid ""
37066 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37067 "\n"
37068 msgstr ""
37069
37070 #. type: textblock
37071 #: ../src/guestfs.pod:1516
37072 msgid "This returns the current out of memory handler."
37073 msgstr ""
37074
37075 #. type: =head1
37076 #: ../src/guestfs.pod:1518
37077 msgid "API CALLS"
37078 msgstr ""
37079
37080 #. type: =head1
37081 #: ../src/guestfs.pod:1522
37082 msgid "STRUCTURES"
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../src/guestfs.pod:1524
37087 msgid "@STRUCTS@"
37088 msgstr ""
37089
37090 #. type: =head1
37091 #: ../src/guestfs.pod:1526
37092 msgid "AVAILABILITY"
37093 msgstr ""
37094
37095 #. type: =head2
37096 #: ../src/guestfs.pod:1528
37097 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37098 msgstr ""
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:1530
37102 msgid ""
37103 "Using L</guestfs_available> you can test availability of the following "
37104 "groups of functions.  This test queries the appliance to see if the "
37105 "appliance you are currently using supports the functionality."
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../src/guestfs.pod:1535
37110 msgid "@AVAILABILITY@"
37111 msgstr ""
37112
37113 #. type: =head2
37114 #: ../src/guestfs.pod:1537
37115 msgid "GUESTFISH supported COMMAND"
37116 msgstr ""
37117
37118 #. type: textblock
37119 #: ../src/guestfs.pod:1539
37120 msgid ""
37121 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37122 "prints out the available groups and whether they are supported by this build "
37123 "of libguestfs.  Note however that you have to do C<run> first."
37124 msgstr ""
37125
37126 #. type: =head2
37127 #: ../src/guestfs.pod:1544
37128 msgid "SINGLE CALLS AT COMPILE TIME"
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:1546
37133 msgid ""
37134 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37135 "function, such as:"
37136 msgstr ""
37137
37138 #. type: verbatim
37139 #: ../src/guestfs.pod:1549
37140 #, no-wrap
37141 msgid ""
37142 " #define LIBGUESTFS_HAVE_DD 1\n"
37143 "\n"
37144 msgstr ""
37145
37146 #. type: textblock
37147 #: ../src/guestfs.pod:1551
37148 msgid "if L</guestfs_dd> is available."
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:1553
37153 msgid ""
37154 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37155 "function is available at compile time, we recommended using build tools such "
37156 "as autoconf or cmake.  For example in autotools you could use:"
37157 msgstr ""
37158
37159 #. type: verbatim
37160 #: ../src/guestfs.pod:1558
37161 #, no-wrap
37162 msgid ""
37163 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37164 " AC_CHECK_FUNCS([guestfs_dd])\n"
37165 "\n"
37166 msgstr ""
37167
37168 #. type: textblock
37169 #: ../src/guestfs.pod:1561
37170 msgid ""
37171 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37172 "in your program."
37173 msgstr ""
37174
37175 #. type: =head2
37176 #: ../src/guestfs.pod:1564
37177 msgid "SINGLE CALLS AT RUN TIME"
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../src/guestfs.pod:1566
37182 msgid ""
37183 "Testing at compile time doesn't guarantee that a function really exists in "
37184 "the library.  The reason is that you might be dynamically linked against a "
37185 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37186 "This situation unfortunately results in a segmentation fault, which is a "
37187 "shortcoming of the C dynamic linking system itself."
37188 msgstr ""
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:1573
37192 msgid ""
37193 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37194 "in this example program (note that you still need the compile time check as "
37195 "well):"
37196 msgstr ""
37197
37198 #. type: verbatim
37199 #: ../src/guestfs.pod:1577
37200 #, no-wrap
37201 msgid ""
37202 " #include <stdio.h>\n"
37203 " #include <stdlib.h>\n"
37204 " #include <unistd.h>\n"
37205 " #include <dlfcn.h>\n"
37206 " #include <guestfs.h>\n"
37207 " \n"
37208 msgstr ""
37209
37210 #. type: verbatim
37211 #: ../src/guestfs.pod:1583
37212 #, no-wrap
37213 msgid ""
37214 " main ()\n"
37215 " {\n"
37216 " #ifdef LIBGUESTFS_HAVE_DD\n"
37217 "   void *dl;\n"
37218 "   int has_function;\n"
37219 " \n"
37220 msgstr ""
37221
37222 #. type: verbatim
37223 #: ../src/guestfs.pod:1589
37224 #, no-wrap
37225 msgid ""
37226 "   /* Test if the function guestfs_dd is really available. */\n"
37227 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37228 "   if (!dl) {\n"
37229 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37230 "     exit (EXIT_FAILURE);\n"
37231 "   }\n"
37232 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37233 "   dlclose (dl);\n"
37234 " \n"
37235 msgstr ""
37236
37237 #. type: verbatim
37238 #: ../src/guestfs.pod:1598
37239 #, no-wrap
37240 msgid ""
37241 "   if (!has_function)\n"
37242 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37243 "   else {\n"
37244 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37245 "     /* Now it's safe to call\n"
37246 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37247 "     */\n"
37248 "   }\n"
37249 " #else\n"
37250 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37251 " #endif\n"
37252 "  }\n"
37253 "\n"
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../src/guestfs.pod:1611
37258 msgid ""
37259 "You may think the above is an awful lot of hassle, and it is.  There are "
37260 "other ways outside of the C linking system to ensure that this kind of "
37261 "incompatibility never arises, such as using package versioning:"
37262 msgstr ""
37263
37264 #. type: verbatim
37265 #: ../src/guestfs.pod:1616
37266 #, no-wrap
37267 msgid ""
37268 " Requires: libguestfs >= 1.0.80\n"
37269 "\n"
37270 msgstr ""
37271
37272 #. type: =head1
37273 #: ../src/guestfs.pod:1618
37274 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../src/guestfs.pod:1620
37279 msgid ""
37280 "A recent feature of the API is the introduction of calls which take optional "
37281 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37282 "takes variable arguments (ie. C<...>), as in this example:"
37283 msgstr ""
37284
37285 #. type: verbatim
37286 #: ../src/guestfs.pod:1625
37287 #, no-wrap
37288 msgid ""
37289 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37290 "\n"
37291 msgstr ""
37292
37293 #. type: textblock
37294 #: ../src/guestfs.pod:1627
37295 msgid ""
37296 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37297 "call with no optional arguments specified:"
37298 msgstr ""
37299
37300 #. type: verbatim
37301 #: ../src/guestfs.pod:1630
37302 #, no-wrap
37303 msgid ""
37304 " guestfs_add_drive_opts (g, filename, -1);\n"
37305 "\n"
37306 msgstr ""
37307
37308 #. type: textblock
37309 #: ../src/guestfs.pod:1632
37310 msgid "With a single optional argument:"
37311 msgstr ""
37312
37313 #. type: verbatim
37314 #: ../src/guestfs.pod:1634
37315 #, no-wrap
37316 msgid ""
37317 " guestfs_add_drive_opts (g, filename,\n"
37318 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37319 "                         -1);\n"
37320 "\n"
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../src/guestfs.pod:1638
37325 msgid "With two:"
37326 msgstr ""
37327
37328 #. type: verbatim
37329 #: ../src/guestfs.pod:1640
37330 #, no-wrap
37331 msgid ""
37332 " guestfs_add_drive_opts (g, filename,\n"
37333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37334 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37335 "                         -1);\n"
37336 "\n"
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:1645
37341 msgid ""
37342 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37343 "happen!"
37344 msgstr ""
37345
37346 #. type: =head2
37347 #: ../src/guestfs.pod:1648
37348 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:1650
37353 msgid ""
37354 "The second variant has the same name with the suffix C<_va>, which works the "
37355 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37356 "example function, this is declared:"
37357 msgstr ""
37358
37359 #. type: verbatim
37360 #: ../src/guestfs.pod:1654
37361 #, no-wrap
37362 msgid ""
37363 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37364 "                                va_list args);\n"
37365 "\n"
37366 msgstr ""
37367
37368 #. type: =head2
37369 #: ../src/guestfs.pod:1657
37370 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../src/guestfs.pod:1659
37375 msgid ""
37376 "The third variant is useful where you need to construct these calls.  You "
37377 "pass in a structure where you fill in the optional fields.  The structure "
37378 "has a bitmask as the first element which you must set to indicate which "
37379 "fields you have filled in.  For our example function the structure and call "
37380 "are declared:"
37381 msgstr ""
37382
37383 #. type: verbatim
37384 #: ../src/guestfs.pod:1665
37385 #, no-wrap
37386 msgid ""
37387 " struct guestfs_add_drive_opts_argv {\n"
37388 "   uint64_t bitmask;\n"
37389 "   int readonly;\n"
37390 "   const char *format;\n"
37391 "   /* ... */\n"
37392 " };\n"
37393 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37394 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37395 "\n"
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:1674
37400 msgid "You could call it like this:"
37401 msgstr ""
37402
37403 #. type: verbatim
37404 #: ../src/guestfs.pod:1676
37405 #, no-wrap
37406 msgid ""
37407 " struct guestfs_add_drive_opts_argv optargs = {\n"
37408 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37409 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37410 "   .readonly = 1,\n"
37411 "   .format = \"qcow2\"\n"
37412 " };\n"
37413 " \n"
37414 msgstr ""
37415
37416 #. type: verbatim
37417 #: ../src/guestfs.pod:1683
37418 #, no-wrap
37419 msgid ""
37420 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37421 "\n"
37422 msgstr ""
37423
37424 #. type: textblock
37425 #: ../src/guestfs.pod:1691
37426 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37427 msgstr ""
37428
37429 #. type: textblock
37430 #: ../src/guestfs.pod:1696
37431 msgid "You do not need to fill in all fields of the structure."
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:1700
37436 msgid ""
37437 "There must be a one-to-one correspondence between fields of the structure "
37438 "that are filled in, and bits set in the bitmask."
37439 msgstr ""
37440
37441 #. type: =head2
37442 #: ../src/guestfs.pod:1705
37443 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37444 msgstr ""
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:1707
37448 msgid ""
37449 "In other languages, optional arguments are expressed in the way that is "
37450 "natural for that language.  We refer you to the language-specific "
37451 "documentation for more details on that."
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../src/guestfs.pod:1711
37456 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37457 msgstr ""
37458
37459 #. type: =head2
37460 #: ../src/guestfs.pod:1713
37461 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37462 msgstr ""
37463
37464 #. type: textblock
37465 #: ../src/guestfs.pod:1715
37466 msgid ""
37467 "B<Note:> This section documents the generic event mechanism introduced in "
37468 "libguestfs 1.10, which you should use in new code if possible.  The old "
37469 "functions C<guestfs_set_log_message_callback>, "
37470 "C<guestfs_set_subprocess_quit_callback>, "
37471 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37472 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37473 "page.  Because of the ABI guarantee, the old functions continue to work."
37474 msgstr ""
37475
37476 #. type: textblock
37477 #: ../src/guestfs.pod:1724
37478 msgid ""
37479 "Handles generate events when certain things happen, such as log messages "
37480 "being generated, progress messages during long-running operations, or the "
37481 "handle being closed.  The API calls described below let you register a "
37482 "callback to be called when events happen.  You can register multiple "
37483 "callbacks (for the same, different or overlapping sets of events), and "
37484 "individually remove callbacks.  If callbacks are not removed, then they "
37485 "remain in force until the handle is closed."
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:1732
37490 msgid ""
37491 "In the current implementation, events are only generated synchronously: that "
37492 "means that events (and hence callbacks) can only happen while you are in the "
37493 "middle of making another libguestfs call.  The callback is called in the "
37494 "same thread."
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:1737
37499 msgid ""
37500 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37501 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37502 msgstr ""
37503
37504 #. type: =head3
37505 #: ../src/guestfs.pod:1741
37506 msgid "CLASSES OF EVENTS"
37507 msgstr ""
37508
37509 #. type: =item
37510 #: ../src/guestfs.pod:1745
37511 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37512 msgstr ""
37513
37514 #. type: textblock
37515 #: ../src/guestfs.pod:1748
37516 msgid ""
37517 "The callback function will be called while the handle is being closed "
37518 "(synchronously from L</guestfs_close>)."
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:1751
37523 msgid ""
37524 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37525 "handles that are open when the program exits.  This means that this callback "
37526 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37527 "problems in higher-level languages (eg. if your HLL interpreter has already "
37528 "been cleaned up by the time this is called, and if your callback then jumps "
37529 "into some HLL function)."
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:1758
37534 msgid ""
37535 "If no callback is registered: the handle is closed without any callback "
37536 "being invoked."
37537 msgstr ""
37538
37539 #. type: =item
37540 #: ../src/guestfs.pod:1761
37541 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37542 msgstr ""
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:1764
37546 msgid ""
37547 "The callback function will be called when the child process quits, either "
37548 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37549 "corresponds to a transition from any state to the CONFIG state)."
37550 msgstr ""
37551
37552 #. type: textblock
37553 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37554 msgid "If no callback is registered: the event is ignored."
37555 msgstr ""
37556
37557 #. type: =item
37558 #: ../src/guestfs.pod:1770
37559 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:1773
37564 msgid ""
37565 "The callback function will be called when the child process becomes ready "
37566 "first time after it has been launched.  (This corresponds to a transition "
37567 "from LAUNCHING to the READY state)."
37568 msgstr ""
37569
37570 #. type: =item
37571 #: ../src/guestfs.pod:1779
37572 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:1782
37577 msgid ""
37578 "Some long-running operations can generate progress messages.  If this "
37579 "callback is registered, then it will be called each time a progress message "
37580 "is generated (usually two seconds after the operation started, and three "
37581 "times per second thereafter until it completes, although the frequency may "
37582 "change in future versions)."
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:1788
37587 msgid ""
37588 "The callback receives in the payload four unsigned 64 bit numbers which are "
37589 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37590 msgstr ""
37591
37592 #. type: textblock
37593 #: ../src/guestfs.pod:1791
37594 msgid ""
37595 "The units of C<total> are not defined, although for some operations C<total> "
37596 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37597 "or megabytes), and C<position> may be the portion which has been transferred."
37598 msgstr ""
37599
37600 #. type: textblock
37601 #: ../src/guestfs.pod:1796
37602 msgid "The only defined and stable parts of the API are:"
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:1802
37607 msgid ""
37608 "The callback can display to the user some type of progress bar or indicator "
37609 "which shows the ratio of C<position>:C<total>."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:1807
37614 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:1811
37619 msgid ""
37620 "If any progress notification is sent during a call, then a final progress "
37621 "notification is always sent when C<position> = C<total> (I<unless> the call "
37622 "fails with an error)."
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:1815
37627 msgid ""
37628 "This is to simplify caller code, so callers can easily set the progress "
37629 "indicator to \"100%\" at the end of the operation, without requiring special "
37630 "code to detect this case."
37631 msgstr ""
37632
37633 #. type: textblock
37634 #: ../src/guestfs.pod:1821
37635 msgid ""
37636 "For some calls we are unable to estimate the progress of the call, but we "
37637 "can still generate progress messages to indicate activity.  This is known as "
37638 "\"pulse mode\", and is directly supported by certain progress bar "
37639 "implementations (eg. GtkProgressBar)."
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:1826
37644 msgid ""
37645 "For these calls, zero or more progress messages are generated with "
37646 "C<position = 0> and C<total = 1>, followed by a final message with "
37647 "C<position = total = 1>."
37648 msgstr ""
37649
37650 #. type: textblock
37651 #: ../src/guestfs.pod:1830
37652 msgid ""
37653 "As noted above, if the call fails with an error then the final message may "
37654 "not be generated."
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:1835
37659 msgid ""
37660 "The callback also receives the procedure number (C<proc_nr>) and serial "
37661 "number (C<serial>) of the call.  These are only useful for debugging "
37662 "protocol issues, and the callback can normally ignore them.  The callback "
37663 "may want to print these numbers in error messages or debugging messages."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:1841
37668 msgid "If no callback is registered: progress messages are discarded."
37669 msgstr ""
37670
37671 #. type: =item
37672 #: ../src/guestfs.pod:1843
37673 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:1846
37678 msgid ""
37679 "The callback function is called whenever a log message is generated by qemu, "
37680 "the appliance kernel, guestfsd (daemon), or utility programs."
37681 msgstr ""
37682
37683 #. type: textblock
37684 #: ../src/guestfs.pod:1849
37685 msgid ""
37686 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37687 "guestfs_launch>) then additional debug messages are generated."
37688 msgstr ""
37689
37690 #. type: textblock
37691 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37692 msgid ""
37693 "If no callback is registered: the messages are discarded unless the verbose "
37694 "flag is set in which case they are sent to stderr.  You can override the "
37695 "printing of verbose messages to stderr by setting up a callback."
37696 msgstr ""
37697
37698 #. type: =item
37699 #: ../src/guestfs.pod:1857
37700 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:1860
37705 msgid ""
37706 "The callback function is called whenever a log message is generated by the "
37707 "library part of libguestfs."
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../src/guestfs.pod:1863
37712 msgid ""
37713 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37714 "messages are generated."
37715 msgstr ""
37716
37717 #. type: =item
37718 #: ../src/guestfs.pod:1871
37719 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37720 msgstr ""
37721
37722 #. type: textblock
37723 #: ../src/guestfs.pod:1874
37724 msgid ""
37725 "The callback function is called whenever a trace message is generated.  This "
37726 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:1877
37731 msgid ""
37732 "If no callback is registered: the messages are sent to stderr.  You can "
37733 "override the printing of trace messages to stderr by setting up a callback."
37734 msgstr ""
37735
37736 #. type: =item
37737 #: ../src/guestfs.pod:1881
37738 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37739 msgstr ""
37740
37741 #. type: textblock
37742 #: ../src/guestfs.pod:1884
37743 msgid ""
37744 "The callback function is called whenever a libguestfs function is entered."
37745 msgstr ""
37746
37747 #. type: textblock
37748 #: ../src/guestfs.pod:1887
37749 msgid ""
37750 "The payload is a string which contains the name of the function that we are "
37751 "entering (not including C<guestfs_> prefix)."
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:1890
37756 msgid ""
37757 "Note that libguestfs functions can call themselves, so you may see many "
37758 "events from a single call.  A few libguestfs functions do not generate this "
37759 "event."
37760 msgstr ""
37761
37762 #. type: =head3
37763 #: ../src/guestfs.pod:1898
37764 msgid "guestfs_set_event_callback"
37765 msgstr ""
37766
37767 #. type: verbatim
37768 #: ../src/guestfs.pod:1900
37769 #, no-wrap
37770 msgid ""
37771 " int guestfs_set_event_callback (guestfs_h *g,\n"
37772 "                                 guestfs_event_callback cb,\n"
37773 "                                 uint64_t event_bitmask,\n"
37774 "                                 int flags,\n"
37775 "                                 void *opaque);\n"
37776 "\n"
37777 msgstr ""
37778
37779 #. type: textblock
37780 #: ../src/guestfs.pod:1906
37781 msgid ""
37782 "This function registers a callback (C<cb>) for all event classes in the "
37783 "C<event_bitmask>."
37784 msgstr ""
37785
37786 #. type: textblock
37787 #: ../src/guestfs.pod:1909
37788 msgid ""
37789 "For example, to register for all log message events, you could call this "
37790 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37791 "To register a single callback for all possible classes of events, use "
37792 "C<GUESTFS_EVENT_ALL>."
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:1915
37797 msgid "C<flags> should always be passed as 0."
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:1917
37802 msgid ""
37803 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37804 "it for any purpose."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:1920
37809 msgid ""
37810 "The return value is the event handle (an integer) which you can use to "
37811 "delete the callback (see below)."
37812 msgstr ""
37813
37814 #. type: textblock
37815 #: ../src/guestfs.pod:1923
37816 msgid ""
37817 "If there is an error, this function returns C<-1>, and sets the error in the "
37818 "handle in the usual way (see L</guestfs_last_error> etc.)"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:1926
37823 msgid ""
37824 "Callbacks remain in effect until they are deleted, or until the handle is "
37825 "closed."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:1929
37830 msgid ""
37831 "In the case where multiple callbacks are registered for a particular event "
37832 "class, all of the callbacks are called.  The order in which multiple "
37833 "callbacks are called is not defined."
37834 msgstr ""
37835
37836 #. type: =head3
37837 #: ../src/guestfs.pod:1933
37838 msgid "guestfs_delete_event_callback"
37839 msgstr ""
37840
37841 #. type: verbatim
37842 #: ../src/guestfs.pod:1935
37843 #, no-wrap
37844 msgid ""
37845 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37846 "\n"
37847 msgstr ""
37848
37849 #. type: textblock
37850 #: ../src/guestfs.pod:1937
37851 msgid ""
37852 "Delete a callback that was previously registered.  C<event_handle> should be "
37853 "the integer that was returned by a previous call to "
37854 "C<guestfs_set_event_callback> on the same handle."
37855 msgstr ""
37856
37857 #. type: =head3
37858 #: ../src/guestfs.pod:1941
37859 msgid "guestfs_event_callback"
37860 msgstr ""
37861
37862 #. type: verbatim
37863 #: ../src/guestfs.pod:1943
37864 #, no-wrap
37865 msgid ""
37866 " typedef void (*guestfs_event_callback) (\n"
37867 "                  guestfs_h *g,\n"
37868 "                  void *opaque,\n"
37869 "                  uint64_t event,\n"
37870 "                  int event_handle,\n"
37871 "                  int flags,\n"
37872 "                  const char *buf, size_t buf_len,\n"
37873 "                  const uint64_t *array, size_t array_len);\n"
37874 "\n"
37875 msgstr ""
37876
37877 #. type: textblock
37878 #: ../src/guestfs.pod:1952
37879 msgid ""
37880 "This is the type of the event callback function that you have to provide."
37881 msgstr ""
37882
37883 #. type: textblock
37884 #: ../src/guestfs.pod:1955
37885 msgid ""
37886 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37887 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37888 "handle, and C<flags> which in the current API you should ignore."
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../src/guestfs.pod:1959
37893 msgid ""
37894 "The remaining parameters contain the event payload (if any).  Each event may "
37895 "contain a payload, which usually relates to the event class, but for future "
37896 "proofing your code should be written to handle any payload for any event "
37897 "class."
37898 msgstr ""
37899
37900 #. type: textblock
37901 #: ../src/guestfs.pod:1964
37902 msgid ""
37903 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37904 "there is no message buffer).  Note that this message buffer can contain "
37905 "arbitrary 8 bit data, including NUL bytes."
37906 msgstr ""
37907
37908 #. type: textblock
37909 #: ../src/guestfs.pod:1968
37910 msgid ""
37911 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37912 "moment this is only used for progress messages."
37913 msgstr ""
37914
37915 #. type: =head3
37916 #: ../src/guestfs.pod:1971
37917 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:1973
37922 msgid ""
37923 "One motivation for the generic event API was to allow GUI programs to "
37924 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37925 "unconditionally to C<stderr>."
37926 msgstr ""
37927
37928 #. type: textblock
37929 #: ../src/guestfs.pod:1977
37930 msgid ""
37931 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37932 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37933 "messages are not events; you must capture error messages separately)."
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:1982
37938 msgid ""
37939 "Programs have to set up a callback to capture the classes of events of "
37940 "interest:"
37941 msgstr ""
37942
37943 #. type: verbatim
37944 #: ../src/guestfs.pod:1985
37945 #, no-wrap
37946 msgid ""
37947 " int eh =\n"
37948 "   guestfs_set_event_callback\n"
37949 "     (g, message_callback,\n"
37950 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37951 "      GUESTFS_EVENT_TRACE,\n"
37952 "      0, NULL) == -1)\n"
37953 " if (eh == -1) {\n"
37954 "   // handle error in the usual way\n"
37955 " }\n"
37956 "\n"
37957 msgstr ""
37958
37959 #. type: textblock
37960 #: ../src/guestfs.pod:1995
37961 msgid ""
37962 "The callback can then direct messages to the appropriate place.  In this "
37963 "example, messages are directed to syslog:"
37964 msgstr ""
37965
37966 #. type: verbatim
37967 #: ../src/guestfs.pod:1998
37968 #, no-wrap
37969 msgid ""
37970 " static void\n"
37971 " message_callback (\n"
37972 "         guestfs_h *g,\n"
37973 "         void *opaque,\n"
37974 "         uint64_t event,\n"
37975 "         int event_handle,\n"
37976 "         int flags,\n"
37977 "         const char *buf, size_t buf_len,\n"
37978 "         const uint64_t *array, size_t array_len)\n"
37979 " {\n"
37980 "   const int priority = LOG_USER|LOG_INFO;\n"
37981 "   if (buf_len > 0)\n"
37982 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37983 " }\n"
37984 "\n"
37985 msgstr ""
37986
37987 #. type: =head1
37988 #: ../src/guestfs.pod:2013
37989 msgid "CANCELLING LONG TRANSFERS"
37990 msgstr ""
37991
37992 #. type: textblock
37993 #: ../src/guestfs.pod:2015
37994 msgid ""
37995 "Some operations can be cancelled by the caller while they are in progress.  "
37996 "Currently only operations that involve uploading or downloading data can be "
37997 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37998 "parameters in the generator)."
37999 msgstr ""
38000
38001 #. type: =head2
38002 #: ../src/guestfs.pod:2020
38003 msgid "guestfs_user_cancel"
38004 msgstr ""
38005
38006 #. type: verbatim
38007 #: ../src/guestfs.pod:2022
38008 #, no-wrap
38009 msgid ""
38010 " void guestfs_user_cancel (guestfs_h *g);\n"
38011 "\n"
38012 msgstr ""
38013
38014 #. type: textblock
38015 #: ../src/guestfs.pod:2024
38016 msgid ""
38017 "C<guestfs_user_cancel> cancels the current upload or download operation."
38018 msgstr ""
38019
38020 #. type: textblock
38021 #: ../src/guestfs.pod:2027
38022 msgid ""
38023 "Unlike most other libguestfs calls, this function is signal safe and thread "
38024 "safe.  You can call it from a signal handler or from another thread, without "
38025 "needing to do any locking."
38026 msgstr ""
38027
38028 #. type: textblock
38029 #: ../src/guestfs.pod:2031
38030 msgid ""
38031 "The transfer that was in progress (if there is one) will stop shortly "
38032 "afterwards, and will return an error.  The errno (see L</"
38033 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38034 "out if the operation was cancelled or failed because of another error."
38035 msgstr ""
38036
38037 #. type: textblock
38038 #: ../src/guestfs.pod:2037
38039 msgid ""
38040 "No cleanup is performed: for example, if a file was being uploaded then "
38041 "after cancellation there may be a partially uploaded file.  It is the "
38042 "caller's responsibility to clean up if necessary."
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:2041
38047 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38048 msgstr ""
38049
38050 #. type: textblock
38051 #: ../src/guestfs.pod:2043
38052 msgid ""
38053 "In an interactive text-based program, you might call it from a C<SIGINT> "
38054 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38055 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38056 "receive the C<^C> signal)."
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:2048
38061 msgid ""
38062 "In a graphical program, when the main thread is displaying a progress bar "
38063 "with a cancel button, wire up the cancel button to call this function."
38064 msgstr ""
38065
38066 #. type: =head1
38067 #: ../src/guestfs.pod:2052
38068 msgid "PRIVATE DATA AREA"
38069 msgstr ""
38070
38071 #. type: textblock
38072 #: ../src/guestfs.pod:2054
38073 msgid ""
38074 "You can attach named pieces of private data to the libguestfs handle, fetch "
38075 "them by name, and walk over them, for the lifetime of the handle.  This is "
38076 "called the private data area and is only available from the C API."
38077 msgstr ""
38078
38079 #. type: textblock
38080 #: ../src/guestfs.pod:2059
38081 msgid "To attach a named piece of data, use the following call:"
38082 msgstr ""
38083
38084 #. type: verbatim
38085 #: ../src/guestfs.pod:2061
38086 #, no-wrap
38087 msgid ""
38088 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38089 "\n"
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../src/guestfs.pod:2063
38094 msgid ""
38095 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38096 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38097 "overwritten."
38098 msgstr ""
38099
38100 #. type: textblock
38101 #: ../src/guestfs.pod:2067
38102 msgid ""
38103 "You can use any C<key> you want, but your key should I<not> start with an "
38104 "underscore character.  Keys beginning with an underscore character are "
38105 "reserved for internal libguestfs purposes (eg. for implementing language "
38106 "bindings).  It is recommended that you prefix the key with some unique "
38107 "string to avoid collisions with other users."
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:2073
38112 msgid "To retrieve the pointer, use:"
38113 msgstr ""
38114
38115 #. type: verbatim
38116 #: ../src/guestfs.pod:2075
38117 #, no-wrap
38118 msgid ""
38119 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38120 "\n"
38121 msgstr ""
38122
38123 #. type: textblock
38124 #: ../src/guestfs.pod:2077
38125 msgid ""
38126 "This function returns C<NULL> if either no data is found associated with "
38127 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38128 "C<NULL>."
38129 msgstr ""
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:2081
38133 msgid ""
38134 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38135 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38136 "all.  In particular, libguestfs does I<not> try to free the data when the "
38137 "handle is closed.  If the data must be freed, then the caller must either "
38138 "free it before calling L</guestfs_close> or must set up a close callback to "
38139 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38140 msgstr ""
38141
38142 #. type: textblock
38143 #: ../src/guestfs.pod:2088
38144 msgid "To walk over all entries, use these two functions:"
38145 msgstr ""
38146
38147 #. type: verbatim
38148 #: ../src/guestfs.pod:2090
38149 #, no-wrap
38150 msgid ""
38151 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38152 "\n"
38153 msgstr ""
38154
38155 #. type: verbatim
38156 #: ../src/guestfs.pod:2092
38157 #, no-wrap
38158 msgid ""
38159 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38160 "\n"
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:2094
38165 msgid ""
38166 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38167 "not have any particular meaning -- keys are not returned in any defined "
38168 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38169 "corresponding data pointer is returned from the function.  C<NULL> is "
38170 "returned if there are no keys stored in the handle."
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:2100
38175 msgid ""
38176 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38177 "value of this function is also C<NULL> is there are no further entries to "
38178 "return."
38179 msgstr ""
38180
38181 #. type: textblock
38182 #: ../src/guestfs.pod:2104
38183 msgid "Notes about walking over entries:"
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../src/guestfs.pod:2110
38188 msgid ""
38189 "You must not call C<guestfs_set_private> while walking over the entries."
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../src/guestfs.pod:2115
38194 msgid ""
38195 "The handle maintains an internal iterator which is reset when you call "
38196 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38197 "call C<guestfs_set_private>."
38198 msgstr ""
38199
38200 #. type: textblock
38201 #: ../src/guestfs.pod:2121
38202 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38203 msgstr ""
38204
38205 #. type: verbatim
38206 #: ../src/guestfs.pod:2123
38207 #, no-wrap
38208 msgid ""
38209 " guestfs_set_private (g, key, NULL);\n"
38210 "\n"
38211 msgstr ""
38212
38213 #. type: textblock
38214 #: ../src/guestfs.pod:2125
38215 msgid "then that C<key> is not returned when walking."
38216 msgstr ""
38217
38218 #. type: textblock
38219 #: ../src/guestfs.pod:2129
38220 msgid ""
38221 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38222 "C<guestfs_next_private> or C<guestfs_set_private>."
38223 msgstr ""
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:2135
38227 msgid ""
38228 "The following example code shows how to print all keys and data pointers "
38229 "that are associated with the handle C<g>:"
38230 msgstr ""
38231
38232 #. type: verbatim
38233 #: ../src/guestfs.pod:2138
38234 #, no-wrap
38235 msgid ""
38236 " const char *key;\n"
38237 " void *data = guestfs_first_private (g, &key);\n"
38238 " while (data != NULL)\n"
38239 "   {\n"
38240 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38241 "     data = guestfs_next_private (g, &key);\n"
38242 "   }\n"
38243 "\n"
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../src/guestfs.pod:2146
38248 msgid ""
38249 "More commonly you are only interested in keys that begin with an application-"
38250 "specific prefix C<foo_>.  Modify the loop like so:"
38251 msgstr ""
38252
38253 #. type: verbatim
38254 #: ../src/guestfs.pod:2149
38255 #, no-wrap
38256 msgid ""
38257 " const char *key;\n"
38258 " void *data = guestfs_first_private (g, &key);\n"
38259 " while (data != NULL)\n"
38260 "   {\n"
38261 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38262 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38263 "     data = guestfs_next_private (g, &key);\n"
38264 "   }\n"
38265 "\n"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../src/guestfs.pod:2158
38270 msgid ""
38271 "If you need to modify keys while walking, then you have to jump back to the "
38272 "beginning of the loop.  For example, to delete all keys prefixed with "
38273 "C<foo_>:"
38274 msgstr ""
38275
38276 #. type: verbatim
38277 #: ../src/guestfs.pod:2162
38278 #, no-wrap
38279 msgid ""
38280 "  const char *key;\n"
38281 "  void *data;\n"
38282 " again:\n"
38283 "  data = guestfs_first_private (g, &key);\n"
38284 "  while (data != NULL)\n"
38285 "    {\n"
38286 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38287 "        {\n"
38288 "          guestfs_set_private (g, key, NULL);\n"
38289 "          /* note that 'key' pointer is now invalid, and so is\n"
38290 "             the internal iterator */\n"
38291 "          goto again;\n"
38292 "        }\n"
38293 "      data = guestfs_next_private (g, &key);\n"
38294 "    }\n"
38295 "\n"
38296 msgstr ""
38297
38298 #. type: textblock
38299 #: ../src/guestfs.pod:2178
38300 msgid ""
38301 "Note that the above loop is guaranteed to terminate because the keys are "
38302 "being deleted, but other manipulations of keys within the loop might not "
38303 "terminate unless you also maintain an indication of which keys have been "
38304 "visited."
38305 msgstr ""
38306
38307 #. type: =head1
38308 #: ../src/guestfs.pod:2183
38309 msgid "SYSTEMTAP"
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../src/guestfs.pod:2185
38314 msgid ""
38315 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38316 "true of any library, not just libguestfs.  However libguestfs also contains "
38317 "static markers to help in probing internal operations."
38318 msgstr ""
38319
38320 #. type: textblock
38321 #: ../src/guestfs.pod:2189
38322 msgid "You can list all the static markers by doing:"
38323 msgstr ""
38324
38325 #. type: verbatim
38326 #: ../src/guestfs.pod:2191
38327 #, no-wrap
38328 msgid ""
38329 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38330 "              .provider(\"guestfs\").mark(\"*\")'\n"
38331 "\n"
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:2194
38336 msgid ""
38337 "B<Note:> These static markers are I<not> part of the stable API and may "
38338 "change in future versions."
38339 msgstr ""
38340
38341 #. type: =head2
38342 #: ../src/guestfs.pod:2197
38343 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38344 msgstr ""
38345
38346 #. type: textblock
38347 #: ../src/guestfs.pod:2199
38348 msgid ""
38349 "This script contains examples of displaying both the static markers and some "
38350 "ordinary C entry points:"
38351 msgstr ""
38352
38353 #. type: verbatim
38354 #: ../src/guestfs.pod:2202
38355 #, no-wrap
38356 msgid ""
38357 " global last;\n"
38358 " \n"
38359 msgstr ""
38360
38361 #. type: verbatim
38362 #: ../src/guestfs.pod:2204
38363 #, no-wrap
38364 msgid ""
38365 " function display_time () {\n"
38366 "       now = gettimeofday_us ();\n"
38367 "       delta = 0;\n"
38368 "       if (last > 0)\n"
38369 "             delta = now - last;\n"
38370 "       last = now;\n"
38371 " \n"
38372 msgstr ""
38373
38374 #. type: verbatim
38375 #: ../src/guestfs.pod:2211
38376 #, no-wrap
38377 msgid ""
38378 "       printf (\"%d (+%d):\", now, delta);\n"
38379 " }\n"
38380 " \n"
38381 msgstr ""
38382
38383 #. type: verbatim
38384 #: ../src/guestfs.pod:2214
38385 #, no-wrap
38386 msgid ""
38387 " probe begin {\n"
38388 "       last = 0;\n"
38389 "       printf (\"ready\\n\");\n"
38390 " }\n"
38391 " \n"
38392 msgstr ""
38393
38394 #. type: verbatim
38395 #: ../src/guestfs.pod:2219
38396 #, no-wrap
38397 msgid ""
38398 " /* Display all calls to static markers. */\n"
38399 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38400 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38401 "       display_time();\n"
38402 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38403 " }\n"
38404 " \n"
38405 msgstr ""
38406
38407 #. type: verbatim
38408 #: ../src/guestfs.pod:2226
38409 #, no-wrap
38410 msgid ""
38411 " /* Display all calls to guestfs_mkfs* functions. */\n"
38412 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38413 "           .function(\"guestfs_mkfs*\") ? {\n"
38414 "       display_time();\n"
38415 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38416 " }\n"
38417 "\n"
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:2233
38422 msgid ""
38423 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38424 "program.  Note that you either have to be root, or you have to add yourself "
38425 "to several special stap groups.  Consult the systemtap documentation for "
38426 "more information."
38427 msgstr ""
38428
38429 #. type: verbatim
38430 #: ../src/guestfs.pod:2238
38431 #, no-wrap
38432 msgid ""
38433 " # stap /tmp/test.stap\n"
38434 " ready\n"
38435 "\n"
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:2241
38440 msgid "In another terminal, run a guestfish command such as this:"
38441 msgstr ""
38442
38443 #. type: textblock
38444 #: ../src/guestfs.pod:2245
38445 msgid "In the first terminal, stap trace output similar to this is shown:"
38446 msgstr ""
38447
38448 #. type: verbatim
38449 #: ../src/guestfs.pod:2247
38450 #, no-wrap
38451 msgid ""
38452 " 1318248056692655 (+0):\tlaunch_start\n"
38453 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38454 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38455 " 1318248056838059 (+19774):     launch_run_qemu\n"
38456 " 1318248061071167 (+4233108):   launch_end\n"
38457 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38458 "\n"
38459 msgstr ""
38460
38461 #. type: =end
38462 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38463 msgid "html"
38464 msgstr ""
38465
38466 #. type: textblock
38467 #: ../src/guestfs.pod:2256
38468 msgid ""
38469 "<!-- old anchor for the next section --> <a name="
38470 "\"state_machine_and_low_level_event_api\"/>"
38471 msgstr ""
38472
38473 #. type: =head1
38474 #: ../src/guestfs.pod:2261
38475 msgid "ARCHITECTURE"
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:2263
38480 msgid ""
38481 "Internally, libguestfs is implemented by running an appliance (a special "
38482 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38483 "process of the main program."
38484 msgstr ""
38485
38486 #. type: verbatim
38487 #: ../src/guestfs.pod:2267
38488 #, no-wrap
38489 msgid ""
38490 "  ___________________\n"
38491 " /                   \\\n"
38492 " | main program      |\n"
38493 " |                   |\n"
38494 " |                   |           child process / appliance\n"
38495 " |                   |           __________________________\n"
38496 " |                   |          / qemu                     \\\n"
38497 " +-------------------+   RPC    |      +-----------------+ |\n"
38498 " | libguestfs     <--------------------> guestfsd        | |\n"
38499 " |                   |          |      +-----------------+ |\n"
38500 " \\___________________/          |      | Linux kernel    | |\n"
38501 "                                |      +--^--------------+ |\n"
38502 "                                \\_________|________________/\n"
38503 "                                          |\n"
38504 "                                   _______v______\n"
38505 "                                  /              \\\n"
38506 "                                  | Device or    |\n"
38507 "                                  | disk image   |\n"
38508 "                                  \\______________/\n"
38509 "\n"
38510 msgstr ""
38511
38512 #. type: textblock
38513 #: ../src/guestfs.pod:2287
38514 msgid ""
38515 "The library, linked to the main program, creates the child process and hence "
38516 "the appliance in the L</guestfs_launch> function."
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../src/guestfs.pod:2290
38521 msgid ""
38522 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38523 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38524 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38525 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38526 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38527 "attached to the qemu process which translates device access by the "
38528 "appliance's Linux kernel into accesses to the image."
38529 msgstr ""
38530
38531 #. type: textblock
38532 #: ../src/guestfs.pod:2299
38533 msgid ""
38534 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38535 "Although the disk image you are attached to might also be used by some "
38536 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38537 "care if both libguestfs's qemu process and your virtual machine are trying "
38538 "to update the disk image at the same time, since these usually results in "
38539 "massive disk corruption)."
38540 msgstr ""
38541
38542 #. type: =head1
38543 #: ../src/guestfs.pod:2306
38544 msgid "STATE MACHINE"
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:2308
38549 msgid "libguestfs uses a state machine to model the child process:"
38550 msgstr ""
38551
38552 #. type: verbatim
38553 #: ../src/guestfs.pod:2310
38554 #, no-wrap
38555 msgid ""
38556 "                         |\n"
38557 "                    guestfs_create\n"
38558 "                         |\n"
38559 "                         |\n"
38560 "                     ____V_____\n"
38561 "                    /          \\\n"
38562 "                    |  CONFIG  |\n"
38563 "                    \\__________/\n"
38564 "                     ^ ^   ^  \\\n"
38565 "                    /  |    \\  \\ guestfs_launch\n"
38566 "                   /   |    _\\__V______\n"
38567 "                  /    |   /           \\\n"
38568 "                 /     |   | LAUNCHING |\n"
38569 "                /      |   \\___________/\n"
38570 "               /       |       /\n"
38571 "              /        |  guestfs_launch\n"
38572 "             /         |     /\n"
38573 "    ______  /        __|____V\n"
38574 "   /      \\ ------> /        \\\n"
38575 "   | BUSY |         | READY  |\n"
38576 "   \\______/ <------ \\________/\n"
38577 "\n"
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:2332
38582 msgid ""
38583 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38584 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38585 "(3) alternating between READY and BUSY as commands are issued to, and "
38586 "carried out by, the child process."
38587 msgstr ""
38588
38589 #. type: textblock
38590 #: ../src/guestfs.pod:2337
38591 msgid ""
38592 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38593 "asynchronously at any time (eg. due to some internal error), and that causes "
38594 "the state to transition back to CONFIG."
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../src/guestfs.pod:2341
38599 msgid ""
38600 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38601 "issued when in the CONFIG state."
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:2344
38606 msgid ""
38607 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38608 "L</guestfs_launch> blocks until the child process is READY to accept "
38609 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38610 "moves the state from CONFIG to LAUNCHING while it is running."
38611 msgstr ""
38612
38613 #. type: textblock
38614 #: ../src/guestfs.pod:2350
38615 msgid ""
38616 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38617 "state.  These API calls block waiting for the command to be carried out (ie. "
38618 "the state to transition to BUSY and then back to READY).  There are no non-"
38619 "blocking versions, and no way to issue more than one command per handle at "
38620 "the same time."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:2356
38625 msgid ""
38626 "Finally, the child process sends asynchronous messages back to the main "
38627 "program, such as kernel log messages.  You can register a callback to "
38628 "receive these messages."
38629 msgstr ""
38630
38631 #. type: =head1
38632 #: ../src/guestfs.pod:2360
38633 msgid "INTERNALS"
38634 msgstr ""
38635
38636 #. type: =head2
38637 #: ../src/guestfs.pod:2362
38638 msgid "APPLIANCE BOOT PROCESS"
38639 msgstr ""
38640
38641 #. type: textblock
38642 #: ../src/guestfs.pod:2364
38643 msgid ""
38644 "This process has evolved and continues to evolve.  The description here "
38645 "corresponds only to the current version of libguestfs and is provided for "
38646 "information only."
38647 msgstr ""
38648
38649 #. type: textblock
38650 #: ../src/guestfs.pod:2368
38651 msgid ""
38652 "In order to follow the stages involved below, enable libguestfs debugging "
38653 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38654 msgstr ""
38655
38656 #. type: =item
38657 #: ../src/guestfs.pod:2373
38658 msgid "Create the appliance"
38659 msgstr ""
38660
38661 #. type: textblock
38662 #: ../src/guestfs.pod:2375
38663 msgid ""
38664 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38665 "initrd and the appliance."
38666 msgstr ""
38667
38668 #. type: textblock
38669 #: ../src/guestfs.pod:2378
38670 msgid ""
38671 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38672 "directory if C<TMPDIR> is set)."
38673 msgstr ""
38674
38675 #. type: textblock
38676 #: ../src/guestfs.pod:2381
38677 msgid ""
38678 "For a complete description of how the appliance is created and cached, read "
38679 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38680 msgstr ""
38681
38682 #. type: =item
38683 #: ../src/guestfs.pod:2385
38684 msgid "Start qemu and boot the kernel"
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../src/guestfs.pod:2387
38689 msgid "qemu is invoked to boot the kernel."
38690 msgstr ""
38691
38692 #. type: =item
38693 #: ../src/guestfs.pod:2389
38694 msgid "Run the initrd"
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../src/guestfs.pod:2391
38699 msgid ""
38700 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38701 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38702 "order that the appliance itself can be mounted and started."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2395
38707 msgid ""
38708 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38709 "initrd>."
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2398
38714 msgid ""
38715 "When the initrd has started you will see messages showing that kernel "
38716 "modules are being loaded, similar to this:"
38717 msgstr ""
38718
38719 #. type: verbatim
38720 #: ../src/guestfs.pod:2401
38721 #, no-wrap
38722 msgid ""
38723 " febootstrap: ext2 mini initrd starting up\n"
38724 " febootstrap: mounting /sys\n"
38725 " febootstrap: internal insmod libcrc32c.ko\n"
38726 " febootstrap: internal insmod crc32c-intel.ko\n"
38727 "\n"
38728 msgstr ""
38729
38730 #. type: =item
38731 #: ../src/guestfs.pod:2406
38732 msgid "Find and mount the appliance device"
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:2408
38737 msgid ""
38738 "The appliance is a sparse file containing an ext2 filesystem which contains "
38739 "a familiar (although reduced in size) Linux operating system.  It would "
38740 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:2412
38745 msgid ""
38746 "The regular disks being inspected by libguestfs are the first devices "
38747 "exposed by qemu (eg. as C</dev/vda>)."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2415
38752 msgid ""
38753 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38754 "there was only one regular disk)."
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:2418
38759 msgid ""
38760 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38761 "and switch root into the appliance, and run C</init> from the appliance."
38762 msgstr ""
38763
38764 #. type: textblock
38765 #: ../src/guestfs.pod:2422
38766 msgid "If this works successfully you will see messages such as:"
38767 msgstr ""
38768
38769 #. type: verbatim
38770 #: ../src/guestfs.pod:2424
38771 #, no-wrap
38772 msgid ""
38773 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38774 " febootstrap: creating /dev/root as block special 252:16\n"
38775 " febootstrap: mounting new root on /root\n"
38776 " febootstrap: chroot\n"
38777 " Starting /init script ...\n"
38778 "\n"
38779 msgstr ""
38780
38781 #. type: textblock
38782 #: ../src/guestfs.pod:2430
38783 msgid ""
38784 "Note that C<Starting /init script ...> indicates that the appliance's init "
38785 "script is now running."
38786 msgstr ""
38787
38788 #. type: =item
38789 #: ../src/guestfs.pod:2433
38790 msgid "Initialize the appliance"
38791 msgstr ""
38792
38793 #. type: textblock
38794 #: ../src/guestfs.pod:2435
38795 msgid ""
38796 "The appliance itself now initializes itself.  This involves starting certain "
38797 "processes like C<udev>, possibly printing some debug information, and "
38798 "finally running the daemon (C<guestfsd>)."
38799 msgstr ""
38800
38801 #. type: =item
38802 #: ../src/guestfs.pod:2439
38803 msgid "The daemon"
38804 msgstr ""
38805
38806 #. type: textblock
38807 #: ../src/guestfs.pod:2441
38808 msgid ""
38809 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38810 "should see:"
38811 msgstr ""
38812
38813 #. type: verbatim
38814 #: ../src/guestfs.pod:2444
38815 #, no-wrap
38816 msgid ""
38817 " verbose daemon enabled\n"
38818 "\n"
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../src/guestfs.pod:2446
38823 msgid ""
38824 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38825 "connected on the other end to the library."
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:2449
38830 msgid ""
38831 "The daemon connects to this port (and hence to the library) and sends a four "
38832 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38833 "protocol (see below)."
38834 msgstr ""
38835
38836 #. type: =head2
38837 #: ../src/guestfs.pod:2455
38838 msgid "COMMUNICATION PROTOCOL"
38839 msgstr ""
38840
38841 #. type: textblock
38842 #: ../src/guestfs.pod:2457
38843 msgid ""
38844 "Don't rely on using this protocol directly.  This section documents how it "
38845 "currently works, but it may change at any time."
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../src/guestfs.pod:2460
38850 msgid ""
38851 "The protocol used to talk between the library and the daemon running inside "
38852 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38853 "1014, RFC 1832, RFC 4506)."
38854 msgstr ""
38855
38856 #. type: textblock
38857 #: ../src/guestfs.pod:2464
38858 msgid ""
38859 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38860 "this file is automatically generated)."
38861 msgstr ""
38862
38863 #. type: textblock
38864 #: ../src/guestfs.pod:2467
38865 msgid ""
38866 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38867 "and C<FileOut> parameters, which are handled with very simple request/reply "
38868 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38869 "parameters, which use the same request and reply messages, but they may also "
38870 "be followed by files sent using a chunked encoding."
38871 msgstr ""
38872
38873 #. type: =head3
38874 #: ../src/guestfs.pod:2474
38875 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38876 msgstr ""
38877
38878 #. type: textblock
38879 #: ../src/guestfs.pod:2476
38880 msgid "For ordinary functions, the request message is:"
38881 msgstr ""
38882
38883 #. type: verbatim
38884 #: ../src/guestfs.pod:2478
38885 #, no-wrap
38886 msgid ""
38887 " total length (header + arguments,\n"
38888 "      but not including the length word itself)\n"
38889 " struct guestfs_message_header (encoded as XDR)\n"
38890 " struct guestfs_<foo>_args (encoded as XDR)\n"
38891 "\n"
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../src/guestfs.pod:2483
38896 msgid ""
38897 "The total length field allows the daemon to allocate a fixed size buffer "
38898 "into which it slurps the rest of the message.  As a result, the total length "
38899 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38900 "effective size of any request is limited to somewhere under this size."
38901 msgstr ""
38902
38903 #. type: textblock
38904 #: ../src/guestfs.pod:2489
38905 msgid ""
38906 "Note also that many functions don't take any arguments, in which case the "
38907 "C<guestfs_I<foo>_args> is completely omitted."
38908 msgstr ""
38909
38910 #. type: textblock
38911 #: ../src/guestfs.pod:2492
38912 msgid ""
38913 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38914 "receiver knows what type of args structure to expect, or none at all."
38915 msgstr ""
38916
38917 #. type: textblock
38918 #: ../src/guestfs.pod:2496
38919 msgid ""
38920 "For functions that take optional arguments, the optional arguments are "
38921 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38922 "arguments.  A bitmask in the header indicates which optional arguments are "
38923 "meaningful.  The bitmask is also checked to see if it contains bits set "
38924 "which the daemon does not know about (eg. if more optional arguments were "
38925 "added in a later version of the library), and this causes the call to be "
38926 "rejected."
38927 msgstr ""
38928
38929 #. type: textblock
38930 #: ../src/guestfs.pod:2504
38931 msgid "The reply message for ordinary functions is:"
38932 msgstr ""
38933
38934 #. type: verbatim
38935 #: ../src/guestfs.pod:2506
38936 #, no-wrap
38937 msgid ""
38938 " total length (header + ret,\n"
38939 "      but not including the length word itself)\n"
38940 " struct guestfs_message_header (encoded as XDR)\n"
38941 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38942 "\n"
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:2511
38947 msgid ""
38948 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38949 "functions that return no formal return values."
38950 msgstr ""
38951
38952 #. type: textblock
38953 #: ../src/guestfs.pod:2514
38954 msgid ""
38955 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38956 msgstr ""
38957
38958 #. type: textblock
38959 #: ../src/guestfs.pod:2517
38960 msgid ""
38961 "In the case of an error, a flag is set in the header, and the reply message "
38962 "is slightly changed:"
38963 msgstr ""
38964
38965 #. type: verbatim
38966 #: ../src/guestfs.pod:2520
38967 #, no-wrap
38968 msgid ""
38969 " total length (header + error,\n"
38970 "      but not including the length word itself)\n"
38971 " struct guestfs_message_header (encoded as XDR)\n"
38972 " struct guestfs_message_error (encoded as XDR)\n"
38973 "\n"
38974 msgstr ""
38975
38976 #. type: textblock
38977 #: ../src/guestfs.pod:2525
38978 msgid ""
38979 "The C<guestfs_message_error> structure contains the error message as a "
38980 "string."
38981 msgstr ""
38982
38983 #. type: =head3
38984 #: ../src/guestfs.pod:2528
38985 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38986 msgstr ""
38987
38988 #. type: textblock
38989 #: ../src/guestfs.pod:2530
38990 msgid ""
38991 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38992 "The normal request message is sent (see above).  However this is followed by "
38993 "a sequence of file chunks."
38994 msgstr ""
38995
38996 #. type: verbatim
38997 #: ../src/guestfs.pod:2534
38998 #, no-wrap
38999 msgid ""
39000 " total length (header + arguments,\n"
39001 "      but not including the length word itself,\n"
39002 "      and not including the chunks)\n"
39003 " struct guestfs_message_header (encoded as XDR)\n"
39004 " struct guestfs_<foo>_args (encoded as XDR)\n"
39005 " sequence of chunks for FileIn param #0\n"
39006 " sequence of chunks for FileIn param #1 etc.\n"
39007 "\n"
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:2542
39012 msgid "The \"sequence of chunks\" is:"
39013 msgstr ""
39014
39015 #. type: verbatim
39016 #: ../src/guestfs.pod:2544
39017 #, no-wrap
39018 msgid ""
39019 " length of chunk (not including length word itself)\n"
39020 " struct guestfs_chunk (encoded as XDR)\n"
39021 " length of chunk\n"
39022 " struct guestfs_chunk (encoded as XDR)\n"
39023 "   ...\n"
39024 " length of chunk\n"
39025 " struct guestfs_chunk (with data.data_len == 0)\n"
39026 "\n"
39027 msgstr ""
39028
39029 #. type: textblock
39030 #: ../src/guestfs.pod:2552
39031 msgid ""
39032 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39033 "is set in the final chunk to indicate either successful completion or early "
39034 "cancellation."
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:2556
39039 msgid ""
39040 "At time of writing there are no functions that have more than one FileIn "
39041 "parameter.  However this is (theoretically) supported, by sending the "
39042 "sequence of chunks for each FileIn parameter one after another (from left to "
39043 "right)."
39044 msgstr ""
39045
39046 #. type: textblock
39047 #: ../src/guestfs.pod:2561
39048 msgid ""
39049 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39050 "transfer.  The library does this by sending a chunk with a special flag set "
39051 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39052 "RPC, does I<not> send any reply, and goes back to reading the next request."
39053 msgstr ""
39054
39055 #. type: textblock
39056 #: ../src/guestfs.pod:2567
39057 msgid ""
39058 "The daemon may also cancel.  It does this by writing a special word "
39059 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39060 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39061 "cancel chunk).  The special word is chosen so that even if cancellation "
39062 "happens right at the end of the transfer (after the library has finished "
39063 "writing and has started listening for the reply), the \"spurious\" cancel "
39064 "flag will not be confused with the reply message."
39065 msgstr ""
39066
39067 #. type: textblock
39068 #: ../src/guestfs.pod:2576
39069 msgid ""
39070 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39071 "limit), and also files where the size is not known in advance (eg. from "
39072 "pipes or sockets).  However the chunks are rather small "
39073 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39074 "to keep much in memory."
39075 msgstr ""
39076
39077 #. type: =head3
39078 #: ../src/guestfs.pod:2582
39079 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../src/guestfs.pod:2584
39084 msgid ""
39085 "The protocol for FileOut parameters is exactly the same as for FileIn "
39086 "parameters, but with the roles of daemon and library reversed."
39087 msgstr ""
39088
39089 #. type: verbatim
39090 #: ../src/guestfs.pod:2587
39091 #, no-wrap
39092 msgid ""
39093 " total length (header + ret,\n"
39094 "      but not including the length word itself,\n"
39095 "      and not including the chunks)\n"
39096 " struct guestfs_message_header (encoded as XDR)\n"
39097 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39098 " sequence of chunks for FileOut param #0\n"
39099 " sequence of chunks for FileOut param #1 etc.\n"
39100 "\n"
39101 msgstr ""
39102
39103 #. type: =head3
39104 #: ../src/guestfs.pod:2595
39105 msgid "INITIAL MESSAGE"
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../src/guestfs.pod:2597
39110 msgid ""
39111 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39112 "which indicates that the guest and daemon is alive.  This is what L</"
39113 "guestfs_launch> waits for."
39114 msgstr ""
39115
39116 #. type: =head3
39117 #: ../src/guestfs.pod:2601
39118 msgid "PROGRESS NOTIFICATION MESSAGES"
39119 msgstr ""
39120
39121 #. type: textblock
39122 #: ../src/guestfs.pod:2603
39123 msgid ""
39124 "The daemon may send progress notification messages at any time.  These are "
39125 "distinguished by the normal length word being replaced by "
39126 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39127 msgstr ""
39128
39129 #. type: textblock
39130 #: ../src/guestfs.pod:2607
39131 msgid ""
39132 "The library turns them into progress callbacks (see L</"
39133 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39134 "if not."
39135 msgstr ""
39136
39137 #. type: textblock
39138 #: ../src/guestfs.pod:2611
39139 msgid ""
39140 "The daemon self-limits the frequency of progress messages it sends (see "
39141 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39142 "messages."
39143 msgstr ""
39144
39145 #. type: =head1
39146 #: ../src/guestfs.pod:2615
39147 msgid "LIBGUESTFS VERSION NUMBERS"
39148 msgstr ""
39149
39150 #. type: textblock
39151 #: ../src/guestfs.pod:2617
39152 msgid ""
39153 "Since April 2010, libguestfs has started to make separate development and "
39154 "stable releases, along with corresponding branches in our git repository.  "
39155 "These separate releases can be identified by version number:"
39156 msgstr ""
39157
39158 #. type: verbatim
39159 #: ../src/guestfs.pod:2622
39160 #, no-wrap
39161 msgid ""
39162 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39163 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39164 "       |\n"
39165 "       v\n"
39166 " 1  .  3  .  5\n"
39167 " ^           ^\n"
39168 " |           |\n"
39169 " |           `-------- sub-version\n"
39170 " |\n"
39171 " `------ always '1' because we don't change the ABI\n"
39172 "\n"
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:2633
39177 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39178 msgstr ""
39179
39180 #. type: textblock
39181 #: ../src/guestfs.pod:2635
39182 msgid ""
39183 "As time passes we cherry pick fixes from the development branch and backport "
39184 "those into the stable branch, the effect being that the stable branch should "
39185 "get more stable and less buggy over time.  So the stable releases are ideal "
39186 "for people who don't need new features but would just like the software to "
39187 "work."
39188 msgstr ""
39189
39190 #. type: textblock
39191 #: ../src/guestfs.pod:2641
39192 msgid "Our criteria for backporting changes are:"
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../src/guestfs.pod:2647
39197 msgid ""
39198 "Documentation changes which don't affect any code are backported unless the "
39199 "documentation refers to a future feature which is not in stable."
39200 msgstr ""
39201
39202 #. type: textblock
39203 #: ../src/guestfs.pod:2653
39204 msgid ""
39205 "Bug fixes which are not controversial, fix obvious problems, and have been "
39206 "well tested are backported."
39207 msgstr ""
39208
39209 #. type: textblock
39210 #: ../src/guestfs.pod:2658
39211 msgid ""
39212 "Simple rearrangements of code which shouldn't affect how it works get "
39213 "backported.  This is so that the code in the two branches doesn't get too "
39214 "far out of step, allowing us to backport future fixes more easily."
39215 msgstr ""
39216
39217 #. type: textblock
39218 #: ../src/guestfs.pod:2664
39219 msgid ""
39220 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39221 "exceptional case: the new feature is required in order to implement an "
39222 "important bug fix."
39223 msgstr ""
39224
39225 #. type: textblock
39226 #: ../src/guestfs.pod:2670
39227 msgid ""
39228 "A new stable branch starts when we think the new features in development are "
39229 "substantial and compelling enough over the current stable branch to warrant "
39230 "it.  When that happens we create new stable and development versions 1.N.0 "
39231 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39232 "stable at this point, but by backporting fixes from development, that branch "
39233 "will stabilize over time."
39234 msgstr ""
39235
39236 #. type: =head1
39237 #: ../src/guestfs.pod:2678
39238 msgid "EXTENDING LIBGUESTFS"
39239 msgstr ""
39240
39241 #. type: =head2
39242 #: ../src/guestfs.pod:2680
39243 msgid "ADDING A NEW API ACTION"
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:2682
39248 msgid ""
39249 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39250 "documentation) are generated, and this makes it easy to extend the "
39251 "libguestfs API."
39252 msgstr ""
39253
39254 #. type: textblock
39255 #: ../src/guestfs.pod:2686
39256 msgid "To add a new API action there are two changes:"
39257 msgstr ""
39258
39259 #. type: textblock
39260 #: ../src/guestfs.pod:2692
39261 msgid ""
39262 "You need to add a description of the call (name, parameters, return type, "
39263 "tests, documentation) to C<generator/generator_actions.ml>."
39264 msgstr ""
39265
39266 #. type: textblock
39267 #: ../src/guestfs.pod:2695
39268 msgid ""
39269 "There are two sorts of API action, depending on whether the call goes "
39270 "through to the daemon in the appliance, or is serviced entirely by the "
39271 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39272 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39273 "an example of the latter, since a trace flag is maintained in the handle and "
39274 "all tracing is done on the library side."
39275 msgstr ""
39276
39277 #. type: textblock
39278 #: ../src/guestfs.pod:2703
39279 msgid ""
39280 "Most new actions are of the first type, and get added to the "
39281 "C<daemon_functions> list.  Each function has a unique procedure number used "
39282 "in the RPC protocol which is assigned to that action when we publish "
39283 "libguestfs and cannot be reused.  Take the latest procedure number and "
39284 "increment it."
39285 msgstr ""
39286
39287 #. type: textblock
39288 #: ../src/guestfs.pod:2709
39289 msgid ""
39290 "For library-only actions of the second type, add to the "
39291 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39292 "library and do not travel over the RPC mechanism to the daemon, these "
39293 "functions do not need a procedure number, and so the procedure number is set "
39294 "to C<-1>."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:2717
39299 msgid "Implement the action (in C):"
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:2719
39304 msgid ""
39305 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39306 "C<daemon/> directory."
39307 msgstr ""
39308
39309 #. type: textblock
39310 #: ../src/guestfs.pod:2722
39311 msgid ""
39312 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39313 "(note: double underscore) in the C<src/> directory."
39314 msgstr ""
39315
39316 #. type: textblock
39317 #: ../src/guestfs.pod:2725
39318 msgid "In either case, use another function as an example of what to do."
39319 msgstr ""
39320
39321 #. type: textblock
39322 #: ../src/guestfs.pod:2729
39323 msgid "After making these changes, use C<make> to compile."
39324 msgstr ""
39325
39326 #. type: textblock
39327 #: ../src/guestfs.pod:2731
39328 msgid ""
39329 "Note that you don't need to implement the RPC, language bindings, manual "
39330 "pages or anything else.  It's all automatically generated from the OCaml "
39331 "description."
39332 msgstr ""
39333
39334 #. type: =head2
39335 #: ../src/guestfs.pod:2735
39336 msgid "ADDING TESTS FOR AN API ACTION"
39337 msgstr ""
39338
39339 #. type: textblock
39340 #: ../src/guestfs.pod:2737
39341 msgid ""
39342 "You can supply zero or as many tests as you want per API call.  The tests "
39343 "can either be added as part of the API description (C<generator/"
39344 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39345 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39346 "slower, so if possible use the first method."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../src/guestfs.pod:2743
39351 msgid ""
39352 "The following describes the test environment used when you add an API test "
39353 "in C<generator_actions.ml>."
39354 msgstr ""
39355
39356 #. type: textblock
39357 #: ../src/guestfs.pod:2746
39358 msgid "The test environment has 4 block devices:"
39359 msgstr ""
39360
39361 #. type: =item
39362 #: ../src/guestfs.pod:2750
39363 msgid "C</dev/sda> 500MB"
39364 msgstr ""
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:2752
39368 msgid "General block device for testing."
39369 msgstr ""
39370
39371 #. type: =item
39372 #: ../src/guestfs.pod:2754
39373 msgid "C</dev/sdb> 50MB"
39374 msgstr ""
39375
39376 #. type: textblock
39377 #: ../src/guestfs.pod:2756
39378 msgid ""
39379 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39380 "operations."
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../src/guestfs.pod:2759
39385 msgid "C</dev/sdc> 10MB"
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2761
39390 msgid "Used in a few tests where two block devices are needed."
39391 msgstr ""
39392
39393 #. type: =item
39394 #: ../src/guestfs.pod:2763
39395 msgid "C</dev/sdd>"
39396 msgstr ""
39397
39398 #. type: textblock
39399 #: ../src/guestfs.pod:2765
39400 msgid "ISO with fixed content (see C<images/test.iso>)."
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../src/guestfs.pod:2769
39405 msgid ""
39406 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39407 "appliance and block devices are reused between tests.  So don't try testing "
39408 "L</guestfs_kill_subprocess> :-x"
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../src/guestfs.pod:2773
39413 msgid ""
39414 "Each test starts with an initial scenario, selected using one of the "
39415 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39416 "initialize the disks mentioned above in a particular way as documented in "
39417 "C<generator_types.ml>.  You should not assume anything about the previous "
39418 "contents of other disks that are not initialized."
39419 msgstr ""
39420
39421 #. type: textblock
39422 #: ../src/guestfs.pod:2779
39423 msgid ""
39424 "You can add a prerequisite clause to any individual test.  This is a run-"
39425 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39426 "testing a command which might not work on all variations of libguestfs "
39427 "builds.  A test that has prerequisite of C<Always> means to run "
39428 "unconditionally."
39429 msgstr ""
39430
39431 #. type: textblock
39432 #: ../src/guestfs.pod:2785
39433 msgid ""
39434 "In addition, packagers can skip individual tests by setting environment "
39435 "variables before running C<make check>."
39436 msgstr ""
39437
39438 #. type: verbatim
39439 #: ../src/guestfs.pod:2788
39440 #, no-wrap
39441 msgid ""
39442 " SKIP_TEST_<CMD>_<NUM>=1\n"
39443 "\n"
39444 msgstr ""
39445
39446 #. type: textblock
39447 #: ../src/guestfs.pod:2790
39448 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:2792
39453 msgid "or:"
39454 msgstr ""
39455
39456 #. type: verbatim
39457 #: ../src/guestfs.pod:2794
39458 #, no-wrap
39459 msgid ""
39460 " SKIP_TEST_<CMD>=1\n"
39461 "\n"
39462 msgstr ""
39463
39464 #. type: textblock
39465 #: ../src/guestfs.pod:2796
39466 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../src/guestfs.pod:2798
39471 msgid "Packagers can run only certain tests by setting for example:"
39472 msgstr ""
39473
39474 #. type: verbatim
39475 #: ../src/guestfs.pod:2800
39476 #, no-wrap
39477 msgid ""
39478 " TEST_ONLY=\"vfs_type zerofree\"\n"
39479 "\n"
39480 msgstr ""
39481
39482 #. type: textblock
39483 #: ../src/guestfs.pod:2802
39484 msgid ""
39485 "See C<capitests/tests.c> for more details of how these environment variables "
39486 "work."
39487 msgstr ""
39488
39489 #. type: =head2
39490 #: ../src/guestfs.pod:2805
39491 msgid "DEBUGGING NEW API ACTIONS"
39492 msgstr ""
39493
39494 #. type: textblock
39495 #: ../src/guestfs.pod:2807
39496 msgid "Test new actions work before submitting them."
39497 msgstr ""
39498
39499 #. type: textblock
39500 #: ../src/guestfs.pod:2809
39501 msgid "You can use guestfish to try out new commands."
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:2811
39506 msgid ""
39507 "Debugging the daemon is a problem because it runs inside a minimal "
39508 "environment.  However you can fprintf messages in the daemon to stderr, and "
39509 "they will show up if you use C<guestfish -v>."
39510 msgstr ""
39511
39512 #. type: =head2
39513 #: ../src/guestfs.pod:2815
39514 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../src/guestfs.pod:2817
39519 msgid ""
39520 "Our C source code generally adheres to some basic code-formatting "
39521 "conventions.  The existing code base is not totally consistent on this "
39522 "front, but we do prefer that contributed code be formatted similarly.  In "
39523 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39524 "indentation level, and other than that, follow the K&R style."
39525 msgstr ""
39526
39527 #. type: textblock
39528 #: ../src/guestfs.pod:2823
39529 msgid ""
39530 "If you use Emacs, add the following to one of one of your start-up files (e."
39531 "g., ~/.emacs), to help ensure that you get indentation right:"
39532 msgstr ""
39533
39534 #. type: verbatim
39535 #: ../src/guestfs.pod:2826
39536 #, no-wrap
39537 msgid ""
39538 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39539 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39540 " (add-hook 'find-file-hook\n"
39541 "     '(lambda () (if (and buffer-file-name\n"
39542 "                          (string-match \"/libguestfs\\\\>\"\n"
39543 "                              (buffer-file-name))\n"
39544 "                          (not (string-equal mode-name \"Change Log\"))\n"
39545 "                          (not (string-equal mode-name \"Makefile\")))\n"
39546 "                     (setq indent-tabs-mode nil))))\n"
39547 " \n"
39548 msgstr ""
39549
39550 #. type: verbatim
39551 #: ../src/guestfs.pod:2836
39552 #, no-wrap
39553 msgid ""
39554 " ;;; When editing C sources in libguestfs, use this style.\n"
39555 " (defun libguestfs-c-mode ()\n"
39556 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39557 "   (interactive)\n"
39558 "   (c-set-style \"K&R\")\n"
39559 "   (setq c-indent-level 2)\n"
39560 "   (setq c-basic-offset 2))\n"
39561 " (add-hook 'c-mode-hook\n"
39562 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39563 "                               (buffer-file-name))\n"
39564 "                           (libguestfs-c-mode))))\n"
39565 "\n"
39566 msgstr ""
39567
39568 #. type: textblock
39569 #: ../src/guestfs.pod:2848
39570 msgid "Enable warnings when compiling (and fix any problems this finds):"
39571 msgstr ""
39572
39573 #. type: verbatim
39574 #: ../src/guestfs.pod:2851
39575 #, no-wrap
39576 msgid ""
39577 " ./configure --enable-gcc-warnings\n"
39578 "\n"
39579 msgstr ""
39580
39581 #. type: textblock
39582 #: ../src/guestfs.pod:2853
39583 msgid "Useful targets are:"
39584 msgstr ""
39585
39586 #. type: verbatim
39587 #: ../src/guestfs.pod:2855
39588 #, no-wrap
39589 msgid ""
39590 " make syntax-check  # checks the syntax of the C code\n"
39591 " make check         # runs the test suite\n"
39592 "\n"
39593 msgstr ""
39594
39595 #. type: =head2
39596 #: ../src/guestfs.pod:2858
39597 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39598 msgstr ""
39599
39600 #. type: textblock
39601 #: ../src/guestfs.pod:2860
39602 msgid ""
39603 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39604 "which are used to do shell quoting."
39605 msgstr ""
39606
39607 #. type: =item
39608 #: ../src/guestfs.pod:2865
39609 msgid "%Q"
39610 msgstr ""
39611
39612 #. type: textblock
39613 #: ../src/guestfs.pod:2867
39614 msgid ""
39615 "Simple shell quoted string.  Any spaces or other shell characters are "
39616 "escaped for you."
39617 msgstr ""
39618
39619 #. type: =item
39620 #: ../src/guestfs.pod:2870
39621 msgid "%R"
39622 msgstr ""
39623
39624 #. type: textblock
39625 #: ../src/guestfs.pod:2872
39626 msgid ""
39627 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39628 "the sysroot."
39629 msgstr ""
39630
39631 #. type: verbatim
39632 #: ../src/guestfs.pod:2879
39633 #, no-wrap
39634 msgid ""
39635 " asprintf (&cmd, \"cat %R\", path);\n"
39636 "\n"
39637 msgstr ""
39638
39639 #. type: textblock
39640 #: ../src/guestfs.pod:2881
39641 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39642 msgstr ""
39643
39644 #. type: textblock
39645 #: ../src/guestfs.pod:2883
39646 msgid ""
39647 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39648 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39649 "they are not passed via the shell (instead, straight to exec).  You probably "
39650 "want to use the C<sysroot_path()> function however."
39651 msgstr ""
39652
39653 #. type: =head2
39654 #: ../src/guestfs.pod:2889
39655 msgid "SUBMITTING YOUR NEW API ACTIONS"
39656 msgstr ""
39657
39658 #. type: textblock
39659 #: ../src/guestfs.pod:2891
39660 msgid ""
39661 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39662 "libguestfs> and CC to L<rjones@redhat.com>."
39663 msgstr ""
39664
39665 #. type: =head2
39666 #: ../src/guestfs.pod:2895
39667 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../src/guestfs.pod:2897
39672 msgid "We support i18n (gettext anyhow) in the library."
39673 msgstr ""
39674
39675 #. type: textblock
39676 #: ../src/guestfs.pod:2899
39677 msgid ""
39678 "However many messages come from the daemon, and we don't translate those at "
39679 "the moment.  One reason is that the appliance generally has all locale files "
39680 "removed from it, because they take up a lot of space.  So we'd have to readd "
39681 "some of those, as well as copying our PO files into the appliance."
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2905
39686 msgid ""
39687 "Debugging messages are never translated, since they are intended for the "
39688 "programmers."
39689 msgstr ""
39690
39691 #. type: =head2
39692 #: ../src/guestfs.pod:2908
39693 msgid "SOURCE CODE SUBDIRECTORIES"
39694 msgstr ""
39695
39696 #. type: =item
39697 #: ../src/guestfs.pod:2912
39698 msgid "C<align>"
39699 msgstr ""
39700
39701 #. type: textblock
39702 #: ../src/guestfs.pod:2914
39703 msgid "L<virt-alignment-scan(1)> command and documentation."
39704 msgstr ""
39705
39706 #. type: textblock
39707 #: ../src/guestfs.pod:2918
39708 msgid "The libguestfs appliance, build scripts and so on."
39709 msgstr ""
39710
39711 #. type: =item
39712 #: ../src/guestfs.pod:2920
39713 msgid "C<capitests>"
39714 msgstr ""
39715
39716 #. type: textblock
39717 #: ../src/guestfs.pod:2922
39718 msgid "Automated tests of the C API."
39719 msgstr ""
39720
39721 #. type: =item
39722 #: ../src/guestfs.pod:2924
39723 msgid "C<cat>"
39724 msgstr ""
39725
39726 #. type: textblock
39727 #: ../src/guestfs.pod:2926
39728 msgid ""
39729 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39730 "documentation."
39731 msgstr ""
39732
39733 #. type: =item
39734 #: ../src/guestfs.pod:2929
39735 msgid "C<caution>"
39736 msgstr ""
39737
39738 #. type: textblock
39739 #: ../src/guestfs.pod:2931
39740 msgid ""
39741 "Safety and liveness tests of components that libguestfs depends upon (not of "
39742 "libguestfs itself).  Mainly this is for qemu and the kernel."
39743 msgstr ""
39744
39745 #. type: =item
39746 #: ../src/guestfs.pod:2934
39747 msgid "C<clone>"
39748 msgstr ""
39749
39750 #. type: textblock
39751 #: ../src/guestfs.pod:2936
39752 msgid ""
39753 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39754 "command and documentation."
39755 msgstr ""
39756
39757 #. type: =item
39758 #: ../src/guestfs.pod:2939
39759 msgid "C<contrib>"
39760 msgstr ""
39761
39762 #. type: textblock
39763 #: ../src/guestfs.pod:2941
39764 msgid "Outside contributions, experimental parts."
39765 msgstr ""
39766
39767 #. type: =item
39768 #: ../src/guestfs.pod:2943
39769 msgid "C<daemon>"
39770 msgstr ""
39771
39772 #. type: textblock
39773 #: ../src/guestfs.pod:2945
39774 msgid ""
39775 "The daemon that runs inside the libguestfs appliance and carries out actions."
39776 msgstr ""
39777
39778 #. type: =item
39779 #: ../src/guestfs.pod:2948
39780 msgid "C<df>"
39781 msgstr ""
39782
39783 #. type: textblock
39784 #: ../src/guestfs.pod:2950
39785 msgid "L<virt-df(1)> command and documentation."
39786 msgstr ""
39787
39788 #. type: =item
39789 #: ../src/guestfs.pod:2952
39790 msgid "C<edit>"
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../src/guestfs.pod:2954
39795 msgid "L<virt-edit(1)> command and documentation."
39796 msgstr ""
39797
39798 #. type: =item
39799 #: ../src/guestfs.pod:2956
39800 msgid "C<examples>"
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../src/guestfs.pod:2958
39805 msgid "C API example code."
39806 msgstr ""
39807
39808 #. type: =item
39809 #: ../src/guestfs.pod:2960
39810 msgid "C<fish>"
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../src/guestfs.pod:2962
39815 msgid ""
39816 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39817 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39818 "L<virt-tar-out(1)>."
39819 msgstr ""
39820
39821 #. type: =item
39822 #: ../src/guestfs.pod:2966
39823 msgid "C<fuse>"
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../src/guestfs.pod:2968
39828 msgid ""
39829 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39830 msgstr ""
39831
39832 #. type: =item
39833 #: ../src/guestfs.pod:2970
39834 msgid "C<generator>"
39835 msgstr ""
39836
39837 #. type: textblock
39838 #: ../src/guestfs.pod:2972
39839 msgid ""
39840 "The crucially important generator, used to automatically generate large "
39841 "amounts of boilerplate C code for things like RPC and bindings."
39842 msgstr ""
39843
39844 #. type: =item
39845 #: ../src/guestfs.pod:2975
39846 msgid "C<images>"
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:2977
39851 msgid "Files used by the test suite."
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../src/guestfs.pod:2979
39856 msgid "Some \"phony\" guest images which we test against."
39857 msgstr ""
39858
39859 #. type: =item
39860 #: ../src/guestfs.pod:2981
39861 msgid "C<inspector>"
39862 msgstr ""
39863
39864 #. type: textblock
39865 #: ../src/guestfs.pod:2983
39866 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39867 msgstr ""
39868
39869 #. type: =item
39870 #: ../src/guestfs.pod:2985
39871 msgid "C<logo>"
39872 msgstr ""
39873
39874 #. type: textblock
39875 #: ../src/guestfs.pod:2987
39876 msgid "Logo used on the website.  The fish is called Arthur by the way."
39877 msgstr ""
39878
39879 #. type: =item
39880 #: ../src/guestfs.pod:2989
39881 msgid "C<m4>"
39882 msgstr ""
39883
39884 #. type: textblock
39885 #: ../src/guestfs.pod:2991
39886 msgid "M4 macros used by autoconf."
39887 msgstr ""
39888
39889 #. type: =item
39890 #: ../src/guestfs.pod:2993
39891 msgid "C<po>"
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../src/guestfs.pod:2995
39896 msgid "Translations of simple gettext strings."
39897 msgstr ""
39898
39899 #. type: =item
39900 #: ../src/guestfs.pod:2997
39901 msgid "C<po-docs>"
39902 msgstr ""
39903
39904 #. type: textblock
39905 #: ../src/guestfs.pod:2999
39906 msgid ""
39907 "The build infrastructure and PO files for translations of manpages and POD "
39908 "files.  Eventually this will be combined with the C<po> directory, but that "
39909 "is rather complicated."
39910 msgstr ""
39911
39912 #. type: =item
39913 #: ../src/guestfs.pod:3003
39914 msgid "C<regressions>"
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:3005
39919 msgid "Regression tests."
39920 msgstr ""
39921
39922 #. type: =item
39923 #: ../src/guestfs.pod:3007
39924 msgid "C<rescue>"
39925 msgstr ""
39926
39927 #. type: textblock
39928 #: ../src/guestfs.pod:3009
39929 msgid "L<virt-rescue(1)> command and documentation."
39930 msgstr ""
39931
39932 #. type: =item
39933 #: ../src/guestfs.pod:3011
39934 msgid "C<resize>"
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../src/guestfs.pod:3013
39939 msgid "L<virt-resize(1)> command and documentation."
39940 msgstr ""
39941
39942 #. type: =item
39943 #: ../src/guestfs.pod:3015
39944 msgid "C<sparsify>"
39945 msgstr ""
39946
39947 #. type: textblock
39948 #: ../src/guestfs.pod:3017
39949 msgid "L<virt-sparsify(1)> command and documentation."
39950 msgstr ""
39951
39952 #. type: =item
39953 #: ../src/guestfs.pod:3019
39954 msgid "C<src>"
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../src/guestfs.pod:3021
39959 msgid "Source code to the C library."
39960 msgstr ""
39961
39962 #. type: =item
39963 #: ../src/guestfs.pod:3023
39964 msgid "C<tools>"
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:3025
39969 msgid ""
39970 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39971 msgstr ""
39972
39973 #. type: =item
39974 #: ../src/guestfs.pod:3027
39975 msgid "C<test-tool>"
39976 msgstr ""
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:3029
39980 msgid ""
39981 "Test tool for end users to test if their qemu/kernel combination will work "
39982 "with libguestfs."
39983 msgstr ""
39984
39985 #. type: =item
39986 #: ../src/guestfs.pod:3032
39987 msgid "C<csharp>"
39988 msgstr ""
39989
39990 #. type: =item
39991 #: ../src/guestfs.pod:3034
39992 msgid "C<erlang>"
39993 msgstr ""
39994
39995 #. type: =item
39996 #: ../src/guestfs.pod:3036
39997 msgid "C<haskell>"
39998 msgstr ""
39999
40000 #. type: =item
40001 #: ../src/guestfs.pod:3038
40002 msgid "C<java>"
40003 msgstr ""
40004
40005 #. type: =item
40006 #: ../src/guestfs.pod:3040
40007 msgid "C<ocaml>"
40008 msgstr ""
40009
40010 #. type: =item
40011 #: ../src/guestfs.pod:3042
40012 msgid "C<php>"
40013 msgstr ""
40014
40015 #. type: =item
40016 #: ../src/guestfs.pod:3044
40017 msgid "C<perl>"
40018 msgstr ""
40019
40020 #. type: =item
40021 #: ../src/guestfs.pod:3046
40022 msgid "C<python>"
40023 msgstr ""
40024
40025 #. type: =item
40026 #: ../src/guestfs.pod:3048
40027 msgid "C<ruby>"
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../src/guestfs.pod:3050
40032 msgid "Language bindings."
40033 msgstr ""
40034
40035 #. type: =head2
40036 #: ../src/guestfs.pod:3054
40037 msgid "MAKING A STABLE RELEASE"
40038 msgstr ""
40039
40040 #. type: textblock
40041 #: ../src/guestfs.pod:3056
40042 msgid ""
40043 "When we make a stable release, there are several steps documented here.  See "
40044 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40045 "branch policy."
40046 msgstr ""
40047
40048 #. type: textblock
40049 #: ../src/guestfs.pod:3064
40050 msgid ""
40051 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../src/guestfs.pod:3069
40056 msgid "Finalize RELEASE-NOTES."
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../src/guestfs.pod:3073
40061 msgid "Update ROADMAP."
40062 msgstr ""
40063
40064 #. type: textblock
40065 #: ../src/guestfs.pod:3077
40066 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40067 msgstr ""
40068
40069 #. type: textblock
40070 #: ../src/guestfs.pod:3081
40071 msgid "Push and pull from Transifex."
40072 msgstr ""
40073
40074 #. type: textblock
40075 #: ../src/guestfs.pod:3083
40076 msgid "Run:"
40077 msgstr ""
40078
40079 #. type: verbatim
40080 #: ../src/guestfs.pod:3085
40081 #, no-wrap
40082 msgid ""
40083 " tx push -s\n"
40084 "\n"
40085 msgstr ""
40086
40087 #. type: textblock
40088 #: ../src/guestfs.pod:3087
40089 msgid "to push the latest POT files to Transifex.  Then run:"
40090 msgstr ""
40091
40092 #. type: verbatim
40093 #: ../src/guestfs.pod:3089
40094 #, no-wrap
40095 msgid ""
40096 " ./tx-pull.sh\n"
40097 "\n"
40098 msgstr ""
40099
40100 #. type: textblock
40101 #: ../src/guestfs.pod:3091
40102 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40103 msgstr ""
40104
40105 #. type: textblock
40106 #: ../src/guestfs.pod:3095
40107 msgid ""
40108 "Create new stable and development directories under L<http://libguestfs.org/"
40109 "download>."
40110 msgstr ""
40111
40112 #. type: textblock
40113 #: ../src/guestfs.pod:3100
40114 msgid "Create the branch in git:"
40115 msgstr ""
40116
40117 #. type: verbatim
40118 #: ../src/guestfs.pod:3102
40119 #, no-wrap
40120 msgid ""
40121 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40122 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40123 " git branch stable-1.XX\n"
40124 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40125 "\n"
40126 msgstr ""
40127
40128 #. type: =head1
40129 #: ../src/guestfs.pod:3109
40130 msgid "LIMITS"
40131 msgstr ""
40132
40133 #. type: =head2
40134 #: ../src/guestfs.pod:3111
40135 msgid "PROTOCOL LIMITS"
40136 msgstr ""
40137
40138 #. type: textblock
40139 #: ../src/guestfs.pod:3113
40140 msgid ""
40141 "Internally libguestfs uses a message-based protocol to pass API calls and "
40142 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40143 "plenty more detail about this).  The maximum message size used by the "
40144 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40145 "aware of this limit.  The API calls which may be affected are individually "
40146 "documented, with a link back to this section of the documentation."
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../src/guestfs.pod:3121
40151 msgid ""
40152 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40153 "a simple string.  Because this string is at some point internally encoded as "
40154 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40155 "the requested file is larger than this then you will get an error."
40156 msgstr ""
40157
40158 #. type: textblock
40159 #: ../src/guestfs.pod:3127
40160 msgid ""
40161 "In order to transfer large files into and out of the guest filesystem, you "
40162 "need to use particular calls that support this.  The sections L</UPLOADING> "
40163 "and L</DOWNLOADING> document how to do this."
40164 msgstr ""
40165
40166 #. type: textblock
40167 #: ../src/guestfs.pod:3131
40168 msgid ""
40169 "You might also consider mounting the disk image using our FUSE filesystem "
40170 "support (L<guestmount(1)>)."
40171 msgstr ""
40172
40173 #. type: =head2
40174 #: ../src/guestfs.pod:3134
40175 msgid "MAXIMUM NUMBER OF DISKS"
40176 msgstr ""
40177
40178 #. type: textblock
40179 #: ../src/guestfs.pod:3136
40180 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40181 msgstr ""
40182
40183 #. type: textblock
40184 #: ../src/guestfs.pod:3139
40185 msgid ""
40186 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40187 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40188 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40189 "purposes."
40190 msgstr ""
40191
40192 #. type: textblock
40193 #: ../src/guestfs.pod:3144
40194 msgid ""
40195 "We are working to substantially raise this limit in future versions but it "
40196 "requires complex changes to qemu."
40197 msgstr ""
40198
40199 #. type: textblock
40200 #: ../src/guestfs.pod:3147
40201 msgid ""
40202 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40203 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40204 "requires changes to qemu."
40205 msgstr ""
40206
40207 #. type: =head2
40208 #: ../src/guestfs.pod:3151
40209 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40210 msgstr ""
40211
40212 #. type: textblock
40213 #: ../src/guestfs.pod:3153
40214 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40215 msgstr ""
40216
40217 #. type: textblock
40218 #: ../src/guestfs.pod:3155
40219 msgid ""
40220 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40221 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40222 msgstr ""
40223
40224 #. type: textblock
40225 #: ../src/guestfs.pod:3158
40226 msgid ""
40227 "If you attach a disk with more than 15 partitions, the extra partitions are "
40228 "ignored by libguestfs."
40229 msgstr ""
40230
40231 #. type: =head2
40232 #: ../src/guestfs.pod:3161
40233 msgid "MAXIMUM SIZE OF A DISK"
40234 msgstr ""
40235
40236 #. type: textblock
40237 #: ../src/guestfs.pod:3163
40238 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40239 msgstr ""
40240
40241 #. type: textblock
40242 #: ../src/guestfs.pod:3165
40243 msgid ""
40244 "We have tested block devices up to 1 exabyte (2**60 or "
40245 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40246 "filesystem."
40247 msgstr ""
40248
40249 #. type: textblock
40250 #: ../src/guestfs.pod:3169
40251 msgid ""
40252 "Although libguestfs probably does not impose any limit, the underlying host "
40253 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40254 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40255 "TB).  If you store disk images as host logical volumes then you are limited "
40256 "by the maximum size of an LV."
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:3175
40261 msgid ""
40262 "For the hugest disk image files, we recommend using XFS on the host for "
40263 "storage."
40264 msgstr ""
40265
40266 #. type: =head2
40267 #: ../src/guestfs.pod:3178
40268 msgid "MAXIMUM SIZE OF A PARTITION"
40269 msgstr ""
40270
40271 #. type: textblock
40272 #: ../src/guestfs.pod:3180
40273 msgid ""
40274 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40275 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40276 "address a partition located beyond 2 TB on the disk."
40277 msgstr ""
40278
40279 #. type: textblock
40280 #: ../src/guestfs.pod:3184
40281 msgid ""
40282 "It is recommended that you use GPT partitions on disks which are larger than "
40283 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40284 "which are theoretically larger than the largest disk we could support."
40285 msgstr ""
40286
40287 #. type: =head2
40288 #: ../src/guestfs.pod:3189
40289 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40290 msgstr ""
40291
40292 #. type: textblock
40293 #: ../src/guestfs.pod:3191
40294 msgid ""
40295 "This depends on the filesystem type.  libguestfs itself does not impose any "
40296 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40297 "what these limits are."
40298 msgstr ""
40299
40300 #. type: =head2
40301 #: ../src/guestfs.pod:3195
40302 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40303 msgstr ""
40304
40305 #. type: textblock
40306 #: ../src/guestfs.pod:3197
40307 msgid ""
40308 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40309 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40310 "uploads and downloads."
40311 msgstr ""
40312
40313 #. type: =head2
40314 #: ../src/guestfs.pod:3201
40315 msgid "INSPECTION LIMITS"
40316 msgstr ""
40317
40318 #. type: textblock
40319 #: ../src/guestfs.pod:3203
40320 msgid ""
40321 "The inspection code has several arbitrary limits on things like the size of "
40322 "Windows Registry hive it will read, and the length of product name.  These "
40323 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40324 "memory and disk space on the host, and should not be reached in practice.  "
40325 "See the source code for more information."
40326 msgstr ""
40327
40328 #. type: textblock
40329 #: ../src/guestfs.pod:3229
40330 msgid ""
40331 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40332 "effect as calling C<guestfs_set_verbose (g, 1)>."
40333 msgstr ""
40334
40335 #. type: textblock
40336 #: ../src/guestfs.pod:3241
40337 msgid ""
40338 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40339 "the discussion of paths in section L</PATH> above."
40340 msgstr ""
40341
40342 #. type: textblock
40343 #: ../src/guestfs.pod:3250
40344 msgid "See also L</QEMU WRAPPERS> above."
40345 msgstr ""
40346
40347 #. type: textblock
40348 #: ../src/guestfs.pod:3254
40349 msgid ""
40350 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40351 "effect as calling C<guestfs_set_trace (g, 1)>."
40352 msgstr ""
40353
40354 #. type: textblock
40355 #: ../src/guestfs.pod:3272
40356 msgid ""
40357 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40358 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40359 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40360 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40361 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40362 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40363 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40364 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40365 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40366 ">, L<http://libguestfs.org/>."
40367 msgstr ""
40368
40369 #. type: textblock
40370 #: ../src/guestfs.pod:3308
40371 msgid ""
40372 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40373 "(8)>, L<disktype(1)>."
40374 msgstr ""
40375
40376 #. type: =head1
40377 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
40378 #: ../tools/virt-win-reg.pl:772
40379 msgid "BUGS"
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../src/guestfs.pod:3317
40384 msgid "To get a list of bugs against libguestfs use this link:"
40385 msgstr ""
40386
40387 #. type: textblock
40388 #: ../src/guestfs.pod:3319
40389 msgid ""
40390 "L<https://bugzilla.redhat.com/buglist.cgi?"
40391 "component=libguestfs&product=Virtualization+Tools>"
40392 msgstr ""
40393
40394 #. type: textblock
40395 #: ../src/guestfs.pod:3321
40396 msgid "To report a new bug against libguestfs use this link:"
40397 msgstr ""
40398
40399 #. type: textblock
40400 #: ../src/guestfs.pod:3323
40401 msgid ""
40402 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40403 "component=libguestfs&product=Virtualization+Tools>"
40404 msgstr ""
40405
40406 #. type: textblock
40407 #: ../src/guestfs.pod:3325
40408 msgid "When reporting a bug, please check:"
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:3331
40413 msgid "That the bug hasn't been reported already."
40414 msgstr ""
40415
40416 #. type: textblock
40417 #: ../src/guestfs.pod:3335
40418 msgid "That you are testing a recent version."
40419 msgstr ""
40420
40421 #. type: textblock
40422 #: ../src/guestfs.pod:3339
40423 msgid "Describe the bug accurately, and give a way to reproduce it."
40424 msgstr ""
40425
40426 #. type: textblock
40427 #: ../src/guestfs.pod:3343
40428 msgid ""
40429 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40430 "bug report."
40431 msgstr ""
40432
40433 #. type: textblock
40434 #: ../test-tool/libguestfs-test-tool.pod:5
40435 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40436 msgstr ""
40437
40438 #. type: verbatim
40439 #: ../test-tool/libguestfs-test-tool.pod:9
40440 #, no-wrap
40441 msgid ""
40442 " libguestfs-test-tool [--options]\n"
40443 "\n"
40444 msgstr ""
40445
40446 #. type: textblock
40447 #: ../test-tool/libguestfs-test-tool.pod:13
40448 msgid ""
40449 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40450 "to check basic libguestfs functionality is working.  This is needed because "
40451 "libguestfs occasionally breaks for reasons beyond our control: usually "
40452 "because of changes in the underlying qemu or kernel packages, or the host "
40453 "environment."
40454 msgstr ""
40455
40456 #. type: textblock
40457 #: ../test-tool/libguestfs-test-tool.pod:19
40458 msgid "If you suspect a problem in libguestfs, then just run:"
40459 msgstr ""
40460
40461 #. type: verbatim
40462 #: ../test-tool/libguestfs-test-tool.pod:21
40463 #, no-wrap
40464 msgid ""
40465 " libguestfs-test-tool\n"
40466 "\n"
40467 msgstr ""
40468
40469 #. type: textblock
40470 #: ../test-tool/libguestfs-test-tool.pod:23
40471 msgid "It will print lots of diagnostic messages."
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../test-tool/libguestfs-test-tool.pod:25
40476 msgid "If it runs to completion successfully, you will see this near the end:"
40477 msgstr ""
40478
40479 #. type: verbatim
40480 #: ../test-tool/libguestfs-test-tool.pod:27
40481 #, no-wrap
40482 msgid ""
40483 " ===== TEST FINISHED OK =====\n"
40484 "\n"
40485 msgstr ""
40486
40487 #. type: textblock
40488 #: ../test-tool/libguestfs-test-tool.pod:29
40489 msgid "and the test tool will exit with code 0."
40490 msgstr ""
40491
40492 #. type: textblock
40493 #: ../test-tool/libguestfs-test-tool.pod:31
40494 msgid ""
40495 "If it fails (and/or exits with non-zero error code), please paste the "
40496 "I<complete, unedited> output of the test tool into a bug report.  More "
40497 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40498 "> website."
40499 msgstr ""
40500
40501 #. type: textblock
40502 #: ../test-tool/libguestfs-test-tool.pod:42
40503 msgid "Display short usage information and exit."
40504 msgstr ""
40505
40506 #. type: =item
40507 #: ../test-tool/libguestfs-test-tool.pod:44
40508 msgid "B<--qemu qemu_binary>"
40509 msgstr ""
40510
40511 #. type: textblock
40512 #: ../test-tool/libguestfs-test-tool.pod:46
40513 msgid ""
40514 "If you have downloaded another qemu binary, point this option at the full "
40515 "path of the binary to try it."
40516 msgstr ""
40517
40518 #. type: =item
40519 #: ../test-tool/libguestfs-test-tool.pod:49
40520 msgid "B<--qemudir qemu_source_dir>"
40521 msgstr ""
40522
40523 #. type: textblock
40524 #: ../test-tool/libguestfs-test-tool.pod:51
40525 msgid ""
40526 "If you have compiled qemu from source, point this option at the source "
40527 "directory to try it."
40528 msgstr ""
40529
40530 #. type: =item
40531 #: ../test-tool/libguestfs-test-tool.pod:54
40532 msgid "B<-t N>"
40533 msgstr ""
40534
40535 #. type: =item
40536 #: ../test-tool/libguestfs-test-tool.pod:56
40537 msgid "B<--timeout N>"
40538 msgstr ""
40539
40540 #. type: textblock
40541 #: ../test-tool/libguestfs-test-tool.pod:58
40542 msgid ""
40543 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40544 "minutes) which does not usually need to be adjusted."
40545 msgstr ""
40546
40547 #. type: =head1
40548 #: ../test-tool/libguestfs-test-tool.pod:63
40549 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40550 msgstr ""
40551
40552 #. type: textblock
40553 #: ../test-tool/libguestfs-test-tool.pod:65
40554 msgid ""
40555 "If you have compiled another version of qemu from source and would like to "
40556 "try that, then you can use the I<--qemudir> option to point to the qemu "
40557 "source directory."
40558 msgstr ""
40559
40560 #. type: textblock
40561 #: ../test-tool/libguestfs-test-tool.pod:69
40562 msgid ""
40563 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40564 "option to point to the binary."
40565 msgstr ""
40566
40567 #. type: textblock
40568 #: ../test-tool/libguestfs-test-tool.pod:72
40569 msgid ""
40570 "Note when using these options, you can ignore the business of qemu wrapper "
40571 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40572 "wrapper script for you if one is needed."
40573 msgstr ""
40574
40575 #. type: =head1
40576 #: ../test-tool/libguestfs-test-tool.pod:76
40577 msgid "TRYING OUT A DIFFERENT KERNEL"
40578 msgstr ""
40579
40580 #. type: textblock
40581 #: ../test-tool/libguestfs-test-tool.pod:78
40582 msgid ""
40583 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40584 "libguestfs tries.  You do this by setting the environment variables "
40585 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40586 msgstr ""
40587
40588 #. type: textblock
40589 #: ../test-tool/libguestfs-test-tool.pod:82
40590 msgid ""
40591 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40592 "information."
40593 msgstr ""
40594
40595 #. type: =head1
40596 #: ../test-tool/libguestfs-test-tool.pod:85
40597 msgid "SELF-DIAGNOSIS"
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../test-tool/libguestfs-test-tool.pod:87
40602 msgid ""
40603 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40604 "produced by libguestfs-test-tool and/or possible errors."
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../test-tool/libguestfs-test-tool.pod:92
40609 msgid ""
40610 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40611 "I<1> if there was an error."
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../test-tool/libguestfs-test-tool.pod:97
40616 msgid ""
40617 "For the full list of environment variables which may affect libguestfs, "
40618 "please see the L<guestfs(3)> manual page."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../test-tool/libguestfs-test-tool.pod:102
40623 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40624 msgstr ""
40625
40626 #. type: textblock
40627 #: ../tools/virt-list-filesystems.pl:32
40628 msgid ""
40629 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40630 msgstr ""
40631
40632 #. type: verbatim
40633 #: ../tools/virt-list-filesystems.pl:36
40634 #, no-wrap
40635 msgid ""
40636 " virt-list-filesystems [--options] domname\n"
40637 "\n"
40638 msgstr ""
40639
40640 #. type: verbatim
40641 #: ../tools/virt-list-filesystems.pl:38
40642 #, no-wrap
40643 msgid ""
40644 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40645 "\n"
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40650 msgid ""
40651 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40652 "replacement."
40653 msgstr ""
40654
40655 #. type: textblock
40656 #: ../tools/virt-list-filesystems.pl:45
40657 msgid ""
40658 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40659 "are contained in a virtual machine or disk image."
40660 msgstr ""
40661
40662 #. type: textblock
40663 #: ../tools/virt-list-filesystems.pl:49
40664 msgid ""
40665 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40666 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40667 "> tool."
40668 msgstr ""
40669
40670 #. type: textblock
40671 #: ../tools/virt-list-filesystems.pl:112
40672 msgid ""
40673 "With this option, C<virt-list-filesystems> displays the type of each "
40674 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40675 msgstr ""
40676
40677 #. type: =item
40678 #: ../tools/virt-list-filesystems.pl:119
40679 msgid "B<-a>"
40680 msgstr ""
40681
40682 #. type: textblock
40683 #: ../tools/virt-list-filesystems.pl:123
40684 msgid ""
40685 "Normally we only show mountable filesystems.  If this option is given then "
40686 "swap devices are shown too."
40687 msgstr ""
40688
40689 #. type: textblock
40690 #: ../tools/virt-list-filesystems.pl:197
40691 msgid ""
40692 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40693 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40694 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40695 msgstr ""
40696
40697 #. type: textblock
40698 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40699 msgid "Copyright (C) 2009 Red Hat Inc."
40700 msgstr ""
40701
40702 #. type: textblock
40703 #: ../tools/virt-list-partitions.pl:32
40704 msgid ""
40705 "virt-list-partitions - List partitions in a virtual machine or disk image"
40706 msgstr ""
40707
40708 #. type: verbatim
40709 #: ../tools/virt-list-partitions.pl:36
40710 #, no-wrap
40711 msgid ""
40712 " virt-list-partitions [--options] domname\n"
40713 "\n"
40714 msgstr ""
40715
40716 #. type: verbatim
40717 #: ../tools/virt-list-partitions.pl:38
40718 #, no-wrap
40719 msgid ""
40720 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40721 "\n"
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../tools/virt-list-partitions.pl:45
40726 msgid ""
40727 "C<virt-list-partitions> is a command line tool to list the partitions that "
40728 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40729 "first step to using L<virt-resize(1)>."
40730 msgstr ""
40731
40732 #. type: textblock
40733 #: ../tools/virt-list-partitions.pl:50
40734 msgid ""
40735 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40736 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40737 "> tool."
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../tools/virt-list-partitions.pl:113
40742 msgid "Show sizes in human-readable form (eg. \"1G\")."
40743 msgstr ""
40744
40745 #. type: textblock
40746 #: ../tools/virt-list-partitions.pl:123
40747 msgid ""
40748 "With this option, C<virt-list-partitions> displays the type and size of each "
40749 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40750 msgstr ""
40751
40752 #. type: =item
40753 #: ../tools/virt-list-partitions.pl:130
40754 msgid "B<-t>"
40755 msgstr ""
40756
40757 #. type: =item
40758 #: ../tools/virt-list-partitions.pl:132
40759 msgid "B<--total>"
40760 msgstr ""
40761
40762 #. type: textblock
40763 #: ../tools/virt-list-partitions.pl:134
40764 msgid ""
40765 "Display the total size of each block device (as a separate row or rows)."
40766 msgstr ""
40767
40768 #. type: textblock
40769 #: ../tools/virt-list-partitions.pl:267
40770 msgid ""
40771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40772 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40773 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../tools/virt-list-partitions.pl:283
40778 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40779 msgstr ""
40780
40781 #. type: textblock
40782 #: ../tools/virt-make-fs.pl:37
40783 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40784 msgstr ""
40785
40786 #. type: verbatim
40787 #: ../tools/virt-make-fs.pl:41
40788 #, no-wrap
40789 msgid ""
40790 " virt-make-fs [--options] input.tar output.img\n"
40791 "\n"
40792 msgstr ""
40793
40794 #. type: verbatim
40795 #: ../tools/virt-make-fs.pl:43
40796 #, no-wrap
40797 msgid ""
40798 " virt-make-fs [--options] input.tar.gz output.img\n"
40799 "\n"
40800 msgstr ""
40801
40802 #. type: verbatim
40803 #: ../tools/virt-make-fs.pl:45
40804 #, no-wrap
40805 msgid ""
40806 " virt-make-fs [--options] directory output.img\n"
40807 "\n"
40808 msgstr ""
40809
40810 #. type: textblock
40811 #: ../tools/virt-make-fs.pl:49
40812 msgid ""
40813 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40814 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40815 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40816 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40817 "you want to attach these filesystems to existing virtual machines (eg. to "
40818 "import large amounts of read-only data to a VM)."
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../tools/virt-make-fs.pl:57
40823 msgid "Basic usage is:"
40824 msgstr ""
40825
40826 #. type: verbatim
40827 #: ../tools/virt-make-fs.pl:59
40828 #, no-wrap
40829 msgid ""
40830 " virt-make-fs input output.img\n"
40831 "\n"
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../tools/virt-make-fs.pl:61
40836 msgid ""
40837 "where C<input> is either a directory containing files that you want to add, "
40838 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40839 "C<output.img> is a disk image.  The input type is detected automatically.  "
40840 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40841 "extra flags (see L</OPTIONS> below)."
40842 msgstr ""
40843
40844 #. type: =head2
40845 #: ../tools/virt-make-fs.pl:67
40846 msgid "FILESYSTEM TYPE"
40847 msgstr ""
40848
40849 #. type: textblock
40850 #: ../tools/virt-make-fs.pl:69
40851 msgid ""
40852 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40853 "libguestfs supports can be used (but I<not> read-only formats like "
40854 "ISO9660).  Here are some of the more common choices:"
40855 msgstr ""
40856
40857 #. type: =item
40858 #: ../tools/virt-make-fs.pl:75
40859 msgid "I<ext3>"
40860 msgstr ""
40861
40862 #. type: textblock
40863 #: ../tools/virt-make-fs.pl:77
40864 msgid ""
40865 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40866 "you are not going to use the filesystem in a way that requires the journal, "
40867 "then this is just wasted overhead."
40868 msgstr ""
40869
40870 #. type: =item
40871 #: ../tools/virt-make-fs.pl:81
40872 msgid "I<ntfs> or I<vfat>"
40873 msgstr ""
40874
40875 #. type: textblock
40876 #: ../tools/virt-make-fs.pl:83
40877 msgid "Useful if exporting data to a Windows guest."
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../tools/virt-make-fs.pl:85
40882 msgid ""
40883 "I<Note for vfat>: The tar archive or local directory must only contain files "
40884 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40885 "program running within libguestfs is unable to change the ownership of non-"
40886 "root files, since vfat itself does not support this."
40887 msgstr ""
40888
40889 #. type: =item
40890 #: ../tools/virt-make-fs.pl:90
40891 msgid "I<minix>"
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../tools/virt-make-fs.pl:92
40896 msgid ""
40897 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40898 "total filesystem size."
40899 msgstr ""
40900
40901 #. type: =head3
40902 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
40903 #: ../tools/virt-make-fs.pl:149
40904 msgid "EXAMPLE"
40905 msgstr ""
40906
40907 #. type: verbatim
40908 #: ../tools/virt-make-fs.pl:99
40909 #, no-wrap
40910 msgid ""
40911 " virt-make-fs --type=minix input minixfs.img\n"
40912 "\n"
40913 msgstr ""
40914
40915 #. type: =head2
40916 #: ../tools/virt-make-fs.pl:101
40917 msgid "TO PARTITION OR NOT TO PARTITION"
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../tools/virt-make-fs.pl:103
40922 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40923 msgstr ""
40924
40925 #. type: textblock
40926 #: ../tools/virt-make-fs.pl:105
40927 msgid ""
40928 "Adding a partition can make the disk image more compatible with certain "
40929 "virtualized operating systems which don't expect to see a filesystem "
40930 "directly located on a block device (Linux doesn't care and will happily "
40931 "handle both types)."
40932 msgstr ""
40933
40934 #. type: textblock
40935 #: ../tools/virt-make-fs.pl:110
40936 msgid ""
40937 "On the other hand, if you have a partition table then the output image is no "
40938 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40939 "directly on a partitioned disk image.  (However libguestfs tools such as "
40940 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40941 msgstr ""
40942
40943 #. type: textblock
40944 #: ../tools/virt-make-fs.pl:118
40945 msgid "Add an MBR partition:"
40946 msgstr ""
40947
40948 #. type: verbatim
40949 #: ../tools/virt-make-fs.pl:120
40950 #, no-wrap
40951 msgid ""
40952 " virt-make-fs --partition -- input disk.img\n"
40953 "\n"
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../tools/virt-make-fs.pl:122
40958 msgid ""
40959 "If the output disk image could be terabyte-sized or larger, it's better to "
40960 "use an EFI/GPT-compatible partition table:"
40961 msgstr ""
40962
40963 #. type: verbatim
40964 #: ../tools/virt-make-fs.pl:125
40965 #, no-wrap
40966 msgid ""
40967 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40968 "\n"
40969 msgstr ""
40970
40971 #. type: =head2
40972 #: ../tools/virt-make-fs.pl:127
40973 msgid "EXTRA SPACE"
40974 msgstr ""
40975
40976 #. type: textblock
40977 #: ../tools/virt-make-fs.pl:129
40978 msgid ""
40979 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40980 "the files that it contains, but might have extra space.  Depending on how "
40981 "you are going to use the output, you might think this extra space is wasted "
40982 "and want to minimize it, or you might want to leave space so that more files "
40983 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40984 "but you can use the I<--size> flag to leave space in the filesystem if you "
40985 "want it."
40986 msgstr ""
40987
40988 #. type: textblock
40989 #: ../tools/virt-make-fs.pl:137
40990 msgid ""
40991 "An alternative way to leave extra space but not make the output image any "
40992 "bigger is to use an alternative disk image format (instead of the default "
40993 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40994 "image format (check your hypervisor supports this before using it).  This "
40995 "allows you to choose a large I<--size> but the extra space won't actually be "
40996 "allocated in the image until you try to store something in it."
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../tools/virt-make-fs.pl:145
41001 msgid ""
41002 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41003 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41004 "to build another image from scratch."
41005 msgstr ""
41006
41007 #. type: verbatim
41008 #: ../tools/virt-make-fs.pl:151
41009 #, no-wrap
41010 msgid ""
41011 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41012 "\n"
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../tools/virt-make-fs.pl:179
41017 msgid "Enable debugging information."
41018 msgstr ""
41019
41020 #. type: =item
41021 #: ../tools/virt-make-fs.pl:185
41022 msgid "B<--size=E<lt>NE<gt>>"
41023 msgstr ""
41024
41025 #. type: =item
41026 #: ../tools/virt-make-fs.pl:187
41027 msgid "B<--size=+E<lt>NE<gt>>"
41028 msgstr ""
41029
41030 #. type: =item
41031 #: ../tools/virt-make-fs.pl:189
41032 msgid "B<-s E<lt>NE<gt>>"
41033 msgstr ""
41034
41035 #. type: =item
41036 #: ../tools/virt-make-fs.pl:191
41037 msgid "B<-s +E<lt>NE<gt>>"
41038 msgstr ""
41039
41040 #. type: textblock
41041 #: ../tools/virt-make-fs.pl:193
41042 msgid ""
41043 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41044 msgstr ""
41045
41046 #. type: textblock
41047 #: ../tools/virt-make-fs.pl:196
41048 msgid ""
41049 "If this option is I<not> given, then the output image will be just large "
41050 "enough to contain all the files, with not much wasted space."
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../tools/virt-make-fs.pl:199
41055 msgid ""
41056 "To choose a fixed size output disk, specify an absolute number followed by b/"
41057 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41058 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41059 "files, else you will get an error."
41060 msgstr ""
41061
41062 #. type: textblock
41063 #: ../tools/virt-make-fs.pl:204
41064 msgid ""
41065 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41066 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41067 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41068 "the input files, and (approximately) an extra 200 MB free space."
41069 msgstr ""
41070
41071 #. type: textblock
41072 #: ../tools/virt-make-fs.pl:210
41073 msgid ""
41074 "Note that virt-make-fs estimates free space, and therefore will not produce "
41075 "filesystems containing precisely the free space requested.  (It is much more "
41076 "expensive and time-consuming to produce a filesystem which has precisely the "
41077 "desired free space)."
41078 msgstr ""
41079
41080 #. type: =item
41081 #: ../tools/virt-make-fs.pl:219
41082 msgid "B<--format=E<lt>fmtE<gt>>"
41083 msgstr ""
41084
41085 #. type: =item
41086 #: ../tools/virt-make-fs.pl:221
41087 msgid "B<-F E<lt>fmtE<gt>>"
41088 msgstr ""
41089
41090 #. type: textblock
41091 #: ../tools/virt-make-fs.pl:223
41092 msgid "Choose the output disk image format."
41093 msgstr ""
41094
41095 #. type: textblock
41096 #: ../tools/virt-make-fs.pl:225
41097 msgid "The default is C<raw> (raw sparse disk image)."
41098 msgstr ""
41099
41100 #. type: textblock
41101 #: ../tools/virt-make-fs.pl:227
41102 msgid ""
41103 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41104 "that would really make sense here is C<qcow2>."
41105 msgstr ""
41106
41107 #. type: =item
41108 #: ../tools/virt-make-fs.pl:234
41109 msgid "B<--type=E<lt>fsE<gt>>"
41110 msgstr ""
41111
41112 #. type: =item
41113 #: ../tools/virt-make-fs.pl:236
41114 msgid "B<-t E<lt>fsE<gt>>"
41115 msgstr ""
41116
41117 #. type: textblock
41118 #: ../tools/virt-make-fs.pl:238
41119 msgid "Choose the output filesystem type."
41120 msgstr ""
41121
41122 #. type: textblock
41123 #: ../tools/virt-make-fs.pl:240
41124 msgid "The default is C<ext2>."
41125 msgstr ""
41126
41127 #. type: textblock
41128 #: ../tools/virt-make-fs.pl:242
41129 msgid ""
41130 "Any filesystem which is supported read-write by libguestfs can be used here."
41131 msgstr ""
41132
41133 #. type: =item
41134 #: ../tools/virt-make-fs.pl:249
41135 msgid "B<--partition>"
41136 msgstr ""
41137
41138 #. type: =item
41139 #: ../tools/virt-make-fs.pl:251
41140 msgid "B<--partition=E<lt>parttypeE<gt>>"
41141 msgstr ""
41142
41143 #. type: textblock
41144 #: ../tools/virt-make-fs.pl:253
41145 msgid ""
41146 "If specified, this flag adds an MBR partition table to the output disk image."
41147 msgstr ""
41148
41149 #. type: textblock
41150 #: ../tools/virt-make-fs.pl:256
41151 msgid ""
41152 "You can change the partition table type, eg. I<--partition=gpt> for large "
41153 "disks."
41154 msgstr ""
41155
41156 #. type: textblock
41157 #: ../tools/virt-make-fs.pl:259
41158 msgid ""
41159 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41160 "might consider the next parameter to be the partition type.  For example:"
41161 msgstr ""
41162
41163 #. type: verbatim
41164 #: ../tools/virt-make-fs.pl:263
41165 #, no-wrap
41166 msgid ""
41167 " virt-make-fs --partition input.tar output.img\n"
41168 "\n"
41169 msgstr ""
41170
41171 #. type: textblock
41172 #: ../tools/virt-make-fs.pl:265
41173 msgid ""
41174 "would cause virt-make-fs to think you wanted to use a partition type of "
41175 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41176 "dash) between options and the input and output arguments:"
41177 msgstr ""
41178
41179 #. type: verbatim
41180 #: ../tools/virt-make-fs.pl:269
41181 #, no-wrap
41182 msgid ""
41183 " virt-make-fs --partition -- input.tar output.img\n"
41184 "\n"
41185 msgstr ""
41186
41187 #. type: textblock
41188 #: ../tools/virt-make-fs.pl:271
41189 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../tools/virt-make-fs.pl:559
41194 msgid ""
41195 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41196 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41197 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41198 msgstr ""
41199
41200 #. type: textblock
41201 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41202 msgid ""
41203 "When reporting bugs, please enable debugging and capture the I<complete> "
41204 "output:"
41205 msgstr ""
41206
41207 #. type: verbatim
41208 #: ../tools/virt-make-fs.pl:576
41209 #, no-wrap
41210 msgid ""
41211 " export LIBGUESTFS_DEBUG=1\n"
41212 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41213 "\n"
41214 msgstr ""
41215
41216 #. type: textblock
41217 #: ../tools/virt-make-fs.pl:579
41218 msgid ""
41219 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41220 "redhat.com/>"
41221 msgstr ""
41222
41223 #. type: textblock
41224 #: ../tools/virt-tar.pl:33
41225 msgid "virt-tar - Extract or upload files to a virtual machine"
41226 msgstr ""
41227
41228 #. type: verbatim
41229 #: ../tools/virt-tar.pl:37
41230 #, no-wrap
41231 msgid ""
41232 " virt-tar [--options] -x domname directory tarball\n"
41233 "\n"
41234 msgstr ""
41235
41236 #. type: verbatim
41237 #: ../tools/virt-tar.pl:39
41238 #, no-wrap
41239 msgid ""
41240 " virt-tar [--options] -u domname tarball directory\n"
41241 "\n"
41242 msgstr ""
41243
41244 #. type: verbatim
41245 #: ../tools/virt-tar.pl:41
41246 #, no-wrap
41247 msgid ""
41248 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41249 "\n"
41250 msgstr ""
41251
41252 #. type: verbatim
41253 #: ../tools/virt-tar.pl:43
41254 #, no-wrap
41255 msgid ""
41256 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41257 "\n"
41258 msgstr ""
41259
41260 #. type: =head2
41261 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41262 msgid "NOTE"
41263 msgstr ""
41264
41265 #. type: textblock
41266 #: ../tools/virt-tar.pl:47
41267 msgid ""
41268 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41269 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41270 msgstr ""
41271
41272 #. type: textblock
41273 #: ../tools/virt-tar.pl:52
41274 msgid "Download C</home> from the VM into a local tarball:"
41275 msgstr ""
41276
41277 #. type: verbatim
41278 #: ../tools/virt-tar.pl:54
41279 #, no-wrap
41280 msgid ""
41281 " virt-tar -x domname /home home.tar\n"
41282 "\n"
41283 msgstr ""
41284
41285 #. type: verbatim
41286 #: ../tools/virt-tar.pl:56
41287 #, no-wrap
41288 msgid ""
41289 " virt-tar -zx domname /home home.tar.gz\n"
41290 "\n"
41291 msgstr ""
41292
41293 #. type: textblock
41294 #: ../tools/virt-tar.pl:58
41295 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41296 msgstr ""
41297
41298 #. type: verbatim
41299 #: ../tools/virt-tar.pl:60
41300 #, no-wrap
41301 msgid ""
41302 " virt-tar -u domname uploadstuff.tar /tmp\n"
41303 "\n"
41304 msgstr ""
41305
41306 #. type: verbatim
41307 #: ../tools/virt-tar.pl:62
41308 #, no-wrap
41309 msgid ""
41310 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41311 "\n"
41312 msgstr ""
41313
41314 #. type: textblock
41315 #: ../tools/virt-tar.pl:66
41316 msgid ""
41317 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41318 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41319 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41320 msgstr ""
41321
41322 #. type: textblock
41323 #: ../tools/virt-tar.pl:71
41324 msgid ""
41325 "You can use I<-x> (extract) on live virtual machines, but you might get "
41326 "inconsistent results or errors if there is filesystem activity inside the "
41327 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41328 "work, but the only way to guarantee consistent results is if the virtual "
41329 "machine is shut down."
41330 msgstr ""
41331
41332 #. type: textblock
41333 #: ../tools/virt-tar.pl:79
41334 msgid ""
41335 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41336 "parts of a guest filesystem.  There are many possibilities: making backups, "
41337 "uploading data files, snooping on guest activity, fixing or customizing "
41338 "guests, etc."
41339 msgstr ""
41340
41341 #. type: textblock
41342 #: ../tools/virt-tar.pl:84
41343 msgid ""
41344 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41345 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41346 "should look at the L<guestfish(1)> tool."
41347 msgstr ""
41348
41349 #. type: textblock
41350 #: ../tools/virt-tar.pl:88
41351 msgid ""
41352 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41353 "its contents (recursively) from the virtual machine into a local tarball.  "
41354 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41355 "virtual machine.  You cannot use these two options together."
41356 msgstr ""
41357
41358 #. type: textblock
41359 #: ../tools/virt-tar.pl:94
41360 msgid ""
41361 "In addition, you may need to use the I<-z> (gZip) option to enable "
41362 "compression.  When uploading, you have to specify I<-z> if the upload file "
41363 "is compressed because virt-tar won't detect this on its own."
41364 msgstr ""
41365
41366 #. type: textblock
41367 #: ../tools/virt-tar.pl:98
41368 msgid ""
41369 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41370 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41371 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41372 "the L<libguestfs(3)> API)."
41373 msgstr ""
41374
41375 #. type: =item
41376 #: ../tools/virt-tar.pl:160
41377 msgid "B<--extract>"
41378 msgstr ""
41379
41380 #. type: =item
41381 #: ../tools/virt-tar.pl:162
41382 msgid "B<--download>"
41383 msgstr ""
41384
41385 #. type: =item
41386 #: ../tools/virt-tar.pl:164
41387 msgid "B<-u>"
41388 msgstr ""
41389
41390 #. type: =item
41391 #: ../tools/virt-tar.pl:166
41392 msgid "B<--upload>"
41393 msgstr ""
41394
41395 #. type: textblock
41396 #: ../tools/virt-tar.pl:168
41397 msgid ""
41398 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41399 "local tarball."
41400 msgstr ""
41401
41402 #. type: textblock
41403 #: ../tools/virt-tar.pl:171
41404 msgid ""
41405 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41406 "Please read the L</WARNING> section above before using this option."
41407 msgstr ""
41408
41409 #. type: textblock
41410 #: ../tools/virt-tar.pl:175
41411 msgid "You must specify exactly one of these options."
41412 msgstr ""
41413
41414 #. type: =item
41415 #: ../tools/virt-tar.pl:181
41416 msgid "B<-z>"
41417 msgstr ""
41418
41419 #. type: =item
41420 #: ../tools/virt-tar.pl:183
41421 msgid "B<--gzip>"
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../tools/virt-tar.pl:185
41426 msgid "Specify that the input or output tarball is gzip-compressed."
41427 msgstr ""
41428
41429 #. type: textblock
41430 #: ../tools/virt-tar.pl:298
41431 msgid ""
41432 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41433 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41434 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41435 "org/>."
41436 msgstr ""
41437
41438 #. type: textblock
41439 #: ../tools/virt-win-reg.pl:37
41440 msgid ""
41441 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41442 msgstr ""
41443
41444 #. type: verbatim
41445 #: ../tools/virt-win-reg.pl:41
41446 #, no-wrap
41447 msgid ""
41448 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41449 "\n"
41450 msgstr ""
41451
41452 #. type: verbatim
41453 #: ../tools/virt-win-reg.pl:43
41454 #, no-wrap
41455 msgid ""
41456 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41457 "\n"
41458 msgstr ""
41459
41460 #. type: verbatim
41461 #: ../tools/virt-win-reg.pl:45
41462 #, no-wrap
41463 msgid ""
41464 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41465 "\n"
41466 msgstr ""
41467
41468 #. type: verbatim
41469 #: ../tools/virt-win-reg.pl:47
41470 #, no-wrap
41471 msgid ""
41472 " virt-win-reg --merge domname [input.reg ...]\n"
41473 "\n"
41474 msgstr ""
41475
41476 #. type: verbatim
41477 #: ../tools/virt-win-reg.pl:49
41478 #, no-wrap
41479 msgid ""
41480 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41481 "\n"
41482 msgstr ""
41483
41484 #. type: textblock
41485 #: ../tools/virt-win-reg.pl:53
41486 msgid ""
41487 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41488 "virtual machines.  If you do this, you I<will> get irreversible disk "
41489 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41490 "but doesn't catch all cases."
41491 msgstr ""
41492
41493 #. type: textblock
41494 #: ../tools/virt-win-reg.pl:58
41495 msgid ""
41496 "Modifying the Windows Registry is an inherently risky operation.  The format "
41497 "is deliberately obscure and undocumented, and Registry changes can leave the "
41498 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41499 "you have a reliable backup first."
41500 msgstr ""
41501
41502 #. type: textblock
41503 #: ../tools/virt-win-reg.pl:65
41504 msgid ""
41505 "This program can export and merge Windows Registry entries from a Windows "
41506 "guest."
41507 msgstr ""
41508
41509 #. type: textblock
41510 #: ../tools/virt-win-reg.pl:68
41511 msgid ""
41512 "The first parameter is the libvirt guest name or the raw disk image of a "
41513 "Windows guest."
41514 msgstr ""
41515
41516 #. type: textblock
41517 #: ../tools/virt-win-reg.pl:71
41518 msgid ""
41519 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41520 "exported (recursively).  For example:"
41521 msgstr ""
41522
41523 #. type: verbatim
41524 #: ../tools/virt-win-reg.pl:74
41525 #, no-wrap
41526 msgid ""
41527 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41528 "\n"
41529 msgstr ""
41530
41531 #. type: textblock
41532 #: ../tools/virt-win-reg.pl:76
41533 msgid ""
41534 "You can also display single values from within registry keys, for example:"
41535 msgstr ""
41536
41537 #. type: verbatim
41538 #: ../tools/virt-win-reg.pl:79
41539 #, no-wrap
41540 msgid ""
41541 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41542 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41543 " Windows 7 Enterprise\n"
41544 "\n"
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../tools/virt-win-reg.pl:83
41549 msgid ""
41550 "With I<--merge>, you can merge a textual regedit file into the Windows "
41551 "Registry:"
41552 msgstr ""
41553
41554 #. type: verbatim
41555 #: ../tools/virt-win-reg.pl:86
41556 #, no-wrap
41557 msgid ""
41558 " $ virt-win-reg --merge Windows7 changes.reg\n"
41559 "\n"
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../tools/virt-win-reg.pl:90
41564 msgid ""
41565 "This program is only meant for simple access to the registry.  If you want "
41566 "to do complicated things with the registry, we suggest you download the "
41567 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41568 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41569 "L<hivexregedit(1)>."
41570 msgstr ""
41571
41572 #. type: =item
41573 #: ../tools/virt-win-reg.pl:159
41574 msgid "B<--merge>"
41575 msgstr ""
41576
41577 #. type: textblock
41578 #: ../tools/virt-win-reg.pl:161
41579 msgid ""
41580 "In merge mode, this merges a textual regedit file into the Windows Registry "
41581 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41582 "displays or exports Registry entries instead."
41583 msgstr ""
41584
41585 #. type: textblock
41586 #: ../tools/virt-win-reg.pl:165
41587 msgid ""
41588 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41589 "result in disk corruption.  However exporting (without this flag)  is always "
41590 "safe."
41591 msgstr ""
41592
41593 #. type: =item
41594 #: ../tools/virt-win-reg.pl:173
41595 msgid "B<--encoding> UTF-16LE|ASCII"
41596 msgstr ""
41597
41598 #. type: textblock
41599 #: ../tools/virt-win-reg.pl:175
41600 msgid ""
41601 "When merging (only), you may need to specify the encoding for strings to be "
41602 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41603 "(3)/ENCODING STRINGS>."
41604 msgstr ""
41605
41606 #. type: textblock
41607 #: ../tools/virt-win-reg.pl:179
41608 msgid ""
41609 "The default is to use UTF-16LE, which should work with recent versions of "
41610 "Windows."
41611 msgstr ""
41612
41613 #. type: =item
41614 #: ../tools/virt-win-reg.pl:186
41615 msgid "B<--unsafe-printable-strings>"
41616 msgstr ""
41617
41618 #. type: textblock
41619 #: ../tools/virt-win-reg.pl:188
41620 msgid ""
41621 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41622 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41623 "present."
41624 msgstr ""
41625
41626 #. type: textblock
41627 #: ../tools/virt-win-reg.pl:192
41628 msgid ""
41629 "This is unsafe and does not preserve the fidelity of strings in the original "
41630 "Registry for various reasons:"
41631 msgstr ""
41632
41633 #. type: textblock
41634 #: ../tools/virt-win-reg.pl:199
41635 msgid ""
41636 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41637 "other encodings will be corrupted by this transformation."
41638 msgstr ""
41639
41640 #. type: textblock
41641 #: ../tools/virt-win-reg.pl:204
41642 msgid ""
41643 "Assumes that everything which has type 1 or 2 is really a string and that "
41644 "everything else is not a string, but the type field in real Registries is "
41645 "not reliable."
41646 msgstr ""
41647
41648 #. type: textblock
41649 #: ../tools/virt-win-reg.pl:210
41650 msgid ""
41651 "Loses information about whether a zero codepoint followed the string in the "
41652 "Registry or not."
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../tools/virt-win-reg.pl:215
41657 msgid ""
41658 "This all happens because the Registry itself contains no information about "
41659 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41660 msgstr ""
41661
41662 #. type: textblock
41663 #: ../tools/virt-win-reg.pl:219
41664 msgid ""
41665 "You should only use this option for quick hacking and debugging of the "
41666 "Registry contents, and I<never> use it if the output is going to be passed "
41667 "into another program or stored in another Registry."
41668 msgstr ""
41669
41670 #. type: =head1
41671 #: ../tools/virt-win-reg.pl:556
41672 msgid "SUPPORTED SYSTEMS"
41673 msgstr ""
41674
41675 #. type: textblock
41676 #: ../tools/virt-win-reg.pl:558
41677 msgid ""
41678 "The program currently supports Windows NT-derived guests starting with "
41679 "Windows XP through to at least Windows 7."
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../tools/virt-win-reg.pl:561
41684 msgid "The following Registry keys are supported:"
41685 msgstr ""
41686
41687 #. type: =item
41688 #: ../tools/virt-win-reg.pl:565
41689 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41690 msgstr ""
41691
41692 #. type: =item
41693 #: ../tools/virt-win-reg.pl:567
41694 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41695 msgstr ""
41696
41697 #. type: =item
41698 #: ../tools/virt-win-reg.pl:569
41699 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41700 msgstr ""
41701
41702 #. type: =item
41703 #: ../tools/virt-win-reg.pl:571
41704 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41705 msgstr ""
41706
41707 #. type: =item
41708 #: ../tools/virt-win-reg.pl:573
41709 msgid "C<HKEY_USERS\\.DEFAULT>"
41710 msgstr ""
41711
41712 #. type: =item
41713 #: ../tools/virt-win-reg.pl:575
41714 msgid "C<HKEY_USERS\\I<SID>>"
41715 msgstr ""
41716
41717 #. type: textblock
41718 #: ../tools/virt-win-reg.pl:577
41719 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41720 msgstr ""
41721
41722 #. type: =item
41723 #: ../tools/virt-win-reg.pl:579
41724 msgid "C<HKEY_USERS\\I<username>>"
41725 msgstr ""
41726
41727 #. type: textblock
41728 #: ../tools/virt-win-reg.pl:581
41729 msgid ""
41730 "where I<username> is a local user name (this is a libguestfs extension)."
41731 msgstr ""
41732
41733 #. type: textblock
41734 #: ../tools/virt-win-reg.pl:585
41735 msgid ""
41736 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41737 "C<HKEY_USERS>."
41738 msgstr ""
41739
41740 #. type: textblock
41741 #: ../tools/virt-win-reg.pl:588
41742 msgid ""
41743 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41744 "supported (there is no \"current user\")."
41745 msgstr ""
41746
41747 #. type: =head1
41748 #: ../tools/virt-win-reg.pl:591
41749 msgid "ENCODING"
41750 msgstr ""
41751
41752 #. type: textblock
41753 #: ../tools/virt-win-reg.pl:593
41754 msgid ""
41755 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41756 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41757 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41758 "Windows-style line endings, you may need to reencode the whole file before "
41759 "or after processing."
41760 msgstr ""
41761
41762 #. type: textblock
41763 #: ../tools/virt-win-reg.pl:599
41764 msgid ""
41765 "To reencode a file from Windows format to Linux (before processing it with "
41766 "the I<--merge> option), you would do something like this:"
41767 msgstr ""
41768
41769 #. type: verbatim
41770 #: ../tools/virt-win-reg.pl:602
41771 #, no-wrap
41772 msgid ""
41773 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41774 "\n"
41775 msgstr ""
41776
41777 #. type: textblock
41778 #: ../tools/virt-win-reg.pl:604
41779 msgid ""
41780 "To go in the opposite direction, after exporting and before sending the file "
41781 "to a Windows user, do something like this:"
41782 msgstr ""
41783
41784 #. type: verbatim
41785 #: ../tools/virt-win-reg.pl:607
41786 #, no-wrap
41787 msgid ""
41788 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41789 "\n"
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../tools/virt-win-reg.pl:609
41794 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41795 msgstr ""
41796
41797 #. type: textblock
41798 #: ../tools/virt-win-reg.pl:611
41799 msgid ""
41800 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41801 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41802 "style (CRLF) line endings, like this:"
41803 msgstr ""
41804
41805 #. type: verbatim
41806 #: ../tools/virt-win-reg.pl:615
41807 #, no-wrap
41808 msgid ""
41809 " $ file software.reg\n"
41810 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41811 " with CRLF line terminators\n"
41812 "\n"
41813 msgstr ""
41814
41815 #. type: textblock
41816 #: ../tools/virt-win-reg.pl:619
41817 msgid "This file would need conversion before you could I<--merge> it."
41818 msgstr ""
41819
41820 #. type: =head1
41821 #: ../tools/virt-win-reg.pl:621
41822 msgid "CurrentControlSet etc."
41823 msgstr ""
41824
41825 #. type: textblock
41826 #: ../tools/virt-win-reg.pl:623
41827 msgid ""
41828 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41829 "Registry at the level of the hive file, and therefore you cannot modify "
41830 "these."
41831 msgstr ""
41832
41833 #. type: textblock
41834 #: ../tools/virt-win-reg.pl:627
41835 msgid ""
41836 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41837 "circumstances it might refer to another control set.  The way to find out is "
41838 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41839 msgstr ""
41840
41841 #. type: verbatim
41842 #: ../tools/virt-win-reg.pl:631
41843 #, no-wrap
41844 msgid ""
41845 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41846 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41847 " \"Current\"=dword:00000001\n"
41848 " \"Default\"=dword:00000001\n"
41849 " \"Failed\"=dword:00000000\n"
41850 " \"LastKnownGood\"=dword:00000002\n"
41851 "\n"
41852 msgstr ""
41853
41854 #. type: textblock
41855 #: ../tools/virt-win-reg.pl:638
41856 msgid "\"Current\" is the one which Windows will choose when it boots."
41857 msgstr ""
41858
41859 #. type: textblock
41860 #: ../tools/virt-win-reg.pl:640
41861 msgid ""
41862 "Similarly, other C<Current...> keys in the path may need to be replaced."
41863 msgstr ""
41864
41865 #. type: =head1
41866 #: ../tools/virt-win-reg.pl:643
41867 msgid "DELETING REGISTRY KEYS AND VALUES"
41868 msgstr ""
41869
41870 #. type: textblock
41871 #: ../tools/virt-win-reg.pl:645
41872 msgid "To delete a whole registry key, use the syntax:"
41873 msgstr ""
41874
41875 #. type: verbatim
41876 #: ../tools/virt-win-reg.pl:647
41877 #, no-wrap
41878 msgid ""
41879 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41880 "\n"
41881 msgstr ""
41882
41883 #. type: textblock
41884 #: ../tools/virt-win-reg.pl:649
41885 msgid "To delete a single value within a key, use the syntax:"
41886 msgstr ""
41887
41888 #. type: verbatim
41889 #: ../tools/virt-win-reg.pl:651
41890 #, no-wrap
41891 msgid ""
41892 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41893 " \"Value\"=-\n"
41894 "\n"
41895 msgstr ""
41896
41897 #. type: =head1
41898 #: ../tools/virt-win-reg.pl:654
41899 msgid "WINDOWS TIPS"
41900 msgstr ""
41901
41902 #. type: textblock
41903 #: ../tools/virt-win-reg.pl:656
41904 msgid ""
41905 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41906 "be shut off, else you will get disk corruption."
41907 msgstr ""
41908
41909 #. type: =head2
41910 #: ../tools/virt-win-reg.pl:659
41911 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41912 msgstr ""
41913
41914 #. type: textblock
41915 #: ../tools/virt-win-reg.pl:661
41916 msgid ""
41917 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41918 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41919 "is uploaded into C<C:\\>:"
41920 msgstr ""
41921
41922 #. type: verbatim
41923 #: ../tools/virt-win-reg.pl:665
41924 #, no-wrap
41925 msgid ""
41926 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41927 "\n"
41928 msgstr ""
41929
41930 #. type: textblock
41931 #: ../tools/virt-win-reg.pl:667
41932 msgid "Prepare a regedit file containing the registry change:"
41933 msgstr ""
41934
41935 #. type: verbatim
41936 #: ../tools/virt-win-reg.pl:669
41937 #, no-wrap
41938 msgid ""
41939 " cat > test.reg <<'EOF'\n"
41940 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41941 " \"Test\"=\"c:\\\\test.bat\"\n"
41942 " EOF\n"
41943 "\n"
41944 msgstr ""
41945
41946 #. type: textblock
41947 #: ../tools/virt-win-reg.pl:674
41948 msgid ""
41949 "In this example we use the key C<RunOnce> which means that the script will "
41950 "run precisely once when the first user logs in.  If you want it to run every "
41951 "time a user logs in, replace C<RunOnce> with C<Run>."
41952 msgstr ""
41953
41954 #. type: textblock
41955 #: ../tools/virt-win-reg.pl:678
41956 msgid "Now update the registry:"
41957 msgstr ""
41958
41959 #. type: verbatim
41960 #: ../tools/virt-win-reg.pl:680
41961 #, no-wrap
41962 msgid ""
41963 " virt-win-reg --merge WindowsGuest test.reg\n"
41964 "\n"
41965 msgstr ""
41966
41967 #. type: =head2
41968 #: ../tools/virt-win-reg.pl:682
41969 msgid "INSTALLING A SERVICE"
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../tools/virt-win-reg.pl:684
41974 msgid ""
41975 "This section assumes you are familiar with Windows services, and you either "
41976 "have a program which handles the Windows Service Control Protocol directly "
41977 "or you want to run any program using a service wrapper like SrvAny or the "
41978 "free RHSrvAny."
41979 msgstr ""
41980
41981 #. type: textblock
41982 #: ../tools/virt-win-reg.pl:689
41983 msgid ""
41984 "First upload the program and optionally the service wrapper.  In this case "
41985 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41986 msgstr ""
41987
41988 #. type: verbatim
41989 #: ../tools/virt-win-reg.pl:693
41990 #, no-wrap
41991 msgid ""
41992 " guestfish -i -d WindowsGuest <<EOF\n"
41993 "   upload rhsrvany.exe /rhsrvany.exe\n"
41994 "   upload test.exe /test.exe\n"
41995 " EOF\n"
41996 "\n"
41997 msgstr ""
41998
41999 #. type: textblock
42000 #: ../tools/virt-win-reg.pl:698
42001 msgid ""
42002 "Prepare a regedit file containing the registry changes.  In this example, "
42003 "the first registry change is needed for the service itself or the service "
42004 "wrapper (if used).  The second registry change is only needed because I am "
42005 "using the RHSrvAny service wrapper."
42006 msgstr ""
42007
42008 #. type: verbatim
42009 #: ../tools/virt-win-reg.pl:703
42010 #, no-wrap
42011 msgid ""
42012 " cat > service.reg <<'EOF'\n"
42013 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42014 " \"Type\"=dword:00000010\n"
42015 " \"Start\"=dword:00000002\n"
42016 " \"ErrorControl\"=dword:00000001\n"
42017 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42018 " \"DisplayName\"=\"RHSrvAny\"\n"
42019 " \"ObjectName\"=\"NetworkService\"\n"
42020 " \n"
42021 msgstr ""
42022
42023 #. type: verbatim
42024 #: ../tools/virt-win-reg.pl:712
42025 #, no-wrap
42026 msgid ""
42027 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42028 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42029 " \"PWD\"=\"c:\\\\Temp\"\n"
42030 " EOF\n"
42031 "\n"
42032 msgstr ""
42033
42034 #. type: textblock
42035 #: ../tools/virt-win-reg.pl:723
42036 msgid ""
42037 "For use of C<ControlSet001> see the section above in this manual page.  You "
42038 "may need to adjust this according to the control set that is in use by the "
42039 "guest."
42040 msgstr ""
42041
42042 #. type: textblock
42043 #: ../tools/virt-win-reg.pl:729
42044 msgid ""
42045 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42046 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42047 "privileged account."
42048 msgstr ""
42049
42050 #. type: textblock
42051 #: ../tools/virt-win-reg.pl:735
42052 msgid ""
42053 "For the meaning of the magic numbers, see this Microsoft KB article: "
42054 "L<http://support.microsoft.com/kb/103000>."
42055 msgstr ""
42056
42057 #. type: textblock
42058 #: ../tools/virt-win-reg.pl:740
42059 msgid "Update the registry:"
42060 msgstr ""
42061
42062 #. type: verbatim
42063 #: ../tools/virt-win-reg.pl:742
42064 #, no-wrap
42065 msgid ""
42066 " virt-win-reg --merge WindowsGuest service.reg\n"
42067 "\n"
42068 msgstr ""
42069
42070 #. type: textblock
42071 #: ../tools/virt-win-reg.pl:746
42072 msgid ""
42073 "Be careful when passing parameters containing C<\\> (backslash) in the "
42074 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42075 "(but not both) to protect them from the shell."
42076 msgstr ""
42077
42078 #. type: textblock
42079 #: ../tools/virt-win-reg.pl:750
42080 msgid "Paths and value names are case-insensitive."
42081 msgstr ""
42082
42083 #. type: textblock
42084 #: ../tools/virt-win-reg.pl:759
42085 msgid ""
42086 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42087 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42088 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42089 msgstr ""
42090
42091 #. type: verbatim
42092 #: ../tools/virt-win-reg.pl:777
42093 #, no-wrap
42094 msgid ""
42095 " export LIBGUESTFS_DEBUG=1\n"
42096 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42097 "\n"
42098 msgstr ""
42099
42100 #. type: textblock
42101 #: ../tools/virt-win-reg.pl:780
42102 msgid ""
42103 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42104 "redhat.com/>"
42105 msgstr ""