Version 1.14.2.
[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-11-09 22:24+0000\n"
13 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "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:351
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 consumer 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/hw_sector_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
725 " 0\n"
726 "\n"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
732 msgstr ""
733
734 #. type: verbatim
735 #: ../align/virt-alignment-scan.pod:247
736 #, no-wrap
737 msgid ""
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
739 " 4096\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
747 " 0\n"
748 "\n"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
754 msgstr ""
755
756 #. type: verbatim
757 #: ../align/virt-alignment-scan.pod:260
758 #, no-wrap
759 msgid ""
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
761 " 512\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
765 " 4096\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
767 " 65536\n"
768 "\n"
769 msgstr ""
770
771 #. type: textblock
772 #: ../align/virt-alignment-scan.pod:269
773 msgid ""
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
776 msgstr ""
777
778 #. type: textblock
779 #: ../align/virt-alignment-scan.pod:273
780 msgid ""
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
784 msgstr ""
785
786 #. type: textblock
787 #: ../align/virt-alignment-scan.pod:276
788 msgid ""
789 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
791 msgstr ""
792
793 #. type: =head2
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:281
800 msgid ""
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
803 msgstr ""
804
805 #. type: textblock
806 #: ../align/virt-alignment-scan.pod:284
807 msgid ""
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
810 "multiple of 2048 sectors."
811 msgstr ""
812
813 #. type: textblock
814 #: ../align/virt-alignment-scan.pod:288
815 msgid ""
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
818 msgstr ""
819
820 #. type: =head2
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
823 msgstr ""
824
825 #. type: textblock
826 #: ../align/virt-alignment-scan.pod:293
827 msgid ""
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests.  Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
833 msgstr ""
834
835 #. type: textblock
836 #: ../align/virt-alignment-scan.pod:299
837 msgid ""
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems.  If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
841 msgstr ""
842
843 #. type: textblock
844 #: ../align/virt-alignment-scan.pod:303
845 msgid ""
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
848 msgstr ""
849
850 #. type: textblock
851 #: ../align/virt-alignment-scan.pod:306
852 msgid ""
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
856 "contains an example."
857 msgstr ""
858
859 #. type: =head1
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
864 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
869 msgstr ""
870
871 #. type: textblock
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
876 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
880 msgid ""
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space.  You may need to quote or "
883 "escape these characters on the command line.  See the shell manual page L<sh"
884 "(1)> for details."
885 msgstr ""
886
887 #. type: =head1
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
895 msgid "EXIT STATUS"
896 msgstr ""
897
898 #. type: textblock
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
901 msgstr ""
902
903 #. type: =item
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
940 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
981 msgid "*"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:326
986 msgid "0"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:328
991 msgid ""
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
993 msgstr ""
994
995 #. type: textblock
996 #: ../align/virt-alignment-scan.pod:332
997 msgid "1"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../align/virt-alignment-scan.pod:338
1007 msgid "2"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../align/virt-alignment-scan.pod:340
1012 msgid ""
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../align/virt-alignment-scan.pod:345
1019 msgid "3"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../align/virt-alignment-scan.pod:347
1024 msgid ""
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1027 msgstr ""
1028
1029 #. type: =head1
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1047 msgid "SEE ALSO"
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../align/virt-alignment-scan.pod:354
1052 msgid ""
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1066 msgid "AUTHOR"
1067 msgstr ""
1068
1069 #. type: textblock
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1074 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr ""
1080
1081 #. type: =head1
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1099 msgid "COPYRIGHT"
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1116 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1121 msgid ""
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1136 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1141 msgid ""
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1145 "more details."
1146 msgstr ""
1147
1148 #. type: textblock
1149 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1150 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1151 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1152 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1153 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1154 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1155 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1156 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1157 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1158 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1159 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1160 #: ../tools/virt-win-reg.pl:801
1161 msgid ""
1162 "You should have received a copy of the GNU General Public License along with "
1163 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1164 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1165 msgstr ""
1166
1167 #. type: textblock
1168 #: ../cat/virt-cat.pod:5
1169 msgid "virt-cat - Display files in a virtual machine"
1170 msgstr ""
1171
1172 #. type: verbatim
1173 #: ../cat/virt-cat.pod:9
1174 #, no-wrap
1175 msgid ""
1176 " virt-cat [--options] -d domname file [file ...]\n"
1177 "\n"
1178 msgstr ""
1179
1180 #. type: verbatim
1181 #: ../cat/virt-cat.pod:11
1182 #, no-wrap
1183 msgid ""
1184 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1185 "\n"
1186 msgstr ""
1187
1188 #. type: textblock
1189 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1190 #: ../inspector/virt-inspector.pod:13
1191 msgid "Old-style:"
1192 msgstr ""
1193
1194 #. type: verbatim
1195 #: ../cat/virt-cat.pod:15
1196 #, no-wrap
1197 msgid ""
1198 " virt-cat domname file\n"
1199 "\n"
1200 msgstr ""
1201
1202 #. type: verbatim
1203 #: ../cat/virt-cat.pod:17
1204 #, no-wrap
1205 msgid ""
1206 " virt-cat disk.img file\n"
1207 "\n"
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-cat.pod:21
1212 msgid ""
1213 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1214 "C<file> exists in the named virtual machine (or disk image)."
1215 msgstr ""
1216
1217 #. type: textblock
1218 #: ../cat/virt-cat.pod:24
1219 msgid ""
1220 "Multiple filenames can be given, in which case they are concatenated "
1221 "together.  Each filename must be a full path, starting at the root directory "
1222 "(starting with '/')."
1223 msgstr ""
1224
1225 #. type: textblock
1226 #: ../cat/virt-cat.pod:28
1227 msgid ""
1228 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1229 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1230 "(see L</USING GUESTFISH> below)."
1231 msgstr ""
1232
1233 #. type: =head1
1234 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1235 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1236 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1237 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1238 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1239 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1240 #: ../tools/virt-tar.pl:50
1241 msgid "EXAMPLES"
1242 msgstr ""
1243
1244 #. type: textblock
1245 #: ../cat/virt-cat.pod:34
1246 msgid ""
1247 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1248 msgstr ""
1249
1250 #. type: verbatim
1251 #: ../cat/virt-cat.pod:37
1252 #, no-wrap
1253 msgid ""
1254 " virt-cat -d mydomain /etc/fstab\n"
1255 "\n"
1256 msgstr ""
1257
1258 #. type: textblock
1259 #: ../cat/virt-cat.pod:39
1260 msgid "List syslog messages from a VM disk image file:"
1261 msgstr ""
1262
1263 #. type: verbatim
1264 #: ../cat/virt-cat.pod:41
1265 #, no-wrap
1266 msgid ""
1267 " virt-cat -a disk.img /var/log/messages | tail\n"
1268 "\n"
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-cat.pod:43
1273 msgid "Find out what DHCP IP address a VM acquired:"
1274 msgstr ""
1275
1276 #. type: verbatim
1277 #: ../cat/virt-cat.pod:45
1278 #, no-wrap
1279 msgid ""
1280 " virt-cat -d mydomain /var/log/messages | \\\n"
1281 "   grep 'dhclient: bound to' | tail\n"
1282 "\n"
1283 msgstr ""
1284
1285 #. type: textblock
1286 #: ../cat/virt-cat.pod:48
1287 msgid "Find out what packages were recently installed:"
1288 msgstr ""
1289
1290 #. type: verbatim
1291 #: ../cat/virt-cat.pod:50
1292 #, no-wrap
1293 msgid ""
1294 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1295 "\n"
1296 msgstr ""
1297
1298 #. type: textblock
1299 #: ../cat/virt-cat.pod:52
1300 msgid "Find out who is logged on inside a virtual machine:"
1301 msgstr ""
1302
1303 #. type: verbatim
1304 #: ../cat/virt-cat.pod:54
1305 #, no-wrap
1306 msgid ""
1307 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1308 " who /tmp/utmp\n"
1309 "\n"
1310 msgstr ""
1311
1312 #. type: textblock
1313 #: ../cat/virt-cat.pod:57
1314 msgid "or who was logged on:"
1315 msgstr ""
1316
1317 #. type: verbatim
1318 #: ../cat/virt-cat.pod:59
1319 #, no-wrap
1320 msgid ""
1321 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1322 " last -f /tmp/wtmp\n"
1323 "\n"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1328 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1329 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1330 msgid ""
1331 "Add I<file> which should be a disk image from a virtual machine.  If the "
1332 "virtual machine has multiple block devices, you must supply all of them with "
1333 "separate I<-a> options."
1334 msgstr ""
1335
1336 #. type: =item
1337 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1338 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1339 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1340 msgid "B<--echo-keys>"
1341 msgstr ""
1342
1343 #. type: textblock
1344 #: ../cat/virt-cat.pod:100
1345 msgid ""
1346 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1347 "so you cannot see what you are typing.  If you are not worried about Tempest "
1348 "attacks and there is no one else in the room you can specify this flag to "
1349 "see what you are typing."
1350 msgstr ""
1351
1352 #. type: verbatim
1353 #: ../cat/virt-cat.pod:116
1354 #, no-wrap
1355 msgid ""
1356 " virt-cat --format=raw -a disk.img file\n"
1357 "\n"
1358 msgstr ""
1359
1360 #. type: verbatim
1361 #: ../cat/virt-cat.pod:120
1362 #, no-wrap
1363 msgid ""
1364 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1365 "\n"
1366 msgstr ""
1367
1368 #. type: =item
1369 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1370 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1371 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1372 msgid "B<--keys-from-stdin>"
1373 msgstr ""
1374
1375 #. type: textblock
1376 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1377 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1378 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1379 msgid ""
1380 "Read key or passphrase parameters from stdin.  The default is to try to read "
1381 "passphrases from the user by opening C</dev/tty>."
1382 msgstr ""
1383
1384 #. type: =head1
1385 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1386 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1387 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1388 msgstr ""
1389
1390 #. type: textblock
1391 #: ../cat/virt-cat.pod:154
1392 msgid "Previous versions of virt-cat allowed you to write either:"
1393 msgstr ""
1394
1395 #. type: verbatim
1396 #: ../cat/virt-cat.pod:156
1397 #, no-wrap
1398 msgid ""
1399 " virt-cat disk.img [disk.img ...] file\n"
1400 "\n"
1401 msgstr ""
1402
1403 #. type: textblock
1404 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1405 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1406 msgid "or"
1407 msgstr ""
1408
1409 #. type: verbatim
1410 #: ../cat/virt-cat.pod:160
1411 #, no-wrap
1412 msgid ""
1413 " virt-cat guestname file\n"
1414 "\n"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1419 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1420 msgid ""
1421 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1422 "the confusing case where a disk image might have the same name as a guest."
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1427 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1428 msgid "For compatibility the old style is still supported."
1429 msgstr ""
1430
1431 #. type: =head1
1432 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1433 msgid "WINDOWS PATHS"
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-cat.pod:170
1438 msgid ""
1439 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1440 "paths (eg. C<E:\\foo\\bar.txt>)."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1445 msgid "If and only if the guest is running Windows then:"
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1450 msgid ""
1451 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1452 "to the correct filesystem."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1457 msgid ""
1458 "Any backslash (C<\\>) characters in the path are replaced with forward "
1459 "slashes so that libguestfs can process it."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:189
1464 msgid ""
1465 "The path is resolved case insensitively to locate the file that should be "
1466 "displayed."
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1471 msgid "There are some known shortcomings:"
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1476 msgid "Some NTFS symbolic links may not be followed correctly."
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1481 msgid "NTFS junction points that cross filesystems are not followed."
1482 msgstr ""
1483
1484 #. type: =head1
1485 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1486 msgid "USING GUESTFISH"
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-cat.pod:210
1491 msgid ""
1492 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1493 "C<virt-cat> doesn't work."
1494 msgstr ""
1495
1496 #. type: textblock
1497 #: ../cat/virt-cat.pod:213
1498 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1499 msgstr ""
1500
1501 #. type: verbatim
1502 #: ../cat/virt-cat.pod:215
1503 #, no-wrap
1504 msgid ""
1505 " guestfish --ro -i -d domname download file -\n"
1506 "\n"
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-cat.pod:217
1511 msgid ""
1512 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1513 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-cat.pod:221
1518 msgid ""
1519 "The command above uses libguestfs's guest inspection feature and so does not "
1520 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1521 "disk images that don't contain guests.  To display a file from a disk image "
1522 "directly, use:"
1523 msgstr ""
1524
1525 #. type: verbatim
1526 #: ../cat/virt-cat.pod:226
1527 #, no-wrap
1528 msgid ""
1529 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1530 "\n"
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-cat.pod:228
1535 msgid ""
1536 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1537 "the disk image, and C<file> is the full path to the file."
1538 msgstr ""
1539
1540 #. type: textblock
1541 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1542 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1543 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1544 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1545 msgid ""
1546 "This program returns 0 if successful, or non-zero if there was an error."
1547 msgstr ""
1548
1549 #. type: textblock
1550 #: ../cat/virt-cat.pod:245
1551 msgid ""
1552 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1553 "tar-out(1)>, L<http://libguestfs.org/>."
1554 msgstr ""
1555
1556 #. type: textblock
1557 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1558 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1559 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1560 msgstr ""
1561
1562 #. type: textblock
1563 #: ../cat/virt-filesystems.pod:5
1564 msgid ""
1565 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1566 "virtual machine or disk image"
1567 msgstr ""
1568
1569 #. type: verbatim
1570 #: ../cat/virt-filesystems.pod:9
1571 #, no-wrap
1572 msgid ""
1573 " virt-filesystems [--options] -d domname\n"
1574 "\n"
1575 msgstr ""
1576
1577 #. type: verbatim
1578 #: ../cat/virt-filesystems.pod:11
1579 #, no-wrap
1580 msgid ""
1581 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1582 "\n"
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-filesystems.pod:15
1587 msgid ""
1588 "This tool allows you to discover filesystems, partitions, logical volumes, "
1589 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1590 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1591 msgstr ""
1592
1593 #. type: textblock
1594 #: ../cat/virt-filesystems.pod:20
1595 msgid ""
1596 "One use for this tool is from shell scripts to iterate over all filesystems "
1597 "from a disk image:"
1598 msgstr ""
1599
1600 #. type: verbatim
1601 #: ../cat/virt-filesystems.pod:23
1602 #, no-wrap
1603 msgid ""
1604 " for fs in $(virt-filesystems -a disk.img); do\n"
1605 "   # ...\n"
1606 " done\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-filesystems.pod:27
1612 msgid ""
1613 "Another use is to list partitions before using another tool to modify those "
1614 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1615 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1616 msgstr ""
1617
1618 #. type: textblock
1619 #: ../cat/virt-filesystems.pod:32
1620 msgid ""
1621 "Various command line options control what this program displays.  You need "
1622 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1623 "guest respectively.  If you just specify that then the program shows "
1624 "filesystems found, one per line, like this:"
1625 msgstr ""
1626
1627 #. type: verbatim
1628 #: ../cat/virt-filesystems.pod:37
1629 #, no-wrap
1630 msgid ""
1631 " $ virt-filesystems -a disk.img\n"
1632 " /dev/sda1\n"
1633 " /dev/vg_guest/lv_root\n"
1634 "\n"
1635 msgstr ""
1636
1637 #. type: textblock
1638 #: ../cat/virt-filesystems.pod:41
1639 msgid ""
1640 "If you add I<-l> or I<--long> then the output includes extra information:"
1641 msgstr ""
1642
1643 #. type: verbatim
1644 #: ../cat/virt-filesystems.pod:44
1645 #, no-wrap
1646 msgid ""
1647 " $ virt-filesystems -a disk.img -l\n"
1648 " Name                   Type         VFS   Label  Size\n"
1649 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1650 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1651 "\n"
1652 msgstr ""
1653
1654 #. type: textblock
1655 #: ../cat/virt-filesystems.pod:49
1656 msgid ""
1657 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1658 "shown as well:"
1659 msgstr ""
1660
1661 #. type: verbatim
1662 #: ../cat/virt-filesystems.pod:52
1663 #, no-wrap
1664 msgid ""
1665 " $ virt-filesystems -a disk.img --extra\n"
1666 " /dev/sda1\n"
1667 " /dev/vg_guest/lv_root\n"
1668 " /dev/vg_guest/lv_swap\n"
1669 " /dev/vg_guest/lv_data\n"
1670 "\n"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-filesystems.pod:58
1675 msgid ""
1676 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1677 msgstr ""
1678
1679 #. type: verbatim
1680 #: ../cat/virt-filesystems.pod:60
1681 #, no-wrap
1682 msgid ""
1683 " $ virt-filesystems -a disk.img --partitions\n"
1684 " /dev/sda1\n"
1685 " /dev/sda2\n"
1686 "\n"
1687 msgstr ""
1688
1689 #. type: textblock
1690 #: ../cat/virt-filesystems.pod:64
1691 msgid ""
1692 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1693 "volumes>, I<--block-devices> to list those items."
1694 msgstr ""
1695
1696 #. type: textblock
1697 #: ../cat/virt-filesystems.pod:67
1698 msgid ""
1699 "You can use these options in combination as well (if you want a combination "
1700 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1701 "items fall into several categories (eg. C</dev/sda1> might be both a "
1702 "partition and a filesystem).  These items are listed several times.  To get "
1703 "a list which includes absolutely everything that virt-filesystems knows "
1704 "about, use the I<--all> option."
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-filesystems.pod:74
1709 msgid ""
1710 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1711 "uuid> option to display device and filesystem UUIDs in the long output."
1712 msgstr ""
1713
1714 #. type: textblock
1715 #: ../cat/virt-filesystems.pod:78
1716 msgid ""
1717 "I<--all --long --uuid> is a useful combination to display all possible "
1718 "information about everything."
1719 msgstr ""
1720
1721 #. type: verbatim
1722 #: ../cat/virt-filesystems.pod:81
1723 #, no-wrap
1724 msgid ""
1725 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1726 " Name      Type       VFS  Label           Size Parent   UUID\n"
1727 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1728 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1729 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1730 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1731 " /dev/sda  device     -    -               20G  -        -\n"
1732 "\n"
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../cat/virt-filesystems.pod:89
1737 msgid ""
1738 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1739 msgstr ""
1740
1741 #. type: =item
1742 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1743 msgid "B<--all>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-filesystems.pod:112
1748 msgid ""
1749 "Display everything.  This is currently the same as specifying these options: "
1750 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1751 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1752 "added to this list in future)."
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../cat/virt-filesystems.pod:117
1757 msgid "See also I<--long>."
1758 msgstr ""
1759
1760 #. type: =item
1761 #: ../cat/virt-filesystems.pod:119
1762 msgid "B<--blkdevs>"
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-filesystems.pod:121
1767 msgid "B<--block-devices>"
1768 msgstr ""
1769
1770 #. type: textblock
1771 #: ../cat/virt-filesystems.pod:123
1772 msgid "Display block devices."
1773 msgstr ""
1774
1775 #. type: =item
1776 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1777 msgid "B<--csv>"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1782 msgid ""
1783 "Write out the results in CSV format (comma-separated values).  This format "
1784 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1785 "ABOUT CSV FORMAT> below."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../cat/virt-filesystems.pod:150
1790 msgid ""
1791 "When prompting for keys and passphrases, virt-filesystems normally turns "
1792 "echoing off so you cannot see what you are typing.  If you are not worried "
1793 "about Tempest attacks and there is no one else in the room you can specify "
1794 "this flag to see what you are typing."
1795 msgstr ""
1796
1797 #. type: =item
1798 #: ../cat/virt-filesystems.pod:155
1799 msgid "B<--extra>"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:157
1804 msgid ""
1805 "This causes filesystems that are not ordinary, mountable filesystems to be "
1806 "displayed.  This category includes swapspace, and filesystems that are empty "
1807 "or contain unknown data."
1808 msgstr ""
1809
1810 #. type: textblock
1811 #: ../cat/virt-filesystems.pod:161
1812 msgid "This option implies I<--filesystems>."
1813 msgstr ""
1814
1815 #. type: =item
1816 #: ../cat/virt-filesystems.pod:163
1817 msgid "B<--filesystems>"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-filesystems.pod:165
1822 msgid ""
1823 "Display mountable filesystems.  If no display option was selected then this "
1824 "option is implied."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:168
1829 msgid "With I<--extra>, non-mountable filesystems are shown too."
1830 msgstr ""
1831
1832 #. type: verbatim
1833 #: ../cat/virt-filesystems.pod:181
1834 #, no-wrap
1835 msgid ""
1836 " virt-filesystems --format=raw -a disk.img\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: verbatim
1841 #: ../cat/virt-filesystems.pod:185
1842 #, no-wrap
1843 msgid ""
1844 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1845 "\n"
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1850 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1851 #: ../tools/virt-list-partitions.pl:109
1852 msgid "B<-h>"
1853 msgstr ""
1854
1855 #. type: =item
1856 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1857 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1858 msgid "B<--human-readable>"
1859 msgstr ""
1860
1861 #. type: textblock
1862 #: ../cat/virt-filesystems.pod:198
1863 msgid "In I<--long> mode, display sizes in human-readable format."
1864 msgstr ""
1865
1866 #. type: =item
1867 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1868 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1869 msgid "B<-l>"
1870 msgstr ""
1871
1872 #. type: =item
1873 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1874 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1875 msgid "B<--long>"
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-filesystems.pod:209
1880 msgid "Display extra columns of data (\"long format\")."
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:211
1885 msgid "A title row is added unless you also specify I<--no-title>."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:213
1890 msgid ""
1891 "The extra columns displayed depend on what output you select, and the "
1892 "ordering of columns may change in future versions.  Use the title row, I<--"
1893 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1894 "programs."
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-filesystems.pod:218
1899 msgid ""
1900 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1901 "default is to show raw numbers of I<bytes>."
1902 msgstr ""
1903
1904 #. type: textblock
1905 #: ../cat/virt-filesystems.pod:221
1906 msgid "Use I<--uuid> to display UUIDs too."
1907 msgstr ""
1908
1909 #. type: =item
1910 #: ../cat/virt-filesystems.pod:223
1911 msgid "B<--lvs>"
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:225
1916 msgid "B<--logvols>"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:227
1921 msgid "B<--logical-volumes>"
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-filesystems.pod:229
1926 msgid ""
1927 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1928 "of whether the LVs contain filesystems."
1929 msgstr ""
1930
1931 #. type: =item
1932 #: ../cat/virt-filesystems.pod:232
1933 msgid "B<--no-title>"
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-filesystems.pod:234
1938 msgid "In I<--long> mode, don't add a title row."
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:236
1943 msgid ""
1944 "Note that the order of the columns is not fixed, and may change in future "
1945 "versions of virt-filesystems, so using this option may give you unexpected "
1946 "surprises."
1947 msgstr ""
1948
1949 #. type: =item
1950 #: ../cat/virt-filesystems.pod:240
1951 msgid "B<--parts>"
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:242
1956 msgid "B<--partitions>"
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-filesystems.pod:244
1961 msgid ""
1962 "Display partitions.  In this mode, these are displayed irrespective of "
1963 "whether the partitions contain filesystems."
1964 msgstr ""
1965
1966 #. type: =item
1967 #: ../cat/virt-filesystems.pod:247
1968 msgid "B<--pvs>"
1969 msgstr ""
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:249
1973 msgid "B<--physvols>"
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:251
1978 msgid "B<--physical-volumes>"
1979 msgstr ""
1980
1981 #. type: textblock
1982 #: ../cat/virt-filesystems.pod:253
1983 msgid "Display LVM physical volumes."
1984 msgstr ""
1985
1986 #. type: =item
1987 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1988 msgid "B<--uuid>"
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:257
1993 msgid "B<--uuids>"
1994 msgstr ""
1995
1996 #. type: textblock
1997 #: ../cat/virt-filesystems.pod:259
1998 msgid "In I<--long> mode, display UUIDs as well."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:273
2003 msgid "B<--vgs>"
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:275
2008 msgid "B<--volgroups>"
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:277
2013 msgid "B<--volume-groups>"
2014 msgstr ""
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:279
2018 msgid "Display LVM volume groups."
2019 msgstr ""
2020
2021 #. type: =head1
2022 #: ../cat/virt-filesystems.pod:287
2023 msgid "COLUMNS"
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../cat/virt-filesystems.pod:289
2028 msgid ""
2029 "Note that columns in the output are subject to reordering and change in "
2030 "future versions of this tool."
2031 msgstr ""
2032
2033 #. type: =item
2034 #: ../cat/virt-filesystems.pod:294
2035 msgid "B<Name>"
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../cat/virt-filesystems.pod:296
2040 msgid "The filesystem, partition, block device or LVM name."
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:298
2045 msgid ""
2046 "For device and partition names these are displayed as canonical libguestfs "
2047 "names, so that for example C</dev/sda2> is the second partition on the first "
2048 "device."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-filesystems.pod:302
2053 msgid ""
2054 "If the I<--long> option is B<not> specified, then only the name column is "
2055 "shown in the output."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-filesystems.pod:305
2060 msgid "B<Type>"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../cat/virt-filesystems.pod:307
2065 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2066 msgstr ""
2067
2068 #. type: =item
2069 #: ../cat/virt-filesystems.pod:309
2070 msgid "B<VFS>"
2071 msgstr ""
2072
2073 #. type: textblock
2074 #: ../cat/virt-filesystems.pod:311
2075 msgid ""
2076 "If there is a filesystem, then this column displays the filesystem type if "
2077 "one could be detected, eg. C<ext4>."
2078 msgstr ""
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:314
2082 msgid "B<Label>"
2083 msgstr ""
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:316
2087 msgid ""
2088 "If the object has a label (used for identifying and mounting filesystems) "
2089 "then this column contains the label."
2090 msgstr ""
2091
2092 #. type: =item
2093 #: ../cat/virt-filesystems.pod:319
2094 msgid "B<MBR>"
2095 msgstr ""
2096
2097 #. type: textblock
2098 #: ../cat/virt-filesystems.pod:321
2099 msgid ""
2100 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2101 "comprehensive list of partition types can be found here: L<http://www.win."
2102 "tue.nl/~aeb/partitions/partition_types-1.html>"
2103 msgstr ""
2104
2105 #. type: textblock
2106 #: ../cat/virt-filesystems.pod:325
2107 msgid "This is only applicable for DOS (MBR) partitions."
2108 msgstr ""
2109
2110 #. type: =item
2111 #: ../cat/virt-filesystems.pod:327
2112 msgid "B<Size>"
2113 msgstr ""
2114
2115 #. type: textblock
2116 #: ../cat/virt-filesystems.pod:329
2117 msgid ""
2118 "The size of the object in bytes.  If the I<--human> option is used then the "
2119 "size is displayed in a human-readable form."
2120 msgstr ""
2121
2122 #. type: =item
2123 #: ../cat/virt-filesystems.pod:332
2124 msgid "B<Parent>"
2125 msgstr ""
2126
2127 #. type: textblock
2128 #: ../cat/virt-filesystems.pod:334
2129 msgid ""
2130 "The parent column records the parent relationship between objects.  For "
2131 "example, if the object is a partition, then this column contains the name of "
2132 "the containing device.  If the object is a logical volume, then this column "
2133 "is the name of the volume group."
2134 msgstr ""
2135
2136 #. type: =item
2137 #: ../cat/virt-filesystems.pod:339
2138 msgid "B<UUID>"
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../cat/virt-filesystems.pod:341
2143 msgid ""
2144 "If the object has a UUID (used for identifying and mounting filesystems and "
2145 "block devices) then this column contains the UUID as a string."
2146 msgstr ""
2147
2148 #. type: textblock
2149 #: ../cat/virt-filesystems.pod:345
2150 msgid "The UUID is only displayed if the I<--uuid> option is given."
2151 msgstr ""
2152
2153 #. type: =head1
2154 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2155 #: ../df/virt-df.pod:191
2156 msgid "NOTE ABOUT CSV FORMAT"
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2161 #: ../df/virt-df.pod:193
2162 msgid ""
2163 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2164 "should be easy to parse, but it is definitely not easy to parse."
2165 msgstr ""
2166
2167 #. type: textblock
2168 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2169 #: ../df/virt-df.pod:196
2170 msgid ""
2171 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2172 "reliably.  This example has two columns:"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2177 #: ../df/virt-df.pod:199
2178 #, no-wrap
2179 msgid ""
2180 " \"foo,bar\",baz\n"
2181 "\n"
2182 msgstr ""
2183
2184 #. type: textblock
2185 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2186 #: ../df/virt-df.pod:201
2187 msgid ""
2188 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2189 "reliably.  This example has one row:"
2190 msgstr ""
2191
2192 #. type: verbatim
2193 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2194 #: ../df/virt-df.pod:204
2195 #, no-wrap
2196 msgid ""
2197 " \"foo\n"
2198 " bar\",baz\n"
2199 "\n"
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2204 #: ../df/virt-df.pod:207
2205 msgid ""
2206 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2207 "packaged in major Linux distributions)."
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2212 #: ../df/virt-df.pod:210
2213 msgid ""
2214 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2215 "or Python's built-in csv library)."
2216 msgstr ""
2217
2218 #. type: textblock
2219 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2220 #: ../df/virt-df.pod:213
2221 msgid "Most spreadsheets and databases can import CSV directly."
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-filesystems.pod:387
2226 msgid ""
2227 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2228 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2229 "libguestfs.org/>."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2234 msgid "Copyright (C) 2010 Red Hat Inc."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:5
2239 msgid "virt-ls - List files in a virtual machine"
2240 msgstr ""
2241
2242 #. type: verbatim
2243 #: ../cat/virt-ls.pod:9
2244 #, no-wrap
2245 msgid ""
2246 " virt-ls [--options] -d domname directory [directory ...]\n"
2247 "\n"
2248 msgstr ""
2249
2250 #. type: verbatim
2251 #: ../cat/virt-ls.pod:11
2252 #, no-wrap
2253 msgid ""
2254 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2260 msgid "Old style:"
2261 msgstr ""
2262
2263 #. type: verbatim
2264 #: ../cat/virt-ls.pod:15
2265 #, no-wrap
2266 msgid ""
2267 " virt-ls [--options] domname directory\n"
2268 "\n"
2269 msgstr ""
2270
2271 #. type: verbatim
2272 #: ../cat/virt-ls.pod:17
2273 #, no-wrap
2274 msgid ""
2275 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2276 "\n"
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-ls.pod:21
2281 msgid ""
2282 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2283 "more from a virtual machine or disk image."
2284 msgstr ""
2285
2286 #. type: textblock
2287 #: ../cat/virt-ls.pod:24
2288 msgid ""
2289 "Multiple directory names can be given, in which case the output from each is "
2290 "concatenated."
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:27
2295 msgid ""
2296 "To list directories from a libvirt guest use the I<-d> option to specify the "
2297 "name of the guest.  For a disk image, use the I<-a> option."
2298 msgstr ""
2299
2300 #. type: textblock
2301 #: ../cat/virt-ls.pod:31
2302 msgid ""
2303 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2304 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2305 "(3)> API."
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../cat/virt-ls.pod:37
2310 msgid "Get a list of all files and directories in a virtual machine:"
2311 msgstr ""
2312
2313 #. type: verbatim
2314 #: ../cat/virt-ls.pod:39
2315 #, no-wrap
2316 msgid ""
2317 " virt-ls -R -d guest /\n"
2318 "\n"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../cat/virt-ls.pod:41
2323 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2324 msgstr ""
2325
2326 #. type: verbatim
2327 #: ../cat/virt-ls.pod:43
2328 #, no-wrap
2329 msgid ""
2330 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2331 "\n"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../cat/virt-ls.pod:45
2336 msgid "List all public-writable directories in a Linux virtual machine:"
2337 msgstr ""
2338
2339 #. type: verbatim
2340 #: ../cat/virt-ls.pod:47
2341 #, no-wrap
2342 msgid ""
2343 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2344 "\n"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:49
2349 msgid "List all Unix domain sockets in a Linux virtual machine:"
2350 msgstr ""
2351
2352 #. type: verbatim
2353 #: ../cat/virt-ls.pod:51
2354 #, no-wrap
2355 msgid ""
2356 " virt-ls -lR -d guest / | grep '^s'\n"
2357 "\n"
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../cat/virt-ls.pod:53
2362 msgid "List all regular files with filenames ending in '.png':"
2363 msgstr ""
2364
2365 #. type: verbatim
2366 #: ../cat/virt-ls.pod:55
2367 #, no-wrap
2368 msgid ""
2369 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2370 "\n"
2371 msgstr ""
2372
2373 #. type: textblock
2374 #: ../cat/virt-ls.pod:57
2375 msgid "To display files larger than 10MB in home directories:"
2376 msgstr ""
2377
2378 #. type: verbatim
2379 #: ../cat/virt-ls.pod:59
2380 #, no-wrap
2381 msgid ""
2382 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2383 "\n"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../cat/virt-ls.pod:61
2388 msgid "Find everything modified in the last 7 days:"
2389 msgstr ""
2390
2391 #. type: verbatim
2392 #: ../cat/virt-ls.pod:63
2393 #, no-wrap
2394 msgid ""
2395 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2396 "\n"
2397 msgstr ""
2398
2399 #. type: textblock
2400 #: ../cat/virt-ls.pod:65
2401 msgid "Find regular files modified in the last 24 hours:"
2402 msgstr ""
2403
2404 #. type: verbatim
2405 #: ../cat/virt-ls.pod:67
2406 #, no-wrap
2407 msgid ""
2408 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2409 "\n"
2410 msgstr ""
2411
2412 #. type: =head2
2413 #: ../cat/virt-ls.pod:69
2414 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../cat/virt-ls.pod:71
2419 msgid ""
2420 "Find the differences between files in a guest and an earlier snapshot of the "
2421 "same guest."
2422 msgstr ""
2423
2424 #. type: verbatim
2425 #: ../cat/virt-ls.pod:74
2426 #, no-wrap
2427 msgid ""
2428 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2429 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2430 " diff -u old new | less\n"
2431 "\n"
2432 msgstr ""
2433
2434 #. type: textblock
2435 #: ../cat/virt-ls.pod:78
2436 msgid ""
2437 "The commands above won't find files where the content has changed but the "
2438 "metadata (eg. file size and modification date) is the same.  To do that, you "
2439 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2440 "checksum> can be quite slow since it has to read and compute a checksum of "
2441 "every regular file in the virtual machine."
2442 msgstr ""
2443
2444 #. type: =head1
2445 #: ../cat/virt-ls.pod:84
2446 msgid "OUTPUT MODES"
2447 msgstr ""
2448
2449 #. type: textblock
2450 #: ../cat/virt-ls.pod:86
2451 msgid ""
2452 "C<virt-ls> has four output modes, controlled by different combinations of "
2453 "the I<-l> and I<-R> options."
2454 msgstr ""
2455
2456 #. type: =head2
2457 #: ../cat/virt-ls.pod:89
2458 msgid "SIMPLE LISTING"
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../cat/virt-ls.pod:91
2463 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2464 msgstr ""
2465
2466 #. type: verbatim
2467 #: ../cat/virt-ls.pod:93
2468 #, no-wrap
2469 msgid ""
2470 " $ virt-ls -d guest /\n"
2471 " bin\n"
2472 " boot\n"
2473 " [etc.]\n"
2474 "\n"
2475 msgstr ""
2476
2477 #. type: =head2
2478 #: ../cat/virt-ls.pod:98
2479 msgid "LONG LISTING"
2480 msgstr ""
2481
2482 #. type: textblock
2483 #: ../cat/virt-ls.pod:100
2484 msgid ""
2485 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2486 "(more specifically, like the C<guestfs_ll> function)."
2487 msgstr ""
2488
2489 #. type: verbatim
2490 #: ../cat/virt-ls.pod:103
2491 #, no-wrap
2492 msgid ""
2493 " $ virt-ls -l -d guest /\n"
2494 " total 204\n"
2495 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2496 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2497 " [etc.]\n"
2498 "\n"
2499 msgstr ""
2500
2501 #. type: textblock
2502 #: ../cat/virt-ls.pod:109
2503 msgid ""
2504 "Note that while this is useful for displaying a directory, do not try "
2505 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2506 "instead."
2507 msgstr ""
2508
2509 #. type: =head2
2510 #: ../cat/virt-ls.pod:113
2511 msgid "RECURSIVE LISTING"
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:115
2516 msgid ""
2517 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2518 "and directories recursively:"
2519 msgstr ""
2520
2521 #. type: verbatim
2522 #: ../cat/virt-ls.pod:118
2523 #, no-wrap
2524 msgid ""
2525 " $ virt-ls -R -d guest /tmp\n"
2526 " foo\n"
2527 " foo/bar\n"
2528 " [etc.]\n"
2529 "\n"
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../cat/virt-ls.pod:123
2534 msgid ""
2535 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2536 "converts C<\\0> characters to C<\\n>."
2537 msgstr ""
2538
2539 #. type: =head2
2540 #: ../cat/virt-ls.pod:126
2541 msgid "RECURSIVE LONG LISTING"
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../cat/virt-ls.pod:128
2546 msgid ""
2547 "Using I<-lR> options together changes the output to display directories "
2548 "recursively, with file stats, and optionally other features such as "
2549 "checksums and extended attributes."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../cat/virt-ls.pod:132
2554 msgid ""
2555 "Most of the interesting features of C<virt-ls> are only available when using "
2556 "I<-lR> mode."
2557 msgstr ""
2558
2559 #. type: textblock
2560 #: ../cat/virt-ls.pod:135
2561 msgid ""
2562 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2563 "you cannot use the output in another program (because filenames can contain "
2564 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2565 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2566 "on you by creating filenames with embedded newline characters.  To B<safely> "
2567 "parse the output in another program, use the I<--csv> (Comma-Separated "
2568 "Values) option."
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../cat/virt-ls.pod:143
2573 msgid ""
2574 "Note that this output format is completely unrelated to the C<ls -lR> "
2575 "command."
2576 msgstr ""
2577
2578 #. type: verbatim
2579 #: ../cat/virt-ls.pod:146
2580 #, no-wrap
2581 msgid ""
2582 " $ virt-ls -lR -d guest /bin\n"
2583 " d 0555       4096 /bin\n"
2584 " - 0755        123 /bin/alsaunmute\n"
2585 " - 0755      28328 /bin/arch\n"
2586 " l 0777          4 /bin/awk -> gawk\n"
2587 " - 0755      27216 /bin/basename\n"
2588 " - 0755     943360 /bin/bash\n"
2589 " [etc.]\n"
2590 "\n"
2591 msgstr ""
2592
2593 #. type: textblock
2594 #: ../cat/virt-ls.pod:155
2595 msgid "These basic fields are always shown:"
2596 msgstr ""
2597
2598 #. type: =item
2599 #: ../cat/virt-ls.pod:159
2600 msgid "type"
2601 msgstr ""
2602
2603 #. type: textblock
2604 #: ../cat/virt-ls.pod:161
2605 msgid ""
2606 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2607 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2608 "link), C<s> (socket) or C<u> (unknown)."
2609 msgstr ""
2610
2611 #. type: =item
2612 #: ../cat/virt-ls.pod:171
2613 msgid "permissions"
2614 msgstr ""
2615
2616 #. type: textblock
2617 #: ../cat/virt-ls.pod:173
2618 msgid "The Unix permissions, displayed as a 4 digit octal number."
2619 msgstr ""
2620
2621 #. type: =item
2622 #: ../cat/virt-ls.pod:175
2623 msgid "size"
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../cat/virt-ls.pod:177
2628 msgid ""
2629 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2630 "readable> option is given, in which case this is shown as a human-readable "
2631 "number."
2632 msgstr ""
2633
2634 #. type: =head2
2635 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2636 msgid "path"
2637 msgstr ""
2638
2639 #. type: textblock
2640 #: ../cat/virt-ls.pod:183
2641 msgid "The full path of the file or directory."
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../cat/virt-ls.pod:185
2646 msgid "link"
2647 msgstr ""
2648
2649 #. type: textblock
2650 #: ../cat/virt-ls.pod:187
2651 msgid "For symbolic links only, the link target."
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:191
2656 msgid ""
2657 "In I<-lR> mode, additional command line options enable the display of more "
2658 "fields."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../cat/virt-ls.pod:194
2663 msgid ""
2664 "With the I<--uids> flag, these additional fields are displayed before the "
2665 "path:"
2666 msgstr ""
2667
2668 #. type: =item
2669 #: ../cat/virt-ls.pod:199
2670 msgid "uid"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:201
2675 msgid "gid"
2676 msgstr ""
2677
2678 #. type: textblock
2679 #: ../cat/virt-ls.pod:203
2680 msgid ""
2681 "The UID and GID of the owner of the file (displayed numerically).  Note "
2682 "these only make sense in the context of a Unix-like guest."
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../cat/virt-ls.pod:208
2687 msgid "With the I<--times> flag, these additional fields are displayed:"
2688 msgstr ""
2689
2690 #. type: =item
2691 #: ../cat/virt-ls.pod:212
2692 msgid "atime"
2693 msgstr ""
2694
2695 #. type: textblock
2696 #: ../cat/virt-ls.pod:214
2697 msgid "The time of last access."
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../cat/virt-ls.pod:216
2702 msgid "mtime"
2703 msgstr ""
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:218
2707 msgid "The time of last modification."
2708 msgstr ""
2709
2710 #. type: =item
2711 #: ../cat/virt-ls.pod:220
2712 msgid "ctime"
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../cat/virt-ls.pod:222
2717 msgid "The time of last status change."
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:226
2722 msgid ""
2723 "The time fields are displayed as string dates and times, unless one of the "
2724 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2725 msgstr ""
2726
2727 #. type: textblock
2728 #: ../cat/virt-ls.pod:229
2729 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2730 msgstr ""
2731
2732 #. type: =item
2733 #: ../cat/virt-ls.pod:233
2734 msgid "device"
2735 msgstr ""
2736
2737 #. type: textblock
2738 #: ../cat/virt-ls.pod:235
2739 msgid ""
2740 "The device containing the file (displayed as major:minor).  This may not "
2741 "match devices as known to the guest."
2742 msgstr ""
2743
2744 #. type: =item
2745 #: ../cat/virt-ls.pod:238
2746 msgid "inode"
2747 msgstr ""
2748
2749 #. type: textblock
2750 #: ../cat/virt-ls.pod:240
2751 msgid "The inode number."
2752 msgstr ""
2753
2754 #. type: =item
2755 #: ../cat/virt-ls.pod:242
2756 msgid "nlink"
2757 msgstr ""
2758
2759 #. type: textblock
2760 #: ../cat/virt-ls.pod:244
2761 msgid "The number of hard links."
2762 msgstr ""
2763
2764 #. type: =item
2765 #: ../cat/virt-ls.pod:246
2766 msgid "rdev"
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../cat/virt-ls.pod:248
2771 msgid ""
2772 "For block and char special files, the device (displayed as major:minor)."
2773 msgstr ""
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:251
2777 msgid "blocks"
2778 msgstr ""
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:253
2782 msgid "The number of 512 byte blocks allocated to the file."
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:257
2787 msgid ""
2788 "With the I<--checksum> flag, the checksum of the file contents is shown "
2789 "(only for regular files).  Computing file checksums can take a considerable "
2790 "amount of time."
2791 msgstr ""
2792
2793 #. type: =item
2794 #: ../cat/virt-ls.pod:280
2795 msgid "B<--checksum>"
2796 msgstr ""
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:282
2800 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2801 msgstr ""
2802
2803 #. type: textblock
2804 #: ../cat/virt-ls.pod:284
2805 msgid ""
2806 "Display checksum over file contents for regular files.  With no argument, "
2807 "this defaults to using I<md5>.  Using an argument, you can select the "
2808 "checksum type to use."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2813 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2814 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2815 msgid ""
2816 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2817 "LISTING> above."
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../cat/virt-ls.pod:316
2822 msgid ""
2823 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2824 "so you cannot see what you are typing.  If you are not worried about Tempest "
2825 "attacks and there is no one else in the room you can specify this flag to "
2826 "see what you are typing."
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:321
2831 msgid "B<--extra-stats>"
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:323
2836 msgid "Display extra stats."
2837 msgstr ""
2838
2839 #. type: verbatim
2840 #: ../cat/virt-ls.pod:339
2841 #, no-wrap
2842 msgid ""
2843 " virt-ls --format=raw -a disk.img /dir\n"
2844 "\n"
2845 msgstr ""
2846
2847 #. type: verbatim
2848 #: ../cat/virt-ls.pod:343
2849 #, no-wrap
2850 msgid ""
2851 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2852 "\n"
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:356
2857 msgid "Display file sizes in human-readable format."
2858 msgstr ""
2859
2860 #. type: =item
2861 #: ../cat/virt-ls.pod:370
2862 msgid "B<-R>"
2863 msgstr ""
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:372
2867 msgid "B<--recursive>"
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../cat/virt-ls.pod:374
2872 msgid ""
2873 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2874 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2875 "LISTING>."
2876 msgstr ""
2877
2878 #. type: textblock
2879 #: ../cat/virt-ls.pod:378
2880 msgid ""
2881 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2882 "LONG LISTING>."
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../cat/virt-ls.pod:381
2887 msgid ""
2888 "C<virt-ls -R> produces a recursive list of files starting at the named "
2889 "directory.  See L</RECURSIVE LISTING>."
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../cat/virt-ls.pod:384
2894 msgid ""
2895 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2896 "parsed.  See L</RECURSIVE LONG LISTING>."
2897 msgstr ""
2898
2899 #. type: =item
2900 #: ../cat/virt-ls.pod:387
2901 msgid "B<--times>"
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../cat/virt-ls.pod:389
2906 msgid "Display time fields."
2907 msgstr ""
2908
2909 #. type: =item
2910 #: ../cat/virt-ls.pod:394
2911 msgid "B<--time-days>"
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../cat/virt-ls.pod:396
2916 msgid "Display time fields as days before now (negative if in the future)."
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:398
2921 msgid ""
2922 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2923 "of the file is between 0 and 86399 seconds."
2924 msgstr ""
2925
2926 #. type: =item
2927 #: ../cat/virt-ls.pod:404
2928 msgid "B<--time-relative>"
2929 msgstr ""
2930
2931 #. type: textblock
2932 #: ../cat/virt-ls.pod:406
2933 msgid "Display time fields as seconds before now (negative if in the future)."
2934 msgstr ""
2935
2936 #. type: =item
2937 #: ../cat/virt-ls.pod:411
2938 msgid "B<--time-t>"
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../cat/virt-ls.pod:413
2943 msgid "Display time fields as seconds since the Unix epoch."
2944 msgstr ""
2945
2946 #. type: =item
2947 #: ../cat/virt-ls.pod:418
2948 msgid "B<--uids>"
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../cat/virt-ls.pod:420
2953 msgid "Display UID and GID fields."
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:445
2958 msgid "Previous versions of virt-ls allowed you to write either:"
2959 msgstr ""
2960
2961 #. type: verbatim
2962 #: ../cat/virt-ls.pod:447
2963 #, no-wrap
2964 msgid ""
2965 " virt-ls disk.img [disk.img ...] /dir\n"
2966 "\n"
2967 msgstr ""
2968
2969 #. type: verbatim
2970 #: ../cat/virt-ls.pod:451
2971 #, no-wrap
2972 msgid ""
2973 " virt-ls guestname /dir\n"
2974 "\n"
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../cat/virt-ls.pod:497
2979 msgid ""
2980 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2981 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2982 "L<http://libguestfs.org/>."
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2987 #: ../rescue/virt-rescue.pod:302
2988 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2989 msgstr ""
2990
2991 #. type: textblock
2992 #: ../clone/virt-sysprep.pod:5
2993 msgid ""
2994 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2995 msgstr ""
2996
2997 #. type: verbatim
2998 #: ../clone/virt-sysprep.pod:9
2999 #, no-wrap
3000 msgid ""
3001 " virt-sysprep [--options] -d domname\n"
3002 "\n"
3003 msgstr ""
3004
3005 #. type: verbatim
3006 #: ../clone/virt-sysprep.pod:11
3007 #, no-wrap
3008 msgid ""
3009 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3010 "\n"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:15
3015 msgid ""
3016 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3017 "can be made from it.  Steps in this process include removing SSH host keys, "
3018 "removing persistent network MAC configuration, and removing user accounts.  "
3019 "Each step can be enabled or disabled as required."
3020 msgstr ""
3021
3022 #. type: textblock
3023 #: ../clone/virt-sysprep.pod:21
3024 msgid ""
3025 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3026 "customization by the system administrator."
3027 msgstr ""
3028
3029 #. type: textblock
3030 #: ../clone/virt-sysprep.pod:24
3031 msgid ""
3032 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3033 "be shut down.  If you want to preserve the existing contents of the guest, "
3034 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3035 msgstr ""
3036
3037 #. type: textblock
3038 #: ../clone/virt-sysprep.pod:29
3039 msgid ""
3040 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3041 "recommend that you don't.  The time you might want to run it as root is when "
3042 "you need root in order to access the disk image, but even in this case it "
3043 "would be better to change the permissions on the disk image to be writable "
3044 "as the non-root user running virt-sysprep."
3045 msgstr ""
3046
3047 #. type: textblock
3048 #: ../clone/virt-sysprep.pod:35
3049 msgid ""
3050 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3051 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3052 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3053 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3054 "Windows sysprepping in a future version, and we already have code to do it."
3055 msgstr ""
3056
3057 #. type: =item
3058 #: ../clone/virt-sysprep.pod:76
3059 msgid "B<--enable=...>"
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../clone/virt-sysprep.pod:78
3064 msgid ""
3065 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3066 "operations, for example:"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../clone/virt-sysprep.pod:81
3071 #, no-wrap
3072 msgid ""
3073 " --enable=ssh-hostkeys,udev-persistent-net\n"
3074 "\n"
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../clone/virt-sysprep.pod:83
3079 msgid ""
3080 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:85
3085 msgid ""
3086 "If the I<--enable> option is not given, then we default to trying all "
3087 "possible sysprep operations.  But some sysprep operations are skipped for "
3088 "some guest types."
3089 msgstr ""
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:89
3093 msgid ""
3094 "Use I<--list-operations> to list operations supported by a particular "
3095 "version of virt-sysprep."
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:92
3100 msgid ""
3101 "See L</OPERATIONS> below for a list and an explanation of each operation."
3102 msgstr ""
3103
3104 #. type: verbatim
3105 #: ../clone/virt-sysprep.pod:106
3106 #, no-wrap
3107 msgid ""
3108 " virt-sysprep --format=raw -a disk.img\n"
3109 "\n"
3110 msgstr ""
3111
3112 #. type: verbatim
3113 #: ../clone/virt-sysprep.pod:110
3114 #, no-wrap
3115 msgid ""
3116 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3117 "\n"
3118 msgstr ""
3119
3120 #. type: =item
3121 #: ../clone/virt-sysprep.pod:119
3122 msgid "B<--hostname> newhostname"
3123 msgstr ""
3124
3125 #. type: textblock
3126 #: ../clone/virt-sysprep.pod:121
3127 msgid ""
3128 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3129 "defaults to C<localhost.localdomain>."
3130 msgstr ""
3131
3132 #. type: =item
3133 #: ../clone/virt-sysprep.pod:124
3134 msgid "B<--list-operations>"
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:126
3139 msgid "List the operations supported by the virt-sysprep program."
3140 msgstr ""
3141
3142 #. type: =item
3143 #: ../clone/virt-sysprep.pod:128
3144 msgid "B<--selinux-relabel>"
3145 msgstr ""
3146
3147 #. type: =item
3148 #: ../clone/virt-sysprep.pod:130
3149 msgid "B<--no-selinux-relabel>"
3150 msgstr ""
3151
3152 #. type: textblock
3153 #: ../clone/virt-sysprep.pod:132
3154 msgid ""
3155 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3156 "I<--no-selinux-relabel> disables relabelling."
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../clone/virt-sysprep.pod:135
3161 msgid ""
3162 "The default is to try to detect if SELinux relabelling is required.  See L</"
3163 "SELINUX RELABELLING> below for more details."
3164 msgstr ""
3165
3166 #. type: =head1
3167 #: ../clone/virt-sysprep.pod:156
3168 msgid "OPERATIONS"
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../clone/virt-sysprep.pod:158
3173 msgid ""
3174 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3175 "enabled>, although some are skipped depending on the type of guest."
3176 msgstr ""
3177
3178 #. type: textblock
3179 #: ../clone/virt-sysprep.pod:162
3180 msgid ""
3181 "Operations can be individually enabled using the I<--enable> option.  Use a "
3182 "comma-separated list, for example:"
3183 msgstr ""
3184
3185 #. type: verbatim
3186 #: ../clone/virt-sysprep.pod:165
3187 #, no-wrap
3188 msgid ""
3189 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3190 "\n"
3191 msgstr ""
3192
3193 #. type: textblock
3194 #: ../clone/virt-sysprep.pod:167
3195 msgid ""
3196 "To list the operations supported by the current version of virt-sysprep, use "
3197 "I<--list-operations>."
3198 msgstr ""
3199
3200 #. type: textblock
3201 #: ../clone/virt-sysprep.pod:170
3202 msgid ""
3203 "Future versions of virt-sysprep may add more operations.  If you are using "
3204 "virt-sysprep and want predictable behaviour, specify only the operations "
3205 "that you want to have enabled."
3206 msgstr ""
3207
3208 #. type: =head2
3209 #: ../clone/virt-sysprep.pod:174
3210 msgid "cron-spool"
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:176
3215 msgid "Remove user at-jobs and cron-jobs."
3216 msgstr ""
3217
3218 #. type: =head2
3219 #: ../clone/virt-sysprep.pod:178
3220 msgid "dhcp-client-state"
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../clone/virt-sysprep.pod:180
3225 msgid "Remove DHCP client leases."
3226 msgstr ""
3227
3228 #. type: =head2
3229 #: ../clone/virt-sysprep.pod:182
3230 msgid "dhcp-server-state"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../clone/virt-sysprep.pod:184
3235 msgid "Remove DHCP server leases."
3236 msgstr ""
3237
3238 #. type: =head2
3239 #: ../clone/virt-sysprep.pod:186
3240 msgid "hostname"
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../clone/virt-sysprep.pod:188
3245 msgid ""
3246 "Changes the hostname of the guest to the value given in the I<--hostname> "
3247 "parameter."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../clone/virt-sysprep.pod:191
3252 msgid ""
3253 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3254 "C<localhost.localdomain>."
3255 msgstr ""
3256
3257 #. type: =head2
3258 #: ../clone/virt-sysprep.pod:194
3259 msgid "logfiles"
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../clone/virt-sysprep.pod:196
3264 msgid "Remove many log files."
3265 msgstr ""
3266
3267 #. type: =head2
3268 #: ../clone/virt-sysprep.pod:198
3269 msgid "mail-spool"
3270 msgstr ""
3271
3272 #. type: textblock
3273 #: ../clone/virt-sysprep.pod:200
3274 msgid "Remove email from the local mail spool directory."
3275 msgstr ""
3276
3277 #. type: =head2
3278 #: ../clone/virt-sysprep.pod:202
3279 msgid "net-hwaddr"
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../clone/virt-sysprep.pod:204
3284 msgid ""
3285 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3286 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3287 msgstr ""
3288
3289 #. type: =head2
3290 #: ../clone/virt-sysprep.pod:207
3291 msgid "random-seed"
3292 msgstr ""
3293
3294 #. type: textblock
3295 #: ../clone/virt-sysprep.pod:209
3296 msgid ""
3297 "Write some random bytes from the host into the random seed file of the guest."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:212
3302 msgid "See L</RANDOM SEED> below."
3303 msgstr ""
3304
3305 #. type: =head2
3306 #: ../clone/virt-sysprep.pod:214
3307 msgid "rhn-systemid"
3308 msgstr ""
3309
3310 #. type: textblock
3311 #: ../clone/virt-sysprep.pod:216
3312 msgid "Remove the RHN system ID."
3313 msgstr ""
3314
3315 #. type: =head2
3316 #: ../clone/virt-sysprep.pod:218
3317 msgid "smolt-uuid"
3318 msgstr ""
3319
3320 #. type: textblock
3321 #: ../clone/virt-sysprep.pod:220
3322 msgid "Remove the Smolt hardware UUID."
3323 msgstr ""
3324
3325 #. type: =head2
3326 #: ../clone/virt-sysprep.pod:222
3327 msgid "ssh-hostkeys"
3328 msgstr ""
3329
3330 #. type: textblock
3331 #: ../clone/virt-sysprep.pod:224
3332 msgid "Remove the SSH host keys in the guest."
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:226
3337 msgid ""
3338 "The SSH host keys are regenerated (differently) next time the guest is "
3339 "booted."
3340 msgstr ""
3341
3342 #. type: textblock
3343 #: ../clone/virt-sysprep.pod:229
3344 msgid ""
3345 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3346 "stark warning about the host key changing:"
3347 msgstr ""
3348
3349 #. type: verbatim
3350 #: ../clone/virt-sysprep.pod:232
3351 #, no-wrap
3352 msgid ""
3353 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3354 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3355 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3356 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3357 "\n"
3358 msgstr ""
3359
3360 #. type: =head2
3361 #: ../clone/virt-sysprep.pod:237
3362 msgid "udev-persistent-net"
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../clone/virt-sysprep.pod:239
3367 msgid ""
3368 "Remove udev persistent net rules which map the guest's existing MAC address "
3369 "to a fixed ethernet device (eg. eth0)."
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:242
3374 msgid ""
3375 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3376 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3377 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3378 "Erasing the udev persistent net rules avoids this."
3379 msgstr ""
3380
3381 #. type: =head2
3382 #: ../clone/virt-sysprep.pod:247
3383 msgid "utmp"
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../clone/virt-sysprep.pod:249
3388 msgid "Remove the utmp file."
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../clone/virt-sysprep.pod:251
3393 msgid ""
3394 "This records who is currently logged in on a machine.  In modern Linux "
3395 "distros it is stored in a ramdisk and hence not part of the virtual "
3396 "machine's disk, but it was stored on disk in older distros."
3397 msgstr ""
3398
3399 #. type: =head2
3400 #: ../clone/virt-sysprep.pod:255
3401 msgid "yum-uuid"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../clone/virt-sysprep.pod:257
3406 msgid "Remove the yum UUID."
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:259
3411 msgid ""
3412 "Yum creates a fresh UUID the next time it runs when it notices that the "
3413 "original UUID has been erased."
3414 msgstr ""
3415
3416 #. type: =head1
3417 #: ../clone/virt-sysprep.pod:262
3418 msgid "COPYING AND CLONING"
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../clone/virt-sysprep.pod:264
3423 msgid ""
3424 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3425 "prepare a template from which guests can be cloned.  There are many "
3426 "different ways to achieve this using the virt tools, and this section is "
3427 "just an introduction."
3428 msgstr ""
3429
3430 #. type: textblock
3431 #: ../clone/virt-sysprep.pod:269
3432 msgid "A virtual machine (when switched off) consists of two parts:"
3433 msgstr ""
3434
3435 #. type: =item
3436 #: ../clone/virt-sysprep.pod:273
3437 msgid "I<configuration>"
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../clone/virt-sysprep.pod:275
3442 msgid ""
3443 "The configuration or description of the guest.  eg. The libvirt XML (see "
3444 "C<virsh dumpxml>), the running configuration of the guest, or another "
3445 "external format like OVF."
3446 msgstr ""
3447
3448 #. type: textblock
3449 #: ../clone/virt-sysprep.pod:279
3450 msgid "Some configuration items that might need to be changed:"
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:285
3455 msgid "name"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3460 msgid "UUID"
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../clone/virt-sysprep.pod:293
3465 msgid "path to block device(s)"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../clone/virt-sysprep.pod:297
3470 msgid "network card MAC address"
3471 msgstr ""
3472
3473 #. type: =item
3474 #: ../clone/virt-sysprep.pod:301
3475 msgid "I<block device(s)>"
3476 msgstr ""
3477
3478 #. type: textblock
3479 #: ../clone/virt-sysprep.pod:303
3480 msgid ""
3481 "One or more hard disk images, themselves containing files, directories, "
3482 "applications, kernels, configuration, etc."
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../clone/virt-sysprep.pod:306
3487 msgid "Some things inside the block devices that might need to be changed:"
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../clone/virt-sysprep.pod:312
3492 msgid "hostname and other net configuration"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:320
3497 msgid "SSH host keys"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:324
3502 msgid "Windows unique security ID (SID)"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:328
3507 msgid "Puppet registration"
3508 msgstr ""
3509
3510 #. type: =head2
3511 #: ../clone/virt-sysprep.pod:334
3512 msgid "COPYING THE BLOCK DEVICE"
3513 msgstr ""
3514
3515 #. type: textblock
3516 #: ../clone/virt-sysprep.pod:336
3517 msgid ""
3518 "Starting with an original guest, you probably wish to copy the guest block "
3519 "device and its configuration to make a template.  Then once you are happy "
3520 "with the template, you will want to make many clones from it."
3521 msgstr ""
3522
3523 #. type: verbatim
3524 #: ../clone/virt-sysprep.pod:341
3525 #, no-wrap
3526 msgid ""
3527 "                        virt-sysprep\n"
3528 "                             |\n"
3529 "                             v\n"
3530 " original guest --------> template ---------->\n"
3531 "                                      \\------> cloned\n"
3532 "                                       \\-----> guests\n"
3533 "                                        \\---->\n"
3534 "\n"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../clone/virt-sysprep.pod:349
3539 msgid ""
3540 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3541 "L<dd(1)>."
3542 msgstr ""
3543
3544 #. type: verbatim
3545 #: ../clone/virt-sysprep.pod:352
3546 #, no-wrap
3547 msgid ""
3548 "                   dd                 dd\n"
3549 " original guest --------> template ---------->\n"
3550 "                                      \\------> cloned\n"
3551 "                                       \\-----> guests\n"
3552 "                                        \\---->\n"
3553 "\n"
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../clone/virt-sysprep.pod:358
3558 msgid "There are some smarter (and faster) ways too:"
3559 msgstr ""
3560
3561 #. type: verbatim
3562 #: ../clone/virt-sysprep.pod:364
3563 #, no-wrap
3564 msgid ""
3565 "                          snapshot\n"
3566 "                template ---------->\n"
3567 "                            \\------> cloned\n"
3568 "                             \\-----> guests\n"
3569 "                              \\---->\n"
3570 "\n"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:370
3575 msgid ""
3576 "Use the block device as a backing file and create a snapshot on top for each "
3577 "guest.  The advantage is that you don't need to copy the block device (very "
3578 "fast) and only changes are stored (less storage required)."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../clone/virt-sysprep.pod:375
3583 msgid ""
3584 "Note that writing to the backing file once you have created guests on top of "
3585 "it is not possible: you will corrupt the guests."
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../clone/virt-sysprep.pod:378
3590 msgid ""
3591 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3592 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3593 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3594 "also create cheap snapshots from files or LUNs."
3595 msgstr ""
3596
3597 #. type: textblock
3598 #: ../clone/virt-sysprep.pod:386
3599 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:390
3604 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3605 msgstr ""
3606
3607 #. type: =head2
3608 #: ../clone/virt-sysprep.pod:394
3609 msgid "VIRT-CLONE"
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../clone/virt-sysprep.pod:396
3614 msgid ""
3615 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3616 "and/or modify the external libvirt configuration of a guest.  It will reset "
3617 "the name, UUID and MAC address of the guest in the libvirt XML."
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../clone/virt-sysprep.pod:401
3622 msgid ""
3623 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3624 "image.  This was the original motivation to write virt-sysprep."
3625 msgstr ""
3626
3627 #. type: =head2
3628 #: ../clone/virt-sysprep.pod:404
3629 msgid "SPARSIFY"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../clone/virt-sysprep.pod:406
3634 #, no-wrap
3635 msgid ""
3636 "              virt-sparsify\n"
3637 " original guest --------> template\n"
3638 "\n"
3639 msgstr ""
3640
3641 #. type: textblock
3642 #: ../clone/virt-sysprep.pod:409
3643 msgid ""
3644 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3645 "it easier to compress and/or faster to copy."
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../clone/virt-sysprep.pod:412
3650 msgid ""
3651 "Notice that since virt-sparsify also copies the image, you can use it to "
3652 "make the initial copy (instead of C<dd>)."
3653 msgstr ""
3654
3655 #. type: =head2
3656 #: ../clone/virt-sysprep.pod:415
3657 msgid "RESIZE"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../clone/virt-sysprep.pod:417
3662 #, no-wrap
3663 msgid ""
3664 "                         virt-resize\n"
3665 "                template ---------->\n"
3666 "                            \\------> cloned\n"
3667 "                             \\-----> guests\n"
3668 "                              \\---->\n"
3669 "\n"
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../clone/virt-sysprep.pod:423
3674 msgid ""
3675 "If you want to give people cloned guests, but let them pick the size of the "
3676 "guest themselves (eg. depending on how much they are prepared to pay for "
3677 "disk space), then instead of copying the template, you can run L<virt-resize"
3678 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3679 "guests from a template."
3680 msgstr ""
3681
3682 #. type: =head1
3683 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3684 msgid "SECURITY"
3685 msgstr ""
3686
3687 #. type: textblock
3688 #: ../clone/virt-sysprep.pod:431
3689 msgid ""
3690 "Although virt-sysprep removes some sensitive information from the guest, it "
3691 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3692 "above, and the implementation of the operations in the shell script.  You "
3693 "should also examine the guest afterwards."
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../clone/virt-sysprep.pod:436
3698 msgid ""
3699 "Sensitive files are simply removed.  The data they contained may still exist "
3700 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3701 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3702 "(1)> command to get rid of deleted content in directory entries and inodes."
3703 msgstr ""
3704
3705 #. type: =head2
3706 #: ../clone/virt-sysprep.pod:442
3707 msgid "RANDOM SEED"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../clone/virt-sysprep.pod:444
3712 msgid "I<(This section applies to Linux guests only)>"
3713 msgstr ""
3714
3715 #. type: textblock
3716 #: ../clone/virt-sysprep.pod:446
3717 msgid ""
3718 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3719 "from the host into the guest's random seed file."
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../clone/virt-sysprep.pod:449
3724 msgid ""
3725 "If this is just done once and the guest is cloned from the same template, "
3726 "then each guest will start with the same entropy, and things like SSH host "
3727 "keys and TCP sequence numbers may be predictable."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../clone/virt-sysprep.pod:453
3732 msgid ""
3733 "Therefore you should arrange to add more randomness I<after> cloning from a "
3734 "template too, which can be done by just enabling the C<random-seed> "
3735 "operation:"
3736 msgstr ""
3737
3738 #. type: verbatim
3739 #: ../clone/virt-sysprep.pod:457
3740 #, no-wrap
3741 msgid ""
3742 " cp template.img newguest.img\n"
3743 " virt-sysprep --enable=random-seed -a newguest.img\n"
3744 "\n"
3745 msgstr ""
3746
3747 #. type: =head2
3748 #: ../clone/virt-sysprep.pod:460
3749 msgid "SELINUX RELABELLING"
3750 msgstr ""
3751
3752 #. type: textblock
3753 #: ../clone/virt-sysprep.pod:462
3754 msgid "I<(This section applies to Linux guests using SELinux only)>"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../clone/virt-sysprep.pod:464
3759 msgid ""
3760 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3761 "autorelabel> so that these will be correctly labelled by SELinux the next "
3762 "time the guest is booted.  This process interrupts boot and can take some "
3763 "time."
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../clone/virt-sysprep.pod:469
3768 msgid ""
3769 "You can force relabelling for all guests by supplying the I<--selinux-"
3770 "relabel> option."
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../clone/virt-sysprep.pod:472
3775 msgid ""
3776 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3777 "relabel> option."
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../clone/virt-sysprep.pod:484
3782 msgid "This program returns 0 on success, or 1 if there was an error."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../clone/virt-sysprep.pod:488
3787 msgid ""
3788 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3789 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3790 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../df/virt-df.pod:5
3795 msgid "virt-df - Display free space on virtual filesystems"
3796 msgstr ""
3797
3798 #. type: verbatim
3799 #: ../df/virt-df.pod:9
3800 #, no-wrap
3801 msgid ""
3802 " virt-df [--options]\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../df/virt-df.pod:11
3808 #, no-wrap
3809 msgid ""
3810 " virt-df [--options] -d domname\n"
3811 "\n"
3812 msgstr ""
3813
3814 #. type: verbatim
3815 #: ../df/virt-df.pod:13
3816 #, no-wrap
3817 msgid ""
3818 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3819 "\n"
3820 msgstr ""
3821
3822 #. type: verbatim
3823 #: ../df/virt-df.pod:17
3824 #, no-wrap
3825 msgid ""
3826 " virt-df [--options] domname\n"
3827 "\n"
3828 msgstr ""
3829
3830 #. type: verbatim
3831 #: ../df/virt-df.pod:19
3832 #, no-wrap
3833 msgid ""
3834 " virt-df [--options] disk.img [disk.img ...]\n"
3835 "\n"
3836 msgstr ""
3837
3838 #. type: textblock
3839 #: ../df/virt-df.pod:23
3840 msgid ""
3841 "C<virt-df> is a command line tool to display free space on virtual machine "
3842 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3843 "allocated to a virtual machine, but can look inside disk images to see how "
3844 "much space is really being used."
3845 msgstr ""
3846
3847 #. type: textblock
3848 #: ../df/virt-df.pod:28
3849 msgid ""
3850 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3851 "to get a list of all active and inactive guests, and performs a C<df>-type "
3852 "operation on each one in turn, printing out the results."
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../df/virt-df.pod:32
3857 msgid ""
3858 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3859 "type operation on either the single named libvirt domain, or on the disk "
3860 "image(s) listed on the command line (which must all belong to a single VM).  "
3861 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3862 "guest>.  If you want to run on multiple guests, then you have to invoke "
3863 "C<virt-df> multiple times."
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../df/virt-df.pod:39
3868 msgid ""
3869 "Use the I<--csv> option to get a format which can be easily parsed by other "
3870 "programs.  Other options are similar to the standard L<df(1)> command."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../df/virt-df.pod:45
3875 msgid ""
3876 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3877 "output human-readable:"
3878 msgstr ""
3879
3880 #. type: verbatim
3881 #: ../df/virt-df.pod:48
3882 #, no-wrap
3883 msgid ""
3884 " # virt-df -d F14x64 -h\n"
3885 " Filesystem                       Size     Used  Available  Use%\n"
3886 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3887 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3888 "\n"
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../df/virt-df.pod:53
3893 msgid "Show disk usage for a disk image file called C<test.img>:"
3894 msgstr ""
3895
3896 #. type: verbatim
3897 #: ../df/virt-df.pod:55
3898 #, no-wrap
3899 msgid ""
3900 " $ virt-df -a test1.img\n"
3901 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3902 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3903 "\n"
3904 msgstr ""
3905
3906 #. type: verbatim
3907 #: ../df/virt-df.pod:112
3908 #, no-wrap
3909 msgid ""
3910 " virt-df --format=raw -a disk.img\n"
3911 "\n"
3912 msgstr ""
3913
3914 #. type: verbatim
3915 #: ../df/virt-df.pod:116
3916 #, no-wrap
3917 msgid ""
3918 " virt-df --format=raw -a disk.img --format -a another.img\n"
3919 "\n"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../df/virt-df.pod:129
3924 msgid "Print sizes in human-readable format."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:131
3929 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3930 msgstr ""
3931
3932 #. type: =item
3933 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3934 msgid "B<-i>"
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:135
3939 msgid "B<--inodes>"
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../df/virt-df.pod:137
3944 msgid "Print inodes instead of blocks."
3945 msgstr ""
3946
3947 #. type: =item
3948 #: ../df/virt-df.pod:139
3949 msgid "B<--one-per-guest>"
3950 msgstr ""
3951
3952 #. type: textblock
3953 #: ../df/virt-df.pod:141
3954 msgid ""
3955 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3956 "disks from several guests to a single libguestfs appliance."
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../df/virt-df.pod:144
3961 msgid "You might use this option in the following circumstances:"
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:150
3966 msgid ""
3967 "If you think an untrusted guest might actively try to exploit the libguestfs "
3968 "appliance kernel, then this prevents one guest from interfering with the "
3969 "stats printed for another guest."
3970 msgstr ""
3971
3972 #. type: textblock
3973 #: ../df/virt-df.pod:156
3974 msgid ""
3975 "If the kernel has a bug which stops it from accessing a filesystem in one "
3976 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3977 "and report stats for further guests."
3978 msgstr ""
3979
3980 #. type: textblock
3981 #: ../df/virt-df.pod:165
3982 msgid ""
3983 "Print UUIDs instead of names.  This is useful for following a guest even "
3984 "when the guest is migrated or renamed, or when two guests happen to have the "
3985 "same name."
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../df/virt-df.pod:169
3990 msgid ""
3991 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3992 "images, we still print the disk image name even when this option is "
3993 "specified."
3994 msgstr ""
3995
3996 #. type: textblock
3997 #: ../df/virt-df.pod:229
3998 msgid ""
3999 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4000 "libguestfs.org/>."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../edit/virt-edit.pod:5
4005 msgid "virt-edit - Edit a file in a virtual machine"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../edit/virt-edit.pod:9
4010 #, no-wrap
4011 msgid ""
4012 " virt-edit [--options] -d domname file [file ...]\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../edit/virt-edit.pod:11
4018 #, no-wrap
4019 msgid ""
4020 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../edit/virt-edit.pod:13
4026 #, no-wrap
4027 msgid ""
4028 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:17
4034 #, no-wrap
4035 msgid ""
4036 " virt-edit domname file\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: verbatim
4041 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4042 #, no-wrap
4043 msgid ""
4044 " virt-edit disk.img [disk.img ...] file\n"
4045 "\n"
4046 msgstr ""
4047
4048 #. type: =head1
4049 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4050 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4051 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4052 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4053 msgid "WARNING"
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../edit/virt-edit.pod:23
4058 msgid ""
4059 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4060 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4061 "doing this, but doesn't catch all cases."
4062 msgstr ""
4063
4064 #. type: textblock
4065 #: ../edit/virt-edit.pod:29
4066 msgid ""
4067 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4068 "exists in the named virtual machine (or disk image)."
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../edit/virt-edit.pod:32
4073 msgid ""
4074 "Multiple filenames can be given, in which case they are each edited in "
4075 "turn.  Each filename must be a full path, starting at the root directory "
4076 "(starting with '/')."
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../edit/virt-edit.pod:36
4081 msgid "If you want to just view a file, use L<virt-cat(1)>."
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../edit/virt-edit.pod:38
4086 msgid ""
4087 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4088 "USING GUESTFISH> below)."
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../edit/virt-edit.pod:41
4093 msgid ""
4094 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4095 "that and much more."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../edit/virt-edit.pod:46
4100 msgid "Edit the named files interactively:"
4101 msgstr ""
4102
4103 #. type: verbatim
4104 #: ../edit/virt-edit.pod:48
4105 #, no-wrap
4106 msgid ""
4107 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4108 "\n"
4109 msgstr ""
4110
4111 #. type: verbatim
4112 #: ../edit/virt-edit.pod:50
4113 #, no-wrap
4114 msgid ""
4115 " virt-edit -d mydomain /etc/passwd\n"
4116 "\n"
4117 msgstr ""
4118
4119 #. type: textblock
4120 #: ../edit/virt-edit.pod:52
4121 msgid "For Windows guests, some Windows paths are understood:"
4122 msgstr ""
4123
4124 #. type: verbatim
4125 #: ../edit/virt-edit.pod:54
4126 #, no-wrap
4127 msgid ""
4128 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4129 "\n"
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../edit/virt-edit.pod:56
4134 msgid ""
4135 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4136 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4137 msgstr ""
4138
4139 #. type: verbatim
4140 #: ../edit/virt-edit.pod:60
4141 #, no-wrap
4142 msgid ""
4143 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4144 "\n"
4145 msgstr ""
4146
4147 #. type: =item
4148 #: ../edit/virt-edit.pod:81
4149 msgid "B<-b> extension"
4150 msgstr ""
4151
4152 #. type: =item
4153 #: ../edit/virt-edit.pod:83
4154 msgid "B<--backup> extension"
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../edit/virt-edit.pod:85
4159 msgid ""
4160 "Create a backup of the original file I<in the guest disk image>.  The backup "
4161 "has the original filename with C<extension> added."
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../edit/virt-edit.pod:88
4166 msgid ""
4167 "Usually the first character of C<extension> would be a dot C<.> so you would "
4168 "write:"
4169 msgstr ""
4170
4171 #. type: verbatim
4172 #: ../edit/virt-edit.pod:91
4173 #, no-wrap
4174 msgid ""
4175 " virt-edit -b .orig [etc]\n"
4176 "\n"
4177 msgstr ""
4178
4179 #. type: textblock
4180 #: ../edit/virt-edit.pod:93
4181 msgid "By default, no backup file is made."
4182 msgstr ""
4183
4184 #. type: =item
4185 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4186 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4187 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4188 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4189 msgid "B<-c URI>"
4190 msgstr ""
4191
4192 #. type: =item
4193 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4194 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4195 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4196 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4197 msgid "B<--connect URI>"
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4202 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4203 #: ../tools/virt-win-reg.pl:135
4204 msgid ""
4205 "If you specify guest block devices directly, then libvirt is not used at all."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../edit/virt-edit.pod:114
4210 msgid ""
4211 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4212 "off so you cannot see what you are typing.  If you are not worried about "
4213 "Tempest attacks and there is no one else in the room you can specify this "
4214 "flag to see what you are typing."
4215 msgstr ""
4216
4217 #. type: =item
4218 #: ../edit/virt-edit.pod:119
4219 msgid "B<-e> EXPR"
4220 msgstr ""
4221
4222 #. type: =item
4223 #: ../edit/virt-edit.pod:121
4224 msgid "B<--expr> EXPR"
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../edit/virt-edit.pod:123
4229 msgid ""
4230 "Instead of launching the external editor, non-interactively apply the Perl "
4231 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4232 "EDITING> below."
4233 msgstr ""
4234
4235 #. type: textblock
4236 #: ../edit/virt-edit.pod:127
4237 msgid ""
4238 "Be careful to properly quote the expression to prevent it from being altered "
4239 "by the shell."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../edit/virt-edit.pod:130
4244 msgid "Note that this option is only available when Perl 5 is installed."
4245 msgstr ""
4246
4247 #. type: =item
4248 #: ../edit/virt-edit.pod:132
4249 msgid "B<--format> raw|qcow2|..."
4250 msgstr ""
4251
4252 #. type: verbatim
4253 #: ../edit/virt-edit.pod:143
4254 #, no-wrap
4255 msgid ""
4256 " virt-edit --format=raw -a disk.img file\n"
4257 "\n"
4258 msgstr ""
4259
4260 #. type: verbatim
4261 #: ../edit/virt-edit.pod:147
4262 #, no-wrap
4263 msgid ""
4264 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4265 "\n"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../edit/virt-edit.pod:181
4270 msgid "Previous versions of virt-edit allowed you to write either:"
4271 msgstr ""
4272
4273 #. type: verbatim
4274 #: ../edit/virt-edit.pod:187
4275 #, no-wrap
4276 msgid ""
4277 " virt-edit guestname file\n"
4278 "\n"
4279 msgstr ""
4280
4281 #. type: =head1
4282 #: ../edit/virt-edit.pod:195
4283 msgid "NON-INTERACTIVE EDITING"
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../edit/virt-edit.pod:197
4288 msgid ""
4289 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4290 "administrator can interactively edit the file."
4291 msgstr ""
4292
4293 #. type: textblock
4294 #: ../edit/virt-edit.pod:200
4295 msgid ""
4296 "There are two ways also to use C<virt-edit> from scripts in order to make "
4297 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4298 "like this, it's less error-prone to write scripts directly using the "
4299 "libguestfs API and Augeas for configuration file editing.)"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:206
4304 msgid ""
4305 "The first method is to temporarily set C<$EDITOR> to any script or program "
4306 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4307 "update C<tmpfile> in place however it likes."
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../edit/virt-edit.pod:210
4312 msgid ""
4313 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4314 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4315 "instances of C<foo> with C<bar> in a file:"
4316 msgstr ""
4317
4318 #. type: verbatim
4319 #: ../edit/virt-edit.pod:214
4320 #, no-wrap
4321 msgid ""
4322 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4323 "\n"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../edit/virt-edit.pod:216
4328 msgid ""
4329 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4330 "For example to delete root's password you could do:"
4331 msgstr ""
4332
4333 #. type: verbatim
4334 #: ../edit/virt-edit.pod:219
4335 #, no-wrap
4336 msgid ""
4337 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4338 "\n"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../edit/virt-edit.pod:221
4343 msgid ""
4344 "What really happens is that the snippet is evaluated as a Perl expression "
4345 "for each line of the file.  The line, including the final C<\\n>, is passed "
4346 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../edit/virt-edit.pod:226
4351 msgid ""
4352 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4353 "C<apache> user account from the password file you can do:"
4354 msgstr ""
4355
4356 #. type: verbatim
4357 #: ../edit/virt-edit.pod:229
4358 #, no-wrap
4359 msgid ""
4360 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4361 "\n"
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../edit/virt-edit.pod:231
4366 msgid ""
4367 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4368 "the end of the file is rather difficult this way since there is no concept "
4369 "of \"last line of the file\" - your expression just doesn't get called "
4370 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4371 "want to do this."
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../edit/virt-edit.pod:237
4376 msgid ""
4377 "The variable C<$lineno> contains the current line number.  As is "
4378 "traditional, the first line in the file is number C<1>."
4379 msgstr ""
4380
4381 #. type: textblock
4382 #: ../edit/virt-edit.pod:240
4383 msgid ""
4384 "The return value from the expression is ignored, but the expression may call "
4385 "C<die> in order to abort the whole program, leaving the original file "
4386 "untouched."
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../edit/virt-edit.pod:244
4391 msgid ""
4392 "Remember when matching the end of a line that C<$_> may contain the final C<"
4393 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4394 "newline then neither of these.  Thus to match or substitute some text at the "
4395 "end of a line, use this regular expression:"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../edit/virt-edit.pod:249
4400 #, no-wrap
4401 msgid ""
4402 " /some text(\\r?\\n)?$/\n"
4403 "\n"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../edit/virt-edit.pod:251
4408 msgid ""
4409 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4410 "$_> itself (since that would remove all newlines from the file):"
4411 msgstr ""
4412
4413 #. type: verbatim
4414 #: ../edit/virt-edit.pod:255
4415 #, no-wrap
4416 msgid ""
4417 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../edit/virt-edit.pod:259
4423 msgid ""
4424 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4425 "paths (eg. C<E:\\foo\\bar.txt>)."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:278
4430 msgid ""
4431 "The path is resolved case insensitively to locate the file that should be "
4432 "edited."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../edit/virt-edit.pod:299
4437 msgid ""
4438 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4439 "C<virt-edit> doesn't work."
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../edit/virt-edit.pod:302
4444 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../edit/virt-edit.pod:304
4449 #, no-wrap
4450 msgid ""
4451 " guestfish --rw -i -d domname edit /file\n"
4452 "\n"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:306
4457 msgid ""
4458 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4459 "path to the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:309
4464 msgid ""
4465 "The command above uses libguestfs's guest inspection feature and so does not "
4466 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4467 "disk images that don't contain guests.  To edit a file on a disk image "
4468 "directly, use:"
4469 msgstr ""
4470
4471 #. type: verbatim
4472 #: ../edit/virt-edit.pod:314
4473 #, no-wrap
4474 msgid ""
4475 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4476 "\n"
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../edit/virt-edit.pod:316
4481 msgid ""
4482 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4483 "the disk image to edit, and C</file> is the full path to the file."
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../edit/virt-edit.pod:320
4488 msgid ""
4489 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4490 "C<write> or C<upload> instead:"
4491 msgstr ""
4492
4493 #. type: verbatim
4494 #: ../edit/virt-edit.pod:323
4495 #, no-wrap
4496 msgid ""
4497 " guestfish --rw -i -d domname touch /newfile\n"
4498 "\n"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../edit/virt-edit.pod:325
4503 #, no-wrap
4504 msgid ""
4505 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: verbatim
4510 #: ../edit/virt-edit.pod:327
4511 #, no-wrap
4512 msgid ""
4513 " guestfish --rw -i -d domname upload localfile /newfile\n"
4514 "\n"
4515 msgstr ""
4516
4517 #. type: =head1
4518 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4519 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4520 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4521 msgid "ENVIRONMENT VARIABLES"
4522 msgstr ""
4523
4524 #. type: =item
4525 #: ../edit/virt-edit.pod:333
4526 msgid "C<EDITOR>"
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../edit/virt-edit.pod:335
4531 msgid ""
4532 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4533 "\"emacs -nw\">"
4534 msgstr ""
4535
4536 #. type: textblock
4537 #: ../edit/virt-edit.pod:338
4538 msgid "If not set, C<vi> is used."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../edit/virt-edit.pod:356
4543 msgid ""
4544 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4545 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4546 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../erlang/examples/guestfs-erlang.pod:5
4551 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4552 msgstr ""
4553
4554 #. type: verbatim
4555 #: ../erlang/examples/guestfs-erlang.pod:9
4556 #, no-wrap
4557 msgid ""
4558 " {ok, G} = guestfs:create(),\n"
4559 " ok = guestfs:add_drive_opts(G, Disk,\n"
4560 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4561 " ok = guestfs:launch(G),\n"
4562 " [Device] = guestfs:list_devices(G),\n"
4563 " ok = guestfs:close(G).\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../erlang/examples/guestfs-erlang.pod:18
4569 msgid ""
4570 "This manual page documents how to call libguestfs from the Erlang "
4571 "programming language.  This page just documents the differences from the C "
4572 "API and gives some examples.  If you are not familiar with using libguestfs, "
4573 "you also need to read L<guestfs(3)>."
4574 msgstr ""
4575
4576 #. type: =head2
4577 #: ../erlang/examples/guestfs-erlang.pod:23
4578 msgid "OPENING AND CLOSING THE HANDLE"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../erlang/examples/guestfs-erlang.pod:25
4583 msgid ""
4584 "The Erlang bindings are implemented using an external program called C<erl-"
4585 "guestfs>.  This program must be on the current PATH, or else you should "
4586 "specify the full path to the program:"
4587 msgstr ""
4588
4589 #. type: verbatim
4590 #: ../erlang/examples/guestfs-erlang.pod:29
4591 #, no-wrap
4592 msgid ""
4593 " {ok, G} = guestfs:create().\n"
4594 "\n"
4595 msgstr ""
4596
4597 #. type: verbatim
4598 #: ../erlang/examples/guestfs-erlang.pod:31
4599 #, no-wrap
4600 msgid ""
4601 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4602 "\n"
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../erlang/examples/guestfs-erlang.pod:33
4607 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../erlang/examples/guestfs-erlang.pod:36
4612 msgid "To close the handle:"
4613 msgstr ""
4614
4615 #. type: verbatim
4616 #: ../erlang/examples/guestfs-erlang.pod:38
4617 #, no-wrap
4618 msgid ""
4619 " ok = guestfs:close(G).\n"
4620 "\n"
4621 msgstr ""
4622
4623 #. type: =head2
4624 #: ../erlang/examples/guestfs-erlang.pod:40
4625 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../erlang/examples/guestfs-erlang.pod:42
4630 msgid ""
4631 "For functions that take optional arguments, the first arguments are the non-"
4632 "optional ones.  The last argument is a list of tuples supplying the "
4633 "remaining optional arguments."
4634 msgstr ""
4635
4636 #. type: verbatim
4637 #: ../erlang/examples/guestfs-erlang.pod:46
4638 #, no-wrap
4639 msgid ""
4640 " ok = guestfs:add_drive_opts(G, Disk,\n"
4641 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4642 "\n"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../erlang/examples/guestfs-erlang.pod:49
4647 msgid "If the last argument would be an empty list, you can also omit it:"
4648 msgstr ""
4649
4650 #. type: verbatim
4651 #: ../erlang/examples/guestfs-erlang.pod:51
4652 #, no-wrap
4653 msgid ""
4654 " ok = guestfs:add_drive_opts(G, Disk).\n"
4655 "\n"
4656 msgstr ""
4657
4658 #. type: =head2
4659 #: ../erlang/examples/guestfs-erlang.pod:53
4660 msgid "RETURN VALUES AND ERRORS"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../erlang/examples/guestfs-erlang.pod:55
4665 msgid ""
4666 "On success, most functions return a C<Result> term (which could be a list, "
4667 "string, tuple etc.).  If there is nothing for the function to return, then "
4668 "the atom C<ok> is returned."
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../erlang/examples/guestfs-erlang.pod:59
4673 msgid "On error, you would see one of the following tuples:"
4674 msgstr ""
4675
4676 #. type: =item
4677 #: ../erlang/examples/guestfs-erlang.pod:63
4678 msgid "C<{error, Msg, Errno}>"
4679 msgstr ""
4680
4681 #. type: textblock
4682 #: ../erlang/examples/guestfs-erlang.pod:65
4683 msgid "This indicates an ordinary error from the function."
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../erlang/examples/guestfs-erlang.pod:67
4688 msgid ""
4689 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4690 "(integer)."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../erlang/examples/guestfs-erlang.pod:70
4695 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4696 msgstr ""
4697
4698 #. type: =item
4699 #: ../erlang/examples/guestfs-erlang.pod:72
4700 msgid "C<{unknown, Function}>"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../erlang/examples/guestfs-erlang.pod:74
4705 msgid ""
4706 "This indicates that the function you called is not known.  Generally this "
4707 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4708 "which you should not do."
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../erlang/examples/guestfs-erlang.pod:78
4713 msgid "C<Function> is the name of the unknown function."
4714 msgstr ""
4715
4716 #. type: =item
4717 #: ../erlang/examples/guestfs-erlang.pod:80
4718 msgid "C<{unknownarg, Arg}>"
4719 msgstr ""
4720
4721 #. type: textblock
4722 #: ../erlang/examples/guestfs-erlang.pod:82
4723 msgid ""
4724 "This indicates that you called a function with optional arguments, with an "
4725 "unknown argument name."
4726 msgstr ""
4727
4728 #. type: textblock
4729 #: ../erlang/examples/guestfs-erlang.pod:85
4730 msgid "C<Arg> is the name of the unknown argument."
4731 msgstr ""
4732
4733 #. type: =head1
4734 #: ../erlang/examples/guestfs-erlang.pod:89
4735 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4736 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4737 #: ../python/examples/guestfs-python.pod:34
4738 #: ../ruby/examples/guestfs-ruby.pod:28
4739 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../erlang/examples/guestfs-erlang.pod:91
4744 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4745 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4746 #: ../python/examples/guestfs-python.pod:36
4747 #: ../ruby/examples/guestfs-ruby.pod:30
4748 msgid "@EXAMPLE1@"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../erlang/examples/guestfs-erlang.pod:93
4753 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4754 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4755 #: ../python/examples/guestfs-python.pod:38
4756 #: ../ruby/examples/guestfs-ruby.pod:32
4757 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4758 msgstr ""
4759
4760 #. type: textblock
4761 #: ../erlang/examples/guestfs-erlang.pod:95
4762 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4763 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4764 #: ../python/examples/guestfs-python.pod:40
4765 #: ../ruby/examples/guestfs-ruby.pod:34
4766 msgid "@EXAMPLE2@"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../erlang/examples/guestfs-erlang.pod:99
4771 msgid ""
4772 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4773 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4774 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4775 msgstr ""
4776
4777 #. type: =head1
4778 #: ../erlang/examples/guestfs-erlang.pod:110
4779 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4780 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4781 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4782 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4783 #: ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58
4784 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4785 #: ../python/examples/guestfs-python.pod:54
4786 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4787 #: ../test-tool/libguestfs-test-tool.pod:106
4788 msgid "AUTHORS"
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../erlang/examples/guestfs-erlang.pod:112
4793 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4794 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4795 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4796 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4797 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4798 #: ../perl/examples/guestfs-perl.pod:54
4799 #: ../python/examples/guestfs-python.pod:56
4800 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4801 #: ../test-tool/libguestfs-test-tool.pod:108
4802 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4803 msgstr ""
4804
4805 #. type: textblock
4806 #: ../erlang/examples/guestfs-erlang.pod:116
4807 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4808 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4809 msgstr ""
4810
4811 #. type: textblock
4812 #: ../erlang/examples/guestfs-erlang.pod:118
4813 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4814 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4815 #: ../perl/examples/guestfs-perl.pod:60
4816 #: ../python/examples/guestfs-python.pod:62
4817 #: ../ruby/examples/guestfs-ruby.pod:56
4818 msgid ""
4819 "The examples in this manual page may be freely copied, modified and "
4820 "distributed without any restrictions."
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../erlang/examples/guestfs-erlang.pod:121
4825 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4826 #: ../java/examples/guestfs-java.pod:69
4827 #: ../ocaml/examples/guestfs-ocaml.pod:102
4828 #: ../perl/examples/guestfs-perl.pod:63
4829 #: ../python/examples/guestfs-python.pod:65
4830 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4831 msgid ""
4832 "This library is free software; you can redistribute it and/or modify it "
4833 "under the terms of the GNU Lesser General Public License as published by the "
4834 "Free Software Foundation; either version 2 of the License, or (at your "
4835 "option) any later version."
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../erlang/examples/guestfs-erlang.pod:126
4840 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4841 #: ../java/examples/guestfs-java.pod:74
4842 #: ../ocaml/examples/guestfs-ocaml.pod:107
4843 #: ../perl/examples/guestfs-perl.pod:68
4844 #: ../python/examples/guestfs-python.pod:70
4845 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4846 msgid ""
4847 "This library is distributed in the hope that it will be useful, but WITHOUT "
4848 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4849 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4850 "for more details."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../erlang/examples/guestfs-erlang.pod:131
4855 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4856 #: ../java/examples/guestfs-java.pod:79
4857 #: ../ocaml/examples/guestfs-ocaml.pod:112
4858 #: ../perl/examples/guestfs-perl.pod:73
4859 #: ../python/examples/guestfs-python.pod:75
4860 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4861 msgid ""
4862 "You should have received a copy of the GNU Lesser General Public License "
4863 "along with this library; if not, write to the Free Software Foundation, "
4864 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../examples/guestfs-examples.pod:5
4869 msgid "guestfs-examples - Examples of using libguestfs from C"
4870 msgstr ""
4871
4872 #. type: verbatim
4873 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4874 #, no-wrap
4875 msgid ""
4876 " #include <guestfs.h>\n"
4877 " \n"
4878 msgstr "#include <guestfs.h>\n"
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-examples.pod:11
4882 #, no-wrap
4883 msgid ""
4884 " guestfs_h *g = guestfs_create ();\n"
4885 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4886 " guestfs_launch (g);\n"
4887 "\n"
4888 msgstr ""
4889
4890 #. type: verbatim
4891 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4892 #, no-wrap
4893 msgid ""
4894 " cc prog.c -o prog -lguestfs\n"
4895 "or:\n"
4896 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4897 "\n"
4898 msgstr ""
4899 " cc prog.c -o prog -lguestfs\n"
4900 "or:\n"
4901 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4902 "\n"
4903
4904 #. type: textblock
4905 #: ../examples/guestfs-examples.pod:21
4906 msgid ""
4907 "This manual page contains examples of calling libguestfs from the C "
4908 "programming language.  If you are not familiar with using libguestfs, you "
4909 "also need to read L<guestfs(3)>."
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../examples/guestfs-examples.pod:35
4914 msgid ""
4915 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4916 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4917 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4922 #: ../python/examples/guestfs-python.pod:60
4923 #: ../ruby/examples/guestfs-ruby.pod:54
4924 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4925 msgstr ""
4926
4927 #. type: =end
4928 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4929 msgid "comment"
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../examples/guestfs-recipes.pod:5
4934 msgid ""
4935 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4936 "here.  The only way which works for both sorts of output is to just write "
4937 "the URL directly.  Do NOT use L<...> for URLs."
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../examples/guestfs-recipes.pod:9
4942 msgid ""
4943 "We break with tradition here and don't use ALL CAPS for the section "
4944 "headings, as this makes them much easier to read."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../examples/guestfs-recipes.pod:16
4949 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../examples/guestfs-recipes.pod:20
4954 msgid ""
4955 "This page contains recipes for and links to things you can do using "
4956 "libguestfs, L<guestfish(1)> and the virt tools."
4957 msgstr ""
4958
4959 #. type: =head1
4960 #: ../examples/guestfs-recipes.pod:23
4961 msgid "Audit a virtual machine for setuid files"
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../examples/guestfs-recipes.pod:25
4966 msgid ""
4967 "The link below contains a small program which can be used to audit a Linux "
4968 "virtual machine to see what setuid and setgid files it contains."
4969 msgstr ""
4970
4971 #. type: textblock
4972 #: ../examples/guestfs-recipes.pod:28
4973 msgid ""
4974 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4975 "files/#content"
4976 msgstr ""
4977
4978 #. type: =head1
4979 #: ../examples/guestfs-recipes.pod:30
4980 msgid "Change the background image in a Windows XP VM"
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../examples/guestfs-recipes.pod:32
4985 msgid ""
4986 "The links below explain how to use L<guestfish(1)> to change the background "
4987 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4988 "be substantially different for each version of Windows."
4989 msgstr ""
4990
4991 #. type: textblock
4992 #: ../examples/guestfs-recipes.pod:37
4993 msgid ""
4994 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4995 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4996 msgstr ""
4997
4998 #. type: =head1
4999 #: ../examples/guestfs-recipes.pod:40
5000 msgid "Cloning a virtual machine (Linux)"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:42
5005 msgid ""
5006 "The guestfish technique described in the link below works well for most "
5007 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5008 "slightly."
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../examples/guestfs-recipes.pod:46
5013 msgid ""
5014 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5015 "vm/#content"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:48
5020 msgid ""
5021 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5022 "discussion."
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../examples/guestfs-recipes.pod:51
5027 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5028 msgstr ""
5029
5030 #. type: =head1
5031 #: ../examples/guestfs-recipes.pod:53
5032 msgid "Cloning a virtual machine (Windows)"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../examples/guestfs-recipes.pod:55
5037 msgid ""
5038 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5039 "straightforward.  Currently there is code in the Aeolus Oz project which "
5040 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5041 "we may add sysprepping ability."
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../examples/guestfs-recipes.pod:60
5046 msgid ""
5047 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5048 "list/2011-May/msg00019.html"
5049 msgstr ""
5050
5051 #. type: =head1
5052 #: ../examples/guestfs-recipes.pod:63
5053 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../examples/guestfs-recipes.pod:65
5058 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5059 msgstr ""
5060
5061 #. type: verbatim
5062 #: ../examples/guestfs-recipes.pod:67
5063 #, no-wrap
5064 msgid ""
5065 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5066 "\n"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../examples/guestfs-recipes.pod:69
5071 msgid "To export just a subdirectory, eg. C</files>, do:"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../examples/guestfs-recipes.pod:71
5076 #, no-wrap
5077 msgid ""
5078 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: =head1
5083 #: ../examples/guestfs-recipes.pod:73
5084 msgid "Create empty disk images"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../examples/guestfs-recipes.pod:75
5089 msgid ""
5090 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5091 "The useful guide below explains the options available."
5092 msgstr ""
5093
5094 #. type: textblock
5095 #: ../examples/guestfs-recipes.pod:78
5096 msgid ""
5097 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5098 "#content"
5099 msgstr ""
5100
5101 #. type: =head1
5102 #: ../examples/guestfs-recipes.pod:80
5103 msgid "Dump raw filesystem content from inside a disk image or VM"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:82
5108 msgid ""
5109 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5110 "filesystem content from any filesystem in a disk image or a VM (even one "
5111 "which is encrypted or buried inside an LV):"
5112 msgstr ""
5113
5114 #. type: verbatim
5115 #: ../examples/guestfs-recipes.pod:86
5116 #, no-wrap
5117 msgid ""
5118 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5119 "\n"
5120 msgstr ""
5121
5122 #. type: verbatim
5123 #: ../examples/guestfs-recipes.pod:88
5124 #, no-wrap
5125 msgid ""
5126 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5127 "\n"
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../examples/guestfs-recipes.pod:90
5132 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5133 msgstr ""
5134
5135 #. type: =head1
5136 #: ../examples/guestfs-recipes.pod:92
5137 msgid "Edit grub configuration in a VM"
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../examples/guestfs-recipes.pod:94
5142 msgid "You can use this to:"
5143 msgstr ""
5144
5145 #. type: textblock
5146 #: ../examples/guestfs-recipes.pod:100
5147 msgid "Fix a virtual machine that does not boot."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:104
5152 msgid "Change which kernel is used to boot the VM."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../examples/guestfs-recipes.pod:108
5157 msgid "Change kernel command line options."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:112
5162 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5163 msgstr ""
5164
5165 #. type: verbatim
5166 #: ../examples/guestfs-recipes.pod:114
5167 #, no-wrap
5168 msgid ""
5169 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5170 "\n"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../examples/guestfs-recipes.pod:116
5175 msgid ""
5176 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5177 "this:"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../examples/guestfs-recipes.pod:119
5182 #, no-wrap
5183 msgid ""
5184 " virt-rescue -d BrokenGuest\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: =head1
5189 #: ../examples/guestfs-recipes.pod:121
5190 msgid "Export any directory from a VM"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../examples/guestfs-recipes.pod:123
5195 msgid ""
5196 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5197 msgstr ""
5198
5199 #. type: verbatim
5200 #: ../examples/guestfs-recipes.pod:126
5201 #, no-wrap
5202 msgid ""
5203 " virt-copy-out -d Guest /home .\n"
5204 "\n"
5205 msgstr ""
5206
5207 #. type: textblock
5208 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5209 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5210 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5211 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5212 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5213 #: ../tools/virt-win-reg.pl:717
5214 msgid "Notes:"
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../examples/guestfs-recipes.pod:134
5219 msgid ""
5220 "The final dot of the command is not a printing error.  It means we want to "
5221 "copy out to the current directory."
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../examples/guestfs-recipes.pod:139
5226 msgid "This creates a directory called C<home> under the current directory."
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:143
5231 msgid ""
5232 "If the guest is a Windows guest then you can use drive letters and "
5233 "backslashes, but you must prefix the path with C<win:> and quote it to "
5234 "protect it from the shell, like this:"
5235 msgstr ""
5236
5237 #. type: verbatim
5238 #: ../examples/guestfs-recipes.pod:147
5239 #, no-wrap
5240 msgid ""
5241 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5242 "\n"
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../examples/guestfs-recipes.pod:149
5247 msgid "To get the output as a compressed tarball, do:"
5248 msgstr ""
5249
5250 #. type: verbatim
5251 #: ../examples/guestfs-recipes.pod:151
5252 #, no-wrap
5253 msgid ""
5254 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5255 "\n"
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../examples/guestfs-recipes.pod:153
5260 msgid ""
5261 "Although it sounds tempting, this is usually not a reliable way to get a "
5262 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5263 "org/FAQ.html#backup"
5264 msgstr ""
5265
5266 #. type: =head1
5267 #: ../examples/guestfs-recipes.pod:157
5268 msgid "Find out which user is using the most space"
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../examples/guestfs-recipes.pod:159
5273 msgid ""
5274 "This simple script examines a Linux guest to find out which user is using "
5275 "the most space in their home directory:"
5276 msgstr ""
5277
5278 #. type: verbatim
5279 #: ../examples/guestfs-recipes.pod:162
5280 #, no-wrap
5281 msgid ""
5282 " #!/bin/sh -\n"
5283 " \n"
5284 msgstr ""
5285
5286 #. type: verbatim
5287 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5288 #, no-wrap
5289 msgid ""
5290 " set -e\n"
5291 " \n"
5292 msgstr ""
5293
5294 #. type: verbatim
5295 #: ../examples/guestfs-recipes.pod:166
5296 #, no-wrap
5297 msgid ""
5298 " vm=\"$1\"\n"
5299 " dir=/home\n"
5300 " \n"
5301 msgstr ""
5302
5303 #. type: verbatim
5304 #: ../examples/guestfs-recipes.pod:169
5305 #, no-wrap
5306 msgid ""
5307 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5308 " \n"
5309 msgstr ""
5310
5311 #. type: verbatim
5312 #: ../examples/guestfs-recipes.pod:171
5313 #, no-wrap
5314 msgid ""
5315 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5316 "     echo -n \"$dir/$d\"\n"
5317 "     echo -ne '\\t'\n"
5318 "     guestfish --remote du \"$dir/$d\";\n"
5319 " done | sort -nr -k 2\n"
5320 " \n"
5321 msgstr ""
5322
5323 #. type: verbatim
5324 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5325 #, no-wrap
5326 msgid ""
5327 " guestfish --remote exit\n"
5328 "\n"
5329 msgstr ""
5330
5331 #. type: =head1
5332 #: ../examples/guestfs-recipes.pod:179
5333 msgid "Get DHCP address from a VM"
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../examples/guestfs-recipes.pod:181
5338 msgid ""
5339 "The link below explains the many different possible techniques for getting "
5340 "the last assigned DHCP address of a virtual machine."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:184
5345 msgid ""
5346 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5347 "a-virtual-machine-disk-image/#content"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../examples/guestfs-recipes.pod:186
5352 msgid ""
5353 "In the libguestfs source examples directory you will find the latest version "
5354 "of the C<virt-dhcp-address.c> program."
5355 msgstr ""
5356
5357 #. type: =head1
5358 #: ../examples/guestfs-recipes.pod:189
5359 msgid "Get the operating system product name string"
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../examples/guestfs-recipes.pod:191
5364 msgid "Save the following script into a file called C<product-name.sh>:"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:193
5369 #, no-wrap
5370 msgid ""
5371 " #!/bin/sh -\n"
5372 " set -e\n"
5373 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5374 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5375 " guestfish --remote inspect-get-product-name \"$root\"\n"
5376 " guestfish --remote exit\n"
5377 "\n"
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../examples/guestfs-recipes.pod:200
5382 msgid "Make the script executable and run it on a named guest:"
5383 msgstr ""
5384
5385 #. type: verbatim
5386 #: ../examples/guestfs-recipes.pod:202
5387 #, no-wrap
5388 msgid ""
5389 " # product-name.sh RHEL60x64\n"
5390 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5391 "\n"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-recipes.pod:205
5396 msgid ""
5397 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5398 "C<xpath> command line tool or from your favourite programming language:"
5399 msgstr ""
5400
5401 #. type: verbatim
5402 #: ../examples/guestfs-recipes.pod:209
5403 #, no-wrap
5404 msgid ""
5405 " # virt-inspector RHEL60x64 > xml\n"
5406 " # xpath '//product_name' < xml\n"
5407 " Found 1 nodes:\n"
5408 " -- NODE --\n"
5409 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5410 "\n"
5411 msgstr ""
5412
5413 #. type: =head1
5414 #: ../examples/guestfs-recipes.pod:215
5415 msgid "Get the default boot kernel for a Linux VM"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:217
5420 msgid ""
5421 "The link below contains a program to print the default boot kernel for a "
5422 "Linux VM."
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../examples/guestfs-recipes.pod:220
5427 msgid ""
5428 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5429 "kernel-for-a-vm/#content"
5430 msgstr ""
5431
5432 #. type: textblock
5433 #: ../examples/guestfs-recipes.pod:222
5434 msgid ""
5435 "It uses Augeas, and the technique is generally applicable for many different "
5436 "tasks, such as:"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../examples/guestfs-recipes.pod:229
5441 msgid "listing the user accounts in the guest"
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../examples/guestfs-recipes.pod:233
5446 msgid "what repositories is it configured to use"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-recipes.pod:237
5451 msgid "what NTP servers does it connect to"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../examples/guestfs-recipes.pod:241
5456 msgid "what were the boot messages last time it booted"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:245
5461 msgid "listing who was logged in recently"
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../examples/guestfs-recipes.pod:249
5466 msgid "http://augeas.net/"
5467 msgstr ""
5468
5469 #. type: =head1
5470 #: ../examples/guestfs-recipes.pod:251
5471 msgid "Install RPMs in a guest"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../examples/guestfs-recipes.pod:253
5476 msgid ""
5477 "The link below contains a method to install RPMs in a guest.  In fact the "
5478 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5479 "installs them next time the guest is booted.  You could use this technique "
5480 "to install vital security updates in an offline guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-recipes.pod:259
5485 msgid ""
5486 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5487 msgstr ""
5488
5489 #. type: =head1
5490 #: ../examples/guestfs-recipes.pod:261
5491 msgid "List applications installed in a VM"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../examples/guestfs-recipes.pod:263
5496 msgid "Save the following to a file C<list-apps.sh>:"
5497 msgstr ""
5498
5499 #. type: verbatim
5500 #: ../examples/guestfs-recipes.pod:265
5501 #, no-wrap
5502 msgid ""
5503 " #!/bin/sh -\n"
5504 " set -e\n"
5505 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5506 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5507 " guestfish --remote inspect-list-applications \"$root\"\n"
5508 " guestfish --remote exit\n"
5509 "\n"
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../examples/guestfs-recipes.pod:272
5514 msgid ""
5515 "Make the file executable and then you can run it on any named virtual "
5516 "machine:"
5517 msgstr ""
5518
5519 #. type: verbatim
5520 #: ../examples/guestfs-recipes.pod:275
5521 #, no-wrap
5522 msgid ""
5523 " # list-apps.sh WinGuest\n"
5524 " [0] = {\n"
5525 "   app_name: Mozilla Firefox (3.6.12)\n"
5526 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5527 "   app_epoch: 0\n"
5528 "   app_version: 3.6.12 (en-GB)\n"
5529 "   app_release:\n"
5530 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5531 "   app_trans_path:\n"
5532 "   app_publisher: Mozilla\n"
5533 "   app_url: http://www.mozilla.com/en-GB/\n"
5534 "   app_source_package:\n"
5535 "   app_summary:\n"
5536 "   app_description: Mozilla Firefox\n"
5537 " }\n"
5538 " [1] = {\n"
5539 "   app_name: VLC media player\n"
5540 "   app_display_name: VLC media player 1.1.5\n"
5541 "   app_epoch: 0\n"
5542 "   app_version: 1.1.5\n"
5543 "   app_release:\n"
5544 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5545 "   app_trans_path:\n"
5546 "   app_publisher: VideoLAN\n"
5547 "   app_url: http://www.videolan.org/\n"
5548 "   app_source_package:\n"
5549 "   app_summary:\n"
5550 "   app_description:\n"
5551 " }\n"
5552 "\n"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:305
5557 msgid ""
5558 "If you want to run the script on disk images (instead of libvirt virtual "
5559 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5560 ">."
5561 msgstr ""
5562
5563 #. type: =head1
5564 #: ../examples/guestfs-recipes.pod:309
5565 msgid "List files and directories in a VM"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:311
5570 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5571 msgstr ""
5572
5573 #. type: verbatim
5574 #: ../examples/guestfs-recipes.pod:313
5575 #, no-wrap
5576 msgid ""
5577 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5578 "\n"
5579 msgstr ""
5580
5581 #. type: =head1
5582 #: ../examples/guestfs-recipes.pod:315
5583 msgid "List services in a Windows VM"
5584 msgstr ""
5585
5586 #. type: textblock
5587 #: ../examples/guestfs-recipes.pod:317
5588 msgid ""
5589 "The link below contains a script that can be used to list out the services "
5590 "from a Windows VM, and whether those services run at boot time or are loaded "
5591 "on demand."
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../examples/guestfs-recipes.pod:321
5596 msgid ""
5597 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5598 "#content"
5599 msgstr ""
5600
5601 #. type: =head1
5602 #: ../examples/guestfs-recipes.pod:323
5603 msgid "Make a disk image sparse"
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../examples/guestfs-recipes.pod:325
5608 msgid ""
5609 "The link below contains some guides for making a disk image sparse (or "
5610 "reintroducing sparseness)."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:328
5615 msgid ""
5616 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:330
5621 msgid "Monitor disk usage over time"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:332
5626 msgid ""
5627 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5628 "The link below contains a guide."
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:335
5633 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5634 msgstr ""
5635
5636 #. type: =head1
5637 #: ../examples/guestfs-recipes.pod:337
5638 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../examples/guestfs-recipes.pod:339
5643 msgid ""
5644 "L<guestfish(1)> plus the tools described in the link below can be used to "
5645 "read out the Windows Event Log from any virtual machine running Windows "
5646 "Vista or a later version."
5647 msgstr ""
5648
5649 #. type: textblock
5650 #: ../examples/guestfs-recipes.pod:343
5651 msgid ""
5652 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5653 "guestfish/#content"
5654 msgstr ""
5655
5656 #. type: =head1
5657 #: ../examples/guestfs-recipes.pod:345
5658 msgid "Remove root password (Linux)"
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../examples/guestfs-recipes.pod:347
5663 msgid ""
5664 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5665 "files.  One use is to remove the root password from a Linux guest:"
5666 msgstr ""
5667
5668 #. type: verbatim
5669 #: ../examples/guestfs-recipes.pod:350
5670 #, no-wrap
5671 msgid ""
5672 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5673 "\n"
5674 msgstr ""
5675
5676 #. type: =head1
5677 #: ../examples/guestfs-recipes.pod:352
5678 msgid "Remove Administrator password (Windows)"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../examples/guestfs-recipes.pod:354
5683 msgid ""
5684 "The link below contains one technique for removing the Administrator "
5685 "password from a Windows VM, or to be more precise, it gives you a command "
5686 "prompt the next time you log in which you can use to bypass any security:"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-recipes.pod:359
5691 msgid ""
5692 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5693 "administrator-password-with-guestfish/"
5694 msgstr ""
5695
5696 #. type: =head1
5697 #: ../examples/guestfs-recipes.pod:361
5698 msgid "Unpack a live CD"
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../examples/guestfs-recipes.pod:363
5703 msgid ""
5704 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5705 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5706 "layers, as outlined in the guide below."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../examples/guestfs-recipes.pod:367
5711 msgid ""
5712 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5713 "cd/#content"
5714 msgstr ""
5715
5716 #. type: =head1
5717 #: ../examples/guestfs-recipes.pod:369
5718 msgid "Uploading and downloading files"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../examples/guestfs-recipes.pod:371
5723 msgid ""
5724 "The link below contains general tips on uploading (copying in)  and "
5725 "downloading (copying out) files from VMs."
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../examples/guestfs-recipes.pod:374
5730 msgid ""
5731 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5732 msgstr ""
5733
5734 #. type: =head1
5735 #: ../examples/guestfs-recipes.pod:376
5736 msgid "Use libguestfs tools on VMware ESX guests"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../examples/guestfs-recipes.pod:378
5741 msgid ""
5742 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5743 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../examples/guestfs-recipes.pod:382
5748 msgid ""
5749 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5750 "guests/#content"
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../examples/guestfs-recipes.pod:386
5755 msgid ""
5756 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5757 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5758 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../examples/guestfs-recipes.pod:403
5763 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5764 msgstr ""
5765
5766 #. type: =head2
5767 #: ../fish/guestfish-actions.pod:1
5768 msgid "add-cdrom"
5769 msgstr ""
5770
5771 #. type: verbatim
5772 #: ../fish/guestfish-actions.pod:3
5773 #, no-wrap
5774 msgid ""
5775 " add-cdrom filename\n"
5776 "\n"
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5781 msgid "This function adds a virtual CD-ROM disk image to the guest."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5786 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:15
5791 msgid ""
5792 "This call checks for the existence of C<filename>.  This stops you from "
5793 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5794 "and C<http:> URLs.  To specify those, use the general L</config> call "
5795 "instead."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:22
5800 msgid ""
5801 "If you just want to add an ISO file (often you use this as an efficient way "
5802 "to transfer large files into the guest), then you should probably use L</add-"
5803 "drive-ro> instead."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5808 #: ../fish/guestfish-actions.pod:228
5809 msgid ""
5810 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5811 "instead."
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5816 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5817 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5818 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5819 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
5820 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
5821 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
5822 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
5823 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
5824 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5825 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5826 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5827 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
5828 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
5829 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
5830 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
5831 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
5832 #: ../src/guestfs-actions.pod:8347
5833 msgid ""
5834 "Deprecated functions will not be removed from the API, but the fact that "
5835 "they are deprecated indicates that there are problems with correct use of "
5836 "these functions."
5837 msgstr ""
5838
5839 #. type: =head2
5840 #: ../fish/guestfish-actions.pod:35
5841 msgid "add-domain"
5842 msgstr ""
5843
5844 #. type: =head2
5845 #: ../fish/guestfish-actions.pod:37
5846 msgid "domain"
5847 msgstr ""
5848
5849 #. type: verbatim
5850 #: ../fish/guestfish-actions.pod:39
5851 #, no-wrap
5852 msgid ""
5853 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5854 "\n"
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:41
5859 msgid ""
5860 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5861 "It works by connecting to libvirt, requesting the domain and domain XML from "
5862 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5867 msgid ""
5868 "The number of disks added is returned.  This operation is atomic: if an "
5869 "error is returned, then no disks are added."
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5874 msgid ""
5875 "This function does some minimal checks to make sure the libvirt domain is "
5876 "not running (unless C<readonly> is true).  In a future version we will try "
5877 "to acquire the libvirt lock on each disk."
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5882 msgid ""
5883 "Disks must be accessible locally.  This often means that adding disks from a "
5884 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5885 "unless those disks are accessible via the same device path locally too."
5886 msgstr ""
5887
5888 #. type: textblock
5889 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5890 msgid ""
5891 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5892 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5893 "libvirt URI (or one set through an environment variable, see the libvirt "
5894 "documentation for full details)."
5895 msgstr ""
5896
5897 #. type: textblock
5898 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5899 msgid ""
5900 "The optional C<live> flag controls whether this call will try to connect to "
5901 "a running virtual machine C<guestfsd> process if it sees a suitable "
5902 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5903 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5904 "DAEMONS> for more information."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5909 msgid ""
5910 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5911 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5912 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5913 "as usual."
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5918 msgid ""
5919 "The optional C<readonlydisk> parameter controls what we do for disks which "
5920 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5921 msgstr ""
5922
5923 #. type: =item
5924 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5925 msgid "readonlydisk = \"error\""
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
5930 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
5931 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
5932 msgid "If C<readonly> is false:"
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5937 msgid ""
5938 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
5939 "E<gt> flag is found."
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
5944 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
5945 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
5946 msgid "If C<readonly> is true:"
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
5951 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
5952 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
5953 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5954 msgstr ""
5955
5956 #. type: =item
5957 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5958 msgid "readonlydisk = \"read\""
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5963 msgid ""
5964 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5965 "are added read/write."
5966 msgstr ""
5967
5968 #. type: =item
5969 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5970 msgid "readonlydisk = \"write\" (default)"
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5975 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5976 msgstr ""
5977
5978 #. type: =item
5979 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5980 msgid "readonlydisk = \"ignore\""
5981 msgstr ""
5982
5983 #. type: textblock
5984 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5985 msgid "If C<readonly> is true or false:"
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5990 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:122
5995 msgid ""
5996 "The other optional parameters are passed directly through to L</add-drive-"
5997 "opts>."
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6002 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6003 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6004 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6005 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6006 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6007 #: ../fish/guestfish-actions.pod:3631
6008 msgid ""
6009 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6010 msgstr ""
6011
6012 #. type: =head2
6013 #: ../fish/guestfish-actions.pod:127
6014 msgid "add-drive"
6015 msgstr ""
6016
6017 #. type: verbatim
6018 #: ../fish/guestfish-actions.pod:129
6019 #, no-wrap
6020 msgid ""
6021 " add-drive filename\n"
6022 "\n"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:131
6027 msgid ""
6028 "This function is the equivalent of calling L</add-drive-opts> with no "
6029 "optional parameters, so the disk is added writable, with the format being "
6030 "detected automatically."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:135
6035 msgid ""
6036 "Automatic detection of the format opens you up to a potential security hole "
6037 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6038 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6039 "you should think about replacing calls to this function with calls to L</add-"
6040 "drive-opts>, and specifying the format."
6041 msgstr ""
6042
6043 #. type: =head2
6044 #: ../fish/guestfish-actions.pod:142
6045 msgid "add-drive-opts"
6046 msgstr ""
6047
6048 #. type: =head2
6049 #: ../fish/guestfish-actions.pod:144
6050 msgid "add"
6051 msgstr ""
6052
6053 #. type: verbatim
6054 #: ../fish/guestfish-actions.pod:146
6055 #, no-wrap
6056 msgid ""
6057 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6058 "\n"
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6063 msgid ""
6064 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6065 "The first time you call this function, the disk appears as C</dev/sda>, the "
6066 "second time as C</dev/sdb>, and so on."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6071 msgid ""
6072 "You don't necessarily need to be root when using libguestfs.  However you "
6073 "obviously do need sufficient permissions to access the filename for whatever "
6074 "operations you want to perform (ie. read access if you just want to read the "
6075 "image or write access if you want to modify the image)."
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6080 msgid "This call checks that C<filename> exists."
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
6085 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6086 msgid "The optional arguments are:"
6087 msgstr ""
6088
6089 #. type: =item
6090 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6091 msgid "C<readonly>"
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6096 msgid ""
6097 "If true then the image is treated as read-only.  Writes are still allowed, "
6098 "but they are stored in a temporary snapshot overlay which is discarded at "
6099 "the end.  The disk that you add is not modified."
6100 msgstr ""
6101
6102 #. type: =item
6103 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6104 msgid "C<format>"
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:173
6109 msgid ""
6110 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6111 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6112 "include C<raw> and C<qcow2>."
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6117 msgid ""
6118 "Automatic detection of the format opens you up to a potential security hole "
6119 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6120 "RHBZ#642934.  Specifying the format closes this security hole."
6121 msgstr ""
6122
6123 #. type: =item
6124 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6125 msgid "C<iface>"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../fish/guestfish-actions.pod:184
6130 msgid ""
6131 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6132 "add-drive-with-if> call (q.v.)"
6133 msgstr ""
6134
6135 #. type: =item
6136 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6137 msgid "C<name>"
6138 msgstr ""
6139
6140 #. type: textblock
6141 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6142 msgid ""
6143 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6144 "a hint to the guest inspection process if it is available."
6145 msgstr ""
6146
6147 #. type: =head2
6148 #: ../fish/guestfish-actions.pod:196
6149 msgid "add-drive-ro"
6150 msgstr ""
6151
6152 #. type: =head2
6153 #: ../fish/guestfish-actions.pod:198
6154 msgid "add-ro"
6155 msgstr ""
6156
6157 #. type: verbatim
6158 #: ../fish/guestfish-actions.pod:200
6159 #, no-wrap
6160 msgid ""
6161 " add-drive-ro filename\n"
6162 "\n"
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:202
6167 msgid ""
6168 "This function is the equivalent of calling L</add-drive-opts> with the "
6169 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6170 "is added read-only, with the format being detected automatically."
6171 msgstr ""
6172
6173 #. type: =head2
6174 #: ../fish/guestfish-actions.pod:207
6175 msgid "add-drive-ro-with-if"
6176 msgstr ""
6177
6178 #. type: verbatim
6179 #: ../fish/guestfish-actions.pod:209
6180 #, no-wrap
6181 msgid ""
6182 " add-drive-ro-with-if filename iface\n"
6183 "\n"
6184 msgstr ""
6185
6186 #. type: textblock
6187 #: ../fish/guestfish-actions.pod:211
6188 msgid ""
6189 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6190 "interface emulation to use at run time."
6191 msgstr ""
6192
6193 #. type: =head2
6194 #: ../fish/guestfish-actions.pod:221
6195 msgid "add-drive-with-if"
6196 msgstr ""
6197
6198 #. type: verbatim
6199 #: ../fish/guestfish-actions.pod:223
6200 #, no-wrap
6201 msgid ""
6202 " add-drive-with-if filename iface\n"
6203 "\n"
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../fish/guestfish-actions.pod:225
6208 msgid ""
6209 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6210 "interface emulation to use at run time."
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../fish/guestfish-actions.pod:235
6215 msgid "aug-clear"
6216 msgstr ""
6217
6218 #. type: verbatim
6219 #: ../fish/guestfish-actions.pod:237
6220 #, no-wrap
6221 msgid ""
6222 " aug-clear augpath\n"
6223 "\n"
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6228 msgid ""
6229 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6230 "L<augtool(1)> C<clear> command."
6231 msgstr ""
6232
6233 #. type: =head2
6234 #: ../fish/guestfish-actions.pod:242
6235 msgid "aug-close"
6236 msgstr ""
6237
6238 #. type: verbatim
6239 #: ../fish/guestfish-actions.pod:244
6240 #, no-wrap
6241 msgid ""
6242 " aug-close\n"
6243 "\n"
6244 msgstr ""
6245
6246 #. type: textblock
6247 #: ../fish/guestfish-actions.pod:246
6248 msgid ""
6249 "Close the current Augeas handle and free up any resources used by it.  After "
6250 "calling this, you have to call L</aug-init> again before you can use any "
6251 "other Augeas functions."
6252 msgstr ""
6253
6254 #. type: =head2
6255 #: ../fish/guestfish-actions.pod:251
6256 msgid "aug-defnode"
6257 msgstr ""
6258
6259 #. type: verbatim
6260 #: ../fish/guestfish-actions.pod:253
6261 #, no-wrap
6262 msgid ""
6263 " aug-defnode name expr val\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6269 msgid ""
6270 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../fish/guestfish-actions.pod:258
6275 msgid ""
6276 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6277 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6278 "containing that single node."
6279 msgstr ""
6280
6281 #. type: textblock
6282 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6283 msgid ""
6284 "On success this returns a pair containing the number of nodes in the "
6285 "nodeset, and a boolean flag if a node was created."
6286 msgstr ""
6287
6288 #. type: =head2
6289 #: ../fish/guestfish-actions.pod:266
6290 msgid "aug-defvar"
6291 msgstr ""
6292
6293 #. type: verbatim
6294 #: ../fish/guestfish-actions.pod:268
6295 #, no-wrap
6296 msgid ""
6297 " aug-defvar name expr\n"
6298 "\n"
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6303 msgid ""
6304 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6305 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6310 msgid ""
6311 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6312 "evaluates to something which is not a nodeset."
6313 msgstr ""
6314
6315 #. type: =head2
6316 #: ../fish/guestfish-actions.pod:277
6317 msgid "aug-get"
6318 msgstr ""
6319
6320 #. type: verbatim
6321 #: ../fish/guestfish-actions.pod:279
6322 #, no-wrap
6323 msgid ""
6324 " aug-get augpath\n"
6325 "\n"
6326 msgstr ""
6327
6328 #. type: textblock
6329 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6330 msgid ""
6331 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6332 "node, the C<value> is returned."
6333 msgstr ""
6334
6335 #. type: =head2
6336 #: ../fish/guestfish-actions.pod:284
6337 msgid "aug-init"
6338 msgstr ""
6339
6340 #. type: verbatim
6341 #: ../fish/guestfish-actions.pod:286
6342 #, no-wrap
6343 msgid ""
6344 " aug-init root flags\n"
6345 "\n"
6346 msgstr ""
6347
6348 #. type: textblock
6349 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6350 msgid ""
6351 "Create a new Augeas handle for editing configuration files.  If there was "
6352 "any previous Augeas handle associated with this guestfs session, then it is "
6353 "closed."
6354 msgstr ""
6355
6356 #. type: textblock
6357 #: ../fish/guestfish-actions.pod:292
6358 msgid "You must call this before using any other L</aug-*> commands."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6363 msgid ""
6364 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6369 msgid ""
6370 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6371 "logical I<or> of the following integers:"
6372 msgstr ""
6373
6374 #. type: =item
6375 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6376 msgid "C<AUG_SAVE_BACKUP> = 1"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6381 msgid "Keep the original file with a C<.augsave> extension."
6382 msgstr ""
6383
6384 #. type: =item
6385 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6386 msgid "C<AUG_SAVE_NEWFILE> = 2"
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6391 msgid ""
6392 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6393 "original.  Overrides C<AUG_SAVE_BACKUP>."
6394 msgstr ""
6395
6396 #. type: =item
6397 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6398 msgid "C<AUG_TYPE_CHECK> = 4"
6399 msgstr ""
6400
6401 #. type: textblock
6402 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6403 msgid "Typecheck lenses."
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../fish/guestfish-actions.pod:317
6408 msgid ""
6409 "This option is only useful when debugging Augeas lenses.  Use of this option "
6410 "may require additional memory for the libguestfs appliance.  You may need to "
6411 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6412 msgstr ""
6413
6414 #. type: =item
6415 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6416 msgid "C<AUG_NO_STDINC> = 8"
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6421 msgid "Do not use standard load path for modules."
6422 msgstr ""
6423
6424 #. type: =item
6425 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6426 msgid "C<AUG_SAVE_NOOP> = 16"
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6431 msgid "Make save a no-op, just record what would have been changed."
6432 msgstr ""
6433
6434 #. type: =item
6435 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6436 msgid "C<AUG_NO_LOAD> = 32"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:332
6441 msgid "Do not load the tree in L</aug-init>."
6442 msgstr ""
6443
6444 #. type: textblock
6445 #: ../fish/guestfish-actions.pod:336
6446 msgid "To close the handle, you can call L</aug-close>."
6447 msgstr ""
6448
6449 #. type: textblock
6450 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6451 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6452 msgstr ""
6453
6454 #. type: =head2
6455 #: ../fish/guestfish-actions.pod:340
6456 msgid "aug-insert"
6457 msgstr ""
6458
6459 #. type: verbatim
6460 #: ../fish/guestfish-actions.pod:342
6461 #, no-wrap
6462 msgid ""
6463 " aug-insert augpath label true|false\n"
6464 "\n"
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6469 msgid ""
6470 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6471 "or after C<path> (depending on the boolean flag C<before>)."
6472 msgstr ""
6473
6474 #. type: textblock
6475 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6476 msgid ""
6477 "C<path> must match exactly one existing node in the tree, and C<label> must "
6478 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6479 msgstr ""
6480
6481 #. type: =head2
6482 #: ../fish/guestfish-actions.pod:352
6483 msgid "aug-load"
6484 msgstr ""
6485
6486 #. type: verbatim
6487 #: ../fish/guestfish-actions.pod:354
6488 #, no-wrap
6489 msgid ""
6490 " aug-load\n"
6491 "\n"
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6496 msgid "Load files into the tree."
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6501 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6502 msgstr ""
6503
6504 #. type: =head2
6505 #: ../fish/guestfish-actions.pod:361
6506 msgid "aug-ls"
6507 msgstr ""
6508
6509 #. type: verbatim
6510 #: ../fish/guestfish-actions.pod:363
6511 #, no-wrap
6512 msgid ""
6513 " aug-ls augpath\n"
6514 "\n"
6515 msgstr ""
6516
6517 #. type: textblock
6518 #: ../fish/guestfish-actions.pod:365
6519 msgid ""
6520 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6521 "resulting nodes into alphabetical order."
6522 msgstr ""
6523
6524 #. type: =head2
6525 #: ../fish/guestfish-actions.pod:368
6526 msgid "aug-match"
6527 msgstr ""
6528
6529 #. type: verbatim
6530 #: ../fish/guestfish-actions.pod:370
6531 #, no-wrap
6532 msgid ""
6533 " aug-match augpath\n"
6534 "\n"
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6539 msgid ""
6540 "Returns a list of paths which match the path expression C<path>.  The "
6541 "returned paths are sufficiently qualified so that they match exactly one "
6542 "node in the current tree."
6543 msgstr ""
6544
6545 #. type: =head2
6546 #: ../fish/guestfish-actions.pod:376
6547 msgid "aug-mv"
6548 msgstr ""
6549
6550 #. type: verbatim
6551 #: ../fish/guestfish-actions.pod:378
6552 #, no-wrap
6553 msgid ""
6554 " aug-mv src dest\n"
6555 "\n"
6556 msgstr ""
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6560 msgid ""
6561 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6562 "C<dest> is overwritten if it exists."
6563 msgstr ""
6564
6565 #. type: =head2
6566 #: ../fish/guestfish-actions.pod:383
6567 msgid "aug-rm"
6568 msgstr ""
6569
6570 #. type: verbatim
6571 #: ../fish/guestfish-actions.pod:385
6572 #, no-wrap
6573 msgid ""
6574 " aug-rm augpath\n"
6575 "\n"
6576 msgstr ""
6577
6578 #. type: textblock
6579 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6580 msgid "Remove C<path> and all of its children."
6581 msgstr ""
6582
6583 #. type: textblock
6584 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6585 msgid "On success this returns the number of entries which were removed."
6586 msgstr ""
6587
6588 #. type: =head2
6589 #: ../fish/guestfish-actions.pod:391
6590 msgid "aug-save"
6591 msgstr ""
6592
6593 #. type: verbatim
6594 #: ../fish/guestfish-actions.pod:393
6595 #, no-wrap
6596 msgid ""
6597 " aug-save\n"
6598 "\n"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6603 msgid "This writes all pending changes to disk."
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../fish/guestfish-actions.pod:397
6608 msgid ""
6609 "The flags which were passed to L</aug-init> affect exactly how files are "
6610 "saved."
6611 msgstr ""
6612
6613 #. type: =head2
6614 #: ../fish/guestfish-actions.pod:400
6615 msgid "aug-set"
6616 msgstr ""
6617
6618 #. type: verbatim
6619 #: ../fish/guestfish-actions.pod:402
6620 #, no-wrap
6621 msgid ""
6622 " aug-set augpath val\n"
6623 "\n"
6624 msgstr ""
6625
6626 #. type: textblock
6627 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6628 msgid "Set the value associated with C<path> to C<val>."
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:406
6633 msgid ""
6634 "In the Augeas API, it is possible to clear a node by setting the value to "
6635 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6636 "this call.  Instead you must use the L</aug-clear> call."
6637 msgstr ""
6638
6639 #. type: =head2
6640 #: ../fish/guestfish-actions.pod:411
6641 msgid "available"
6642 msgstr ""
6643
6644 #. type: verbatim
6645 #: ../fish/guestfish-actions.pod:413
6646 #, no-wrap
6647 msgid ""
6648 " available 'groups ...'\n"
6649 "\n"
6650 msgstr ""
6651
6652 #. type: textblock
6653 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6654 msgid ""
6655 "This command is used to check the availability of some groups of "
6656 "functionality in the appliance, which not all builds of the libguestfs "
6657 "appliance will be able to provide."
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:419
6662 msgid ""
6663 "The libguestfs groups, and the functions that those groups correspond to, "
6664 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6665 "runtime by calling L</available-all-groups>."
6666 msgstr ""
6667
6668 #. type: textblock
6669 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6670 msgid ""
6671 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6672 "\"]> would check for the availability of the Linux inotify functions and "
6673 "Augeas (configuration file editing) functions."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6678 msgid "The command returns no error if I<all> requested groups are available."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6683 msgid ""
6684 "It fails with an error if one or more of the requested groups is unavailable "
6685 "in the appliance."
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6690 msgid ""
6691 "If an unknown group name is included in the list of groups then an error is "
6692 "always returned."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6697 msgid "I<Notes:>"
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../fish/guestfish-actions.pod:443
6702 msgid "You must call L</launch> before calling this function."
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6707 msgid ""
6708 "The reason is because we don't know what groups are supported by the "
6709 "appliance/daemon until it is running and can be queried."
6710 msgstr ""
6711
6712 #. type: textblock
6713 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6714 msgid ""
6715 "If a group of functions is available, this does not necessarily mean that "
6716 "they will work.  You still have to check for errors when calling individual "
6717 "API functions even if they are available."
6718 msgstr ""
6719
6720 #. type: textblock
6721 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6722 msgid ""
6723 "It is usually the job of distro packagers to build complete functionality "
6724 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6725 "with all requirements satisfied, will support everything."
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../fish/guestfish-actions.pod:465
6730 msgid ""
6731 "This call was added in version C<1.0.80>.  In previous versions of "
6732 "libguestfs all you could do would be to speculatively execute a command to "
6733 "find out if the daemon implemented it.  See also L</version>."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:472
6738 msgid "available-all-groups"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:474
6743 #, no-wrap
6744 msgid ""
6745 " available-all-groups\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:476
6751 msgid ""
6752 "This command returns a list of all optional groups that this daemon knows "
6753 "about.  Note this returns both supported and unsupported groups.  To find "
6754 "out which ones the daemon can actually support you have to call L</"
6755 "available> on each member of the returned list."
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:482
6760 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6761 msgstr ""
6762
6763 #. type: =head2
6764 #: ../fish/guestfish-actions.pod:484
6765 msgid "base64-in"
6766 msgstr ""
6767
6768 #. type: verbatim
6769 #: ../fish/guestfish-actions.pod:486
6770 #, no-wrap
6771 msgid ""
6772 " base64-in (base64file|-) filename\n"
6773 "\n"
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6778 msgid ""
6779 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6784 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6785 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6786 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6787 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
6788 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
6789 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
6790 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
6791 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6792 msgstr ""
6793
6794 #. type: =head2
6795 #: ../fish/guestfish-actions.pod:493
6796 msgid "base64-out"
6797 msgstr ""
6798
6799 #. type: verbatim
6800 #: ../fish/guestfish-actions.pod:495
6801 #, no-wrap
6802 msgid ""
6803 " base64-out filename (base64file|-)\n"
6804 "\n"
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6809 msgid ""
6810 "This command downloads the contents of C<filename>, writing it out to local "
6811 "file C<base64file> encoded as base64."
6812 msgstr ""
6813
6814 #. type: =head2
6815 #: ../fish/guestfish-actions.pod:502
6816 msgid "blockdev-flushbufs"
6817 msgstr ""
6818
6819 #. type: verbatim
6820 #: ../fish/guestfish-actions.pod:504
6821 #, no-wrap
6822 msgid ""
6823 " blockdev-flushbufs device\n"
6824 "\n"
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6829 msgid ""
6830 "This tells the kernel to flush internal buffers associated with C<device>."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6835 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6836 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6837 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6838 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6839 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6840 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6841 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6842 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6843 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6844 msgid "This uses the L<blockdev(8)> command."
6845 msgstr ""
6846
6847 #. type: =head2
6848 #: ../fish/guestfish-actions.pod:511
6849 msgid "blockdev-getbsz"
6850 msgstr ""
6851
6852 #. type: verbatim
6853 #: ../fish/guestfish-actions.pod:513
6854 #, no-wrap
6855 msgid ""
6856 " blockdev-getbsz device\n"
6857 "\n"
6858 msgstr ""
6859
6860 #. type: textblock
6861 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6862 msgid "This returns the block size of a device."
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6867 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6868 msgid ""
6869 "(Note this is different from both I<size in blocks> and I<filesystem block "
6870 "size>)."
6871 msgstr ""
6872
6873 #. type: =head2
6874 #: ../fish/guestfish-actions.pod:522
6875 msgid "blockdev-getro"
6876 msgstr ""
6877
6878 #. type: verbatim
6879 #: ../fish/guestfish-actions.pod:524
6880 #, no-wrap
6881 msgid ""
6882 " blockdev-getro device\n"
6883 "\n"
6884 msgstr ""
6885
6886 #. type: textblock
6887 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6888 msgid ""
6889 "Returns a boolean indicating if the block device is read-only (true if read-"
6890 "only, false if not)."
6891 msgstr ""
6892
6893 #. type: =head2
6894 #: ../fish/guestfish-actions.pod:531
6895 msgid "blockdev-getsize64"
6896 msgstr ""
6897
6898 #. type: verbatim
6899 #: ../fish/guestfish-actions.pod:533
6900 #, no-wrap
6901 msgid ""
6902 " blockdev-getsize64 device\n"
6903 "\n"
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6908 msgid "This returns the size of the device in bytes."
6909 msgstr ""
6910
6911 #. type: textblock
6912 #: ../fish/guestfish-actions.pod:537
6913 msgid "See also L</blockdev-getsz>."
6914 msgstr ""
6915
6916 #. type: =head2
6917 #: ../fish/guestfish-actions.pod:541
6918 msgid "blockdev-getss"
6919 msgstr ""
6920
6921 #. type: verbatim
6922 #: ../fish/guestfish-actions.pod:543
6923 #, no-wrap
6924 msgid ""
6925 " blockdev-getss device\n"
6926 "\n"
6927 msgstr ""
6928
6929 #. type: textblock
6930 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6931 msgid ""
6932 "This returns the size of sectors on a block device.  Usually 512, but can be "
6933 "larger for modern devices."
6934 msgstr ""
6935
6936 #. type: textblock
6937 #: ../fish/guestfish-actions.pod:548
6938 msgid ""
6939 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:553
6944 msgid "blockdev-getsz"
6945 msgstr ""
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:555
6949 #, no-wrap
6950 msgid ""
6951 " blockdev-getsz device\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6957 msgid ""
6958 "This returns the size of the device in units of 512-byte sectors (even if "
6959 "the sectorsize isn't 512 bytes ... weird)."
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:560
6964 msgid ""
6965 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6966 "blockdev-getsize64> for the more useful I<size in bytes>."
6967 msgstr ""
6968
6969 #. type: =head2
6970 #: ../fish/guestfish-actions.pod:566
6971 msgid "blockdev-rereadpt"
6972 msgstr ""
6973
6974 #. type: verbatim
6975 #: ../fish/guestfish-actions.pod:568
6976 #, no-wrap
6977 msgid ""
6978 " blockdev-rereadpt device\n"
6979 "\n"
6980 msgstr ""
6981
6982 #. type: textblock
6983 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6984 msgid "Reread the partition table on C<device>."
6985 msgstr ""
6986
6987 #. type: =head2
6988 #: ../fish/guestfish-actions.pod:574
6989 msgid "blockdev-setbsz"
6990 msgstr ""
6991
6992 #. type: verbatim
6993 #: ../fish/guestfish-actions.pod:576
6994 #, no-wrap
6995 msgid ""
6996 " blockdev-setbsz device blocksize\n"
6997 "\n"
6998 msgstr ""
6999
7000 #. type: textblock
7001 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7002 msgid "This sets the block size of a device."
7003 msgstr ""
7004
7005 #. type: =head2
7006 #: ../fish/guestfish-actions.pod:585
7007 msgid "blockdev-setro"
7008 msgstr ""
7009
7010 #. type: verbatim
7011 #: ../fish/guestfish-actions.pod:587
7012 #, no-wrap
7013 msgid ""
7014 " blockdev-setro device\n"
7015 "\n"
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7020 msgid "Sets the block device named C<device> to read-only."
7021 msgstr ""
7022
7023 #. type: =head2
7024 #: ../fish/guestfish-actions.pod:593
7025 msgid "blockdev-setrw"
7026 msgstr ""
7027
7028 #. type: verbatim
7029 #: ../fish/guestfish-actions.pod:595
7030 #, no-wrap
7031 msgid ""
7032 " blockdev-setrw device\n"
7033 "\n"
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7038 msgid "Sets the block device named C<device> to read-write."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:601
7043 msgid "btrfs-filesystem-resize"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:603
7048 #, no-wrap
7049 msgid ""
7050 " btrfs-filesystem-resize mountpoint [size:N]\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7056 msgid "This command resizes a btrfs filesystem."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7061 msgid ""
7062 "Note that unlike other resize calls, the filesystem has to be mounted and "
7063 "the parameter is the mountpoint not the device (this is a requirement of "
7064 "btrfs itself)."
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
7069 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7070 msgid "The optional parameters are:"
7071 msgstr ""
7072
7073 #. type: =item
7074 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
7075 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7076 msgid "C<size>"
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7081 msgid ""
7082 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7083 "resized to the maximum size."
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7088 msgid "See also L<btrfs(8)>."
7089 msgstr ""
7090
7091 #. type: =head2
7092 #: ../fish/guestfish-actions.pod:626
7093 msgid "case-sensitive-path"
7094 msgstr ""
7095
7096 #. type: verbatim
7097 #: ../fish/guestfish-actions.pod:628
7098 #, no-wrap
7099 msgid ""
7100 " case-sensitive-path path\n"
7101 "\n"
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7106 msgid ""
7107 "This can be used to resolve case insensitive paths on a filesystem which is "
7108 "case sensitive.  The use case is to resolve paths which you have read from "
7109 "Windows configuration files or the Windows Registry, to the true path."
7110 msgstr ""
7111
7112 #. type: textblock
7113 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7114 msgid ""
7115 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7116 "(and probably others), which is that although the underlying filesystem is "
7117 "case-insensitive, the driver exports the filesystem to Linux as case-"
7118 "sensitive."
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7123 msgid ""
7124 "One consequence of this is that special directories such as C<c:\\windows> "
7125 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7126 "precise details of how they were created.  In Windows itself this would not "
7127 "be a problem."
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7132 msgid ""
7133 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7134 "#posixfilenames1>"
7135 msgstr ""
7136
7137 #. type: textblock
7138 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7139 msgid ""
7140 "This function resolves the true case of each element in the path and returns "
7141 "the case-sensitive path."
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../fish/guestfish-actions.pod:652
7146 msgid ""
7147 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7148 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7149 "the directories were originally created under Windows)."
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7154 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:660
7159 msgid "See also L</realpath>."
7160 msgstr ""
7161
7162 #. type: =head2
7163 #: ../fish/guestfish-actions.pod:662
7164 msgid "cat"
7165 msgstr ""
7166
7167 #. type: verbatim
7168 #: ../fish/guestfish-actions.pod:664
7169 #, no-wrap
7170 msgid ""
7171 " cat path\n"
7172 "\n"
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
7177 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7178 msgid "Return the contents of the file named C<path>."
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:668
7183 msgid ""
7184 "Note that this function cannot correctly handle binary files (specifically, "
7185 "files containing C<\\0> character which is treated as end of string).  For "
7186 "those you need to use the L</read-file> or L</download> functions which have "
7187 "a more complex interface."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7192 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7193 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7194 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7195 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7196 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7197 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7198 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
7199 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
7200 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
7201 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
7202 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
7203 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
7204 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
7205 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
7206 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
7207 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7208 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7209 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7210 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7211 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7212 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7213 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7214 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
7215 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
7216 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
7217 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
7218 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
7219 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
7220 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
7221 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
7222 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7223 msgid ""
7224 "Because of the message protocol, there is a transfer limit of somewhere "
7225 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7226 msgstr ""
7227
7228 #. type: =head2
7229 #: ../fish/guestfish-actions.pod:676
7230 msgid "checksum"
7231 msgstr ""
7232
7233 #. type: verbatim
7234 #: ../fish/guestfish-actions.pod:678
7235 #, no-wrap
7236 msgid ""
7237 " checksum csumtype path\n"
7238 "\n"
7239 msgstr ""
7240
7241 #. type: textblock
7242 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7243 msgid ""
7244 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7249 msgid ""
7250 "The type of checksum to compute is given by the C<csumtype> parameter which "
7251 "must have one of the following values:"
7252 msgstr ""
7253
7254 #. type: =item
7255 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7256 msgid "C<crc>"
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7261 msgid ""
7262 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7263 "C<cksum> command."
7264 msgstr ""
7265
7266 #. type: =item
7267 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7268 msgid "C<md5>"
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7273 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7274 msgstr ""
7275
7276 #. type: =item
7277 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7278 msgid "C<sha1>"
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7283 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7284 msgstr ""
7285
7286 #. type: =item
7287 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7288 msgid "C<sha224>"
7289 msgstr ""
7290
7291 #. type: textblock
7292 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7293 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7294 msgstr ""
7295
7296 #. type: =item
7297 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7298 msgid "C<sha256>"
7299 msgstr ""
7300
7301 #. type: textblock
7302 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7303 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7304 msgstr ""
7305
7306 #. type: =item
7307 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7308 msgid "C<sha384>"
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7313 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7314 msgstr ""
7315
7316 #. type: =item
7317 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7318 msgid "C<sha512>"
7319 msgstr ""
7320
7321 #. type: textblock
7322 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7323 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7324 msgstr ""
7325
7326 #. type: textblock
7327 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7328 msgid "The checksum is returned as a printable string."
7329 msgstr ""
7330
7331 #. type: textblock
7332 #: ../fish/guestfish-actions.pod:721
7333 msgid "To get the checksum for a device, use L</checksum-device>."
7334 msgstr ""
7335
7336 #. type: textblock
7337 #: ../fish/guestfish-actions.pod:723
7338 msgid "To get the checksums for many files, use L</checksums-out>."
7339 msgstr ""
7340
7341 #. type: =head2
7342 #: ../fish/guestfish-actions.pod:725
7343 msgid "checksum-device"
7344 msgstr ""
7345
7346 #. type: verbatim
7347 #: ../fish/guestfish-actions.pod:727
7348 #, no-wrap
7349 msgid ""
7350 " checksum-device csumtype device\n"
7351 "\n"
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../fish/guestfish-actions.pod:729
7356 msgid ""
7357 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7358 "device named C<device>.  For the types of checksums supported see the L</"
7359 "checksum> command."
7360 msgstr ""
7361
7362 #. type: =head2
7363 #: ../fish/guestfish-actions.pod:733
7364 msgid "checksums-out"
7365 msgstr ""
7366
7367 #. type: verbatim
7368 #: ../fish/guestfish-actions.pod:735
7369 #, no-wrap
7370 msgid ""
7371 " checksums-out csumtype directory (sumsfile|-)\n"
7372 "\n"
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7377 msgid ""
7378 "This command computes the checksums of all regular files in C<directory> and "
7379 "then emits a list of those checksums to the local output file C<sumsfile>."
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7384 msgid ""
7385 "This can be used for verifying the integrity of a virtual machine.  However "
7386 "to be properly secure you should pay attention to the output of the checksum "
7387 "command (it uses the ones from GNU coreutils).  In particular when the "
7388 "filename is not printable, coreutils uses a special backslash syntax.  For "
7389 "more information, see the GNU coreutils info file."
7390 msgstr ""
7391
7392 #. type: =head2
7393 #: ../fish/guestfish-actions.pod:751
7394 msgid "chmod"
7395 msgstr ""
7396
7397 #. type: verbatim
7398 #: ../fish/guestfish-actions.pod:753
7399 #, no-wrap
7400 msgid ""
7401 " chmod mode path\n"
7402 "\n"
7403 msgstr ""
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7407 msgid ""
7408 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7409 "supported."
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7414 msgid ""
7415 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7416 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7417 "C<700>."
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
7422 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
7423 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
7424 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
7425 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
7426 msgid "The mode actually set is affected by the umask."
7427 msgstr ""
7428
7429 #. type: =head2
7430 #: ../fish/guestfish-actions.pod:764
7431 msgid "chown"
7432 msgstr ""
7433
7434 #. type: verbatim
7435 #: ../fish/guestfish-actions.pod:766
7436 #, no-wrap
7437 msgid ""
7438 " chown owner group path\n"
7439 "\n"
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7444 msgid "Change the file owner to C<owner> and group to C<group>."
7445 msgstr ""
7446
7447 #. type: textblock
7448 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7449 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7450 msgid ""
7451 "Only numeric uid and gid are supported.  If you want to use names, you will "
7452 "need to locate and parse the password file yourself (Augeas support makes "
7453 "this relatively easy)."
7454 msgstr ""
7455
7456 #. type: =head2
7457 #: ../fish/guestfish-actions.pod:774
7458 msgid "command"
7459 msgstr ""
7460
7461 #. type: verbatim
7462 #: ../fish/guestfish-actions.pod:776
7463 #, no-wrap
7464 msgid ""
7465 " command 'arguments ...'\n"
7466 "\n"
7467 msgstr ""
7468
7469 #. type: textblock
7470 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7471 msgid ""
7472 "This call runs a command from the guest filesystem.  The filesystem must be "
7473 "mounted, and must contain a compatible operating system (ie. something "
7474 "Linux, with the same or compatible processor architecture)."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:783
7479 msgid ""
7480 "The single parameter is an argv-style list of arguments.  The first element "
7481 "is the name of the program to run.  Subsequent elements are parameters.  The "
7482 "list must be non-empty (ie. must contain a program name).  Note that the "
7483 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7488 msgid "The return value is anything printed to I<stdout> by the command."
7489 msgstr ""
7490
7491 #. type: textblock
7492 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7493 msgid ""
7494 "If the command returns a non-zero exit status, then this function returns an "
7495 "error message.  The error message string is the content of I<stderr> from "
7496 "the command."
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7501 msgid ""
7502 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7503 "bin>.  If you require a program from another location, you should provide "
7504 "the full path in the first parameter."
7505 msgstr ""
7506
7507 #. type: textblock
7508 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7509 msgid ""
7510 "Shared libraries and data files required by the program must be available on "
7511 "filesystems which are mounted in the correct places.  It is the caller's "
7512 "responsibility to ensure all filesystems that are needed are mounted at the "
7513 "right locations."
7514 msgstr ""
7515
7516 #. type: =head2
7517 #: ../fish/guestfish-actions.pod:811
7518 msgid "command-lines"
7519 msgstr ""
7520
7521 #. type: verbatim
7522 #: ../fish/guestfish-actions.pod:813
7523 #, no-wrap
7524 msgid ""
7525 " command-lines 'arguments ...'\n"
7526 "\n"
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:815
7531 msgid ""
7532 "This is the same as L</command>, but splits the result into a list of lines."
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:818
7537 msgid "See also: L</sh-lines>"
7538 msgstr ""
7539
7540 #. type: =head2
7541 #: ../fish/guestfish-actions.pod:823
7542 msgid "compress-device-out"
7543 msgstr ""
7544
7545 #. type: verbatim
7546 #: ../fish/guestfish-actions.pod:825
7547 #, no-wrap
7548 msgid ""
7549 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7550 "\n"
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7555 msgid ""
7556 "This command compresses C<device> and writes it out to the local file "
7557 "C<zdevice>."
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:830
7562 msgid ""
7563 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7564 "compress-out>."
7565 msgstr ""
7566
7567 #. type: =head2
7568 #: ../fish/guestfish-actions.pod:837
7569 msgid "compress-out"
7570 msgstr ""
7571
7572 #. type: verbatim
7573 #: ../fish/guestfish-actions.pod:839
7574 #, no-wrap
7575 msgid ""
7576 " compress-out ctype file (zfile|-) [level:N]\n"
7577 "\n"
7578 msgstr ""
7579
7580 #. type: textblock
7581 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7582 msgid ""
7583 "This command compresses C<file> and writes it out to the local file C<zfile>."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7588 msgid ""
7589 "The compression program used is controlled by the C<ctype> parameter.  "
7590 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7591 "Some compression types may not be supported by particular builds of "
7592 "libguestfs, in which case you will get an error containing the substring "
7593 "\"not supported\"."
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7598 msgid ""
7599 "The optional C<level> parameter controls compression level.  The meaning and "
7600 "default for this parameter depends on the compression program being used."
7601 msgstr ""
7602
7603 #. type: =head2
7604 #: ../fish/guestfish-actions.pod:858
7605 msgid "config"
7606 msgstr ""
7607
7608 #. type: verbatim
7609 #: ../fish/guestfish-actions.pod:860
7610 #, no-wrap
7611 msgid ""
7612 " config qemuparam qemuvalue\n"
7613 "\n"
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7618 msgid ""
7619 "This can be used to add arbitrary qemu command line parameters of the form "
7620 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7621 "setting some parameters which would interfere with parameters that we use."
7622 msgstr ""
7623
7624 #. type: textblock
7625 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7626 msgid "The first character of C<param> string must be a C<-> (dash)."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7631 msgid "C<value> can be NULL."
7632 msgstr ""
7633
7634 #. type: =head2
7635 #: ../fish/guestfish-actions.pod:871
7636 msgid "copy-device-to-device"
7637 msgstr ""
7638
7639 #. type: verbatim
7640 #: ../fish/guestfish-actions.pod:873
7641 #, no-wrap
7642 msgid ""
7643 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7644 "\n"
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:875
7649 msgid ""
7650 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7651 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7652 "(device|file) to a destination (device|file)."
7653 msgstr ""
7654
7655 #. type: textblock
7656 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7657 msgid ""
7658 "Partial copies can be made since you can specify optionally the source "
7659 "offset, destination offset and size to copy.  These values are all specified "
7660 "in bytes.  If not given, the offsets both default to zero, and the size "
7661 "defaults to copying as much as possible until we hit the end of the source."
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7666 msgid ""
7667 "The source and destination may be the same object.  However overlapping "
7668 "regions may not be copied correctly."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7673 msgid ""
7674 "If the destination is a file, it is created if required.  If the destination "
7675 "file is not large enough, it is extended."
7676 msgstr ""
7677
7678 #. type: =head2
7679 #: ../fish/guestfish-actions.pod:896
7680 msgid "copy-device-to-file"
7681 msgstr ""
7682
7683 #. type: verbatim
7684 #: ../fish/guestfish-actions.pod:898
7685 #, no-wrap
7686 msgid ""
7687 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7688 "\n"
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7693 #: ../fish/guestfish-actions.pod:918
7694 msgid "See L</copy-device-to-device> for a general overview of this call."
7695 msgstr ""
7696
7697 #. type: =head2
7698 #: ../fish/guestfish-actions.pod:905
7699 msgid "copy-file-to-device"
7700 msgstr ""
7701
7702 #. type: verbatim
7703 #: ../fish/guestfish-actions.pod:907
7704 #, no-wrap
7705 msgid ""
7706 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7707 "\n"
7708 msgstr ""
7709
7710 #. type: =head2
7711 #: ../fish/guestfish-actions.pod:914
7712 msgid "copy-file-to-file"
7713 msgstr ""
7714
7715 #. type: verbatim
7716 #: ../fish/guestfish-actions.pod:916
7717 #, no-wrap
7718 msgid ""
7719 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7720 "\n"
7721 msgstr ""
7722
7723 #. type: textblock
7724 #: ../fish/guestfish-actions.pod:921
7725 msgid ""
7726 "This is B<not> the function you want for copying files.  This is for copying "
7727 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7728 "file copying and moving functions."
7729 msgstr ""
7730
7731 #. type: =head2
7732 #: ../fish/guestfish-actions.pod:928
7733 msgid "copy-size"
7734 msgstr ""
7735
7736 #. type: verbatim
7737 #: ../fish/guestfish-actions.pod:930
7738 #, no-wrap
7739 msgid ""
7740 " copy-size src dest size\n"
7741 "\n"
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7746 msgid ""
7747 "This command copies exactly C<size> bytes from one source device or file "
7748 "C<src> to another destination device or file C<dest>."
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7753 msgid ""
7754 "Note this will fail if the source is too short or if the destination is not "
7755 "large enough."
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7760 msgid ""
7761 "I<This function is deprecated.> In new code, use the L</"
7762 "copy_device_to_device> call instead."
7763 msgstr ""
7764
7765 #. type: =head2
7766 #: ../fish/guestfish-actions.pod:945
7767 msgid "cp"
7768 msgstr ""
7769
7770 #. type: verbatim
7771 #: ../fish/guestfish-actions.pod:947
7772 #, no-wrap
7773 msgid ""
7774 " cp src dest\n"
7775 "\n"
7776 msgstr ""
7777
7778 #. type: textblock
7779 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7780 msgid ""
7781 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7782 "destination filename or destination directory."
7783 msgstr ""
7784
7785 #. type: =head2
7786 #: ../fish/guestfish-actions.pod:952
7787 msgid "cp-a"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:954
7792 #, no-wrap
7793 msgid ""
7794 " cp-a src dest\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7800 msgid ""
7801 "This copies a file or directory from C<src> to C<dest> recursively using the "
7802 "C<cp -a> command."
7803 msgstr ""
7804
7805 #. type: =head2
7806 #: ../fish/guestfish-actions.pod:959
7807 msgid "dd"
7808 msgstr ""
7809
7810 #. type: verbatim
7811 #: ../fish/guestfish-actions.pod:961
7812 #, no-wrap
7813 msgid ""
7814 " dd src dest\n"
7815 "\n"
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7820 msgid ""
7821 "This command copies from one source device or file C<src> to another "
7822 "destination device or file C<dest>.  Normally you would use this to copy to "
7823 "or from a device or partition, for example to duplicate a filesystem."
7824 msgstr ""
7825
7826 #. type: textblock
7827 #: ../fish/guestfish-actions.pod:968
7828 msgid ""
7829 "If the destination is a device, it must be as large or larger than the "
7830 "source file or device, otherwise the copy will fail.  This command cannot do "
7831 "partial copies (see L</copy-device-to-device>)."
7832 msgstr ""
7833
7834 #. type: =head2
7835 #: ../fish/guestfish-actions.pod:980
7836 msgid "df"
7837 msgstr ""
7838
7839 #. type: verbatim
7840 #: ../fish/guestfish-actions.pod:982
7841 #, no-wrap
7842 msgid ""
7843 " df\n"
7844 "\n"
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7849 msgid "This command runs the C<df> command to report disk space used."
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7854 msgid ""
7855 "This command is mostly useful for interactive sessions.  It is I<not> "
7856 "intended that you try to parse the output string.  Use L</statvfs> from "
7857 "programs."
7858 msgstr ""
7859
7860 #. type: =head2
7861 #: ../fish/guestfish-actions.pod:990
7862 msgid "df-h"
7863 msgstr ""
7864
7865 #. type: verbatim
7866 #: ../fish/guestfish-actions.pod:992
7867 #, no-wrap
7868 msgid ""
7869 " df-h\n"
7870 "\n"
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
7875 msgid ""
7876 "This command runs the C<df -h> command to report disk space used in human-"
7877 "readable format."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../fish/guestfish-actions.pod:1001
7882 msgid "dmesg"
7883 msgstr ""
7884
7885 #. type: verbatim
7886 #: ../fish/guestfish-actions.pod:1003
7887 #, no-wrap
7888 msgid ""
7889 " dmesg\n"
7890 "\n"
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
7895 msgid ""
7896 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7897 "This is sometimes useful for extended debugging of problems."
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:1009
7902 msgid ""
7903 "Another way to get the same information is to enable verbose messages with "
7904 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7905 "before running the program."
7906 msgstr ""
7907
7908 #. type: =head2
7909 #: ../fish/guestfish-actions.pod:1014
7910 msgid "download"
7911 msgstr ""
7912
7913 #. type: verbatim
7914 #: ../fish/guestfish-actions.pod:1016
7915 #, no-wrap
7916 msgid ""
7917 " download remotefilename (filename|-)\n"
7918 "\n"
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
7923 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
7924 msgid ""
7925 "Download file C<remotefilename> and save it as C<filename> on the local "
7926 "machine."
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
7931 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
7932 msgid "C<filename> can also be a named pipe."
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:1023
7937 msgid "See also L</upload>, L</cat>."
7938 msgstr ""
7939
7940 #. type: =head2
7941 #: ../fish/guestfish-actions.pod:1027
7942 msgid "download-offset"
7943 msgstr ""
7944
7945 #. type: verbatim
7946 #: ../fish/guestfish-actions.pod:1029
7947 #, no-wrap
7948 msgid ""
7949 " download-offset remotefilename (filename|-) offset size\n"
7950 "\n"
7951 msgstr ""
7952
7953 #. type: textblock
7954 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
7955 msgid ""
7956 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7957 "region must be within the file or device)."
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../fish/guestfish-actions.pod:1037
7962 msgid ""
7963 "Note that there is no limit on the amount of data that can be downloaded "
7964 "with this call, unlike with L</pread>, and this call always reads the full "
7965 "amount unless an error occurs."
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:1042
7970 msgid "See also L</download>, L</pread>."
7971 msgstr ""
7972
7973 #. type: =head2
7974 #: ../fish/guestfish-actions.pod:1046
7975 msgid "drop-caches"
7976 msgstr ""
7977
7978 #. type: verbatim
7979 #: ../fish/guestfish-actions.pod:1048
7980 #, no-wrap
7981 msgid ""
7982 " drop-caches whattodrop\n"
7983 "\n"
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
7988 msgid ""
7989 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7990 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7991 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
7996 msgid "Setting C<whattodrop> to 3 should drop everything."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8001 msgid ""
8002 "This automatically calls L<sync(2)> before the operation, so that the "
8003 "maximum guest memory is freed."
8004 msgstr ""
8005
8006 #. type: =head2
8007 #: ../fish/guestfish-actions.pod:1060
8008 msgid "du"
8009 msgstr ""
8010
8011 #. type: verbatim
8012 #: ../fish/guestfish-actions.pod:1062
8013 #, no-wrap
8014 msgid ""
8015 " du path\n"
8016 "\n"
8017 msgstr ""
8018
8019 #. type: textblock
8020 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8021 msgid ""
8022 "This command runs the C<du -s> command to estimate file space usage for "
8023 "C<path>."
8024 msgstr ""
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8028 msgid ""
8029 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8030 "estimate includes the contents of the directory and all subdirectories "
8031 "(recursively)."
8032 msgstr ""
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8036 msgid ""
8037 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8038 msgstr ""
8039
8040 #. type: =head2
8041 #: ../fish/guestfish-actions.pod:1074
8042 msgid "e2fsck-f"
8043 msgstr ""
8044
8045 #. type: verbatim
8046 #: ../fish/guestfish-actions.pod:1076
8047 #, no-wrap
8048 msgid ""
8049 " e2fsck-f device\n"
8050 "\n"
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8055 msgid ""
8056 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8057 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8058 "clean (I<-f>)."
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1082
8063 msgid ""
8064 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8065 "should use L</fsck>."
8066 msgstr ""
8067
8068 #. type: =head2
8069 #: ../fish/guestfish-actions.pod:1085
8070 msgid "echo-daemon"
8071 msgstr ""
8072
8073 #. type: verbatim
8074 #: ../fish/guestfish-actions.pod:1087
8075 #, no-wrap
8076 msgid ""
8077 " echo-daemon 'words ...'\n"
8078 "\n"
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8083 msgid ""
8084 "This command concatenates the list of C<words> passed with single spaces "
8085 "between them and returns the resulting string."
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8090 msgid "You can use this command to test the connection through to the daemon."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1094
8095 msgid "See also L</ping-daemon>."
8096 msgstr ""
8097
8098 #. type: =head2
8099 #: ../fish/guestfish-actions.pod:1096
8100 msgid "egrep"
8101 msgstr ""
8102
8103 #. type: verbatim
8104 #: ../fish/guestfish-actions.pod:1098
8105 #, no-wrap
8106 msgid ""
8107 " egrep regex path\n"
8108 "\n"
8109 msgstr ""
8110
8111 #. type: textblock
8112 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8113 msgid ""
8114 "This calls the external C<egrep> program and returns the matching lines."
8115 msgstr ""
8116
8117 #. type: =head2
8118 #: ../fish/guestfish-actions.pod:1106
8119 msgid "egrepi"
8120 msgstr ""
8121
8122 #. type: verbatim
8123 #: ../fish/guestfish-actions.pod:1108
8124 #, no-wrap
8125 msgid ""
8126 " egrepi regex path\n"
8127 "\n"
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8132 msgid ""
8133 "This calls the external C<egrep -i> program and returns the matching lines."
8134 msgstr ""
8135
8136 #. type: =head2
8137 #: ../fish/guestfish-actions.pod:1116
8138 msgid "equal"
8139 msgstr ""
8140
8141 #. type: verbatim
8142 #: ../fish/guestfish-actions.pod:1118
8143 #, no-wrap
8144 msgid ""
8145 " equal file1 file2\n"
8146 "\n"
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8151 msgid ""
8152 "This compares the two files C<file1> and C<file2> and returns true if their "
8153 "content is exactly equal, or false otherwise."
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8158 msgid "The external L<cmp(1)> program is used for the comparison."
8159 msgstr ""
8160
8161 #. type: =head2
8162 #: ../fish/guestfish-actions.pod:1125
8163 msgid "exists"
8164 msgstr ""
8165
8166 #. type: verbatim
8167 #: ../fish/guestfish-actions.pod:1127
8168 #, no-wrap
8169 msgid ""
8170 " exists path\n"
8171 "\n"
8172 msgstr ""
8173
8174 #. type: textblock
8175 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8176 msgid ""
8177 "This returns C<true> if and only if there is a file, directory (or anything) "
8178 "with the given C<path> name."
8179 msgstr ""
8180
8181 #. type: textblock
8182 #: ../fish/guestfish-actions.pod:1132
8183 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8184 msgstr ""
8185
8186 #. type: =head2
8187 #: ../fish/guestfish-actions.pod:1134
8188 msgid "fallocate"
8189 msgstr ""
8190
8191 #. type: verbatim
8192 #: ../fish/guestfish-actions.pod:1136
8193 #, no-wrap
8194 msgid ""
8195 " fallocate path len\n"
8196 "\n"
8197 msgstr ""
8198
8199 #. type: textblock
8200 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8201 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8202 msgid ""
8203 "This command preallocates a file (containing zero bytes) named C<path> of "
8204 "size C<len> bytes.  If the file exists already, it is overwritten."
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8209 msgid ""
8210 "Do not confuse this with the guestfish-specific C<alloc> command which "
8211 "allocates a file in the host and attaches it as a device."
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1146
8216 msgid ""
8217 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8218 "instead."
8219 msgstr ""
8220
8221 #. type: =head2
8222 #: ../fish/guestfish-actions.pod:1153
8223 msgid "fallocate64"
8224 msgstr ""
8225
8226 #. type: verbatim
8227 #: ../fish/guestfish-actions.pod:1155
8228 #, no-wrap
8229 msgid ""
8230 " fallocate64 path len\n"
8231 "\n"
8232 msgstr ""
8233
8234 #. type: textblock
8235 #: ../fish/guestfish-actions.pod:1161
8236 msgid ""
8237 "Note that this call allocates disk blocks for the file.  To create a sparse "
8238 "file use L</truncate-size> instead."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1164
8243 msgid ""
8244 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8245 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8246 "maximum size of files created through that call to 1GB."
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8251 msgid ""
8252 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8253 "commands which create a file in the host and attach it as a device."
8254 msgstr ""
8255
8256 #. type: =head2
8257 #: ../fish/guestfish-actions.pod:1173
8258 msgid "fgrep"
8259 msgstr ""
8260
8261 #. type: verbatim
8262 #: ../fish/guestfish-actions.pod:1175
8263 #, no-wrap
8264 msgid ""
8265 " fgrep pattern path\n"
8266 "\n"
8267 msgstr ""
8268
8269 #. type: textblock
8270 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8271 msgid ""
8272 "This calls the external C<fgrep> program and returns the matching lines."
8273 msgstr ""
8274
8275 #. type: =head2
8276 #: ../fish/guestfish-actions.pod:1183
8277 msgid "fgrepi"
8278 msgstr ""
8279
8280 #. type: verbatim
8281 #: ../fish/guestfish-actions.pod:1185
8282 #, no-wrap
8283 msgid ""
8284 " fgrepi pattern path\n"
8285 "\n"
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8290 msgid ""
8291 "This calls the external C<fgrep -i> program and returns the matching lines."
8292 msgstr ""
8293
8294 #. type: =head2
8295 #: ../fish/guestfish-actions.pod:1193
8296 msgid "file"
8297 msgstr ""
8298
8299 #. type: verbatim
8300 #: ../fish/guestfish-actions.pod:1195
8301 #, no-wrap
8302 msgid ""
8303 " file path\n"
8304 "\n"
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8309 msgid ""
8310 "This call uses the standard L<file(1)> command to determine the type or "
8311 "contents of the file."
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8316 msgid ""
8317 "This call will also transparently look inside various types of compressed "
8318 "file."
8319 msgstr ""
8320
8321 #. type: textblock
8322 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8323 msgid ""
8324 "The exact command which runs is C<file -zb path>.  Note in particular that "
8325 "the filename is not prepended to the output (the I<-b> option)."
8326 msgstr ""
8327
8328 #. type: textblock
8329 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8330 msgid ""
8331 "The output depends on the output of the underlying L<file(1)> command and it "
8332 "can change in future in ways beyond our control.  In other words, the output "
8333 "is not guaranteed by the ABI."
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:1211
8338 msgid ""
8339 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8340 "(etc), L</is-zero>."
8341 msgstr ""
8342
8343 #. type: =head2
8344 #: ../fish/guestfish-actions.pod:1214
8345 msgid "file-architecture"
8346 msgstr ""
8347
8348 #. type: verbatim
8349 #: ../fish/guestfish-actions.pod:1216
8350 #, no-wrap
8351 msgid ""
8352 " file-architecture filename\n"
8353 "\n"
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8358 msgid ""
8359 "This detects the architecture of the binary C<filename>, and returns it if "
8360 "known."
8361 msgstr ""
8362
8363 #. type: textblock
8364 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8365 msgid "Currently defined architectures are:"
8366 msgstr ""
8367
8368 #. type: =item
8369 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8370 msgid "\"i386\""
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8375 msgid ""
8376 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8377 "irrespective of the precise processor requirements of the binary."
8378 msgstr ""
8379
8380 #. type: =item
8381 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8382 msgid "\"x86_64\""
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8387 msgid "64 bit x86-64."
8388 msgstr ""
8389
8390 #. type: =item
8391 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8392 msgid "\"sparc\""
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8397 msgid "32 bit SPARC."
8398 msgstr ""
8399
8400 #. type: =item
8401 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8402 msgid "\"sparc64\""
8403 msgstr ""
8404
8405 #. type: textblock
8406 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8407 msgid "64 bit SPARC V9 and above."
8408 msgstr ""
8409
8410 #. type: =item
8411 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8412 msgid "\"ia64\""
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8417 msgid "Intel Itanium."
8418 msgstr ""
8419
8420 #. type: =item
8421 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8422 msgid "\"ppc\""
8423 msgstr ""
8424
8425 #. type: textblock
8426 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8427 msgid "32 bit Power PC."
8428 msgstr ""
8429
8430 #. type: =item
8431 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8432 msgid "\"ppc64\""
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8437 msgid "64 bit Power PC."
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8442 msgid "Libguestfs may return other architecture strings in future."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8447 msgid "The function works on at least the following types of files:"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8452 msgid "many types of Un*x and Linux binary"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8457 msgid "many types of Un*x and Linux shared library"
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8462 msgid "Windows Win32 and Win64 binaries"
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8467 msgid "Windows Win32 and Win64 DLLs"
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8472 msgid "Win32 binaries and DLLs return C<i386>."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8477 msgid "Win64 binaries and DLLs return C<x86_64>."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8482 msgid "Linux kernel modules"
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8487 msgid "Linux new-style initrd images"
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8492 msgid "some non-x86 Linux vmlinuz kernels"
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8497 msgid "What it can't do currently:"
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8502 msgid "static libraries (libfoo.a)"
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8507 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8512 msgid "x86 Linux vmlinuz kernels"
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8517 msgid ""
8518 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8519 "compressed code, and are horribly hard to unpack.  If you want to find the "
8520 "architecture of a kernel, use the architecture of the associated initrd or "
8521 "kernel module(s) instead."
8522 msgstr ""
8523
8524 #. type: =head2
8525 #: ../fish/guestfish-actions.pod:1319
8526 msgid "filesize"
8527 msgstr ""
8528
8529 #. type: verbatim
8530 #: ../fish/guestfish-actions.pod:1321
8531 #, no-wrap
8532 msgid ""
8533 " filesize file\n"
8534 "\n"
8535 msgstr ""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8539 msgid "This command returns the size of C<file> in bytes."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1325
8544 msgid ""
8545 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8546 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8547 msgstr ""
8548
8549 #. type: =head2
8550 #: ../fish/guestfish-actions.pod:1329
8551 msgid "fill"
8552 msgstr ""
8553
8554 #. type: verbatim
8555 #: ../fish/guestfish-actions.pod:1331
8556 #, no-wrap
8557 msgid ""
8558 " fill c len path\n"
8559 "\n"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8564 msgid ""
8565 "This command creates a new file called C<path>.  The initial content of the "
8566 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8567 "[0..255]>."
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1337
8572 msgid ""
8573 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8574 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8575 "L</fill-pattern>."
8576 msgstr ""
8577
8578 #. type: =head2
8579 #: ../fish/guestfish-actions.pod:1342
8580 msgid "fill-pattern"
8581 msgstr ""
8582
8583 #. type: verbatim
8584 #: ../fish/guestfish-actions.pod:1344
8585 #, no-wrap
8586 msgid ""
8587 " fill-pattern pattern len path\n"
8588 "\n"
8589 msgstr ""
8590
8591 #. type: textblock
8592 #: ../fish/guestfish-actions.pod:1346
8593 msgid ""
8594 "This function is like L</fill> except that it creates a new file of length "
8595 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8596 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8597 "bytes."
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../fish/guestfish-actions.pod:1351
8602 msgid "find"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:1353
8607 #, no-wrap
8608 msgid ""
8609 " find directory\n"
8610 "\n"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8615 msgid ""
8616 "This command lists out all files and directories, recursively, starting at "
8617 "C<directory>.  It is essentially equivalent to running the shell command "
8618 "C<find directory -print> but some post-processing happens on the output, "
8619 "described below."
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8624 msgid ""
8625 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8626 "structure was:"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8631 #, no-wrap
8632 msgid ""
8633 " /tmp/a\n"
8634 " /tmp/b\n"
8635 " /tmp/c/d\n"
8636 "\n"
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1367
8641 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8642 msgstr ""
8643
8644 #. type: verbatim
8645 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8646 #, no-wrap
8647 msgid ""
8648 " a\n"
8649 " b\n"
8650 " c\n"
8651 " c/d\n"
8652 "\n"
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8657 msgid "If C<directory> is not a directory, then this command returns an error."
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8662 msgid "The returned list is sorted."
8663 msgstr ""
8664
8665 #. type: textblock
8666 #: ../fish/guestfish-actions.pod:1380
8667 msgid "See also L</find0>."
8668 msgstr ""
8669
8670 #. type: =head2
8671 #: ../fish/guestfish-actions.pod:1385
8672 msgid "find0"
8673 msgstr ""
8674
8675 #. type: verbatim
8676 #: ../fish/guestfish-actions.pod:1387
8677 #, no-wrap
8678 msgid ""
8679 " find0 directory (files|-)\n"
8680 "\n"
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8685 msgid ""
8686 "This command lists out all files and directories, recursively, starting at "
8687 "C<directory>, placing the resulting list in the external file called "
8688 "C<files>."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1393
8693 msgid ""
8694 "This command works the same way as L</find> with the following exceptions:"
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8699 msgid "The resulting list is written to an external file."
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8704 msgid ""
8705 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8706 "L<find(1)> option I<-print0>."
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8711 msgid "This command is not limited in the number of names that it can return."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8716 msgid "The result list is not sorted."
8717 msgstr ""
8718
8719 #. type: =head2
8720 #: ../fish/guestfish-actions.pod:1420
8721 msgid "findfs-label"
8722 msgstr ""
8723
8724 #. type: verbatim
8725 #: ../fish/guestfish-actions.pod:1422
8726 #, no-wrap
8727 msgid ""
8728 " findfs-label label\n"
8729 "\n"
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8734 msgid ""
8735 "This command searches the filesystems and returns the one which has the "
8736 "given label.  An error is returned if no such filesystem can be found."
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../fish/guestfish-actions.pod:1428
8741 msgid "To find the label of a filesystem, use L</vfs-label>."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1430
8746 msgid "findfs-uuid"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1432
8751 #, no-wrap
8752 msgid ""
8753 " findfs-uuid uuid\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8759 msgid ""
8760 "This command searches the filesystems and returns the one which has the "
8761 "given UUID.  An error is returned if no such filesystem can be found."
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:1438
8766 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8767 msgstr ""
8768
8769 #. type: =head2
8770 #: ../fish/guestfish-actions.pod:1440
8771 msgid "fsck"
8772 msgstr ""
8773
8774 #. type: verbatim
8775 #: ../fish/guestfish-actions.pod:1442
8776 #, no-wrap
8777 msgid ""
8778 " fsck fstype device\n"
8779 "\n"
8780 msgstr ""
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8784 msgid ""
8785 "This runs the filesystem checker (fsck) on C<device> which should have "
8786 "filesystem type C<fstype>."
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8791 msgid ""
8792 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8793 "codes from C<fsck>."
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8798 msgid "Multiple status codes can be summed together."
8799 msgstr ""
8800
8801 #. type: textblock
8802 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8803 msgid ""
8804 "A non-zero return code can mean \"success\", for example if errors have been "
8805 "corrected on the filesystem."
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8810 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8815 msgid ""
8816 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8817 msgstr ""
8818
8819 #. type: =head2
8820 #: ../fish/guestfish-actions.pod:1472
8821 msgid "get-append"
8822 msgstr ""
8823
8824 #. type: verbatim
8825 #: ../fish/guestfish-actions.pod:1474
8826 #, no-wrap
8827 msgid ""
8828 " get-append\n"
8829 "\n"
8830 msgstr ""
8831
8832 #. type: textblock
8833 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8834 msgid ""
8835 "Return the additional kernel options which are added to the guest kernel "
8836 "command line."
8837 msgstr ""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8841 msgid "If C<NULL> then no options are added."
8842 msgstr ""
8843
8844 #. type: =head2
8845 #: ../fish/guestfish-actions.pod:1481
8846 msgid "get-attach-method"
8847 msgstr ""
8848
8849 #. type: verbatim
8850 #: ../fish/guestfish-actions.pod:1483
8851 #, no-wrap
8852 msgid ""
8853 " get-attach-method\n"
8854 "\n"
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1485
8859 msgid "Return the current attach method.  See L</set-attach-method>."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1487
8864 msgid "get-autosync"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1489
8869 #, no-wrap
8870 msgid ""
8871 " get-autosync\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
8877 msgid "Get the autosync flag."
8878 msgstr ""
8879
8880 #. type: =head2
8881 #: ../fish/guestfish-actions.pod:1493
8882 msgid "get-direct"
8883 msgstr ""
8884
8885 #. type: verbatim
8886 #: ../fish/guestfish-actions.pod:1495
8887 #, no-wrap
8888 msgid ""
8889 " get-direct\n"
8890 "\n"
8891 msgstr ""
8892
8893 #. type: textblock
8894 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
8895 msgid "Return the direct appliance mode flag."
8896 msgstr ""
8897
8898 #. type: =head2
8899 #: ../fish/guestfish-actions.pod:1499
8900 msgid "get-e2label"
8901 msgstr ""
8902
8903 #. type: verbatim
8904 #: ../fish/guestfish-actions.pod:1501
8905 #, no-wrap
8906 msgid ""
8907 " get-e2label device\n"
8908 "\n"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
8913 msgid ""
8914 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8915 msgstr ""
8916
8917 #. type: textblock
8918 #: ../fish/guestfish-actions.pod:1506
8919 msgid ""
8920 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8921 "instead."
8922 msgstr ""
8923
8924 #. type: =head2
8925 #: ../fish/guestfish-actions.pod:1513
8926 msgid "get-e2uuid"
8927 msgstr ""
8928
8929 #. type: verbatim
8930 #: ../fish/guestfish-actions.pod:1515
8931 #, no-wrap
8932 msgid ""
8933 " get-e2uuid device\n"
8934 "\n"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
8939 msgid ""
8940 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8941 msgstr ""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:1520
8945 msgid ""
8946 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8947 "instead."
8948 msgstr ""
8949
8950 #. type: =head2
8951 #: ../fish/guestfish-actions.pod:1527
8952 msgid "get-memsize"
8953 msgstr ""
8954
8955 #. type: verbatim
8956 #: ../fish/guestfish-actions.pod:1529
8957 #, no-wrap
8958 msgid ""
8959 " get-memsize\n"
8960 "\n"
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
8965 msgid ""
8966 "This gets the memory size in megabytes allocated to the qemu subprocess."
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:1534
8971 msgid ""
8972 "If L</set-memsize> was not called on this handle, and if "
8973 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8974 "value for memsize."
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
8979 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
8980 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
8981 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
8982 msgid ""
8983 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1541
8988 msgid "get-network"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1543
8993 #, no-wrap
8994 msgid ""
8995 " get-network\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9001 msgid "This returns the enable network flag."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:1547
9006 msgid "get-path"
9007 msgstr ""
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:1549
9011 #, no-wrap
9012 msgid ""
9013 " get-path\n"
9014 "\n"
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9019 msgid "Return the current search path."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9024 msgid ""
9025 "This is always non-NULL.  If it wasn't set already, then this will return "
9026 "the default path."
9027 msgstr ""
9028
9029 #. type: =head2
9030 #: ../fish/guestfish-actions.pod:1556
9031 msgid "get-pgroup"
9032 msgstr ""
9033
9034 #. type: verbatim
9035 #: ../fish/guestfish-actions.pod:1558
9036 #, no-wrap
9037 msgid ""
9038 " get-pgroup\n"
9039 "\n"
9040 msgstr ""
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9044 msgid "This returns the process group flag."
9045 msgstr ""
9046
9047 #. type: =head2
9048 #: ../fish/guestfish-actions.pod:1562
9049 msgid "get-pid"
9050 msgstr ""
9051
9052 #. type: =head2
9053 #: ../fish/guestfish-actions.pod:1564
9054 msgid "pid"
9055 msgstr ""
9056
9057 #. type: verbatim
9058 #: ../fish/guestfish-actions.pod:1566
9059 #, no-wrap
9060 msgid ""
9061 " get-pid\n"
9062 "\n"
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9067 msgid ""
9068 "Return the process ID of the qemu subprocess.  If there is no qemu "
9069 "subprocess, then this will return an error."
9070 msgstr ""
9071
9072 #. type: textblock
9073 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9074 msgid "This is an internal call used for debugging and testing."
9075 msgstr ""
9076
9077 #. type: =head2
9078 #: ../fish/guestfish-actions.pod:1573
9079 msgid "get-qemu"
9080 msgstr ""
9081
9082 #. type: verbatim
9083 #: ../fish/guestfish-actions.pod:1575
9084 #, no-wrap
9085 msgid ""
9086 " get-qemu\n"
9087 "\n"
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9092 msgid "Return the current qemu binary."
9093 msgstr ""
9094
9095 #. type: textblock
9096 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9097 msgid ""
9098 "This is always non-NULL.  If it wasn't set already, then this will return "
9099 "the default qemu binary name."
9100 msgstr ""
9101
9102 #. type: =head2
9103 #: ../fish/guestfish-actions.pod:1582
9104 msgid "get-recovery-proc"
9105 msgstr ""
9106
9107 #. type: verbatim
9108 #: ../fish/guestfish-actions.pod:1584
9109 #, no-wrap
9110 msgid ""
9111 " get-recovery-proc\n"
9112 "\n"
9113 msgstr ""
9114
9115 #. type: textblock
9116 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9117 msgid "Return the recovery process enabled flag."
9118 msgstr ""
9119
9120 #. type: =head2
9121 #: ../fish/guestfish-actions.pod:1588
9122 msgid "get-selinux"
9123 msgstr ""
9124
9125 #. type: verbatim
9126 #: ../fish/guestfish-actions.pod:1590
9127 #, no-wrap
9128 msgid ""
9129 " get-selinux\n"
9130 "\n"
9131 msgstr ""
9132
9133 #. type: textblock
9134 #: ../fish/guestfish-actions.pod:1592
9135 msgid ""
9136 "This returns the current setting of the selinux flag which is passed to the "
9137 "appliance at boot time.  See L</set-selinux>."
9138 msgstr ""
9139
9140 #. type: =head2
9141 #: ../fish/guestfish-actions.pod:1598
9142 msgid "get-smp"
9143 msgstr ""
9144
9145 #. type: verbatim
9146 #: ../fish/guestfish-actions.pod:1600
9147 #, no-wrap
9148 msgid ""
9149 " get-smp\n"
9150 "\n"
9151 msgstr ""
9152
9153 #. type: textblock
9154 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9155 msgid "This returns the number of virtual CPUs assigned to the appliance."
9156 msgstr ""
9157
9158 #. type: =head2
9159 #: ../fish/guestfish-actions.pod:1604
9160 msgid "get-state"
9161 msgstr ""
9162
9163 #. type: verbatim
9164 #: ../fish/guestfish-actions.pod:1606
9165 #, no-wrap
9166 msgid ""
9167 " get-state\n"
9168 "\n"
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9173 msgid ""
9174 "This returns the current state as an opaque integer.  This is only useful "
9175 "for printing debug and internal error messages."
9176 msgstr ""
9177
9178 #. type: textblock
9179 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9180 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9181 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9182 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9183 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9184 msgid "For more information on states, see L<guestfs(3)>."
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:1613
9189 msgid "get-trace"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:1615
9194 #, no-wrap
9195 msgid ""
9196 " get-trace\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9202 msgid "Return the command trace flag."
9203 msgstr ""
9204
9205 #. type: =head2
9206 #: ../fish/guestfish-actions.pod:1619
9207 msgid "get-umask"
9208 msgstr ""
9209
9210 #. type: verbatim
9211 #: ../fish/guestfish-actions.pod:1621
9212 #, no-wrap
9213 msgid ""
9214 " get-umask\n"
9215 "\n"
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../fish/guestfish-actions.pod:1623
9220 msgid ""
9221 "Return the current umask.  By default the umask is C<022> unless it has been "
9222 "set by calling L</umask>."
9223 msgstr ""
9224
9225 #. type: =head2
9226 #: ../fish/guestfish-actions.pod:1626
9227 msgid "get-verbose"
9228 msgstr ""
9229
9230 #. type: verbatim
9231 #: ../fish/guestfish-actions.pod:1628
9232 #, no-wrap
9233 msgid ""
9234 " get-verbose\n"
9235 "\n"
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9240 msgid "This returns the verbose messages flag."
9241 msgstr ""
9242
9243 #. type: =head2
9244 #: ../fish/guestfish-actions.pod:1632
9245 msgid "getcon"
9246 msgstr ""
9247
9248 #. type: verbatim
9249 #: ../fish/guestfish-actions.pod:1634
9250 #, no-wrap
9251 msgid ""
9252 " getcon\n"
9253 "\n"
9254 msgstr ""
9255
9256 #. type: textblock
9257 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9258 msgid "This gets the SELinux security context of the daemon."
9259 msgstr ""
9260
9261 #. type: textblock
9262 #: ../fish/guestfish-actions.pod:1638
9263 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9264 msgstr ""
9265
9266 #. type: =head2
9267 #: ../fish/guestfish-actions.pod:1641
9268 msgid "getxattr"
9269 msgstr ""
9270
9271 #. type: verbatim
9272 #: ../fish/guestfish-actions.pod:1643
9273 #, no-wrap
9274 msgid ""
9275 " getxattr path name\n"
9276 "\n"
9277 msgstr ""
9278
9279 #. type: textblock
9280 #: ../fish/guestfish-actions.pod:1645
9281 msgid ""
9282 "Get a single extended attribute from file C<path> named C<name>.  This call "
9283 "follows symlinks.  If you want to lookup an extended attribute for the "
9284 "symlink itself, use L</lgetxattr>."
9285 msgstr ""
9286
9287 #. type: textblock
9288 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9289 msgid ""
9290 "Normally it is better to get all extended attributes from a file in one go "
9291 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9292 "buggy and do not provide a way to list out attributes.  For these "
9293 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9294 "attributes you want in advance and call this function."
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9299 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9300 msgid ""
9301 "Extended attribute values are blobs of binary data.  If there is no extended "
9302 "attribute named C<name>, this returns an error."
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:1659
9307 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:1661
9312 msgid "getxattrs"
9313 msgstr ""
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:1663
9317 #, no-wrap
9318 msgid ""
9319 " getxattrs path\n"
9320 "\n"
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9325 msgid ""
9326 "This call lists the extended attributes of the file or directory C<path>."
9327 msgstr ""
9328
9329 #. type: textblock
9330 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9331 msgid ""
9332 "At the system call level, this is a combination of the L<listxattr(2)> and "
9333 "L<getxattr(2)> calls."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:1671
9338 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9339 msgstr ""
9340
9341 #. type: =head2
9342 #: ../fish/guestfish-actions.pod:1673
9343 msgid "glob-expand"
9344 msgstr ""
9345
9346 #. type: verbatim
9347 #: ../fish/guestfish-actions.pod:1675
9348 #, no-wrap
9349 msgid ""
9350 " glob-expand pattern\n"
9351 "\n"
9352 msgstr ""
9353
9354 #. type: textblock
9355 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9356 msgid ""
9357 "This command searches for all the pathnames matching C<pattern> according to "
9358 "the wildcard expansion rules used by the shell."
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9363 msgid ""
9364 "If no paths match, then this returns an empty list (note: not an error)."
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9369 msgid ""
9370 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9371 "GLOB_BRACE>.  See that manual page for more details."
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1688
9376 msgid "grep"
9377 msgstr ""
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1690
9381 #, no-wrap
9382 msgid ""
9383 " grep regex path\n"
9384 "\n"
9385 msgstr ""
9386
9387 #. type: textblock
9388 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9389 msgid "This calls the external C<grep> program and returns the matching lines."
9390 msgstr ""
9391
9392 #. type: =head2
9393 #: ../fish/guestfish-actions.pod:1698
9394 msgid "grepi"
9395 msgstr ""
9396
9397 #. type: verbatim
9398 #: ../fish/guestfish-actions.pod:1700
9399 #, no-wrap
9400 msgid ""
9401 " grepi regex path\n"
9402 "\n"
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9407 msgid ""
9408 "This calls the external C<grep -i> program and returns the matching lines."
9409 msgstr ""
9410
9411 #. type: =head2
9412 #: ../fish/guestfish-actions.pod:1708
9413 msgid "grub-install"
9414 msgstr ""
9415
9416 #. type: verbatim
9417 #: ../fish/guestfish-actions.pod:1710
9418 #, no-wrap
9419 msgid ""
9420 " grub-install root device\n"
9421 "\n"
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9426 msgid ""
9427 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9428 "with the root directory being C<root>."
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9433 msgid ""
9434 "There is currently no way in the API to install grub2, which is used by most "
9435 "modern Linux guests.  It is possible to run the grub2 command from the "
9436 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9437 msgstr ""
9438
9439 #. type: textblock
9440 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9441 msgid ""
9442 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9443 "compatible with itself, so this only works in rather narrow circumstances.  "
9444 "Careful testing with each guest version is advisable."
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9449 msgid ""
9450 "If grub-install reports the error \"No suitable drive was found in the "
9451 "generated device map.\" it may be that you need to create a C</boot/grub/"
9452 "device.map> file first that contains the mapping between grub device names "
9453 "and Linux device names.  It is usually sufficient to create a file "
9454 "containing:"
9455 msgstr ""
9456
9457 #. type: verbatim
9458 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9459 #, no-wrap
9460 msgid ""
9461 " (hd0) /dev/vda\n"
9462 "\n"
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9467 msgid "replacing C</dev/vda> with the name of the installation device."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1748
9472 msgid "head"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1750
9477 #, no-wrap
9478 msgid ""
9479 " head path\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9485 msgid ""
9486 "This command returns up to the first 10 lines of a file as a list of strings."
9487 msgstr ""
9488
9489 #. type: =head2
9490 #: ../fish/guestfish-actions.pod:1758
9491 msgid "head-n"
9492 msgstr ""
9493
9494 #. type: verbatim
9495 #: ../fish/guestfish-actions.pod:1760
9496 #, no-wrap
9497 msgid ""
9498 " head-n nrlines path\n"
9499 "\n"
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9504 msgid ""
9505 "If the parameter C<nrlines> is a positive number, this returns the first "
9506 "C<nrlines> lines of the file C<path>."
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9511 msgid ""
9512 "If the parameter C<nrlines> is a negative number, this returns lines from "
9513 "the file C<path>, excluding the last C<nrlines> lines."
9514 msgstr ""
9515
9516 #. type: textblock
9517 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
9518 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
9519 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9520 msgstr ""
9521
9522 #. type: =head2
9523 #: ../fish/guestfish-actions.pod:1773
9524 msgid "hexdump"
9525 msgstr ""
9526
9527 #. type: verbatim
9528 #: ../fish/guestfish-actions.pod:1775
9529 #, no-wrap
9530 msgid ""
9531 " hexdump path\n"
9532 "\n"
9533 msgstr ""
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9537 msgid ""
9538 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9539 "readable, canonical hex dump of the file."
9540 msgstr ""
9541
9542 #. type: =head2
9543 #: ../fish/guestfish-actions.pod:1783
9544 msgid "initrd-cat"
9545 msgstr ""
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:1785
9549 #, no-wrap
9550 msgid ""
9551 " initrd-cat initrdpath filename\n"
9552 "\n"
9553 msgstr ""
9554
9555 #. type: textblock
9556 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9557 msgid ""
9558 "This command unpacks the file C<filename> from the initrd file called "
9559 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9560 "character."
9561 msgstr ""
9562
9563 #. type: textblock
9564 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9565 msgid ""
9566 "For example, in guestfish you could use the following command to examine the "
9567 "boot script (usually called C</init>)  contained in a Linux initrd or "
9568 "initramfs image:"
9569 msgstr ""
9570
9571 #. type: verbatim
9572 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9573 #, no-wrap
9574 msgid ""
9575 " initrd-cat /boot/initrd-<version>.img init\n"
9576 "\n"
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:1797
9581 msgid "See also L</initrd-list>."
9582 msgstr ""
9583
9584 #. type: =head2
9585 #: ../fish/guestfish-actions.pod:1802
9586 msgid "initrd-list"
9587 msgstr ""
9588
9589 #. type: verbatim
9590 #: ../fish/guestfish-actions.pod:1804
9591 #, no-wrap
9592 msgid ""
9593 " initrd-list path\n"
9594 "\n"
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9599 msgid "This command lists out files contained in an initrd."
9600 msgstr ""
9601
9602 #. type: textblock
9603 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9604 msgid ""
9605 "The files are listed without any initial C</> character.  The files are "
9606 "listed in the order they appear (not necessarily alphabetical).  Directory "
9607 "names are listed as separate items."
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9612 msgid ""
9613 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9614 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9615 "files)."
9616 msgstr ""
9617
9618 #. type: =head2
9619 #: ../fish/guestfish-actions.pod:1816
9620 msgid "inotify-add-watch"
9621 msgstr ""
9622
9623 #. type: verbatim
9624 #: ../fish/guestfish-actions.pod:1818
9625 #, no-wrap
9626 msgid ""
9627 " inotify-add-watch path mask\n"
9628 "\n"
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9633 msgid "Watch C<path> for the events listed in C<mask>."
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9638 msgid ""
9639 "Note that if C<path> is a directory then events within that directory are "
9640 "watched, but this does I<not> happen recursively (in subdirectories)."
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9645 msgid ""
9646 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9647 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9648 msgstr ""
9649
9650 #. type: =head2
9651 #: ../fish/guestfish-actions.pod:1830
9652 msgid "inotify-close"
9653 msgstr ""
9654
9655 #. type: verbatim
9656 #: ../fish/guestfish-actions.pod:1832
9657 #, no-wrap
9658 msgid ""
9659 " inotify-close\n"
9660 "\n"
9661 msgstr ""
9662
9663 #. type: textblock
9664 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9665 msgid ""
9666 "This closes the inotify handle which was previously opened by inotify_init.  "
9667 "It removes all watches, throws away any pending events, and deallocates all "
9668 "resources."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:1838
9673 msgid "inotify-files"
9674 msgstr ""
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:1840
9678 #, no-wrap
9679 msgid ""
9680 " inotify-files\n"
9681 "\n"
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:1842
9686 msgid ""
9687 "This function is a helpful wrapper around L</inotify-read> which just "
9688 "returns a list of pathnames of objects that were touched.  The returned "
9689 "pathnames are sorted and deduplicated."
9690 msgstr ""
9691
9692 #. type: =head2
9693 #: ../fish/guestfish-actions.pod:1846
9694 msgid "inotify-init"
9695 msgstr ""
9696
9697 #. type: verbatim
9698 #: ../fish/guestfish-actions.pod:1848
9699 #, no-wrap
9700 msgid ""
9701 " inotify-init maxevents\n"
9702 "\n"
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9707 msgid ""
9708 "This command creates a new inotify handle.  The inotify subsystem can be "
9709 "used to notify events which happen to objects in the guest filesystem."
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:1854
9714 msgid ""
9715 "C<maxevents> is the maximum number of events which will be queued up between "
9716 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9717 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9718 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9719 "but records the fact that it threw them away by setting a flag "
9720 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:1864
9725 msgid ""
9726 "Before any events are generated, you have to add some watches to the "
9727 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9728 "L</inotify-watch-all>."
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:1870
9733 msgid ""
9734 "Queued up events should be read periodically by calling L</inotify-read> (or "
9735 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9736 "If you don't read the events out often enough then you risk the internal "
9737 "queue overflowing."
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:1877
9742 msgid ""
9743 "The handle should be closed after use by calling L</inotify-close>.  This "
9744 "also removes any watches automatically."
9745 msgstr ""
9746
9747 #. type: textblock
9748 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9749 msgid ""
9750 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9751 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9752 "that there is one global inotify handle per libguestfs instance."
9753 msgstr ""
9754
9755 #. type: =head2
9756 #: ../fish/guestfish-actions.pod:1886
9757 msgid "inotify-read"
9758 msgstr ""
9759
9760 #. type: verbatim
9761 #: ../fish/guestfish-actions.pod:1888
9762 #, no-wrap
9763 msgid ""
9764 " inotify-read\n"
9765 "\n"
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9770 msgid ""
9771 "Return the complete queue of events that have happened since the previous "
9772 "read call."
9773 msgstr ""
9774
9775 #. type: textblock
9776 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9777 msgid "If no events have happened, this returns an empty list."
9778 msgstr ""
9779
9780 #. type: textblock
9781 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9782 msgid ""
9783 "I<Note>: In order to make sure that all events have been read, you must call "
9784 "this function repeatedly until it returns an empty list.  The reason is that "
9785 "the call will read events up to the maximum appliance-to-host message size "
9786 "and leave remaining events in the queue."
9787 msgstr ""
9788
9789 #. type: =head2
9790 #: ../fish/guestfish-actions.pod:1901
9791 msgid "inotify-rm-watch"
9792 msgstr ""
9793
9794 #. type: verbatim
9795 #: ../fish/guestfish-actions.pod:1903
9796 #, no-wrap
9797 msgid ""
9798 " inotify-rm-watch wd\n"
9799 "\n"
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1905
9804 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:1908
9809 msgid "inspect-get-arch"
9810 msgstr ""
9811
9812 #. type: verbatim
9813 #: ../fish/guestfish-actions.pod:1910
9814 #, no-wrap
9815 msgid ""
9816 " inspect-get-arch root\n"
9817 "\n"
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:1912
9822 msgid ""
9823 "This returns the architecture of the inspected operating system.  The "
9824 "possible return values are listed under L</file-architecture>."
9825 msgstr ""
9826
9827 #. type: textblock
9828 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9829 msgid ""
9830 "If the architecture could not be determined, then the string C<unknown> is "
9831 "returned."
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
9836 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
9837 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
9838 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
9839 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
9840 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
9841 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
9842 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
9843 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
9844 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
9845 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
9846 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
9847 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
9848 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
9849 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
9850 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
9851 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
9852 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9853 msgstr ""
9854
9855 #. type: =head2
9856 #: ../fish/guestfish-actions.pod:1921
9857 msgid "inspect-get-distro"
9858 msgstr ""
9859
9860 #. type: verbatim
9861 #: ../fish/guestfish-actions.pod:1923
9862 #, no-wrap
9863 msgid ""
9864 " inspect-get-distro root\n"
9865 "\n"
9866 msgstr ""
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9870 msgid ""
9871 "This returns the distro (distribution) of the inspected operating system."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9876 msgid "Currently defined distros are:"
9877 msgstr ""
9878
9879 #. type: =item
9880 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9881 msgid "\"archlinux\""
9882 msgstr ""
9883
9884 #. type: textblock
9885 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9886 msgid "Arch Linux."
9887 msgstr ""
9888
9889 #. type: =item
9890 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
9891 msgid "\"centos\""
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
9896 msgid "CentOS."
9897 msgstr ""
9898
9899 #. type: =item
9900 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
9901 msgid "\"debian\""
9902 msgstr ""
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
9906 msgid "Debian."
9907 msgstr ""
9908
9909 #. type: =item
9910 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
9911 msgid "\"fedora\""
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
9916 msgid "Fedora."
9917 msgstr ""
9918
9919 #. type: =item
9920 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
9921 msgid "\"gentoo\""
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
9926 msgid "Gentoo."
9927 msgstr ""
9928
9929 #. type: =item
9930 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
9931 msgid "\"linuxmint\""
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
9936 msgid "Linux Mint."
9937 msgstr ""
9938
9939 #. type: =item
9940 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
9941 msgid "\"mageia\""
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
9946 msgid "Mageia."
9947 msgstr ""
9948
9949 #. type: =item
9950 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
9951 msgid "\"mandriva\""
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
9956 msgid "Mandriva."
9957 msgstr ""
9958
9959 #. type: =item
9960 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
9961 msgid "\"meego\""
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
9966 msgid "MeeGo."
9967 msgstr ""
9968
9969 #. type: =item
9970 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
9971 msgid "\"opensuse\""
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
9976 msgid "OpenSUSE."
9977 msgstr ""
9978
9979 #. type: =item
9980 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
9981 msgid "\"pardus\""
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
9986 msgid "Pardus."
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
9991 msgid "\"redhat-based\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
9996 msgid "Some Red Hat-derived distro."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10001 msgid "\"rhel\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10006 msgid "Red Hat Enterprise Linux."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10011 msgid "\"scientificlinux\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10016 msgid "Scientific Linux."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10021 msgid "\"slackware\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10026 msgid "Slackware."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10031 msgid "\"ttylinux\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10036 msgid "ttylinux."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10041 msgid "\"ubuntu\""
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10046 msgid "Ubuntu."
10047 msgstr ""
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10051 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10052 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10053 msgid "\"unknown\""
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10058 msgid "The distro could not be determined."
10059 msgstr ""
10060
10061 #. type: =item
10062 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10063 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10064 msgid "\"windows\""
10065 msgstr ""
10066
10067 #. type: textblock
10068 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10069 msgid ""
10070 "Windows does not have distributions.  This string is returned if the OS type "
10071 "is Windows."
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10076 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10077 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10078 msgid ""
10079 "Future versions of libguestfs may return other strings here.  The caller "
10080 "should be prepared to handle any string."
10081 msgstr ""
10082
10083 #. type: =head2
10084 #: ../fish/guestfish-actions.pod:2016
10085 msgid "inspect-get-drive-mappings"
10086 msgstr ""
10087
10088 #. type: verbatim
10089 #: ../fish/guestfish-actions.pod:2018
10090 #, no-wrap
10091 msgid ""
10092 " inspect-get-drive-mappings root\n"
10093 "\n"
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10098 msgid ""
10099 "This call is useful for Windows which uses a primitive system of assigning "
10100 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10101 "Windows Registry to find out how disks/partitions are mapped to drive "
10102 "letters, and returns a hash table as in the example below:"
10103 msgstr ""
10104
10105 #. type: verbatim
10106 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10107 #, no-wrap
10108 msgid ""
10109 " C      =>     /dev/vda2\n"
10110 " E      =>     /dev/vdb1\n"
10111 " F      =>     /dev/vdc1\n"
10112 "\n"
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10117 msgid ""
10118 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10119 "and just contains the drive letter, without the customary colon separator "
10120 "character."
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10125 msgid ""
10126 "In future we may support other operating systems that also used drive "
10127 "letters, but the keys for those might not be case insensitive and might be "
10128 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10129 "C<h1> etc."
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10134 msgid ""
10135 "For Windows guests, currently only hard drive mappings are returned.  "
10136 "Removable disks (eg. DVD-ROMs) are ignored."
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10141 msgid ""
10142 "For guests that do not use drive mappings, or if the drive mappings could "
10143 "not be determined, this returns an empty hash table."
10144 msgstr ""
10145
10146 #. type: textblock
10147 #: ../fish/guestfish-actions.pod:2045
10148 msgid ""
10149 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10150 "get-mountpoints>, L</inspect-get-filesystems>."
10151 msgstr ""
10152
10153 #. type: =head2
10154 #: ../fish/guestfish-actions.pod:2049
10155 msgid "inspect-get-filesystems"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2051
10160 #, no-wrap
10161 msgid ""
10162 " inspect-get-filesystems root\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10168 msgid ""
10169 "This returns a list of all the filesystems that we think are associated with "
10170 "this operating system.  This includes the root filesystem, other ordinary "
10171 "filesystems, and non-mounted devices like swap partitions."
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10176 msgid ""
10177 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10178 "to be shared between operating systems."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2061
10183 msgid ""
10184 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10185 "get-mountpoints>."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2064
10190 msgid "inspect-get-format"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2066
10195 #, no-wrap
10196 msgid ""
10197 " inspect-get-format root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10203 msgid ""
10204 "This returns the format of the inspected operating system.  You can use it "
10205 "to detect install images, live CDs and similar."
10206 msgstr ""
10207
10208 #. type: textblock
10209 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10210 msgid "Currently defined formats are:"
10211 msgstr ""
10212
10213 #. type: =item
10214 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10215 msgid "\"installed\""
10216 msgstr ""
10217
10218 #. type: textblock
10219 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10220 msgid "This is an installed operating system."
10221 msgstr ""
10222
10223 #. type: =item
10224 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10225 msgid "\"installer\""
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10230 msgid ""
10231 "The disk image being inspected is not an installed operating system, but a "
10232 "I<bootable> install disk, live CD, or similar."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10237 msgid "The format of this disk image is not known."
10238 msgstr ""
10239
10240 #. type: =head2
10241 #: ../fish/guestfish-actions.pod:2095
10242 msgid "inspect-get-hostname"
10243 msgstr ""
10244
10245 #. type: verbatim
10246 #: ../fish/guestfish-actions.pod:2097
10247 #, no-wrap
10248 msgid ""
10249 " inspect-get-hostname root\n"
10250 "\n"
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10255 msgid ""
10256 "This function returns the hostname of the operating system as found by "
10257 "inspection of the guest's configuration files."
10258 msgstr ""
10259
10260 #. type: textblock
10261 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10262 msgid ""
10263 "If the hostname could not be determined, then the string C<unknown> is "
10264 "returned."
10265 msgstr ""
10266
10267 #. type: =head2
10268 #: ../fish/guestfish-actions.pod:2107
10269 msgid "inspect-get-icon"
10270 msgstr ""
10271
10272 #. type: verbatim
10273 #: ../fish/guestfish-actions.pod:2109
10274 #, no-wrap
10275 msgid ""
10276 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10277 "\n"
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10282 msgid ""
10283 "This function returns an icon corresponding to the inspected operating "
10284 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10285 "to PNG if necessary)."
10286 msgstr ""
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10290 msgid ""
10291 "If it was not possible to get an icon this function returns a zero-length "
10292 "(non-NULL) buffer.  I<Callers must check for this case>."
10293 msgstr ""
10294
10295 #. type: textblock
10296 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10297 msgid ""
10298 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10299 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10300 "this file will be returned.  You can disable favicons by passing the "
10301 "optional C<favicon> boolean as false (default is true)."
10302 msgstr ""
10303
10304 #. type: textblock
10305 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10306 msgid ""
10307 "If finding the favicon fails, then we look in other places in the guest for "
10308 "a suitable icon."
10309 msgstr ""
10310
10311 #. type: textblock
10312 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10313 msgid ""
10314 "If the optional C<highquality> boolean is true then only high quality icons "
10315 "are returned, which means only icons of high resolution with an alpha "
10316 "channel.  The default (false) is to return any icon we can, even if it is of "
10317 "substandard quality."
10318 msgstr ""
10319
10320 #. type: textblock
10321 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10322 msgid ""
10323 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10324 "before you call this, since it needs to read information from the guest "
10325 "filesystem during the call."
10326 msgstr ""
10327
10328 #. type: textblock
10329 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10330 msgid ""
10331 "B<Security:> The icon data comes from the untrusted guest, and should be "
10332 "treated with caution.  PNG files have been known to contain exploits.  "
10333 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10334 "trying to process or display the icon."
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10339 msgid ""
10340 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10341 "tries to return the largest, highest quality icon available.  The "
10342 "application must scale the icon to the required size."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10347 msgid ""
10348 "Extracting icons from Windows guests requires the external C<wrestool> "
10349 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10350 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10351 "installed separately."
10352 msgstr ""
10353
10354 #. type: textblock
10355 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10356 msgid ""
10357 "Operating system icons are usually trademarks.  Seek legal advice before "
10358 "using trademarks in applications."
10359 msgstr ""
10360
10361 #. type: =head2
10362 #: ../fish/guestfish-actions.pod:2173
10363 msgid "inspect-get-major-version"
10364 msgstr ""
10365
10366 #. type: verbatim
10367 #: ../fish/guestfish-actions.pod:2175
10368 #, no-wrap
10369 msgid ""
10370 " inspect-get-major-version root\n"
10371 "\n"
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10376 msgid ""
10377 "This returns the major version number of the inspected operating system."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10382 msgid ""
10383 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10384 "popular public names used by the operating system.  Notably the operating "
10385 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10386 "1).  You can find out the real versions corresponding to releases of Windows "
10387 "by consulting Wikipedia or MSDN."
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10392 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10393 msgid "If the version could not be determined, then C<0> is returned."
10394 msgstr ""
10395
10396 #. type: =head2
10397 #: ../fish/guestfish-actions.pod:2191
10398 msgid "inspect-get-minor-version"
10399 msgstr ""
10400
10401 #. type: verbatim
10402 #: ../fish/guestfish-actions.pod:2193
10403 #, no-wrap
10404 msgid ""
10405 " inspect-get-minor-version root\n"
10406 "\n"
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10411 msgid ""
10412 "This returns the minor version number of the inspected operating system."
10413 msgstr ""
10414
10415 #. type: textblock
10416 #: ../fish/guestfish-actions.pod:2200
10417 msgid ""
10418 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10419 "get-major-version>."
10420 msgstr ""
10421
10422 #. type: =head2
10423 #: ../fish/guestfish-actions.pod:2203
10424 msgid "inspect-get-mountpoints"
10425 msgstr ""
10426
10427 #. type: verbatim
10428 #: ../fish/guestfish-actions.pod:2205
10429 #, no-wrap
10430 msgid ""
10431 " inspect-get-mountpoints root\n"
10432 "\n"
10433 msgstr ""
10434
10435 #. type: textblock
10436 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10437 msgid ""
10438 "This returns a hash of where we think the filesystems associated with this "
10439 "operating system should be mounted.  Callers should note that this is at "
10440 "best an educated guess made by reading configuration files such as C</etc/"
10441 "fstab>.  I<In particular note> that this may return filesystems which are "
10442 "non-existent or not mountable and callers should be prepared to handle or "
10443 "ignore failures if they try to mount them."
10444 msgstr ""
10445
10446 #. type: textblock
10447 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10448 msgid ""
10449 "Each element in the returned hashtable has a key which is the path of the "
10450 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10451 "mounted there (eg. C</dev/sda1>)."
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10456 msgid ""
10457 "Non-mounted devices such as swap devices are I<not> returned in this list."
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2224
10462 msgid ""
10463 "For operating systems like Windows which still use drive letters, this call "
10464 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10465 "information about the mapping of drive letters to partitions, see L</inspect-"
10466 "get-drive-mappings>."
10467 msgstr ""
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:2230
10471 msgid ""
10472 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10473 "get-filesystems>."
10474 msgstr ""
10475
10476 #. type: =head2
10477 #: ../fish/guestfish-actions.pod:2233
10478 msgid "inspect-get-package-format"
10479 msgstr ""
10480
10481 #. type: verbatim
10482 #: ../fish/guestfish-actions.pod:2235
10483 #, no-wrap
10484 msgid ""
10485 " inspect-get-package-format root\n"
10486 "\n"
10487 msgstr ""
10488
10489 #. type: textblock
10490 #: ../fish/guestfish-actions.pod:2237
10491 msgid ""
10492 "This function and L</inspect-get-package-management> return the package "
10493 "format and package management tool used by the inspected operating system.  "
10494 "For example for Fedora these functions would return C<rpm> (package format) "
10495 "and C<yum> (package management)."
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10500 msgid ""
10501 "This returns the string C<unknown> if we could not determine the package "
10502 "format I<or> if the operating system does not have a real packaging system "
10503 "(eg. Windows)."
10504 msgstr ""
10505
10506 #. type: textblock
10507 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10508 msgid ""
10509 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10510 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10511 msgstr ""
10512
10513 #. type: =head2
10514 #: ../fish/guestfish-actions.pod:2253
10515 msgid "inspect-get-package-management"
10516 msgstr ""
10517
10518 #. type: verbatim
10519 #: ../fish/guestfish-actions.pod:2255
10520 #, no-wrap
10521 msgid ""
10522 " inspect-get-package-management root\n"
10523 "\n"
10524 msgstr ""
10525
10526 #. type: textblock
10527 #: ../fish/guestfish-actions.pod:2257
10528 msgid ""
10529 "L</inspect-get-package-format> and this function return the package format "
10530 "and package management tool used by the inspected operating system.  For "
10531 "example for Fedora these functions would return C<rpm> (package format) and "
10532 "C<yum> (package management)."
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10537 msgid ""
10538 "This returns the string C<unknown> if we could not determine the package "
10539 "management tool I<or> if the operating system does not have a real packaging "
10540 "system (eg. Windows)."
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10545 msgid ""
10546 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10547 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10548 "versions of libguestfs may return other strings."
10549 msgstr ""
10550
10551 #. type: =head2
10552 #: ../fish/guestfish-actions.pod:2274
10553 msgid "inspect-get-product-name"
10554 msgstr ""
10555
10556 #. type: verbatim
10557 #: ../fish/guestfish-actions.pod:2276
10558 #, no-wrap
10559 msgid ""
10560 " inspect-get-product-name root\n"
10561 "\n"
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10566 msgid ""
10567 "This returns the product name of the inspected operating system.  The "
10568 "product name is generally some freeform string which can be displayed to the "
10569 "user, but should not be parsed by programs."
10570 msgstr ""
10571
10572 #. type: textblock
10573 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10574 msgid ""
10575 "If the product name could not be determined, then the string C<unknown> is "
10576 "returned."
10577 msgstr ""
10578
10579 #. type: =head2
10580 #: ../fish/guestfish-actions.pod:2288
10581 msgid "inspect-get-product-variant"
10582 msgstr ""
10583
10584 #. type: verbatim
10585 #: ../fish/guestfish-actions.pod:2290
10586 #, no-wrap
10587 msgid ""
10588 " inspect-get-product-variant root\n"
10589 "\n"
10590 msgstr ""
10591
10592 #. type: textblock
10593 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10594 msgid "This returns the product variant of the inspected operating system."
10595 msgstr ""
10596
10597 #. type: textblock
10598 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10599 msgid ""
10600 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10601 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10602 "is usually a string such as C<Client> or C<Server> (other values are "
10603 "possible).  This can be used to distinguish consumer and enterprise versions "
10604 "of Windows that have the same version number (for example, Windows 7 and "
10605 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10606 "the latter is C<Server>)."
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10611 msgid ""
10612 "For enterprise Linux guests, in future we intend this to return the product "
10613 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10614 "implemented at present."
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10619 msgid ""
10620 "If the product variant could not be determined, then the string C<unknown> "
10621 "is returned."
10622 msgstr ""
10623
10624 #. type: textblock
10625 #: ../fish/guestfish-actions.pod:2311
10626 msgid ""
10627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10628 "get-product-name>, L</inspect-get-major-version>."
10629 msgstr ""
10630
10631 #. type: =head2
10632 #: ../fish/guestfish-actions.pod:2315
10633 msgid "inspect-get-roots"
10634 msgstr ""
10635
10636 #. type: verbatim
10637 #: ../fish/guestfish-actions.pod:2317
10638 #, no-wrap
10639 msgid ""
10640 " inspect-get-roots\n"
10641 "\n"
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2319
10646 msgid ""
10647 "This function is a convenient way to get the list of root devices, as "
10648 "returned from a previous call to L</inspect-os>, but without redoing the "
10649 "whole inspection process."
10650 msgstr ""
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:2323
10654 msgid ""
10655 "This returns an empty list if either no root devices were found or the "
10656 "caller has not called L</inspect-os>."
10657 msgstr ""
10658
10659 #. type: =head2
10660 #: ../fish/guestfish-actions.pod:2328
10661 msgid "inspect-get-type"
10662 msgstr ""
10663
10664 #. type: verbatim
10665 #: ../fish/guestfish-actions.pod:2330
10666 #, no-wrap
10667 msgid ""
10668 " inspect-get-type root\n"
10669 "\n"
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10674 msgid ""
10675 "This returns the type of the inspected operating system.  Currently defined "
10676 "types are:"
10677 msgstr ""
10678
10679 #. type: =item
10680 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10681 msgid "\"linux\""
10682 msgstr ""
10683
10684 #. type: textblock
10685 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10686 msgid "Any Linux-based operating system."
10687 msgstr ""
10688
10689 #. type: textblock
10690 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10691 msgid "Any Microsoft Windows operating system."
10692 msgstr ""
10693
10694 #. type: =item
10695 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10696 msgid "\"freebsd\""
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10701 msgid "FreeBSD."
10702 msgstr ""
10703
10704 #. type: =item
10705 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10706 msgid "\"netbsd\""
10707 msgstr ""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10711 msgid "NetBSD."
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10716 msgid "The operating system type could not be determined."
10717 msgstr ""
10718
10719 #. type: =head2
10720 #: ../fish/guestfish-actions.pod:2364
10721 msgid "inspect-get-windows-current-control-set"
10722 msgstr ""
10723
10724 #. type: verbatim
10725 #: ../fish/guestfish-actions.pod:2366
10726 #, no-wrap
10727 msgid ""
10728 " inspect-get-windows-current-control-set root\n"
10729 "\n"
10730 msgstr ""
10731
10732 #. type: textblock
10733 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10734 msgid ""
10735 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10736 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10741 msgid ""
10742 "This call assumes that the guest is Windows and that the Registry could be "
10743 "examined by inspection.  If this is not the case then an error is returned."
10744 msgstr ""
10745
10746 #. type: =head2
10747 #: ../fish/guestfish-actions.pod:2377
10748 msgid "inspect-get-windows-systemroot"
10749 msgstr ""
10750
10751 #. type: verbatim
10752 #: ../fish/guestfish-actions.pod:2379
10753 #, no-wrap
10754 msgid ""
10755 " inspect-get-windows-systemroot root\n"
10756 "\n"
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10761 msgid ""
10762 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10763 "is a directory path such as C</WINDOWS>."
10764 msgstr ""
10765
10766 #. type: textblock
10767 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10768 msgid ""
10769 "This call assumes that the guest is Windows and that the systemroot could be "
10770 "determined by inspection.  If this is not the case then an error is returned."
10771 msgstr ""
10772
10773 #. type: =head2
10774 #: ../fish/guestfish-actions.pod:2390
10775 msgid "inspect-is-live"
10776 msgstr ""
10777
10778 #. type: verbatim
10779 #: ../fish/guestfish-actions.pod:2392
10780 #, no-wrap
10781 msgid ""
10782 " inspect-is-live root\n"
10783 "\n"
10784 msgstr ""
10785
10786 #. type: textblock
10787 #: ../fish/guestfish-actions.pod:2394
10788 msgid ""
10789 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10790 "then this returns true if a live image was detected on the disk."
10791 msgstr ""
10792
10793 #. type: =head2
10794 #: ../fish/guestfish-actions.pod:2400
10795 msgid "inspect-is-multipart"
10796 msgstr ""
10797
10798 #. type: verbatim
10799 #: ../fish/guestfish-actions.pod:2402
10800 #, no-wrap
10801 msgid ""
10802 " inspect-is-multipart root\n"
10803 "\n"
10804 msgstr ""
10805
10806 #. type: textblock
10807 #: ../fish/guestfish-actions.pod:2404
10808 msgid ""
10809 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10810 "then this returns true if the disk is part of a set."
10811 msgstr ""
10812
10813 #. type: =head2
10814 #: ../fish/guestfish-actions.pod:2410
10815 msgid "inspect-is-netinst"
10816 msgstr ""
10817
10818 #. type: verbatim
10819 #: ../fish/guestfish-actions.pod:2412
10820 #, no-wrap
10821 msgid ""
10822 " inspect-is-netinst root\n"
10823 "\n"
10824 msgstr ""
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:2414
10828 msgid ""
10829 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10830 "then this returns true if the disk is a network installer, ie. not a self-"
10831 "contained install CD but one which is likely to require network access to "
10832 "complete the install."
10833 msgstr ""
10834
10835 #. type: =head2
10836 #: ../fish/guestfish-actions.pod:2422
10837 msgid "inspect-list-applications"
10838 msgstr ""
10839
10840 #. type: verbatim
10841 #: ../fish/guestfish-actions.pod:2424
10842 #, no-wrap
10843 msgid ""
10844 " inspect-list-applications root\n"
10845 "\n"
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10850 msgid "Return the list of applications installed in the operating system."
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:2428
10855 msgid ""
10856 "I<Note:> This call works differently from other parts of the inspection "
10857 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10858 "then mount up the disks, before calling this.  Listing applications is a "
10859 "significantly more difficult operation which requires access to the full "
10860 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10861 "are just returning data cached in the libguestfs handle, this call actually "
10862 "reads parts of the mounted filesystems during the call."
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10867 msgid ""
10868 "This returns an empty list if the inspection code was not able to determine "
10869 "the list of applications."
10870 msgstr ""
10871
10872 #. type: textblock
10873 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10874 msgid "The application structure contains the following fields:"
10875 msgstr ""
10876
10877 #. type: =item
10878 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10879 msgid "C<app_name>"
10880 msgstr ""
10881
10882 #. type: textblock
10883 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10884 msgid ""
10885 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10886 "guests, this is the package name."
10887 msgstr ""
10888
10889 #. type: =item
10890 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10891 msgid "C<app_display_name>"
10892 msgstr ""
10893
10894 #. type: textblock
10895 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10896 msgid ""
10897 "The display name of the application, sometimes localized to the install "
10898 "language of the guest operating system."
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
10903 msgid ""
10904 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10905 "to display something can use C<app_name> instead."
10906 msgstr ""
10907
10908 #. type: =item
10909 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
10910 msgid "C<app_epoch>"
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
10915 msgid ""
10916 "For package managers which use epochs, this contains the epoch of the "
10917 "package (an integer).  If unavailable, this is returned as C<0>."
10918 msgstr ""
10919
10920 #. type: =item
10921 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
10922 msgid "C<app_version>"
10923 msgstr ""
10924
10925 #. type: textblock
10926 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
10927 msgid ""
10928 "The version string of the application or package.  If unavailable this is "
10929 "returned as an empty string C<\"\">."
10930 msgstr ""
10931
10932 #. type: =item
10933 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
10934 msgid "C<app_release>"
10935 msgstr ""
10936
10937 #. type: textblock
10938 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
10939 msgid ""
10940 "The release string of the application or package, for package managers that "
10941 "use this.  If unavailable this is returned as an empty string C<\"\">."
10942 msgstr ""
10943
10944 #. type: =item
10945 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
10946 msgid "C<app_install_path>"
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
10951 msgid ""
10952 "The installation path of the application (on operating systems such as "
10953 "Windows which use installation paths).  This path is in the format used by "
10954 "the guest operating system, it is not a libguestfs path."
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
10959 msgid "If unavailable this is returned as an empty string C<\"\">."
10960 msgstr ""
10961
10962 #. type: =item
10963 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
10964 msgid "C<app_trans_path>"
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
10969 msgid ""
10970 "The install path translated into a libguestfs path.  If unavailable this is "
10971 "returned as an empty string C<\"\">."
10972 msgstr ""
10973
10974 #. type: =item
10975 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
10976 msgid "C<app_publisher>"
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
10981 msgid ""
10982 "The name of the publisher of the application, for package managers that use "
10983 "this.  If unavailable this is returned as an empty string C<\"\">."
10984 msgstr ""
10985
10986 #. type: =item
10987 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
10988 msgid "C<app_url>"
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
10993 msgid ""
10994 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10995 "returned as an empty string C<\"\">."
10996 msgstr ""
10997
10998 #. type: =item
10999 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11000 msgid "C<app_source_package>"
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11005 msgid ""
11006 "For packaging systems which support this, the name of the source package.  "
11007 "If unavailable this is returned as an empty string C<\"\">."
11008 msgstr ""
11009
11010 #. type: =item
11011 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11012 msgid "C<app_summary>"
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11017 msgid ""
11018 "A short (usually one line) description of the application or package.  If "
11019 "unavailable this is returned as an empty string C<\"\">."
11020 msgstr ""
11021
11022 #. type: =item
11023 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11024 msgid "C<app_description>"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11029 msgid ""
11030 "A longer description of the application or package.  If unavailable this is "
11031 "returned as an empty string C<\"\">."
11032 msgstr ""
11033
11034 #. type: =head2
11035 #: ../fish/guestfish-actions.pod:2518
11036 msgid "inspect-os"
11037 msgstr ""
11038
11039 #. type: verbatim
11040 #: ../fish/guestfish-actions.pod:2520
11041 #, no-wrap
11042 msgid ""
11043 " inspect-os\n"
11044 "\n"
11045 msgstr ""
11046
11047 #. type: textblock
11048 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11049 msgid ""
11050 "This function uses other libguestfs functions and certain heuristics to "
11051 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11052 "for operating systems."
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11057 msgid "The list returned is empty if no operating systems were found."
11058 msgstr ""
11059
11060 #. type: textblock
11061 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11062 msgid ""
11063 "If one operating system was found, then this returns a list with a single "
11064 "element, which is the name of the root filesystem of this operating system.  "
11065 "It is also possible for this function to return a list containing more than "
11066 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11067 "element being the root filesystem of one of the operating systems."
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../fish/guestfish-actions.pod:2535
11072 msgid ""
11073 "You can pass the root string(s) returned to other L</inspect-get-*> "
11074 "functions in order to query further information about each operating system, "
11075 "such as the name and version."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2540
11080 msgid ""
11081 "This function uses other libguestfs features such as L</mount-ro> and L</"
11082 "umount-all> in order to mount and unmount filesystems and look at the "
11083 "contents.  This should be called with no disks currently mounted.  The "
11084 "function may also use Augeas, so any existing Augeas handle will be closed."
11085 msgstr ""
11086
11087 #. type: textblock
11088 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11089 msgid ""
11090 "This function cannot decrypt encrypted disks.  The caller must do that first "
11091 "(supplying the necessary keys) if the disk is encrypted."
11092 msgstr ""
11093
11094 #. type: textblock
11095 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11096 #: ../fish/guestfish-actions.pod:2809
11097 msgid "See also L</list-filesystems>."
11098 msgstr ""
11099
11100 #. type: =head2
11101 #: ../fish/guestfish-actions.pod:2554
11102 msgid "is-blockdev"
11103 msgstr ""
11104
11105 #. type: verbatim
11106 #: ../fish/guestfish-actions.pod:2556
11107 #, no-wrap
11108 msgid ""
11109 " is-blockdev path\n"
11110 "\n"
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11115 msgid ""
11116 "This returns C<true> if and only if there is a block device with the given "
11117 "C<path> name."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11122 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11123 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11124 #: ../fish/guestfish-actions.pod:2660
11125 msgid "See also L</stat>."
11126 msgstr ""
11127
11128 #. type: =head2
11129 #: ../fish/guestfish-actions.pod:2563
11130 msgid "is-busy"
11131 msgstr ""
11132
11133 #. type: verbatim
11134 #: ../fish/guestfish-actions.pod:2565
11135 #, no-wrap
11136 msgid ""
11137 " is-busy\n"
11138 "\n"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11143 msgid ""
11144 "This returns true iff this handle is busy processing a command (in the "
11145 "C<BUSY> state)."
11146 msgstr ""
11147
11148 #. type: =head2
11149 #: ../fish/guestfish-actions.pod:2572
11150 msgid "is-chardev"
11151 msgstr ""
11152
11153 #. type: verbatim
11154 #: ../fish/guestfish-actions.pod:2574
11155 #, no-wrap
11156 msgid ""
11157 " is-chardev path\n"
11158 "\n"
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11163 msgid ""
11164 "This returns C<true> if and only if there is a character device with the "
11165 "given C<path> name."
11166 msgstr ""
11167
11168 #. type: =head2
11169 #: ../fish/guestfish-actions.pod:2581
11170 msgid "is-config"
11171 msgstr ""
11172
11173 #. type: verbatim
11174 #: ../fish/guestfish-actions.pod:2583
11175 #, no-wrap
11176 msgid ""
11177 " is-config\n"
11178 "\n"
11179 msgstr ""
11180
11181 #. type: textblock
11182 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11183 msgid ""
11184 "This returns true iff this handle is being configured (in the C<CONFIG> "
11185 "state)."
11186 msgstr ""
11187
11188 #. type: =head2
11189 #: ../fish/guestfish-actions.pod:2590
11190 msgid "is-dir"
11191 msgstr ""
11192
11193 #. type: verbatim
11194 #: ../fish/guestfish-actions.pod:2592
11195 #, no-wrap
11196 msgid ""
11197 " is-dir path\n"
11198 "\n"
11199 msgstr ""
11200
11201 #. type: textblock
11202 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11203 msgid ""
11204 "This returns C<true> if and only if there is a directory with the given "
11205 "C<path> name.  Note that it returns false for other objects like files."
11206 msgstr ""
11207
11208 #. type: =head2
11209 #: ../fish/guestfish-actions.pod:2600
11210 msgid "is-fifo"
11211 msgstr ""
11212
11213 #. type: verbatim
11214 #: ../fish/guestfish-actions.pod:2602
11215 #, no-wrap
11216 msgid ""
11217 " is-fifo path\n"
11218 "\n"
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11223 msgid ""
11224 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11225 "given C<path> name."
11226 msgstr ""
11227
11228 #. type: =head2
11229 #: ../fish/guestfish-actions.pod:2609
11230 msgid "is-file"
11231 msgstr ""
11232
11233 #. type: verbatim
11234 #: ../fish/guestfish-actions.pod:2611
11235 #, no-wrap
11236 msgid ""
11237 " is-file path\n"
11238 "\n"
11239 msgstr ""
11240
11241 #. type: textblock
11242 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11243 msgid ""
11244 "This returns C<true> if and only if there is a regular file with the given "
11245 "C<path> name.  Note that it returns false for other objects like directories."
11246 msgstr ""
11247
11248 #. type: =head2
11249 #: ../fish/guestfish-actions.pod:2619
11250 msgid "is-launching"
11251 msgstr ""
11252
11253 #. type: verbatim
11254 #: ../fish/guestfish-actions.pod:2621
11255 #, no-wrap
11256 msgid ""
11257 " is-launching\n"
11258 "\n"
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11263 msgid ""
11264 "This returns true iff this handle is launching the subprocess (in the "
11265 "C<LAUNCHING> state)."
11266 msgstr ""
11267
11268 #. type: =head2
11269 #: ../fish/guestfish-actions.pod:2628
11270 msgid "is-lv"
11271 msgstr ""
11272
11273 #. type: verbatim
11274 #: ../fish/guestfish-actions.pod:2630
11275 #, no-wrap
11276 msgid ""
11277 " is-lv device\n"
11278 "\n"
11279 msgstr ""
11280
11281 #. type: textblock
11282 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11283 msgid ""
11284 "This command tests whether C<device> is a logical volume, and returns true "
11285 "iff this is the case."
11286 msgstr ""
11287
11288 #. type: =head2
11289 #: ../fish/guestfish-actions.pod:2635
11290 msgid "is-ready"
11291 msgstr ""
11292
11293 #. type: verbatim
11294 #: ../fish/guestfish-actions.pod:2637
11295 #, no-wrap
11296 msgid ""
11297 " is-ready\n"
11298 "\n"
11299 msgstr ""
11300
11301 #. type: textblock
11302 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11303 msgid ""
11304 "This returns true iff this handle is ready to accept commands (in the "
11305 "C<READY> state)."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:2644
11310 msgid "is-socket"
11311 msgstr ""
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:2646
11315 #, no-wrap
11316 msgid ""
11317 " is-socket path\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11323 msgid ""
11324 "This returns C<true> if and only if there is a Unix domain socket with the "
11325 "given C<path> name."
11326 msgstr ""
11327
11328 #. type: =head2
11329 #: ../fish/guestfish-actions.pod:2653
11330 msgid "is-symlink"
11331 msgstr ""
11332
11333 #. type: verbatim
11334 #: ../fish/guestfish-actions.pod:2655
11335 #, no-wrap
11336 msgid ""
11337 " is-symlink path\n"
11338 "\n"
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11343 msgid ""
11344 "This returns C<true> if and only if there is a symbolic link with the given "
11345 "C<path> name."
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../fish/guestfish-actions.pod:2662
11350 msgid "is-zero"
11351 msgstr ""
11352
11353 #. type: verbatim
11354 #: ../fish/guestfish-actions.pod:2664
11355 #, no-wrap
11356 msgid ""
11357 " is-zero path\n"
11358 "\n"
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11363 msgid ""
11364 "This returns true iff the file exists and the file is empty or it contains "
11365 "all zero bytes."
11366 msgstr ""
11367
11368 #. type: =head2
11369 #: ../fish/guestfish-actions.pod:2669
11370 msgid "is-zero-device"
11371 msgstr ""
11372
11373 #. type: verbatim
11374 #: ../fish/guestfish-actions.pod:2671
11375 #, no-wrap
11376 msgid ""
11377 " is-zero-device device\n"
11378 "\n"
11379 msgstr ""
11380
11381 #. type: textblock
11382 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11383 msgid "This returns true iff the device exists and contains all zero bytes."
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11388 msgid "Note that for large devices this can take a long time to run."
11389 msgstr ""
11390
11391 #. type: =head2
11392 #: ../fish/guestfish-actions.pod:2677
11393 msgid "kill-subprocess"
11394 msgstr ""
11395
11396 #. type: verbatim
11397 #: ../fish/guestfish-actions.pod:2679
11398 #, no-wrap
11399 msgid ""
11400 " kill-subprocess\n"
11401 "\n"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11406 msgid "This kills the qemu subprocess.  You should never need to call this."
11407 msgstr ""
11408
11409 #. type: =head2
11410 #: ../fish/guestfish-actions.pod:2683
11411 msgid "launch"
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2685
11416 msgid "run"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2687
11421 #, no-wrap
11422 msgid ""
11423 " launch\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11429 msgid ""
11430 "Internally libguestfs is implemented by running a virtual machine using "
11431 "L<qemu(1)>."
11432 msgstr ""
11433
11434 #. type: textblock
11435 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11436 msgid ""
11437 "You should call this after configuring the handle (eg. adding drives) but "
11438 "before performing any actions."
11439 msgstr ""
11440
11441 #. type: =head2
11442 #: ../fish/guestfish-actions.pod:2695
11443 msgid "lchown"
11444 msgstr ""
11445
11446 #. type: verbatim
11447 #: ../fish/guestfish-actions.pod:2697
11448 #, no-wrap
11449 msgid ""
11450 " lchown owner group path\n"
11451 "\n"
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:2699
11456 msgid ""
11457 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11458 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11459 "target."
11460 msgstr ""
11461
11462 #. type: =head2
11463 #: ../fish/guestfish-actions.pod:2707
11464 msgid "lgetxattr"
11465 msgstr ""
11466
11467 #. type: verbatim
11468 #: ../fish/guestfish-actions.pod:2709
11469 #, no-wrap
11470 msgid ""
11471 " lgetxattr path name\n"
11472 "\n"
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11477 msgid ""
11478 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11479 "is a symlink, then this call returns an extended attribute from the symlink."
11480 msgstr ""
11481
11482 #. type: textblock
11483 #: ../fish/guestfish-actions.pod:2725
11484 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11485 msgstr ""
11486
11487 #. type: =head2
11488 #: ../fish/guestfish-actions.pod:2727
11489 msgid "lgetxattrs"
11490 msgstr ""
11491
11492 #. type: verbatim
11493 #: ../fish/guestfish-actions.pod:2729
11494 #, no-wrap
11495 msgid ""
11496 " lgetxattrs path\n"
11497 "\n"
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:2731
11502 msgid ""
11503 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11504 "it returns the extended attributes of the link itself."
11505 msgstr ""
11506
11507 #. type: =head2
11508 #: ../fish/guestfish-actions.pod:2735
11509 msgid "list-9p"
11510 msgstr ""
11511
11512 #. type: verbatim
11513 #: ../fish/guestfish-actions.pod:2737
11514 #, no-wrap
11515 msgid ""
11516 " list-9p\n"
11517 "\n"
11518 msgstr ""
11519
11520 #. type: textblock
11521 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11522 msgid ""
11523 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11524 "returned."
11525 msgstr ""
11526
11527 #. type: =head2
11528 #: ../fish/guestfish-actions.pod:2742
11529 msgid "list-devices"
11530 msgstr ""
11531
11532 #. type: verbatim
11533 #: ../fish/guestfish-actions.pod:2744
11534 #, no-wrap
11535 msgid ""
11536 " list-devices\n"
11537 "\n"
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11542 msgid "List all the block devices."
11543 msgstr ""
11544
11545 #. type: textblock
11546 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11547 msgid "The full block device names are returned, eg. C</dev/sda>."
11548 msgstr ""
11549
11550 #. type: =head2
11551 #: ../fish/guestfish-actions.pod:2752
11552 msgid "list-dm-devices"
11553 msgstr ""
11554
11555 #. type: verbatim
11556 #: ../fish/guestfish-actions.pod:2754
11557 #, no-wrap
11558 msgid ""
11559 " list-dm-devices\n"
11560 "\n"
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11565 msgid "List all device mapper devices."
11566 msgstr ""
11567
11568 #. type: textblock
11569 #: ../fish/guestfish-actions.pod:2758
11570 msgid ""
11571 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11572 "previous call to L</luks-open>."
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:2761
11577 msgid ""
11578 "Device mapper devices which correspond to logical volumes are I<not> "
11579 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../fish/guestfish-actions.pod:2765
11584 msgid "list-filesystems"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../fish/guestfish-actions.pod:2767
11589 #, no-wrap
11590 msgid ""
11591 " list-filesystems\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11597 msgid ""
11598 "This inspection command looks for filesystems on partitions, block devices "
11599 "and logical volumes, returning a list of devices containing filesystems and "
11600 "their type."
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11605 msgid ""
11606 "The return value is a hash, where the keys are the devices containing "
11607 "filesystems, and the values are the filesystem types.  For example:"
11608 msgstr ""
11609
11610 #. type: verbatim
11611 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11612 #, no-wrap
11613 msgid ""
11614 " \"/dev/sda1\" => \"ntfs\"\n"
11615 " \"/dev/sda2\" => \"ext2\"\n"
11616 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11617 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11623 msgid ""
11624 "The value can have the special value \"unknown\", meaning the content of the "
11625 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11626 msgstr ""
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:2786
11630 msgid ""
11631 "This command runs other libguestfs commands, which might include L</mount> "
11632 "and L</umount>, and therefore you should use this soon after launch and only "
11633 "when nothing is mounted."
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:2790
11638 msgid ""
11639 "Not all of the filesystems returned will be mountable.  In particular, swap "
11640 "partitions are returned in the list.  Also this command does not check that "
11641 "each filesystem found is valid and mountable, and some filesystems might be "
11642 "mountable but require special options.  Filesystems may not all belong to a "
11643 "single logical operating system (use L</inspect-os> to look for OSes)."
11644 msgstr ""
11645
11646 #. type: =head2
11647 #: ../fish/guestfish-actions.pod:2798
11648 msgid "list-partitions"
11649 msgstr ""
11650
11651 #. type: verbatim
11652 #: ../fish/guestfish-actions.pod:2800
11653 #, no-wrap
11654 msgid ""
11655 " list-partitions\n"
11656 "\n"
11657 msgstr ""
11658
11659 #. type: textblock
11660 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11661 msgid "List all the partitions detected on all block devices."
11662 msgstr ""
11663
11664 #. type: textblock
11665 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
11666 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11667 msgstr ""
11668
11669 #. type: textblock
11670 #: ../fish/guestfish-actions.pod:2806
11671 msgid ""
11672 "This does not return logical volumes.  For that you will need to call L</"
11673 "lvs>."
11674 msgstr ""
11675
11676 #. type: =head2
11677 #: ../fish/guestfish-actions.pod:2811
11678 msgid "ll"
11679 msgstr ""
11680
11681 #. type: verbatim
11682 #: ../fish/guestfish-actions.pod:2813
11683 #, no-wrap
11684 msgid ""
11685 " ll directory\n"
11686 "\n"
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
11691 msgid ""
11692 "List the files in C<directory> (relative to the root directory, there is no "
11693 "cwd) in the format of 'ls -la'."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
11698 msgid ""
11699 "This command is mostly useful for interactive sessions.  It is I<not> "
11700 "intended that you try to parse the output string."
11701 msgstr ""
11702
11703 #. type: =head2
11704 #: ../fish/guestfish-actions.pod:2821
11705 msgid "ln"
11706 msgstr ""
11707
11708 #. type: verbatim
11709 #: ../fish/guestfish-actions.pod:2823
11710 #, no-wrap
11711 msgid ""
11712 " ln target linkname\n"
11713 "\n"
11714 msgstr ""
11715
11716 #. type: textblock
11717 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
11718 msgid "This command creates a hard link using the C<ln> command."
11719 msgstr ""
11720
11721 #. type: =head2
11722 #: ../fish/guestfish-actions.pod:2827
11723 msgid "ln-f"
11724 msgstr ""
11725
11726 #. type: verbatim
11727 #: ../fish/guestfish-actions.pod:2829
11728 #, no-wrap
11729 msgid ""
11730 " ln-f target linkname\n"
11731 "\n"
11732 msgstr ""
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
11736 msgid ""
11737 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11738 "option removes the link (C<linkname>) if it exists already."
11739 msgstr ""
11740
11741 #. type: =head2
11742 #: ../fish/guestfish-actions.pod:2834
11743 msgid "ln-s"
11744 msgstr ""
11745
11746 #. type: verbatim
11747 #: ../fish/guestfish-actions.pod:2836
11748 #, no-wrap
11749 msgid ""
11750 " ln-s target linkname\n"
11751 "\n"
11752 msgstr ""
11753
11754 #. type: textblock
11755 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
11756 msgid "This command creates a symbolic link using the C<ln -s> command."
11757 msgstr ""
11758
11759 #. type: =head2
11760 #: ../fish/guestfish-actions.pod:2840
11761 msgid "ln-sf"
11762 msgstr ""
11763
11764 #. type: verbatim
11765 #: ../fish/guestfish-actions.pod:2842
11766 #, no-wrap
11767 msgid ""
11768 " ln-sf target linkname\n"
11769 "\n"
11770 msgstr ""
11771
11772 #. type: textblock
11773 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
11774 msgid ""
11775 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11776 "option removes the link (C<linkname>) if it exists already."
11777 msgstr ""
11778
11779 #. type: =head2
11780 #: ../fish/guestfish-actions.pod:2847
11781 msgid "lremovexattr"
11782 msgstr ""
11783
11784 #. type: verbatim
11785 #: ../fish/guestfish-actions.pod:2849
11786 #, no-wrap
11787 msgid ""
11788 " lremovexattr xattr path\n"
11789 "\n"
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../fish/guestfish-actions.pod:2851
11794 msgid ""
11795 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11796 "it removes an extended attribute of the link itself."
11797 msgstr ""
11798
11799 #. type: =head2
11800 #: ../fish/guestfish-actions.pod:2855
11801 msgid "ls"
11802 msgstr ""
11803
11804 #. type: verbatim
11805 #: ../fish/guestfish-actions.pod:2857
11806 #, no-wrap
11807 msgid ""
11808 " ls directory\n"
11809 "\n"
11810 msgstr ""
11811
11812 #. type: textblock
11813 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
11814 msgid ""
11815 "List the files in C<directory> (relative to the root directory, there is no "
11816 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11817 msgstr ""
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:2863
11821 msgid ""
11822 "This command is mostly useful for interactive sessions.  Programs should "
11823 "probably use L</readdir> instead."
11824 msgstr ""
11825
11826 #. type: =head2
11827 #: ../fish/guestfish-actions.pod:2866
11828 msgid "lsetxattr"
11829 msgstr ""
11830
11831 #. type: verbatim
11832 #: ../fish/guestfish-actions.pod:2868
11833 #, no-wrap
11834 msgid ""
11835 " lsetxattr xattr val vallen path\n"
11836 "\n"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:2870
11841 msgid ""
11842 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11843 "sets an extended attribute of the link itself."
11844 msgstr ""
11845
11846 #. type: =head2
11847 #: ../fish/guestfish-actions.pod:2874
11848 msgid "lstat"
11849 msgstr ""
11850
11851 #. type: verbatim
11852 #: ../fish/guestfish-actions.pod:2876
11853 #, no-wrap
11854 msgid ""
11855 " lstat path\n"
11856 "\n"
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
11861 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
11862 msgid "Returns file information for the given C<path>."
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:2880
11867 msgid ""
11868 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11869 "the link is stat-ed, not the file it refers to."
11870 msgstr ""
11871
11872 #. type: textblock
11873 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
11874 msgid "This is the same as the C<lstat(2)> system call."
11875 msgstr ""
11876
11877 #. type: =head2
11878 #: ../fish/guestfish-actions.pod:2886
11879 msgid "lstatlist"
11880 msgstr ""
11881
11882 #. type: verbatim
11883 #: ../fish/guestfish-actions.pod:2888
11884 #, no-wrap
11885 msgid ""
11886 " lstatlist path 'names ...'\n"
11887 "\n"
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../fish/guestfish-actions.pod:2890
11892 msgid ""
11893 "This call allows you to perform the L</lstat> operation on multiple files, "
11894 "where all files are in the directory C<path>.  C<names> is the list of files "
11895 "from this directory."
11896 msgstr ""
11897
11898 #. type: textblock
11899 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
11900 msgid ""
11901 "On return you get a list of stat structs, with a one-to-one correspondence "
11902 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11903 "then the C<ino> field of that structure is set to C<-1>."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:2899
11908 msgid ""
11909 "This call is intended for programs that want to efficiently list a directory "
11910 "contents without making many round-trips.  See also L</lxattrlist> for a "
11911 "similarly efficient call for getting extended attributes.  Very long "
11912 "directory listings might cause the protocol message size to be exceeded, "
11913 "causing this call to fail.  The caller must split up such requests into "
11914 "smaller groups of names."
11915 msgstr ""
11916
11917 #. type: =head2
11918 #: ../fish/guestfish-actions.pod:2907
11919 msgid "luks-add-key"
11920 msgstr ""
11921
11922 #. type: verbatim
11923 #: ../fish/guestfish-actions.pod:2909
11924 #, no-wrap
11925 msgid ""
11926 " luks-add-key device keyslot\n"
11927 "\n"
11928 msgstr ""
11929
11930 #. type: textblock
11931 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
11932 msgid ""
11933 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11934 "existing key, and is used to access the device.  C<newkey> is the new key to "
11935 "add.  C<keyslot> is the key slot that will be replaced."
11936 msgstr ""
11937
11938 #. type: textblock
11939 #: ../fish/guestfish-actions.pod:2916
11940 msgid ""
11941 "Note that if C<keyslot> already contains a key, then this command will "
11942 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11943 msgstr ""
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
11947 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
11948 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
11949 msgid ""
11950 "This command has one or more key or passphrase parameters.  Guestfish will "
11951 "prompt for these separately."
11952 msgstr ""
11953
11954 #. type: =head2
11955 #: ../fish/guestfish-actions.pod:2923
11956 msgid "luks-close"
11957 msgstr ""
11958
11959 #. type: verbatim
11960 #: ../fish/guestfish-actions.pod:2925
11961 #, no-wrap
11962 msgid ""
11963 " luks-close device\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2927
11969 msgid ""
11970 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11971 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11972 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11973 "block device."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:2933
11978 msgid "luks-format"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:2935
11983 #, no-wrap
11984 msgid ""
11985 " luks-format device keyslot\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
11991 msgid ""
11992 "This command erases existing data on C<device> and formats the device as a "
11993 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11994 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11995 msgstr ""
11996
11997 #. type: =head2
11998 #: ../fish/guestfish-actions.pod:2945
11999 msgid "luks-format-cipher"
12000 msgstr ""
12001
12002 #. type: verbatim
12003 #: ../fish/guestfish-actions.pod:2947
12004 #, no-wrap
12005 msgid ""
12006 " luks-format-cipher device keyslot cipher\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:2949
12012 msgid ""
12013 "This command is the same as L</luks-format> but it also allows you to set "
12014 "the C<cipher> used."
12015 msgstr ""
12016
12017 #. type: =head2
12018 #: ../fish/guestfish-actions.pod:2955
12019 msgid "luks-kill-slot"
12020 msgstr ""
12021
12022 #. type: verbatim
12023 #: ../fish/guestfish-actions.pod:2957
12024 #, no-wrap
12025 msgid ""
12026 " luks-kill-slot device keyslot\n"
12027 "\n"
12028 msgstr ""
12029
12030 #. type: textblock
12031 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12032 msgid ""
12033 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12034 "device C<device>.  C<key> must be one of the I<other> keys."
12035 msgstr ""
12036
12037 #. type: =head2
12038 #: ../fish/guestfish-actions.pod:2966
12039 msgid "luks-open"
12040 msgstr ""
12041
12042 #. type: verbatim
12043 #: ../fish/guestfish-actions.pod:2968
12044 #, no-wrap
12045 msgid ""
12046 " luks-open device mapname\n"
12047 "\n"
12048 msgstr ""
12049
12050 #. type: textblock
12051 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12052 msgid ""
12053 "This command opens a block device which has been encrypted according to the "
12054 "Linux Unified Key Setup (LUKS) standard."
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12059 msgid "C<device> is the encrypted block device or partition."
12060 msgstr ""
12061
12062 #. type: textblock
12063 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12064 msgid ""
12065 "The caller must supply one of the keys associated with the LUKS block "
12066 "device, in the C<key> parameter."
12067 msgstr ""
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12071 msgid ""
12072 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12073 "writes to this block device are decrypted from and encrypted to the "
12074 "underlying C<device> respectively."
12075 msgstr ""
12076
12077 #. type: textblock
12078 #: ../fish/guestfish-actions.pod:2982
12079 msgid ""
12080 "If this block device contains LVM volume groups, then calling L</vgscan> "
12081 "followed by L</vg-activate-all> will make them visible."
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../fish/guestfish-actions.pod:2986
12086 msgid "Use L</list-dm-devices> to list all device mapper devices."
12087 msgstr ""
12088
12089 #. type: =head2
12090 #: ../fish/guestfish-actions.pod:2992
12091 msgid "luks-open-ro"
12092 msgstr ""
12093
12094 #. type: verbatim
12095 #: ../fish/guestfish-actions.pod:2994
12096 #, no-wrap
12097 msgid ""
12098 " luks-open-ro device mapname\n"
12099 "\n"
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:2996
12104 msgid ""
12105 "This is the same as L</luks-open> except that a read-only mapping is created."
12106 msgstr ""
12107
12108 #. type: =head2
12109 #: ../fish/guestfish-actions.pod:3002
12110 msgid "lvcreate"
12111 msgstr ""
12112
12113 #. type: verbatim
12114 #: ../fish/guestfish-actions.pod:3004
12115 #, no-wrap
12116 msgid ""
12117 " lvcreate logvol volgroup mbytes\n"
12118 "\n"
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12123 msgid ""
12124 "This creates an LVM logical volume called C<logvol> on the volume group "
12125 "C<volgroup>, with C<size> megabytes."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../fish/guestfish-actions.pod:3009
12130 msgid "lvm-canonical-lv-name"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../fish/guestfish-actions.pod:3011
12135 #, no-wrap
12136 msgid ""
12137 " lvm-canonical-lv-name lvname\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12143 msgid ""
12144 "This converts alternative naming schemes for LVs that you might find to the "
12145 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12146 "LV>."
12147 msgstr ""
12148
12149 #. type: textblock
12150 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12151 msgid ""
12152 "This command returns an error if the C<lvname> parameter does not refer to a "
12153 "logical volume."
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../fish/guestfish-actions.pod:3020
12158 msgid "See also L</is-lv>."
12159 msgstr ""
12160
12161 #. type: =head2
12162 #: ../fish/guestfish-actions.pod:3022
12163 msgid "lvm-clear-filter"
12164 msgstr ""
12165
12166 #. type: verbatim
12167 #: ../fish/guestfish-actions.pod:3024
12168 #, no-wrap
12169 msgid ""
12170 " lvm-clear-filter\n"
12171 "\n"
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:3026
12176 msgid ""
12177 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12178 "block device."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
12183 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12184 msgid ""
12185 "This command also clears the LVM cache and performs a volume group scan."
12186 msgstr ""
12187
12188 #. type: =head2
12189 #: ../fish/guestfish-actions.pod:3032
12190 msgid "lvm-remove-all"
12191 msgstr ""
12192
12193 #. type: verbatim
12194 #: ../fish/guestfish-actions.pod:3034
12195 #, no-wrap
12196 msgid ""
12197 " lvm-remove-all\n"
12198 "\n"
12199 msgstr ""
12200
12201 #. type: textblock
12202 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12203 msgid ""
12204 "This command removes all LVM logical volumes, volume groups and physical "
12205 "volumes."
12206 msgstr ""
12207
12208 #. type: =head2
12209 #: ../fish/guestfish-actions.pod:3039
12210 msgid "lvm-set-filter"
12211 msgstr ""
12212
12213 #. type: verbatim
12214 #: ../fish/guestfish-actions.pod:3041
12215 #, no-wrap
12216 msgid ""
12217 " lvm-set-filter 'devices ...'\n"
12218 "\n"
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12223 msgid ""
12224 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12225 "block devices in the list C<devices>, and will ignore all other attached "
12226 "block devices."
12227 msgstr ""
12228
12229 #. type: textblock
12230 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12231 msgid ""
12232 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12233 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12234 "there are two types of duplication possible: either cloned PVs/VGs which "
12235 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12236 "same name.  In normal operation you cannot create this situation, but you "
12237 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12238 "inside the LVM metadata."
12239 msgstr ""
12240
12241 #. type: textblock
12242 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
12243 msgid "You can filter whole block devices or individual partitions."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
12248 msgid ""
12249 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12250 "filesystem), even if you are not filtering out that VG."
12251 msgstr ""
12252
12253 #. type: =head2
12254 #: ../fish/guestfish-actions.pod:3066
12255 msgid "lvremove"
12256 msgstr ""
12257
12258 #. type: verbatim
12259 #: ../fish/guestfish-actions.pod:3068
12260 #, no-wrap
12261 msgid ""
12262 " lvremove device\n"
12263 "\n"
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
12268 msgid ""
12269 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12270 "LV, such as C</dev/VG/LV>."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
12275 msgid ""
12276 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12277 "dev/VG>."
12278 msgstr ""
12279
12280 #. type: =head2
12281 #: ../fish/guestfish-actions.pod:3076
12282 msgid "lvrename"
12283 msgstr ""
12284
12285 #. type: verbatim
12286 #: ../fish/guestfish-actions.pod:3078
12287 #, no-wrap
12288 msgid ""
12289 " lvrename logvol newlogvol\n"
12290 "\n"
12291 msgstr ""
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12295 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12296 msgstr ""
12297
12298 #. type: =head2
12299 #: ../fish/guestfish-actions.pod:3082
12300 msgid "lvresize"
12301 msgstr ""
12302
12303 #. type: verbatim
12304 #: ../fish/guestfish-actions.pod:3084
12305 #, no-wrap
12306 msgid ""
12307 " lvresize device mbytes\n"
12308 "\n"
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12313 msgid ""
12314 "This resizes (expands or shrinks) an existing LVM logical volume to "
12315 "C<mbytes>.  When reducing, data in the reduced part is lost."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../fish/guestfish-actions.pod:3090
12320 msgid "lvresize-free"
12321 msgstr ""
12322
12323 #. type: verbatim
12324 #: ../fish/guestfish-actions.pod:3092
12325 #, no-wrap
12326 msgid ""
12327 " lvresize-free lv percent\n"
12328 "\n"
12329 msgstr ""
12330
12331 #. type: textblock
12332 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
12333 msgid ""
12334 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12335 "remaining free space in the volume group.  Commonly you would call this with "
12336 "pc = 100 which expands the logical volume as much as possible, using all "
12337 "remaining free space in the volume group."
12338 msgstr ""
12339
12340 #. type: =head2
12341 #: ../fish/guestfish-actions.pod:3100
12342 msgid "lvs"
12343 msgstr ""
12344
12345 #. type: verbatim
12346 #: ../fish/guestfish-actions.pod:3102
12347 #, no-wrap
12348 msgid ""
12349 " lvs\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
12355 msgid ""
12356 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12357 "(8)> command."
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
12362 msgid ""
12363 "This returns a list of the logical volume device names (eg. C</dev/"
12364 "VolGroup00/LogVol00>)."
12365 msgstr ""
12366
12367 #. type: textblock
12368 #: ../fish/guestfish-actions.pod:3110
12369 msgid "See also L</lvs-full>, L</list-filesystems>."
12370 msgstr ""
12371
12372 #. type: =head2
12373 #: ../fish/guestfish-actions.pod:3112
12374 msgid "lvs-full"
12375 msgstr ""
12376
12377 #. type: verbatim
12378 #: ../fish/guestfish-actions.pod:3114
12379 #, no-wrap
12380 msgid ""
12381 " lvs-full\n"
12382 "\n"
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
12387 msgid ""
12388 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12389 "(8)> command.  The \"full\" version includes all fields."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:3119
12394 msgid "lvuuid"
12395 msgstr ""
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:3121
12399 #, no-wrap
12400 msgid ""
12401 " lvuuid device\n"
12402 "\n"
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
12407 msgid "This command returns the UUID of the LVM LV C<device>."
12408 msgstr ""
12409
12410 #. type: =head2
12411 #: ../fish/guestfish-actions.pod:3125
12412 msgid "lxattrlist"
12413 msgstr ""
12414
12415 #. type: verbatim
12416 #: ../fish/guestfish-actions.pod:3127
12417 #, no-wrap
12418 msgid ""
12419 " lxattrlist path 'names ...'\n"
12420 "\n"
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
12425 msgid ""
12426 "This call allows you to get the extended attributes of multiple files, where "
12427 "all files are in the directory C<path>.  C<names> is the list of files from "
12428 "this directory."
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
12433 msgid ""
12434 "On return you get a flat list of xattr structs which must be interpreted "
12435 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12436 "C<attrval> in this struct is zero-length to indicate there was an error "
12437 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12438 "number (the number of following attributes for this file, which could be C<"
12439 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12440 "for the first named file.  This repeats for the second and subsequent files."
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3143
12445 msgid ""
12446 "This call is intended for programs that want to efficiently list a directory "
12447 "contents without making many round-trips.  See also L</lstatlist> for a "
12448 "similarly efficient call for getting standard stats.  Very long directory "
12449 "listings might cause the protocol message size to be exceeded, causing this "
12450 "call to fail.  The caller must split up such requests into smaller groups of "
12451 "names."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:3151
12456 msgid "mkdir"
12457 msgstr ""
12458
12459 #. type: verbatim
12460 #: ../fish/guestfish-actions.pod:3153
12461 #, no-wrap
12462 msgid ""
12463 " mkdir path\n"
12464 "\n"
12465 msgstr ""
12466
12467 #. type: textblock
12468 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
12469 msgid "Create a directory named C<path>."
12470 msgstr ""
12471
12472 #. type: =head2
12473 #: ../fish/guestfish-actions.pod:3157
12474 msgid "mkdir-mode"
12475 msgstr ""
12476
12477 #. type: verbatim
12478 #: ../fish/guestfish-actions.pod:3159
12479 #, no-wrap
12480 msgid ""
12481 " mkdir-mode path mode\n"
12482 "\n"
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
12487 msgid ""
12488 "This command creates a directory, setting the initial permissions of the "
12489 "directory to C<mode>."
12490 msgstr ""
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
12494 msgid ""
12495 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12496 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12497 "other ways."
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3168
12502 msgid "See also L</mkdir>, L</umask>"
12503 msgstr ""
12504
12505 #. type: =head2
12506 #: ../fish/guestfish-actions.pod:3170
12507 msgid "mkdir-p"
12508 msgstr ""
12509
12510 #. type: verbatim
12511 #: ../fish/guestfish-actions.pod:3172
12512 #, no-wrap
12513 msgid ""
12514 " mkdir-p path\n"
12515 "\n"
12516 msgstr ""
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
12520 msgid ""
12521 "Create a directory named C<path>, creating any parent directories as "
12522 "necessary.  This is like the C<mkdir -p> shell command."
12523 msgstr ""
12524
12525 #. type: =head2
12526 #: ../fish/guestfish-actions.pod:3177
12527 msgid "mkdtemp"
12528 msgstr ""
12529
12530 #. type: verbatim
12531 #: ../fish/guestfish-actions.pod:3179
12532 #, no-wrap
12533 msgid ""
12534 " mkdtemp template\n"
12535 "\n"
12536 msgstr ""
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
12540 msgid ""
12541 "This command creates a temporary directory.  The C<template> parameter "
12542 "should be a full pathname for the temporary directory name with the final "
12543 "six characters being \"XXXXXX\"."
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
12548 msgid ""
12549 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12550 "being suitable for Windows filesystems."
12551 msgstr ""
12552
12553 #. type: textblock
12554 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
12555 msgid "The name of the temporary directory that was created is returned."
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
12560 msgid "The temporary directory is created with mode 0700 and is owned by root."
12561 msgstr ""
12562
12563 #. type: textblock
12564 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
12565 msgid ""
12566 "The caller is responsible for deleting the temporary directory and its "
12567 "contents after use."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
12572 msgid "See also: L<mkdtemp(3)>"
12573 msgstr ""
12574
12575 #. type: =head2
12576 #: ../fish/guestfish-actions.pod:3200
12577 msgid "mke2fs-J"
12578 msgstr ""
12579
12580 #. type: verbatim
12581 #: ../fish/guestfish-actions.pod:3202
12582 #, no-wrap
12583 msgid ""
12584 " mke2fs-J fstype blocksize device journal\n"
12585 "\n"
12586 msgstr ""
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
12590 msgid ""
12591 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12592 "C<journal>.  It is equivalent to the command:"
12593 msgstr ""
12594
12595 #. type: verbatim
12596 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
12597 #, no-wrap
12598 msgid ""
12599 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12600 "\n"
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:3210
12605 msgid "See also L</mke2journal>."
12606 msgstr ""
12607
12608 #. type: =head2
12609 #: ../fish/guestfish-actions.pod:3212
12610 msgid "mke2fs-JL"
12611 msgstr ""
12612
12613 #. type: verbatim
12614 #: ../fish/guestfish-actions.pod:3214
12615 #, no-wrap
12616 msgid ""
12617 " mke2fs-JL fstype blocksize device label\n"
12618 "\n"
12619 msgstr ""
12620
12621 #. type: textblock
12622 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
12623 msgid ""
12624 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12625 "the journal labeled C<label>."
12626 msgstr ""
12627
12628 #. type: textblock
12629 #: ../fish/guestfish-actions.pod:3219
12630 msgid "See also L</mke2journal-L>."
12631 msgstr ""
12632
12633 #. type: =head2
12634 #: ../fish/guestfish-actions.pod:3221
12635 msgid "mke2fs-JU"
12636 msgstr ""
12637
12638 #. type: verbatim
12639 #: ../fish/guestfish-actions.pod:3223
12640 #, no-wrap
12641 msgid ""
12642 " mke2fs-JU fstype blocksize device uuid\n"
12643 "\n"
12644 msgstr ""
12645
12646 #. type: textblock
12647 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
12648 msgid ""
12649 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12650 "the journal with UUID C<uuid>."
12651 msgstr ""
12652
12653 #. type: textblock
12654 #: ../fish/guestfish-actions.pod:3228
12655 msgid "See also L</mke2journal-U>."
12656 msgstr ""
12657
12658 #. type: =head2
12659 #: ../fish/guestfish-actions.pod:3230
12660 msgid "mke2journal"
12661 msgstr ""
12662
12663 #. type: verbatim
12664 #: ../fish/guestfish-actions.pod:3232
12665 #, no-wrap
12666 msgid ""
12667 " mke2journal blocksize device\n"
12668 "\n"
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
12673 msgid ""
12674 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12675 "command:"
12676 msgstr ""
12677
12678 #. type: verbatim
12679 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
12680 #, no-wrap
12681 msgid ""
12682 " mke2fs -O journal_dev -b blocksize device\n"
12683 "\n"
12684 msgstr ""
12685
12686 #. type: =head2
12687 #: ../fish/guestfish-actions.pod:3239
12688 msgid "mke2journal-L"
12689 msgstr ""
12690
12691 #. type: verbatim
12692 #: ../fish/guestfish-actions.pod:3241
12693 #, no-wrap
12694 msgid ""
12695 " mke2journal-L blocksize label device\n"
12696 "\n"
12697 msgstr ""
12698
12699 #. type: textblock
12700 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
12701 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12702 msgstr ""
12703
12704 #. type: =head2
12705 #: ../fish/guestfish-actions.pod:3245
12706 msgid "mke2journal-U"
12707 msgstr ""
12708
12709 #. type: verbatim
12710 #: ../fish/guestfish-actions.pod:3247
12711 #, no-wrap
12712 msgid ""
12713 " mke2journal-U blocksize uuid device\n"
12714 "\n"
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
12719 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12720 msgstr ""
12721
12722 #. type: =head2
12723 #: ../fish/guestfish-actions.pod:3251
12724 msgid "mkfifo"
12725 msgstr ""
12726
12727 #. type: verbatim
12728 #: ../fish/guestfish-actions.pod:3253
12729 #, no-wrap
12730 msgid ""
12731 " mkfifo mode path\n"
12732 "\n"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:3255
12737 msgid ""
12738 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12739 "is just a convenient wrapper around L</mknod>."
12740 msgstr ""
12741
12742 #. type: =head2
12743 #: ../fish/guestfish-actions.pod:3261
12744 msgid "mkfs"
12745 msgstr ""
12746
12747 #. type: verbatim
12748 #: ../fish/guestfish-actions.pod:3263
12749 #, no-wrap
12750 msgid ""
12751 " mkfs fstype device\n"
12752 "\n"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
12757 msgid ""
12758 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12759 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../fish/guestfish-actions.pod:3269
12764 msgid "mkfs-b"
12765 msgstr ""
12766
12767 #. type: verbatim
12768 #: ../fish/guestfish-actions.pod:3271
12769 #, no-wrap
12770 msgid ""
12771 " mkfs-b fstype blocksize device\n"
12772 "\n"
12773 msgstr ""
12774
12775 #. type: textblock
12776 #: ../fish/guestfish-actions.pod:3273
12777 msgid ""
12778 "This call is similar to L</mkfs>, but it allows you to control the block "
12779 "size of the resulting filesystem.  Supported block sizes depend on the "
12780 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
12785 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
12786 msgid ""
12787 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12788 "cluster size."
12789 msgstr ""
12790
12791 #. type: textblock
12792 #: ../fish/guestfish-actions.pod:3281
12793 msgid ""
12794 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12795 "instead."
12796 msgstr ""
12797
12798 #. type: =head2
12799 #: ../fish/guestfish-actions.pod:3288
12800 msgid "mkfs-opts"
12801 msgstr ""
12802
12803 #. type: verbatim
12804 #: ../fish/guestfish-actions.pod:3290
12805 #, no-wrap
12806 msgid ""
12807 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
12808 "\n"
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
12813 msgid ""
12814 "This function creates a filesystem on C<device>.  The filesystem type is "
12815 "C<fstype>, for example C<ext3>."
12816 msgstr ""
12817
12818 #. type: =item
12819 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
12820 msgid "C<blocksize>"
12821 msgstr ""
12822
12823 #. type: textblock
12824 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
12825 msgid ""
12826 "The filesystem block size.  Supported block sizes depend on the filesystem "
12827 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12828 "filesystems."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
12833 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12834 msgstr ""
12835
12836 #. type: =item
12837 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
12838 msgid "C<features>"
12839 msgstr ""
12840
12841 #. type: textblock
12842 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
12843 msgid "This passes the I<-O> parameter to the external mkfs program."
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
12848 msgid ""
12849 "For certain filesystem types, this allows extra filesystem features to be "
12850 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
12855 msgid ""
12856 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12857 "type."
12858 msgstr ""
12859
12860 #. type: =item
12861 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
12862 msgid "C<inode>"
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
12867 msgid ""
12868 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12869 "sets the inode size (only for ext2/3/4 filesystems at present)."
12870 msgstr ""
12871
12872 #. type: =item
12873 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
12874 msgid "C<sectorsize>"
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
12879 msgid ""
12880 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12881 "sets sector size for ufs filesystem."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:3335
12886 msgid "mkmountpoint"
12887 msgstr ""
12888
12889 #. type: verbatim
12890 #: ../fish/guestfish-actions.pod:3337
12891 #, no-wrap
12892 msgid ""
12893 " mkmountpoint exemptpath\n"
12894 "\n"
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3339
12899 msgid ""
12900 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12901 "to create extra mountpoints before mounting the first filesystem."
12902 msgstr ""
12903
12904 #. type: textblock
12905 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
12906 msgid ""
12907 "These calls are I<only> necessary in some very limited circumstances, mainly "
12908 "the case where you want to mount a mix of unrelated and/or read-only "
12909 "filesystems together."
12910 msgstr ""
12911
12912 #. type: textblock
12913 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
12914 msgid ""
12915 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12916 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12917 "inside that.  You can unpack this as follows in guestfish:"
12918 msgstr ""
12919
12920 #. type: verbatim
12921 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
12922 #, no-wrap
12923 msgid ""
12924 " add-ro Fedora-11-i686-Live.iso\n"
12925 " run\n"
12926 " mkmountpoint /cd\n"
12927 " mkmountpoint /sqsh\n"
12928 " mkmountpoint /ext3fs\n"
12929 " mount /dev/sda /cd\n"
12930 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12931 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12932 "\n"
12933 msgstr ""
12934
12935 #. type: textblock
12936 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
12937 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3363
12942 msgid ""
12943 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12944 "unexpected errors if you try to mix these calls.  It is safest to manually "
12945 "unmount filesystems and remove mountpoints after use."
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3367
12950 msgid ""
12951 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12952 "for this to work for manual mountpoints, you must ensure that the innermost "
12953 "mountpoints have the longest pathnames, as in the example code above."
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
12958 msgid ""
12959 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12960 msgstr ""
12961
12962 #. type: textblock
12963 #: ../fish/guestfish-actions.pod:3374
12964 msgid ""
12965 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12966 "L</umount-all> to be called when the handle is closed which can also trigger "
12967 "these issues."
12968 msgstr ""
12969
12970 #. type: =head2
12971 #: ../fish/guestfish-actions.pod:3378
12972 msgid "mknod"
12973 msgstr ""
12974
12975 #. type: verbatim
12976 #: ../fish/guestfish-actions.pod:3380
12977 #, no-wrap
12978 msgid ""
12979 " mknod mode devmajor devminor path\n"
12980 "\n"
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
12985 msgid ""
12986 "This call creates block or character special devices, or named pipes (FIFOs)."
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
12991 msgid ""
12992 "The C<mode> parameter should be the mode, using the standard constants.  "
12993 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12994 "used when creating block and character special devices."
12995 msgstr ""
12996
12997 #. type: textblock
12998 #: ../fish/guestfish-actions.pod:3390
12999 msgid ""
13000 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13001 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13002 "regular file).  These constants are available in the standard Linux header "
13003 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13004 "wrappers around this command which bitwise OR in the appropriate constant "
13005 "for you."
13006 msgstr ""
13007
13008 #. type: =head2
13009 #: ../fish/guestfish-actions.pod:3400
13010 msgid "mknod-b"
13011 msgstr ""
13012
13013 #. type: verbatim
13014 #: ../fish/guestfish-actions.pod:3402
13015 #, no-wrap
13016 msgid ""
13017 " mknod-b mode devmajor devminor path\n"
13018 "\n"
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3404
13023 msgid ""
13024 "This call creates a block device node called C<path> with mode C<mode> and "
13025 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13026 "wrapper around L</mknod>."
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:3410
13031 msgid "mknod-c"
13032 msgstr ""
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:3412
13036 #, no-wrap
13037 msgid ""
13038 " mknod-c mode devmajor devminor path\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:3414
13044 msgid ""
13045 "This call creates a char device node called C<path> with mode C<mode> and "
13046 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13047 "wrapper around L</mknod>."
13048 msgstr ""
13049
13050 #. type: =head2
13051 #: ../fish/guestfish-actions.pod:3420
13052 msgid "mkswap"
13053 msgstr ""
13054
13055 #. type: verbatim
13056 #: ../fish/guestfish-actions.pod:3422
13057 #, no-wrap
13058 msgid ""
13059 " mkswap device\n"
13060 "\n"
13061 msgstr ""
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13065 msgid "Create a swap partition on C<device>."
13066 msgstr ""
13067
13068 #. type: =head2
13069 #: ../fish/guestfish-actions.pod:3426
13070 msgid "mkswap-L"
13071 msgstr ""
13072
13073 #. type: verbatim
13074 #: ../fish/guestfish-actions.pod:3428
13075 #, no-wrap
13076 msgid ""
13077 " mkswap-L label device\n"
13078 "\n"
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13083 msgid "Create a swap partition on C<device> with label C<label>."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13088 msgid ""
13089 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13090 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13091 "or swap tools."
13092 msgstr ""
13093
13094 #. type: =head2
13095 #: ../fish/guestfish-actions.pod:3436
13096 msgid "mkswap-U"
13097 msgstr ""
13098
13099 #. type: verbatim
13100 #: ../fish/guestfish-actions.pod:3438
13101 #, no-wrap
13102 msgid ""
13103 " mkswap-U uuid device\n"
13104 "\n"
13105 msgstr ""
13106
13107 #. type: textblock
13108 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13109 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13110 msgstr ""
13111
13112 #. type: =head2
13113 #: ../fish/guestfish-actions.pod:3442
13114 msgid "mkswap-file"
13115 msgstr ""
13116
13117 #. type: verbatim
13118 #: ../fish/guestfish-actions.pod:3444
13119 #, no-wrap
13120 msgid ""
13121 " mkswap-file path\n"
13122 "\n"
13123 msgstr ""
13124
13125 #. type: textblock
13126 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13127 msgid "Create a swap file."
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3448
13132 msgid ""
13133 "This command just writes a swap file signature to an existing file.  To "
13134 "create the file itself, use something like L</fallocate>."
13135 msgstr ""
13136
13137 #. type: =head2
13138 #: ../fish/guestfish-actions.pod:3451
13139 msgid "modprobe"
13140 msgstr ""
13141
13142 #. type: verbatim
13143 #: ../fish/guestfish-actions.pod:3453
13144 #, no-wrap
13145 msgid ""
13146 " modprobe modulename\n"
13147 "\n"
13148 msgstr ""
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13152 msgid "This loads a kernel module in the appliance."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13157 msgid ""
13158 "The kernel module must have been whitelisted when libguestfs was built (see "
13159 "C<appliance/kmod.whitelist.in> in the source)."
13160 msgstr ""
13161
13162 #. type: =head2
13163 #: ../fish/guestfish-actions.pod:3460
13164 msgid "mount"
13165 msgstr ""
13166
13167 #. type: verbatim
13168 #: ../fish/guestfish-actions.pod:3462
13169 #, no-wrap
13170 msgid ""
13171 " mount device mountpoint\n"
13172 "\n"
13173 msgstr ""
13174
13175 #. type: textblock
13176 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13177 msgid ""
13178 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13179 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13180 "those block devices contain partitions, they will have the usual names (eg. "
13181 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13186 msgid ""
13187 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13188 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13189 "mounted on directories which already exist."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13194 msgid ""
13195 "The mounted filesystem is writable, if we have sufficient permissions on the "
13196 "underlying device."
13197 msgstr ""
13198
13199 #. type: textblock
13200 #: ../fish/guestfish-actions.pod:3478
13201 msgid ""
13202 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13203 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13204 "problems for users.  If your program might need to work with older versions "
13205 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13206 "first parameter if you don't want any options)."
13207 msgstr ""
13208
13209 #. type: =head2
13210 #: ../fish/guestfish-actions.pod:3485
13211 msgid "mount-9p"
13212 msgstr ""
13213
13214 #. type: verbatim
13215 #: ../fish/guestfish-actions.pod:3487
13216 #, no-wrap
13217 msgid ""
13218 " mount-9p mounttag mountpoint [options:..]\n"
13219 "\n"
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13224 msgid ""
13225 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13226 "C<mountpoint>."
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13231 msgid ""
13232 "If required, C<trans=virtio> will be automatically added to the options.  "
13233 "Any other options required can be passed in the optional C<options> "
13234 "parameter."
13235 msgstr ""
13236
13237 #. type: =head2
13238 #: ../fish/guestfish-actions.pod:3498
13239 msgid "mount-loop"
13240 msgstr ""
13241
13242 #. type: verbatim
13243 #: ../fish/guestfish-actions.pod:3500
13244 #, no-wrap
13245 msgid ""
13246 " mount-loop file mountpoint\n"
13247 "\n"
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
13252 msgid ""
13253 "This command lets you mount C<file> (a filesystem image in a file) on a "
13254 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13255 "mountpoint>."
13256 msgstr ""
13257
13258 #. type: =head2
13259 #: ../fish/guestfish-actions.pod:3506
13260 msgid "mount-options"
13261 msgstr ""
13262
13263 #. type: verbatim
13264 #: ../fish/guestfish-actions.pod:3508
13265 #, no-wrap
13266 msgid ""
13267 " mount-options options device mountpoint\n"
13268 "\n"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3510
13273 msgid ""
13274 "This is the same as the L</mount> command, but it allows you to set the "
13275 "mount options as for the L<mount(8)> I<-o> flag."
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
13280 msgid ""
13281 "If the C<options> parameter is an empty string, then no options are passed "
13282 "(all options default to whatever the filesystem uses)."
13283 msgstr ""
13284
13285 #. type: =head2
13286 #: ../fish/guestfish-actions.pod:3518
13287 msgid "mount-ro"
13288 msgstr ""
13289
13290 #. type: verbatim
13291 #: ../fish/guestfish-actions.pod:3520
13292 #, no-wrap
13293 msgid ""
13294 " mount-ro device mountpoint\n"
13295 "\n"
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3522
13300 msgid ""
13301 "This is the same as the L</mount> command, but it mounts the filesystem with "
13302 "the read-only (I<-o ro>) flag."
13303 msgstr ""
13304
13305 #. type: =head2
13306 #: ../fish/guestfish-actions.pod:3525
13307 msgid "mount-vfs"
13308 msgstr ""
13309
13310 #. type: verbatim
13311 #: ../fish/guestfish-actions.pod:3527
13312 #, no-wrap
13313 msgid ""
13314 " mount-vfs options vfstype device mountpoint\n"
13315 "\n"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3529
13320 msgid ""
13321 "This is the same as the L</mount> command, but it allows you to set both the "
13322 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13323 msgstr ""
13324
13325 #. type: =head2
13326 #: ../fish/guestfish-actions.pod:3533
13327 msgid "mountpoints"
13328 msgstr ""
13329
13330 #. type: verbatim
13331 #: ../fish/guestfish-actions.pod:3535
13332 #, no-wrap
13333 msgid ""
13334 " mountpoints\n"
13335 "\n"
13336 msgstr ""
13337
13338 #. type: textblock
13339 #: ../fish/guestfish-actions.pod:3537
13340 msgid ""
13341 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13342 "This one returns a hash table (map) of device name to directory where the "
13343 "device is mounted."
13344 msgstr ""
13345
13346 #. type: =head2
13347 #: ../fish/guestfish-actions.pod:3541
13348 msgid "mounts"
13349 msgstr ""
13350
13351 #. type: verbatim
13352 #: ../fish/guestfish-actions.pod:3543
13353 #, no-wrap
13354 msgid ""
13355 " mounts\n"
13356 "\n"
13357 msgstr ""
13358
13359 #. type: textblock
13360 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
13361 msgid ""
13362 "This returns the list of currently mounted filesystems.  It returns the list "
13363 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
13368 msgid "Some internal mounts are not shown."
13369 msgstr ""
13370
13371 #. type: textblock
13372 #: ../fish/guestfish-actions.pod:3550
13373 msgid "See also: L</mountpoints>"
13374 msgstr ""
13375
13376 #. type: =head2
13377 #: ../fish/guestfish-actions.pod:3552
13378 msgid "mv"
13379 msgstr ""
13380
13381 #. type: verbatim
13382 #: ../fish/guestfish-actions.pod:3554
13383 #, no-wrap
13384 msgid ""
13385 " mv src dest\n"
13386 "\n"
13387 msgstr ""
13388
13389 #. type: textblock
13390 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
13391 msgid ""
13392 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13393 "destination filename or destination directory."
13394 msgstr ""
13395
13396 #. type: =head2
13397 #: ../fish/guestfish-actions.pod:3559
13398 msgid "ntfs-3g-probe"
13399 msgstr ""
13400
13401 #. type: verbatim
13402 #: ../fish/guestfish-actions.pod:3561
13403 #, no-wrap
13404 msgid ""
13405 " ntfs-3g-probe true|false device\n"
13406 "\n"
13407 msgstr ""
13408
13409 #. type: textblock
13410 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
13411 msgid ""
13412 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13413 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13414 "write, and some cannot be mounted at all)."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
13419 msgid ""
13420 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13421 "can be mounted read-write.  Set it to false if you want to test if the "
13422 "volume can be mounted read-only."
13423 msgstr ""
13424
13425 #. type: textblock
13426 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
13427 msgid ""
13428 "The return value is an integer which C<0> if the operation would succeed, or "
13429 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13430 msgstr ""
13431
13432 #. type: =head2
13433 #: ../fish/guestfish-actions.pod:3575
13434 msgid "ntfsresize"
13435 msgstr ""
13436
13437 #. type: verbatim
13438 #: ../fish/guestfish-actions.pod:3577
13439 #, no-wrap
13440 msgid ""
13441 " ntfsresize device\n"
13442 "\n"
13443 msgstr ""
13444
13445 #. type: textblock
13446 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
13447 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
13448 msgid ""
13449 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13450 "size of the underlying device."
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
13455 msgid ""
13456 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13457 "consistency check (for safety).  You have to boot into Windows to perform "
13458 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13459 "resize filesystems which have been marked in this way.  So in effect it is "
13460 "not possible to call ntfsresize multiple times on a single filesystem "
13461 "without booting into Windows between each resize."
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
13466 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
13467 msgid "See also L<ntfsresize(8)>."
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
13472 msgid ""
13473 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13474 "call instead."
13475 msgstr ""
13476
13477 #. type: =head2
13478 #: ../fish/guestfish-actions.pod:3599
13479 msgid "ntfsresize-opts"
13480 msgstr ""
13481
13482 #. type: verbatim
13483 #: ../fish/guestfish-actions.pod:3601
13484 #, no-wrap
13485 msgid ""
13486 " ntfsresize-opts device [size:N] [force:true|false]\n"
13487 "\n"
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
13492 msgid ""
13493 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13494 "resized to fit the container (eg. partition)."
13495 msgstr ""
13496
13497 #. type: =item
13498 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
13499 msgid "C<force>"
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
13504 msgid ""
13505 "If this option is true, then force the resize of the filesystem even if the "
13506 "filesystem is marked as requiring a consistency check."
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3620
13511 msgid ""
13512 "After the resize operation, the filesystem is always marked as requiring a "
13513 "consistency check (for safety).  You have to boot into Windows to perform "
13514 "this check and clear this condition.  If you I<don't> set the C<force> "
13515 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13516 "a single filesystem without booting into Windows between each resize."
13517 msgstr ""
13518
13519 #. type: =head2
13520 #: ../fish/guestfish-actions.pod:3633
13521 msgid "ntfsresize-size"
13522 msgstr ""
13523
13524 #. type: verbatim
13525 #: ../fish/guestfish-actions.pod:3635
13526 #, no-wrap
13527 msgid ""
13528 " ntfsresize-size device size\n"
13529 "\n"
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:3637
13534 msgid ""
13535 "This command is the same as L</ntfsresize> except that it allows you to "
13536 "specify the new size (in bytes) explicitly."
13537 msgstr ""
13538
13539 #. type: =head2
13540 #: ../fish/guestfish-actions.pod:3647
13541 msgid "part-add"
13542 msgstr ""
13543
13544 #. type: verbatim
13545 #: ../fish/guestfish-actions.pod:3649
13546 #, no-wrap
13547 msgid ""
13548 " part-add device prlogex startsect endsect\n"
13549 "\n"
13550 msgstr ""
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3651
13554 msgid ""
13555 "This command adds a partition to C<device>.  If there is no partition table "
13556 "on the device, call L</part-init> first."
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
13561 msgid ""
13562 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13563 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13564 "C<logical>) and C<e> (or C<extended>) partition types."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
13569 msgid ""
13570 "C<startsect> and C<endsect> are the start and end of the partition in "
13571 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13572 "from the end of the disk (C<-1> is the last sector)."
13573 msgstr ""
13574
13575 #. type: textblock
13576 #: ../fish/guestfish-actions.pod:3663
13577 msgid ""
13578 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13579 "part-disk> to do that."
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:3666
13584 msgid "part-del"
13585 msgstr ""
13586
13587 #. type: verbatim
13588 #: ../fish/guestfish-actions.pod:3668
13589 #, no-wrap
13590 msgid ""
13591 " part-del device partnum\n"
13592 "\n"
13593 msgstr ""
13594
13595 #. type: textblock
13596 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
13597 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
13602 msgid ""
13603 "Note that in the case of MBR partitioning, deleting an extended partition "
13604 "also deletes any logical partitions it contains."
13605 msgstr ""
13606
13607 #. type: =head2
13608 #: ../fish/guestfish-actions.pod:3676
13609 msgid "part-disk"
13610 msgstr ""
13611
13612 #. type: verbatim
13613 #: ../fish/guestfish-actions.pod:3678
13614 #, no-wrap
13615 msgid ""
13616 " part-disk device parttype\n"
13617 "\n"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:3680
13622 msgid ""
13623 "This command is simply a combination of L</part-init> followed by L</part-"
13624 "add> to create a single primary partition covering the whole disk."
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3684
13629 msgid ""
13630 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13631 "possible values are described in L</part-init>."
13632 msgstr ""
13633
13634 #. type: =head2
13635 #: ../fish/guestfish-actions.pod:3687
13636 msgid "part-get-bootable"
13637 msgstr ""
13638
13639 #. type: verbatim
13640 #: ../fish/guestfish-actions.pod:3689
13641 #, no-wrap
13642 msgid ""
13643 " part-get-bootable device partnum\n"
13644 "\n"
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
13649 msgid ""
13650 "This command returns true if the partition C<partnum> on C<device> has the "
13651 "bootable flag set."
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3694
13656 msgid "See also L</part-set-bootable>."
13657 msgstr ""
13658
13659 #. type: =head2
13660 #: ../fish/guestfish-actions.pod:3696
13661 msgid "part-get-mbr-id"
13662 msgstr ""
13663
13664 #. type: verbatim
13665 #: ../fish/guestfish-actions.pod:3698
13666 #, no-wrap
13667 msgid ""
13668 " part-get-mbr-id device partnum\n"
13669 "\n"
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
13674 msgid ""
13675 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13676 "partition C<partnum>."
13677 msgstr ""
13678
13679 #. type: textblock
13680 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
13681 msgid ""
13682 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13683 "undefined results for other partition table types (see L</part-get-"
13684 "parttype>)."
13685 msgstr ""
13686
13687 #. type: =head2
13688 #: ../fish/guestfish-actions.pod:3707
13689 msgid "part-get-parttype"
13690 msgstr ""
13691
13692 #. type: verbatim
13693 #: ../fish/guestfish-actions.pod:3709
13694 #, no-wrap
13695 msgid ""
13696 " part-get-parttype device\n"
13697 "\n"
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
13702 msgid ""
13703 "This command examines the partition table on C<device> and returns the "
13704 "partition table type (format) being used."
13705 msgstr ""
13706
13707 #. type: textblock
13708 #: ../fish/guestfish-actions.pod:3714
13709 msgid ""
13710 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13711 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13712 "possible, although unusual.  See L</part-init> for a full list."
13713 msgstr ""
13714
13715 #. type: =head2
13716 #: ../fish/guestfish-actions.pod:3719
13717 msgid "part-init"
13718 msgstr ""
13719
13720 #. type: verbatim
13721 #: ../fish/guestfish-actions.pod:3721
13722 #, no-wrap
13723 msgid ""
13724 " part-init device parttype\n"
13725 "\n"
13726 msgstr ""
13727
13728 #. type: textblock
13729 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
13730 msgid ""
13731 "This creates an empty partition table on C<device> of one of the partition "
13732 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13733 "(for large disks)."
13734 msgstr ""
13735
13736 #. type: textblock
13737 #: ../fish/guestfish-actions.pod:3727
13738 msgid ""
13739 "Initially there are no partitions.  Following this, you should call L</part-"
13740 "add> for each partition required."
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
13745 msgid "Possible values for C<parttype> are:"
13746 msgstr ""
13747
13748 #. type: =item
13749 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
13750 msgid "B<efi>"
13751 msgstr ""
13752
13753 #. type: =item
13754 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
13755 msgid "B<gpt>"
13756 msgstr ""
13757
13758 #. type: textblock
13759 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
13760 msgid "Intel EFI / GPT partition table."
13761 msgstr ""
13762
13763 #. type: textblock
13764 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
13765 msgid ""
13766 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13767 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13768 "the C<mbr> format."
13769 msgstr ""
13770
13771 #. type: =item
13772 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
13773 msgid "B<mbr>"
13774 msgstr ""
13775
13776 #. type: =item
13777 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
13778 msgid "B<msdos>"
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
13783 msgid ""
13784 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13785 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13786 "TB.  For large disks we recommend using C<gpt>."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
13791 msgid ""
13792 "Other partition table types that may work but are not supported include:"
13793 msgstr ""
13794
13795 #. type: =item
13796 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
13797 msgid "B<aix>"
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
13802 msgid "AIX disk labels."
13803 msgstr ""
13804
13805 #. type: =item
13806 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
13807 msgid "B<amiga>"
13808 msgstr ""
13809
13810 #. type: =item
13811 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
13812 msgid "B<rdb>"
13813 msgstr ""
13814
13815 #. type: textblock
13816 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
13817 msgid "Amiga \"Rigid Disk Block\" format."
13818 msgstr ""
13819
13820 #. type: =item
13821 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
13822 msgid "B<bsd>"
13823 msgstr ""
13824
13825 #. type: textblock
13826 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
13827 msgid "BSD disk labels."
13828 msgstr ""
13829
13830 #. type: =item
13831 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
13832 msgid "B<dasd>"
13833 msgstr ""
13834
13835 #. type: textblock
13836 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
13837 msgid "DASD, used on IBM mainframes."
13838 msgstr ""
13839
13840 #. type: =item
13841 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
13842 msgid "B<dvh>"
13843 msgstr ""
13844
13845 #. type: textblock
13846 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
13847 msgid "MIPS/SGI volumes."
13848 msgstr ""
13849
13850 #. type: =item
13851 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
13852 msgid "B<mac>"
13853 msgstr ""
13854
13855 #. type: textblock
13856 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
13857 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13858 msgstr ""
13859
13860 #. type: =item
13861 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
13862 msgid "B<pc98>"
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
13867 msgid "NEC PC-98 format, common in Japan apparently."
13868 msgstr ""
13869
13870 #. type: =item
13871 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
13872 msgid "B<sun>"
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
13877 msgid "Sun disk labels."
13878 msgstr ""
13879
13880 #. type: =head2
13881 #: ../fish/guestfish-actions.pod:3796
13882 msgid "part-list"
13883 msgstr ""
13884
13885 #. type: verbatim
13886 #: ../fish/guestfish-actions.pod:3798
13887 #, no-wrap
13888 msgid ""
13889 " part-list device\n"
13890 "\n"
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
13895 msgid ""
13896 "This command parses the partition table on C<device> and returns the list of "
13897 "partitions found."
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
13902 msgid "The fields in the returned structure are:"
13903 msgstr ""
13904
13905 #. type: =item
13906 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
13907 msgid "B<part_num>"
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
13912 msgid "Partition number, counting from 1."
13913 msgstr ""
13914
13915 #. type: =item
13916 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
13917 msgid "B<part_start>"
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:3813
13922 msgid ""
13923 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13924 "the device's sector size, see L</blockdev-getss>."
13925 msgstr ""
13926
13927 #. type: =item
13928 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
13929 msgid "B<part_end>"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
13934 msgid "End of the partition in bytes."
13935 msgstr ""
13936
13937 #. type: =item
13938 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
13939 msgid "B<part_size>"
13940 msgstr ""
13941
13942 #. type: textblock
13943 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
13944 msgid "Size of the partition in bytes."
13945 msgstr ""
13946
13947 #. type: =head2
13948 #: ../fish/guestfish-actions.pod:3826
13949 msgid "part-set-bootable"
13950 msgstr ""
13951
13952 #. type: verbatim
13953 #: ../fish/guestfish-actions.pod:3828
13954 #, no-wrap
13955 msgid ""
13956 " part-set-bootable device partnum true|false\n"
13957 "\n"
13958 msgstr ""
13959
13960 #. type: textblock
13961 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
13962 msgid ""
13963 "This sets the bootable flag on partition numbered C<partnum> on device "
13964 "C<device>.  Note that partitions are numbered from 1."
13965 msgstr ""
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
13969 msgid ""
13970 "The bootable flag is used by some operating systems (notably Windows) to "
13971 "determine which partition to boot from.  It is by no means universally "
13972 "recognized."
13973 msgstr ""
13974
13975 #. type: =head2
13976 #: ../fish/guestfish-actions.pod:3837
13977 msgid "part-set-mbr-id"
13978 msgstr ""
13979
13980 #. type: verbatim
13981 #: ../fish/guestfish-actions.pod:3839
13982 #, no-wrap
13983 msgid ""
13984 " part-set-mbr-id device partnum idbyte\n"
13985 "\n"
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
13990 msgid ""
13991 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13992 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13993 "documentation are in fact hexadecimal numbers, but usually documented "
13994 "without any leading \"0x\" which might be confusing."
13995 msgstr ""
13996
13997 #. type: =head2
13998 #: ../fish/guestfish-actions.pod:3851
13999 msgid "part-set-name"
14000 msgstr ""
14001
14002 #. type: verbatim
14003 #: ../fish/guestfish-actions.pod:3853
14004 #, no-wrap
14005 msgid ""
14006 " part-set-name device partnum name\n"
14007 "\n"
14008 msgstr ""
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14012 msgid ""
14013 "This sets the partition name on partition numbered C<partnum> on device "
14014 "C<device>.  Note that partitions are numbered from 1."
14015 msgstr ""
14016
14017 #. type: textblock
14018 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14019 msgid ""
14020 "The partition name can only be set on certain types of partition table.  "
14021 "This works on C<gpt> but not on C<mbr> partitions."
14022 msgstr ""
14023
14024 #. type: =head2
14025 #: ../fish/guestfish-actions.pod:3861
14026 msgid "part-to-dev"
14027 msgstr ""
14028
14029 #. type: verbatim
14030 #: ../fish/guestfish-actions.pod:3863
14031 #, no-wrap
14032 msgid ""
14033 " part-to-dev partition\n"
14034 "\n"
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14039 msgid ""
14040 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14041 "partition number, returning the device name (eg. \"/dev/sdb\")."
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14046 msgid ""
14047 "The named partition must exist, for example as a string returned from L</"
14048 "list-partitions>."
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:3872
14053 msgid "See also L</part-to-partnum>."
14054 msgstr ""
14055
14056 #. type: =head2
14057 #: ../fish/guestfish-actions.pod:3874
14058 msgid "part-to-partnum"
14059 msgstr ""
14060
14061 #. type: verbatim
14062 #: ../fish/guestfish-actions.pod:3876
14063 #, no-wrap
14064 msgid ""
14065 " part-to-partnum partition\n"
14066 "\n"
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14071 msgid ""
14072 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14073 "partition number (eg. C<1>)."
14074 msgstr ""
14075
14076 #. type: textblock
14077 #: ../fish/guestfish-actions.pod:3884
14078 msgid "See also L</part-to-dev>."
14079 msgstr ""
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:3886
14083 msgid "ping-daemon"
14084 msgstr ""
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:3888
14088 #, no-wrap
14089 msgid ""
14090 " ping-daemon\n"
14091 "\n"
14092 msgstr ""
14093
14094 #. type: textblock
14095 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14096 msgid ""
14097 "This is a test probe into the guestfs daemon running inside the qemu "
14098 "subprocess.  Calling this function checks that the daemon responds to the "
14099 "ping message, without affecting the daemon or attached block device(s) in "
14100 "any other way."
14101 msgstr ""
14102
14103 #. type: =head2
14104 #: ../fish/guestfish-actions.pod:3895
14105 msgid "pread"
14106 msgstr ""
14107
14108 #. type: verbatim
14109 #: ../fish/guestfish-actions.pod:3897
14110 #, no-wrap
14111 msgid ""
14112 " pread path count offset\n"
14113 "\n"
14114 msgstr ""
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14118 msgid ""
14119 "This command lets you read part of a file.  It reads C<count> bytes of the "
14120 "file, starting at C<offset>, from file C<path>."
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
14125 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14126 msgid ""
14127 "This may read fewer bytes than requested.  For further details see the "
14128 "L<pread(2)> system call."
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:3905
14133 msgid "See also L</pwrite>, L</pread-device>."
14134 msgstr ""
14135
14136 #. type: =head2
14137 #: ../fish/guestfish-actions.pod:3910
14138 msgid "pread-device"
14139 msgstr ""
14140
14141 #. type: verbatim
14142 #: ../fish/guestfish-actions.pod:3912
14143 #, no-wrap
14144 msgid ""
14145 " pread-device device count offset\n"
14146 "\n"
14147 msgstr ""
14148
14149 #. type: textblock
14150 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14151 msgid ""
14152 "This command lets you read part of a file.  It reads C<count> bytes of "
14153 "C<device>, starting at C<offset>."
14154 msgstr ""
14155
14156 #. type: textblock
14157 #: ../fish/guestfish-actions.pod:3920
14158 msgid "See also L</pread>."
14159 msgstr ""
14160
14161 #. type: =head2
14162 #: ../fish/guestfish-actions.pod:3925
14163 msgid "pvcreate"
14164 msgstr ""
14165
14166 #. type: verbatim
14167 #: ../fish/guestfish-actions.pod:3927
14168 #, no-wrap
14169 msgid ""
14170 " pvcreate device\n"
14171 "\n"
14172 msgstr ""
14173
14174 #. type: textblock
14175 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14176 msgid ""
14177 "This creates an LVM physical volume on the named C<device>, where C<device> "
14178 "should usually be a partition name such as C</dev/sda1>."
14179 msgstr ""
14180
14181 #. type: =head2
14182 #: ../fish/guestfish-actions.pod:3933
14183 msgid "pvremove"
14184 msgstr ""
14185
14186 #. type: verbatim
14187 #: ../fish/guestfish-actions.pod:3935
14188 #, no-wrap
14189 msgid ""
14190 " pvremove device\n"
14191 "\n"
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14196 msgid ""
14197 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14198 "it."
14199 msgstr ""
14200
14201 #. type: textblock
14202 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14203 msgid ""
14204 "The implementation uses the C<pvremove> command which refuses to wipe "
14205 "physical volumes that contain any volume groups, so you have to remove those "
14206 "first."
14207 msgstr ""
14208
14209 #. type: =head2
14210 #: ../fish/guestfish-actions.pod:3944
14211 msgid "pvresize"
14212 msgstr ""
14213
14214 #. type: verbatim
14215 #: ../fish/guestfish-actions.pod:3946
14216 #, no-wrap
14217 msgid ""
14218 " pvresize device\n"
14219 "\n"
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14224 msgid ""
14225 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14226 "the new size of the underlying device."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:3951
14231 msgid "pvresize-size"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:3953
14236 #, no-wrap
14237 msgid ""
14238 " pvresize-size device size\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:3955
14244 msgid ""
14245 "This command is the same as L</pvresize> except that it allows you to "
14246 "specify the new size (in bytes) explicitly."
14247 msgstr ""
14248
14249 #. type: =head2
14250 #: ../fish/guestfish-actions.pod:3958
14251 msgid "pvs"
14252 msgstr ""
14253
14254 #. type: verbatim
14255 #: ../fish/guestfish-actions.pod:3960
14256 #, no-wrap
14257 msgid ""
14258 " pvs\n"
14259 "\n"
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
14264 msgid ""
14265 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14266 "(8)> command."
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
14271 msgid ""
14272 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14273 "sda2>)."
14274 msgstr ""
14275
14276 #. type: textblock
14277 #: ../fish/guestfish-actions.pod:3968
14278 msgid "See also L</pvs-full>."
14279 msgstr ""
14280
14281 #. type: =head2
14282 #: ../fish/guestfish-actions.pod:3970
14283 msgid "pvs-full"
14284 msgstr ""
14285
14286 #. type: verbatim
14287 #: ../fish/guestfish-actions.pod:3972
14288 #, no-wrap
14289 msgid ""
14290 " pvs-full\n"
14291 "\n"
14292 msgstr ""
14293
14294 #. type: textblock
14295 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
14296 msgid ""
14297 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14298 "(8)> command.  The \"full\" version includes all fields."
14299 msgstr ""
14300
14301 #. type: =head2
14302 #: ../fish/guestfish-actions.pod:3977
14303 msgid "pvuuid"
14304 msgstr ""
14305
14306 #. type: verbatim
14307 #: ../fish/guestfish-actions.pod:3979
14308 #, no-wrap
14309 msgid ""
14310 " pvuuid device\n"
14311 "\n"
14312 msgstr ""
14313
14314 #. type: textblock
14315 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
14316 msgid "This command returns the UUID of the LVM PV C<device>."
14317 msgstr ""
14318
14319 #. type: =head2
14320 #: ../fish/guestfish-actions.pod:3983
14321 msgid "pwrite"
14322 msgstr ""
14323
14324 #. type: verbatim
14325 #: ../fish/guestfish-actions.pod:3985
14326 #, no-wrap
14327 msgid ""
14328 " pwrite path content offset\n"
14329 "\n"
14330 msgstr ""
14331
14332 #. type: textblock
14333 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
14334 msgid ""
14335 "This command writes to part of a file.  It writes the data buffer C<content> "
14336 "to the file C<path> starting at offset C<offset>."
14337 msgstr ""
14338
14339 #. type: textblock
14340 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
14341 msgid ""
14342 "This command implements the L<pwrite(2)> system call, and like that system "
14343 "call it may not write the full data requested.  The return value is the "
14344 "number of bytes that were actually written to the file.  This could even be "
14345 "0, although short writes are unlikely for regular files in ordinary "
14346 "circumstances."
14347 msgstr ""
14348
14349 #. type: textblock
14350 #: ../fish/guestfish-actions.pod:3996
14351 msgid "See also L</pread>, L</pwrite-device>."
14352 msgstr ""
14353
14354 #. type: =head2
14355 #: ../fish/guestfish-actions.pod:4001
14356 msgid "pwrite-device"
14357 msgstr ""
14358
14359 #. type: verbatim
14360 #: ../fish/guestfish-actions.pod:4003
14361 #, no-wrap
14362 msgid ""
14363 " pwrite-device device content offset\n"
14364 "\n"
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
14369 msgid ""
14370 "This command writes to part of a device.  It writes the data buffer "
14371 "C<content> to C<device> starting at offset C<offset>."
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
14376 msgid ""
14377 "This command implements the L<pwrite(2)> system call, and like that system "
14378 "call it may not write the full data requested (although short writes to disk "
14379 "devices and partitions are probably impossible with standard Linux kernels)."
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../fish/guestfish-actions.pod:4013
14384 msgid "See also L</pwrite>."
14385 msgstr ""
14386
14387 #. type: =head2
14388 #: ../fish/guestfish-actions.pod:4018
14389 msgid "read-file"
14390 msgstr ""
14391
14392 #. type: verbatim
14393 #: ../fish/guestfish-actions.pod:4020
14394 #, no-wrap
14395 msgid ""
14396 " read-file path\n"
14397 "\n"
14398 msgstr ""
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
14402 msgid "This calls returns the contents of the file C<path> as a buffer."
14403 msgstr ""
14404
14405 #. type: textblock
14406 #: ../fish/guestfish-actions.pod:4025
14407 msgid ""
14408 "Unlike L</cat>, this function can correctly handle files that contain "
14409 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14410 "is limited in the total size of file that can be handled."
14411 msgstr ""
14412
14413 #. type: =head2
14414 #: ../fish/guestfish-actions.pod:4033
14415 msgid "read-lines"
14416 msgstr ""
14417
14418 #. type: verbatim
14419 #: ../fish/guestfish-actions.pod:4035
14420 #, no-wrap
14421 msgid ""
14422 " read-lines path\n"
14423 "\n"
14424 msgstr ""
14425
14426 #. type: textblock
14427 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
14428 msgid ""
14429 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14430 "C<CRLF> character sequences are I<not> returned."
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:4042
14435 msgid ""
14436 "Note that this function cannot correctly handle binary files (specifically, "
14437 "files containing C<\\0> character which is treated as end of line).  For "
14438 "those you need to use the L</read-file> function which has a more complex "
14439 "interface."
14440 msgstr ""
14441
14442 #. type: =head2
14443 #: ../fish/guestfish-actions.pod:4047
14444 msgid "readdir"
14445 msgstr ""
14446
14447 #. type: verbatim
14448 #: ../fish/guestfish-actions.pod:4049
14449 #, no-wrap
14450 msgid ""
14451 " readdir dir\n"
14452 "\n"
14453 msgstr ""
14454
14455 #. type: textblock
14456 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
14457 msgid "This returns the list of directory entries in directory C<dir>."
14458 msgstr ""
14459
14460 #. type: textblock
14461 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
14462 msgid ""
14463 "All entries in the directory are returned, including C<.> and C<..>.  The "
14464 "entries are I<not> sorted, but returned in the same order as the underlying "
14465 "filesystem."
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
14470 msgid ""
14471 "Also this call returns basic file type information about each file.  The "
14472 "C<ftyp> field will contain one of the following characters:"
14473 msgstr ""
14474
14475 #. type: =item
14476 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
14477 msgid "'b'"
14478 msgstr ""
14479
14480 #. type: textblock
14481 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
14482 msgid "Block special"
14483 msgstr ""
14484
14485 #. type: =item
14486 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
14487 msgid "'c'"
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
14492 msgid "Char special"
14493 msgstr ""
14494
14495 #. type: =item
14496 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
14497 msgid "'d'"
14498 msgstr ""
14499
14500 #. type: textblock
14501 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
14502 msgid "Directory"
14503 msgstr ""
14504
14505 #. type: =item
14506 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
14507 msgid "'f'"
14508 msgstr ""
14509
14510 #. type: textblock
14511 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
14512 msgid "FIFO (named pipe)"
14513 msgstr ""
14514
14515 #. type: =item
14516 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
14517 msgid "'l'"
14518 msgstr ""
14519
14520 #. type: textblock
14521 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
14522 msgid "Symbolic link"
14523 msgstr ""
14524
14525 #. type: =item
14526 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
14527 msgid "'r'"
14528 msgstr ""
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
14532 msgid "Regular file"
14533 msgstr ""
14534
14535 #. type: =item
14536 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
14537 msgid "'s'"
14538 msgstr ""
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
14542 msgid "Socket"
14543 msgstr ""
14544
14545 #. type: =item
14546 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
14547 msgid "'u'"
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
14552 msgid "Unknown file type"
14553 msgstr ""
14554
14555 #. type: =item
14556 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
14557 msgid "'?'"
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
14562 msgid ""
14563 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4101
14568 msgid ""
14569 "This function is primarily intended for use by programs.  To get a simple "
14570 "list of names, use L</ls>.  To get a printable directory for human "
14571 "consumption, use L</ll>."
14572 msgstr ""
14573
14574 #. type: =head2
14575 #: ../fish/guestfish-actions.pod:4105
14576 msgid "readlink"
14577 msgstr ""
14578
14579 #. type: verbatim
14580 #: ../fish/guestfish-actions.pod:4107
14581 #, no-wrap
14582 msgid ""
14583 " readlink path\n"
14584 "\n"
14585 msgstr ""
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
14589 msgid "This command reads the target of a symbolic link."
14590 msgstr ""
14591
14592 #. type: =head2
14593 #: ../fish/guestfish-actions.pod:4111
14594 msgid "readlinklist"
14595 msgstr ""
14596
14597 #. type: verbatim
14598 #: ../fish/guestfish-actions.pod:4113
14599 #, no-wrap
14600 msgid ""
14601 " readlinklist path 'names ...'\n"
14602 "\n"
14603 msgstr ""
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
14607 msgid ""
14608 "This call allows you to do a C<readlink> operation on multiple files, where "
14609 "all files are in the directory C<path>.  C<names> is the list of files from "
14610 "this directory."
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
14615 msgid ""
14616 "On return you get a list of strings, with a one-to-one correspondence to the "
14617 "C<names> list.  Each string is the value of the symbolic link."
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
14622 msgid ""
14623 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14624 "result string is the empty string C<\"\">.  However the whole operation is "
14625 "completed even if there were C<readlink(2)> errors, and so you can call this "
14626 "function with names where you don't know if they are symbolic links already "
14627 "(albeit slightly less efficient)."
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
14632 msgid ""
14633 "This call is intended for programs that want to efficiently list a directory "
14634 "contents without making many round-trips.  Very long directory listings "
14635 "might cause the protocol message size to be exceeded, causing this call to "
14636 "fail.  The caller must split up such requests into smaller groups of names."
14637 msgstr ""
14638
14639 #. type: =head2
14640 #: ../fish/guestfish-actions.pod:4137
14641 msgid "realpath"
14642 msgstr ""
14643
14644 #. type: verbatim
14645 #: ../fish/guestfish-actions.pod:4139
14646 #, no-wrap
14647 msgid ""
14648 " realpath path\n"
14649 "\n"
14650 msgstr ""
14651
14652 #. type: textblock
14653 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
14654 msgid ""
14655 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14656 "has no C<.>, C<..> or symbolic link path elements."
14657 msgstr ""
14658
14659 #. type: =head2
14660 #: ../fish/guestfish-actions.pod:4144
14661 msgid "removexattr"
14662 msgstr ""
14663
14664 #. type: verbatim
14665 #: ../fish/guestfish-actions.pod:4146
14666 #, no-wrap
14667 msgid ""
14668 " removexattr xattr path\n"
14669 "\n"
14670 msgstr ""
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
14674 msgid ""
14675 "This call removes the extended attribute named C<xattr> of the file C<path>."
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:4151
14680 msgid "See also: L</lremovexattr>, L<attr(5)>."
14681 msgstr ""
14682
14683 #. type: =head2
14684 #: ../fish/guestfish-actions.pod:4153
14685 msgid "resize2fs"
14686 msgstr ""
14687
14688 #. type: verbatim
14689 #: ../fish/guestfish-actions.pod:4155
14690 #, no-wrap
14691 msgid ""
14692 " resize2fs device\n"
14693 "\n"
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
14698 msgid ""
14699 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14700 "underlying device."
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4160
14705 msgid ""
14706 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14707 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14708 "gives an error about this and sometimes not.  In any case, it is always safe "
14709 "to call L</e2fsck-f> before calling this function."
14710 msgstr ""
14711
14712 #. type: =head2
14713 #: ../fish/guestfish-actions.pod:4166
14714 msgid "resize2fs-M"
14715 msgstr ""
14716
14717 #. type: verbatim
14718 #: ../fish/guestfish-actions.pod:4168
14719 #, no-wrap
14720 msgid ""
14721 " resize2fs-M device\n"
14722 "\n"
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../fish/guestfish-actions.pod:4170
14727 msgid ""
14728 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14729 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14730 "command."
14731 msgstr ""
14732
14733 #. type: textblock
14734 #: ../fish/guestfish-actions.pod:4174
14735 msgid ""
14736 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14737 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14738 "multiplied together, give the resulting size of the minimal filesystem in "
14739 "bytes."
14740 msgstr ""
14741
14742 #. type: =head2
14743 #: ../fish/guestfish-actions.pod:4179
14744 msgid "resize2fs-size"
14745 msgstr ""
14746
14747 #. type: verbatim
14748 #: ../fish/guestfish-actions.pod:4181
14749 #, no-wrap
14750 msgid ""
14751 " resize2fs-size device size\n"
14752 "\n"
14753 msgstr ""
14754
14755 #. type: textblock
14756 #: ../fish/guestfish-actions.pod:4183
14757 msgid ""
14758 "This command is the same as L</resize2fs> except that it allows you to "
14759 "specify the new size (in bytes) explicitly."
14760 msgstr ""
14761
14762 #. type: =head2
14763 #: ../fish/guestfish-actions.pod:4186
14764 msgid "rm"
14765 msgstr ""
14766
14767 #. type: verbatim
14768 #: ../fish/guestfish-actions.pod:4188
14769 #, no-wrap
14770 msgid ""
14771 " rm path\n"
14772 "\n"
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
14777 msgid "Remove the single file C<path>."
14778 msgstr ""
14779
14780 #. type: =head2
14781 #: ../fish/guestfish-actions.pod:4192
14782 msgid "rm-rf"
14783 msgstr ""
14784
14785 #. type: verbatim
14786 #: ../fish/guestfish-actions.pod:4194
14787 #, no-wrap
14788 msgid ""
14789 " rm-rf path\n"
14790 "\n"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
14795 msgid ""
14796 "Remove the file or directory C<path>, recursively removing the contents if "
14797 "its a directory.  This is like the C<rm -rf> shell command."
14798 msgstr ""
14799
14800 #. type: =head2
14801 #: ../fish/guestfish-actions.pod:4200
14802 msgid "rmdir"
14803 msgstr ""
14804
14805 #. type: verbatim
14806 #: ../fish/guestfish-actions.pod:4202
14807 #, no-wrap
14808 msgid ""
14809 " rmdir path\n"
14810 "\n"
14811 msgstr ""
14812
14813 #. type: textblock
14814 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
14815 msgid "Remove the single directory C<path>."
14816 msgstr ""
14817
14818 #. type: =head2
14819 #: ../fish/guestfish-actions.pod:4206
14820 msgid "rmmountpoint"
14821 msgstr ""
14822
14823 #. type: verbatim
14824 #: ../fish/guestfish-actions.pod:4208
14825 #, no-wrap
14826 msgid ""
14827 " rmmountpoint exemptpath\n"
14828 "\n"
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../fish/guestfish-actions.pod:4210
14833 msgid ""
14834 "This calls removes a mountpoint that was previously created with L</"
14835 "mkmountpoint>.  See L</mkmountpoint> for full details."
14836 msgstr ""
14837
14838 #. type: =head2
14839 #: ../fish/guestfish-actions.pod:4214
14840 msgid "scrub-device"
14841 msgstr ""
14842
14843 #. type: verbatim
14844 #: ../fish/guestfish-actions.pod:4216
14845 #, no-wrap
14846 msgid ""
14847 " scrub-device device\n"
14848 "\n"
14849 msgstr ""
14850
14851 #. type: textblock
14852 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
14853 msgid ""
14854 "This command writes patterns over C<device> to make data retrieval more "
14855 "difficult."
14856 msgstr ""
14857
14858 #. type: textblock
14859 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
14860 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
14861 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
14862 msgid ""
14863 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14864 "more details."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-actions.pod:4224
14869 msgid "scrub-file"
14870 msgstr ""
14871
14872 #. type: verbatim
14873 #: ../fish/guestfish-actions.pod:4226
14874 #, no-wrap
14875 msgid ""
14876 " scrub-file file\n"
14877 "\n"
14878 msgstr ""
14879
14880 #. type: textblock
14881 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
14882 msgid ""
14883 "This command writes patterns over a file to make data retrieval more "
14884 "difficult."
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
14889 msgid "The file is I<removed> after scrubbing."
14890 msgstr ""
14891
14892 #. type: =head2
14893 #: ../fish/guestfish-actions.pod:4236
14894 msgid "scrub-freespace"
14895 msgstr ""
14896
14897 #. type: verbatim
14898 #: ../fish/guestfish-actions.pod:4238
14899 #, no-wrap
14900 msgid ""
14901 " scrub-freespace dir\n"
14902 "\n"
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4240
14907 msgid ""
14908 "This command creates the directory C<dir> and then fills it with files until "
14909 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14910 "deletes them.  The intention is to scrub any free space on the partition "
14911 "containing C<dir>."
14912 msgstr ""
14913
14914 #. type: =head2
14915 #: ../fish/guestfish-actions.pod:4249
14916 msgid "set-append"
14917 msgstr ""
14918
14919 #. type: =head2
14920 #: ../fish/guestfish-actions.pod:4251
14921 msgid "append"
14922 msgstr ""
14923
14924 #. type: verbatim
14925 #: ../fish/guestfish-actions.pod:4253
14926 #, no-wrap
14927 msgid ""
14928 " set-append append\n"
14929 "\n"
14930 msgstr ""
14931
14932 #. type: textblock
14933 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
14934 msgid ""
14935 "This function is used to add additional options to the guest kernel command "
14936 "line."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
14941 msgid ""
14942 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14943 "environment variable."
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
14948 msgid ""
14949 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14950 "(libguestfs always adds a few of its own)."
14951 msgstr ""
14952
14953 #. type: =head2
14954 #: ../fish/guestfish-actions.pod:4264
14955 msgid "set-attach-method"
14956 msgstr ""
14957
14958 #. type: =head2
14959 #: ../fish/guestfish-actions.pod:4266
14960 msgid "attach-method"
14961 msgstr ""
14962
14963 #. type: verbatim
14964 #: ../fish/guestfish-actions.pod:4268
14965 #, no-wrap
14966 msgid ""
14967 " set-attach-method attachmethod\n"
14968 "\n"
14969 msgstr ""
14970
14971 #. type: textblock
14972 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
14973 msgid ""
14974 "Set the method that libguestfs uses to connect to the back end guestfsd "
14975 "daemon.  Possible methods are:"
14976 msgstr ""
14977
14978 #. type: =item
14979 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
14980 #: ../src/guestfs.pod:2916
14981 msgid "C<appliance>"
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
14986 msgid ""
14987 "Launch an appliance and connect to it.  This is the ordinary method and the "
14988 "default."
14989 msgstr ""
14990
14991 #. type: =item
14992 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
14993 msgid "C<unix:I<path>>"
14994 msgstr ""
14995
14996 #. type: textblock
14997 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
14998 msgid "Connect to the Unix domain socket I<path>."
14999 msgstr ""
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15003 msgid ""
15004 "This method lets you connect to an existing daemon or (using virtio-serial) "
15005 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15006 "RUNNING DAEMONS>."
15007 msgstr ""
15008
15009 #. type: =head2
15010 #: ../fish/guestfish-actions.pod:4290
15011 msgid "set-autosync"
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../fish/guestfish-actions.pod:4292
15016 msgid "autosync"
15017 msgstr ""
15018
15019 #. type: verbatim
15020 #: ../fish/guestfish-actions.pod:4294
15021 #, no-wrap
15022 msgid ""
15023 " set-autosync true|false\n"
15024 "\n"
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15029 msgid ""
15030 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15031 "effort attempt to make filesystems consistent and synchronized when the "
15032 "handle is closed (also if the program exits without closing handles)."
15033 msgstr ""
15034
15035 #. type: textblock
15036 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15037 msgid ""
15038 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15039 "disabled by default)."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:4304
15044 msgid "set-direct"
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-actions.pod:4306
15049 msgid "direct"
15050 msgstr ""
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-actions.pod:4308
15054 #, no-wrap
15055 msgid ""
15056 " set-direct true|false\n"
15057 "\n"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15062 msgid ""
15063 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15064 "passed directly through to the appliance once it is launched."
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:4314
15069 msgid ""
15070 "One consequence of this is that log messages aren't caught by the library "
15071 "and handled by L</set-log-message-callback>, but go straight to stdout."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15076 msgid "You probably don't want to use this unless you know what you are doing."
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15081 msgid "The default is disabled."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:4323
15086 msgid "set-e2label"
15087 msgstr ""
15088
15089 #. type: verbatim
15090 #: ../fish/guestfish-actions.pod:4325
15091 #, no-wrap
15092 msgid ""
15093 " set-e2label device label\n"
15094 "\n"
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15099 msgid ""
15100 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15101 "C<label>.  Filesystem labels are limited to 16 characters."
15102 msgstr ""
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4331
15106 msgid ""
15107 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15108 "label on a filesystem."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4334
15113 msgid "set-e2uuid"
15114 msgstr ""
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4336
15118 #, no-wrap
15119 msgid ""
15120 " set-e2uuid device uuid\n"
15121 "\n"
15122 msgstr ""
15123
15124 #. type: textblock
15125 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15126 msgid ""
15127 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15128 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15129 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15130 msgstr ""
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-actions.pod:4343
15134 msgid ""
15135 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15136 "UUID of a filesystem."
15137 msgstr ""
15138
15139 #. type: =head2
15140 #: ../fish/guestfish-actions.pod:4346
15141 msgid "set-memsize"
15142 msgstr ""
15143
15144 #. type: =head2
15145 #: ../fish/guestfish-actions.pod:4348
15146 msgid "memsize"
15147 msgstr ""
15148
15149 #. type: verbatim
15150 #: ../fish/guestfish-actions.pod:4350
15151 #, no-wrap
15152 msgid ""
15153 " set-memsize memsize\n"
15154 "\n"
15155 msgstr ""
15156
15157 #. type: textblock
15158 #: ../fish/guestfish-actions.pod:4352
15159 msgid ""
15160 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15161 "This only has any effect if called before L</launch>."
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15166 msgid ""
15167 "You can also change this by setting the environment variable "
15168 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15169 msgstr ""
15170
15171 #. type: =head2
15172 #: ../fish/guestfish-actions.pod:4363
15173 msgid "set-network"
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:4365
15178 msgid "network"
15179 msgstr ""
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:4367
15183 #, no-wrap
15184 msgid ""
15185 " set-network true|false\n"
15186 "\n"
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15191 msgid ""
15192 "If C<network> is true, then the network is enabled in the libguestfs "
15193 "appliance.  The default is false."
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15198 msgid ""
15199 "This affects whether commands are able to access the network (see L<guestfs"
15200 "(3)/RUNNING COMMANDS>)."
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4375
15205 msgid ""
15206 "You must call this before calling L</launch>, otherwise it has no effect."
15207 msgstr ""
15208
15209 #. type: =head2
15210 #: ../fish/guestfish-actions.pod:4378
15211 msgid "set-path"
15212 msgstr ""
15213
15214 #. type: verbatim
15215 #: ../fish/guestfish-actions.pod:4382
15216 #, no-wrap
15217 msgid ""
15218 " set-path searchpath\n"
15219 "\n"
15220 msgstr ""
15221
15222 #. type: textblock
15223 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15224 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15229 msgid ""
15230 "The default is C<$libdir/guestfs> unless overridden by setting "
15231 "C<LIBGUESTFS_PATH> environment variable."
15232 msgstr ""
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15236 msgid "Setting C<path> to C<NULL> restores the default path."
15237 msgstr ""
15238
15239 #. type: =head2
15240 #: ../fish/guestfish-actions.pod:4391
15241 msgid "set-pgroup"
15242 msgstr ""
15243
15244 #. type: =head2
15245 #: ../fish/guestfish-actions.pod:4393
15246 msgid "pgroup"
15247 msgstr ""
15248
15249 #. type: verbatim
15250 #: ../fish/guestfish-actions.pod:4395
15251 #, no-wrap
15252 msgid ""
15253 " set-pgroup true|false\n"
15254 "\n"
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
15259 msgid ""
15260 "If C<pgroup> is true, child processes are placed into their own process "
15261 "group."
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
15266 msgid ""
15267 "The practical upshot of this is that signals like C<SIGINT> (from users "
15268 "pressing C<^C>) won't be received by the child process."
15269 msgstr ""
15270
15271 #. type: textblock
15272 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
15273 msgid ""
15274 "The default for this flag is false, because usually you want C<^C> to kill "
15275 "the subprocess."
15276 msgstr ""
15277
15278 #. type: =head2
15279 #: ../fish/guestfish-actions.pod:4406
15280 msgid "set-qemu"
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4408
15285 msgid "qemu"
15286 msgstr ""
15287
15288 #. type: verbatim
15289 #: ../fish/guestfish-actions.pod:4410
15290 #, no-wrap
15291 msgid ""
15292 " set-qemu qemu\n"
15293 "\n"
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
15298 msgid "Set the qemu binary that we will use."
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
15303 msgid ""
15304 "The default is chosen when the library was compiled by the configure script."
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
15309 msgid ""
15310 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15311 "variable."
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
15316 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
15321 msgid ""
15322 "Note that you should call this function as early as possible after creating "
15323 "the handle.  This is because some pre-launch operations depend on testing "
15324 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15325 "don't retest features, and so you might see inconsistent results.  Using the "
15326 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15327 "the qemu binary at the same time as the handle is created."
15328 msgstr ""
15329
15330 #. type: =head2
15331 #: ../fish/guestfish-actions.pod:4430
15332 msgid "set-recovery-proc"
15333 msgstr ""
15334
15335 #. type: =head2
15336 #: ../fish/guestfish-actions.pod:4432
15337 msgid "recovery-proc"
15338 msgstr ""
15339
15340 #. type: verbatim
15341 #: ../fish/guestfish-actions.pod:4434
15342 #, no-wrap
15343 msgid ""
15344 " set-recovery-proc true|false\n"
15345 "\n"
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4436
15350 msgid ""
15351 "If this is called with the parameter C<false> then L</launch> does not "
15352 "create a recovery process.  The purpose of the recovery process is to stop "
15353 "runaway qemu processes in the case where the main program aborts abruptly."
15354 msgstr ""
15355
15356 #. type: textblock
15357 #: ../fish/guestfish-actions.pod:4441
15358 msgid ""
15359 "This only has any effect if called before L</launch>, and the default is "
15360 "true."
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
15365 msgid ""
15366 "About the only time when you would want to disable this is if the main "
15367 "process will fork itself into the background (\"daemonize\" itself).  In "
15368 "this case the recovery process thinks that the main program has disappeared "
15369 "and so kills qemu, which is not very helpful."
15370 msgstr ""
15371
15372 #. type: =head2
15373 #: ../fish/guestfish-actions.pod:4450
15374 msgid "set-selinux"
15375 msgstr ""
15376
15377 #. type: =head2
15378 #: ../fish/guestfish-actions.pod:4452
15379 msgid "selinux"
15380 msgstr ""
15381
15382 #. type: verbatim
15383 #: ../fish/guestfish-actions.pod:4454
15384 #, no-wrap
15385 msgid ""
15386 " set-selinux true|false\n"
15387 "\n"
15388 msgstr ""
15389
15390 #. type: textblock
15391 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
15392 msgid ""
15393 "This sets the selinux flag that is passed to the appliance at boot time.  "
15394 "The default is C<selinux=0> (disabled)."
15395 msgstr ""
15396
15397 #. type: textblock
15398 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
15399 msgid ""
15400 "Note that if SELinux is enabled, it is always in Permissive mode "
15401 "(C<enforcing=0>)."
15402 msgstr ""
15403
15404 #. type: =head2
15405 #: ../fish/guestfish-actions.pod:4465
15406 msgid "set-smp"
15407 msgstr ""
15408
15409 #. type: =head2
15410 #: ../fish/guestfish-actions.pod:4467
15411 msgid "smp"
15412 msgstr ""
15413
15414 #. type: verbatim
15415 #: ../fish/guestfish-actions.pod:4469
15416 #, no-wrap
15417 msgid ""
15418 " set-smp smp\n"
15419 "\n"
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
15424 msgid ""
15425 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15426 "C<1>.  Increasing this may improve performance, though often it has no "
15427 "effect."
15428 msgstr ""
15429
15430 #. type: textblock
15431 #: ../fish/guestfish-actions.pod:4475
15432 msgid "This function must be called before L</launch>."
15433 msgstr ""
15434
15435 #. type: =head2
15436 #: ../fish/guestfish-actions.pod:4477
15437 msgid "set-trace"
15438 msgstr ""
15439
15440 #. type: =head2
15441 #: ../fish/guestfish-actions.pod:4479
15442 msgid "trace"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish-actions.pod:4481
15447 #, no-wrap
15448 msgid ""
15449 " set-trace true|false\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
15455 msgid ""
15456 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15457 "return values are traced."
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
15462 msgid ""
15463 "If you want to trace C API calls into libguestfs (and other libraries) then "
15464 "possibly a better way is to use the external ltrace(1) command."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
15469 msgid ""
15470 "Command traces are disabled unless the environment variable "
15471 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4493
15476 msgid ""
15477 "Trace messages are normally sent to C<stderr>, unless you register a "
15478 "callback to send them somewhere else (see L</set-event-callback>)."
15479 msgstr ""
15480
15481 #. type: =head2
15482 #: ../fish/guestfish-actions.pod:4497
15483 msgid "set-verbose"
15484 msgstr ""
15485
15486 #. type: =head2
15487 #: ../fish/guestfish-actions.pod:4499
15488 msgid "verbose"
15489 msgstr ""
15490
15491 #. type: verbatim
15492 #: ../fish/guestfish-actions.pod:4501
15493 #, no-wrap
15494 msgid ""
15495 " set-verbose true|false\n"
15496 "\n"
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
15501 msgid "If C<verbose> is true, this turns on verbose messages."
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
15506 msgid ""
15507 "Verbose messages are disabled unless the environment variable "
15508 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4508
15513 msgid ""
15514 "Verbose messages are normally sent to C<stderr>, unless you register a "
15515 "callback to send them somewhere else (see L</set-event-callback>)."
15516 msgstr ""
15517
15518 #. type: =head2
15519 #: ../fish/guestfish-actions.pod:4512
15520 msgid "setcon"
15521 msgstr ""
15522
15523 #. type: verbatim
15524 #: ../fish/guestfish-actions.pod:4514
15525 #, no-wrap
15526 msgid ""
15527 " setcon context\n"
15528 "\n"
15529 msgstr ""
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
15533 msgid ""
15534 "This sets the SELinux security context of the daemon to the string "
15535 "C<context>."
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
15540 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15541 msgstr ""
15542
15543 #. type: =head2
15544 #: ../fish/guestfish-actions.pod:4521
15545 msgid "setxattr"
15546 msgstr ""
15547
15548 #. type: verbatim
15549 #: ../fish/guestfish-actions.pod:4523
15550 #, no-wrap
15551 msgid ""
15552 " setxattr xattr val vallen path\n"
15553 "\n"
15554 msgstr ""
15555
15556 #. type: textblock
15557 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
15558 msgid ""
15559 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15560 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15561 msgstr ""
15562
15563 #. type: textblock
15564 #: ../fish/guestfish-actions.pod:4529
15565 msgid "See also: L</lsetxattr>, L<attr(5)>."
15566 msgstr ""
15567
15568 #. type: =head2
15569 #: ../fish/guestfish-actions.pod:4531
15570 msgid "sfdisk"
15571 msgstr ""
15572
15573 #. type: verbatim
15574 #: ../fish/guestfish-actions.pod:4533
15575 #, no-wrap
15576 msgid ""
15577 " sfdisk device cyls heads sectors 'lines ...'\n"
15578 "\n"
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
15583 msgid ""
15584 "This is a direct interface to the L<sfdisk(8)> program for creating "
15585 "partitions on block devices."
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
15590 msgid "C<device> should be a block device, for example C</dev/sda>."
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
15595 msgid ""
15596 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15597 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15598 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15599 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15600 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15601 "the kernel) cannot work out the right geometry and you will need to tell it."
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
15606 msgid ""
15607 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15608 "refer to the L<sfdisk(8)> manpage."
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
15613 msgid ""
15614 "To create a single partition occupying the whole disk, you would pass "
15615 "C<lines> as a single element list, when the single element being the string "
15616 "C<,> (comma)."
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4555
15621 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
15626 #: ../fish/guestfish-actions.pod:4597
15627 msgid ""
15628 "I<This function is deprecated.> In new code, use the L</part_add> call "
15629 "instead."
15630 msgstr ""
15631
15632 #. type: =head2
15633 #: ../fish/guestfish-actions.pod:4565
15634 msgid "sfdiskM"
15635 msgstr ""
15636
15637 #. type: verbatim
15638 #: ../fish/guestfish-actions.pod:4567
15639 #, no-wrap
15640 msgid ""
15641 " sfdiskM device 'lines ...'\n"
15642 "\n"
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-actions.pod:4569
15647 msgid ""
15648 "This is a simplified interface to the L</sfdisk> command, where partition "
15649 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15650 "you don't need to specify the cyls, heads and sectors parameters which were "
15651 "rarely if ever used anyway."
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../fish/guestfish-actions.pod:4575
15656 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15657 msgstr ""
15658
15659 #. type: =head2
15660 #: ../fish/guestfish-actions.pod:4585
15661 msgid "sfdisk-N"
15662 msgstr ""
15663
15664 #. type: verbatim
15665 #: ../fish/guestfish-actions.pod:4587
15666 #, no-wrap
15667 msgid ""
15668 " sfdisk-N device partnum cyls heads sectors line\n"
15669 "\n"
15670 msgstr ""
15671
15672 #. type: textblock
15673 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
15674 msgid ""
15675 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15676 "(note: C<n> counts from 1)."
15677 msgstr ""
15678
15679 #. type: textblock
15680 #: ../fish/guestfish-actions.pod:4592
15681 msgid ""
15682 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15683 "cyls/heads/sectors parameters."
15684 msgstr ""
15685
15686 #. type: textblock
15687 #: ../fish/guestfish-actions.pod:4595
15688 msgid "See also: L</part-add>"
15689 msgstr ""
15690
15691 #. type: =head2
15692 #: ../fish/guestfish-actions.pod:4604
15693 msgid "sfdisk-disk-geometry"
15694 msgstr ""
15695
15696 #. type: verbatim
15697 #: ../fish/guestfish-actions.pod:4606
15698 #, no-wrap
15699 msgid ""
15700 " sfdisk-disk-geometry device\n"
15701 "\n"
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../fish/guestfish-actions.pod:4608
15706 msgid ""
15707 "This displays the disk geometry of C<device> read from the partition table.  "
15708 "Especially in the case where the underlying block device has been resized, "
15709 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15710 "kernel-geometry>)."
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
15715 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
15716 msgid "The result is in human-readable format, and not designed to be parsed."
15717 msgstr ""
15718
15719 #. type: =head2
15720 #: ../fish/guestfish-actions.pod:4616
15721 msgid "sfdisk-kernel-geometry"
15722 msgstr ""
15723
15724 #. type: verbatim
15725 #: ../fish/guestfish-actions.pod:4618
15726 #, no-wrap
15727 msgid ""
15728 " sfdisk-kernel-geometry device\n"
15729 "\n"
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
15734 msgid "This displays the kernel's idea of the geometry of C<device>."
15735 msgstr ""
15736
15737 #. type: =head2
15738 #: ../fish/guestfish-actions.pod:4625
15739 msgid "sfdisk-l"
15740 msgstr ""
15741
15742 #. type: verbatim
15743 #: ../fish/guestfish-actions.pod:4627
15744 #, no-wrap
15745 msgid ""
15746 " sfdisk-l device\n"
15747 "\n"
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
15752 msgid ""
15753 "This displays the partition table on C<device>, in the human-readable output "
15754 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15755 msgstr ""
15756
15757 #. type: textblock
15758 #: ../fish/guestfish-actions.pod:4633
15759 msgid "See also: L</part-list>"
15760 msgstr ""
15761
15762 #. type: textblock
15763 #: ../fish/guestfish-actions.pod:4635
15764 msgid ""
15765 "I<This function is deprecated.> In new code, use the L</part_list> call "
15766 "instead."
15767 msgstr ""
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4642
15771 msgid "sh"
15772 msgstr ""
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish-actions.pod:4644
15776 #, no-wrap
15777 msgid ""
15778 " sh command\n"
15779 "\n"
15780 msgstr ""
15781
15782 #. type: textblock
15783 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
15784 msgid ""
15785 "This call runs a command from the guest filesystem via the guest's C</bin/"
15786 "sh>."
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:4649
15791 msgid "This is like L</command>, but passes the command to:"
15792 msgstr ""
15793
15794 #. type: verbatim
15795 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
15796 #, no-wrap
15797 msgid ""
15798 " /bin/sh -c \"command\"\n"
15799 "\n"
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
15804 msgid ""
15805 "Depending on the guest's shell, this usually results in wildcards being "
15806 "expanded, shell expressions being interpolated and so on."
15807 msgstr ""
15808
15809 #. type: textblock
15810 #: ../fish/guestfish-actions.pod:4657
15811 msgid "All the provisos about L</command> apply to this call."
15812 msgstr ""
15813
15814 #. type: =head2
15815 #: ../fish/guestfish-actions.pod:4659
15816 msgid "sh-lines"
15817 msgstr ""
15818
15819 #. type: verbatim
15820 #: ../fish/guestfish-actions.pod:4661
15821 #, no-wrap
15822 msgid ""
15823 " sh-lines command\n"
15824 "\n"
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../fish/guestfish-actions.pod:4663
15829 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15830 msgstr ""
15831
15832 #. type: textblock
15833 #: ../fish/guestfish-actions.pod:4666
15834 msgid "See also: L</command-lines>"
15835 msgstr ""
15836
15837 #. type: =head2
15838 #: ../fish/guestfish-actions.pod:4668
15839 msgid "sleep"
15840 msgstr ""
15841
15842 #. type: verbatim
15843 #: ../fish/guestfish-actions.pod:4670
15844 #, no-wrap
15845 msgid ""
15846 " sleep secs\n"
15847 "\n"
15848 msgstr ""
15849
15850 #. type: textblock
15851 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
15852 msgid "Sleep for C<secs> seconds."
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-actions.pod:4674
15857 msgid "stat"
15858 msgstr ""
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-actions.pod:4676
15862 #, no-wrap
15863 msgid ""
15864 " stat path\n"
15865 "\n"
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
15870 msgid "This is the same as the C<stat(2)> system call."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:4682
15875 msgid "statvfs"
15876 msgstr ""
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:4684
15880 #, no-wrap
15881 msgid ""
15882 " statvfs path\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
15888 msgid ""
15889 "Returns file system statistics for any mounted file system.  C<path> should "
15890 "be a file or directory in the mounted file system (typically it is the mount "
15891 "point itself, but it doesn't need to be)."
15892 msgstr ""
15893
15894 #. type: textblock
15895 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
15896 msgid "This is the same as the C<statvfs(2)> system call."
15897 msgstr ""
15898
15899 #. type: =head2
15900 #: ../fish/guestfish-actions.pod:4692
15901 msgid "strings"
15902 msgstr ""
15903
15904 #. type: verbatim
15905 #: ../fish/guestfish-actions.pod:4694
15906 #, no-wrap
15907 msgid ""
15908 " strings path\n"
15909 "\n"
15910 msgstr ""
15911
15912 #. type: textblock
15913 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
15914 msgid ""
15915 "This runs the L<strings(1)> command on a file and returns the list of "
15916 "printable strings found."
15917 msgstr ""
15918
15919 #. type: =head2
15920 #: ../fish/guestfish-actions.pod:4702
15921 msgid "strings-e"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../fish/guestfish-actions.pod:4704
15926 #, no-wrap
15927 msgid ""
15928 " strings-e encoding path\n"
15929 "\n"
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-actions.pod:4706
15934 msgid ""
15935 "This is like the L</strings> command, but allows you to specify the encoding "
15936 "of strings that are looked for in the source file C<path>."
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
15941 msgid "Allowed encodings are:"
15942 msgstr ""
15943
15944 #. type: =item
15945 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
15946 msgid "s"
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:4716
15951 msgid ""
15952 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15953 "ISO-8859-X (this is what L</strings> uses)."
15954 msgstr ""
15955
15956 #. type: =item
15957 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
15958 msgid "S"
15959 msgstr ""
15960
15961 #. type: textblock
15962 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
15963 msgid "Single 8-bit-byte characters."
15964 msgstr ""
15965
15966 #. type: =item
15967 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
15968 msgid "b"
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
15973 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15974 msgstr ""
15975
15976 #. type: =item
15977 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
15978 msgid "l (lower case letter L)"
15979 msgstr ""
15980
15981 #. type: textblock
15982 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
15983 msgid ""
15984 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15985 "examining binaries in Windows guests."
15986 msgstr ""
15987
15988 #. type: =item
15989 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
15990 msgid "B"
15991 msgstr ""
15992
15993 #. type: textblock
15994 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
15995 msgid "32-bit big endian such as UCS-4BE."
15996 msgstr ""
15997
15998 #. type: =item
15999 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16000 msgid "L"
16001 msgstr ""
16002
16003 #. type: textblock
16004 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16005 msgid "32-bit little endian such as UCS-4LE."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16010 msgid "The returned strings are transcoded to UTF-8."
16011 msgstr ""
16012
16013 #. type: =head2
16014 #: ../fish/guestfish-actions.pod:4748
16015 msgid "swapoff-device"
16016 msgstr ""
16017
16018 #. type: verbatim
16019 #: ../fish/guestfish-actions.pod:4750
16020 #, no-wrap
16021 msgid ""
16022 " swapoff-device device\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:4752
16028 msgid ""
16029 "This command disables the libguestfs appliance swap device or partition "
16030 "named C<device>.  See L</swapon-device>."
16031 msgstr ""
16032
16033 #. type: =head2
16034 #: ../fish/guestfish-actions.pod:4756
16035 msgid "swapoff-file"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../fish/guestfish-actions.pod:4758
16040 #, no-wrap
16041 msgid ""
16042 " swapoff-file file\n"
16043 "\n"
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16048 msgid "This command disables the libguestfs appliance swap on file."
16049 msgstr ""
16050
16051 #. type: =head2
16052 #: ../fish/guestfish-actions.pod:4762
16053 msgid "swapoff-label"
16054 msgstr ""
16055
16056 #. type: verbatim
16057 #: ../fish/guestfish-actions.pod:4764
16058 #, no-wrap
16059 msgid ""
16060 " swapoff-label label\n"
16061 "\n"
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16066 msgid ""
16067 "This command disables the libguestfs appliance swap on labeled swap "
16068 "partition."
16069 msgstr ""
16070
16071 #. type: =head2
16072 #: ../fish/guestfish-actions.pod:4769
16073 msgid "swapoff-uuid"
16074 msgstr ""
16075
16076 #. type: verbatim
16077 #: ../fish/guestfish-actions.pod:4771
16078 #, no-wrap
16079 msgid ""
16080 " swapoff-uuid uuid\n"
16081 "\n"
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16086 msgid ""
16087 "This command disables the libguestfs appliance swap partition with the given "
16088 "UUID."
16089 msgstr ""
16090
16091 #. type: =head2
16092 #: ../fish/guestfish-actions.pod:4776
16093 msgid "swapon-device"
16094 msgstr ""
16095
16096 #. type: verbatim
16097 #: ../fish/guestfish-actions.pod:4778
16098 #, no-wrap
16099 msgid ""
16100 " swapon-device device\n"
16101 "\n"
16102 msgstr ""
16103
16104 #. type: textblock
16105 #: ../fish/guestfish-actions.pod:4780
16106 msgid ""
16107 "This command enables the libguestfs appliance to use the swap device or "
16108 "partition named C<device>.  The increased memory is made available for all "
16109 "commands, for example those run using L</command> or L</sh>."
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16114 msgid ""
16115 "Note that you should not swap to existing guest swap partitions unless you "
16116 "know what you are doing.  They may contain hibernation information, or other "
16117 "information that the guest doesn't want you to trash.  You also risk leaking "
16118 "information about the host to the guest this way.  Instead, attach a new "
16119 "host device to the guest and swap on that."
16120 msgstr ""
16121
16122 #. type: =head2
16123 #: ../fish/guestfish-actions.pod:4792
16124 msgid "swapon-file"
16125 msgstr ""
16126
16127 #. type: verbatim
16128 #: ../fish/guestfish-actions.pod:4794
16129 #, no-wrap
16130 msgid ""
16131 " swapon-file file\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:4796
16137 msgid ""
16138 "This command enables swap to a file.  See L</swapon-device> for other notes."
16139 msgstr ""
16140
16141 #. type: =head2
16142 #: ../fish/guestfish-actions.pod:4799
16143 msgid "swapon-label"
16144 msgstr ""
16145
16146 #. type: verbatim
16147 #: ../fish/guestfish-actions.pod:4801
16148 #, no-wrap
16149 msgid ""
16150 " swapon-label label\n"
16151 "\n"
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish-actions.pod:4803
16156 msgid ""
16157 "This command enables swap to a labeled swap partition.  See L</swapon-"
16158 "device> for other notes."
16159 msgstr ""
16160
16161 #. type: =head2
16162 #: ../fish/guestfish-actions.pod:4806
16163 msgid "swapon-uuid"
16164 msgstr ""
16165
16166 #. type: verbatim
16167 #: ../fish/guestfish-actions.pod:4808
16168 #, no-wrap
16169 msgid ""
16170 " swapon-uuid uuid\n"
16171 "\n"
16172 msgstr ""
16173
16174 #. type: textblock
16175 #: ../fish/guestfish-actions.pod:4810
16176 msgid ""
16177 "This command enables swap to a swap partition with the given UUID.  See L</"
16178 "swapon-device> for other notes."
16179 msgstr ""
16180
16181 #. type: =head2
16182 #: ../fish/guestfish-actions.pod:4813
16183 msgid "sync"
16184 msgstr ""
16185
16186 #. type: verbatim
16187 #: ../fish/guestfish-actions.pod:4815
16188 #, no-wrap
16189 msgid ""
16190 " sync\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16196 msgid ""
16197 "This syncs the disk, so that any writes are flushed through to the "
16198 "underlying disk image."
16199 msgstr ""
16200
16201 #. type: textblock
16202 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16203 msgid ""
16204 "You should always call this if you have modified a disk image, before "
16205 "closing the handle."
16206 msgstr ""
16207
16208 #. type: =head2
16209 #: ../fish/guestfish-actions.pod:4823
16210 msgid "tail"
16211 msgstr ""
16212
16213 #. type: verbatim
16214 #: ../fish/guestfish-actions.pod:4825
16215 #, no-wrap
16216 msgid ""
16217 " tail path\n"
16218 "\n"
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16223 msgid ""
16224 "This command returns up to the last 10 lines of a file as a list of strings."
16225 msgstr ""
16226
16227 #. type: =head2
16228 #: ../fish/guestfish-actions.pod:4833
16229 msgid "tail-n"
16230 msgstr ""
16231
16232 #. type: verbatim
16233 #: ../fish/guestfish-actions.pod:4835
16234 #, no-wrap
16235 msgid ""
16236 " tail-n nrlines path\n"
16237 "\n"
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
16242 msgid ""
16243 "If the parameter C<nrlines> is a positive number, this returns the last "
16244 "C<nrlines> lines of the file C<path>."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
16249 msgid ""
16250 "If the parameter C<nrlines> is a negative number, this returns lines from "
16251 "the file C<path>, starting with the C<-nrlines>th line."
16252 msgstr ""
16253
16254 #. type: =head2
16255 #: ../fish/guestfish-actions.pod:4848
16256 msgid "tar-in"
16257 msgstr ""
16258
16259 #. type: verbatim
16260 #: ../fish/guestfish-actions.pod:4850
16261 #, no-wrap
16262 msgid ""
16263 " tar-in (tarfile|-) directory\n"
16264 "\n"
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
16269 msgid ""
16270 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16271 "tar file) into C<directory>."
16272 msgstr ""
16273
16274 #. type: textblock
16275 #: ../fish/guestfish-actions.pod:4855
16276 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16277 msgstr ""
16278
16279 #. type: =head2
16280 #: ../fish/guestfish-actions.pod:4860
16281 msgid "tar-out"
16282 msgstr ""
16283
16284 #. type: verbatim
16285 #: ../fish/guestfish-actions.pod:4862
16286 #, no-wrap
16287 msgid ""
16288 " tar-out directory (tarfile|-)\n"
16289 "\n"
16290 msgstr ""
16291
16292 #. type: textblock
16293 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
16294 msgid ""
16295 "This command packs the contents of C<directory> and downloads it to local "
16296 "file C<tarfile>."
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:4867
16301 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16302 msgstr ""
16303
16304 #. type: =head2
16305 #: ../fish/guestfish-actions.pod:4872
16306 msgid "tgz-in"
16307 msgstr ""
16308
16309 #. type: verbatim
16310 #: ../fish/guestfish-actions.pod:4874
16311 #, no-wrap
16312 msgid ""
16313 " tgz-in (tarball|-) directory\n"
16314 "\n"
16315 msgstr ""
16316
16317 #. type: textblock
16318 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
16319 msgid ""
16320 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16321 "tar file) into C<directory>."
16322 msgstr ""
16323
16324 #. type: textblock
16325 #: ../fish/guestfish-actions.pod:4879
16326 msgid "To upload an uncompressed tarball, use L</tar-in>."
16327 msgstr ""
16328
16329 #. type: =head2
16330 #: ../fish/guestfish-actions.pod:4883
16331 msgid "tgz-out"
16332 msgstr ""
16333
16334 #. type: verbatim
16335 #: ../fish/guestfish-actions.pod:4885
16336 #, no-wrap
16337 msgid ""
16338 " tgz-out directory (tarball|-)\n"
16339 "\n"
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
16344 msgid ""
16345 "This command packs the contents of C<directory> and downloads it to local "
16346 "file C<tarball>."
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4890
16351 msgid "To download an uncompressed tarball, use L</tar-out>."
16352 msgstr ""
16353
16354 #. type: =head2
16355 #: ../fish/guestfish-actions.pod:4894
16356 msgid "touch"
16357 msgstr ""
16358
16359 #. type: verbatim
16360 #: ../fish/guestfish-actions.pod:4896
16361 #, no-wrap
16362 msgid ""
16363 " touch path\n"
16364 "\n"
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
16369 msgid ""
16370 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16371 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16372 "length file."
16373 msgstr ""
16374
16375 #. type: textblock
16376 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
16377 msgid ""
16378 "This command only works on regular files, and will fail on other file types "
16379 "such as directories, symbolic links, block special etc."
16380 msgstr ""
16381
16382 #. type: =head2
16383 #: ../fish/guestfish-actions.pod:4905
16384 msgid "truncate"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../fish/guestfish-actions.pod:4907
16389 #, no-wrap
16390 msgid ""
16391 " truncate path\n"
16392 "\n"
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
16397 msgid ""
16398 "This command truncates C<path> to a zero-length file.  The file must exist "
16399 "already."
16400 msgstr ""
16401
16402 #. type: =head2
16403 #: ../fish/guestfish-actions.pod:4912
16404 msgid "truncate-size"
16405 msgstr ""
16406
16407 #. type: verbatim
16408 #: ../fish/guestfish-actions.pod:4914
16409 #, no-wrap
16410 msgid ""
16411 " truncate-size path size\n"
16412 "\n"
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
16417 msgid ""
16418 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16419 "already."
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:4919
16424 msgid ""
16425 "If the current file size is less than C<size> then the file is extended to "
16426 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16427 "blocks are not allocated for the file until you write to it).  To create a "
16428 "non-sparse file of zeroes, use L</fallocate64> instead."
16429 msgstr ""
16430
16431 #. type: =head2
16432 #: ../fish/guestfish-actions.pod:4925
16433 msgid "tune2fs-l"
16434 msgstr ""
16435
16436 #. type: verbatim
16437 #: ../fish/guestfish-actions.pod:4927
16438 #, no-wrap
16439 msgid ""
16440 " tune2fs-l device\n"
16441 "\n"
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
16446 msgid ""
16447 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16448 "C<device>."
16449 msgstr ""
16450
16451 #. type: textblock
16452 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
16453 msgid ""
16454 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16455 "for more details.  The list of fields returned isn't clearly defined, and "
16456 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16457 "and the filesystem itself."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4937
16462 msgid "txz-in"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:4939
16467 #, no-wrap
16468 msgid ""
16469 " txz-in (tarball|-) directory\n"
16470 "\n"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
16475 msgid ""
16476 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16477 "tar file) into C<directory>."
16478 msgstr ""
16479
16480 #. type: =head2
16481 #: ../fish/guestfish-actions.pod:4946
16482 msgid "txz-out"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish-actions.pod:4948
16487 #, no-wrap
16488 msgid ""
16489 " txz-out directory (tarball|-)\n"
16490 "\n"
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
16495 msgid ""
16496 "This command packs the contents of C<directory> and downloads it to local "
16497 "file C<tarball> (as an xz compressed tar archive)."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-actions.pod:4955
16502 msgid "umask"
16503 msgstr ""
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-actions.pod:4957
16507 #, no-wrap
16508 msgid ""
16509 " umask mask\n"
16510 "\n"
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
16515 msgid ""
16516 "This function sets the mask used for creating new files and device nodes to "
16517 "C<mask & 0777>."
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
16522 msgid ""
16523 "Typical umask values would be C<022> which creates new files with "
16524 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16525 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
16530 msgid ""
16531 "The default umask is C<022>.  This is important because it means that "
16532 "directories and device nodes will be created with C<0644> or C<0755> mode "
16533 "even if you specify C<0777>."
16534 msgstr ""
16535
16536 #. type: textblock
16537 #: ../fish/guestfish-actions.pod:4971
16538 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
16543 msgid "This call returns the previous umask."
16544 msgstr ""
16545
16546 #. type: =head2
16547 #: ../fish/guestfish-actions.pod:4976
16548 msgid "umount"
16549 msgstr ""
16550
16551 #. type: =head2
16552 #: ../fish/guestfish-actions.pod:4978
16553 msgid "unmount"
16554 msgstr ""
16555
16556 #. type: verbatim
16557 #: ../fish/guestfish-actions.pod:4980
16558 #, no-wrap
16559 msgid ""
16560 " umount pathordevice\n"
16561 "\n"
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
16566 msgid ""
16567 "This unmounts the given filesystem.  The filesystem may be specified either "
16568 "by its mountpoint (path) or the device which contains the filesystem."
16569 msgstr ""
16570
16571 #. type: =head2
16572 #: ../fish/guestfish-actions.pod:4986
16573 msgid "umount-all"
16574 msgstr ""
16575
16576 #. type: =head2
16577 #: ../fish/guestfish-actions.pod:4988
16578 msgid "unmount-all"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish-actions.pod:4990
16583 #, no-wrap
16584 msgid ""
16585 " umount-all\n"
16586 "\n"
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
16591 msgid "This unmounts all mounted filesystems."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
16596 msgid "Some internal mounts are not unmounted by this call."
16597 msgstr ""
16598
16599 #. type: =head2
16600 #: ../fish/guestfish-actions.pod:4996
16601 msgid "upload"
16602 msgstr ""
16603
16604 #. type: verbatim
16605 #: ../fish/guestfish-actions.pod:4998
16606 #, no-wrap
16607 msgid ""
16608 " upload (filename|-) remotefilename\n"
16609 "\n"
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
16614 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
16615 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../fish/guestfish-actions.pod:5005
16620 msgid "See also L</download>."
16621 msgstr ""
16622
16623 #. type: =head2
16624 #: ../fish/guestfish-actions.pod:5009
16625 msgid "upload-offset"
16626 msgstr ""
16627
16628 #. type: verbatim
16629 #: ../fish/guestfish-actions.pod:5011
16630 #, no-wrap
16631 msgid ""
16632 " upload-offset (filename|-) remotefilename offset\n"
16633 "\n"
16634 msgstr ""
16635
16636 #. type: textblock
16637 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
16638 msgid ""
16639 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16640 "The intention is to overwrite parts of existing files or devices, although "
16641 "if a non-existant file is specified then it is created with a \"hole\" "
16642 "before C<offset>.  The size of the data written is implicit in the size of "
16643 "the source C<filename>."
16644 msgstr ""
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:5023
16648 msgid ""
16649 "Note that there is no limit on the amount of data that can be uploaded with "
16650 "this call, unlike with L</pwrite>, and this call always writes the full "
16651 "amount unless an error occurs."
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:5028
16656 msgid "See also L</upload>, L</pwrite>."
16657 msgstr ""
16658
16659 #. type: =head2
16660 #: ../fish/guestfish-actions.pod:5032
16661 msgid "utimens"
16662 msgstr ""
16663
16664 #. type: verbatim
16665 #: ../fish/guestfish-actions.pod:5034
16666 #, no-wrap
16667 msgid ""
16668 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16669 "\n"
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
16674 msgid "This command sets the timestamps of a file with nanosecond precision."
16675 msgstr ""
16676
16677 #. type: textblock
16678 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
16679 msgid ""
16680 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16681 "from the epoch."
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
16686 msgid ""
16687 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16688 "nanoseconds from the epoch."
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
16693 msgid ""
16694 "If the C<*nsecs> field contains the special value C<-1> then the "
16695 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16696 "ignored in this case)."
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
16701 msgid ""
16702 "If the C<*nsecs> field contains the special value C<-2> then the "
16703 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16704 "in this case)."
16705 msgstr ""
16706
16707 #. type: =head2
16708 #: ../fish/guestfish-actions.pod:5053
16709 msgid "version"
16710 msgstr ""
16711
16712 #. type: verbatim
16713 #: ../fish/guestfish-actions.pod:5055
16714 #, no-wrap
16715 msgid ""
16716 " version\n"
16717 "\n"
16718 msgstr ""
16719
16720 #. type: textblock
16721 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
16722 msgid ""
16723 "Return the libguestfs version number that the program is linked against."
16724 msgstr ""
16725
16726 #. type: textblock
16727 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
16728 msgid ""
16729 "Note that because of dynamic linking this is not necessarily the version of "
16730 "libguestfs that you compiled against.  You can compile the program, and then "
16731 "at runtime dynamically link against a completely different C<libguestfs.so> "
16732 "library."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
16737 msgid ""
16738 "This call was added in version C<1.0.58>.  In previous versions of "
16739 "libguestfs there was no way to get the version number.  From C code you can "
16740 "use dynamic linker functions to find out if this symbol exists (if it "
16741 "doesn't, then it's an earlier version)."
16742 msgstr ""
16743
16744 #. type: textblock
16745 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
16746 msgid ""
16747 "The call returns a structure with four elements.  The first three (C<major>, "
16748 "C<minor> and C<release>) are numbers and correspond to the usual version "
16749 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16750 "but may be used for distro-specific information."
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
16755 msgid ""
16756 "To construct the original version string: C<$major.$minor.$release$extra>"
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
16761 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16762 msgstr ""
16763
16764 #. type: textblock
16765 #: ../fish/guestfish-actions.pod:5082
16766 msgid ""
16767 "I<Note:> Don't use this call to test for availability of features.  In "
16768 "enterprise distributions we backport features from later versions into "
16769 "earlier versions, making this an unreliable way to test for features.  Use "
16770 "L</available> instead."
16771 msgstr ""
16772
16773 #. type: =head2
16774 #: ../fish/guestfish-actions.pod:5088
16775 msgid "vfs-label"
16776 msgstr ""
16777
16778 #. type: verbatim
16779 #: ../fish/guestfish-actions.pod:5090
16780 #, no-wrap
16781 msgid ""
16782 " vfs-label device\n"
16783 "\n"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
16788 msgid "This returns the filesystem label of the filesystem on C<device>."
16789 msgstr ""
16790
16791 #. type: textblock
16792 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
16793 msgid "If the filesystem is unlabeled, this returns the empty string."
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish-actions.pod:5097
16798 msgid "To find a filesystem from the label, use L</findfs-label>."
16799 msgstr ""
16800
16801 #. type: =head2
16802 #: ../fish/guestfish-actions.pod:5099
16803 msgid "vfs-type"
16804 msgstr ""
16805
16806 #. type: verbatim
16807 #: ../fish/guestfish-actions.pod:5101
16808 #, no-wrap
16809 msgid ""
16810 " vfs-type device\n"
16811 "\n"
16812 msgstr ""
16813
16814 #. type: textblock
16815 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
16816 msgid ""
16817 "This command gets the filesystem type corresponding to the filesystem on "
16818 "C<device>."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
16823 msgid ""
16824 "For most filesystems, the result is the name of the Linux VFS module which "
16825 "would be used to mount this filesystem if you mounted it without specifying "
16826 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16827 msgstr ""
16828
16829 #. type: =head2
16830 #: ../fish/guestfish-actions.pod:5111
16831 msgid "vfs-uuid"
16832 msgstr ""
16833
16834 #. type: verbatim
16835 #: ../fish/guestfish-actions.pod:5113
16836 #, no-wrap
16837 msgid ""
16838 " vfs-uuid device\n"
16839 "\n"
16840 msgstr ""
16841
16842 #. type: textblock
16843 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
16844 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16845 msgstr ""
16846
16847 #. type: textblock
16848 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
16849 msgid "If the filesystem does not have a UUID, this returns the empty string."
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish-actions.pod:5120
16854 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16855 msgstr ""
16856
16857 #. type: =head2
16858 #: ../fish/guestfish-actions.pod:5122
16859 msgid "vg-activate"
16860 msgstr ""
16861
16862 #. type: verbatim
16863 #: ../fish/guestfish-actions.pod:5124
16864 #, no-wrap
16865 msgid ""
16866 " vg-activate true|false 'volgroups ...'\n"
16867 "\n"
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
16872 msgid ""
16873 "This command activates or (if C<activate> is false) deactivates all logical "
16874 "volumes in the listed volume groups C<volgroups>."
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
16879 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
16884 msgid ""
16885 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16886 "activated or deactivated."
16887 msgstr ""
16888
16889 #. type: =head2
16890 #: ../fish/guestfish-actions.pod:5134
16891 msgid "vg-activate-all"
16892 msgstr ""
16893
16894 #. type: verbatim
16895 #: ../fish/guestfish-actions.pod:5136
16896 #, no-wrap
16897 msgid ""
16898 " vg-activate-all true|false\n"
16899 "\n"
16900 msgstr ""
16901
16902 #. type: textblock
16903 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
16904 msgid ""
16905 "This command activates or (if C<activate> is false) deactivates all logical "
16906 "volumes in all volume groups."
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
16911 msgid "This command is the same as running C<vgchange -a y|n>"
16912 msgstr ""
16913
16914 #. type: =head2
16915 #: ../fish/guestfish-actions.pod:5143
16916 msgid "vgcreate"
16917 msgstr ""
16918
16919 #. type: verbatim
16920 #: ../fish/guestfish-actions.pod:5145
16921 #, no-wrap
16922 msgid ""
16923 " vgcreate volgroup 'physvols ...'\n"
16924 "\n"
16925 msgstr ""
16926
16927 #. type: textblock
16928 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
16929 msgid ""
16930 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16931 "of physical volumes C<physvols>."
16932 msgstr ""
16933
16934 #. type: =head2
16935 #: ../fish/guestfish-actions.pod:5150
16936 msgid "vglvuuids"
16937 msgstr ""
16938
16939 #. type: verbatim
16940 #: ../fish/guestfish-actions.pod:5152
16941 #, no-wrap
16942 msgid ""
16943 " vglvuuids vgname\n"
16944 "\n"
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
16949 msgid ""
16950 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16951 "volumes created in this volume group."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-actions.pod:5157
16956 msgid ""
16957 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16958 "logical volumes and volume groups."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5160
16963 msgid "See also L</vgpvuuids>."
16964 msgstr ""
16965
16966 #. type: =head2
16967 #: ../fish/guestfish-actions.pod:5162
16968 msgid "vgpvuuids"
16969 msgstr ""
16970
16971 #. type: verbatim
16972 #: ../fish/guestfish-actions.pod:5164
16973 #, no-wrap
16974 msgid ""
16975 " vgpvuuids vgname\n"
16976 "\n"
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
16981 msgid ""
16982 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16983 "volumes that this volume group resides on."
16984 msgstr ""
16985
16986 #. type: textblock
16987 #: ../fish/guestfish-actions.pod:5169
16988 msgid ""
16989 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16990 "physical volumes and volume groups."
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish-actions.pod:5172
16995 msgid "See also L</vglvuuids>."
16996 msgstr ""
16997
16998 #. type: =head2
16999 #: ../fish/guestfish-actions.pod:5174
17000 msgid "vgremove"
17001 msgstr ""
17002
17003 #. type: verbatim
17004 #: ../fish/guestfish-actions.pod:5176
17005 #, no-wrap
17006 msgid ""
17007 " vgremove vgname\n"
17008 "\n"
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17013 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17018 msgid ""
17019 "This also forcibly removes all logical volumes in the volume group (if any)."
17020 msgstr ""
17021
17022 #. type: =head2
17023 #: ../fish/guestfish-actions.pod:5183
17024 msgid "vgrename"
17025 msgstr ""
17026
17027 #. type: verbatim
17028 #: ../fish/guestfish-actions.pod:5185
17029 #, no-wrap
17030 msgid ""
17031 " vgrename volgroup newvolgroup\n"
17032 "\n"
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17037 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17038 msgstr ""
17039
17040 #. type: =head2
17041 #: ../fish/guestfish-actions.pod:5189
17042 msgid "vgs"
17043 msgstr ""
17044
17045 #. type: verbatim
17046 #: ../fish/guestfish-actions.pod:5191
17047 #, no-wrap
17048 msgid ""
17049 " vgs\n"
17050 "\n"
17051 msgstr ""
17052
17053 #. type: textblock
17054 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17055 msgid ""
17056 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17057 "> command."
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17062 msgid ""
17063 "This returns a list of just the volume group names that were detected (eg. "
17064 "C<VolGroup00>)."
17065 msgstr ""
17066
17067 #. type: textblock
17068 #: ../fish/guestfish-actions.pod:5199
17069 msgid "See also L</vgs-full>."
17070 msgstr ""
17071
17072 #. type: =head2
17073 #: ../fish/guestfish-actions.pod:5201
17074 msgid "vgs-full"
17075 msgstr ""
17076
17077 #. type: verbatim
17078 #: ../fish/guestfish-actions.pod:5203
17079 #, no-wrap
17080 msgid ""
17081 " vgs-full\n"
17082 "\n"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17087 msgid ""
17088 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17089 "> command.  The \"full\" version includes all fields."
17090 msgstr ""
17091
17092 #. type: =head2
17093 #: ../fish/guestfish-actions.pod:5208
17094 msgid "vgscan"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish-actions.pod:5210
17099 #, no-wrap
17100 msgid ""
17101 " vgscan\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17107 msgid ""
17108 "This rescans all block devices and rebuilds the list of LVM physical "
17109 "volumes, volume groups and logical volumes."
17110 msgstr ""
17111
17112 #. type: =head2
17113 #: ../fish/guestfish-actions.pod:5215
17114 msgid "vguuid"
17115 msgstr ""
17116
17117 #. type: verbatim
17118 #: ../fish/guestfish-actions.pod:5217
17119 #, no-wrap
17120 msgid ""
17121 " vguuid vgname\n"
17122 "\n"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17127 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17128 msgstr ""
17129
17130 #. type: =head2
17131 #: ../fish/guestfish-actions.pod:5221
17132 msgid "wc-c"
17133 msgstr ""
17134
17135 #. type: verbatim
17136 #: ../fish/guestfish-actions.pod:5223
17137 #, no-wrap
17138 msgid ""
17139 " wc-c path\n"
17140 "\n"
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17145 msgid ""
17146 "This command counts the characters in a file, using the C<wc -c> external "
17147 "command."
17148 msgstr ""
17149
17150 #. type: =head2
17151 #: ../fish/guestfish-actions.pod:5228
17152 msgid "wc-l"
17153 msgstr ""
17154
17155 #. type: verbatim
17156 #: ../fish/guestfish-actions.pod:5230
17157 #, no-wrap
17158 msgid ""
17159 " wc-l path\n"
17160 "\n"
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17165 msgid ""
17166 "This command counts the lines in a file, using the C<wc -l> external command."
17167 msgstr ""
17168
17169 #. type: =head2
17170 #: ../fish/guestfish-actions.pod:5235
17171 msgid "wc-w"
17172 msgstr ""
17173
17174 #. type: verbatim
17175 #: ../fish/guestfish-actions.pod:5237
17176 #, no-wrap
17177 msgid ""
17178 " wc-w path\n"
17179 "\n"
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17184 msgid ""
17185 "This command counts the words in a file, using the C<wc -w> external command."
17186 msgstr ""
17187
17188 #. type: =head2
17189 #: ../fish/guestfish-actions.pod:5242
17190 msgid "write"
17191 msgstr ""
17192
17193 #. type: verbatim
17194 #: ../fish/guestfish-actions.pod:5244
17195 #, no-wrap
17196 msgid ""
17197 " write path content\n"
17198 "\n"
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17203 msgid ""
17204 "This call creates a file called C<path>.  The content of the file is the "
17205 "string C<content> (which can contain any 8 bit data)."
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish-actions.pod:5249
17210 msgid "See also L</write-append>."
17211 msgstr ""
17212
17213 #. type: =head2
17214 #: ../fish/guestfish-actions.pod:5254
17215 msgid "write-append"
17216 msgstr ""
17217
17218 #. type: verbatim
17219 #: ../fish/guestfish-actions.pod:5256
17220 #, no-wrap
17221 msgid ""
17222 " write-append path content\n"
17223 "\n"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17228 msgid ""
17229 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17230 "not exist, then a new file is created."
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish-actions.pod:5261
17235 msgid "See also L</write>."
17236 msgstr ""
17237
17238 #. type: =head2
17239 #: ../fish/guestfish-actions.pod:5266
17240 msgid "write-file"
17241 msgstr ""
17242
17243 #. type: verbatim
17244 #: ../fish/guestfish-actions.pod:5268
17245 #, no-wrap
17246 msgid ""
17247 " write-file path content size\n"
17248 "\n"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
17253 msgid ""
17254 "This call creates a file called C<path>.  The contents of the file is the "
17255 "string C<content> (which can contain any 8 bit data), with length C<size>."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
17260 msgid ""
17261 "As a special case, if C<size> is C<0> then the length is calculated using "
17262 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
17267 msgid ""
17268 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17269 "I<not> work, even if the length is specified."
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish-actions.pod:5284
17274 msgid ""
17275 "I<This function is deprecated.> In new code, use the L</write> call instead."
17276 msgstr ""
17277
17278 #. type: =head2
17279 #: ../fish/guestfish-actions.pod:5291
17280 msgid "zegrep"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../fish/guestfish-actions.pod:5293
17285 #, no-wrap
17286 msgid ""
17287 " zegrep regex path\n"
17288 "\n"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
17293 msgid ""
17294 "This calls the external C<zegrep> program and returns the matching lines."
17295 msgstr ""
17296
17297 #. type: =head2
17298 #: ../fish/guestfish-actions.pod:5301
17299 msgid "zegrepi"
17300 msgstr ""
17301
17302 #. type: verbatim
17303 #: ../fish/guestfish-actions.pod:5303
17304 #, no-wrap
17305 msgid ""
17306 " zegrepi regex path\n"
17307 "\n"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
17312 msgid ""
17313 "This calls the external C<zegrep -i> program and returns the matching lines."
17314 msgstr ""
17315
17316 #. type: =head2
17317 #: ../fish/guestfish-actions.pod:5311
17318 msgid "zero"
17319 msgstr ""
17320
17321 #. type: verbatim
17322 #: ../fish/guestfish-actions.pod:5313
17323 #, no-wrap
17324 msgid ""
17325 " zero device\n"
17326 "\n"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
17331 msgid "This command writes zeroes over the first few blocks of C<device>."
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
17336 msgid ""
17337 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17338 "securely wipe the device).  It should be sufficient to remove any partition "
17339 "tables, filesystem superblocks and so on."
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
17344 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
17345 msgid ""
17346 "If blocks are already zero, then this command avoids writing zeroes.  This "
17347 "prevents the underlying device from becoming non-sparse or growing "
17348 "unnecessarily."
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish-actions.pod:5325
17353 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17354 msgstr ""
17355
17356 #. type: =head2
17357 #: ../fish/guestfish-actions.pod:5328
17358 msgid "zero-device"
17359 msgstr ""
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish-actions.pod:5330
17363 #, no-wrap
17364 msgid ""
17365 " zero-device device\n"
17366 "\n"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5332
17371 msgid ""
17372 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17373 "which just zeroes the first few blocks of a device."
17374 msgstr ""
17375
17376 #. type: =head2
17377 #: ../fish/guestfish-actions.pod:5340
17378 msgid "zerofree"
17379 msgstr ""
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish-actions.pod:5342
17383 #, no-wrap
17384 msgid ""
17385 " zerofree device\n"
17386 "\n"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
17391 msgid ""
17392 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17393 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17394 "possible to compress the filesystem more effectively."
17395 msgstr ""
17396
17397 #. type: textblock
17398 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
17399 msgid "You should B<not> run this program if the filesystem is mounted."
17400 msgstr ""
17401
17402 #. type: textblock
17403 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
17404 msgid ""
17405 "It is possible that using this program can damage the filesystem or data on "
17406 "the filesystem."
17407 msgstr ""
17408
17409 #. type: =head2
17410 #: ../fish/guestfish-actions.pod:5355
17411 msgid "zfgrep"
17412 msgstr ""
17413
17414 #. type: verbatim
17415 #: ../fish/guestfish-actions.pod:5357
17416 #, no-wrap
17417 msgid ""
17418 " zfgrep pattern path\n"
17419 "\n"
17420 msgstr ""
17421
17422 #. type: textblock
17423 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
17424 msgid ""
17425 "This calls the external C<zfgrep> program and returns the matching lines."
17426 msgstr ""
17427
17428 #. type: =head2
17429 #: ../fish/guestfish-actions.pod:5365
17430 msgid "zfgrepi"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish-actions.pod:5367
17435 #, no-wrap
17436 msgid ""
17437 " zfgrepi pattern path\n"
17438 "\n"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
17443 msgid ""
17444 "This calls the external C<zfgrep -i> program and returns the matching lines."
17445 msgstr ""
17446
17447 #. type: =head2
17448 #: ../fish/guestfish-actions.pod:5375
17449 msgid "zfile"
17450 msgstr ""
17451
17452 #. type: verbatim
17453 #: ../fish/guestfish-actions.pod:5377
17454 #, no-wrap
17455 msgid ""
17456 " zfile meth path\n"
17457 "\n"
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
17462 msgid ""
17463 "This command runs C<file> after first decompressing C<path> using C<method>."
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
17468 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish-actions.pod:5384
17473 msgid ""
17474 "Since 1.0.63, use L</file> instead which can now process compressed files."
17475 msgstr ""
17476
17477 #. type: textblock
17478 #: ../fish/guestfish-actions.pod:5387
17479 msgid ""
17480 "I<This function is deprecated.> In new code, use the L</file> call instead."
17481 msgstr ""
17482
17483 #. type: =head2
17484 #: ../fish/guestfish-actions.pod:5394
17485 msgid "zgrep"
17486 msgstr ""
17487
17488 #. type: verbatim
17489 #: ../fish/guestfish-actions.pod:5396
17490 #, no-wrap
17491 msgid ""
17492 " zgrep regex path\n"
17493 "\n"
17494 msgstr ""
17495
17496 #. type: textblock
17497 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
17498 msgid ""
17499 "This calls the external C<zgrep> program and returns the matching lines."
17500 msgstr ""
17501
17502 #. type: =head2
17503 #: ../fish/guestfish-actions.pod:5404
17504 msgid "zgrepi"
17505 msgstr ""
17506
17507 #. type: verbatim
17508 #: ../fish/guestfish-actions.pod:5406
17509 #, no-wrap
17510 msgid ""
17511 " zgrepi regex path\n"
17512 "\n"
17513 msgstr ""
17514
17515 #. type: textblock
17516 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
17517 msgid ""
17518 "This calls the external C<zgrep -i> program and returns the matching lines."
17519 msgstr ""
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-commands.pod:1
17523 msgid "alloc"
17524 msgstr ""
17525
17526 #. type: =head2
17527 #: ../fish/guestfish-commands.pod:3
17528 msgid "allocate"
17529 msgstr ""
17530
17531 #. type: verbatim
17532 #: ../fish/guestfish-commands.pod:5
17533 #, no-wrap
17534 msgid ""
17535 " alloc filename size\n"
17536 "\n"
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish-commands.pod:7
17541 msgid ""
17542 "This creates an empty (zeroed) file of the given size, and then adds so it "
17543 "can be further examined."
17544 msgstr ""
17545
17546 #. type: textblock
17547 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17548 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17553 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish-commands.pod:14
17558 msgid ""
17559 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17560 "image, see L</PREPARED DISK IMAGES>."
17561 msgstr ""
17562
17563 #. type: =head2
17564 #: ../fish/guestfish-commands.pod:17
17565 msgid "copy-in"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish-commands.pod:19
17570 #, no-wrap
17571 msgid ""
17572 " copy-in local [local ...] /remotedir\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish-commands.pod:21
17578 msgid ""
17579 "C<copy-in> copies local files or directories recursively into the disk "
17580 "image, placing them in the directory called C</remotedir> (which must "
17581 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17582 "other commands as necessary."
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish-commands.pod:26
17587 msgid ""
17588 "Multiple local files and directories can be specified, but the last "
17589 "parameter must always be a remote directory.  Wildcards cannot be used."
17590 msgstr ""
17591
17592 #. type: =head2
17593 #: ../fish/guestfish-commands.pod:30
17594 msgid "copy-out"
17595 msgstr ""
17596
17597 #. type: verbatim
17598 #: ../fish/guestfish-commands.pod:32
17599 #, no-wrap
17600 msgid ""
17601 " copy-out remote [remote ...] localdir\n"
17602 "\n"
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../fish/guestfish-commands.pod:34
17607 msgid ""
17608 "C<copy-out> copies remote files or directories recursively out of the disk "
17609 "image, placing them on the host disk in a local directory called C<localdir> "
17610 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17611 "download>, L</tar-out> and other commands as necessary."
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../fish/guestfish-commands.pod:40
17616 msgid ""
17617 "Multiple remote files and directories can be specified, but the last "
17618 "parameter must always be a local directory.  To download to the current "
17619 "directory, use C<.> as in:"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish-commands.pod:44
17624 #, no-wrap
17625 msgid ""
17626 " copy-out /home .\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish-commands.pod:46
17632 msgid ""
17633 "Wildcards cannot be used in the ordinary command, but you can use them with "
17634 "the help of L</glob> like this:"
17635 msgstr ""
17636
17637 #. type: verbatim
17638 #: ../fish/guestfish-commands.pod:49
17639 #, no-wrap
17640 msgid ""
17641 " glob copy-out /home/* .\n"
17642 "\n"
17643 msgstr ""
17644
17645 #. type: =head2
17646 #: ../fish/guestfish-commands.pod:51
17647 msgid "display"
17648 msgstr ""
17649
17650 #. type: verbatim
17651 #: ../fish/guestfish-commands.pod:53
17652 #, no-wrap
17653 msgid ""
17654 " display filename\n"
17655 "\n"
17656 msgstr ""
17657
17658 #. type: textblock
17659 #: ../fish/guestfish-commands.pod:55
17660 msgid ""
17661 "Use C<display> (a graphical display program) to display an image file.  It "
17662 "downloads the file, and runs C<display> on it."
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish-commands.pod:58
17667 msgid ""
17668 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17669 "environment variable.  For example to use the GNOME display program:"
17670 msgstr ""
17671
17672 #. type: verbatim
17673 #: ../fish/guestfish-commands.pod:61
17674 #, no-wrap
17675 msgid ""
17676 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17677 "\n"
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish-commands.pod:63
17682 msgid "See also L<display(1)>."
17683 msgstr ""
17684
17685 #. type: =head2
17686 #: ../fish/guestfish-commands.pod:65
17687 msgid "echo"
17688 msgstr ""
17689
17690 #. type: verbatim
17691 #: ../fish/guestfish-commands.pod:67
17692 #, no-wrap
17693 msgid ""
17694 " echo [params ...]\n"
17695 "\n"
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../fish/guestfish-commands.pod:69
17700 msgid "This echos the parameters to the terminal."
17701 msgstr ""
17702
17703 #. type: =head2
17704 #: ../fish/guestfish-commands.pod:71
17705 msgid "edit"
17706 msgstr ""
17707
17708 #. type: =head2
17709 #: ../fish/guestfish-commands.pod:73
17710 msgid "vi"
17711 msgstr ""
17712
17713 #. type: =head2
17714 #: ../fish/guestfish-commands.pod:75
17715 msgid "emacs"
17716 msgstr ""
17717
17718 #. type: verbatim
17719 #: ../fish/guestfish-commands.pod:77
17720 #, no-wrap
17721 msgid ""
17722 " edit filename\n"
17723 "\n"
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish-commands.pod:79
17728 msgid ""
17729 "This is used to edit a file.  It downloads the file, edits it locally using "
17730 "your editor, then uploads the result."
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish-commands.pod:82
17735 msgid ""
17736 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17737 "or C<emacs> you will get those corresponding editors."
17738 msgstr ""
17739
17740 #. type: =head2
17741 #: ../fish/guestfish-commands.pod:86
17742 msgid "glob"
17743 msgstr ""
17744
17745 #. type: verbatim
17746 #: ../fish/guestfish-commands.pod:88
17747 #, no-wrap
17748 msgid ""
17749 " glob command args...\n"
17750 "\n"
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../fish/guestfish-commands.pod:90
17755 msgid ""
17756 "Expand wildcards in any paths in the args list, and run C<command> "
17757 "repeatedly on each matching path."
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../fish/guestfish-commands.pod:93
17762 msgid "See L</WILDCARDS AND GLOBBING>."
17763 msgstr ""
17764
17765 #. type: =head2
17766 #: ../fish/guestfish-commands.pod:95
17767 msgid "hexedit"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../fish/guestfish-commands.pod:97
17772 #, no-wrap
17773 msgid ""
17774 " hexedit <filename|device>\n"
17775 " hexedit <filename|device> <max>\n"
17776 " hexedit <filename|device> <start> <max>\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../fish/guestfish-commands.pod:101
17782 msgid ""
17783 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17784 "device."
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish-commands.pod:104
17789 msgid ""
17790 "This command works by downloading potentially the whole file or device, "
17791 "editing it locally, then uploading it.  If the file or device is large, you "
17792 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17793 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17794 "usual modifiers allowed such as C<1M> (1 megabyte)."
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish-commands.pod:111
17799 msgid "For example to edit the first few sectors of a disk you might do:"
17800 msgstr ""
17801
17802 #. type: verbatim
17803 #: ../fish/guestfish-commands.pod:114
17804 #, no-wrap
17805 msgid ""
17806 " hexedit /dev/sda 1M\n"
17807 "\n"
17808 msgstr ""
17809
17810 #. type: textblock
17811 #: ../fish/guestfish-commands.pod:116
17812 msgid ""
17813 "which would allow you to edit anywhere within the first megabyte of the disk."
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish-commands.pod:119
17818 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17819 msgstr ""
17820
17821 #. type: verbatim
17822 #: ../fish/guestfish-commands.pod:121
17823 #, no-wrap
17824 msgid ""
17825 " hexedit /dev/sda1 0x400 0x400\n"
17826 "\n"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-commands.pod:123
17831 msgid "(assuming the superblock is in the standard location)."
17832 msgstr ""
17833
17834 #. type: textblock
17835 #: ../fish/guestfish-commands.pod:125
17836 msgid ""
17837 "This command requires the external L<hexedit(1)> program.  You can specify "
17838 "another program to use by setting the C<HEXEDITOR> environment variable."
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish-commands.pod:129
17843 msgid "See also L</hexdump>."
17844 msgstr ""
17845
17846 #. type: =head2
17847 #: ../fish/guestfish-commands.pod:131
17848 msgid "lcd"
17849 msgstr ""
17850
17851 #. type: verbatim
17852 #: ../fish/guestfish-commands.pod:133
17853 #, no-wrap
17854 msgid ""
17855 " lcd directory\n"
17856 "\n"
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish-commands.pod:135
17861 msgid ""
17862 "Change the local directory, ie. the current directory of guestfish itself."
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish-commands.pod:138
17867 msgid "Note that C<!cd> won't do what you might expect."
17868 msgstr ""
17869
17870 #. type: =head2
17871 #: ../fish/guestfish-commands.pod:140
17872 msgid "man"
17873 msgstr ""
17874
17875 #. type: =head2
17876 #: ../fish/guestfish-commands.pod:142
17877 msgid "manual"
17878 msgstr ""
17879
17880 #. type: verbatim
17881 #: ../fish/guestfish-commands.pod:144
17882 #, no-wrap
17883 msgid ""
17884 "  man\n"
17885 "\n"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish-commands.pod:146
17890 msgid "Opens the manual page for guestfish."
17891 msgstr ""
17892
17893 #. type: =head2
17894 #: ../fish/guestfish-commands.pod:148
17895 msgid "more"
17896 msgstr ""
17897
17898 #. type: =head2
17899 #: ../fish/guestfish-commands.pod:150
17900 msgid "less"
17901 msgstr ""
17902
17903 #. type: verbatim
17904 #: ../fish/guestfish-commands.pod:152
17905 #, no-wrap
17906 msgid ""
17907 " more filename\n"
17908 "\n"
17909 msgstr ""
17910
17911 #. type: verbatim
17912 #: ../fish/guestfish-commands.pod:154
17913 #, no-wrap
17914 msgid ""
17915 " less filename\n"
17916 "\n"
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../fish/guestfish-commands.pod:156
17921 msgid "This is used to view a file."
17922 msgstr ""
17923
17924 #. type: textblock
17925 #: ../fish/guestfish-commands.pod:158
17926 msgid ""
17927 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17928 "C<less> you will get the C<less> command specifically."
17929 msgstr ""
17930
17931 #. type: =head2
17932 #: ../fish/guestfish-commands.pod:161
17933 msgid "reopen"
17934 msgstr ""
17935
17936 #. type: verbatim
17937 #: ../fish/guestfish-commands.pod:163
17938 #, no-wrap
17939 msgid ""
17940 "  reopen\n"
17941 "\n"
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish-commands.pod:165
17946 msgid ""
17947 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17948 "normally, because the handle is closed properly when guestfish exits.  "
17949 "However this is occasionally useful for testing."
17950 msgstr ""
17951
17952 #. type: =head2
17953 #: ../fish/guestfish-commands.pod:169
17954 msgid "setenv"
17955 msgstr ""
17956
17957 #. type: verbatim
17958 #: ../fish/guestfish-commands.pod:171
17959 #, no-wrap
17960 msgid ""
17961 "  setenv VAR value\n"
17962 "\n"
17963 msgstr ""
17964
17965 #. type: textblock
17966 #: ../fish/guestfish-commands.pod:173
17967 msgid "Set the environment variable C<VAR> to the string C<value>."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish-commands.pod:175
17972 msgid ""
17973 "To print the value of an environment variable use a shell command such as:"
17974 msgstr ""
17975
17976 #. type: verbatim
17977 #: ../fish/guestfish-commands.pod:178
17978 #, no-wrap
17979 msgid ""
17980 " !echo $VAR\n"
17981 "\n"
17982 msgstr ""
17983
17984 #. type: =head2
17985 #: ../fish/guestfish-commands.pod:180
17986 msgid "sparse"
17987 msgstr ""
17988
17989 #. type: verbatim
17990 #: ../fish/guestfish-commands.pod:182
17991 #, no-wrap
17992 msgid ""
17993 " sparse filename size\n"
17994 "\n"
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish-commands.pod:184
17999 msgid ""
18000 "This creates an empty sparse file of the given size, and then adds so it can "
18001 "be further examined."
18002 msgstr ""
18003
18004 #. type: textblock
18005 #: ../fish/guestfish-commands.pod:187
18006 msgid ""
18007 "In all respects it works the same as the L</alloc> command, except that the "
18008 "image file is allocated sparsely, which means that disk blocks are not "
18009 "assigned to the file until they are needed.  Sparse disk files only use "
18010 "space when written to, but they are slower and there is a danger you could "
18011 "run out of real disk space during a write operation."
18012 msgstr ""
18013
18014 #. type: =head2
18015 #: ../fish/guestfish-commands.pod:197
18016 msgid "supported"
18017 msgstr ""
18018
18019 #. type: verbatim
18020 #: ../fish/guestfish-commands.pod:199
18021 #, no-wrap
18022 msgid ""
18023 " supported\n"
18024 "\n"
18025 msgstr ""
18026
18027 #. type: textblock
18028 #: ../fish/guestfish-commands.pod:201
18029 msgid ""
18030 "This command returns a list of the optional groups known to the daemon, and "
18031 "indicates which ones are supported by this build of the libguestfs appliance."
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish-commands.pod:205
18036 msgid "See also L<guestfs(3)/AVAILABILITY>."
18037 msgstr ""
18038
18039 #. type: =head2
18040 #: ../fish/guestfish-commands.pod:207
18041 msgid "time"
18042 msgstr ""
18043
18044 #. type: verbatim
18045 #: ../fish/guestfish-commands.pod:209
18046 #, no-wrap
18047 msgid ""
18048 " time command args...\n"
18049 "\n"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish-commands.pod:211
18054 msgid ""
18055 "Run the command as usual, but print the elapsed time afterwards.  This can "
18056 "be useful for benchmarking operations."
18057 msgstr ""
18058
18059 #. type: =head2
18060 #: ../fish/guestfish-commands.pod:214
18061 msgid "unsetenv"
18062 msgstr ""
18063
18064 #. type: verbatim
18065 #: ../fish/guestfish-commands.pod:216
18066 #, no-wrap
18067 msgid ""
18068 "  unsetenv VAR\n"
18069 "\n"
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-commands.pod:218
18074 msgid "Remove C<VAR> from the environment."
18075 msgstr ""
18076
18077 #. type: textblock
18078 #: ../fish/guestfish.pod:5
18079 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18080 msgstr ""
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish.pod:9
18084 #, no-wrap
18085 msgid ""
18086 " guestfish [--options] [commands]\n"
18087 "\n"
18088 msgstr ""
18089
18090 #. type: verbatim
18091 #: ../fish/guestfish.pod:11
18092 #, no-wrap
18093 msgid ""
18094 " guestfish\n"
18095 "\n"
18096 msgstr ""
18097
18098 #. type: verbatim
18099 #: ../fish/guestfish.pod:13
18100 #, no-wrap
18101 msgid ""
18102 " guestfish [--ro|--rw] -a disk.img\n"
18103 "\n"
18104 msgstr ""
18105
18106 #. type: verbatim
18107 #: ../fish/guestfish.pod:15
18108 #, no-wrap
18109 msgid ""
18110 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18111 "\n"
18112 msgstr ""
18113
18114 #. type: verbatim
18115 #: ../fish/guestfish.pod:17
18116 #, no-wrap
18117 msgid ""
18118 " guestfish -d libvirt-domain\n"
18119 "\n"
18120 msgstr ""
18121
18122 #. type: verbatim
18123 #: ../fish/guestfish.pod:19
18124 #, no-wrap
18125 msgid ""
18126 " guestfish [--ro|--rw] -a disk.img -i\n"
18127 "\n"
18128 msgstr ""
18129
18130 #. type: verbatim
18131 #: ../fish/guestfish.pod:21
18132 #, no-wrap
18133 msgid ""
18134 " guestfish -d libvirt-domain -i\n"
18135 "\n"
18136 msgstr ""
18137
18138 #. type: textblock
18139 #: ../fish/guestfish.pod:25
18140 msgid ""
18141 "Using guestfish in read/write mode on live virtual machines can be "
18142 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18143 "option to use guestfish safely if the disk image or virtual machine might be "
18144 "live."
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish.pod:32
18149 msgid ""
18150 "Guestfish is a shell and command-line tool for examining and modifying "
18151 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18152 "functionality of the guestfs API, see L<guestfs(3)>."
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish.pod:36
18157 msgid ""
18158 "Guestfish gives you structured access to the libguestfs API, from shell "
18159 "scripts or the command line or interactively.  If you want to rescue a "
18160 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18161 "command."
18162 msgstr ""
18163
18164 #. type: =head2
18165 #: ../fish/guestfish.pod:43
18166 msgid "As an interactive shell"
18167 msgstr ""
18168
18169 #. type: verbatim
18170 #: ../fish/guestfish.pod:45
18171 #, no-wrap
18172 msgid ""
18173 " $ guestfish\n"
18174 " \n"
18175 msgstr ""
18176
18177 #. type: verbatim
18178 #: ../fish/guestfish.pod:47
18179 #, no-wrap
18180 msgid ""
18181 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18182 " editing virtual machine filesystems.\n"
18183 " \n"
18184 msgstr ""
18185
18186 #. type: verbatim
18187 #: ../fish/guestfish.pod:50
18188 #, no-wrap
18189 msgid ""
18190 " Type: 'help' for a list of commands\n"
18191 "       'man' to read the manual\n"
18192 "       'quit' to quit the shell\n"
18193 " \n"
18194 msgstr ""
18195
18196 #. type: verbatim
18197 #: ../fish/guestfish.pod:54
18198 #, no-wrap
18199 msgid ""
18200 " ><fs> add-ro disk.img\n"
18201 " ><fs> run\n"
18202 " ><fs> list-filesystems\n"
18203 " /dev/sda1: ext4\n"
18204 " /dev/vg_guest/lv_root: ext4\n"
18205 " /dev/vg_guest/lv_swap: swap\n"
18206 " ><fs> mount /dev/vg_guest/lv_root /\n"
18207 " ><fs> cat /etc/fstab\n"
18208 " # /etc/fstab\n"
18209 " # Created by anaconda\n"
18210 " [...]\n"
18211 " ><fs> exit\n"
18212 "\n"
18213 msgstr ""
18214
18215 #. type: =head2
18216 #: ../fish/guestfish.pod:67
18217 msgid "From shell scripts"
18218 msgstr ""
18219
18220 #. type: textblock
18221 #: ../fish/guestfish.pod:69
18222 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18223 msgstr ""
18224
18225 #. type: verbatim
18226 #: ../fish/guestfish.pod:71
18227 #, no-wrap
18228 msgid ""
18229 " guestfish <<_EOF_\n"
18230 " add disk.img\n"
18231 " run\n"
18232 " mount /dev/vg_guest/lv_root /\n"
18233 " write /etc/motd \"Welcome, new users\"\n"
18234 " _EOF_\n"
18235 "\n"
18236 msgstr ""
18237
18238 #. type: textblock
18239 #: ../fish/guestfish.pod:78
18240 msgid "List the LVM logical volumes in a disk image:"
18241 msgstr ""
18242
18243 #. type: verbatim
18244 #: ../fish/guestfish.pod:80
18245 #, no-wrap
18246 msgid ""
18247 " guestfish -a disk.img --ro <<_EOF_\n"
18248 " run\n"
18249 " lvs\n"
18250 " _EOF_\n"
18251 "\n"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:85
18256 msgid "List all the filesystems in a disk image:"
18257 msgstr ""
18258
18259 #. type: verbatim
18260 #: ../fish/guestfish.pod:87
18261 #, no-wrap
18262 msgid ""
18263 " guestfish -a disk.img --ro <<_EOF_\n"
18264 " run\n"
18265 " list-filesystems\n"
18266 " _EOF_\n"
18267 "\n"
18268 msgstr ""
18269
18270 #. type: =head2
18271 #: ../fish/guestfish.pod:92
18272 msgid "On one command line"
18273 msgstr ""
18274
18275 #. type: textblock
18276 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18277 msgid "Update C</etc/resolv.conf> in a guest:"
18278 msgstr ""
18279
18280 #. type: verbatim
18281 #: ../fish/guestfish.pod:96
18282 #, no-wrap
18283 msgid ""
18284 " guestfish \\\n"
18285 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18286 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18287 "\n"
18288 msgstr ""
18289
18290 #. type: textblock
18291 #: ../fish/guestfish.pod:100
18292 msgid "Edit C</boot/grub/grub.conf> interactively:"
18293 msgstr ""
18294
18295 #. type: verbatim
18296 #: ../fish/guestfish.pod:102
18297 #, no-wrap
18298 msgid ""
18299 " guestfish --rw --add disk.img \\\n"
18300 "   --mount /dev/vg_guest/lv_root \\\n"
18301 "   --mount /dev/sda1:/boot \\\n"
18302 "   edit /boot/grub/grub.conf\n"
18303 "\n"
18304 msgstr ""
18305
18306 #. type: =head2
18307 #: ../fish/guestfish.pod:107
18308 msgid "Mount disks automatically"
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/guestfish.pod:109
18313 msgid ""
18314 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18315 msgstr ""
18316
18317 #. type: verbatim
18318 #: ../fish/guestfish.pod:112
18319 #, no-wrap
18320 msgid ""
18321 " guestfish --ro -a disk.img -i cat /etc/group\n"
18322 "\n"
18323 msgstr ""
18324
18325 #. type: verbatim
18326 #: ../fish/guestfish.pod:114
18327 #, no-wrap
18328 msgid ""
18329 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18330 "\n"
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../fish/guestfish.pod:116
18335 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18336 msgstr ""
18337
18338 #. type: verbatim
18339 #: ../fish/guestfish.pod:118
18340 #, no-wrap
18341 msgid ""
18342 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18343 "\n"
18344 msgstr ""
18345
18346 #. type: =head2
18347 #: ../fish/guestfish.pod:120
18348 msgid "As a script interpreter"
18349 msgstr ""
18350
18351 #. type: textblock
18352 #: ../fish/guestfish.pod:122
18353 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18354 msgstr ""
18355
18356 #. type: verbatim
18357 #: ../fish/guestfish.pod:124
18358 #, no-wrap
18359 msgid ""
18360 " #!/usr/bin/guestfish -f\n"
18361 " sparse test1.img 100M\n"
18362 " run\n"
18363 " part-disk /dev/sda mbr\n"
18364 " mkfs ext2 /dev/sda1\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: =head2
18369 #: ../fish/guestfish.pod:130
18370 msgid "Start with a prepared disk"
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:132
18375 msgid ""
18376 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18377 "single ext2-formatted partition:"
18378 msgstr ""
18379
18380 #. type: verbatim
18381 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18382 #, no-wrap
18383 msgid ""
18384 " guestfish -N fs\n"
18385 "\n"
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish.pod:137
18390 msgid "To list what is available do:"
18391 msgstr ""
18392
18393 #. type: verbatim
18394 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18395 #, no-wrap
18396 msgid ""
18397 " guestfish -N help | less\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: =head2
18402 #: ../fish/guestfish.pod:141
18403 msgid "Remote control"
18404 msgstr ""
18405
18406 #. type: verbatim
18407 #: ../fish/guestfish.pod:143
18408 #, no-wrap
18409 msgid ""
18410 " eval \"`guestfish --listen`\"\n"
18411 " guestfish --remote add-ro disk.img\n"
18412 " guestfish --remote run\n"
18413 " guestfish --remote lvs\n"
18414 "\n"
18415 msgstr ""
18416
18417 #. type: textblock
18418 #: ../fish/guestfish.pod:154
18419 msgid "Displays general help on options."
18420 msgstr ""
18421
18422 #. type: =item
18423 #: ../fish/guestfish.pod:158
18424 msgid "B<--cmd-help>"
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:160
18429 msgid "Lists all available guestfish commands."
18430 msgstr ""
18431
18432 #. type: =item
18433 #: ../fish/guestfish.pod:162
18434 msgid "B<-h cmd>"
18435 msgstr ""
18436
18437 #. type: =item
18438 #: ../fish/guestfish.pod:164
18439 msgid "B<--cmd-help cmd>"
18440 msgstr ""
18441
18442 #. type: textblock
18443 #: ../fish/guestfish.pod:166
18444 msgid "Displays detailed help on a single command C<cmd>."
18445 msgstr ""
18446
18447 #. type: =item
18448 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18449 msgid "B<-a image>"
18450 msgstr ""
18451
18452 #. type: =item
18453 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18454 msgid "B<--add image>"
18455 msgstr ""
18456
18457 #. type: textblock
18458 #: ../fish/guestfish.pod:172
18459 msgid "Add a block device or virtual machine image to the shell."
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:177
18464 msgid ""
18465 "Using this flag is mostly equivalent to using the C<add> command, with "
18466 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18467 "the I<--format=...> flag was given."
18468 msgstr ""
18469
18470 #. type: textblock
18471 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18472 msgid ""
18473 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18474 "URI to use.  The default is to use the default libvirt connection."
18475 msgstr ""
18476
18477 #. type: =item
18478 #: ../fish/guestfish.pod:189
18479 msgid "B<--csh>"
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fish/guestfish.pod:191
18484 msgid ""
18485 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18486 "section L</REMOTE CONTROL AND CSH> below."
18487 msgstr ""
18488
18489 #. type: =item
18490 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18491 msgid "B<-d libvirt-domain>"
18492 msgstr ""
18493
18494 #. type: =item
18495 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18496 msgid "B<--domain libvirt-domain>"
18497 msgstr ""
18498
18499 #. type: textblock
18500 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18501 msgid ""
18502 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18503 "used, then any libvirt domain can be used.  However in write mode, only "
18504 "libvirt domains which are shut down can be named here."
18505 msgstr ""
18506
18507 #. type: textblock
18508 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18509 msgid "Domain UUIDs can be used instead of names."
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:204
18514 msgid ""
18515 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18516 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18517 "if the I<--format:...> flag was given."
18518 msgstr ""
18519
18520 #. type: =item
18521 #: ../fish/guestfish.pod:208
18522 msgid "B<-D>"
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:210
18527 msgid "B<--no-dest-paths>"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:212
18532 msgid ""
18533 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18534 "to hit the tab key to complete paths on the guest filesystem, but this "
18535 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18536 "allow this feature to be disabled."
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18541 msgid ""
18542 "When prompting for keys and passphrases, guestfish normally turns echoing "
18543 "off so you cannot see what you are typing.  If you are not worried about "
18544 "Tempest attacks and there is no one else in the room you can specify this "
18545 "flag to see what you are typing."
18546 msgstr ""
18547
18548 #. type: =item
18549 #: ../fish/guestfish.pod:224
18550 msgid "B<-f file>"
18551 msgstr ""
18552
18553 #. type: =item
18554 #: ../fish/guestfish.pod:226
18555 msgid "B<--file file>"
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../fish/guestfish.pod:228
18560 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish.pod:231
18565 #, no-wrap
18566 msgid ""
18567 " #!/usr/bin/guestfish -f\n"
18568 "\n"
18569 msgstr ""
18570
18571 #. type: verbatim
18572 #: ../fish/guestfish.pod:244
18573 #, no-wrap
18574 msgid ""
18575 " guestfish --format=raw -a disk.img\n"
18576 "\n"
18577 msgstr ""
18578
18579 #. type: verbatim
18580 #: ../fish/guestfish.pod:248
18581 #, no-wrap
18582 msgid ""
18583 " guestfish --format=raw -a disk.img --format -a another.img\n"
18584 "\n"
18585 msgstr ""
18586
18587 #. type: textblock
18588 #: ../fish/guestfish.pod:253
18589 msgid ""
18590 "If you have untrusted raw-format guest disk images, you should use this "
18591 "option to specify the disk format.  This avoids a possible security problem "
18592 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18593 msgstr ""
18594
18595 #. type: =item
18596 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18597 msgid "B<--inspector>"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18602 msgid ""
18603 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18604 "system and mount filesystems as they would be mounted on the real virtual "
18605 "machine."
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:266
18610 msgid "Typical usage is either:"
18611 msgstr ""
18612
18613 #. type: verbatim
18614 #: ../fish/guestfish.pod:268
18615 #, no-wrap
18616 msgid ""
18617 " guestfish -d myguest -i\n"
18618 "\n"
18619 msgstr ""
18620
18621 #. type: textblock
18622 #: ../fish/guestfish.pod:270
18623 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:272
18628 #, no-wrap
18629 msgid ""
18630 " guestfish --ro -d myguest -i\n"
18631 "\n"
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/guestfish.pod:274
18636 msgid "(for active domains, readonly), or specify the block device directly:"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish.pod:276
18641 #, no-wrap
18642 msgid ""
18643 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:278
18649 msgid ""
18650 "Note that the command line syntax changed slightly over older versions of "
18651 "guestfish.  You can still use the old syntax:"
18652 msgstr ""
18653
18654 #. type: verbatim
18655 #: ../fish/guestfish.pod:281
18656 #, no-wrap
18657 msgid ""
18658 " guestfish [--ro] -i disk.img\n"
18659 "\n"
18660 msgstr ""
18661
18662 #. type: verbatim
18663 #: ../fish/guestfish.pod:283
18664 #, no-wrap
18665 msgid ""
18666 " guestfish [--ro] -i libvirt-domain\n"
18667 "\n"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:285
18672 msgid ""
18673 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18674 "then using other commands to mount the filesystems that were found."
18675 msgstr ""
18676
18677 #. type: =item
18678 #: ../fish/guestfish.pod:294
18679 msgid "B<--listen>"
18680 msgstr ""
18681
18682 #. type: textblock
18683 #: ../fish/guestfish.pod:296
18684 msgid ""
18685 "Fork into the background and listen for remote commands.  See section L</"
18686 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18687 msgstr ""
18688
18689 #. type: =item
18690 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18691 msgid "B<--live>"
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18696 msgid ""
18697 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18698 "ATTACHING TO RUNNING DAEMONS>)."
18699 msgstr ""
18700
18701 #. type: =item
18702 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18703 msgid "B<-m dev[:mountpoint[:options]]>"
18704 msgstr ""
18705
18706 #. type: =item
18707 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18708 msgid "B<--mount dev[:mountpoint[:options]]>"
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/guestfish.pod:308
18713 msgid "Mount the named partition or logical volume on the given mountpoint."
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish.pod:310
18718 msgid "If the mountpoint is omitted, it defaults to C</>."
18719 msgstr ""
18720
18721 #. type: textblock
18722 #: ../fish/guestfish.pod:312
18723 msgid "You have to mount something on C</> before most commands will work."
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:314
18728 msgid ""
18729 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18730 "launched."
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:317
18735 msgid ""
18736 "If you don't know what filesystems a disk image contains, you can either run "
18737 "guestfish without this option, then list the partitions, filesystems and LVs "
18738 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18739 "commands), or you can use the L<virt-filesystems(1)> program."
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18744 msgid ""
18745 "The third (and rarely used) part of the mount parameter is the list of mount "
18746 "options used to mount the underlying filesystem.  If this is not given, then "
18747 "the mount options are either the empty string or C<ro> (the latter if the "
18748 "I<--ro> flag is used).  By specifying the mount options, you override this "
18749 "default choice.  Probably the only time you would use this is to enable ACLs "
18750 "and/or extended attributes if the filesystem can support them:"
18751 msgstr ""
18752
18753 #. type: verbatim
18754 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18755 #, no-wrap
18756 msgid ""
18757 " -m /dev/sda1:/:acl,user_xattr\n"
18758 "\n"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:333
18763 msgid "Using this flag is equivalent to using the C<mount-options> command."
18764 msgstr ""
18765
18766 #. type: =item
18767 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18768 #: ../resize/virt-resize.pod:435
18769 msgid "B<-n>"
18770 msgstr ""
18771
18772 #. type: =item
18773 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18774 msgid "B<--no-sync>"
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fish/guestfish.pod:339
18779 msgid ""
18780 "Disable autosync.  This is enabled by default.  See the discussion of "
18781 "autosync in the L<guestfs(3)> manpage."
18782 msgstr ""
18783
18784 #. type: =item
18785 #: ../fish/guestfish.pod:342
18786 msgid "B<-N type>"
18787 msgstr ""
18788
18789 #. type: =item
18790 #: ../fish/guestfish.pod:344
18791 msgid "B<--new type>"
18792 msgstr ""
18793
18794 #. type: =item
18795 #: ../fish/guestfish.pod:346
18796 msgid "B<-N help>"
18797 msgstr ""
18798
18799 #. type: textblock
18800 #: ../fish/guestfish.pod:348
18801 msgid ""
18802 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18803 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18804 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18805 "IMAGES> below."
18806 msgstr ""
18807
18808 #. type: =item
18809 #: ../fish/guestfish.pod:353
18810 msgid "B<--progress-bars>"
18811 msgstr ""
18812
18813 #. type: textblock
18814 #: ../fish/guestfish.pod:355
18815 msgid "Enable progress bars, even when guestfish is used non-interactively."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:357
18820 msgid ""
18821 "Progress bars are enabled by default when guestfish is used as an "
18822 "interactive shell."
18823 msgstr ""
18824
18825 #. type: =item
18826 #: ../fish/guestfish.pod:360
18827 msgid "B<--no-progress-bars>"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/guestfish.pod:362
18832 msgid "Disable progress bars."
18833 msgstr ""
18834
18835 #. type: =item
18836 #: ../fish/guestfish.pod:364
18837 msgid "B<--remote[=pid]>"
18838 msgstr ""
18839
18840 #. type: textblock
18841 #: ../fish/guestfish.pod:366
18842 msgid ""
18843 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18844 "CONTROL GUESTFISH OVER A SOCKET> below."
18845 msgstr ""
18846
18847 #. type: =item
18848 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18849 #: ../rescue/virt-rescue.pod:161
18850 msgid "B<-r>"
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18855 #: ../rescue/virt-rescue.pod:163
18856 msgid "B<--ro>"
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fish/guestfish.pod:373
18861 msgid ""
18862 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18863 "mounts are done read-only."
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18868 msgid ""
18869 "The option must always be used if the disk image or virtual machine might be "
18870 "running, and is generally recommended in cases where you don't need write "
18871 "access to the disk."
18872 msgstr ""
18873
18874 #. type: textblock
18875 #: ../fish/guestfish.pod:380
18876 msgid ""
18877 "Note that prepared disk images created with I<-N> are not affected by this "
18878 "option.  Also commands like C<add> are not affected - you have to specify "
18879 "the C<readonly:true> option explicitly if you need it."
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:384
18884 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18885 msgstr ""
18886
18887 #. type: =item
18888 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18889 #: ../rescue/virt-rescue.pod:173
18890 msgid "B<--selinux>"
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:388
18895 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:394
18900 msgid ""
18901 "Enable very verbose messages.  This is particularly useful if you find a bug."
18902 msgstr ""
18903
18904 #. type: textblock
18905 #: ../fish/guestfish.pod:401
18906 msgid "Display the guestfish / libguestfs version number and exit."
18907 msgstr ""
18908
18909 #. type: =item
18910 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18911 #: ../rescue/virt-rescue.pod:194
18912 msgid "B<-w>"
18913 msgstr ""
18914
18915 #. type: =item
18916 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18917 #: ../rescue/virt-rescue.pod:196
18918 msgid "B<--rw>"
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18923 msgid ""
18924 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18925 "mounts are done read-write."
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../fish/guestfish.pod:410
18930 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18931 msgstr ""
18932
18933 #. type: textblock
18934 #: ../fish/guestfish.pod:414
18935 msgid "Echo each command before executing it."
18936 msgstr ""
18937
18938 #. type: =head1
18939 #: ../fish/guestfish.pod:418
18940 msgid "COMMANDS ON COMMAND LINE"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fish/guestfish.pod:420
18945 msgid ""
18946 "Any additional (non-option) arguments are treated as commands to execute."
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../fish/guestfish.pod:423
18951 msgid ""
18952 "Commands to execute should be separated by a colon (C<:>), where the colon "
18953 "is a separate parameter.  Thus:"
18954 msgstr ""
18955
18956 #. type: verbatim
18957 #: ../fish/guestfish.pod:426
18958 #, no-wrap
18959 msgid ""
18960 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18961 "\n"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:428
18966 msgid ""
18967 "If there are no additional arguments, then we enter a shell, either an "
18968 "interactive shell with a prompt (if the input is a terminal) or a non-"
18969 "interactive shell."
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/guestfish.pod:432
18974 msgid ""
18975 "In either command line mode or non-interactive shell, the first command that "
18976 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18977 "prompt) if a command fails, you can continue to enter commands."
18978 msgstr ""
18979
18980 #. type: =head1
18981 #: ../fish/guestfish.pod:437
18982 msgid "USING launch (OR run)"
18983 msgstr ""
18984
18985 #. type: textblock
18986 #: ../fish/guestfish.pod:439
18987 msgid ""
18988 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18989 "then launch it, then mount any disks you need, and finally issue actions/"
18990 "commands.  So the general order of the day is:"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:447
18995 msgid "add or -a/--add"
18996 msgstr ""
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:451
19000 msgid "launch (aka run)"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/guestfish.pod:455
19005 msgid "mount or -m/--mount"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../fish/guestfish.pod:459
19010 msgid "any other commands"
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fish/guestfish.pod:463
19015 msgid ""
19016 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19017 "guest before mounting or performing any other commands."
19018 msgstr ""
19019
19020 #. type: textblock
19021 #: ../fish/guestfish.pod:466
19022 msgid ""
19023 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19024 "I<--new> options were given then C<run> is done automatically, simply "
19025 "because guestfish can't perform the action you asked for without doing this."
19026 msgstr ""
19027
19028 #. type: =head1
19029 #: ../fish/guestfish.pod:471
19030 msgid "OPENING DISKS FOR READ AND WRITE"
19031 msgstr ""
19032
19033 #. type: textblock
19034 #: ../fish/guestfish.pod:473
19035 msgid ""
19036 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19037 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19038 "I<-i> and I<-m> open disk images read-only or for writing."
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:478
19043 msgid ""
19044 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19045 "opening disk images supplied on the command line for write.  To open a disk "
19046 "image read-only you have to do I<-a image --ro>."
19047 msgstr ""
19048
19049 #. type: textblock
19050 #: ../fish/guestfish.pod:482
19051 msgid ""
19052 "This matters: If you accidentally open a live VM disk image writable then "
19053 "you will cause irreversible disk corruption."
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fish/guestfish.pod:485
19058 msgid ""
19059 "In a future libguestfs we intend to change the default the other way.  Disk "
19060 "images will be opened read-only.  You will have to either specify "
19061 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19062 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19063 "access for disk images specified by those other command line options."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:492
19068 msgid ""
19069 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19070 "which does nothing (it is already the default).  However it is highly "
19071 "recommended that you use this option to indicate that you need write access, "
19072 "and prepare your scripts for the day when this option will be required for "
19073 "write access."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish.pod:498
19078 msgid ""
19079 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19080 "other libguestfs program apart from guestfish and guestmount."
19081 msgstr ""
19082
19083 #. type: =head1
19084 #: ../fish/guestfish.pod:501
19085 msgid "QUOTING"
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:503
19090 msgid ""
19091 "You can quote ordinary parameters using either single or double quotes.  For "
19092 "example:"
19093 msgstr ""
19094
19095 #. type: verbatim
19096 #: ../fish/guestfish.pod:506
19097 #, no-wrap
19098 msgid ""
19099 " add \"file with a space.img\"\n"
19100 "\n"
19101 msgstr ""
19102
19103 #. type: verbatim
19104 #: ../fish/guestfish.pod:508
19105 #, no-wrap
19106 msgid ""
19107 " rm '/file name'\n"
19108 "\n"
19109 msgstr ""
19110
19111 #. type: verbatim
19112 #: ../fish/guestfish.pod:510
19113 #, no-wrap
19114 msgid ""
19115 " rm '/\"'\n"
19116 "\n"
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish.pod:512
19121 msgid ""
19122 "A few commands require a list of strings to be passed.  For these, use a "
19123 "whitespace-separated list, enclosed in quotes.  Strings containing "
19124 "whitespace to be passed through must be enclosed in single quotes.  A "
19125 "literal single quote must be escaped with a backslash."
19126 msgstr ""
19127
19128 #. type: verbatim
19129 #: ../fish/guestfish.pod:517
19130 #, no-wrap
19131 msgid ""
19132 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19133 " command \"/bin/echo 'foo      bar'\"\n"
19134 " command \"/bin/echo \\'foo\\'\"\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: =head2
19139 #: ../fish/guestfish.pod:521
19140 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:523
19145 msgid ""
19146 "In double-quoted arguments (only) use backslash to insert special characters:"
19147 msgstr ""
19148
19149 #. type: =item
19150 #: ../fish/guestfish.pod:528
19151 msgid "C<\\a>"
19152 msgstr ""
19153
19154 #. type: textblock
19155 #: ../fish/guestfish.pod:530
19156 msgid "Alert (bell) character."
19157 msgstr ""
19158
19159 #. type: =item
19160 #: ../fish/guestfish.pod:532
19161 msgid "C<\\b>"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/guestfish.pod:534
19166 msgid "Backspace character."
19167 msgstr ""
19168
19169 #. type: =item
19170 #: ../fish/guestfish.pod:536
19171 msgid "C<\\f>"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:538
19176 msgid "Form feed character."
19177 msgstr ""
19178
19179 #. type: =item
19180 #: ../fish/guestfish.pod:540
19181 msgid "C<\\n>"
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:542
19186 msgid "Newline character."
19187 msgstr ""
19188
19189 #. type: =item
19190 #: ../fish/guestfish.pod:544
19191 msgid "C<\\r>"
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fish/guestfish.pod:546
19196 msgid "Carriage return character."
19197 msgstr ""
19198
19199 #. type: =item
19200 #: ../fish/guestfish.pod:548
19201 msgid "C<\\t>"
19202 msgstr ""
19203
19204 #. type: textblock
19205 #: ../fish/guestfish.pod:550
19206 msgid "Horizontal tab character."
19207 msgstr ""
19208
19209 #. type: =item
19210 #: ../fish/guestfish.pod:552
19211 msgid "C<\\v>"
19212 msgstr ""
19213
19214 #. type: textblock
19215 #: ../fish/guestfish.pod:554
19216 msgid "Vertical tab character."
19217 msgstr ""
19218
19219 #. type: =item
19220 #: ../fish/guestfish.pod:556
19221 msgid "C<\\\">"
19222 msgstr ""
19223
19224 #. type: textblock
19225 #: ../fish/guestfish.pod:558
19226 msgid "A literal double quote character."
19227 msgstr ""
19228
19229 #. type: =item
19230 #: ../fish/guestfish.pod:560
19231 msgid "C<\\ooo>"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:562
19236 msgid ""
19237 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19238 "(unlike C)."
19239 msgstr ""
19240
19241 #. type: =item
19242 #: ../fish/guestfish.pod:565
19243 msgid "C<\\xhh>"
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../fish/guestfish.pod:567
19248 msgid ""
19249 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish.pod:570
19254 msgid ""
19255 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19256 "strings."
19257 msgstr ""
19258
19259 #. type: =item
19260 #: ../fish/guestfish.pod:573
19261 msgid "C<\\\\>"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:575
19266 msgid "A literal backslash character."
19267 msgstr ""
19268
19269 #. type: =head1
19270 #: ../fish/guestfish.pod:579
19271 msgid "OPTIONAL ARGUMENTS"
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:581
19276 msgid ""
19277 "Some commands take optional arguments.  These arguments appear in this "
19278 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19279 msgstr ""
19280
19281 #. type: verbatim
19282 #: ../fish/guestfish.pod:585
19283 #, no-wrap
19284 msgid ""
19285 " add-drive-opts filename\n"
19286 "\n"
19287 msgstr ""
19288
19289 #. type: verbatim
19290 #: ../fish/guestfish.pod:587
19291 #, no-wrap
19292 msgid ""
19293 " add-drive-opts filename readonly:true\n"
19294 "\n"
19295 msgstr ""
19296
19297 #. type: verbatim
19298 #: ../fish/guestfish.pod:589
19299 #, no-wrap
19300 msgid ""
19301 " add-drive-opts filename format:qcow2 readonly:false\n"
19302 "\n"
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fish/guestfish.pod:591
19307 msgid ""
19308 "Each optional argument can appear at most once.  All optional arguments must "
19309 "appear after the required ones."
19310 msgstr ""
19311
19312 #. type: =head1
19313 #: ../fish/guestfish.pod:594
19314 msgid "NUMBERS"
19315 msgstr ""
19316
19317 #. type: textblock
19318 #: ../fish/guestfish.pod:596
19319 msgid ""
19320 "This section applies to all commands which can take integers as parameters."
19321 msgstr ""
19322
19323 #. type: =head2
19324 #: ../fish/guestfish.pod:599
19325 msgid "SIZE SUFFIX"
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:601
19330 msgid ""
19331 "When the command takes a parameter measured in bytes, you can use one of the "
19332 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19333 msgstr ""
19334
19335 #. type: =item
19336 #: ../fish/guestfish.pod:607
19337 msgid "B<k> or B<K> or B<KiB>"
19338 msgstr ""
19339
19340 #. type: textblock
19341 #: ../fish/guestfish.pod:609
19342 msgid "The size in kilobytes (multiplied by 1024)."
19343 msgstr ""
19344
19345 #. type: =item
19346 #: ../fish/guestfish.pod:611
19347 msgid "B<KB>"
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fish/guestfish.pod:613
19352 msgid "The size in SI 1000 byte units."
19353 msgstr ""
19354
19355 #. type: =item
19356 #: ../fish/guestfish.pod:615
19357 msgid "B<M> or B<MiB>"
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/guestfish.pod:617
19362 msgid "The size in megabytes (multiplied by 1048576)."
19363 msgstr ""
19364
19365 #. type: =item
19366 #: ../fish/guestfish.pod:619
19367 msgid "B<MB>"
19368 msgstr ""
19369
19370 #. type: textblock
19371 #: ../fish/guestfish.pod:621
19372 msgid "The size in SI 1000000 byte units."
19373 msgstr ""
19374
19375 #. type: =item
19376 #: ../fish/guestfish.pod:623
19377 msgid "B<G> or B<GiB>"
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:625
19382 msgid "The size in gigabytes (multiplied by 2**30)."
19383 msgstr ""
19384
19385 #. type: =item
19386 #: ../fish/guestfish.pod:627
19387 msgid "B<GB>"
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:629
19392 msgid "The size in SI 10**9 byte units."
19393 msgstr ""
19394
19395 #. type: =item
19396 #: ../fish/guestfish.pod:631
19397 msgid "B<T> or B<TiB>"
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:633
19402 msgid "The size in terabytes (multiplied by 2**40)."
19403 msgstr ""
19404
19405 #. type: =item
19406 #: ../fish/guestfish.pod:635
19407 msgid "B<TB>"
19408 msgstr ""
19409
19410 #. type: textblock
19411 #: ../fish/guestfish.pod:637
19412 msgid "The size in SI 10**12 byte units."
19413 msgstr ""
19414
19415 #. type: =item
19416 #: ../fish/guestfish.pod:639
19417 msgid "B<P> or B<PiB>"
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../fish/guestfish.pod:641
19422 msgid "The size in petabytes (multiplied by 2**50)."
19423 msgstr ""
19424
19425 #. type: =item
19426 #: ../fish/guestfish.pod:643
19427 msgid "B<PB>"
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:645
19432 msgid "The size in SI 10**15 byte units."
19433 msgstr ""
19434
19435 #. type: =item
19436 #: ../fish/guestfish.pod:647
19437 msgid "B<E> or B<EiB>"
19438 msgstr ""
19439
19440 #. type: textblock
19441 #: ../fish/guestfish.pod:649
19442 msgid "The size in exabytes (multiplied by 2**60)."
19443 msgstr ""
19444
19445 #. type: =item
19446 #: ../fish/guestfish.pod:651
19447 msgid "B<EB>"
19448 msgstr ""
19449
19450 #. type: textblock
19451 #: ../fish/guestfish.pod:653
19452 msgid "The size in SI 10**18 byte units."
19453 msgstr ""
19454
19455 #. type: =item
19456 #: ../fish/guestfish.pod:655
19457 msgid "B<Z> or B<ZiB>"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:657
19462 msgid "The size in zettabytes (multiplied by 2**70)."
19463 msgstr ""
19464
19465 #. type: =item
19466 #: ../fish/guestfish.pod:659
19467 msgid "B<ZB>"
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:661
19472 msgid "The size in SI 10**21 byte units."
19473 msgstr ""
19474
19475 #. type: =item
19476 #: ../fish/guestfish.pod:663
19477 msgid "B<Y> or B<YiB>"
19478 msgstr ""
19479
19480 #. type: textblock
19481 #: ../fish/guestfish.pod:665
19482 msgid "The size in yottabytes (multiplied by 2**80)."
19483 msgstr ""
19484
19485 #. type: =item
19486 #: ../fish/guestfish.pod:667
19487 msgid "B<YB>"
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:669
19492 msgid "The size in SI 10**24 byte units."
19493 msgstr ""
19494
19495 #. type: verbatim
19496 #: ../fish/guestfish.pod:675
19497 #, no-wrap
19498 msgid ""
19499 " truncate-size /file 1G\n"
19500 "\n"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:677
19505 msgid "would truncate the file to 1 gigabyte."
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:679
19510 msgid ""
19511 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19512 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19513 "suffix will probably not do what you expect."
19514 msgstr ""
19515
19516 #. type: =head2
19517 #: ../fish/guestfish.pod:683
19518 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../fish/guestfish.pod:685
19523 msgid ""
19524 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19525 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19526 msgstr ""
19527
19528 #. type: verbatim
19529 #: ../fish/guestfish.pod:688
19530 #, no-wrap
19531 msgid ""
19532 " 1234      decimal number 1234\n"
19533 " 02322     octal number, equivalent to decimal 1234\n"
19534 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19535 "\n"
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../fish/guestfish.pod:692
19540 msgid ""
19541 "When using the C<chmod> command, you almost always want to specify an octal "
19542 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19543 "L<chmod(1)> program):"
19544 msgstr ""
19545
19546 #. type: verbatim
19547 #: ../fish/guestfish.pod:696
19548 #, no-wrap
19549 msgid ""
19550 " chmod 0777 /public  # OK\n"
19551 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:699
19557 msgid ""
19558 "Commands that return numbers usually print them in decimal, but some "
19559 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19560 "octal, preceeded by C<0>)."
19561 msgstr ""
19562
19563 #. type: =head1
19564 #: ../fish/guestfish.pod:703
19565 msgid "WILDCARDS AND GLOBBING"
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../fish/guestfish.pod:705
19570 msgid ""
19571 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19572 "(globbing) by default.  So for example the following will not do what you "
19573 "expect:"
19574 msgstr ""
19575
19576 #. type: verbatim
19577 #: ../fish/guestfish.pod:709
19578 #, no-wrap
19579 msgid ""
19580 " rm-rf /home/*\n"
19581 "\n"
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:711
19586 msgid ""
19587 "Assuming you don't have a directory called literally C</home/*> then the "
19588 "above command will return an error."
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../fish/guestfish.pod:714
19593 msgid "To perform wildcard expansion, use the C<glob> command."
19594 msgstr ""
19595
19596 #. type: verbatim
19597 #: ../fish/guestfish.pod:716
19598 #, no-wrap
19599 msgid ""
19600 " glob rm-rf /home/*\n"
19601 "\n"
19602 msgstr ""
19603
19604 #. type: textblock
19605 #: ../fish/guestfish.pod:718
19606 msgid ""
19607 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19608 "many times), equivalent to:"
19609 msgstr ""
19610
19611 #. type: verbatim
19612 #: ../fish/guestfish.pod:721
19613 #, no-wrap
19614 msgid ""
19615 " rm-rf /home/jim\n"
19616 " rm-rf /home/joe\n"
19617 " rm-rf /home/mary\n"
19618 "\n"
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../fish/guestfish.pod:725
19623 msgid "C<glob> only works on simple guest paths and not on device names."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fish/guestfish.pod:727
19628 msgid ""
19629 "If you have several parameters, each containing a wildcard, then glob will "
19630 "perform a Cartesian product."
19631 msgstr ""
19632
19633 #. type: =head1
19634 #: ../fish/guestfish.pod:730
19635 msgid "COMMENTS"
19636 msgstr ""
19637
19638 #. type: textblock
19639 #: ../fish/guestfish.pod:732
19640 msgid ""
19641 "Any line which starts with a I<#> character is treated as a comment and "
19642 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19643 "a command.  For example:"
19644 msgstr ""
19645
19646 #. type: verbatim
19647 #: ../fish/guestfish.pod:736
19648 #, no-wrap
19649 msgid ""
19650 " # this is a comment\n"
19651 "         # this is a comment\n"
19652 " foo # NOT a comment\n"
19653 "\n"
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:740
19658 msgid "Blank lines are also ignored."
19659 msgstr ""
19660
19661 #. type: =head1
19662 #: ../fish/guestfish.pod:742
19663 msgid "RUNNING COMMANDS LOCALLY"
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:744
19668 msgid ""
19669 "Any line which starts with a I<!> character is treated as a command sent to "
19670 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19671 msgstr ""
19672
19673 #. type: verbatim
19674 #: ../fish/guestfish.pod:748
19675 #, no-wrap
19676 msgid ""
19677 " !mkdir local\n"
19678 " tgz-out /remote local/remote-data.tar.gz\n"
19679 "\n"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:751
19684 msgid ""
19685 "will create a directory C<local> on the host, and then export the contents "
19686 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19687 "(See C<tgz-out>)."
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/guestfish.pod:755
19692 msgid ""
19693 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19694 "effect, due to the way that subprocesses work in Unix."
19695 msgstr ""
19696
19697 #. type: =head2
19698 #: ../fish/guestfish.pod:758
19699 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19700 msgstr ""
19701
19702 #. type: textblock
19703 #: ../fish/guestfish.pod:760
19704 msgid ""
19705 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19706 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19707 "and executed as guestfish commands."
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../fish/guestfish.pod:764
19712 msgid ""
19713 "Thus you can use shell script to construct arbitrary guestfish commands "
19714 "which are then parsed by guestfish."
19715 msgstr ""
19716
19717 #. type: textblock
19718 #: ../fish/guestfish.pod:767
19719 msgid ""
19720 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19721 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19722 "if we use a shell script to create the guestfish commands for us:"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../fish/guestfish.pod:772
19727 #, no-wrap
19728 msgid ""
19729 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: textblock
19734 #: ../fish/guestfish.pod:774
19735 msgid "or with names like C</foo.001>:"
19736 msgstr ""
19737
19738 #. type: verbatim
19739 #: ../fish/guestfish.pod:776
19740 #, no-wrap
19741 msgid ""
19742 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19743 "\n"
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../fish/guestfish.pod:778
19748 msgid ""
19749 "When using guestfish interactively it can be helpful to just run the shell "
19750 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19751 "ordinary I<!> local command), see what guestfish commands it would run, and "
19752 "when you are happy with those prepend the C<E<lt>> character to run the "
19753 "guestfish commands for real."
19754 msgstr ""
19755
19756 #. type: =head1
19757 #: ../fish/guestfish.pod:784
19758 msgid "PIPES"
19759 msgstr ""
19760
19761 #. type: textblock
19762 #: ../fish/guestfish.pod:786
19763 msgid ""
19764 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19765 "command (a guestfish command) to the second command (any host command).  For "
19766 "example:"
19767 msgstr ""
19768
19769 #. type: verbatim
19770 #: ../fish/guestfish.pod:790
19771 #, no-wrap
19772 msgid ""
19773 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19774 "\n"
19775 msgstr ""
19776
19777 #. type: textblock
19778 #: ../fish/guestfish.pod:792
19779 msgid ""
19780 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19781 "program).  The above command would list all accounts in the guest filesystem "
19782 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19783 msgstr ""
19784
19785 #. type: verbatim
19786 #: ../fish/guestfish.pod:797
19787 #, no-wrap
19788 msgid ""
19789 " hexdump /bin/ls | head\n"
19790 " list-devices | tail -1\n"
19791 " tgz-out / - | tar ztf -\n"
19792 "\n"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:801
19797 msgid ""
19798 "The space before the pipe symbol is required, any space after the pipe "
19799 "symbol is optional.  Everything after the pipe symbol is just passed "
19800 "straight to the host shell, so it can contain redirections, globs and "
19801 "anything else that makes sense on the host side."
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../fish/guestfish.pod:806
19806 msgid ""
19807 "To use a literal argument which begins with a pipe symbol, you have to quote "
19808 "it, eg:"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../fish/guestfish.pod:809
19813 #, no-wrap
19814 msgid ""
19815 " echo \"|\"\n"
19816 "\n"
19817 msgstr ""
19818
19819 #. type: =head1
19820 #: ../fish/guestfish.pod:811
19821 msgid "HOME DIRECTORIES"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../fish/guestfish.pod:813
19826 msgid ""
19827 "If a parameter starts with the character C<~> then the tilde may be expanded "
19828 "as a home directory path (either C<~> for the current user's home directory, "
19829 "or C<~user> for another user)."
19830 msgstr ""
19831
19832 #. type: textblock
19833 #: ../fish/guestfish.pod:817
19834 msgid ""
19835 "Note that home directory expansion happens for users known I<on the host>, "
19836 "not in the guest filesystem."
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../fish/guestfish.pod:820
19841 msgid ""
19842 "To use a literal argument which begins with a tilde, you have to quote it, "
19843 "eg:"
19844 msgstr ""
19845
19846 #. type: verbatim
19847 #: ../fish/guestfish.pod:823
19848 #, no-wrap
19849 msgid ""
19850 " echo \"~\"\n"
19851 "\n"
19852 msgstr ""
19853
19854 #. type: =head2
19855 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19856 msgid "ENCRYPTED DISKS"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/guestfish.pod:827
19861 msgid ""
19862 "Libguestfs has some support for Linux guests encrypted according to the "
19863 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19864 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19865 "LUKS is supported."
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fish/guestfish.pod:832
19870 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19871 msgstr ""
19872
19873 #. type: verbatim
19874 #: ../fish/guestfish.pod:834
19875 #, no-wrap
19876 msgid ""
19877 " ><fs> vfs-type /dev/sda2\n"
19878 " crypto_LUKS\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:837
19884 msgid ""
19885 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19886 "device called C</dev/mapper/luksdev>."
19887 msgstr ""
19888
19889 #. type: verbatim
19890 #: ../fish/guestfish.pod:840
19891 #, no-wrap
19892 msgid ""
19893 " ><fs> luks-open /dev/sda2 luksdev\n"
19894 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19895 "\n"
19896 msgstr ""
19897
19898 #. type: textblock
19899 #: ../fish/guestfish.pod:843
19900 msgid ""
19901 "Finally you have to tell LVM to scan for volume groups on the newly created "
19902 "mapper device:"
19903 msgstr ""
19904
19905 #. type: verbatim
19906 #: ../fish/guestfish.pod:846
19907 #, no-wrap
19908 msgid ""
19909 " vgscan\n"
19910 " vg-activate-all true\n"
19911 "\n"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:849
19916 msgid "The logical volume(s) can now be mounted in the usual way."
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../fish/guestfish.pod:851
19921 msgid ""
19922 "Before closing a LUKS device you must unmount any logical volumes on it and "
19923 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19924 "one.  Then you can close the mapper device:"
19925 msgstr ""
19926
19927 #. type: verbatim
19928 #: ../fish/guestfish.pod:855
19929 #, no-wrap
19930 msgid ""
19931 " vg-activate false /dev/VG\n"
19932 " luks-close /dev/mapper/luksdev\n"
19933 "\n"
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fish/guestfish.pod:860
19938 msgid ""
19939 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19940 "letters and paths (with some limitations).  The following commands are "
19941 "equivalent:"
19942 msgstr ""
19943
19944 #. type: verbatim
19945 #: ../fish/guestfish.pod:864
19946 #, no-wrap
19947 msgid ""
19948 " file /WINDOWS/system32/config/system.LOG\n"
19949 "\n"
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../fish/guestfish.pod:866
19954 #, no-wrap
19955 msgid ""
19956 " file win:\\windows\\system32\\config\\system.log\n"
19957 "\n"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fish/guestfish.pod:868
19962 #, no-wrap
19963 msgid ""
19964 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: textblock
19969 #: ../fish/guestfish.pod:870
19970 msgid ""
19971 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19972 "where the drive is mounted, prepending that to the path, changing all "
19973 "backslash characters to forward slash, then resolving the result using L</"
19974 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19975 "the parameter might be rewritten like this:"
19976 msgstr ""
19977
19978 #. type: verbatim
19979 #: ../fish/guestfish.pod:876
19980 #, no-wrap
19981 msgid ""
19982 " win:e:\\foo\\bar => /e/FOO/bar\n"
19983 "\n"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish.pod:878
19988 msgid "This only works in argument positions that expect a path."
19989 msgstr ""
19990
19991 #. type: =head1
19992 #: ../fish/guestfish.pod:880
19993 msgid "UPLOADING AND DOWNLOADING FILES"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../fish/guestfish.pod:882
19998 msgid ""
19999 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20000 "others which upload from or download to a local file, you can use the "
20001 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20002 msgstr ""
20003
20004 #. type: verbatim
20005 #: ../fish/guestfish.pod:886
20006 #, no-wrap
20007 msgid ""
20008 " upload - /foo\n"
20009 "\n"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/guestfish.pod:888
20014 msgid ""
20015 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20016 msgstr ""
20017
20018 #. type: verbatim
20019 #: ../fish/guestfish.pod:891
20020 #, no-wrap
20021 msgid ""
20022 " tar-out /etc - | tar tf -\n"
20023 "\n"
20024 msgstr ""
20025
20026 #. type: textblock
20027 #: ../fish/guestfish.pod:893
20028 msgid ""
20029 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20030 "command (see L</PIPES>)."
20031 msgstr ""
20032
20033 #. type: textblock
20034 #: ../fish/guestfish.pod:896
20035 msgid ""
20036 "When using C<-> to read from stdin, the input is read up to the end of "
20037 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20038 "some arbitrary end marker:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fish/guestfish.pod:900
20043 #, no-wrap
20044 msgid ""
20045 " upload -<<END /foo\n"
20046 " input line 1\n"
20047 " input line 2\n"
20048 " input line 3\n"
20049 " END\n"
20050 "\n"
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/guestfish.pod:906
20055 msgid ""
20056 "Any string of characters can be used instead of C<END>.  The end marker must "
20057 "appear on a line of its own, without any preceeding or following characters "
20058 "(not even spaces)."
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/guestfish.pod:910
20063 msgid ""
20064 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20065 "upload local files (so-called \"FileIn\" parameters in the generator)."
20066 msgstr ""
20067
20068 #. type: =head1
20069 #: ../fish/guestfish.pod:913
20070 msgid "EXIT ON ERROR BEHAVIOUR"
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../fish/guestfish.pod:915
20075 msgid ""
20076 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20077 "taking commands from a human over a tty), and will exit on the first error "
20078 "in non-interactive mode (scripts, commands given on the command line)."
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../fish/guestfish.pod:920
20083 msgid ""
20084 "If you prefix a command with a I<-> character, then that command will not "
20085 "cause guestfish to exit, even if that (one) command returns an error."
20086 msgstr ""
20087
20088 #. type: =head1
20089 #: ../fish/guestfish.pod:924
20090 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20091 msgstr ""
20092
20093 #. type: textblock
20094 #: ../fish/guestfish.pod:926
20095 msgid ""
20096 "Guestfish can be remote-controlled over a socket.  This is useful "
20097 "particularly in shell scripts where you want to make several different "
20098 "changes to a filesystem, but you don't want the overhead of starting up a "
20099 "guestfish process each time."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:931
20104 msgid "Start a guestfish server process using:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../fish/guestfish.pod:933
20109 #, no-wrap
20110 msgid ""
20111 " eval \"`guestfish --listen`\"\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:935
20117 msgid "and then send it commands by doing:"
20118 msgstr ""
20119
20120 #. type: verbatim
20121 #: ../fish/guestfish.pod:937
20122 #, no-wrap
20123 msgid ""
20124 " guestfish --remote cmd [...]\n"
20125 "\n"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fish/guestfish.pod:939
20130 msgid "To cause the server to exit, send it the exit command:"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:943
20135 msgid ""
20136 "Note that the server will normally exit if there is an error in a command.  "
20137 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20138 "BEHAVIOUR>."
20139 msgstr ""
20140
20141 #. type: =head2
20142 #: ../fish/guestfish.pod:947
20143 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20144 msgstr ""
20145
20146 #. type: textblock
20147 #: ../fish/guestfish.pod:949
20148 msgid ""
20149 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20150 "is how the I<--remote> option knows where to send the commands.  You can "
20151 "have several guestfish listener processes running using:"
20152 msgstr ""
20153
20154 #. type: verbatim
20155 #: ../fish/guestfish.pod:953
20156 #, no-wrap
20157 msgid ""
20158 " eval \"`guestfish --listen`\"\n"
20159 " pid1=$GUESTFISH_PID\n"
20160 " eval \"`guestfish --listen`\"\n"
20161 " pid2=$GUESTFISH_PID\n"
20162 " ...\n"
20163 " guestfish --remote=$pid1 cmd\n"
20164 " guestfish --remote=$pid2 cmd\n"
20165 "\n"
20166 msgstr ""
20167
20168 #. type: =head2
20169 #: ../fish/guestfish.pod:961
20170 msgid "REMOTE CONTROL AND CSH"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/guestfish.pod:963
20175 msgid ""
20176 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20177 "option:"
20178 msgstr ""
20179
20180 #. type: verbatim
20181 #: ../fish/guestfish.pod:966
20182 #, no-wrap
20183 msgid ""
20184 " eval \"`guestfish --listen --csh`\"\n"
20185 "\n"
20186 msgstr ""
20187
20188 #. type: =head2
20189 #: ../fish/guestfish.pod:968
20190 msgid "REMOTE CONTROL DETAILS"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/guestfish.pod:970
20195 msgid ""
20196 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20197 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20198 "and C<$PID> is the process ID of the server."
20199 msgstr ""
20200
20201 #. type: textblock
20202 #: ../fish/guestfish.pod:974
20203 msgid "Guestfish client and server versions must match exactly."
20204 msgstr ""
20205
20206 #. type: =head2
20207 #: ../fish/guestfish.pod:976
20208 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fish/guestfish.pod:978
20213 msgid ""
20214 "From Bash, you can use the following code which creates a guestfish "
20215 "instance, correctly quotes the command line, handles failure to start, and "
20216 "cleans up guestfish when the script exits:"
20217 msgstr ""
20218
20219 #. type: verbatim
20220 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20221 #, no-wrap
20222 msgid ""
20223 " #!/bin/bash -\n"
20224 " \n"
20225 msgstr ""
20226
20227 #. type: verbatim
20228 #: ../fish/guestfish.pod:986
20229 #, no-wrap
20230 msgid ""
20231 " guestfish[0]=\"guestfish\"\n"
20232 " guestfish[1]=\"--listen\"\n"
20233 " guestfish[2]=\"--ro\"\n"
20234 " guestfish[3]=\"-a\"\n"
20235 " guestfish[4]=\"disk.img\"\n"
20236 " \n"
20237 msgstr ""
20238
20239 #. type: verbatim
20240 #: ../fish/guestfish.pod:992
20241 #, no-wrap
20242 msgid ""
20243 " GUESTFISH_PID=\n"
20244 " eval $(\"${guestfish[@]}\")\n"
20245 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20246 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20247 "     exit 1\n"
20248 " fi\n"
20249 " \n"
20250 msgstr ""
20251
20252 #. type: verbatim
20253 #: ../fish/guestfish.pod:999
20254 #, no-wrap
20255 msgid ""
20256 " cleanup_guestfish ()\n"
20257 " {\n"
20258 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20259 " }\n"
20260 " trap cleanup_guestfish EXIT ERR\n"
20261 " \n"
20262 msgstr ""
20263
20264 #. type: verbatim
20265 #: ../fish/guestfish.pod:1005
20266 #, no-wrap
20267 msgid ""
20268 " guestfish --remote -- run\n"
20269 " \n"
20270 msgstr ""
20271
20272 #. type: verbatim
20273 #: ../fish/guestfish.pod:1007
20274 #, no-wrap
20275 msgid ""
20276 " # ...\n"
20277 "\n"
20278 msgstr ""
20279
20280 #. type: =head2
20281 #: ../fish/guestfish.pod:1009
20282 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20283 msgstr ""
20284
20285 #. type: textblock
20286 #: ../fish/guestfish.pod:1011
20287 msgid ""
20288 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20289 "context hangs, ie. don't do (note the backquotes):"
20290 msgstr ""
20291
20292 #. type: verbatim
20293 #: ../fish/guestfish.pod:1014
20294 #, no-wrap
20295 msgid ""
20296 " a=`guestfish --remote run`\n"
20297 "\n"
20298 msgstr ""
20299
20300 #. type: textblock
20301 #: ../fish/guestfish.pod:1016
20302 msgid ""
20303 "Since the C<run> command produces no output on stdout, this is not useful "
20304 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20305 "cgi?id=592910>."
20306 msgstr ""
20307
20308 #. type: =head1
20309 #: ../fish/guestfish.pod:1020
20310 msgid "PREPARED DISK IMAGES"
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fish/guestfish.pod:1022
20315 msgid ""
20316 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20317 "preformatted disk images that guestfish can make for you to save typing.  "
20318 "This is particularly useful for testing purposes.  This option is used "
20319 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20320 "can be mixed with I<-a>)."
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../fish/guestfish.pod:1028
20325 msgid ""
20326 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20327 "the second and so on.  Existing files in the current directory are "
20328 "I<overwritten>."
20329 msgstr ""
20330
20331 #. type: textblock
20332 #: ../fish/guestfish.pod:1032
20333 msgid ""
20334 "The type briefly describes how the disk should be sized, partitioned, how "
20335 "filesystem(s) should be created, and how content should be added.  "
20336 "Optionally the type can be followed by extra parameters, separated by C<:> "
20337 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20338 "allocated disk, containing a single partition, with the partition formatted "
20339 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20340 "disk instead."
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:1040
20345 msgid "To list the available types and any extra parameters they take, run:"
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fish/guestfish.pod:1044
20350 msgid ""
20351 "Note that the prepared filesystem is not mounted.  You would usually have to "
20352 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:1048
20357 msgid ""
20358 "If any I<-N> or I<--new> options are given, the guest is automatically "
20359 "launched."
20360 msgstr ""
20361
20362 #. type: textblock
20363 #: ../fish/guestfish.pod:1053
20364 msgid "Create a 100MB disk with an ext4-formatted partition:"
20365 msgstr ""
20366
20367 #. type: verbatim
20368 #: ../fish/guestfish.pod:1055
20369 #, no-wrap
20370 msgid ""
20371 " guestfish -N fs:ext4\n"
20372 "\n"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:1057
20377 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20378 msgstr ""
20379
20380 #. type: verbatim
20381 #: ../fish/guestfish.pod:1059
20382 #, no-wrap
20383 msgid ""
20384 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20385 "\n"
20386 msgstr ""
20387
20388 #. type: textblock
20389 #: ../fish/guestfish.pod:1061
20390 msgid "Create a blank 200MB disk:"
20391 msgstr ""
20392
20393 #. type: verbatim
20394 #: ../fish/guestfish.pod:1063
20395 #, no-wrap
20396 msgid ""
20397 " guestfish -N disk:200M\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: =head1
20402 #: ../fish/guestfish.pod:1065
20403 msgid "PROGRESS BARS"
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../fish/guestfish.pod:1067
20408 msgid ""
20409 "Some (not all) long-running commands send progress notification messages as "
20410 "they are running.  Guestfish turns these messages into progress bars."
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:1071
20415 msgid ""
20416 "When a command that supports progress bars takes longer than two seconds to "
20417 "run, and if progress bars are enabled, then you will see one appearing below "
20418 "the command:"
20419 msgstr ""
20420
20421 #. type: verbatim
20422 #: ../fish/guestfish.pod:1075
20423 #, no-wrap
20424 msgid ""
20425 " ><fs> copy-size /large-file /another-file 2048M\n"
20426 " / 10% [#####-----------------------------------------] 00:30\n"
20427 "\n"
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../fish/guestfish.pod:1078
20432 msgid ""
20433 "The spinner on the left hand side moves round once for every progress "
20434 "notification received from the backend.  This is a (reasonably) golden "
20435 "assurance that the command is \"doing something\" even if the progress bar "
20436 "is not moving, because the command is able to send the progress "
20437 "notifications.  When the bar reaches 100% and the command finishes, the "
20438 "spinner disappears."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../fish/guestfish.pod:1085
20443 msgid ""
20444 "Progress bars are enabled by default when guestfish is used interactively.  "
20445 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20446 "and you can disable them completely using I<--no-progress-bars>."
20447 msgstr ""
20448
20449 #. type: =head1
20450 #: ../fish/guestfish.pod:1090
20451 msgid "GUESTFISH COMMANDS"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:1092
20456 msgid ""
20457 "The commands in this section are guestfish convenience commands, in other "
20458 "words, they are not part of the L<guestfs(3)> API."
20459 msgstr ""
20460
20461 #. type: =head2
20462 #: ../fish/guestfish.pod:1095
20463 msgid "help"
20464 msgstr ""
20465
20466 #. type: verbatim
20467 #: ../fish/guestfish.pod:1097
20468 #, no-wrap
20469 msgid ""
20470 " help\n"
20471 " help cmd\n"
20472 "\n"
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fish/guestfish.pod:1100
20477 msgid "Without any parameter, this provides general help."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:1102
20482 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20483 msgstr ""
20484
20485 #. type: =head2
20486 #: ../fish/guestfish.pod:1104
20487 msgid "quit | exit"
20488 msgstr ""
20489
20490 #. type: textblock
20491 #: ../fish/guestfish.pod:1106
20492 msgid "This exits guestfish.  You can also use C<^D> key."
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fish/guestfish.pod:1108
20497 msgid "@FISH_COMMANDS@"
20498 msgstr ""
20499
20500 #. type: =head1
20501 #: ../fish/guestfish.pod:1110
20502 msgid "COMMANDS"
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20507 msgid "@ACTIONS@"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../fish/guestfish.pod:1116
20512 msgid ""
20513 "guestfish returns 0 if the commands completed without error, or 1 if there "
20514 "was an error."
20515 msgstr ""
20516
20517 #. type: =item
20518 #: ../fish/guestfish.pod:1123
20519 msgid "EDITOR"
20520 msgstr ""
20521
20522 #. type: textblock
20523 #: ../fish/guestfish.pod:1125
20524 msgid ""
20525 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20526 "C<vi>."
20527 msgstr ""
20528
20529 #. type: =item
20530 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20531 msgid "FEBOOTSTRAP_KERNEL"
20532 msgstr ""
20533
20534 #. type: =item
20535 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20536 msgid "FEBOOTSTRAP_MODULES"
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20541 msgid ""
20542 "These two environment variables allow the kernel that libguestfs uses in the "
20543 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20544 "most recent host kernel is chosen.  For more information about kernel "
20545 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20546 "available in febootstrap E<ge> 3.8."
20547 msgstr ""
20548
20549 #. type: =item
20550 #: ../fish/guestfish.pod:1138
20551 msgid "GUESTFISH_DISPLAY_IMAGE"
20552 msgstr ""
20553
20554 #. type: textblock
20555 #: ../fish/guestfish.pod:1140
20556 msgid ""
20557 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20558 "If not set, it uses L<display(1)>."
20559 msgstr ""
20560
20561 #. type: =item
20562 #: ../fish/guestfish.pod:1143
20563 msgid "GUESTFISH_PID"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../fish/guestfish.pod:1145
20568 msgid ""
20569 "Used with the I<--remote> option to specify the remote guestfish process to "
20570 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20571 msgstr ""
20572
20573 #. type: =item
20574 #: ../fish/guestfish.pod:1149
20575 msgid "HEXEDITOR"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:1151
20580 msgid ""
20581 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20582 "not specified, the external L<hexedit(1)> program is used."
20583 msgstr ""
20584
20585 #. type: =item
20586 #: ../fish/guestfish.pod:1155
20587 msgid "HOME"
20588 msgstr ""
20589
20590 #. type: textblock
20591 #: ../fish/guestfish.pod:1157
20592 msgid ""
20593 "If compiled with GNU readline support, various files in the home directory "
20594 "can be used.  See L</FILES>."
20595 msgstr ""
20596
20597 #. type: =item
20598 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20599 msgid "LIBGUESTFS_APPEND"
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20604 msgid "Pass additional options to the guest kernel."
20605 msgstr ""
20606
20607 #. type: =item
20608 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20609 msgid "LIBGUESTFS_DEBUG"
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fish/guestfish.pod:1166
20614 msgid ""
20615 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20616 "effect as using the B<-v> option."
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20621 msgid "LIBGUESTFS_MEMSIZE"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20626 msgid ""
20627 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20632 #, no-wrap
20633 msgid ""
20634 " LIBGUESTFS_MEMSIZE=700\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: =item
20639 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20640 msgid "LIBGUESTFS_PATH"
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fish/guestfish.pod:1178
20645 msgid ""
20646 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20647 "the discussion of paths in L<guestfs(3)>."
20648 msgstr ""
20649
20650 #. type: =item
20651 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20652 msgid "LIBGUESTFS_QEMU"
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20657 msgid ""
20658 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20659 "which was found at compile time by the configure script is used."
20660 msgstr ""
20661
20662 #. type: =item
20663 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20664 msgid "LIBGUESTFS_TRACE"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:1189
20669 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20670 msgstr ""
20671
20672 #. type: =item
20673 #: ../fish/guestfish.pod:1191
20674 msgid "PAGER"
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:1193
20679 msgid ""
20680 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20681 "C<more>."
20682 msgstr ""
20683
20684 #. type: =item
20685 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20686 #: ../src/guestfs.pod:3257
20687 msgid "TMPDIR"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20692 msgid ""
20693 "Location of temporary directory, defaults to C</tmp> except for the cached "
20694 "supermin appliance which defaults to C</var/tmp>."
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20699 msgid ""
20700 "If libguestfs was compiled to use the supermin appliance then the real "
20701 "appliance is cached in this directory, shared between all handles belonging "
20702 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20703 "use in case C</var/tmp> is not large enough."
20704 msgstr ""
20705
20706 #. type: =head1
20707 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20708 #: ../rescue/virt-rescue.pod:273
20709 msgid "FILES"
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20714 #: ../rescue/virt-rescue.pod:277
20715 msgid "$HOME/.libguestfs-tools.rc"
20716 msgstr ""
20717
20718 #. type: =item
20719 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20720 #: ../rescue/virt-rescue.pod:279
20721 msgid "/etc/libguestfs-tools.conf"
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20726 #: ../rescue/virt-rescue.pod:281
20727 msgid ""
20728 "This configuration file controls the default read-only or read-write mode "
20729 "(I<--ro> or I<--rw>)."
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/guestfish.pod:1220
20734 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20735 msgstr ""
20736
20737 #. type: =item
20738 #: ../fish/guestfish.pod:1222
20739 msgid "$HOME/.guestfish"
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../fish/guestfish.pod:1224
20744 msgid ""
20745 "If compiled with GNU readline support, then the command history is saved in "
20746 "this file."
20747 msgstr ""
20748
20749 #. type: =item
20750 #: ../fish/guestfish.pod:1227
20751 msgid "$HOME/.inputrc"
20752 msgstr ""
20753
20754 #. type: =item
20755 #: ../fish/guestfish.pod:1229
20756 msgid "/etc/inputrc"
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../fish/guestfish.pod:1231
20761 msgid ""
20762 "If compiled with GNU readline support, then these files can be used to "
20763 "configure readline.  For further information, please see L<readline(3)/"
20764 "INITIALIZATION FILE>."
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:1235
20769 msgid "To write rules which only apply to guestfish, use:"
20770 msgstr ""
20771
20772 #. type: verbatim
20773 #: ../fish/guestfish.pod:1237
20774 #, no-wrap
20775 msgid ""
20776 " $if guestfish\n"
20777 " ...\n"
20778 " $endif\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../fish/guestfish.pod:1241
20784 msgid ""
20785 "Variables that you can set in inputrc that change the behaviour of guestfish "
20786 "in useful ways include:"
20787 msgstr ""
20788
20789 #. type: =item
20790 #: ../fish/guestfish.pod:1246
20791 msgid "completion-ignore-case (default: on)"
20792 msgstr ""
20793
20794 #. type: textblock
20795 #: ../fish/guestfish.pod:1248
20796 msgid ""
20797 "By default, guestfish will ignore case when tab-completing paths on the "
20798 "disk.  Use:"
20799 msgstr ""
20800
20801 #. type: verbatim
20802 #: ../fish/guestfish.pod:1251
20803 #, no-wrap
20804 msgid ""
20805 " set completion-ignore-case off\n"
20806 "\n"
20807 msgstr ""
20808
20809 #. type: textblock
20810 #: ../fish/guestfish.pod:1253
20811 msgid "to make guestfish case sensitive."
20812 msgstr ""
20813
20814 #. type: =item
20815 #: ../fish/guestfish.pod:1257
20816 msgid "test1.img"
20817 msgstr ""
20818
20819 #. type: =item
20820 #: ../fish/guestfish.pod:1259
20821 msgid "test2.img (etc)"
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:1261
20826 msgid ""
20827 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20828 "will be created in the file C<test1.img> in the current directory.  The "
20829 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20830 "the same name will be overwritten."
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../fish/guestfish.pod:1270
20835 msgid ""
20836 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20837 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20838 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20839 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20840 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20841 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20842 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
20847 #: ../test-tool/libguestfs-test-tool.pod:112
20848 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../fish/virt-copy-in.pod:5
20853 msgid ""
20854 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20855 msgstr ""
20856
20857 #. type: verbatim
20858 #: ../fish/virt-copy-in.pod:9
20859 #, no-wrap
20860 msgid ""
20861 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20862 "\n"
20863 msgstr ""
20864
20865 #. type: verbatim
20866 #: ../fish/virt-copy-in.pod:11
20867 #, no-wrap
20868 msgid ""
20869 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20870 "\n"
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/virt-copy-in.pod:15
20875 msgid ""
20876 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20877 "causing disk corruption.  The virtual machine must be shut down before you "
20878 "use this command."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/virt-copy-in.pod:21
20883 msgid ""
20884 "C<virt-copy-in> copies files and directories from the local disk into a "
20885 "virtual machine disk image or named libvirt domain."
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../fish/virt-copy-in.pod:24
20890 msgid ""
20891 "You can give one of more filenames and directories on the command line.  "
20892 "Directories are copied in recursively.  The final parameter must be the "
20893 "destination directory in the disk image which must be an absolute path "
20894 "starting with a C</> character."
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../fish/virt-copy-in.pod:33
20899 #, no-wrap
20900 msgid ""
20901 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20902 "\n"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20907 msgid "Upload a home directory to a guest:"
20908 msgstr ""
20909
20910 #. type: verbatim
20911 #: ../fish/virt-copy-in.pod:37
20912 #, no-wrap
20913 msgid ""
20914 " virt-copy-in -d MyGuest skel /home\n"
20915 "\n"
20916 msgstr ""
20917
20918 #. type: =head1
20919 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20920 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20921 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../fish/virt-copy-in.pod:41
20926 msgid ""
20927 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20928 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20929 "are probably better off using guestfish directly."
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20934 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20935 msgid ""
20936 "Since the shell script just passes options straight to guestfish, read "
20937 "L<guestfish(1)> to see the full list of options."
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/virt-copy-in.pod:52
20942 msgid ""
20943 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20944 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20949 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20950 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../fish/virt-copy-out.pod:5
20955 msgid ""
20956 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20957 "image."
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../fish/virt-copy-out.pod:9
20962 #, no-wrap
20963 msgid ""
20964 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20965 "\n"
20966 msgstr ""
20967
20968 #. type: verbatim
20969 #: ../fish/virt-copy-out.pod:11
20970 #, no-wrap
20971 msgid ""
20972 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20973 "\n"
20974 msgstr ""
20975
20976 #. type: textblock
20977 #: ../fish/virt-copy-out.pod:15
20978 msgid ""
20979 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20980 "image or named libvirt domain."
20981 msgstr ""
20982
20983 #. type: textblock
20984 #: ../fish/virt-copy-out.pod:18
20985 msgid ""
20986 "You can give one of more filenames and directories on the command line.  "
20987 "Directories are copied out recursively."
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../fish/virt-copy-out.pod:23
20992 msgid "Download the home directories from a virtual machine:"
20993 msgstr ""
20994
20995 #. type: verbatim
20996 #: ../fish/virt-copy-out.pod:25
20997 #, no-wrap
20998 msgid ""
20999 " mkdir homes\n"
21000 " virt-copy-out -d MyGuest /home homes\n"
21001 "\n"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fish/virt-copy-out.pod:30
21006 msgid ""
21007 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21008 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21009 "are probably better off using guestfish directly."
21010 msgstr ""
21011
21012 #. type: textblock
21013 #: ../fish/virt-copy-out.pod:41
21014 msgid ""
21015 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21016 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21017 msgstr ""
21018
21019 #. type: textblock
21020 #: ../fish/virt-tar-in.pod:5
21021 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21022 msgstr ""
21023
21024 #. type: verbatim
21025 #: ../fish/virt-tar-in.pod:9
21026 #, no-wrap
21027 msgid ""
21028 " virt-tar-in -a disk.img data.tar /destination\n"
21029 "\n"
21030 msgstr ""
21031
21032 #. type: verbatim
21033 #: ../fish/virt-tar-in.pod:11
21034 #, no-wrap
21035 msgid ""
21036 " virt-tar-in -d domain data.tar /destination\n"
21037 "\n"
21038 msgstr ""
21039
21040 #. type: verbatim
21041 #: ../fish/virt-tar-in.pod:13
21042 #, no-wrap
21043 msgid ""
21044 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21045 "\n"
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../fish/virt-tar-in.pod:17
21050 msgid ""
21051 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21052 "causing disk corruption.  The virtual machine must be shut down before you "
21053 "use this command."
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fish/virt-tar-in.pod:23
21058 msgid ""
21059 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21060 "image or named libvirt domain."
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../fish/virt-tar-in.pod:26
21065 msgid ""
21066 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21067 "standard input.  The second parameter is the absolute target directory to "
21068 "unpack into."
21069 msgstr ""
21070
21071 #. type: verbatim
21072 #: ../fish/virt-tar-in.pod:34
21073 #, no-wrap
21074 msgid ""
21075 " virt-tar-in -d MyGuest homes.tar /home\n"
21076 "\n"
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/virt-tar-in.pod:38
21081 msgid ""
21082 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21083 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21084 "probably better off using guestfish directly."
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../fish/virt-tar-in.pod:49
21089 msgid ""
21090 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21091 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21092 "org/>."
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../fish/virt-tar-out.pod:5
21097 msgid ""
21098 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21099 msgstr ""
21100
21101 #. type: verbatim
21102 #: ../fish/virt-tar-out.pod:9
21103 #, no-wrap
21104 msgid ""
21105 " virt-tar-out -a disk.img /dir files.tar\n"
21106 "\n"
21107 msgstr ""
21108
21109 #. type: verbatim
21110 #: ../fish/virt-tar-out.pod:11
21111 #, no-wrap
21112 msgid ""
21113 " virt-tar-out -d domain /dir files.tar\n"
21114 "\n"
21115 msgstr ""
21116
21117 #. type: verbatim
21118 #: ../fish/virt-tar-out.pod:13
21119 #, no-wrap
21120 msgid ""
21121 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21122 "\n"
21123 msgstr ""
21124
21125 #. type: textblock
21126 #: ../fish/virt-tar-out.pod:17
21127 msgid ""
21128 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/virt-tar-out.pod:20
21133 msgid ""
21134 "The first parameter is the absolute path of the virtual machine directory.  "
21135 "The second parameter is the tar file to write.  Use C<-> to write to "
21136 "standard output."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/virt-tar-out.pod:26
21141 msgid "Download the home directories from a guest:"
21142 msgstr ""
21143
21144 #. type: verbatim
21145 #: ../fish/virt-tar-out.pod:28
21146 #, no-wrap
21147 msgid ""
21148 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21149 "\n"
21150 msgstr ""
21151
21152 #. type: textblock
21153 #: ../fish/virt-tar-out.pod:32
21154 msgid ""
21155 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21156 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21157 "are probably better off using guestfish directly."
21158 msgstr ""
21159
21160 #. type: textblock
21161 #: ../fish/virt-tar-out.pod:43
21162 msgid ""
21163 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21164 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../fuse/guestmount.pod:5
21169 msgid ""
21170 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21171 msgstr ""
21172
21173 #. type: verbatim
21174 #: ../fuse/guestmount.pod:9
21175 #, no-wrap
21176 msgid ""
21177 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21178 "\n"
21179 msgstr ""
21180
21181 #. type: verbatim
21182 #: ../fuse/guestmount.pod:11
21183 #, no-wrap
21184 msgid ""
21185 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21186 "\n"
21187 msgstr ""
21188
21189 #. type: verbatim
21190 #: ../fuse/guestmount.pod:13
21191 #, no-wrap
21192 msgid ""
21193 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21194 "\n"
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../fuse/guestmount.pod:17
21199 msgid ""
21200 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21201 "machines.  If you do this, you risk disk corruption in the VM."
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../fuse/guestmount.pod:22
21206 msgid ""
21207 "The guestmount program can be used to mount virtual machine filesystems and "
21208 "other disk images on the host.  It uses libguestfs for access to the guest "
21209 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21210 "a mountable device."
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../fuse/guestmount.pod:27
21215 msgid ""
21216 "Along with other options, you have to give at least one device (I<-a> "
21217 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21218 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21219 "this works is better explained in the L<guestfish(1)> manual page, or by "
21220 "looking at the examples below."
21221 msgstr ""
21222
21223 #. type: textblock
21224 #: ../fuse/guestmount.pod:33
21225 msgid ""
21226 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21227 "by you, and the filesystem will not be visible to any other users unless you "
21228 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21229 "the filesystem, use the C<fusermount -u> command."
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../fuse/guestmount.pod:41
21234 msgid ""
21235 "For a typical Windows guest which has its main filesystem on the first "
21236 "partition:"
21237 msgstr ""
21238
21239 #. type: verbatim
21240 #: ../fuse/guestmount.pod:44
21241 #, no-wrap
21242 msgid ""
21243 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21244 "\n"
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fuse/guestmount.pod:46
21249 msgid ""
21250 "For a typical Linux guest which has a /boot filesystem on the first "
21251 "partition, and the root filesystem on a logical volume:"
21252 msgstr ""
21253
21254 #. type: verbatim
21255 #: ../fuse/guestmount.pod:49
21256 #, no-wrap
21257 msgid ""
21258 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21259 "\n"
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../fuse/guestmount.pod:51
21264 msgid "To get libguestfs to detect guest mountpoints for you:"
21265 msgstr ""
21266
21267 #. type: verbatim
21268 #: ../fuse/guestmount.pod:53
21269 #, no-wrap
21270 msgid ""
21271 " guestmount -a guest.img -i --ro /mnt\n"
21272 "\n"
21273 msgstr ""
21274
21275 #. type: textblock
21276 #: ../fuse/guestmount.pod:55
21277 msgid "For a libvirt guest called \"Guest\" you could do:"
21278 msgstr ""
21279
21280 #. type: verbatim
21281 #: ../fuse/guestmount.pod:57
21282 #, no-wrap
21283 msgid ""
21284 " guestmount -d Guest -i --ro /mnt\n"
21285 "\n"
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../fuse/guestmount.pod:59
21290 msgid ""
21291 "If you don't know what filesystems are contained in a guest or disk image, "
21292 "use L<virt-filesystems(1)> first:"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../fuse/guestmount.pod:62
21297 #, no-wrap
21298 msgid ""
21299 " virt-filesystems MyGuest\n"
21300 "\n"
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../fuse/guestmount.pod:64
21305 msgid ""
21306 "If you want to trace the libguestfs calls but without excessive debugging "
21307 "information, we recommend:"
21308 msgstr ""
21309
21310 #. type: verbatim
21311 #: ../fuse/guestmount.pod:67
21312 #, no-wrap
21313 msgid ""
21314 " guestmount [...] --trace /mnt\n"
21315 "\n"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../fuse/guestmount.pod:69
21320 msgid "If you want to debug the program, we recommend:"
21321 msgstr ""
21322
21323 #. type: verbatim
21324 #: ../fuse/guestmount.pod:71
21325 #, no-wrap
21326 msgid ""
21327 " guestmount [...] --trace --verbose /mnt\n"
21328 "\n"
21329 msgstr ""
21330
21331 #. type: =head1
21332 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21333 #: ../resize/virt-resize.pod:621
21334 msgid "NOTES"
21335 msgstr ""
21336
21337 #. type: =head2
21338 #: ../fuse/guestmount.pod:75
21339 msgid "Other users cannot see the filesystem by default"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../fuse/guestmount.pod:77
21344 msgid ""
21345 "If you mount a filesystem as one user (eg. root), then other users will not "
21346 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21347 "option when mounting:"
21348 msgstr ""
21349
21350 #. type: verbatim
21351 #: ../fuse/guestmount.pod:81
21352 #, no-wrap
21353 msgid ""
21354 " sudo guestmount [...] -o allow_other /mnt\n"
21355 "\n"
21356 msgstr ""
21357
21358 #. type: =head2
21359 #: ../fuse/guestmount.pod:83
21360 msgid "Enabling FUSE"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../fuse/guestmount.pod:85
21365 msgid ""
21366 "On some distros, you may need to add yourself to a special group (eg. "
21367 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21368 "Debian and derivatives."
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../fuse/guestmount.pod:89
21373 msgid ""
21374 "On other distros, no special group is required.  It is not necessary on "
21375 "Fedora or Red Hat Enterprise Linux."
21376 msgstr ""
21377
21378 #. type: textblock
21379 #: ../fuse/guestmount.pod:100
21380 msgid "Add a block device or virtual machine image."
21381 msgstr ""
21382
21383 #. type: =item
21384 #: ../fuse/guestmount.pod:123
21385 msgid "B<--dir-cache-timeout N>"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fuse/guestmount.pod:125
21390 msgid ""
21391 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21392 "seconds.  The readdir cache [actually, there are several semi-independent "
21393 "caches] is populated after a readdir(2) call with the stat and extended "
21394 "attributes of the files in the directory, in anticipation that they will be "
21395 "requested soon after."
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../fuse/guestmount.pod:131
21400 msgid ""
21401 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21402 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21403 "requests, only cache existing ones."
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../fuse/guestmount.pod:151
21408 msgid ""
21409 "If you have untrusted raw-format guest disk images, you should use this "
21410 "option to specify the disk format.  This avoids a possible security problem "
21411 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21412 "guestfs_add_drive_opts>."
21413 msgstr ""
21414
21415 #. type: =item
21416 #: ../fuse/guestmount.pod:156
21417 msgid "B<--fuse-help>"
21418 msgstr ""
21419
21420 #. type: textblock
21421 #: ../fuse/guestmount.pod:158
21422 msgid "Display help on special FUSE options (see I<-o> below)."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../fuse/guestmount.pod:162
21427 msgid "Display brief help and exit."
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fuse/guestmount.pod:186
21432 msgid ""
21433 "Mount the named partition or logical volume on the given mountpoint B<in the "
21434 "guest> (this has nothing to do with mountpoints in the host)."
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fuse/guestmount.pod:189
21439 msgid ""
21440 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21441 "something on C</>."
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../fuse/guestmount.pod:206
21446 msgid ""
21447 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21448 "unmounted.  If you specify this option, then we don't attempt to sync the "
21449 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21450 msgstr ""
21451
21452 #. type: =item
21453 #: ../fuse/guestmount.pod:211
21454 msgid "B<-o option>"
21455 msgstr ""
21456
21457 #. type: =item
21458 #: ../fuse/guestmount.pod:213
21459 msgid "B<--option option>"
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../fuse/guestmount.pod:215
21464 msgid "Pass extra options to FUSE."
21465 msgstr ""
21466
21467 #. type: textblock
21468 #: ../fuse/guestmount.pod:217
21469 msgid ""
21470 "To get a list of all the extra options supported by FUSE, use the command "
21471 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21472 "of them are a good idea."
21473 msgstr ""
21474
21475 #. type: verbatim
21476 #: ../fuse/guestmount.pod:221
21477 #, no-wrap
21478 msgid ""
21479 " guestmount --fuse-help\n"
21480 "\n"
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fuse/guestmount.pod:223
21485 msgid "Some potentially useful FUSE options:"
21486 msgstr ""
21487
21488 #. type: =item
21489 #: ../fuse/guestmount.pod:227
21490 msgid "B<-o allow_other>"
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../fuse/guestmount.pod:229
21495 msgid "Allow other users to see the filesystem."
21496 msgstr ""
21497
21498 #. type: =item
21499 #: ../fuse/guestmount.pod:231
21500 msgid "B<-o attr_timeout=N>"
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../fuse/guestmount.pod:233
21505 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21506 msgstr ""
21507
21508 #. type: =item
21509 #: ../fuse/guestmount.pod:235
21510 msgid "B<-o kernel_cache>"
21511 msgstr ""
21512
21513 #. type: textblock
21514 #: ../fuse/guestmount.pod:237
21515 msgid ""
21516 "Allow the kernel to cache files (reduces the number of reads that have to go "
21517 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21518 "afford the extra memory usage."
21519 msgstr ""
21520
21521 #. type: =item
21522 #: ../fuse/guestmount.pod:241
21523 msgid "B<-o uid=N> B<-o gid=N>"
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fuse/guestmount.pod:243
21528 msgid ""
21529 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21530 "the chosen values."
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../fuse/guestmount.pod:252
21535 msgid ""
21536 "Add devices and mount everything read-only.  Also disallow writes and make "
21537 "the disk appear read-only to FUSE."
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fuse/guestmount.pod:255
21542 msgid ""
21543 "This is highly recommended if you are not going to edit the guest disk.  If "
21544 "the guest is running and this option is I<not> supplied, then there is a "
21545 "strong risk of disk corruption in the guest.  We try to prevent this from "
21546 "happening, but it is not always possible."
21547 msgstr ""
21548
21549 #. type: textblock
21550 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21551 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../fuse/guestmount.pod:264
21556 msgid "Enable SELinux support for the guest."
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../fuse/guestmount.pod:270
21561 msgid "Enable verbose messages from underlying libguestfs."
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fuse/guestmount.pod:276
21566 msgid "Display the program version and exit."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21571 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21572 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21573 msgstr ""
21574
21575 #. type: =item
21576 #: ../fuse/guestmount.pod:289
21577 msgid "B<--trace>"
21578 msgstr ""
21579
21580 #. type: textblock
21581 #: ../fuse/guestmount.pod:291
21582 msgid "Trace libguestfs calls and entry into each FUSE function."
21583 msgstr ""
21584
21585 #. type: textblock
21586 #: ../fuse/guestmount.pod:293
21587 msgid "This also stops the daemon from forking into the background."
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fuse/guestmount.pod:319
21592 msgid ""
21593 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21594 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21595 "net/>."
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../fuse/guestmount.pod:334
21600 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../inspector/virt-inspector.pod:5
21605 msgid ""
21606 "virt-inspector - Display operating system version and other information "
21607 "about a virtual machine"
21608 msgstr ""
21609
21610 #. type: verbatim
21611 #: ../inspector/virt-inspector.pod:9
21612 #, no-wrap
21613 msgid ""
21614 " virt-inspector [--options] -d domname\n"
21615 "\n"
21616 msgstr ""
21617
21618 #. type: verbatim
21619 #: ../inspector/virt-inspector.pod:11
21620 #, no-wrap
21621 msgid ""
21622 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../inspector/virt-inspector.pod:15
21628 #, no-wrap
21629 msgid ""
21630 " virt-inspector domname\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: verbatim
21635 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
21636 #, no-wrap
21637 msgid ""
21638 " virt-inspector disk.img [disk.img ...]\n"
21639 "\n"
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../inspector/virt-inspector.pod:21
21644 msgid ""
21645 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21646 "determine the version of the operating system and other information about "
21647 "the virtual machine."
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../inspector/virt-inspector.pod:25
21652 msgid "Virt-inspector produces XML output for feeding into other programs."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../inspector/virt-inspector.pod:27
21657 msgid ""
21658 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21659 "the libvirt domain (see: C<virsh list --all>)."
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../inspector/virt-inspector.pod:30
21664 msgid ""
21665 "You can also run virt-inspector directly on disk images from a single "
21666 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21667 "has several block devices, in which case you should list several I<-a> "
21668 "options one after another, with the first corresponding to the guest's C</"
21669 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../inspector/virt-inspector.pod:37
21674 msgid ""
21675 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21676 "keys and similar."
21677 msgstr ""
21678
21679 #. type: textblock
21680 #: ../inspector/virt-inspector.pod:40
21681 msgid ""
21682 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21683 "inspect several virtual machines, you have to run virt-inspector several "
21684 "times (for example, from a shell script for-loop)."
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../inspector/virt-inspector.pod:45
21689 msgid ""
21690 "Because virt-inspector needs direct access to guest images, it won't "
21691 "normally work over remote libvirt connections."
21692 msgstr ""
21693
21694 #. type: textblock
21695 #: ../inspector/virt-inspector.pod:48
21696 msgid ""
21697 "All of the information available from virt-inspector is also available "
21698 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21699 "The same information can also be fetched using guestfish or via libguestfs "
21700 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21701 "WITH OTHER PROGRAMMING LANGUAGES>)."
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../inspector/virt-inspector.pod:81
21706 msgid ""
21707 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21708 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21709 "at all."
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../inspector/virt-inspector.pod:94
21714 msgid ""
21715 "When prompting for keys and passphrases, virt-inspector normally turns "
21716 "echoing off so you cannot see what you are typing.  If you are not worried "
21717 "about Tempest attacks and there is no one else in the room you can specify "
21718 "this flag to see what you are typing."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21723 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21724 #: ../tools/virt-win-reg.pl:144
21725 msgid ""
21726 "Specify the format of disk images given on the command line.  If this is "
21727 "omitted then the format is autodetected from the content of the disk image."
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21732 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21733 #: ../tools/virt-win-reg.pl:148
21734 msgid ""
21735 "If disk images are requested from libvirt, then this program asks libvirt "
21736 "for this information.  In this case, the value of the format parameter is "
21737 "ignored."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
21742 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
21743 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21744 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21745 msgid ""
21746 "If working with untrusted raw-format guest disk images, you should ensure "
21747 "the format is always specified."
21748 msgstr ""
21749
21750 #. type: =item
21751 #: ../inspector/virt-inspector.pod:135
21752 msgid "B<--xpath> query"
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../inspector/virt-inspector.pod:137
21757 msgid ""
21758 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
21759 "In this mode virt-inspector simply runs an XPath query; all other inspection "
21760 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
21761 msgstr ""
21762
21763 #. type: textblock
21764 #: ../inspector/virt-inspector.pod:146
21765 msgid "Previous versions of virt-inspector allowed you to write either:"
21766 msgstr ""
21767
21768 #. type: verbatim
21769 #: ../inspector/virt-inspector.pod:152
21770 #, no-wrap
21771 msgid ""
21772 " virt-inspector guestname\n"
21773 "\n"
21774 msgstr ""
21775
21776 #. type: =head1
21777 #: ../inspector/virt-inspector.pod:160
21778 msgid "XML FORMAT"
21779 msgstr ""
21780
21781 #. type: textblock
21782 #: ../inspector/virt-inspector.pod:162
21783 msgid ""
21784 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21785 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21786 "just an overview."
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../inspector/virt-inspector.pod:166
21791 msgid ""
21792 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21793 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21794 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21795 "which is vanishingly rare in real world VMs."
21796 msgstr ""
21797
21798 #. type: =head2
21799 #: ../inspector/virt-inspector.pod:171
21800 msgid "E<lt>operatingsystemE<gt>"
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../inspector/virt-inspector.pod:173
21805 msgid ""
21806 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21807 "describe the operating system, its architecture, the descriptive \"product "
21808 "name\" string, the type of OS and so on, as in this example:"
21809 msgstr ""
21810
21811 #. type: verbatim
21812 #: ../inspector/virt-inspector.pod:177
21813 #, no-wrap
21814 msgid ""
21815 " <operatingsystems>\n"
21816 "   <operatingsystem>\n"
21817 "     <root>/dev/sda2</root>\n"
21818 "     <name>windows</name>\n"
21819 "     <arch>i386</arch>\n"
21820 "     <distro>windows</distro>\n"
21821 "     <product_name>Windows 7 Enterprise</product_name>\n"
21822 "     <product_variant>Client</product_variant>\n"
21823 "     <major_version>6</major_version>\n"
21824 "     <minor_version>1</minor_version>\n"
21825 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21826 "     <format>installed</format>\n"
21827 "\n"
21828 msgstr ""
21829
21830 #. type: textblock
21831 #: ../inspector/virt-inspector.pod:190
21832 msgid ""
21833 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21834 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21835 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21836 "architecture.  The other fields are fairly self-explanatory, but because "
21837 "these fields are taken directly from the libguestfs inspection API you can "
21838 "find precise information from L<guestfs(3)/INSPECTION>."
21839 msgstr ""
21840
21841 #. type: textblock
21842 #: ../inspector/virt-inspector.pod:198
21843 msgid ""
21844 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21845 "of view of libguestfs (block devices may have completely different names "
21846 "inside the VM itself)."
21847 msgstr ""
21848
21849 #. type: =head2
21850 #: ../inspector/virt-inspector.pod:202
21851 msgid "E<lt>mountpointsE<gt>"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../inspector/virt-inspector.pod:204
21856 msgid ""
21857 "Un*x-like guests typically have multiple filesystems which are mounted at "
21858 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21859 "element which looks like this:"
21860 msgstr ""
21861
21862 #. type: verbatim
21863 #: ../inspector/virt-inspector.pod:208
21864 #, no-wrap
21865 msgid ""
21866 " <operatingsystems>\n"
21867 "   <operatingsystem>\n"
21868 "     ...\n"
21869 "     <mountpoints>\n"
21870 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21871 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21872 "     </mountpoints>\n"
21873 "\n"
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../inspector/virt-inspector.pod:216
21878 msgid ""
21879 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21880 "and may have completely different names inside the guest.  Only mountable "
21881 "filesystems appear in this list, not things like swap devices."
21882 msgstr ""
21883
21884 #. type: =head2
21885 #: ../inspector/virt-inspector.pod:221
21886 msgid "E<lt>filesystemsE<gt>"
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../inspector/virt-inspector.pod:223
21891 msgid ""
21892 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21893 "filesystems belonging to the guest, including swap and empty partitions.  "
21894 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21895 "this OS or shared with this OS and other OSes)."
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../inspector/virt-inspector.pod:229
21900 msgid "You might see something like this:"
21901 msgstr ""
21902
21903 #. type: verbatim
21904 #: ../inspector/virt-inspector.pod:231
21905 #, no-wrap
21906 msgid ""
21907 " <operatingsystems>\n"
21908 "   <operatingsystem>\n"
21909 "     ...\n"
21910 "     <filesystems>\n"
21911 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21912 "         <type>ext4</type>\n"
21913 "         <label>Fedora-13-x86_64</label>\n"
21914 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21915 "       </filesystem>\n"
21916 "\n"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../inspector/virt-inspector.pod:241
21921 msgid ""
21922 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21923 "the label, and the UUID."
21924 msgstr ""
21925
21926 #. type: =head2
21927 #: ../inspector/virt-inspector.pod:244
21928 msgid "E<lt>applicationsE<gt>"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../inspector/virt-inspector.pod:246
21933 msgid ""
21934 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21935 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21936 "machine."
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../inspector/virt-inspector.pod:250
21941 msgid ""
21942 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21943 "Typical values would be C<rpm> and C<deb>."
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../inspector/virt-inspector.pod:253
21948 msgid ""
21949 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21950 "Typical values include C<yum>, C<up2date> and C<apt>"
21951 msgstr ""
21952
21953 #. type: textblock
21954 #: ../inspector/virt-inspector.pod:256
21955 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21956 msgstr ""
21957
21958 #. type: verbatim
21959 #: ../inspector/virt-inspector.pod:259
21960 #, no-wrap
21961 msgid ""
21962 " <operatingsystems>\n"
21963 "   <operatingsystem>\n"
21964 "     ...\n"
21965 "     <applications>\n"
21966 "       <application>\n"
21967 "         <name>coreutils</name>\n"
21968 "         <version>8.5</version>\n"
21969 "         <release>1</release>\n"
21970 "       </application>\n"
21971 "\n"
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../inspector/virt-inspector.pod:269
21976 msgid ""
21977 "The version and release fields may not be available for some types guests.  "
21978 "Other fields are possible, see L<guestfs(3)/"
21979 "guestfs_inspect_list_applications>."
21980 msgstr ""
21981
21982 #. type: =head2
21983 #: ../inspector/virt-inspector.pod:273
21984 msgid "E<lt>drive_mappingsE<gt>"
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../inspector/virt-inspector.pod:275
21989 msgid ""
21990 "For operating systems like Windows which use drive letters, virt-inspector "
21991 "is able to find out how drive letters map to filesystems."
21992 msgstr ""
21993
21994 #. type: verbatim
21995 #: ../inspector/virt-inspector.pod:279
21996 #, no-wrap
21997 msgid ""
21998 " <operatingsystems>\n"
21999 "   <operatingsystem>\n"
22000 "     ...\n"
22001 "     <drive_mappings>\n"
22002 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22003 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22004 "     </drive_mappings>\n"
22005 "\n"
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../inspector/virt-inspector.pod:287
22010 msgid ""
22011 "In the example above, drive C maps to the filesystem on the second partition "
22012 "on the first disk, and drive E maps to the filesystem on the first partition "
22013 "on the second disk."
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../inspector/virt-inspector.pod:291
22018 msgid ""
22019 "Note that this only covers permanent local filesystem mappings, not things "
22020 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22021 "here."
22022 msgstr ""
22023
22024 #. type: =head2
22025 #: ../inspector/virt-inspector.pod:295
22026 msgid "E<lt>iconE<gt>"
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../inspector/virt-inspector.pod:297
22031 msgid ""
22032 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22033 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22034 "very large and high quality."
22035 msgstr ""
22036
22037 #. type: verbatim
22038 #: ../inspector/virt-inspector.pod:301
22039 #, no-wrap
22040 msgid ""
22041 " <operatingsystems>\n"
22042 "   <operatingsystem>\n"
22043 "     ...\n"
22044 "     <icon>\n"
22045 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22046 "       [... many lines of base64 data ...]\n"
22047 "     </icon>\n"
22048 "\n"
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../inspector/virt-inspector.pod:309
22053 msgid ""
22054 "To display the icon, you have to extract it and convert the base64 data back "
22055 "to a binary file.  Use an XPath query or simply an editor to extract the "
22056 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22057 "to a PNG file:"
22058 msgstr ""
22059
22060 #. type: verbatim
22061 #: ../inspector/virt-inspector.pod:314
22062 #, no-wrap
22063 msgid ""
22064 " base64 -i -d < icon.data > icon.png\n"
22065 "\n"
22066 msgstr ""
22067
22068 #. type: =head2
22069 #: ../inspector/virt-inspector.pod:316
22070 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22071 msgstr ""
22072
22073 #. type: textblock
22074 #: ../inspector/virt-inspector.pod:318
22075 msgid ""
22076 "Virt-inspector can detect some operating system installers on install disks, "
22077 "live CDs, bootable USB keys and more."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../inspector/virt-inspector.pod:321
22082 msgid ""
22083 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22084 "fields may be present to indicate a live CD, network installer, or one part "
22085 "of a multipart CD.  For example:"
22086 msgstr ""
22087
22088 #. type: verbatim
22089 #: ../inspector/virt-inspector.pod:325
22090 #, no-wrap
22091 msgid ""
22092 " <operatingsystems>\n"
22093 "   <operatingsystem>\n"
22094 "     <root>/dev/sda</root>\n"
22095 "     <name>linux</name>\n"
22096 "     <arch>i386</arch>\n"
22097 "     <distro>ubuntu</distro>\n"
22098 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22099 "     <major_version>10</major_version>\n"
22100 "     <minor_version>10</minor_version>\n"
22101 "     <format>installer</format>\n"
22102 "     <live/>\n"
22103 "\n"
22104 msgstr ""
22105
22106 #. type: =head1
22107 #: ../inspector/virt-inspector.pod:337
22108 msgid "XPATH QUERIES"
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../inspector/virt-inspector.pod:339
22113 msgid ""
22114 "Virt-inspector includes built in support for running XPath queries.  The "
22115 "reason for including XPath support directly in virt-inspector is simply that "
22116 "there are no good and widely available command line programs that can do "
22117 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22118 "available on Red Hat Enterprise Linux."
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../inspector/virt-inspector.pod:346
22123 msgid ""
22124 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22125 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22126 "result on stdout.  All other inspection features are disabled in this mode."
22127 msgstr ""
22128
22129 #. type: verbatim
22130 #: ../inspector/virt-inspector.pod:353
22131 #, no-wrap
22132 msgid ""
22133 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22134 " <filesystems>\n"
22135 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22136 "        <type>ext4</type>\n"
22137 " [...]\n"
22138 "\n"
22139 msgstr ""
22140
22141 #. type: verbatim
22142 #: ../inspector/virt-inspector.pod:359
22143 #, no-wrap
22144 msgid ""
22145 " $ virt-inspector -d Guest | \\\n"
22146 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22147 " ext4\n"
22148 "\n"
22149 msgstr ""
22150
22151 #. type: verbatim
22152 #: ../inspector/virt-inspector.pod:363
22153 #, no-wrap
22154 msgid ""
22155 " $ virt-inspector -d Guest | \\\n"
22156 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22157 " [displays the guest icon, if there is one]\n"
22158 "\n"
22159 msgstr ""
22160
22161 #. type: =head1
22162 #: ../inspector/virt-inspector.pod:374
22163 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../inspector/virt-inspector.pod:376
22168 msgid ""
22169 "Early versions of libguestfs shipped with a different virt-inspector program "
22170 "written in Perl (the current version is written in C).  The XML output of "
22171 "the Perl virt-inspector was different and it could also output in other "
22172 "formats like text."
22173 msgstr ""
22174
22175 #. type: textblock
22176 #: ../inspector/virt-inspector.pod:381
22177 msgid ""
22178 "The old virt-inspector is no longer supported or shipped with libguestfs."
22179 msgstr ""
22180
22181 #. type: textblock
22182 #: ../inspector/virt-inspector.pod:384
22183 msgid ""
22184 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22185 "versions of virt-inspector with different names:"
22186 msgstr ""
22187
22188 #. type: verbatim
22189 #: ../inspector/virt-inspector.pod:387
22190 #, no-wrap
22191 msgid ""
22192 " virt-inspector     Old Perl version.\n"
22193 " virt-inspector2    New C version.\n"
22194 "\n"
22195 msgstr ""
22196
22197 #. type: textblock
22198 #: ../inspector/virt-inspector.pod:397
22199 msgid ""
22200 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22201 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22202 msgstr ""
22203
22204 #. type: textblock
22205 #: ../inspector/virt-inspector.pod:414
22206 msgid "Matthew Booth L<mbooth@redhat.com>"
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../java/examples/guestfs-java.pod:5
22211 msgid "guestfs-java - How to use libguestfs from Java"
22212 msgstr ""
22213
22214 #. type: verbatim
22215 #: ../java/examples/guestfs-java.pod:9
22216 #, no-wrap
22217 msgid ""
22218 " import com.redhat.et.libguestfs.*;\n"
22219 " \n"
22220 msgstr ""
22221
22222 #. type: verbatim
22223 #: ../java/examples/guestfs-java.pod:11
22224 #, no-wrap
22225 msgid ""
22226 " GuestFS g = new GuestFS ();\n"
22227 " g.add_drive_opts (\"disk.img\", null);\n"
22228 " g.launch ();\n"
22229 "\n"
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../java/examples/guestfs-java.pod:17
22234 msgid ""
22235 "This manual page documents how to call libguestfs from the Java programming "
22236 "language.  This page just documents the differences from the C API and gives "
22237 "some examples.  If you are not familiar with using libguestfs, you also need "
22238 "to read L<guestfs(3)>."
22239 msgstr ""
22240
22241 #. type: =head2
22242 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22243 msgid "CLOSING THE HANDLE"
22244 msgstr ""
22245
22246 #. type: textblock
22247 #: ../java/examples/guestfs-java.pod:24
22248 msgid ""
22249 "The handle is closed when it is reaped by the garbage collector.  Because "
22250 "libguestfs handles include a lot of state, it is also possible to close (and "
22251 "hence free) them explicitly by calling the C<close> method."
22252 msgstr ""
22253
22254 #. type: =head2
22255 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22256 #: ../python/examples/guestfs-python.pod:21
22257 #: ../ruby/examples/guestfs-ruby.pod:22
22258 msgid "EXCEPTIONS"
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../java/examples/guestfs-java.pod:31
22263 msgid ""
22264 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22265 "exception.  This has a single parameter which is the error message (a "
22266 "C<String>)."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../java/examples/guestfs-java.pod:35
22271 msgid "Calling any method on a closed handle raises the same exception."
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../java/examples/guestfs-java.pod:47
22276 msgid ""
22277 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22278 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22279 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../ocaml/examples/guestfs-ocaml.pod:5
22284 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../ocaml/examples/guestfs-ocaml.pod:9
22289 msgid "Module style:"
22290 msgstr ""
22291
22292 #. type: verbatim
22293 #: ../ocaml/examples/guestfs-ocaml.pod:11
22294 #, no-wrap
22295 msgid ""
22296 " let g = Guestfs.create () in\n"
22297 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22298 " Guestfs.launch g;\n"
22299 "\n"
22300 msgstr ""
22301
22302 #. type: textblock
22303 #: ../ocaml/examples/guestfs-ocaml.pod:15
22304 msgid "Object-oriented style:"
22305 msgstr ""
22306
22307 #. type: verbatim
22308 #: ../ocaml/examples/guestfs-ocaml.pod:17
22309 #, no-wrap
22310 msgid ""
22311 " let g = new Guestfs.guestfs () in\n"
22312 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22313 " g#launch ();\n"
22314 "\n"
22315 msgstr ""
22316
22317 #. type: verbatim
22318 #: ../ocaml/examples/guestfs-ocaml.pod:21
22319 #, no-wrap
22320 msgid ""
22321 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22322 "or:\n"
22323 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22324 "\n"
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../ocaml/examples/guestfs-ocaml.pod:27
22329 msgid ""
22330 "This manual page documents how to call libguestfs from the OCaml programming "
22331 "language.  This page just documents the differences from the C API and gives "
22332 "some examples.  If you are not familiar with using libguestfs, you also need "
22333 "to read L<guestfs(3)>."
22334 msgstr ""
22335
22336 #. type: =head2
22337 #: ../ocaml/examples/guestfs-ocaml.pod:32
22338 msgid "PROGRAMMING STYLES"
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../ocaml/examples/guestfs-ocaml.pod:34
22343 msgid ""
22344 "There are two different programming styles supported by the OCaml bindings.  "
22345 "You can use a module style, with each C function mapped to an OCaml function:"
22346 msgstr ""
22347
22348 #. type: verbatim
22349 #: ../ocaml/examples/guestfs-ocaml.pod:38
22350 #, no-wrap
22351 msgid ""
22352 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22353 "\n"
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../ocaml/examples/guestfs-ocaml.pod:40
22358 msgid "becomes:"
22359 msgstr ""
22360
22361 #. type: verbatim
22362 #: ../ocaml/examples/guestfs-ocaml.pod:42
22363 #, no-wrap
22364 msgid ""
22365 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22366 "\n"
22367 msgstr ""
22368
22369 #. type: textblock
22370 #: ../ocaml/examples/guestfs-ocaml.pod:44
22371 msgid ""
22372 "Alternately you can use an object-oriented style, calling methods on the "
22373 "class C<Guestfs.guestfs>:"
22374 msgstr ""
22375
22376 #. type: verbatim
22377 #: ../ocaml/examples/guestfs-ocaml.pod:47
22378 #, no-wrap
22379 msgid ""
22380 " method set_verbose : bool -> unit\n"
22381 "\n"
22382 msgstr ""
22383
22384 #. type: textblock
22385 #: ../ocaml/examples/guestfs-ocaml.pod:49
22386 msgid ""
22387 "The object-oriented style is usually briefer, and the minor performance "
22388 "penalty isn't noticable in the general overhead of performing libguestfs "
22389 "functions."
22390 msgstr ""
22391
22392 #. type: textblock
22393 #: ../ocaml/examples/guestfs-ocaml.pod:55
22394 msgid ""
22395 "The handle is closed when it is reaped by the garbage collector.  Because "
22396 "libguestfs handles include a lot of state, it is also possible to close (and "
22397 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22398 "method."
22399 msgstr ""
22400
22401 #. type: textblock
22402 #: ../ocaml/examples/guestfs-ocaml.pod:62
22403 msgid ""
22404 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22405 "exception.  This has a single parameter which is the error message (a "
22406 "string)."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../ocaml/examples/guestfs-ocaml.pod:66
22411 msgid ""
22412 "Calling any function/method on a closed handle raises C<Guestfs."
22413 "Handle_closed>.  The single parameter is the name of the function that you "
22414 "called."
22415 msgstr ""
22416
22417 #. type: textblock
22418 #: ../ocaml/examples/guestfs-ocaml.pod:80
22419 msgid ""
22420 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22421 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22422 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22423 msgstr ""
22424
22425 #. type: textblock
22426 #: ../perl/examples/guestfs-perl.pod:5
22427 msgid "guestfs-perl - How to use libguestfs from Perl"
22428 msgstr ""
22429
22430 #. type: verbatim
22431 #: ../perl/examples/guestfs-perl.pod:9
22432 #, no-wrap
22433 msgid ""
22434 " use Sys::Guestfs;\n"
22435 " \n"
22436 msgstr ""
22437
22438 #. type: verbatim
22439 #: ../perl/examples/guestfs-perl.pod:11
22440 #, no-wrap
22441 msgid ""
22442 " my $h = Sys::Guestfs->new ();\n"
22443 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22444 " $h->launch ();\n"
22445 " $h->mount_options ('', '/dev/sda1', '/');\n"
22446 " $h->touch ('/hello');\n"
22447 " $h->sync ();\n"
22448 "\n"
22449 msgstr ""
22450
22451 #. type: textblock
22452 #: ../perl/examples/guestfs-perl.pod:20
22453 msgid ""
22454 "This manual page documents how to call libguestfs from the Perl programming "
22455 "language.  This page just documents the differences from the C API and gives "
22456 "some examples.  If you are not familiar with using libguestfs, you also need "
22457 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22458 msgstr ""
22459
22460 #. type: =head2
22461 #: ../perl/examples/guestfs-perl.pod:26
22462 msgid "ERRORS"
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../perl/examples/guestfs-perl.pod:28
22467 msgid ""
22468 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22469 ">)."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../perl/examples/guestfs-perl.pod:41
22474 msgid ""
22475 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22476 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22477 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../python/examples/guestfs-python.pod:5
22482 msgid "guestfs-python - How to use libguestfs from Python"
22483 msgstr ""
22484
22485 #. type: verbatim
22486 #: ../python/examples/guestfs-python.pod:9
22487 #, no-wrap
22488 msgid ""
22489 " import guestfs\n"
22490 " g = guestfs.GuestFS ()\n"
22491 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22492 " g.launch\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../python/examples/guestfs-python.pod:16
22498 msgid ""
22499 "This manual page documents how to call libguestfs from the Python "
22500 "programming language.  This page just documents the differences from the C "
22501 "API and gives some examples.  If you are not familiar with using libguestfs, "
22502 "you also need to read L<guestfs(3)>."
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../python/examples/guestfs-python.pod:23
22507 msgid ""
22508 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22509 "single string argument which is the error message."
22510 msgstr ""
22511
22512 #. type: =head2
22513 #: ../python/examples/guestfs-python.pod:26
22514 msgid "MORE DOCUMENTATION"
22515 msgstr ""
22516
22517 #. type: textblock
22518 #: ../python/examples/guestfs-python.pod:28
22519 msgid "Type:"
22520 msgstr ""
22521
22522 #. type: verbatim
22523 #: ../python/examples/guestfs-python.pod:30
22524 #, no-wrap
22525 msgid ""
22526 " $ python\n"
22527 " >>> import guestfs\n"
22528 " >>> help (guestfs)\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../python/examples/guestfs-python.pod:44
22534 msgid ""
22535 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22536 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22537 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../rescue/virt-rescue.pod:5
22542 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../rescue/virt-rescue.pod:9
22547 #, no-wrap
22548 msgid ""
22549 " virt-rescue [--options] -d domname\n"
22550 "\n"
22551 msgstr ""
22552
22553 #. type: verbatim
22554 #: ../rescue/virt-rescue.pod:11
22555 #, no-wrap
22556 msgid ""
22557 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22558 "\n"
22559 msgstr ""
22560
22561 #. type: verbatim
22562 #: ../rescue/virt-rescue.pod:15
22563 #, no-wrap
22564 msgid ""
22565 " virt-rescue [--options] domname\n"
22566 "\n"
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../rescue/virt-rescue.pod:17
22571 #, no-wrap
22572 msgid ""
22573 " virt-rescue [--options] disk.img [disk.img ...]\n"
22574 "\n"
22575 msgstr ""
22576
22577 #. type: textblock
22578 #: ../rescue/virt-rescue.pod:21
22579 msgid ""
22580 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22581 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22582 "you from doing this, but doesn't catch all cases."
22583 msgstr ""
22584
22585 #. type: textblock
22586 #: ../rescue/virt-rescue.pod:25
22587 msgid ""
22588 "However if you use the I<--ro> (read only) option, then you can attach a "
22589 "shell to a live virtual machine.  The results might be strange or "
22590 "inconsistent at times but you won't get disk corruption."
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../rescue/virt-rescue.pod:31
22595 msgid ""
22596 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22597 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22598 "recovery tools which you can use to examine or rescue a virtual machine or "
22599 "disk image."
22600 msgstr ""
22601
22602 #. type: textblock
22603 #: ../rescue/virt-rescue.pod:36
22604 msgid ""
22605 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22606 "on disk image(s):"
22607 msgstr ""
22608
22609 #. type: verbatim
22610 #: ../rescue/virt-rescue.pod:39
22611 #, no-wrap
22612 msgid ""
22613 " virt-rescue -d GuestName\n"
22614 "\n"
22615 msgstr ""
22616
22617 #. type: verbatim
22618 #: ../rescue/virt-rescue.pod:41
22619 #, no-wrap
22620 msgid ""
22621 " virt-rescue --ro -a /path/to/disk.img\n"
22622 "\n"
22623 msgstr ""
22624
22625 #. type: verbatim
22626 #: ../rescue/virt-rescue.pod:43
22627 #, no-wrap
22628 msgid ""
22629 " virt-rescue -a /dev/sdc\n"
22630 "\n"
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../rescue/virt-rescue.pod:45
22635 msgid "For live VMs you I<must> use the --ro option."
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../rescue/virt-rescue.pod:47
22640 msgid ""
22641 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22642 "in an interactive bash shell where you can use many ordinary Linux "
22643 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22644 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22645 "is an empty directory called C</sysroot> where you can mount filesystems."
22646 msgstr ""
22647
22648 #. type: textblock
22649 #: ../rescue/virt-rescue.pod:54
22650 msgid ""
22651 "In the example below, we list logical volumes, then choose one to mount "
22652 "under C</sysroot>:"
22653 msgstr ""
22654
22655 #. type: verbatim
22656 #: ../rescue/virt-rescue.pod:57
22657 #, no-wrap
22658 msgid ""
22659 " ><rescue> lvs\n"
22660 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22661 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22662 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22663 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22664 " ><rescue> ls /sysroot\n"
22665 "\n"
22666 msgstr ""
22667
22668 #. type: textblock
22669 #: ../rescue/virt-rescue.pod:64
22670 msgid ""
22671 "If you don't know what filesystems are available on the virtual machine then "
22672 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../rescue/virt-rescue.pod:70
22677 msgid ""
22678 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22679 "virtual machine.  For example you can use it on a blank file if you want to "
22680 "partition that file (although we would recommend using L<guestfish(1)> "
22681 "instead as it is more suitable for this purpose).  You can even use virt-"
22682 "rescue on things like SD cards."
22683 msgstr ""
22684
22685 #. type: textblock
22686 #: ../rescue/virt-rescue.pod:76
22687 msgid ""
22688 "Virt-rescue does not require root.  You only need to run it as root if you "
22689 "need root to open the disk image."
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../rescue/virt-rescue.pod:79
22694 msgid ""
22695 "This tool is just designed for quick interactive hacking on a virtual "
22696 "machine.  For more structured access to a virtual machine disk image, you "
22697 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22698 "make scripted changes to guests, use L<guestfish(1)>."
22699 msgstr ""
22700
22701 #. type: =item
22702 #: ../rescue/virt-rescue.pod:103
22703 msgid "B<--append kernelopts>"
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../rescue/virt-rescue.pod:105
22708 msgid "Pass additional options to the rescue kernel."
22709 msgstr ""
22710
22711 #. type: verbatim
22712 #: ../rescue/virt-rescue.pod:135
22713 #, no-wrap
22714 msgid ""
22715 " virt-rescue --format=raw -a disk.img\n"
22716 "\n"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../rescue/virt-rescue.pod:139
22721 #, no-wrap
22722 msgid ""
22723 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22724 "\n"
22725 msgstr ""
22726
22727 #. type: =item
22728 #: ../rescue/virt-rescue.pod:148
22729 msgid "B<-m MB>"
22730 msgstr ""
22731
22732 #. type: =item
22733 #: ../rescue/virt-rescue.pod:150
22734 msgid "B<--memsize MB>"
22735 msgstr ""
22736
22737 #. type: textblock
22738 #: ../rescue/virt-rescue.pod:152
22739 msgid ""
22740 "Change the amount of memory allocated to the rescue system.  The default is "
22741 "set by libguestfs and is small but adequate for running system tools.  The "
22742 "occasional program might need more memory.  The parameter is specified in "
22743 "megabytes."
22744 msgstr ""
22745
22746 #. type: =item
22747 #: ../rescue/virt-rescue.pod:157
22748 msgid "B<--network>"
22749 msgstr ""
22750
22751 #. type: textblock
22752 #: ../rescue/virt-rescue.pod:159
22753 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22754 msgstr ""
22755
22756 #. type: textblock
22757 #: ../rescue/virt-rescue.pod:165
22758 msgid "Open the image read-only."
22759 msgstr ""
22760
22761 #. type: textblock
22762 #: ../rescue/virt-rescue.pod:175
22763 msgid ""
22764 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22765 "SELINUX> before using this option."
22766 msgstr ""
22767
22768 #. type: =item
22769 #: ../rescue/virt-rescue.pod:178
22770 msgid "B<--smp> N"
22771 msgstr ""
22772
22773 #. type: textblock
22774 #: ../rescue/virt-rescue.pod:180
22775 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../rescue/virt-rescue.pod:198
22780 msgid ""
22781 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22782 "are done read-write."
22783 msgstr ""
22784
22785 #. type: textblock
22786 #: ../rescue/virt-rescue.pod:211
22787 msgid "Previous versions of virt-rescue allowed you to write either:"
22788 msgstr ""
22789
22790 #. type: verbatim
22791 #: ../rescue/virt-rescue.pod:213
22792 #, no-wrap
22793 msgid ""
22794 " virt-rescue disk.img [disk.img ...]\n"
22795 "\n"
22796 msgstr ""
22797
22798 #. type: verbatim
22799 #: ../rescue/virt-rescue.pod:217
22800 #, no-wrap
22801 msgid ""
22802 " virt-rescue guestname\n"
22803 "\n"
22804 msgstr ""
22805
22806 #. type: =head1
22807 #: ../rescue/virt-rescue.pod:225
22808 msgid "NETWORK"
22809 msgstr ""
22810
22811 #. type: textblock
22812 #: ../rescue/virt-rescue.pod:227
22813 msgid ""
22814 "Adding the I<--network> option enables QEMU user networking in the rescue "
22815 "appliance.  There are some differences between user networking and ordinary "
22816 "networking:"
22817 msgstr ""
22818
22819 #. type: =item
22820 #: ../rescue/virt-rescue.pod:233
22821 msgid "ping does not work"
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../rescue/virt-rescue.pod:235
22826 msgid ""
22827 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22828 "send the ping packets, and because virt-rescue must be able to run as non-"
22829 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22830 "The ping command will appear to resolve addresses but will not be able to "
22831 "send or receive any packets.  This does not mean that the network is not "
22832 "working."
22833 msgstr ""
22834
22835 #. type: =item
22836 #: ../rescue/virt-rescue.pod:242
22837 msgid "cannot receive connections"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../rescue/virt-rescue.pod:244
22842 msgid "QEMU user networking cannot receive incoming connections."
22843 msgstr ""
22844
22845 #. type: =item
22846 #: ../rescue/virt-rescue.pod:246
22847 msgid "making TCP connections"
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../rescue/virt-rescue.pod:248
22852 msgid ""
22853 "The virt-rescue appliance needs to be small and so does not include many "
22854 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22855 "make TCP connections from the shell using the magical C</dev/tcp/"
22856 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22857 msgstr ""
22858
22859 #. type: verbatim
22860 #: ../rescue/virt-rescue.pod:253
22861 #, no-wrap
22862 msgid ""
22863 " exec 3<>/dev/tcp/redhat.com/80\n"
22864 " echo \"GET /\" >&3\n"
22865 " cat <&3\n"
22866 "\n"
22867 msgstr ""
22868
22869 #. type: textblock
22870 #: ../rescue/virt-rescue.pod:257
22871 msgid "See L<bash(1)> for more details."
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../rescue/virt-rescue.pod:263
22876 msgid ""
22877 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22878 "ENVIRONMENT VARIABLES> for the complete list."
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../rescue/virt-rescue.pod:290
22883 msgid ""
22884 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22885 "libguestfs.org/>."
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../resize/virt-resize.pod:5
22890 msgid "virt-resize - Resize a virtual machine disk"
22891 msgstr ""
22892
22893 #. type: verbatim
22894 #: ../resize/virt-resize.pod:9
22895 #, no-wrap
22896 msgid ""
22897 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22898 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22899 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22900 "\n"
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../resize/virt-resize.pod:15
22905 msgid ""
22906 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22907 "larger or smaller overall, and resizing or deleting any partitions contained "
22908 "within."
22909 msgstr ""
22910
22911 #. type: textblock
22912 #: ../resize/virt-resize.pod:19
22913 msgid ""
22914 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22915 "not> be used on live virtual machines - for consistent results, shut the "
22916 "virtual machine down before resizing it."
22917 msgstr ""
22918
22919 #. type: textblock
22920 #: ../resize/virt-resize.pod:23
22921 msgid ""
22922 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22923 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22924 msgstr ""
22925
22926 #. type: =item
22927 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
22928 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
22929 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22930 msgid "1."
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../resize/virt-resize.pod:33
22935 msgid ""
22936 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22937 "fill the extra 5GB of space."
22938 msgstr ""
22939
22940 #. type: verbatim
22941 #: ../resize/virt-resize.pod:36
22942 #, no-wrap
22943 msgid ""
22944 " virt-filesystems --long -h --all -a olddisk\n"
22945 " \n"
22946 msgstr ""
22947
22948 #. type: verbatim
22949 #: ../resize/virt-resize.pod:38
22950 #, no-wrap
22951 msgid ""
22952 " truncate -r olddisk newdisk\n"
22953 " truncate -s +5G newdisk\n"
22954 " \n"
22955 msgstr ""
22956
22957 #. type: verbatim
22958 #: ../resize/virt-resize.pod:41
22959 #, no-wrap
22960 msgid ""
22961 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22962 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: =item
22967 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
22968 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
22969 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
22970 msgid "2."
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../resize/virt-resize.pod:46
22975 msgid ""
22976 "As above, but make the /boot partition 200MB bigger, while giving the "
22977 "remaining space to /dev/sda2:"
22978 msgstr ""
22979
22980 #. type: verbatim
22981 #: ../resize/virt-resize.pod:49
22982 #, no-wrap
22983 msgid ""
22984 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22985 "   olddisk newdisk\n"
22986 "\n"
22987 msgstr ""
22988
22989 #. type: =item
22990 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
22991 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
22992 #: ../src/guestfs.pod:1451
22993 msgid "3."
22994 msgstr ""
22995
22996 #. type: textblock
22997 #: ../resize/virt-resize.pod:54
22998 msgid ""
22999 "As in the first example, but expand a logical volume as the final step.  "
23000 "This is what you would typically use for Linux guests that use LVM:"
23001 msgstr ""
23002
23003 #. type: verbatim
23004 #: ../resize/virt-resize.pod:58
23005 #, no-wrap
23006 msgid ""
23007 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23008 "   olddisk newdisk\n"
23009 "\n"
23010 msgstr ""
23011
23012 #. type: =item
23013 #: ../resize/virt-resize.pod:61
23014 msgid "4."
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../resize/virt-resize.pod:63
23019 msgid ""
23020 "As in the first example, but the output format will be qcow2 instead of a "
23021 "raw disk:"
23022 msgstr ""
23023
23024 #. type: verbatim
23025 #: ../resize/virt-resize.pod:66
23026 #, no-wrap
23027 msgid ""
23028 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23029 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23030 "\n"
23031 msgstr ""
23032
23033 #. type: =head1
23034 #: ../resize/virt-resize.pod:71
23035 msgid "DETAILED USAGE"
23036 msgstr ""
23037
23038 #. type: =head2
23039 #: ../resize/virt-resize.pod:73
23040 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23041 msgstr ""
23042
23043 #. type: =item
23044 #: ../resize/virt-resize.pod:77
23045 msgid "1. Shut down the virtual machine"
23046 msgstr ""
23047
23048 #. type: =item
23049 #: ../resize/virt-resize.pod:79
23050 msgid "2. Locate input disk image"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../resize/virt-resize.pod:81
23055 msgid ""
23056 "Locate the input disk image (ie. the file or device on the host containing "
23057 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23058 "dumpxml> like this to find the disk image name:"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../resize/virt-resize.pod:85
23063 #, no-wrap
23064 msgid ""
23065 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23066 " Found 1 nodes:\n"
23067 " -- NODE --\n"
23068 " <source dev=\"/dev/vg/lv_guest\" />\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: =item
23073 #: ../resize/virt-resize.pod:90
23074 msgid "3. Look at current sizing"
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../resize/virt-resize.pod:92
23079 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23080 msgstr ""
23081
23082 #. type: verbatim
23083 #: ../resize/virt-resize.pod:95
23084 #, no-wrap
23085 msgid ""
23086 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23087 " Name       Type       Size  Parent\n"
23088 " /dev/sda1  partition  101M  /dev/sda\n"
23089 " /dev/sda2  partition  7.9G  /dev/sda\n"
23090 " /dev/sda   device     8.0G  -\n"
23091 "\n"
23092 msgstr ""
23093
23094 #. type: textblock
23095 #: ../resize/virt-resize.pod:101
23096 msgid ""
23097 "(This example is a virtual machine with an 8 GB disk which we would like to "
23098 "expand up to 10 GB)."
23099 msgstr ""
23100
23101 #. type: =item
23102 #: ../resize/virt-resize.pod:104
23103 msgid "4. Create output disk"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../resize/virt-resize.pod:106
23108 msgid ""
23109 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23110 "to store the resized output disk."
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../resize/virt-resize.pod:109
23115 msgid ""
23116 "To store the resized disk image in a file, create a file of a suitable size:"
23117 msgstr ""
23118
23119 #. type: verbatim
23120 #: ../resize/virt-resize.pod:112
23121 #, no-wrap
23122 msgid ""
23123 " # rm -f outdisk\n"
23124 " # truncate -s 10G outdisk\n"
23125 "\n"
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../resize/virt-resize.pod:115
23130 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23131 msgstr ""
23132
23133 #. type: verbatim
23134 #: ../resize/virt-resize.pod:117
23135 #, no-wrap
23136 msgid ""
23137 " # lvcreate -L 10G -n lv_name vg_name\n"
23138 "\n"
23139 msgstr ""
23140
23141 #. type: textblock
23142 #: ../resize/virt-resize.pod:119
23143 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23144 msgstr ""
23145
23146 #. type: verbatim
23147 #: ../resize/virt-resize.pod:121
23148 #, no-wrap
23149 msgid ""
23150 " # virsh pool-list\n"
23151 " # virsh vol-create-as poolname newvol 10G\n"
23152 "\n"
23153 msgstr ""
23154
23155 #. type: =item
23156 #: ../resize/virt-resize.pod:124
23157 msgid "5. Resize"
23158 msgstr ""
23159
23160 #. type: textblock
23161 #: ../resize/virt-resize.pod:126
23162 msgid ""
23163 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23164 "file) and the output disk.  The output disk is the one created in the "
23165 "previous step."
23166 msgstr ""
23167
23168 #. type: verbatim
23169 #: ../resize/virt-resize.pod:130
23170 #, no-wrap
23171 msgid ""
23172 " # virt-resize indisk outdisk\n"
23173 "\n"
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../resize/virt-resize.pod:132
23178 msgid ""
23179 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23180 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23181 "larger, then an extra, empty partition is created at the end of the disk "
23182 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23183 "error."
23184 msgstr ""
23185
23186 #. type: textblock
23187 #: ../resize/virt-resize.pod:138
23188 msgid ""
23189 "More realistically you'd want to expand existing partitions in the disk "
23190 "image by passing extra options (for the full list see the L</OPTIONS> "
23191 "section below)."
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../resize/virt-resize.pod:142
23196 msgid ""
23197 "L</--expand> is the most useful option.  It expands the named partition "
23198 "within the disk to fill any extra space:"
23199 msgstr ""
23200
23201 #. type: verbatim
23202 #: ../resize/virt-resize.pod:145
23203 #, no-wrap
23204 msgid ""
23205 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23206 "\n"
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../resize/virt-resize.pod:147
23211 msgid ""
23212 "(In this case, an extra partition is I<not> created at the end of the disk, "
23213 "because there will be no unused space)."
23214 msgstr ""
23215
23216 #. type: textblock
23217 #: ../resize/virt-resize.pod:150
23218 msgid ""
23219 "L</--resize> is the other commonly used option.  The following would "
23220 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23221 "rest of the available space:"
23222 msgstr ""
23223
23224 #. type: verbatim
23225 #: ../resize/virt-resize.pod:154
23226 #, no-wrap
23227 msgid ""
23228 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23229 "     indisk outdisk\n"
23230 "\n"
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../resize/virt-resize.pod:157
23235 msgid ""
23236 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23237 "if virt-resize knows how, it will resize the contents, the equivalent of "
23238 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23239 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23240 "filesystems, so you would have to online resize them after booting the guest."
23241 msgstr ""
23242
23243 #. type: textblock
23244 #: ../resize/virt-resize.pod:164
23245 msgid "Other options are covered below."
23246 msgstr ""
23247
23248 #. type: =item
23249 #: ../resize/virt-resize.pod:166
23250 msgid "6. Test"
23251 msgstr ""
23252
23253 #. type: textblock
23254 #: ../resize/virt-resize.pod:168
23255 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../resize/virt-resize.pod:170
23260 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23261 msgstr ""
23262
23263 #. type: verbatim
23264 #: ../resize/virt-resize.pod:172
23265 #, no-wrap
23266 msgid ""
23267 " # virsh edit guestname\n"
23268 "\n"
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../resize/virt-resize.pod:174
23273 msgid ""
23274 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23275 "html#elementsDisks>"
23276 msgstr ""
23277
23278 #. type: textblock
23279 #: ../resize/virt-resize.pod:177
23280 msgid "Then start up the domain with the new, resized disk:"
23281 msgstr ""
23282
23283 #. type: verbatim
23284 #: ../resize/virt-resize.pod:179
23285 #, no-wrap
23286 msgid ""
23287 " # virsh start guestname\n"
23288 "\n"
23289 msgstr ""
23290
23291 #. type: textblock
23292 #: ../resize/virt-resize.pod:181
23293 msgid ""
23294 "and check that it still works.  See also the L</NOTES> section below for "
23295 "additional information."
23296 msgstr ""
23297
23298 #. type: =item
23299 #: ../resize/virt-resize.pod:184
23300 msgid "7. Resize LVs etc inside the guest"
23301 msgstr ""
23302
23303 #. type: textblock
23304 #: ../resize/virt-resize.pod:186
23305 msgid "(This can also be done offline using L<guestfish(1)>)"
23306 msgstr ""
23307
23308 #. type: textblock
23309 #: ../resize/virt-resize.pod:188
23310 msgid ""
23311 "Once the guest has booted you should see the new space available, at least "
23312 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23313 "may need to resize LVs inside PVs, and also resize filesystem types that "
23314 "virt-resize does not know how to expand."
23315 msgstr ""
23316
23317 #. type: =head2
23318 #: ../resize/virt-resize.pod:195
23319 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23320 msgstr ""
23321
23322 #. type: textblock
23323 #: ../resize/virt-resize.pod:197
23324 msgid ""
23325 "Shrinking is somewhat more complex than expanding, and only an overview is "
23326 "given here."
23327 msgstr ""
23328
23329 #. type: textblock
23330 #: ../resize/virt-resize.pod:200
23331 msgid ""
23332 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23333 "filesystems).  The user has to shrink content before passing the disk image "
23334 "to virt-resize, and virt-resize will check that the content has been shrunk "
23335 "properly."
23336 msgstr ""
23337
23338 #. type: textblock
23339 #: ../resize/virt-resize.pod:205
23340 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23341 msgstr ""
23342
23343 #. type: textblock
23344 #: ../resize/virt-resize.pod:207
23345 msgid ""
23346 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23347 "steps 3 and 4 above to allocate a new disk image."
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../resize/virt-resize.pod:210
23352 msgid ""
23353 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23354 msgstr ""
23355
23356 #. type: =head2
23357 #: ../resize/virt-resize.pod:213
23358 msgid "IGNORING OR DELETING PARTITIONS"
23359 msgstr ""
23360
23361 #. type: textblock
23362 #: ../resize/virt-resize.pod:215
23363 msgid ""
23364 "virt-resize also gives a convenient way to ignore or delete partitions when "
23365 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23366 "up the copy where you don't care about the existing contents of a "
23367 "partition.  Deleting a partition removes it completely, but note that it "
23368 "also renumbers any partitions after the one which is deleted, which can "
23369 "leave some guests unbootable."
23370 msgstr ""
23371
23372 #. type: =head2
23373 #: ../resize/virt-resize.pod:222
23374 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../resize/virt-resize.pod:224
23379 msgid ""
23380 "If the input disk is in qcow2 format, then you may prefer that the output is "
23381 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23382 "the fly.  The output format is simply determined by the format of the empty "
23383 "output container that you provide.  Thus to create qcow2 output, use:"
23384 msgstr ""
23385
23386 #. type: verbatim
23387 #: ../resize/virt-resize.pod:230
23388 #, no-wrap
23389 msgid ""
23390 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23391 "\n"
23392 msgstr ""
23393
23394 #. type: textblock
23395 #: ../resize/virt-resize.pod:232
23396 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23397 msgstr ""
23398
23399 #. type: textblock
23400 #: ../resize/virt-resize.pod:234
23401 msgid "Similarly, to get non-sparse raw output use:"
23402 msgstr ""
23403
23404 #. type: verbatim
23405 #: ../resize/virt-resize.pod:236
23406 #, no-wrap
23407 msgid ""
23408 " fallocate -l size outdisk\n"
23409 "\n"
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../resize/virt-resize.pod:238
23414 msgid ""
23415 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23416 "dev/zero of=outdisk bs=1M count=..>)"
23417 msgstr ""
23418
23419 #. type: =head2
23420 #: ../resize/virt-resize.pod:241
23421 msgid "LOGICAL PARTITIONS"
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../resize/virt-resize.pod:243
23426 msgid ""
23427 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23428 "tables) cannot be resized."
23429 msgstr ""
23430
23431 #. type: textblock
23432 #: ../resize/virt-resize.pod:246
23433 msgid ""
23434 "To understand what is going on, firstly one of the four partitions C</dev/"
23435 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23436 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23437 "type."
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../resize/virt-resize.pod:251
23442 msgid "Logical partitions live inside the extended partition."
23443 msgstr ""
23444
23445 #. type: textblock
23446 #: ../resize/virt-resize.pod:253
23447 msgid ""
23448 "The extended partition can be expanded, but not shrunk (unless you force it, "
23449 "which is not advisable).  When the extended partition is copied across, all "
23450 "the logical partitions contained inside are copied over implicitly.  Virt-"
23451 "resize does not look inside the extended partition, so it copies the logical "
23452 "partitions blindly."
23453 msgstr ""
23454
23455 #. type: textblock
23456 #: ../resize/virt-resize.pod:259
23457 msgid ""
23458 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23459 "line.  Doing so will give an error."
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23464 msgid "Display help."
23465 msgstr ""
23466
23467 #. type: =item
23468 #: ../resize/virt-resize.pod:270
23469 msgid "B<--align-first auto>"
23470 msgstr ""
23471
23472 #. type: =item
23473 #: ../resize/virt-resize.pod:272
23474 msgid "B<--align-first never>"
23475 msgstr ""
23476
23477 #. type: =item
23478 #: ../resize/virt-resize.pod:274
23479 msgid "B<--align-first always>"
23480 msgstr ""
23481
23482 #. type: textblock
23483 #: ../resize/virt-resize.pod:276
23484 msgid ""
23485 "Align the first partition for improved performance (see also the I<--"
23486 "alignment> option)."
23487 msgstr ""
23488
23489 #. type: textblock
23490 #: ../resize/virt-resize.pod:279
23491 msgid ""
23492 "The default is I<--align-first auto> which only aligns the first partition "
23493 "if it is safe to do so.  That is, only when we know how to fix the "
23494 "bootloader automatically, and at the moment that can only be done for "
23495 "Windows guests."
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../resize/virt-resize.pod:284
23500 msgid ""
23501 "I<--align-first never> means we never move the first partition.  This is the "
23502 "safest option.  Try this if the guest does not boot after resizing."
23503 msgstr ""
23504
23505 #. type: textblock
23506 #: ../resize/virt-resize.pod:288
23507 msgid ""
23508 "I<--align-first always> means we always align the first partition (if it "
23509 "needs to be aligned).  For some guests this will break the bootloader, "
23510 "making the guest unbootable."
23511 msgstr ""
23512
23513 #. type: =item
23514 #: ../resize/virt-resize.pod:292
23515 msgid "B<--alignment N>"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../resize/virt-resize.pod:294
23520 msgid ""
23521 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23522 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../resize/virt-resize.pod:298
23527 msgid ""
23528 "Assuming 512 byte sector size inside the guest, here are some suitable "
23529 "values for this:"
23530 msgstr ""
23531
23532 #. type: =item
23533 #: ../resize/virt-resize.pod:303
23534 msgid "I<--alignment 1> (512 bytes)"
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../resize/virt-resize.pod:305
23539 msgid ""
23540 "The partitions would be packed together as closely as possible, but would be "
23541 "completely unaligned.  In some cases this can cause very poor performance.  "
23542 "See L<virt-alignment-scan(1)> for further details."
23543 msgstr ""
23544
23545 #. type: =item
23546 #: ../resize/virt-resize.pod:309
23547 msgid "I<--alignment 8> (4K)"
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../resize/virt-resize.pod:311
23552 msgid ""
23553 "This would be the minimum acceptable alignment for reasonable performance on "
23554 "modern hosts."
23555 msgstr ""
23556
23557 #. type: =item
23558 #: ../resize/virt-resize.pod:314
23559 msgid "I<--alignment 128> (64K)"
23560 msgstr ""
23561
23562 #. type: textblock
23563 #: ../resize/virt-resize.pod:316
23564 msgid ""
23565 "This alignment provides good performance when the host is using high end "
23566 "network storage."
23567 msgstr ""
23568
23569 #. type: =item
23570 #: ../resize/virt-resize.pod:319
23571 msgid "I<--alignment 2048> (1M)"
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../resize/virt-resize.pod:321
23576 msgid ""
23577 "This is the standard alignment used by all newly installed guests since "
23578 "around 2008."
23579 msgstr ""
23580
23581 #. type: =item
23582 #: ../resize/virt-resize.pod:326
23583 msgid "B<-d>"
23584 msgstr ""
23585
23586 #. type: =item
23587 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
23588 #: ../tools/virt-win-reg.pl:120
23589 msgid "B<--debug>"
23590 msgstr ""
23591
23592 #. type: textblock
23593 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23594 msgid "Enable debugging messages."
23595 msgstr ""
23596
23597 #. type: =item
23598 #: ../resize/virt-resize.pod:332
23599 msgid "B<--delete part>"
23600 msgstr ""
23601
23602 #. type: textblock
23603 #: ../resize/virt-resize.pod:334
23604 msgid ""
23605 "Delete the named partition.  It would be more accurate to describe this as "
23606 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23607 "the original disk image is left intact."
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:338
23612 msgid ""
23613 "Note that when you delete a partition, then anything contained in the "
23614 "partition is also deleted.  Furthermore, this causes any partitions that "
23615 "come after to be I<renumbered>, which can easily make your guest unbootable."
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
23620 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23621 msgid "You can give this option multiple times."
23622 msgstr ""
23623
23624 #. type: =item
23625 #: ../resize/virt-resize.pod:345
23626 msgid "B<--expand part>"
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../resize/virt-resize.pod:347
23631 msgid ""
23632 "Expand the named partition so it uses up all extra space (space left over "
23633 "after any other resize changes that you request have been done)."
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../resize/virt-resize.pod:350
23638 msgid ""
23639 "If virt-resize knows how, it will expand the direct content of the "
23640 "partition.  For example, if the partition is an LVM PV, it will expand the "
23641 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23642 "content it doesn't know about alone."
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../resize/virt-resize.pod:355
23647 msgid "Currently virt-resize can resize:"
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../resize/virt-resize.pod:361
23652 msgid "ext2, ext3 and ext4 filesystems."
23653 msgstr ""
23654
23655 #. type: textblock
23656 #: ../resize/virt-resize.pod:365
23657 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../resize/virt-resize.pod:367
23662 msgid ""
23663 "The filesystem must have been shut down consistently last time it was used.  "
23664 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23665 "consistency check, so at the first boot after resizing Windows will check "
23666 "the disk."
23667 msgstr ""
23668
23669 #. type: textblock
23670 #: ../resize/virt-resize.pod:374
23671 msgid ""
23672 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23673 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23674 "resize LVs as desired after boot."
23675 msgstr ""
23676
23677 #. type: textblock
23678 #: ../resize/virt-resize.pod:380
23679 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23684 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23685 msgstr ""
23686
23687 #. type: =item
23688 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
23689 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23690 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23691 msgid "B<--format> raw"
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23696 msgid ""
23697 "Specify the format of the input disk image.  If this flag is not given then "
23698 "it is auto-detected from the image itself."
23699 msgstr ""
23700
23701 #. type: textblock
23702 #: ../resize/virt-resize.pod:394
23703 msgid ""
23704 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23705 "AND NON-SPARSE RAW FORMATS>."
23706 msgstr ""
23707
23708 #. type: =item
23709 #: ../resize/virt-resize.pod:397
23710 msgid "B<--ignore part>"
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../resize/virt-resize.pod:399
23715 msgid ""
23716 "Ignore the named partition.  Effectively this means the partition is "
23717 "allocated on the destination disk, but the content is not copied across from "
23718 "the source disk.  The content of the partition will be blank (all zero "
23719 "bytes)."
23720 msgstr ""
23721
23722 #. type: =item
23723 #: ../resize/virt-resize.pod:406
23724 msgid "B<--LV-expand logvol>"
23725 msgstr ""
23726
23727 #. type: textblock
23728 #: ../resize/virt-resize.pod:408
23729 msgid ""
23730 "This takes the logical volume and, as a final step, expands it to fill all "
23731 "the space available in its volume group.  A typical usage, assuming a Linux "
23732 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23733 "lv_root> would be:"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../resize/virt-resize.pod:413
23738 #, no-wrap
23739 msgid ""
23740 " virt-resize indisk outdisk \\\n"
23741 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23742 "\n"
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../resize/virt-resize.pod:416
23747 msgid ""
23748 "This would first expand the partition (and PV), and then expand the root "
23749 "device to fill the extra space in the PV."
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../resize/virt-resize.pod:419
23754 msgid ""
23755 "The contents of the LV are also resized if virt-resize knows how to do "
23756 "that.  You can stop virt-resize from trying to expand the content by using "
23757 "the option I<--no-expand-content>."
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../resize/virt-resize.pod:423
23762 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../resize/virt-resize.pod:425
23767 msgid ""
23768 "You can give this option multiple times, I<but> it doesn't make sense to do "
23769 "this unless the logical volumes you specify are all in different volume "
23770 "groups."
23771 msgstr ""
23772
23773 #. type: =item
23774 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23775 msgid "B<--machine-readable>"
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23780 msgid ""
23781 "This option is used to make the output more machine friendly when being "
23782 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23783 msgstr ""
23784
23785 #. type: =item
23786 #: ../resize/virt-resize.pod:437
23787 msgid "B<--dryrun>"
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../resize/virt-resize.pod:439
23792 msgid "Print a summary of what would be done, but don't do anything."
23793 msgstr ""
23794
23795 #. type: =item
23796 #: ../resize/virt-resize.pod:441
23797 msgid "B<--no-copy-boot-loader>"
23798 msgstr ""
23799
23800 #. type: textblock
23801 #: ../resize/virt-resize.pod:443
23802 msgid ""
23803 "By default, virt-resize copies over some sectors at the start of the disk "
23804 "(up to the beginning of the first partition).  Commonly these sectors "
23805 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23806 "in order for the guest to boot correctly."
23807 msgstr ""
23808
23809 #. type: textblock
23810 #: ../resize/virt-resize.pod:448
23811 msgid ""
23812 "If you specify this flag, then this initial copy is not done.  You may need "
23813 "to reinstall the boot loader in this case."
23814 msgstr ""
23815
23816 #. type: =item
23817 #: ../resize/virt-resize.pod:451
23818 msgid "B<--no-extra-partition>"
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../resize/virt-resize.pod:453
23823 msgid ""
23824 "By default, virt-resize creates an extra partition if there is any extra, "
23825 "unused space after all resizing has happened.  Use this option to prevent "
23826 "the extra partition from being created.  If you do this then the extra space "
23827 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23828 "tool in the guest."
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../resize/virt-resize.pod:459
23833 msgid ""
23834 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23835 "will be created."
23836 msgstr ""
23837
23838 #. type: =item
23839 #: ../resize/virt-resize.pod:462
23840 msgid "B<--no-expand-content>"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../resize/virt-resize.pod:464
23845 msgid ""
23846 "By default, virt-resize will try to expand the direct contents of "
23847 "partitions, if it knows how (see I<--expand> option above)."
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../resize/virt-resize.pod:467
23852 msgid ""
23853 "If you give the I<--no-expand-content> option then virt-resize will not "
23854 "attempt this."
23855 msgstr ""
23856
23857 #. type: =item
23858 #: ../resize/virt-resize.pod:470
23859 msgid "B<--ntfsresize-force>"
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../resize/virt-resize.pod:472
23864 msgid ""
23865 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23866 "the NTFS disk is marked as needing a consistency check.  You have to use "
23867 "this option if you want to resize a Windows guest multiple times without "
23868 "booting into Windows between each resize."
23869 msgstr ""
23870
23871 #. type: =item
23872 #: ../resize/virt-resize.pod:478
23873 msgid "B<--output-format> raw"
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:480
23878 msgid ""
23879 "Specify the format of the output disk image.  If this flag is not given then "
23880 "it is auto-detected from the image itself."
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../resize/virt-resize.pod:486
23885 msgid ""
23886 "Note that this option I<does not create> the output format.  This option "
23887 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23888 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23889 "SPARSE RAW FORMATS>."
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../resize/virt-resize.pod:495
23894 msgid "Don't print the summary."
23895 msgstr ""
23896
23897 #. type: =item
23898 #: ../resize/virt-resize.pod:497
23899 msgid "B<--resize part=size>"
23900 msgstr ""
23901
23902 #. type: textblock
23903 #: ../resize/virt-resize.pod:499
23904 msgid ""
23905 "Resize the named partition (expanding or shrinking it) so that it has the "
23906 "given size."
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../resize/virt-resize.pod:502
23911 msgid ""
23912 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23913 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23914 "size; or as a relative number or percentage.  For example:"
23915 msgstr ""
23916
23917 #. type: verbatim
23918 #: ../resize/virt-resize.pod:508
23919 #, no-wrap
23920 msgid ""
23921 " --resize /dev/sda2=10G\n"
23922 "\n"
23923 msgstr ""
23924
23925 #. type: verbatim
23926 #: ../resize/virt-resize.pod:510
23927 #, no-wrap
23928 msgid ""
23929 " --resize /dev/sda4=90%\n"
23930 "\n"
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../resize/virt-resize.pod:512
23935 #, no-wrap
23936 msgid ""
23937 " --resize /dev/sda2=+1G\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../resize/virt-resize.pod:514
23943 #, no-wrap
23944 msgid ""
23945 " --resize /dev/sda2=-200M\n"
23946 "\n"
23947 msgstr ""
23948
23949 #. type: verbatim
23950 #: ../resize/virt-resize.pod:516
23951 #, no-wrap
23952 msgid ""
23953 " --resize /dev/sda1=+128K\n"
23954 "\n"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../resize/virt-resize.pod:518
23959 #, no-wrap
23960 msgid ""
23961 " --resize /dev/sda1=+10%\n"
23962 "\n"
23963 msgstr ""
23964
23965 #. type: verbatim
23966 #: ../resize/virt-resize.pod:520
23967 #, no-wrap
23968 msgid ""
23969 " --resize /dev/sda1=-10%\n"
23970 "\n"
23971 msgstr ""
23972
23973 #. type: textblock
23974 #: ../resize/virt-resize.pod:522
23975 msgid ""
23976 "You can increase the size of any partition.  Virt-resize will expand the "
23977 "direct content of the partition if it knows how (see I<--expand> below)."
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../resize/virt-resize.pod:526
23982 msgid ""
23983 "You can only I<decrease> the size of partitions that contain filesystems or "
23984 "PVs which have already been shrunk.  Virt-resize will check this has been "
23985 "done before proceeding, or else will print an error (see also I<--resize-"
23986 "force>)."
23987 msgstr ""
23988
23989 #. type: =item
23990 #: ../resize/virt-resize.pod:533
23991 msgid "B<--resize-force part=size>"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../resize/virt-resize.pod:535
23996 msgid ""
23997 "This is the same as I<--resize> except that it will let you decrease the "
23998 "size of any partition.  Generally this means you will lose any data which "
23999 "was at the end of the partition you shrink, but you may not care about that "
24000 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24001 "as a swap partition)."
24002 msgstr ""
24003
24004 #. type: textblock
24005 #: ../resize/virt-resize.pod:541
24006 msgid "See also the I<--ignore> option."
24007 msgstr ""
24008
24009 #. type: =item
24010 #: ../resize/virt-resize.pod:543
24011 msgid "B<--shrink part>"
24012 msgstr ""
24013
24014 #. type: textblock
24015 #: ../resize/virt-resize.pod:545
24016 msgid ""
24017 "Shrink the named partition until the overall disk image fits in the "
24018 "destination.  The named partition B<must> contain a filesystem or PV which "
24019 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24020 "online tools).  Virt-resize will check this and give an error if it has not "
24021 "been done."
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../resize/virt-resize.pod:551
24026 msgid ""
24027 "The amount by which the overall disk must be shrunk (after carrying out all "
24028 "other operations requested by the user) is called the \"deficit\".  For "
24029 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24030 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24031 "would give an error unless the user specified a partition to shrink and that "
24032 "partition had more than a gigabyte of free space."
24033 msgstr ""
24034
24035 #. type: =head1
24036 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24037 msgid "MACHINE READABLE OUTPUT"
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../resize/virt-resize.pod:571
24042 msgid ""
24043 "The I<--machine-readable> option can be used to make the output more machine "
24044 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24045 "etc."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24050 msgid "There are two ways to use this option."
24051 msgstr ""
24052
24053 #. type: textblock
24054 #: ../resize/virt-resize.pod:577
24055 msgid ""
24056 "Firstly use the option on its own to query the capabilities of the virt-"
24057 "resize binary.  Typical output looks like this:"
24058 msgstr ""
24059
24060 #. type: verbatim
24061 #: ../resize/virt-resize.pod:580
24062 #, no-wrap
24063 msgid ""
24064 " $ virt-resize --machine-readable\n"
24065 " virt-resize\n"
24066 " ntfsresize-force\n"
24067 " 32bitok\n"
24068 " ntfs\n"
24069 " btrfs\n"
24070 "\n"
24071 msgstr ""
24072
24073 #. type: textblock
24074 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24075 msgid ""
24076 "A list of features is printed, one per line, and the program exits with "
24077 "status 0."
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24082 msgid ""
24083 "Secondly use the option in conjunction with other options to make the "
24084 "regular program output more machine friendly."
24085 msgstr ""
24086
24087 #. type: textblock
24088 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24089 msgid "At the moment this means:"
24090 msgstr ""
24091
24092 #. type: textblock
24093 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24094 msgid ""
24095 "Progress bar messages can be parsed from stdout by looking for this regular "
24096 "expression:"
24097 msgstr ""
24098
24099 #. type: verbatim
24100 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24101 #, no-wrap
24102 msgid ""
24103 " ^[0-9]+/[0-9]+$\n"
24104 "\n"
24105 msgstr ""
24106
24107 #. type: textblock
24108 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24109 msgid ""
24110 "The calling program should treat messages sent to stdout (except for "
24111 "progress bar messages) as status messages.  They can be logged and/or "
24112 "displayed to the user."
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../resize/virt-resize.pod:612
24117 msgid ""
24118 "The calling program should treat messages sent to stderr as error messages.  "
24119 "In addition, virt-resize exits with a non-zero status code if there was a "
24120 "fatal error."
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../resize/virt-resize.pod:618
24125 msgid ""
24126 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24127 "readable> option and will return an error."
24128 msgstr ""
24129
24130 #. type: =head2
24131 #: ../resize/virt-resize.pod:623
24132 msgid "\"Partition 1 does not end on cylinder boundary.\""
24133 msgstr ""
24134
24135 #. type: textblock
24136 #: ../resize/virt-resize.pod:625
24137 msgid ""
24138 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24139 "alignment> parameter).  Usually this means the partitions will not be "
24140 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24141 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24142 "drives.  Alignment of partitions to cylinders is not required by any modern "
24143 "operating system."
24144 msgstr ""
24145
24146 #. type: =head2
24147 #: ../resize/virt-resize.pod:632
24148 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../resize/virt-resize.pod:634
24153 msgid ""
24154 "In Windows Vista and later versions, Microsoft switched to using a separate "
24155 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24156 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24157 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24158 "the second partition (ie. C: drive)  should work."
24159 msgstr ""
24160
24161 #. type: textblock
24162 #: ../resize/virt-resize.pod:641
24163 msgid ""
24164 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24165 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24166 "it find errors) is nothing to worry about."
24167 msgstr ""
24168
24169 #. type: =head2
24170 #: ../resize/virt-resize.pod:645
24171 msgid "GUEST BOOT STUCK AT \"GRUB\""
24172 msgstr ""
24173
24174 #. type: textblock
24175 #: ../resize/virt-resize.pod:647
24176 msgid ""
24177 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24178 "printing C<GRUB> on the console, try reinstalling grub."
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../resize/virt-resize.pod:650
24183 #, no-wrap
24184 msgid ""
24185 " guestfish -i -a newdisk\n"
24186 " ><fs> cat /boot/grub/device.map\n"
24187 " # check the contents of this file are sensible or\n"
24188 " # edit the file if necessary\n"
24189 " ><fs> grub-install / /dev/vda\n"
24190 " ><fs> exit\n"
24191 "\n"
24192 msgstr ""
24193
24194 #. type: textblock
24195 #: ../resize/virt-resize.pod:657
24196 msgid ""
24197 "For more flexible guest reconfiguration, including if you need to specify "
24198 "other parameters to grub-install, use L<virt-rescue(1)>."
24199 msgstr ""
24200
24201 #. type: =head1
24202 #: ../resize/virt-resize.pod:660
24203 msgid "ALTERNATIVE TOOLS"
24204 msgstr ""
24205
24206 #. type: textblock
24207 #: ../resize/virt-resize.pod:662
24208 msgid ""
24209 "There are several proprietary tools for resizing partitions.  We won't "
24210 "mention any here."
24211 msgstr ""
24212
24213 #. type: textblock
24214 #: ../resize/virt-resize.pod:665
24215 msgid ""
24216 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24217 "operations on disk images.  They can resize and move partitions, but I don't "
24218 "think they can do anything with the contents, and they certainly don't "
24219 "understand LVM."
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../resize/virt-resize.pod:670
24224 msgid ""
24225 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24226 "but at a much lower level.  You will probably end up hand-calculating sector "
24227 "offsets, which is something that virt-resize was designed to avoid.  If you "
24228 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24229 "I<--debug> flag."
24230 msgstr ""
24231
24232 #. type: textblock
24233 #: ../resize/virt-resize.pod:690
24234 msgid ""
24235 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24236 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24237 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24238 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24239 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../ruby/examples/guestfs-ruby.pod:5
24244 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24245 msgstr ""
24246
24247 #. type: verbatim
24248 #: ../ruby/examples/guestfs-ruby.pod:9
24249 #, no-wrap
24250 msgid ""
24251 " require 'guestfs'\n"
24252 " g = Guestfs::Guestfs.new()\n"
24253 " g.add_drive_opts(\"disk.img\",\n"
24254 "                  :readonly => 1, :format => \"raw\")\n"
24255 " g.launch()\n"
24256 "\n"
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../ruby/examples/guestfs-ruby.pod:17
24261 msgid ""
24262 "This manual page documents how to call libguestfs from the Ruby programming "
24263 "language.  This page just documents the differences from the C API and gives "
24264 "some examples.  If you are not familiar with using libguestfs, you also need "
24265 "to read L<guestfs(3)>."
24266 msgstr ""
24267
24268 #. type: textblock
24269 #: ../ruby/examples/guestfs-ruby.pod:24
24270 msgid ""
24271 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24272 "This has a single parameter which is the error message (a string)."
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../ruby/examples/guestfs-ruby.pod:38
24277 msgid ""
24278 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24279 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24280 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../sparsify/virt-sparsify.pod:5
24285 msgid "virt-sparsify - Make a virtual machine disk sparse"
24286 msgstr ""
24287
24288 #. type: verbatim
24289 #: ../sparsify/virt-sparsify.pod:9
24290 #, no-wrap
24291 msgid ""
24292 " virt-sparsify [--options] indisk outdisk\n"
24293 "\n"
24294 msgstr ""
24295
24296 #. type: textblock
24297 #: ../sparsify/virt-sparsify.pod:13
24298 msgid ""
24299 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24300 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24301 "the disk image can be converted back to free space on the host."
24302 msgstr ""
24303
24304 #. type: textblock
24305 #: ../sparsify/virt-sparsify.pod:18
24306 msgid ""
24307 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24308 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../sparsify/virt-sparsify.pod:21
24313 msgid ""
24314 "Virt-sparsify can also convert between some disk formats, for example "
24315 "converting a raw disk image to a thin-provisioned qcow2 image."
24316 msgstr ""
24317
24318 #. type: textblock
24319 #: ../sparsify/virt-sparsify.pod:24
24320 msgid ""
24321 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24322 "machines.  If a virtual machine has more than one attached disk, you must "
24323 "sparsify each one separately."
24324 msgstr ""
24325
24326 #. type: =head2
24327 #: ../sparsify/virt-sparsify.pod:28
24328 msgid "IMPORTANT LIMITATIONS"
24329 msgstr ""
24330
24331 #. type: textblock
24332 #: ../sparsify/virt-sparsify.pod:34
24333 msgid ""
24334 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24335 "image to a destination image, leaving the source unchanged.  I<Check that "
24336 "the sparsification was successful before deleting the source image>."
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../sparsify/virt-sparsify.pod:41
24341 msgid "The virtual machine I<must be shut down> before using this tool."
24342 msgstr ""
24343
24344 #. type: textblock
24345 #: ../sparsify/virt-sparsify.pod:45
24346 msgid ""
24347 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24348 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24349 "usually much less space is required."
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../sparsify/virt-sparsify.pod:51
24354 msgid ""
24355 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24356 msgstr ""
24357
24358 #. type: textblock
24359 #: ../sparsify/virt-sparsify.pod:56
24360 msgid "Virt-sparsify cannot handle encrypted disks."
24361 msgstr ""
24362
24363 #. type: textblock
24364 #: ../sparsify/virt-sparsify.pod:60
24365 msgid ""
24366 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24367 "this space is often used for critical items like bootloaders so it's not "
24368 "really unused."
24369 msgstr ""
24370
24371 #. type: textblock
24372 #: ../sparsify/virt-sparsify.pod:66
24373 msgid ""
24374 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24375 "to do this unless we can be sure there is no hibernation data, so at the "
24376 "moment swap partitions are ignored."
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../sparsify/virt-sparsify.pod:72
24381 msgid ""
24382 "You may also want to read the manual pages for the associated tools L<virt-"
24383 "filesystems(1)> and L<virt-df(1)> before starting."
24384 msgstr ""
24385
24386 #. type: textblock
24387 #: ../sparsify/virt-sparsify.pod:77
24388 msgid "Typical usage is:"
24389 msgstr ""
24390
24391 #. type: verbatim
24392 #: ../sparsify/virt-sparsify.pod:79
24393 #, no-wrap
24394 msgid ""
24395 " virt-sparsify indisk outdisk\n"
24396 "\n"
24397 msgstr ""
24398
24399 #. type: textblock
24400 #: ../sparsify/virt-sparsify.pod:81
24401 msgid ""
24402 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24403 "is created, or overwritten if it already exists.  The format of the input "
24404 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24405 msgstr ""
24406
24407 #. type: textblock
24408 #: ../sparsify/virt-sparsify.pod:86
24409 msgid "To convert between formats, use the I<--convert> option:"
24410 msgstr ""
24411
24412 #. type: verbatim
24413 #: ../sparsify/virt-sparsify.pod:88
24414 #, no-wrap
24415 msgid ""
24416 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24417 "\n"
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../sparsify/virt-sparsify.pod:90
24422 msgid ""
24423 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24424 "can find within the source disk image.  You can get it to ignore (don't zero "
24425 "free space on) certain filesystems by doing:"
24426 msgstr ""
24427
24428 #. type: verbatim
24429 #: ../sparsify/virt-sparsify.pod:94
24430 #, no-wrap
24431 msgid ""
24432 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24433 "\n"
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../sparsify/virt-sparsify.pod:96
24438 msgid ""
24439 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24440 msgstr ""
24441
24442 #. type: =item
24443 #: ../sparsify/virt-sparsify.pod:107
24444 msgid "B<--convert> raw"
24445 msgstr ""
24446
24447 #. type: =item
24448 #: ../sparsify/virt-sparsify.pod:109
24449 msgid "B<--convert> qcow2"
24450 msgstr ""
24451
24452 #. type: =item
24453 #: ../sparsify/virt-sparsify.pod:111
24454 msgid "B<--convert> [other formats]"
24455 msgstr ""
24456
24457 #. type: textblock
24458 #: ../sparsify/virt-sparsify.pod:113
24459 msgid ""
24460 "Use C<output-format> as the format for the destination image.  If this is "
24461 "not specified, then the input format is used."
24462 msgstr ""
24463
24464 #. type: textblock
24465 #: ../sparsify/virt-sparsify.pod:116
24466 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24467 msgstr ""
24468
24469 #. type: textblock
24470 #: ../sparsify/virt-sparsify.pod:118
24471 msgid ""
24472 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24473 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24474 msgstr ""
24475
24476 #. type: textblock
24477 #: ../sparsify/virt-sparsify.pod:122
24478 msgid ""
24479 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24480 "sparsify doesn't need to try to guess the input format."
24481 msgstr ""
24482
24483 #. type: =item
24484 #: ../sparsify/virt-sparsify.pod:127
24485 msgid "B<--format> qcow2"
24486 msgstr ""
24487
24488 #. type: =item
24489 #: ../sparsify/virt-sparsify.pod:135
24490 msgid "B<--ignore> filesystem"
24491 msgstr ""
24492
24493 #. type: =item
24494 #: ../sparsify/virt-sparsify.pod:137
24495 msgid "B<--ignore> volgroup"
24496 msgstr ""
24497
24498 #. type: textblock
24499 #: ../sparsify/virt-sparsify.pod:139
24500 msgid ""
24501 "Ignore the named filesystem.  Free space on the filesystem will not be "
24502 "zeroed, but existing blocks of zeroes will still be sparsified."
24503 msgstr ""
24504
24505 #. type: textblock
24506 #: ../sparsify/virt-sparsify.pod:142
24507 msgid ""
24508 "In the second form, this ignores the named volume group.  Use the volume "
24509 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../sparsify/virt-sparsify.pod:157
24514 msgid "This disables progress bars and other unnecessary output."
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../sparsify/virt-sparsify.pod:179
24519 msgid ""
24520 "The I<--machine-readable> option can be used to make the output more machine "
24521 "friendly, which is useful when calling virt-sparsify from other programs, "
24522 "GUIs etc."
24523 msgstr ""
24524
24525 #. type: textblock
24526 #: ../sparsify/virt-sparsify.pod:185
24527 msgid ""
24528 "Firstly use the option on its own to query the capabilities of the virt-"
24529 "sparsify binary.  Typical output looks like this:"
24530 msgstr ""
24531
24532 #. type: verbatim
24533 #: ../sparsify/virt-sparsify.pod:188
24534 #, no-wrap
24535 msgid ""
24536 " $ virt-sparsify --machine-readable\n"
24537 " virt-sparsify\n"
24538 " ntfs\n"
24539 " btrfs\n"
24540 "\n"
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../sparsify/virt-sparsify.pod:218
24545 msgid ""
24546 "The calling program should treat messages sent to stderr as error messages.  "
24547 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24548 "fatal error."
24549 msgstr ""
24550
24551 #. type: textblock
24552 #: ../sparsify/virt-sparsify.pod:224
24553 msgid ""
24554 "All versions of virt-sparsify have supported the I<--machine-readable> "
24555 "option."
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../sparsify/virt-sparsify.pod:238
24560 msgid ""
24561 "Location of the temporary directory used for the potentially large temporary "
24562 "overlay file."
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../sparsify/virt-sparsify.pod:241
24567 msgid ""
24568 "You should ensure there is enough free space in the worst case for a full "
24569 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24570 "to another directory that has enough space."
24571 msgstr ""
24572
24573 #. type: textblock
24574 #: ../sparsify/virt-sparsify.pod:245
24575 msgid "This defaults to C</tmp>."
24576 msgstr ""
24577
24578 #. type: textblock
24579 #: ../sparsify/virt-sparsify.pod:249
24580 msgid ""
24581 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../sparsify/virt-sparsify.pod:253
24586 msgid ""
24587 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24588 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24589 "(1)>, L<http://libguestfs.org/>."
24590 msgstr ""
24591
24592 #. type: =head2
24593 #: ../src/guestfs-actions.pod:1
24594 msgid "guestfs_add_cdrom"
24595 msgstr ""
24596
24597 #. type: verbatim
24598 #: ../src/guestfs-actions.pod:3
24599 #, no-wrap
24600 msgid ""
24601 " int\n"
24602 " guestfs_add_cdrom (guestfs_h *g,\n"
24603 "                    const char *filename);\n"
24604 "\n"
24605 msgstr ""
24606
24607 #. type: textblock
24608 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
24609 #: ../src/guestfs-actions.pod:323
24610 msgid ""
24611 "I<This function is deprecated.> In new code, use the L</"
24612 "guestfs_add_drive_opts> call instead."
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../src/guestfs-actions.pod:24
24617 msgid ""
24618 "This call checks for the existence of C<filename>.  This stops you from "
24619 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24620 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24621 "instead."
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../src/guestfs-actions.pod:31
24626 msgid ""
24627 "If you just want to add an ISO file (often you use this as an efficient way "
24628 "to transfer large files into the guest), then you should probably use "
24629 "C<guestfs_add_drive_ro> instead."
24630 msgstr ""
24631
24632 #. type: textblock
24633 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
24634 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
24635 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
24636 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
24637 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
24638 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
24639 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
24640 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
24641 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
24642 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
24643 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
24644 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
24645 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
24646 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
24647 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
24648 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
24649 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
24650 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
24651 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
24652 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
24653 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
24654 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
24655 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
24656 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
24657 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
24658 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
24659 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
24660 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
24661 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
24662 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
24663 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
24664 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
24665 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
24666 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
24667 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
24668 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
24669 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
24670 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
24671 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
24672 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
24673 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
24674 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
24675 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
24676 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
24677 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
24678 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
24679 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
24680 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
24681 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
24682 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
24683 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
24684 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
24685 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
24686 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
24687 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
24688 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
24689 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
24690 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
24691 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
24692 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
24693 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
24694 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
24695 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
24696 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
24697 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
24698 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
24699 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
24700 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
24701 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
24702 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
24703 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
24704 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
24705 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
24706 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
24707 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
24708 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
24709 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
24710 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
24711 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
24712 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
24713 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
24714 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
24715 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
24716 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
24717 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
24718 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
24719 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
24720 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
24721 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
24722 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
24723 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
24724 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
24725 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
24726 #: ../src/guestfs-actions.pod:8295
24727 msgid "This function returns 0 on success or -1 on error."
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
24732 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
24733 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
24734 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
24735 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
24736 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
24737 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
24738 #: ../src/guestfs-actions.pod:8075
24739 msgid "(Added in 0.3)"
24740 msgstr ""
24741
24742 #. type: =head2
24743 #: ../src/guestfs-actions.pod:41
24744 msgid "guestfs_add_domain"
24745 msgstr ""
24746
24747 #. type: verbatim
24748 #: ../src/guestfs-actions.pod:43
24749 #, no-wrap
24750 msgid ""
24751 " int\n"
24752 " guestfs_add_domain (guestfs_h *g,\n"
24753 "                     const char *dom,\n"
24754 "                     ...);\n"
24755 "\n"
24756 msgstr ""
24757
24758 #. type: textblock
24759 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
24760 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
24761 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
24762 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
24763 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
24764 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
24765 #: ../src/guestfs-actions.pod:5626
24766 msgid ""
24767 "You may supply a list of optional arguments to this call.  Use zero or more "
24768 "of the following pairs of parameters, and terminate the list with C<-1> on "
24769 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24770 msgstr ""
24771
24772 #. type: verbatim
24773 #: ../src/guestfs-actions.pod:53
24774 #, no-wrap
24775 msgid ""
24776 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24777 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24778 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24779 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24780 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24781 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24782 "\n"
24783 msgstr ""
24784
24785 #. type: textblock
24786 #: ../src/guestfs-actions.pod:60
24787 msgid ""
24788 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24789 "It works by connecting to libvirt, requesting the domain and domain XML from "
24790 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24791 "one."
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../src/guestfs-actions.pod:141
24796 msgid ""
24797 "The other optional parameters are passed directly through to "
24798 "C<guestfs_add_drive_opts>."
24799 msgstr ""
24800
24801 #. type: textblock
24802 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
24803 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
24804 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24805 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
24806 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
24807 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
24808 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
24809 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
24810 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
24811 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
24812 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
24813 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
24814 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
24815 #: ../src/guestfs-actions.pod:8112
24816 msgid "On error this function returns -1."
24817 msgstr ""
24818
24819 #. type: textblock
24820 #: ../src/guestfs-actions.pod:146
24821 msgid "(Added in 1.7.4)"
24822 msgstr ""
24823
24824 #. type: =head2
24825 #: ../src/guestfs-actions.pod:148
24826 msgid "guestfs_add_domain_va"
24827 msgstr ""
24828
24829 #. type: verbatim
24830 #: ../src/guestfs-actions.pod:150
24831 #, no-wrap
24832 msgid ""
24833 " int\n"
24834 " guestfs_add_domain_va (guestfs_h *g,\n"
24835 "                        const char *dom,\n"
24836 "                        va_list args);\n"
24837 "\n"
24838 msgstr ""
24839
24840 #. type: textblock
24841 #: ../src/guestfs-actions.pod:155
24842 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24843 msgstr ""
24844
24845 #. type: textblock
24846 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
24847 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
24848 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
24849 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
24850 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
24851 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
24852 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
24853 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
24854 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
24855 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
24856 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
24857 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
24858 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
24859 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24860 msgstr ""
24861
24862 #. type: =head2
24863 #: ../src/guestfs-actions.pod:159
24864 msgid "guestfs_add_domain_argv"
24865 msgstr ""
24866
24867 #. type: verbatim
24868 #: ../src/guestfs-actions.pod:161
24869 #, no-wrap
24870 msgid ""
24871 " int\n"
24872 " guestfs_add_domain_argv (guestfs_h *g,\n"
24873 "                          const char *dom,\n"
24874 "                          const struct guestfs_add_domain_argv *optargs);\n"
24875 "\n"
24876 msgstr ""
24877
24878 #. type: textblock
24879 #: ../src/guestfs-actions.pod:166
24880 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24881 msgstr ""
24882
24883 #. type: =head2
24884 #: ../src/guestfs-actions.pod:170
24885 msgid "guestfs_add_drive"
24886 msgstr ""
24887
24888 #. type: verbatim
24889 #: ../src/guestfs-actions.pod:172
24890 #, no-wrap
24891 msgid ""
24892 " int\n"
24893 " guestfs_add_drive (guestfs_h *g,\n"
24894 "                    const char *filename);\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:176
24900 msgid ""
24901 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24902 "optional parameters, so the disk is added writable, with the format being "
24903 "detected automatically."
24904 msgstr ""
24905
24906 #. type: textblock
24907 #: ../src/guestfs-actions.pod:180
24908 msgid ""
24909 "Automatic detection of the format opens you up to a potential security hole "
24910 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24911 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24912 "you should think about replacing calls to this function with calls to "
24913 "C<guestfs_add_drive_opts>, and specifying the format."
24914 msgstr ""
24915
24916 #. type: =head2
24917 #: ../src/guestfs-actions.pod:191
24918 msgid "guestfs_add_drive_opts"
24919 msgstr ""
24920
24921 #. type: verbatim
24922 #: ../src/guestfs-actions.pod:193
24923 #, no-wrap
24924 msgid ""
24925 " int\n"
24926 " guestfs_add_drive_opts (guestfs_h *g,\n"
24927 "                         const char *filename,\n"
24928 "                         ...);\n"
24929 "\n"
24930 msgstr ""
24931
24932 #. type: verbatim
24933 #: ../src/guestfs-actions.pod:203
24934 #, no-wrap
24935 msgid ""
24936 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24937 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24938 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24939 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24940 "\n"
24941 msgstr ""
24942
24943 #. type: textblock
24944 #: ../src/guestfs-actions.pod:233
24945 msgid ""
24946 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24947 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24948 "Possible formats include C<raw> and C<qcow2>."
24949 msgstr ""
24950
24951 #. type: textblock
24952 #: ../src/guestfs-actions.pod:244
24953 msgid ""
24954 "This rarely-used option lets you emulate the behaviour of the deprecated "
24955 "C<guestfs_add_drive_with_if> call (q.v.)"
24956 msgstr ""
24957
24958 #. type: textblock
24959 #: ../src/guestfs-actions.pod:256
24960 msgid "(Added in 1.5.23)"
24961 msgstr ""
24962
24963 #. type: =head2
24964 #: ../src/guestfs-actions.pod:258
24965 msgid "guestfs_add_drive_opts_va"
24966 msgstr ""
24967
24968 #. type: verbatim
24969 #: ../src/guestfs-actions.pod:260
24970 #, no-wrap
24971 msgid ""
24972 " int\n"
24973 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24974 "                            const char *filename,\n"
24975 "                            va_list args);\n"
24976 "\n"
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../src/guestfs-actions.pod:265
24981 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24982 msgstr ""
24983
24984 #. type: =head2
24985 #: ../src/guestfs-actions.pod:269
24986 msgid "guestfs_add_drive_opts_argv"
24987 msgstr ""
24988
24989 #. type: verbatim
24990 #: ../src/guestfs-actions.pod:271
24991 #, no-wrap
24992 msgid ""
24993 " int\n"
24994 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24995 "                              const char *filename,\n"
24996 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24997 "\n"
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../src/guestfs-actions.pod:276
25002 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25003 msgstr ""
25004
25005 #. type: =head2
25006 #: ../src/guestfs-actions.pod:280
25007 msgid "guestfs_add_drive_ro"
25008 msgstr ""
25009
25010 #. type: verbatim
25011 #: ../src/guestfs-actions.pod:282
25012 #, no-wrap
25013 msgid ""
25014 " int\n"
25015 " guestfs_add_drive_ro (guestfs_h *g,\n"
25016 "                       const char *filename);\n"
25017 "\n"
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../src/guestfs-actions.pod:286
25022 msgid ""
25023 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25024 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25025 "disk is added read-only, with the format being detected automatically."
25026 msgstr ""
25027
25028 #. type: textblock
25029 #: ../src/guestfs-actions.pod:293
25030 msgid "(Added in 1.0.38)"
25031 msgstr ""
25032
25033 #. type: =head2
25034 #: ../src/guestfs-actions.pod:295
25035 msgid "guestfs_add_drive_ro_with_if"
25036 msgstr ""
25037
25038 #. type: verbatim
25039 #: ../src/guestfs-actions.pod:297
25040 #, no-wrap
25041 msgid ""
25042 " int\n"
25043 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25044 "                               const char *filename,\n"
25045 "                               const char *iface);\n"
25046 "\n"
25047 msgstr ""
25048
25049 #. type: textblock
25050 #: ../src/guestfs-actions.pod:309
25051 msgid ""
25052 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25053 "QEMU interface emulation to use at run time."
25054 msgstr ""
25055
25056 #. type: textblock
25057 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25058 #: ../src/guestfs-actions.pod:2881
25059 msgid "(Added in 1.0.84)"
25060 msgstr ""
25061
25062 #. type: =head2
25063 #: ../src/guestfs-actions.pod:316
25064 msgid "guestfs_add_drive_with_if"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../src/guestfs-actions.pod:318
25069 #, no-wrap
25070 msgid ""
25071 " int\n"
25072 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25073 "                            const char *filename,\n"
25074 "                            const char *iface);\n"
25075 "\n"
25076 msgstr ""
25077
25078 #. type: textblock
25079 #: ../src/guestfs-actions.pod:330
25080 msgid ""
25081 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25082 "QEMU interface emulation to use at run time."
25083 msgstr ""
25084
25085 #. type: =head2
25086 #: ../src/guestfs-actions.pod:337
25087 msgid "guestfs_aug_clear"
25088 msgstr ""
25089
25090 #. type: verbatim
25091 #: ../src/guestfs-actions.pod:339
25092 #, no-wrap
25093 msgid ""
25094 " int\n"
25095 " guestfs_aug_clear (guestfs_h *g,\n"
25096 "                    const char *augpath);\n"
25097 "\n"
25098 msgstr ""
25099
25100 #. type: textblock
25101 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25102 msgid "(Added in 1.3.4)"
25103 msgstr ""
25104
25105 #. type: =head2
25106 #: ../src/guestfs-actions.pod:350
25107 msgid "guestfs_aug_close"
25108 msgstr ""
25109
25110 #. type: verbatim
25111 #: ../src/guestfs-actions.pod:352
25112 #, no-wrap
25113 msgid ""
25114 " int\n"
25115 " guestfs_aug_close (guestfs_h *g);\n"
25116 "\n"
25117 msgstr ""
25118
25119 #. type: textblock
25120 #: ../src/guestfs-actions.pod:355
25121 msgid ""
25122 "Close the current Augeas handle and free up any resources used by it.  After "
25123 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25124 "any other Augeas functions."
25125 msgstr ""
25126
25127 #. type: textblock
25128 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25129 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25130 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25131 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25132 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25133 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25134 #: ../src/guestfs-actions.pod:6311
25135 msgid "(Added in 0.7)"
25136 msgstr ""
25137
25138 #. type: =head2
25139 #: ../src/guestfs-actions.pod:364
25140 msgid "guestfs_aug_defnode"
25141 msgstr ""
25142
25143 #. type: verbatim
25144 #: ../src/guestfs-actions.pod:366
25145 #, no-wrap
25146 msgid ""
25147 " struct guestfs_int_bool *\n"
25148 " guestfs_aug_defnode (guestfs_h *g,\n"
25149 "                      const char *name,\n"
25150 "                      const char *expr,\n"
25151 "                      const char *val);\n"
25152 "\n"
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../src/guestfs-actions.pod:375
25157 msgid ""
25158 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25159 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25160 "containing that single node."
25161 msgstr ""
25162
25163 #. type: textblock
25164 #: ../src/guestfs-actions.pod:383
25165 msgid ""
25166 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25167 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25168 msgstr ""
25169
25170 #. type: =head2
25171 #: ../src/guestfs-actions.pod:389
25172 msgid "guestfs_aug_defvar"
25173 msgstr ""
25174
25175 #. type: verbatim
25176 #: ../src/guestfs-actions.pod:391
25177 #, no-wrap
25178 msgid ""
25179 " int\n"
25180 " guestfs_aug_defvar (guestfs_h *g,\n"
25181 "                     const char *name,\n"
25182 "                     const char *expr);\n"
25183 "\n"
25184 msgstr ""
25185
25186 #. type: =head2
25187 #: ../src/guestfs-actions.pod:407
25188 msgid "guestfs_aug_get"
25189 msgstr ""
25190
25191 #. type: verbatim
25192 #: ../src/guestfs-actions.pod:409
25193 #, no-wrap
25194 msgid ""
25195 " char *\n"
25196 " guestfs_aug_get (guestfs_h *g,\n"
25197 "                  const char *augpath);\n"
25198 "\n"
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25203 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25204 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25205 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25206 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25207 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25208 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25209 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25210 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25211 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25212 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25213 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25214 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25215 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25216 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25217 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25218 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25219 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
25220 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
25221 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
25222 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
25223 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
25224 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
25225 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25226 msgid ""
25227 "This function returns a string, or NULL on error.  I<The caller must free "
25228 "the returned string after use>."
25229 msgstr ""
25230
25231 #. type: =head2
25232 #: ../src/guestfs-actions.pod:421
25233 msgid "guestfs_aug_init"
25234 msgstr ""
25235
25236 #. type: verbatim
25237 #: ../src/guestfs-actions.pod:423
25238 #, no-wrap
25239 msgid ""
25240 " int\n"
25241 " guestfs_aug_init (guestfs_h *g,\n"
25242 "                   const char *root,\n"
25243 "                   int flags);\n"
25244 "\n"
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../src/guestfs-actions.pod:432
25249 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../src/guestfs-actions.pod:457
25254 msgid ""
25255 "This option is only useful when debugging Augeas lenses.  Use of this option "
25256 "may require additional memory for the libguestfs appliance.  You may need to "
25257 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25258 "C<guestfs_set_memsize>."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:472
25263 msgid "Do not load the tree in C<guestfs_aug_init>."
25264 msgstr ""
25265
25266 #. type: textblock
25267 #: ../src/guestfs-actions.pod:476
25268 msgid "To close the handle, you can call C<guestfs_aug_close>."
25269 msgstr ""
25270
25271 #. type: =head2
25272 #: ../src/guestfs-actions.pod:484
25273 msgid "guestfs_aug_insert"
25274 msgstr ""
25275
25276 #. type: verbatim
25277 #: ../src/guestfs-actions.pod:486
25278 #, no-wrap
25279 msgid ""
25280 " int\n"
25281 " guestfs_aug_insert (guestfs_h *g,\n"
25282 "                     const char *augpath,\n"
25283 "                     const char *label,\n"
25284 "                     int before);\n"
25285 "\n"
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:504
25290 msgid "guestfs_aug_load"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:506
25295 #, no-wrap
25296 msgid ""
25297 " int\n"
25298 " guestfs_aug_load (guestfs_h *g);\n"
25299 "\n"
25300 msgstr ""
25301
25302 #. type: =head2
25303 #: ../src/guestfs-actions.pod:518
25304 msgid "guestfs_aug_ls"
25305 msgstr ""
25306
25307 #. type: verbatim
25308 #: ../src/guestfs-actions.pod:520
25309 #, no-wrap
25310 msgid ""
25311 " char **\n"
25312 " guestfs_aug_ls (guestfs_h *g,\n"
25313 "                 const char *augpath);\n"
25314 "\n"
25315 msgstr ""
25316
25317 #. type: textblock
25318 #: ../src/guestfs-actions.pod:524
25319 msgid ""
25320 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25321 "sorting the resulting nodes into alphabetical order."
25322 msgstr ""
25323
25324 #. type: textblock
25325 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25326 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25327 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
25328 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
25329 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
25330 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
25331 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
25332 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
25333 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
25334 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
25335 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
25336 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
25337 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
25338 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
25339 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
25340 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
25341 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
25342 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
25343 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
25344 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
25345 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
25346 #: ../src/guestfs-actions.pod:8393
25347 msgid ""
25348 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25349 ">), or NULL if there was an error.  I<The caller must free the strings and "
25350 "the array after use>."
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25355 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
25356 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
25357 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
25358 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
25359 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
25360 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
25361 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
25362 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
25363 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
25364 #: ../src/guestfs-actions.pod:8187
25365 msgid "(Added in 0.8)"
25366 msgstr ""
25367
25368 #. type: =head2
25369 #: ../src/guestfs-actions.pod:533
25370 msgid "guestfs_aug_match"
25371 msgstr ""
25372
25373 #. type: verbatim
25374 #: ../src/guestfs-actions.pod:535
25375 #, no-wrap
25376 msgid ""
25377 " char **\n"
25378 " guestfs_aug_match (guestfs_h *g,\n"
25379 "                    const char *augpath);\n"
25380 "\n"
25381 msgstr ""
25382
25383 #. type: =head2
25384 #: ../src/guestfs-actions.pod:549
25385 msgid "guestfs_aug_mv"
25386 msgstr ""
25387
25388 #. type: verbatim
25389 #: ../src/guestfs-actions.pod:551
25390 #, no-wrap
25391 msgid ""
25392 " int\n"
25393 " guestfs_aug_mv (guestfs_h *g,\n"
25394 "                 const char *src,\n"
25395 "                 const char *dest);\n"
25396 "\n"
25397 msgstr ""
25398
25399 #. type: =head2
25400 #: ../src/guestfs-actions.pod:563
25401 msgid "guestfs_aug_rm"
25402 msgstr ""
25403
25404 #. type: verbatim
25405 #: ../src/guestfs-actions.pod:565
25406 #, no-wrap
25407 msgid ""
25408 " int\n"
25409 " guestfs_aug_rm (guestfs_h *g,\n"
25410 "                 const char *augpath);\n"
25411 "\n"
25412 msgstr ""
25413
25414 #. type: =head2
25415 #: ../src/guestfs-actions.pod:577
25416 msgid "guestfs_aug_save"
25417 msgstr ""
25418
25419 #. type: verbatim
25420 #: ../src/guestfs-actions.pod:579
25421 #, no-wrap
25422 msgid ""
25423 " int\n"
25424 " guestfs_aug_save (guestfs_h *g);\n"
25425 "\n"
25426 msgstr ""
25427
25428 #. type: textblock
25429 #: ../src/guestfs-actions.pod:584
25430 msgid ""
25431 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25432 "are saved."
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:591
25437 msgid "guestfs_aug_set"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:593
25442 #, no-wrap
25443 msgid ""
25444 " int\n"
25445 " guestfs_aug_set (guestfs_h *g,\n"
25446 "                  const char *augpath,\n"
25447 "                  const char *val);\n"
25448 "\n"
25449 msgstr ""
25450
25451 #. type: textblock
25452 #: ../src/guestfs-actions.pod:600
25453 msgid ""
25454 "In the Augeas API, it is possible to clear a node by setting the value to "
25455 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25456 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25457 msgstr ""
25458
25459 #. type: =head2
25460 #: ../src/guestfs-actions.pod:609
25461 msgid "guestfs_available"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../src/guestfs-actions.pod:611
25466 #, no-wrap
25467 msgid ""
25468 " int\n"
25469 " guestfs_available (guestfs_h *g,\n"
25470 "                    char *const *groups);\n"
25471 "\n"
25472 msgstr ""
25473
25474 #. type: textblock
25475 #: ../src/guestfs-actions.pod:619
25476 msgid ""
25477 "The libguestfs groups, and the functions that those groups correspond to, "
25478 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25479 "runtime by calling C<guestfs_available_all_groups>."
25480 msgstr ""
25481
25482 #. type: textblock
25483 #: ../src/guestfs-actions.pod:643
25484 msgid "You must call C<guestfs_launch> before calling this function."
25485 msgstr ""
25486
25487 #. type: textblock
25488 #: ../src/guestfs-actions.pod:665
25489 msgid ""
25490 "This call was added in version C<1.0.80>.  In previous versions of "
25491 "libguestfs all you could do would be to speculatively execute a command to "
25492 "find out if the daemon implemented it.  See also C<guestfs_version>."
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25497 msgid "(Added in 1.0.80)"
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../src/guestfs-actions.pod:676
25502 msgid "guestfs_available_all_groups"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../src/guestfs-actions.pod:678
25507 #, no-wrap
25508 msgid ""
25509 " char **\n"
25510 " guestfs_available_all_groups (guestfs_h *g);\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: textblock
25515 #: ../src/guestfs-actions.pod:681
25516 msgid ""
25517 "This command returns a list of all optional groups that this daemon knows "
25518 "about.  Note this returns both supported and unsupported groups.  To find "
25519 "out which ones the daemon can actually support you have to call "
25520 "C<guestfs_available> on each member of the returned list."
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:687
25525 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../src/guestfs-actions.pod:693
25530 msgid "(Added in 1.3.15)"
25531 msgstr ""
25532
25533 #. type: =head2
25534 #: ../src/guestfs-actions.pod:695
25535 msgid "guestfs_base64_in"
25536 msgstr ""
25537
25538 #. type: verbatim
25539 #: ../src/guestfs-actions.pod:697
25540 #, no-wrap
25541 msgid ""
25542 " int\n"
25543 " guestfs_base64_in (guestfs_h *g,\n"
25544 "                    const char *base64file,\n"
25545 "                    const char *filename);\n"
25546 "\n"
25547 msgstr ""
25548
25549 #. type: textblock
25550 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25551 msgid "(Added in 1.3.5)"
25552 msgstr ""
25553
25554 #. type: =head2
25555 #: ../src/guestfs-actions.pod:709
25556 msgid "guestfs_base64_out"
25557 msgstr ""
25558
25559 #. type: verbatim
25560 #: ../src/guestfs-actions.pod:711
25561 #, no-wrap
25562 msgid ""
25563 " int\n"
25564 " guestfs_base64_out (guestfs_h *g,\n"
25565 "                     const char *filename,\n"
25566 "                     const char *base64file);\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: =head2
25571 #: ../src/guestfs-actions.pod:723
25572 msgid "guestfs_blockdev_flushbufs"
25573 msgstr ""
25574
25575 #. type: verbatim
25576 #: ../src/guestfs-actions.pod:725
25577 #, no-wrap
25578 msgid ""
25579 " int\n"
25580 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25581 "                             const char *device);\n"
25582 "\n"
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
25587 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
25588 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
25589 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
25590 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25591 msgid "(Added in 0.9.3)"
25592 msgstr ""
25593
25594 #. type: =head2
25595 #: ../src/guestfs-actions.pod:738
25596 msgid "guestfs_blockdev_getbsz"
25597 msgstr ""
25598
25599 #. type: verbatim
25600 #: ../src/guestfs-actions.pod:740
25601 #, no-wrap
25602 msgid ""
25603 " int\n"
25604 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25605 "                          const char *device);\n"
25606 "\n"
25607 msgstr ""
25608
25609 #. type: =head2
25610 #: ../src/guestfs-actions.pod:755
25611 msgid "guestfs_blockdev_getro"
25612 msgstr ""
25613
25614 #. type: verbatim
25615 #: ../src/guestfs-actions.pod:757
25616 #, no-wrap
25617 msgid ""
25618 " int\n"
25619 " guestfs_blockdev_getro (guestfs_h *g,\n"
25620 "                         const char *device);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
25626 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
25627 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
25628 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
25629 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
25630 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
25631 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
25632 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
25633 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
25634 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
25635 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
25636 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
25637 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
25638 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
25639 #: ../src/guestfs-actions.pod:5784
25640 msgid "This function returns a C truth value on success or -1 on error."
25641 msgstr ""
25642
25643 #. type: =head2
25644 #: ../src/guestfs-actions.pod:770
25645 msgid "guestfs_blockdev_getsize64"
25646 msgstr ""
25647
25648 #. type: verbatim
25649 #: ../src/guestfs-actions.pod:772
25650 #, no-wrap
25651 msgid ""
25652 " int64_t\n"
25653 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25654 "                             const char *device);\n"
25655 "\n"
25656 msgstr ""
25657
25658 #. type: textblock
25659 #: ../src/guestfs-actions.pod:778
25660 msgid "See also C<guestfs_blockdev_getsz>."
25661 msgstr ""
25662
25663 #. type: =head2
25664 #: ../src/guestfs-actions.pod:786
25665 msgid "guestfs_blockdev_getss"
25666 msgstr ""
25667
25668 #. type: verbatim
25669 #: ../src/guestfs-actions.pod:788
25670 #, no-wrap
25671 msgid ""
25672 " int\n"
25673 " guestfs_blockdev_getss (guestfs_h *g,\n"
25674 "                         const char *device);\n"
25675 "\n"
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../src/guestfs-actions.pod:795
25680 msgid ""
25681 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25682 "that)."
25683 msgstr ""
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:804
25687 msgid "guestfs_blockdev_getsz"
25688 msgstr ""
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:806
25692 #, no-wrap
25693 msgid ""
25694 " int64_t\n"
25695 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25696 "                         const char *device);\n"
25697 "\n"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../src/guestfs-actions.pod:813
25702 msgid ""
25703 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25704 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25705 msgstr ""
25706
25707 #. type: =head2
25708 #: ../src/guestfs-actions.pod:823
25709 msgid "guestfs_blockdev_rereadpt"
25710 msgstr ""
25711
25712 #. type: verbatim
25713 #: ../src/guestfs-actions.pod:825
25714 #, no-wrap
25715 msgid ""
25716 " int\n"
25717 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25718 "                            const char *device);\n"
25719 "\n"
25720 msgstr ""
25721
25722 #. type: =head2
25723 #: ../src/guestfs-actions.pod:837
25724 msgid "guestfs_blockdev_setbsz"
25725 msgstr ""
25726
25727 #. type: verbatim
25728 #: ../src/guestfs-actions.pod:839
25729 #, no-wrap
25730 msgid ""
25731 " int\n"
25732 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25733 "                          const char *device,\n"
25734 "                          int blocksize);\n"
25735 "\n"
25736 msgstr ""
25737
25738 #. type: =head2
25739 #: ../src/guestfs-actions.pod:855
25740 msgid "guestfs_blockdev_setro"
25741 msgstr ""
25742
25743 #. type: verbatim
25744 #: ../src/guestfs-actions.pod:857
25745 #, no-wrap
25746 msgid ""
25747 " int\n"
25748 " guestfs_blockdev_setro (guestfs_h *g,\n"
25749 "                         const char *device);\n"
25750 "\n"
25751 msgstr ""
25752
25753 #. type: =head2
25754 #: ../src/guestfs-actions.pod:869
25755 msgid "guestfs_blockdev_setrw"
25756 msgstr ""
25757
25758 #. type: verbatim
25759 #: ../src/guestfs-actions.pod:871
25760 #, no-wrap
25761 msgid ""
25762 " int\n"
25763 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25764 "                         const char *device);\n"
25765 "\n"
25766 msgstr ""
25767
25768 #. type: =head2
25769 #: ../src/guestfs-actions.pod:883
25770 msgid "guestfs_btrfs_filesystem_resize"
25771 msgstr ""
25772
25773 #. type: verbatim
25774 #: ../src/guestfs-actions.pod:885
25775 #, no-wrap
25776 msgid ""
25777 " int\n"
25778 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25779 "                                  const char *mountpoint,\n"
25780 "                                  ...);\n"
25781 "\n"
25782 msgstr ""
25783
25784 #. type: verbatim
25785 #: ../src/guestfs-actions.pod:895
25786 #, no-wrap
25787 msgid ""
25788 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25789 "\n"
25790 msgstr ""
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:918
25794 msgid "(Added in 1.11.17)"
25795 msgstr ""
25796
25797 #. type: =head2
25798 #: ../src/guestfs-actions.pod:920
25799 msgid "guestfs_btrfs_filesystem_resize_va"
25800 msgstr ""
25801
25802 #. type: verbatim
25803 #: ../src/guestfs-actions.pod:922
25804 #, no-wrap
25805 msgid ""
25806 " int\n"
25807 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25808 "                                     const char *mountpoint,\n"
25809 "                                     va_list args);\n"
25810 "\n"
25811 msgstr ""
25812
25813 #. type: textblock
25814 #: ../src/guestfs-actions.pod:927
25815 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25816 msgstr ""
25817
25818 #. type: =head2
25819 #: ../src/guestfs-actions.pod:931
25820 msgid "guestfs_btrfs_filesystem_resize_argv"
25821 msgstr ""
25822
25823 #. type: verbatim
25824 #: ../src/guestfs-actions.pod:933
25825 #, no-wrap
25826 msgid ""
25827 " int\n"
25828 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25829 "                                       const char *mountpoint,\n"
25830 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25831 "\n"
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../src/guestfs-actions.pod:938
25836 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25837 msgstr ""
25838
25839 #. type: =head2
25840 #: ../src/guestfs-actions.pod:942
25841 msgid "guestfs_case_sensitive_path"
25842 msgstr ""
25843
25844 #. type: verbatim
25845 #: ../src/guestfs-actions.pod:944
25846 #, no-wrap
25847 msgid ""
25848 " char *\n"
25849 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25850 "                              const char *path);\n"
25851 "\n"
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../src/guestfs-actions.pod:970
25856 msgid ""
25857 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25858 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25859 "how the directories were originally created under Windows)."
25860 msgstr ""
25861
25862 #. type: textblock
25863 #: ../src/guestfs-actions.pod:978
25864 msgid "See also C<guestfs_realpath>."
25865 msgstr ""
25866
25867 #. type: textblock
25868 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
25869 msgid "(Added in 1.0.75)"
25870 msgstr ""
25871
25872 #. type: =head2
25873 #: ../src/guestfs-actions.pod:985
25874 msgid "guestfs_cat"
25875 msgstr ""
25876
25877 #. type: verbatim
25878 #: ../src/guestfs-actions.pod:987
25879 #, no-wrap
25880 msgid ""
25881 " char *\n"
25882 " guestfs_cat (guestfs_h *g,\n"
25883 "              const char *path);\n"
25884 "\n"
25885 msgstr ""
25886
25887 #. type: textblock
25888 #: ../src/guestfs-actions.pod:993
25889 msgid ""
25890 "Note that this function cannot correctly handle binary files (specifically, "
25891 "files containing C<\\0> character which is treated as end of string).  For "
25892 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25893 "functions which have a more complex interface."
25894 msgstr ""
25895
25896 #. type: textblock
25897 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
25898 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
25899 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
25900 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
25901 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
25902 #: ../src/guestfs-actions.pod:8023
25903 msgid "(Added in 0.4)"
25904 msgstr ""
25905
25906 #. type: =head2
25907 #: ../src/guestfs-actions.pod:1006
25908 msgid "guestfs_checksum"
25909 msgstr ""
25910
25911 #. type: verbatim
25912 #: ../src/guestfs-actions.pod:1008
25913 #, no-wrap
25914 msgid ""
25915 " char *\n"
25916 " guestfs_checksum (guestfs_h *g,\n"
25917 "                   const char *csumtype,\n"
25918 "                   const char *path);\n"
25919 "\n"
25920 msgstr ""
25921
25922 #. type: textblock
25923 #: ../src/guestfs-actions.pod:1054
25924 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25925 msgstr ""
25926
25927 #. type: textblock
25928 #: ../src/guestfs-actions.pod:1056
25929 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25930 msgstr ""
25931
25932 #. type: textblock
25933 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
25934 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
25935 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
25936 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
25937 msgid "(Added in 1.0.2)"
25938 msgstr ""
25939
25940 #. type: =head2
25941 #: ../src/guestfs-actions.pod:1063
25942 msgid "guestfs_checksum_device"
25943 msgstr ""
25944
25945 #. type: verbatim
25946 #: ../src/guestfs-actions.pod:1065
25947 #, no-wrap
25948 msgid ""
25949 " char *\n"
25950 " guestfs_checksum_device (guestfs_h *g,\n"
25951 "                          const char *csumtype,\n"
25952 "                          const char *device);\n"
25953 "\n"
25954 msgstr ""
25955
25956 #. type: textblock
25957 #: ../src/guestfs-actions.pod:1070
25958 msgid ""
25959 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25960 "device named C<device>.  For the types of checksums supported see the "
25961 "C<guestfs_checksum> command."
25962 msgstr ""
25963
25964 #. type: textblock
25965 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
25966 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
25967 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
25968 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
25969 #: ../src/guestfs-actions.pod:8035
25970 msgid "(Added in 1.3.2)"
25971 msgstr ""
25972
25973 #. type: =head2
25974 #: ../src/guestfs-actions.pod:1079
25975 msgid "guestfs_checksums_out"
25976 msgstr ""
25977
25978 #. type: verbatim
25979 #: ../src/guestfs-actions.pod:1081
25980 #, no-wrap
25981 msgid ""
25982 " int\n"
25983 " guestfs_checksums_out (guestfs_h *g,\n"
25984 "                        const char *csumtype,\n"
25985 "                        const char *directory,\n"
25986 "                        const char *sumsfile);\n"
25987 "\n"
25988 msgstr ""
25989
25990 #. type: textblock
25991 #: ../src/guestfs-actions.pod:1101
25992 msgid "(Added in 1.3.7)"
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../src/guestfs-actions.pod:1103
25997 msgid "guestfs_chmod"
25998 msgstr ""
25999
26000 #. type: verbatim
26001 #: ../src/guestfs-actions.pod:1105
26002 #, no-wrap
26003 msgid ""
26004 " int\n"
26005 " guestfs_chmod (guestfs_h *g,\n"
26006 "                int mode,\n"
26007 "                const char *path);\n"
26008 "\n"
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../src/guestfs-actions.pod:1123
26013 msgid "guestfs_chown"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:1125
26018 #, no-wrap
26019 msgid ""
26020 " int\n"
26021 " guestfs_chown (guestfs_h *g,\n"
26022 "                int owner,\n"
26023 "                int group,\n"
26024 "                const char *path);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: =head2
26029 #: ../src/guestfs-actions.pod:1141
26030 msgid "guestfs_command"
26031 msgstr ""
26032
26033 #. type: verbatim
26034 #: ../src/guestfs-actions.pod:1143
26035 #, no-wrap
26036 msgid ""
26037 " char *\n"
26038 " guestfs_command (guestfs_h *g,\n"
26039 "                  char *const *arguments);\n"
26040 "\n"
26041 msgstr ""
26042
26043 #. type: textblock
26044 #: ../src/guestfs-actions.pod:1152
26045 msgid ""
26046 "The single parameter is an argv-style list of arguments.  The first element "
26047 "is the name of the program to run.  Subsequent elements are parameters.  The "
26048 "list must be non-empty (ie. must contain a program name).  Note that the "
26049 "command runs directly, and is I<not> invoked via the shell (see "
26050 "C<guestfs_sh>)."
26051 msgstr ""
26052
26053 #. type: textblock
26054 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26055 #: ../src/guestfs-actions.pod:2027
26056 msgid "(Added in 0.9.1)"
26057 msgstr ""
26058
26059 #. type: =head2
26060 #: ../src/guestfs-actions.pod:1185
26061 msgid "guestfs_command_lines"
26062 msgstr ""
26063
26064 #. type: verbatim
26065 #: ../src/guestfs-actions.pod:1187
26066 #, no-wrap
26067 msgid ""
26068 " char **\n"
26069 " guestfs_command_lines (guestfs_h *g,\n"
26070 "                        char *const *arguments);\n"
26071 "\n"
26072 msgstr ""
26073
26074 #. type: textblock
26075 #: ../src/guestfs-actions.pod:1191
26076 msgid ""
26077 "This is the same as C<guestfs_command>, but splits the result into a list of "
26078 "lines."
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:1194
26083 msgid "See also: C<guestfs_sh_lines>"
26084 msgstr ""
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:1205
26088 msgid "guestfs_compress_device_out"
26089 msgstr ""
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:1207
26093 #, no-wrap
26094 msgid ""
26095 " int\n"
26096 " guestfs_compress_device_out (guestfs_h *g,\n"
26097 "                              const char *ctype,\n"
26098 "                              const char *device,\n"
26099 "                              const char *zdevice,\n"
26100 "                              ...);\n"
26101 "\n"
26102 msgstr ""
26103
26104 #. type: verbatim
26105 #: ../src/guestfs-actions.pod:1219
26106 #, no-wrap
26107 msgid ""
26108 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26109 "\n"
26110 msgstr ""
26111
26112 #. type: textblock
26113 #: ../src/guestfs-actions.pod:1224
26114 msgid ""
26115 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26116 "C<guestfs_compress_out>."
26117 msgstr ""
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26121 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26122 msgid "(Added in 1.13.15)"
26123 msgstr ""
26124
26125 #. type: =head2
26126 #: ../src/guestfs-actions.pod:1231
26127 msgid "guestfs_compress_device_out_va"
26128 msgstr ""
26129
26130 #. type: verbatim
26131 #: ../src/guestfs-actions.pod:1233
26132 #, no-wrap
26133 msgid ""
26134 " int\n"
26135 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26136 "                                 const char *ctype,\n"
26137 "                                 const char *device,\n"
26138 "                                 const char *zdevice,\n"
26139 "                                 va_list args);\n"
26140 "\n"
26141 msgstr ""
26142
26143 #. type: textblock
26144 #: ../src/guestfs-actions.pod:1240
26145 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26146 msgstr ""
26147
26148 #. type: =head2
26149 #: ../src/guestfs-actions.pod:1244
26150 msgid "guestfs_compress_device_out_argv"
26151 msgstr ""
26152
26153 #. type: verbatim
26154 #: ../src/guestfs-actions.pod:1246
26155 #, no-wrap
26156 msgid ""
26157 " int\n"
26158 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26159 "                                   const char *ctype,\n"
26160 "                                   const char *device,\n"
26161 "                                   const char *zdevice,\n"
26162 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26163 "\n"
26164 msgstr ""
26165
26166 #. type: textblock
26167 #: ../src/guestfs-actions.pod:1253
26168 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26169 msgstr ""
26170
26171 #. type: =head2
26172 #: ../src/guestfs-actions.pod:1257
26173 msgid "guestfs_compress_out"
26174 msgstr ""
26175
26176 #. type: verbatim
26177 #: ../src/guestfs-actions.pod:1259
26178 #, no-wrap
26179 msgid ""
26180 " int\n"
26181 " guestfs_compress_out (guestfs_h *g,\n"
26182 "                       const char *ctype,\n"
26183 "                       const char *file,\n"
26184 "                       const char *zfile,\n"
26185 "                       ...);\n"
26186 "\n"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../src/guestfs-actions.pod:1271
26191 #, no-wrap
26192 msgid ""
26193 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26194 "\n"
26195 msgstr ""
26196
26197 #. type: =head2
26198 #: ../src/guestfs-actions.pod:1290
26199 msgid "guestfs_compress_out_va"
26200 msgstr ""
26201
26202 #. type: verbatim
26203 #: ../src/guestfs-actions.pod:1292
26204 #, no-wrap
26205 msgid ""
26206 " int\n"
26207 " guestfs_compress_out_va (guestfs_h *g,\n"
26208 "                          const char *ctype,\n"
26209 "                          const char *file,\n"
26210 "                          const char *zfile,\n"
26211 "                          va_list args);\n"
26212 "\n"
26213 msgstr ""
26214
26215 #. type: textblock
26216 #: ../src/guestfs-actions.pod:1299
26217 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26218 msgstr ""
26219
26220 #. type: =head2
26221 #: ../src/guestfs-actions.pod:1303
26222 msgid "guestfs_compress_out_argv"
26223 msgstr ""
26224
26225 #. type: verbatim
26226 #: ../src/guestfs-actions.pod:1305
26227 #, no-wrap
26228 msgid ""
26229 " int\n"
26230 " guestfs_compress_out_argv (guestfs_h *g,\n"
26231 "                            const char *ctype,\n"
26232 "                            const char *file,\n"
26233 "                            const char *zfile,\n"
26234 "                            const struct guestfs_compress_out_argv *optargs);\n"
26235 "\n"
26236 msgstr ""
26237
26238 #. type: textblock
26239 #: ../src/guestfs-actions.pod:1312
26240 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26241 msgstr ""
26242
26243 #. type: =head2
26244 #: ../src/guestfs-actions.pod:1316
26245 msgid "guestfs_config"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../src/guestfs-actions.pod:1318
26250 #, no-wrap
26251 msgid ""
26252 " int\n"
26253 " guestfs_config (guestfs_h *g,\n"
26254 "                 const char *qemuparam,\n"
26255 "                 const char *qemuvalue);\n"
26256 "\n"
26257 msgstr ""
26258
26259 #. type: =head2
26260 #: ../src/guestfs-actions.pod:1336
26261 msgid "guestfs_copy_device_to_device"
26262 msgstr ""
26263
26264 #. type: verbatim
26265 #: ../src/guestfs-actions.pod:1338
26266 #, no-wrap
26267 msgid ""
26268 " int\n"
26269 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26270 "                                const char *src,\n"
26271 "                                const char *dest,\n"
26272 "                                ...);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: verbatim
26277 #: ../src/guestfs-actions.pod:1349
26278 #, no-wrap
26279 msgid ""
26280 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26281 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26282 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26283 "\n"
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:1353
26288 msgid ""
26289 "The four calls C<guestfs_copy_device_to_device>, "
26290 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26291 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26292 "destination (device|file)."
26293 msgstr ""
26294
26295 #. type: textblock
26296 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
26297 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
26298 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
26299 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
26300 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
26301 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
26302 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
26303 #: ../src/guestfs-actions.pod:8271
26304 msgid ""
26305 "This long-running command can generate progress notification messages so "
26306 "that the caller can display a progress bar or indicator.  To receive these "
26307 "messages, the caller must register a progress event callback.  See L<guestfs"
26308 "(3)/GUESTFS_EVENT_PROGRESS>."
26309 msgstr ""
26310
26311 #. type: textblock
26312 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
26313 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
26314 #: ../src/guestfs-actions.pod:6042
26315 msgid "(Added in 1.13.25)"
26316 msgstr ""
26317
26318 #. type: =head2
26319 #: ../src/guestfs-actions.pod:1381
26320 msgid "guestfs_copy_device_to_device_va"
26321 msgstr ""
26322
26323 #. type: verbatim
26324 #: ../src/guestfs-actions.pod:1383
26325 #, no-wrap
26326 msgid ""
26327 " int\n"
26328 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26329 "                                   const char *src,\n"
26330 "                                   const char *dest,\n"
26331 "                                   va_list args);\n"
26332 "\n"
26333 msgstr ""
26334
26335 #. type: textblock
26336 #: ../src/guestfs-actions.pod:1389
26337 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26338 msgstr ""
26339
26340 #. type: =head2
26341 #: ../src/guestfs-actions.pod:1393
26342 msgid "guestfs_copy_device_to_device_argv"
26343 msgstr ""
26344
26345 #. type: verbatim
26346 #: ../src/guestfs-actions.pod:1395
26347 #, no-wrap
26348 msgid ""
26349 " int\n"
26350 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26351 "                                     const char *src,\n"
26352 "                                     const char *dest,\n"
26353 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26354 "\n"
26355 msgstr ""
26356
26357 #. type: textblock
26358 #: ../src/guestfs-actions.pod:1401
26359 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26360 msgstr ""
26361
26362 #. type: =head2
26363 #: ../src/guestfs-actions.pod:1405
26364 msgid "guestfs_copy_device_to_file"
26365 msgstr ""
26366
26367 #. type: verbatim
26368 #: ../src/guestfs-actions.pod:1407
26369 #, no-wrap
26370 msgid ""
26371 " int\n"
26372 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26373 "                              const char *src,\n"
26374 "                              const char *dest,\n"
26375 "                              ...);\n"
26376 "\n"
26377 msgstr ""
26378
26379 #. type: verbatim
26380 #: ../src/guestfs-actions.pod:1418
26381 #, no-wrap
26382 msgid ""
26383 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26384 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26385 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: textblock
26390 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
26391 #: ../src/guestfs-actions.pod:1528
26392 msgid ""
26393 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26394 msgstr ""
26395
26396 #. type: =head2
26397 #: ../src/guestfs-actions.pod:1434
26398 msgid "guestfs_copy_device_to_file_va"
26399 msgstr ""
26400
26401 #. type: verbatim
26402 #: ../src/guestfs-actions.pod:1436
26403 #, no-wrap
26404 msgid ""
26405 " int\n"
26406 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26407 "                                 const char *src,\n"
26408 "                                 const char *dest,\n"
26409 "                                 va_list args);\n"
26410 "\n"
26411 msgstr ""
26412
26413 #. type: textblock
26414 #: ../src/guestfs-actions.pod:1442
26415 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26416 msgstr ""
26417
26418 #. type: =head2
26419 #: ../src/guestfs-actions.pod:1446
26420 msgid "guestfs_copy_device_to_file_argv"
26421 msgstr ""
26422
26423 #. type: verbatim
26424 #: ../src/guestfs-actions.pod:1448
26425 #, no-wrap
26426 msgid ""
26427 " int\n"
26428 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26429 "                                   const char *src,\n"
26430 "                                   const char *dest,\n"
26431 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26432 "\n"
26433 msgstr ""
26434
26435 #. type: textblock
26436 #: ../src/guestfs-actions.pod:1454
26437 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../src/guestfs-actions.pod:1458
26442 msgid "guestfs_copy_file_to_device"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../src/guestfs-actions.pod:1460
26447 #, no-wrap
26448 msgid ""
26449 " int\n"
26450 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26451 "                              const char *src,\n"
26452 "                              const char *dest,\n"
26453 "                              ...);\n"
26454 "\n"
26455 msgstr ""
26456
26457 #. type: verbatim
26458 #: ../src/guestfs-actions.pod:1471
26459 #, no-wrap
26460 msgid ""
26461 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26462 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26463 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26464 "\n"
26465 msgstr ""
26466
26467 #. type: =head2
26468 #: ../src/guestfs-actions.pod:1487
26469 msgid "guestfs_copy_file_to_device_va"
26470 msgstr ""
26471
26472 #. type: verbatim
26473 #: ../src/guestfs-actions.pod:1489
26474 #, no-wrap
26475 msgid ""
26476 " int\n"
26477 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26478 "                                 const char *src,\n"
26479 "                                 const char *dest,\n"
26480 "                                 va_list args);\n"
26481 "\n"
26482 msgstr ""
26483
26484 #. type: textblock
26485 #: ../src/guestfs-actions.pod:1495
26486 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26487 msgstr ""
26488
26489 #. type: =head2
26490 #: ../src/guestfs-actions.pod:1499
26491 msgid "guestfs_copy_file_to_device_argv"
26492 msgstr ""
26493
26494 #. type: verbatim
26495 #: ../src/guestfs-actions.pod:1501
26496 #, no-wrap
26497 msgid ""
26498 " int\n"
26499 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26500 "                                   const char *src,\n"
26501 "                                   const char *dest,\n"
26502 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26503 "\n"
26504 msgstr ""
26505
26506 #. type: textblock
26507 #: ../src/guestfs-actions.pod:1507
26508 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26509 msgstr ""
26510
26511 #. type: =head2
26512 #: ../src/guestfs-actions.pod:1511
26513 msgid "guestfs_copy_file_to_file"
26514 msgstr ""
26515
26516 #. type: verbatim
26517 #: ../src/guestfs-actions.pod:1513
26518 #, no-wrap
26519 msgid ""
26520 " int\n"
26521 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26522 "                            const char *src,\n"
26523 "                            const char *dest,\n"
26524 "                            ...);\n"
26525 "\n"
26526 msgstr ""
26527
26528 #. type: verbatim
26529 #: ../src/guestfs-actions.pod:1524
26530 #, no-wrap
26531 msgid ""
26532 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26533 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26534 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26535 "\n"
26536 msgstr ""
26537
26538 #. type: textblock
26539 #: ../src/guestfs-actions.pod:1531
26540 msgid ""
26541 "This is B<not> the function you want for copying files.  This is for copying "
26542 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26543 "C<guestfs_mv> for general file copying and moving functions."
26544 msgstr ""
26545
26546 #. type: =head2
26547 #: ../src/guestfs-actions.pod:1545
26548 msgid "guestfs_copy_file_to_file_va"
26549 msgstr ""
26550
26551 #. type: verbatim
26552 #: ../src/guestfs-actions.pod:1547
26553 #, no-wrap
26554 msgid ""
26555 " int\n"
26556 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26557 "                               const char *src,\n"
26558 "                               const char *dest,\n"
26559 "                               va_list args);\n"
26560 "\n"
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:1553
26565 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26566 msgstr ""
26567
26568 #. type: =head2
26569 #: ../src/guestfs-actions.pod:1557
26570 msgid "guestfs_copy_file_to_file_argv"
26571 msgstr ""
26572
26573 #. type: verbatim
26574 #: ../src/guestfs-actions.pod:1559
26575 #, no-wrap
26576 msgid ""
26577 " int\n"
26578 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26579 "                                 const char *src,\n"
26580 "                                 const char *dest,\n"
26581 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: textblock
26586 #: ../src/guestfs-actions.pod:1565
26587 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26588 msgstr ""
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:1569
26592 msgid "guestfs_copy_size"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:1571
26597 #, no-wrap
26598 msgid ""
26599 " int\n"
26600 " guestfs_copy_size (guestfs_h *g,\n"
26601 "                    const char *src,\n"
26602 "                    const char *dest,\n"
26603 "                    int64_t size);\n"
26604 "\n"
26605 msgstr ""
26606
26607 #. type: textblock
26608 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26609 msgid ""
26610 "I<This function is deprecated.> In new code, use the L</"
26611 "guestfs_copy_device_to_device> call instead."
26612 msgstr ""
26613
26614 #. type: textblock
26615 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
26616 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
26617 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
26618 msgid "(Added in 1.0.87)"
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:1599
26623 msgid "guestfs_cp"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:1601
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_cp (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:1611 ../src/guestfs-actions.pod:1625
26639 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
26640 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
26641 #: ../src/guestfs-actions.pod:6056
26642 msgid "(Added in 1.0.18)"
26643 msgstr ""
26644
26645 #. type: =head2
26646 #: ../src/guestfs-actions.pod:1613
26647 msgid "guestfs_cp_a"
26648 msgstr ""
26649
26650 #. type: verbatim
26651 #: ../src/guestfs-actions.pod:1615
26652 #, no-wrap
26653 msgid ""
26654 " int\n"
26655 " guestfs_cp_a (guestfs_h *g,\n"
26656 "               const char *src,\n"
26657 "               const char *dest);\n"
26658 "\n"
26659 msgstr ""
26660
26661 #. type: =head2
26662 #: ../src/guestfs-actions.pod:1627
26663 msgid "guestfs_dd"
26664 msgstr ""
26665
26666 #. type: verbatim
26667 #: ../src/guestfs-actions.pod:1629
26668 #, no-wrap
26669 msgid ""
26670 " int\n"
26671 " guestfs_dd (guestfs_h *g,\n"
26672 "             const char *src,\n"
26673 "             const char *dest);\n"
26674 "\n"
26675 msgstr ""
26676
26677 #. type: textblock
26678 #: ../src/guestfs-actions.pod:1646
26679 msgid ""
26680 "If the destination is a device, it must be as large or larger than the "
26681 "source file or device, otherwise the copy will fail.  This command cannot do "
26682 "partial copies (see C<guestfs_copy_device_to_device>)."
26683 msgstr ""
26684
26685 #. type: =head2
26686 #: ../src/guestfs-actions.pod:1655
26687 msgid "guestfs_df"
26688 msgstr ""
26689
26690 #. type: verbatim
26691 #: ../src/guestfs-actions.pod:1657
26692 #, no-wrap
26693 msgid ""
26694 " char *\n"
26695 " guestfs_df (guestfs_h *g);\n"
26696 "\n"
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26701 msgid ""
26702 "This command is mostly useful for interactive sessions.  It is I<not> "
26703 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26704 "from programs."
26705 msgstr ""
26706
26707 #. type: textblock
26708 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
26709 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
26710 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
26711 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
26712 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
26713 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
26714 #: ../src/guestfs-actions.pod:8114
26715 msgid "(Added in 1.0.54)"
26716 msgstr ""
26717
26718 #. type: =head2
26719 #: ../src/guestfs-actions.pod:1671
26720 msgid "guestfs_df_h"
26721 msgstr ""
26722
26723 #. type: verbatim
26724 #: ../src/guestfs-actions.pod:1673
26725 #, no-wrap
26726 msgid ""
26727 " char *\n"
26728 " guestfs_df_h (guestfs_h *g);\n"
26729 "\n"
26730 msgstr ""
26731
26732 #. type: =head2
26733 #: ../src/guestfs-actions.pod:1688
26734 msgid "guestfs_dmesg"
26735 msgstr ""
26736
26737 #. type: verbatim
26738 #: ../src/guestfs-actions.pod:1690
26739 #, no-wrap
26740 msgid ""
26741 " char *\n"
26742 " guestfs_dmesg (guestfs_h *g);\n"
26743 "\n"
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../src/guestfs-actions.pod:1697
26748 msgid ""
26749 "Another way to get the same information is to enable verbose messages with "
26750 "C<guestfs_set_verbose> or by setting the environment variable "
26751 "C<LIBGUESTFS_DEBUG=1> before running the program."
26752 msgstr ""
26753
26754 #. type: =head2
26755 #: ../src/guestfs-actions.pod:1707
26756 msgid "guestfs_download"
26757 msgstr ""
26758
26759 #. type: verbatim
26760 #: ../src/guestfs-actions.pod:1709
26761 #, no-wrap
26762 msgid ""
26763 " int\n"
26764 " guestfs_download (guestfs_h *g,\n"
26765 "                   const char *remotefilename,\n"
26766 "                   const char *filename);\n"
26767 "\n"
26768 msgstr ""
26769
26770 #. type: textblock
26771 #: ../src/guestfs-actions.pod:1719
26772 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26773 msgstr ""
26774
26775 #. type: =head2
26776 #: ../src/guestfs-actions.pod:1730
26777 msgid "guestfs_download_offset"
26778 msgstr ""
26779
26780 #. type: verbatim
26781 #: ../src/guestfs-actions.pod:1732
26782 #, no-wrap
26783 msgid ""
26784 " int\n"
26785 " guestfs_download_offset (guestfs_h *g,\n"
26786 "                          const char *remotefilename,\n"
26787 "                          const char *filename,\n"
26788 "                          int64_t offset,\n"
26789 "                          int64_t size);\n"
26790 "\n"
26791 msgstr ""
26792
26793 #. type: textblock
26794 #: ../src/guestfs-actions.pod:1745
26795 msgid ""
26796 "Note that there is no limit on the amount of data that can be downloaded "
26797 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26798 "full amount unless an error occurs."
26799 msgstr ""
26800
26801 #. type: textblock
26802 #: ../src/guestfs-actions.pod:1750
26803 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26804 msgstr ""
26805
26806 #. type: textblock
26807 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
26808 msgid "(Added in 1.5.17)"
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../src/guestfs-actions.pod:1761
26813 msgid "guestfs_drop_caches"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../src/guestfs-actions.pod:1763
26818 #, no-wrap
26819 msgid ""
26820 " int\n"
26821 " guestfs_drop_caches (guestfs_h *g,\n"
26822 "                      int whattodrop);\n"
26823 "\n"
26824 msgstr ""
26825
26826 #. type: =head2
26827 #: ../src/guestfs-actions.pod:1781
26828 msgid "guestfs_du"
26829 msgstr ""
26830
26831 #. type: verbatim
26832 #: ../src/guestfs-actions.pod:1783
26833 #, no-wrap
26834 msgid ""
26835 " int64_t\n"
26836 " guestfs_du (guestfs_h *g,\n"
26837 "             const char *path);\n"
26838 "\n"
26839 msgstr ""
26840
26841 #. type: =head2
26842 #: ../src/guestfs-actions.pod:1806
26843 msgid "guestfs_e2fsck_f"
26844 msgstr ""
26845
26846 #. type: verbatim
26847 #: ../src/guestfs-actions.pod:1808
26848 #, no-wrap
26849 msgid ""
26850 " int\n"
26851 " guestfs_e2fsck_f (guestfs_h *g,\n"
26852 "                   const char *device);\n"
26853 "\n"
26854 msgstr ""
26855
26856 #. type: textblock
26857 #: ../src/guestfs-actions.pod:1816
26858 msgid ""
26859 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26860 "Normally you should use C<guestfs_fsck>."
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../src/guestfs-actions.pod:1821
26865 msgid "(Added in 1.0.29)"
26866 msgstr ""
26867
26868 #. type: =head2
26869 #: ../src/guestfs-actions.pod:1823
26870 msgid "guestfs_echo_daemon"
26871 msgstr ""
26872
26873 #. type: verbatim
26874 #: ../src/guestfs-actions.pod:1825
26875 #, no-wrap
26876 msgid ""
26877 " char *\n"
26878 " guestfs_echo_daemon (guestfs_h *g,\n"
26879 "                      char *const *words);\n"
26880 "\n"
26881 msgstr ""
26882
26883 #. type: textblock
26884 #: ../src/guestfs-actions.pod:1834
26885 msgid "See also C<guestfs_ping_daemon>."
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
26890 #: ../src/guestfs-actions.pod:6926
26891 msgid "(Added in 1.0.69)"
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:1841
26896 msgid "guestfs_egrep"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:1843
26901 #, no-wrap
26902 msgid ""
26903 " char **\n"
26904 " guestfs_egrep (guestfs_h *g,\n"
26905 "                const char *regex,\n"
26906 "                const char *path);\n"
26907 "\n"
26908 msgstr ""
26909
26910 #. type: textblock
26911 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
26912 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
26913 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
26914 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
26915 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
26916 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
26917 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
26918 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
26919 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
26920 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
26921 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
26922 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
26923 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
26924 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
26925 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
26926 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
26927 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
26928 msgid "(Added in 1.0.66)"
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../src/guestfs-actions.pod:1860
26933 msgid "guestfs_egrepi"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../src/guestfs-actions.pod:1862
26938 #, no-wrap
26939 msgid ""
26940 " char **\n"
26941 " guestfs_egrepi (guestfs_h *g,\n"
26942 "                 const char *regex,\n"
26943 "                 const char *path);\n"
26944 "\n"
26945 msgstr ""
26946
26947 #. type: =head2
26948 #: ../src/guestfs-actions.pod:1879
26949 msgid "guestfs_equal"
26950 msgstr ""
26951
26952 #. type: verbatim
26953 #: ../src/guestfs-actions.pod:1881
26954 #, no-wrap
26955 msgid ""
26956 " int\n"
26957 " guestfs_equal (guestfs_h *g,\n"
26958 "                const char *file1,\n"
26959 "                const char *file2);\n"
26960 "\n"
26961 msgstr ""
26962
26963 #. type: =head2
26964 #: ../src/guestfs-actions.pod:1895
26965 msgid "guestfs_exists"
26966 msgstr ""
26967
26968 #. type: verbatim
26969 #: ../src/guestfs-actions.pod:1897
26970 #, no-wrap
26971 msgid ""
26972 " int\n"
26973 " guestfs_exists (guestfs_h *g,\n"
26974 "                 const char *path);\n"
26975 "\n"
26976 msgstr ""
26977
26978 #. type: textblock
26979 #: ../src/guestfs-actions.pod:1904
26980 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26981 msgstr ""
26982
26983 #. type: =head2
26984 #: ../src/guestfs-actions.pod:1910
26985 msgid "guestfs_fallocate"
26986 msgstr ""
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:1912
26990 #, no-wrap
26991 msgid ""
26992 " int\n"
26993 " guestfs_fallocate (guestfs_h *g,\n"
26994 "                    const char *path,\n"
26995 "                    int len);\n"
26996 "\n"
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../src/guestfs-actions.pod:1917
27001 msgid ""
27002 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27003 "call instead."
27004 msgstr ""
27005
27006 #. type: =head2
27007 #: ../src/guestfs-actions.pod:1936
27008 msgid "guestfs_fallocate64"
27009 msgstr ""
27010
27011 #. type: verbatim
27012 #: ../src/guestfs-actions.pod:1938
27013 #, no-wrap
27014 msgid ""
27015 " int\n"
27016 " guestfs_fallocate64 (guestfs_h *g,\n"
27017 "                      const char *path,\n"
27018 "                      int64_t len);\n"
27019 "\n"
27020 msgstr ""
27021
27022 #. type: textblock
27023 #: ../src/guestfs-actions.pod:1947
27024 msgid ""
27025 "Note that this call allocates disk blocks for the file.  To create a sparse "
27026 "file use C<guestfs_truncate_size> instead."
27027 msgstr ""
27028
27029 #. type: textblock
27030 #: ../src/guestfs-actions.pod:1950
27031 msgid ""
27032 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27033 "oversight it only allowed 30 bit lengths to be specified, effectively "
27034 "limiting the maximum size of files created through that call to 1GB."
27035 msgstr ""
27036
27037 #. type: textblock
27038 #: ../src/guestfs-actions.pod:1961
27039 msgid "(Added in 1.3.17)"
27040 msgstr ""
27041
27042 #. type: =head2
27043 #: ../src/guestfs-actions.pod:1963
27044 msgid "guestfs_fgrep"
27045 msgstr ""
27046
27047 #. type: verbatim
27048 #: ../src/guestfs-actions.pod:1965
27049 #, no-wrap
27050 msgid ""
27051 " char **\n"
27052 " guestfs_fgrep (guestfs_h *g,\n"
27053 "                const char *pattern,\n"
27054 "                const char *path);\n"
27055 "\n"
27056 msgstr ""
27057
27058 #. type: =head2
27059 #: ../src/guestfs-actions.pod:1982
27060 msgid "guestfs_fgrepi"
27061 msgstr ""
27062
27063 #. type: verbatim
27064 #: ../src/guestfs-actions.pod:1984
27065 #, no-wrap
27066 msgid ""
27067 " char **\n"
27068 " guestfs_fgrepi (guestfs_h *g,\n"
27069 "                 const char *pattern,\n"
27070 "                 const char *path);\n"
27071 "\n"
27072 msgstr ""
27073
27074 #. type: =head2
27075 #: ../src/guestfs-actions.pod:2001
27076 msgid "guestfs_file"
27077 msgstr ""
27078
27079 #. type: verbatim
27080 #: ../src/guestfs-actions.pod:2003
27081 #, no-wrap
27082 msgid ""
27083 " char *\n"
27084 " guestfs_file (guestfs_h *g,\n"
27085 "               const char *path);\n"
27086 "\n"
27087 msgstr ""
27088
27089 #. type: textblock
27090 #: ../src/guestfs-actions.pod:2021
27091 msgid ""
27092 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27093 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27094 msgstr ""
27095
27096 #. type: =head2
27097 #: ../src/guestfs-actions.pod:2029
27098 msgid "guestfs_file_architecture"
27099 msgstr ""
27100
27101 #. type: verbatim
27102 #: ../src/guestfs-actions.pod:2031
27103 #, no-wrap
27104 msgid ""
27105 " char *\n"
27106 " guestfs_file_architecture (guestfs_h *g,\n"
27107 "                            const char *filename);\n"
27108 "\n"
27109 msgstr ""
27110
27111 #. type: textblock
27112 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27113 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27114 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27115 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27116 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27117 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27118 #: ../src/guestfs-actions.pod:4008
27119 msgid "(Added in 1.5.3)"
27120 msgstr ""
27121
27122 #. type: =head2
27123 #: ../src/guestfs-actions.pod:2141
27124 msgid "guestfs_filesize"
27125 msgstr ""
27126
27127 #. type: verbatim
27128 #: ../src/guestfs-actions.pod:2143
27129 #, no-wrap
27130 msgid ""
27131 " int64_t\n"
27132 " guestfs_filesize (guestfs_h *g,\n"
27133 "                   const char *file);\n"
27134 "\n"
27135 msgstr ""
27136
27137 #. type: textblock
27138 #: ../src/guestfs-actions.pod:2149
27139 msgid ""
27140 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27141 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27142 "devices, use C<guestfs_blockdev_getsize64>."
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../src/guestfs-actions.pod:2155
27147 msgid "(Added in 1.0.82)"
27148 msgstr ""
27149
27150 #. type: =head2
27151 #: ../src/guestfs-actions.pod:2157
27152 msgid "guestfs_fill"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../src/guestfs-actions.pod:2159
27157 #, no-wrap
27158 msgid ""
27159 " int\n"
27160 " guestfs_fill (guestfs_h *g,\n"
27161 "               int c,\n"
27162 "               int len,\n"
27163 "               const char *path);\n"
27164 "\n"
27165 msgstr ""
27166
27167 #. type: textblock
27168 #: ../src/guestfs-actions.pod:2169
27169 msgid ""
27170 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27171 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27172 "bytes use C<guestfs_fill_pattern>."
27173 msgstr ""
27174
27175 #. type: textblock
27176 #: ../src/guestfs-actions.pod:2181
27177 msgid "(Added in 1.0.79)"
27178 msgstr ""
27179
27180 #. type: =head2
27181 #: ../src/guestfs-actions.pod:2183
27182 msgid "guestfs_fill_pattern"
27183 msgstr ""
27184
27185 #. type: verbatim
27186 #: ../src/guestfs-actions.pod:2185
27187 #, no-wrap
27188 msgid ""
27189 " int\n"
27190 " guestfs_fill_pattern (guestfs_h *g,\n"
27191 "                       const char *pattern,\n"
27192 "                       int len,\n"
27193 "                       const char *path);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:2191
27199 msgid ""
27200 "This function is like C<guestfs_fill> except that it creates a new file of "
27201 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27202 "pattern is truncated if necessary to ensure the length of the file is "
27203 "exactly C<len> bytes."
27204 msgstr ""
27205
27206 #. type: textblock
27207 #: ../src/guestfs-actions.pod:2203
27208 msgid "(Added in 1.3.12)"
27209 msgstr ""
27210
27211 #. type: =head2
27212 #: ../src/guestfs-actions.pod:2205
27213 msgid "guestfs_find"
27214 msgstr ""
27215
27216 #. type: verbatim
27217 #: ../src/guestfs-actions.pod:2207
27218 #, no-wrap
27219 msgid ""
27220 " char **\n"
27221 " guestfs_find (guestfs_h *g,\n"
27222 "               const char *directory);\n"
27223 "\n"
27224 msgstr ""
27225
27226 #. type: textblock
27227 #: ../src/guestfs-actions.pod:2223
27228 msgid ""
27229 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27230 msgstr ""
27231
27232 #. type: textblock
27233 #: ../src/guestfs-actions.pod:2236
27234 msgid "See also C<guestfs_find0>."
27235 msgstr ""
27236
27237 #. type: textblock
27238 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
27239 #: ../src/guestfs-actions.pod:6474
27240 msgid "(Added in 1.0.27)"
27241 msgstr ""
27242
27243 #. type: =head2
27244 #: ../src/guestfs-actions.pod:2247
27245 msgid "guestfs_find0"
27246 msgstr ""
27247
27248 #. type: verbatim
27249 #: ../src/guestfs-actions.pod:2249
27250 #, no-wrap
27251 msgid ""
27252 " int\n"
27253 " guestfs_find0 (guestfs_h *g,\n"
27254 "                const char *directory,\n"
27255 "                const char *files);\n"
27256 "\n"
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../src/guestfs-actions.pod:2258
27261 msgid ""
27262 "This command works the same way as C<guestfs_find> with the following "
27263 "exceptions:"
27264 msgstr ""
27265
27266 #. type: textblock
27267 #: ../src/guestfs-actions.pod:2285
27268 msgid "(Added in 1.0.74)"
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../src/guestfs-actions.pod:2287
27273 msgid "guestfs_findfs_label"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../src/guestfs-actions.pod:2289
27278 #, no-wrap
27279 msgid ""
27280 " char *\n"
27281 " guestfs_findfs_label (guestfs_h *g,\n"
27282 "                       const char *label);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../src/guestfs-actions.pod:2297
27288 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27289 msgstr ""
27290
27291 #. type: =head2
27292 #: ../src/guestfs-actions.pod:2304
27293 msgid "guestfs_findfs_uuid"
27294 msgstr ""
27295
27296 #. type: verbatim
27297 #: ../src/guestfs-actions.pod:2306
27298 #, no-wrap
27299 msgid ""
27300 " char *\n"
27301 " guestfs_findfs_uuid (guestfs_h *g,\n"
27302 "                      const char *uuid);\n"
27303 "\n"
27304 msgstr ""
27305
27306 #. type: textblock
27307 #: ../src/guestfs-actions.pod:2314
27308 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27309 msgstr ""
27310
27311 #. type: =head2
27312 #: ../src/guestfs-actions.pod:2321
27313 msgid "guestfs_fsck"
27314 msgstr ""
27315
27316 #. type: verbatim
27317 #: ../src/guestfs-actions.pod:2323
27318 #, no-wrap
27319 msgid ""
27320 " int\n"
27321 " guestfs_fsck (guestfs_h *g,\n"
27322 "               const char *fstype,\n"
27323 "               const char *device);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: textblock
27328 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
27329 msgid "(Added in 1.0.16)"
27330 msgstr ""
27331
27332 #. type: =head2
27333 #: ../src/guestfs-actions.pod:2360
27334 msgid "guestfs_get_append"
27335 msgstr ""
27336
27337 #. type: verbatim
27338 #: ../src/guestfs-actions.pod:2362
27339 #, no-wrap
27340 msgid ""
27341 " const char *\n"
27342 " guestfs_get_append (guestfs_h *g);\n"
27343 "\n"
27344 msgstr ""
27345
27346 #. type: textblock
27347 #: ../src/guestfs-actions.pod:2370
27348 msgid ""
27349 "This function returns a string which may be NULL.  There is no way to return "
27350 "an error from this function.  The string is owned by the guest handle and "
27351 "must I<not> be freed."
27352 msgstr ""
27353
27354 #. type: textblock
27355 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
27356 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
27357 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
27358 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
27359 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
27360 msgid "(Added in 1.0.26)"
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:2376
27365 msgid "guestfs_get_attach_method"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:2378
27370 #, no-wrap
27371 msgid ""
27372 " char *\n"
27373 " guestfs_get_attach_method (guestfs_h *g);\n"
27374 "\n"
27375 msgstr ""
27376
27377 #. type: textblock
27378 #: ../src/guestfs-actions.pod:2381
27379 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27380 msgstr ""
27381
27382 #. type: textblock
27383 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
27384 msgid "(Added in 1.9.8)"
27385 msgstr ""
27386
27387 #. type: =head2
27388 #: ../src/guestfs-actions.pod:2388
27389 msgid "guestfs_get_autosync"
27390 msgstr ""
27391
27392 #. type: verbatim
27393 #: ../src/guestfs-actions.pod:2390
27394 #, no-wrap
27395 msgid ""
27396 " int\n"
27397 " guestfs_get_autosync (guestfs_h *g);\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:2399
27403 msgid "guestfs_get_direct"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:2401
27408 #, no-wrap
27409 msgid ""
27410 " int\n"
27411 " guestfs_get_direct (guestfs_h *g);\n"
27412 "\n"
27413 msgstr ""
27414
27415 #. type: textblock
27416 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
27417 msgid "(Added in 1.0.72)"
27418 msgstr ""
27419
27420 #. type: =head2
27421 #: ../src/guestfs-actions.pod:2410
27422 msgid "guestfs_get_e2label"
27423 msgstr ""
27424
27425 #. type: verbatim
27426 #: ../src/guestfs-actions.pod:2412
27427 #, no-wrap
27428 msgid ""
27429 " char *\n"
27430 " guestfs_get_e2label (guestfs_h *g,\n"
27431 "                      const char *device);\n"
27432 "\n"
27433 msgstr ""
27434
27435 #. type: textblock
27436 #: ../src/guestfs-actions.pod:2416
27437 msgid ""
27438 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27439 "call instead."
27440 msgstr ""
27441
27442 #. type: textblock
27443 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
27444 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
27445 msgid "(Added in 1.0.15)"
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:2431
27450 msgid "guestfs_get_e2uuid"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../src/guestfs-actions.pod:2433
27455 #, no-wrap
27456 msgid ""
27457 " char *\n"
27458 " guestfs_get_e2uuid (guestfs_h *g,\n"
27459 "                     const char *device);\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: textblock
27464 #: ../src/guestfs-actions.pod:2437
27465 msgid ""
27466 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27467 "call instead."
27468 msgstr ""
27469
27470 #. type: =head2
27471 #: ../src/guestfs-actions.pod:2452
27472 msgid "guestfs_get_memsize"
27473 msgstr ""
27474
27475 #. type: verbatim
27476 #: ../src/guestfs-actions.pod:2454
27477 #, no-wrap
27478 msgid ""
27479 " int\n"
27480 " guestfs_get_memsize (guestfs_h *g);\n"
27481 "\n"
27482 msgstr ""
27483
27484 #. type: textblock
27485 #: ../src/guestfs-actions.pod:2460
27486 msgid ""
27487 "If C<guestfs_set_memsize> was not called on this handle, and if "
27488 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27489 "value for memsize."
27490 msgstr ""
27491
27492 #. type: textblock
27493 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
27494 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
27495 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
27496 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
27497 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
27498 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
27499 msgid "(Added in 1.0.55)"
27500 msgstr ""
27501
27502 #. type: =head2
27503 #: ../src/guestfs-actions.pod:2471
27504 msgid "guestfs_get_network"
27505 msgstr ""
27506
27507 #. type: verbatim
27508 #: ../src/guestfs-actions.pod:2473
27509 #, no-wrap
27510 msgid ""
27511 " int\n"
27512 " guestfs_get_network (guestfs_h *g);\n"
27513 "\n"
27514 msgstr ""
27515
27516 #. type: textblock
27517 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
27518 msgid "(Added in 1.5.4)"
27519 msgstr ""
27520
27521 #. type: =head2
27522 #: ../src/guestfs-actions.pod:2482
27523 msgid "guestfs_get_path"
27524 msgstr ""
27525
27526 #. type: verbatim
27527 #: ../src/guestfs-actions.pod:2484
27528 #, no-wrap
27529 msgid ""
27530 " const char *\n"
27531 " guestfs_get_path (guestfs_h *g);\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: textblock
27536 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27537 msgid ""
27538 "This function returns a string, or NULL on error.  The string is owned by "
27539 "the guest handle and must I<not> be freed."
27540 msgstr ""
27541
27542 #. type: =head2
27543 #: ../src/guestfs-actions.pod:2497
27544 msgid "guestfs_get_pgroup"
27545 msgstr ""
27546
27547 #. type: verbatim
27548 #: ../src/guestfs-actions.pod:2499
27549 #, no-wrap
27550 msgid ""
27551 " int\n"
27552 " guestfs_get_pgroup (guestfs_h *g);\n"
27553 "\n"
27554 msgstr ""
27555
27556 #. type: textblock
27557 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
27558 #: ../src/guestfs-actions.pod:8154
27559 msgid "(Added in 1.11.18)"
27560 msgstr ""
27561
27562 #. type: =head2
27563 #: ../src/guestfs-actions.pod:2508
27564 msgid "guestfs_get_pid"
27565 msgstr ""
27566
27567 #. type: verbatim
27568 #: ../src/guestfs-actions.pod:2510
27569 #, no-wrap
27570 msgid ""
27571 " int\n"
27572 " guestfs_get_pid (guestfs_h *g);\n"
27573 "\n"
27574 msgstr ""
27575
27576 #. type: textblock
27577 #: ../src/guestfs-actions.pod:2520
27578 msgid "(Added in 1.0.56)"
27579 msgstr ""
27580
27581 #. type: =head2
27582 #: ../src/guestfs-actions.pod:2522
27583 msgid "guestfs_get_qemu"
27584 msgstr ""
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:2524
27588 #, no-wrap
27589 msgid ""
27590 " const char *\n"
27591 " guestfs_get_qemu (guestfs_h *g);\n"
27592 "\n"
27593 msgstr ""
27594
27595 #. type: textblock
27596 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
27597 msgid "(Added in 1.0.6)"
27598 msgstr ""
27599
27600 #. type: =head2
27601 #: ../src/guestfs-actions.pod:2537
27602 msgid "guestfs_get_recovery_proc"
27603 msgstr ""
27604
27605 #. type: verbatim
27606 #: ../src/guestfs-actions.pod:2539
27607 #, no-wrap
27608 msgid ""
27609 " int\n"
27610 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
27616 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
27617 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
27618 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
27619 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
27620 #: ../src/guestfs-actions.pod:7777
27621 msgid "(Added in 1.0.77)"
27622 msgstr ""
27623
27624 #. type: =head2
27625 #: ../src/guestfs-actions.pod:2548
27626 msgid "guestfs_get_selinux"
27627 msgstr ""
27628
27629 #. type: verbatim
27630 #: ../src/guestfs-actions.pod:2550
27631 #, no-wrap
27632 msgid ""
27633 " int\n"
27634 " guestfs_get_selinux (guestfs_h *g);\n"
27635 "\n"
27636 msgstr ""
27637
27638 #. type: textblock
27639 #: ../src/guestfs-actions.pod:2553
27640 msgid ""
27641 "This returns the current setting of the selinux flag which is passed to the "
27642 "appliance at boot time.  See C<guestfs_set_selinux>."
27643 msgstr ""
27644
27645 #. type: textblock
27646 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
27647 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
27648 msgid "(Added in 1.0.67)"
27649 msgstr ""
27650
27651 #. type: =head2
27652 #: ../src/guestfs-actions.pod:2563
27653 msgid "guestfs_get_smp"
27654 msgstr ""
27655
27656 #. type: verbatim
27657 #: ../src/guestfs-actions.pod:2565
27658 #, no-wrap
27659 msgid ""
27660 " int\n"
27661 " guestfs_get_smp (guestfs_h *g);\n"
27662 "\n"
27663 msgstr ""
27664
27665 #. type: =head2
27666 #: ../src/guestfs-actions.pod:2574
27667 msgid "guestfs_get_state"
27668 msgstr ""
27669
27670 #. type: verbatim
27671 #: ../src/guestfs-actions.pod:2576
27672 #, no-wrap
27673 msgid ""
27674 " int\n"
27675 " guestfs_get_state (guestfs_h *g);\n"
27676 "\n"
27677 msgstr ""
27678
27679 #. type: =head2
27680 #: ../src/guestfs-actions.pod:2588
27681 msgid "guestfs_get_trace"
27682 msgstr ""
27683
27684 #. type: verbatim
27685 #: ../src/guestfs-actions.pod:2590
27686 #, no-wrap
27687 msgid ""
27688 " int\n"
27689 " guestfs_get_trace (guestfs_h *g);\n"
27690 "\n"
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../src/guestfs-actions.pod:2599
27695 msgid "guestfs_get_umask"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../src/guestfs-actions.pod:2601
27700 #, no-wrap
27701 msgid ""
27702 " int\n"
27703 " guestfs_get_umask (guestfs_h *g);\n"
27704 "\n"
27705 msgstr ""
27706
27707 #. type: textblock
27708 #: ../src/guestfs-actions.pod:2604
27709 msgid ""
27710 "Return the current umask.  By default the umask is C<022> unless it has been "
27711 "set by calling C<guestfs_umask>."
27712 msgstr ""
27713
27714 #. type: =head2
27715 #: ../src/guestfs-actions.pod:2611
27716 msgid "guestfs_get_verbose"
27717 msgstr ""
27718
27719 #. type: verbatim
27720 #: ../src/guestfs-actions.pod:2613
27721 #, no-wrap
27722 msgid ""
27723 " int\n"
27724 " guestfs_get_verbose (guestfs_h *g);\n"
27725 "\n"
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../src/guestfs-actions.pod:2622
27730 msgid "guestfs_getcon"
27731 msgstr ""
27732
27733 #. type: verbatim
27734 #: ../src/guestfs-actions.pod:2624
27735 #, no-wrap
27736 msgid ""
27737 " char *\n"
27738 " guestfs_getcon (guestfs_h *g);\n"
27739 "\n"
27740 msgstr ""
27741
27742 #. type: textblock
27743 #: ../src/guestfs-actions.pod:2629
27744 msgid ""
27745 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27746 msgstr ""
27747
27748 #. type: =head2
27749 #: ../src/guestfs-actions.pod:2637
27750 msgid "guestfs_getxattr"
27751 msgstr ""
27752
27753 #. type: verbatim
27754 #: ../src/guestfs-actions.pod:2639
27755 #, no-wrap
27756 msgid ""
27757 " char *\n"
27758 " guestfs_getxattr (guestfs_h *g,\n"
27759 "                   const char *path,\n"
27760 "                   const char *name,\n"
27761 "                   size_t *size_r);\n"
27762 "\n"
27763 msgstr ""
27764
27765 #. type: textblock
27766 #: ../src/guestfs-actions.pod:2645
27767 msgid ""
27768 "Get a single extended attribute from file C<path> named C<name>.  This call "
27769 "follows symlinks.  If you want to lookup an extended attribute for the "
27770 "symlink itself, use C<guestfs_lgetxattr>."
27771 msgstr ""
27772
27773 #. type: textblock
27774 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27775 msgid ""
27776 "Normally it is better to get all extended attributes from a file in one go "
27777 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27778 "implementations are buggy and do not provide a way to list out attributes.  "
27779 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27780 "extended attributes you want in advance and call this function."
27781 msgstr ""
27782
27783 #. type: textblock
27784 #: ../src/guestfs-actions.pod:2659
27785 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27786 msgstr ""
27787
27788 #. type: textblock
27789 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
27790 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
27791 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
27792 #: ../src/guestfs-actions.pod:6282
27793 msgid ""
27794 "This function returns a buffer, or NULL on error.  The size of the returned "
27795 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27796 "after use>."
27797 msgstr ""
27798
27799 #. type: textblock
27800 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27801 msgid "(Added in 1.7.24)"
27802 msgstr ""
27803
27804 #. type: =head2
27805 #: ../src/guestfs-actions.pod:2667
27806 msgid "guestfs_getxattrs"
27807 msgstr ""
27808
27809 #. type: verbatim
27810 #: ../src/guestfs-actions.pod:2669
27811 #, no-wrap
27812 msgid ""
27813 " struct guestfs_xattr_list *\n"
27814 " guestfs_getxattrs (guestfs_h *g,\n"
27815 "                    const char *path);\n"
27816 "\n"
27817 msgstr ""
27818
27819 #. type: textblock
27820 #: ../src/guestfs-actions.pod:2679
27821 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27822 msgstr ""
27823
27824 #. type: textblock
27825 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
27826 #: ../src/guestfs-actions.pod:4851
27827 msgid ""
27828 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27829 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27830 msgstr ""
27831
27832 #. type: textblock
27833 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
27834 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
27835 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
27836 #: ../src/guestfs-actions.pod:8362
27837 msgid "(Added in 1.0.59)"
27838 msgstr ""
27839
27840 #. type: =head2
27841 #: ../src/guestfs-actions.pod:2687
27842 msgid "guestfs_glob_expand"
27843 msgstr ""
27844
27845 #. type: verbatim
27846 #: ../src/guestfs-actions.pod:2689
27847 #, no-wrap
27848 msgid ""
27849 " char **\n"
27850 " guestfs_glob_expand (guestfs_h *g,\n"
27851 "                      const char *pattern);\n"
27852 "\n"
27853 msgstr ""
27854
27855 #. type: textblock
27856 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
27857 #: ../src/guestfs-actions.pod:7180
27858 msgid "(Added in 1.0.50)"
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:2710
27863 msgid "guestfs_grep"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:2712
27868 #, no-wrap
27869 msgid ""
27870 " char **\n"
27871 " guestfs_grep (guestfs_h *g,\n"
27872 "               const char *regex,\n"
27873 "               const char *path);\n"
27874 "\n"
27875 msgstr ""
27876
27877 #. type: =head2
27878 #: ../src/guestfs-actions.pod:2729
27879 msgid "guestfs_grepi"
27880 msgstr ""
27881
27882 #. type: verbatim
27883 #: ../src/guestfs-actions.pod:2731
27884 #, no-wrap
27885 msgid ""
27886 " char **\n"
27887 " guestfs_grepi (guestfs_h *g,\n"
27888 "                const char *regex,\n"
27889 "                const char *path);\n"
27890 "\n"
27891 msgstr ""
27892
27893 #. type: =head2
27894 #: ../src/guestfs-actions.pod:2748
27895 msgid "guestfs_grub_install"
27896 msgstr ""
27897
27898 #. type: verbatim
27899 #: ../src/guestfs-actions.pod:2750
27900 #, no-wrap
27901 msgid ""
27902 " int\n"
27903 " guestfs_grub_install (guestfs_h *g,\n"
27904 "                       const char *root,\n"
27905 "                       const char *device);\n"
27906 "\n"
27907 msgstr ""
27908
27909 #. type: textblock
27910 #: ../src/guestfs-actions.pod:2793
27911 msgid "(Added in 1.0.17)"
27912 msgstr ""
27913
27914 #. type: =head2
27915 #: ../src/guestfs-actions.pod:2795
27916 msgid "guestfs_head"
27917 msgstr ""
27918
27919 #. type: verbatim
27920 #: ../src/guestfs-actions.pod:2797
27921 #, no-wrap
27922 msgid ""
27923 " char **\n"
27924 " guestfs_head (guestfs_h *g,\n"
27925 "               const char *path);\n"
27926 "\n"
27927 msgstr ""
27928
27929 #. type: =head2
27930 #: ../src/guestfs-actions.pod:2813
27931 msgid "guestfs_head_n"
27932 msgstr ""
27933
27934 #. type: verbatim
27935 #: ../src/guestfs-actions.pod:2815
27936 #, no-wrap
27937 msgid ""
27938 " char **\n"
27939 " guestfs_head_n (guestfs_h *g,\n"
27940 "                 int nrlines,\n"
27941 "                 const char *path);\n"
27942 "\n"
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:2837
27947 msgid "guestfs_hexdump"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:2839
27952 #, no-wrap
27953 msgid ""
27954 " char *\n"
27955 " guestfs_hexdump (guestfs_h *g,\n"
27956 "                  const char *path);\n"
27957 "\n"
27958 msgstr ""
27959
27960 #. type: textblock
27961 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
27962 #: ../src/guestfs-actions.pod:7299
27963 msgid "(Added in 1.0.22)"
27964 msgstr ""
27965
27966 #. type: =head2
27967 #: ../src/guestfs-actions.pod:2854
27968 msgid "guestfs_initrd_cat"
27969 msgstr ""
27970
27971 #. type: verbatim
27972 #: ../src/guestfs-actions.pod:2856
27973 #, no-wrap
27974 msgid ""
27975 " char *\n"
27976 " guestfs_initrd_cat (guestfs_h *g,\n"
27977 "                     const char *initrdpath,\n"
27978 "                     const char *filename,\n"
27979 "                     size_t *size_r);\n"
27980 "\n"
27981 msgstr ""
27982
27983 #. type: textblock
27984 #: ../src/guestfs-actions.pod:2872
27985 msgid "See also C<guestfs_initrd_list>."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:2883
27990 msgid "guestfs_initrd_list"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:2885
27995 #, no-wrap
27996 msgid ""
27997 " char **\n"
27998 " guestfs_initrd_list (guestfs_h *g,\n"
27999 "                      const char *path);\n"
28000 "\n"
28001 msgstr ""
28002
28003 #. type: =head2
28004 #: ../src/guestfs-actions.pod:2905
28005 msgid "guestfs_inotify_add_watch"
28006 msgstr ""
28007
28008 #. type: verbatim
28009 #: ../src/guestfs-actions.pod:2907
28010 #, no-wrap
28011 msgid ""
28012 " int64_t\n"
28013 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28014 "                            const char *path,\n"
28015 "                            int mask);\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: =head2
28020 #: ../src/guestfs-actions.pod:2926
28021 msgid "guestfs_inotify_close"
28022 msgstr ""
28023
28024 #. type: verbatim
28025 #: ../src/guestfs-actions.pod:2928
28026 #, no-wrap
28027 msgid ""
28028 " int\n"
28029 " guestfs_inotify_close (guestfs_h *g);\n"
28030 "\n"
28031 msgstr ""
28032
28033 #. type: =head2
28034 #: ../src/guestfs-actions.pod:2939
28035 msgid "guestfs_inotify_files"
28036 msgstr ""
28037
28038 #. type: verbatim
28039 #: ../src/guestfs-actions.pod:2941
28040 #, no-wrap
28041 msgid ""
28042 " char **\n"
28043 " guestfs_inotify_files (guestfs_h *g);\n"
28044 "\n"
28045 msgstr ""
28046
28047 #. type: textblock
28048 #: ../src/guestfs-actions.pod:2944
28049 msgid ""
28050 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28051 "returns a list of pathnames of objects that were touched.  The returned "
28052 "pathnames are sorted and deduplicated."
28053 msgstr ""
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:2954
28057 msgid "guestfs_inotify_init"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:2956
28062 #, no-wrap
28063 msgid ""
28064 " int\n"
28065 " guestfs_inotify_init (guestfs_h *g,\n"
28066 "                       int maxevents);\n"
28067 "\n"
28068 msgstr ""
28069
28070 #. type: textblock
28071 #: ../src/guestfs-actions.pod:2964
28072 msgid ""
28073 "C<maxevents> is the maximum number of events which will be queued up between "
28074 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28075 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28076 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28077 "throws away events, but records the fact that it threw them away by setting "
28078 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28079 "C<guestfs_inotify_read>)."
28080 msgstr ""
28081
28082 #. type: textblock
28083 #: ../src/guestfs-actions.pod:2974
28084 msgid ""
28085 "Before any events are generated, you have to add some watches to the "
28086 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28087 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:2980
28092 msgid ""
28093 "Queued up events should be read periodically by calling "
28094 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28095 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28096 "often enough then you risk the internal queue overflowing."
28097 msgstr ""
28098
28099 #. type: textblock
28100 #: ../src/guestfs-actions.pod:2987
28101 msgid ""
28102 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28103 "This also removes any watches automatically."
28104 msgstr ""
28105
28106 #. type: =head2
28107 #: ../src/guestfs-actions.pod:3000
28108 msgid "guestfs_inotify_read"
28109 msgstr ""
28110
28111 #. type: verbatim
28112 #: ../src/guestfs-actions.pod:3002
28113 #, no-wrap
28114 msgid ""
28115 " struct guestfs_inotify_event_list *\n"
28116 " guestfs_inotify_read (guestfs_h *g);\n"
28117 "\n"
28118 msgstr ""
28119
28120 #. type: textblock
28121 #: ../src/guestfs-actions.pod:3016
28122 msgid ""
28123 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28124 "there was an error.  I<The caller must call "
28125 "C<guestfs_free_inotify_event_list> after use>."
28126 msgstr ""
28127
28128 #. type: =head2
28129 #: ../src/guestfs-actions.pod:3022
28130 msgid "guestfs_inotify_rm_watch"
28131 msgstr ""
28132
28133 #. type: verbatim
28134 #: ../src/guestfs-actions.pod:3024
28135 #, no-wrap
28136 msgid ""
28137 " int\n"
28138 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28139 "                           int wd);\n"
28140 "\n"
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../src/guestfs-actions.pod:3028
28145 msgid ""
28146 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28147 msgstr ""
28148
28149 #. type: =head2
28150 #: ../src/guestfs-actions.pod:3035
28151 msgid "guestfs_inspect_get_arch"
28152 msgstr ""
28153
28154 #. type: verbatim
28155 #: ../src/guestfs-actions.pod:3037
28156 #, no-wrap
28157 msgid ""
28158 " char *\n"
28159 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28160 "                           const char *root);\n"
28161 "\n"
28162 msgstr ""
28163
28164 #. type: textblock
28165 #: ../src/guestfs-actions.pod:3041
28166 msgid ""
28167 "This returns the architecture of the inspected operating system.  The "
28168 "possible return values are listed under C<guestfs_file_architecture>."
28169 msgstr ""
28170
28171 #. type: =head2
28172 #: ../src/guestfs-actions.pod:3055
28173 msgid "guestfs_inspect_get_distro"
28174 msgstr ""
28175
28176 #. type: verbatim
28177 #: ../src/guestfs-actions.pod:3057
28178 #, no-wrap
28179 msgid ""
28180 " char *\n"
28181 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28182 "                             const char *root);\n"
28183 "\n"
28184 msgstr ""
28185
28186 #. type: =head2
28187 #: ../src/guestfs-actions.pod:3157
28188 msgid "guestfs_inspect_get_drive_mappings"
28189 msgstr ""
28190
28191 #. type: verbatim
28192 #: ../src/guestfs-actions.pod:3159
28193 #, no-wrap
28194 msgid ""
28195 " char **\n"
28196 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28197 "                                     const char *root);\n"
28198 "\n"
28199 msgstr ""
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:3188
28203 msgid ""
28204 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28205 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28206 msgstr ""
28207
28208 #. type: textblock
28209 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
28210 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
28211 #: ../src/guestfs-actions.pod:7601
28212 msgid ""
28213 "This function returns a NULL-terminated array of strings, or NULL if there "
28214 "was an error.  The array of strings will always have length C<2n+1>, where "
28215 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28216 "caller must free the strings and the array after use>."
28217 msgstr ""
28218
28219 #. type: textblock
28220 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28221 msgid "(Added in 1.9.17)"
28222 msgstr ""
28223
28224 #. type: =head2
28225 #: ../src/guestfs-actions.pod:3200
28226 msgid "guestfs_inspect_get_filesystems"
28227 msgstr ""
28228
28229 #. type: verbatim
28230 #: ../src/guestfs-actions.pod:3202
28231 #, no-wrap
28232 msgid ""
28233 " char **\n"
28234 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28235 "                                  const char *root);\n"
28236 "\n"
28237 msgstr ""
28238
28239 #. type: textblock
28240 #: ../src/guestfs-actions.pod:3214
28241 msgid ""
28242 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28243 "C<guestfs_inspect_get_mountpoints>."
28244 msgstr ""
28245
28246 #. type: =head2
28247 #: ../src/guestfs-actions.pod:3223
28248 msgid "guestfs_inspect_get_format"
28249 msgstr ""
28250
28251 #. type: verbatim
28252 #: ../src/guestfs-actions.pod:3225
28253 #, no-wrap
28254 msgid ""
28255 " char *\n"
28256 " guestfs_inspect_get_format (guestfs_h *g,\n"
28257 "                             const char *root);\n"
28258 "\n"
28259 msgstr ""
28260
28261 #. type: textblock
28262 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
28263 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
28264 #: ../src/guestfs-actions.pod:6493
28265 msgid "(Added in 1.9.4)"
28266 msgstr ""
28267
28268 #. type: =head2
28269 #: ../src/guestfs-actions.pod:3261
28270 msgid "guestfs_inspect_get_hostname"
28271 msgstr ""
28272
28273 #. type: verbatim
28274 #: ../src/guestfs-actions.pod:3263
28275 #, no-wrap
28276 msgid ""
28277 " char *\n"
28278 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28279 "                               const char *root);\n"
28280 "\n"
28281 msgstr ""
28282
28283 #. type: textblock
28284 #: ../src/guestfs-actions.pod:3278
28285 msgid "(Added in 1.7.9)"
28286 msgstr ""
28287
28288 #. type: =head2
28289 #: ../src/guestfs-actions.pod:3280
28290 msgid "guestfs_inspect_get_icon"
28291 msgstr ""
28292
28293 #. type: verbatim
28294 #: ../src/guestfs-actions.pod:3282
28295 #, no-wrap
28296 msgid ""
28297 " char *\n"
28298 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28299 "                           const char *root,\n"
28300 "                           size_t *size_r,\n"
28301 "                           ...);\n"
28302 "\n"
28303 msgstr ""
28304
28305 #. type: verbatim
28306 #: ../src/guestfs-actions.pod:3293
28307 #, no-wrap
28308 msgid ""
28309 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28310 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28311 "\n"
28312 msgstr ""
28313
28314 #. type: textblock
28315 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
28316 #: ../src/guestfs-actions.pod:5425
28317 msgid "(Added in 1.11.12)"
28318 msgstr ""
28319
28320 #. type: =head2
28321 #: ../src/guestfs-actions.pod:3362
28322 msgid "guestfs_inspect_get_icon_va"
28323 msgstr ""
28324
28325 #. type: verbatim
28326 #: ../src/guestfs-actions.pod:3364
28327 #, no-wrap
28328 msgid ""
28329 " char *\n"
28330 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28331 "                              const char *root,\n"
28332 "                              size_t *size_r,\n"
28333 "                              va_list args);\n"
28334 "\n"
28335 msgstr ""
28336
28337 #. type: textblock
28338 #: ../src/guestfs-actions.pod:3370
28339 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28340 msgstr ""
28341
28342 #. type: =head2
28343 #: ../src/guestfs-actions.pod:3374
28344 msgid "guestfs_inspect_get_icon_argv"
28345 msgstr ""
28346
28347 #. type: verbatim
28348 #: ../src/guestfs-actions.pod:3376
28349 #, no-wrap
28350 msgid ""
28351 " char *\n"
28352 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28353 "                                const char *root,\n"
28354 "                                size_t *size_r,\n"
28355 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28356 "\n"
28357 msgstr ""
28358
28359 #. type: textblock
28360 #: ../src/guestfs-actions.pod:3382
28361 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28362 msgstr ""
28363
28364 #. type: =head2
28365 #: ../src/guestfs-actions.pod:3386
28366 msgid "guestfs_inspect_get_major_version"
28367 msgstr ""
28368
28369 #. type: verbatim
28370 #: ../src/guestfs-actions.pod:3388
28371 #, no-wrap
28372 msgid ""
28373 " int\n"
28374 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28375 "                                    const char *root);\n"
28376 "\n"
28377 msgstr ""
28378
28379 #. type: =head2
28380 #: ../src/guestfs-actions.pod:3410
28381 msgid "guestfs_inspect_get_minor_version"
28382 msgstr ""
28383
28384 #. type: verbatim
28385 #: ../src/guestfs-actions.pod:3412
28386 #, no-wrap
28387 msgid ""
28388 " int\n"
28389 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28390 "                                    const char *root);\n"
28391 "\n"
28392 msgstr ""
28393
28394 #. type: textblock
28395 #: ../src/guestfs-actions.pod:3421
28396 msgid ""
28397 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28398 "C<guestfs_inspect_get_major_version>."
28399 msgstr ""
28400
28401 #. type: =head2
28402 #: ../src/guestfs-actions.pod:3428
28403 msgid "guestfs_inspect_get_mountpoints"
28404 msgstr ""
28405
28406 #. type: verbatim
28407 #: ../src/guestfs-actions.pod:3430
28408 #, no-wrap
28409 msgid ""
28410 " char **\n"
28411 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28412 "                                  const char *root);\n"
28413 "\n"
28414 msgstr ""
28415
28416 #. type: textblock
28417 #: ../src/guestfs-actions.pod:3451
28418 msgid ""
28419 "For operating systems like Windows which still use drive letters, this call "
28420 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28421 "information about the mapping of drive letters to partitions, see "
28422 "C<guestfs_inspect_get_drive_mappings>."
28423 msgstr ""
28424
28425 #. type: textblock
28426 #: ../src/guestfs-actions.pod:3457
28427 msgid ""
28428 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28429 "C<guestfs_inspect_get_filesystems>."
28430 msgstr ""
28431
28432 #. type: =head2
28433 #: ../src/guestfs-actions.pod:3468
28434 msgid "guestfs_inspect_get_package_format"
28435 msgstr ""
28436
28437 #. type: verbatim
28438 #: ../src/guestfs-actions.pod:3470
28439 #, no-wrap
28440 msgid ""
28441 " char *\n"
28442 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28443 "                                     const char *root);\n"
28444 "\n"
28445 msgstr ""
28446
28447 #. type: textblock
28448 #: ../src/guestfs-actions.pod:3474
28449 msgid ""
28450 "This function and C<guestfs_inspect_get_package_management> return the "
28451 "package format and package management tool used by the inspected operating "
28452 "system.  For example for Fedora these functions would return C<rpm> (package "
28453 "format) and C<yum> (package management)."
28454 msgstr ""
28455
28456 #. type: textblock
28457 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28458 msgid "(Added in 1.7.5)"
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../src/guestfs-actions.pod:3495
28463 msgid "guestfs_inspect_get_package_management"
28464 msgstr ""
28465
28466 #. type: verbatim
28467 #: ../src/guestfs-actions.pod:3497
28468 #, no-wrap
28469 msgid ""
28470 " char *\n"
28471 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28472 "                                         const char *root);\n"
28473 "\n"
28474 msgstr ""
28475
28476 #. type: textblock
28477 #: ../src/guestfs-actions.pod:3501
28478 msgid ""
28479 "C<guestfs_inspect_get_package_format> and this function return the package "
28480 "format and package management tool used by the inspected operating system.  "
28481 "For example for Fedora these functions would return C<rpm> (package format) "
28482 "and C<yum> (package management)."
28483 msgstr ""
28484
28485 #. type: =head2
28486 #: ../src/guestfs-actions.pod:3523
28487 msgid "guestfs_inspect_get_product_name"
28488 msgstr ""
28489
28490 #. type: verbatim
28491 #: ../src/guestfs-actions.pod:3525
28492 #, no-wrap
28493 msgid ""
28494 " char *\n"
28495 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28496 "                                   const char *root);\n"
28497 "\n"
28498 msgstr ""
28499
28500 #. type: =head2
28501 #: ../src/guestfs-actions.pod:3544
28502 msgid "guestfs_inspect_get_product_variant"
28503 msgstr ""
28504
28505 #. type: verbatim
28506 #: ../src/guestfs-actions.pod:3546
28507 #, no-wrap
28508 msgid ""
28509 " char *\n"
28510 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28511 "                                      const char *root);\n"
28512 "\n"
28513 msgstr ""
28514
28515 #. type: textblock
28516 #: ../src/guestfs-actions.pod:3569
28517 msgid ""
28518 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28519 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28520 msgstr ""
28521
28522 #. type: textblock
28523 #: ../src/guestfs-actions.pod:3576
28524 msgid "(Added in 1.9.13)"
28525 msgstr ""
28526
28527 #. type: =head2
28528 #: ../src/guestfs-actions.pod:3578
28529 msgid "guestfs_inspect_get_roots"
28530 msgstr ""
28531
28532 #. type: verbatim
28533 #: ../src/guestfs-actions.pod:3580
28534 #, no-wrap
28535 msgid ""
28536 " char **\n"
28537 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28538 "\n"
28539 msgstr ""
28540
28541 #. type: textblock
28542 #: ../src/guestfs-actions.pod:3583
28543 msgid ""
28544 "This function is a convenient way to get the list of root devices, as "
28545 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28546 "the whole inspection process."
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:3587
28551 msgid ""
28552 "This returns an empty list if either no root devices were found or the "
28553 "caller has not called C<guestfs_inspect_os>."
28554 msgstr ""
28555
28556 #. type: textblock
28557 #: ../src/guestfs-actions.pod:3596
28558 msgid "(Added in 1.7.3)"
28559 msgstr ""
28560
28561 #. type: =head2
28562 #: ../src/guestfs-actions.pod:3598
28563 msgid "guestfs_inspect_get_type"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../src/guestfs-actions.pod:3600
28568 #, no-wrap
28569 msgid ""
28570 " char *\n"
28571 " guestfs_inspect_get_type (guestfs_h *g,\n"
28572 "                           const char *root);\n"
28573 "\n"
28574 msgstr ""
28575
28576 #. type: =head2
28577 #: ../src/guestfs-actions.pod:3641
28578 msgid "guestfs_inspect_get_windows_current_control_set"
28579 msgstr ""
28580
28581 #. type: verbatim
28582 #: ../src/guestfs-actions.pod:3643
28583 #, no-wrap
28584 msgid ""
28585 " char *\n"
28586 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28587 "                                                  const char *root);\n"
28588 "\n"
28589 msgstr ""
28590
28591 #. type: =head2
28592 #: ../src/guestfs-actions.pod:3661
28593 msgid "guestfs_inspect_get_windows_systemroot"
28594 msgstr ""
28595
28596 #. type: verbatim
28597 #: ../src/guestfs-actions.pod:3663
28598 #, no-wrap
28599 msgid ""
28600 " char *\n"
28601 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28602 "                                         const char *root);\n"
28603 "\n"
28604 msgstr ""
28605
28606 #. type: textblock
28607 #: ../src/guestfs-actions.pod:3679
28608 msgid "(Added in 1.5.25)"
28609 msgstr ""
28610
28611 #. type: =head2
28612 #: ../src/guestfs-actions.pod:3681
28613 msgid "guestfs_inspect_is_live"
28614 msgstr ""
28615
28616 #. type: verbatim
28617 #: ../src/guestfs-actions.pod:3683
28618 #, no-wrap
28619 msgid ""
28620 " int\n"
28621 " guestfs_inspect_is_live (guestfs_h *g,\n"
28622 "                          const char *root);\n"
28623 "\n"
28624 msgstr ""
28625
28626 #. type: textblock
28627 #: ../src/guestfs-actions.pod:3687
28628 msgid ""
28629 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28630 "disk), then this returns true if a live image was detected on the disk."
28631 msgstr ""
28632
28633 #. type: =head2
28634 #: ../src/guestfs-actions.pod:3697
28635 msgid "guestfs_inspect_is_multipart"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../src/guestfs-actions.pod:3699
28640 #, no-wrap
28641 msgid ""
28642 " int\n"
28643 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28644 "                               const char *root);\n"
28645 "\n"
28646 msgstr ""
28647
28648 #. type: textblock
28649 #: ../src/guestfs-actions.pod:3703
28650 msgid ""
28651 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28652 "disk), then this returns true if the disk is part of a set."
28653 msgstr ""
28654
28655 #. type: =head2
28656 #: ../src/guestfs-actions.pod:3713
28657 msgid "guestfs_inspect_is_netinst"
28658 msgstr ""
28659
28660 #. type: verbatim
28661 #: ../src/guestfs-actions.pod:3715
28662 #, no-wrap
28663 msgid ""
28664 " int\n"
28665 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28666 "                             const char *root);\n"
28667 "\n"
28668 msgstr ""
28669
28670 #. type: textblock
28671 #: ../src/guestfs-actions.pod:3719
28672 msgid ""
28673 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28674 "disk), then this returns true if the disk is a network installer, ie. not a "
28675 "self-contained install CD but one which is likely to require network access "
28676 "to complete the install."
28677 msgstr ""
28678
28679 #. type: =head2
28680 #: ../src/guestfs-actions.pod:3731
28681 msgid "guestfs_inspect_list_applications"
28682 msgstr ""
28683
28684 #. type: verbatim
28685 #: ../src/guestfs-actions.pod:3733
28686 #, no-wrap
28687 msgid ""
28688 " struct guestfs_application_list *\n"
28689 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28690 "                                    const char *root);\n"
28691 "\n"
28692 msgstr ""
28693
28694 #. type: textblock
28695 #: ../src/guestfs-actions.pod:3739
28696 msgid ""
28697 "I<Note:> This call works differently from other parts of the inspection "
28698 "API.  You have to call C<guestfs_inspect_os>, then "
28699 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28700 "this.  Listing applications is a significantly more difficult operation "
28701 "which requires access to the full filesystem.  Also note that unlike the "
28702 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28703 "the libguestfs handle, this call actually reads parts of the mounted "
28704 "filesystems during the call."
28705 msgstr ""
28706
28707 #. type: textblock
28708 #: ../src/guestfs-actions.pod:3829
28709 msgid ""
28710 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28711 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28712 "after use>."
28713 msgstr ""
28714
28715 #. type: textblock
28716 #: ../src/guestfs-actions.pod:3833
28717 msgid "(Added in 1.7.8)"
28718 msgstr ""
28719
28720 #. type: =head2
28721 #: ../src/guestfs-actions.pod:3835
28722 msgid "guestfs_inspect_os"
28723 msgstr ""
28724
28725 #. type: verbatim
28726 #: ../src/guestfs-actions.pod:3837
28727 #, no-wrap
28728 msgid ""
28729 " char **\n"
28730 " guestfs_inspect_os (guestfs_h *g);\n"
28731 "\n"
28732 msgstr ""
28733
28734 #. type: textblock
28735 #: ../src/guestfs-actions.pod:3853
28736 msgid ""
28737 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28738 "functions in order to query further information about each operating system, "
28739 "such as the name and version."
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:3858
28744 msgid ""
28745 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28746 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28747 "the contents.  This should be called with no disks currently mounted.  The "
28748 "function may also use Augeas, so any existing Augeas handle will be closed."
28749 msgstr ""
28750
28751 #. type: textblock
28752 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
28753 #: ../src/guestfs-actions.pod:4283
28754 msgid "See also C<guestfs_list_filesystems>."
28755 msgstr ""
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:3878
28759 msgid "guestfs_is_blockdev"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:3880
28764 #, no-wrap
28765 msgid ""
28766 " int\n"
28767 " guestfs_is_blockdev (guestfs_h *g,\n"
28768 "                      const char *path);\n"
28769 "\n"
28770 msgstr ""
28771
28772 #. type: textblock
28773 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
28774 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
28775 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
28776 #: ../src/guestfs-actions.pod:4048
28777 msgid "See also C<guestfs_stat>."
28778 msgstr ""
28779
28780 #. type: textblock
28781 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
28782 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
28783 #: ../src/guestfs-actions.pod:4052
28784 msgid "(Added in 1.5.10)"
28785 msgstr ""
28786
28787 #. type: =head2
28788 #: ../src/guestfs-actions.pod:3893
28789 msgid "guestfs_is_busy"
28790 msgstr ""
28791
28792 #. type: verbatim
28793 #: ../src/guestfs-actions.pod:3895
28794 #, no-wrap
28795 msgid ""
28796 " int\n"
28797 " guestfs_is_busy (guestfs_h *g);\n"
28798 "\n"
28799 msgstr ""
28800
28801 #. type: =head2
28802 #: ../src/guestfs-actions.pod:3907
28803 msgid "guestfs_is_chardev"
28804 msgstr ""
28805
28806 #. type: verbatim
28807 #: ../src/guestfs-actions.pod:3909
28808 #, no-wrap
28809 msgid ""
28810 " int\n"
28811 " guestfs_is_chardev (guestfs_h *g,\n"
28812 "                     const char *path);\n"
28813 "\n"
28814 msgstr ""
28815
28816 #. type: =head2
28817 #: ../src/guestfs-actions.pod:3922
28818 msgid "guestfs_is_config"
28819 msgstr ""
28820
28821 #. type: verbatim
28822 #: ../src/guestfs-actions.pod:3924
28823 #, no-wrap
28824 msgid ""
28825 " int\n"
28826 " guestfs_is_config (guestfs_h *g);\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: =head2
28831 #: ../src/guestfs-actions.pod:3936
28832 msgid "guestfs_is_dir"
28833 msgstr ""
28834
28835 #. type: verbatim
28836 #: ../src/guestfs-actions.pod:3938
28837 #, no-wrap
28838 msgid ""
28839 " int\n"
28840 " guestfs_is_dir (guestfs_h *g,\n"
28841 "                 const char *path);\n"
28842 "\n"
28843 msgstr ""
28844
28845 #. type: =head2
28846 #: ../src/guestfs-actions.pod:3952
28847 msgid "guestfs_is_fifo"
28848 msgstr ""
28849
28850 #. type: verbatim
28851 #: ../src/guestfs-actions.pod:3954
28852 #, no-wrap
28853 msgid ""
28854 " int\n"
28855 " guestfs_is_fifo (guestfs_h *g,\n"
28856 "                  const char *path);\n"
28857 "\n"
28858 msgstr ""
28859
28860 #. type: =head2
28861 #: ../src/guestfs-actions.pod:3967
28862 msgid "guestfs_is_file"
28863 msgstr ""
28864
28865 #. type: verbatim
28866 #: ../src/guestfs-actions.pod:3969
28867 #, no-wrap
28868 msgid ""
28869 " int\n"
28870 " guestfs_is_file (guestfs_h *g,\n"
28871 "                  const char *path);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: =head2
28876 #: ../src/guestfs-actions.pod:3983
28877 msgid "guestfs_is_launching"
28878 msgstr ""
28879
28880 #. type: verbatim
28881 #: ../src/guestfs-actions.pod:3985
28882 #, no-wrap
28883 msgid ""
28884 " int\n"
28885 " guestfs_is_launching (guestfs_h *g);\n"
28886 "\n"
28887 msgstr ""
28888
28889 #. type: =head2
28890 #: ../src/guestfs-actions.pod:3997
28891 msgid "guestfs_is_lv"
28892 msgstr ""
28893
28894 #. type: verbatim
28895 #: ../src/guestfs-actions.pod:3999
28896 #, no-wrap
28897 msgid ""
28898 " int\n"
28899 " guestfs_is_lv (guestfs_h *g,\n"
28900 "                const char *device);\n"
28901 "\n"
28902 msgstr ""
28903
28904 #. type: =head2
28905 #: ../src/guestfs-actions.pod:4010
28906 msgid "guestfs_is_ready"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../src/guestfs-actions.pod:4012
28911 #, no-wrap
28912 msgid ""
28913 " int\n"
28914 " guestfs_is_ready (guestfs_h *g);\n"
28915 "\n"
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:4024
28920 msgid "guestfs_is_socket"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:4026
28925 #, no-wrap
28926 msgid ""
28927 " int\n"
28928 " guestfs_is_socket (guestfs_h *g,\n"
28929 "                    const char *path);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: =head2
28934 #: ../src/guestfs-actions.pod:4039
28935 msgid "guestfs_is_symlink"
28936 msgstr ""
28937
28938 #. type: verbatim
28939 #: ../src/guestfs-actions.pod:4041
28940 #, no-wrap
28941 msgid ""
28942 " int\n"
28943 " guestfs_is_symlink (guestfs_h *g,\n"
28944 "                     const char *path);\n"
28945 "\n"
28946 msgstr ""
28947
28948 #. type: =head2
28949 #: ../src/guestfs-actions.pod:4054
28950 msgid "guestfs_is_zero"
28951 msgstr ""
28952
28953 #. type: verbatim
28954 #: ../src/guestfs-actions.pod:4056
28955 #, no-wrap
28956 msgid ""
28957 " int\n"
28958 " guestfs_is_zero (guestfs_h *g,\n"
28959 "                  const char *path);\n"
28960 "\n"
28961 msgstr ""
28962
28963 #. type: textblock
28964 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
28965 msgid "(Added in 1.11.8)"
28966 msgstr ""
28967
28968 #. type: =head2
28969 #: ../src/guestfs-actions.pod:4067
28970 msgid "guestfs_is_zero_device"
28971 msgstr ""
28972
28973 #. type: verbatim
28974 #: ../src/guestfs-actions.pod:4069
28975 #, no-wrap
28976 msgid ""
28977 " int\n"
28978 " guestfs_is_zero_device (guestfs_h *g,\n"
28979 "                         const char *device);\n"
28980 "\n"
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../src/guestfs-actions.pod:4081
28985 msgid "guestfs_kill_subprocess"
28986 msgstr ""
28987
28988 #. type: verbatim
28989 #: ../src/guestfs-actions.pod:4083
28990 #, no-wrap
28991 msgid ""
28992 " int\n"
28993 " guestfs_kill_subprocess (guestfs_h *g);\n"
28994 "\n"
28995 msgstr ""
28996
28997 #. type: =head2
28998 #: ../src/guestfs-actions.pod:4092
28999 msgid "guestfs_launch"
29000 msgstr ""
29001
29002 #. type: verbatim
29003 #: ../src/guestfs-actions.pod:4094
29004 #, no-wrap
29005 msgid ""
29006 " int\n"
29007 " guestfs_launch (guestfs_h *g);\n"
29008 "\n"
29009 msgstr ""
29010
29011 #. type: =head2
29012 #: ../src/guestfs-actions.pod:4112
29013 msgid "guestfs_lchown"
29014 msgstr ""
29015
29016 #. type: verbatim
29017 #: ../src/guestfs-actions.pod:4114
29018 #, no-wrap
29019 msgid ""
29020 " int\n"
29021 " guestfs_lchown (guestfs_h *g,\n"
29022 "                 int owner,\n"
29023 "                 int group,\n"
29024 "                 const char *path);\n"
29025 "\n"
29026 msgstr ""
29027
29028 #. type: textblock
29029 #: ../src/guestfs-actions.pod:4120
29030 msgid ""
29031 "Change the file owner to C<owner> and group to C<group>.  This is like "
29032 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29033 "changed, not the target."
29034 msgstr ""
29035
29036 #. type: =head2
29037 #: ../src/guestfs-actions.pod:4132
29038 msgid "guestfs_lgetxattr"
29039 msgstr ""
29040
29041 #. type: verbatim
29042 #: ../src/guestfs-actions.pod:4134
29043 #, no-wrap
29044 msgid ""
29045 " char *\n"
29046 " guestfs_lgetxattr (guestfs_h *g,\n"
29047 "                    const char *path,\n"
29048 "                    const char *name,\n"
29049 "                    size_t *size_r);\n"
29050 "\n"
29051 msgstr ""
29052
29053 #. type: textblock
29054 #: ../src/guestfs-actions.pod:4154
29055 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29056 msgstr ""
29057
29058 #. type: =head2
29059 #: ../src/guestfs-actions.pod:4162
29060 msgid "guestfs_lgetxattrs"
29061 msgstr ""
29062
29063 #. type: verbatim
29064 #: ../src/guestfs-actions.pod:4164
29065 #, no-wrap
29066 msgid ""
29067 " struct guestfs_xattr_list *\n"
29068 " guestfs_lgetxattrs (guestfs_h *g,\n"
29069 "                     const char *path);\n"
29070 "\n"
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../src/guestfs-actions.pod:4168
29075 msgid ""
29076 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29077 "then it returns the extended attributes of the link itself."
29078 msgstr ""
29079
29080 #. type: =head2
29081 #: ../src/guestfs-actions.pod:4178
29082 msgid "guestfs_list_9p"
29083 msgstr ""
29084
29085 #. type: verbatim
29086 #: ../src/guestfs-actions.pod:4180
29087 #, no-wrap
29088 msgid ""
29089 " char **\n"
29090 " guestfs_list_9p (guestfs_h *g);\n"
29091 "\n"
29092 msgstr ""
29093
29094 #. type: =head2
29095 #: ../src/guestfs-actions.pod:4192
29096 msgid "guestfs_list_devices"
29097 msgstr ""
29098
29099 #. type: verbatim
29100 #: ../src/guestfs-actions.pod:4194
29101 #, no-wrap
29102 msgid ""
29103 " char **\n"
29104 " guestfs_list_devices (guestfs_h *g);\n"
29105 "\n"
29106 msgstr ""
29107
29108 #. type: =head2
29109 #: ../src/guestfs-actions.pod:4209
29110 msgid "guestfs_list_dm_devices"
29111 msgstr ""
29112
29113 #. type: verbatim
29114 #: ../src/guestfs-actions.pod:4211
29115 #, no-wrap
29116 msgid ""
29117 " char **\n"
29118 " guestfs_list_dm_devices (guestfs_h *g);\n"
29119 "\n"
29120 msgstr ""
29121
29122 #. type: textblock
29123 #: ../src/guestfs-actions.pod:4216
29124 msgid ""
29125 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29126 "previous call to C<guestfs_luks_open>."
29127 msgstr ""
29128
29129 #. type: textblock
29130 #: ../src/guestfs-actions.pod:4219
29131 msgid ""
29132 "Device mapper devices which correspond to logical volumes are I<not> "
29133 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29134 "volumes."
29135 msgstr ""
29136
29137 #. type: textblock
29138 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29139 msgid "(Added in 1.11.15)"
29140 msgstr ""
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:4229
29144 msgid "guestfs_list_filesystems"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:4231
29149 #, no-wrap
29150 msgid ""
29151 " char **\n"
29152 " guestfs_list_filesystems (guestfs_h *g);\n"
29153 "\n"
29154 msgstr ""
29155
29156 #. type: textblock
29157 #: ../src/guestfs-actions.pod:4251
29158 msgid ""
29159 "This command runs other libguestfs commands, which might include "
29160 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29161 "soon after launch and only when nothing is mounted."
29162 msgstr ""
29163
29164 #. type: textblock
29165 #: ../src/guestfs-actions.pod:4255
29166 msgid ""
29167 "Not all of the filesystems returned will be mountable.  In particular, swap "
29168 "partitions are returned in the list.  Also this command does not check that "
29169 "each filesystem found is valid and mountable, and some filesystems might be "
29170 "mountable but require special options.  Filesystems may not all belong to a "
29171 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
29176 msgid "(Added in 1.5.15)"
29177 msgstr ""
29178
29179 #. type: =head2
29180 #: ../src/guestfs-actions.pod:4271
29181 msgid "guestfs_list_partitions"
29182 msgstr ""
29183
29184 #. type: verbatim
29185 #: ../src/guestfs-actions.pod:4273
29186 #, no-wrap
29187 msgid ""
29188 " char **\n"
29189 " guestfs_list_partitions (guestfs_h *g);\n"
29190 "\n"
29191 msgstr ""
29192
29193 #. type: textblock
29194 #: ../src/guestfs-actions.pod:4280
29195 msgid ""
29196 "This does not return logical volumes.  For that you will need to call "
29197 "C<guestfs_lvs>."
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:4291
29202 msgid "guestfs_ll"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:4293
29207 #, no-wrap
29208 msgid ""
29209 " char *\n"
29210 " guestfs_ll (guestfs_h *g,\n"
29211 "             const char *directory);\n"
29212 "\n"
29213 msgstr ""
29214
29215 #. type: =head2
29216 #: ../src/guestfs-actions.pod:4308
29217 msgid "guestfs_ln"
29218 msgstr ""
29219
29220 #. type: verbatim
29221 #: ../src/guestfs-actions.pod:4310
29222 #, no-wrap
29223 msgid ""
29224 " int\n"
29225 " guestfs_ln (guestfs_h *g,\n"
29226 "             const char *target,\n"
29227 "             const char *linkname);\n"
29228 "\n"
29229 msgstr ""
29230
29231 #. type: =head2
29232 #: ../src/guestfs-actions.pod:4321
29233 msgid "guestfs_ln_f"
29234 msgstr ""
29235
29236 #. type: verbatim
29237 #: ../src/guestfs-actions.pod:4323
29238 #, no-wrap
29239 msgid ""
29240 " int\n"
29241 " guestfs_ln_f (guestfs_h *g,\n"
29242 "               const char *target,\n"
29243 "               const char *linkname);\n"
29244 "\n"
29245 msgstr ""
29246
29247 #. type: =head2
29248 #: ../src/guestfs-actions.pod:4335
29249 msgid "guestfs_ln_s"
29250 msgstr ""
29251
29252 #. type: verbatim
29253 #: ../src/guestfs-actions.pod:4337
29254 #, no-wrap
29255 msgid ""
29256 " int\n"
29257 " guestfs_ln_s (guestfs_h *g,\n"
29258 "               const char *target,\n"
29259 "               const char *linkname);\n"
29260 "\n"
29261 msgstr ""
29262
29263 #. type: =head2
29264 #: ../src/guestfs-actions.pod:4348
29265 msgid "guestfs_ln_sf"
29266 msgstr ""
29267
29268 #. type: verbatim
29269 #: ../src/guestfs-actions.pod:4350
29270 #, no-wrap
29271 msgid ""
29272 " int\n"
29273 " guestfs_ln_sf (guestfs_h *g,\n"
29274 "                const char *target,\n"
29275 "                const char *linkname);\n"
29276 "\n"
29277 msgstr ""
29278
29279 #. type: =head2
29280 #: ../src/guestfs-actions.pod:4362
29281 msgid "guestfs_lremovexattr"
29282 msgstr ""
29283
29284 #. type: verbatim
29285 #: ../src/guestfs-actions.pod:4364
29286 #, no-wrap
29287 msgid ""
29288 " int\n"
29289 " guestfs_lremovexattr (guestfs_h *g,\n"
29290 "                       const char *xattr,\n"
29291 "                       const char *path);\n"
29292 "\n"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:4369
29297 msgid ""
29298 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29299 "link, then it removes an extended attribute of the link itself."
29300 msgstr ""
29301
29302 #. type: =head2
29303 #: ../src/guestfs-actions.pod:4377
29304 msgid "guestfs_ls"
29305 msgstr ""
29306
29307 #. type: verbatim
29308 #: ../src/guestfs-actions.pod:4379
29309 #, no-wrap
29310 msgid ""
29311 " char **\n"
29312 " guestfs_ls (guestfs_h *g,\n"
29313 "             const char *directory);\n"
29314 "\n"
29315 msgstr ""
29316
29317 #. type: textblock
29318 #: ../src/guestfs-actions.pod:4387
29319 msgid ""
29320 "This command is mostly useful for interactive sessions.  Programs should "
29321 "probably use C<guestfs_readdir> instead."
29322 msgstr ""
29323
29324 #. type: =head2
29325 #: ../src/guestfs-actions.pod:4396
29326 msgid "guestfs_lsetxattr"
29327 msgstr ""
29328
29329 #. type: verbatim
29330 #: ../src/guestfs-actions.pod:4398
29331 #, no-wrap
29332 msgid ""
29333 " int\n"
29334 " guestfs_lsetxattr (guestfs_h *g,\n"
29335 "                    const char *xattr,\n"
29336 "                    const char *val,\n"
29337 "                    int vallen,\n"
29338 "                    const char *path);\n"
29339 "\n"
29340 msgstr ""
29341
29342 #. type: textblock
29343 #: ../src/guestfs-actions.pod:4405
29344 msgid ""
29345 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29346 "then it sets an extended attribute of the link itself."
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:4413
29351 msgid "guestfs_lstat"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:4415
29356 #, no-wrap
29357 msgid ""
29358 " struct guestfs_stat *\n"
29359 " guestfs_lstat (guestfs_h *g,\n"
29360 "                const char *path);\n"
29361 "\n"
29362 msgstr ""
29363
29364 #. type: textblock
29365 #: ../src/guestfs-actions.pod:4421
29366 msgid ""
29367 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29368 "link, then the link is stat-ed, not the file it refers to."
29369 msgstr ""
29370
29371 #. type: textblock
29372 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
29373 msgid ""
29374 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29375 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29376 msgstr ""
29377
29378 #. type: textblock
29379 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
29380 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
29381 msgid "(Added in 0.9.2)"
29382 msgstr ""
29383
29384 #. type: =head2
29385 #: ../src/guestfs-actions.pod:4433
29386 msgid "guestfs_lstatlist"
29387 msgstr ""
29388
29389 #. type: verbatim
29390 #: ../src/guestfs-actions.pod:4435
29391 #, no-wrap
29392 msgid ""
29393 " struct guestfs_stat_list *\n"
29394 " guestfs_lstatlist (guestfs_h *g,\n"
29395 "                    const char *path,\n"
29396 "                    char *const *names);\n"
29397 "\n"
29398 msgstr ""
29399
29400 #. type: textblock
29401 #: ../src/guestfs-actions.pod:4440
29402 msgid ""
29403 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29404 "files, where all files are in the directory C<path>.  C<names> is the list "
29405 "of files from this directory."
29406 msgstr ""
29407
29408 #. type: textblock
29409 #: ../src/guestfs-actions.pod:4449
29410 msgid ""
29411 "This call is intended for programs that want to efficiently list a directory "
29412 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29413 "for a similarly efficient call for getting extended attributes.  Very long "
29414 "directory listings might cause the protocol message size to be exceeded, "
29415 "causing this call to fail.  The caller must split up such requests into "
29416 "smaller groups of names."
29417 msgstr ""
29418
29419 #. type: textblock
29420 #: ../src/guestfs-actions.pod:4457
29421 msgid ""
29422 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29423 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29424 msgstr ""
29425
29426 #. type: =head2
29427 #: ../src/guestfs-actions.pod:4463
29428 msgid "guestfs_luks_add_key"
29429 msgstr ""
29430
29431 #. type: verbatim
29432 #: ../src/guestfs-actions.pod:4465
29433 #, no-wrap
29434 msgid ""
29435 " int\n"
29436 " guestfs_luks_add_key (guestfs_h *g,\n"
29437 "                       const char *device,\n"
29438 "                       const char *key,\n"
29439 "                       const char *newkey,\n"
29440 "                       int keyslot);\n"
29441 "\n"
29442 msgstr ""
29443
29444 #. type: textblock
29445 #: ../src/guestfs-actions.pod:4477
29446 msgid ""
29447 "Note that if C<keyslot> already contains a key, then this command will "
29448 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29449 msgstr ""
29450
29451 #. type: textblock
29452 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
29453 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
29454 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
29455 msgid ""
29456 "This function takes a key or passphrase parameter which could contain "
29457 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29458 "information."
29459 msgstr ""
29460
29461 #. type: textblock
29462 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
29463 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
29464 msgid "(Added in 1.5.2)"
29465 msgstr ""
29466
29467 #. type: =head2
29468 #: ../src/guestfs-actions.pod:4489
29469 msgid "guestfs_luks_close"
29470 msgstr ""
29471
29472 #. type: verbatim
29473 #: ../src/guestfs-actions.pod:4491
29474 #, no-wrap
29475 msgid ""
29476 " int\n"
29477 " guestfs_luks_close (guestfs_h *g,\n"
29478 "                     const char *device);\n"
29479 "\n"
29480 msgstr ""
29481
29482 #. type: textblock
29483 #: ../src/guestfs-actions.pod:4495
29484 msgid ""
29485 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29486 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29487 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29488 "underlying block device."
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
29493 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
29494 #: ../src/guestfs-actions.pod:4713
29495 msgid "(Added in 1.5.1)"
29496 msgstr ""
29497
29498 #. type: =head2
29499 #: ../src/guestfs-actions.pod:4505
29500 msgid "guestfs_luks_format"
29501 msgstr ""
29502
29503 #. type: verbatim
29504 #: ../src/guestfs-actions.pod:4507
29505 #, no-wrap
29506 msgid ""
29507 " int\n"
29508 " guestfs_luks_format (guestfs_h *g,\n"
29509 "                      const char *device,\n"
29510 "                      const char *key,\n"
29511 "                      int keyslot);\n"
29512 "\n"
29513 msgstr ""
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:4526
29517 msgid "guestfs_luks_format_cipher"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:4528
29522 #, no-wrap
29523 msgid ""
29524 " int\n"
29525 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29526 "                             const char *device,\n"
29527 "                             const char *key,\n"
29528 "                             int keyslot,\n"
29529 "                             const char *cipher);\n"
29530 "\n"
29531 msgstr ""
29532
29533 #. type: textblock
29534 #: ../src/guestfs-actions.pod:4535
29535 msgid ""
29536 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29537 "set the C<cipher> used."
29538 msgstr ""
29539
29540 #. type: =head2
29541 #: ../src/guestfs-actions.pod:4546
29542 msgid "guestfs_luks_kill_slot"
29543 msgstr ""
29544
29545 #. type: verbatim
29546 #: ../src/guestfs-actions.pod:4548
29547 #, no-wrap
29548 msgid ""
29549 " int\n"
29550 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29551 "                         const char *device,\n"
29552 "                         const char *key,\n"
29553 "                         int keyslot);\n"
29554 "\n"
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:4566
29559 msgid "guestfs_luks_open"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:4568
29564 #, no-wrap
29565 msgid ""
29566 " int\n"
29567 " guestfs_luks_open (guestfs_h *g,\n"
29568 "                    const char *device,\n"
29569 "                    const char *key,\n"
29570 "                    const char *mapname);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:4586
29576 msgid ""
29577 "If this block device contains LVM volume groups, then calling "
29578 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29579 "visible."
29580 msgstr ""
29581
29582 #. type: textblock
29583 #: ../src/guestfs-actions.pod:4590
29584 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29585 msgstr ""
29586
29587 #. type: =head2
29588 #: ../src/guestfs-actions.pod:4601
29589 msgid "guestfs_luks_open_ro"
29590 msgstr ""
29591
29592 #. type: verbatim
29593 #: ../src/guestfs-actions.pod:4603
29594 #, no-wrap
29595 msgid ""
29596 " int\n"
29597 " guestfs_luks_open_ro (guestfs_h *g,\n"
29598 "                       const char *device,\n"
29599 "                       const char *key,\n"
29600 "                       const char *mapname);\n"
29601 "\n"
29602 msgstr ""
29603
29604 #. type: textblock
29605 #: ../src/guestfs-actions.pod:4609
29606 msgid ""
29607 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29608 "created."
29609 msgstr ""
29610
29611 #. type: =head2
29612 #: ../src/guestfs-actions.pod:4620
29613 msgid "guestfs_lvcreate"
29614 msgstr ""
29615
29616 #. type: verbatim
29617 #: ../src/guestfs-actions.pod:4622
29618 #, no-wrap
29619 msgid ""
29620 " int\n"
29621 " guestfs_lvcreate (guestfs_h *g,\n"
29622 "                   const char *logvol,\n"
29623 "                   const char *volgroup,\n"
29624 "                   int mbytes);\n"
29625 "\n"
29626 msgstr ""
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:4635
29630 msgid "guestfs_lvm_canonical_lv_name"
29631 msgstr ""
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:4637
29635 #, no-wrap
29636 msgid ""
29637 " char *\n"
29638 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29639 "                                const char *lvname);\n"
29640 "\n"
29641 msgstr ""
29642
29643 #. type: textblock
29644 #: ../src/guestfs-actions.pod:4648
29645 msgid "See also C<guestfs_is_lv>."
29646 msgstr ""
29647
29648 #. type: textblock
29649 #: ../src/guestfs-actions.pod:4653
29650 msgid "(Added in 1.5.24)"
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:4655
29655 msgid "guestfs_lvm_clear_filter"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:4657
29660 #, no-wrap
29661 msgid ""
29662 " int\n"
29663 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29664 "\n"
29665 msgstr ""
29666
29667 #. type: textblock
29668 #: ../src/guestfs-actions.pod:4660
29669 msgid ""
29670 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29671 "see every block device."
29672 msgstr ""
29673
29674 #. type: =head2
29675 #: ../src/guestfs-actions.pod:4670
29676 msgid "guestfs_lvm_remove_all"
29677 msgstr ""
29678
29679 #. type: verbatim
29680 #: ../src/guestfs-actions.pod:4672
29681 #, no-wrap
29682 msgid ""
29683 " int\n"
29684 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29685 "\n"
29686 msgstr ""
29687
29688 #. type: =head2
29689 #: ../src/guestfs-actions.pod:4682
29690 msgid "guestfs_lvm_set_filter"
29691 msgstr ""
29692
29693 #. type: verbatim
29694 #: ../src/guestfs-actions.pod:4684
29695 #, no-wrap
29696 msgid ""
29697 " int\n"
29698 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29699 "                         char *const *devices);\n"
29700 "\n"
29701 msgstr ""
29702
29703 #. type: =head2
29704 #: ../src/guestfs-actions.pod:4715
29705 msgid "guestfs_lvremove"
29706 msgstr ""
29707
29708 #. type: verbatim
29709 #: ../src/guestfs-actions.pod:4717
29710 #, no-wrap
29711 msgid ""
29712 " int\n"
29713 " guestfs_lvremove (guestfs_h *g,\n"
29714 "                   const char *device);\n"
29715 "\n"
29716 msgstr ""
29717
29718 #. type: textblock
29719 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
29720 #: ../src/guestfs-actions.pod:7977
29721 msgid "(Added in 1.0.13)"
29722 msgstr ""
29723
29724 #. type: =head2
29725 #: ../src/guestfs-actions.pod:4731
29726 msgid "guestfs_lvrename"
29727 msgstr ""
29728
29729 #. type: verbatim
29730 #: ../src/guestfs-actions.pod:4733
29731 #, no-wrap
29732 msgid ""
29733 " int\n"
29734 " guestfs_lvrename (guestfs_h *g,\n"
29735 "                   const char *logvol,\n"
29736 "                   const char *newlogvol);\n"
29737 "\n"
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
29742 msgid "(Added in 1.0.83)"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:4744
29747 msgid "guestfs_lvresize"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:4746
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_lvresize (guestfs_h *g,\n"
29756 "                   const char *device,\n"
29757 "                   int mbytes);\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: =head2
29762 #: ../src/guestfs-actions.pod:4759
29763 msgid "guestfs_lvresize_free"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../src/guestfs-actions.pod:4761
29768 #, no-wrap
29769 msgid ""
29770 " int\n"
29771 " guestfs_lvresize_free (guestfs_h *g,\n"
29772 "                        const char *lv,\n"
29773 "                        int percent);\n"
29774 "\n"
29775 msgstr ""
29776
29777 #. type: textblock
29778 #: ../src/guestfs-actions.pod:4774
29779 msgid "(Added in 1.3.3)"
29780 msgstr ""
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:4776
29784 msgid "guestfs_lvs"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:4778
29789 #, no-wrap
29790 msgid ""
29791 " char **\n"
29792 " guestfs_lvs (guestfs_h *g);\n"
29793 "\n"
29794 msgstr ""
29795
29796 #. type: textblock
29797 #: ../src/guestfs-actions.pod:4787
29798 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29799 msgstr ""
29800
29801 #. type: =head2
29802 #: ../src/guestfs-actions.pod:4795
29803 msgid "guestfs_lvs_full"
29804 msgstr ""
29805
29806 #. type: verbatim
29807 #: ../src/guestfs-actions.pod:4797
29808 #, no-wrap
29809 msgid ""
29810 " struct guestfs_lvm_lv_list *\n"
29811 " guestfs_lvs_full (guestfs_h *g);\n"
29812 "\n"
29813 msgstr ""
29814
29815 #. type: textblock
29816 #: ../src/guestfs-actions.pod:4803
29817 msgid ""
29818 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29819 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29820 msgstr ""
29821
29822 #. type: =head2
29823 #: ../src/guestfs-actions.pod:4809
29824 msgid "guestfs_lvuuid"
29825 msgstr ""
29826
29827 #. type: verbatim
29828 #: ../src/guestfs-actions.pod:4811
29829 #, no-wrap
29830 msgid ""
29831 " char *\n"
29832 " guestfs_lvuuid (guestfs_h *g,\n"
29833 "                 const char *device);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: =head2
29838 #: ../src/guestfs-actions.pod:4822
29839 msgid "guestfs_lxattrlist"
29840 msgstr ""
29841
29842 #. type: verbatim
29843 #: ../src/guestfs-actions.pod:4824
29844 #, no-wrap
29845 msgid ""
29846 " struct guestfs_xattr_list *\n"
29847 " guestfs_lxattrlist (guestfs_h *g,\n"
29848 "                     const char *path,\n"
29849 "                     char *const *names);\n"
29850 "\n"
29851 msgstr ""
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:4843
29855 msgid ""
29856 "This call is intended for programs that want to efficiently list a directory "
29857 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29858 "a similarly efficient call for getting standard stats.  Very long directory "
29859 "listings might cause the protocol message size to be exceeded, causing this "
29860 "call to fail.  The caller must split up such requests into smaller groups of "
29861 "names."
29862 msgstr ""
29863
29864 #. type: =head2
29865 #: ../src/guestfs-actions.pod:4857
29866 msgid "guestfs_mkdir"
29867 msgstr ""
29868
29869 #. type: verbatim
29870 #: ../src/guestfs-actions.pod:4859
29871 #, no-wrap
29872 msgid ""
29873 " int\n"
29874 " guestfs_mkdir (guestfs_h *g,\n"
29875 "                const char *path);\n"
29876 "\n"
29877 msgstr ""
29878
29879 #. type: =head2
29880 #: ../src/guestfs-actions.pod:4869
29881 msgid "guestfs_mkdir_mode"
29882 msgstr ""
29883
29884 #. type: verbatim
29885 #: ../src/guestfs-actions.pod:4871
29886 #, no-wrap
29887 msgid ""
29888 " int\n"
29889 " guestfs_mkdir_mode (guestfs_h *g,\n"
29890 "                     const char *path,\n"
29891 "                     int mode);\n"
29892 "\n"
29893 msgstr ""
29894
29895 #. type: textblock
29896 #: ../src/guestfs-actions.pod:4883
29897 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29898 msgstr ""
29899
29900 #. type: =head2
29901 #: ../src/guestfs-actions.pod:4889
29902 msgid "guestfs_mkdir_p"
29903 msgstr ""
29904
29905 #. type: verbatim
29906 #: ../src/guestfs-actions.pod:4891
29907 #, no-wrap
29908 msgid ""
29909 " int\n"
29910 " guestfs_mkdir_p (guestfs_h *g,\n"
29911 "                  const char *path);\n"
29912 "\n"
29913 msgstr ""
29914
29915 #. type: =head2
29916 #: ../src/guestfs-actions.pod:4902
29917 msgid "guestfs_mkdtemp"
29918 msgstr ""
29919
29920 #. type: verbatim
29921 #: ../src/guestfs-actions.pod:4904
29922 #, no-wrap
29923 msgid ""
29924 " char *\n"
29925 " guestfs_mkdtemp (guestfs_h *g,\n"
29926 "                  const char *template);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:4932
29932 msgid "guestfs_mke2fs_J"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:4934
29937 #, no-wrap
29938 msgid ""
29939 " int\n"
29940 " guestfs_mke2fs_J (guestfs_h *g,\n"
29941 "                   const char *fstype,\n"
29942 "                   int blocksize,\n"
29943 "                   const char *device,\n"
29944 "                   const char *journal);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: textblock
29949 #: ../src/guestfs-actions.pod:4947
29950 msgid "See also C<guestfs_mke2journal>."
29951 msgstr ""
29952
29953 #. type: textblock
29954 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
29955 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
29956 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
29957 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
29958 msgid "(Added in 1.0.68)"
29959 msgstr ""
29960
29961 #. type: =head2
29962 #: ../src/guestfs-actions.pod:4953
29963 msgid "guestfs_mke2fs_JL"
29964 msgstr ""
29965
29966 #. type: verbatim
29967 #: ../src/guestfs-actions.pod:4955
29968 #, no-wrap
29969 msgid ""
29970 " int\n"
29971 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29972 "                    const char *fstype,\n"
29973 "                    int blocksize,\n"
29974 "                    const char *device,\n"
29975 "                    const char *label);\n"
29976 "\n"
29977 msgstr ""
29978
29979 #. type: textblock
29980 #: ../src/guestfs-actions.pod:4965
29981 msgid "See also C<guestfs_mke2journal_L>."
29982 msgstr ""
29983
29984 #. type: =head2
29985 #: ../src/guestfs-actions.pod:4971
29986 msgid "guestfs_mke2fs_JU"
29987 msgstr ""
29988
29989 #. type: verbatim
29990 #: ../src/guestfs-actions.pod:4973
29991 #, no-wrap
29992 msgid ""
29993 " int\n"
29994 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29995 "                    const char *fstype,\n"
29996 "                    int blocksize,\n"
29997 "                    const char *device,\n"
29998 "                    const char *uuid);\n"
29999 "\n"
30000 msgstr ""
30001
30002 #. type: textblock
30003 #: ../src/guestfs-actions.pod:4983
30004 msgid "See also C<guestfs_mke2journal_U>."
30005 msgstr ""
30006
30007 #. type: =head2
30008 #: ../src/guestfs-actions.pod:4989
30009 msgid "guestfs_mke2journal"
30010 msgstr ""
30011
30012 #. type: verbatim
30013 #: ../src/guestfs-actions.pod:4991
30014 #, no-wrap
30015 msgid ""
30016 " int\n"
30017 " guestfs_mke2journal (guestfs_h *g,\n"
30018 "                      int blocksize,\n"
30019 "                      const char *device);\n"
30020 "\n"
30021 msgstr ""
30022
30023 #. type: =head2
30024 #: ../src/guestfs-actions.pod:5005
30025 msgid "guestfs_mke2journal_L"
30026 msgstr ""
30027
30028 #. type: verbatim
30029 #: ../src/guestfs-actions.pod:5007
30030 #, no-wrap
30031 msgid ""
30032 " int\n"
30033 " guestfs_mke2journal_L (guestfs_h *g,\n"
30034 "                        int blocksize,\n"
30035 "                        const char *label,\n"
30036 "                        const char *device);\n"
30037 "\n"
30038 msgstr ""
30039
30040 #. type: =head2
30041 #: ../src/guestfs-actions.pod:5019
30042 msgid "guestfs_mke2journal_U"
30043 msgstr ""
30044
30045 #. type: verbatim
30046 #: ../src/guestfs-actions.pod:5021
30047 #, no-wrap
30048 msgid ""
30049 " int\n"
30050 " guestfs_mke2journal_U (guestfs_h *g,\n"
30051 "                        int blocksize,\n"
30052 "                        const char *uuid,\n"
30053 "                        const char *device);\n"
30054 "\n"
30055 msgstr ""
30056
30057 #. type: =head2
30058 #: ../src/guestfs-actions.pod:5033
30059 msgid "guestfs_mkfifo"
30060 msgstr ""
30061
30062 #. type: verbatim
30063 #: ../src/guestfs-actions.pod:5035
30064 #, no-wrap
30065 msgid ""
30066 " int\n"
30067 " guestfs_mkfifo (guestfs_h *g,\n"
30068 "                 int mode,\n"
30069 "                 const char *path);\n"
30070 "\n"
30071 msgstr ""
30072
30073 #. type: textblock
30074 #: ../src/guestfs-actions.pod:5040
30075 msgid ""
30076 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30077 "is just a convenient wrapper around C<guestfs_mknod>."
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:5050
30082 msgid "guestfs_mkfs"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:5052
30087 #, no-wrap
30088 msgid ""
30089 " int\n"
30090 " guestfs_mkfs (guestfs_h *g,\n"
30091 "               const char *fstype,\n"
30092 "               const char *device);\n"
30093 "\n"
30094 msgstr ""
30095
30096 #. type: =head2
30097 #: ../src/guestfs-actions.pod:5065
30098 msgid "guestfs_mkfs_b"
30099 msgstr ""
30100
30101 #. type: verbatim
30102 #: ../src/guestfs-actions.pod:5067
30103 #, no-wrap
30104 msgid ""
30105 " int\n"
30106 " guestfs_mkfs_b (guestfs_h *g,\n"
30107 "                 const char *fstype,\n"
30108 "                 int blocksize,\n"
30109 "                 const char *device);\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../src/guestfs-actions.pod:5073
30115 msgid ""
30116 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30117 "call instead."
30118 msgstr ""
30119
30120 #. type: textblock
30121 #: ../src/guestfs-actions.pod:5080
30122 msgid ""
30123 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30124 "block size of the resulting filesystem.  Supported block sizes depend on the "
30125 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30126 msgstr ""
30127
30128 #. type: =head2
30129 #: ../src/guestfs-actions.pod:5092
30130 msgid "guestfs_mkfs_opts"
30131 msgstr ""
30132
30133 #. type: verbatim
30134 #: ../src/guestfs-actions.pod:5094
30135 #, no-wrap
30136 msgid ""
30137 " int\n"
30138 " guestfs_mkfs_opts (guestfs_h *g,\n"
30139 "                    const char *fstype,\n"
30140 "                    const char *device,\n"
30141 "                    ...);\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: verbatim
30146 #: ../src/guestfs-actions.pod:5105
30147 #, no-wrap
30148 msgid ""
30149 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30150 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30151 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30152 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30153 "\n"
30154 msgstr ""
30155
30156 #. type: textblock
30157 #: ../src/guestfs-actions.pod:5153
30158 msgid "(Added in 1.7.19)"
30159 msgstr ""
30160
30161 #. type: =head2
30162 #: ../src/guestfs-actions.pod:5155
30163 msgid "guestfs_mkfs_opts_va"
30164 msgstr ""
30165
30166 #. type: verbatim
30167 #: ../src/guestfs-actions.pod:5157
30168 #, no-wrap
30169 msgid ""
30170 " int\n"
30171 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30172 "                       const char *fstype,\n"
30173 "                       const char *device,\n"
30174 "                       va_list args);\n"
30175 "\n"
30176 msgstr ""
30177
30178 #. type: textblock
30179 #: ../src/guestfs-actions.pod:5163
30180 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30181 msgstr ""
30182
30183 #. type: =head2
30184 #: ../src/guestfs-actions.pod:5167
30185 msgid "guestfs_mkfs_opts_argv"
30186 msgstr ""
30187
30188 #. type: verbatim
30189 #: ../src/guestfs-actions.pod:5169
30190 #, no-wrap
30191 msgid ""
30192 " int\n"
30193 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30194 "                         const char *fstype,\n"
30195 "                         const char *device,\n"
30196 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30197 "\n"
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../src/guestfs-actions.pod:5175
30202 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30203 msgstr ""
30204
30205 #. type: =head2
30206 #: ../src/guestfs-actions.pod:5179
30207 msgid "guestfs_mkmountpoint"
30208 msgstr ""
30209
30210 #. type: verbatim
30211 #: ../src/guestfs-actions.pod:5181
30212 #, no-wrap
30213 msgid ""
30214 " int\n"
30215 " guestfs_mkmountpoint (guestfs_h *g,\n"
30216 "                       const char *exemptpath);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:5185
30222 msgid ""
30223 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30224 "that can be used to create extra mountpoints before mounting the first "
30225 "filesystem."
30226 msgstr ""
30227
30228 #. type: textblock
30229 #: ../src/guestfs-actions.pod:5209
30230 msgid ""
30231 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30232 "may get unexpected errors if you try to mix these calls.  It is safest to "
30233 "manually unmount filesystems and remove mountpoints after use."
30234 msgstr ""
30235
30236 #. type: textblock
30237 #: ../src/guestfs-actions.pod:5213
30238 msgid ""
30239 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30240 "first, so for this to work for manual mountpoints, you must ensure that the "
30241 "innermost mountpoints have the longest pathnames, as in the example code "
30242 "above."
30243 msgstr ""
30244
30245 #. type: textblock
30246 #: ../src/guestfs-actions.pod:5220
30247 msgid ""
30248 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30249 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30250 "can also trigger these issues."
30251 msgstr ""
30252
30253 #. type: textblock
30254 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
30255 #: ../src/guestfs-actions.pod:6559
30256 msgid "(Added in 1.0.62)"
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../src/guestfs-actions.pod:5228
30261 msgid "guestfs_mknod"
30262 msgstr ""
30263
30264 #. type: verbatim
30265 #: ../src/guestfs-actions.pod:5230
30266 #, no-wrap
30267 msgid ""
30268 " int\n"
30269 " guestfs_mknod (guestfs_h *g,\n"
30270 "                int mode,\n"
30271 "                int devmajor,\n"
30272 "                int devminor,\n"
30273 "                const char *path);\n"
30274 "\n"
30275 msgstr ""
30276
30277 #. type: textblock
30278 #: ../src/guestfs-actions.pod:5245
30279 msgid ""
30280 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30281 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30282 "regular file).  These constants are available in the standard Linux header "
30283 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30284 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30285 "the appropriate constant for you."
30286 msgstr ""
30287
30288 #. type: =head2
30289 #: ../src/guestfs-actions.pod:5259
30290 msgid "guestfs_mknod_b"
30291 msgstr ""
30292
30293 #. type: verbatim
30294 #: ../src/guestfs-actions.pod:5261
30295 #, no-wrap
30296 msgid ""
30297 " int\n"
30298 " guestfs_mknod_b (guestfs_h *g,\n"
30299 "                  int mode,\n"
30300 "                  int devmajor,\n"
30301 "                  int devminor,\n"
30302 "                  const char *path);\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: textblock
30307 #: ../src/guestfs-actions.pod:5268
30308 msgid ""
30309 "This call creates a block device node called C<path> with mode C<mode> and "
30310 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30311 "wrapper around C<guestfs_mknod>."
30312 msgstr ""
30313
30314 #. type: =head2
30315 #: ../src/guestfs-actions.pod:5278
30316 msgid "guestfs_mknod_c"
30317 msgstr ""
30318
30319 #. type: verbatim
30320 #: ../src/guestfs-actions.pod:5280
30321 #, no-wrap
30322 msgid ""
30323 " int\n"
30324 " guestfs_mknod_c (guestfs_h *g,\n"
30325 "                  int mode,\n"
30326 "                  int devmajor,\n"
30327 "                  int devminor,\n"
30328 "                  const char *path);\n"
30329 "\n"
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../src/guestfs-actions.pod:5287
30334 msgid ""
30335 "This call creates a char device node called C<path> with mode C<mode> and "
30336 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30337 "wrapper around C<guestfs_mknod>."
30338 msgstr ""
30339
30340 #. type: =head2
30341 #: ../src/guestfs-actions.pod:5297
30342 msgid "guestfs_mkswap"
30343 msgstr ""
30344
30345 #. type: verbatim
30346 #: ../src/guestfs-actions.pod:5299
30347 #, no-wrap
30348 msgid ""
30349 " int\n"
30350 " guestfs_mkswap (guestfs_h *g,\n"
30351 "                 const char *device);\n"
30352 "\n"
30353 msgstr ""
30354
30355 #. type: =head2
30356 #: ../src/guestfs-actions.pod:5309
30357 msgid "guestfs_mkswap_L"
30358 msgstr ""
30359
30360 #. type: verbatim
30361 #: ../src/guestfs-actions.pod:5311
30362 #, no-wrap
30363 msgid ""
30364 " int\n"
30365 " guestfs_mkswap_L (guestfs_h *g,\n"
30366 "                   const char *label,\n"
30367 "                   const char *device);\n"
30368 "\n"
30369 msgstr ""
30370
30371 #. type: =head2
30372 #: ../src/guestfs-actions.pod:5326
30373 msgid "guestfs_mkswap_U"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs-actions.pod:5328
30378 #, no-wrap
30379 msgid ""
30380 " int\n"
30381 " guestfs_mkswap_U (guestfs_h *g,\n"
30382 "                   const char *uuid,\n"
30383 "                   const char *device);\n"
30384 "\n"
30385 msgstr ""
30386
30387 #. type: =head2
30388 #: ../src/guestfs-actions.pod:5339
30389 msgid "guestfs_mkswap_file"
30390 msgstr ""
30391
30392 #. type: verbatim
30393 #: ../src/guestfs-actions.pod:5341
30394 #, no-wrap
30395 msgid ""
30396 " int\n"
30397 " guestfs_mkswap_file (guestfs_h *g,\n"
30398 "                      const char *path);\n"
30399 "\n"
30400 msgstr ""
30401
30402 #. type: textblock
30403 #: ../src/guestfs-actions.pod:5347
30404 msgid ""
30405 "This command just writes a swap file signature to an existing file.  To "
30406 "create the file itself, use something like C<guestfs_fallocate>."
30407 msgstr ""
30408
30409 #. type: =head2
30410 #: ../src/guestfs-actions.pod:5354
30411 msgid "guestfs_modprobe"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../src/guestfs-actions.pod:5356
30416 #, no-wrap
30417 msgid ""
30418 " int\n"
30419 " guestfs_modprobe (guestfs_h *g,\n"
30420 "                   const char *modulename);\n"
30421 "\n"
30422 msgstr ""
30423
30424 #. type: =head2
30425 #: ../src/guestfs-actions.pod:5369
30426 msgid "guestfs_mount"
30427 msgstr ""
30428
30429 #. type: verbatim
30430 #: ../src/guestfs-actions.pod:5371
30431 #, no-wrap
30432 msgid ""
30433 " int\n"
30434 " guestfs_mount (guestfs_h *g,\n"
30435 "                const char *device,\n"
30436 "                const char *mountpoint);\n"
30437 "\n"
30438 msgstr ""
30439
30440 #. type: textblock
30441 #: ../src/guestfs-actions.pod:5390
30442 msgid ""
30443 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30444 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30445 "problems for users.  If your program might need to work with older versions "
30446 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30447 "for the first parameter if you don't want any options)."
30448 msgstr ""
30449
30450 #. type: =head2
30451 #: ../src/guestfs-actions.pod:5401
30452 msgid "guestfs_mount_9p"
30453 msgstr ""
30454
30455 #. type: verbatim
30456 #: ../src/guestfs-actions.pod:5403
30457 #, no-wrap
30458 msgid ""
30459 " int\n"
30460 " guestfs_mount_9p (guestfs_h *g,\n"
30461 "                   const char *mounttag,\n"
30462 "                   const char *mountpoint,\n"
30463 "                   ...);\n"
30464 "\n"
30465 msgstr ""
30466
30467 #. type: verbatim
30468 #: ../src/guestfs-actions.pod:5414
30469 #, no-wrap
30470 msgid ""
30471 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30472 "\n"
30473 msgstr ""
30474
30475 #. type: =head2
30476 #: ../src/guestfs-actions.pod:5427
30477 msgid "guestfs_mount_9p_va"
30478 msgstr ""
30479
30480 #. type: verbatim
30481 #: ../src/guestfs-actions.pod:5429
30482 #, no-wrap
30483 msgid ""
30484 " int\n"
30485 " guestfs_mount_9p_va (guestfs_h *g,\n"
30486 "                      const char *mounttag,\n"
30487 "                      const char *mountpoint,\n"
30488 "                      va_list args);\n"
30489 "\n"
30490 msgstr ""
30491
30492 #. type: textblock
30493 #: ../src/guestfs-actions.pod:5435
30494 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30495 msgstr ""
30496
30497 #. type: =head2
30498 #: ../src/guestfs-actions.pod:5439
30499 msgid "guestfs_mount_9p_argv"
30500 msgstr ""
30501
30502 #. type: verbatim
30503 #: ../src/guestfs-actions.pod:5441
30504 #, no-wrap
30505 msgid ""
30506 " int\n"
30507 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30508 "                        const char *mounttag,\n"
30509 "                        const char *mountpoint,\n"
30510 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30511 "\n"
30512 msgstr ""
30513
30514 #. type: textblock
30515 #: ../src/guestfs-actions.pod:5447
30516 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30517 msgstr ""
30518
30519 #. type: =head2
30520 #: ../src/guestfs-actions.pod:5451
30521 msgid "guestfs_mount_loop"
30522 msgstr ""
30523
30524 #. type: verbatim
30525 #: ../src/guestfs-actions.pod:5453
30526 #, no-wrap
30527 msgid ""
30528 " int\n"
30529 " guestfs_mount_loop (guestfs_h *g,\n"
30530 "                     const char *file,\n"
30531 "                     const char *mountpoint);\n"
30532 "\n"
30533 msgstr ""
30534
30535 #. type: =head2
30536 #: ../src/guestfs-actions.pod:5466
30537 msgid "guestfs_mount_options"
30538 msgstr ""
30539
30540 #. type: verbatim
30541 #: ../src/guestfs-actions.pod:5468
30542 #, no-wrap
30543 msgid ""
30544 " int\n"
30545 " guestfs_mount_options (guestfs_h *g,\n"
30546 "                        const char *options,\n"
30547 "                        const char *device,\n"
30548 "                        const char *mountpoint);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: textblock
30553 #: ../src/guestfs-actions.pod:5474
30554 msgid ""
30555 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30556 "the mount options as for the L<mount(8)> I<-o> flag."
30557 msgstr ""
30558
30559 #. type: textblock
30560 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
30561 #: ../src/guestfs-actions.pod:5515
30562 msgid "(Added in 1.0.10)"
30563 msgstr ""
30564
30565 #. type: =head2
30566 #: ../src/guestfs-actions.pod:5486
30567 msgid "guestfs_mount_ro"
30568 msgstr ""
30569
30570 #. type: verbatim
30571 #: ../src/guestfs-actions.pod:5488
30572 #, no-wrap
30573 msgid ""
30574 " int\n"
30575 " guestfs_mount_ro (guestfs_h *g,\n"
30576 "                   const char *device,\n"
30577 "                   const char *mountpoint);\n"
30578 "\n"
30579 msgstr ""
30580
30581 #. type: textblock
30582 #: ../src/guestfs-actions.pod:5493
30583 msgid ""
30584 "This is the same as the C<guestfs_mount> command, but it mounts the "
30585 "filesystem with the read-only (I<-o ro>) flag."
30586 msgstr ""
30587
30588 #. type: =head2
30589 #: ../src/guestfs-actions.pod:5500
30590 msgid "guestfs_mount_vfs"
30591 msgstr ""
30592
30593 #. type: verbatim
30594 #: ../src/guestfs-actions.pod:5502
30595 #, no-wrap
30596 msgid ""
30597 " int\n"
30598 " guestfs_mount_vfs (guestfs_h *g,\n"
30599 "                    const char *options,\n"
30600 "                    const char *vfstype,\n"
30601 "                    const char *device,\n"
30602 "                    const char *mountpoint);\n"
30603 "\n"
30604 msgstr ""
30605
30606 #. type: textblock
30607 #: ../src/guestfs-actions.pod:5509
30608 msgid ""
30609 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30610 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30611 "t> flags."
30612 msgstr ""
30613
30614 #. type: =head2
30615 #: ../src/guestfs-actions.pod:5517
30616 msgid "guestfs_mountpoints"
30617 msgstr ""
30618
30619 #. type: verbatim
30620 #: ../src/guestfs-actions.pod:5519
30621 #, no-wrap
30622 msgid ""
30623 " char **\n"
30624 " guestfs_mountpoints (guestfs_h *g);\n"
30625 "\n"
30626 msgstr ""
30627
30628 #. type: textblock
30629 #: ../src/guestfs-actions.pod:5522
30630 msgid ""
30631 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30632 "devices.  This one returns a hash table (map) of device name to directory "
30633 "where the device is mounted."
30634 msgstr ""
30635
30636 #. type: =head2
30637 #: ../src/guestfs-actions.pod:5534
30638 msgid "guestfs_mounts"
30639 msgstr ""
30640
30641 #. type: verbatim
30642 #: ../src/guestfs-actions.pod:5536
30643 #, no-wrap
30644 msgid ""
30645 " char **\n"
30646 " guestfs_mounts (guestfs_h *g);\n"
30647 "\n"
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../src/guestfs-actions.pod:5544
30652 msgid "See also: C<guestfs_mountpoints>"
30653 msgstr ""
30654
30655 #. type: =head2
30656 #: ../src/guestfs-actions.pod:5552
30657 msgid "guestfs_mv"
30658 msgstr ""
30659
30660 #. type: verbatim
30661 #: ../src/guestfs-actions.pod:5554
30662 #, no-wrap
30663 msgid ""
30664 " int\n"
30665 " guestfs_mv (guestfs_h *g,\n"
30666 "             const char *src,\n"
30667 "             const char *dest);\n"
30668 "\n"
30669 msgstr ""
30670
30671 #. type: =head2
30672 #: ../src/guestfs-actions.pod:5566
30673 msgid "guestfs_ntfs_3g_probe"
30674 msgstr ""
30675
30676 #. type: verbatim
30677 #: ../src/guestfs-actions.pod:5568
30678 #, no-wrap
30679 msgid ""
30680 " int\n"
30681 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30682 "                        int rw,\n"
30683 "                        const char *device);\n"
30684 "\n"
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:5587
30689 msgid "(Added in 1.0.43)"
30690 msgstr ""
30691
30692 #. type: =head2
30693 #: ../src/guestfs-actions.pod:5589
30694 msgid "guestfs_ntfsresize"
30695 msgstr ""
30696
30697 #. type: verbatim
30698 #: ../src/guestfs-actions.pod:5591
30699 #, no-wrap
30700 msgid ""
30701 " int\n"
30702 " guestfs_ntfsresize (guestfs_h *g,\n"
30703 "                     const char *device);\n"
30704 "\n"
30705 msgstr ""
30706
30707 #. type: textblock
30708 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
30709 msgid ""
30710 "I<This function is deprecated.> In new code, use the L</"
30711 "guestfs_ntfsresize_opts> call instead."
30712 msgstr ""
30713
30714 #. type: =head2
30715 #: ../src/guestfs-actions.pod:5619
30716 msgid "guestfs_ntfsresize_opts"
30717 msgstr ""
30718
30719 #. type: verbatim
30720 #: ../src/guestfs-actions.pod:5621
30721 #, no-wrap
30722 msgid ""
30723 " int\n"
30724 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30725 "                          const char *device,\n"
30726 "                          ...);\n"
30727 "\n"
30728 msgstr ""
30729
30730 #. type: verbatim
30731 #: ../src/guestfs-actions.pod:5631
30732 #, no-wrap
30733 msgid ""
30734 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30735 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30736 "\n"
30737 msgstr ""
30738
30739 #. type: textblock
30740 #: ../src/guestfs-actions.pod:5651
30741 msgid ""
30742 "After the resize operation, the filesystem is always marked as requiring a "
30743 "consistency check (for safety).  You have to boot into Windows to perform "
30744 "this check and clear this condition.  If you I<don't> set the C<force> "
30745 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30746 "times on a single filesystem without booting into Windows between each "
30747 "resize."
30748 msgstr ""
30749
30750 #. type: =head2
30751 #: ../src/guestfs-actions.pod:5666
30752 msgid "guestfs_ntfsresize_opts_va"
30753 msgstr ""
30754
30755 #. type: verbatim
30756 #: ../src/guestfs-actions.pod:5668
30757 #, no-wrap
30758 msgid ""
30759 " int\n"
30760 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30761 "                             const char *device,\n"
30762 "                             va_list args);\n"
30763 "\n"
30764 msgstr ""
30765
30766 #. type: textblock
30767 #: ../src/guestfs-actions.pod:5673
30768 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30769 msgstr ""
30770
30771 #. type: =head2
30772 #: ../src/guestfs-actions.pod:5677
30773 msgid "guestfs_ntfsresize_opts_argv"
30774 msgstr ""
30775
30776 #. type: verbatim
30777 #: ../src/guestfs-actions.pod:5679
30778 #, no-wrap
30779 msgid ""
30780 " int\n"
30781 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30782 "                               const char *device,\n"
30783 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30784 "\n"
30785 msgstr ""
30786
30787 #. type: textblock
30788 #: ../src/guestfs-actions.pod:5684
30789 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30790 msgstr ""
30791
30792 #. type: =head2
30793 #: ../src/guestfs-actions.pod:5688
30794 msgid "guestfs_ntfsresize_size"
30795 msgstr ""
30796
30797 #. type: verbatim
30798 #: ../src/guestfs-actions.pod:5690
30799 #, no-wrap
30800 msgid ""
30801 " int\n"
30802 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30803 "                          const char *device,\n"
30804 "                          int64_t size);\n"
30805 "\n"
30806 msgstr ""
30807
30808 #. type: textblock
30809 #: ../src/guestfs-actions.pod:5702
30810 msgid ""
30811 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30812 "to specify the new size (in bytes) explicitly."
30813 msgstr ""
30814
30815 #. type: textblock
30816 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
30817 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
30818 #: ../src/guestfs-actions.pod:8134
30819 msgid "(Added in 1.3.14)"
30820 msgstr ""
30821
30822 #. type: =head2
30823 #: ../src/guestfs-actions.pod:5709
30824 msgid "guestfs_part_add"
30825 msgstr ""
30826
30827 #. type: verbatim
30828 #: ../src/guestfs-actions.pod:5711
30829 #, no-wrap
30830 msgid ""
30831 " int\n"
30832 " guestfs_part_add (guestfs_h *g,\n"
30833 "                   const char *device,\n"
30834 "                   const char *prlogex,\n"
30835 "                   int64_t startsect,\n"
30836 "                   int64_t endsect);\n"
30837 "\n"
30838 msgstr ""
30839
30840 #. type: textblock
30841 #: ../src/guestfs-actions.pod:5718
30842 msgid ""
30843 "This command adds a partition to C<device>.  If there is no partition table "
30844 "on the device, call C<guestfs_part_init> first."
30845 msgstr ""
30846
30847 #. type: textblock
30848 #: ../src/guestfs-actions.pod:5730
30849 msgid ""
30850 "Creating a partition which covers the whole disk is not so easy.  Use "
30851 "C<guestfs_part_disk> to do that."
30852 msgstr ""
30853
30854 #. type: textblock
30855 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
30856 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
30857 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
30858 #: ../src/guestfs-actions.pod:6004
30859 msgid "(Added in 1.0.78)"
30860 msgstr ""
30861
30862 #. type: =head2
30863 #: ../src/guestfs-actions.pod:5737
30864 msgid "guestfs_part_del"
30865 msgstr ""
30866
30867 #. type: verbatim
30868 #: ../src/guestfs-actions.pod:5739
30869 #, no-wrap
30870 msgid ""
30871 " int\n"
30872 " guestfs_part_del (guestfs_h *g,\n"
30873 "                   const char *device,\n"
30874 "                   int partnum);\n"
30875 "\n"
30876 msgstr ""
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:5754
30880 msgid "guestfs_part_disk"
30881 msgstr ""
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:5756
30885 #, no-wrap
30886 msgid ""
30887 " int\n"
30888 " guestfs_part_disk (guestfs_h *g,\n"
30889 "                    const char *device,\n"
30890 "                    const char *parttype);\n"
30891 "\n"
30892 msgstr ""
30893
30894 #. type: textblock
30895 #: ../src/guestfs-actions.pod:5761
30896 msgid ""
30897 "This command is simply a combination of C<guestfs_part_init> followed by "
30898 "C<guestfs_part_add> to create a single primary partition covering the whole "
30899 "disk."
30900 msgstr ""
30901
30902 #. type: textblock
30903 #: ../src/guestfs-actions.pod:5765
30904 msgid ""
30905 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30906 "possible values are described in C<guestfs_part_init>."
30907 msgstr ""
30908
30909 #. type: =head2
30910 #: ../src/guestfs-actions.pod:5772
30911 msgid "guestfs_part_get_bootable"
30912 msgstr ""
30913
30914 #. type: verbatim
30915 #: ../src/guestfs-actions.pod:5774
30916 #, no-wrap
30917 msgid ""
30918 " int\n"
30919 " guestfs_part_get_bootable (guestfs_h *g,\n"
30920 "                            const char *device,\n"
30921 "                            int partnum);\n"
30922 "\n"
30923 msgstr ""
30924
30925 #. type: textblock
30926 #: ../src/guestfs-actions.pod:5782
30927 msgid "See also C<guestfs_part_set_bootable>."
30928 msgstr ""
30929
30930 #. type: =head2
30931 #: ../src/guestfs-actions.pod:5788
30932 msgid "guestfs_part_get_mbr_id"
30933 msgstr ""
30934
30935 #. type: verbatim
30936 #: ../src/guestfs-actions.pod:5790
30937 #, no-wrap
30938 msgid ""
30939 " int\n"
30940 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30941 "                          const char *device,\n"
30942 "                          int partnum);\n"
30943 "\n"
30944 msgstr ""
30945
30946 #. type: textblock
30947 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
30948 msgid ""
30949 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30950 "undefined results for other partition table types (see "
30951 "C<guestfs_part_get_parttype>)."
30952 msgstr ""
30953
30954 #. type: =head2
30955 #: ../src/guestfs-actions.pod:5806
30956 msgid "guestfs_part_get_parttype"
30957 msgstr ""
30958
30959 #. type: verbatim
30960 #: ../src/guestfs-actions.pod:5808
30961 #, no-wrap
30962 msgid ""
30963 " char *\n"
30964 " guestfs_part_get_parttype (guestfs_h *g,\n"
30965 "                            const char *device);\n"
30966 "\n"
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../src/guestfs-actions.pod:5815
30971 msgid ""
30972 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30973 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30974 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30975 msgstr ""
30976
30977 #. type: =head2
30978 #: ../src/guestfs-actions.pod:5825
30979 msgid "guestfs_part_init"
30980 msgstr ""
30981
30982 #. type: verbatim
30983 #: ../src/guestfs-actions.pod:5827
30984 #, no-wrap
30985 msgid ""
30986 " int\n"
30987 " guestfs_part_init (guestfs_h *g,\n"
30988 "                    const char *device,\n"
30989 "                    const char *parttype);\n"
30990 "\n"
30991 msgstr ""
30992
30993 #. type: textblock
30994 #: ../src/guestfs-actions.pod:5836
30995 msgid ""
30996 "Initially there are no partitions.  Following this, you should call "
30997 "C<guestfs_part_add> for each partition required."
30998 msgstr ""
30999
31000 #. type: =head2
31001 #: ../src/guestfs-actions.pod:5909
31002 msgid "guestfs_part_list"
31003 msgstr ""
31004
31005 #. type: verbatim
31006 #: ../src/guestfs-actions.pod:5911
31007 #, no-wrap
31008 msgid ""
31009 " struct guestfs_partition_list *\n"
31010 " guestfs_part_list (guestfs_h *g,\n"
31011 "                    const char *device);\n"
31012 "\n"
31013 msgstr ""
31014
31015 #. type: textblock
31016 #: ../src/guestfs-actions.pod:5928
31017 msgid ""
31018 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31019 "the device's sector size, see C<guestfs_blockdev_getss>."
31020 msgstr ""
31021
31022 #. type: textblock
31023 #: ../src/guestfs-actions.pod:5941
31024 msgid ""
31025 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31026 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31027 "use>."
31028 msgstr ""
31029
31030 #. type: =head2
31031 #: ../src/guestfs-actions.pod:5947
31032 msgid "guestfs_part_set_bootable"
31033 msgstr ""
31034
31035 #. type: verbatim
31036 #: ../src/guestfs-actions.pod:5949
31037 #, no-wrap
31038 msgid ""
31039 " int\n"
31040 " guestfs_part_set_bootable (guestfs_h *g,\n"
31041 "                            const char *device,\n"
31042 "                            int partnum,\n"
31043 "                            int bootable);\n"
31044 "\n"
31045 msgstr ""
31046
31047 #. type: =head2
31048 #: ../src/guestfs-actions.pod:5966
31049 msgid "guestfs_part_set_mbr_id"
31050 msgstr ""
31051
31052 #. type: verbatim
31053 #: ../src/guestfs-actions.pod:5968
31054 #, no-wrap
31055 msgid ""
31056 " int\n"
31057 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31058 "                          const char *device,\n"
31059 "                          int partnum,\n"
31060 "                          int idbyte);\n"
31061 "\n"
31062 msgstr ""
31063
31064 #. type: =head2
31065 #: ../src/guestfs-actions.pod:5988
31066 msgid "guestfs_part_set_name"
31067 msgstr ""
31068
31069 #. type: verbatim
31070 #: ../src/guestfs-actions.pod:5990
31071 #, no-wrap
31072 msgid ""
31073 " int\n"
31074 " guestfs_part_set_name (guestfs_h *g,\n"
31075 "                        const char *device,\n"
31076 "                        int partnum,\n"
31077 "                        const char *name);\n"
31078 "\n"
31079 msgstr ""
31080
31081 #. type: =head2
31082 #: ../src/guestfs-actions.pod:6006
31083 msgid "guestfs_part_to_dev"
31084 msgstr ""
31085
31086 #. type: verbatim
31087 #: ../src/guestfs-actions.pod:6008
31088 #, no-wrap
31089 msgid ""
31090 " char *\n"
31091 " guestfs_part_to_dev (guestfs_h *g,\n"
31092 "                      const char *partition);\n"
31093 "\n"
31094 msgstr ""
31095
31096 #. type: textblock
31097 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
31098 msgid ""
31099 "The named partition must exist, for example as a string returned from "
31100 "C<guestfs_list_partitions>."
31101 msgstr ""
31102
31103 #. type: textblock
31104 #: ../src/guestfs-actions.pod:6019
31105 msgid "See also C<guestfs_part_to_partnum>."
31106 msgstr ""
31107
31108 #. type: =head2
31109 #: ../src/guestfs-actions.pod:6026
31110 msgid "guestfs_part_to_partnum"
31111 msgstr ""
31112
31113 #. type: verbatim
31114 #: ../src/guestfs-actions.pod:6028
31115 #, no-wrap
31116 msgid ""
31117 " int\n"
31118 " guestfs_part_to_partnum (guestfs_h *g,\n"
31119 "                          const char *partition);\n"
31120 "\n"
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs-actions.pod:6038
31125 msgid "See also C<guestfs_part_to_dev>."
31126 msgstr ""
31127
31128 #. type: =head2
31129 #: ../src/guestfs-actions.pod:6044
31130 msgid "guestfs_ping_daemon"
31131 msgstr ""
31132
31133 #. type: verbatim
31134 #: ../src/guestfs-actions.pod:6046
31135 #, no-wrap
31136 msgid ""
31137 " int\n"
31138 " guestfs_ping_daemon (guestfs_h *g);\n"
31139 "\n"
31140 msgstr ""
31141
31142 #. type: =head2
31143 #: ../src/guestfs-actions.pod:6058
31144 msgid "guestfs_pread"
31145 msgstr ""
31146
31147 #. type: verbatim
31148 #: ../src/guestfs-actions.pod:6060
31149 #, no-wrap
31150 msgid ""
31151 " char *\n"
31152 " guestfs_pread (guestfs_h *g,\n"
31153 "                const char *path,\n"
31154 "                int count,\n"
31155 "                int64_t offset,\n"
31156 "                size_t *size_r);\n"
31157 "\n"
31158 msgstr ""
31159
31160 #. type: textblock
31161 #: ../src/guestfs-actions.pod:6073
31162 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31163 msgstr ""
31164
31165 #. type: =head2
31166 #: ../src/guestfs-actions.pod:6084
31167 msgid "guestfs_pread_device"
31168 msgstr ""
31169
31170 #. type: verbatim
31171 #: ../src/guestfs-actions.pod:6086
31172 #, no-wrap
31173 msgid ""
31174 " char *\n"
31175 " guestfs_pread_device (guestfs_h *g,\n"
31176 "                       const char *device,\n"
31177 "                       int count,\n"
31178 "                       int64_t offset,\n"
31179 "                       size_t *size_r);\n"
31180 "\n"
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs-actions.pod:6099
31185 msgid "See also C<guestfs_pread>."
31186 msgstr ""
31187
31188 #. type: textblock
31189 #: ../src/guestfs-actions.pod:6108
31190 msgid "(Added in 1.5.21)"
31191 msgstr ""
31192
31193 #. type: =head2
31194 #: ../src/guestfs-actions.pod:6110
31195 msgid "guestfs_pvcreate"
31196 msgstr ""
31197
31198 #. type: verbatim
31199 #: ../src/guestfs-actions.pod:6112
31200 #, no-wrap
31201 msgid ""
31202 " int\n"
31203 " guestfs_pvcreate (guestfs_h *g,\n"
31204 "                   const char *device);\n"
31205 "\n"
31206 msgstr ""
31207
31208 #. type: =head2
31209 #: ../src/guestfs-actions.pod:6124
31210 msgid "guestfs_pvremove"
31211 msgstr ""
31212
31213 #. type: verbatim
31214 #: ../src/guestfs-actions.pod:6126
31215 #, no-wrap
31216 msgid ""
31217 " int\n"
31218 " guestfs_pvremove (guestfs_h *g,\n"
31219 "                   const char *device);\n"
31220 "\n"
31221 msgstr ""
31222
31223 #. type: =head2
31224 #: ../src/guestfs-actions.pod:6141
31225 msgid "guestfs_pvresize"
31226 msgstr ""
31227
31228 #. type: verbatim
31229 #: ../src/guestfs-actions.pod:6143
31230 #, no-wrap
31231 msgid ""
31232 " int\n"
31233 " guestfs_pvresize (guestfs_h *g,\n"
31234 "                   const char *device);\n"
31235 "\n"
31236 msgstr ""
31237
31238 #. type: =head2
31239 #: ../src/guestfs-actions.pod:6154
31240 msgid "guestfs_pvresize_size"
31241 msgstr ""
31242
31243 #. type: verbatim
31244 #: ../src/guestfs-actions.pod:6156
31245 #, no-wrap
31246 msgid ""
31247 " int\n"
31248 " guestfs_pvresize_size (guestfs_h *g,\n"
31249 "                        const char *device,\n"
31250 "                        int64_t size);\n"
31251 "\n"
31252 msgstr ""
31253
31254 #. type: textblock
31255 #: ../src/guestfs-actions.pod:6161
31256 msgid ""
31257 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31258 "specify the new size (in bytes) explicitly."
31259 msgstr ""
31260
31261 #. type: =head2
31262 #: ../src/guestfs-actions.pod:6168
31263 msgid "guestfs_pvs"
31264 msgstr ""
31265
31266 #. type: verbatim
31267 #: ../src/guestfs-actions.pod:6170
31268 #, no-wrap
31269 msgid ""
31270 " char **\n"
31271 " guestfs_pvs (guestfs_h *g);\n"
31272 "\n"
31273 msgstr ""
31274
31275 #. type: textblock
31276 #: ../src/guestfs-actions.pod:6179
31277 msgid "See also C<guestfs_pvs_full>."
31278 msgstr ""
31279
31280 #. type: =head2
31281 #: ../src/guestfs-actions.pod:6187
31282 msgid "guestfs_pvs_full"
31283 msgstr ""
31284
31285 #. type: verbatim
31286 #: ../src/guestfs-actions.pod:6189
31287 #, no-wrap
31288 msgid ""
31289 " struct guestfs_lvm_pv_list *\n"
31290 " guestfs_pvs_full (guestfs_h *g);\n"
31291 "\n"
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs-actions.pod:6195
31296 msgid ""
31297 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31298 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31299 msgstr ""
31300
31301 #. type: =head2
31302 #: ../src/guestfs-actions.pod:6201
31303 msgid "guestfs_pvuuid"
31304 msgstr ""
31305
31306 #. type: verbatim
31307 #: ../src/guestfs-actions.pod:6203
31308 #, no-wrap
31309 msgid ""
31310 " char *\n"
31311 " guestfs_pvuuid (guestfs_h *g,\n"
31312 "                 const char *device);\n"
31313 "\n"
31314 msgstr ""
31315
31316 #. type: =head2
31317 #: ../src/guestfs-actions.pod:6214
31318 msgid "guestfs_pwrite"
31319 msgstr ""
31320
31321 #. type: verbatim
31322 #: ../src/guestfs-actions.pod:6216
31323 #, no-wrap
31324 msgid ""
31325 " int\n"
31326 " guestfs_pwrite (guestfs_h *g,\n"
31327 "                 const char *path,\n"
31328 "                 const char *content,\n"
31329 "                 size_t content_size,\n"
31330 "                 int64_t offset);\n"
31331 "\n"
31332 msgstr ""
31333
31334 #. type: textblock
31335 #: ../src/guestfs-actions.pod:6232
31336 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31337 msgstr ""
31338
31339 #. type: =head2
31340 #: ../src/guestfs-actions.pod:6241
31341 msgid "guestfs_pwrite_device"
31342 msgstr ""
31343
31344 #. type: verbatim
31345 #: ../src/guestfs-actions.pod:6243
31346 #, no-wrap
31347 msgid ""
31348 " int\n"
31349 " guestfs_pwrite_device (guestfs_h *g,\n"
31350 "                        const char *device,\n"
31351 "                        const char *content,\n"
31352 "                        size_t content_size,\n"
31353 "                        int64_t offset);\n"
31354 "\n"
31355 msgstr ""
31356
31357 #. type: textblock
31358 #: ../src/guestfs-actions.pod:6258
31359 msgid "See also C<guestfs_pwrite>."
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs-actions.pod:6265
31364 msgid "(Added in 1.5.20)"
31365 msgstr ""
31366
31367 #. type: =head2
31368 #: ../src/guestfs-actions.pod:6267
31369 msgid "guestfs_read_file"
31370 msgstr ""
31371
31372 #. type: verbatim
31373 #: ../src/guestfs-actions.pod:6269
31374 #, no-wrap
31375 msgid ""
31376 " char *\n"
31377 " guestfs_read_file (guestfs_h *g,\n"
31378 "                    const char *path,\n"
31379 "                    size_t *size_r);\n"
31380 "\n"
31381 msgstr ""
31382
31383 #. type: textblock
31384 #: ../src/guestfs-actions.pod:6277
31385 msgid ""
31386 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31387 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31388 "function is limited in the total size of file that can be handled."
31389 msgstr ""
31390
31391 #. type: textblock
31392 #: ../src/guestfs-actions.pod:6289
31393 msgid "(Added in 1.0.63)"
31394 msgstr ""
31395
31396 #. type: =head2
31397 #: ../src/guestfs-actions.pod:6291
31398 msgid "guestfs_read_lines"
31399 msgstr ""
31400
31401 #. type: verbatim
31402 #: ../src/guestfs-actions.pod:6293
31403 #, no-wrap
31404 msgid ""
31405 " char **\n"
31406 " guestfs_read_lines (guestfs_h *g,\n"
31407 "                     const char *path);\n"
31408 "\n"
31409 msgstr ""
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:6302
31413 msgid ""
31414 "Note that this function cannot correctly handle binary files (specifically, "
31415 "files containing C<\\0> character which is treated as end of line).  For "
31416 "those you need to use the C<guestfs_read_file> function which has a more "
31417 "complex interface."
31418 msgstr ""
31419
31420 #. type: =head2
31421 #: ../src/guestfs-actions.pod:6313
31422 msgid "guestfs_readdir"
31423 msgstr ""
31424
31425 #. type: verbatim
31426 #: ../src/guestfs-actions.pod:6315
31427 #, no-wrap
31428 msgid ""
31429 " struct guestfs_dirent_list *\n"
31430 " guestfs_readdir (guestfs_h *g,\n"
31431 "                  const char *dir);\n"
31432 "\n"
31433 msgstr ""
31434
31435 #. type: textblock
31436 #: ../src/guestfs-actions.pod:6369
31437 msgid ""
31438 "This function is primarily intended for use by programs.  To get a simple "
31439 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31440 "consumption, use C<guestfs_ll>."
31441 msgstr ""
31442
31443 #. type: textblock
31444 #: ../src/guestfs-actions.pod:6373
31445 msgid ""
31446 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31447 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31448 msgstr ""
31449
31450 #. type: =head2
31451 #: ../src/guestfs-actions.pod:6379
31452 msgid "guestfs_readlink"
31453 msgstr ""
31454
31455 #. type: verbatim
31456 #: ../src/guestfs-actions.pod:6381
31457 #, no-wrap
31458 msgid ""
31459 " char *\n"
31460 " guestfs_readlink (guestfs_h *g,\n"
31461 "                   const char *path);\n"
31462 "\n"
31463 msgstr ""
31464
31465 #. type: =head2
31466 #: ../src/guestfs-actions.pod:6392
31467 msgid "guestfs_readlinklist"
31468 msgstr ""
31469
31470 #. type: verbatim
31471 #: ../src/guestfs-actions.pod:6394
31472 #, no-wrap
31473 msgid ""
31474 " char **\n"
31475 " guestfs_readlinklist (guestfs_h *g,\n"
31476 "                       const char *path,\n"
31477 "                       char *const *names);\n"
31478 "\n"
31479 msgstr ""
31480
31481 #. type: =head2
31482 #: ../src/guestfs-actions.pod:6427
31483 msgid "guestfs_realpath"
31484 msgstr ""
31485
31486 #. type: verbatim
31487 #: ../src/guestfs-actions.pod:6429
31488 #, no-wrap
31489 msgid ""
31490 " char *\n"
31491 " guestfs_realpath (guestfs_h *g,\n"
31492 "                   const char *path);\n"
31493 "\n"
31494 msgstr ""
31495
31496 #. type: =head2
31497 #: ../src/guestfs-actions.pod:6441
31498 msgid "guestfs_removexattr"
31499 msgstr ""
31500
31501 #. type: verbatim
31502 #: ../src/guestfs-actions.pod:6443
31503 #, no-wrap
31504 msgid ""
31505 " int\n"
31506 " guestfs_removexattr (guestfs_h *g,\n"
31507 "                      const char *xattr,\n"
31508 "                      const char *path);\n"
31509 "\n"
31510 msgstr ""
31511
31512 #. type: textblock
31513 #: ../src/guestfs-actions.pod:6451
31514 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31515 msgstr ""
31516
31517 #. type: =head2
31518 #: ../src/guestfs-actions.pod:6457
31519 msgid "guestfs_resize2fs"
31520 msgstr ""
31521
31522 #. type: verbatim
31523 #: ../src/guestfs-actions.pod:6459
31524 #, no-wrap
31525 msgid ""
31526 " int\n"
31527 " guestfs_resize2fs (guestfs_h *g,\n"
31528 "                    const char *device);\n"
31529 "\n"
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs-actions.pod:6466
31534 msgid ""
31535 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31536 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31537 "sometimes gives an error about this and sometimes not.  In any case, it is "
31538 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31539 msgstr ""
31540
31541 #. type: =head2
31542 #: ../src/guestfs-actions.pod:6476
31543 msgid "guestfs_resize2fs_M"
31544 msgstr ""
31545
31546 #. type: verbatim
31547 #: ../src/guestfs-actions.pod:6478
31548 #, no-wrap
31549 msgid ""
31550 " int\n"
31551 " guestfs_resize2fs_M (guestfs_h *g,\n"
31552 "                      const char *device);\n"
31553 "\n"
31554 msgstr ""
31555
31556 #. type: textblock
31557 #: ../src/guestfs-actions.pod:6482
31558 msgid ""
31559 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31560 "resized to its minimum size.  This works like the I<-M> option to the "
31561 "C<resize2fs> command."
31562 msgstr ""
31563
31564 #. type: textblock
31565 #: ../src/guestfs-actions.pod:6486
31566 msgid ""
31567 "To get the resulting size of the filesystem you should call "
31568 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31569 "These two numbers, multiplied together, give the resulting size of the "
31570 "minimal filesystem in bytes."
31571 msgstr ""
31572
31573 #. type: =head2
31574 #: ../src/guestfs-actions.pod:6495
31575 msgid "guestfs_resize2fs_size"
31576 msgstr ""
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:6497
31580 #, no-wrap
31581 msgid ""
31582 " int\n"
31583 " guestfs_resize2fs_size (guestfs_h *g,\n"
31584 "                         const char *device,\n"
31585 "                         int64_t size);\n"
31586 "\n"
31587 msgstr ""
31588
31589 #. type: textblock
31590 #: ../src/guestfs-actions.pod:6502
31591 msgid ""
31592 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31593 "to specify the new size (in bytes) explicitly."
31594 msgstr ""
31595
31596 #. type: =head2
31597 #: ../src/guestfs-actions.pod:6509
31598 msgid "guestfs_rm"
31599 msgstr ""
31600
31601 #. type: verbatim
31602 #: ../src/guestfs-actions.pod:6511
31603 #, no-wrap
31604 msgid ""
31605 " int\n"
31606 " guestfs_rm (guestfs_h *g,\n"
31607 "             const char *path);\n"
31608 "\n"
31609 msgstr ""
31610
31611 #. type: =head2
31612 #: ../src/guestfs-actions.pod:6521
31613 msgid "guestfs_rm_rf"
31614 msgstr ""
31615
31616 #. type: verbatim
31617 #: ../src/guestfs-actions.pod:6523
31618 #, no-wrap
31619 msgid ""
31620 " int\n"
31621 " guestfs_rm_rf (guestfs_h *g,\n"
31622 "                const char *path);\n"
31623 "\n"
31624 msgstr ""
31625
31626 #. type: =head2
31627 #: ../src/guestfs-actions.pod:6535
31628 msgid "guestfs_rmdir"
31629 msgstr ""
31630
31631 #. type: verbatim
31632 #: ../src/guestfs-actions.pod:6537
31633 #, no-wrap
31634 msgid ""
31635 " int\n"
31636 " guestfs_rmdir (guestfs_h *g,\n"
31637 "                const char *path);\n"
31638 "\n"
31639 msgstr ""
31640
31641 #. type: =head2
31642 #: ../src/guestfs-actions.pod:6547
31643 msgid "guestfs_rmmountpoint"
31644 msgstr ""
31645
31646 #. type: verbatim
31647 #: ../src/guestfs-actions.pod:6549
31648 #, no-wrap
31649 msgid ""
31650 " int\n"
31651 " guestfs_rmmountpoint (guestfs_h *g,\n"
31652 "                       const char *exemptpath);\n"
31653 "\n"
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs-actions.pod:6553
31658 msgid ""
31659 "This calls removes a mountpoint that was previously created with "
31660 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31661 msgstr ""
31662
31663 #. type: =head2
31664 #: ../src/guestfs-actions.pod:6561
31665 msgid "guestfs_scrub_device"
31666 msgstr ""
31667
31668 #. type: verbatim
31669 #: ../src/guestfs-actions.pod:6563
31670 #, no-wrap
31671 msgid ""
31672 " int\n"
31673 " guestfs_scrub_device (guestfs_h *g,\n"
31674 "                       const char *device);\n"
31675 "\n"
31676 msgstr ""
31677
31678 #. type: textblock
31679 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
31680 #: ../src/guestfs-actions.pod:6612
31681 msgid "(Added in 1.0.52)"
31682 msgstr ""
31683
31684 #. type: =head2
31685 #: ../src/guestfs-actions.pod:6577
31686 msgid "guestfs_scrub_file"
31687 msgstr ""
31688
31689 #. type: verbatim
31690 #: ../src/guestfs-actions.pod:6579
31691 #, no-wrap
31692 msgid ""
31693 " int\n"
31694 " guestfs_scrub_file (guestfs_h *g,\n"
31695 "                     const char *file);\n"
31696 "\n"
31697 msgstr ""
31698
31699 #. type: =head2
31700 #: ../src/guestfs-actions.pod:6595
31701 msgid "guestfs_scrub_freespace"
31702 msgstr ""
31703
31704 #. type: verbatim
31705 #: ../src/guestfs-actions.pod:6597
31706 #, no-wrap
31707 msgid ""
31708 " int\n"
31709 " guestfs_scrub_freespace (guestfs_h *g,\n"
31710 "                          const char *dir);\n"
31711 "\n"
31712 msgstr ""
31713
31714 #. type: textblock
31715 #: ../src/guestfs-actions.pod:6601
31716 msgid ""
31717 "This command creates the directory C<dir> and then fills it with files until "
31718 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31719 "and deletes them.  The intention is to scrub any free space on the partition "
31720 "containing C<dir>."
31721 msgstr ""
31722
31723 #. type: =head2
31724 #: ../src/guestfs-actions.pod:6614
31725 msgid "guestfs_set_append"
31726 msgstr ""
31727
31728 #. type: verbatim
31729 #: ../src/guestfs-actions.pod:6616
31730 #, no-wrap
31731 msgid ""
31732 " int\n"
31733 " guestfs_set_append (guestfs_h *g,\n"
31734 "                     const char *append);\n"
31735 "\n"
31736 msgstr ""
31737
31738 #. type: =head2
31739 #: ../src/guestfs-actions.pod:6633
31740 msgid "guestfs_set_attach_method"
31741 msgstr ""
31742
31743 #. type: verbatim
31744 #: ../src/guestfs-actions.pod:6635
31745 #, no-wrap
31746 msgid ""
31747 " int\n"
31748 " guestfs_set_attach_method (guestfs_h *g,\n"
31749 "                            const char *attachmethod);\n"
31750 "\n"
31751 msgstr ""
31752
31753 #. type: =head2
31754 #: ../src/guestfs-actions.pod:6663
31755 msgid "guestfs_set_autosync"
31756 msgstr ""
31757
31758 #. type: verbatim
31759 #: ../src/guestfs-actions.pod:6665
31760 #, no-wrap
31761 msgid ""
31762 " int\n"
31763 " guestfs_set_autosync (guestfs_h *g,\n"
31764 "                       int autosync);\n"
31765 "\n"
31766 msgstr ""
31767
31768 #. type: =head2
31769 #: ../src/guestfs-actions.pod:6681
31770 msgid "guestfs_set_direct"
31771 msgstr ""
31772
31773 #. type: verbatim
31774 #: ../src/guestfs-actions.pod:6683
31775 #, no-wrap
31776 msgid ""
31777 " int\n"
31778 " guestfs_set_direct (guestfs_h *g,\n"
31779 "                     int direct);\n"
31780 "\n"
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs-actions.pod:6691
31785 msgid ""
31786 "One consequence of this is that log messages aren't caught by the library "
31787 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31788 "stdout."
31789 msgstr ""
31790
31791 #. type: =head2
31792 #: ../src/guestfs-actions.pod:6704
31793 msgid "guestfs_set_e2label"
31794 msgstr ""
31795
31796 #. type: verbatim
31797 #: ../src/guestfs-actions.pod:6706
31798 #, no-wrap
31799 msgid ""
31800 " int\n"
31801 " guestfs_set_e2label (guestfs_h *g,\n"
31802 "                      const char *device,\n"
31803 "                      const char *label);\n"
31804 "\n"
31805 msgstr ""
31806
31807 #. type: textblock
31808 #: ../src/guestfs-actions.pod:6715
31809 msgid ""
31810 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31811 "the existing label on a filesystem."
31812 msgstr ""
31813
31814 #. type: =head2
31815 #: ../src/guestfs-actions.pod:6722
31816 msgid "guestfs_set_e2uuid"
31817 msgstr ""
31818
31819 #. type: verbatim
31820 #: ../src/guestfs-actions.pod:6724
31821 #, no-wrap
31822 msgid ""
31823 " int\n"
31824 " guestfs_set_e2uuid (guestfs_h *g,\n"
31825 "                     const char *device,\n"
31826 "                     const char *uuid);\n"
31827 "\n"
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs-actions.pod:6734
31832 msgid ""
31833 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31834 "the existing UUID of a filesystem."
31835 msgstr ""
31836
31837 #. type: =head2
31838 #: ../src/guestfs-actions.pod:6741
31839 msgid "guestfs_set_memsize"
31840 msgstr ""
31841
31842 #. type: verbatim
31843 #: ../src/guestfs-actions.pod:6743
31844 #, no-wrap
31845 msgid ""
31846 " int\n"
31847 " guestfs_set_memsize (guestfs_h *g,\n"
31848 "                      int memsize);\n"
31849 "\n"
31850 msgstr ""
31851
31852 #. type: textblock
31853 #: ../src/guestfs-actions.pod:6747
31854 msgid ""
31855 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31856 "This only has any effect if called before C<guestfs_launch>."
31857 msgstr ""
31858
31859 #. type: =head2
31860 #: ../src/guestfs-actions.pod:6762
31861 msgid "guestfs_set_network"
31862 msgstr ""
31863
31864 #. type: verbatim
31865 #: ../src/guestfs-actions.pod:6764
31866 #, no-wrap
31867 msgid ""
31868 " int\n"
31869 " guestfs_set_network (guestfs_h *g,\n"
31870 "                      int network);\n"
31871 "\n"
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs-actions.pod:6774
31876 msgid ""
31877 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31878 "effect."
31879 msgstr ""
31880
31881 #. type: =head2
31882 #: ../src/guestfs-actions.pod:6781
31883 msgid "guestfs_set_path"
31884 msgstr ""
31885
31886 #. type: verbatim
31887 #: ../src/guestfs-actions.pod:6783
31888 #, no-wrap
31889 msgid ""
31890 " int\n"
31891 " guestfs_set_path (guestfs_h *g,\n"
31892 "                   const char *searchpath);\n"
31893 "\n"
31894 msgstr ""
31895
31896 #. type: =head2
31897 #: ../src/guestfs-actions.pod:6798
31898 msgid "guestfs_set_pgroup"
31899 msgstr ""
31900
31901 #. type: verbatim
31902 #: ../src/guestfs-actions.pod:6800
31903 #, no-wrap
31904 msgid ""
31905 " int\n"
31906 " guestfs_set_pgroup (guestfs_h *g,\n"
31907 "                     int pgroup);\n"
31908 "\n"
31909 msgstr ""
31910
31911 #. type: =head2
31912 #: ../src/guestfs-actions.pod:6817
31913 msgid "guestfs_set_qemu"
31914 msgstr ""
31915
31916 #. type: verbatim
31917 #: ../src/guestfs-actions.pod:6819
31918 #, no-wrap
31919 msgid ""
31920 " int\n"
31921 " guestfs_set_qemu (guestfs_h *g,\n"
31922 "                   const char *qemu);\n"
31923 "\n"
31924 msgstr ""
31925
31926 #. type: =head2
31927 #: ../src/guestfs-actions.pod:6845
31928 msgid "guestfs_set_recovery_proc"
31929 msgstr ""
31930
31931 #. type: verbatim
31932 #: ../src/guestfs-actions.pod:6847
31933 #, no-wrap
31934 msgid ""
31935 " int\n"
31936 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31937 "                            int recoveryproc);\n"
31938 "\n"
31939 msgstr ""
31940
31941 #. type: textblock
31942 #: ../src/guestfs-actions.pod:6851
31943 msgid ""
31944 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31945 "not create a recovery process.  The purpose of the recovery process is to "
31946 "stop runaway qemu processes in the case where the main program aborts "
31947 "abruptly."
31948 msgstr ""
31949
31950 #. type: textblock
31951 #: ../src/guestfs-actions.pod:6856
31952 msgid ""
31953 "This only has any effect if called before C<guestfs_launch>, and the default "
31954 "is true."
31955 msgstr ""
31956
31957 #. type: =head2
31958 #: ../src/guestfs-actions.pod:6869
31959 msgid "guestfs_set_selinux"
31960 msgstr ""
31961
31962 #. type: verbatim
31963 #: ../src/guestfs-actions.pod:6871
31964 #, no-wrap
31965 msgid ""
31966 " int\n"
31967 " guestfs_set_selinux (guestfs_h *g,\n"
31968 "                      int selinux);\n"
31969 "\n"
31970 msgstr ""
31971
31972 #. type: =head2
31973 #: ../src/guestfs-actions.pod:6888
31974 msgid "guestfs_set_smp"
31975 msgstr ""
31976
31977 #. type: verbatim
31978 #: ../src/guestfs-actions.pod:6890
31979 #, no-wrap
31980 msgid ""
31981 " int\n"
31982 " guestfs_set_smp (guestfs_h *g,\n"
31983 "                  int smp);\n"
31984 "\n"
31985 msgstr ""
31986
31987 #. type: textblock
31988 #: ../src/guestfs-actions.pod:6898
31989 msgid "This function must be called before C<guestfs_launch>."
31990 msgstr ""
31991
31992 #. type: =head2
31993 #: ../src/guestfs-actions.pod:6904
31994 msgid "guestfs_set_trace"
31995 msgstr ""
31996
31997 #. type: verbatim
31998 #: ../src/guestfs-actions.pod:6906
31999 #, no-wrap
32000 msgid ""
32001 " int\n"
32002 " guestfs_set_trace (guestfs_h *g,\n"
32003 "                    int trace);\n"
32004 "\n"
32005 msgstr ""
32006
32007 #. type: textblock
32008 #: ../src/guestfs-actions.pod:6920
32009 msgid ""
32010 "Trace messages are normally sent to C<stderr>, unless you register a "
32011 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32012 msgstr ""
32013
32014 #. type: =head2
32015 #: ../src/guestfs-actions.pod:6928
32016 msgid "guestfs_set_verbose"
32017 msgstr ""
32018
32019 #. type: verbatim
32020 #: ../src/guestfs-actions.pod:6930
32021 #, no-wrap
32022 msgid ""
32023 " int\n"
32024 " guestfs_set_verbose (guestfs_h *g,\n"
32025 "                      int verbose);\n"
32026 "\n"
32027 msgstr ""
32028
32029 #. type: textblock
32030 #: ../src/guestfs-actions.pod:6939
32031 msgid ""
32032 "Verbose messages are normally sent to C<stderr>, unless you register a "
32033 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32034 msgstr ""
32035
32036 #. type: =head2
32037 #: ../src/guestfs-actions.pod:6947
32038 msgid "guestfs_setcon"
32039 msgstr ""
32040
32041 #. type: verbatim
32042 #: ../src/guestfs-actions.pod:6949
32043 #, no-wrap
32044 msgid ""
32045 " int\n"
32046 " guestfs_setcon (guestfs_h *g,\n"
32047 "                 const char *context);\n"
32048 "\n"
32049 msgstr ""
32050
32051 #. type: =head2
32052 #: ../src/guestfs-actions.pod:6962
32053 msgid "guestfs_setxattr"
32054 msgstr ""
32055
32056 #. type: verbatim
32057 #: ../src/guestfs-actions.pod:6964
32058 #, no-wrap
32059 msgid ""
32060 " int\n"
32061 " guestfs_setxattr (guestfs_h *g,\n"
32062 "                   const char *xattr,\n"
32063 "                   const char *val,\n"
32064 "                   int vallen,\n"
32065 "                   const char *path);\n"
32066 "\n"
32067 msgstr ""
32068
32069 #. type: textblock
32070 #: ../src/guestfs-actions.pod:6975
32071 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32072 msgstr ""
32073
32074 #. type: =head2
32075 #: ../src/guestfs-actions.pod:6981
32076 msgid "guestfs_sfdisk"
32077 msgstr ""
32078
32079 #. type: verbatim
32080 #: ../src/guestfs-actions.pod:6983
32081 #, no-wrap
32082 msgid ""
32083 " int\n"
32084 " guestfs_sfdisk (guestfs_h *g,\n"
32085 "                 const char *device,\n"
32086 "                 int cyls,\n"
32087 "                 int heads,\n"
32088 "                 int sectors,\n"
32089 "                 char *const *lines);\n"
32090 "\n"
32091 msgstr ""
32092
32093 #. type: textblock
32094 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
32095 #: ../src/guestfs-actions.pod:7063
32096 msgid ""
32097 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32098 "call instead."
32099 msgstr ""
32100
32101 #. type: textblock
32102 #: ../src/guestfs-actions.pod:7018
32103 msgid ""
32104 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32105 msgstr ""
32106
32107 #. type: =head2
32108 #: ../src/guestfs-actions.pod:7025
32109 msgid "guestfs_sfdiskM"
32110 msgstr ""
32111
32112 #. type: verbatim
32113 #: ../src/guestfs-actions.pod:7027
32114 #, no-wrap
32115 msgid ""
32116 " int\n"
32117 " guestfs_sfdiskM (guestfs_h *g,\n"
32118 "                  const char *device,\n"
32119 "                  char *const *lines);\n"
32120 "\n"
32121 msgstr ""
32122
32123 #. type: textblock
32124 #: ../src/guestfs-actions.pod:7039
32125 msgid ""
32126 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32127 "partition sizes are specified in megabytes only (rounded to the nearest "
32128 "cylinder) and you don't need to specify the cyls, heads and sectors "
32129 "parameters which were rarely if ever used anyway."
32130 msgstr ""
32131
32132 #. type: textblock
32133 #: ../src/guestfs-actions.pod:7045
32134 msgid ""
32135 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32136 "C<guestfs_part_disk>"
32137 msgstr ""
32138
32139 #. type: =head2
32140 #: ../src/guestfs-actions.pod:7052
32141 msgid "guestfs_sfdisk_N"
32142 msgstr ""
32143
32144 #. type: verbatim
32145 #: ../src/guestfs-actions.pod:7054
32146 #, no-wrap
32147 msgid ""
32148 " int\n"
32149 " guestfs_sfdisk_N (guestfs_h *g,\n"
32150 "                   const char *device,\n"
32151 "                   int partnum,\n"
32152 "                   int cyls,\n"
32153 "                   int heads,\n"
32154 "                   int sectors,\n"
32155 "                   const char *line);\n"
32156 "\n"
32157 msgstr ""
32158
32159 #. type: textblock
32160 #: ../src/guestfs-actions.pod:7073
32161 msgid ""
32162 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32163 "for the cyls/heads/sectors parameters."
32164 msgstr ""
32165
32166 #. type: textblock
32167 #: ../src/guestfs-actions.pod:7076
32168 msgid "See also: C<guestfs_part_add>"
32169 msgstr ""
32170
32171 #. type: =head2
32172 #: ../src/guestfs-actions.pod:7082
32173 msgid "guestfs_sfdisk_disk_geometry"
32174 msgstr ""
32175
32176 #. type: verbatim
32177 #: ../src/guestfs-actions.pod:7084
32178 #, no-wrap
32179 msgid ""
32180 " char *\n"
32181 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32182 "                               const char *device);\n"
32183 "\n"
32184 msgstr ""
32185
32186 #. type: textblock
32187 #: ../src/guestfs-actions.pod:7088
32188 msgid ""
32189 "This displays the disk geometry of C<device> read from the partition table.  "
32190 "Especially in the case where the underlying block device has been resized, "
32191 "this can be different from the kernel's idea of the geometry (see "
32192 "C<guestfs_sfdisk_kernel_geometry>)."
32193 msgstr ""
32194
32195 #. type: =head2
32196 #: ../src/guestfs-actions.pod:7101
32197 msgid "guestfs_sfdisk_kernel_geometry"
32198 msgstr ""
32199
32200 #. type: verbatim
32201 #: ../src/guestfs-actions.pod:7103
32202 #, no-wrap
32203 msgid ""
32204 " char *\n"
32205 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32206 "                                 const char *device);\n"
32207 "\n"
32208 msgstr ""
32209
32210 #. type: =head2
32211 #: ../src/guestfs-actions.pod:7117
32212 msgid "guestfs_sfdisk_l"
32213 msgstr ""
32214
32215 #. type: verbatim
32216 #: ../src/guestfs-actions.pod:7119
32217 #, no-wrap
32218 msgid ""
32219 " char *\n"
32220 " guestfs_sfdisk_l (guestfs_h *g,\n"
32221 "                   const char *device);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: textblock
32226 #: ../src/guestfs-actions.pod:7123
32227 msgid ""
32228 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32229 "call instead."
32230 msgstr ""
32231
32232 #. type: textblock
32233 #: ../src/guestfs-actions.pod:7134
32234 msgid "See also: C<guestfs_part_list>"
32235 msgstr ""
32236
32237 #. type: =head2
32238 #: ../src/guestfs-actions.pod:7141
32239 msgid "guestfs_sh"
32240 msgstr ""
32241
32242 #. type: verbatim
32243 #: ../src/guestfs-actions.pod:7143
32244 #, no-wrap
32245 msgid ""
32246 " char *\n"
32247 " guestfs_sh (guestfs_h *g,\n"
32248 "             const char *command);\n"
32249 "\n"
32250 msgstr ""
32251
32252 #. type: textblock
32253 #: ../src/guestfs-actions.pod:7150
32254 msgid "This is like C<guestfs_command>, but passes the command to:"
32255 msgstr ""
32256
32257 #. type: textblock
32258 #: ../src/guestfs-actions.pod:7158
32259 msgid "All the provisos about C<guestfs_command> apply to this call."
32260 msgstr ""
32261
32262 #. type: =head2
32263 #: ../src/guestfs-actions.pod:7165
32264 msgid "guestfs_sh_lines"
32265 msgstr ""
32266
32267 #. type: verbatim
32268 #: ../src/guestfs-actions.pod:7167
32269 #, no-wrap
32270 msgid ""
32271 " char **\n"
32272 " guestfs_sh_lines (guestfs_h *g,\n"
32273 "                   const char *command);\n"
32274 "\n"
32275 msgstr ""
32276
32277 #. type: textblock
32278 #: ../src/guestfs-actions.pod:7171
32279 msgid ""
32280 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32281 "lines."
32282 msgstr ""
32283
32284 #. type: textblock
32285 #: ../src/guestfs-actions.pod:7174
32286 msgid "See also: C<guestfs_command_lines>"
32287 msgstr ""
32288
32289 #. type: =head2
32290 #: ../src/guestfs-actions.pod:7182
32291 msgid "guestfs_sleep"
32292 msgstr ""
32293
32294 #. type: verbatim
32295 #: ../src/guestfs-actions.pod:7184
32296 #, no-wrap
32297 msgid ""
32298 " int\n"
32299 " guestfs_sleep (guestfs_h *g,\n"
32300 "                int secs);\n"
32301 "\n"
32302 msgstr ""
32303
32304 #. type: textblock
32305 #: ../src/guestfs-actions.pod:7192
32306 msgid "(Added in 1.0.41)"
32307 msgstr ""
32308
32309 #. type: =head2
32310 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
32311 msgid "guestfs_stat"
32312 msgstr ""
32313
32314 #. type: verbatim
32315 #: ../src/guestfs-actions.pod:7196
32316 #, no-wrap
32317 msgid ""
32318 " struct guestfs_stat *\n"
32319 " guestfs_stat (guestfs_h *g,\n"
32320 "               const char *path);\n"
32321 "\n"
32322 msgstr ""
32323
32324 #. type: =head2
32325 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
32326 msgid "guestfs_statvfs"
32327 msgstr ""
32328
32329 #. type: verbatim
32330 #: ../src/guestfs-actions.pod:7212
32331 #, no-wrap
32332 msgid ""
32333 " struct guestfs_statvfs *\n"
32334 " guestfs_statvfs (guestfs_h *g,\n"
32335 "                  const char *path);\n"
32336 "\n"
32337 msgstr ""
32338
32339 #. type: textblock
32340 #: ../src/guestfs-actions.pod:7222
32341 msgid ""
32342 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32343 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32344 msgstr ""
32345
32346 #. type: =head2
32347 #: ../src/guestfs-actions.pod:7228
32348 msgid "guestfs_strings"
32349 msgstr ""
32350
32351 #. type: verbatim
32352 #: ../src/guestfs-actions.pod:7230
32353 #, no-wrap
32354 msgid ""
32355 " char **\n"
32356 " guestfs_strings (guestfs_h *g,\n"
32357 "                  const char *path);\n"
32358 "\n"
32359 msgstr ""
32360
32361 #. type: =head2
32362 #: ../src/guestfs-actions.pod:7246
32363 msgid "guestfs_strings_e"
32364 msgstr ""
32365
32366 #. type: verbatim
32367 #: ../src/guestfs-actions.pod:7248
32368 #, no-wrap
32369 msgid ""
32370 " char **\n"
32371 " guestfs_strings_e (guestfs_h *g,\n"
32372 "                    const char *encoding,\n"
32373 "                    const char *path);\n"
32374 "\n"
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs-actions.pod:7253
32379 msgid ""
32380 "This is like the C<guestfs_strings> command, but allows you to specify the "
32381 "encoding of strings that are looked for in the source file C<path>."
32382 msgstr ""
32383
32384 #. type: textblock
32385 #: ../src/guestfs-actions.pod:7263
32386 msgid ""
32387 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32388 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32389 msgstr ""
32390
32391 #. type: =head2
32392 #: ../src/guestfs-actions.pod:7301
32393 msgid "guestfs_swapoff_device"
32394 msgstr ""
32395
32396 #. type: verbatim
32397 #: ../src/guestfs-actions.pod:7303
32398 #, no-wrap
32399 msgid ""
32400 " int\n"
32401 " guestfs_swapoff_device (guestfs_h *g,\n"
32402 "                         const char *device);\n"
32403 "\n"
32404 msgstr ""
32405
32406 #. type: textblock
32407 #: ../src/guestfs-actions.pod:7307
32408 msgid ""
32409 "This command disables the libguestfs appliance swap device or partition "
32410 "named C<device>.  See C<guestfs_swapon_device>."
32411 msgstr ""
32412
32413 #. type: =head2
32414 #: ../src/guestfs-actions.pod:7315
32415 msgid "guestfs_swapoff_file"
32416 msgstr ""
32417
32418 #. type: verbatim
32419 #: ../src/guestfs-actions.pod:7317
32420 #, no-wrap
32421 msgid ""
32422 " int\n"
32423 " guestfs_swapoff_file (guestfs_h *g,\n"
32424 "                       const char *file);\n"
32425 "\n"
32426 msgstr ""
32427
32428 #. type: =head2
32429 #: ../src/guestfs-actions.pod:7327
32430 msgid "guestfs_swapoff_label"
32431 msgstr ""
32432
32433 #. type: verbatim
32434 #: ../src/guestfs-actions.pod:7329
32435 #, no-wrap
32436 msgid ""
32437 " int\n"
32438 " guestfs_swapoff_label (guestfs_h *g,\n"
32439 "                        const char *label);\n"
32440 "\n"
32441 msgstr ""
32442
32443 #. type: =head2
32444 #: ../src/guestfs-actions.pod:7340
32445 msgid "guestfs_swapoff_uuid"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-actions.pod:7342
32450 #, no-wrap
32451 msgid ""
32452 " int\n"
32453 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32454 "                       const char *uuid);\n"
32455 "\n"
32456 msgstr ""
32457
32458 #. type: =head2
32459 #: ../src/guestfs-actions.pod:7353
32460 msgid "guestfs_swapon_device"
32461 msgstr ""
32462
32463 #. type: verbatim
32464 #: ../src/guestfs-actions.pod:7355
32465 #, no-wrap
32466 msgid ""
32467 " int\n"
32468 " guestfs_swapon_device (guestfs_h *g,\n"
32469 "                        const char *device);\n"
32470 "\n"
32471 msgstr ""
32472
32473 #. type: textblock
32474 #: ../src/guestfs-actions.pod:7359
32475 msgid ""
32476 "This command enables the libguestfs appliance to use the swap device or "
32477 "partition named C<device>.  The increased memory is made available for all "
32478 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32479 msgstr ""
32480
32481 #. type: =head2
32482 #: ../src/guestfs-actions.pod:7375
32483 msgid "guestfs_swapon_file"
32484 msgstr ""
32485
32486 #. type: verbatim
32487 #: ../src/guestfs-actions.pod:7377
32488 #, no-wrap
32489 msgid ""
32490 " int\n"
32491 " guestfs_swapon_file (guestfs_h *g,\n"
32492 "                      const char *file);\n"
32493 "\n"
32494 msgstr ""
32495
32496 #. type: textblock
32497 #: ../src/guestfs-actions.pod:7381
32498 msgid ""
32499 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32500 "notes."
32501 msgstr ""
32502
32503 #. type: =head2
32504 #: ../src/guestfs-actions.pod:7388
32505 msgid "guestfs_swapon_label"
32506 msgstr ""
32507
32508 #. type: verbatim
32509 #: ../src/guestfs-actions.pod:7390
32510 #, no-wrap
32511 msgid ""
32512 " int\n"
32513 " guestfs_swapon_label (guestfs_h *g,\n"
32514 "                       const char *label);\n"
32515 "\n"
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs-actions.pod:7394
32520 msgid ""
32521 "This command enables swap to a labeled swap partition.  See "
32522 "C<guestfs_swapon_device> for other notes."
32523 msgstr ""
32524
32525 #. type: =head2
32526 #: ../src/guestfs-actions.pod:7401
32527 msgid "guestfs_swapon_uuid"
32528 msgstr ""
32529
32530 #. type: verbatim
32531 #: ../src/guestfs-actions.pod:7403
32532 #, no-wrap
32533 msgid ""
32534 " int\n"
32535 " guestfs_swapon_uuid (guestfs_h *g,\n"
32536 "                      const char *uuid);\n"
32537 "\n"
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs-actions.pod:7407
32542 msgid ""
32543 "This command enables swap to a swap partition with the given UUID.  See "
32544 "C<guestfs_swapon_device> for other notes."
32545 msgstr ""
32546
32547 #. type: =head2
32548 #: ../src/guestfs-actions.pod:7414
32549 msgid "guestfs_sync"
32550 msgstr ""
32551
32552 #. type: verbatim
32553 #: ../src/guestfs-actions.pod:7416
32554 #, no-wrap
32555 msgid ""
32556 " int\n"
32557 " guestfs_sync (guestfs_h *g);\n"
32558 "\n"
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs-actions.pod:7429
32563 msgid "guestfs_tail"
32564 msgstr ""
32565
32566 #. type: verbatim
32567 #: ../src/guestfs-actions.pod:7431
32568 #, no-wrap
32569 msgid ""
32570 " char **\n"
32571 " guestfs_tail (guestfs_h *g,\n"
32572 "               const char *path);\n"
32573 "\n"
32574 msgstr ""
32575
32576 #. type: =head2
32577 #: ../src/guestfs-actions.pod:7447
32578 msgid "guestfs_tail_n"
32579 msgstr ""
32580
32581 #. type: verbatim
32582 #: ../src/guestfs-actions.pod:7449
32583 #, no-wrap
32584 msgid ""
32585 " char **\n"
32586 " guestfs_tail_n (guestfs_h *g,\n"
32587 "                 int nrlines,\n"
32588 "                 const char *path);\n"
32589 "\n"
32590 msgstr ""
32591
32592 #. type: =head2
32593 #: ../src/guestfs-actions.pod:7471
32594 msgid "guestfs_tar_in"
32595 msgstr ""
32596
32597 #. type: verbatim
32598 #: ../src/guestfs-actions.pod:7473
32599 #, no-wrap
32600 msgid ""
32601 " int\n"
32602 " guestfs_tar_in (guestfs_h *g,\n"
32603 "                 const char *tarfile,\n"
32604 "                 const char *directory);\n"
32605 "\n"
32606 msgstr ""
32607
32608 #. type: textblock
32609 #: ../src/guestfs-actions.pod:7481
32610 msgid ""
32611 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32612 msgstr ""
32613
32614 #. type: textblock
32615 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
32616 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
32617 msgid "(Added in 1.0.3)"
32618 msgstr ""
32619
32620 #. type: =head2
32621 #: ../src/guestfs-actions.pod:7488
32622 msgid "guestfs_tar_out"
32623 msgstr ""
32624
32625 #. type: verbatim
32626 #: ../src/guestfs-actions.pod:7490
32627 #, no-wrap
32628 msgid ""
32629 " int\n"
32630 " guestfs_tar_out (guestfs_h *g,\n"
32631 "                  const char *directory,\n"
32632 "                  const char *tarfile);\n"
32633 "\n"
32634 msgstr ""
32635
32636 #. type: textblock
32637 #: ../src/guestfs-actions.pod:7498
32638 msgid ""
32639 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32640 "C<guestfs_txz_out>."
32641 msgstr ""
32642
32643 #. type: =head2
32644 #: ../src/guestfs-actions.pod:7505
32645 msgid "guestfs_tgz_in"
32646 msgstr ""
32647
32648 #. type: verbatim
32649 #: ../src/guestfs-actions.pod:7507
32650 #, no-wrap
32651 msgid ""
32652 " int\n"
32653 " guestfs_tgz_in (guestfs_h *g,\n"
32654 "                 const char *tarball,\n"
32655 "                 const char *directory);\n"
32656 "\n"
32657 msgstr ""
32658
32659 #. type: textblock
32660 #: ../src/guestfs-actions.pod:7515
32661 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32662 msgstr ""
32663
32664 #. type: =head2
32665 #: ../src/guestfs-actions.pod:7521
32666 msgid "guestfs_tgz_out"
32667 msgstr ""
32668
32669 #. type: verbatim
32670 #: ../src/guestfs-actions.pod:7523
32671 #, no-wrap
32672 msgid ""
32673 " int\n"
32674 " guestfs_tgz_out (guestfs_h *g,\n"
32675 "                  const char *directory,\n"
32676 "                  const char *tarball);\n"
32677 "\n"
32678 msgstr ""
32679
32680 #. type: textblock
32681 #: ../src/guestfs-actions.pod:7531
32682 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32683 msgstr ""
32684
32685 #. type: =head2
32686 #: ../src/guestfs-actions.pod:7537
32687 msgid "guestfs_touch"
32688 msgstr ""
32689
32690 #. type: verbatim
32691 #: ../src/guestfs-actions.pod:7539
32692 #, no-wrap
32693 msgid ""
32694 " int\n"
32695 " guestfs_touch (guestfs_h *g,\n"
32696 "                const char *path);\n"
32697 "\n"
32698 msgstr ""
32699
32700 #. type: =head2
32701 #: ../src/guestfs-actions.pod:7554
32702 msgid "guestfs_truncate"
32703 msgstr ""
32704
32705 #. type: verbatim
32706 #: ../src/guestfs-actions.pod:7556
32707 #, no-wrap
32708 msgid ""
32709 " int\n"
32710 " guestfs_truncate (guestfs_h *g,\n"
32711 "                   const char *path);\n"
32712 "\n"
32713 msgstr ""
32714
32715 #. type: =head2
32716 #: ../src/guestfs-actions.pod:7567
32717 msgid "guestfs_truncate_size"
32718 msgstr ""
32719
32720 #. type: verbatim
32721 #: ../src/guestfs-actions.pod:7569
32722 #, no-wrap
32723 msgid ""
32724 " int\n"
32725 " guestfs_truncate_size (guestfs_h *g,\n"
32726 "                        const char *path,\n"
32727 "                        int64_t size);\n"
32728 "\n"
32729 msgstr ""
32730
32731 #. type: textblock
32732 #: ../src/guestfs-actions.pod:7577
32733 msgid ""
32734 "If the current file size is less than C<size> then the file is extended to "
32735 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32736 "blocks are not allocated for the file until you write to it).  To create a "
32737 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32738 msgstr ""
32739
32740 #. type: =head2
32741 #: ../src/guestfs-actions.pod:7587
32742 msgid "guestfs_tune2fs_l"
32743 msgstr ""
32744
32745 #. type: verbatim
32746 #: ../src/guestfs-actions.pod:7589
32747 #, no-wrap
32748 msgid ""
32749 " char **\n"
32750 " guestfs_tune2fs_l (guestfs_h *g,\n"
32751 "                    const char *device);\n"
32752 "\n"
32753 msgstr ""
32754
32755 #. type: =head2
32756 #: ../src/guestfs-actions.pod:7609
32757 msgid "guestfs_txz_in"
32758 msgstr ""
32759
32760 #. type: verbatim
32761 #: ../src/guestfs-actions.pod:7611
32762 #, no-wrap
32763 msgid ""
32764 " int\n"
32765 " guestfs_txz_in (guestfs_h *g,\n"
32766 "                 const char *tarball,\n"
32767 "                 const char *directory);\n"
32768 "\n"
32769 msgstr ""
32770
32771 #. type: =head2
32772 #: ../src/guestfs-actions.pod:7623
32773 msgid "guestfs_txz_out"
32774 msgstr ""
32775
32776 #. type: verbatim
32777 #: ../src/guestfs-actions.pod:7625
32778 #, no-wrap
32779 msgid ""
32780 " int\n"
32781 " guestfs_txz_out (guestfs_h *g,\n"
32782 "                  const char *directory,\n"
32783 "                  const char *tarball);\n"
32784 "\n"
32785 msgstr ""
32786
32787 #. type: =head2
32788 #: ../src/guestfs-actions.pod:7637
32789 msgid "guestfs_umask"
32790 msgstr ""
32791
32792 #. type: verbatim
32793 #: ../src/guestfs-actions.pod:7639
32794 #, no-wrap
32795 msgid ""
32796 " int\n"
32797 " guestfs_umask (guestfs_h *g,\n"
32798 "                int mask);\n"
32799 "\n"
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs-actions.pod:7655
32804 msgid ""
32805 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32806 "C<guestfs_mkdir>."
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs-actions.pod:7664
32811 msgid "guestfs_umount"
32812 msgstr ""
32813
32814 #. type: verbatim
32815 #: ../src/guestfs-actions.pod:7666
32816 #, no-wrap
32817 msgid ""
32818 " int\n"
32819 " guestfs_umount (guestfs_h *g,\n"
32820 "                 const char *pathordevice);\n"
32821 "\n"
32822 msgstr ""
32823
32824 #. type: =head2
32825 #: ../src/guestfs-actions.pod:7678
32826 msgid "guestfs_umount_all"
32827 msgstr ""
32828
32829 #. type: verbatim
32830 #: ../src/guestfs-actions.pod:7680
32831 #, no-wrap
32832 msgid ""
32833 " int\n"
32834 " guestfs_umount_all (guestfs_h *g);\n"
32835 "\n"
32836 msgstr ""
32837
32838 #. type: =head2
32839 #: ../src/guestfs-actions.pod:7691
32840 msgid "guestfs_upload"
32841 msgstr ""
32842
32843 #. type: verbatim
32844 #: ../src/guestfs-actions.pod:7693
32845 #, no-wrap
32846 msgid ""
32847 " int\n"
32848 " guestfs_upload (guestfs_h *g,\n"
32849 "                 const char *filename,\n"
32850 "                 const char *remotefilename);\n"
32851 "\n"
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs-actions.pod:7703
32856 msgid "See also C<guestfs_download>."
32857 msgstr ""
32858
32859 #. type: =head2
32860 #: ../src/guestfs-actions.pod:7714
32861 msgid "guestfs_upload_offset"
32862 msgstr ""
32863
32864 #. type: verbatim
32865 #: ../src/guestfs-actions.pod:7716
32866 #, no-wrap
32867 msgid ""
32868 " int\n"
32869 " guestfs_upload_offset (guestfs_h *g,\n"
32870 "                        const char *filename,\n"
32871 "                        const char *remotefilename,\n"
32872 "                        int64_t offset);\n"
32873 "\n"
32874 msgstr ""
32875
32876 #. type: textblock
32877 #: ../src/guestfs-actions.pod:7732
32878 msgid ""
32879 "Note that there is no limit on the amount of data that can be uploaded with "
32880 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32881 "full amount unless an error occurs."
32882 msgstr ""
32883
32884 #. type: textblock
32885 #: ../src/guestfs-actions.pod:7737
32886 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32887 msgstr ""
32888
32889 #. type: =head2
32890 #: ../src/guestfs-actions.pod:7748
32891 msgid "guestfs_utimens"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../src/guestfs-actions.pod:7750
32896 #, no-wrap
32897 msgid ""
32898 " int\n"
32899 " guestfs_utimens (guestfs_h *g,\n"
32900 "                  const char *path,\n"
32901 "                  int64_t atsecs,\n"
32902 "                  int64_t atnsecs,\n"
32903 "                  int64_t mtsecs,\n"
32904 "                  int64_t mtnsecs);\n"
32905 "\n"
32906 msgstr ""
32907
32908 #. type: =head2
32909 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
32910 msgid "guestfs_version"
32911 msgstr ""
32912
32913 #. type: verbatim
32914 #: ../src/guestfs-actions.pod:7781
32915 #, no-wrap
32916 msgid ""
32917 " struct guestfs_version *\n"
32918 " guestfs_version (guestfs_h *g);\n"
32919 "\n"
32920 msgstr ""
32921
32922 #. type: textblock
32923 #: ../src/guestfs-actions.pod:7809
32924 msgid ""
32925 "I<Note:> Don't use this call to test for availability of features.  In "
32926 "enterprise distributions we backport features from later versions into "
32927 "earlier versions, making this an unreliable way to test for features.  Use "
32928 "C<guestfs_available> instead."
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs-actions.pod:7815
32933 msgid ""
32934 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32935 "error.  I<The caller must call C<guestfs_free_version> after use>."
32936 msgstr ""
32937
32938 #. type: textblock
32939 #: ../src/guestfs-actions.pod:7819
32940 msgid "(Added in 1.0.58)"
32941 msgstr ""
32942
32943 #. type: =head2
32944 #: ../src/guestfs-actions.pod:7821
32945 msgid "guestfs_vfs_label"
32946 msgstr ""
32947
32948 #. type: verbatim
32949 #: ../src/guestfs-actions.pod:7823
32950 #, no-wrap
32951 msgid ""
32952 " char *\n"
32953 " guestfs_vfs_label (guestfs_h *g,\n"
32954 "                    const char *device);\n"
32955 "\n"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:7832
32960 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
32965 msgid "(Added in 1.3.18)"
32966 msgstr ""
32967
32968 #. type: =head2
32969 #: ../src/guestfs-actions.pod:7839
32970 msgid "guestfs_vfs_type"
32971 msgstr ""
32972
32973 #. type: verbatim
32974 #: ../src/guestfs-actions.pod:7841
32975 #, no-wrap
32976 msgid ""
32977 " char *\n"
32978 " guestfs_vfs_type (guestfs_h *g,\n"
32979 "                   const char *device);\n"
32980 "\n"
32981 msgstr ""
32982
32983 #. type: =head2
32984 #: ../src/guestfs-actions.pod:7858
32985 msgid "guestfs_vfs_uuid"
32986 msgstr ""
32987
32988 #. type: verbatim
32989 #: ../src/guestfs-actions.pod:7860
32990 #, no-wrap
32991 msgid ""
32992 " char *\n"
32993 " guestfs_vfs_uuid (guestfs_h *g,\n"
32994 "                   const char *device);\n"
32995 "\n"
32996 msgstr ""
32997
32998 #. type: textblock
32999 #: ../src/guestfs-actions.pod:7869
33000 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33001 msgstr ""
33002
33003 #. type: =head2
33004 #: ../src/guestfs-actions.pod:7876
33005 msgid "guestfs_vg_activate"
33006 msgstr ""
33007
33008 #. type: verbatim
33009 #: ../src/guestfs-actions.pod:7878
33010 #, no-wrap
33011 msgid ""
33012 " int\n"
33013 " guestfs_vg_activate (guestfs_h *g,\n"
33014 "                      int activate,\n"
33015 "                      char *const *volgroups);\n"
33016 "\n"
33017 msgstr ""
33018
33019 #. type: =head2
33020 #: ../src/guestfs-actions.pod:7895
33021 msgid "guestfs_vg_activate_all"
33022 msgstr ""
33023
33024 #. type: verbatim
33025 #: ../src/guestfs-actions.pod:7897
33026 #, no-wrap
33027 msgid ""
33028 " int\n"
33029 " guestfs_vg_activate_all (guestfs_h *g,\n"
33030 "                          int activate);\n"
33031 "\n"
33032 msgstr ""
33033
33034 #. type: =head2
33035 #: ../src/guestfs-actions.pod:7910
33036 msgid "guestfs_vgcreate"
33037 msgstr ""
33038
33039 #. type: verbatim
33040 #: ../src/guestfs-actions.pod:7912
33041 #, no-wrap
33042 msgid ""
33043 " int\n"
33044 " guestfs_vgcreate (guestfs_h *g,\n"
33045 "                   const char *volgroup,\n"
33046 "                   char *const *physvols);\n"
33047 "\n"
33048 msgstr ""
33049
33050 #. type: =head2
33051 #: ../src/guestfs-actions.pod:7924
33052 msgid "guestfs_vglvuuids"
33053 msgstr ""
33054
33055 #. type: verbatim
33056 #: ../src/guestfs-actions.pod:7926
33057 #, no-wrap
33058 msgid ""
33059 " char **\n"
33060 " guestfs_vglvuuids (guestfs_h *g,\n"
33061 "                    const char *vgname);\n"
33062 "\n"
33063 msgstr ""
33064
33065 #. type: textblock
33066 #: ../src/guestfs-actions.pod:7933
33067 msgid ""
33068 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33069 "associate logical volumes and volume groups."
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs-actions.pod:7936
33074 msgid "See also C<guestfs_vgpvuuids>."
33075 msgstr ""
33076
33077 #. type: =head2
33078 #: ../src/guestfs-actions.pod:7944
33079 msgid "guestfs_vgpvuuids"
33080 msgstr ""
33081
33082 #. type: verbatim
33083 #: ../src/guestfs-actions.pod:7946
33084 #, no-wrap
33085 msgid ""
33086 " char **\n"
33087 " guestfs_vgpvuuids (guestfs_h *g,\n"
33088 "                    const char *vgname);\n"
33089 "\n"
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs-actions.pod:7953
33094 msgid ""
33095 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33096 "associate physical volumes and volume groups."
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs-actions.pod:7956
33101 msgid "See also C<guestfs_vglvuuids>."
33102 msgstr ""
33103
33104 #. type: =head2
33105 #: ../src/guestfs-actions.pod:7964
33106 msgid "guestfs_vgremove"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs-actions.pod:7966
33111 #, no-wrap
33112 msgid ""
33113 " int\n"
33114 " guestfs_vgremove (guestfs_h *g,\n"
33115 "                   const char *vgname);\n"
33116 "\n"
33117 msgstr ""
33118
33119 #. type: =head2
33120 #: ../src/guestfs-actions.pod:7979
33121 msgid "guestfs_vgrename"
33122 msgstr ""
33123
33124 #. type: verbatim
33125 #: ../src/guestfs-actions.pod:7981
33126 #, no-wrap
33127 msgid ""
33128 " int\n"
33129 " guestfs_vgrename (guestfs_h *g,\n"
33130 "                   const char *volgroup,\n"
33131 "                   const char *newvolgroup);\n"
33132 "\n"
33133 msgstr ""
33134
33135 #. type: =head2
33136 #: ../src/guestfs-actions.pod:7992
33137 msgid "guestfs_vgs"
33138 msgstr ""
33139
33140 #. type: verbatim
33141 #: ../src/guestfs-actions.pod:7994
33142 #, no-wrap
33143 msgid ""
33144 " char **\n"
33145 " guestfs_vgs (guestfs_h *g);\n"
33146 "\n"
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs-actions.pod:8003
33151 msgid "See also C<guestfs_vgs_full>."
33152 msgstr ""
33153
33154 #. type: =head2
33155 #: ../src/guestfs-actions.pod:8011
33156 msgid "guestfs_vgs_full"
33157 msgstr ""
33158
33159 #. type: verbatim
33160 #: ../src/guestfs-actions.pod:8013
33161 #, no-wrap
33162 msgid ""
33163 " struct guestfs_lvm_vg_list *\n"
33164 " guestfs_vgs_full (guestfs_h *g);\n"
33165 "\n"
33166 msgstr ""
33167
33168 #. type: textblock
33169 #: ../src/guestfs-actions.pod:8019
33170 msgid ""
33171 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33172 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33173 msgstr ""
33174
33175 #. type: =head2
33176 #: ../src/guestfs-actions.pod:8025
33177 msgid "guestfs_vgscan"
33178 msgstr ""
33179
33180 #. type: verbatim
33181 #: ../src/guestfs-actions.pod:8027
33182 #, no-wrap
33183 msgid ""
33184 " int\n"
33185 " guestfs_vgscan (guestfs_h *g);\n"
33186 "\n"
33187 msgstr ""
33188
33189 #. type: =head2
33190 #: ../src/guestfs-actions.pod:8037
33191 msgid "guestfs_vguuid"
33192 msgstr ""
33193
33194 #. type: verbatim
33195 #: ../src/guestfs-actions.pod:8039
33196 #, no-wrap
33197 msgid ""
33198 " char *\n"
33199 " guestfs_vguuid (guestfs_h *g,\n"
33200 "                 const char *vgname);\n"
33201 "\n"
33202 msgstr ""
33203
33204 #. type: =head2
33205 #: ../src/guestfs-actions.pod:8050
33206 msgid "guestfs_wait_ready"
33207 msgstr ""
33208
33209 #. type: verbatim
33210 #: ../src/guestfs-actions.pod:8052
33211 #, no-wrap
33212 msgid ""
33213 " int\n"
33214 " guestfs_wait_ready (guestfs_h *g);\n"
33215 "\n"
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs-actions.pod:8055
33220 msgid ""
33221 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33222 "instead."
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs-actions.pod:8062
33227 msgid "This function is a no op."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs-actions.pod:8064
33232 msgid ""
33233 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33234 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33235 "is no longer necessary because C<guestfs_launch> now does the waiting."
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs-actions.pod:8069
33240 msgid ""
33241 "If you see any calls to this function in code then you can just remove them, "
33242 "unless you want to retain compatibility with older versions of the API."
33243 msgstr ""
33244
33245 #. type: =head2
33246 #: ../src/guestfs-actions.pod:8077
33247 msgid "guestfs_wc_c"
33248 msgstr ""
33249
33250 #. type: verbatim
33251 #: ../src/guestfs-actions.pod:8079
33252 #, no-wrap
33253 msgid ""
33254 " int\n"
33255 " guestfs_wc_c (guestfs_h *g,\n"
33256 "               const char *path);\n"
33257 "\n"
33258 msgstr ""
33259
33260 #. type: =head2
33261 #: ../src/guestfs-actions.pod:8090
33262 msgid "guestfs_wc_l"
33263 msgstr ""
33264
33265 #. type: verbatim
33266 #: ../src/guestfs-actions.pod:8092
33267 #, no-wrap
33268 msgid ""
33269 " int\n"
33270 " guestfs_wc_l (guestfs_h *g,\n"
33271 "               const char *path);\n"
33272 "\n"
33273 msgstr ""
33274
33275 #. type: =head2
33276 #: ../src/guestfs-actions.pod:8103
33277 msgid "guestfs_wc_w"
33278 msgstr ""
33279
33280 #. type: verbatim
33281 #: ../src/guestfs-actions.pod:8105
33282 #, no-wrap
33283 msgid ""
33284 " int\n"
33285 " guestfs_wc_w (guestfs_h *g,\n"
33286 "               const char *path);\n"
33287 "\n"
33288 msgstr ""
33289
33290 #. type: =head2
33291 #: ../src/guestfs-actions.pod:8116
33292 msgid "guestfs_write"
33293 msgstr ""
33294
33295 #. type: verbatim
33296 #: ../src/guestfs-actions.pod:8118
33297 #, no-wrap
33298 msgid ""
33299 " int\n"
33300 " guestfs_write (guestfs_h *g,\n"
33301 "                const char *path,\n"
33302 "                const char *content,\n"
33303 "                size_t content_size);\n"
33304 "\n"
33305 msgstr ""
33306
33307 #. type: textblock
33308 #: ../src/guestfs-actions.pod:8127
33309 msgid "See also C<guestfs_write_append>."
33310 msgstr ""
33311
33312 #. type: =head2
33313 #: ../src/guestfs-actions.pod:8136
33314 msgid "guestfs_write_append"
33315 msgstr ""
33316
33317 #. type: verbatim
33318 #: ../src/guestfs-actions.pod:8138
33319 #, no-wrap
33320 msgid ""
33321 " int\n"
33322 " guestfs_write_append (guestfs_h *g,\n"
33323 "                       const char *path,\n"
33324 "                       const char *content,\n"
33325 "                       size_t content_size);\n"
33326 "\n"
33327 msgstr ""
33328
33329 #. type: textblock
33330 #: ../src/guestfs-actions.pod:8147
33331 msgid "See also C<guestfs_write>."
33332 msgstr ""
33333
33334 #. type: =head2
33335 #: ../src/guestfs-actions.pod:8156
33336 msgid "guestfs_write_file"
33337 msgstr ""
33338
33339 #. type: verbatim
33340 #: ../src/guestfs-actions.pod:8158
33341 #, no-wrap
33342 msgid ""
33343 " int\n"
33344 " guestfs_write_file (guestfs_h *g,\n"
33345 "                     const char *path,\n"
33346 "                     const char *content,\n"
33347 "                     int size);\n"
33348 "\n"
33349 msgstr ""
33350
33351 #. type: textblock
33352 #: ../src/guestfs-actions.pod:8164
33353 msgid ""
33354 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33355 "instead."
33356 msgstr ""
33357
33358 #. type: =head2
33359 #: ../src/guestfs-actions.pod:8189
33360 msgid "guestfs_zegrep"
33361 msgstr ""
33362
33363 #. type: verbatim
33364 #: ../src/guestfs-actions.pod:8191
33365 #, no-wrap
33366 msgid ""
33367 " char **\n"
33368 " guestfs_zegrep (guestfs_h *g,\n"
33369 "                 const char *regex,\n"
33370 "                 const char *path);\n"
33371 "\n"
33372 msgstr ""
33373
33374 #. type: =head2
33375 #: ../src/guestfs-actions.pod:8208
33376 msgid "guestfs_zegrepi"
33377 msgstr ""
33378
33379 #. type: verbatim
33380 #: ../src/guestfs-actions.pod:8210
33381 #, no-wrap
33382 msgid ""
33383 " char **\n"
33384 " guestfs_zegrepi (guestfs_h *g,\n"
33385 "                  const char *regex,\n"
33386 "                  const char *path);\n"
33387 "\n"
33388 msgstr ""
33389
33390 #. type: =head2
33391 #: ../src/guestfs-actions.pod:8227
33392 msgid "guestfs_zero"
33393 msgstr ""
33394
33395 #. type: verbatim
33396 #: ../src/guestfs-actions.pod:8229
33397 #, no-wrap
33398 msgid ""
33399 " int\n"
33400 " guestfs_zero (guestfs_h *g,\n"
33401 "               const char *device);\n"
33402 "\n"
33403 msgstr ""
33404
33405 #. type: textblock
33406 #: ../src/guestfs-actions.pod:8243
33407 msgid ""
33408 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33409 "C<guestfs_is_zero_device>"
33410 msgstr ""
33411
33412 #. type: =head2
33413 #: ../src/guestfs-actions.pod:8255
33414 msgid "guestfs_zero_device"
33415 msgstr ""
33416
33417 #. type: verbatim
33418 #: ../src/guestfs-actions.pod:8257
33419 #, no-wrap
33420 msgid ""
33421 " int\n"
33422 " guestfs_zero_device (guestfs_h *g,\n"
33423 "                      const char *device);\n"
33424 "\n"
33425 msgstr ""
33426
33427 #. type: textblock
33428 #: ../src/guestfs-actions.pod:8261
33429 msgid ""
33430 "This command writes zeroes over the entire C<device>.  Compare with "
33431 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs-actions.pod:8276
33436 msgid "(Added in 1.3.1)"
33437 msgstr ""
33438
33439 #. type: =head2
33440 #: ../src/guestfs-actions.pod:8278
33441 msgid "guestfs_zerofree"
33442 msgstr ""
33443
33444 #. type: verbatim
33445 #: ../src/guestfs-actions.pod:8280
33446 #, no-wrap
33447 msgid ""
33448 " int\n"
33449 " guestfs_zerofree (guestfs_h *g,\n"
33450 "                   const char *device);\n"
33451 "\n"
33452 msgstr ""
33453
33454 #. type: =head2
33455 #: ../src/guestfs-actions.pod:8299
33456 msgid "guestfs_zfgrep"
33457 msgstr ""
33458
33459 #. type: verbatim
33460 #: ../src/guestfs-actions.pod:8301
33461 #, no-wrap
33462 msgid ""
33463 " char **\n"
33464 " guestfs_zfgrep (guestfs_h *g,\n"
33465 "                 const char *pattern,\n"
33466 "                 const char *path);\n"
33467 "\n"
33468 msgstr ""
33469
33470 #. type: =head2
33471 #: ../src/guestfs-actions.pod:8318
33472 msgid "guestfs_zfgrepi"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs-actions.pod:8320
33477 #, no-wrap
33478 msgid ""
33479 " char **\n"
33480 " guestfs_zfgrepi (guestfs_h *g,\n"
33481 "                  const char *pattern,\n"
33482 "                  const char *path);\n"
33483 "\n"
33484 msgstr ""
33485
33486 #. type: =head2
33487 #: ../src/guestfs-actions.pod:8337
33488 msgid "guestfs_zfile"
33489 msgstr ""
33490
33491 #. type: verbatim
33492 #: ../src/guestfs-actions.pod:8339
33493 #, no-wrap
33494 msgid ""
33495 " char *\n"
33496 " guestfs_zfile (guestfs_h *g,\n"
33497 "                const char *meth,\n"
33498 "                const char *path);\n"
33499 "\n"
33500 msgstr ""
33501
33502 #. type: textblock
33503 #: ../src/guestfs-actions.pod:8344
33504 msgid ""
33505 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33506 "instead."
33507 msgstr ""
33508
33509 #. type: textblock
33510 #: ../src/guestfs-actions.pod:8356
33511 msgid ""
33512 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33513 "files."
33514 msgstr ""
33515
33516 #. type: =head2
33517 #: ../src/guestfs-actions.pod:8364
33518 msgid "guestfs_zgrep"
33519 msgstr ""
33520
33521 #. type: verbatim
33522 #: ../src/guestfs-actions.pod:8366
33523 #, no-wrap
33524 msgid ""
33525 " char **\n"
33526 " guestfs_zgrep (guestfs_h *g,\n"
33527 "                const char *regex,\n"
33528 "                const char *path);\n"
33529 "\n"
33530 msgstr ""
33531
33532 #. type: =head2
33533 #: ../src/guestfs-actions.pod:8383
33534 msgid "guestfs_zgrepi"
33535 msgstr ""
33536
33537 #. type: verbatim
33538 #: ../src/guestfs-actions.pod:8385
33539 #, no-wrap
33540 msgid ""
33541 " char **\n"
33542 " guestfs_zgrepi (guestfs_h *g,\n"
33543 "                 const char *regex,\n"
33544 "                 const char *path);\n"
33545 "\n"
33546 msgstr ""
33547
33548 #. type: =item
33549 #: ../src/guestfs-availability.pod:3
33550 msgid "B<augeas>"
33551 msgstr ""
33552
33553 #. type: textblock
33554 #: ../src/guestfs-availability.pod:5
33555 msgid ""
33556 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33557 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33558 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33559 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33560 "L</guestfs_aug_save> L</guestfs_aug_set>"
33561 msgstr ""
33562
33563 #. type: =item
33564 #: ../src/guestfs-availability.pod:21
33565 msgid "B<btrfs>"
33566 msgstr ""
33567
33568 #. type: textblock
33569 #: ../src/guestfs-availability.pod:23
33570 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33571 msgstr ""
33572
33573 #. type: =item
33574 #: ../src/guestfs-availability.pod:26
33575 msgid "B<grub>"
33576 msgstr ""
33577
33578 #. type: textblock
33579 #: ../src/guestfs-availability.pod:28
33580 msgid "The following functions: L</guestfs_grub_install>"
33581 msgstr ""
33582
33583 #. type: =item
33584 #: ../src/guestfs-availability.pod:31
33585 msgid "B<inotify>"
33586 msgstr ""
33587
33588 #. type: textblock
33589 #: ../src/guestfs-availability.pod:33
33590 msgid ""
33591 "The following functions: L</guestfs_inotify_add_watch> L</"
33592 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33593 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33594 msgstr ""
33595
33596 #. type: =item
33597 #: ../src/guestfs-availability.pod:41
33598 msgid "B<linuxfsuuid>"
33599 msgstr ""
33600
33601 #. type: textblock
33602 #: ../src/guestfs-availability.pod:43
33603 msgid ""
33604 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33605 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33606 msgstr ""
33607
33608 #. type: =item
33609 #: ../src/guestfs-availability.pod:50
33610 msgid "B<linuxmodules>"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs-availability.pod:52
33615 msgid "The following functions: L</guestfs_modprobe>"
33616 msgstr ""
33617
33618 #. type: =item
33619 #: ../src/guestfs-availability.pod:55
33620 msgid "B<linuxxattrs>"
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs-availability.pod:57
33625 msgid ""
33626 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33627 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33628 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33629 "guestfs_setxattr>"
33630 msgstr ""
33631
33632 #. type: =item
33633 #: ../src/guestfs-availability.pod:68
33634 msgid "B<luks>"
33635 msgstr ""
33636
33637 #. type: textblock
33638 #: ../src/guestfs-availability.pod:70
33639 msgid ""
33640 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33641 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33642 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33643 msgstr ""
33644
33645 #. type: =item
33646 #: ../src/guestfs-availability.pod:79
33647 msgid "B<lvm2>"
33648 msgstr ""
33649
33650 #. type: textblock
33651 #: ../src/guestfs-availability.pod:81
33652 msgid ""
33653 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33654 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33655 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33656 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33657 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33658 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33659 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33660 msgstr ""
33661
33662 #. type: =item
33663 #: ../src/guestfs-availability.pod:104
33664 msgid "B<mknod>"
33665 msgstr ""
33666
33667 #. type: textblock
33668 #: ../src/guestfs-availability.pod:106
33669 msgid ""
33670 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33671 "guestfs_mknod_b> L</guestfs_mknod_c>"
33672 msgstr ""
33673
33674 #. type: =item
33675 #: ../src/guestfs-availability.pod:112
33676 msgid "B<ntfs3g>"
33677 msgstr ""
33678
33679 #. type: textblock
33680 #: ../src/guestfs-availability.pod:114
33681 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33682 msgstr ""
33683
33684 #. type: =item
33685 #: ../src/guestfs-availability.pod:117
33686 msgid "B<ntfsprogs>"
33687 msgstr ""
33688
33689 #. type: textblock
33690 #: ../src/guestfs-availability.pod:119
33691 msgid ""
33692 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33693 "L</guestfs_ntfsresize_size>"
33694 msgstr ""
33695
33696 #. type: =item
33697 #: ../src/guestfs-availability.pod:124
33698 msgid "B<realpath>"
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs-availability.pod:126
33703 msgid "The following functions: L</guestfs_realpath>"
33704 msgstr ""
33705
33706 #. type: =item
33707 #: ../src/guestfs-availability.pod:129
33708 msgid "B<scrub>"
33709 msgstr ""
33710
33711 #. type: textblock
33712 #: ../src/guestfs-availability.pod:131
33713 msgid ""
33714 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33715 "guestfs_scrub_freespace>"
33716 msgstr ""
33717
33718 #. type: =item
33719 #: ../src/guestfs-availability.pod:136
33720 msgid "B<selinux>"
33721 msgstr ""
33722
33723 #. type: textblock
33724 #: ../src/guestfs-availability.pod:138
33725 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33726 msgstr ""
33727
33728 #. type: =item
33729 #: ../src/guestfs-availability.pod:142
33730 msgid "B<xz>"
33731 msgstr ""
33732
33733 #. type: textblock
33734 #: ../src/guestfs-availability.pod:144
33735 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33736 msgstr ""
33737
33738 #. type: =item
33739 #: ../src/guestfs-availability.pod:148
33740 msgid "B<zerofree>"
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs-availability.pod:150
33745 msgid "The following functions: L</guestfs_zerofree>"
33746 msgstr ""
33747
33748 #. type: =head2
33749 #: ../src/guestfs-structs.pod:1
33750 msgid "guestfs_int_bool"
33751 msgstr ""
33752
33753 #. type: verbatim
33754 #: ../src/guestfs-structs.pod:3
33755 #, no-wrap
33756 msgid ""
33757 " struct guestfs_int_bool {\n"
33758 "   int32_t i;\n"
33759 "   int32_t b;\n"
33760 " };\n"
33761 " \n"
33762 msgstr ""
33763
33764 #. type: verbatim
33765 #: ../src/guestfs-structs.pod:8
33766 #, no-wrap
33767 msgid ""
33768 " struct guestfs_int_bool_list {\n"
33769 "   uint32_t len; /* Number of elements in list. */\n"
33770 "   struct guestfs_int_bool *val; /* Elements. */\n"
33771 " };\n"
33772 " \n"
33773 msgstr ""
33774
33775 #. type: verbatim
33776 #: ../src/guestfs-structs.pod:13
33777 #, no-wrap
33778 msgid ""
33779 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33780 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33781 "\n"
33782 msgstr ""
33783
33784 #. type: =head2
33785 #: ../src/guestfs-structs.pod:16
33786 msgid "guestfs_lvm_pv"
33787 msgstr ""
33788
33789 #. type: verbatim
33790 #: ../src/guestfs-structs.pod:18
33791 #, no-wrap
33792 msgid ""
33793 " struct guestfs_lvm_pv {\n"
33794 "   char *pv_name;\n"
33795 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33796 "   char pv_uuid[32];\n"
33797 "   char *pv_fmt;\n"
33798 "   uint64_t pv_size;\n"
33799 "   uint64_t dev_size;\n"
33800 "   uint64_t pv_free;\n"
33801 "   uint64_t pv_used;\n"
33802 "   char *pv_attr;\n"
33803 "   int64_t pv_pe_count;\n"
33804 "   int64_t pv_pe_alloc_count;\n"
33805 "   char *pv_tags;\n"
33806 "   uint64_t pe_start;\n"
33807 "   int64_t pv_mda_count;\n"
33808 "   uint64_t pv_mda_free;\n"
33809 " };\n"
33810 " \n"
33811 msgstr ""
33812
33813 #. type: verbatim
33814 #: ../src/guestfs-structs.pod:36
33815 #, no-wrap
33816 msgid ""
33817 " struct guestfs_lvm_pv_list {\n"
33818 "   uint32_t len; /* Number of elements in list. */\n"
33819 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33820 " };\n"
33821 " \n"
33822 msgstr ""
33823
33824 #. type: verbatim
33825 #: ../src/guestfs-structs.pod:41
33826 #, no-wrap
33827 msgid ""
33828 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33829 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33830 "\n"
33831 msgstr ""
33832
33833 #. type: =head2
33834 #: ../src/guestfs-structs.pod:44
33835 msgid "guestfs_lvm_vg"
33836 msgstr ""
33837
33838 #. type: verbatim
33839 #: ../src/guestfs-structs.pod:46
33840 #, no-wrap
33841 msgid ""
33842 " struct guestfs_lvm_vg {\n"
33843 "   char *vg_name;\n"
33844 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33845 "   char vg_uuid[32];\n"
33846 "   char *vg_fmt;\n"
33847 "   char *vg_attr;\n"
33848 "   uint64_t vg_size;\n"
33849 "   uint64_t vg_free;\n"
33850 "   char *vg_sysid;\n"
33851 "   uint64_t vg_extent_size;\n"
33852 "   int64_t vg_extent_count;\n"
33853 "   int64_t vg_free_count;\n"
33854 "   int64_t max_lv;\n"
33855 "   int64_t max_pv;\n"
33856 "   int64_t pv_count;\n"
33857 "   int64_t lv_count;\n"
33858 "   int64_t snap_count;\n"
33859 "   int64_t vg_seqno;\n"
33860 "   char *vg_tags;\n"
33861 "   int64_t vg_mda_count;\n"
33862 "   uint64_t vg_mda_free;\n"
33863 " };\n"
33864 " \n"
33865 msgstr ""
33866
33867 #. type: verbatim
33868 #: ../src/guestfs-structs.pod:69
33869 #, no-wrap
33870 msgid ""
33871 " struct guestfs_lvm_vg_list {\n"
33872 "   uint32_t len; /* Number of elements in list. */\n"
33873 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33874 " };\n"
33875 " \n"
33876 msgstr ""
33877
33878 #. type: verbatim
33879 #: ../src/guestfs-structs.pod:74
33880 #, no-wrap
33881 msgid ""
33882 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33883 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33884 "\n"
33885 msgstr ""
33886
33887 #. type: =head2
33888 #: ../src/guestfs-structs.pod:77
33889 msgid "guestfs_lvm_lv"
33890 msgstr ""
33891
33892 #. type: verbatim
33893 #: ../src/guestfs-structs.pod:79
33894 #, no-wrap
33895 msgid ""
33896 " struct guestfs_lvm_lv {\n"
33897 "   char *lv_name;\n"
33898 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33899 "   char lv_uuid[32];\n"
33900 "   char *lv_attr;\n"
33901 "   int64_t lv_major;\n"
33902 "   int64_t lv_minor;\n"
33903 "   int64_t lv_kernel_major;\n"
33904 "   int64_t lv_kernel_minor;\n"
33905 "   uint64_t lv_size;\n"
33906 "   int64_t seg_count;\n"
33907 "   char *origin;\n"
33908 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33909 "   float snap_percent;\n"
33910 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33911 "   float copy_percent;\n"
33912 "   char *move_pv;\n"
33913 "   char *lv_tags;\n"
33914 "   char *mirror_log;\n"
33915 "   char *modules;\n"
33916 " };\n"
33917 " \n"
33918 msgstr ""
33919
33920 #. type: verbatim
33921 #: ../src/guestfs-structs.pod:101
33922 #, no-wrap
33923 msgid ""
33924 " struct guestfs_lvm_lv_list {\n"
33925 "   uint32_t len; /* Number of elements in list. */\n"
33926 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33927 " };\n"
33928 " \n"
33929 msgstr ""
33930
33931 #. type: verbatim
33932 #: ../src/guestfs-structs.pod:106
33933 #, no-wrap
33934 msgid ""
33935 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33936 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33937 "\n"
33938 msgstr ""
33939
33940 #. type: verbatim
33941 #: ../src/guestfs-structs.pod:111
33942 #, no-wrap
33943 msgid ""
33944 " struct guestfs_stat {\n"
33945 "   int64_t dev;\n"
33946 "   int64_t ino;\n"
33947 "   int64_t mode;\n"
33948 "   int64_t nlink;\n"
33949 "   int64_t uid;\n"
33950 "   int64_t gid;\n"
33951 "   int64_t rdev;\n"
33952 "   int64_t size;\n"
33953 "   int64_t blksize;\n"
33954 "   int64_t blocks;\n"
33955 "   int64_t atime;\n"
33956 "   int64_t mtime;\n"
33957 "   int64_t ctime;\n"
33958 " };\n"
33959 " \n"
33960 msgstr ""
33961
33962 #. type: verbatim
33963 #: ../src/guestfs-structs.pod:127
33964 #, no-wrap
33965 msgid ""
33966 " struct guestfs_stat_list {\n"
33967 "   uint32_t len; /* Number of elements in list. */\n"
33968 "   struct guestfs_stat *val; /* Elements. */\n"
33969 " };\n"
33970 " \n"
33971 msgstr ""
33972
33973 #. type: verbatim
33974 #: ../src/guestfs-structs.pod:132
33975 #, no-wrap
33976 msgid ""
33977 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33978 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33979 "\n"
33980 msgstr ""
33981
33982 #. type: verbatim
33983 #: ../src/guestfs-structs.pod:137
33984 #, no-wrap
33985 msgid ""
33986 " struct guestfs_statvfs {\n"
33987 "   int64_t bsize;\n"
33988 "   int64_t frsize;\n"
33989 "   int64_t blocks;\n"
33990 "   int64_t bfree;\n"
33991 "   int64_t bavail;\n"
33992 "   int64_t files;\n"
33993 "   int64_t ffree;\n"
33994 "   int64_t favail;\n"
33995 "   int64_t fsid;\n"
33996 "   int64_t flag;\n"
33997 "   int64_t namemax;\n"
33998 " };\n"
33999 " \n"
34000 msgstr ""
34001
34002 #. type: verbatim
34003 #: ../src/guestfs-structs.pod:151
34004 #, no-wrap
34005 msgid ""
34006 " struct guestfs_statvfs_list {\n"
34007 "   uint32_t len; /* Number of elements in list. */\n"
34008 "   struct guestfs_statvfs *val; /* Elements. */\n"
34009 " };\n"
34010 " \n"
34011 msgstr ""
34012
34013 #. type: verbatim
34014 #: ../src/guestfs-structs.pod:156
34015 #, no-wrap
34016 msgid ""
34017 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34018 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34019 "\n"
34020 msgstr ""
34021
34022 #. type: =head2
34023 #: ../src/guestfs-structs.pod:159
34024 msgid "guestfs_dirent"
34025 msgstr ""
34026
34027 #. type: verbatim
34028 #: ../src/guestfs-structs.pod:161
34029 #, no-wrap
34030 msgid ""
34031 " struct guestfs_dirent {\n"
34032 "   int64_t ino;\n"
34033 "   char ftyp;\n"
34034 "   char *name;\n"
34035 " };\n"
34036 " \n"
34037 msgstr ""
34038
34039 #. type: verbatim
34040 #: ../src/guestfs-structs.pod:167
34041 #, no-wrap
34042 msgid ""
34043 " struct guestfs_dirent_list {\n"
34044 "   uint32_t len; /* Number of elements in list. */\n"
34045 "   struct guestfs_dirent *val; /* Elements. */\n"
34046 " };\n"
34047 " \n"
34048 msgstr ""
34049
34050 #. type: verbatim
34051 #: ../src/guestfs-structs.pod:172
34052 #, no-wrap
34053 msgid ""
34054 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34055 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34056 "\n"
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs-structs.pod:177
34061 #, no-wrap
34062 msgid ""
34063 " struct guestfs_version {\n"
34064 "   int64_t major;\n"
34065 "   int64_t minor;\n"
34066 "   int64_t release;\n"
34067 "   char *extra;\n"
34068 " };\n"
34069 " \n"
34070 msgstr ""
34071
34072 #. type: verbatim
34073 #: ../src/guestfs-structs.pod:184
34074 #, no-wrap
34075 msgid ""
34076 " struct guestfs_version_list {\n"
34077 "   uint32_t len; /* Number of elements in list. */\n"
34078 "   struct guestfs_version *val; /* Elements. */\n"
34079 " };\n"
34080 " \n"
34081 msgstr ""
34082
34083 #. type: verbatim
34084 #: ../src/guestfs-structs.pod:189
34085 #, no-wrap
34086 msgid ""
34087 " void guestfs_free_version (struct guestfs_free_version *);\n"
34088 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34089 "\n"
34090 msgstr ""
34091
34092 #. type: =head2
34093 #: ../src/guestfs-structs.pod:192
34094 msgid "guestfs_xattr"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs-structs.pod:194
34099 #, no-wrap
34100 msgid ""
34101 " struct guestfs_xattr {\n"
34102 "   char *attrname;\n"
34103 "   /* The next two fields describe a byte array. */\n"
34104 "   uint32_t attrval_len;\n"
34105 "   char *attrval;\n"
34106 " };\n"
34107 " \n"
34108 msgstr ""
34109
34110 #. type: verbatim
34111 #: ../src/guestfs-structs.pod:201
34112 #, no-wrap
34113 msgid ""
34114 " struct guestfs_xattr_list {\n"
34115 "   uint32_t len; /* Number of elements in list. */\n"
34116 "   struct guestfs_xattr *val; /* Elements. */\n"
34117 " };\n"
34118 " \n"
34119 msgstr ""
34120
34121 #. type: verbatim
34122 #: ../src/guestfs-structs.pod:206
34123 #, no-wrap
34124 msgid ""
34125 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34126 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34127 "\n"
34128 msgstr ""
34129
34130 #. type: =head2
34131 #: ../src/guestfs-structs.pod:209
34132 msgid "guestfs_inotify_event"
34133 msgstr ""
34134
34135 #. type: verbatim
34136 #: ../src/guestfs-structs.pod:211
34137 #, no-wrap
34138 msgid ""
34139 " struct guestfs_inotify_event {\n"
34140 "   int64_t in_wd;\n"
34141 "   uint32_t in_mask;\n"
34142 "   uint32_t in_cookie;\n"
34143 "   char *in_name;\n"
34144 " };\n"
34145 " \n"
34146 msgstr ""
34147
34148 #. type: verbatim
34149 #: ../src/guestfs-structs.pod:218
34150 #, no-wrap
34151 msgid ""
34152 " struct guestfs_inotify_event_list {\n"
34153 "   uint32_t len; /* Number of elements in list. */\n"
34154 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34155 " };\n"
34156 " \n"
34157 msgstr ""
34158
34159 #. type: verbatim
34160 #: ../src/guestfs-structs.pod:223
34161 #, no-wrap
34162 msgid ""
34163 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34164 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34165 "\n"
34166 msgstr ""
34167
34168 #. type: =head2
34169 #: ../src/guestfs-structs.pod:226
34170 msgid "guestfs_partition"
34171 msgstr ""
34172
34173 #. type: verbatim
34174 #: ../src/guestfs-structs.pod:228
34175 #, no-wrap
34176 msgid ""
34177 " struct guestfs_partition {\n"
34178 "   int32_t part_num;\n"
34179 "   uint64_t part_start;\n"
34180 "   uint64_t part_end;\n"
34181 "   uint64_t part_size;\n"
34182 " };\n"
34183 " \n"
34184 msgstr ""
34185
34186 #. type: verbatim
34187 #: ../src/guestfs-structs.pod:235
34188 #, no-wrap
34189 msgid ""
34190 " struct guestfs_partition_list {\n"
34191 "   uint32_t len; /* Number of elements in list. */\n"
34192 "   struct guestfs_partition *val; /* Elements. */\n"
34193 " };\n"
34194 " \n"
34195 msgstr ""
34196
34197 #. type: verbatim
34198 #: ../src/guestfs-structs.pod:240
34199 #, no-wrap
34200 msgid ""
34201 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34202 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34203 "\n"
34204 msgstr ""
34205
34206 #. type: =head2
34207 #: ../src/guestfs-structs.pod:243
34208 msgid "guestfs_application"
34209 msgstr ""
34210
34211 #. type: verbatim
34212 #: ../src/guestfs-structs.pod:245
34213 #, no-wrap
34214 msgid ""
34215 " struct guestfs_application {\n"
34216 "   char *app_name;\n"
34217 "   char *app_display_name;\n"
34218 "   int32_t app_epoch;\n"
34219 "   char *app_version;\n"
34220 "   char *app_release;\n"
34221 "   char *app_install_path;\n"
34222 "   char *app_trans_path;\n"
34223 "   char *app_publisher;\n"
34224 "   char *app_url;\n"
34225 "   char *app_source_package;\n"
34226 "   char *app_summary;\n"
34227 "   char *app_description;\n"
34228 " };\n"
34229 " \n"
34230 msgstr ""
34231
34232 #. type: verbatim
34233 #: ../src/guestfs-structs.pod:260
34234 #, no-wrap
34235 msgid ""
34236 " struct guestfs_application_list {\n"
34237 "   uint32_t len; /* Number of elements in list. */\n"
34238 "   struct guestfs_application *val; /* Elements. */\n"
34239 " };\n"
34240 " \n"
34241 msgstr ""
34242
34243 #. type: verbatim
34244 #: ../src/guestfs-structs.pod:265
34245 #, no-wrap
34246 msgid ""
34247 " void guestfs_free_application (struct guestfs_free_application *);\n"
34248 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34249 "\n"
34250 msgstr ""
34251
34252 #. type: textblock
34253 #: ../src/guestfs.pod:5
34254 msgid "guestfs - Library for accessing and modifying virtual machine images"
34255 msgstr ""
34256
34257 #. type: verbatim
34258 #: ../src/guestfs.pod:11
34259 #, no-wrap
34260 msgid ""
34261 " guestfs_h *g = guestfs_create ();\n"
34262 " guestfs_add_drive (g, \"guest.img\");\n"
34263 " guestfs_launch (g);\n"
34264 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34265 " guestfs_touch (g, \"/hello\");\n"
34266 " guestfs_umount (g, \"/\");\n"
34267 " guestfs_close (g);\n"
34268 "\n"
34269 msgstr ""
34270 " guestfs_h *g = guestfs_create ();\n"
34271 " guestfs_add_drive (g, \"guest.img\");\n"
34272 " guestfs_launch (g);\n"
34273 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34274 " guestfs_touch (g, \"/hello\");\n"
34275 " guestfs_umount (g, \"/\");\n"
34276 " guestfs_close (g);\n"
34277 "\n"
34278
34279 #. type: textblock
34280 #: ../src/guestfs.pod:25
34281 msgid ""
34282 "Libguestfs is a library for accessing and modifying guest disk images.  "
34283 "Amongst the things this is good for: making batch configuration changes to "
34284 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34285 "between virtualization systems (see also: virt-p2v), performing partial "
34286 "backups, performing partial guest clones, cloning guests and changing "
34287 "registry/UUID/hostname info, and much else besides."
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:33
34292 msgid ""
34293 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34294 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34295 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34296 "qcow2, vmdk."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:38
34301 msgid ""
34302 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34303 "what filesystem is in each LV, etc.).  It can also run commands in the "
34304 "context of the guest.  Also you can access filesystems over FUSE."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:43
34309 msgid ""
34310 "Libguestfs is a library that can be linked with C and C++ management "
34311 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34312 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34313 "command line."
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:48
34318 msgid ""
34319 "You don't need to be root to use libguestfs, although obviously you do need "
34320 "enough permissions to access the disk images."
34321 msgstr ""
34322
34323 #. type: textblock
34324 #: ../src/guestfs.pod:51
34325 msgid ""
34326 "Libguestfs is a large API because it can do many things.  For a gentle "
34327 "introduction, please read the L</API OVERVIEW> section next."
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:54
34332 msgid ""
34333 "There are also some example programs in the L<guestfs-examples(3)> manual "
34334 "page."
34335 msgstr ""
34336
34337 #. type: =head1
34338 #: ../src/guestfs.pod:57
34339 msgid "API OVERVIEW"
34340 msgstr ""
34341
34342 #. type: textblock
34343 #: ../src/guestfs.pod:59
34344 msgid ""
34345 "This section provides a gentler overview of the libguestfs API.  We also try "
34346 "to group API calls together, where that may not be obvious from reading "
34347 "about the individual calls in the main section of this manual."
34348 msgstr ""
34349
34350 #. type: =head2
34351 #: ../src/guestfs.pod:64
34352 msgid "HANDLES"
34353 msgstr ""
34354
34355 #. type: textblock
34356 #: ../src/guestfs.pod:66
34357 msgid ""
34358 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34359 "must add at least one disk image to the handle, followed by launching the "
34360 "handle, then performing whatever operations you want, and finally closing "
34361 "the handle.  By convention we use the single letter C<g> for the name of the "
34362 "handle variable, although of course you can use any name you want."
34363 msgstr ""
34364
34365 #. type: textblock
34366 #: ../src/guestfs.pod:73
34367 msgid "The general structure of all libguestfs-using programs looks like this:"
34368 msgstr ""
34369
34370 #. type: verbatim
34371 #: ../src/guestfs.pod:76
34372 #, no-wrap
34373 msgid ""
34374 " guestfs_h *g = guestfs_create ();\n"
34375 " \n"
34376 msgstr ""
34377
34378 #. type: verbatim
34379 #: ../src/guestfs.pod:78
34380 #, no-wrap
34381 msgid ""
34382 " /* Call guestfs_add_drive additional times if there are\n"
34383 "  * multiple disk images.\n"
34384 "  */\n"
34385 " guestfs_add_drive (g, \"guest.img\");\n"
34386 " \n"
34387 msgstr ""
34388
34389 #. type: verbatim
34390 #: ../src/guestfs.pod:83
34391 #, no-wrap
34392 msgid ""
34393 " /* Most manipulation calls won't work until you've launched\n"
34394 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34395 "  * and _before_ other commands.\n"
34396 "  */\n"
34397 " guestfs_launch (g);\n"
34398 " \n"
34399 msgstr ""
34400
34401 #. type: verbatim
34402 #: ../src/guestfs.pod:89
34403 #, no-wrap
34404 msgid ""
34405 " /* Now you can examine what partitions, LVs etc are available.\n"
34406 "  */\n"
34407 " char **partitions = guestfs_list_partitions (g);\n"
34408 " char **logvols = guestfs_lvs (g);\n"
34409 " \n"
34410 msgstr ""
34411
34412 #. type: verbatim
34413 #: ../src/guestfs.pod:94
34414 #, no-wrap
34415 msgid ""
34416 " /* To access a filesystem in the image, you must mount it.\n"
34417 "  */\n"
34418 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34419 " \n"
34420 msgstr ""
34421
34422 #. type: verbatim
34423 #: ../src/guestfs.pod:98
34424 #, no-wrap
34425 msgid ""
34426 " /* Now you can perform filesystem actions on the guest\n"
34427 "  * disk image.\n"
34428 "  */\n"
34429 " guestfs_touch (g, \"/hello\");\n"
34430 " \n"
34431 msgstr ""
34432
34433 #. type: verbatim
34434 #: ../src/guestfs.pod:103
34435 #, no-wrap
34436 msgid ""
34437 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34438 "  * it is done automatically when you close the handle.  See\n"
34439 "  * discussion of autosync in this page.\n"
34440 "  */\n"
34441 " guestfs_sync (g);\n"
34442 " \n"
34443 msgstr ""
34444
34445 #. type: verbatim
34446 #: ../src/guestfs.pod:109
34447 #, no-wrap
34448 msgid ""
34449 " /* Close the handle 'g'. */\n"
34450 " guestfs_close (g);\n"
34451 "\n"
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:112
34456 msgid ""
34457 "The code above doesn't include any error checking.  In real code you should "
34458 "check return values carefully for errors.  In general all functions that "
34459 "return integers return C<-1> on error, and all functions that return "
34460 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34461 "how to handle errors, and consult the documentation for each function call "
34462 "below to see precisely how they return error indications.  See L<guestfs-"
34463 "examples(3)> for fully worked examples."
34464 msgstr ""
34465
34466 #. type: =head2
34467 #: ../src/guestfs.pod:121
34468 msgid "DISK IMAGES"
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:123
34473 msgid ""
34474 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34475 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34476 "actual block device, or simply an empty file of zeroes that you have created "
34477 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34478 "of these."
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:129
34483 msgid ""
34484 "The call you should use in modern code for adding drives is L</"
34485 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34486 "specifying that the format is raw, do:"
34487 msgstr ""
34488
34489 #. type: verbatim
34490 #: ../src/guestfs.pod:133
34491 #, no-wrap
34492 msgid ""
34493 " guestfs_add_drive_opts (g, filename,\n"
34494 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34495 "                         -1);\n"
34496 "\n"
34497 msgstr ""
34498
34499 #. type: textblock
34500 #: ../src/guestfs.pod:137
34501 msgid "You can add a disk read-only using:"
34502 msgstr ""
34503
34504 #. type: verbatim
34505 #: ../src/guestfs.pod:139
34506 #, no-wrap
34507 msgid ""
34508 " guestfs_add_drive_opts (g, filename,\n"
34509 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34510 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34511 "                         -1);\n"
34512 "\n"
34513 msgstr ""
34514
34515 #. type: textblock
34516 #: ../src/guestfs.pod:144
34517 msgid ""
34518 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34519 "libguestfs won't modify the file."
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:147
34524 msgid ""
34525 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34526 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34527 "corruption, but adding it read-only is safe."
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:151
34532 msgid ""
34533 "You must add at least one disk image, and you may add multiple disk images.  "
34534 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34535 "first one you added), C</dev/sdb> (for the second one you added), etc."
34536 msgstr ""
34537
34538 #. type: textblock
34539 #: ../src/guestfs.pod:156
34540 msgid ""
34541 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34542 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34543 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34544 msgstr ""
34545
34546 #. type: =head2
34547 #: ../src/guestfs.pod:161
34548 msgid "MOUNTING"
34549 msgstr ""
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:163
34553 msgid ""
34554 "Before you can read or write files, create directories and so on in a disk "
34555 "image that contains filesystems, you have to mount those filesystems using "
34556 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34557 "a disk image contains (for example) one partition with a filesystem on that "
34558 "partition, then you can mount it directly:"
34559 msgstr ""
34560
34561 #. type: verbatim
34562 #: ../src/guestfs.pod:170
34563 #, no-wrap
34564 msgid ""
34565 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34566 "\n"
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:172
34571 msgid ""
34572 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34573 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34574 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34575 "that these are libguestfs virtual devices, and are nothing to do with host "
34576 "devices."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:178
34581 msgid ""
34582 "If you are given a disk image and you don't know what it contains then you "
34583 "have to find out.  Libguestfs can do that too: use L</"
34584 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34585 "LVs, and either try mounting each to see what is mountable, or else examine "
34586 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34587 "filesystems, use L</guestfs_list_filesystems>."
34588 msgstr ""
34589
34590 #. type: textblock
34591 #: ../src/guestfs.pod:186
34592 msgid ""
34593 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34594 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34595 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34596 msgstr ""
34597
34598 #. type: textblock
34599 #: ../src/guestfs.pod:191
34600 msgid ""
34601 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34602 "several other variations of the C<guestfs_mount_*> call."
34603 msgstr ""
34604
34605 #. type: =head2
34606 #: ../src/guestfs.pod:194
34607 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34608 msgstr ""
34609
34610 #. type: textblock
34611 #: ../src/guestfs.pod:196
34612 msgid ""
34613 "The majority of the libguestfs API consists of fairly low-level calls for "
34614 "accessing and modifying the files, directories, symlinks etc on mounted "
34615 "filesystems.  There are over a hundred such calls which you can find listed "
34616 "in detail below in this man page, and we don't even pretend to cover them "
34617 "all in this overview."
34618 msgstr ""
34619
34620 #. type: textblock
34621 #: ../src/guestfs.pod:202
34622 msgid ""
34623 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34624 "mount point."
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:205
34629 msgid ""
34630 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34631 "the file called C<\"etc/passwd\"> then you could do:"
34632 msgstr ""
34633
34634 #. type: verbatim
34635 #: ../src/guestfs.pod:208
34636 #, no-wrap
34637 msgid ""
34638 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34639 "\n"
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:210
34644 msgid ""
34645 "This would return C<data> as a newly allocated buffer containing the full "
34646 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34647 "or C<NULL> if there was an error."
34648 msgstr ""
34649
34650 #. type: textblock
34651 #: ../src/guestfs.pod:214
34652 msgid ""
34653 "As another example, to create a top-level directory on that filesystem "
34654 "called C<\"var\"> you would do:"
34655 msgstr ""
34656
34657 #. type: verbatim
34658 #: ../src/guestfs.pod:217
34659 #, no-wrap
34660 msgid ""
34661 " guestfs_mkdir (g, \"/var\");\n"
34662 "\n"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:219
34667 msgid "To create a symlink you could do:"
34668 msgstr ""
34669
34670 #. type: verbatim
34671 #: ../src/guestfs.pod:221
34672 #, no-wrap
34673 msgid ""
34674 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34675 "               \"/etc/rc3.d/S30portmap\");\n"
34676 "\n"
34677 msgstr ""
34678
34679 #. type: textblock
34680 #: ../src/guestfs.pod:224
34681 msgid ""
34682 "Libguestfs will reject attempts to use relative paths and there is no "
34683 "concept of a current working directory."
34684 msgstr ""
34685
34686 #. type: textblock
34687 #: ../src/guestfs.pod:227
34688 msgid ""
34689 "Libguestfs can return errors in many situations: for example if the "
34690 "filesystem isn't writable, or if a file or directory that you requested "
34691 "doesn't exist.  If you are using the C API (documented here)  you have to "
34692 "check for those error conditions after each call.  (Other language bindings "
34693 "turn these errors into exceptions)."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:233
34698 msgid ""
34699 "File writes are affected by the per-handle umask, set by calling L</"
34700 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34701 msgstr ""
34702
34703 #. type: =head2
34704 #: ../src/guestfs.pod:236
34705 msgid "PARTITIONING"
34706 msgstr ""
34707
34708 #. type: textblock
34709 #: ../src/guestfs.pod:238
34710 msgid ""
34711 "Libguestfs contains API calls to read, create and modify partition tables on "
34712 "disk images."
34713 msgstr ""
34714
34715 #. type: textblock
34716 #: ../src/guestfs.pod:241
34717 msgid ""
34718 "In the common case where you want to create a single partition covering the "
34719 "whole disk, you should use the L</guestfs_part_disk> call:"
34720 msgstr ""
34721
34722 #. type: verbatim
34723 #: ../src/guestfs.pod:245
34724 #, no-wrap
34725 msgid ""
34726 " const char *parttype = \"mbr\";\n"
34727 " if (disk_is_larger_than_2TB)\n"
34728 "   parttype = \"gpt\";\n"
34729 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34730 "\n"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:250
34735 msgid ""
34736 "Obviously this effectively wipes anything that was on that disk image before."
34737 msgstr ""
34738
34739 #. type: =head2
34740 #: ../src/guestfs.pod:253
34741 msgid "LVM2"
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:255
34746 msgid ""
34747 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34748 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34749 "you familiarize yourself with the concepts of physical volumes, volume "
34750 "groups and logical volumes."
34751 msgstr ""
34752
34753 #. type: textblock
34754 #: ../src/guestfs.pod:260
34755 msgid ""
34756 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34757 "tldp.org/HOWTO/LVM-HOWTO/>."
34758 msgstr ""
34759
34760 #. type: =head2
34761 #: ../src/guestfs.pod:263
34762 msgid "DOWNLOADING"
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:265
34767 msgid ""
34768 "Use L</guestfs_cat> to download small, text only files.  This call is "
34769 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34770 "NUL (C<\\0>) characters.  However the API is very simple to use."
34771 msgstr ""
34772
34773 #. type: textblock
34774 #: ../src/guestfs.pod:269
34775 msgid ""
34776 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34777 "bit data, since it returns a (pointer, size) pair.  However it is still "
34778 "limited to \"small\" files, less than 2 MB."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:273
34783 msgid ""
34784 "L</guestfs_download> can be used to download any file, with no limits on "
34785 "content or size (even files larger than 4 GB)."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:276
34790 msgid ""
34791 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34792 msgstr ""
34793
34794 #. type: =head2
34795 #: ../src/guestfs.pod:279
34796 msgid "UPLOADING"
34797 msgstr ""
34798
34799 #. type: textblock
34800 #: ../src/guestfs.pod:281
34801 msgid ""
34802 "It's often the case that you want to write a file or files to the disk image."
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:284
34807 msgid ""
34808 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34809 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34810 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34811 "of other functions for creating test files, for example L</guestfs_fill> and "
34812 "L</guestfs_fill_pattern>."
34813 msgstr ""
34814
34815 #. type: textblock
34816 #: ../src/guestfs.pod:290
34817 msgid ""
34818 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34819 "file content or size (even files larger than 4 GB)."
34820 msgstr ""
34821
34822 #. type: textblock
34823 #: ../src/guestfs.pod:293
34824 msgid ""
34825 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:295
34830 msgid ""
34831 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34832 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34833 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34834 "in a predictable way (eg. adding it last after all other drives) then you "
34835 "can get the device name from L</guestfs_list_devices> and mount it directly "
34836 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34837 "portable between kernel versions, and they don't support labels or UUIDs.  "
34838 "If you want to pre-build an image or you need to mount it using a label or "
34839 "UUID, use an ISO image instead."
34840 msgstr ""
34841
34842 #. type: =head2
34843 #: ../src/guestfs.pod:306
34844 msgid "COPYING"
34845 msgstr ""
34846
34847 #. type: textblock
34848 #: ../src/guestfs.pod:308
34849 msgid ""
34850 "There are various different commands for copying between files and devices "
34851 "and in and out of the guest filesystem.  These are summarised in the table "
34852 "below."
34853 msgstr ""
34854
34855 #. type: =item
34856 #: ../src/guestfs.pod:314
34857 msgid "B<file> to B<file>"
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:316
34862 msgid ""
34863 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34864 "directories recursively."
34865 msgstr ""
34866
34867 #. type: textblock
34868 #: ../src/guestfs.pod:319
34869 msgid ""
34870 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34871 msgstr ""
34872
34873 #. type: =item
34874 #: ../src/guestfs.pod:322
34875 msgid "B<file> to B<device>"
34876 msgstr ""
34877
34878 #. type: =item
34879 #: ../src/guestfs.pod:324
34880 msgid "B<device> to B<file>"
34881 msgstr ""
34882
34883 #. type: =item
34884 #: ../src/guestfs.pod:326
34885 msgid "B<device> to B<device>"
34886 msgstr ""
34887
34888 #. type: textblock
34889 #: ../src/guestfs.pod:328
34890 msgid ""
34891 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
34892 "guestfs_copy_device_to_device>."
34893 msgstr ""
34894
34895 #. type: textblock
34896 #: ../src/guestfs.pod:331
34897 msgid "Example: duplicate the contents of an LV:"
34898 msgstr ""
34899
34900 #. type: verbatim
34901 #: ../src/guestfs.pod:333
34902 #, no-wrap
34903 msgid ""
34904 " guestfs_copy_device_to_device (g,\n"
34905 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34906 "         /* -1 marks the end of the list of optional parameters */\n"
34907 "         -1);\n"
34908 "\n"
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:338
34913 msgid ""
34914 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34915 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34916 "optional C<size> parameter:"
34917 msgstr ""
34918
34919 #. type: verbatim
34920 #: ../src/guestfs.pod:342
34921 #, no-wrap
34922 msgid ""
34923 " guestfs_copy_device_to_device (g,\n"
34924 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34925 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34926 "         -1);\n"
34927 "\n"
34928 msgstr ""
34929
34930 #. type: =item
34931 #: ../src/guestfs.pod:347
34932 msgid "B<file on the host> to B<file or device>"
34933 msgstr ""
34934
34935 #. type: textblock
34936 #: ../src/guestfs.pod:349
34937 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34938 msgstr ""
34939
34940 #. type: =item
34941 #: ../src/guestfs.pod:351
34942 msgid "B<file or device> to B<file on the host>"
34943 msgstr ""
34944
34945 #. type: textblock
34946 #: ../src/guestfs.pod:353
34947 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34948 msgstr ""
34949
34950 #. type: =head2
34951 #: ../src/guestfs.pod:357
34952 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:359
34957 msgid ""
34958 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34959 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34960 "appears you can only upload and download to files.  However many Un*x-like "
34961 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34962 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34963 "and arbitrary file descriptor N."
34964 msgstr ""
34965
34966 #. type: textblock
34967 #: ../src/guestfs.pod:367
34968 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34969 msgstr ""
34970
34971 #. type: verbatim
34972 #: ../src/guestfs.pod:370
34973 #, no-wrap
34974 msgid ""
34975 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34976 "\n"
34977 msgstr ""
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:372
34981 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34982 msgstr ""
34983
34984 #. type: verbatim
34985 #: ../src/guestfs.pod:374
34986 #, no-wrap
34987 msgid ""
34988 " char devfd[64];\n"
34989 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34990 " guestfs_tar_out (g, \"/\", devfd);\n"
34991 "\n"
34992 msgstr ""
34993
34994 #. type: =head2
34995 #: ../src/guestfs.pod:378
34996 msgid "LISTING FILES"
34997 msgstr ""
34998
34999 #. type: textblock
35000 #: ../src/guestfs.pod:380
35001 msgid ""
35002 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35003 "L<guestfish(1)>-equivalent command C<ll>)."
35004 msgstr ""
35005
35006 #. type: textblock
35007 #: ../src/guestfs.pod:383
35008 msgid ""
35009 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35010 "programs, as a flat list of strings."
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:386
35015 msgid ""
35016 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35017 "directory, plus additional information about each one.  It is more "
35018 "equivalent to using the L<readdir(3)> call on a local filesystem."
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:390
35023 msgid ""
35024 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35025 msgstr ""
35026
35027 #. type: =head2
35028 #: ../src/guestfs.pod:393
35029 msgid "RUNNING COMMANDS"
35030 msgstr ""
35031
35032 #. type: textblock
35033 #: ../src/guestfs.pod:395
35034 msgid ""
35035 "Although libguestfs is primarily an API for manipulating files inside guest "
35036 "images, we also provide some limited facilities for running commands inside "
35037 "guests."
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:399
35042 msgid "There are many limitations to this:"
35043 msgstr ""
35044
35045 #. type: textblock
35046 #: ../src/guestfs.pod:405
35047 msgid ""
35048 "The kernel version that the command runs under will be different from what "
35049 "it expects."
35050 msgstr ""
35051
35052 #. type: textblock
35053 #: ../src/guestfs.pod:410
35054 msgid ""
35055 "If the command needs to communicate with daemons, then most likely they "
35056 "won't be running."
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:415
35061 msgid "The command will be running in limited memory."
35062 msgstr ""
35063
35064 #. type: textblock
35065 #: ../src/guestfs.pod:419
35066 msgid ""
35067 "The network may not be available unless you enable it (see L</"
35068 "guestfs_set_network>)."
35069 msgstr ""
35070
35071 #. type: textblock
35072 #: ../src/guestfs.pod:424
35073 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35074 msgstr ""
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:428
35078 msgid ""
35079 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:433
35084 msgid ""
35085 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35086 "See L</SELINUX> in this manpage."
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs.pod:438
35091 msgid ""
35092 "I<Security:> It is not safe to run commands from untrusted, possibly "
35093 "malicious guests.  These commands may attempt to exploit your program by "
35094 "sending unexpected output.  They could also try to exploit the Linux kernel "
35095 "or qemu provided by the libguestfs appliance.  They could use the network "
35096 "provided by the libguestfs appliance to bypass ordinary network partitions "
35097 "and firewalls.  They could use the elevated privileges or different SELinux "
35098 "context of your program to their advantage."
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:447
35103 msgid ""
35104 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35105 "(a script which runs when the guest next boots normally), and to have this "
35106 "script run the commands you want in the normal context of the running guest, "
35107 "network security and so on.  For information about other security issues, "
35108 "see L</SECURITY>."
35109 msgstr ""
35110
35111 #. type: textblock
35112 #: ../src/guestfs.pod:455
35113 msgid ""
35114 "The two main API calls to run commands are L</guestfs_command> and L</"
35115 "guestfs_sh> (there are also variations)."
35116 msgstr ""
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:458
35120 msgid ""
35121 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35122 "shell globs, redirections, etc will work."
35123 msgstr ""
35124
35125 #. type: =head2
35126 #: ../src/guestfs.pod:461
35127 msgid "CONFIGURATION FILES"
35128 msgstr ""
35129
35130 #. type: textblock
35131 #: ../src/guestfs.pod:463
35132 msgid ""
35133 "To read and write configuration files in Linux guest filesystems, we "
35134 "strongly recommend using Augeas.  For example, Augeas understands how to "
35135 "read and write, say, a Linux shadow password file or X.org configuration "
35136 "file, and so avoids you having to write that code."
35137 msgstr ""
35138
35139 #. type: textblock
35140 #: ../src/guestfs.pod:468
35141 msgid ""
35142 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35143 "document Augeas itself here because there is excellent documentation on the "
35144 "L<http://augeas.net/> website."
35145 msgstr ""
35146
35147 #. type: textblock
35148 #: ../src/guestfs.pod:472
35149 msgid ""
35150 "If you don't want to use Augeas (you fool!) then try calling L</"
35151 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35152 "over."
35153 msgstr ""
35154
35155 #. type: =head2
35156 #: ../src/guestfs.pod:476
35157 msgid "SELINUX"
35158 msgstr ""
35159
35160 #. type: textblock
35161 #: ../src/guestfs.pod:478
35162 msgid ""
35163 "We support SELinux guests.  To ensure that labeling happens correctly in "
35164 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35165 msgstr ""
35166
35167 #. type: textblock
35168 #: ../src/guestfs.pod:486
35169 msgid "Before launching, do:"
35170 msgstr ""
35171
35172 #. type: verbatim
35173 #: ../src/guestfs.pod:488
35174 #, no-wrap
35175 msgid ""
35176 " guestfs_set_selinux (g, 1);\n"
35177 "\n"
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:492
35182 msgid ""
35183 "After mounting the guest's filesystem(s), load the policy.  This is best "
35184 "done by running the L<load_policy(8)> command in the guest itself:"
35185 msgstr ""
35186
35187 #. type: verbatim
35188 #: ../src/guestfs.pod:496
35189 #, no-wrap
35190 msgid ""
35191 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35192 "\n"
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:498
35197 msgid ""
35198 "(Older versions of C<load_policy> require you to specify the name of the "
35199 "policy file)."
35200 msgstr ""
35201
35202 #. type: textblock
35203 #: ../src/guestfs.pod:503
35204 msgid ""
35205 "Optionally, set the security context for the API.  The correct security "
35206 "context to use can only be known by inspecting the guest.  As an example:"
35207 msgstr ""
35208
35209 #. type: verbatim
35210 #: ../src/guestfs.pod:507
35211 #, no-wrap
35212 msgid ""
35213 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35214 "\n"
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs.pod:511
35219 msgid "This will work for running commands and editing existing files."
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:513
35224 msgid ""
35225 "When new files are created, you may need to label them explicitly, for "
35226 "example by running the external command C<restorecon pathname>."
35227 msgstr ""
35228
35229 #. type: =head2
35230 #: ../src/guestfs.pod:517
35231 msgid "UMASK"
35232 msgstr ""
35233
35234 #. type: textblock
35235 #: ../src/guestfs.pod:519
35236 msgid ""
35237 "Certain calls are affected by the current file mode creation mask (the "
35238 "\"umask\").  In particular ones which create files or directories, such as "
35239 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35240 "either the default mode that the file is created with or modifies the mode "
35241 "that you supply."
35242 msgstr ""
35243
35244 #. type: textblock
35245 #: ../src/guestfs.pod:525
35246 msgid ""
35247 "The default umask is C<022>, so files are created with modes such as C<0644> "
35248 "and directories with C<0755>."
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:528
35253 msgid ""
35254 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35255 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35256 "guestfs_chmod> after creating each file or directory."
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:532
35261 msgid "For more information about umask, see L<umask(2)>."
35262 msgstr ""
35263
35264 #. type: textblock
35265 #: ../src/guestfs.pod:536
35266 msgid ""
35267 "Libguestfs allows you to access Linux guests which have been encrypted using "
35268 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35269 "standard.  This includes nearly all whole disk encryption systems used by "
35270 "modern Linux guests."
35271 msgstr ""
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:542
35275 msgid ""
35276 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35277 "returns the string C<crypto_LUKS>)."
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:545
35282 msgid ""
35283 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35284 "will require the passphrase!"
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:548
35289 msgid ""
35290 "Opening a LUKS device creates a new device mapper device called C</dev/"
35291 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35292 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35293 "from and encrypted to the underlying block device respectively."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:554
35298 msgid ""
35299 "LVM volume groups on the device can be made visible by calling L</"
35300 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35301 "(s) can now be mounted in the usual way."
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:558
35306 msgid ""
35307 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35308 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35309 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35310 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35311 "underlying encrypted block device)."
35312 msgstr ""
35313
35314 #. type: =head2
35315 #: ../src/guestfs.pod:565
35316 msgid "INSPECTION"
35317 msgstr ""
35318
35319 #. type: textblock
35320 #: ../src/guestfs.pod:567
35321 msgid ""
35322 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35323 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35324 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35325 "version 1.5.3 the most frequently used part of this library has been "
35326 "rewritten in C and moved into the core code)."
35327 msgstr ""
35328
35329 #. type: textblock
35330 #: ../src/guestfs.pod:574
35331 msgid ""
35332 "Add all disks belonging to the unknown virtual machine and call L</"
35333 "guestfs_launch> in the usual way."
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:577
35338 msgid ""
35339 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35340 "and certain heuristics, and returns a list of operating systems that were "
35341 "found.  An empty list means none were found.  A single element is the root "
35342 "filesystem of the operating system.  For dual- or multi-boot guests, "
35343 "multiple roots can be returned, each one corresponding to a separate "
35344 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35345 "world of virtualization, but since this scenario can happen, we have built "
35346 "libguestfs to deal with it.)"
35347 msgstr ""
35348
35349 #. type: textblock
35350 #: ../src/guestfs.pod:586
35351 msgid ""
35352 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35353 "to get additional details about that operating system.  For example, call L</"
35354 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35355 "Windows and Linux-based operating systems respectively."
35356 msgstr ""
35357
35358 #. type: textblock
35359 #: ../src/guestfs.pod:592
35360 msgid ""
35361 "Un*x-like and Linux-based operating systems usually consist of several "
35362 "filesystems which are mounted at boot time (for example, a separate boot "
35363 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35364 "filesystems correspond to mount points.  Call "
35365 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35366 "hash table like this example:"
35367 msgstr ""
35368
35369 #. type: verbatim
35370 #: ../src/guestfs.pod:599
35371 #, no-wrap
35372 msgid ""
35373 " /boot => /dev/sda1\n"
35374 " /     => /dev/vg_guest/lv_root\n"
35375 " /usr  => /dev/vg_guest/lv_usr\n"
35376 "\n"
35377 msgstr ""
35378
35379 #. type: textblock
35380 #: ../src/guestfs.pod:603
35381 msgid ""
35382 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35383 "filesystems as suggested."
35384 msgstr ""
35385
35386 #. type: textblock
35387 #: ../src/guestfs.pod:606
35388 msgid ""
35389 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35390 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35391 msgstr ""
35392
35393 #. type: textblock
35394 #: ../src/guestfs.pod:610
35395 msgid ""
35396 "Inspection currently only works for some common operating systems.  "
35397 "Contributors are welcome to send patches for other operating systems that we "
35398 "currently cannot detect."
35399 msgstr ""
35400
35401 #. type: textblock
35402 #: ../src/guestfs.pod:614
35403 msgid ""
35404 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35405 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35406 "encrypted devices."
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:618
35411 msgid ""
35412 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35413 "inspection and caches the results in the guest handle.  Subsequent calls to "
35414 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35415 "read the disks.  If you change the content of the guest disks, you can redo "
35416 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35417 "guestfs_inspect_list_applications> works a little differently from the other "
35418 "calls and does read the disks.  See documentation for that function for "
35419 "details)."
35420 msgstr ""
35421
35422 #. type: =head3
35423 #: ../src/guestfs.pod:627
35424 msgid "INSPECTING INSTALL DISKS"
35425 msgstr ""
35426
35427 #. type: textblock
35428 #: ../src/guestfs.pod:629
35429 msgid ""
35430 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35431 "CDs and more."
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:632
35436 msgid ""
35437 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35438 "system, which currently can be C<installed> (a regular operating system) or "
35439 "C<installer> (some sort of install disk)."
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:636
35444 msgid ""
35445 "Further information is available about the operating system that can be "
35446 "installed using the regular inspection APIs like L</"
35447 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:641
35452 msgid ""
35453 "Some additional information specific to installer disks is also available "
35454 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35455 "guestfs_inspect_is_multipart> calls."
35456 msgstr ""
35457
35458 #. type: =head2
35459 #: ../src/guestfs.pod:646
35460 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35461 msgstr ""
35462
35463 #. type: textblock
35464 #: ../src/guestfs.pod:648
35465 msgid ""
35466 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35467 "ntfs-3g.org/> driver."
35468 msgstr ""
35469
35470 #. type: =head3
35471 #: ../src/guestfs.pod:651
35472 msgid "DRIVE LETTERS AND PATHS"
35473 msgstr ""
35474
35475 #. type: textblock
35476 #: ../src/guestfs.pod:653
35477 msgid ""
35478 "DOS and Windows still use drive letters, and the filesystems are always "
35479 "treated as case insensitive by Windows itself, and therefore you might find "
35480 "a Windows configuration file referring to a path like C<c:\\windows"
35481 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35482 "might be referred to as C</WINDOWS/System32>."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:659
35487 msgid ""
35488 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35489 "L</guestfs_inspect_get_drive_mappings>)"
35490 msgstr ""
35491
35492 #. type: textblock
35493 #: ../src/guestfs.pod:662
35494 msgid ""
35495 "Dealing with separator characters (backslash vs forward slash) is outside "
35496 "the scope of libguestfs, but usually a simple character replacement will "
35497 "work."
35498 msgstr ""
35499
35500 #. type: textblock
35501 #: ../src/guestfs.pod:666
35502 msgid ""
35503 "To resolve the case insensitivity of paths, call L</"
35504 "guestfs_case_sensitive_path>."
35505 msgstr ""
35506
35507 #. type: =head3
35508 #: ../src/guestfs.pod:669
35509 msgid "ACCESSING THE WINDOWS REGISTRY"
35510 msgstr ""
35511
35512 #. type: textblock
35513 #: ../src/guestfs.pod:671
35514 msgid ""
35515 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35516 "files, through the library C<hivex> which is part of the libguestfs project "
35517 "although ships as a separate tarball.  You have to locate and download the "
35518 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35519 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35520 "reg(1)> for more help on this issue."
35521 msgstr ""
35522
35523 #. type: =head3
35524 #: ../src/guestfs.pod:679
35525 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35526 msgstr ""
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:681
35530 msgid ""
35531 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35532 "provide something which looks like a Linux symlink.  The way it tries to do "
35533 "the rewriting is described here:"
35534 msgstr ""
35535
35536 #. type: textblock
35537 #: ../src/guestfs.pod:685
35538 msgid ""
35539 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35540 "symbolic-links/>"
35541 msgstr ""
35542
35543 #. type: textblock
35544 #: ../src/guestfs.pod:687
35545 msgid ""
35546 "The essential problem is that ntfs-3g simply does not have enough "
35547 "information to do a correct job.  NTFS links can contain drive letters and "
35548 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35549 "It is almost certainly the case that libguestfs callers should ignore what "
35550 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35551 msgstr ""
35552
35553 #. type: textblock
35554 #: ../src/guestfs.pod:694
35555 msgid ""
35556 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35557 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35558 "attribute, and read the raw reparse data from that (you can find the format "
35559 "documented in various places around the web)."
35560 msgstr ""
35561
35562 #. type: =head3
35563 #: ../src/guestfs.pod:699
35564 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:701
35569 msgid ""
35570 "There are other useful extended attributes that can be read from ntfs-3g "
35571 "filesystems (using L</guestfs_getxattr>).  See:"
35572 msgstr ""
35573
35574 #. type: textblock
35575 #: ../src/guestfs.pod:704
35576 msgid ""
35577 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35578 msgstr ""
35579
35580 #. type: =head2
35581 #: ../src/guestfs.pod:706
35582 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:708
35587 msgid ""
35588 "Although we don't want to discourage you from using the C API, we will "
35589 "mention here that the same API is also available in other languages."
35590 msgstr ""
35591
35592 #. type: textblock
35593 #: ../src/guestfs.pod:711
35594 msgid ""
35595 "The API is broadly identical in all supported languages.  This means that "
35596 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35597 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35598 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35599 "each language."
35600 msgstr ""
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:717
35604 msgid ""
35605 "Error messages are automatically transformed into exceptions if the language "
35606 "supports it."
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:720
35611 msgid ""
35612 "We don't try to \"object orientify\" parts of the API in OO languages, "
35613 "although contributors are welcome to write higher level APIs above what we "
35614 "provide in their favourite languages if they wish."
35615 msgstr ""
35616
35617 #. type: =item
35618 #: ../src/guestfs.pod:726
35619 msgid "B<C++>"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:728
35624 msgid ""
35625 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35626 "identical to the C API.  C++ classes and exceptions are not used."
35627 msgstr ""
35628
35629 #. type: =item
35630 #: ../src/guestfs.pod:732
35631 msgid "B<C#>"
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:734
35636 msgid ""
35637 "The C# bindings are highly experimental.  Please read the warnings at the "
35638 "top of C<csharp/Libguestfs.cs>."
35639 msgstr ""
35640
35641 #. type: =item
35642 #: ../src/guestfs.pod:737
35643 msgid "B<Erlang>"
35644 msgstr ""
35645
35646 #. type: textblock
35647 #: ../src/guestfs.pod:739
35648 msgid "See L<guestfs-erlang(3)>."
35649 msgstr ""
35650
35651 #. type: =item
35652 #: ../src/guestfs.pod:741
35653 msgid "B<Haskell>"
35654 msgstr ""
35655
35656 #. type: textblock
35657 #: ../src/guestfs.pod:743
35658 msgid ""
35659 "This is the only language binding that is working but incomplete.  Only "
35660 "calls which return simple integers have been bound in Haskell, and we are "
35661 "looking for help to complete this binding."
35662 msgstr ""
35663
35664 #. type: =item
35665 #: ../src/guestfs.pod:747
35666 msgid "B<Java>"
35667 msgstr ""
35668
35669 #. type: textblock
35670 #: ../src/guestfs.pod:749
35671 msgid ""
35672 "Full documentation is contained in the Javadoc which is distributed with "
35673 "libguestfs.  For examples, see L<guestfs-java(3)>."
35674 msgstr ""
35675
35676 #. type: =item
35677 #: ../src/guestfs.pod:752
35678 msgid "B<OCaml>"
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:754
35683 msgid "See L<guestfs-ocaml(3)>."
35684 msgstr ""
35685
35686 #. type: =item
35687 #: ../src/guestfs.pod:756
35688 msgid "B<Perl>"
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:758
35693 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35694 msgstr ""
35695
35696 #. type: =item
35697 #: ../src/guestfs.pod:760
35698 msgid "B<PHP>"
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:762
35703 msgid ""
35704 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35705 "the php-libguestfs package for your distribution."
35706 msgstr ""
35707
35708 #. type: textblock
35709 #: ../src/guestfs.pod:765
35710 msgid "The PHP binding only works correctly on 64 bit machines."
35711 msgstr ""
35712
35713 #. type: =item
35714 #: ../src/guestfs.pod:767
35715 msgid "B<Python>"
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:769
35720 msgid "See L<guestfs-python(3)>."
35721 msgstr ""
35722
35723 #. type: =item
35724 #: ../src/guestfs.pod:771
35725 msgid "B<Ruby>"
35726 msgstr ""
35727
35728 #. type: textblock
35729 #: ../src/guestfs.pod:773
35730 msgid "See L<guestfs-ruby(3)>."
35731 msgstr ""
35732
35733 #. type: =item
35734 #: ../src/guestfs.pod:775
35735 msgid "B<shell scripts>"
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:777
35740 msgid "See L<guestfish(1)>."
35741 msgstr ""
35742
35743 #. type: =head2
35744 #: ../src/guestfs.pod:781
35745 msgid "LIBGUESTFS GOTCHAS"
35746 msgstr ""
35747
35748 #. type: textblock
35749 #: ../src/guestfs.pod:783
35750 msgid ""
35751 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35752 "system [...] that works in the way it is documented but is counterintuitive "
35753 "and almost invites mistakes.\""
35754 msgstr ""
35755
35756 #. type: textblock
35757 #: ../src/guestfs.pod:787
35758 msgid ""
35759 "Since we developed libguestfs and the associated tools, there are several "
35760 "things we would have designed differently, but are now stuck with for "
35761 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35762 "release, you can expect these to change.  Beware of them."
35763 msgstr ""
35764
35765 #. type: =item
35766 #: ../src/guestfs.pod:795
35767 msgid "Autosync / forgetting to sync."
35768 msgstr ""
35769
35770 #. type: textblock
35771 #: ../src/guestfs.pod:797
35772 msgid ""
35773 "I<Update:> Autosync is enabled by default for all API users starting from "
35774 "libguestfs 1.5.24.  This section only applies to older versions."
35775 msgstr ""
35776
35777 #. type: textblock
35778 #: ../src/guestfs.pod:800
35779 msgid ""
35780 "When modifying a filesystem from C or another language, you B<must> unmount "
35781 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35782 "libguestfs handle.  You can also call:"
35783 msgstr ""
35784
35785 #. type: verbatim
35786 #: ../src/guestfs.pod:804
35787 #, no-wrap
35788 msgid ""
35789 " guestfs_set_autosync (g, 1);\n"
35790 "\n"
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:806
35795 msgid ""
35796 "to have the unmount/sync done automatically for you when the handle 'g' is "
35797 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:810
35802 msgid ""
35803 "If you forget to do this, then it is entirely possible that your changes "
35804 "won't be written out, or will be partially written, or (very rarely) that "
35805 "you'll get disk corruption."
35806 msgstr ""
35807
35808 #. type: textblock
35809 #: ../src/guestfs.pod:814
35810 msgid ""
35811 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35812 "guestfish scripts that forget to sync will work just fine, which can make "
35813 "this very puzzling if you are trying to debug a problem."
35814 msgstr ""
35815
35816 #. type: =item
35817 #: ../src/guestfs.pod:818
35818 msgid "Mount option C<-o sync> should not be the default."
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:820
35823 msgid ""
35824 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35825 "libguestfs 1.13.16.  This section only applies to older versions."
35826 msgstr ""
35827
35828 #. type: textblock
35829 #: ../src/guestfs.pod:823
35830 msgid ""
35831 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35832 "However C<-o sync> does not add any reliability benefit, but does have a "
35833 "very large performance impact."
35834 msgstr ""
35835
35836 #. type: textblock
35837 #: ../src/guestfs.pod:827
35838 msgid ""
35839 "The work around is to use L</guestfs_mount_options> and set the mount "
35840 "options that you actually want to use."
35841 msgstr ""
35842
35843 #. type: =item
35844 #: ../src/guestfs.pod:830
35845 msgid "Read-only should be the default."
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:832
35850 msgid ""
35851 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35852 "specify I<--rw> if you want to make changes to the image."
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:835
35857 msgid "This would reduce the potential to corrupt live VM images."
35858 msgstr ""
35859
35860 #. type: textblock
35861 #: ../src/guestfs.pod:837
35862 msgid ""
35863 "Note that many filesystems change the disk when you just mount and unmount, "
35864 "even if you didn't perform any writes.  You need to use L</"
35865 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35866 msgstr ""
35867
35868 #. type: =item
35869 #: ../src/guestfs.pod:841
35870 msgid "guestfish command line is hard to use."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:843
35875 msgid ""
35876 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35877 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35878 "exist, so it fails.  In earlier versions of guestfish the error message was "
35879 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35880 "we should have used C<guestfish -c command> to run commands."
35881 msgstr ""
35882
35883 #. type: =item
35884 #: ../src/guestfs.pod:850
35885 msgid "guestfish megabyte modifiers don't work right on all commands"
35886 msgstr ""
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:852
35890 msgid ""
35891 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35892 "other modifiers).  What guestfish actually does is to multiply the number "
35893 "part by the modifier part and pass the result to the C API.  However this "
35894 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35895 "expecting some other unit (eg. megabytes)."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:859
35900 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35901 msgstr ""
35902
35903 #. type: verbatim
35904 #: ../src/guestfs.pod:861
35905 #, no-wrap
35906 msgid ""
35907 " lvcreate LV VG 100M\n"
35908 "\n"
35909 msgstr ""
35910
35911 #. type: textblock
35912 #: ../src/guestfs.pod:863
35913 msgid ""
35914 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35915 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35916 "megabytes * megabytes) logical volume.  The error message you get from this "
35917 "is also a little obscure."
35918 msgstr ""
35919
35920 #. type: textblock
35921 #: ../src/guestfs.pod:868
35922 msgid ""
35923 "This could be fixed in the generator by specially marking parameters and "
35924 "return values which take bytes or other units."
35925 msgstr ""
35926
35927 #. type: =item
35928 #: ../src/guestfs.pod:871
35929 msgid "Ambiguity between devices and paths"
35930 msgstr ""
35931
35932 #. type: textblock
35933 #: ../src/guestfs.pod:873
35934 msgid ""
35935 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35936 "sdb2>) and a similar pathname.  A file might just happen to be called "
35937 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:878
35942 msgid ""
35943 "In the current API we usually resolve this ambiguity by having two separate "
35944 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35945 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35946 "detecting if the path supplied begins with C</dev/>."
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:884
35951 msgid ""
35952 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35953 "make paths/devices into structured names.  One way to do this would be to "
35954 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35955 "aspect of grub.  Another way would be to use a structured type, equivalent "
35956 "to this OCaml type:"
35957 msgstr ""
35958
35959 #. type: verbatim
35960 #: ../src/guestfs.pod:890
35961 #, no-wrap
35962 msgid ""
35963 " type path = Path of string | Device of int | Partition of int * int\n"
35964 "\n"
35965 msgstr ""
35966
35967 #. type: textblock
35968 #: ../src/guestfs.pod:892
35969 msgid "which would allow you to pass arguments like:"
35970 msgstr ""
35971
35972 #. type: verbatim
35973 #: ../src/guestfs.pod:894
35974 #, no-wrap
35975 msgid ""
35976 " Path \"/foo/bar\"\n"
35977 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35978 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35979 " Path \"/dev/sdb2\"    (* not a device *)\n"
35980 "\n"
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:899
35985 msgid ""
35986 "As you can see there are still problems to resolve even with this "
35987 "representation.  Also consider how it might work in guestfish."
35988 msgstr ""
35989
35990 #. type: =head2
35991 #: ../src/guestfs.pod:904
35992 msgid "KEYS AND PASSPHRASES"
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:906
35997 msgid ""
35998 "Certain libguestfs calls take a parameter that contains sensitive key "
35999 "material, passed in as a C string."
36000 msgstr ""
36001
36002 #. type: textblock
36003 #: ../src/guestfs.pod:909
36004 msgid ""
36005 "In the future we would hope to change the libguestfs implementation so that "
36006 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36007 "swap.  However this is I<not> done at the moment, because of the complexity "
36008 "of such an implementation."
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:914
36013 msgid ""
36014 "Therefore you should be aware that any key parameter you pass to libguestfs "
36015 "might end up being written out to the swap partition.  If this is a concern, "
36016 "scrub the swap partition or don't use libguestfs on encrypted devices."
36017 msgstr ""
36018
36019 #. type: =head2
36020 #: ../src/guestfs.pod:919
36021 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36022 msgstr ""
36023
36024 #. type: textblock
36025 #: ../src/guestfs.pod:921
36026 msgid ""
36027 "All high-level libguestfs actions are synchronous.  If you want to use "
36028 "libguestfs asynchronously then you must create a thread."
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:924
36033 msgid ""
36034 "Only use the handle from a single thread.  Either use the handle exclusively "
36035 "from one thread, or provide your own mutex so that two threads cannot issue "
36036 "calls on the same handle at the same time."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:928
36041 msgid ""
36042 "See the graphical program guestfs-browser for one possible architecture for "
36043 "multithreaded programs using libvirt and libguestfs."
36044 msgstr ""
36045
36046 #. type: =head2
36047 #: ../src/guestfs.pod:931
36048 msgid "PATH"
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:933
36053 msgid ""
36054 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36055 "internal path."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:936
36060 msgid ""
36061 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36062 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36063 msgstr ""
36064
36065 #. type: textblock
36066 #: ../src/guestfs.pod:939
36067 msgid ""
36068 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36069 "to change the directories that libguestfs will search in.  The value is a "
36070 "colon-separated list of paths.  The current directory is I<not> searched "
36071 "unless the path contains an empty element or C<.>.  For example "
36072 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36073 "then C</usr/lib/guestfs>."
36074 msgstr ""
36075
36076 #. type: =head2
36077 #: ../src/guestfs.pod:946
36078 msgid "QEMU WRAPPERS"
36079 msgstr ""
36080
36081 #. type: textblock
36082 #: ../src/guestfs.pod:948
36083 msgid ""
36084 "If you want to compile your own qemu, run qemu from a non-standard location, "
36085 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36086 "around qemu."
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../src/guestfs.pod:952
36091 msgid ""
36092 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36093 "last command in the shell script (so that qemu replaces the shell and "
36094 "becomes the direct child of the libguestfs-using program).  If you don't do "
36095 "this, then the qemu process won't be cleaned up correctly."
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:957
36100 msgid ""
36101 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36102 "source:"
36103 msgstr ""
36104
36105 #. type: verbatim
36106 #: ../src/guestfs.pod:960
36107 #, no-wrap
36108 msgid ""
36109 " #!/bin/sh -\n"
36110 " qemudir=/home/rjones/d/qemu\n"
36111 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36112 "\n"
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:964
36117 msgid ""
36118 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36119 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36120 "example:"
36121 msgstr ""
36122
36123 #. type: verbatim
36124 #: ../src/guestfs.pod:968
36125 #, no-wrap
36126 msgid ""
36127 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36128 "\n"
36129 msgstr ""
36130
36131 #. type: textblock
36132 #: ../src/guestfs.pod:970
36133 msgid ""
36134 "Note that libguestfs also calls qemu with the -help and -version options in "
36135 "order to determine features."
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:973
36140 msgid ""
36141 "Wrappers can also be used to edit the options passed to qemu.  In the "
36142 "following example, the C<-machine ...> option (C<-machine> and the following "
36143 "argument) are removed from the command line and replaced with C<-machine pc,"
36144 "accel=tcg>.  The while loop iterates over the options until it finds the "
36145 "right one to remove, putting the remaining options into the C<args> array."
36146 msgstr ""
36147
36148 #. type: verbatim
36149 #: ../src/guestfs.pod:982
36150 #, no-wrap
36151 msgid ""
36152 " i=0\n"
36153 " while [ $# -gt 0 ]; do\n"
36154 "     case \"$1\" in\n"
36155 "     -machine)\n"
36156 "         shift 2;;\n"
36157 "     *)\n"
36158 "         args[i]=\"$1\"\n"
36159 "         (( i++ ))\n"
36160 "         shift ;;\n"
36161 "     esac\n"
36162 " done\n"
36163 " \n"
36164 msgstr ""
36165
36166 #. type: verbatim
36167 #: ../src/guestfs.pod:994
36168 #, no-wrap
36169 msgid ""
36170 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36171 "\n"
36172 msgstr ""
36173
36174 #. type: =head2
36175 #: ../src/guestfs.pod:996
36176 msgid "ATTACHING TO RUNNING DAEMONS"
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../src/guestfs.pod:998
36181 msgid ""
36182 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36183 "babies.  Use with caution."
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:1001
36188 msgid ""
36189 "I<Note (2):> This section explains how to attach to a running daemon from a "
36190 "low level perspective.  For most users, simply using virt tools such as "
36191 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36192 msgstr ""
36193
36194 #. type: =head3
36195 #: ../src/guestfs.pod:1005
36196 msgid "Using guestfs_set_attach_method"
36197 msgstr ""
36198
36199 #. type: textblock
36200 #: ../src/guestfs.pod:1007
36201 msgid ""
36202 "By calling L</guestfs_set_attach_method> you can change how the library "
36203 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36204 "ARCHITECTURE> for some background)."
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:1011
36209 msgid ""
36210 "The normal attach method is C<appliance>, where a small appliance is created "
36211 "containing the daemon, and then the library connects to this."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:1014
36216 msgid ""
36217 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36218 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36219 "daemon over the Unix domain socket."
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:1018
36224 msgid ""
36225 "The normal use for this is to connect to a running virtual machine that "
36226 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36227 "files inside the live virtual machine."
36228 msgstr ""
36229
36230 #. type: =head3
36231 #: ../src/guestfs.pod:1022
36232 msgid "Using guestfs_add_domain with live flag"
36233 msgstr ""
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:1024
36237 msgid ""
36238 "L</guestfs_add_domain> provides some help for getting the correct attach "
36239 "method.  If you pass the C<live> option to this function, then (if the "
36240 "virtual machine is running) it will examine the libvirt XML looking for a "
36241 "virtio-serial channel to connect to:"
36242 msgstr ""
36243
36244 #. type: verbatim
36245 #: ../src/guestfs.pod:1030
36246 #, no-wrap
36247 msgid ""
36248 " <domain>\n"
36249 "   ...\n"
36250 "   <devices>\n"
36251 "     ...\n"
36252 "     <channel type='unix'>\n"
36253 "       <source mode='bind' path='/path/to/socket'/>\n"
36254 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36255 "     </channel>\n"
36256 "     ...\n"
36257 "   </devices>\n"
36258 " </domain>\n"
36259 "\n"
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:1042
36264 msgid ""
36265 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36266 "method to C<unix:/path/to/socket>."
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:1045
36271 msgid ""
36272 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36273 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36274 "to attach to and modify live virtual machines."
36275 msgstr ""
36276
36277 #. type: textblock
36278 #: ../src/guestfs.pod:1049
36279 msgid ""
36280 "The virtual machine needs to have been set up beforehand so that it has the "
36281 "virtio-serial channel and so that guestfsd is running inside it."
36282 msgstr ""
36283
36284 #. type: =head2
36285 #: ../src/guestfs.pod:1053
36286 msgid "ABI GUARANTEE"
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1055
36291 msgid ""
36292 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36293 "actions as outlined in this section.  Although we will deprecate some "
36294 "actions, for example if they get replaced by newer calls, we will keep the "
36295 "old actions forever.  This allows you the developer to program in confidence "
36296 "against the libguestfs API."
36297 msgstr ""
36298
36299 #. type: =head2
36300 #: ../src/guestfs.pod:1061
36301 msgid "BLOCK DEVICE NAMING"
36302 msgstr ""
36303
36304 #. type: textblock
36305 #: ../src/guestfs.pod:1063
36306 msgid ""
36307 "In the kernel there is now quite a profusion of schemata for naming block "
36308 "devices (in this context, by I<block device> I mean a physical or virtual "
36309 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36310 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36311 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36312 "for the old IDE driver (particularly for SATA devices) those devices also "
36313 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36314 "paravirtualized drivers.  This has created several different naming systems, "
36315 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36316 msgstr ""
36317
36318 #. type: textblock
36319 #: ../src/guestfs.pod:1075
36320 msgid ""
36321 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36322 "Linux kernel to access block devices.  We can run a variety of appliances "
36323 "based on a variety of Linux kernels."
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:1079
36328 msgid ""
36329 "This causes a problem for libguestfs because many API calls use device or "
36330 "partition names.  Working scripts and the recipe (example) scripts that we "
36331 "make available over the internet could fail if the naming scheme changes."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../src/guestfs.pod:1084
36336 msgid ""
36337 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36338 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36339 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36340 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:1090
36345 msgid ""
36346 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36347 "L</guestfs_list_partitions> and similar calls return the true names of the "
36348 "devices and partitions as known to the appliance."
36349 msgstr ""
36350
36351 #. type: =head3
36352 #: ../src/guestfs.pod:1095
36353 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36354 msgstr ""
36355
36356 #. type: textblock
36357 #: ../src/guestfs.pod:1097
36358 msgid ""
36359 "Usually this translation is transparent.  However in some (very rare)  cases "
36360 "you may need to know the exact algorithm.  Such cases include where you use "
36361 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36362 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:1103
36367 msgid ""
36368 "The algorithm is applied only to I<parameters> which are known to be either "
36369 "device or partition names.  Return values from functions such as L</"
36370 "guestfs_list_devices> are never changed."
36371 msgstr ""
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:1111
36375 msgid "Is the string a parameter which is a device or partition name?"
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:1115
36380 msgid "Does the string begin with C</dev/sd>?"
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:1119
36385 msgid ""
36386 "Does the named device exist? If so, we use that device.  However if I<not> "
36387 "then we continue with this algorithm."
36388 msgstr ""
36389
36390 #. type: textblock
36391 #: ../src/guestfs.pod:1124
36392 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36393 msgstr ""
36394
36395 #. type: textblock
36396 #: ../src/guestfs.pod:1126
36397 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:1128
36402 msgid "If that named device exists, use it.  If not, continue."
36403 msgstr ""
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:1132
36407 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:1134
36412 msgid "If that named device exists, use it.  If not, return an error."
36413 msgstr ""
36414
36415 #. type: =head3
36416 #: ../src/guestfs.pod:1138
36417 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36418 msgstr ""
36419
36420 #. type: textblock
36421 #: ../src/guestfs.pod:1140
36422 msgid ""
36423 "Although the standard naming scheme and automatic translation is useful for "
36424 "simple programs and guestfish scripts, for larger programs it is best not to "
36425 "rely on this mechanism."
36426 msgstr ""
36427
36428 #. type: textblock
36429 #: ../src/guestfs.pod:1144
36430 msgid ""
36431 "Where possible for maximum future portability programs using libguestfs "
36432 "should use these future-proof techniques:"
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:1151
36437 msgid ""
36438 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36439 "device names, and then use those names directly."
36440 msgstr ""
36441
36442 #. type: textblock
36443 #: ../src/guestfs.pod:1154
36444 msgid ""
36445 "Since those device names exist by definition, they will never be translated."
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:1159
36450 msgid ""
36451 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36452 "filesystem labels."
36453 msgstr ""
36454
36455 #. type: textblock
36456 #: ../src/guestfs.pod:1166
36457 msgid ""
36458 "This section discusses security implications of using libguestfs, "
36459 "particularly with untrusted or malicious guests or disk images."
36460 msgstr ""
36461
36462 #. type: =head2
36463 #: ../src/guestfs.pod:1169
36464 msgid "GENERAL SECURITY CONSIDERATIONS"
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../src/guestfs.pod:1171
36469 msgid ""
36470 "Be careful with any files or data that you download from a guest (by "
36471 "\"download\" we mean not just the L</guestfs_download> command but any "
36472 "command that reads files, filenames, directories or anything else from a "
36473 "disk image).  An attacker could manipulate the data to fool your program "
36474 "into doing the wrong thing.  Consider cases such as:"
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:1181
36479 msgid "the data (file etc) not being present"
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:1185
36484 msgid "being present but empty"
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:1189
36489 msgid "being much larger than normal"
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:1193
36494 msgid "containing arbitrary 8 bit data"
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:1197
36499 msgid "being in an unexpected character encoding"
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:1201
36504 msgid "containing homoglyphs."
36505 msgstr ""
36506
36507 #. type: =head2
36508 #: ../src/guestfs.pod:1205
36509 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:1207
36514 msgid ""
36515 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36516 "(VFS) module can sometimes be escalated into exploits by deliberately "
36517 "creating a malicious, malformed filesystem.  These exploits are very severe "
36518 "for two reasons.  Firstly there are very many filesystem drivers in the "
36519 "kernel, and many of them are infrequently used and not much developer "
36520 "attention has been paid to the code.  Linux userspace helps potential "
36521 "crackers by detecting the filesystem type and automatically choosing the "
36522 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36523 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36524 "exploit (worse in some ways), giving immediate and total access to the "
36525 "system right down to the hardware level."
36526 msgstr ""
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:1220
36530 msgid ""
36531 "That explains why you should never mount a filesystem from an untrusted "
36532 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36533 "inside a qemu virtual machine, usually running as a non-root user.  The "
36534 "attacker would need to write a filesystem which first exploited the kernel, "
36535 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36536 "the libguestfs protocol, and finally to be as serious as the host kernel "
36537 "exploit it would need to escalate its privileges to root.  This multi-step "
36538 "escalation, performed by a static piece of data, is thought to be extremely "
36539 "hard to do, although we never say 'never' about security issues."
36540 msgstr ""
36541
36542 #. type: textblock
36543 #: ../src/guestfs.pod:1231
36544 msgid ""
36545 "In any case callers can reduce the attack surface by forcing the filesystem "
36546 "type when mounting (use L</guestfs_mount_vfs>)."
36547 msgstr ""
36548
36549 #. type: =head2
36550 #: ../src/guestfs.pod:1234
36551 msgid "PROTOCOL SECURITY"
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:1236
36556 msgid ""
36557 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36558 "defined upper message size.  However a program that uses libguestfs must "
36559 "also take care - for example you can write a program that downloads a binary "
36560 "from a disk image and executes it locally, and no amount of protocol "
36561 "security will save you from the consequences."
36562 msgstr ""
36563
36564 #. type: =head2
36565 #: ../src/guestfs.pod:1242
36566 msgid "INSPECTION SECURITY"
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:1244
36571 msgid ""
36572 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36573 "directly from the guest, and these could contain any 8 bit data.  Callers "
36574 "should be careful to escape these before printing them to a structured file "
36575 "(for example, use HTML escaping if creating a web page)."
36576 msgstr ""
36577
36578 #. type: textblock
36579 #: ../src/guestfs.pod:1250
36580 msgid ""
36581 "Guest configuration may be altered in unusual ways by the administrator of "
36582 "the virtual machine, and may not reflect reality (particularly for untrusted "
36583 "or actively malicious guests).  For example we parse the hostname from "
36584 "configuration files like C</etc/sysconfig/network> that we find in the "
36585 "guest, but the guest administrator can easily manipulate these files to "
36586 "provide the wrong hostname."
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../src/guestfs.pod:1258
36591 msgid ""
36592 "The inspection API parses guest configuration using two external libraries: "
36593 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36594 "designed to be robust in the face of malicious data, although denial of "
36595 "service attacks are still possible, for example with oversized configuration "
36596 "files."
36597 msgstr ""
36598
36599 #. type: =head2
36600 #: ../src/guestfs.pod:1264
36601 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:1266
36606 msgid ""
36607 "Be very cautious about running commands from the guest.  By running a "
36608 "command in the guest, you are giving CPU time to a binary that you do not "
36609 "control, under the same user account as the library, albeit wrapped in qemu "
36610 "virtualization.  More information and alternatives can be found in the "
36611 "section L</RUNNING COMMANDS>."
36612 msgstr ""
36613
36614 #. type: =head2
36615 #: ../src/guestfs.pod:1272
36616 msgid "CVE-2010-3851"
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:1274
36621 msgid "https://bugzilla.redhat.com/642934"
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:1276
36626 msgid ""
36627 "This security bug concerns the automatic disk format detection that qemu "
36628 "does on disk images."
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:1279
36633 msgid ""
36634 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36635 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36636 "for one of the known headers, and if none is found then assuming the disk "
36637 "image must be raw."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:1284
36642 msgid ""
36643 "This allows a guest which has been given a raw disk image to write some "
36644 "other header.  At next boot (or when the disk image is accessed by "
36645 "libguestfs) qemu would do autodetection and think the disk image format was, "
36646 "say, qcow2 based on the header written by the guest."
36647 msgstr ""
36648
36649 #. type: textblock
36650 #: ../src/guestfs.pod:1289
36651 msgid ""
36652 "This in itself would not be a problem, but qcow2 offers many features, one "
36653 "of which is to allow a disk image to refer to another image (called the "
36654 "\"backing disk\").  It does this by placing the path to the backing disk "
36655 "into the qcow2 header.  This path is not validated and could point to any "
36656 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36657 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36658 "control of the attacker."
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:1297
36663 msgid ""
36664 "In libguestfs this is rather hard to exploit except under two circumstances:"
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:1304
36669 msgid "You have enabled the network or have opened the disk in write mode."
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:1308
36674 msgid ""
36675 "You are also running untrusted code from the guest (see L</RUNNING "
36676 "COMMANDS>)."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:1313
36681 msgid ""
36682 "The way to avoid this is to specify the expected disk format when adding "
36683 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36684 "should always do this if the disk is raw format, and it's a good idea for "
36685 "other cases too."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1318
36690 msgid ""
36691 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36692 "format is fetched from libvirt and passed through."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:1321
36697 msgid ""
36698 "For libguestfs tools, use the I<--format> command line parameter as "
36699 "appropriate."
36700 msgstr ""
36701
36702 #. type: =head1
36703 #: ../src/guestfs.pod:1324
36704 msgid "CONNECTION MANAGEMENT"
36705 msgstr ""
36706
36707 #. type: =head2
36708 #: ../src/guestfs.pod:1326
36709 msgid "guestfs_h *"
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:1328
36714 msgid ""
36715 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36716 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36717 "handle and release all resources used."
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:1332
36722 msgid ""
36723 "For information on using multiple handles and threads, see the section L</"
36724 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36725 msgstr ""
36726
36727 #. type: =head2
36728 #: ../src/guestfs.pod:1335
36729 msgid "guestfs_create"
36730 msgstr ""
36731
36732 #. type: verbatim
36733 #: ../src/guestfs.pod:1337
36734 #, no-wrap
36735 msgid ""
36736 " guestfs_h *guestfs_create (void);\n"
36737 "\n"
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:1339
36742 msgid "Create a connection handle."
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:1341
36747 msgid ""
36748 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36749 "NULL."
36750 msgstr ""
36751
36752 #. type: textblock
36753 #: ../src/guestfs.pod:1344
36754 msgid ""
36755 "You have to \"configure\" the handle after creating it.  This includes "
36756 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36757 "handle at least once."
36758 msgstr ""
36759
36760 #. type: textblock
36761 #: ../src/guestfs.pod:1348
36762 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../src/guestfs.pod:1350
36767 msgid ""
36768 "You may also want to configure error handling for the handle.  See the L</"
36769 "ERROR HANDLING> section below."
36770 msgstr ""
36771
36772 #. type: =head2
36773 #: ../src/guestfs.pod:1353
36774 msgid "guestfs_close"
36775 msgstr ""
36776
36777 #. type: verbatim
36778 #: ../src/guestfs.pod:1355
36779 #, no-wrap
36780 msgid ""
36781 " void guestfs_close (guestfs_h *g);\n"
36782 "\n"
36783 msgstr ""
36784
36785 #. type: textblock
36786 #: ../src/guestfs.pod:1357
36787 msgid "This closes the connection handle and frees up all resources used."
36788 msgstr ""
36789
36790 #. type: textblock
36791 #: ../src/guestfs.pod:1359
36792 msgid ""
36793 "If autosync was set on the handle and the handle was launched, then this "
36794 "implicitly calls various functions to unmount filesystems and sync the "
36795 "disk.  See L</guestfs_set_autosync> for more details."
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../src/guestfs.pod:1363
36800 msgid "If a close callback was set on the handle, then it is called."
36801 msgstr ""
36802
36803 #. type: =head1
36804 #: ../src/guestfs.pod:1365
36805 msgid "ERROR HANDLING"
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1367
36810 msgid ""
36811 "API functions can return errors.  For example, almost all functions that "
36812 "return C<int> will return C<-1> to indicate an error."
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:1370
36817 msgid ""
36818 "Additional information is available for errors: an error message string and "
36819 "optionally an error number (errno) if the thing that failed was a system "
36820 "call."
36821 msgstr ""
36822
36823 #. type: textblock
36824 #: ../src/guestfs.pod:1374
36825 msgid ""
36826 "You can get at the additional information about the last error on the handle "
36827 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36828 "up an error handler with L</guestfs_set_error_handler>."
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:1379
36833 msgid ""
36834 "When the handle is created, a default error handler is installed which "
36835 "prints the error message string to C<stderr>.  For small short-running "
36836 "command line programs it is sufficient to do:"
36837 msgstr ""
36838
36839 #. type: verbatim
36840 #: ../src/guestfs.pod:1383
36841 #, no-wrap
36842 msgid ""
36843 " if (guestfs_launch (g) == -1)\n"
36844 "   exit (EXIT_FAILURE);\n"
36845 "\n"
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:1386
36850 msgid ""
36851 "since the default error handler will ensure that an error message has been "
36852 "printed to C<stderr> before the program exits."
36853 msgstr ""
36854
36855 #. type: textblock
36856 #: ../src/guestfs.pod:1389
36857 msgid ""
36858 "For other programs the caller will almost certainly want to install an "
36859 "alternate error handler or do error handling in-line like this:"
36860 msgstr ""
36861
36862 #. type: verbatim
36863 #: ../src/guestfs.pod:1392
36864 #, no-wrap
36865 msgid ""
36866 " /* This disables the default behaviour of printing errors\n"
36867 "    on stderr. */\n"
36868 " guestfs_set_error_handler (g, NULL, NULL);\n"
36869 " \n"
36870 msgstr ""
36871
36872 #. type: verbatim
36873 #: ../src/guestfs.pod:1396
36874 #, no-wrap
36875 msgid ""
36876 " if (guestfs_launch (g) == -1) {\n"
36877 "   /* Examine the error message and print it etc. */\n"
36878 "   char *msg = guestfs_last_error (g);\n"
36879 "   int errnum = guestfs_last_errno (g);\n"
36880 "   fprintf (stderr, \"%s\", msg);\n"
36881 "   if (errnum != 0)\n"
36882 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36883 "   fprintf (stderr, \"\\n\");\n"
36884 "   /* ... */\n"
36885 " }\n"
36886 "\n"
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:1407
36891 msgid ""
36892 "Out of memory errors are handled differently.  The default action is to call "
36893 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36894 "guestfs_set_out_of_memory_handler>."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:1411
36899 msgid ""
36900 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36901 "because there is no handle if this happens there is no way to get additional "
36902 "error information.  However L</guestfs_create> is supposed to be a "
36903 "lightweight operation which can only fail because of insufficient memory (it "
36904 "returns NULL in this case)."
36905 msgstr ""
36906
36907 #. type: =head2
36908 #: ../src/guestfs.pod:1417
36909 msgid "guestfs_last_error"
36910 msgstr ""
36911
36912 #. type: verbatim
36913 #: ../src/guestfs.pod:1419
36914 #, no-wrap
36915 msgid ""
36916 " const char *guestfs_last_error (guestfs_h *g);\n"
36917 "\n"
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:1421
36922 msgid ""
36923 "This returns the last error message that happened on C<g>.  If there has not "
36924 "been an error since the handle was created, then this returns C<NULL>."
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../src/guestfs.pod:1425
36929 msgid ""
36930 "The lifetime of the returned string is until the next error occurs, or L</"
36931 "guestfs_close> is called."
36932 msgstr ""
36933
36934 #. type: =head2
36935 #: ../src/guestfs.pod:1428
36936 msgid "guestfs_last_errno"
36937 msgstr ""
36938
36939 #. type: verbatim
36940 #: ../src/guestfs.pod:1430
36941 #, no-wrap
36942 msgid ""
36943 " int guestfs_last_errno (guestfs_h *g);\n"
36944 "\n"
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../src/guestfs.pod:1432
36949 msgid "This returns the last error number (errno) that happened on C<g>."
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:1434
36954 msgid "If successful, an errno integer not equal to zero is returned."
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:1436
36959 msgid ""
36960 "If no error, this returns 0.  This call can return 0 in three situations:"
36961 msgstr ""
36962
36963 #. type: textblock
36964 #: ../src/guestfs.pod:1443
36965 msgid "There has not been any error on the handle."
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:1447
36970 msgid ""
36971 "There has been an error but the errno was meaningless.  This corresponds to "
36972 "the case where the error did not come from a failed system call, but for "
36973 "some other reason."
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:1453
36978 msgid ""
36979 "There was an error from a failed system call, but for some reason the errno "
36980 "was not captured and returned.  This usually indicates a bug in libguestfs."
36981 msgstr ""
36982
36983 #. type: textblock
36984 #: ../src/guestfs.pod:1459
36985 msgid ""
36986 "Libguestfs tries to convert the errno from inside the applicance into a "
36987 "corresponding errno for the caller (not entirely trivial: the appliance "
36988 "might be running a completely different operating system from the library "
36989 "and error numbers are not standardized across Un*xen).  If this could not be "
36990 "done, then the error is translated to C<EINVAL>.  In practice this should "
36991 "only happen in very rare circumstances."
36992 msgstr ""
36993
36994 #. type: =head2
36995 #: ../src/guestfs.pod:1467
36996 msgid "guestfs_set_error_handler"
36997 msgstr ""
36998
36999 #. type: verbatim
37000 #: ../src/guestfs.pod:1469
37001 #, no-wrap
37002 msgid ""
37003 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37004 "                                           void *opaque,\n"
37005 "                                           const char *msg);\n"
37006 " void guestfs_set_error_handler (guestfs_h *g,\n"
37007 "                                 guestfs_error_handler_cb cb,\n"
37008 "                                 void *opaque);\n"
37009 "\n"
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:1476
37014 msgid ""
37015 "The callback C<cb> will be called if there is an error.  The parameters "
37016 "passed to the callback are an opaque data pointer and the error message "
37017 "string."
37018 msgstr ""
37019
37020 #. type: textblock
37021 #: ../src/guestfs.pod:1480
37022 msgid ""
37023 "C<errno> is not passed to the callback.  To get that the callback must call "
37024 "L</guestfs_last_errno>."
37025 msgstr ""
37026
37027 #. type: textblock
37028 #: ../src/guestfs.pod:1483
37029 msgid ""
37030 "Note that the message string C<msg> is freed as soon as the callback "
37031 "function returns, so if you want to stash it somewhere you must make your "
37032 "own copy."
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../src/guestfs.pod:1487
37037 msgid "The default handler prints messages on C<stderr>."
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:1489
37042 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37043 msgstr ""
37044
37045 #. type: =head2
37046 #: ../src/guestfs.pod:1491
37047 msgid "guestfs_get_error_handler"
37048 msgstr ""
37049
37050 #. type: verbatim
37051 #: ../src/guestfs.pod:1493
37052 #, no-wrap
37053 msgid ""
37054 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37055 "                                                     void **opaque_rtn);\n"
37056 "\n"
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:1496
37061 msgid "Returns the current error handler callback."
37062 msgstr ""
37063
37064 #. type: =head2
37065 #: ../src/guestfs.pod:1498
37066 msgid "guestfs_set_out_of_memory_handler"
37067 msgstr ""
37068
37069 #. type: verbatim
37070 #: ../src/guestfs.pod:1500
37071 #, no-wrap
37072 msgid ""
37073 " typedef void (*guestfs_abort_cb) (void);\n"
37074 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37075 "                                         guestfs_abort_cb);\n"
37076 "\n"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:1504
37081 msgid ""
37082 "The callback C<cb> will be called if there is an out of memory situation.  "
37083 "I<Note this callback must not return>."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1507
37088 msgid "The default is to call L<abort(3)>."
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../src/guestfs.pod:1509
37093 msgid ""
37094 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37095 msgstr ""
37096
37097 #. type: =head2
37098 #: ../src/guestfs.pod:1512
37099 msgid "guestfs_get_out_of_memory_handler"
37100 msgstr ""
37101
37102 #. type: verbatim
37103 #: ../src/guestfs.pod:1514
37104 #, no-wrap
37105 msgid ""
37106 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37107 "\n"
37108 msgstr ""
37109
37110 #. type: textblock
37111 #: ../src/guestfs.pod:1516
37112 msgid "This returns the current out of memory handler."
37113 msgstr ""
37114
37115 #. type: =head1
37116 #: ../src/guestfs.pod:1518
37117 msgid "API CALLS"
37118 msgstr ""
37119
37120 #. type: =head1
37121 #: ../src/guestfs.pod:1522
37122 msgid "STRUCTURES"
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:1524
37127 msgid "@STRUCTS@"
37128 msgstr ""
37129
37130 #. type: =head1
37131 #: ../src/guestfs.pod:1526
37132 msgid "AVAILABILITY"
37133 msgstr ""
37134
37135 #. type: =head2
37136 #: ../src/guestfs.pod:1528
37137 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:1530
37142 msgid ""
37143 "Using L</guestfs_available> you can test availability of the following "
37144 "groups of functions.  This test queries the appliance to see if the "
37145 "appliance you are currently using supports the functionality."
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:1535
37150 msgid "@AVAILABILITY@"
37151 msgstr ""
37152
37153 #. type: =head2
37154 #: ../src/guestfs.pod:1537
37155 msgid "GUESTFISH supported COMMAND"
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:1539
37160 msgid ""
37161 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37162 "prints out the available groups and whether they are supported by this build "
37163 "of libguestfs.  Note however that you have to do C<run> first."
37164 msgstr ""
37165
37166 #. type: =head2
37167 #: ../src/guestfs.pod:1544
37168 msgid "SINGLE CALLS AT COMPILE TIME"
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../src/guestfs.pod:1546
37173 msgid ""
37174 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37175 "function, such as:"
37176 msgstr ""
37177
37178 #. type: verbatim
37179 #: ../src/guestfs.pod:1549
37180 #, no-wrap
37181 msgid ""
37182 " #define LIBGUESTFS_HAVE_DD 1\n"
37183 "\n"
37184 msgstr ""
37185
37186 #. type: textblock
37187 #: ../src/guestfs.pod:1551
37188 msgid "if L</guestfs_dd> is available."
37189 msgstr ""
37190
37191 #. type: textblock
37192 #: ../src/guestfs.pod:1553
37193 msgid ""
37194 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37195 "function is available at compile time, we recommended using build tools such "
37196 "as autoconf or cmake.  For example in autotools you could use:"
37197 msgstr ""
37198
37199 #. type: verbatim
37200 #: ../src/guestfs.pod:1558
37201 #, no-wrap
37202 msgid ""
37203 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37204 " AC_CHECK_FUNCS([guestfs_dd])\n"
37205 "\n"
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:1561
37210 msgid ""
37211 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37212 "in your program."
37213 msgstr ""
37214
37215 #. type: =head2
37216 #: ../src/guestfs.pod:1564
37217 msgid "SINGLE CALLS AT RUN TIME"
37218 msgstr ""
37219
37220 #. type: textblock
37221 #: ../src/guestfs.pod:1566
37222 msgid ""
37223 "Testing at compile time doesn't guarantee that a function really exists in "
37224 "the library.  The reason is that you might be dynamically linked against a "
37225 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37226 "This situation unfortunately results in a segmentation fault, which is a "
37227 "shortcoming of the C dynamic linking system itself."
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:1573
37232 msgid ""
37233 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37234 "in this example program (note that you still need the compile time check as "
37235 "well):"
37236 msgstr ""
37237
37238 #. type: verbatim
37239 #: ../src/guestfs.pod:1577
37240 #, no-wrap
37241 msgid ""
37242 " #include <stdio.h>\n"
37243 " #include <stdlib.h>\n"
37244 " #include <unistd.h>\n"
37245 " #include <dlfcn.h>\n"
37246 " #include <guestfs.h>\n"
37247 " \n"
37248 msgstr ""
37249
37250 #. type: verbatim
37251 #: ../src/guestfs.pod:1583
37252 #, no-wrap
37253 msgid ""
37254 " main ()\n"
37255 " {\n"
37256 " #ifdef LIBGUESTFS_HAVE_DD\n"
37257 "   void *dl;\n"
37258 "   int has_function;\n"
37259 " \n"
37260 msgstr ""
37261
37262 #. type: verbatim
37263 #: ../src/guestfs.pod:1589
37264 #, no-wrap
37265 msgid ""
37266 "   /* Test if the function guestfs_dd is really available. */\n"
37267 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37268 "   if (!dl) {\n"
37269 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37270 "     exit (EXIT_FAILURE);\n"
37271 "   }\n"
37272 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37273 "   dlclose (dl);\n"
37274 " \n"
37275 msgstr ""
37276
37277 #. type: verbatim
37278 #: ../src/guestfs.pod:1598
37279 #, no-wrap
37280 msgid ""
37281 "   if (!has_function)\n"
37282 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37283 "   else {\n"
37284 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37285 "     /* Now it's safe to call\n"
37286 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37287 "     */\n"
37288 "   }\n"
37289 " #else\n"
37290 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37291 " #endif\n"
37292 "  }\n"
37293 "\n"
37294 msgstr ""
37295
37296 #. type: textblock
37297 #: ../src/guestfs.pod:1611
37298 msgid ""
37299 "You may think the above is an awful lot of hassle, and it is.  There are "
37300 "other ways outside of the C linking system to ensure that this kind of "
37301 "incompatibility never arises, such as using package versioning:"
37302 msgstr ""
37303
37304 #. type: verbatim
37305 #: ../src/guestfs.pod:1616
37306 #, no-wrap
37307 msgid ""
37308 " Requires: libguestfs >= 1.0.80\n"
37309 "\n"
37310 msgstr ""
37311
37312 #. type: =head1
37313 #: ../src/guestfs.pod:1618
37314 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37315 msgstr ""
37316
37317 #. type: textblock
37318 #: ../src/guestfs.pod:1620
37319 msgid ""
37320 "A recent feature of the API is the introduction of calls which take optional "
37321 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37322 "takes variable arguments (ie. C<...>), as in this example:"
37323 msgstr ""
37324
37325 #. type: verbatim
37326 #: ../src/guestfs.pod:1625
37327 #, no-wrap
37328 msgid ""
37329 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37330 "\n"
37331 msgstr ""
37332
37333 #. type: textblock
37334 #: ../src/guestfs.pod:1627
37335 msgid ""
37336 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37337 "call with no optional arguments specified:"
37338 msgstr ""
37339
37340 #. type: verbatim
37341 #: ../src/guestfs.pod:1630
37342 #, no-wrap
37343 msgid ""
37344 " guestfs_add_drive_opts (g, filename, -1);\n"
37345 "\n"
37346 msgstr ""
37347
37348 #. type: textblock
37349 #: ../src/guestfs.pod:1632
37350 msgid "With a single optional argument:"
37351 msgstr ""
37352
37353 #. type: verbatim
37354 #: ../src/guestfs.pod:1634
37355 #, no-wrap
37356 msgid ""
37357 " guestfs_add_drive_opts (g, filename,\n"
37358 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37359 "                         -1);\n"
37360 "\n"
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:1638
37365 msgid "With two:"
37366 msgstr ""
37367
37368 #. type: verbatim
37369 #: ../src/guestfs.pod:1640
37370 #, no-wrap
37371 msgid ""
37372 " guestfs_add_drive_opts (g, filename,\n"
37373 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37374 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37375 "                         -1);\n"
37376 "\n"
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../src/guestfs.pod:1645
37381 msgid ""
37382 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37383 "happen!"
37384 msgstr ""
37385
37386 #. type: =head2
37387 #: ../src/guestfs.pod:1648
37388 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37389 msgstr ""
37390
37391 #. type: textblock
37392 #: ../src/guestfs.pod:1650
37393 msgid ""
37394 "The second variant has the same name with the suffix C<_va>, which works the "
37395 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37396 "example function, this is declared:"
37397 msgstr ""
37398
37399 #. type: verbatim
37400 #: ../src/guestfs.pod:1654
37401 #, no-wrap
37402 msgid ""
37403 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37404 "                                va_list args);\n"
37405 "\n"
37406 msgstr ""
37407
37408 #. type: =head2
37409 #: ../src/guestfs.pod:1657
37410 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37411 msgstr ""
37412
37413 #. type: textblock
37414 #: ../src/guestfs.pod:1659
37415 msgid ""
37416 "The third variant is useful where you need to construct these calls.  You "
37417 "pass in a structure where you fill in the optional fields.  The structure "
37418 "has a bitmask as the first element which you must set to indicate which "
37419 "fields you have filled in.  For our example function the structure and call "
37420 "are declared:"
37421 msgstr ""
37422
37423 #. type: verbatim
37424 #: ../src/guestfs.pod:1665
37425 #, no-wrap
37426 msgid ""
37427 " struct guestfs_add_drive_opts_argv {\n"
37428 "   uint64_t bitmask;\n"
37429 "   int readonly;\n"
37430 "   const char *format;\n"
37431 "   /* ... */\n"
37432 " };\n"
37433 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37434 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37435 "\n"
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:1674
37440 msgid "You could call it like this:"
37441 msgstr ""
37442
37443 #. type: verbatim
37444 #: ../src/guestfs.pod:1676
37445 #, no-wrap
37446 msgid ""
37447 " struct guestfs_add_drive_opts_argv optargs = {\n"
37448 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37449 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37450 "   .readonly = 1,\n"
37451 "   .format = \"qcow2\"\n"
37452 " };\n"
37453 " \n"
37454 msgstr ""
37455
37456 #. type: verbatim
37457 #: ../src/guestfs.pod:1683
37458 #, no-wrap
37459 msgid ""
37460 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37461 "\n"
37462 msgstr ""
37463
37464 #. type: textblock
37465 #: ../src/guestfs.pod:1691
37466 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:1696
37471 msgid "You do not need to fill in all fields of the structure."
37472 msgstr ""
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:1700
37476 msgid ""
37477 "There must be a one-to-one correspondence between fields of the structure "
37478 "that are filled in, and bits set in the bitmask."
37479 msgstr ""
37480
37481 #. type: =head2
37482 #: ../src/guestfs.pod:1705
37483 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:1707
37488 msgid ""
37489 "In other languages, optional arguments are expressed in the way that is "
37490 "natural for that language.  We refer you to the language-specific "
37491 "documentation for more details on that."
37492 msgstr ""
37493
37494 #. type: textblock
37495 #: ../src/guestfs.pod:1711
37496 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37497 msgstr ""
37498
37499 #. type: =head2
37500 #: ../src/guestfs.pod:1713
37501 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:1715
37506 msgid ""
37507 "B<Note:> This section documents the generic event mechanism introduced in "
37508 "libguestfs 1.10, which you should use in new code if possible.  The old "
37509 "functions C<guestfs_set_log_message_callback>, "
37510 "C<guestfs_set_subprocess_quit_callback>, "
37511 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37512 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37513 "page.  Because of the ABI guarantee, the old functions continue to work."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:1724
37518 msgid ""
37519 "Handles generate events when certain things happen, such as log messages "
37520 "being generated, progress messages during long-running operations, or the "
37521 "handle being closed.  The API calls described below let you register a "
37522 "callback to be called when events happen.  You can register multiple "
37523 "callbacks (for the same, different or overlapping sets of events), and "
37524 "individually remove callbacks.  If callbacks are not removed, then they "
37525 "remain in force until the handle is closed."
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../src/guestfs.pod:1732
37530 msgid ""
37531 "In the current implementation, events are only generated synchronously: that "
37532 "means that events (and hence callbacks) can only happen while you are in the "
37533 "middle of making another libguestfs call.  The callback is called in the "
37534 "same thread."
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../src/guestfs.pod:1737
37539 msgid ""
37540 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37541 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37542 msgstr ""
37543
37544 #. type: =head3
37545 #: ../src/guestfs.pod:1741
37546 msgid "CLASSES OF EVENTS"
37547 msgstr ""
37548
37549 #. type: =item
37550 #: ../src/guestfs.pod:1745
37551 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37552 msgstr ""
37553
37554 #. type: textblock
37555 #: ../src/guestfs.pod:1748
37556 msgid ""
37557 "The callback function will be called while the handle is being closed "
37558 "(synchronously from L</guestfs_close>)."
37559 msgstr ""
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:1751
37563 msgid ""
37564 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37565 "handles that are open when the program exits.  This means that this callback "
37566 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37567 "problems in higher-level languages (eg. if your HLL interpreter has already "
37568 "been cleaned up by the time this is called, and if your callback then jumps "
37569 "into some HLL function)."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:1758
37574 msgid ""
37575 "If no callback is registered: the handle is closed without any callback "
37576 "being invoked."
37577 msgstr ""
37578
37579 #. type: =item
37580 #: ../src/guestfs.pod:1761
37581 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37582 msgstr ""
37583
37584 #. type: textblock
37585 #: ../src/guestfs.pod:1764
37586 msgid ""
37587 "The callback function will be called when the child process quits, either "
37588 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37589 "corresponds to a transition from any state to the CONFIG state)."
37590 msgstr ""
37591
37592 #. type: textblock
37593 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37594 msgid "If no callback is registered: the event is ignored."
37595 msgstr ""
37596
37597 #. type: =item
37598 #: ../src/guestfs.pod:1770
37599 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37600 msgstr ""
37601
37602 #. type: textblock
37603 #: ../src/guestfs.pod:1773
37604 msgid ""
37605 "The callback function will be called when the child process becomes ready "
37606 "first time after it has been launched.  (This corresponds to a transition "
37607 "from LAUNCHING to the READY state)."
37608 msgstr ""
37609
37610 #. type: =item
37611 #: ../src/guestfs.pod:1779
37612 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37613 msgstr ""
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:1782
37617 msgid ""
37618 "Some long-running operations can generate progress messages.  If this "
37619 "callback is registered, then it will be called each time a progress message "
37620 "is generated (usually two seconds after the operation started, and three "
37621 "times per second thereafter until it completes, although the frequency may "
37622 "change in future versions)."
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:1788
37627 msgid ""
37628 "The callback receives in the payload four unsigned 64 bit numbers which are "
37629 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:1791
37634 msgid ""
37635 "The units of C<total> are not defined, although for some operations C<total> "
37636 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37637 "or megabytes), and C<position> may be the portion which has been transferred."
37638 msgstr ""
37639
37640 #. type: textblock
37641 #: ../src/guestfs.pod:1796
37642 msgid "The only defined and stable parts of the API are:"
37643 msgstr ""
37644
37645 #. type: textblock
37646 #: ../src/guestfs.pod:1802
37647 msgid ""
37648 "The callback can display to the user some type of progress bar or indicator "
37649 "which shows the ratio of C<position>:C<total>."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:1807
37654 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:1811
37659 msgid ""
37660 "If any progress notification is sent during a call, then a final progress "
37661 "notification is always sent when C<position> = C<total> (I<unless> the call "
37662 "fails with an error)."
37663 msgstr ""
37664
37665 #. type: textblock
37666 #: ../src/guestfs.pod:1815
37667 msgid ""
37668 "This is to simplify caller code, so callers can easily set the progress "
37669 "indicator to \"100%\" at the end of the operation, without requiring special "
37670 "code to detect this case."
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../src/guestfs.pod:1821
37675 msgid ""
37676 "For some calls we are unable to estimate the progress of the call, but we "
37677 "can still generate progress messages to indicate activity.  This is known as "
37678 "\"pulse mode\", and is directly supported by certain progress bar "
37679 "implementations (eg. GtkProgressBar)."
37680 msgstr ""
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:1826
37684 msgid ""
37685 "For these calls, zero or more progress messages are generated with "
37686 "C<position = 0> and C<total = 1>, followed by a final message with "
37687 "C<position = total = 1>."
37688 msgstr ""
37689
37690 #. type: textblock
37691 #: ../src/guestfs.pod:1830
37692 msgid ""
37693 "As noted above, if the call fails with an error then the final message may "
37694 "not be generated."
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:1835
37699 msgid ""
37700 "The callback also receives the procedure number (C<proc_nr>) and serial "
37701 "number (C<serial>) of the call.  These are only useful for debugging "
37702 "protocol issues, and the callback can normally ignore them.  The callback "
37703 "may want to print these numbers in error messages or debugging messages."
37704 msgstr ""
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:1841
37708 msgid "If no callback is registered: progress messages are discarded."
37709 msgstr ""
37710
37711 #. type: =item
37712 #: ../src/guestfs.pod:1843
37713 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37714 msgstr ""
37715
37716 #. type: textblock
37717 #: ../src/guestfs.pod:1846
37718 msgid ""
37719 "The callback function is called whenever a log message is generated by qemu, "
37720 "the appliance kernel, guestfsd (daemon), or utility programs."
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../src/guestfs.pod:1849
37725 msgid ""
37726 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37727 "guestfs_launch>) then additional debug messages are generated."
37728 msgstr ""
37729
37730 #. type: textblock
37731 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37732 msgid ""
37733 "If no callback is registered: the messages are discarded unless the verbose "
37734 "flag is set in which case they are sent to stderr.  You can override the "
37735 "printing of verbose messages to stderr by setting up a callback."
37736 msgstr ""
37737
37738 #. type: =item
37739 #: ../src/guestfs.pod:1857
37740 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:1860
37745 msgid ""
37746 "The callback function is called whenever a log message is generated by the "
37747 "library part of libguestfs."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:1863
37752 msgid ""
37753 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37754 "messages are generated."
37755 msgstr ""
37756
37757 #. type: =item
37758 #: ../src/guestfs.pod:1871
37759 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37760 msgstr ""
37761
37762 #. type: textblock
37763 #: ../src/guestfs.pod:1874
37764 msgid ""
37765 "The callback function is called whenever a trace message is generated.  This "
37766 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:1877
37771 msgid ""
37772 "If no callback is registered: the messages are sent to stderr.  You can "
37773 "override the printing of trace messages to stderr by setting up a callback."
37774 msgstr ""
37775
37776 #. type: =item
37777 #: ../src/guestfs.pod:1881
37778 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37779 msgstr ""
37780
37781 #. type: textblock
37782 #: ../src/guestfs.pod:1884
37783 msgid ""
37784 "The callback function is called whenever a libguestfs function is entered."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../src/guestfs.pod:1887
37789 msgid ""
37790 "The payload is a string which contains the name of the function that we are "
37791 "entering (not including C<guestfs_> prefix)."
37792 msgstr ""
37793
37794 #. type: textblock
37795 #: ../src/guestfs.pod:1890
37796 msgid ""
37797 "Note that libguestfs functions can call themselves, so you may see many "
37798 "events from a single call.  A few libguestfs functions do not generate this "
37799 "event."
37800 msgstr ""
37801
37802 #. type: =head3
37803 #: ../src/guestfs.pod:1898
37804 msgid "guestfs_set_event_callback"
37805 msgstr ""
37806
37807 #. type: verbatim
37808 #: ../src/guestfs.pod:1900
37809 #, no-wrap
37810 msgid ""
37811 " int guestfs_set_event_callback (guestfs_h *g,\n"
37812 "                                 guestfs_event_callback cb,\n"
37813 "                                 uint64_t event_bitmask,\n"
37814 "                                 int flags,\n"
37815 "                                 void *opaque);\n"
37816 "\n"
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:1906
37821 msgid ""
37822 "This function registers a callback (C<cb>) for all event classes in the "
37823 "C<event_bitmask>."
37824 msgstr ""
37825
37826 #. type: textblock
37827 #: ../src/guestfs.pod:1909
37828 msgid ""
37829 "For example, to register for all log message events, you could call this "
37830 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37831 "To register a single callback for all possible classes of events, use "
37832 "C<GUESTFS_EVENT_ALL>."
37833 msgstr ""
37834
37835 #. type: textblock
37836 #: ../src/guestfs.pod:1915
37837 msgid "C<flags> should always be passed as 0."
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:1917
37842 msgid ""
37843 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37844 "it for any purpose."
37845 msgstr ""
37846
37847 #. type: textblock
37848 #: ../src/guestfs.pod:1920
37849 msgid ""
37850 "The return value is the event handle (an integer) which you can use to "
37851 "delete the callback (see below)."
37852 msgstr ""
37853
37854 #. type: textblock
37855 #: ../src/guestfs.pod:1923
37856 msgid ""
37857 "If there is an error, this function returns C<-1>, and sets the error in the "
37858 "handle in the usual way (see L</guestfs_last_error> etc.)"
37859 msgstr ""
37860
37861 #. type: textblock
37862 #: ../src/guestfs.pod:1926
37863 msgid ""
37864 "Callbacks remain in effect until they are deleted, or until the handle is "
37865 "closed."
37866 msgstr ""
37867
37868 #. type: textblock
37869 #: ../src/guestfs.pod:1929
37870 msgid ""
37871 "In the case where multiple callbacks are registered for a particular event "
37872 "class, all of the callbacks are called.  The order in which multiple "
37873 "callbacks are called is not defined."
37874 msgstr ""
37875
37876 #. type: =head3
37877 #: ../src/guestfs.pod:1933
37878 msgid "guestfs_delete_event_callback"
37879 msgstr ""
37880
37881 #. type: verbatim
37882 #: ../src/guestfs.pod:1935
37883 #, no-wrap
37884 msgid ""
37885 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37886 "\n"
37887 msgstr ""
37888
37889 #. type: textblock
37890 #: ../src/guestfs.pod:1937
37891 msgid ""
37892 "Delete a callback that was previously registered.  C<event_handle> should be "
37893 "the integer that was returned by a previous call to "
37894 "C<guestfs_set_event_callback> on the same handle."
37895 msgstr ""
37896
37897 #. type: =head3
37898 #: ../src/guestfs.pod:1941
37899 msgid "guestfs_event_callback"
37900 msgstr ""
37901
37902 #. type: verbatim
37903 #: ../src/guestfs.pod:1943
37904 #, no-wrap
37905 msgid ""
37906 " typedef void (*guestfs_event_callback) (\n"
37907 "                  guestfs_h *g,\n"
37908 "                  void *opaque,\n"
37909 "                  uint64_t event,\n"
37910 "                  int event_handle,\n"
37911 "                  int flags,\n"
37912 "                  const char *buf, size_t buf_len,\n"
37913 "                  const uint64_t *array, size_t array_len);\n"
37914 "\n"
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../src/guestfs.pod:1952
37919 msgid ""
37920 "This is the type of the event callback function that you have to provide."
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:1955
37925 msgid ""
37926 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37927 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37928 "handle, and C<flags> which in the current API you should ignore."
37929 msgstr ""
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:1959
37933 msgid ""
37934 "The remaining parameters contain the event payload (if any).  Each event may "
37935 "contain a payload, which usually relates to the event class, but for future "
37936 "proofing your code should be written to handle any payload for any event "
37937 "class."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:1964
37942 msgid ""
37943 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37944 "there is no message buffer).  Note that this message buffer can contain "
37945 "arbitrary 8 bit data, including NUL bytes."
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:1968
37950 msgid ""
37951 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37952 "moment this is only used for progress messages."
37953 msgstr ""
37954
37955 #. type: =head3
37956 #: ../src/guestfs.pod:1971
37957 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:1973
37962 msgid ""
37963 "One motivation for the generic event API was to allow GUI programs to "
37964 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37965 "unconditionally to C<stderr>."
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:1977
37970 msgid ""
37971 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37972 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37973 "messages are not events; you must capture error messages separately)."
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:1982
37978 msgid ""
37979 "Programs have to set up a callback to capture the classes of events of "
37980 "interest:"
37981 msgstr ""
37982
37983 #. type: verbatim
37984 #: ../src/guestfs.pod:1985
37985 #, no-wrap
37986 msgid ""
37987 " int eh =\n"
37988 "   guestfs_set_event_callback\n"
37989 "     (g, message_callback,\n"
37990 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37991 "      GUESTFS_EVENT_TRACE,\n"
37992 "      0, NULL) == -1)\n"
37993 " if (eh == -1) {\n"
37994 "   // handle error in the usual way\n"
37995 " }\n"
37996 "\n"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:1995
38001 msgid ""
38002 "The callback can then direct messages to the appropriate place.  In this "
38003 "example, messages are directed to syslog:"
38004 msgstr ""
38005
38006 #. type: verbatim
38007 #: ../src/guestfs.pod:1998
38008 #, no-wrap
38009 msgid ""
38010 " static void\n"
38011 " message_callback (\n"
38012 "         guestfs_h *g,\n"
38013 "         void *opaque,\n"
38014 "         uint64_t event,\n"
38015 "         int event_handle,\n"
38016 "         int flags,\n"
38017 "         const char *buf, size_t buf_len,\n"
38018 "         const uint64_t *array, size_t array_len)\n"
38019 " {\n"
38020 "   const int priority = LOG_USER|LOG_INFO;\n"
38021 "   if (buf_len > 0)\n"
38022 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38023 " }\n"
38024 "\n"
38025 msgstr ""
38026
38027 #. type: =head1
38028 #: ../src/guestfs.pod:2013
38029 msgid "CANCELLING LONG TRANSFERS"
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:2015
38034 msgid ""
38035 "Some operations can be cancelled by the caller while they are in progress.  "
38036 "Currently only operations that involve uploading or downloading data can be "
38037 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38038 "parameters in the generator)."
38039 msgstr ""
38040
38041 #. type: =head2
38042 #: ../src/guestfs.pod:2020
38043 msgid "guestfs_user_cancel"
38044 msgstr ""
38045
38046 #. type: verbatim
38047 #: ../src/guestfs.pod:2022
38048 #, no-wrap
38049 msgid ""
38050 " void guestfs_user_cancel (guestfs_h *g);\n"
38051 "\n"
38052 msgstr ""
38053
38054 #. type: textblock
38055 #: ../src/guestfs.pod:2024
38056 msgid ""
38057 "C<guestfs_user_cancel> cancels the current upload or download operation."
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:2027
38062 msgid ""
38063 "Unlike most other libguestfs calls, this function is signal safe and thread "
38064 "safe.  You can call it from a signal handler or from another thread, without "
38065 "needing to do any locking."
38066 msgstr ""
38067
38068 #. type: textblock
38069 #: ../src/guestfs.pod:2031
38070 msgid ""
38071 "The transfer that was in progress (if there is one) will stop shortly "
38072 "afterwards, and will return an error.  The errno (see L</"
38073 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38074 "out if the operation was cancelled or failed because of another error."
38075 msgstr ""
38076
38077 #. type: textblock
38078 #: ../src/guestfs.pod:2037
38079 msgid ""
38080 "No cleanup is performed: for example, if a file was being uploaded then "
38081 "after cancellation there may be a partially uploaded file.  It is the "
38082 "caller's responsibility to clean up if necessary."
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:2041
38087 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38088 msgstr ""
38089
38090 #. type: textblock
38091 #: ../src/guestfs.pod:2043
38092 msgid ""
38093 "In an interactive text-based program, you might call it from a C<SIGINT> "
38094 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38095 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38096 "receive the C<^C> signal)."
38097 msgstr ""
38098
38099 #. type: textblock
38100 #: ../src/guestfs.pod:2048
38101 msgid ""
38102 "In a graphical program, when the main thread is displaying a progress bar "
38103 "with a cancel button, wire up the cancel button to call this function."
38104 msgstr ""
38105
38106 #. type: =head1
38107 #: ../src/guestfs.pod:2052
38108 msgid "PRIVATE DATA AREA"
38109 msgstr ""
38110
38111 #. type: textblock
38112 #: ../src/guestfs.pod:2054
38113 msgid ""
38114 "You can attach named pieces of private data to the libguestfs handle, fetch "
38115 "them by name, and walk over them, for the lifetime of the handle.  This is "
38116 "called the private data area and is only available from the C API."
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:2059
38121 msgid "To attach a named piece of data, use the following call:"
38122 msgstr ""
38123
38124 #. type: verbatim
38125 #: ../src/guestfs.pod:2061
38126 #, no-wrap
38127 msgid ""
38128 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38129 "\n"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:2063
38134 msgid ""
38135 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38136 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38137 "overwritten."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:2067
38142 msgid ""
38143 "You can use any C<key> you want, but your key should I<not> start with an "
38144 "underscore character.  Keys beginning with an underscore character are "
38145 "reserved for internal libguestfs purposes (eg. for implementing language "
38146 "bindings).  It is recommended that you prefix the key with some unique "
38147 "string to avoid collisions with other users."
38148 msgstr ""
38149
38150 #. type: textblock
38151 #: ../src/guestfs.pod:2073
38152 msgid "To retrieve the pointer, use:"
38153 msgstr ""
38154
38155 #. type: verbatim
38156 #: ../src/guestfs.pod:2075
38157 #, no-wrap
38158 msgid ""
38159 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38160 "\n"
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:2077
38165 msgid ""
38166 "This function returns C<NULL> if either no data is found associated with "
38167 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38168 "C<NULL>."
38169 msgstr ""
38170
38171 #. type: textblock
38172 #: ../src/guestfs.pod:2081
38173 msgid ""
38174 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38175 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38176 "all.  In particular, libguestfs does I<not> try to free the data when the "
38177 "handle is closed.  If the data must be freed, then the caller must either "
38178 "free it before calling L</guestfs_close> or must set up a close callback to "
38179 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:2088
38184 msgid "To walk over all entries, use these two functions:"
38185 msgstr ""
38186
38187 #. type: verbatim
38188 #: ../src/guestfs.pod:2090
38189 #, no-wrap
38190 msgid ""
38191 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38192 "\n"
38193 msgstr ""
38194
38195 #. type: verbatim
38196 #: ../src/guestfs.pod:2092
38197 #, no-wrap
38198 msgid ""
38199 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38200 "\n"
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:2094
38205 msgid ""
38206 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38207 "not have any particular meaning -- keys are not returned in any defined "
38208 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38209 "corresponding data pointer is returned from the function.  C<NULL> is "
38210 "returned if there are no keys stored in the handle."
38211 msgstr ""
38212
38213 #. type: textblock
38214 #: ../src/guestfs.pod:2100
38215 msgid ""
38216 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38217 "value of this function is also C<NULL> is there are no further entries to "
38218 "return."
38219 msgstr ""
38220
38221 #. type: textblock
38222 #: ../src/guestfs.pod:2104
38223 msgid "Notes about walking over entries:"
38224 msgstr ""
38225
38226 #. type: textblock
38227 #: ../src/guestfs.pod:2110
38228 msgid ""
38229 "You must not call C<guestfs_set_private> while walking over the entries."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:2115
38234 msgid ""
38235 "The handle maintains an internal iterator which is reset when you call "
38236 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38237 "call C<guestfs_set_private>."
38238 msgstr ""
38239
38240 #. type: textblock
38241 #: ../src/guestfs.pod:2121
38242 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38243 msgstr ""
38244
38245 #. type: verbatim
38246 #: ../src/guestfs.pod:2123
38247 #, no-wrap
38248 msgid ""
38249 " guestfs_set_private (g, key, NULL);\n"
38250 "\n"
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:2125
38255 msgid "then that C<key> is not returned when walking."
38256 msgstr ""
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:2129
38260 msgid ""
38261 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38262 "C<guestfs_next_private> or C<guestfs_set_private>."
38263 msgstr ""
38264
38265 #. type: textblock
38266 #: ../src/guestfs.pod:2135
38267 msgid ""
38268 "The following example code shows how to print all keys and data pointers "
38269 "that are associated with the handle C<g>:"
38270 msgstr ""
38271
38272 #. type: verbatim
38273 #: ../src/guestfs.pod:2138
38274 #, no-wrap
38275 msgid ""
38276 " const char *key;\n"
38277 " void *data = guestfs_first_private (g, &key);\n"
38278 " while (data != NULL)\n"
38279 "   {\n"
38280 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38281 "     data = guestfs_next_private (g, &key);\n"
38282 "   }\n"
38283 "\n"
38284 msgstr ""
38285
38286 #. type: textblock
38287 #: ../src/guestfs.pod:2146
38288 msgid ""
38289 "More commonly you are only interested in keys that begin with an application-"
38290 "specific prefix C<foo_>.  Modify the loop like so:"
38291 msgstr ""
38292
38293 #. type: verbatim
38294 #: ../src/guestfs.pod:2149
38295 #, no-wrap
38296 msgid ""
38297 " const char *key;\n"
38298 " void *data = guestfs_first_private (g, &key);\n"
38299 " while (data != NULL)\n"
38300 "   {\n"
38301 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38302 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38303 "     data = guestfs_next_private (g, &key);\n"
38304 "   }\n"
38305 "\n"
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:2158
38310 msgid ""
38311 "If you need to modify keys while walking, then you have to jump back to the "
38312 "beginning of the loop.  For example, to delete all keys prefixed with "
38313 "C<foo_>:"
38314 msgstr ""
38315
38316 #. type: verbatim
38317 #: ../src/guestfs.pod:2162
38318 #, no-wrap
38319 msgid ""
38320 "  const char *key;\n"
38321 "  void *data;\n"
38322 " again:\n"
38323 "  data = guestfs_first_private (g, &key);\n"
38324 "  while (data != NULL)\n"
38325 "    {\n"
38326 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38327 "        {\n"
38328 "          guestfs_set_private (g, key, NULL);\n"
38329 "          /* note that 'key' pointer is now invalid, and so is\n"
38330 "             the internal iterator */\n"
38331 "          goto again;\n"
38332 "        }\n"
38333 "      data = guestfs_next_private (g, &key);\n"
38334 "    }\n"
38335 "\n"
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../src/guestfs.pod:2178
38340 msgid ""
38341 "Note that the above loop is guaranteed to terminate because the keys are "
38342 "being deleted, but other manipulations of keys within the loop might not "
38343 "terminate unless you also maintain an indication of which keys have been "
38344 "visited."
38345 msgstr ""
38346
38347 #. type: =head1
38348 #: ../src/guestfs.pod:2183
38349 msgid "SYSTEMTAP"
38350 msgstr ""
38351
38352 #. type: textblock
38353 #: ../src/guestfs.pod:2185
38354 msgid ""
38355 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38356 "true of any library, not just libguestfs.  However libguestfs also contains "
38357 "static markers to help in probing internal operations."
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../src/guestfs.pod:2189
38362 msgid "You can list all the static markers by doing:"
38363 msgstr ""
38364
38365 #. type: verbatim
38366 #: ../src/guestfs.pod:2191
38367 #, no-wrap
38368 msgid ""
38369 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38370 "              .provider(\"guestfs\").mark(\"*\")'\n"
38371 "\n"
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:2194
38376 msgid ""
38377 "B<Note:> These static markers are I<not> part of the stable API and may "
38378 "change in future versions."
38379 msgstr ""
38380
38381 #. type: =head2
38382 #: ../src/guestfs.pod:2197
38383 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38384 msgstr ""
38385
38386 #. type: textblock
38387 #: ../src/guestfs.pod:2199
38388 msgid ""
38389 "This script contains examples of displaying both the static markers and some "
38390 "ordinary C entry points:"
38391 msgstr ""
38392
38393 #. type: verbatim
38394 #: ../src/guestfs.pod:2202
38395 #, no-wrap
38396 msgid ""
38397 " global last;\n"
38398 " \n"
38399 msgstr ""
38400
38401 #. type: verbatim
38402 #: ../src/guestfs.pod:2204
38403 #, no-wrap
38404 msgid ""
38405 " function display_time () {\n"
38406 "       now = gettimeofday_us ();\n"
38407 "       delta = 0;\n"
38408 "       if (last > 0)\n"
38409 "             delta = now - last;\n"
38410 "       last = now;\n"
38411 " \n"
38412 msgstr ""
38413
38414 #. type: verbatim
38415 #: ../src/guestfs.pod:2211
38416 #, no-wrap
38417 msgid ""
38418 "       printf (\"%d (+%d):\", now, delta);\n"
38419 " }\n"
38420 " \n"
38421 msgstr ""
38422
38423 #. type: verbatim
38424 #: ../src/guestfs.pod:2214
38425 #, no-wrap
38426 msgid ""
38427 " probe begin {\n"
38428 "       last = 0;\n"
38429 "       printf (\"ready\\n\");\n"
38430 " }\n"
38431 " \n"
38432 msgstr ""
38433
38434 #. type: verbatim
38435 #: ../src/guestfs.pod:2219
38436 #, no-wrap
38437 msgid ""
38438 " /* Display all calls to static markers. */\n"
38439 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38440 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38441 "       display_time();\n"
38442 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38443 " }\n"
38444 " \n"
38445 msgstr ""
38446
38447 #. type: verbatim
38448 #: ../src/guestfs.pod:2226
38449 #, no-wrap
38450 msgid ""
38451 " /* Display all calls to guestfs_mkfs* functions. */\n"
38452 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38453 "           .function(\"guestfs_mkfs*\") ? {\n"
38454 "       display_time();\n"
38455 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38456 " }\n"
38457 "\n"
38458 msgstr ""
38459
38460 #. type: textblock
38461 #: ../src/guestfs.pod:2233
38462 msgid ""
38463 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38464 "program.  Note that you either have to be root, or you have to add yourself "
38465 "to several special stap groups.  Consult the systemtap documentation for "
38466 "more information."
38467 msgstr ""
38468
38469 #. type: verbatim
38470 #: ../src/guestfs.pod:2238
38471 #, no-wrap
38472 msgid ""
38473 " # stap /tmp/test.stap\n"
38474 " ready\n"
38475 "\n"
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:2241
38480 msgid "In another terminal, run a guestfish command such as this:"
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:2245
38485 msgid "In the first terminal, stap trace output similar to this is shown:"
38486 msgstr ""
38487
38488 #. type: verbatim
38489 #: ../src/guestfs.pod:2247
38490 #, no-wrap
38491 msgid ""
38492 " 1318248056692655 (+0):\tlaunch_start\n"
38493 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38494 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38495 " 1318248056838059 (+19774):     launch_run_qemu\n"
38496 " 1318248061071167 (+4233108):   launch_end\n"
38497 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38498 "\n"
38499 msgstr ""
38500
38501 #. type: =end
38502 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38503 msgid "html"
38504 msgstr ""
38505
38506 #. type: textblock
38507 #: ../src/guestfs.pod:2256
38508 msgid ""
38509 "<!-- old anchor for the next section --> <a name="
38510 "\"state_machine_and_low_level_event_api\"/>"
38511 msgstr ""
38512
38513 #. type: =head1
38514 #: ../src/guestfs.pod:2261
38515 msgid "ARCHITECTURE"
38516 msgstr ""
38517
38518 #. type: textblock
38519 #: ../src/guestfs.pod:2263
38520 msgid ""
38521 "Internally, libguestfs is implemented by running an appliance (a special "
38522 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38523 "process of the main program."
38524 msgstr ""
38525
38526 #. type: verbatim
38527 #: ../src/guestfs.pod:2267
38528 #, no-wrap
38529 msgid ""
38530 "  ___________________\n"
38531 " /                   \\\n"
38532 " | main program      |\n"
38533 " |                   |\n"
38534 " |                   |           child process / appliance\n"
38535 " |                   |           __________________________\n"
38536 " |                   |          / qemu                     \\\n"
38537 " +-------------------+   RPC    |      +-----------------+ |\n"
38538 " | libguestfs     <--------------------> guestfsd        | |\n"
38539 " |                   |          |      +-----------------+ |\n"
38540 " \\___________________/          |      | Linux kernel    | |\n"
38541 "                                |      +--^--------------+ |\n"
38542 "                                \\_________|________________/\n"
38543 "                                          |\n"
38544 "                                   _______v______\n"
38545 "                                  /              \\\n"
38546 "                                  | Device or    |\n"
38547 "                                  | disk image   |\n"
38548 "                                  \\______________/\n"
38549 "\n"
38550 msgstr ""
38551
38552 #. type: textblock
38553 #: ../src/guestfs.pod:2287
38554 msgid ""
38555 "The library, linked to the main program, creates the child process and hence "
38556 "the appliance in the L</guestfs_launch> function."
38557 msgstr ""
38558
38559 #. type: textblock
38560 #: ../src/guestfs.pod:2290
38561 msgid ""
38562 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38563 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38564 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38565 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38566 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38567 "attached to the qemu process which translates device access by the "
38568 "appliance's Linux kernel into accesses to the image."
38569 msgstr ""
38570
38571 #. type: textblock
38572 #: ../src/guestfs.pod:2299
38573 msgid ""
38574 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38575 "Although the disk image you are attached to might also be used by some "
38576 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38577 "care if both libguestfs's qemu process and your virtual machine are trying "
38578 "to update the disk image at the same time, since these usually results in "
38579 "massive disk corruption)."
38580 msgstr ""
38581
38582 #. type: =head1
38583 #: ../src/guestfs.pod:2306
38584 msgid "STATE MACHINE"
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:2308
38589 msgid "libguestfs uses a state machine to model the child process:"
38590 msgstr ""
38591
38592 #. type: verbatim
38593 #: ../src/guestfs.pod:2310
38594 #, no-wrap
38595 msgid ""
38596 "                         |\n"
38597 "                    guestfs_create\n"
38598 "                         |\n"
38599 "                         |\n"
38600 "                     ____V_____\n"
38601 "                    /          \\\n"
38602 "                    |  CONFIG  |\n"
38603 "                    \\__________/\n"
38604 "                     ^ ^   ^  \\\n"
38605 "                    /  |    \\  \\ guestfs_launch\n"
38606 "                   /   |    _\\__V______\n"
38607 "                  /    |   /           \\\n"
38608 "                 /     |   | LAUNCHING |\n"
38609 "                /      |   \\___________/\n"
38610 "               /       |       /\n"
38611 "              /        |  guestfs_launch\n"
38612 "             /         |     /\n"
38613 "    ______  /        __|____V\n"
38614 "   /      \\ ------> /        \\\n"
38615 "   | BUSY |         | READY  |\n"
38616 "   \\______/ <------ \\________/\n"
38617 "\n"
38618 msgstr ""
38619
38620 #. type: textblock
38621 #: ../src/guestfs.pod:2332
38622 msgid ""
38623 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38624 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38625 "(3) alternating between READY and BUSY as commands are issued to, and "
38626 "carried out by, the child process."
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:2337
38631 msgid ""
38632 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38633 "asynchronously at any time (eg. due to some internal error), and that causes "
38634 "the state to transition back to CONFIG."
38635 msgstr ""
38636
38637 #. type: textblock
38638 #: ../src/guestfs.pod:2341
38639 msgid ""
38640 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38641 "issued when in the CONFIG state."
38642 msgstr ""
38643
38644 #. type: textblock
38645 #: ../src/guestfs.pod:2344
38646 msgid ""
38647 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38648 "L</guestfs_launch> blocks until the child process is READY to accept "
38649 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38650 "moves the state from CONFIG to LAUNCHING while it is running."
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:2350
38655 msgid ""
38656 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38657 "state.  These API calls block waiting for the command to be carried out (ie. "
38658 "the state to transition to BUSY and then back to READY).  There are no non-"
38659 "blocking versions, and no way to issue more than one command per handle at "
38660 "the same time."
38661 msgstr ""
38662
38663 #. type: textblock
38664 #: ../src/guestfs.pod:2356
38665 msgid ""
38666 "Finally, the child process sends asynchronous messages back to the main "
38667 "program, such as kernel log messages.  You can register a callback to "
38668 "receive these messages."
38669 msgstr ""
38670
38671 #. type: =head1
38672 #: ../src/guestfs.pod:2360
38673 msgid "INTERNALS"
38674 msgstr ""
38675
38676 #. type: =head2
38677 #: ../src/guestfs.pod:2362
38678 msgid "APPLIANCE BOOT PROCESS"
38679 msgstr ""
38680
38681 #. type: textblock
38682 #: ../src/guestfs.pod:2364
38683 msgid ""
38684 "This process has evolved and continues to evolve.  The description here "
38685 "corresponds only to the current version of libguestfs and is provided for "
38686 "information only."
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:2368
38691 msgid ""
38692 "In order to follow the stages involved below, enable libguestfs debugging "
38693 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38694 msgstr ""
38695
38696 #. type: =item
38697 #: ../src/guestfs.pod:2373
38698 msgid "Create the appliance"
38699 msgstr ""
38700
38701 #. type: textblock
38702 #: ../src/guestfs.pod:2375
38703 msgid ""
38704 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38705 "initrd and the appliance."
38706 msgstr ""
38707
38708 #. type: textblock
38709 #: ../src/guestfs.pod:2378
38710 msgid ""
38711 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38712 "directory if C<TMPDIR> is set)."
38713 msgstr ""
38714
38715 #. type: textblock
38716 #: ../src/guestfs.pod:2381
38717 msgid ""
38718 "For a complete description of how the appliance is created and cached, read "
38719 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38720 msgstr ""
38721
38722 #. type: =item
38723 #: ../src/guestfs.pod:2385
38724 msgid "Start qemu and boot the kernel"
38725 msgstr ""
38726
38727 #. type: textblock
38728 #: ../src/guestfs.pod:2387
38729 msgid "qemu is invoked to boot the kernel."
38730 msgstr ""
38731
38732 #. type: =item
38733 #: ../src/guestfs.pod:2389
38734 msgid "Run the initrd"
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../src/guestfs.pod:2391
38739 msgid ""
38740 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38741 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38742 "order that the appliance itself can be mounted and started."
38743 msgstr ""
38744
38745 #. type: textblock
38746 #: ../src/guestfs.pod:2395
38747 msgid ""
38748 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38749 "initrd>."
38750 msgstr ""
38751
38752 #. type: textblock
38753 #: ../src/guestfs.pod:2398
38754 msgid ""
38755 "When the initrd has started you will see messages showing that kernel "
38756 "modules are being loaded, similar to this:"
38757 msgstr ""
38758
38759 #. type: verbatim
38760 #: ../src/guestfs.pod:2401
38761 #, no-wrap
38762 msgid ""
38763 " febootstrap: ext2 mini initrd starting up\n"
38764 " febootstrap: mounting /sys\n"
38765 " febootstrap: internal insmod libcrc32c.ko\n"
38766 " febootstrap: internal insmod crc32c-intel.ko\n"
38767 "\n"
38768 msgstr ""
38769
38770 #. type: =item
38771 #: ../src/guestfs.pod:2406
38772 msgid "Find and mount the appliance device"
38773 msgstr ""
38774
38775 #. type: textblock
38776 #: ../src/guestfs.pod:2408
38777 msgid ""
38778 "The appliance is a sparse file containing an ext2 filesystem which contains "
38779 "a familiar (although reduced in size) Linux operating system.  It would "
38780 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../src/guestfs.pod:2412
38785 msgid ""
38786 "The regular disks being inspected by libguestfs are the first devices "
38787 "exposed by qemu (eg. as C</dev/vda>)."
38788 msgstr ""
38789
38790 #. type: textblock
38791 #: ../src/guestfs.pod:2415
38792 msgid ""
38793 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38794 "there was only one regular disk)."
38795 msgstr ""
38796
38797 #. type: textblock
38798 #: ../src/guestfs.pod:2418
38799 msgid ""
38800 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38801 "and switch root into the appliance, and run C</init> from the appliance."
38802 msgstr ""
38803
38804 #. type: textblock
38805 #: ../src/guestfs.pod:2422
38806 msgid "If this works successfully you will see messages such as:"
38807 msgstr ""
38808
38809 #. type: verbatim
38810 #: ../src/guestfs.pod:2424
38811 #, no-wrap
38812 msgid ""
38813 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38814 " febootstrap: creating /dev/root as block special 252:16\n"
38815 " febootstrap: mounting new root on /root\n"
38816 " febootstrap: chroot\n"
38817 " Starting /init script ...\n"
38818 "\n"
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../src/guestfs.pod:2430
38823 msgid ""
38824 "Note that C<Starting /init script ...> indicates that the appliance's init "
38825 "script is now running."
38826 msgstr ""
38827
38828 #. type: =item
38829 #: ../src/guestfs.pod:2433
38830 msgid "Initialize the appliance"
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../src/guestfs.pod:2435
38835 msgid ""
38836 "The appliance itself now initializes itself.  This involves starting certain "
38837 "processes like C<udev>, possibly printing some debug information, and "
38838 "finally running the daemon (C<guestfsd>)."
38839 msgstr ""
38840
38841 #. type: =item
38842 #: ../src/guestfs.pod:2439
38843 msgid "The daemon"
38844 msgstr ""
38845
38846 #. type: textblock
38847 #: ../src/guestfs.pod:2441
38848 msgid ""
38849 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38850 "should see:"
38851 msgstr ""
38852
38853 #. type: verbatim
38854 #: ../src/guestfs.pod:2444
38855 #, no-wrap
38856 msgid ""
38857 " verbose daemon enabled\n"
38858 "\n"
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../src/guestfs.pod:2446
38863 msgid ""
38864 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38865 "connected on the other end to the library."
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../src/guestfs.pod:2449
38870 msgid ""
38871 "The daemon connects to this port (and hence to the library) and sends a four "
38872 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38873 "protocol (see below)."
38874 msgstr ""
38875
38876 #. type: =head2
38877 #: ../src/guestfs.pod:2455
38878 msgid "COMMUNICATION PROTOCOL"
38879 msgstr ""
38880
38881 #. type: textblock
38882 #: ../src/guestfs.pod:2457
38883 msgid ""
38884 "Don't rely on using this protocol directly.  This section documents how it "
38885 "currently works, but it may change at any time."
38886 msgstr ""
38887
38888 #. type: textblock
38889 #: ../src/guestfs.pod:2460
38890 msgid ""
38891 "The protocol used to talk between the library and the daemon running inside "
38892 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38893 "1014, RFC 1832, RFC 4506)."
38894 msgstr ""
38895
38896 #. type: textblock
38897 #: ../src/guestfs.pod:2464
38898 msgid ""
38899 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38900 "this file is automatically generated)."
38901 msgstr ""
38902
38903 #. type: textblock
38904 #: ../src/guestfs.pod:2467
38905 msgid ""
38906 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38907 "and C<FileOut> parameters, which are handled with very simple request/reply "
38908 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38909 "parameters, which use the same request and reply messages, but they may also "
38910 "be followed by files sent using a chunked encoding."
38911 msgstr ""
38912
38913 #. type: =head3
38914 #: ../src/guestfs.pod:2474
38915 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../src/guestfs.pod:2476
38920 msgid "For ordinary functions, the request message is:"
38921 msgstr ""
38922
38923 #. type: verbatim
38924 #: ../src/guestfs.pod:2478
38925 #, no-wrap
38926 msgid ""
38927 " total length (header + arguments,\n"
38928 "      but not including the length word itself)\n"
38929 " struct guestfs_message_header (encoded as XDR)\n"
38930 " struct guestfs_<foo>_args (encoded as XDR)\n"
38931 "\n"
38932 msgstr ""
38933
38934 #. type: textblock
38935 #: ../src/guestfs.pod:2483
38936 msgid ""
38937 "The total length field allows the daemon to allocate a fixed size buffer "
38938 "into which it slurps the rest of the message.  As a result, the total length "
38939 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38940 "effective size of any request is limited to somewhere under this size."
38941 msgstr ""
38942
38943 #. type: textblock
38944 #: ../src/guestfs.pod:2489
38945 msgid ""
38946 "Note also that many functions don't take any arguments, in which case the "
38947 "C<guestfs_I<foo>_args> is completely omitted."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:2492
38952 msgid ""
38953 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38954 "receiver knows what type of args structure to expect, or none at all."
38955 msgstr ""
38956
38957 #. type: textblock
38958 #: ../src/guestfs.pod:2496
38959 msgid ""
38960 "For functions that take optional arguments, the optional arguments are "
38961 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38962 "arguments.  A bitmask in the header indicates which optional arguments are "
38963 "meaningful.  The bitmask is also checked to see if it contains bits set "
38964 "which the daemon does not know about (eg. if more optional arguments were "
38965 "added in a later version of the library), and this causes the call to be "
38966 "rejected."
38967 msgstr ""
38968
38969 #. type: textblock
38970 #: ../src/guestfs.pod:2504
38971 msgid "The reply message for ordinary functions is:"
38972 msgstr ""
38973
38974 #. type: verbatim
38975 #: ../src/guestfs.pod:2506
38976 #, no-wrap
38977 msgid ""
38978 " total length (header + ret,\n"
38979 "      but not including the length word itself)\n"
38980 " struct guestfs_message_header (encoded as XDR)\n"
38981 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38982 "\n"
38983 msgstr ""
38984
38985 #. type: textblock
38986 #: ../src/guestfs.pod:2511
38987 msgid ""
38988 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38989 "functions that return no formal return values."
38990 msgstr ""
38991
38992 #. type: textblock
38993 #: ../src/guestfs.pod:2514
38994 msgid ""
38995 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38996 msgstr ""
38997
38998 #. type: textblock
38999 #: ../src/guestfs.pod:2517
39000 msgid ""
39001 "In the case of an error, a flag is set in the header, and the reply message "
39002 "is slightly changed:"
39003 msgstr ""
39004
39005 #. type: verbatim
39006 #: ../src/guestfs.pod:2520
39007 #, no-wrap
39008 msgid ""
39009 " total length (header + error,\n"
39010 "      but not including the length word itself)\n"
39011 " struct guestfs_message_header (encoded as XDR)\n"
39012 " struct guestfs_message_error (encoded as XDR)\n"
39013 "\n"
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../src/guestfs.pod:2525
39018 msgid ""
39019 "The C<guestfs_message_error> structure contains the error message as a "
39020 "string."
39021 msgstr ""
39022
39023 #. type: =head3
39024 #: ../src/guestfs.pod:2528
39025 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:2530
39030 msgid ""
39031 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39032 "The normal request message is sent (see above).  However this is followed by "
39033 "a sequence of file chunks."
39034 msgstr ""
39035
39036 #. type: verbatim
39037 #: ../src/guestfs.pod:2534
39038 #, no-wrap
39039 msgid ""
39040 " total length (header + arguments,\n"
39041 "      but not including the length word itself,\n"
39042 "      and not including the chunks)\n"
39043 " struct guestfs_message_header (encoded as XDR)\n"
39044 " struct guestfs_<foo>_args (encoded as XDR)\n"
39045 " sequence of chunks for FileIn param #0\n"
39046 " sequence of chunks for FileIn param #1 etc.\n"
39047 "\n"
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../src/guestfs.pod:2542
39052 msgid "The \"sequence of chunks\" is:"
39053 msgstr ""
39054
39055 #. type: verbatim
39056 #: ../src/guestfs.pod:2544
39057 #, no-wrap
39058 msgid ""
39059 " length of chunk (not including length word itself)\n"
39060 " struct guestfs_chunk (encoded as XDR)\n"
39061 " length of chunk\n"
39062 " struct guestfs_chunk (encoded as XDR)\n"
39063 "   ...\n"
39064 " length of chunk\n"
39065 " struct guestfs_chunk (with data.data_len == 0)\n"
39066 "\n"
39067 msgstr ""
39068
39069 #. type: textblock
39070 #: ../src/guestfs.pod:2552
39071 msgid ""
39072 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39073 "is set in the final chunk to indicate either successful completion or early "
39074 "cancellation."
39075 msgstr ""
39076
39077 #. type: textblock
39078 #: ../src/guestfs.pod:2556
39079 msgid ""
39080 "At time of writing there are no functions that have more than one FileIn "
39081 "parameter.  However this is (theoretically) supported, by sending the "
39082 "sequence of chunks for each FileIn parameter one after another (from left to "
39083 "right)."
39084 msgstr ""
39085
39086 #. type: textblock
39087 #: ../src/guestfs.pod:2561
39088 msgid ""
39089 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39090 "transfer.  The library does this by sending a chunk with a special flag set "
39091 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39092 "RPC, does I<not> send any reply, and goes back to reading the next request."
39093 msgstr ""
39094
39095 #. type: textblock
39096 #: ../src/guestfs.pod:2567
39097 msgid ""
39098 "The daemon may also cancel.  It does this by writing a special word "
39099 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39100 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39101 "cancel chunk).  The special word is chosen so that even if cancellation "
39102 "happens right at the end of the transfer (after the library has finished "
39103 "writing and has started listening for the reply), the \"spurious\" cancel "
39104 "flag will not be confused with the reply message."
39105 msgstr ""
39106
39107 #. type: textblock
39108 #: ../src/guestfs.pod:2576
39109 msgid ""
39110 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39111 "limit), and also files where the size is not known in advance (eg. from "
39112 "pipes or sockets).  However the chunks are rather small "
39113 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39114 "to keep much in memory."
39115 msgstr ""
39116
39117 #. type: =head3
39118 #: ../src/guestfs.pod:2582
39119 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:2584
39124 msgid ""
39125 "The protocol for FileOut parameters is exactly the same as for FileIn "
39126 "parameters, but with the roles of daemon and library reversed."
39127 msgstr ""
39128
39129 #. type: verbatim
39130 #: ../src/guestfs.pod:2587
39131 #, no-wrap
39132 msgid ""
39133 " total length (header + ret,\n"
39134 "      but not including the length word itself,\n"
39135 "      and not including the chunks)\n"
39136 " struct guestfs_message_header (encoded as XDR)\n"
39137 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39138 " sequence of chunks for FileOut param #0\n"
39139 " sequence of chunks for FileOut param #1 etc.\n"
39140 "\n"
39141 msgstr ""
39142
39143 #. type: =head3
39144 #: ../src/guestfs.pod:2595
39145 msgid "INITIAL MESSAGE"
39146 msgstr ""
39147
39148 #. type: textblock
39149 #: ../src/guestfs.pod:2597
39150 msgid ""
39151 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39152 "which indicates that the guest and daemon is alive.  This is what L</"
39153 "guestfs_launch> waits for."
39154 msgstr ""
39155
39156 #. type: =head3
39157 #: ../src/guestfs.pod:2601
39158 msgid "PROGRESS NOTIFICATION MESSAGES"
39159 msgstr ""
39160
39161 #. type: textblock
39162 #: ../src/guestfs.pod:2603
39163 msgid ""
39164 "The daemon may send progress notification messages at any time.  These are "
39165 "distinguished by the normal length word being replaced by "
39166 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:2607
39171 msgid ""
39172 "The library turns them into progress callbacks (see L</"
39173 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39174 "if not."
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../src/guestfs.pod:2611
39179 msgid ""
39180 "The daemon self-limits the frequency of progress messages it sends (see "
39181 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39182 "messages."
39183 msgstr ""
39184
39185 #. type: =head1
39186 #: ../src/guestfs.pod:2615
39187 msgid "LIBGUESTFS VERSION NUMBERS"
39188 msgstr ""
39189
39190 #. type: textblock
39191 #: ../src/guestfs.pod:2617
39192 msgid ""
39193 "Since April 2010, libguestfs has started to make separate development and "
39194 "stable releases, along with corresponding branches in our git repository.  "
39195 "These separate releases can be identified by version number:"
39196 msgstr ""
39197
39198 #. type: verbatim
39199 #: ../src/guestfs.pod:2622
39200 #, no-wrap
39201 msgid ""
39202 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39203 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39204 "       |\n"
39205 "       v\n"
39206 " 1  .  3  .  5\n"
39207 " ^           ^\n"
39208 " |           |\n"
39209 " |           `-------- sub-version\n"
39210 " |\n"
39211 " `------ always '1' because we don't change the ABI\n"
39212 "\n"
39213 msgstr ""
39214
39215 #. type: textblock
39216 #: ../src/guestfs.pod:2633
39217 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:2635
39222 msgid ""
39223 "As time passes we cherry pick fixes from the development branch and backport "
39224 "those into the stable branch, the effect being that the stable branch should "
39225 "get more stable and less buggy over time.  So the stable releases are ideal "
39226 "for people who don't need new features but would just like the software to "
39227 "work."
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:2641
39232 msgid "Our criteria for backporting changes are:"
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../src/guestfs.pod:2647
39237 msgid ""
39238 "Documentation changes which don't affect any code are backported unless the "
39239 "documentation refers to a future feature which is not in stable."
39240 msgstr ""
39241
39242 #. type: textblock
39243 #: ../src/guestfs.pod:2653
39244 msgid ""
39245 "Bug fixes which are not controversial, fix obvious problems, and have been "
39246 "well tested are backported."
39247 msgstr ""
39248
39249 #. type: textblock
39250 #: ../src/guestfs.pod:2658
39251 msgid ""
39252 "Simple rearrangements of code which shouldn't affect how it works get "
39253 "backported.  This is so that the code in the two branches doesn't get too "
39254 "far out of step, allowing us to backport future fixes more easily."
39255 msgstr ""
39256
39257 #. type: textblock
39258 #: ../src/guestfs.pod:2664
39259 msgid ""
39260 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39261 "exceptional case: the new feature is required in order to implement an "
39262 "important bug fix."
39263 msgstr ""
39264
39265 #. type: textblock
39266 #: ../src/guestfs.pod:2670
39267 msgid ""
39268 "A new stable branch starts when we think the new features in development are "
39269 "substantial and compelling enough over the current stable branch to warrant "
39270 "it.  When that happens we create new stable and development versions 1.N.0 "
39271 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39272 "stable at this point, but by backporting fixes from development, that branch "
39273 "will stabilize over time."
39274 msgstr ""
39275
39276 #. type: =head1
39277 #: ../src/guestfs.pod:2678
39278 msgid "EXTENDING LIBGUESTFS"
39279 msgstr ""
39280
39281 #. type: =head2
39282 #: ../src/guestfs.pod:2680
39283 msgid "ADDING A NEW API ACTION"
39284 msgstr ""
39285
39286 #. type: textblock
39287 #: ../src/guestfs.pod:2682
39288 msgid ""
39289 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39290 "documentation) are generated, and this makes it easy to extend the "
39291 "libguestfs API."
39292 msgstr ""
39293
39294 #. type: textblock
39295 #: ../src/guestfs.pod:2686
39296 msgid "To add a new API action there are two changes:"
39297 msgstr ""
39298
39299 #. type: textblock
39300 #: ../src/guestfs.pod:2692
39301 msgid ""
39302 "You need to add a description of the call (name, parameters, return type, "
39303 "tests, documentation) to C<generator/generator_actions.ml>."
39304 msgstr ""
39305
39306 #. type: textblock
39307 #: ../src/guestfs.pod:2695
39308 msgid ""
39309 "There are two sorts of API action, depending on whether the call goes "
39310 "through to the daemon in the appliance, or is serviced entirely by the "
39311 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39312 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39313 "an example of the latter, since a trace flag is maintained in the handle and "
39314 "all tracing is done on the library side."
39315 msgstr ""
39316
39317 #. type: textblock
39318 #: ../src/guestfs.pod:2703
39319 msgid ""
39320 "Most new actions are of the first type, and get added to the "
39321 "C<daemon_functions> list.  Each function has a unique procedure number used "
39322 "in the RPC protocol which is assigned to that action when we publish "
39323 "libguestfs and cannot be reused.  Take the latest procedure number and "
39324 "increment it."
39325 msgstr ""
39326
39327 #. type: textblock
39328 #: ../src/guestfs.pod:2709
39329 msgid ""
39330 "For library-only actions of the second type, add to the "
39331 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39332 "library and do not travel over the RPC mechanism to the daemon, these "
39333 "functions do not need a procedure number, and so the procedure number is set "
39334 "to C<-1>."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../src/guestfs.pod:2717
39339 msgid "Implement the action (in C):"
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../src/guestfs.pod:2719
39344 msgid ""
39345 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39346 "C<daemon/> directory."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../src/guestfs.pod:2722
39351 msgid ""
39352 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39353 "(note: double underscore) in the C<src/> directory."
39354 msgstr ""
39355
39356 #. type: textblock
39357 #: ../src/guestfs.pod:2725
39358 msgid "In either case, use another function as an example of what to do."
39359 msgstr ""
39360
39361 #. type: textblock
39362 #: ../src/guestfs.pod:2729
39363 msgid "After making these changes, use C<make> to compile."
39364 msgstr ""
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:2731
39368 msgid ""
39369 "Note that you don't need to implement the RPC, language bindings, manual "
39370 "pages or anything else.  It's all automatically generated from the OCaml "
39371 "description."
39372 msgstr ""
39373
39374 #. type: =head2
39375 #: ../src/guestfs.pod:2735
39376 msgid "ADDING TESTS FOR AN API ACTION"
39377 msgstr ""
39378
39379 #. type: textblock
39380 #: ../src/guestfs.pod:2737
39381 msgid ""
39382 "You can supply zero or as many tests as you want per API call.  The tests "
39383 "can either be added as part of the API description (C<generator/"
39384 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39385 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39386 "slower, so if possible use the first method."
39387 msgstr ""
39388
39389 #. type: textblock
39390 #: ../src/guestfs.pod:2743
39391 msgid ""
39392 "The following describes the test environment used when you add an API test "
39393 "in C<generator_actions.ml>."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:2746
39398 msgid "The test environment has 4 block devices:"
39399 msgstr ""
39400
39401 #. type: =item
39402 #: ../src/guestfs.pod:2750
39403 msgid "C</dev/sda> 500MB"
39404 msgstr ""
39405
39406 #. type: textblock
39407 #: ../src/guestfs.pod:2752
39408 msgid "General block device for testing."
39409 msgstr ""
39410
39411 #. type: =item
39412 #: ../src/guestfs.pod:2754
39413 msgid "C</dev/sdb> 50MB"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:2756
39418 msgid ""
39419 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39420 "operations."
39421 msgstr ""
39422
39423 #. type: =item
39424 #: ../src/guestfs.pod:2759
39425 msgid "C</dev/sdc> 10MB"
39426 msgstr ""
39427
39428 #. type: textblock
39429 #: ../src/guestfs.pod:2761
39430 msgid "Used in a few tests where two block devices are needed."
39431 msgstr ""
39432
39433 #. type: =item
39434 #: ../src/guestfs.pod:2763
39435 msgid "C</dev/sdd>"
39436 msgstr ""
39437
39438 #. type: textblock
39439 #: ../src/guestfs.pod:2765
39440 msgid "ISO with fixed content (see C<images/test.iso>)."
39441 msgstr ""
39442
39443 #. type: textblock
39444 #: ../src/guestfs.pod:2769
39445 msgid ""
39446 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39447 "appliance and block devices are reused between tests.  So don't try testing "
39448 "L</guestfs_kill_subprocess> :-x"
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:2773
39453 msgid ""
39454 "Each test starts with an initial scenario, selected using one of the "
39455 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39456 "initialize the disks mentioned above in a particular way as documented in "
39457 "C<generator_types.ml>.  You should not assume anything about the previous "
39458 "contents of other disks that are not initialized."
39459 msgstr ""
39460
39461 #. type: textblock
39462 #: ../src/guestfs.pod:2779
39463 msgid ""
39464 "You can add a prerequisite clause to any individual test.  This is a run-"
39465 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39466 "testing a command which might not work on all variations of libguestfs "
39467 "builds.  A test that has prerequisite of C<Always> means to run "
39468 "unconditionally."
39469 msgstr ""
39470
39471 #. type: textblock
39472 #: ../src/guestfs.pod:2785
39473 msgid ""
39474 "In addition, packagers can skip individual tests by setting environment "
39475 "variables before running C<make check>."
39476 msgstr ""
39477
39478 #. type: verbatim
39479 #: ../src/guestfs.pod:2788
39480 #, no-wrap
39481 msgid ""
39482 " SKIP_TEST_<CMD>_<NUM>=1\n"
39483 "\n"
39484 msgstr ""
39485
39486 #. type: textblock
39487 #: ../src/guestfs.pod:2790
39488 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39489 msgstr ""
39490
39491 #. type: textblock
39492 #: ../src/guestfs.pod:2792
39493 msgid "or:"
39494 msgstr ""
39495
39496 #. type: verbatim
39497 #: ../src/guestfs.pod:2794
39498 #, no-wrap
39499 msgid ""
39500 " SKIP_TEST_<CMD>=1\n"
39501 "\n"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:2796
39506 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39507 msgstr ""
39508
39509 #. type: textblock
39510 #: ../src/guestfs.pod:2798
39511 msgid "Packagers can run only certain tests by setting for example:"
39512 msgstr ""
39513
39514 #. type: verbatim
39515 #: ../src/guestfs.pod:2800
39516 #, no-wrap
39517 msgid ""
39518 " TEST_ONLY=\"vfs_type zerofree\"\n"
39519 "\n"
39520 msgstr ""
39521
39522 #. type: textblock
39523 #: ../src/guestfs.pod:2802
39524 msgid ""
39525 "See C<capitests/tests.c> for more details of how these environment variables "
39526 "work."
39527 msgstr ""
39528
39529 #. type: =head2
39530 #: ../src/guestfs.pod:2805
39531 msgid "DEBUGGING NEW API ACTIONS"
39532 msgstr ""
39533
39534 #. type: textblock
39535 #: ../src/guestfs.pod:2807
39536 msgid "Test new actions work before submitting them."
39537 msgstr ""
39538
39539 #. type: textblock
39540 #: ../src/guestfs.pod:2809
39541 msgid "You can use guestfish to try out new commands."
39542 msgstr ""
39543
39544 #. type: textblock
39545 #: ../src/guestfs.pod:2811
39546 msgid ""
39547 "Debugging the daemon is a problem because it runs inside a minimal "
39548 "environment.  However you can fprintf messages in the daemon to stderr, and "
39549 "they will show up if you use C<guestfish -v>."
39550 msgstr ""
39551
39552 #. type: =head2
39553 #: ../src/guestfs.pod:2815
39554 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39555 msgstr ""
39556
39557 #. type: textblock
39558 #: ../src/guestfs.pod:2817
39559 msgid ""
39560 "Our C source code generally adheres to some basic code-formatting "
39561 "conventions.  The existing code base is not totally consistent on this "
39562 "front, but we do prefer that contributed code be formatted similarly.  In "
39563 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39564 "indentation level, and other than that, follow the K&R style."
39565 msgstr ""
39566
39567 #. type: textblock
39568 #: ../src/guestfs.pod:2823
39569 msgid ""
39570 "If you use Emacs, add the following to one of one of your start-up files (e."
39571 "g., ~/.emacs), to help ensure that you get indentation right:"
39572 msgstr ""
39573
39574 #. type: verbatim
39575 #: ../src/guestfs.pod:2826
39576 #, no-wrap
39577 msgid ""
39578 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39579 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39580 " (add-hook 'find-file-hook\n"
39581 "     '(lambda () (if (and buffer-file-name\n"
39582 "                          (string-match \"/libguestfs\\\\>\"\n"
39583 "                              (buffer-file-name))\n"
39584 "                          (not (string-equal mode-name \"Change Log\"))\n"
39585 "                          (not (string-equal mode-name \"Makefile\")))\n"
39586 "                     (setq indent-tabs-mode nil))))\n"
39587 " \n"
39588 msgstr ""
39589
39590 #. type: verbatim
39591 #: ../src/guestfs.pod:2836
39592 #, no-wrap
39593 msgid ""
39594 " ;;; When editing C sources in libguestfs, use this style.\n"
39595 " (defun libguestfs-c-mode ()\n"
39596 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39597 "   (interactive)\n"
39598 "   (c-set-style \"K&R\")\n"
39599 "   (setq c-indent-level 2)\n"
39600 "   (setq c-basic-offset 2))\n"
39601 " (add-hook 'c-mode-hook\n"
39602 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39603 "                               (buffer-file-name))\n"
39604 "                           (libguestfs-c-mode))))\n"
39605 "\n"
39606 msgstr ""
39607
39608 #. type: textblock
39609 #: ../src/guestfs.pod:2848
39610 msgid "Enable warnings when compiling (and fix any problems this finds):"
39611 msgstr ""
39612
39613 #. type: verbatim
39614 #: ../src/guestfs.pod:2851
39615 #, no-wrap
39616 msgid ""
39617 " ./configure --enable-gcc-warnings\n"
39618 "\n"
39619 msgstr ""
39620
39621 #. type: textblock
39622 #: ../src/guestfs.pod:2853
39623 msgid "Useful targets are:"
39624 msgstr ""
39625
39626 #. type: verbatim
39627 #: ../src/guestfs.pod:2855
39628 #, no-wrap
39629 msgid ""
39630 " make syntax-check  # checks the syntax of the C code\n"
39631 " make check         # runs the test suite\n"
39632 "\n"
39633 msgstr ""
39634
39635 #. type: =head2
39636 #: ../src/guestfs.pod:2858
39637 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../src/guestfs.pod:2860
39642 msgid ""
39643 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39644 "which are used to do shell quoting."
39645 msgstr ""
39646
39647 #. type: =item
39648 #: ../src/guestfs.pod:2865
39649 msgid "%Q"
39650 msgstr ""
39651
39652 #. type: textblock
39653 #: ../src/guestfs.pod:2867
39654 msgid ""
39655 "Simple shell quoted string.  Any spaces or other shell characters are "
39656 "escaped for you."
39657 msgstr ""
39658
39659 #. type: =item
39660 #: ../src/guestfs.pod:2870
39661 msgid "%R"
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../src/guestfs.pod:2872
39666 msgid ""
39667 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39668 "the sysroot."
39669 msgstr ""
39670
39671 #. type: verbatim
39672 #: ../src/guestfs.pod:2879
39673 #, no-wrap
39674 msgid ""
39675 " asprintf (&cmd, \"cat %R\", path);\n"
39676 "\n"
39677 msgstr ""
39678
39679 #. type: textblock
39680 #: ../src/guestfs.pod:2881
39681 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2883
39686 msgid ""
39687 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39688 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39689 "they are not passed via the shell (instead, straight to exec).  You probably "
39690 "want to use the C<sysroot_path()> function however."
39691 msgstr ""
39692
39693 #. type: =head2
39694 #: ../src/guestfs.pod:2889
39695 msgid "SUBMITTING YOUR NEW API ACTIONS"
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../src/guestfs.pod:2891
39700 msgid ""
39701 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39702 "libguestfs> and CC to L<rjones@redhat.com>."
39703 msgstr ""
39704
39705 #. type: =head2
39706 #: ../src/guestfs.pod:2895
39707 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39708 msgstr ""
39709
39710 #. type: textblock
39711 #: ../src/guestfs.pod:2897
39712 msgid "We support i18n (gettext anyhow) in the library."
39713 msgstr ""
39714
39715 #. type: textblock
39716 #: ../src/guestfs.pod:2899
39717 msgid ""
39718 "However many messages come from the daemon, and we don't translate those at "
39719 "the moment.  One reason is that the appliance generally has all locale files "
39720 "removed from it, because they take up a lot of space.  So we'd have to readd "
39721 "some of those, as well as copying our PO files into the appliance."
39722 msgstr ""
39723
39724 #. type: textblock
39725 #: ../src/guestfs.pod:2905
39726 msgid ""
39727 "Debugging messages are never translated, since they are intended for the "
39728 "programmers."
39729 msgstr ""
39730
39731 #. type: =head2
39732 #: ../src/guestfs.pod:2908
39733 msgid "SOURCE CODE SUBDIRECTORIES"
39734 msgstr ""
39735
39736 #. type: =item
39737 #: ../src/guestfs.pod:2912
39738 msgid "C<align>"
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:2914
39743 msgid "L<virt-alignment-scan(1)> command and documentation."
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../src/guestfs.pod:2918
39748 msgid "The libguestfs appliance, build scripts and so on."
39749 msgstr ""
39750
39751 #. type: =item
39752 #: ../src/guestfs.pod:2920
39753 msgid "C<capitests>"
39754 msgstr ""
39755
39756 #. type: textblock
39757 #: ../src/guestfs.pod:2922
39758 msgid "Automated tests of the C API."
39759 msgstr ""
39760
39761 #. type: =item
39762 #: ../src/guestfs.pod:2924
39763 msgid "C<cat>"
39764 msgstr ""
39765
39766 #. type: textblock
39767 #: ../src/guestfs.pod:2926
39768 msgid ""
39769 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39770 "documentation."
39771 msgstr ""
39772
39773 #. type: =item
39774 #: ../src/guestfs.pod:2929
39775 msgid "C<caution>"
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:2931
39780 msgid ""
39781 "Safety and liveness tests of components that libguestfs depends upon (not of "
39782 "libguestfs itself).  Mainly this is for qemu and the kernel."
39783 msgstr ""
39784
39785 #. type: =item
39786 #: ../src/guestfs.pod:2934
39787 msgid "C<clone>"
39788 msgstr ""
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:2936
39792 msgid ""
39793 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39794 "command and documentation."
39795 msgstr ""
39796
39797 #. type: =item
39798 #: ../src/guestfs.pod:2939
39799 msgid "C<contrib>"
39800 msgstr ""
39801
39802 #. type: textblock
39803 #: ../src/guestfs.pod:2941
39804 msgid "Outside contributions, experimental parts."
39805 msgstr ""
39806
39807 #. type: =item
39808 #: ../src/guestfs.pod:2943
39809 msgid "C<daemon>"
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../src/guestfs.pod:2945
39814 msgid ""
39815 "The daemon that runs inside the libguestfs appliance and carries out actions."
39816 msgstr ""
39817
39818 #. type: =item
39819 #: ../src/guestfs.pod:2948
39820 msgid "C<df>"
39821 msgstr ""
39822
39823 #. type: textblock
39824 #: ../src/guestfs.pod:2950
39825 msgid "L<virt-df(1)> command and documentation."
39826 msgstr ""
39827
39828 #. type: =item
39829 #: ../src/guestfs.pod:2952
39830 msgid "C<edit>"
39831 msgstr ""
39832
39833 #. type: textblock
39834 #: ../src/guestfs.pod:2954
39835 msgid "L<virt-edit(1)> command and documentation."
39836 msgstr ""
39837
39838 #. type: =item
39839 #: ../src/guestfs.pod:2956
39840 msgid "C<examples>"
39841 msgstr ""
39842
39843 #. type: textblock
39844 #: ../src/guestfs.pod:2958
39845 msgid "C API example code."
39846 msgstr ""
39847
39848 #. type: =item
39849 #: ../src/guestfs.pod:2960
39850 msgid "C<fish>"
39851 msgstr ""
39852
39853 #. type: textblock
39854 #: ../src/guestfs.pod:2962
39855 msgid ""
39856 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39857 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39858 "L<virt-tar-out(1)>."
39859 msgstr ""
39860
39861 #. type: =item
39862 #: ../src/guestfs.pod:2966
39863 msgid "C<fuse>"
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:2968
39868 msgid ""
39869 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39870 msgstr ""
39871
39872 #. type: =item
39873 #: ../src/guestfs.pod:2970
39874 msgid "C<generator>"
39875 msgstr ""
39876
39877 #. type: textblock
39878 #: ../src/guestfs.pod:2972
39879 msgid ""
39880 "The crucially important generator, used to automatically generate large "
39881 "amounts of boilerplate C code for things like RPC and bindings."
39882 msgstr ""
39883
39884 #. type: =item
39885 #: ../src/guestfs.pod:2975
39886 msgid "C<images>"
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../src/guestfs.pod:2977
39891 msgid "Files used by the test suite."
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../src/guestfs.pod:2979
39896 msgid "Some \"phony\" guest images which we test against."
39897 msgstr ""
39898
39899 #. type: =item
39900 #: ../src/guestfs.pod:2981
39901 msgid "C<inspector>"
39902 msgstr ""
39903
39904 #. type: textblock
39905 #: ../src/guestfs.pod:2983
39906 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39907 msgstr ""
39908
39909 #. type: =item
39910 #: ../src/guestfs.pod:2985
39911 msgid "C<logo>"
39912 msgstr ""
39913
39914 #. type: textblock
39915 #: ../src/guestfs.pod:2987
39916 msgid "Logo used on the website.  The fish is called Arthur by the way."
39917 msgstr ""
39918
39919 #. type: =item
39920 #: ../src/guestfs.pod:2989
39921 msgid "C<m4>"
39922 msgstr ""
39923
39924 #. type: textblock
39925 #: ../src/guestfs.pod:2991
39926 msgid "M4 macros used by autoconf."
39927 msgstr ""
39928
39929 #. type: =item
39930 #: ../src/guestfs.pod:2993
39931 msgid "C<po>"
39932 msgstr ""
39933
39934 #. type: textblock
39935 #: ../src/guestfs.pod:2995
39936 msgid "Translations of simple gettext strings."
39937 msgstr ""
39938
39939 #. type: =item
39940 #: ../src/guestfs.pod:2997
39941 msgid "C<po-docs>"
39942 msgstr ""
39943
39944 #. type: textblock
39945 #: ../src/guestfs.pod:2999
39946 msgid ""
39947 "The build infrastructure and PO files for translations of manpages and POD "
39948 "files.  Eventually this will be combined with the C<po> directory, but that "
39949 "is rather complicated."
39950 msgstr ""
39951
39952 #. type: =item
39953 #: ../src/guestfs.pod:3003
39954 msgid "C<regressions>"
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../src/guestfs.pod:3005
39959 msgid "Regression tests."
39960 msgstr ""
39961
39962 #. type: =item
39963 #: ../src/guestfs.pod:3007
39964 msgid "C<rescue>"
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:3009
39969 msgid "L<virt-rescue(1)> command and documentation."
39970 msgstr ""
39971
39972 #. type: =item
39973 #: ../src/guestfs.pod:3011
39974 msgid "C<resize>"
39975 msgstr ""
39976
39977 #. type: textblock
39978 #: ../src/guestfs.pod:3013
39979 msgid "L<virt-resize(1)> command and documentation."
39980 msgstr ""
39981
39982 #. type: =item
39983 #: ../src/guestfs.pod:3015
39984 msgid "C<sparsify>"
39985 msgstr ""
39986
39987 #. type: textblock
39988 #: ../src/guestfs.pod:3017
39989 msgid "L<virt-sparsify(1)> command and documentation."
39990 msgstr ""
39991
39992 #. type: =item
39993 #: ../src/guestfs.pod:3019
39994 msgid "C<src>"
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../src/guestfs.pod:3021
39999 msgid "Source code to the C library."
40000 msgstr ""
40001
40002 #. type: =item
40003 #: ../src/guestfs.pod:3023
40004 msgid "C<tools>"
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:3025
40009 msgid ""
40010 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40011 msgstr ""
40012
40013 #. type: =item
40014 #: ../src/guestfs.pod:3027
40015 msgid "C<test-tool>"
40016 msgstr ""
40017
40018 #. type: textblock
40019 #: ../src/guestfs.pod:3029
40020 msgid ""
40021 "Test tool for end users to test if their qemu/kernel combination will work "
40022 "with libguestfs."
40023 msgstr ""
40024
40025 #. type: =item
40026 #: ../src/guestfs.pod:3032
40027 msgid "C<csharp>"
40028 msgstr ""
40029
40030 #. type: =item
40031 #: ../src/guestfs.pod:3034
40032 msgid "C<erlang>"
40033 msgstr ""
40034
40035 #. type: =item
40036 #: ../src/guestfs.pod:3036
40037 msgid "C<haskell>"
40038 msgstr ""
40039
40040 #. type: =item
40041 #: ../src/guestfs.pod:3038
40042 msgid "C<java>"
40043 msgstr ""
40044
40045 #. type: =item
40046 #: ../src/guestfs.pod:3040
40047 msgid "C<ocaml>"
40048 msgstr ""
40049
40050 #. type: =item
40051 #: ../src/guestfs.pod:3042
40052 msgid "C<php>"
40053 msgstr ""
40054
40055 #. type: =item
40056 #: ../src/guestfs.pod:3044
40057 msgid "C<perl>"
40058 msgstr ""
40059
40060 #. type: =item
40061 #: ../src/guestfs.pod:3046
40062 msgid "C<python>"
40063 msgstr ""
40064
40065 #. type: =item
40066 #: ../src/guestfs.pod:3048
40067 msgid "C<ruby>"
40068 msgstr ""
40069
40070 #. type: textblock
40071 #: ../src/guestfs.pod:3050
40072 msgid "Language bindings."
40073 msgstr ""
40074
40075 #. type: =head2
40076 #: ../src/guestfs.pod:3054
40077 msgid "MAKING A STABLE RELEASE"
40078 msgstr ""
40079
40080 #. type: textblock
40081 #: ../src/guestfs.pod:3056
40082 msgid ""
40083 "When we make a stable release, there are several steps documented here.  See "
40084 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40085 "branch policy."
40086 msgstr ""
40087
40088 #. type: textblock
40089 #: ../src/guestfs.pod:3064
40090 msgid ""
40091 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40092 msgstr ""
40093
40094 #. type: textblock
40095 #: ../src/guestfs.pod:3069
40096 msgid "Finalize RELEASE-NOTES."
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:3073
40101 msgid "Update ROADMAP."
40102 msgstr ""
40103
40104 #. type: textblock
40105 #: ../src/guestfs.pod:3077
40106 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40107 msgstr ""
40108
40109 #. type: textblock
40110 #: ../src/guestfs.pod:3081
40111 msgid "Push and pull from Transifex."
40112 msgstr ""
40113
40114 #. type: textblock
40115 #: ../src/guestfs.pod:3083
40116 msgid "Run:"
40117 msgstr ""
40118
40119 #. type: verbatim
40120 #: ../src/guestfs.pod:3085
40121 #, no-wrap
40122 msgid ""
40123 " tx push -s\n"
40124 "\n"
40125 msgstr ""
40126
40127 #. type: textblock
40128 #: ../src/guestfs.pod:3087
40129 msgid "to push the latest POT files to Transifex.  Then run:"
40130 msgstr ""
40131
40132 #. type: verbatim
40133 #: ../src/guestfs.pod:3089
40134 #, no-wrap
40135 msgid ""
40136 " ./tx-pull.sh\n"
40137 "\n"
40138 msgstr ""
40139
40140 #. type: textblock
40141 #: ../src/guestfs.pod:3091
40142 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40143 msgstr ""
40144
40145 #. type: textblock
40146 #: ../src/guestfs.pod:3095
40147 msgid ""
40148 "Create new stable and development directories under L<http://libguestfs.org/"
40149 "download>."
40150 msgstr ""
40151
40152 #. type: textblock
40153 #: ../src/guestfs.pod:3100
40154 msgid "Create the branch in git:"
40155 msgstr ""
40156
40157 #. type: verbatim
40158 #: ../src/guestfs.pod:3102
40159 #, no-wrap
40160 msgid ""
40161 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40162 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40163 " git branch stable-1.XX\n"
40164 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40165 "\n"
40166 msgstr ""
40167
40168 #. type: =head1
40169 #: ../src/guestfs.pod:3109
40170 msgid "LIMITS"
40171 msgstr ""
40172
40173 #. type: =head2
40174 #: ../src/guestfs.pod:3111
40175 msgid "PROTOCOL LIMITS"
40176 msgstr ""
40177
40178 #. type: textblock
40179 #: ../src/guestfs.pod:3113
40180 msgid ""
40181 "Internally libguestfs uses a message-based protocol to pass API calls and "
40182 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40183 "plenty more detail about this).  The maximum message size used by the "
40184 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40185 "aware of this limit.  The API calls which may be affected are individually "
40186 "documented, with a link back to this section of the documentation."
40187 msgstr ""
40188
40189 #. type: textblock
40190 #: ../src/guestfs.pod:3121
40191 msgid ""
40192 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40193 "a simple string.  Because this string is at some point internally encoded as "
40194 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40195 "the requested file is larger than this then you will get an error."
40196 msgstr ""
40197
40198 #. type: textblock
40199 #: ../src/guestfs.pod:3127
40200 msgid ""
40201 "In order to transfer large files into and out of the guest filesystem, you "
40202 "need to use particular calls that support this.  The sections L</UPLOADING> "
40203 "and L</DOWNLOADING> document how to do this."
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../src/guestfs.pod:3131
40208 msgid ""
40209 "You might also consider mounting the disk image using our FUSE filesystem "
40210 "support (L<guestmount(1)>)."
40211 msgstr ""
40212
40213 #. type: =head2
40214 #: ../src/guestfs.pod:3134
40215 msgid "MAXIMUM NUMBER OF DISKS"
40216 msgstr ""
40217
40218 #. type: textblock
40219 #: ../src/guestfs.pod:3136
40220 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40221 msgstr ""
40222
40223 #. type: textblock
40224 #: ../src/guestfs.pod:3139
40225 msgid ""
40226 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40227 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40228 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40229 "purposes."
40230 msgstr ""
40231
40232 #. type: textblock
40233 #: ../src/guestfs.pod:3144
40234 msgid ""
40235 "We are working to substantially raise this limit in future versions but it "
40236 "requires complex changes to qemu."
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../src/guestfs.pod:3147
40241 msgid ""
40242 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40243 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40244 "requires changes to qemu."
40245 msgstr ""
40246
40247 #. type: =head2
40248 #: ../src/guestfs.pod:3151
40249 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:3153
40254 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40255 msgstr ""
40256
40257 #. type: textblock
40258 #: ../src/guestfs.pod:3155
40259 msgid ""
40260 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40261 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40262 msgstr ""
40263
40264 #. type: textblock
40265 #: ../src/guestfs.pod:3158
40266 msgid ""
40267 "If you attach a disk with more than 15 partitions, the extra partitions are "
40268 "ignored by libguestfs."
40269 msgstr ""
40270
40271 #. type: =head2
40272 #: ../src/guestfs.pod:3161
40273 msgid "MAXIMUM SIZE OF A DISK"
40274 msgstr ""
40275
40276 #. type: textblock
40277 #: ../src/guestfs.pod:3163
40278 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40279 msgstr ""
40280
40281 #. type: textblock
40282 #: ../src/guestfs.pod:3165
40283 msgid ""
40284 "We have tested block devices up to 1 exabyte (2**60 or "
40285 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40286 "filesystem."
40287 msgstr ""
40288
40289 #. type: textblock
40290 #: ../src/guestfs.pod:3169
40291 msgid ""
40292 "Although libguestfs probably does not impose any limit, the underlying host "
40293 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40294 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40295 "TB).  If you store disk images as host logical volumes then you are limited "
40296 "by the maximum size of an LV."
40297 msgstr ""
40298
40299 #. type: textblock
40300 #: ../src/guestfs.pod:3175
40301 msgid ""
40302 "For the hugest disk image files, we recommend using XFS on the host for "
40303 "storage."
40304 msgstr ""
40305
40306 #. type: =head2
40307 #: ../src/guestfs.pod:3178
40308 msgid "MAXIMUM SIZE OF A PARTITION"
40309 msgstr ""
40310
40311 #. type: textblock
40312 #: ../src/guestfs.pod:3180
40313 msgid ""
40314 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40315 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40316 "address a partition located beyond 2 TB on the disk."
40317 msgstr ""
40318
40319 #. type: textblock
40320 #: ../src/guestfs.pod:3184
40321 msgid ""
40322 "It is recommended that you use GPT partitions on disks which are larger than "
40323 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40324 "which are theoretically larger than the largest disk we could support."
40325 msgstr ""
40326
40327 #. type: =head2
40328 #: ../src/guestfs.pod:3189
40329 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40330 msgstr ""
40331
40332 #. type: textblock
40333 #: ../src/guestfs.pod:3191
40334 msgid ""
40335 "This depends on the filesystem type.  libguestfs itself does not impose any "
40336 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40337 "what these limits are."
40338 msgstr ""
40339
40340 #. type: =head2
40341 #: ../src/guestfs.pod:3195
40342 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40343 msgstr ""
40344
40345 #. type: textblock
40346 #: ../src/guestfs.pod:3197
40347 msgid ""
40348 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40349 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40350 "uploads and downloads."
40351 msgstr ""
40352
40353 #. type: =head2
40354 #: ../src/guestfs.pod:3201
40355 msgid "INSPECTION LIMITS"
40356 msgstr ""
40357
40358 #. type: textblock
40359 #: ../src/guestfs.pod:3203
40360 msgid ""
40361 "The inspection code has several arbitrary limits on things like the size of "
40362 "Windows Registry hive it will read, and the length of product name.  These "
40363 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40364 "memory and disk space on the host, and should not be reached in practice.  "
40365 "See the source code for more information."
40366 msgstr ""
40367
40368 #. type: textblock
40369 #: ../src/guestfs.pod:3229
40370 msgid ""
40371 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40372 "effect as calling C<guestfs_set_verbose (g, 1)>."
40373 msgstr ""
40374
40375 #. type: textblock
40376 #: ../src/guestfs.pod:3241
40377 msgid ""
40378 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40379 "the discussion of paths in section L</PATH> above."
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../src/guestfs.pod:3250
40384 msgid "See also L</QEMU WRAPPERS> above."
40385 msgstr ""
40386
40387 #. type: textblock
40388 #: ../src/guestfs.pod:3254
40389 msgid ""
40390 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40391 "effect as calling C<guestfs_set_trace (g, 1)>."
40392 msgstr ""
40393
40394 #. type: textblock
40395 #: ../src/guestfs.pod:3272
40396 msgid ""
40397 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40398 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40399 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40400 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40401 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40402 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40403 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40404 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40405 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40406 ">, L<http://libguestfs.org/>."
40407 msgstr ""
40408
40409 #. type: textblock
40410 #: ../src/guestfs.pod:3308
40411 msgid ""
40412 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40413 "(8)>, L<disktype(1)>."
40414 msgstr ""
40415
40416 #. type: =head1
40417 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
40418 #: ../tools/virt-win-reg.pl:772
40419 msgid "BUGS"
40420 msgstr ""
40421
40422 #. type: textblock
40423 #: ../src/guestfs.pod:3317
40424 msgid "To get a list of bugs against libguestfs use this link:"
40425 msgstr ""
40426
40427 #. type: textblock
40428 #: ../src/guestfs.pod:3319
40429 msgid ""
40430 "L<https://bugzilla.redhat.com/buglist.cgi?"
40431 "component=libguestfs&product=Virtualization+Tools>"
40432 msgstr ""
40433
40434 #. type: textblock
40435 #: ../src/guestfs.pod:3321
40436 msgid "To report a new bug against libguestfs use this link:"
40437 msgstr ""
40438
40439 #. type: textblock
40440 #: ../src/guestfs.pod:3323
40441 msgid ""
40442 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40443 "component=libguestfs&product=Virtualization+Tools>"
40444 msgstr ""
40445
40446 #. type: textblock
40447 #: ../src/guestfs.pod:3325
40448 msgid "When reporting a bug, please check:"
40449 msgstr ""
40450
40451 #. type: textblock
40452 #: ../src/guestfs.pod:3331
40453 msgid "That the bug hasn't been reported already."
40454 msgstr ""
40455
40456 #. type: textblock
40457 #: ../src/guestfs.pod:3335
40458 msgid "That you are testing a recent version."
40459 msgstr ""
40460
40461 #. type: textblock
40462 #: ../src/guestfs.pod:3339
40463 msgid "Describe the bug accurately, and give a way to reproduce it."
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../src/guestfs.pod:3343
40468 msgid ""
40469 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40470 "bug report."
40471 msgstr ""
40472
40473 #. type: textblock
40474 #: ../test-tool/libguestfs-test-tool.pod:5
40475 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40476 msgstr ""
40477
40478 #. type: verbatim
40479 #: ../test-tool/libguestfs-test-tool.pod:9
40480 #, no-wrap
40481 msgid ""
40482 " libguestfs-test-tool [--options]\n"
40483 "\n"
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../test-tool/libguestfs-test-tool.pod:13
40488 msgid ""
40489 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40490 "to check basic libguestfs functionality is working.  This is needed because "
40491 "libguestfs occasionally breaks for reasons beyond our control: usually "
40492 "because of changes in the underlying qemu or kernel packages, or the host "
40493 "environment."
40494 msgstr ""
40495
40496 #. type: textblock
40497 #: ../test-tool/libguestfs-test-tool.pod:19
40498 msgid "If you suspect a problem in libguestfs, then just run:"
40499 msgstr ""
40500
40501 #. type: verbatim
40502 #: ../test-tool/libguestfs-test-tool.pod:21
40503 #, no-wrap
40504 msgid ""
40505 " libguestfs-test-tool\n"
40506 "\n"
40507 msgstr ""
40508
40509 #. type: textblock
40510 #: ../test-tool/libguestfs-test-tool.pod:23
40511 msgid "It will print lots of diagnostic messages."
40512 msgstr ""
40513
40514 #. type: textblock
40515 #: ../test-tool/libguestfs-test-tool.pod:25
40516 msgid "If it runs to completion successfully, you will see this near the end:"
40517 msgstr ""
40518
40519 #. type: verbatim
40520 #: ../test-tool/libguestfs-test-tool.pod:27
40521 #, no-wrap
40522 msgid ""
40523 " ===== TEST FINISHED OK =====\n"
40524 "\n"
40525 msgstr ""
40526
40527 #. type: textblock
40528 #: ../test-tool/libguestfs-test-tool.pod:29
40529 msgid "and the test tool will exit with code 0."
40530 msgstr ""
40531
40532 #. type: textblock
40533 #: ../test-tool/libguestfs-test-tool.pod:31
40534 msgid ""
40535 "If it fails (and/or exits with non-zero error code), please paste the "
40536 "I<complete, unedited> output of the test tool into a bug report.  More "
40537 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40538 "> website."
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../test-tool/libguestfs-test-tool.pod:42
40543 msgid "Display short usage information and exit."
40544 msgstr ""
40545
40546 #. type: =item
40547 #: ../test-tool/libguestfs-test-tool.pod:44
40548 msgid "B<--qemu qemu_binary>"
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../test-tool/libguestfs-test-tool.pod:46
40553 msgid ""
40554 "If you have downloaded another qemu binary, point this option at the full "
40555 "path of the binary to try it."
40556 msgstr ""
40557
40558 #. type: =item
40559 #: ../test-tool/libguestfs-test-tool.pod:49
40560 msgid "B<--qemudir qemu_source_dir>"
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../test-tool/libguestfs-test-tool.pod:51
40565 msgid ""
40566 "If you have compiled qemu from source, point this option at the source "
40567 "directory to try it."
40568 msgstr ""
40569
40570 #. type: =item
40571 #: ../test-tool/libguestfs-test-tool.pod:54
40572 msgid "B<-t N>"
40573 msgstr ""
40574
40575 #. type: =item
40576 #: ../test-tool/libguestfs-test-tool.pod:56
40577 msgid "B<--timeout N>"
40578 msgstr ""
40579
40580 #. type: textblock
40581 #: ../test-tool/libguestfs-test-tool.pod:58
40582 msgid ""
40583 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40584 "minutes) which does not usually need to be adjusted."
40585 msgstr ""
40586
40587 #. type: =head1
40588 #: ../test-tool/libguestfs-test-tool.pod:63
40589 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40590 msgstr ""
40591
40592 #. type: textblock
40593 #: ../test-tool/libguestfs-test-tool.pod:65
40594 msgid ""
40595 "If you have compiled another version of qemu from source and would like to "
40596 "try that, then you can use the I<--qemudir> option to point to the qemu "
40597 "source directory."
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../test-tool/libguestfs-test-tool.pod:69
40602 msgid ""
40603 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40604 "option to point to the binary."
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../test-tool/libguestfs-test-tool.pod:72
40609 msgid ""
40610 "Note when using these options, you can ignore the business of qemu wrapper "
40611 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40612 "wrapper script for you if one is needed."
40613 msgstr ""
40614
40615 #. type: =head1
40616 #: ../test-tool/libguestfs-test-tool.pod:76
40617 msgid "TRYING OUT A DIFFERENT KERNEL"
40618 msgstr ""
40619
40620 #. type: textblock
40621 #: ../test-tool/libguestfs-test-tool.pod:78
40622 msgid ""
40623 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40624 "libguestfs tries.  You do this by setting the environment variables "
40625 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../test-tool/libguestfs-test-tool.pod:82
40630 msgid ""
40631 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40632 "information."
40633 msgstr ""
40634
40635 #. type: =head1
40636 #: ../test-tool/libguestfs-test-tool.pod:85
40637 msgid "SELF-DIAGNOSIS"
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../test-tool/libguestfs-test-tool.pod:87
40642 msgid ""
40643 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40644 "produced by libguestfs-test-tool and/or possible errors."
40645 msgstr ""
40646
40647 #. type: textblock
40648 #: ../test-tool/libguestfs-test-tool.pod:92
40649 msgid ""
40650 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40651 "I<1> if there was an error."
40652 msgstr ""
40653
40654 #. type: textblock
40655 #: ../test-tool/libguestfs-test-tool.pod:97
40656 msgid ""
40657 "For the full list of environment variables which may affect libguestfs, "
40658 "please see the L<guestfs(3)> manual page."
40659 msgstr ""
40660
40661 #. type: textblock
40662 #: ../test-tool/libguestfs-test-tool.pod:102
40663 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40664 msgstr ""
40665
40666 #. type: textblock
40667 #: ../tools/virt-list-filesystems.pl:32
40668 msgid ""
40669 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40670 msgstr ""
40671
40672 #. type: verbatim
40673 #: ../tools/virt-list-filesystems.pl:36
40674 #, no-wrap
40675 msgid ""
40676 " virt-list-filesystems [--options] domname\n"
40677 "\n"
40678 msgstr ""
40679
40680 #. type: verbatim
40681 #: ../tools/virt-list-filesystems.pl:38
40682 #, no-wrap
40683 msgid ""
40684 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40685 "\n"
40686 msgstr ""
40687
40688 #. type: textblock
40689 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40690 msgid ""
40691 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40692 "replacement."
40693 msgstr ""
40694
40695 #. type: textblock
40696 #: ../tools/virt-list-filesystems.pl:45
40697 msgid ""
40698 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40699 "are contained in a virtual machine or disk image."
40700 msgstr ""
40701
40702 #. type: textblock
40703 #: ../tools/virt-list-filesystems.pl:49
40704 msgid ""
40705 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40706 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40707 "> tool."
40708 msgstr ""
40709
40710 #. type: textblock
40711 #: ../tools/virt-list-filesystems.pl:112
40712 msgid ""
40713 "With this option, C<virt-list-filesystems> displays the type of each "
40714 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40715 msgstr ""
40716
40717 #. type: =item
40718 #: ../tools/virt-list-filesystems.pl:119
40719 msgid "B<-a>"
40720 msgstr ""
40721
40722 #. type: textblock
40723 #: ../tools/virt-list-filesystems.pl:123
40724 msgid ""
40725 "Normally we only show mountable filesystems.  If this option is given then "
40726 "swap devices are shown too."
40727 msgstr ""
40728
40729 #. type: textblock
40730 #: ../tools/virt-list-filesystems.pl:197
40731 msgid ""
40732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40733 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40734 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40735 msgstr ""
40736
40737 #. type: textblock
40738 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40739 msgid "Copyright (C) 2009 Red Hat Inc."
40740 msgstr ""
40741
40742 #. type: textblock
40743 #: ../tools/virt-list-partitions.pl:32
40744 msgid ""
40745 "virt-list-partitions - List partitions in a virtual machine or disk image"
40746 msgstr ""
40747
40748 #. type: verbatim
40749 #: ../tools/virt-list-partitions.pl:36
40750 #, no-wrap
40751 msgid ""
40752 " virt-list-partitions [--options] domname\n"
40753 "\n"
40754 msgstr ""
40755
40756 #. type: verbatim
40757 #: ../tools/virt-list-partitions.pl:38
40758 #, no-wrap
40759 msgid ""
40760 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40761 "\n"
40762 msgstr ""
40763
40764 #. type: textblock
40765 #: ../tools/virt-list-partitions.pl:45
40766 msgid ""
40767 "C<virt-list-partitions> is a command line tool to list the partitions that "
40768 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40769 "first step to using L<virt-resize(1)>."
40770 msgstr ""
40771
40772 #. type: textblock
40773 #: ../tools/virt-list-partitions.pl:50
40774 msgid ""
40775 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40776 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40777 "> tool."
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../tools/virt-list-partitions.pl:113
40782 msgid "Show sizes in human-readable form (eg. \"1G\")."
40783 msgstr ""
40784
40785 #. type: textblock
40786 #: ../tools/virt-list-partitions.pl:123
40787 msgid ""
40788 "With this option, C<virt-list-partitions> displays the type and size of each "
40789 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40790 msgstr ""
40791
40792 #. type: =item
40793 #: ../tools/virt-list-partitions.pl:130
40794 msgid "B<-t>"
40795 msgstr ""
40796
40797 #. type: =item
40798 #: ../tools/virt-list-partitions.pl:132
40799 msgid "B<--total>"
40800 msgstr ""
40801
40802 #. type: textblock
40803 #: ../tools/virt-list-partitions.pl:134
40804 msgid ""
40805 "Display the total size of each block device (as a separate row or rows)."
40806 msgstr ""
40807
40808 #. type: textblock
40809 #: ../tools/virt-list-partitions.pl:267
40810 msgid ""
40811 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40812 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40813 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40814 msgstr ""
40815
40816 #. type: textblock
40817 #: ../tools/virt-list-partitions.pl:283
40818 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../tools/virt-make-fs.pl:37
40823 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40824 msgstr ""
40825
40826 #. type: verbatim
40827 #: ../tools/virt-make-fs.pl:41
40828 #, no-wrap
40829 msgid ""
40830 " virt-make-fs [--options] input.tar output.img\n"
40831 "\n"
40832 msgstr ""
40833
40834 #. type: verbatim
40835 #: ../tools/virt-make-fs.pl:43
40836 #, no-wrap
40837 msgid ""
40838 " virt-make-fs [--options] input.tar.gz output.img\n"
40839 "\n"
40840 msgstr ""
40841
40842 #. type: verbatim
40843 #: ../tools/virt-make-fs.pl:45
40844 #, no-wrap
40845 msgid ""
40846 " virt-make-fs [--options] directory output.img\n"
40847 "\n"
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../tools/virt-make-fs.pl:49
40852 msgid ""
40853 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40854 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40855 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40856 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40857 "you want to attach these filesystems to existing virtual machines (eg. to "
40858 "import large amounts of read-only data to a VM)."
40859 msgstr ""
40860
40861 #. type: textblock
40862 #: ../tools/virt-make-fs.pl:57
40863 msgid "Basic usage is:"
40864 msgstr ""
40865
40866 #. type: verbatim
40867 #: ../tools/virt-make-fs.pl:59
40868 #, no-wrap
40869 msgid ""
40870 " virt-make-fs input output.img\n"
40871 "\n"
40872 msgstr ""
40873
40874 #. type: textblock
40875 #: ../tools/virt-make-fs.pl:61
40876 msgid ""
40877 "where C<input> is either a directory containing files that you want to add, "
40878 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40879 "C<output.img> is a disk image.  The input type is detected automatically.  "
40880 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40881 "extra flags (see L</OPTIONS> below)."
40882 msgstr ""
40883
40884 #. type: =head2
40885 #: ../tools/virt-make-fs.pl:67
40886 msgid "FILESYSTEM TYPE"
40887 msgstr ""
40888
40889 #. type: textblock
40890 #: ../tools/virt-make-fs.pl:69
40891 msgid ""
40892 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40893 "libguestfs supports can be used (but I<not> read-only formats like "
40894 "ISO9660).  Here are some of the more common choices:"
40895 msgstr ""
40896
40897 #. type: =item
40898 #: ../tools/virt-make-fs.pl:75
40899 msgid "I<ext3>"
40900 msgstr ""
40901
40902 #. type: textblock
40903 #: ../tools/virt-make-fs.pl:77
40904 msgid ""
40905 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40906 "you are not going to use the filesystem in a way that requires the journal, "
40907 "then this is just wasted overhead."
40908 msgstr ""
40909
40910 #. type: =item
40911 #: ../tools/virt-make-fs.pl:81
40912 msgid "I<ntfs> or I<vfat>"
40913 msgstr ""
40914
40915 #. type: textblock
40916 #: ../tools/virt-make-fs.pl:83
40917 msgid "Useful if exporting data to a Windows guest."
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../tools/virt-make-fs.pl:85
40922 msgid ""
40923 "I<Note for vfat>: The tar archive or local directory must only contain files "
40924 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40925 "program running within libguestfs is unable to change the ownership of non-"
40926 "root files, since vfat itself does not support this."
40927 msgstr ""
40928
40929 #. type: =item
40930 #: ../tools/virt-make-fs.pl:90
40931 msgid "I<minix>"
40932 msgstr ""
40933
40934 #. type: textblock
40935 #: ../tools/virt-make-fs.pl:92
40936 msgid ""
40937 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40938 "total filesystem size."
40939 msgstr ""
40940
40941 #. type: =head3
40942 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
40943 #: ../tools/virt-make-fs.pl:149
40944 msgid "EXAMPLE"
40945 msgstr ""
40946
40947 #. type: verbatim
40948 #: ../tools/virt-make-fs.pl:99
40949 #, no-wrap
40950 msgid ""
40951 " virt-make-fs --type=minix input minixfs.img\n"
40952 "\n"
40953 msgstr ""
40954
40955 #. type: =head2
40956 #: ../tools/virt-make-fs.pl:101
40957 msgid "TO PARTITION OR NOT TO PARTITION"
40958 msgstr ""
40959
40960 #. type: textblock
40961 #: ../tools/virt-make-fs.pl:103
40962 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40963 msgstr ""
40964
40965 #. type: textblock
40966 #: ../tools/virt-make-fs.pl:105
40967 msgid ""
40968 "Adding a partition can make the disk image more compatible with certain "
40969 "virtualized operating systems which don't expect to see a filesystem "
40970 "directly located on a block device (Linux doesn't care and will happily "
40971 "handle both types)."
40972 msgstr ""
40973
40974 #. type: textblock
40975 #: ../tools/virt-make-fs.pl:110
40976 msgid ""
40977 "On the other hand, if you have a partition table then the output image is no "
40978 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40979 "directly on a partitioned disk image.  (However libguestfs tools such as "
40980 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40981 msgstr ""
40982
40983 #. type: textblock
40984 #: ../tools/virt-make-fs.pl:118
40985 msgid "Add an MBR partition:"
40986 msgstr ""
40987
40988 #. type: verbatim
40989 #: ../tools/virt-make-fs.pl:120
40990 #, no-wrap
40991 msgid ""
40992 " virt-make-fs --partition -- input disk.img\n"
40993 "\n"
40994 msgstr ""
40995
40996 #. type: textblock
40997 #: ../tools/virt-make-fs.pl:122
40998 msgid ""
40999 "If the output disk image could be terabyte-sized or larger, it's better to "
41000 "use an EFI/GPT-compatible partition table:"
41001 msgstr ""
41002
41003 #. type: verbatim
41004 #: ../tools/virt-make-fs.pl:125
41005 #, no-wrap
41006 msgid ""
41007 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41008 "\n"
41009 msgstr ""
41010
41011 #. type: =head2
41012 #: ../tools/virt-make-fs.pl:127
41013 msgid "EXTRA SPACE"
41014 msgstr ""
41015
41016 #. type: textblock
41017 #: ../tools/virt-make-fs.pl:129
41018 msgid ""
41019 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41020 "the files that it contains, but might have extra space.  Depending on how "
41021 "you are going to use the output, you might think this extra space is wasted "
41022 "and want to minimize it, or you might want to leave space so that more files "
41023 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41024 "but you can use the I<--size> flag to leave space in the filesystem if you "
41025 "want it."
41026 msgstr ""
41027
41028 #. type: textblock
41029 #: ../tools/virt-make-fs.pl:137
41030 msgid ""
41031 "An alternative way to leave extra space but not make the output image any "
41032 "bigger is to use an alternative disk image format (instead of the default "
41033 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41034 "image format (check your hypervisor supports this before using it).  This "
41035 "allows you to choose a large I<--size> but the extra space won't actually be "
41036 "allocated in the image until you try to store something in it."
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../tools/virt-make-fs.pl:145
41041 msgid ""
41042 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41043 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41044 "to build another image from scratch."
41045 msgstr ""
41046
41047 #. type: verbatim
41048 #: ../tools/virt-make-fs.pl:151
41049 #, no-wrap
41050 msgid ""
41051 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41052 "\n"
41053 msgstr ""
41054
41055 #. type: textblock
41056 #: ../tools/virt-make-fs.pl:179
41057 msgid "Enable debugging information."
41058 msgstr ""
41059
41060 #. type: =item
41061 #: ../tools/virt-make-fs.pl:185
41062 msgid "B<--size=E<lt>NE<gt>>"
41063 msgstr ""
41064
41065 #. type: =item
41066 #: ../tools/virt-make-fs.pl:187
41067 msgid "B<--size=+E<lt>NE<gt>>"
41068 msgstr ""
41069
41070 #. type: =item
41071 #: ../tools/virt-make-fs.pl:189
41072 msgid "B<-s E<lt>NE<gt>>"
41073 msgstr ""
41074
41075 #. type: =item
41076 #: ../tools/virt-make-fs.pl:191
41077 msgid "B<-s +E<lt>NE<gt>>"
41078 msgstr ""
41079
41080 #. type: textblock
41081 #: ../tools/virt-make-fs.pl:193
41082 msgid ""
41083 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41084 msgstr ""
41085
41086 #. type: textblock
41087 #: ../tools/virt-make-fs.pl:196
41088 msgid ""
41089 "If this option is I<not> given, then the output image will be just large "
41090 "enough to contain all the files, with not much wasted space."
41091 msgstr ""
41092
41093 #. type: textblock
41094 #: ../tools/virt-make-fs.pl:199
41095 msgid ""
41096 "To choose a fixed size output disk, specify an absolute number followed by b/"
41097 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41098 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41099 "files, else you will get an error."
41100 msgstr ""
41101
41102 #. type: textblock
41103 #: ../tools/virt-make-fs.pl:204
41104 msgid ""
41105 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41106 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41107 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41108 "the input files, and (approximately) an extra 200 MB free space."
41109 msgstr ""
41110
41111 #. type: textblock
41112 #: ../tools/virt-make-fs.pl:210
41113 msgid ""
41114 "Note that virt-make-fs estimates free space, and therefore will not produce "
41115 "filesystems containing precisely the free space requested.  (It is much more "
41116 "expensive and time-consuming to produce a filesystem which has precisely the "
41117 "desired free space)."
41118 msgstr ""
41119
41120 #. type: =item
41121 #: ../tools/virt-make-fs.pl:219
41122 msgid "B<--format=E<lt>fmtE<gt>>"
41123 msgstr ""
41124
41125 #. type: =item
41126 #: ../tools/virt-make-fs.pl:221
41127 msgid "B<-F E<lt>fmtE<gt>>"
41128 msgstr ""
41129
41130 #. type: textblock
41131 #: ../tools/virt-make-fs.pl:223
41132 msgid "Choose the output disk image format."
41133 msgstr ""
41134
41135 #. type: textblock
41136 #: ../tools/virt-make-fs.pl:225
41137 msgid "The default is C<raw> (raw sparse disk image)."
41138 msgstr ""
41139
41140 #. type: textblock
41141 #: ../tools/virt-make-fs.pl:227
41142 msgid ""
41143 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41144 "that would really make sense here is C<qcow2>."
41145 msgstr ""
41146
41147 #. type: =item
41148 #: ../tools/virt-make-fs.pl:234
41149 msgid "B<--type=E<lt>fsE<gt>>"
41150 msgstr ""
41151
41152 #. type: =item
41153 #: ../tools/virt-make-fs.pl:236
41154 msgid "B<-t E<lt>fsE<gt>>"
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../tools/virt-make-fs.pl:238
41159 msgid "Choose the output filesystem type."
41160 msgstr ""
41161
41162 #. type: textblock
41163 #: ../tools/virt-make-fs.pl:240
41164 msgid "The default is C<ext2>."
41165 msgstr ""
41166
41167 #. type: textblock
41168 #: ../tools/virt-make-fs.pl:242
41169 msgid ""
41170 "Any filesystem which is supported read-write by libguestfs can be used here."
41171 msgstr ""
41172
41173 #. type: =item
41174 #: ../tools/virt-make-fs.pl:249
41175 msgid "B<--partition>"
41176 msgstr ""
41177
41178 #. type: =item
41179 #: ../tools/virt-make-fs.pl:251
41180 msgid "B<--partition=E<lt>parttypeE<gt>>"
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../tools/virt-make-fs.pl:253
41185 msgid ""
41186 "If specified, this flag adds an MBR partition table to the output disk image."
41187 msgstr ""
41188
41189 #. type: textblock
41190 #: ../tools/virt-make-fs.pl:256
41191 msgid ""
41192 "You can change the partition table type, eg. I<--partition=gpt> for large "
41193 "disks."
41194 msgstr ""
41195
41196 #. type: textblock
41197 #: ../tools/virt-make-fs.pl:259
41198 msgid ""
41199 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41200 "might consider the next parameter to be the partition type.  For example:"
41201 msgstr ""
41202
41203 #. type: verbatim
41204 #: ../tools/virt-make-fs.pl:263
41205 #, no-wrap
41206 msgid ""
41207 " virt-make-fs --partition input.tar output.img\n"
41208 "\n"
41209 msgstr ""
41210
41211 #. type: textblock
41212 #: ../tools/virt-make-fs.pl:265
41213 msgid ""
41214 "would cause virt-make-fs to think you wanted to use a partition type of "
41215 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41216 "dash) between options and the input and output arguments:"
41217 msgstr ""
41218
41219 #. type: verbatim
41220 #: ../tools/virt-make-fs.pl:269
41221 #, no-wrap
41222 msgid ""
41223 " virt-make-fs --partition -- input.tar output.img\n"
41224 "\n"
41225 msgstr ""
41226
41227 #. type: textblock
41228 #: ../tools/virt-make-fs.pl:271
41229 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41230 msgstr ""
41231
41232 #. type: textblock
41233 #: ../tools/virt-make-fs.pl:559
41234 msgid ""
41235 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41236 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41237 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41238 msgstr ""
41239
41240 #. type: textblock
41241 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41242 msgid ""
41243 "When reporting bugs, please enable debugging and capture the I<complete> "
41244 "output:"
41245 msgstr ""
41246
41247 #. type: verbatim
41248 #: ../tools/virt-make-fs.pl:576
41249 #, no-wrap
41250 msgid ""
41251 " export LIBGUESTFS_DEBUG=1\n"
41252 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41253 "\n"
41254 msgstr ""
41255
41256 #. type: textblock
41257 #: ../tools/virt-make-fs.pl:579
41258 msgid ""
41259 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41260 "redhat.com/>"
41261 msgstr ""
41262
41263 #. type: textblock
41264 #: ../tools/virt-tar.pl:33
41265 msgid "virt-tar - Extract or upload files to a virtual machine"
41266 msgstr ""
41267
41268 #. type: verbatim
41269 #: ../tools/virt-tar.pl:37
41270 #, no-wrap
41271 msgid ""
41272 " virt-tar [--options] -x domname directory tarball\n"
41273 "\n"
41274 msgstr ""
41275
41276 #. type: verbatim
41277 #: ../tools/virt-tar.pl:39
41278 #, no-wrap
41279 msgid ""
41280 " virt-tar [--options] -u domname tarball directory\n"
41281 "\n"
41282 msgstr ""
41283
41284 #. type: verbatim
41285 #: ../tools/virt-tar.pl:41
41286 #, no-wrap
41287 msgid ""
41288 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41289 "\n"
41290 msgstr ""
41291
41292 #. type: verbatim
41293 #: ../tools/virt-tar.pl:43
41294 #, no-wrap
41295 msgid ""
41296 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41297 "\n"
41298 msgstr ""
41299
41300 #. type: =head2
41301 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41302 msgid "NOTE"
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../tools/virt-tar.pl:47
41307 msgid ""
41308 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41309 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../tools/virt-tar.pl:52
41314 msgid "Download C</home> from the VM into a local tarball:"
41315 msgstr ""
41316
41317 #. type: verbatim
41318 #: ../tools/virt-tar.pl:54
41319 #, no-wrap
41320 msgid ""
41321 " virt-tar -x domname /home home.tar\n"
41322 "\n"
41323 msgstr ""
41324
41325 #. type: verbatim
41326 #: ../tools/virt-tar.pl:56
41327 #, no-wrap
41328 msgid ""
41329 " virt-tar -zx domname /home home.tar.gz\n"
41330 "\n"
41331 msgstr ""
41332
41333 #. type: textblock
41334 #: ../tools/virt-tar.pl:58
41335 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41336 msgstr ""
41337
41338 #. type: verbatim
41339 #: ../tools/virt-tar.pl:60
41340 #, no-wrap
41341 msgid ""
41342 " virt-tar -u domname uploadstuff.tar /tmp\n"
41343 "\n"
41344 msgstr ""
41345
41346 #. type: verbatim
41347 #: ../tools/virt-tar.pl:62
41348 #, no-wrap
41349 msgid ""
41350 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41351 "\n"
41352 msgstr ""
41353
41354 #. type: textblock
41355 #: ../tools/virt-tar.pl:66
41356 msgid ""
41357 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41358 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41359 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41360 msgstr ""
41361
41362 #. type: textblock
41363 #: ../tools/virt-tar.pl:71
41364 msgid ""
41365 "You can use I<-x> (extract) on live virtual machines, but you might get "
41366 "inconsistent results or errors if there is filesystem activity inside the "
41367 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41368 "work, but the only way to guarantee consistent results is if the virtual "
41369 "machine is shut down."
41370 msgstr ""
41371
41372 #. type: textblock
41373 #: ../tools/virt-tar.pl:79
41374 msgid ""
41375 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41376 "parts of a guest filesystem.  There are many possibilities: making backups, "
41377 "uploading data files, snooping on guest activity, fixing or customizing "
41378 "guests, etc."
41379 msgstr ""
41380
41381 #. type: textblock
41382 #: ../tools/virt-tar.pl:84
41383 msgid ""
41384 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41385 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41386 "should look at the L<guestfish(1)> tool."
41387 msgstr ""
41388
41389 #. type: textblock
41390 #: ../tools/virt-tar.pl:88
41391 msgid ""
41392 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41393 "its contents (recursively) from the virtual machine into a local tarball.  "
41394 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41395 "virtual machine.  You cannot use these two options together."
41396 msgstr ""
41397
41398 #. type: textblock
41399 #: ../tools/virt-tar.pl:94
41400 msgid ""
41401 "In addition, you may need to use the I<-z> (gZip) option to enable "
41402 "compression.  When uploading, you have to specify I<-z> if the upload file "
41403 "is compressed because virt-tar won't detect this on its own."
41404 msgstr ""
41405
41406 #. type: textblock
41407 #: ../tools/virt-tar.pl:98
41408 msgid ""
41409 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41410 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41411 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41412 "the L<libguestfs(3)> API)."
41413 msgstr ""
41414
41415 #. type: =item
41416 #: ../tools/virt-tar.pl:160
41417 msgid "B<--extract>"
41418 msgstr ""
41419
41420 #. type: =item
41421 #: ../tools/virt-tar.pl:162
41422 msgid "B<--download>"
41423 msgstr ""
41424
41425 #. type: =item
41426 #: ../tools/virt-tar.pl:164
41427 msgid "B<-u>"
41428 msgstr ""
41429
41430 #. type: =item
41431 #: ../tools/virt-tar.pl:166
41432 msgid "B<--upload>"
41433 msgstr ""
41434
41435 #. type: textblock
41436 #: ../tools/virt-tar.pl:168
41437 msgid ""
41438 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41439 "local tarball."
41440 msgstr ""
41441
41442 #. type: textblock
41443 #: ../tools/virt-tar.pl:171
41444 msgid ""
41445 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41446 "Please read the L</WARNING> section above before using this option."
41447 msgstr ""
41448
41449 #. type: textblock
41450 #: ../tools/virt-tar.pl:175
41451 msgid "You must specify exactly one of these options."
41452 msgstr ""
41453
41454 #. type: =item
41455 #: ../tools/virt-tar.pl:181
41456 msgid "B<-z>"
41457 msgstr ""
41458
41459 #. type: =item
41460 #: ../tools/virt-tar.pl:183
41461 msgid "B<--gzip>"
41462 msgstr ""
41463
41464 #. type: textblock
41465 #: ../tools/virt-tar.pl:185
41466 msgid "Specify that the input or output tarball is gzip-compressed."
41467 msgstr ""
41468
41469 #. type: textblock
41470 #: ../tools/virt-tar.pl:298
41471 msgid ""
41472 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41473 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41474 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41475 "org/>."
41476 msgstr ""
41477
41478 #. type: textblock
41479 #: ../tools/virt-win-reg.pl:37
41480 msgid ""
41481 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41482 msgstr ""
41483
41484 #. type: verbatim
41485 #: ../tools/virt-win-reg.pl:41
41486 #, no-wrap
41487 msgid ""
41488 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41489 "\n"
41490 msgstr ""
41491
41492 #. type: verbatim
41493 #: ../tools/virt-win-reg.pl:43
41494 #, no-wrap
41495 msgid ""
41496 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41497 "\n"
41498 msgstr ""
41499
41500 #. type: verbatim
41501 #: ../tools/virt-win-reg.pl:45
41502 #, no-wrap
41503 msgid ""
41504 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41505 "\n"
41506 msgstr ""
41507
41508 #. type: verbatim
41509 #: ../tools/virt-win-reg.pl:47
41510 #, no-wrap
41511 msgid ""
41512 " virt-win-reg --merge domname [input.reg ...]\n"
41513 "\n"
41514 msgstr ""
41515
41516 #. type: verbatim
41517 #: ../tools/virt-win-reg.pl:49
41518 #, no-wrap
41519 msgid ""
41520 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41521 "\n"
41522 msgstr ""
41523
41524 #. type: textblock
41525 #: ../tools/virt-win-reg.pl:53
41526 msgid ""
41527 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41528 "virtual machines.  If you do this, you I<will> get irreversible disk "
41529 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41530 "but doesn't catch all cases."
41531 msgstr ""
41532
41533 #. type: textblock
41534 #: ../tools/virt-win-reg.pl:58
41535 msgid ""
41536 "Modifying the Windows Registry is an inherently risky operation.  The format "
41537 "is deliberately obscure and undocumented, and Registry changes can leave the "
41538 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41539 "you have a reliable backup first."
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../tools/virt-win-reg.pl:65
41544 msgid ""
41545 "This program can export and merge Windows Registry entries from a Windows "
41546 "guest."
41547 msgstr ""
41548
41549 #. type: textblock
41550 #: ../tools/virt-win-reg.pl:68
41551 msgid ""
41552 "The first parameter is the libvirt guest name or the raw disk image of a "
41553 "Windows guest."
41554 msgstr ""
41555
41556 #. type: textblock
41557 #: ../tools/virt-win-reg.pl:71
41558 msgid ""
41559 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41560 "exported (recursively).  For example:"
41561 msgstr ""
41562
41563 #. type: verbatim
41564 #: ../tools/virt-win-reg.pl:74
41565 #, no-wrap
41566 msgid ""
41567 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41568 "\n"
41569 msgstr ""
41570
41571 #. type: textblock
41572 #: ../tools/virt-win-reg.pl:76
41573 msgid ""
41574 "You can also display single values from within registry keys, for example:"
41575 msgstr ""
41576
41577 #. type: verbatim
41578 #: ../tools/virt-win-reg.pl:79
41579 #, no-wrap
41580 msgid ""
41581 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41582 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41583 " Windows 7 Enterprise\n"
41584 "\n"
41585 msgstr ""
41586
41587 #. type: textblock
41588 #: ../tools/virt-win-reg.pl:83
41589 msgid ""
41590 "With I<--merge>, you can merge a textual regedit file into the Windows "
41591 "Registry:"
41592 msgstr ""
41593
41594 #. type: verbatim
41595 #: ../tools/virt-win-reg.pl:86
41596 #, no-wrap
41597 msgid ""
41598 " $ virt-win-reg --merge Windows7 changes.reg\n"
41599 "\n"
41600 msgstr ""
41601
41602 #. type: textblock
41603 #: ../tools/virt-win-reg.pl:90
41604 msgid ""
41605 "This program is only meant for simple access to the registry.  If you want "
41606 "to do complicated things with the registry, we suggest you download the "
41607 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41608 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41609 "L<hivexregedit(1)>."
41610 msgstr ""
41611
41612 #. type: =item
41613 #: ../tools/virt-win-reg.pl:159
41614 msgid "B<--merge>"
41615 msgstr ""
41616
41617 #. type: textblock
41618 #: ../tools/virt-win-reg.pl:161
41619 msgid ""
41620 "In merge mode, this merges a textual regedit file into the Windows Registry "
41621 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41622 "displays or exports Registry entries instead."
41623 msgstr ""
41624
41625 #. type: textblock
41626 #: ../tools/virt-win-reg.pl:165
41627 msgid ""
41628 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41629 "result in disk corruption.  However exporting (without this flag)  is always "
41630 "safe."
41631 msgstr ""
41632
41633 #. type: =item
41634 #: ../tools/virt-win-reg.pl:173
41635 msgid "B<--encoding> UTF-16LE|ASCII"
41636 msgstr ""
41637
41638 #. type: textblock
41639 #: ../tools/virt-win-reg.pl:175
41640 msgid ""
41641 "When merging (only), you may need to specify the encoding for strings to be "
41642 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41643 "(3)/ENCODING STRINGS>."
41644 msgstr ""
41645
41646 #. type: textblock
41647 #: ../tools/virt-win-reg.pl:179
41648 msgid ""
41649 "The default is to use UTF-16LE, which should work with recent versions of "
41650 "Windows."
41651 msgstr ""
41652
41653 #. type: =item
41654 #: ../tools/virt-win-reg.pl:186
41655 msgid "B<--unsafe-printable-strings>"
41656 msgstr ""
41657
41658 #. type: textblock
41659 #: ../tools/virt-win-reg.pl:188
41660 msgid ""
41661 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41662 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41663 "present."
41664 msgstr ""
41665
41666 #. type: textblock
41667 #: ../tools/virt-win-reg.pl:192
41668 msgid ""
41669 "This is unsafe and does not preserve the fidelity of strings in the original "
41670 "Registry for various reasons:"
41671 msgstr ""
41672
41673 #. type: textblock
41674 #: ../tools/virt-win-reg.pl:199
41675 msgid ""
41676 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41677 "other encodings will be corrupted by this transformation."
41678 msgstr ""
41679
41680 #. type: textblock
41681 #: ../tools/virt-win-reg.pl:204
41682 msgid ""
41683 "Assumes that everything which has type 1 or 2 is really a string and that "
41684 "everything else is not a string, but the type field in real Registries is "
41685 "not reliable."
41686 msgstr ""
41687
41688 #. type: textblock
41689 #: ../tools/virt-win-reg.pl:210
41690 msgid ""
41691 "Loses information about whether a zero codepoint followed the string in the "
41692 "Registry or not."
41693 msgstr ""
41694
41695 #. type: textblock
41696 #: ../tools/virt-win-reg.pl:215
41697 msgid ""
41698 "This all happens because the Registry itself contains no information about "
41699 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41700 msgstr ""
41701
41702 #. type: textblock
41703 #: ../tools/virt-win-reg.pl:219
41704 msgid ""
41705 "You should only use this option for quick hacking and debugging of the "
41706 "Registry contents, and I<never> use it if the output is going to be passed "
41707 "into another program or stored in another Registry."
41708 msgstr ""
41709
41710 #. type: =head1
41711 #: ../tools/virt-win-reg.pl:556
41712 msgid "SUPPORTED SYSTEMS"
41713 msgstr ""
41714
41715 #. type: textblock
41716 #: ../tools/virt-win-reg.pl:558
41717 msgid ""
41718 "The program currently supports Windows NT-derived guests starting with "
41719 "Windows XP through to at least Windows 7."
41720 msgstr ""
41721
41722 #. type: textblock
41723 #: ../tools/virt-win-reg.pl:561
41724 msgid "The following Registry keys are supported:"
41725 msgstr ""
41726
41727 #. type: =item
41728 #: ../tools/virt-win-reg.pl:565
41729 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41730 msgstr ""
41731
41732 #. type: =item
41733 #: ../tools/virt-win-reg.pl:567
41734 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41735 msgstr ""
41736
41737 #. type: =item
41738 #: ../tools/virt-win-reg.pl:569
41739 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41740 msgstr ""
41741
41742 #. type: =item
41743 #: ../tools/virt-win-reg.pl:571
41744 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41745 msgstr ""
41746
41747 #. type: =item
41748 #: ../tools/virt-win-reg.pl:573
41749 msgid "C<HKEY_USERS\\.DEFAULT>"
41750 msgstr ""
41751
41752 #. type: =item
41753 #: ../tools/virt-win-reg.pl:575
41754 msgid "C<HKEY_USERS\\I<SID>>"
41755 msgstr ""
41756
41757 #. type: textblock
41758 #: ../tools/virt-win-reg.pl:577
41759 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41760 msgstr ""
41761
41762 #. type: =item
41763 #: ../tools/virt-win-reg.pl:579
41764 msgid "C<HKEY_USERS\\I<username>>"
41765 msgstr ""
41766
41767 #. type: textblock
41768 #: ../tools/virt-win-reg.pl:581
41769 msgid ""
41770 "where I<username> is a local user name (this is a libguestfs extension)."
41771 msgstr ""
41772
41773 #. type: textblock
41774 #: ../tools/virt-win-reg.pl:585
41775 msgid ""
41776 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41777 "C<HKEY_USERS>."
41778 msgstr ""
41779
41780 #. type: textblock
41781 #: ../tools/virt-win-reg.pl:588
41782 msgid ""
41783 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41784 "supported (there is no \"current user\")."
41785 msgstr ""
41786
41787 #. type: =head1
41788 #: ../tools/virt-win-reg.pl:591
41789 msgid "ENCODING"
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../tools/virt-win-reg.pl:593
41794 msgid ""
41795 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41796 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41797 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41798 "Windows-style line endings, you may need to reencode the whole file before "
41799 "or after processing."
41800 msgstr ""
41801
41802 #. type: textblock
41803 #: ../tools/virt-win-reg.pl:599
41804 msgid ""
41805 "To reencode a file from Windows format to Linux (before processing it with "
41806 "the I<--merge> option), you would do something like this:"
41807 msgstr ""
41808
41809 #. type: verbatim
41810 #: ../tools/virt-win-reg.pl:602
41811 #, no-wrap
41812 msgid ""
41813 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41814 "\n"
41815 msgstr ""
41816
41817 #. type: textblock
41818 #: ../tools/virt-win-reg.pl:604
41819 msgid ""
41820 "To go in the opposite direction, after exporting and before sending the file "
41821 "to a Windows user, do something like this:"
41822 msgstr ""
41823
41824 #. type: verbatim
41825 #: ../tools/virt-win-reg.pl:607
41826 #, no-wrap
41827 msgid ""
41828 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41829 "\n"
41830 msgstr ""
41831
41832 #. type: textblock
41833 #: ../tools/virt-win-reg.pl:609
41834 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41835 msgstr ""
41836
41837 #. type: textblock
41838 #: ../tools/virt-win-reg.pl:611
41839 msgid ""
41840 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41841 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41842 "style (CRLF) line endings, like this:"
41843 msgstr ""
41844
41845 #. type: verbatim
41846 #: ../tools/virt-win-reg.pl:615
41847 #, no-wrap
41848 msgid ""
41849 " $ file software.reg\n"
41850 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41851 " with CRLF line terminators\n"
41852 "\n"
41853 msgstr ""
41854
41855 #. type: textblock
41856 #: ../tools/virt-win-reg.pl:619
41857 msgid "This file would need conversion before you could I<--merge> it."
41858 msgstr ""
41859
41860 #. type: =head1
41861 #: ../tools/virt-win-reg.pl:621
41862 msgid "CurrentControlSet etc."
41863 msgstr ""
41864
41865 #. type: textblock
41866 #: ../tools/virt-win-reg.pl:623
41867 msgid ""
41868 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41869 "Registry at the level of the hive file, and therefore you cannot modify "
41870 "these."
41871 msgstr ""
41872
41873 #. type: textblock
41874 #: ../tools/virt-win-reg.pl:627
41875 msgid ""
41876 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41877 "circumstances it might refer to another control set.  The way to find out is "
41878 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41879 msgstr ""
41880
41881 #. type: verbatim
41882 #: ../tools/virt-win-reg.pl:631
41883 #, no-wrap
41884 msgid ""
41885 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41886 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41887 " \"Current\"=dword:00000001\n"
41888 " \"Default\"=dword:00000001\n"
41889 " \"Failed\"=dword:00000000\n"
41890 " \"LastKnownGood\"=dword:00000002\n"
41891 "\n"
41892 msgstr ""
41893
41894 #. type: textblock
41895 #: ../tools/virt-win-reg.pl:638
41896 msgid "\"Current\" is the one which Windows will choose when it boots."
41897 msgstr ""
41898
41899 #. type: textblock
41900 #: ../tools/virt-win-reg.pl:640
41901 msgid ""
41902 "Similarly, other C<Current...> keys in the path may need to be replaced."
41903 msgstr ""
41904
41905 #. type: =head1
41906 #: ../tools/virt-win-reg.pl:643
41907 msgid "DELETING REGISTRY KEYS AND VALUES"
41908 msgstr ""
41909
41910 #. type: textblock
41911 #: ../tools/virt-win-reg.pl:645
41912 msgid "To delete a whole registry key, use the syntax:"
41913 msgstr ""
41914
41915 #. type: verbatim
41916 #: ../tools/virt-win-reg.pl:647
41917 #, no-wrap
41918 msgid ""
41919 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41920 "\n"
41921 msgstr ""
41922
41923 #. type: textblock
41924 #: ../tools/virt-win-reg.pl:649
41925 msgid "To delete a single value within a key, use the syntax:"
41926 msgstr ""
41927
41928 #. type: verbatim
41929 #: ../tools/virt-win-reg.pl:651
41930 #, no-wrap
41931 msgid ""
41932 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41933 " \"Value\"=-\n"
41934 "\n"
41935 msgstr ""
41936
41937 #. type: =head1
41938 #: ../tools/virt-win-reg.pl:654
41939 msgid "WINDOWS TIPS"
41940 msgstr ""
41941
41942 #. type: textblock
41943 #: ../tools/virt-win-reg.pl:656
41944 msgid ""
41945 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41946 "be shut off, else you will get disk corruption."
41947 msgstr ""
41948
41949 #. type: =head2
41950 #: ../tools/virt-win-reg.pl:659
41951 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41952 msgstr ""
41953
41954 #. type: textblock
41955 #: ../tools/virt-win-reg.pl:661
41956 msgid ""
41957 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41958 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41959 "is uploaded into C<C:\\>:"
41960 msgstr ""
41961
41962 #. type: verbatim
41963 #: ../tools/virt-win-reg.pl:665
41964 #, no-wrap
41965 msgid ""
41966 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41967 "\n"
41968 msgstr ""
41969
41970 #. type: textblock
41971 #: ../tools/virt-win-reg.pl:667
41972 msgid "Prepare a regedit file containing the registry change:"
41973 msgstr ""
41974
41975 #. type: verbatim
41976 #: ../tools/virt-win-reg.pl:669
41977 #, no-wrap
41978 msgid ""
41979 " cat > test.reg <<'EOF'\n"
41980 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41981 " \"Test\"=\"c:\\\\test.bat\"\n"
41982 " EOF\n"
41983 "\n"
41984 msgstr ""
41985
41986 #. type: textblock
41987 #: ../tools/virt-win-reg.pl:674
41988 msgid ""
41989 "In this example we use the key C<RunOnce> which means that the script will "
41990 "run precisely once when the first user logs in.  If you want it to run every "
41991 "time a user logs in, replace C<RunOnce> with C<Run>."
41992 msgstr ""
41993
41994 #. type: textblock
41995 #: ../tools/virt-win-reg.pl:678
41996 msgid "Now update the registry:"
41997 msgstr ""
41998
41999 #. type: verbatim
42000 #: ../tools/virt-win-reg.pl:680
42001 #, no-wrap
42002 msgid ""
42003 " virt-win-reg --merge WindowsGuest test.reg\n"
42004 "\n"
42005 msgstr ""
42006
42007 #. type: =head2
42008 #: ../tools/virt-win-reg.pl:682
42009 msgid "INSTALLING A SERVICE"
42010 msgstr ""
42011
42012 #. type: textblock
42013 #: ../tools/virt-win-reg.pl:684
42014 msgid ""
42015 "This section assumes you are familiar with Windows services, and you either "
42016 "have a program which handles the Windows Service Control Protocol directly "
42017 "or you want to run any program using a service wrapper like SrvAny or the "
42018 "free RHSrvAny."
42019 msgstr ""
42020
42021 #. type: textblock
42022 #: ../tools/virt-win-reg.pl:689
42023 msgid ""
42024 "First upload the program and optionally the service wrapper.  In this case "
42025 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42026 msgstr ""
42027
42028 #. type: verbatim
42029 #: ../tools/virt-win-reg.pl:693
42030 #, no-wrap
42031 msgid ""
42032 " guestfish -i -d WindowsGuest <<EOF\n"
42033 "   upload rhsrvany.exe /rhsrvany.exe\n"
42034 "   upload test.exe /test.exe\n"
42035 " EOF\n"
42036 "\n"
42037 msgstr ""
42038
42039 #. type: textblock
42040 #: ../tools/virt-win-reg.pl:698
42041 msgid ""
42042 "Prepare a regedit file containing the registry changes.  In this example, "
42043 "the first registry change is needed for the service itself or the service "
42044 "wrapper (if used).  The second registry change is only needed because I am "
42045 "using the RHSrvAny service wrapper."
42046 msgstr ""
42047
42048 #. type: verbatim
42049 #: ../tools/virt-win-reg.pl:703
42050 #, no-wrap
42051 msgid ""
42052 " cat > service.reg <<'EOF'\n"
42053 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42054 " \"Type\"=dword:00000010\n"
42055 " \"Start\"=dword:00000002\n"
42056 " \"ErrorControl\"=dword:00000001\n"
42057 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42058 " \"DisplayName\"=\"RHSrvAny\"\n"
42059 " \"ObjectName\"=\"NetworkService\"\n"
42060 " \n"
42061 msgstr ""
42062
42063 #. type: verbatim
42064 #: ../tools/virt-win-reg.pl:712
42065 #, no-wrap
42066 msgid ""
42067 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42068 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42069 " \"PWD\"=\"c:\\\\Temp\"\n"
42070 " EOF\n"
42071 "\n"
42072 msgstr ""
42073
42074 #. type: textblock
42075 #: ../tools/virt-win-reg.pl:723
42076 msgid ""
42077 "For use of C<ControlSet001> see the section above in this manual page.  You "
42078 "may need to adjust this according to the control set that is in use by the "
42079 "guest."
42080 msgstr ""
42081
42082 #. type: textblock
42083 #: ../tools/virt-win-reg.pl:729
42084 msgid ""
42085 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42086 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42087 "privileged account."
42088 msgstr ""
42089
42090 #. type: textblock
42091 #: ../tools/virt-win-reg.pl:735
42092 msgid ""
42093 "For the meaning of the magic numbers, see this Microsoft KB article: "
42094 "L<http://support.microsoft.com/kb/103000>."
42095 msgstr ""
42096
42097 #. type: textblock
42098 #: ../tools/virt-win-reg.pl:740
42099 msgid "Update the registry:"
42100 msgstr ""
42101
42102 #. type: verbatim
42103 #: ../tools/virt-win-reg.pl:742
42104 #, no-wrap
42105 msgid ""
42106 " virt-win-reg --merge WindowsGuest service.reg\n"
42107 "\n"
42108 msgstr ""
42109
42110 #. type: textblock
42111 #: ../tools/virt-win-reg.pl:746
42112 msgid ""
42113 "Be careful when passing parameters containing C<\\> (backslash) in the "
42114 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42115 "(but not both) to protect them from the shell."
42116 msgstr ""
42117
42118 #. type: textblock
42119 #: ../tools/virt-win-reg.pl:750
42120 msgid "Paths and value names are case-insensitive."
42121 msgstr ""
42122
42123 #. type: textblock
42124 #: ../tools/virt-win-reg.pl:759
42125 msgid ""
42126 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42127 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42128 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42129 msgstr ""
42130
42131 #. type: verbatim
42132 #: ../tools/virt-win-reg.pl:777
42133 #, no-wrap
42134 msgid ""
42135 " export LIBGUESTFS_DEBUG=1\n"
42136 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42137 "\n"
42138 msgstr ""
42139
42140 #. type: textblock
42141 #: ../tools/virt-win-reg.pl:780
42142 msgid ""
42143 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42144 "redhat.com/>"
42145 msgstr ""