cf21916afe6dca0a994eb104af9f76f2c9e1cda6
[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-03 14:10+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:31
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:112
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:116
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:118
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:120
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:122
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:128
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:135
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:137
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:139
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:142
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:145
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:147
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:149
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:152
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:154
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:156
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:161 ../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:165
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:169
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:172
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:219 ../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:221 ../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:223 ../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:225 ../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:227 ../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:229 ../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:240 ../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:242 ../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:303 ../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:305 ../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:325
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:334
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:336 ../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:338
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:342 ../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:347 ../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:352 ../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., 675 Mass "
1164 "Ave, Cambridge, MA 02139, 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:124
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:246
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:252
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:256
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:260
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:15
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:340
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:21
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:298 ../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:..] [iface:..] [live:..] [allowuuid:..] [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:..] [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"
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"
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"
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:..] [destoffset:..] [size:..]\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:..] [destoffset:..] [size:..]\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:..] [destoffset:..] [size:..]\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:..] [destoffset:..] [size:..]\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:..] [highquality:..]\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:..] [features:..] [inode:..] [sectorsize:..]\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:..] [force:..]\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:189
18850 msgid "B<-r>"
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18855 #: ../rescue/virt-rescue.pod:191
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:195
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:201
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:231
18912 msgid "B<-w>"
18913 msgstr ""
18914
18915 #. type: =item
18916 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18917 #: ../rescue/virt-rescue.pod:233
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:310
20709 msgid "FILES"
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20714 #: ../rescue/virt-rescue.pod:314
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:316
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:318
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:96
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:199
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:238 ../rescue/virt-rescue.pod:321
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:13
22563 #, no-wrap
22564 msgid ""
22565 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
22566 "\n"
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../rescue/virt-rescue.pod:17
22571 #, no-wrap
22572 msgid ""
22573 " virt-rescue [--options] domname\n"
22574 "\n"
22575 msgstr ""
22576
22577 #. type: verbatim
22578 #: ../rescue/virt-rescue.pod:19
22579 #, no-wrap
22580 msgid ""
22581 " virt-rescue [--options] disk.img [disk.img ...]\n"
22582 "\n"
22583 msgstr ""
22584
22585 #. type: textblock
22586 #: ../rescue/virt-rescue.pod:23
22587 msgid ""
22588 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22589 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22590 "you from doing this, but doesn't catch all cases."
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../rescue/virt-rescue.pod:27
22595 msgid ""
22596 "However if you use the I<--ro> (read only) option, then you can attach a "
22597 "shell to a live virtual machine.  The results might be strange or "
22598 "inconsistent at times but you won't get disk corruption."
22599 msgstr ""
22600
22601 #. type: textblock
22602 #: ../rescue/virt-rescue.pod:33
22603 msgid ""
22604 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22605 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22606 "recovery tools which you can use to examine or rescue a virtual machine or "
22607 "disk image."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../rescue/virt-rescue.pod:38
22612 msgid ""
22613 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22614 "on disk image(s):"
22615 msgstr ""
22616
22617 #. type: verbatim
22618 #: ../rescue/virt-rescue.pod:41
22619 #, no-wrap
22620 msgid ""
22621 " virt-rescue -d GuestName\n"
22622 "\n"
22623 msgstr ""
22624
22625 #. type: verbatim
22626 #: ../rescue/virt-rescue.pod:43
22627 #, no-wrap
22628 msgid ""
22629 " virt-rescue --ro -a /path/to/disk.img\n"
22630 "\n"
22631 msgstr ""
22632
22633 #. type: verbatim
22634 #: ../rescue/virt-rescue.pod:45
22635 #, no-wrap
22636 msgid ""
22637 " virt-rescue -a /dev/sdc\n"
22638 "\n"
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../rescue/virt-rescue.pod:47
22643 msgid "For live VMs you I<must> use the --ro option."
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../rescue/virt-rescue.pod:49
22648 msgid ""
22649 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22650 "in an interactive bash shell where you can use many ordinary Linux "
22651 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22652 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22653 "is an empty directory called C</sysroot> where you can mount filesystems."
22654 msgstr ""
22655
22656 #. type: textblock
22657 #: ../rescue/virt-rescue.pod:56
22658 msgid ""
22659 "You can get virt-rescue to suggest mount commands for you by using the I<--"
22660 "suggest> option (in another terminal):"
22661 msgstr ""
22662
22663 #. type: verbatim
22664 #: ../rescue/virt-rescue.pod:59
22665 #, no-wrap
22666 msgid ""
22667 " $ virt-rescue --suggest -d Fedora15\n"
22668 " Inspecting the virtual machine or disk image ...\n"
22669 " \n"
22670 msgstr ""
22671
22672 #. type: verbatim
22673 #: ../rescue/virt-rescue.pod:62
22674 #, no-wrap
22675 msgid ""
22676 " This disk contains one or more operating systems.  You can use these\n"
22677 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
22678 " filesystems.\n"
22679 " \n"
22680 msgstr ""
22681
22682 #. type: verbatim
22683 #: ../rescue/virt-rescue.pod:66
22684 #, no-wrap
22685 msgid ""
22686 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
22687 " # type: linux, distro: fedora, version: 15.0\n"
22688 " # Fedora release 15 (Lovelock)\n"
22689 " \n"
22690 msgstr ""
22691
22692 #. type: verbatim
22693 #: ../rescue/virt-rescue.pod:70
22694 #, no-wrap
22695 msgid ""
22696 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
22697 " mount /dev/vda1 /sysroot/boot\n"
22698 " mount --bind /dev /sysroot/dev\n"
22699 " mount --bind /dev/pts /sysroot/dev/pts\n"
22700 " mount --bind /proc /sysroot/proc\n"
22701 " mount --bind /sys /sysroot/sys\n"
22702 "\n"
22703 msgstr ""
22704
22705 #. type: textblock
22706 #: ../rescue/virt-rescue.pod:77
22707 msgid ""
22708 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
22709 "(with L<parted(8)>) and mount them by hand:"
22710 msgstr ""
22711
22712 #. type: verbatim
22713 #: ../rescue/virt-rescue.pod:80
22714 #, no-wrap
22715 msgid ""
22716 " ><rescue> lvs\n"
22717 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22718 " lv_root vg_f15x32 -wi-a-   8.83G\n"
22719 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
22720 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
22721 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
22722 " ><rescue> ls /sysroot\n"
22723 "\n"
22724 msgstr ""
22725
22726 #. type: textblock
22727 #: ../rescue/virt-rescue.pod:88
22728 msgid ""
22729 "Another command to list available filesystems is L<virt-filesystems(1)>."
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../rescue/virt-rescue.pod:91
22734 msgid ""
22735 "To run commands in a Linux guest (for example, grub), you should chroot into "
22736 "the /sysroot directory first:"
22737 msgstr ""
22738
22739 #. type: verbatim
22740 #: ../rescue/virt-rescue.pod:94
22741 #, no-wrap
22742 msgid ""
22743 " ><rescue> chroot /sysroot\n"
22744 "\n"
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../rescue/virt-rescue.pod:98
22749 msgid ""
22750 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22751 "virtual machine.  For example you can use it on a blank file if you want to "
22752 "partition that file (although we would recommend using L<guestfish(1)> "
22753 "instead as it is more suitable for this purpose).  You can even use virt-"
22754 "rescue on things like SD cards."
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../rescue/virt-rescue.pod:104
22759 msgid ""
22760 "Virt-rescue does not require root.  You only need to run it as root if you "
22761 "need root to open the disk image."
22762 msgstr ""
22763
22764 #. type: textblock
22765 #: ../rescue/virt-rescue.pod:107
22766 msgid ""
22767 "This tool is just designed for quick interactive hacking on a virtual "
22768 "machine.  For more structured access to a virtual machine disk image, you "
22769 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22770 "make scripted changes to guests, use L<guestfish(1)>."
22771 msgstr ""
22772
22773 #. type: =item
22774 #: ../rescue/virt-rescue.pod:131
22775 msgid "B<--append kernelopts>"
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../rescue/virt-rescue.pod:133
22780 msgid "Pass additional options to the rescue kernel."
22781 msgstr ""
22782
22783 #. type: verbatim
22784 #: ../rescue/virt-rescue.pod:163
22785 #, no-wrap
22786 msgid ""
22787 " virt-rescue --format=raw -a disk.img\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: verbatim
22792 #: ../rescue/virt-rescue.pod:167
22793 #, no-wrap
22794 msgid ""
22795 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22796 "\n"
22797 msgstr ""
22798
22799 #. type: =item
22800 #: ../rescue/virt-rescue.pod:176
22801 msgid "B<-m MB>"
22802 msgstr ""
22803
22804 #. type: =item
22805 #: ../rescue/virt-rescue.pod:178
22806 msgid "B<--memsize MB>"
22807 msgstr ""
22808
22809 #. type: textblock
22810 #: ../rescue/virt-rescue.pod:180
22811 msgid ""
22812 "Change the amount of memory allocated to the rescue system.  The default is "
22813 "set by libguestfs and is small but adequate for running system tools.  The "
22814 "occasional program might need more memory.  The parameter is specified in "
22815 "megabytes."
22816 msgstr ""
22817
22818 #. type: =item
22819 #: ../rescue/virt-rescue.pod:185
22820 msgid "B<--network>"
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../rescue/virt-rescue.pod:187
22825 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../rescue/virt-rescue.pod:193
22830 msgid "Open the image read-only."
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../rescue/virt-rescue.pod:203
22835 msgid ""
22836 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22837 "SELINUX> before using this option."
22838 msgstr ""
22839
22840 #. type: =item
22841 #: ../rescue/virt-rescue.pod:206
22842 msgid "B<--smp> N"
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../rescue/virt-rescue.pod:208
22847 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22848 msgstr ""
22849
22850 #. type: =item
22851 #: ../rescue/virt-rescue.pod:210
22852 msgid "B<--suggest>"
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../rescue/virt-rescue.pod:212
22857 msgid ""
22858 "Inspect the disk image and suggest what mount commands should be used to "
22859 "mount the disks.  You should use the I<--suggest> option in a second "
22860 "terminal, then paste the commands into another virt-rescue."
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../rescue/virt-rescue.pod:216
22865 msgid ""
22866 "This option implies I<--ro> and is safe to use even if the guest is up or if "
22867 "another virt-rescue is running."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../rescue/virt-rescue.pod:235
22872 msgid ""
22873 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22874 "are done read-write."
22875 msgstr ""
22876
22877 #. type: textblock
22878 #: ../rescue/virt-rescue.pod:248
22879 msgid "Previous versions of virt-rescue allowed you to write either:"
22880 msgstr ""
22881
22882 #. type: verbatim
22883 #: ../rescue/virt-rescue.pod:250
22884 #, no-wrap
22885 msgid ""
22886 " virt-rescue disk.img [disk.img ...]\n"
22887 "\n"
22888 msgstr ""
22889
22890 #. type: verbatim
22891 #: ../rescue/virt-rescue.pod:254
22892 #, no-wrap
22893 msgid ""
22894 " virt-rescue guestname\n"
22895 "\n"
22896 msgstr ""
22897
22898 #. type: =head1
22899 #: ../rescue/virt-rescue.pod:262
22900 msgid "NETWORK"
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../rescue/virt-rescue.pod:264
22905 msgid ""
22906 "Adding the I<--network> option enables QEMU user networking in the rescue "
22907 "appliance.  There are some differences between user networking and ordinary "
22908 "networking:"
22909 msgstr ""
22910
22911 #. type: =item
22912 #: ../rescue/virt-rescue.pod:270
22913 msgid "ping does not work"
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../rescue/virt-rescue.pod:272
22918 msgid ""
22919 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22920 "send the ping packets, and because virt-rescue must be able to run as non-"
22921 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22922 "The ping command will appear to resolve addresses but will not be able to "
22923 "send or receive any packets.  This does not mean that the network is not "
22924 "working."
22925 msgstr ""
22926
22927 #. type: =item
22928 #: ../rescue/virt-rescue.pod:279
22929 msgid "cannot receive connections"
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../rescue/virt-rescue.pod:281
22934 msgid "QEMU user networking cannot receive incoming connections."
22935 msgstr ""
22936
22937 #. type: =item
22938 #: ../rescue/virt-rescue.pod:283
22939 msgid "making TCP connections"
22940 msgstr ""
22941
22942 #. type: textblock
22943 #: ../rescue/virt-rescue.pod:285
22944 msgid ""
22945 "The virt-rescue appliance needs to be small and so does not include many "
22946 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22947 "make TCP connections from the shell using the magical C</dev/tcp/"
22948 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22949 msgstr ""
22950
22951 #. type: verbatim
22952 #: ../rescue/virt-rescue.pod:290
22953 #, no-wrap
22954 msgid ""
22955 " exec 3<>/dev/tcp/redhat.com/80\n"
22956 " echo \"GET /\" >&3\n"
22957 " cat <&3\n"
22958 "\n"
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../rescue/virt-rescue.pod:294
22963 msgid "See L<bash(1)> for more details."
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../rescue/virt-rescue.pod:300
22968 msgid ""
22969 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22970 "ENVIRONMENT VARIABLES> for the complete list."
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../rescue/virt-rescue.pod:327
22975 msgid ""
22976 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
22977 "filesystems(1)>, L<http://libguestfs.org/>."
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../resize/virt-resize.pod:5
22982 msgid "virt-resize - Resize a virtual machine disk"
22983 msgstr ""
22984
22985 #. type: verbatim
22986 #: ../resize/virt-resize.pod:9
22987 #, no-wrap
22988 msgid ""
22989 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22990 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22991 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22992 "\n"
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../resize/virt-resize.pod:15
22997 msgid ""
22998 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22999 "larger or smaller overall, and resizing or deleting any partitions contained "
23000 "within."
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../resize/virt-resize.pod:19
23005 msgid ""
23006 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23007 "not> be used on live virtual machines - for consistent results, shut the "
23008 "virtual machine down before resizing it."
23009 msgstr ""
23010
23011 #. type: textblock
23012 #: ../resize/virt-resize.pod:23
23013 msgid ""
23014 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23015 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23016 msgstr ""
23017
23018 #. type: =item
23019 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23020 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23021 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23022 msgid "1."
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../resize/virt-resize.pod:33
23027 msgid ""
23028 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23029 "fill the extra 5GB of space."
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../resize/virt-resize.pod:36
23034 #, no-wrap
23035 msgid ""
23036 " virt-filesystems --long -h --all -a olddisk\n"
23037 " \n"
23038 msgstr ""
23039
23040 #. type: verbatim
23041 #: ../resize/virt-resize.pod:38
23042 #, no-wrap
23043 msgid ""
23044 " truncate -r olddisk newdisk\n"
23045 " truncate -s +5G newdisk\n"
23046 " \n"
23047 msgstr ""
23048
23049 #. type: verbatim
23050 #: ../resize/virt-resize.pod:41
23051 #, no-wrap
23052 msgid ""
23053 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23054 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23055 "\n"
23056 msgstr ""
23057
23058 #. type: =item
23059 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23060 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23061 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23062 msgid "2."
23063 msgstr ""
23064
23065 #. type: textblock
23066 #: ../resize/virt-resize.pod:46
23067 msgid ""
23068 "As above, but make the /boot partition 200MB bigger, while giving the "
23069 "remaining space to /dev/sda2:"
23070 msgstr ""
23071
23072 #. type: verbatim
23073 #: ../resize/virt-resize.pod:49
23074 #, no-wrap
23075 msgid ""
23076 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23077 "   olddisk newdisk\n"
23078 "\n"
23079 msgstr ""
23080
23081 #. type: =item
23082 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23083 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23084 #: ../src/guestfs.pod:1451
23085 msgid "3."
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../resize/virt-resize.pod:54
23090 msgid ""
23091 "As in the first example, but expand a logical volume as the final step.  "
23092 "This is what you would typically use for Linux guests that use LVM:"
23093 msgstr ""
23094
23095 #. type: verbatim
23096 #: ../resize/virt-resize.pod:58
23097 #, no-wrap
23098 msgid ""
23099 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23100 "   olddisk newdisk\n"
23101 "\n"
23102 msgstr ""
23103
23104 #. type: =item
23105 #: ../resize/virt-resize.pod:61
23106 msgid "4."
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../resize/virt-resize.pod:63
23111 msgid ""
23112 "As in the first example, but the output format will be qcow2 instead of a "
23113 "raw disk:"
23114 msgstr ""
23115
23116 #. type: verbatim
23117 #: ../resize/virt-resize.pod:66
23118 #, no-wrap
23119 msgid ""
23120 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23121 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23122 "\n"
23123 msgstr ""
23124
23125 #. type: =head1
23126 #: ../resize/virt-resize.pod:71
23127 msgid "DETAILED USAGE"
23128 msgstr ""
23129
23130 #. type: =head2
23131 #: ../resize/virt-resize.pod:73
23132 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23133 msgstr ""
23134
23135 #. type: =item
23136 #: ../resize/virt-resize.pod:77
23137 msgid "1. Shut down the virtual machine"
23138 msgstr ""
23139
23140 #. type: =item
23141 #: ../resize/virt-resize.pod:79
23142 msgid "2. Locate input disk image"
23143 msgstr ""
23144
23145 #. type: textblock
23146 #: ../resize/virt-resize.pod:81
23147 msgid ""
23148 "Locate the input disk image (ie. the file or device on the host containing "
23149 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23150 "dumpxml> like this to find the disk image name:"
23151 msgstr ""
23152
23153 #. type: verbatim
23154 #: ../resize/virt-resize.pod:85
23155 #, no-wrap
23156 msgid ""
23157 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23158 " Found 1 nodes:\n"
23159 " -- NODE --\n"
23160 " <source dev=\"/dev/vg/lv_guest\" />\n"
23161 "\n"
23162 msgstr ""
23163
23164 #. type: =item
23165 #: ../resize/virt-resize.pod:90
23166 msgid "3. Look at current sizing"
23167 msgstr ""
23168
23169 #. type: textblock
23170 #: ../resize/virt-resize.pod:92
23171 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../resize/virt-resize.pod:95
23176 #, no-wrap
23177 msgid ""
23178 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23179 " Name       Type       Size  Parent\n"
23180 " /dev/sda1  partition  101M  /dev/sda\n"
23181 " /dev/sda2  partition  7.9G  /dev/sda\n"
23182 " /dev/sda   device     8.0G  -\n"
23183 "\n"
23184 msgstr ""
23185
23186 #. type: textblock
23187 #: ../resize/virt-resize.pod:101
23188 msgid ""
23189 "(This example is a virtual machine with an 8 GB disk which we would like to "
23190 "expand up to 10 GB)."
23191 msgstr ""
23192
23193 #. type: =item
23194 #: ../resize/virt-resize.pod:104
23195 msgid "4. Create output disk"
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../resize/virt-resize.pod:106
23200 msgid ""
23201 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23202 "to store the resized output disk."
23203 msgstr ""
23204
23205 #. type: textblock
23206 #: ../resize/virt-resize.pod:109
23207 msgid ""
23208 "To store the resized disk image in a file, create a file of a suitable size:"
23209 msgstr ""
23210
23211 #. type: verbatim
23212 #: ../resize/virt-resize.pod:112
23213 #, no-wrap
23214 msgid ""
23215 " # rm -f outdisk\n"
23216 " # truncate -s 10G outdisk\n"
23217 "\n"
23218 msgstr ""
23219
23220 #. type: textblock
23221 #: ../resize/virt-resize.pod:115
23222 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23223 msgstr ""
23224
23225 #. type: verbatim
23226 #: ../resize/virt-resize.pod:117
23227 #, no-wrap
23228 msgid ""
23229 " # lvcreate -L 10G -n lv_name vg_name\n"
23230 "\n"
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../resize/virt-resize.pod:119
23235 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23236 msgstr ""
23237
23238 #. type: verbatim
23239 #: ../resize/virt-resize.pod:121
23240 #, no-wrap
23241 msgid ""
23242 " # virsh pool-list\n"
23243 " # virsh vol-create-as poolname newvol 10G\n"
23244 "\n"
23245 msgstr ""
23246
23247 #. type: =item
23248 #: ../resize/virt-resize.pod:124
23249 msgid "5. Resize"
23250 msgstr ""
23251
23252 #. type: textblock
23253 #: ../resize/virt-resize.pod:126
23254 msgid ""
23255 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23256 "file) and the output disk.  The output disk is the one created in the "
23257 "previous step."
23258 msgstr ""
23259
23260 #. type: verbatim
23261 #: ../resize/virt-resize.pod:130
23262 #, no-wrap
23263 msgid ""
23264 " # virt-resize indisk outdisk\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../resize/virt-resize.pod:132
23270 msgid ""
23271 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23272 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23273 "larger, then an extra, empty partition is created at the end of the disk "
23274 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23275 "error."
23276 msgstr ""
23277
23278 #. type: textblock
23279 #: ../resize/virt-resize.pod:138
23280 msgid ""
23281 "More realistically you'd want to expand existing partitions in the disk "
23282 "image by passing extra options (for the full list see the L</OPTIONS> "
23283 "section below)."
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../resize/virt-resize.pod:142
23288 msgid ""
23289 "L</--expand> is the most useful option.  It expands the named partition "
23290 "within the disk to fill any extra space:"
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../resize/virt-resize.pod:145
23295 #, no-wrap
23296 msgid ""
23297 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23298 "\n"
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../resize/virt-resize.pod:147
23303 msgid ""
23304 "(In this case, an extra partition is I<not> created at the end of the disk, "
23305 "because there will be no unused space)."
23306 msgstr ""
23307
23308 #. type: textblock
23309 #: ../resize/virt-resize.pod:150
23310 msgid ""
23311 "L</--resize> is the other commonly used option.  The following would "
23312 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23313 "rest of the available space:"
23314 msgstr ""
23315
23316 #. type: verbatim
23317 #: ../resize/virt-resize.pod:154
23318 #, no-wrap
23319 msgid ""
23320 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23321 "     indisk outdisk\n"
23322 "\n"
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../resize/virt-resize.pod:157
23327 msgid ""
23328 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23329 "if virt-resize knows how, it will resize the contents, the equivalent of "
23330 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23331 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23332 "filesystems, so you would have to online resize them after booting the guest."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../resize/virt-resize.pod:164
23337 msgid "Other options are covered below."
23338 msgstr ""
23339
23340 #. type: =item
23341 #: ../resize/virt-resize.pod:166
23342 msgid "6. Test"
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:168
23347 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../resize/virt-resize.pod:170
23352 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23353 msgstr ""
23354
23355 #. type: verbatim
23356 #: ../resize/virt-resize.pod:172
23357 #, no-wrap
23358 msgid ""
23359 " # virsh edit guestname\n"
23360 "\n"
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../resize/virt-resize.pod:174
23365 msgid ""
23366 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23367 "html#elementsDisks>"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../resize/virt-resize.pod:177
23372 msgid "Then start up the domain with the new, resized disk:"
23373 msgstr ""
23374
23375 #. type: verbatim
23376 #: ../resize/virt-resize.pod:179
23377 #, no-wrap
23378 msgid ""
23379 " # virsh start guestname\n"
23380 "\n"
23381 msgstr ""
23382
23383 #. type: textblock
23384 #: ../resize/virt-resize.pod:181
23385 msgid ""
23386 "and check that it still works.  See also the L</NOTES> section below for "
23387 "additional information."
23388 msgstr ""
23389
23390 #. type: =item
23391 #: ../resize/virt-resize.pod:184
23392 msgid "7. Resize LVs etc inside the guest"
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../resize/virt-resize.pod:186
23397 msgid "(This can also be done offline using L<guestfish(1)>)"
23398 msgstr ""
23399
23400 #. type: textblock
23401 #: ../resize/virt-resize.pod:188
23402 msgid ""
23403 "Once the guest has booted you should see the new space available, at least "
23404 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23405 "may need to resize LVs inside PVs, and also resize filesystem types that "
23406 "virt-resize does not know how to expand."
23407 msgstr ""
23408
23409 #. type: =head2
23410 #: ../resize/virt-resize.pod:195
23411 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23412 msgstr ""
23413
23414 #. type: textblock
23415 #: ../resize/virt-resize.pod:197
23416 msgid ""
23417 "Shrinking is somewhat more complex than expanding, and only an overview is "
23418 "given here."
23419 msgstr ""
23420
23421 #. type: textblock
23422 #: ../resize/virt-resize.pod:200
23423 msgid ""
23424 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23425 "filesystems).  The user has to shrink content before passing the disk image "
23426 "to virt-resize, and virt-resize will check that the content has been shrunk "
23427 "properly."
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../resize/virt-resize.pod:205
23432 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../resize/virt-resize.pod:207
23437 msgid ""
23438 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23439 "steps 3 and 4 above to allocate a new disk image."
23440 msgstr ""
23441
23442 #. type: textblock
23443 #: ../resize/virt-resize.pod:210
23444 msgid ""
23445 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23446 msgstr ""
23447
23448 #. type: =head2
23449 #: ../resize/virt-resize.pod:213
23450 msgid "IGNORING OR DELETING PARTITIONS"
23451 msgstr ""
23452
23453 #. type: textblock
23454 #: ../resize/virt-resize.pod:215
23455 msgid ""
23456 "virt-resize also gives a convenient way to ignore or delete partitions when "
23457 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23458 "up the copy where you don't care about the existing contents of a "
23459 "partition.  Deleting a partition removes it completely, but note that it "
23460 "also renumbers any partitions after the one which is deleted, which can "
23461 "leave some guests unbootable."
23462 msgstr ""
23463
23464 #. type: =head2
23465 #: ../resize/virt-resize.pod:222
23466 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../resize/virt-resize.pod:224
23471 msgid ""
23472 "If the input disk is in qcow2 format, then you may prefer that the output is "
23473 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23474 "the fly.  The output format is simply determined by the format of the empty "
23475 "output container that you provide.  Thus to create qcow2 output, use:"
23476 msgstr ""
23477
23478 #. type: verbatim
23479 #: ../resize/virt-resize.pod:230
23480 #, no-wrap
23481 msgid ""
23482 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23483 "\n"
23484 msgstr ""
23485
23486 #. type: textblock
23487 #: ../resize/virt-resize.pod:232
23488 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../resize/virt-resize.pod:234
23493 msgid "Similarly, to get non-sparse raw output use:"
23494 msgstr ""
23495
23496 #. type: verbatim
23497 #: ../resize/virt-resize.pod:236
23498 #, no-wrap
23499 msgid ""
23500 " fallocate -l size outdisk\n"
23501 "\n"
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../resize/virt-resize.pod:238
23506 msgid ""
23507 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23508 "dev/zero of=outdisk bs=1M count=..>)"
23509 msgstr ""
23510
23511 #. type: =head2
23512 #: ../resize/virt-resize.pod:241
23513 msgid "LOGICAL PARTITIONS"
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../resize/virt-resize.pod:243
23518 msgid ""
23519 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23520 "tables) cannot be resized."
23521 msgstr ""
23522
23523 #. type: textblock
23524 #: ../resize/virt-resize.pod:246
23525 msgid ""
23526 "To understand what is going on, firstly one of the four partitions C</dev/"
23527 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23528 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23529 "type."
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../resize/virt-resize.pod:251
23534 msgid "Logical partitions live inside the extended partition."
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../resize/virt-resize.pod:253
23539 msgid ""
23540 "The extended partition can be expanded, but not shrunk (unless you force it, "
23541 "which is not advisable).  When the extended partition is copied across, all "
23542 "the logical partitions contained inside are copied over implicitly.  Virt-"
23543 "resize does not look inside the extended partition, so it copies the logical "
23544 "partitions blindly."
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../resize/virt-resize.pod:259
23549 msgid ""
23550 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23551 "line.  Doing so will give an error."
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23556 msgid "Display help."
23557 msgstr ""
23558
23559 #. type: =item
23560 #: ../resize/virt-resize.pod:270
23561 msgid "B<--align-first auto>"
23562 msgstr ""
23563
23564 #. type: =item
23565 #: ../resize/virt-resize.pod:272
23566 msgid "B<--align-first never>"
23567 msgstr ""
23568
23569 #. type: =item
23570 #: ../resize/virt-resize.pod:274
23571 msgid "B<--align-first always>"
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../resize/virt-resize.pod:276
23576 msgid ""
23577 "Align the first partition for improved performance (see also the I<--"
23578 "alignment> option)."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../resize/virt-resize.pod:279
23583 msgid ""
23584 "The default is I<--align-first auto> which only aligns the first partition "
23585 "if it is safe to do so.  That is, only when we know how to fix the "
23586 "bootloader automatically, and at the moment that can only be done for "
23587 "Windows guests."
23588 msgstr ""
23589
23590 #. type: textblock
23591 #: ../resize/virt-resize.pod:284
23592 msgid ""
23593 "I<--align-first never> means we never move the first partition.  This is the "
23594 "safest option.  Try this if the guest does not boot after resizing."
23595 msgstr ""
23596
23597 #. type: textblock
23598 #: ../resize/virt-resize.pod:288
23599 msgid ""
23600 "I<--align-first always> means we always align the first partition (if it "
23601 "needs to be aligned).  For some guests this will break the bootloader, "
23602 "making the guest unbootable."
23603 msgstr ""
23604
23605 #. type: =item
23606 #: ../resize/virt-resize.pod:292
23607 msgid "B<--alignment N>"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:294
23612 msgid ""
23613 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23614 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../resize/virt-resize.pod:298
23619 msgid ""
23620 "Assuming 512 byte sector size inside the guest, here are some suitable "
23621 "values for this:"
23622 msgstr ""
23623
23624 #. type: =item
23625 #: ../resize/virt-resize.pod:303
23626 msgid "I<--alignment 1> (512 bytes)"
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../resize/virt-resize.pod:305
23631 msgid ""
23632 "The partitions would be packed together as closely as possible, but would be "
23633 "completely unaligned.  In some cases this can cause very poor performance.  "
23634 "See L<virt-alignment-scan(1)> for further details."
23635 msgstr ""
23636
23637 #. type: =item
23638 #: ../resize/virt-resize.pod:309
23639 msgid "I<--alignment 8> (4K)"
23640 msgstr ""
23641
23642 #. type: textblock
23643 #: ../resize/virt-resize.pod:311
23644 msgid ""
23645 "This would be the minimum acceptable alignment for reasonable performance on "
23646 "modern hosts."
23647 msgstr ""
23648
23649 #. type: =item
23650 #: ../resize/virt-resize.pod:314
23651 msgid "I<--alignment 128> (64K)"
23652 msgstr ""
23653
23654 #. type: textblock
23655 #: ../resize/virt-resize.pod:316
23656 msgid ""
23657 "This alignment provides good performance when the host is using high end "
23658 "network storage."
23659 msgstr ""
23660
23661 #. type: =item
23662 #: ../resize/virt-resize.pod:319
23663 msgid "I<--alignment 2048> (1M)"
23664 msgstr ""
23665
23666 #. type: textblock
23667 #: ../resize/virt-resize.pod:321
23668 msgid ""
23669 "This is the standard alignment used by all newly installed guests since "
23670 "around 2008."
23671 msgstr ""
23672
23673 #. type: =item
23674 #: ../resize/virt-resize.pod:326
23675 msgid "B<-d>"
23676 msgstr ""
23677
23678 #. type: =item
23679 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
23680 #: ../tools/virt-win-reg.pl:120
23681 msgid "B<--debug>"
23682 msgstr ""
23683
23684 #. type: textblock
23685 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23686 msgid "Enable debugging messages."
23687 msgstr ""
23688
23689 #. type: =item
23690 #: ../resize/virt-resize.pod:332
23691 msgid "B<--delete part>"
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../resize/virt-resize.pod:334
23696 msgid ""
23697 "Delete the named partition.  It would be more accurate to describe this as "
23698 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23699 "the original disk image is left intact."
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../resize/virt-resize.pod:338
23704 msgid ""
23705 "Note that when you delete a partition, then anything contained in the "
23706 "partition is also deleted.  Furthermore, this causes any partitions that "
23707 "come after to be I<renumbered>, which can easily make your guest unbootable."
23708 msgstr ""
23709
23710 #. type: textblock
23711 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
23712 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
23713 msgid "You can give this option multiple times."
23714 msgstr ""
23715
23716 #. type: =item
23717 #: ../resize/virt-resize.pod:345
23718 msgid "B<--expand part>"
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../resize/virt-resize.pod:347
23723 msgid ""
23724 "Expand the named partition so it uses up all extra space (space left over "
23725 "after any other resize changes that you request have been done)."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../resize/virt-resize.pod:350
23730 msgid ""
23731 "If virt-resize knows how, it will expand the direct content of the "
23732 "partition.  For example, if the partition is an LVM PV, it will expand the "
23733 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23734 "content it doesn't know about alone."
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../resize/virt-resize.pod:355
23739 msgid "Currently virt-resize can resize:"
23740 msgstr ""
23741
23742 #. type: textblock
23743 #: ../resize/virt-resize.pod:361
23744 msgid "ext2, ext3 and ext4 filesystems."
23745 msgstr ""
23746
23747 #. type: textblock
23748 #: ../resize/virt-resize.pod:365
23749 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../resize/virt-resize.pod:367
23754 msgid ""
23755 "The filesystem must have been shut down consistently last time it was used.  "
23756 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23757 "consistency check, so at the first boot after resizing Windows will check "
23758 "the disk."
23759 msgstr ""
23760
23761 #. type: textblock
23762 #: ../resize/virt-resize.pod:374
23763 msgid ""
23764 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23765 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23766 "resize LVs as desired after boot."
23767 msgstr ""
23768
23769 #. type: textblock
23770 #: ../resize/virt-resize.pod:380
23771 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23776 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23777 msgstr ""
23778
23779 #. type: =item
23780 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
23781 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23782 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23783 msgid "B<--format> raw"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
23788 msgid ""
23789 "Specify the format of the input disk image.  If this flag is not given then "
23790 "it is auto-detected from the image itself."
23791 msgstr ""
23792
23793 #. type: textblock
23794 #: ../resize/virt-resize.pod:394
23795 msgid ""
23796 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23797 "AND NON-SPARSE RAW FORMATS>."
23798 msgstr ""
23799
23800 #. type: =item
23801 #: ../resize/virt-resize.pod:397
23802 msgid "B<--ignore part>"
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../resize/virt-resize.pod:399
23807 msgid ""
23808 "Ignore the named partition.  Effectively this means the partition is "
23809 "allocated on the destination disk, but the content is not copied across from "
23810 "the source disk.  The content of the partition will be blank (all zero "
23811 "bytes)."
23812 msgstr ""
23813
23814 #. type: =item
23815 #: ../resize/virt-resize.pod:406
23816 msgid "B<--LV-expand logvol>"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../resize/virt-resize.pod:408
23821 msgid ""
23822 "This takes the logical volume and, as a final step, expands it to fill all "
23823 "the space available in its volume group.  A typical usage, assuming a Linux "
23824 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23825 "lv_root> would be:"
23826 msgstr ""
23827
23828 #. type: verbatim
23829 #: ../resize/virt-resize.pod:413
23830 #, no-wrap
23831 msgid ""
23832 " virt-resize indisk outdisk \\\n"
23833 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23834 "\n"
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../resize/virt-resize.pod:416
23839 msgid ""
23840 "This would first expand the partition (and PV), and then expand the root "
23841 "device to fill the extra space in the PV."
23842 msgstr ""
23843
23844 #. type: textblock
23845 #: ../resize/virt-resize.pod:419
23846 msgid ""
23847 "The contents of the LV are also resized if virt-resize knows how to do "
23848 "that.  You can stop virt-resize from trying to expand the content by using "
23849 "the option I<--no-expand-content>."
23850 msgstr ""
23851
23852 #. type: textblock
23853 #: ../resize/virt-resize.pod:423
23854 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23855 msgstr ""
23856
23857 #. type: textblock
23858 #: ../resize/virt-resize.pod:425
23859 msgid ""
23860 "You can give this option multiple times, I<but> it doesn't make sense to do "
23861 "this unless the logical volumes you specify are all in different volume "
23862 "groups."
23863 msgstr ""
23864
23865 #. type: =item
23866 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23867 msgid "B<--machine-readable>"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23872 msgid ""
23873 "This option is used to make the output more machine friendly when being "
23874 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23875 msgstr ""
23876
23877 #. type: =item
23878 #: ../resize/virt-resize.pod:437
23879 msgid "B<--dryrun>"
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../resize/virt-resize.pod:439
23884 msgid "Print a summary of what would be done, but don't do anything."
23885 msgstr ""
23886
23887 #. type: =item
23888 #: ../resize/virt-resize.pod:441
23889 msgid "B<--no-copy-boot-loader>"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../resize/virt-resize.pod:443
23894 msgid ""
23895 "By default, virt-resize copies over some sectors at the start of the disk "
23896 "(up to the beginning of the first partition).  Commonly these sectors "
23897 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23898 "in order for the guest to boot correctly."
23899 msgstr ""
23900
23901 #. type: textblock
23902 #: ../resize/virt-resize.pod:448
23903 msgid ""
23904 "If you specify this flag, then this initial copy is not done.  You may need "
23905 "to reinstall the boot loader in this case."
23906 msgstr ""
23907
23908 #. type: =item
23909 #: ../resize/virt-resize.pod:451
23910 msgid "B<--no-extra-partition>"
23911 msgstr ""
23912
23913 #. type: textblock
23914 #: ../resize/virt-resize.pod:453
23915 msgid ""
23916 "By default, virt-resize creates an extra partition if there is any extra, "
23917 "unused space after all resizing has happened.  Use this option to prevent "
23918 "the extra partition from being created.  If you do this then the extra space "
23919 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23920 "tool in the guest."
23921 msgstr ""
23922
23923 #. type: textblock
23924 #: ../resize/virt-resize.pod:459
23925 msgid ""
23926 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23927 "will be created."
23928 msgstr ""
23929
23930 #. type: =item
23931 #: ../resize/virt-resize.pod:462
23932 msgid "B<--no-expand-content>"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../resize/virt-resize.pod:464
23937 msgid ""
23938 "By default, virt-resize will try to expand the direct contents of "
23939 "partitions, if it knows how (see I<--expand> option above)."
23940 msgstr ""
23941
23942 #. type: textblock
23943 #: ../resize/virt-resize.pod:467
23944 msgid ""
23945 "If you give the I<--no-expand-content> option then virt-resize will not "
23946 "attempt this."
23947 msgstr ""
23948
23949 #. type: =item
23950 #: ../resize/virt-resize.pod:470
23951 msgid "B<--ntfsresize-force>"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:472
23956 msgid ""
23957 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23958 "the NTFS disk is marked as needing a consistency check.  You have to use "
23959 "this option if you want to resize a Windows guest multiple times without "
23960 "booting into Windows between each resize."
23961 msgstr ""
23962
23963 #. type: =item
23964 #: ../resize/virt-resize.pod:478
23965 msgid "B<--output-format> raw"
23966 msgstr ""
23967
23968 #. type: textblock
23969 #: ../resize/virt-resize.pod:480
23970 msgid ""
23971 "Specify the format of the output disk image.  If this flag is not given then "
23972 "it is auto-detected from the image itself."
23973 msgstr ""
23974
23975 #. type: textblock
23976 #: ../resize/virt-resize.pod:486
23977 msgid ""
23978 "Note that this option I<does not create> the output format.  This option "
23979 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23980 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23981 "SPARSE RAW FORMATS>."
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../resize/virt-resize.pod:495
23986 msgid "Don't print the summary."
23987 msgstr ""
23988
23989 #. type: =item
23990 #: ../resize/virt-resize.pod:497
23991 msgid "B<--resize part=size>"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../resize/virt-resize.pod:499
23996 msgid ""
23997 "Resize the named partition (expanding or shrinking it) so that it has the "
23998 "given size."
23999 msgstr ""
24000
24001 #. type: textblock
24002 #: ../resize/virt-resize.pod:502
24003 msgid ""
24004 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24005 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24006 "size; or as a relative number or percentage.  For example:"
24007 msgstr ""
24008
24009 #. type: verbatim
24010 #: ../resize/virt-resize.pod:508
24011 #, no-wrap
24012 msgid ""
24013 " --resize /dev/sda2=10G\n"
24014 "\n"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../resize/virt-resize.pod:510
24019 #, no-wrap
24020 msgid ""
24021 " --resize /dev/sda4=90%\n"
24022 "\n"
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../resize/virt-resize.pod:512
24027 #, no-wrap
24028 msgid ""
24029 " --resize /dev/sda2=+1G\n"
24030 "\n"
24031 msgstr ""
24032
24033 #. type: verbatim
24034 #: ../resize/virt-resize.pod:514
24035 #, no-wrap
24036 msgid ""
24037 " --resize /dev/sda2=-200M\n"
24038 "\n"
24039 msgstr ""
24040
24041 #. type: verbatim
24042 #: ../resize/virt-resize.pod:516
24043 #, no-wrap
24044 msgid ""
24045 " --resize /dev/sda1=+128K\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: verbatim
24050 #: ../resize/virt-resize.pod:518
24051 #, no-wrap
24052 msgid ""
24053 " --resize /dev/sda1=+10%\n"
24054 "\n"
24055 msgstr ""
24056
24057 #. type: verbatim
24058 #: ../resize/virt-resize.pod:520
24059 #, no-wrap
24060 msgid ""
24061 " --resize /dev/sda1=-10%\n"
24062 "\n"
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../resize/virt-resize.pod:522
24067 msgid ""
24068 "You can increase the size of any partition.  Virt-resize will expand the "
24069 "direct content of the partition if it knows how (see I<--expand> below)."
24070 msgstr ""
24071
24072 #. type: textblock
24073 #: ../resize/virt-resize.pod:526
24074 msgid ""
24075 "You can only I<decrease> the size of partitions that contain filesystems or "
24076 "PVs which have already been shrunk.  Virt-resize will check this has been "
24077 "done before proceeding, or else will print an error (see also I<--resize-"
24078 "force>)."
24079 msgstr ""
24080
24081 #. type: =item
24082 #: ../resize/virt-resize.pod:533
24083 msgid "B<--resize-force part=size>"
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../resize/virt-resize.pod:535
24088 msgid ""
24089 "This is the same as I<--resize> except that it will let you decrease the "
24090 "size of any partition.  Generally this means you will lose any data which "
24091 "was at the end of the partition you shrink, but you may not care about that "
24092 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24093 "as a swap partition)."
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../resize/virt-resize.pod:541
24098 msgid "See also the I<--ignore> option."
24099 msgstr ""
24100
24101 #. type: =item
24102 #: ../resize/virt-resize.pod:543
24103 msgid "B<--shrink part>"
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:545
24108 msgid ""
24109 "Shrink the named partition until the overall disk image fits in the "
24110 "destination.  The named partition B<must> contain a filesystem or PV which "
24111 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24112 "online tools).  Virt-resize will check this and give an error if it has not "
24113 "been done."
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../resize/virt-resize.pod:551
24118 msgid ""
24119 "The amount by which the overall disk must be shrunk (after carrying out all "
24120 "other operations requested by the user) is called the \"deficit\".  For "
24121 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24122 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24123 "would give an error unless the user specified a partition to shrink and that "
24124 "partition had more than a gigabyte of free space."
24125 msgstr ""
24126
24127 #. type: =head1
24128 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24129 msgid "MACHINE READABLE OUTPUT"
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../resize/virt-resize.pod:571
24134 msgid ""
24135 "The I<--machine-readable> option can be used to make the output more machine "
24136 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24137 "etc."
24138 msgstr ""
24139
24140 #. type: textblock
24141 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24142 msgid "There are two ways to use this option."
24143 msgstr ""
24144
24145 #. type: textblock
24146 #: ../resize/virt-resize.pod:577
24147 msgid ""
24148 "Firstly use the option on its own to query the capabilities of the virt-"
24149 "resize binary.  Typical output looks like this:"
24150 msgstr ""
24151
24152 #. type: verbatim
24153 #: ../resize/virt-resize.pod:580
24154 #, no-wrap
24155 msgid ""
24156 " $ virt-resize --machine-readable\n"
24157 " virt-resize\n"
24158 " ntfsresize-force\n"
24159 " 32bitok\n"
24160 " ntfs\n"
24161 " btrfs\n"
24162 "\n"
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24167 msgid ""
24168 "A list of features is printed, one per line, and the program exits with "
24169 "status 0."
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24174 msgid ""
24175 "Secondly use the option in conjunction with other options to make the "
24176 "regular program output more machine friendly."
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24181 msgid "At the moment this means:"
24182 msgstr ""
24183
24184 #. type: textblock
24185 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24186 msgid ""
24187 "Progress bar messages can be parsed from stdout by looking for this regular "
24188 "expression:"
24189 msgstr ""
24190
24191 #. type: verbatim
24192 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24193 #, no-wrap
24194 msgid ""
24195 " ^[0-9]+/[0-9]+$\n"
24196 "\n"
24197 msgstr ""
24198
24199 #. type: textblock
24200 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24201 msgid ""
24202 "The calling program should treat messages sent to stdout (except for "
24203 "progress bar messages) as status messages.  They can be logged and/or "
24204 "displayed to the user."
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../resize/virt-resize.pod:612
24209 msgid ""
24210 "The calling program should treat messages sent to stderr as error messages.  "
24211 "In addition, virt-resize exits with a non-zero status code if there was a "
24212 "fatal error."
24213 msgstr ""
24214
24215 #. type: textblock
24216 #: ../resize/virt-resize.pod:618
24217 msgid ""
24218 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24219 "readable> option and will return an error."
24220 msgstr ""
24221
24222 #. type: =head2
24223 #: ../resize/virt-resize.pod:623
24224 msgid "\"Partition 1 does not end on cylinder boundary.\""
24225 msgstr ""
24226
24227 #. type: textblock
24228 #: ../resize/virt-resize.pod:625
24229 msgid ""
24230 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24231 "alignment> parameter).  Usually this means the partitions will not be "
24232 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24233 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24234 "drives.  Alignment of partitions to cylinders is not required by any modern "
24235 "operating system."
24236 msgstr ""
24237
24238 #. type: =head2
24239 #: ../resize/virt-resize.pod:632
24240 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24241 msgstr ""
24242
24243 #. type: textblock
24244 #: ../resize/virt-resize.pod:634
24245 msgid ""
24246 "In Windows Vista and later versions, Microsoft switched to using a separate "
24247 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24248 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24249 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24250 "the second partition (ie. C: drive)  should work."
24251 msgstr ""
24252
24253 #. type: textblock
24254 #: ../resize/virt-resize.pod:641
24255 msgid ""
24256 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24257 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24258 "it find errors) is nothing to worry about."
24259 msgstr ""
24260
24261 #. type: =head2
24262 #: ../resize/virt-resize.pod:645
24263 msgid "GUEST BOOT STUCK AT \"GRUB\""
24264 msgstr ""
24265
24266 #. type: textblock
24267 #: ../resize/virt-resize.pod:647
24268 msgid ""
24269 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24270 "printing C<GRUB> on the console, try reinstalling grub."
24271 msgstr ""
24272
24273 #. type: verbatim
24274 #: ../resize/virt-resize.pod:650
24275 #, no-wrap
24276 msgid ""
24277 " guestfish -i -a newdisk\n"
24278 " ><fs> cat /boot/grub/device.map\n"
24279 " # check the contents of this file are sensible or\n"
24280 " # edit the file if necessary\n"
24281 " ><fs> grub-install / /dev/vda\n"
24282 " ><fs> exit\n"
24283 "\n"
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../resize/virt-resize.pod:657
24288 msgid ""
24289 "For more flexible guest reconfiguration, including if you need to specify "
24290 "other parameters to grub-install, use L<virt-rescue(1)>."
24291 msgstr ""
24292
24293 #. type: =head1
24294 #: ../resize/virt-resize.pod:660
24295 msgid "ALTERNATIVE TOOLS"
24296 msgstr ""
24297
24298 #. type: textblock
24299 #: ../resize/virt-resize.pod:662
24300 msgid ""
24301 "There are several proprietary tools for resizing partitions.  We won't "
24302 "mention any here."
24303 msgstr ""
24304
24305 #. type: textblock
24306 #: ../resize/virt-resize.pod:665
24307 msgid ""
24308 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24309 "operations on disk images.  They can resize and move partitions, but I don't "
24310 "think they can do anything with the contents, and they certainly don't "
24311 "understand LVM."
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../resize/virt-resize.pod:670
24316 msgid ""
24317 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24318 "but at a much lower level.  You will probably end up hand-calculating sector "
24319 "offsets, which is something that virt-resize was designed to avoid.  If you "
24320 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24321 "I<--debug> flag."
24322 msgstr ""
24323
24324 #. type: textblock
24325 #: ../resize/virt-resize.pod:690
24326 msgid ""
24327 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24328 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24329 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24330 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24331 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24332 msgstr ""
24333
24334 #. type: textblock
24335 #: ../ruby/examples/guestfs-ruby.pod:5
24336 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24337 msgstr ""
24338
24339 #. type: verbatim
24340 #: ../ruby/examples/guestfs-ruby.pod:9
24341 #, no-wrap
24342 msgid ""
24343 " require 'guestfs'\n"
24344 " g = Guestfs::Guestfs.new()\n"
24345 " g.add_drive_opts(\"disk.img\",\n"
24346 "                  :readonly => 1, :format => \"raw\")\n"
24347 " g.launch()\n"
24348 "\n"
24349 msgstr ""
24350
24351 #. type: textblock
24352 #: ../ruby/examples/guestfs-ruby.pod:17
24353 msgid ""
24354 "This manual page documents how to call libguestfs from the Ruby programming "
24355 "language.  This page just documents the differences from the C API and gives "
24356 "some examples.  If you are not familiar with using libguestfs, you also need "
24357 "to read L<guestfs(3)>."
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../ruby/examples/guestfs-ruby.pod:24
24362 msgid ""
24363 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24364 "This has a single parameter which is the error message (a string)."
24365 msgstr ""
24366
24367 #. type: textblock
24368 #: ../ruby/examples/guestfs-ruby.pod:38
24369 msgid ""
24370 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24371 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24372 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../sparsify/virt-sparsify.pod:5
24377 msgid "virt-sparsify - Make a virtual machine disk sparse"
24378 msgstr ""
24379
24380 #. type: verbatim
24381 #: ../sparsify/virt-sparsify.pod:9
24382 #, no-wrap
24383 msgid ""
24384 " virt-sparsify [--options] indisk outdisk\n"
24385 "\n"
24386 msgstr ""
24387
24388 #. type: textblock
24389 #: ../sparsify/virt-sparsify.pod:13
24390 msgid ""
24391 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24392 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24393 "the disk image can be converted back to free space on the host."
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../sparsify/virt-sparsify.pod:18
24398 msgid ""
24399 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24400 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../sparsify/virt-sparsify.pod:21
24405 msgid ""
24406 "Virt-sparsify can also convert between some disk formats, for example "
24407 "converting a raw disk image to a thin-provisioned qcow2 image."
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../sparsify/virt-sparsify.pod:24
24412 msgid ""
24413 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24414 "machines.  If a virtual machine has more than one attached disk, you must "
24415 "sparsify each one separately."
24416 msgstr ""
24417
24418 #. type: =head2
24419 #: ../sparsify/virt-sparsify.pod:28
24420 msgid "IMPORTANT LIMITATIONS"
24421 msgstr ""
24422
24423 #. type: textblock
24424 #: ../sparsify/virt-sparsify.pod:34
24425 msgid ""
24426 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24427 "image to a destination image, leaving the source unchanged.  I<Check that "
24428 "the sparsification was successful before deleting the source image>."
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../sparsify/virt-sparsify.pod:41
24433 msgid "The virtual machine I<must be shut down> before using this tool."
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../sparsify/virt-sparsify.pod:45
24438 msgid ""
24439 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24440 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24441 "usually much less space is required."
24442 msgstr ""
24443
24444 #. type: textblock
24445 #: ../sparsify/virt-sparsify.pod:51
24446 msgid ""
24447 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24448 msgstr ""
24449
24450 #. type: textblock
24451 #: ../sparsify/virt-sparsify.pod:56
24452 msgid "Virt-sparsify cannot handle encrypted disks."
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../sparsify/virt-sparsify.pod:60
24457 msgid ""
24458 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24459 "this space is often used for critical items like bootloaders so it's not "
24460 "really unused."
24461 msgstr ""
24462
24463 #. type: textblock
24464 #: ../sparsify/virt-sparsify.pod:66
24465 msgid ""
24466 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24467 "to do this unless we can be sure there is no hibernation data, so at the "
24468 "moment swap partitions are ignored."
24469 msgstr ""
24470
24471 #. type: textblock
24472 #: ../sparsify/virt-sparsify.pod:72
24473 msgid ""
24474 "You may also want to read the manual pages for the associated tools L<virt-"
24475 "filesystems(1)> and L<virt-df(1)> before starting."
24476 msgstr ""
24477
24478 #. type: textblock
24479 #: ../sparsify/virt-sparsify.pod:77
24480 msgid "Typical usage is:"
24481 msgstr ""
24482
24483 #. type: verbatim
24484 #: ../sparsify/virt-sparsify.pod:79
24485 #, no-wrap
24486 msgid ""
24487 " virt-sparsify indisk outdisk\n"
24488 "\n"
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../sparsify/virt-sparsify.pod:81
24493 msgid ""
24494 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24495 "is created, or overwritten if it already exists.  The format of the input "
24496 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../sparsify/virt-sparsify.pod:86
24501 msgid "To convert between formats, use the I<--convert> option:"
24502 msgstr ""
24503
24504 #. type: verbatim
24505 #: ../sparsify/virt-sparsify.pod:88
24506 #, no-wrap
24507 msgid ""
24508 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24509 "\n"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../sparsify/virt-sparsify.pod:90
24514 msgid ""
24515 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24516 "can find within the source disk image.  You can get it to ignore (don't zero "
24517 "free space on) certain filesystems by doing:"
24518 msgstr ""
24519
24520 #. type: verbatim
24521 #: ../sparsify/virt-sparsify.pod:94
24522 #, no-wrap
24523 msgid ""
24524 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24525 "\n"
24526 msgstr ""
24527
24528 #. type: textblock
24529 #: ../sparsify/virt-sparsify.pod:96
24530 msgid ""
24531 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24532 msgstr ""
24533
24534 #. type: =item
24535 #: ../sparsify/virt-sparsify.pod:107
24536 msgid "B<--convert> raw"
24537 msgstr ""
24538
24539 #. type: =item
24540 #: ../sparsify/virt-sparsify.pod:109
24541 msgid "B<--convert> qcow2"
24542 msgstr ""
24543
24544 #. type: =item
24545 #: ../sparsify/virt-sparsify.pod:111
24546 msgid "B<--convert> [other formats]"
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../sparsify/virt-sparsify.pod:113
24551 msgid ""
24552 "Use C<output-format> as the format for the destination image.  If this is "
24553 "not specified, then the input format is used."
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../sparsify/virt-sparsify.pod:116
24558 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24559 msgstr ""
24560
24561 #. type: textblock
24562 #: ../sparsify/virt-sparsify.pod:118
24563 msgid ""
24564 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24565 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24566 msgstr ""
24567
24568 #. type: textblock
24569 #: ../sparsify/virt-sparsify.pod:122
24570 msgid ""
24571 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24572 "sparsify doesn't need to try to guess the input format."
24573 msgstr ""
24574
24575 #. type: =item
24576 #: ../sparsify/virt-sparsify.pod:127
24577 msgid "B<--format> qcow2"
24578 msgstr ""
24579
24580 #. type: =item
24581 #: ../sparsify/virt-sparsify.pod:135
24582 msgid "B<--ignore> filesystem"
24583 msgstr ""
24584
24585 #. type: =item
24586 #: ../sparsify/virt-sparsify.pod:137
24587 msgid "B<--ignore> volgroup"
24588 msgstr ""
24589
24590 #. type: textblock
24591 #: ../sparsify/virt-sparsify.pod:139
24592 msgid ""
24593 "Ignore the named filesystem.  Free space on the filesystem will not be "
24594 "zeroed, but existing blocks of zeroes will still be sparsified."
24595 msgstr ""
24596
24597 #. type: textblock
24598 #: ../sparsify/virt-sparsify.pod:142
24599 msgid ""
24600 "In the second form, this ignores the named volume group.  Use the volume "
24601 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24602 msgstr ""
24603
24604 #. type: textblock
24605 #: ../sparsify/virt-sparsify.pod:157
24606 msgid "This disables progress bars and other unnecessary output."
24607 msgstr ""
24608
24609 #. type: textblock
24610 #: ../sparsify/virt-sparsify.pod:179
24611 msgid ""
24612 "The I<--machine-readable> option can be used to make the output more machine "
24613 "friendly, which is useful when calling virt-sparsify from other programs, "
24614 "GUIs etc."
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../sparsify/virt-sparsify.pod:185
24619 msgid ""
24620 "Firstly use the option on its own to query the capabilities of the virt-"
24621 "sparsify binary.  Typical output looks like this:"
24622 msgstr ""
24623
24624 #. type: verbatim
24625 #: ../sparsify/virt-sparsify.pod:188
24626 #, no-wrap
24627 msgid ""
24628 " $ virt-sparsify --machine-readable\n"
24629 " virt-sparsify\n"
24630 " ntfs\n"
24631 " btrfs\n"
24632 "\n"
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../sparsify/virt-sparsify.pod:218
24637 msgid ""
24638 "The calling program should treat messages sent to stderr as error messages.  "
24639 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24640 "fatal error."
24641 msgstr ""
24642
24643 #. type: textblock
24644 #: ../sparsify/virt-sparsify.pod:224
24645 msgid ""
24646 "All versions of virt-sparsify have supported the I<--machine-readable> "
24647 "option."
24648 msgstr ""
24649
24650 #. type: textblock
24651 #: ../sparsify/virt-sparsify.pod:238
24652 msgid ""
24653 "Location of the temporary directory used for the potentially large temporary "
24654 "overlay file."
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../sparsify/virt-sparsify.pod:241
24659 msgid ""
24660 "You should ensure there is enough free space in the worst case for a full "
24661 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24662 "to another directory that has enough space."
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../sparsify/virt-sparsify.pod:245
24667 msgid "This defaults to C</tmp>."
24668 msgstr ""
24669
24670 #. type: textblock
24671 #: ../sparsify/virt-sparsify.pod:249
24672 msgid ""
24673 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24674 msgstr ""
24675
24676 #. type: textblock
24677 #: ../sparsify/virt-sparsify.pod:253
24678 msgid ""
24679 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24680 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24681 "(1)>, L<http://libguestfs.org/>."
24682 msgstr ""
24683
24684 #. type: =head2
24685 #: ../src/guestfs-actions.pod:1
24686 msgid "guestfs_add_cdrom"
24687 msgstr ""
24688
24689 #. type: verbatim
24690 #: ../src/guestfs-actions.pod:3
24691 #, no-wrap
24692 msgid ""
24693 " int\n"
24694 " guestfs_add_cdrom (guestfs_h *g,\n"
24695 "                    const char *filename);\n"
24696 "\n"
24697 msgstr ""
24698
24699 #. type: textblock
24700 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
24701 #: ../src/guestfs-actions.pod:323
24702 msgid ""
24703 "I<This function is deprecated.> In new code, use the L</"
24704 "guestfs_add_drive_opts> call instead."
24705 msgstr ""
24706
24707 #. type: textblock
24708 #: ../src/guestfs-actions.pod:24
24709 msgid ""
24710 "This call checks for the existence of C<filename>.  This stops you from "
24711 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24712 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24713 "instead."
24714 msgstr ""
24715
24716 #. type: textblock
24717 #: ../src/guestfs-actions.pod:31
24718 msgid ""
24719 "If you just want to add an ISO file (often you use this as an efficient way "
24720 "to transfer large files into the guest), then you should probably use "
24721 "C<guestfs_add_drive_ro> instead."
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
24726 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
24727 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
24728 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
24729 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
24730 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
24731 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
24732 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
24733 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
24734 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
24735 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
24736 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
24737 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
24738 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
24739 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
24740 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
24741 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
24742 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
24743 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
24744 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
24745 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
24746 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
24747 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
24748 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
24749 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
24750 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
24751 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
24752 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
24753 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
24754 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
24755 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
24756 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
24757 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
24758 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
24759 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
24760 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
24761 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
24762 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
24763 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
24764 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
24765 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
24766 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
24767 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
24768 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
24769 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
24770 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
24771 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
24772 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
24773 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
24774 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
24775 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
24776 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
24777 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
24778 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
24779 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
24780 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
24781 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
24782 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
24783 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
24784 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
24785 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
24786 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
24787 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
24788 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
24789 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
24790 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
24791 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
24792 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
24793 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
24794 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
24795 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
24796 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
24797 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
24798 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
24799 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
24800 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
24801 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
24802 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
24803 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
24804 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
24805 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
24806 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
24807 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
24808 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
24809 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
24810 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
24811 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
24812 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
24813 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
24814 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
24815 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
24816 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
24817 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
24818 #: ../src/guestfs-actions.pod:8295
24819 msgid "This function returns 0 on success or -1 on error."
24820 msgstr ""
24821
24822 #. type: textblock
24823 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
24824 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
24825 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
24826 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
24827 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
24828 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
24829 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
24830 #: ../src/guestfs-actions.pod:8075
24831 msgid "(Added in 0.3)"
24832 msgstr ""
24833
24834 #. type: =head2
24835 #: ../src/guestfs-actions.pod:41
24836 msgid "guestfs_add_domain"
24837 msgstr ""
24838
24839 #. type: verbatim
24840 #: ../src/guestfs-actions.pod:43
24841 #, no-wrap
24842 msgid ""
24843 " int\n"
24844 " guestfs_add_domain (guestfs_h *g,\n"
24845 "                     const char *dom,\n"
24846 "                     ...);\n"
24847 "\n"
24848 msgstr ""
24849
24850 #. type: textblock
24851 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
24852 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
24853 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
24854 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
24855 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
24856 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
24857 #: ../src/guestfs-actions.pod:5626
24858 msgid ""
24859 "You may supply a list of optional arguments to this call.  Use zero or more "
24860 "of the following pairs of parameters, and terminate the list with C<-1> on "
24861 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24862 msgstr ""
24863
24864 #. type: verbatim
24865 #: ../src/guestfs-actions.pod:53
24866 #, no-wrap
24867 msgid ""
24868 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24869 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24870 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24871 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24872 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24873 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24874 "\n"
24875 msgstr ""
24876
24877 #. type: textblock
24878 #: ../src/guestfs-actions.pod:60
24879 msgid ""
24880 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24881 "It works by connecting to libvirt, requesting the domain and domain XML from "
24882 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24883 "one."
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../src/guestfs-actions.pod:141
24888 msgid ""
24889 "The other optional parameters are passed directly through to "
24890 "C<guestfs_add_drive_opts>."
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
24895 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
24896 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24897 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
24898 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
24899 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
24900 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
24901 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
24902 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
24903 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
24904 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
24905 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
24906 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
24907 #: ../src/guestfs-actions.pod:8112
24908 msgid "On error this function returns -1."
24909 msgstr ""
24910
24911 #. type: textblock
24912 #: ../src/guestfs-actions.pod:146
24913 msgid "(Added in 1.7.4)"
24914 msgstr ""
24915
24916 #. type: =head2
24917 #: ../src/guestfs-actions.pod:148
24918 msgid "guestfs_add_domain_va"
24919 msgstr ""
24920
24921 #. type: verbatim
24922 #: ../src/guestfs-actions.pod:150
24923 #, no-wrap
24924 msgid ""
24925 " int\n"
24926 " guestfs_add_domain_va (guestfs_h *g,\n"
24927 "                        const char *dom,\n"
24928 "                        va_list args);\n"
24929 "\n"
24930 msgstr ""
24931
24932 #. type: textblock
24933 #: ../src/guestfs-actions.pod:155
24934 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24935 msgstr ""
24936
24937 #. type: textblock
24938 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
24939 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
24940 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
24941 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
24942 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
24943 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
24944 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
24945 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
24946 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
24947 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
24948 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
24949 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
24950 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
24951 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24952 msgstr ""
24953
24954 #. type: =head2
24955 #: ../src/guestfs-actions.pod:159
24956 msgid "guestfs_add_domain_argv"
24957 msgstr ""
24958
24959 #. type: verbatim
24960 #: ../src/guestfs-actions.pod:161
24961 #, no-wrap
24962 msgid ""
24963 " int\n"
24964 " guestfs_add_domain_argv (guestfs_h *g,\n"
24965 "                          const char *dom,\n"
24966 "                          const struct guestfs_add_domain_argv *optargs);\n"
24967 "\n"
24968 msgstr ""
24969
24970 #. type: textblock
24971 #: ../src/guestfs-actions.pod:166
24972 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24973 msgstr ""
24974
24975 #. type: =head2
24976 #: ../src/guestfs-actions.pod:170
24977 msgid "guestfs_add_drive"
24978 msgstr ""
24979
24980 #. type: verbatim
24981 #: ../src/guestfs-actions.pod:172
24982 #, no-wrap
24983 msgid ""
24984 " int\n"
24985 " guestfs_add_drive (guestfs_h *g,\n"
24986 "                    const char *filename);\n"
24987 "\n"
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:176
24992 msgid ""
24993 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24994 "optional parameters, so the disk is added writable, with the format being "
24995 "detected automatically."
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../src/guestfs-actions.pod:180
25000 msgid ""
25001 "Automatic detection of the format opens you up to a potential security hole "
25002 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25003 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25004 "you should think about replacing calls to this function with calls to "
25005 "C<guestfs_add_drive_opts>, and specifying the format."
25006 msgstr ""
25007
25008 #. type: =head2
25009 #: ../src/guestfs-actions.pod:191
25010 msgid "guestfs_add_drive_opts"
25011 msgstr ""
25012
25013 #. type: verbatim
25014 #: ../src/guestfs-actions.pod:193
25015 #, no-wrap
25016 msgid ""
25017 " int\n"
25018 " guestfs_add_drive_opts (guestfs_h *g,\n"
25019 "                         const char *filename,\n"
25020 "                         ...);\n"
25021 "\n"
25022 msgstr ""
25023
25024 #. type: verbatim
25025 #: ../src/guestfs-actions.pod:203
25026 #, no-wrap
25027 msgid ""
25028 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25029 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25030 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25031 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25032 "\n"
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../src/guestfs-actions.pod:233
25037 msgid ""
25038 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25039 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25040 "Possible formats include C<raw> and C<qcow2>."
25041 msgstr ""
25042
25043 #. type: textblock
25044 #: ../src/guestfs-actions.pod:244
25045 msgid ""
25046 "This rarely-used option lets you emulate the behaviour of the deprecated "
25047 "C<guestfs_add_drive_with_if> call (q.v.)"
25048 msgstr ""
25049
25050 #. type: textblock
25051 #: ../src/guestfs-actions.pod:256
25052 msgid "(Added in 1.5.23)"
25053 msgstr ""
25054
25055 #. type: =head2
25056 #: ../src/guestfs-actions.pod:258
25057 msgid "guestfs_add_drive_opts_va"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../src/guestfs-actions.pod:260
25062 #, no-wrap
25063 msgid ""
25064 " int\n"
25065 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25066 "                            const char *filename,\n"
25067 "                            va_list args);\n"
25068 "\n"
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../src/guestfs-actions.pod:265
25073 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25074 msgstr ""
25075
25076 #. type: =head2
25077 #: ../src/guestfs-actions.pod:269
25078 msgid "guestfs_add_drive_opts_argv"
25079 msgstr ""
25080
25081 #. type: verbatim
25082 #: ../src/guestfs-actions.pod:271
25083 #, no-wrap
25084 msgid ""
25085 " int\n"
25086 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25087 "                              const char *filename,\n"
25088 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25089 "\n"
25090 msgstr ""
25091
25092 #. type: textblock
25093 #: ../src/guestfs-actions.pod:276
25094 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:280
25099 msgid "guestfs_add_drive_ro"
25100 msgstr ""
25101
25102 #. type: verbatim
25103 #: ../src/guestfs-actions.pod:282
25104 #, no-wrap
25105 msgid ""
25106 " int\n"
25107 " guestfs_add_drive_ro (guestfs_h *g,\n"
25108 "                       const char *filename);\n"
25109 "\n"
25110 msgstr ""
25111
25112 #. type: textblock
25113 #: ../src/guestfs-actions.pod:286
25114 msgid ""
25115 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25116 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25117 "disk is added read-only, with the format being detected automatically."
25118 msgstr ""
25119
25120 #. type: textblock
25121 #: ../src/guestfs-actions.pod:293
25122 msgid "(Added in 1.0.38)"
25123 msgstr ""
25124
25125 #. type: =head2
25126 #: ../src/guestfs-actions.pod:295
25127 msgid "guestfs_add_drive_ro_with_if"
25128 msgstr ""
25129
25130 #. type: verbatim
25131 #: ../src/guestfs-actions.pod:297
25132 #, no-wrap
25133 msgid ""
25134 " int\n"
25135 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25136 "                               const char *filename,\n"
25137 "                               const char *iface);\n"
25138 "\n"
25139 msgstr ""
25140
25141 #. type: textblock
25142 #: ../src/guestfs-actions.pod:309
25143 msgid ""
25144 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25145 "QEMU interface emulation to use at run time."
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25150 #: ../src/guestfs-actions.pod:2881
25151 msgid "(Added in 1.0.84)"
25152 msgstr ""
25153
25154 #. type: =head2
25155 #: ../src/guestfs-actions.pod:316
25156 msgid "guestfs_add_drive_with_if"
25157 msgstr ""
25158
25159 #. type: verbatim
25160 #: ../src/guestfs-actions.pod:318
25161 #, no-wrap
25162 msgid ""
25163 " int\n"
25164 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25165 "                            const char *filename,\n"
25166 "                            const char *iface);\n"
25167 "\n"
25168 msgstr ""
25169
25170 #. type: textblock
25171 #: ../src/guestfs-actions.pod:330
25172 msgid ""
25173 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25174 "QEMU interface emulation to use at run time."
25175 msgstr ""
25176
25177 #. type: =head2
25178 #: ../src/guestfs-actions.pod:337
25179 msgid "guestfs_aug_clear"
25180 msgstr ""
25181
25182 #. type: verbatim
25183 #: ../src/guestfs-actions.pod:339
25184 #, no-wrap
25185 msgid ""
25186 " int\n"
25187 " guestfs_aug_clear (guestfs_h *g,\n"
25188 "                    const char *augpath);\n"
25189 "\n"
25190 msgstr ""
25191
25192 #. type: textblock
25193 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25194 msgid "(Added in 1.3.4)"
25195 msgstr ""
25196
25197 #. type: =head2
25198 #: ../src/guestfs-actions.pod:350
25199 msgid "guestfs_aug_close"
25200 msgstr ""
25201
25202 #. type: verbatim
25203 #: ../src/guestfs-actions.pod:352
25204 #, no-wrap
25205 msgid ""
25206 " int\n"
25207 " guestfs_aug_close (guestfs_h *g);\n"
25208 "\n"
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../src/guestfs-actions.pod:355
25213 msgid ""
25214 "Close the current Augeas handle and free up any resources used by it.  After "
25215 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25216 "any other Augeas functions."
25217 msgstr ""
25218
25219 #. type: textblock
25220 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25221 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25222 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25223 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25224 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25225 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25226 #: ../src/guestfs-actions.pod:6311
25227 msgid "(Added in 0.7)"
25228 msgstr ""
25229
25230 #. type: =head2
25231 #: ../src/guestfs-actions.pod:364
25232 msgid "guestfs_aug_defnode"
25233 msgstr ""
25234
25235 #. type: verbatim
25236 #: ../src/guestfs-actions.pod:366
25237 #, no-wrap
25238 msgid ""
25239 " struct guestfs_int_bool *\n"
25240 " guestfs_aug_defnode (guestfs_h *g,\n"
25241 "                      const char *name,\n"
25242 "                      const char *expr,\n"
25243 "                      const char *val);\n"
25244 "\n"
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../src/guestfs-actions.pod:375
25249 msgid ""
25250 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25251 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25252 "containing that single node."
25253 msgstr ""
25254
25255 #. type: textblock
25256 #: ../src/guestfs-actions.pod:383
25257 msgid ""
25258 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25259 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25260 msgstr ""
25261
25262 #. type: =head2
25263 #: ../src/guestfs-actions.pod:389
25264 msgid "guestfs_aug_defvar"
25265 msgstr ""
25266
25267 #. type: verbatim
25268 #: ../src/guestfs-actions.pod:391
25269 #, no-wrap
25270 msgid ""
25271 " int\n"
25272 " guestfs_aug_defvar (guestfs_h *g,\n"
25273 "                     const char *name,\n"
25274 "                     const char *expr);\n"
25275 "\n"
25276 msgstr ""
25277
25278 #. type: =head2
25279 #: ../src/guestfs-actions.pod:407
25280 msgid "guestfs_aug_get"
25281 msgstr ""
25282
25283 #. type: verbatim
25284 #: ../src/guestfs-actions.pod:409
25285 #, no-wrap
25286 msgid ""
25287 " char *\n"
25288 " guestfs_aug_get (guestfs_h *g,\n"
25289 "                  const char *augpath);\n"
25290 "\n"
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25295 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25296 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25297 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25298 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25299 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25300 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25301 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25302 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25303 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25304 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25305 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25306 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25307 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25308 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25309 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25310 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25311 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
25312 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
25313 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
25314 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
25315 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
25316 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
25317 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25318 msgid ""
25319 "This function returns a string, or NULL on error.  I<The caller must free "
25320 "the returned string after use>."
25321 msgstr ""
25322
25323 #. type: =head2
25324 #: ../src/guestfs-actions.pod:421
25325 msgid "guestfs_aug_init"
25326 msgstr ""
25327
25328 #. type: verbatim
25329 #: ../src/guestfs-actions.pod:423
25330 #, no-wrap
25331 msgid ""
25332 " int\n"
25333 " guestfs_aug_init (guestfs_h *g,\n"
25334 "                   const char *root,\n"
25335 "                   int flags);\n"
25336 "\n"
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:432
25341 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:457
25346 msgid ""
25347 "This option is only useful when debugging Augeas lenses.  Use of this option "
25348 "may require additional memory for the libguestfs appliance.  You may need to "
25349 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25350 "C<guestfs_set_memsize>."
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../src/guestfs-actions.pod:472
25355 msgid "Do not load the tree in C<guestfs_aug_init>."
25356 msgstr ""
25357
25358 #. type: textblock
25359 #: ../src/guestfs-actions.pod:476
25360 msgid "To close the handle, you can call C<guestfs_aug_close>."
25361 msgstr ""
25362
25363 #. type: =head2
25364 #: ../src/guestfs-actions.pod:484
25365 msgid "guestfs_aug_insert"
25366 msgstr ""
25367
25368 #. type: verbatim
25369 #: ../src/guestfs-actions.pod:486
25370 #, no-wrap
25371 msgid ""
25372 " int\n"
25373 " guestfs_aug_insert (guestfs_h *g,\n"
25374 "                     const char *augpath,\n"
25375 "                     const char *label,\n"
25376 "                     int before);\n"
25377 "\n"
25378 msgstr ""
25379
25380 #. type: =head2
25381 #: ../src/guestfs-actions.pod:504
25382 msgid "guestfs_aug_load"
25383 msgstr ""
25384
25385 #. type: verbatim
25386 #: ../src/guestfs-actions.pod:506
25387 #, no-wrap
25388 msgid ""
25389 " int\n"
25390 " guestfs_aug_load (guestfs_h *g);\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: =head2
25395 #: ../src/guestfs-actions.pod:518
25396 msgid "guestfs_aug_ls"
25397 msgstr ""
25398
25399 #. type: verbatim
25400 #: ../src/guestfs-actions.pod:520
25401 #, no-wrap
25402 msgid ""
25403 " char **\n"
25404 " guestfs_aug_ls (guestfs_h *g,\n"
25405 "                 const char *augpath);\n"
25406 "\n"
25407 msgstr ""
25408
25409 #. type: textblock
25410 #: ../src/guestfs-actions.pod:524
25411 msgid ""
25412 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25413 "sorting the resulting nodes into alphabetical order."
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25418 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25419 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
25420 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
25421 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
25422 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
25423 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
25424 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
25425 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
25426 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
25427 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
25428 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
25429 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
25430 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
25431 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
25432 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
25433 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
25434 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
25435 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
25436 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
25437 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
25438 #: ../src/guestfs-actions.pod:8393
25439 msgid ""
25440 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25441 ">), or NULL if there was an error.  I<The caller must free the strings and "
25442 "the array after use>."
25443 msgstr ""
25444
25445 #. type: textblock
25446 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25447 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
25448 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
25449 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
25450 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
25451 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
25452 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
25453 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
25454 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
25455 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
25456 #: ../src/guestfs-actions.pod:8187
25457 msgid "(Added in 0.8)"
25458 msgstr ""
25459
25460 #. type: =head2
25461 #: ../src/guestfs-actions.pod:533
25462 msgid "guestfs_aug_match"
25463 msgstr ""
25464
25465 #. type: verbatim
25466 #: ../src/guestfs-actions.pod:535
25467 #, no-wrap
25468 msgid ""
25469 " char **\n"
25470 " guestfs_aug_match (guestfs_h *g,\n"
25471 "                    const char *augpath);\n"
25472 "\n"
25473 msgstr ""
25474
25475 #. type: =head2
25476 #: ../src/guestfs-actions.pod:549
25477 msgid "guestfs_aug_mv"
25478 msgstr ""
25479
25480 #. type: verbatim
25481 #: ../src/guestfs-actions.pod:551
25482 #, no-wrap
25483 msgid ""
25484 " int\n"
25485 " guestfs_aug_mv (guestfs_h *g,\n"
25486 "                 const char *src,\n"
25487 "                 const char *dest);\n"
25488 "\n"
25489 msgstr ""
25490
25491 #. type: =head2
25492 #: ../src/guestfs-actions.pod:563
25493 msgid "guestfs_aug_rm"
25494 msgstr ""
25495
25496 #. type: verbatim
25497 #: ../src/guestfs-actions.pod:565
25498 #, no-wrap
25499 msgid ""
25500 " int\n"
25501 " guestfs_aug_rm (guestfs_h *g,\n"
25502 "                 const char *augpath);\n"
25503 "\n"
25504 msgstr ""
25505
25506 #. type: =head2
25507 #: ../src/guestfs-actions.pod:577
25508 msgid "guestfs_aug_save"
25509 msgstr ""
25510
25511 #. type: verbatim
25512 #: ../src/guestfs-actions.pod:579
25513 #, no-wrap
25514 msgid ""
25515 " int\n"
25516 " guestfs_aug_save (guestfs_h *g);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../src/guestfs-actions.pod:584
25522 msgid ""
25523 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25524 "are saved."
25525 msgstr ""
25526
25527 #. type: =head2
25528 #: ../src/guestfs-actions.pod:591
25529 msgid "guestfs_aug_set"
25530 msgstr ""
25531
25532 #. type: verbatim
25533 #: ../src/guestfs-actions.pod:593
25534 #, no-wrap
25535 msgid ""
25536 " int\n"
25537 " guestfs_aug_set (guestfs_h *g,\n"
25538 "                  const char *augpath,\n"
25539 "                  const char *val);\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../src/guestfs-actions.pod:600
25545 msgid ""
25546 "In the Augeas API, it is possible to clear a node by setting the value to "
25547 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25548 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25549 msgstr ""
25550
25551 #. type: =head2
25552 #: ../src/guestfs-actions.pod:609
25553 msgid "guestfs_available"
25554 msgstr ""
25555
25556 #. type: verbatim
25557 #: ../src/guestfs-actions.pod:611
25558 #, no-wrap
25559 msgid ""
25560 " int\n"
25561 " guestfs_available (guestfs_h *g,\n"
25562 "                    char *const *groups);\n"
25563 "\n"
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../src/guestfs-actions.pod:619
25568 msgid ""
25569 "The libguestfs groups, and the functions that those groups correspond to, "
25570 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25571 "runtime by calling C<guestfs_available_all_groups>."
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../src/guestfs-actions.pod:643
25576 msgid "You must call C<guestfs_launch> before calling this function."
25577 msgstr ""
25578
25579 #. type: textblock
25580 #: ../src/guestfs-actions.pod:665
25581 msgid ""
25582 "This call was added in version C<1.0.80>.  In previous versions of "
25583 "libguestfs all you could do would be to speculatively execute a command to "
25584 "find out if the daemon implemented it.  See also C<guestfs_version>."
25585 msgstr ""
25586
25587 #. type: textblock
25588 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25589 msgid "(Added in 1.0.80)"
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:676
25594 msgid "guestfs_available_all_groups"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:678
25599 #, no-wrap
25600 msgid ""
25601 " char **\n"
25602 " guestfs_available_all_groups (guestfs_h *g);\n"
25603 "\n"
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:681
25608 msgid ""
25609 "This command returns a list of all optional groups that this daemon knows "
25610 "about.  Note this returns both supported and unsupported groups.  To find "
25611 "out which ones the daemon can actually support you have to call "
25612 "C<guestfs_available> on each member of the returned list."
25613 msgstr ""
25614
25615 #. type: textblock
25616 #: ../src/guestfs-actions.pod:687
25617 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../src/guestfs-actions.pod:693
25622 msgid "(Added in 1.3.15)"
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:695
25627 msgid "guestfs_base64_in"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:697
25632 #, no-wrap
25633 msgid ""
25634 " int\n"
25635 " guestfs_base64_in (guestfs_h *g,\n"
25636 "                    const char *base64file,\n"
25637 "                    const char *filename);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: textblock
25642 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25643 msgid "(Added in 1.3.5)"
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:709
25648 msgid "guestfs_base64_out"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:711
25653 #, no-wrap
25654 msgid ""
25655 " int\n"
25656 " guestfs_base64_out (guestfs_h *g,\n"
25657 "                     const char *filename,\n"
25658 "                     const char *base64file);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../src/guestfs-actions.pod:723
25664 msgid "guestfs_blockdev_flushbufs"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:725
25669 #, no-wrap
25670 msgid ""
25671 " int\n"
25672 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25673 "                             const char *device);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: textblock
25678 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
25679 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
25680 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
25681 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
25682 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25683 msgid "(Added in 0.9.3)"
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../src/guestfs-actions.pod:738
25688 msgid "guestfs_blockdev_getbsz"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../src/guestfs-actions.pod:740
25693 #, no-wrap
25694 msgid ""
25695 " int\n"
25696 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25697 "                          const char *device);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: =head2
25702 #: ../src/guestfs-actions.pod:755
25703 msgid "guestfs_blockdev_getro"
25704 msgstr ""
25705
25706 #. type: verbatim
25707 #: ../src/guestfs-actions.pod:757
25708 #, no-wrap
25709 msgid ""
25710 " int\n"
25711 " guestfs_blockdev_getro (guestfs_h *g,\n"
25712 "                         const char *device);\n"
25713 "\n"
25714 msgstr ""
25715
25716 #. type: textblock
25717 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
25718 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
25719 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
25720 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
25721 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
25722 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
25723 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
25724 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
25725 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
25726 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
25727 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
25728 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
25729 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
25730 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
25731 #: ../src/guestfs-actions.pod:5784
25732 msgid "This function returns a C truth value on success or -1 on error."
25733 msgstr ""
25734
25735 #. type: =head2
25736 #: ../src/guestfs-actions.pod:770
25737 msgid "guestfs_blockdev_getsize64"
25738 msgstr ""
25739
25740 #. type: verbatim
25741 #: ../src/guestfs-actions.pod:772
25742 #, no-wrap
25743 msgid ""
25744 " int64_t\n"
25745 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25746 "                             const char *device);\n"
25747 "\n"
25748 msgstr ""
25749
25750 #. type: textblock
25751 #: ../src/guestfs-actions.pod:778
25752 msgid "See also C<guestfs_blockdev_getsz>."
25753 msgstr ""
25754
25755 #. type: =head2
25756 #: ../src/guestfs-actions.pod:786
25757 msgid "guestfs_blockdev_getss"
25758 msgstr ""
25759
25760 #. type: verbatim
25761 #: ../src/guestfs-actions.pod:788
25762 #, no-wrap
25763 msgid ""
25764 " int\n"
25765 " guestfs_blockdev_getss (guestfs_h *g,\n"
25766 "                         const char *device);\n"
25767 "\n"
25768 msgstr ""
25769
25770 #. type: textblock
25771 #: ../src/guestfs-actions.pod:795
25772 msgid ""
25773 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25774 "that)."
25775 msgstr ""
25776
25777 #. type: =head2
25778 #: ../src/guestfs-actions.pod:804
25779 msgid "guestfs_blockdev_getsz"
25780 msgstr ""
25781
25782 #. type: verbatim
25783 #: ../src/guestfs-actions.pod:806
25784 #, no-wrap
25785 msgid ""
25786 " int64_t\n"
25787 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25788 "                         const char *device);\n"
25789 "\n"
25790 msgstr ""
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:813
25794 msgid ""
25795 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25796 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25797 msgstr ""
25798
25799 #. type: =head2
25800 #: ../src/guestfs-actions.pod:823
25801 msgid "guestfs_blockdev_rereadpt"
25802 msgstr ""
25803
25804 #. type: verbatim
25805 #: ../src/guestfs-actions.pod:825
25806 #, no-wrap
25807 msgid ""
25808 " int\n"
25809 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25810 "                            const char *device);\n"
25811 "\n"
25812 msgstr ""
25813
25814 #. type: =head2
25815 #: ../src/guestfs-actions.pod:837
25816 msgid "guestfs_blockdev_setbsz"
25817 msgstr ""
25818
25819 #. type: verbatim
25820 #: ../src/guestfs-actions.pod:839
25821 #, no-wrap
25822 msgid ""
25823 " int\n"
25824 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25825 "                          const char *device,\n"
25826 "                          int blocksize);\n"
25827 "\n"
25828 msgstr ""
25829
25830 #. type: =head2
25831 #: ../src/guestfs-actions.pod:855
25832 msgid "guestfs_blockdev_setro"
25833 msgstr ""
25834
25835 #. type: verbatim
25836 #: ../src/guestfs-actions.pod:857
25837 #, no-wrap
25838 msgid ""
25839 " int\n"
25840 " guestfs_blockdev_setro (guestfs_h *g,\n"
25841 "                         const char *device);\n"
25842 "\n"
25843 msgstr ""
25844
25845 #. type: =head2
25846 #: ../src/guestfs-actions.pod:869
25847 msgid "guestfs_blockdev_setrw"
25848 msgstr ""
25849
25850 #. type: verbatim
25851 #: ../src/guestfs-actions.pod:871
25852 #, no-wrap
25853 msgid ""
25854 " int\n"
25855 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25856 "                         const char *device);\n"
25857 "\n"
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../src/guestfs-actions.pod:883
25862 msgid "guestfs_btrfs_filesystem_resize"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../src/guestfs-actions.pod:885
25867 #, no-wrap
25868 msgid ""
25869 " int\n"
25870 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25871 "                                  const char *mountpoint,\n"
25872 "                                  ...);\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: verbatim
25877 #: ../src/guestfs-actions.pod:895
25878 #, no-wrap
25879 msgid ""
25880 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25881 "\n"
25882 msgstr ""
25883
25884 #. type: textblock
25885 #: ../src/guestfs-actions.pod:918
25886 msgid "(Added in 1.11.17)"
25887 msgstr ""
25888
25889 #. type: =head2
25890 #: ../src/guestfs-actions.pod:920
25891 msgid "guestfs_btrfs_filesystem_resize_va"
25892 msgstr ""
25893
25894 #. type: verbatim
25895 #: ../src/guestfs-actions.pod:922
25896 #, no-wrap
25897 msgid ""
25898 " int\n"
25899 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25900 "                                     const char *mountpoint,\n"
25901 "                                     va_list args);\n"
25902 "\n"
25903 msgstr ""
25904
25905 #. type: textblock
25906 #: ../src/guestfs-actions.pod:927
25907 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25908 msgstr ""
25909
25910 #. type: =head2
25911 #: ../src/guestfs-actions.pod:931
25912 msgid "guestfs_btrfs_filesystem_resize_argv"
25913 msgstr ""
25914
25915 #. type: verbatim
25916 #: ../src/guestfs-actions.pod:933
25917 #, no-wrap
25918 msgid ""
25919 " int\n"
25920 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25921 "                                       const char *mountpoint,\n"
25922 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25923 "\n"
25924 msgstr ""
25925
25926 #. type: textblock
25927 #: ../src/guestfs-actions.pod:938
25928 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25929 msgstr ""
25930
25931 #. type: =head2
25932 #: ../src/guestfs-actions.pod:942
25933 msgid "guestfs_case_sensitive_path"
25934 msgstr ""
25935
25936 #. type: verbatim
25937 #: ../src/guestfs-actions.pod:944
25938 #, no-wrap
25939 msgid ""
25940 " char *\n"
25941 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25942 "                              const char *path);\n"
25943 "\n"
25944 msgstr ""
25945
25946 #. type: textblock
25947 #: ../src/guestfs-actions.pod:970
25948 msgid ""
25949 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25950 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25951 "how the directories were originally created under Windows)."
25952 msgstr ""
25953
25954 #. type: textblock
25955 #: ../src/guestfs-actions.pod:978
25956 msgid "See also C<guestfs_realpath>."
25957 msgstr ""
25958
25959 #. type: textblock
25960 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
25961 msgid "(Added in 1.0.75)"
25962 msgstr ""
25963
25964 #. type: =head2
25965 #: ../src/guestfs-actions.pod:985
25966 msgid "guestfs_cat"
25967 msgstr ""
25968
25969 #. type: verbatim
25970 #: ../src/guestfs-actions.pod:987
25971 #, no-wrap
25972 msgid ""
25973 " char *\n"
25974 " guestfs_cat (guestfs_h *g,\n"
25975 "              const char *path);\n"
25976 "\n"
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:993
25981 msgid ""
25982 "Note that this function cannot correctly handle binary files (specifically, "
25983 "files containing C<\\0> character which is treated as end of string).  For "
25984 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25985 "functions which have a more complex interface."
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
25990 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
25991 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
25992 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
25993 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
25994 #: ../src/guestfs-actions.pod:8023
25995 msgid "(Added in 0.4)"
25996 msgstr ""
25997
25998 #. type: =head2
25999 #: ../src/guestfs-actions.pod:1006
26000 msgid "guestfs_checksum"
26001 msgstr ""
26002
26003 #. type: verbatim
26004 #: ../src/guestfs-actions.pod:1008
26005 #, no-wrap
26006 msgid ""
26007 " char *\n"
26008 " guestfs_checksum (guestfs_h *g,\n"
26009 "                   const char *csumtype,\n"
26010 "                   const char *path);\n"
26011 "\n"
26012 msgstr ""
26013
26014 #. type: textblock
26015 #: ../src/guestfs-actions.pod:1054
26016 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26017 msgstr ""
26018
26019 #. type: textblock
26020 #: ../src/guestfs-actions.pod:1056
26021 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26022 msgstr ""
26023
26024 #. type: textblock
26025 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
26026 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
26027 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
26028 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
26029 msgid "(Added in 1.0.2)"
26030 msgstr ""
26031
26032 #. type: =head2
26033 #: ../src/guestfs-actions.pod:1063
26034 msgid "guestfs_checksum_device"
26035 msgstr ""
26036
26037 #. type: verbatim
26038 #: ../src/guestfs-actions.pod:1065
26039 #, no-wrap
26040 msgid ""
26041 " char *\n"
26042 " guestfs_checksum_device (guestfs_h *g,\n"
26043 "                          const char *csumtype,\n"
26044 "                          const char *device);\n"
26045 "\n"
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:1070
26050 msgid ""
26051 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26052 "device named C<device>.  For the types of checksums supported see the "
26053 "C<guestfs_checksum> command."
26054 msgstr ""
26055
26056 #. type: textblock
26057 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
26058 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
26059 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
26060 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
26061 #: ../src/guestfs-actions.pod:8035
26062 msgid "(Added in 1.3.2)"
26063 msgstr ""
26064
26065 #. type: =head2
26066 #: ../src/guestfs-actions.pod:1079
26067 msgid "guestfs_checksums_out"
26068 msgstr ""
26069
26070 #. type: verbatim
26071 #: ../src/guestfs-actions.pod:1081
26072 #, no-wrap
26073 msgid ""
26074 " int\n"
26075 " guestfs_checksums_out (guestfs_h *g,\n"
26076 "                        const char *csumtype,\n"
26077 "                        const char *directory,\n"
26078 "                        const char *sumsfile);\n"
26079 "\n"
26080 msgstr ""
26081
26082 #. type: textblock
26083 #: ../src/guestfs-actions.pod:1101
26084 msgid "(Added in 1.3.7)"
26085 msgstr ""
26086
26087 #. type: =head2
26088 #: ../src/guestfs-actions.pod:1103
26089 msgid "guestfs_chmod"
26090 msgstr ""
26091
26092 #. type: verbatim
26093 #: ../src/guestfs-actions.pod:1105
26094 #, no-wrap
26095 msgid ""
26096 " int\n"
26097 " guestfs_chmod (guestfs_h *g,\n"
26098 "                int mode,\n"
26099 "                const char *path);\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: =head2
26104 #: ../src/guestfs-actions.pod:1123
26105 msgid "guestfs_chown"
26106 msgstr ""
26107
26108 #. type: verbatim
26109 #: ../src/guestfs-actions.pod:1125
26110 #, no-wrap
26111 msgid ""
26112 " int\n"
26113 " guestfs_chown (guestfs_h *g,\n"
26114 "                int owner,\n"
26115 "                int group,\n"
26116 "                const char *path);\n"
26117 "\n"
26118 msgstr ""
26119
26120 #. type: =head2
26121 #: ../src/guestfs-actions.pod:1141
26122 msgid "guestfs_command"
26123 msgstr ""
26124
26125 #. type: verbatim
26126 #: ../src/guestfs-actions.pod:1143
26127 #, no-wrap
26128 msgid ""
26129 " char *\n"
26130 " guestfs_command (guestfs_h *g,\n"
26131 "                  char *const *arguments);\n"
26132 "\n"
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:1152
26137 msgid ""
26138 "The single parameter is an argv-style list of arguments.  The first element "
26139 "is the name of the program to run.  Subsequent elements are parameters.  The "
26140 "list must be non-empty (ie. must contain a program name).  Note that the "
26141 "command runs directly, and is I<not> invoked via the shell (see "
26142 "C<guestfs_sh>)."
26143 msgstr ""
26144
26145 #. type: textblock
26146 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26147 #: ../src/guestfs-actions.pod:2027
26148 msgid "(Added in 0.9.1)"
26149 msgstr ""
26150
26151 #. type: =head2
26152 #: ../src/guestfs-actions.pod:1185
26153 msgid "guestfs_command_lines"
26154 msgstr ""
26155
26156 #. type: verbatim
26157 #: ../src/guestfs-actions.pod:1187
26158 #, no-wrap
26159 msgid ""
26160 " char **\n"
26161 " guestfs_command_lines (guestfs_h *g,\n"
26162 "                        char *const *arguments);\n"
26163 "\n"
26164 msgstr ""
26165
26166 #. type: textblock
26167 #: ../src/guestfs-actions.pod:1191
26168 msgid ""
26169 "This is the same as C<guestfs_command>, but splits the result into a list of "
26170 "lines."
26171 msgstr ""
26172
26173 #. type: textblock
26174 #: ../src/guestfs-actions.pod:1194
26175 msgid "See also: C<guestfs_sh_lines>"
26176 msgstr ""
26177
26178 #. type: =head2
26179 #: ../src/guestfs-actions.pod:1205
26180 msgid "guestfs_compress_device_out"
26181 msgstr ""
26182
26183 #. type: verbatim
26184 #: ../src/guestfs-actions.pod:1207
26185 #, no-wrap
26186 msgid ""
26187 " int\n"
26188 " guestfs_compress_device_out (guestfs_h *g,\n"
26189 "                              const char *ctype,\n"
26190 "                              const char *device,\n"
26191 "                              const char *zdevice,\n"
26192 "                              ...);\n"
26193 "\n"
26194 msgstr ""
26195
26196 #. type: verbatim
26197 #: ../src/guestfs-actions.pod:1219
26198 #, no-wrap
26199 msgid ""
26200 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26201 "\n"
26202 msgstr ""
26203
26204 #. type: textblock
26205 #: ../src/guestfs-actions.pod:1224
26206 msgid ""
26207 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26208 "C<guestfs_compress_out>."
26209 msgstr ""
26210
26211 #. type: textblock
26212 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26213 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26214 msgid "(Added in 1.13.15)"
26215 msgstr ""
26216
26217 #. type: =head2
26218 #: ../src/guestfs-actions.pod:1231
26219 msgid "guestfs_compress_device_out_va"
26220 msgstr ""
26221
26222 #. type: verbatim
26223 #: ../src/guestfs-actions.pod:1233
26224 #, no-wrap
26225 msgid ""
26226 " int\n"
26227 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26228 "                                 const char *ctype,\n"
26229 "                                 const char *device,\n"
26230 "                                 const char *zdevice,\n"
26231 "                                 va_list args);\n"
26232 "\n"
26233 msgstr ""
26234
26235 #. type: textblock
26236 #: ../src/guestfs-actions.pod:1240
26237 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26238 msgstr ""
26239
26240 #. type: =head2
26241 #: ../src/guestfs-actions.pod:1244
26242 msgid "guestfs_compress_device_out_argv"
26243 msgstr ""
26244
26245 #. type: verbatim
26246 #: ../src/guestfs-actions.pod:1246
26247 #, no-wrap
26248 msgid ""
26249 " int\n"
26250 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26251 "                                   const char *ctype,\n"
26252 "                                   const char *device,\n"
26253 "                                   const char *zdevice,\n"
26254 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26255 "\n"
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:1253
26260 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26261 msgstr ""
26262
26263 #. type: =head2
26264 #: ../src/guestfs-actions.pod:1257
26265 msgid "guestfs_compress_out"
26266 msgstr ""
26267
26268 #. type: verbatim
26269 #: ../src/guestfs-actions.pod:1259
26270 #, no-wrap
26271 msgid ""
26272 " int\n"
26273 " guestfs_compress_out (guestfs_h *g,\n"
26274 "                       const char *ctype,\n"
26275 "                       const char *file,\n"
26276 "                       const char *zfile,\n"
26277 "                       ...);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../src/guestfs-actions.pod:1271
26283 #, no-wrap
26284 msgid ""
26285 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26286 "\n"
26287 msgstr ""
26288
26289 #. type: =head2
26290 #: ../src/guestfs-actions.pod:1290
26291 msgid "guestfs_compress_out_va"
26292 msgstr ""
26293
26294 #. type: verbatim
26295 #: ../src/guestfs-actions.pod:1292
26296 #, no-wrap
26297 msgid ""
26298 " int\n"
26299 " guestfs_compress_out_va (guestfs_h *g,\n"
26300 "                          const char *ctype,\n"
26301 "                          const char *file,\n"
26302 "                          const char *zfile,\n"
26303 "                          va_list args);\n"
26304 "\n"
26305 msgstr ""
26306
26307 #. type: textblock
26308 #: ../src/guestfs-actions.pod:1299
26309 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26310 msgstr ""
26311
26312 #. type: =head2
26313 #: ../src/guestfs-actions.pod:1303
26314 msgid "guestfs_compress_out_argv"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:1305
26319 #, no-wrap
26320 msgid ""
26321 " int\n"
26322 " guestfs_compress_out_argv (guestfs_h *g,\n"
26323 "                            const char *ctype,\n"
26324 "                            const char *file,\n"
26325 "                            const char *zfile,\n"
26326 "                            const struct guestfs_compress_out_argv *optargs);\n"
26327 "\n"
26328 msgstr ""
26329
26330 #. type: textblock
26331 #: ../src/guestfs-actions.pod:1312
26332 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26333 msgstr ""
26334
26335 #. type: =head2
26336 #: ../src/guestfs-actions.pod:1316
26337 msgid "guestfs_config"
26338 msgstr ""
26339
26340 #. type: verbatim
26341 #: ../src/guestfs-actions.pod:1318
26342 #, no-wrap
26343 msgid ""
26344 " int\n"
26345 " guestfs_config (guestfs_h *g,\n"
26346 "                 const char *qemuparam,\n"
26347 "                 const char *qemuvalue);\n"
26348 "\n"
26349 msgstr ""
26350
26351 #. type: =head2
26352 #: ../src/guestfs-actions.pod:1336
26353 msgid "guestfs_copy_device_to_device"
26354 msgstr ""
26355
26356 #. type: verbatim
26357 #: ../src/guestfs-actions.pod:1338
26358 #, no-wrap
26359 msgid ""
26360 " int\n"
26361 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26362 "                                const char *src,\n"
26363 "                                const char *dest,\n"
26364 "                                ...);\n"
26365 "\n"
26366 msgstr ""
26367
26368 #. type: verbatim
26369 #: ../src/guestfs-actions.pod:1349
26370 #, no-wrap
26371 msgid ""
26372 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26373 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26374 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26375 "\n"
26376 msgstr ""
26377
26378 #. type: textblock
26379 #: ../src/guestfs-actions.pod:1353
26380 msgid ""
26381 "The four calls C<guestfs_copy_device_to_device>, "
26382 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26383 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26384 "destination (device|file)."
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
26389 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
26390 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
26391 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
26392 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
26393 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
26394 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
26395 #: ../src/guestfs-actions.pod:8271
26396 msgid ""
26397 "This long-running command can generate progress notification messages so "
26398 "that the caller can display a progress bar or indicator.  To receive these "
26399 "messages, the caller must register a progress event callback.  See L<guestfs"
26400 "(3)/GUESTFS_EVENT_PROGRESS>."
26401 msgstr ""
26402
26403 #. type: textblock
26404 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
26405 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
26406 #: ../src/guestfs-actions.pod:6042
26407 msgid "(Added in 1.13.25)"
26408 msgstr ""
26409
26410 #. type: =head2
26411 #: ../src/guestfs-actions.pod:1381
26412 msgid "guestfs_copy_device_to_device_va"
26413 msgstr ""
26414
26415 #. type: verbatim
26416 #: ../src/guestfs-actions.pod:1383
26417 #, no-wrap
26418 msgid ""
26419 " int\n"
26420 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26421 "                                   const char *src,\n"
26422 "                                   const char *dest,\n"
26423 "                                   va_list args);\n"
26424 "\n"
26425 msgstr ""
26426
26427 #. type: textblock
26428 #: ../src/guestfs-actions.pod:1389
26429 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26430 msgstr ""
26431
26432 #. type: =head2
26433 #: ../src/guestfs-actions.pod:1393
26434 msgid "guestfs_copy_device_to_device_argv"
26435 msgstr ""
26436
26437 #. type: verbatim
26438 #: ../src/guestfs-actions.pod:1395
26439 #, no-wrap
26440 msgid ""
26441 " int\n"
26442 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26443 "                                     const char *src,\n"
26444 "                                     const char *dest,\n"
26445 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26446 "\n"
26447 msgstr ""
26448
26449 #. type: textblock
26450 #: ../src/guestfs-actions.pod:1401
26451 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26452 msgstr ""
26453
26454 #. type: =head2
26455 #: ../src/guestfs-actions.pod:1405
26456 msgid "guestfs_copy_device_to_file"
26457 msgstr ""
26458
26459 #. type: verbatim
26460 #: ../src/guestfs-actions.pod:1407
26461 #, no-wrap
26462 msgid ""
26463 " int\n"
26464 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26465 "                              const char *src,\n"
26466 "                              const char *dest,\n"
26467 "                              ...);\n"
26468 "\n"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:1418
26473 #, no-wrap
26474 msgid ""
26475 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26476 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26477 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26478 "\n"
26479 msgstr ""
26480
26481 #. type: textblock
26482 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
26483 #: ../src/guestfs-actions.pod:1528
26484 msgid ""
26485 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26486 msgstr ""
26487
26488 #. type: =head2
26489 #: ../src/guestfs-actions.pod:1434
26490 msgid "guestfs_copy_device_to_file_va"
26491 msgstr ""
26492
26493 #. type: verbatim
26494 #: ../src/guestfs-actions.pod:1436
26495 #, no-wrap
26496 msgid ""
26497 " int\n"
26498 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26499 "                                 const char *src,\n"
26500 "                                 const char *dest,\n"
26501 "                                 va_list args);\n"
26502 "\n"
26503 msgstr ""
26504
26505 #. type: textblock
26506 #: ../src/guestfs-actions.pod:1442
26507 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26508 msgstr ""
26509
26510 #. type: =head2
26511 #: ../src/guestfs-actions.pod:1446
26512 msgid "guestfs_copy_device_to_file_argv"
26513 msgstr ""
26514
26515 #. type: verbatim
26516 #: ../src/guestfs-actions.pod:1448
26517 #, no-wrap
26518 msgid ""
26519 " int\n"
26520 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26521 "                                   const char *src,\n"
26522 "                                   const char *dest,\n"
26523 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26524 "\n"
26525 msgstr ""
26526
26527 #. type: textblock
26528 #: ../src/guestfs-actions.pod:1454
26529 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26530 msgstr ""
26531
26532 #. type: =head2
26533 #: ../src/guestfs-actions.pod:1458
26534 msgid "guestfs_copy_file_to_device"
26535 msgstr ""
26536
26537 #. type: verbatim
26538 #: ../src/guestfs-actions.pod:1460
26539 #, no-wrap
26540 msgid ""
26541 " int\n"
26542 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26543 "                              const char *src,\n"
26544 "                              const char *dest,\n"
26545 "                              ...);\n"
26546 "\n"
26547 msgstr ""
26548
26549 #. type: verbatim
26550 #: ../src/guestfs-actions.pod:1471
26551 #, no-wrap
26552 msgid ""
26553 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26554 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26555 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:1487
26561 msgid "guestfs_copy_file_to_device_va"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:1489
26566 #, no-wrap
26567 msgid ""
26568 " int\n"
26569 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26570 "                                 const char *src,\n"
26571 "                                 const char *dest,\n"
26572 "                                 va_list args);\n"
26573 "\n"
26574 msgstr ""
26575
26576 #. type: textblock
26577 #: ../src/guestfs-actions.pod:1495
26578 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:1499
26583 msgid "guestfs_copy_file_to_device_argv"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:1501
26588 #, no-wrap
26589 msgid ""
26590 " int\n"
26591 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26592 "                                   const char *src,\n"
26593 "                                   const char *dest,\n"
26594 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: textblock
26599 #: ../src/guestfs-actions.pod:1507
26600 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26601 msgstr ""
26602
26603 #. type: =head2
26604 #: ../src/guestfs-actions.pod:1511
26605 msgid "guestfs_copy_file_to_file"
26606 msgstr ""
26607
26608 #. type: verbatim
26609 #: ../src/guestfs-actions.pod:1513
26610 #, no-wrap
26611 msgid ""
26612 " int\n"
26613 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26614 "                            const char *src,\n"
26615 "                            const char *dest,\n"
26616 "                            ...);\n"
26617 "\n"
26618 msgstr ""
26619
26620 #. type: verbatim
26621 #: ../src/guestfs-actions.pod:1524
26622 #, no-wrap
26623 msgid ""
26624 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26625 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26626 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26627 "\n"
26628 msgstr ""
26629
26630 #. type: textblock
26631 #: ../src/guestfs-actions.pod:1531
26632 msgid ""
26633 "This is B<not> the function you want for copying files.  This is for copying "
26634 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26635 "C<guestfs_mv> for general file copying and moving functions."
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../src/guestfs-actions.pod:1545
26640 msgid "guestfs_copy_file_to_file_va"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../src/guestfs-actions.pod:1547
26645 #, no-wrap
26646 msgid ""
26647 " int\n"
26648 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26649 "                               const char *src,\n"
26650 "                               const char *dest,\n"
26651 "                               va_list args);\n"
26652 "\n"
26653 msgstr ""
26654
26655 #. type: textblock
26656 #: ../src/guestfs-actions.pod:1553
26657 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26658 msgstr ""
26659
26660 #. type: =head2
26661 #: ../src/guestfs-actions.pod:1557
26662 msgid "guestfs_copy_file_to_file_argv"
26663 msgstr ""
26664
26665 #. type: verbatim
26666 #: ../src/guestfs-actions.pod:1559
26667 #, no-wrap
26668 msgid ""
26669 " int\n"
26670 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26671 "                                 const char *src,\n"
26672 "                                 const char *dest,\n"
26673 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
26674 "\n"
26675 msgstr ""
26676
26677 #. type: textblock
26678 #: ../src/guestfs-actions.pod:1565
26679 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26680 msgstr ""
26681
26682 #. type: =head2
26683 #: ../src/guestfs-actions.pod:1569
26684 msgid "guestfs_copy_size"
26685 msgstr ""
26686
26687 #. type: verbatim
26688 #: ../src/guestfs-actions.pod:1571
26689 #, no-wrap
26690 msgid ""
26691 " int\n"
26692 " guestfs_copy_size (guestfs_h *g,\n"
26693 "                    const char *src,\n"
26694 "                    const char *dest,\n"
26695 "                    int64_t size);\n"
26696 "\n"
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26701 msgid ""
26702 "I<This function is deprecated.> In new code, use the L</"
26703 "guestfs_copy_device_to_device> call instead."
26704 msgstr ""
26705
26706 #. type: textblock
26707 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
26708 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
26709 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
26710 msgid "(Added in 1.0.87)"
26711 msgstr ""
26712
26713 #. type: =head2
26714 #: ../src/guestfs-actions.pod:1599
26715 msgid "guestfs_cp"
26716 msgstr ""
26717
26718 #. type: verbatim
26719 #: ../src/guestfs-actions.pod:1601
26720 #, no-wrap
26721 msgid ""
26722 " int\n"
26723 " guestfs_cp (guestfs_h *g,\n"
26724 "             const char *src,\n"
26725 "             const char *dest);\n"
26726 "\n"
26727 msgstr ""
26728
26729 #. type: textblock
26730 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
26731 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
26732 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
26733 #: ../src/guestfs-actions.pod:6056
26734 msgid "(Added in 1.0.18)"
26735 msgstr ""
26736
26737 #. type: =head2
26738 #: ../src/guestfs-actions.pod:1613
26739 msgid "guestfs_cp_a"
26740 msgstr ""
26741
26742 #. type: verbatim
26743 #: ../src/guestfs-actions.pod:1615
26744 #, no-wrap
26745 msgid ""
26746 " int\n"
26747 " guestfs_cp_a (guestfs_h *g,\n"
26748 "               const char *src,\n"
26749 "               const char *dest);\n"
26750 "\n"
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:1627
26755 msgid "guestfs_dd"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:1629
26760 #, no-wrap
26761 msgid ""
26762 " int\n"
26763 " guestfs_dd (guestfs_h *g,\n"
26764 "             const char *src,\n"
26765 "             const char *dest);\n"
26766 "\n"
26767 msgstr ""
26768
26769 #. type: textblock
26770 #: ../src/guestfs-actions.pod:1646
26771 msgid ""
26772 "If the destination is a device, it must be as large or larger than the "
26773 "source file or device, otherwise the copy will fail.  This command cannot do "
26774 "partial copies (see C<guestfs_copy_device_to_device>)."
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:1655
26779 msgid "guestfs_df"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:1657
26784 #, no-wrap
26785 msgid ""
26786 " char *\n"
26787 " guestfs_df (guestfs_h *g);\n"
26788 "\n"
26789 msgstr ""
26790
26791 #. type: textblock
26792 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26793 msgid ""
26794 "This command is mostly useful for interactive sessions.  It is I<not> "
26795 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26796 "from programs."
26797 msgstr ""
26798
26799 #. type: textblock
26800 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
26801 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
26802 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
26803 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
26804 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
26805 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
26806 #: ../src/guestfs-actions.pod:8114
26807 msgid "(Added in 1.0.54)"
26808 msgstr ""
26809
26810 #. type: =head2
26811 #: ../src/guestfs-actions.pod:1671
26812 msgid "guestfs_df_h"
26813 msgstr ""
26814
26815 #. type: verbatim
26816 #: ../src/guestfs-actions.pod:1673
26817 #, no-wrap
26818 msgid ""
26819 " char *\n"
26820 " guestfs_df_h (guestfs_h *g);\n"
26821 "\n"
26822 msgstr ""
26823
26824 #. type: =head2
26825 #: ../src/guestfs-actions.pod:1688
26826 msgid "guestfs_dmesg"
26827 msgstr ""
26828
26829 #. type: verbatim
26830 #: ../src/guestfs-actions.pod:1690
26831 #, no-wrap
26832 msgid ""
26833 " char *\n"
26834 " guestfs_dmesg (guestfs_h *g);\n"
26835 "\n"
26836 msgstr ""
26837
26838 #. type: textblock
26839 #: ../src/guestfs-actions.pod:1697
26840 msgid ""
26841 "Another way to get the same information is to enable verbose messages with "
26842 "C<guestfs_set_verbose> or by setting the environment variable "
26843 "C<LIBGUESTFS_DEBUG=1> before running the program."
26844 msgstr ""
26845
26846 #. type: =head2
26847 #: ../src/guestfs-actions.pod:1707
26848 msgid "guestfs_download"
26849 msgstr ""
26850
26851 #. type: verbatim
26852 #: ../src/guestfs-actions.pod:1709
26853 #, no-wrap
26854 msgid ""
26855 " int\n"
26856 " guestfs_download (guestfs_h *g,\n"
26857 "                   const char *remotefilename,\n"
26858 "                   const char *filename);\n"
26859 "\n"
26860 msgstr ""
26861
26862 #. type: textblock
26863 #: ../src/guestfs-actions.pod:1719
26864 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:1730
26869 msgid "guestfs_download_offset"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:1732
26874 #, no-wrap
26875 msgid ""
26876 " int\n"
26877 " guestfs_download_offset (guestfs_h *g,\n"
26878 "                          const char *remotefilename,\n"
26879 "                          const char *filename,\n"
26880 "                          int64_t offset,\n"
26881 "                          int64_t size);\n"
26882 "\n"
26883 msgstr ""
26884
26885 #. type: textblock
26886 #: ../src/guestfs-actions.pod:1745
26887 msgid ""
26888 "Note that there is no limit on the amount of data that can be downloaded "
26889 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26890 "full amount unless an error occurs."
26891 msgstr ""
26892
26893 #. type: textblock
26894 #: ../src/guestfs-actions.pod:1750
26895 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26896 msgstr ""
26897
26898 #. type: textblock
26899 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
26900 msgid "(Added in 1.5.17)"
26901 msgstr ""
26902
26903 #. type: =head2
26904 #: ../src/guestfs-actions.pod:1761
26905 msgid "guestfs_drop_caches"
26906 msgstr ""
26907
26908 #. type: verbatim
26909 #: ../src/guestfs-actions.pod:1763
26910 #, no-wrap
26911 msgid ""
26912 " int\n"
26913 " guestfs_drop_caches (guestfs_h *g,\n"
26914 "                      int whattodrop);\n"
26915 "\n"
26916 msgstr ""
26917
26918 #. type: =head2
26919 #: ../src/guestfs-actions.pod:1781
26920 msgid "guestfs_du"
26921 msgstr ""
26922
26923 #. type: verbatim
26924 #: ../src/guestfs-actions.pod:1783
26925 #, no-wrap
26926 msgid ""
26927 " int64_t\n"
26928 " guestfs_du (guestfs_h *g,\n"
26929 "             const char *path);\n"
26930 "\n"
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../src/guestfs-actions.pod:1806
26935 msgid "guestfs_e2fsck_f"
26936 msgstr ""
26937
26938 #. type: verbatim
26939 #: ../src/guestfs-actions.pod:1808
26940 #, no-wrap
26941 msgid ""
26942 " int\n"
26943 " guestfs_e2fsck_f (guestfs_h *g,\n"
26944 "                   const char *device);\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: textblock
26949 #: ../src/guestfs-actions.pod:1816
26950 msgid ""
26951 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26952 "Normally you should use C<guestfs_fsck>."
26953 msgstr ""
26954
26955 #. type: textblock
26956 #: ../src/guestfs-actions.pod:1821
26957 msgid "(Added in 1.0.29)"
26958 msgstr ""
26959
26960 #. type: =head2
26961 #: ../src/guestfs-actions.pod:1823
26962 msgid "guestfs_echo_daemon"
26963 msgstr ""
26964
26965 #. type: verbatim
26966 #: ../src/guestfs-actions.pod:1825
26967 #, no-wrap
26968 msgid ""
26969 " char *\n"
26970 " guestfs_echo_daemon (guestfs_h *g,\n"
26971 "                      char *const *words);\n"
26972 "\n"
26973 msgstr ""
26974
26975 #. type: textblock
26976 #: ../src/guestfs-actions.pod:1834
26977 msgid "See also C<guestfs_ping_daemon>."
26978 msgstr ""
26979
26980 #. type: textblock
26981 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
26982 #: ../src/guestfs-actions.pod:6926
26983 msgid "(Added in 1.0.69)"
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../src/guestfs-actions.pod:1841
26988 msgid "guestfs_egrep"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../src/guestfs-actions.pod:1843
26993 #, no-wrap
26994 msgid ""
26995 " char **\n"
26996 " guestfs_egrep (guestfs_h *g,\n"
26997 "                const char *regex,\n"
26998 "                const char *path);\n"
26999 "\n"
27000 msgstr ""
27001
27002 #. type: textblock
27003 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
27004 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
27005 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
27006 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
27007 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
27008 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
27009 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
27010 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
27011 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
27012 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
27013 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
27014 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
27015 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
27016 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
27017 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
27018 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
27019 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
27020 msgid "(Added in 1.0.66)"
27021 msgstr ""
27022
27023 #. type: =head2
27024 #: ../src/guestfs-actions.pod:1860
27025 msgid "guestfs_egrepi"
27026 msgstr ""
27027
27028 #. type: verbatim
27029 #: ../src/guestfs-actions.pod:1862
27030 #, no-wrap
27031 msgid ""
27032 " char **\n"
27033 " guestfs_egrepi (guestfs_h *g,\n"
27034 "                 const char *regex,\n"
27035 "                 const char *path);\n"
27036 "\n"
27037 msgstr ""
27038
27039 #. type: =head2
27040 #: ../src/guestfs-actions.pod:1879
27041 msgid "guestfs_equal"
27042 msgstr ""
27043
27044 #. type: verbatim
27045 #: ../src/guestfs-actions.pod:1881
27046 #, no-wrap
27047 msgid ""
27048 " int\n"
27049 " guestfs_equal (guestfs_h *g,\n"
27050 "                const char *file1,\n"
27051 "                const char *file2);\n"
27052 "\n"
27053 msgstr ""
27054
27055 #. type: =head2
27056 #: ../src/guestfs-actions.pod:1895
27057 msgid "guestfs_exists"
27058 msgstr ""
27059
27060 #. type: verbatim
27061 #: ../src/guestfs-actions.pod:1897
27062 #, no-wrap
27063 msgid ""
27064 " int\n"
27065 " guestfs_exists (guestfs_h *g,\n"
27066 "                 const char *path);\n"
27067 "\n"
27068 msgstr ""
27069
27070 #. type: textblock
27071 #: ../src/guestfs-actions.pod:1904
27072 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27073 msgstr ""
27074
27075 #. type: =head2
27076 #: ../src/guestfs-actions.pod:1910
27077 msgid "guestfs_fallocate"
27078 msgstr ""
27079
27080 #. type: verbatim
27081 #: ../src/guestfs-actions.pod:1912
27082 #, no-wrap
27083 msgid ""
27084 " int\n"
27085 " guestfs_fallocate (guestfs_h *g,\n"
27086 "                    const char *path,\n"
27087 "                    int len);\n"
27088 "\n"
27089 msgstr ""
27090
27091 #. type: textblock
27092 #: ../src/guestfs-actions.pod:1917
27093 msgid ""
27094 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27095 "call instead."
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:1936
27100 msgid "guestfs_fallocate64"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:1938
27105 #, no-wrap
27106 msgid ""
27107 " int\n"
27108 " guestfs_fallocate64 (guestfs_h *g,\n"
27109 "                      const char *path,\n"
27110 "                      int64_t len);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:1947
27116 msgid ""
27117 "Note that this call allocates disk blocks for the file.  To create a sparse "
27118 "file use C<guestfs_truncate_size> instead."
27119 msgstr ""
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:1950
27123 msgid ""
27124 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27125 "oversight it only allowed 30 bit lengths to be specified, effectively "
27126 "limiting the maximum size of files created through that call to 1GB."
27127 msgstr ""
27128
27129 #. type: textblock
27130 #: ../src/guestfs-actions.pod:1961
27131 msgid "(Added in 1.3.17)"
27132 msgstr ""
27133
27134 #. type: =head2
27135 #: ../src/guestfs-actions.pod:1963
27136 msgid "guestfs_fgrep"
27137 msgstr ""
27138
27139 #. type: verbatim
27140 #: ../src/guestfs-actions.pod:1965
27141 #, no-wrap
27142 msgid ""
27143 " char **\n"
27144 " guestfs_fgrep (guestfs_h *g,\n"
27145 "                const char *pattern,\n"
27146 "                const char *path);\n"
27147 "\n"
27148 msgstr ""
27149
27150 #. type: =head2
27151 #: ../src/guestfs-actions.pod:1982
27152 msgid "guestfs_fgrepi"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../src/guestfs-actions.pod:1984
27157 #, no-wrap
27158 msgid ""
27159 " char **\n"
27160 " guestfs_fgrepi (guestfs_h *g,\n"
27161 "                 const char *pattern,\n"
27162 "                 const char *path);\n"
27163 "\n"
27164 msgstr ""
27165
27166 #. type: =head2
27167 #: ../src/guestfs-actions.pod:2001
27168 msgid "guestfs_file"
27169 msgstr ""
27170
27171 #. type: verbatim
27172 #: ../src/guestfs-actions.pod:2003
27173 #, no-wrap
27174 msgid ""
27175 " char *\n"
27176 " guestfs_file (guestfs_h *g,\n"
27177 "               const char *path);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:2021
27183 msgid ""
27184 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27185 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27186 msgstr ""
27187
27188 #. type: =head2
27189 #: ../src/guestfs-actions.pod:2029
27190 msgid "guestfs_file_architecture"
27191 msgstr ""
27192
27193 #. type: verbatim
27194 #: ../src/guestfs-actions.pod:2031
27195 #, no-wrap
27196 msgid ""
27197 " char *\n"
27198 " guestfs_file_architecture (guestfs_h *g,\n"
27199 "                            const char *filename);\n"
27200 "\n"
27201 msgstr ""
27202
27203 #. type: textblock
27204 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27205 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27206 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27207 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27208 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27209 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27210 #: ../src/guestfs-actions.pod:4008
27211 msgid "(Added in 1.5.3)"
27212 msgstr ""
27213
27214 #. type: =head2
27215 #: ../src/guestfs-actions.pod:2141
27216 msgid "guestfs_filesize"
27217 msgstr ""
27218
27219 #. type: verbatim
27220 #: ../src/guestfs-actions.pod:2143
27221 #, no-wrap
27222 msgid ""
27223 " int64_t\n"
27224 " guestfs_filesize (guestfs_h *g,\n"
27225 "                   const char *file);\n"
27226 "\n"
27227 msgstr ""
27228
27229 #. type: textblock
27230 #: ../src/guestfs-actions.pod:2149
27231 msgid ""
27232 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27233 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27234 "devices, use C<guestfs_blockdev_getsize64>."
27235 msgstr ""
27236
27237 #. type: textblock
27238 #: ../src/guestfs-actions.pod:2155
27239 msgid "(Added in 1.0.82)"
27240 msgstr ""
27241
27242 #. type: =head2
27243 #: ../src/guestfs-actions.pod:2157
27244 msgid "guestfs_fill"
27245 msgstr ""
27246
27247 #. type: verbatim
27248 #: ../src/guestfs-actions.pod:2159
27249 #, no-wrap
27250 msgid ""
27251 " int\n"
27252 " guestfs_fill (guestfs_h *g,\n"
27253 "               int c,\n"
27254 "               int len,\n"
27255 "               const char *path);\n"
27256 "\n"
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../src/guestfs-actions.pod:2169
27261 msgid ""
27262 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27263 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27264 "bytes use C<guestfs_fill_pattern>."
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../src/guestfs-actions.pod:2181
27269 msgid "(Added in 1.0.79)"
27270 msgstr ""
27271
27272 #. type: =head2
27273 #: ../src/guestfs-actions.pod:2183
27274 msgid "guestfs_fill_pattern"
27275 msgstr ""
27276
27277 #. type: verbatim
27278 #: ../src/guestfs-actions.pod:2185
27279 #, no-wrap
27280 msgid ""
27281 " int\n"
27282 " guestfs_fill_pattern (guestfs_h *g,\n"
27283 "                       const char *pattern,\n"
27284 "                       int len,\n"
27285 "                       const char *path);\n"
27286 "\n"
27287 msgstr ""
27288
27289 #. type: textblock
27290 #: ../src/guestfs-actions.pod:2191
27291 msgid ""
27292 "This function is like C<guestfs_fill> except that it creates a new file of "
27293 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27294 "pattern is truncated if necessary to ensure the length of the file is "
27295 "exactly C<len> bytes."
27296 msgstr ""
27297
27298 #. type: textblock
27299 #: ../src/guestfs-actions.pod:2203
27300 msgid "(Added in 1.3.12)"
27301 msgstr ""
27302
27303 #. type: =head2
27304 #: ../src/guestfs-actions.pod:2205
27305 msgid "guestfs_find"
27306 msgstr ""
27307
27308 #. type: verbatim
27309 #: ../src/guestfs-actions.pod:2207
27310 #, no-wrap
27311 msgid ""
27312 " char **\n"
27313 " guestfs_find (guestfs_h *g,\n"
27314 "               const char *directory);\n"
27315 "\n"
27316 msgstr ""
27317
27318 #. type: textblock
27319 #: ../src/guestfs-actions.pod:2223
27320 msgid ""
27321 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../src/guestfs-actions.pod:2236
27326 msgid "See also C<guestfs_find0>."
27327 msgstr ""
27328
27329 #. type: textblock
27330 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
27331 #: ../src/guestfs-actions.pod:6474
27332 msgid "(Added in 1.0.27)"
27333 msgstr ""
27334
27335 #. type: =head2
27336 #: ../src/guestfs-actions.pod:2247
27337 msgid "guestfs_find0"
27338 msgstr ""
27339
27340 #. type: verbatim
27341 #: ../src/guestfs-actions.pod:2249
27342 #, no-wrap
27343 msgid ""
27344 " int\n"
27345 " guestfs_find0 (guestfs_h *g,\n"
27346 "                const char *directory,\n"
27347 "                const char *files);\n"
27348 "\n"
27349 msgstr ""
27350
27351 #. type: textblock
27352 #: ../src/guestfs-actions.pod:2258
27353 msgid ""
27354 "This command works the same way as C<guestfs_find> with the following "
27355 "exceptions:"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:2285
27360 msgid "(Added in 1.0.74)"
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:2287
27365 msgid "guestfs_findfs_label"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:2289
27370 #, no-wrap
27371 msgid ""
27372 " char *\n"
27373 " guestfs_findfs_label (guestfs_h *g,\n"
27374 "                       const char *label);\n"
27375 "\n"
27376 msgstr ""
27377
27378 #. type: textblock
27379 #: ../src/guestfs-actions.pod:2297
27380 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27381 msgstr ""
27382
27383 #. type: =head2
27384 #: ../src/guestfs-actions.pod:2304
27385 msgid "guestfs_findfs_uuid"
27386 msgstr ""
27387
27388 #. type: verbatim
27389 #: ../src/guestfs-actions.pod:2306
27390 #, no-wrap
27391 msgid ""
27392 " char *\n"
27393 " guestfs_findfs_uuid (guestfs_h *g,\n"
27394 "                      const char *uuid);\n"
27395 "\n"
27396 msgstr ""
27397
27398 #. type: textblock
27399 #: ../src/guestfs-actions.pod:2314
27400 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27401 msgstr ""
27402
27403 #. type: =head2
27404 #: ../src/guestfs-actions.pod:2321
27405 msgid "guestfs_fsck"
27406 msgstr ""
27407
27408 #. type: verbatim
27409 #: ../src/guestfs-actions.pod:2323
27410 #, no-wrap
27411 msgid ""
27412 " int\n"
27413 " guestfs_fsck (guestfs_h *g,\n"
27414 "               const char *fstype,\n"
27415 "               const char *device);\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: textblock
27420 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
27421 msgid "(Added in 1.0.16)"
27422 msgstr ""
27423
27424 #. type: =head2
27425 #: ../src/guestfs-actions.pod:2360
27426 msgid "guestfs_get_append"
27427 msgstr ""
27428
27429 #. type: verbatim
27430 #: ../src/guestfs-actions.pod:2362
27431 #, no-wrap
27432 msgid ""
27433 " const char *\n"
27434 " guestfs_get_append (guestfs_h *g);\n"
27435 "\n"
27436 msgstr ""
27437
27438 #. type: textblock
27439 #: ../src/guestfs-actions.pod:2370
27440 msgid ""
27441 "This function returns a string which may be NULL.  There is no way to return "
27442 "an error from this function.  The string is owned by the guest handle and "
27443 "must I<not> be freed."
27444 msgstr ""
27445
27446 #. type: textblock
27447 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
27448 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
27449 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
27450 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
27451 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
27452 msgid "(Added in 1.0.26)"
27453 msgstr ""
27454
27455 #. type: =head2
27456 #: ../src/guestfs-actions.pod:2376
27457 msgid "guestfs_get_attach_method"
27458 msgstr ""
27459
27460 #. type: verbatim
27461 #: ../src/guestfs-actions.pod:2378
27462 #, no-wrap
27463 msgid ""
27464 " char *\n"
27465 " guestfs_get_attach_method (guestfs_h *g);\n"
27466 "\n"
27467 msgstr ""
27468
27469 #. type: textblock
27470 #: ../src/guestfs-actions.pod:2381
27471 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27472 msgstr ""
27473
27474 #. type: textblock
27475 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
27476 msgid "(Added in 1.9.8)"
27477 msgstr ""
27478
27479 #. type: =head2
27480 #: ../src/guestfs-actions.pod:2388
27481 msgid "guestfs_get_autosync"
27482 msgstr ""
27483
27484 #. type: verbatim
27485 #: ../src/guestfs-actions.pod:2390
27486 #, no-wrap
27487 msgid ""
27488 " int\n"
27489 " guestfs_get_autosync (guestfs_h *g);\n"
27490 "\n"
27491 msgstr ""
27492
27493 #. type: =head2
27494 #: ../src/guestfs-actions.pod:2399
27495 msgid "guestfs_get_direct"
27496 msgstr ""
27497
27498 #. type: verbatim
27499 #: ../src/guestfs-actions.pod:2401
27500 #, no-wrap
27501 msgid ""
27502 " int\n"
27503 " guestfs_get_direct (guestfs_h *g);\n"
27504 "\n"
27505 msgstr ""
27506
27507 #. type: textblock
27508 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
27509 msgid "(Added in 1.0.72)"
27510 msgstr ""
27511
27512 #. type: =head2
27513 #: ../src/guestfs-actions.pod:2410
27514 msgid "guestfs_get_e2label"
27515 msgstr ""
27516
27517 #. type: verbatim
27518 #: ../src/guestfs-actions.pod:2412
27519 #, no-wrap
27520 msgid ""
27521 " char *\n"
27522 " guestfs_get_e2label (guestfs_h *g,\n"
27523 "                      const char *device);\n"
27524 "\n"
27525 msgstr ""
27526
27527 #. type: textblock
27528 #: ../src/guestfs-actions.pod:2416
27529 msgid ""
27530 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27531 "call instead."
27532 msgstr ""
27533
27534 #. type: textblock
27535 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
27536 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
27537 msgid "(Added in 1.0.15)"
27538 msgstr ""
27539
27540 #. type: =head2
27541 #: ../src/guestfs-actions.pod:2431
27542 msgid "guestfs_get_e2uuid"
27543 msgstr ""
27544
27545 #. type: verbatim
27546 #: ../src/guestfs-actions.pod:2433
27547 #, no-wrap
27548 msgid ""
27549 " char *\n"
27550 " guestfs_get_e2uuid (guestfs_h *g,\n"
27551 "                     const char *device);\n"
27552 "\n"
27553 msgstr ""
27554
27555 #. type: textblock
27556 #: ../src/guestfs-actions.pod:2437
27557 msgid ""
27558 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27559 "call instead."
27560 msgstr ""
27561
27562 #. type: =head2
27563 #: ../src/guestfs-actions.pod:2452
27564 msgid "guestfs_get_memsize"
27565 msgstr ""
27566
27567 #. type: verbatim
27568 #: ../src/guestfs-actions.pod:2454
27569 #, no-wrap
27570 msgid ""
27571 " int\n"
27572 " guestfs_get_memsize (guestfs_h *g);\n"
27573 "\n"
27574 msgstr ""
27575
27576 #. type: textblock
27577 #: ../src/guestfs-actions.pod:2460
27578 msgid ""
27579 "If C<guestfs_set_memsize> was not called on this handle, and if "
27580 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27581 "value for memsize."
27582 msgstr ""
27583
27584 #. type: textblock
27585 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
27586 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
27587 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
27588 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
27589 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
27590 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
27591 msgid "(Added in 1.0.55)"
27592 msgstr ""
27593
27594 #. type: =head2
27595 #: ../src/guestfs-actions.pod:2471
27596 msgid "guestfs_get_network"
27597 msgstr ""
27598
27599 #. type: verbatim
27600 #: ../src/guestfs-actions.pod:2473
27601 #, no-wrap
27602 msgid ""
27603 " int\n"
27604 " guestfs_get_network (guestfs_h *g);\n"
27605 "\n"
27606 msgstr ""
27607
27608 #. type: textblock
27609 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
27610 msgid "(Added in 1.5.4)"
27611 msgstr ""
27612
27613 #. type: =head2
27614 #: ../src/guestfs-actions.pod:2482
27615 msgid "guestfs_get_path"
27616 msgstr ""
27617
27618 #. type: verbatim
27619 #: ../src/guestfs-actions.pod:2484
27620 #, no-wrap
27621 msgid ""
27622 " const char *\n"
27623 " guestfs_get_path (guestfs_h *g);\n"
27624 "\n"
27625 msgstr ""
27626
27627 #. type: textblock
27628 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27629 msgid ""
27630 "This function returns a string, or NULL on error.  The string is owned by "
27631 "the guest handle and must I<not> be freed."
27632 msgstr ""
27633
27634 #. type: =head2
27635 #: ../src/guestfs-actions.pod:2497
27636 msgid "guestfs_get_pgroup"
27637 msgstr ""
27638
27639 #. type: verbatim
27640 #: ../src/guestfs-actions.pod:2499
27641 #, no-wrap
27642 msgid ""
27643 " int\n"
27644 " guestfs_get_pgroup (guestfs_h *g);\n"
27645 "\n"
27646 msgstr ""
27647
27648 #. type: textblock
27649 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
27650 #: ../src/guestfs-actions.pod:8154
27651 msgid "(Added in 1.11.18)"
27652 msgstr ""
27653
27654 #. type: =head2
27655 #: ../src/guestfs-actions.pod:2508
27656 msgid "guestfs_get_pid"
27657 msgstr ""
27658
27659 #. type: verbatim
27660 #: ../src/guestfs-actions.pod:2510
27661 #, no-wrap
27662 msgid ""
27663 " int\n"
27664 " guestfs_get_pid (guestfs_h *g);\n"
27665 "\n"
27666 msgstr ""
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:2520
27670 msgid "(Added in 1.0.56)"
27671 msgstr ""
27672
27673 #. type: =head2
27674 #: ../src/guestfs-actions.pod:2522
27675 msgid "guestfs_get_qemu"
27676 msgstr ""
27677
27678 #. type: verbatim
27679 #: ../src/guestfs-actions.pod:2524
27680 #, no-wrap
27681 msgid ""
27682 " const char *\n"
27683 " guestfs_get_qemu (guestfs_h *g);\n"
27684 "\n"
27685 msgstr ""
27686
27687 #. type: textblock
27688 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
27689 msgid "(Added in 1.0.6)"
27690 msgstr ""
27691
27692 #. type: =head2
27693 #: ../src/guestfs-actions.pod:2537
27694 msgid "guestfs_get_recovery_proc"
27695 msgstr ""
27696
27697 #. type: verbatim
27698 #: ../src/guestfs-actions.pod:2539
27699 #, no-wrap
27700 msgid ""
27701 " int\n"
27702 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27703 "\n"
27704 msgstr ""
27705
27706 #. type: textblock
27707 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
27708 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
27709 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
27710 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
27711 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
27712 #: ../src/guestfs-actions.pod:7777
27713 msgid "(Added in 1.0.77)"
27714 msgstr ""
27715
27716 #. type: =head2
27717 #: ../src/guestfs-actions.pod:2548
27718 msgid "guestfs_get_selinux"
27719 msgstr ""
27720
27721 #. type: verbatim
27722 #: ../src/guestfs-actions.pod:2550
27723 #, no-wrap
27724 msgid ""
27725 " int\n"
27726 " guestfs_get_selinux (guestfs_h *g);\n"
27727 "\n"
27728 msgstr ""
27729
27730 #. type: textblock
27731 #: ../src/guestfs-actions.pod:2553
27732 msgid ""
27733 "This returns the current setting of the selinux flag which is passed to the "
27734 "appliance at boot time.  See C<guestfs_set_selinux>."
27735 msgstr ""
27736
27737 #. type: textblock
27738 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
27739 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
27740 msgid "(Added in 1.0.67)"
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:2563
27745 msgid "guestfs_get_smp"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:2565
27750 #, no-wrap
27751 msgid ""
27752 " int\n"
27753 " guestfs_get_smp (guestfs_h *g);\n"
27754 "\n"
27755 msgstr ""
27756
27757 #. type: =head2
27758 #: ../src/guestfs-actions.pod:2574
27759 msgid "guestfs_get_state"
27760 msgstr ""
27761
27762 #. type: verbatim
27763 #: ../src/guestfs-actions.pod:2576
27764 #, no-wrap
27765 msgid ""
27766 " int\n"
27767 " guestfs_get_state (guestfs_h *g);\n"
27768 "\n"
27769 msgstr ""
27770
27771 #. type: =head2
27772 #: ../src/guestfs-actions.pod:2588
27773 msgid "guestfs_get_trace"
27774 msgstr ""
27775
27776 #. type: verbatim
27777 #: ../src/guestfs-actions.pod:2590
27778 #, no-wrap
27779 msgid ""
27780 " int\n"
27781 " guestfs_get_trace (guestfs_h *g);\n"
27782 "\n"
27783 msgstr ""
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:2599
27787 msgid "guestfs_get_umask"
27788 msgstr ""
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:2601
27792 #, no-wrap
27793 msgid ""
27794 " int\n"
27795 " guestfs_get_umask (guestfs_h *g);\n"
27796 "\n"
27797 msgstr ""
27798
27799 #. type: textblock
27800 #: ../src/guestfs-actions.pod:2604
27801 msgid ""
27802 "Return the current umask.  By default the umask is C<022> unless it has been "
27803 "set by calling C<guestfs_umask>."
27804 msgstr ""
27805
27806 #. type: =head2
27807 #: ../src/guestfs-actions.pod:2611
27808 msgid "guestfs_get_verbose"
27809 msgstr ""
27810
27811 #. type: verbatim
27812 #: ../src/guestfs-actions.pod:2613
27813 #, no-wrap
27814 msgid ""
27815 " int\n"
27816 " guestfs_get_verbose (guestfs_h *g);\n"
27817 "\n"
27818 msgstr ""
27819
27820 #. type: =head2
27821 #: ../src/guestfs-actions.pod:2622
27822 msgid "guestfs_getcon"
27823 msgstr ""
27824
27825 #. type: verbatim
27826 #: ../src/guestfs-actions.pod:2624
27827 #, no-wrap
27828 msgid ""
27829 " char *\n"
27830 " guestfs_getcon (guestfs_h *g);\n"
27831 "\n"
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:2629
27836 msgid ""
27837 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27838 msgstr ""
27839
27840 #. type: =head2
27841 #: ../src/guestfs-actions.pod:2637
27842 msgid "guestfs_getxattr"
27843 msgstr ""
27844
27845 #. type: verbatim
27846 #: ../src/guestfs-actions.pod:2639
27847 #, no-wrap
27848 msgid ""
27849 " char *\n"
27850 " guestfs_getxattr (guestfs_h *g,\n"
27851 "                   const char *path,\n"
27852 "                   const char *name,\n"
27853 "                   size_t *size_r);\n"
27854 "\n"
27855 msgstr ""
27856
27857 #. type: textblock
27858 #: ../src/guestfs-actions.pod:2645
27859 msgid ""
27860 "Get a single extended attribute from file C<path> named C<name>.  This call "
27861 "follows symlinks.  If you want to lookup an extended attribute for the "
27862 "symlink itself, use C<guestfs_lgetxattr>."
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27867 msgid ""
27868 "Normally it is better to get all extended attributes from a file in one go "
27869 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27870 "implementations are buggy and do not provide a way to list out attributes.  "
27871 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27872 "extended attributes you want in advance and call this function."
27873 msgstr ""
27874
27875 #. type: textblock
27876 #: ../src/guestfs-actions.pod:2659
27877 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27878 msgstr ""
27879
27880 #. type: textblock
27881 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
27882 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
27883 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
27884 #: ../src/guestfs-actions.pod:6282
27885 msgid ""
27886 "This function returns a buffer, or NULL on error.  The size of the returned "
27887 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27888 "after use>."
27889 msgstr ""
27890
27891 #. type: textblock
27892 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27893 msgid "(Added in 1.7.24)"
27894 msgstr ""
27895
27896 #. type: =head2
27897 #: ../src/guestfs-actions.pod:2667
27898 msgid "guestfs_getxattrs"
27899 msgstr ""
27900
27901 #. type: verbatim
27902 #: ../src/guestfs-actions.pod:2669
27903 #, no-wrap
27904 msgid ""
27905 " struct guestfs_xattr_list *\n"
27906 " guestfs_getxattrs (guestfs_h *g,\n"
27907 "                    const char *path);\n"
27908 "\n"
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:2679
27913 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27914 msgstr ""
27915
27916 #. type: textblock
27917 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
27918 #: ../src/guestfs-actions.pod:4851
27919 msgid ""
27920 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27921 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27922 msgstr ""
27923
27924 #. type: textblock
27925 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
27926 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
27927 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
27928 #: ../src/guestfs-actions.pod:8362
27929 msgid "(Added in 1.0.59)"
27930 msgstr ""
27931
27932 #. type: =head2
27933 #: ../src/guestfs-actions.pod:2687
27934 msgid "guestfs_glob_expand"
27935 msgstr ""
27936
27937 #. type: verbatim
27938 #: ../src/guestfs-actions.pod:2689
27939 #, no-wrap
27940 msgid ""
27941 " char **\n"
27942 " guestfs_glob_expand (guestfs_h *g,\n"
27943 "                      const char *pattern);\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
27949 #: ../src/guestfs-actions.pod:7180
27950 msgid "(Added in 1.0.50)"
27951 msgstr ""
27952
27953 #. type: =head2
27954 #: ../src/guestfs-actions.pod:2710
27955 msgid "guestfs_grep"
27956 msgstr ""
27957
27958 #. type: verbatim
27959 #: ../src/guestfs-actions.pod:2712
27960 #, no-wrap
27961 msgid ""
27962 " char **\n"
27963 " guestfs_grep (guestfs_h *g,\n"
27964 "               const char *regex,\n"
27965 "               const char *path);\n"
27966 "\n"
27967 msgstr ""
27968
27969 #. type: =head2
27970 #: ../src/guestfs-actions.pod:2729
27971 msgid "guestfs_grepi"
27972 msgstr ""
27973
27974 #. type: verbatim
27975 #: ../src/guestfs-actions.pod:2731
27976 #, no-wrap
27977 msgid ""
27978 " char **\n"
27979 " guestfs_grepi (guestfs_h *g,\n"
27980 "                const char *regex,\n"
27981 "                const char *path);\n"
27982 "\n"
27983 msgstr ""
27984
27985 #. type: =head2
27986 #: ../src/guestfs-actions.pod:2748
27987 msgid "guestfs_grub_install"
27988 msgstr ""
27989
27990 #. type: verbatim
27991 #: ../src/guestfs-actions.pod:2750
27992 #, no-wrap
27993 msgid ""
27994 " int\n"
27995 " guestfs_grub_install (guestfs_h *g,\n"
27996 "                       const char *root,\n"
27997 "                       const char *device);\n"
27998 "\n"
27999 msgstr ""
28000
28001 #. type: textblock
28002 #: ../src/guestfs-actions.pod:2793
28003 msgid "(Added in 1.0.17)"
28004 msgstr ""
28005
28006 #. type: =head2
28007 #: ../src/guestfs-actions.pod:2795
28008 msgid "guestfs_head"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../src/guestfs-actions.pod:2797
28013 #, no-wrap
28014 msgid ""
28015 " char **\n"
28016 " guestfs_head (guestfs_h *g,\n"
28017 "               const char *path);\n"
28018 "\n"
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:2813
28023 msgid "guestfs_head_n"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:2815
28028 #, no-wrap
28029 msgid ""
28030 " char **\n"
28031 " guestfs_head_n (guestfs_h *g,\n"
28032 "                 int nrlines,\n"
28033 "                 const char *path);\n"
28034 "\n"
28035 msgstr ""
28036
28037 #. type: =head2
28038 #: ../src/guestfs-actions.pod:2837
28039 msgid "guestfs_hexdump"
28040 msgstr ""
28041
28042 #. type: verbatim
28043 #: ../src/guestfs-actions.pod:2839
28044 #, no-wrap
28045 msgid ""
28046 " char *\n"
28047 " guestfs_hexdump (guestfs_h *g,\n"
28048 "                  const char *path);\n"
28049 "\n"
28050 msgstr ""
28051
28052 #. type: textblock
28053 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
28054 #: ../src/guestfs-actions.pod:7299
28055 msgid "(Added in 1.0.22)"
28056 msgstr ""
28057
28058 #. type: =head2
28059 #: ../src/guestfs-actions.pod:2854
28060 msgid "guestfs_initrd_cat"
28061 msgstr ""
28062
28063 #. type: verbatim
28064 #: ../src/guestfs-actions.pod:2856
28065 #, no-wrap
28066 msgid ""
28067 " char *\n"
28068 " guestfs_initrd_cat (guestfs_h *g,\n"
28069 "                     const char *initrdpath,\n"
28070 "                     const char *filename,\n"
28071 "                     size_t *size_r);\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:2872
28077 msgid "See also C<guestfs_initrd_list>."
28078 msgstr ""
28079
28080 #. type: =head2
28081 #: ../src/guestfs-actions.pod:2883
28082 msgid "guestfs_initrd_list"
28083 msgstr ""
28084
28085 #. type: verbatim
28086 #: ../src/guestfs-actions.pod:2885
28087 #, no-wrap
28088 msgid ""
28089 " char **\n"
28090 " guestfs_initrd_list (guestfs_h *g,\n"
28091 "                      const char *path);\n"
28092 "\n"
28093 msgstr ""
28094
28095 #. type: =head2
28096 #: ../src/guestfs-actions.pod:2905
28097 msgid "guestfs_inotify_add_watch"
28098 msgstr ""
28099
28100 #. type: verbatim
28101 #: ../src/guestfs-actions.pod:2907
28102 #, no-wrap
28103 msgid ""
28104 " int64_t\n"
28105 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28106 "                            const char *path,\n"
28107 "                            int mask);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:2926
28113 msgid "guestfs_inotify_close"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:2928
28118 #, no-wrap
28119 msgid ""
28120 " int\n"
28121 " guestfs_inotify_close (guestfs_h *g);\n"
28122 "\n"
28123 msgstr ""
28124
28125 #. type: =head2
28126 #: ../src/guestfs-actions.pod:2939
28127 msgid "guestfs_inotify_files"
28128 msgstr ""
28129
28130 #. type: verbatim
28131 #: ../src/guestfs-actions.pod:2941
28132 #, no-wrap
28133 msgid ""
28134 " char **\n"
28135 " guestfs_inotify_files (guestfs_h *g);\n"
28136 "\n"
28137 msgstr ""
28138
28139 #. type: textblock
28140 #: ../src/guestfs-actions.pod:2944
28141 msgid ""
28142 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28143 "returns a list of pathnames of objects that were touched.  The returned "
28144 "pathnames are sorted and deduplicated."
28145 msgstr ""
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:2954
28149 msgid "guestfs_inotify_init"
28150 msgstr ""
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:2956
28154 #, no-wrap
28155 msgid ""
28156 " int\n"
28157 " guestfs_inotify_init (guestfs_h *g,\n"
28158 "                       int maxevents);\n"
28159 "\n"
28160 msgstr ""
28161
28162 #. type: textblock
28163 #: ../src/guestfs-actions.pod:2964
28164 msgid ""
28165 "C<maxevents> is the maximum number of events which will be queued up between "
28166 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28167 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28168 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28169 "throws away events, but records the fact that it threw them away by setting "
28170 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28171 "C<guestfs_inotify_read>)."
28172 msgstr ""
28173
28174 #. type: textblock
28175 #: ../src/guestfs-actions.pod:2974
28176 msgid ""
28177 "Before any events are generated, you have to add some watches to the "
28178 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28179 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28180 msgstr ""
28181
28182 #. type: textblock
28183 #: ../src/guestfs-actions.pod:2980
28184 msgid ""
28185 "Queued up events should be read periodically by calling "
28186 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28187 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28188 "often enough then you risk the internal queue overflowing."
28189 msgstr ""
28190
28191 #. type: textblock
28192 #: ../src/guestfs-actions.pod:2987
28193 msgid ""
28194 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28195 "This also removes any watches automatically."
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:3000
28200 msgid "guestfs_inotify_read"
28201 msgstr ""
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:3002
28205 #, no-wrap
28206 msgid ""
28207 " struct guestfs_inotify_event_list *\n"
28208 " guestfs_inotify_read (guestfs_h *g);\n"
28209 "\n"
28210 msgstr ""
28211
28212 #. type: textblock
28213 #: ../src/guestfs-actions.pod:3016
28214 msgid ""
28215 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28216 "there was an error.  I<The caller must call "
28217 "C<guestfs_free_inotify_event_list> after use>."
28218 msgstr ""
28219
28220 #. type: =head2
28221 #: ../src/guestfs-actions.pod:3022
28222 msgid "guestfs_inotify_rm_watch"
28223 msgstr ""
28224
28225 #. type: verbatim
28226 #: ../src/guestfs-actions.pod:3024
28227 #, no-wrap
28228 msgid ""
28229 " int\n"
28230 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28231 "                           int wd);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: textblock
28236 #: ../src/guestfs-actions.pod:3028
28237 msgid ""
28238 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28239 msgstr ""
28240
28241 #. type: =head2
28242 #: ../src/guestfs-actions.pod:3035
28243 msgid "guestfs_inspect_get_arch"
28244 msgstr ""
28245
28246 #. type: verbatim
28247 #: ../src/guestfs-actions.pod:3037
28248 #, no-wrap
28249 msgid ""
28250 " char *\n"
28251 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28252 "                           const char *root);\n"
28253 "\n"
28254 msgstr ""
28255
28256 #. type: textblock
28257 #: ../src/guestfs-actions.pod:3041
28258 msgid ""
28259 "This returns the architecture of the inspected operating system.  The "
28260 "possible return values are listed under C<guestfs_file_architecture>."
28261 msgstr ""
28262
28263 #. type: =head2
28264 #: ../src/guestfs-actions.pod:3055
28265 msgid "guestfs_inspect_get_distro"
28266 msgstr ""
28267
28268 #. type: verbatim
28269 #: ../src/guestfs-actions.pod:3057
28270 #, no-wrap
28271 msgid ""
28272 " char *\n"
28273 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28274 "                             const char *root);\n"
28275 "\n"
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:3157
28280 msgid "guestfs_inspect_get_drive_mappings"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:3159
28285 #, no-wrap
28286 msgid ""
28287 " char **\n"
28288 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28289 "                                     const char *root);\n"
28290 "\n"
28291 msgstr ""
28292
28293 #. type: textblock
28294 #: ../src/guestfs-actions.pod:3188
28295 msgid ""
28296 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28297 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28298 msgstr ""
28299
28300 #. type: textblock
28301 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
28302 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
28303 #: ../src/guestfs-actions.pod:7601
28304 msgid ""
28305 "This function returns a NULL-terminated array of strings, or NULL if there "
28306 "was an error.  The array of strings will always have length C<2n+1>, where "
28307 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28308 "caller must free the strings and the array after use>."
28309 msgstr ""
28310
28311 #. type: textblock
28312 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28313 msgid "(Added in 1.9.17)"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:3200
28318 msgid "guestfs_inspect_get_filesystems"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:3202
28323 #, no-wrap
28324 msgid ""
28325 " char **\n"
28326 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28327 "                                  const char *root);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: textblock
28332 #: ../src/guestfs-actions.pod:3214
28333 msgid ""
28334 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28335 "C<guestfs_inspect_get_mountpoints>."
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../src/guestfs-actions.pod:3223
28340 msgid "guestfs_inspect_get_format"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../src/guestfs-actions.pod:3225
28345 #, no-wrap
28346 msgid ""
28347 " char *\n"
28348 " guestfs_inspect_get_format (guestfs_h *g,\n"
28349 "                             const char *root);\n"
28350 "\n"
28351 msgstr ""
28352
28353 #. type: textblock
28354 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
28355 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
28356 #: ../src/guestfs-actions.pod:6493
28357 msgid "(Added in 1.9.4)"
28358 msgstr ""
28359
28360 #. type: =head2
28361 #: ../src/guestfs-actions.pod:3261
28362 msgid "guestfs_inspect_get_hostname"
28363 msgstr ""
28364
28365 #. type: verbatim
28366 #: ../src/guestfs-actions.pod:3263
28367 #, no-wrap
28368 msgid ""
28369 " char *\n"
28370 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28371 "                               const char *root);\n"
28372 "\n"
28373 msgstr ""
28374
28375 #. type: textblock
28376 #: ../src/guestfs-actions.pod:3278
28377 msgid "(Added in 1.7.9)"
28378 msgstr ""
28379
28380 #. type: =head2
28381 #: ../src/guestfs-actions.pod:3280
28382 msgid "guestfs_inspect_get_icon"
28383 msgstr ""
28384
28385 #. type: verbatim
28386 #: ../src/guestfs-actions.pod:3282
28387 #, no-wrap
28388 msgid ""
28389 " char *\n"
28390 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28391 "                           const char *root,\n"
28392 "                           size_t *size_r,\n"
28393 "                           ...);\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: verbatim
28398 #: ../src/guestfs-actions.pod:3293
28399 #, no-wrap
28400 msgid ""
28401 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28402 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28403 "\n"
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
28408 #: ../src/guestfs-actions.pod:5425
28409 msgid "(Added in 1.11.12)"
28410 msgstr ""
28411
28412 #. type: =head2
28413 #: ../src/guestfs-actions.pod:3362
28414 msgid "guestfs_inspect_get_icon_va"
28415 msgstr ""
28416
28417 #. type: verbatim
28418 #: ../src/guestfs-actions.pod:3364
28419 #, no-wrap
28420 msgid ""
28421 " char *\n"
28422 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28423 "                              const char *root,\n"
28424 "                              size_t *size_r,\n"
28425 "                              va_list args);\n"
28426 "\n"
28427 msgstr ""
28428
28429 #. type: textblock
28430 #: ../src/guestfs-actions.pod:3370
28431 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28432 msgstr ""
28433
28434 #. type: =head2
28435 #: ../src/guestfs-actions.pod:3374
28436 msgid "guestfs_inspect_get_icon_argv"
28437 msgstr ""
28438
28439 #. type: verbatim
28440 #: ../src/guestfs-actions.pod:3376
28441 #, no-wrap
28442 msgid ""
28443 " char *\n"
28444 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28445 "                                const char *root,\n"
28446 "                                size_t *size_r,\n"
28447 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28448 "\n"
28449 msgstr ""
28450
28451 #. type: textblock
28452 #: ../src/guestfs-actions.pod:3382
28453 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28454 msgstr ""
28455
28456 #. type: =head2
28457 #: ../src/guestfs-actions.pod:3386
28458 msgid "guestfs_inspect_get_major_version"
28459 msgstr ""
28460
28461 #. type: verbatim
28462 #: ../src/guestfs-actions.pod:3388
28463 #, no-wrap
28464 msgid ""
28465 " int\n"
28466 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28467 "                                    const char *root);\n"
28468 "\n"
28469 msgstr ""
28470
28471 #. type: =head2
28472 #: ../src/guestfs-actions.pod:3410
28473 msgid "guestfs_inspect_get_minor_version"
28474 msgstr ""
28475
28476 #. type: verbatim
28477 #: ../src/guestfs-actions.pod:3412
28478 #, no-wrap
28479 msgid ""
28480 " int\n"
28481 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28482 "                                    const char *root);\n"
28483 "\n"
28484 msgstr ""
28485
28486 #. type: textblock
28487 #: ../src/guestfs-actions.pod:3421
28488 msgid ""
28489 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28490 "C<guestfs_inspect_get_major_version>."
28491 msgstr ""
28492
28493 #. type: =head2
28494 #: ../src/guestfs-actions.pod:3428
28495 msgid "guestfs_inspect_get_mountpoints"
28496 msgstr ""
28497
28498 #. type: verbatim
28499 #: ../src/guestfs-actions.pod:3430
28500 #, no-wrap
28501 msgid ""
28502 " char **\n"
28503 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28504 "                                  const char *root);\n"
28505 "\n"
28506 msgstr ""
28507
28508 #. type: textblock
28509 #: ../src/guestfs-actions.pod:3451
28510 msgid ""
28511 "For operating systems like Windows which still use drive letters, this call "
28512 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28513 "information about the mapping of drive letters to partitions, see "
28514 "C<guestfs_inspect_get_drive_mappings>."
28515 msgstr ""
28516
28517 #. type: textblock
28518 #: ../src/guestfs-actions.pod:3457
28519 msgid ""
28520 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28521 "C<guestfs_inspect_get_filesystems>."
28522 msgstr ""
28523
28524 #. type: =head2
28525 #: ../src/guestfs-actions.pod:3468
28526 msgid "guestfs_inspect_get_package_format"
28527 msgstr ""
28528
28529 #. type: verbatim
28530 #: ../src/guestfs-actions.pod:3470
28531 #, no-wrap
28532 msgid ""
28533 " char *\n"
28534 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28535 "                                     const char *root);\n"
28536 "\n"
28537 msgstr ""
28538
28539 #. type: textblock
28540 #: ../src/guestfs-actions.pod:3474
28541 msgid ""
28542 "This function and C<guestfs_inspect_get_package_management> return the "
28543 "package format and package management tool used by the inspected operating "
28544 "system.  For example for Fedora these functions would return C<rpm> (package "
28545 "format) and C<yum> (package management)."
28546 msgstr ""
28547
28548 #. type: textblock
28549 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28550 msgid "(Added in 1.7.5)"
28551 msgstr ""
28552
28553 #. type: =head2
28554 #: ../src/guestfs-actions.pod:3495
28555 msgid "guestfs_inspect_get_package_management"
28556 msgstr ""
28557
28558 #. type: verbatim
28559 #: ../src/guestfs-actions.pod:3497
28560 #, no-wrap
28561 msgid ""
28562 " char *\n"
28563 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28564 "                                         const char *root);\n"
28565 "\n"
28566 msgstr ""
28567
28568 #. type: textblock
28569 #: ../src/guestfs-actions.pod:3501
28570 msgid ""
28571 "C<guestfs_inspect_get_package_format> and this function return the package "
28572 "format and package management tool used by the inspected operating system.  "
28573 "For example for Fedora these functions would return C<rpm> (package format) "
28574 "and C<yum> (package management)."
28575 msgstr ""
28576
28577 #. type: =head2
28578 #: ../src/guestfs-actions.pod:3523
28579 msgid "guestfs_inspect_get_product_name"
28580 msgstr ""
28581
28582 #. type: verbatim
28583 #: ../src/guestfs-actions.pod:3525
28584 #, no-wrap
28585 msgid ""
28586 " char *\n"
28587 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28588 "                                   const char *root);\n"
28589 "\n"
28590 msgstr ""
28591
28592 #. type: =head2
28593 #: ../src/guestfs-actions.pod:3544
28594 msgid "guestfs_inspect_get_product_variant"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../src/guestfs-actions.pod:3546
28599 #, no-wrap
28600 msgid ""
28601 " char *\n"
28602 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28603 "                                      const char *root);\n"
28604 "\n"
28605 msgstr ""
28606
28607 #. type: textblock
28608 #: ../src/guestfs-actions.pod:3569
28609 msgid ""
28610 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28611 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28612 msgstr ""
28613
28614 #. type: textblock
28615 #: ../src/guestfs-actions.pod:3576
28616 msgid "(Added in 1.9.13)"
28617 msgstr ""
28618
28619 #. type: =head2
28620 #: ../src/guestfs-actions.pod:3578
28621 msgid "guestfs_inspect_get_roots"
28622 msgstr ""
28623
28624 #. type: verbatim
28625 #: ../src/guestfs-actions.pod:3580
28626 #, no-wrap
28627 msgid ""
28628 " char **\n"
28629 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28630 "\n"
28631 msgstr ""
28632
28633 #. type: textblock
28634 #: ../src/guestfs-actions.pod:3583
28635 msgid ""
28636 "This function is a convenient way to get the list of root devices, as "
28637 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28638 "the whole inspection process."
28639 msgstr ""
28640
28641 #. type: textblock
28642 #: ../src/guestfs-actions.pod:3587
28643 msgid ""
28644 "This returns an empty list if either no root devices were found or the "
28645 "caller has not called C<guestfs_inspect_os>."
28646 msgstr ""
28647
28648 #. type: textblock
28649 #: ../src/guestfs-actions.pod:3596
28650 msgid "(Added in 1.7.3)"
28651 msgstr ""
28652
28653 #. type: =head2
28654 #: ../src/guestfs-actions.pod:3598
28655 msgid "guestfs_inspect_get_type"
28656 msgstr ""
28657
28658 #. type: verbatim
28659 #: ../src/guestfs-actions.pod:3600
28660 #, no-wrap
28661 msgid ""
28662 " char *\n"
28663 " guestfs_inspect_get_type (guestfs_h *g,\n"
28664 "                           const char *root);\n"
28665 "\n"
28666 msgstr ""
28667
28668 #. type: =head2
28669 #: ../src/guestfs-actions.pod:3641
28670 msgid "guestfs_inspect_get_windows_current_control_set"
28671 msgstr ""
28672
28673 #. type: verbatim
28674 #: ../src/guestfs-actions.pod:3643
28675 #, no-wrap
28676 msgid ""
28677 " char *\n"
28678 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28679 "                                                  const char *root);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:3661
28685 msgid "guestfs_inspect_get_windows_systemroot"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:3663
28690 #, no-wrap
28691 msgid ""
28692 " char *\n"
28693 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28694 "                                         const char *root);\n"
28695 "\n"
28696 msgstr ""
28697
28698 #. type: textblock
28699 #: ../src/guestfs-actions.pod:3679
28700 msgid "(Added in 1.5.25)"
28701 msgstr ""
28702
28703 #. type: =head2
28704 #: ../src/guestfs-actions.pod:3681
28705 msgid "guestfs_inspect_is_live"
28706 msgstr ""
28707
28708 #. type: verbatim
28709 #: ../src/guestfs-actions.pod:3683
28710 #, no-wrap
28711 msgid ""
28712 " int\n"
28713 " guestfs_inspect_is_live (guestfs_h *g,\n"
28714 "                          const char *root);\n"
28715 "\n"
28716 msgstr ""
28717
28718 #. type: textblock
28719 #: ../src/guestfs-actions.pod:3687
28720 msgid ""
28721 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28722 "disk), then this returns true if a live image was detected on the disk."
28723 msgstr ""
28724
28725 #. type: =head2
28726 #: ../src/guestfs-actions.pod:3697
28727 msgid "guestfs_inspect_is_multipart"
28728 msgstr ""
28729
28730 #. type: verbatim
28731 #: ../src/guestfs-actions.pod:3699
28732 #, no-wrap
28733 msgid ""
28734 " int\n"
28735 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28736 "                               const char *root);\n"
28737 "\n"
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:3703
28742 msgid ""
28743 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28744 "disk), then this returns true if the disk is part of a set."
28745 msgstr ""
28746
28747 #. type: =head2
28748 #: ../src/guestfs-actions.pod:3713
28749 msgid "guestfs_inspect_is_netinst"
28750 msgstr ""
28751
28752 #. type: verbatim
28753 #: ../src/guestfs-actions.pod:3715
28754 #, no-wrap
28755 msgid ""
28756 " int\n"
28757 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28758 "                             const char *root);\n"
28759 "\n"
28760 msgstr ""
28761
28762 #. type: textblock
28763 #: ../src/guestfs-actions.pod:3719
28764 msgid ""
28765 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28766 "disk), then this returns true if the disk is a network installer, ie. not a "
28767 "self-contained install CD but one which is likely to require network access "
28768 "to complete the install."
28769 msgstr ""
28770
28771 #. type: =head2
28772 #: ../src/guestfs-actions.pod:3731
28773 msgid "guestfs_inspect_list_applications"
28774 msgstr ""
28775
28776 #. type: verbatim
28777 #: ../src/guestfs-actions.pod:3733
28778 #, no-wrap
28779 msgid ""
28780 " struct guestfs_application_list *\n"
28781 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28782 "                                    const char *root);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:3739
28788 msgid ""
28789 "I<Note:> This call works differently from other parts of the inspection "
28790 "API.  You have to call C<guestfs_inspect_os>, then "
28791 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28792 "this.  Listing applications is a significantly more difficult operation "
28793 "which requires access to the full filesystem.  Also note that unlike the "
28794 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28795 "the libguestfs handle, this call actually reads parts of the mounted "
28796 "filesystems during the call."
28797 msgstr ""
28798
28799 #. type: textblock
28800 #: ../src/guestfs-actions.pod:3829
28801 msgid ""
28802 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28803 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28804 "after use>."
28805 msgstr ""
28806
28807 #. type: textblock
28808 #: ../src/guestfs-actions.pod:3833
28809 msgid "(Added in 1.7.8)"
28810 msgstr ""
28811
28812 #. type: =head2
28813 #: ../src/guestfs-actions.pod:3835
28814 msgid "guestfs_inspect_os"
28815 msgstr ""
28816
28817 #. type: verbatim
28818 #: ../src/guestfs-actions.pod:3837
28819 #, no-wrap
28820 msgid ""
28821 " char **\n"
28822 " guestfs_inspect_os (guestfs_h *g);\n"
28823 "\n"
28824 msgstr ""
28825
28826 #. type: textblock
28827 #: ../src/guestfs-actions.pod:3853
28828 msgid ""
28829 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28830 "functions in order to query further information about each operating system, "
28831 "such as the name and version."
28832 msgstr ""
28833
28834 #. type: textblock
28835 #: ../src/guestfs-actions.pod:3858
28836 msgid ""
28837 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28838 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28839 "the contents.  This should be called with no disks currently mounted.  The "
28840 "function may also use Augeas, so any existing Augeas handle will be closed."
28841 msgstr ""
28842
28843 #. type: textblock
28844 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
28845 #: ../src/guestfs-actions.pod:4283
28846 msgid "See also C<guestfs_list_filesystems>."
28847 msgstr ""
28848
28849 #. type: =head2
28850 #: ../src/guestfs-actions.pod:3878
28851 msgid "guestfs_is_blockdev"
28852 msgstr ""
28853
28854 #. type: verbatim
28855 #: ../src/guestfs-actions.pod:3880
28856 #, no-wrap
28857 msgid ""
28858 " int\n"
28859 " guestfs_is_blockdev (guestfs_h *g,\n"
28860 "                      const char *path);\n"
28861 "\n"
28862 msgstr ""
28863
28864 #. type: textblock
28865 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
28866 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
28867 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
28868 #: ../src/guestfs-actions.pod:4048
28869 msgid "See also C<guestfs_stat>."
28870 msgstr ""
28871
28872 #. type: textblock
28873 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
28874 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
28875 #: ../src/guestfs-actions.pod:4052
28876 msgid "(Added in 1.5.10)"
28877 msgstr ""
28878
28879 #. type: =head2
28880 #: ../src/guestfs-actions.pod:3893
28881 msgid "guestfs_is_busy"
28882 msgstr ""
28883
28884 #. type: verbatim
28885 #: ../src/guestfs-actions.pod:3895
28886 #, no-wrap
28887 msgid ""
28888 " int\n"
28889 " guestfs_is_busy (guestfs_h *g);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:3907
28895 msgid "guestfs_is_chardev"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:3909
28900 #, no-wrap
28901 msgid ""
28902 " int\n"
28903 " guestfs_is_chardev (guestfs_h *g,\n"
28904 "                     const char *path);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:3922
28910 msgid "guestfs_is_config"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:3924
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_is_config (guestfs_h *g);\n"
28919 "\n"
28920 msgstr ""
28921
28922 #. type: =head2
28923 #: ../src/guestfs-actions.pod:3936
28924 msgid "guestfs_is_dir"
28925 msgstr ""
28926
28927 #. type: verbatim
28928 #: ../src/guestfs-actions.pod:3938
28929 #, no-wrap
28930 msgid ""
28931 " int\n"
28932 " guestfs_is_dir (guestfs_h *g,\n"
28933 "                 const char *path);\n"
28934 "\n"
28935 msgstr ""
28936
28937 #. type: =head2
28938 #: ../src/guestfs-actions.pod:3952
28939 msgid "guestfs_is_fifo"
28940 msgstr ""
28941
28942 #. type: verbatim
28943 #: ../src/guestfs-actions.pod:3954
28944 #, no-wrap
28945 msgid ""
28946 " int\n"
28947 " guestfs_is_fifo (guestfs_h *g,\n"
28948 "                  const char *path);\n"
28949 "\n"
28950 msgstr ""
28951
28952 #. type: =head2
28953 #: ../src/guestfs-actions.pod:3967
28954 msgid "guestfs_is_file"
28955 msgstr ""
28956
28957 #. type: verbatim
28958 #: ../src/guestfs-actions.pod:3969
28959 #, no-wrap
28960 msgid ""
28961 " int\n"
28962 " guestfs_is_file (guestfs_h *g,\n"
28963 "                  const char *path);\n"
28964 "\n"
28965 msgstr ""
28966
28967 #. type: =head2
28968 #: ../src/guestfs-actions.pod:3983
28969 msgid "guestfs_is_launching"
28970 msgstr ""
28971
28972 #. type: verbatim
28973 #: ../src/guestfs-actions.pod:3985
28974 #, no-wrap
28975 msgid ""
28976 " int\n"
28977 " guestfs_is_launching (guestfs_h *g);\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: =head2
28982 #: ../src/guestfs-actions.pod:3997
28983 msgid "guestfs_is_lv"
28984 msgstr ""
28985
28986 #. type: verbatim
28987 #: ../src/guestfs-actions.pod:3999
28988 #, no-wrap
28989 msgid ""
28990 " int\n"
28991 " guestfs_is_lv (guestfs_h *g,\n"
28992 "                const char *device);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: =head2
28997 #: ../src/guestfs-actions.pod:4010
28998 msgid "guestfs_is_ready"
28999 msgstr ""
29000
29001 #. type: verbatim
29002 #: ../src/guestfs-actions.pod:4012
29003 #, no-wrap
29004 msgid ""
29005 " int\n"
29006 " guestfs_is_ready (guestfs_h *g);\n"
29007 "\n"
29008 msgstr ""
29009
29010 #. type: =head2
29011 #: ../src/guestfs-actions.pod:4024
29012 msgid "guestfs_is_socket"
29013 msgstr ""
29014
29015 #. type: verbatim
29016 #: ../src/guestfs-actions.pod:4026
29017 #, no-wrap
29018 msgid ""
29019 " int\n"
29020 " guestfs_is_socket (guestfs_h *g,\n"
29021 "                    const char *path);\n"
29022 "\n"
29023 msgstr ""
29024
29025 #. type: =head2
29026 #: ../src/guestfs-actions.pod:4039
29027 msgid "guestfs_is_symlink"
29028 msgstr ""
29029
29030 #. type: verbatim
29031 #: ../src/guestfs-actions.pod:4041
29032 #, no-wrap
29033 msgid ""
29034 " int\n"
29035 " guestfs_is_symlink (guestfs_h *g,\n"
29036 "                     const char *path);\n"
29037 "\n"
29038 msgstr ""
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:4054
29042 msgid "guestfs_is_zero"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:4056
29047 #, no-wrap
29048 msgid ""
29049 " int\n"
29050 " guestfs_is_zero (guestfs_h *g,\n"
29051 "                  const char *path);\n"
29052 "\n"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29057 msgid "(Added in 1.11.8)"
29058 msgstr ""
29059
29060 #. type: =head2
29061 #: ../src/guestfs-actions.pod:4067
29062 msgid "guestfs_is_zero_device"
29063 msgstr ""
29064
29065 #. type: verbatim
29066 #: ../src/guestfs-actions.pod:4069
29067 #, no-wrap
29068 msgid ""
29069 " int\n"
29070 " guestfs_is_zero_device (guestfs_h *g,\n"
29071 "                         const char *device);\n"
29072 "\n"
29073 msgstr ""
29074
29075 #. type: =head2
29076 #: ../src/guestfs-actions.pod:4081
29077 msgid "guestfs_kill_subprocess"
29078 msgstr ""
29079
29080 #. type: verbatim
29081 #: ../src/guestfs-actions.pod:4083
29082 #, no-wrap
29083 msgid ""
29084 " int\n"
29085 " guestfs_kill_subprocess (guestfs_h *g);\n"
29086 "\n"
29087 msgstr ""
29088
29089 #. type: =head2
29090 #: ../src/guestfs-actions.pod:4092
29091 msgid "guestfs_launch"
29092 msgstr ""
29093
29094 #. type: verbatim
29095 #: ../src/guestfs-actions.pod:4094
29096 #, no-wrap
29097 msgid ""
29098 " int\n"
29099 " guestfs_launch (guestfs_h *g);\n"
29100 "\n"
29101 msgstr ""
29102
29103 #. type: =head2
29104 #: ../src/guestfs-actions.pod:4112
29105 msgid "guestfs_lchown"
29106 msgstr ""
29107
29108 #. type: verbatim
29109 #: ../src/guestfs-actions.pod:4114
29110 #, no-wrap
29111 msgid ""
29112 " int\n"
29113 " guestfs_lchown (guestfs_h *g,\n"
29114 "                 int owner,\n"
29115 "                 int group,\n"
29116 "                 const char *path);\n"
29117 "\n"
29118 msgstr ""
29119
29120 #. type: textblock
29121 #: ../src/guestfs-actions.pod:4120
29122 msgid ""
29123 "Change the file owner to C<owner> and group to C<group>.  This is like "
29124 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29125 "changed, not the target."
29126 msgstr ""
29127
29128 #. type: =head2
29129 #: ../src/guestfs-actions.pod:4132
29130 msgid "guestfs_lgetxattr"
29131 msgstr ""
29132
29133 #. type: verbatim
29134 #: ../src/guestfs-actions.pod:4134
29135 #, no-wrap
29136 msgid ""
29137 " char *\n"
29138 " guestfs_lgetxattr (guestfs_h *g,\n"
29139 "                    const char *path,\n"
29140 "                    const char *name,\n"
29141 "                    size_t *size_r);\n"
29142 "\n"
29143 msgstr ""
29144
29145 #. type: textblock
29146 #: ../src/guestfs-actions.pod:4154
29147 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:4162
29152 msgid "guestfs_lgetxattrs"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:4164
29157 #, no-wrap
29158 msgid ""
29159 " struct guestfs_xattr_list *\n"
29160 " guestfs_lgetxattrs (guestfs_h *g,\n"
29161 "                     const char *path);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:4168
29167 msgid ""
29168 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29169 "then it returns the extended attributes of the link itself."
29170 msgstr ""
29171
29172 #. type: =head2
29173 #: ../src/guestfs-actions.pod:4178
29174 msgid "guestfs_list_9p"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../src/guestfs-actions.pod:4180
29179 #, no-wrap
29180 msgid ""
29181 " char **\n"
29182 " guestfs_list_9p (guestfs_h *g);\n"
29183 "\n"
29184 msgstr ""
29185
29186 #. type: =head2
29187 #: ../src/guestfs-actions.pod:4192
29188 msgid "guestfs_list_devices"
29189 msgstr ""
29190
29191 #. type: verbatim
29192 #: ../src/guestfs-actions.pod:4194
29193 #, no-wrap
29194 msgid ""
29195 " char **\n"
29196 " guestfs_list_devices (guestfs_h *g);\n"
29197 "\n"
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:4209
29202 msgid "guestfs_list_dm_devices"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:4211
29207 #, no-wrap
29208 msgid ""
29209 " char **\n"
29210 " guestfs_list_dm_devices (guestfs_h *g);\n"
29211 "\n"
29212 msgstr ""
29213
29214 #. type: textblock
29215 #: ../src/guestfs-actions.pod:4216
29216 msgid ""
29217 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29218 "previous call to C<guestfs_luks_open>."
29219 msgstr ""
29220
29221 #. type: textblock
29222 #: ../src/guestfs-actions.pod:4219
29223 msgid ""
29224 "Device mapper devices which correspond to logical volumes are I<not> "
29225 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29226 "volumes."
29227 msgstr ""
29228
29229 #. type: textblock
29230 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29231 msgid "(Added in 1.11.15)"
29232 msgstr ""
29233
29234 #. type: =head2
29235 #: ../src/guestfs-actions.pod:4229
29236 msgid "guestfs_list_filesystems"
29237 msgstr ""
29238
29239 #. type: verbatim
29240 #: ../src/guestfs-actions.pod:4231
29241 #, no-wrap
29242 msgid ""
29243 " char **\n"
29244 " guestfs_list_filesystems (guestfs_h *g);\n"
29245 "\n"
29246 msgstr ""
29247
29248 #. type: textblock
29249 #: ../src/guestfs-actions.pod:4251
29250 msgid ""
29251 "This command runs other libguestfs commands, which might include "
29252 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29253 "soon after launch and only when nothing is mounted."
29254 msgstr ""
29255
29256 #. type: textblock
29257 #: ../src/guestfs-actions.pod:4255
29258 msgid ""
29259 "Not all of the filesystems returned will be mountable.  In particular, swap "
29260 "partitions are returned in the list.  Also this command does not check that "
29261 "each filesystem found is valid and mountable, and some filesystems might be "
29262 "mountable but require special options.  Filesystems may not all belong to a "
29263 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29264 msgstr ""
29265
29266 #. type: textblock
29267 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
29268 msgid "(Added in 1.5.15)"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:4271
29273 msgid "guestfs_list_partitions"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:4273
29278 #, no-wrap
29279 msgid ""
29280 " char **\n"
29281 " guestfs_list_partitions (guestfs_h *g);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: textblock
29286 #: ../src/guestfs-actions.pod:4280
29287 msgid ""
29288 "This does not return logical volumes.  For that you will need to call "
29289 "C<guestfs_lvs>."
29290 msgstr ""
29291
29292 #. type: =head2
29293 #: ../src/guestfs-actions.pod:4291
29294 msgid "guestfs_ll"
29295 msgstr ""
29296
29297 #. type: verbatim
29298 #: ../src/guestfs-actions.pod:4293
29299 #, no-wrap
29300 msgid ""
29301 " char *\n"
29302 " guestfs_ll (guestfs_h *g,\n"
29303 "             const char *directory);\n"
29304 "\n"
29305 msgstr ""
29306
29307 #. type: =head2
29308 #: ../src/guestfs-actions.pod:4308
29309 msgid "guestfs_ln"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../src/guestfs-actions.pod:4310
29314 #, no-wrap
29315 msgid ""
29316 " int\n"
29317 " guestfs_ln (guestfs_h *g,\n"
29318 "             const char *target,\n"
29319 "             const char *linkname);\n"
29320 "\n"
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:4321
29325 msgid "guestfs_ln_f"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:4323
29330 #, no-wrap
29331 msgid ""
29332 " int\n"
29333 " guestfs_ln_f (guestfs_h *g,\n"
29334 "               const char *target,\n"
29335 "               const char *linkname);\n"
29336 "\n"
29337 msgstr ""
29338
29339 #. type: =head2
29340 #: ../src/guestfs-actions.pod:4335
29341 msgid "guestfs_ln_s"
29342 msgstr ""
29343
29344 #. type: verbatim
29345 #: ../src/guestfs-actions.pod:4337
29346 #, no-wrap
29347 msgid ""
29348 " int\n"
29349 " guestfs_ln_s (guestfs_h *g,\n"
29350 "               const char *target,\n"
29351 "               const char *linkname);\n"
29352 "\n"
29353 msgstr ""
29354
29355 #. type: =head2
29356 #: ../src/guestfs-actions.pod:4348
29357 msgid "guestfs_ln_sf"
29358 msgstr ""
29359
29360 #. type: verbatim
29361 #: ../src/guestfs-actions.pod:4350
29362 #, no-wrap
29363 msgid ""
29364 " int\n"
29365 " guestfs_ln_sf (guestfs_h *g,\n"
29366 "                const char *target,\n"
29367 "                const char *linkname);\n"
29368 "\n"
29369 msgstr ""
29370
29371 #. type: =head2
29372 #: ../src/guestfs-actions.pod:4362
29373 msgid "guestfs_lremovexattr"
29374 msgstr ""
29375
29376 #. type: verbatim
29377 #: ../src/guestfs-actions.pod:4364
29378 #, no-wrap
29379 msgid ""
29380 " int\n"
29381 " guestfs_lremovexattr (guestfs_h *g,\n"
29382 "                       const char *xattr,\n"
29383 "                       const char *path);\n"
29384 "\n"
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:4369
29389 msgid ""
29390 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29391 "link, then it removes an extended attribute of the link itself."
29392 msgstr ""
29393
29394 #. type: =head2
29395 #: ../src/guestfs-actions.pod:4377
29396 msgid "guestfs_ls"
29397 msgstr ""
29398
29399 #. type: verbatim
29400 #: ../src/guestfs-actions.pod:4379
29401 #, no-wrap
29402 msgid ""
29403 " char **\n"
29404 " guestfs_ls (guestfs_h *g,\n"
29405 "             const char *directory);\n"
29406 "\n"
29407 msgstr ""
29408
29409 #. type: textblock
29410 #: ../src/guestfs-actions.pod:4387
29411 msgid ""
29412 "This command is mostly useful for interactive sessions.  Programs should "
29413 "probably use C<guestfs_readdir> instead."
29414 msgstr ""
29415
29416 #. type: =head2
29417 #: ../src/guestfs-actions.pod:4396
29418 msgid "guestfs_lsetxattr"
29419 msgstr ""
29420
29421 #. type: verbatim
29422 #: ../src/guestfs-actions.pod:4398
29423 #, no-wrap
29424 msgid ""
29425 " int\n"
29426 " guestfs_lsetxattr (guestfs_h *g,\n"
29427 "                    const char *xattr,\n"
29428 "                    const char *val,\n"
29429 "                    int vallen,\n"
29430 "                    const char *path);\n"
29431 "\n"
29432 msgstr ""
29433
29434 #. type: textblock
29435 #: ../src/guestfs-actions.pod:4405
29436 msgid ""
29437 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29438 "then it sets an extended attribute of the link itself."
29439 msgstr ""
29440
29441 #. type: =head2
29442 #: ../src/guestfs-actions.pod:4413
29443 msgid "guestfs_lstat"
29444 msgstr ""
29445
29446 #. type: verbatim
29447 #: ../src/guestfs-actions.pod:4415
29448 #, no-wrap
29449 msgid ""
29450 " struct guestfs_stat *\n"
29451 " guestfs_lstat (guestfs_h *g,\n"
29452 "                const char *path);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: textblock
29457 #: ../src/guestfs-actions.pod:4421
29458 msgid ""
29459 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29460 "link, then the link is stat-ed, not the file it refers to."
29461 msgstr ""
29462
29463 #. type: textblock
29464 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
29465 msgid ""
29466 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29467 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29468 msgstr ""
29469
29470 #. type: textblock
29471 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
29472 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
29473 msgid "(Added in 0.9.2)"
29474 msgstr ""
29475
29476 #. type: =head2
29477 #: ../src/guestfs-actions.pod:4433
29478 msgid "guestfs_lstatlist"
29479 msgstr ""
29480
29481 #. type: verbatim
29482 #: ../src/guestfs-actions.pod:4435
29483 #, no-wrap
29484 msgid ""
29485 " struct guestfs_stat_list *\n"
29486 " guestfs_lstatlist (guestfs_h *g,\n"
29487 "                    const char *path,\n"
29488 "                    char *const *names);\n"
29489 "\n"
29490 msgstr ""
29491
29492 #. type: textblock
29493 #: ../src/guestfs-actions.pod:4440
29494 msgid ""
29495 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29496 "files, where all files are in the directory C<path>.  C<names> is the list "
29497 "of files from this directory."
29498 msgstr ""
29499
29500 #. type: textblock
29501 #: ../src/guestfs-actions.pod:4449
29502 msgid ""
29503 "This call is intended for programs that want to efficiently list a directory "
29504 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29505 "for a similarly efficient call for getting extended attributes.  Very long "
29506 "directory listings might cause the protocol message size to be exceeded, "
29507 "causing this call to fail.  The caller must split up such requests into "
29508 "smaller groups of names."
29509 msgstr ""
29510
29511 #. type: textblock
29512 #: ../src/guestfs-actions.pod:4457
29513 msgid ""
29514 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29515 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29516 msgstr ""
29517
29518 #. type: =head2
29519 #: ../src/guestfs-actions.pod:4463
29520 msgid "guestfs_luks_add_key"
29521 msgstr ""
29522
29523 #. type: verbatim
29524 #: ../src/guestfs-actions.pod:4465
29525 #, no-wrap
29526 msgid ""
29527 " int\n"
29528 " guestfs_luks_add_key (guestfs_h *g,\n"
29529 "                       const char *device,\n"
29530 "                       const char *key,\n"
29531 "                       const char *newkey,\n"
29532 "                       int keyslot);\n"
29533 "\n"
29534 msgstr ""
29535
29536 #. type: textblock
29537 #: ../src/guestfs-actions.pod:4477
29538 msgid ""
29539 "Note that if C<keyslot> already contains a key, then this command will "
29540 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29541 msgstr ""
29542
29543 #. type: textblock
29544 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
29545 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
29546 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
29547 msgid ""
29548 "This function takes a key or passphrase parameter which could contain "
29549 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29550 "information."
29551 msgstr ""
29552
29553 #. type: textblock
29554 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
29555 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
29556 msgid "(Added in 1.5.2)"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:4489
29561 msgid "guestfs_luks_close"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:4491
29566 #, no-wrap
29567 msgid ""
29568 " int\n"
29569 " guestfs_luks_close (guestfs_h *g,\n"
29570 "                     const char *device);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:4495
29576 msgid ""
29577 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29578 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29579 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29580 "underlying block device."
29581 msgstr ""
29582
29583 #. type: textblock
29584 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
29585 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
29586 #: ../src/guestfs-actions.pod:4713
29587 msgid "(Added in 1.5.1)"
29588 msgstr ""
29589
29590 #. type: =head2
29591 #: ../src/guestfs-actions.pod:4505
29592 msgid "guestfs_luks_format"
29593 msgstr ""
29594
29595 #. type: verbatim
29596 #: ../src/guestfs-actions.pod:4507
29597 #, no-wrap
29598 msgid ""
29599 " int\n"
29600 " guestfs_luks_format (guestfs_h *g,\n"
29601 "                      const char *device,\n"
29602 "                      const char *key,\n"
29603 "                      int keyslot);\n"
29604 "\n"
29605 msgstr ""
29606
29607 #. type: =head2
29608 #: ../src/guestfs-actions.pod:4526
29609 msgid "guestfs_luks_format_cipher"
29610 msgstr ""
29611
29612 #. type: verbatim
29613 #: ../src/guestfs-actions.pod:4528
29614 #, no-wrap
29615 msgid ""
29616 " int\n"
29617 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29618 "                             const char *device,\n"
29619 "                             const char *key,\n"
29620 "                             int keyslot,\n"
29621 "                             const char *cipher);\n"
29622 "\n"
29623 msgstr ""
29624
29625 #. type: textblock
29626 #: ../src/guestfs-actions.pod:4535
29627 msgid ""
29628 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29629 "set the C<cipher> used."
29630 msgstr ""
29631
29632 #. type: =head2
29633 #: ../src/guestfs-actions.pod:4546
29634 msgid "guestfs_luks_kill_slot"
29635 msgstr ""
29636
29637 #. type: verbatim
29638 #: ../src/guestfs-actions.pod:4548
29639 #, no-wrap
29640 msgid ""
29641 " int\n"
29642 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29643 "                         const char *device,\n"
29644 "                         const char *key,\n"
29645 "                         int keyslot);\n"
29646 "\n"
29647 msgstr ""
29648
29649 #. type: =head2
29650 #: ../src/guestfs-actions.pod:4566
29651 msgid "guestfs_luks_open"
29652 msgstr ""
29653
29654 #. type: verbatim
29655 #: ../src/guestfs-actions.pod:4568
29656 #, no-wrap
29657 msgid ""
29658 " int\n"
29659 " guestfs_luks_open (guestfs_h *g,\n"
29660 "                    const char *device,\n"
29661 "                    const char *key,\n"
29662 "                    const char *mapname);\n"
29663 "\n"
29664 msgstr ""
29665
29666 #. type: textblock
29667 #: ../src/guestfs-actions.pod:4586
29668 msgid ""
29669 "If this block device contains LVM volume groups, then calling "
29670 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29671 "visible."
29672 msgstr ""
29673
29674 #. type: textblock
29675 #: ../src/guestfs-actions.pod:4590
29676 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29677 msgstr ""
29678
29679 #. type: =head2
29680 #: ../src/guestfs-actions.pod:4601
29681 msgid "guestfs_luks_open_ro"
29682 msgstr ""
29683
29684 #. type: verbatim
29685 #: ../src/guestfs-actions.pod:4603
29686 #, no-wrap
29687 msgid ""
29688 " int\n"
29689 " guestfs_luks_open_ro (guestfs_h *g,\n"
29690 "                       const char *device,\n"
29691 "                       const char *key,\n"
29692 "                       const char *mapname);\n"
29693 "\n"
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-actions.pod:4609
29698 msgid ""
29699 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29700 "created."
29701 msgstr ""
29702
29703 #. type: =head2
29704 #: ../src/guestfs-actions.pod:4620
29705 msgid "guestfs_lvcreate"
29706 msgstr ""
29707
29708 #. type: verbatim
29709 #: ../src/guestfs-actions.pod:4622
29710 #, no-wrap
29711 msgid ""
29712 " int\n"
29713 " guestfs_lvcreate (guestfs_h *g,\n"
29714 "                   const char *logvol,\n"
29715 "                   const char *volgroup,\n"
29716 "                   int mbytes);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: =head2
29721 #: ../src/guestfs-actions.pod:4635
29722 msgid "guestfs_lvm_canonical_lv_name"
29723 msgstr ""
29724
29725 #. type: verbatim
29726 #: ../src/guestfs-actions.pod:4637
29727 #, no-wrap
29728 msgid ""
29729 " char *\n"
29730 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29731 "                                const char *lvname);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: textblock
29736 #: ../src/guestfs-actions.pod:4648
29737 msgid "See also C<guestfs_is_lv>."
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:4653
29742 msgid "(Added in 1.5.24)"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:4655
29747 msgid "guestfs_lvm_clear_filter"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:4657
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29756 "\n"
29757 msgstr ""
29758
29759 #. type: textblock
29760 #: ../src/guestfs-actions.pod:4660
29761 msgid ""
29762 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29763 "see every block device."
29764 msgstr ""
29765
29766 #. type: =head2
29767 #: ../src/guestfs-actions.pod:4670
29768 msgid "guestfs_lvm_remove_all"
29769 msgstr ""
29770
29771 #. type: verbatim
29772 #: ../src/guestfs-actions.pod:4672
29773 #, no-wrap
29774 msgid ""
29775 " int\n"
29776 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29777 "\n"
29778 msgstr ""
29779
29780 #. type: =head2
29781 #: ../src/guestfs-actions.pod:4682
29782 msgid "guestfs_lvm_set_filter"
29783 msgstr ""
29784
29785 #. type: verbatim
29786 #: ../src/guestfs-actions.pod:4684
29787 #, no-wrap
29788 msgid ""
29789 " int\n"
29790 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29791 "                         char *const *devices);\n"
29792 "\n"
29793 msgstr ""
29794
29795 #. type: =head2
29796 #: ../src/guestfs-actions.pod:4715
29797 msgid "guestfs_lvremove"
29798 msgstr ""
29799
29800 #. type: verbatim
29801 #: ../src/guestfs-actions.pod:4717
29802 #, no-wrap
29803 msgid ""
29804 " int\n"
29805 " guestfs_lvremove (guestfs_h *g,\n"
29806 "                   const char *device);\n"
29807 "\n"
29808 msgstr ""
29809
29810 #. type: textblock
29811 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
29812 #: ../src/guestfs-actions.pod:7977
29813 msgid "(Added in 1.0.13)"
29814 msgstr ""
29815
29816 #. type: =head2
29817 #: ../src/guestfs-actions.pod:4731
29818 msgid "guestfs_lvrename"
29819 msgstr ""
29820
29821 #. type: verbatim
29822 #: ../src/guestfs-actions.pod:4733
29823 #, no-wrap
29824 msgid ""
29825 " int\n"
29826 " guestfs_lvrename (guestfs_h *g,\n"
29827 "                   const char *logvol,\n"
29828 "                   const char *newlogvol);\n"
29829 "\n"
29830 msgstr ""
29831
29832 #. type: textblock
29833 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
29834 msgid "(Added in 1.0.83)"
29835 msgstr ""
29836
29837 #. type: =head2
29838 #: ../src/guestfs-actions.pod:4744
29839 msgid "guestfs_lvresize"
29840 msgstr ""
29841
29842 #. type: verbatim
29843 #: ../src/guestfs-actions.pod:4746
29844 #, no-wrap
29845 msgid ""
29846 " int\n"
29847 " guestfs_lvresize (guestfs_h *g,\n"
29848 "                   const char *device,\n"
29849 "                   int mbytes);\n"
29850 "\n"
29851 msgstr ""
29852
29853 #. type: =head2
29854 #: ../src/guestfs-actions.pod:4759
29855 msgid "guestfs_lvresize_free"
29856 msgstr ""
29857
29858 #. type: verbatim
29859 #: ../src/guestfs-actions.pod:4761
29860 #, no-wrap
29861 msgid ""
29862 " int\n"
29863 " guestfs_lvresize_free (guestfs_h *g,\n"
29864 "                        const char *lv,\n"
29865 "                        int percent);\n"
29866 "\n"
29867 msgstr ""
29868
29869 #. type: textblock
29870 #: ../src/guestfs-actions.pod:4774
29871 msgid "(Added in 1.3.3)"
29872 msgstr ""
29873
29874 #. type: =head2
29875 #: ../src/guestfs-actions.pod:4776
29876 msgid "guestfs_lvs"
29877 msgstr ""
29878
29879 #. type: verbatim
29880 #: ../src/guestfs-actions.pod:4778
29881 #, no-wrap
29882 msgid ""
29883 " char **\n"
29884 " guestfs_lvs (guestfs_h *g);\n"
29885 "\n"
29886 msgstr ""
29887
29888 #. type: textblock
29889 #: ../src/guestfs-actions.pod:4787
29890 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29891 msgstr ""
29892
29893 #. type: =head2
29894 #: ../src/guestfs-actions.pod:4795
29895 msgid "guestfs_lvs_full"
29896 msgstr ""
29897
29898 #. type: verbatim
29899 #: ../src/guestfs-actions.pod:4797
29900 #, no-wrap
29901 msgid ""
29902 " struct guestfs_lvm_lv_list *\n"
29903 " guestfs_lvs_full (guestfs_h *g);\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../src/guestfs-actions.pod:4803
29909 msgid ""
29910 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29911 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29912 msgstr ""
29913
29914 #. type: =head2
29915 #: ../src/guestfs-actions.pod:4809
29916 msgid "guestfs_lvuuid"
29917 msgstr ""
29918
29919 #. type: verbatim
29920 #: ../src/guestfs-actions.pod:4811
29921 #, no-wrap
29922 msgid ""
29923 " char *\n"
29924 " guestfs_lvuuid (guestfs_h *g,\n"
29925 "                 const char *device);\n"
29926 "\n"
29927 msgstr ""
29928
29929 #. type: =head2
29930 #: ../src/guestfs-actions.pod:4822
29931 msgid "guestfs_lxattrlist"
29932 msgstr ""
29933
29934 #. type: verbatim
29935 #: ../src/guestfs-actions.pod:4824
29936 #, no-wrap
29937 msgid ""
29938 " struct guestfs_xattr_list *\n"
29939 " guestfs_lxattrlist (guestfs_h *g,\n"
29940 "                     const char *path,\n"
29941 "                     char *const *names);\n"
29942 "\n"
29943 msgstr ""
29944
29945 #. type: textblock
29946 #: ../src/guestfs-actions.pod:4843
29947 msgid ""
29948 "This call is intended for programs that want to efficiently list a directory "
29949 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29950 "a similarly efficient call for getting standard stats.  Very long directory "
29951 "listings might cause the protocol message size to be exceeded, causing this "
29952 "call to fail.  The caller must split up such requests into smaller groups of "
29953 "names."
29954 msgstr ""
29955
29956 #. type: =head2
29957 #: ../src/guestfs-actions.pod:4857
29958 msgid "guestfs_mkdir"
29959 msgstr ""
29960
29961 #. type: verbatim
29962 #: ../src/guestfs-actions.pod:4859
29963 #, no-wrap
29964 msgid ""
29965 " int\n"
29966 " guestfs_mkdir (guestfs_h *g,\n"
29967 "                const char *path);\n"
29968 "\n"
29969 msgstr ""
29970
29971 #. type: =head2
29972 #: ../src/guestfs-actions.pod:4869
29973 msgid "guestfs_mkdir_mode"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../src/guestfs-actions.pod:4871
29978 #, no-wrap
29979 msgid ""
29980 " int\n"
29981 " guestfs_mkdir_mode (guestfs_h *g,\n"
29982 "                     const char *path,\n"
29983 "                     int mode);\n"
29984 "\n"
29985 msgstr ""
29986
29987 #. type: textblock
29988 #: ../src/guestfs-actions.pod:4883
29989 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29990 msgstr ""
29991
29992 #. type: =head2
29993 #: ../src/guestfs-actions.pod:4889
29994 msgid "guestfs_mkdir_p"
29995 msgstr ""
29996
29997 #. type: verbatim
29998 #: ../src/guestfs-actions.pod:4891
29999 #, no-wrap
30000 msgid ""
30001 " int\n"
30002 " guestfs_mkdir_p (guestfs_h *g,\n"
30003 "                  const char *path);\n"
30004 "\n"
30005 msgstr ""
30006
30007 #. type: =head2
30008 #: ../src/guestfs-actions.pod:4902
30009 msgid "guestfs_mkdtemp"
30010 msgstr ""
30011
30012 #. type: verbatim
30013 #: ../src/guestfs-actions.pod:4904
30014 #, no-wrap
30015 msgid ""
30016 " char *\n"
30017 " guestfs_mkdtemp (guestfs_h *g,\n"
30018 "                  const char *template);\n"
30019 "\n"
30020 msgstr ""
30021
30022 #. type: =head2
30023 #: ../src/guestfs-actions.pod:4932
30024 msgid "guestfs_mke2fs_J"
30025 msgstr ""
30026
30027 #. type: verbatim
30028 #: ../src/guestfs-actions.pod:4934
30029 #, no-wrap
30030 msgid ""
30031 " int\n"
30032 " guestfs_mke2fs_J (guestfs_h *g,\n"
30033 "                   const char *fstype,\n"
30034 "                   int blocksize,\n"
30035 "                   const char *device,\n"
30036 "                   const char *journal);\n"
30037 "\n"
30038 msgstr ""
30039
30040 #. type: textblock
30041 #: ../src/guestfs-actions.pod:4947
30042 msgid "See also C<guestfs_mke2journal>."
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
30047 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
30048 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
30049 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
30050 msgid "(Added in 1.0.68)"
30051 msgstr ""
30052
30053 #. type: =head2
30054 #: ../src/guestfs-actions.pod:4953
30055 msgid "guestfs_mke2fs_JL"
30056 msgstr ""
30057
30058 #. type: verbatim
30059 #: ../src/guestfs-actions.pod:4955
30060 #, no-wrap
30061 msgid ""
30062 " int\n"
30063 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30064 "                    const char *fstype,\n"
30065 "                    int blocksize,\n"
30066 "                    const char *device,\n"
30067 "                    const char *label);\n"
30068 "\n"
30069 msgstr ""
30070
30071 #. type: textblock
30072 #: ../src/guestfs-actions.pod:4965
30073 msgid "See also C<guestfs_mke2journal_L>."
30074 msgstr ""
30075
30076 #. type: =head2
30077 #: ../src/guestfs-actions.pod:4971
30078 msgid "guestfs_mke2fs_JU"
30079 msgstr ""
30080
30081 #. type: verbatim
30082 #: ../src/guestfs-actions.pod:4973
30083 #, no-wrap
30084 msgid ""
30085 " int\n"
30086 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30087 "                    const char *fstype,\n"
30088 "                    int blocksize,\n"
30089 "                    const char *device,\n"
30090 "                    const char *uuid);\n"
30091 "\n"
30092 msgstr ""
30093
30094 #. type: textblock
30095 #: ../src/guestfs-actions.pod:4983
30096 msgid "See also C<guestfs_mke2journal_U>."
30097 msgstr ""
30098
30099 #. type: =head2
30100 #: ../src/guestfs-actions.pod:4989
30101 msgid "guestfs_mke2journal"
30102 msgstr ""
30103
30104 #. type: verbatim
30105 #: ../src/guestfs-actions.pod:4991
30106 #, no-wrap
30107 msgid ""
30108 " int\n"
30109 " guestfs_mke2journal (guestfs_h *g,\n"
30110 "                      int blocksize,\n"
30111 "                      const char *device);\n"
30112 "\n"
30113 msgstr ""
30114
30115 #. type: =head2
30116 #: ../src/guestfs-actions.pod:5005
30117 msgid "guestfs_mke2journal_L"
30118 msgstr ""
30119
30120 #. type: verbatim
30121 #: ../src/guestfs-actions.pod:5007
30122 #, no-wrap
30123 msgid ""
30124 " int\n"
30125 " guestfs_mke2journal_L (guestfs_h *g,\n"
30126 "                        int blocksize,\n"
30127 "                        const char *label,\n"
30128 "                        const char *device);\n"
30129 "\n"
30130 msgstr ""
30131
30132 #. type: =head2
30133 #: ../src/guestfs-actions.pod:5019
30134 msgid "guestfs_mke2journal_U"
30135 msgstr ""
30136
30137 #. type: verbatim
30138 #: ../src/guestfs-actions.pod:5021
30139 #, no-wrap
30140 msgid ""
30141 " int\n"
30142 " guestfs_mke2journal_U (guestfs_h *g,\n"
30143 "                        int blocksize,\n"
30144 "                        const char *uuid,\n"
30145 "                        const char *device);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: =head2
30150 #: ../src/guestfs-actions.pod:5033
30151 msgid "guestfs_mkfifo"
30152 msgstr ""
30153
30154 #. type: verbatim
30155 #: ../src/guestfs-actions.pod:5035
30156 #, no-wrap
30157 msgid ""
30158 " int\n"
30159 " guestfs_mkfifo (guestfs_h *g,\n"
30160 "                 int mode,\n"
30161 "                 const char *path);\n"
30162 "\n"
30163 msgstr ""
30164
30165 #. type: textblock
30166 #: ../src/guestfs-actions.pod:5040
30167 msgid ""
30168 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30169 "is just a convenient wrapper around C<guestfs_mknod>."
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:5050
30174 msgid "guestfs_mkfs"
30175 msgstr ""
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:5052
30179 #, no-wrap
30180 msgid ""
30181 " int\n"
30182 " guestfs_mkfs (guestfs_h *g,\n"
30183 "               const char *fstype,\n"
30184 "               const char *device);\n"
30185 "\n"
30186 msgstr ""
30187
30188 #. type: =head2
30189 #: ../src/guestfs-actions.pod:5065
30190 msgid "guestfs_mkfs_b"
30191 msgstr ""
30192
30193 #. type: verbatim
30194 #: ../src/guestfs-actions.pod:5067
30195 #, no-wrap
30196 msgid ""
30197 " int\n"
30198 " guestfs_mkfs_b (guestfs_h *g,\n"
30199 "                 const char *fstype,\n"
30200 "                 int blocksize,\n"
30201 "                 const char *device);\n"
30202 "\n"
30203 msgstr ""
30204
30205 #. type: textblock
30206 #: ../src/guestfs-actions.pod:5073
30207 msgid ""
30208 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30209 "call instead."
30210 msgstr ""
30211
30212 #. type: textblock
30213 #: ../src/guestfs-actions.pod:5080
30214 msgid ""
30215 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30216 "block size of the resulting filesystem.  Supported block sizes depend on the "
30217 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30218 msgstr ""
30219
30220 #. type: =head2
30221 #: ../src/guestfs-actions.pod:5092
30222 msgid "guestfs_mkfs_opts"
30223 msgstr ""
30224
30225 #. type: verbatim
30226 #: ../src/guestfs-actions.pod:5094
30227 #, no-wrap
30228 msgid ""
30229 " int\n"
30230 " guestfs_mkfs_opts (guestfs_h *g,\n"
30231 "                    const char *fstype,\n"
30232 "                    const char *device,\n"
30233 "                    ...);\n"
30234 "\n"
30235 msgstr ""
30236
30237 #. type: verbatim
30238 #: ../src/guestfs-actions.pod:5105
30239 #, no-wrap
30240 msgid ""
30241 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30242 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30243 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30244 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30245 "\n"
30246 msgstr ""
30247
30248 #. type: textblock
30249 #: ../src/guestfs-actions.pod:5153
30250 msgid "(Added in 1.7.19)"
30251 msgstr ""
30252
30253 #. type: =head2
30254 #: ../src/guestfs-actions.pod:5155
30255 msgid "guestfs_mkfs_opts_va"
30256 msgstr ""
30257
30258 #. type: verbatim
30259 #: ../src/guestfs-actions.pod:5157
30260 #, no-wrap
30261 msgid ""
30262 " int\n"
30263 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30264 "                       const char *fstype,\n"
30265 "                       const char *device,\n"
30266 "                       va_list args);\n"
30267 "\n"
30268 msgstr ""
30269
30270 #. type: textblock
30271 #: ../src/guestfs-actions.pod:5163
30272 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30273 msgstr ""
30274
30275 #. type: =head2
30276 #: ../src/guestfs-actions.pod:5167
30277 msgid "guestfs_mkfs_opts_argv"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs-actions.pod:5169
30282 #, no-wrap
30283 msgid ""
30284 " int\n"
30285 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30286 "                         const char *fstype,\n"
30287 "                         const char *device,\n"
30288 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30289 "\n"
30290 msgstr ""
30291
30292 #. type: textblock
30293 #: ../src/guestfs-actions.pod:5175
30294 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30295 msgstr ""
30296
30297 #. type: =head2
30298 #: ../src/guestfs-actions.pod:5179
30299 msgid "guestfs_mkmountpoint"
30300 msgstr ""
30301
30302 #. type: verbatim
30303 #: ../src/guestfs-actions.pod:5181
30304 #, no-wrap
30305 msgid ""
30306 " int\n"
30307 " guestfs_mkmountpoint (guestfs_h *g,\n"
30308 "                       const char *exemptpath);\n"
30309 "\n"
30310 msgstr ""
30311
30312 #. type: textblock
30313 #: ../src/guestfs-actions.pod:5185
30314 msgid ""
30315 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30316 "that can be used to create extra mountpoints before mounting the first "
30317 "filesystem."
30318 msgstr ""
30319
30320 #. type: textblock
30321 #: ../src/guestfs-actions.pod:5209
30322 msgid ""
30323 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30324 "may get unexpected errors if you try to mix these calls.  It is safest to "
30325 "manually unmount filesystems and remove mountpoints after use."
30326 msgstr ""
30327
30328 #. type: textblock
30329 #: ../src/guestfs-actions.pod:5213
30330 msgid ""
30331 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30332 "first, so for this to work for manual mountpoints, you must ensure that the "
30333 "innermost mountpoints have the longest pathnames, as in the example code "
30334 "above."
30335 msgstr ""
30336
30337 #. type: textblock
30338 #: ../src/guestfs-actions.pod:5220
30339 msgid ""
30340 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30341 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30342 "can also trigger these issues."
30343 msgstr ""
30344
30345 #. type: textblock
30346 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
30347 #: ../src/guestfs-actions.pod:6559
30348 msgid "(Added in 1.0.62)"
30349 msgstr ""
30350
30351 #. type: =head2
30352 #: ../src/guestfs-actions.pod:5228
30353 msgid "guestfs_mknod"
30354 msgstr ""
30355
30356 #. type: verbatim
30357 #: ../src/guestfs-actions.pod:5230
30358 #, no-wrap
30359 msgid ""
30360 " int\n"
30361 " guestfs_mknod (guestfs_h *g,\n"
30362 "                int mode,\n"
30363 "                int devmajor,\n"
30364 "                int devminor,\n"
30365 "                const char *path);\n"
30366 "\n"
30367 msgstr ""
30368
30369 #. type: textblock
30370 #: ../src/guestfs-actions.pod:5245
30371 msgid ""
30372 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30373 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30374 "regular file).  These constants are available in the standard Linux header "
30375 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30376 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30377 "the appropriate constant for you."
30378 msgstr ""
30379
30380 #. type: =head2
30381 #: ../src/guestfs-actions.pod:5259
30382 msgid "guestfs_mknod_b"
30383 msgstr ""
30384
30385 #. type: verbatim
30386 #: ../src/guestfs-actions.pod:5261
30387 #, no-wrap
30388 msgid ""
30389 " int\n"
30390 " guestfs_mknod_b (guestfs_h *g,\n"
30391 "                  int mode,\n"
30392 "                  int devmajor,\n"
30393 "                  int devminor,\n"
30394 "                  const char *path);\n"
30395 "\n"
30396 msgstr ""
30397
30398 #. type: textblock
30399 #: ../src/guestfs-actions.pod:5268
30400 msgid ""
30401 "This call creates a block device node called C<path> with mode C<mode> and "
30402 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30403 "wrapper around C<guestfs_mknod>."
30404 msgstr ""
30405
30406 #. type: =head2
30407 #: ../src/guestfs-actions.pod:5278
30408 msgid "guestfs_mknod_c"
30409 msgstr ""
30410
30411 #. type: verbatim
30412 #: ../src/guestfs-actions.pod:5280
30413 #, no-wrap
30414 msgid ""
30415 " int\n"
30416 " guestfs_mknod_c (guestfs_h *g,\n"
30417 "                  int mode,\n"
30418 "                  int devmajor,\n"
30419 "                  int devminor,\n"
30420 "                  const char *path);\n"
30421 "\n"
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs-actions.pod:5287
30426 msgid ""
30427 "This call creates a char device node called C<path> with mode C<mode> and "
30428 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30429 "wrapper around C<guestfs_mknod>."
30430 msgstr ""
30431
30432 #. type: =head2
30433 #: ../src/guestfs-actions.pod:5297
30434 msgid "guestfs_mkswap"
30435 msgstr ""
30436
30437 #. type: verbatim
30438 #: ../src/guestfs-actions.pod:5299
30439 #, no-wrap
30440 msgid ""
30441 " int\n"
30442 " guestfs_mkswap (guestfs_h *g,\n"
30443 "                 const char *device);\n"
30444 "\n"
30445 msgstr ""
30446
30447 #. type: =head2
30448 #: ../src/guestfs-actions.pod:5309
30449 msgid "guestfs_mkswap_L"
30450 msgstr ""
30451
30452 #. type: verbatim
30453 #: ../src/guestfs-actions.pod:5311
30454 #, no-wrap
30455 msgid ""
30456 " int\n"
30457 " guestfs_mkswap_L (guestfs_h *g,\n"
30458 "                   const char *label,\n"
30459 "                   const char *device);\n"
30460 "\n"
30461 msgstr ""
30462
30463 #. type: =head2
30464 #: ../src/guestfs-actions.pod:5326
30465 msgid "guestfs_mkswap_U"
30466 msgstr ""
30467
30468 #. type: verbatim
30469 #: ../src/guestfs-actions.pod:5328
30470 #, no-wrap
30471 msgid ""
30472 " int\n"
30473 " guestfs_mkswap_U (guestfs_h *g,\n"
30474 "                   const char *uuid,\n"
30475 "                   const char *device);\n"
30476 "\n"
30477 msgstr ""
30478
30479 #. type: =head2
30480 #: ../src/guestfs-actions.pod:5339
30481 msgid "guestfs_mkswap_file"
30482 msgstr ""
30483
30484 #. type: verbatim
30485 #: ../src/guestfs-actions.pod:5341
30486 #, no-wrap
30487 msgid ""
30488 " int\n"
30489 " guestfs_mkswap_file (guestfs_h *g,\n"
30490 "                      const char *path);\n"
30491 "\n"
30492 msgstr ""
30493
30494 #. type: textblock
30495 #: ../src/guestfs-actions.pod:5347
30496 msgid ""
30497 "This command just writes a swap file signature to an existing file.  To "
30498 "create the file itself, use something like C<guestfs_fallocate>."
30499 msgstr ""
30500
30501 #. type: =head2
30502 #: ../src/guestfs-actions.pod:5354
30503 msgid "guestfs_modprobe"
30504 msgstr ""
30505
30506 #. type: verbatim
30507 #: ../src/guestfs-actions.pod:5356
30508 #, no-wrap
30509 msgid ""
30510 " int\n"
30511 " guestfs_modprobe (guestfs_h *g,\n"
30512 "                   const char *modulename);\n"
30513 "\n"
30514 msgstr ""
30515
30516 #. type: =head2
30517 #: ../src/guestfs-actions.pod:5369
30518 msgid "guestfs_mount"
30519 msgstr ""
30520
30521 #. type: verbatim
30522 #: ../src/guestfs-actions.pod:5371
30523 #, no-wrap
30524 msgid ""
30525 " int\n"
30526 " guestfs_mount (guestfs_h *g,\n"
30527 "                const char *device,\n"
30528 "                const char *mountpoint);\n"
30529 "\n"
30530 msgstr ""
30531
30532 #. type: textblock
30533 #: ../src/guestfs-actions.pod:5390
30534 msgid ""
30535 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30536 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30537 "problems for users.  If your program might need to work with older versions "
30538 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30539 "for the first parameter if you don't want any options)."
30540 msgstr ""
30541
30542 #. type: =head2
30543 #: ../src/guestfs-actions.pod:5401
30544 msgid "guestfs_mount_9p"
30545 msgstr ""
30546
30547 #. type: verbatim
30548 #: ../src/guestfs-actions.pod:5403
30549 #, no-wrap
30550 msgid ""
30551 " int\n"
30552 " guestfs_mount_9p (guestfs_h *g,\n"
30553 "                   const char *mounttag,\n"
30554 "                   const char *mountpoint,\n"
30555 "                   ...);\n"
30556 "\n"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs-actions.pod:5414
30561 #, no-wrap
30562 msgid ""
30563 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30564 "\n"
30565 msgstr ""
30566
30567 #. type: =head2
30568 #: ../src/guestfs-actions.pod:5427
30569 msgid "guestfs_mount_9p_va"
30570 msgstr ""
30571
30572 #. type: verbatim
30573 #: ../src/guestfs-actions.pod:5429
30574 #, no-wrap
30575 msgid ""
30576 " int\n"
30577 " guestfs_mount_9p_va (guestfs_h *g,\n"
30578 "                      const char *mounttag,\n"
30579 "                      const char *mountpoint,\n"
30580 "                      va_list args);\n"
30581 "\n"
30582 msgstr ""
30583
30584 #. type: textblock
30585 #: ../src/guestfs-actions.pod:5435
30586 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30587 msgstr ""
30588
30589 #. type: =head2
30590 #: ../src/guestfs-actions.pod:5439
30591 msgid "guestfs_mount_9p_argv"
30592 msgstr ""
30593
30594 #. type: verbatim
30595 #: ../src/guestfs-actions.pod:5441
30596 #, no-wrap
30597 msgid ""
30598 " int\n"
30599 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30600 "                        const char *mounttag,\n"
30601 "                        const char *mountpoint,\n"
30602 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30603 "\n"
30604 msgstr ""
30605
30606 #. type: textblock
30607 #: ../src/guestfs-actions.pod:5447
30608 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30609 msgstr ""
30610
30611 #. type: =head2
30612 #: ../src/guestfs-actions.pod:5451
30613 msgid "guestfs_mount_loop"
30614 msgstr ""
30615
30616 #. type: verbatim
30617 #: ../src/guestfs-actions.pod:5453
30618 #, no-wrap
30619 msgid ""
30620 " int\n"
30621 " guestfs_mount_loop (guestfs_h *g,\n"
30622 "                     const char *file,\n"
30623 "                     const char *mountpoint);\n"
30624 "\n"
30625 msgstr ""
30626
30627 #. type: =head2
30628 #: ../src/guestfs-actions.pod:5466
30629 msgid "guestfs_mount_options"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../src/guestfs-actions.pod:5468
30634 #, no-wrap
30635 msgid ""
30636 " int\n"
30637 " guestfs_mount_options (guestfs_h *g,\n"
30638 "                        const char *options,\n"
30639 "                        const char *device,\n"
30640 "                        const char *mountpoint);\n"
30641 "\n"
30642 msgstr ""
30643
30644 #. type: textblock
30645 #: ../src/guestfs-actions.pod:5474
30646 msgid ""
30647 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30648 "the mount options as for the L<mount(8)> I<-o> flag."
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
30653 #: ../src/guestfs-actions.pod:5515
30654 msgid "(Added in 1.0.10)"
30655 msgstr ""
30656
30657 #. type: =head2
30658 #: ../src/guestfs-actions.pod:5486
30659 msgid "guestfs_mount_ro"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-actions.pod:5488
30664 #, no-wrap
30665 msgid ""
30666 " int\n"
30667 " guestfs_mount_ro (guestfs_h *g,\n"
30668 "                   const char *device,\n"
30669 "                   const char *mountpoint);\n"
30670 "\n"
30671 msgstr ""
30672
30673 #. type: textblock
30674 #: ../src/guestfs-actions.pod:5493
30675 msgid ""
30676 "This is the same as the C<guestfs_mount> command, but it mounts the "
30677 "filesystem with the read-only (I<-o ro>) flag."
30678 msgstr ""
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:5500
30682 msgid "guestfs_mount_vfs"
30683 msgstr ""
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:5502
30687 #, no-wrap
30688 msgid ""
30689 " int\n"
30690 " guestfs_mount_vfs (guestfs_h *g,\n"
30691 "                    const char *options,\n"
30692 "                    const char *vfstype,\n"
30693 "                    const char *device,\n"
30694 "                    const char *mountpoint);\n"
30695 "\n"
30696 msgstr ""
30697
30698 #. type: textblock
30699 #: ../src/guestfs-actions.pod:5509
30700 msgid ""
30701 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30702 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30703 "t> flags."
30704 msgstr ""
30705
30706 #. type: =head2
30707 #: ../src/guestfs-actions.pod:5517
30708 msgid "guestfs_mountpoints"
30709 msgstr ""
30710
30711 #. type: verbatim
30712 #: ../src/guestfs-actions.pod:5519
30713 #, no-wrap
30714 msgid ""
30715 " char **\n"
30716 " guestfs_mountpoints (guestfs_h *g);\n"
30717 "\n"
30718 msgstr ""
30719
30720 #. type: textblock
30721 #: ../src/guestfs-actions.pod:5522
30722 msgid ""
30723 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30724 "devices.  This one returns a hash table (map) of device name to directory "
30725 "where the device is mounted."
30726 msgstr ""
30727
30728 #. type: =head2
30729 #: ../src/guestfs-actions.pod:5534
30730 msgid "guestfs_mounts"
30731 msgstr ""
30732
30733 #. type: verbatim
30734 #: ../src/guestfs-actions.pod:5536
30735 #, no-wrap
30736 msgid ""
30737 " char **\n"
30738 " guestfs_mounts (guestfs_h *g);\n"
30739 "\n"
30740 msgstr ""
30741
30742 #. type: textblock
30743 #: ../src/guestfs-actions.pod:5544
30744 msgid "See also: C<guestfs_mountpoints>"
30745 msgstr ""
30746
30747 #. type: =head2
30748 #: ../src/guestfs-actions.pod:5552
30749 msgid "guestfs_mv"
30750 msgstr ""
30751
30752 #. type: verbatim
30753 #: ../src/guestfs-actions.pod:5554
30754 #, no-wrap
30755 msgid ""
30756 " int\n"
30757 " guestfs_mv (guestfs_h *g,\n"
30758 "             const char *src,\n"
30759 "             const char *dest);\n"
30760 "\n"
30761 msgstr ""
30762
30763 #. type: =head2
30764 #: ../src/guestfs-actions.pod:5566
30765 msgid "guestfs_ntfs_3g_probe"
30766 msgstr ""
30767
30768 #. type: verbatim
30769 #: ../src/guestfs-actions.pod:5568
30770 #, no-wrap
30771 msgid ""
30772 " int\n"
30773 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30774 "                        int rw,\n"
30775 "                        const char *device);\n"
30776 "\n"
30777 msgstr ""
30778
30779 #. type: textblock
30780 #: ../src/guestfs-actions.pod:5587
30781 msgid "(Added in 1.0.43)"
30782 msgstr ""
30783
30784 #. type: =head2
30785 #: ../src/guestfs-actions.pod:5589
30786 msgid "guestfs_ntfsresize"
30787 msgstr ""
30788
30789 #. type: verbatim
30790 #: ../src/guestfs-actions.pod:5591
30791 #, no-wrap
30792 msgid ""
30793 " int\n"
30794 " guestfs_ntfsresize (guestfs_h *g,\n"
30795 "                     const char *device);\n"
30796 "\n"
30797 msgstr ""
30798
30799 #. type: textblock
30800 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
30801 msgid ""
30802 "I<This function is deprecated.> In new code, use the L</"
30803 "guestfs_ntfsresize_opts> call instead."
30804 msgstr ""
30805
30806 #. type: =head2
30807 #: ../src/guestfs-actions.pod:5619
30808 msgid "guestfs_ntfsresize_opts"
30809 msgstr ""
30810
30811 #. type: verbatim
30812 #: ../src/guestfs-actions.pod:5621
30813 #, no-wrap
30814 msgid ""
30815 " int\n"
30816 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30817 "                          const char *device,\n"
30818 "                          ...);\n"
30819 "\n"
30820 msgstr ""
30821
30822 #. type: verbatim
30823 #: ../src/guestfs-actions.pod:5631
30824 #, no-wrap
30825 msgid ""
30826 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30827 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30828 "\n"
30829 msgstr ""
30830
30831 #. type: textblock
30832 #: ../src/guestfs-actions.pod:5651
30833 msgid ""
30834 "After the resize operation, the filesystem is always marked as requiring a "
30835 "consistency check (for safety).  You have to boot into Windows to perform "
30836 "this check and clear this condition.  If you I<don't> set the C<force> "
30837 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30838 "times on a single filesystem without booting into Windows between each "
30839 "resize."
30840 msgstr ""
30841
30842 #. type: =head2
30843 #: ../src/guestfs-actions.pod:5666
30844 msgid "guestfs_ntfsresize_opts_va"
30845 msgstr ""
30846
30847 #. type: verbatim
30848 #: ../src/guestfs-actions.pod:5668
30849 #, no-wrap
30850 msgid ""
30851 " int\n"
30852 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30853 "                             const char *device,\n"
30854 "                             va_list args);\n"
30855 "\n"
30856 msgstr ""
30857
30858 #. type: textblock
30859 #: ../src/guestfs-actions.pod:5673
30860 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30861 msgstr ""
30862
30863 #. type: =head2
30864 #: ../src/guestfs-actions.pod:5677
30865 msgid "guestfs_ntfsresize_opts_argv"
30866 msgstr ""
30867
30868 #. type: verbatim
30869 #: ../src/guestfs-actions.pod:5679
30870 #, no-wrap
30871 msgid ""
30872 " int\n"
30873 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30874 "                               const char *device,\n"
30875 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30876 "\n"
30877 msgstr ""
30878
30879 #. type: textblock
30880 #: ../src/guestfs-actions.pod:5684
30881 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30882 msgstr ""
30883
30884 #. type: =head2
30885 #: ../src/guestfs-actions.pod:5688
30886 msgid "guestfs_ntfsresize_size"
30887 msgstr ""
30888
30889 #. type: verbatim
30890 #: ../src/guestfs-actions.pod:5690
30891 #, no-wrap
30892 msgid ""
30893 " int\n"
30894 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30895 "                          const char *device,\n"
30896 "                          int64_t size);\n"
30897 "\n"
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs-actions.pod:5702
30902 msgid ""
30903 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30904 "to specify the new size (in bytes) explicitly."
30905 msgstr ""
30906
30907 #. type: textblock
30908 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
30909 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
30910 #: ../src/guestfs-actions.pod:8134
30911 msgid "(Added in 1.3.14)"
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:5709
30916 msgid "guestfs_part_add"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:5711
30921 #, no-wrap
30922 msgid ""
30923 " int\n"
30924 " guestfs_part_add (guestfs_h *g,\n"
30925 "                   const char *device,\n"
30926 "                   const char *prlogex,\n"
30927 "                   int64_t startsect,\n"
30928 "                   int64_t endsect);\n"
30929 "\n"
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs-actions.pod:5718
30934 msgid ""
30935 "This command adds a partition to C<device>.  If there is no partition table "
30936 "on the device, call C<guestfs_part_init> first."
30937 msgstr ""
30938
30939 #. type: textblock
30940 #: ../src/guestfs-actions.pod:5730
30941 msgid ""
30942 "Creating a partition which covers the whole disk is not so easy.  Use "
30943 "C<guestfs_part_disk> to do that."
30944 msgstr ""
30945
30946 #. type: textblock
30947 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
30948 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
30949 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
30950 #: ../src/guestfs-actions.pod:6004
30951 msgid "(Added in 1.0.78)"
30952 msgstr ""
30953
30954 #. type: =head2
30955 #: ../src/guestfs-actions.pod:5737
30956 msgid "guestfs_part_del"
30957 msgstr ""
30958
30959 #. type: verbatim
30960 #: ../src/guestfs-actions.pod:5739
30961 #, no-wrap
30962 msgid ""
30963 " int\n"
30964 " guestfs_part_del (guestfs_h *g,\n"
30965 "                   const char *device,\n"
30966 "                   int partnum);\n"
30967 "\n"
30968 msgstr ""
30969
30970 #. type: =head2
30971 #: ../src/guestfs-actions.pod:5754
30972 msgid "guestfs_part_disk"
30973 msgstr ""
30974
30975 #. type: verbatim
30976 #: ../src/guestfs-actions.pod:5756
30977 #, no-wrap
30978 msgid ""
30979 " int\n"
30980 " guestfs_part_disk (guestfs_h *g,\n"
30981 "                    const char *device,\n"
30982 "                    const char *parttype);\n"
30983 "\n"
30984 msgstr ""
30985
30986 #. type: textblock
30987 #: ../src/guestfs-actions.pod:5761
30988 msgid ""
30989 "This command is simply a combination of C<guestfs_part_init> followed by "
30990 "C<guestfs_part_add> to create a single primary partition covering the whole "
30991 "disk."
30992 msgstr ""
30993
30994 #. type: textblock
30995 #: ../src/guestfs-actions.pod:5765
30996 msgid ""
30997 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30998 "possible values are described in C<guestfs_part_init>."
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:5772
31003 msgid "guestfs_part_get_bootable"
31004 msgstr ""
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:5774
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_part_get_bootable (guestfs_h *g,\n"
31012 "                            const char *device,\n"
31013 "                            int partnum);\n"
31014 "\n"
31015 msgstr ""
31016
31017 #. type: textblock
31018 #: ../src/guestfs-actions.pod:5782
31019 msgid "See also C<guestfs_part_set_bootable>."
31020 msgstr ""
31021
31022 #. type: =head2
31023 #: ../src/guestfs-actions.pod:5788
31024 msgid "guestfs_part_get_mbr_id"
31025 msgstr ""
31026
31027 #. type: verbatim
31028 #: ../src/guestfs-actions.pod:5790
31029 #, no-wrap
31030 msgid ""
31031 " int\n"
31032 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31033 "                          const char *device,\n"
31034 "                          int partnum);\n"
31035 "\n"
31036 msgstr ""
31037
31038 #. type: textblock
31039 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
31040 msgid ""
31041 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31042 "undefined results for other partition table types (see "
31043 "C<guestfs_part_get_parttype>)."
31044 msgstr ""
31045
31046 #. type: =head2
31047 #: ../src/guestfs-actions.pod:5806
31048 msgid "guestfs_part_get_parttype"
31049 msgstr ""
31050
31051 #. type: verbatim
31052 #: ../src/guestfs-actions.pod:5808
31053 #, no-wrap
31054 msgid ""
31055 " char *\n"
31056 " guestfs_part_get_parttype (guestfs_h *g,\n"
31057 "                            const char *device);\n"
31058 "\n"
31059 msgstr ""
31060
31061 #. type: textblock
31062 #: ../src/guestfs-actions.pod:5815
31063 msgid ""
31064 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31065 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31066 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31067 msgstr ""
31068
31069 #. type: =head2
31070 #: ../src/guestfs-actions.pod:5825
31071 msgid "guestfs_part_init"
31072 msgstr ""
31073
31074 #. type: verbatim
31075 #: ../src/guestfs-actions.pod:5827
31076 #, no-wrap
31077 msgid ""
31078 " int\n"
31079 " guestfs_part_init (guestfs_h *g,\n"
31080 "                    const char *device,\n"
31081 "                    const char *parttype);\n"
31082 "\n"
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:5836
31087 msgid ""
31088 "Initially there are no partitions.  Following this, you should call "
31089 "C<guestfs_part_add> for each partition required."
31090 msgstr ""
31091
31092 #. type: =head2
31093 #: ../src/guestfs-actions.pod:5909
31094 msgid "guestfs_part_list"
31095 msgstr ""
31096
31097 #. type: verbatim
31098 #: ../src/guestfs-actions.pod:5911
31099 #, no-wrap
31100 msgid ""
31101 " struct guestfs_partition_list *\n"
31102 " guestfs_part_list (guestfs_h *g,\n"
31103 "                    const char *device);\n"
31104 "\n"
31105 msgstr ""
31106
31107 #. type: textblock
31108 #: ../src/guestfs-actions.pod:5928
31109 msgid ""
31110 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31111 "the device's sector size, see C<guestfs_blockdev_getss>."
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs-actions.pod:5941
31116 msgid ""
31117 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31118 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31119 "use>."
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:5947
31124 msgid "guestfs_part_set_bootable"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:5949
31129 #, no-wrap
31130 msgid ""
31131 " int\n"
31132 " guestfs_part_set_bootable (guestfs_h *g,\n"
31133 "                            const char *device,\n"
31134 "                            int partnum,\n"
31135 "                            int bootable);\n"
31136 "\n"
31137 msgstr ""
31138
31139 #. type: =head2
31140 #: ../src/guestfs-actions.pod:5966
31141 msgid "guestfs_part_set_mbr_id"
31142 msgstr ""
31143
31144 #. type: verbatim
31145 #: ../src/guestfs-actions.pod:5968
31146 #, no-wrap
31147 msgid ""
31148 " int\n"
31149 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31150 "                          const char *device,\n"
31151 "                          int partnum,\n"
31152 "                          int idbyte);\n"
31153 "\n"
31154 msgstr ""
31155
31156 #. type: =head2
31157 #: ../src/guestfs-actions.pod:5988
31158 msgid "guestfs_part_set_name"
31159 msgstr ""
31160
31161 #. type: verbatim
31162 #: ../src/guestfs-actions.pod:5990
31163 #, no-wrap
31164 msgid ""
31165 " int\n"
31166 " guestfs_part_set_name (guestfs_h *g,\n"
31167 "                        const char *device,\n"
31168 "                        int partnum,\n"
31169 "                        const char *name);\n"
31170 "\n"
31171 msgstr ""
31172
31173 #. type: =head2
31174 #: ../src/guestfs-actions.pod:6006
31175 msgid "guestfs_part_to_dev"
31176 msgstr ""
31177
31178 #. type: verbatim
31179 #: ../src/guestfs-actions.pod:6008
31180 #, no-wrap
31181 msgid ""
31182 " char *\n"
31183 " guestfs_part_to_dev (guestfs_h *g,\n"
31184 "                      const char *partition);\n"
31185 "\n"
31186 msgstr ""
31187
31188 #. type: textblock
31189 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
31190 msgid ""
31191 "The named partition must exist, for example as a string returned from "
31192 "C<guestfs_list_partitions>."
31193 msgstr ""
31194
31195 #. type: textblock
31196 #: ../src/guestfs-actions.pod:6019
31197 msgid "See also C<guestfs_part_to_partnum>."
31198 msgstr ""
31199
31200 #. type: =head2
31201 #: ../src/guestfs-actions.pod:6026
31202 msgid "guestfs_part_to_partnum"
31203 msgstr ""
31204
31205 #. type: verbatim
31206 #: ../src/guestfs-actions.pod:6028
31207 #, no-wrap
31208 msgid ""
31209 " int\n"
31210 " guestfs_part_to_partnum (guestfs_h *g,\n"
31211 "                          const char *partition);\n"
31212 "\n"
31213 msgstr ""
31214
31215 #. type: textblock
31216 #: ../src/guestfs-actions.pod:6038
31217 msgid "See also C<guestfs_part_to_dev>."
31218 msgstr ""
31219
31220 #. type: =head2
31221 #: ../src/guestfs-actions.pod:6044
31222 msgid "guestfs_ping_daemon"
31223 msgstr ""
31224
31225 #. type: verbatim
31226 #: ../src/guestfs-actions.pod:6046
31227 #, no-wrap
31228 msgid ""
31229 " int\n"
31230 " guestfs_ping_daemon (guestfs_h *g);\n"
31231 "\n"
31232 msgstr ""
31233
31234 #. type: =head2
31235 #: ../src/guestfs-actions.pod:6058
31236 msgid "guestfs_pread"
31237 msgstr ""
31238
31239 #. type: verbatim
31240 #: ../src/guestfs-actions.pod:6060
31241 #, no-wrap
31242 msgid ""
31243 " char *\n"
31244 " guestfs_pread (guestfs_h *g,\n"
31245 "                const char *path,\n"
31246 "                int count,\n"
31247 "                int64_t offset,\n"
31248 "                size_t *size_r);\n"
31249 "\n"
31250 msgstr ""
31251
31252 #. type: textblock
31253 #: ../src/guestfs-actions.pod:6073
31254 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31255 msgstr ""
31256
31257 #. type: =head2
31258 #: ../src/guestfs-actions.pod:6084
31259 msgid "guestfs_pread_device"
31260 msgstr ""
31261
31262 #. type: verbatim
31263 #: ../src/guestfs-actions.pod:6086
31264 #, no-wrap
31265 msgid ""
31266 " char *\n"
31267 " guestfs_pread_device (guestfs_h *g,\n"
31268 "                       const char *device,\n"
31269 "                       int count,\n"
31270 "                       int64_t offset,\n"
31271 "                       size_t *size_r);\n"
31272 "\n"
31273 msgstr ""
31274
31275 #. type: textblock
31276 #: ../src/guestfs-actions.pod:6099
31277 msgid "See also C<guestfs_pread>."
31278 msgstr ""
31279
31280 #. type: textblock
31281 #: ../src/guestfs-actions.pod:6108
31282 msgid "(Added in 1.5.21)"
31283 msgstr ""
31284
31285 #. type: =head2
31286 #: ../src/guestfs-actions.pod:6110
31287 msgid "guestfs_pvcreate"
31288 msgstr ""
31289
31290 #. type: verbatim
31291 #: ../src/guestfs-actions.pod:6112
31292 #, no-wrap
31293 msgid ""
31294 " int\n"
31295 " guestfs_pvcreate (guestfs_h *g,\n"
31296 "                   const char *device);\n"
31297 "\n"
31298 msgstr ""
31299
31300 #. type: =head2
31301 #: ../src/guestfs-actions.pod:6124
31302 msgid "guestfs_pvremove"
31303 msgstr ""
31304
31305 #. type: verbatim
31306 #: ../src/guestfs-actions.pod:6126
31307 #, no-wrap
31308 msgid ""
31309 " int\n"
31310 " guestfs_pvremove (guestfs_h *g,\n"
31311 "                   const char *device);\n"
31312 "\n"
31313 msgstr ""
31314
31315 #. type: =head2
31316 #: ../src/guestfs-actions.pod:6141
31317 msgid "guestfs_pvresize"
31318 msgstr ""
31319
31320 #. type: verbatim
31321 #: ../src/guestfs-actions.pod:6143
31322 #, no-wrap
31323 msgid ""
31324 " int\n"
31325 " guestfs_pvresize (guestfs_h *g,\n"
31326 "                   const char *device);\n"
31327 "\n"
31328 msgstr ""
31329
31330 #. type: =head2
31331 #: ../src/guestfs-actions.pod:6154
31332 msgid "guestfs_pvresize_size"
31333 msgstr ""
31334
31335 #. type: verbatim
31336 #: ../src/guestfs-actions.pod:6156
31337 #, no-wrap
31338 msgid ""
31339 " int\n"
31340 " guestfs_pvresize_size (guestfs_h *g,\n"
31341 "                        const char *device,\n"
31342 "                        int64_t size);\n"
31343 "\n"
31344 msgstr ""
31345
31346 #. type: textblock
31347 #: ../src/guestfs-actions.pod:6161
31348 msgid ""
31349 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31350 "specify the new size (in bytes) explicitly."
31351 msgstr ""
31352
31353 #. type: =head2
31354 #: ../src/guestfs-actions.pod:6168
31355 msgid "guestfs_pvs"
31356 msgstr ""
31357
31358 #. type: verbatim
31359 #: ../src/guestfs-actions.pod:6170
31360 #, no-wrap
31361 msgid ""
31362 " char **\n"
31363 " guestfs_pvs (guestfs_h *g);\n"
31364 "\n"
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs-actions.pod:6179
31369 msgid "See also C<guestfs_pvs_full>."
31370 msgstr ""
31371
31372 #. type: =head2
31373 #: ../src/guestfs-actions.pod:6187
31374 msgid "guestfs_pvs_full"
31375 msgstr ""
31376
31377 #. type: verbatim
31378 #: ../src/guestfs-actions.pod:6189
31379 #, no-wrap
31380 msgid ""
31381 " struct guestfs_lvm_pv_list *\n"
31382 " guestfs_pvs_full (guestfs_h *g);\n"
31383 "\n"
31384 msgstr ""
31385
31386 #. type: textblock
31387 #: ../src/guestfs-actions.pod:6195
31388 msgid ""
31389 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31390 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31391 msgstr ""
31392
31393 #. type: =head2
31394 #: ../src/guestfs-actions.pod:6201
31395 msgid "guestfs_pvuuid"
31396 msgstr ""
31397
31398 #. type: verbatim
31399 #: ../src/guestfs-actions.pod:6203
31400 #, no-wrap
31401 msgid ""
31402 " char *\n"
31403 " guestfs_pvuuid (guestfs_h *g,\n"
31404 "                 const char *device);\n"
31405 "\n"
31406 msgstr ""
31407
31408 #. type: =head2
31409 #: ../src/guestfs-actions.pod:6214
31410 msgid "guestfs_pwrite"
31411 msgstr ""
31412
31413 #. type: verbatim
31414 #: ../src/guestfs-actions.pod:6216
31415 #, no-wrap
31416 msgid ""
31417 " int\n"
31418 " guestfs_pwrite (guestfs_h *g,\n"
31419 "                 const char *path,\n"
31420 "                 const char *content,\n"
31421 "                 size_t content_size,\n"
31422 "                 int64_t offset);\n"
31423 "\n"
31424 msgstr ""
31425
31426 #. type: textblock
31427 #: ../src/guestfs-actions.pod:6232
31428 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31429 msgstr ""
31430
31431 #. type: =head2
31432 #: ../src/guestfs-actions.pod:6241
31433 msgid "guestfs_pwrite_device"
31434 msgstr ""
31435
31436 #. type: verbatim
31437 #: ../src/guestfs-actions.pod:6243
31438 #, no-wrap
31439 msgid ""
31440 " int\n"
31441 " guestfs_pwrite_device (guestfs_h *g,\n"
31442 "                        const char *device,\n"
31443 "                        const char *content,\n"
31444 "                        size_t content_size,\n"
31445 "                        int64_t offset);\n"
31446 "\n"
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../src/guestfs-actions.pod:6258
31451 msgid "See also C<guestfs_pwrite>."
31452 msgstr ""
31453
31454 #. type: textblock
31455 #: ../src/guestfs-actions.pod:6265
31456 msgid "(Added in 1.5.20)"
31457 msgstr ""
31458
31459 #. type: =head2
31460 #: ../src/guestfs-actions.pod:6267
31461 msgid "guestfs_read_file"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs-actions.pod:6269
31466 #, no-wrap
31467 msgid ""
31468 " char *\n"
31469 " guestfs_read_file (guestfs_h *g,\n"
31470 "                    const char *path,\n"
31471 "                    size_t *size_r);\n"
31472 "\n"
31473 msgstr ""
31474
31475 #. type: textblock
31476 #: ../src/guestfs-actions.pod:6277
31477 msgid ""
31478 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31479 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31480 "function is limited in the total size of file that can be handled."
31481 msgstr ""
31482
31483 #. type: textblock
31484 #: ../src/guestfs-actions.pod:6289
31485 msgid "(Added in 1.0.63)"
31486 msgstr ""
31487
31488 #. type: =head2
31489 #: ../src/guestfs-actions.pod:6291
31490 msgid "guestfs_read_lines"
31491 msgstr ""
31492
31493 #. type: verbatim
31494 #: ../src/guestfs-actions.pod:6293
31495 #, no-wrap
31496 msgid ""
31497 " char **\n"
31498 " guestfs_read_lines (guestfs_h *g,\n"
31499 "                     const char *path);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: textblock
31504 #: ../src/guestfs-actions.pod:6302
31505 msgid ""
31506 "Note that this function cannot correctly handle binary files (specifically, "
31507 "files containing C<\\0> character which is treated as end of line).  For "
31508 "those you need to use the C<guestfs_read_file> function which has a more "
31509 "complex interface."
31510 msgstr ""
31511
31512 #. type: =head2
31513 #: ../src/guestfs-actions.pod:6313
31514 msgid "guestfs_readdir"
31515 msgstr ""
31516
31517 #. type: verbatim
31518 #: ../src/guestfs-actions.pod:6315
31519 #, no-wrap
31520 msgid ""
31521 " struct guestfs_dirent_list *\n"
31522 " guestfs_readdir (guestfs_h *g,\n"
31523 "                  const char *dir);\n"
31524 "\n"
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs-actions.pod:6369
31529 msgid ""
31530 "This function is primarily intended for use by programs.  To get a simple "
31531 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31532 "consumption, use C<guestfs_ll>."
31533 msgstr ""
31534
31535 #. type: textblock
31536 #: ../src/guestfs-actions.pod:6373
31537 msgid ""
31538 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31539 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31540 msgstr ""
31541
31542 #. type: =head2
31543 #: ../src/guestfs-actions.pod:6379
31544 msgid "guestfs_readlink"
31545 msgstr ""
31546
31547 #. type: verbatim
31548 #: ../src/guestfs-actions.pod:6381
31549 #, no-wrap
31550 msgid ""
31551 " char *\n"
31552 " guestfs_readlink (guestfs_h *g,\n"
31553 "                   const char *path);\n"
31554 "\n"
31555 msgstr ""
31556
31557 #. type: =head2
31558 #: ../src/guestfs-actions.pod:6392
31559 msgid "guestfs_readlinklist"
31560 msgstr ""
31561
31562 #. type: verbatim
31563 #: ../src/guestfs-actions.pod:6394
31564 #, no-wrap
31565 msgid ""
31566 " char **\n"
31567 " guestfs_readlinklist (guestfs_h *g,\n"
31568 "                       const char *path,\n"
31569 "                       char *const *names);\n"
31570 "\n"
31571 msgstr ""
31572
31573 #. type: =head2
31574 #: ../src/guestfs-actions.pod:6427
31575 msgid "guestfs_realpath"
31576 msgstr ""
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:6429
31580 #, no-wrap
31581 msgid ""
31582 " char *\n"
31583 " guestfs_realpath (guestfs_h *g,\n"
31584 "                   const char *path);\n"
31585 "\n"
31586 msgstr ""
31587
31588 #. type: =head2
31589 #: ../src/guestfs-actions.pod:6441
31590 msgid "guestfs_removexattr"
31591 msgstr ""
31592
31593 #. type: verbatim
31594 #: ../src/guestfs-actions.pod:6443
31595 #, no-wrap
31596 msgid ""
31597 " int\n"
31598 " guestfs_removexattr (guestfs_h *g,\n"
31599 "                      const char *xattr,\n"
31600 "                      const char *path);\n"
31601 "\n"
31602 msgstr ""
31603
31604 #. type: textblock
31605 #: ../src/guestfs-actions.pod:6451
31606 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31607 msgstr ""
31608
31609 #. type: =head2
31610 #: ../src/guestfs-actions.pod:6457
31611 msgid "guestfs_resize2fs"
31612 msgstr ""
31613
31614 #. type: verbatim
31615 #: ../src/guestfs-actions.pod:6459
31616 #, no-wrap
31617 msgid ""
31618 " int\n"
31619 " guestfs_resize2fs (guestfs_h *g,\n"
31620 "                    const char *device);\n"
31621 "\n"
31622 msgstr ""
31623
31624 #. type: textblock
31625 #: ../src/guestfs-actions.pod:6466
31626 msgid ""
31627 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31628 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31629 "sometimes gives an error about this and sometimes not.  In any case, it is "
31630 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31631 msgstr ""
31632
31633 #. type: =head2
31634 #: ../src/guestfs-actions.pod:6476
31635 msgid "guestfs_resize2fs_M"
31636 msgstr ""
31637
31638 #. type: verbatim
31639 #: ../src/guestfs-actions.pod:6478
31640 #, no-wrap
31641 msgid ""
31642 " int\n"
31643 " guestfs_resize2fs_M (guestfs_h *g,\n"
31644 "                      const char *device);\n"
31645 "\n"
31646 msgstr ""
31647
31648 #. type: textblock
31649 #: ../src/guestfs-actions.pod:6482
31650 msgid ""
31651 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31652 "resized to its minimum size.  This works like the I<-M> option to the "
31653 "C<resize2fs> command."
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs-actions.pod:6486
31658 msgid ""
31659 "To get the resulting size of the filesystem you should call "
31660 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31661 "These two numbers, multiplied together, give the resulting size of the "
31662 "minimal filesystem in bytes."
31663 msgstr ""
31664
31665 #. type: =head2
31666 #: ../src/guestfs-actions.pod:6495
31667 msgid "guestfs_resize2fs_size"
31668 msgstr ""
31669
31670 #. type: verbatim
31671 #: ../src/guestfs-actions.pod:6497
31672 #, no-wrap
31673 msgid ""
31674 " int\n"
31675 " guestfs_resize2fs_size (guestfs_h *g,\n"
31676 "                         const char *device,\n"
31677 "                         int64_t size);\n"
31678 "\n"
31679 msgstr ""
31680
31681 #. type: textblock
31682 #: ../src/guestfs-actions.pod:6502
31683 msgid ""
31684 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31685 "to specify the new size (in bytes) explicitly."
31686 msgstr ""
31687
31688 #. type: =head2
31689 #: ../src/guestfs-actions.pod:6509
31690 msgid "guestfs_rm"
31691 msgstr ""
31692
31693 #. type: verbatim
31694 #: ../src/guestfs-actions.pod:6511
31695 #, no-wrap
31696 msgid ""
31697 " int\n"
31698 " guestfs_rm (guestfs_h *g,\n"
31699 "             const char *path);\n"
31700 "\n"
31701 msgstr ""
31702
31703 #. type: =head2
31704 #: ../src/guestfs-actions.pod:6521
31705 msgid "guestfs_rm_rf"
31706 msgstr ""
31707
31708 #. type: verbatim
31709 #: ../src/guestfs-actions.pod:6523
31710 #, no-wrap
31711 msgid ""
31712 " int\n"
31713 " guestfs_rm_rf (guestfs_h *g,\n"
31714 "                const char *path);\n"
31715 "\n"
31716 msgstr ""
31717
31718 #. type: =head2
31719 #: ../src/guestfs-actions.pod:6535
31720 msgid "guestfs_rmdir"
31721 msgstr ""
31722
31723 #. type: verbatim
31724 #: ../src/guestfs-actions.pod:6537
31725 #, no-wrap
31726 msgid ""
31727 " int\n"
31728 " guestfs_rmdir (guestfs_h *g,\n"
31729 "                const char *path);\n"
31730 "\n"
31731 msgstr ""
31732
31733 #. type: =head2
31734 #: ../src/guestfs-actions.pod:6547
31735 msgid "guestfs_rmmountpoint"
31736 msgstr ""
31737
31738 #. type: verbatim
31739 #: ../src/guestfs-actions.pod:6549
31740 #, no-wrap
31741 msgid ""
31742 " int\n"
31743 " guestfs_rmmountpoint (guestfs_h *g,\n"
31744 "                       const char *exemptpath);\n"
31745 "\n"
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs-actions.pod:6553
31750 msgid ""
31751 "This calls removes a mountpoint that was previously created with "
31752 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31753 msgstr ""
31754
31755 #. type: =head2
31756 #: ../src/guestfs-actions.pod:6561
31757 msgid "guestfs_scrub_device"
31758 msgstr ""
31759
31760 #. type: verbatim
31761 #: ../src/guestfs-actions.pod:6563
31762 #, no-wrap
31763 msgid ""
31764 " int\n"
31765 " guestfs_scrub_device (guestfs_h *g,\n"
31766 "                       const char *device);\n"
31767 "\n"
31768 msgstr ""
31769
31770 #. type: textblock
31771 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
31772 #: ../src/guestfs-actions.pod:6612
31773 msgid "(Added in 1.0.52)"
31774 msgstr ""
31775
31776 #. type: =head2
31777 #: ../src/guestfs-actions.pod:6577
31778 msgid "guestfs_scrub_file"
31779 msgstr ""
31780
31781 #. type: verbatim
31782 #: ../src/guestfs-actions.pod:6579
31783 #, no-wrap
31784 msgid ""
31785 " int\n"
31786 " guestfs_scrub_file (guestfs_h *g,\n"
31787 "                     const char *file);\n"
31788 "\n"
31789 msgstr ""
31790
31791 #. type: =head2
31792 #: ../src/guestfs-actions.pod:6595
31793 msgid "guestfs_scrub_freespace"
31794 msgstr ""
31795
31796 #. type: verbatim
31797 #: ../src/guestfs-actions.pod:6597
31798 #, no-wrap
31799 msgid ""
31800 " int\n"
31801 " guestfs_scrub_freespace (guestfs_h *g,\n"
31802 "                          const char *dir);\n"
31803 "\n"
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs-actions.pod:6601
31808 msgid ""
31809 "This command creates the directory C<dir> and then fills it with files until "
31810 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31811 "and deletes them.  The intention is to scrub any free space on the partition "
31812 "containing C<dir>."
31813 msgstr ""
31814
31815 #. type: =head2
31816 #: ../src/guestfs-actions.pod:6614
31817 msgid "guestfs_set_append"
31818 msgstr ""
31819
31820 #. type: verbatim
31821 #: ../src/guestfs-actions.pod:6616
31822 #, no-wrap
31823 msgid ""
31824 " int\n"
31825 " guestfs_set_append (guestfs_h *g,\n"
31826 "                     const char *append);\n"
31827 "\n"
31828 msgstr ""
31829
31830 #. type: =head2
31831 #: ../src/guestfs-actions.pod:6633
31832 msgid "guestfs_set_attach_method"
31833 msgstr ""
31834
31835 #. type: verbatim
31836 #: ../src/guestfs-actions.pod:6635
31837 #, no-wrap
31838 msgid ""
31839 " int\n"
31840 " guestfs_set_attach_method (guestfs_h *g,\n"
31841 "                            const char *attachmethod);\n"
31842 "\n"
31843 msgstr ""
31844
31845 #. type: =head2
31846 #: ../src/guestfs-actions.pod:6663
31847 msgid "guestfs_set_autosync"
31848 msgstr ""
31849
31850 #. type: verbatim
31851 #: ../src/guestfs-actions.pod:6665
31852 #, no-wrap
31853 msgid ""
31854 " int\n"
31855 " guestfs_set_autosync (guestfs_h *g,\n"
31856 "                       int autosync);\n"
31857 "\n"
31858 msgstr ""
31859
31860 #. type: =head2
31861 #: ../src/guestfs-actions.pod:6681
31862 msgid "guestfs_set_direct"
31863 msgstr ""
31864
31865 #. type: verbatim
31866 #: ../src/guestfs-actions.pod:6683
31867 #, no-wrap
31868 msgid ""
31869 " int\n"
31870 " guestfs_set_direct (guestfs_h *g,\n"
31871 "                     int direct);\n"
31872 "\n"
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../src/guestfs-actions.pod:6691
31877 msgid ""
31878 "One consequence of this is that log messages aren't caught by the library "
31879 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31880 "stdout."
31881 msgstr ""
31882
31883 #. type: =head2
31884 #: ../src/guestfs-actions.pod:6704
31885 msgid "guestfs_set_e2label"
31886 msgstr ""
31887
31888 #. type: verbatim
31889 #: ../src/guestfs-actions.pod:6706
31890 #, no-wrap
31891 msgid ""
31892 " int\n"
31893 " guestfs_set_e2label (guestfs_h *g,\n"
31894 "                      const char *device,\n"
31895 "                      const char *label);\n"
31896 "\n"
31897 msgstr ""
31898
31899 #. type: textblock
31900 #: ../src/guestfs-actions.pod:6715
31901 msgid ""
31902 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31903 "the existing label on a filesystem."
31904 msgstr ""
31905
31906 #. type: =head2
31907 #: ../src/guestfs-actions.pod:6722
31908 msgid "guestfs_set_e2uuid"
31909 msgstr ""
31910
31911 #. type: verbatim
31912 #: ../src/guestfs-actions.pod:6724
31913 #, no-wrap
31914 msgid ""
31915 " int\n"
31916 " guestfs_set_e2uuid (guestfs_h *g,\n"
31917 "                     const char *device,\n"
31918 "                     const char *uuid);\n"
31919 "\n"
31920 msgstr ""
31921
31922 #. type: textblock
31923 #: ../src/guestfs-actions.pod:6734
31924 msgid ""
31925 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31926 "the existing UUID of a filesystem."
31927 msgstr ""
31928
31929 #. type: =head2
31930 #: ../src/guestfs-actions.pod:6741
31931 msgid "guestfs_set_memsize"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs-actions.pod:6743
31936 #, no-wrap
31937 msgid ""
31938 " int\n"
31939 " guestfs_set_memsize (guestfs_h *g,\n"
31940 "                      int memsize);\n"
31941 "\n"
31942 msgstr ""
31943
31944 #. type: textblock
31945 #: ../src/guestfs-actions.pod:6747
31946 msgid ""
31947 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31948 "This only has any effect if called before C<guestfs_launch>."
31949 msgstr ""
31950
31951 #. type: =head2
31952 #: ../src/guestfs-actions.pod:6762
31953 msgid "guestfs_set_network"
31954 msgstr ""
31955
31956 #. type: verbatim
31957 #: ../src/guestfs-actions.pod:6764
31958 #, no-wrap
31959 msgid ""
31960 " int\n"
31961 " guestfs_set_network (guestfs_h *g,\n"
31962 "                      int network);\n"
31963 "\n"
31964 msgstr ""
31965
31966 #. type: textblock
31967 #: ../src/guestfs-actions.pod:6774
31968 msgid ""
31969 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31970 "effect."
31971 msgstr ""
31972
31973 #. type: =head2
31974 #: ../src/guestfs-actions.pod:6781
31975 msgid "guestfs_set_path"
31976 msgstr ""
31977
31978 #. type: verbatim
31979 #: ../src/guestfs-actions.pod:6783
31980 #, no-wrap
31981 msgid ""
31982 " int\n"
31983 " guestfs_set_path (guestfs_h *g,\n"
31984 "                   const char *searchpath);\n"
31985 "\n"
31986 msgstr ""
31987
31988 #. type: =head2
31989 #: ../src/guestfs-actions.pod:6798
31990 msgid "guestfs_set_pgroup"
31991 msgstr ""
31992
31993 #. type: verbatim
31994 #: ../src/guestfs-actions.pod:6800
31995 #, no-wrap
31996 msgid ""
31997 " int\n"
31998 " guestfs_set_pgroup (guestfs_h *g,\n"
31999 "                     int pgroup);\n"
32000 "\n"
32001 msgstr ""
32002
32003 #. type: =head2
32004 #: ../src/guestfs-actions.pod:6817
32005 msgid "guestfs_set_qemu"
32006 msgstr ""
32007
32008 #. type: verbatim
32009 #: ../src/guestfs-actions.pod:6819
32010 #, no-wrap
32011 msgid ""
32012 " int\n"
32013 " guestfs_set_qemu (guestfs_h *g,\n"
32014 "                   const char *qemu);\n"
32015 "\n"
32016 msgstr ""
32017
32018 #. type: =head2
32019 #: ../src/guestfs-actions.pod:6845
32020 msgid "guestfs_set_recovery_proc"
32021 msgstr ""
32022
32023 #. type: verbatim
32024 #: ../src/guestfs-actions.pod:6847
32025 #, no-wrap
32026 msgid ""
32027 " int\n"
32028 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32029 "                            int recoveryproc);\n"
32030 "\n"
32031 msgstr ""
32032
32033 #. type: textblock
32034 #: ../src/guestfs-actions.pod:6851
32035 msgid ""
32036 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32037 "not create a recovery process.  The purpose of the recovery process is to "
32038 "stop runaway qemu processes in the case where the main program aborts "
32039 "abruptly."
32040 msgstr ""
32041
32042 #. type: textblock
32043 #: ../src/guestfs-actions.pod:6856
32044 msgid ""
32045 "This only has any effect if called before C<guestfs_launch>, and the default "
32046 "is true."
32047 msgstr ""
32048
32049 #. type: =head2
32050 #: ../src/guestfs-actions.pod:6869
32051 msgid "guestfs_set_selinux"
32052 msgstr ""
32053
32054 #. type: verbatim
32055 #: ../src/guestfs-actions.pod:6871
32056 #, no-wrap
32057 msgid ""
32058 " int\n"
32059 " guestfs_set_selinux (guestfs_h *g,\n"
32060 "                      int selinux);\n"
32061 "\n"
32062 msgstr ""
32063
32064 #. type: =head2
32065 #: ../src/guestfs-actions.pod:6888
32066 msgid "guestfs_set_smp"
32067 msgstr ""
32068
32069 #. type: verbatim
32070 #: ../src/guestfs-actions.pod:6890
32071 #, no-wrap
32072 msgid ""
32073 " int\n"
32074 " guestfs_set_smp (guestfs_h *g,\n"
32075 "                  int smp);\n"
32076 "\n"
32077 msgstr ""
32078
32079 #. type: textblock
32080 #: ../src/guestfs-actions.pod:6898
32081 msgid "This function must be called before C<guestfs_launch>."
32082 msgstr ""
32083
32084 #. type: =head2
32085 #: ../src/guestfs-actions.pod:6904
32086 msgid "guestfs_set_trace"
32087 msgstr ""
32088
32089 #. type: verbatim
32090 #: ../src/guestfs-actions.pod:6906
32091 #, no-wrap
32092 msgid ""
32093 " int\n"
32094 " guestfs_set_trace (guestfs_h *g,\n"
32095 "                    int trace);\n"
32096 "\n"
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs-actions.pod:6920
32101 msgid ""
32102 "Trace messages are normally sent to C<stderr>, unless you register a "
32103 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32104 msgstr ""
32105
32106 #. type: =head2
32107 #: ../src/guestfs-actions.pod:6928
32108 msgid "guestfs_set_verbose"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs-actions.pod:6930
32113 #, no-wrap
32114 msgid ""
32115 " int\n"
32116 " guestfs_set_verbose (guestfs_h *g,\n"
32117 "                      int verbose);\n"
32118 "\n"
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs-actions.pod:6939
32123 msgid ""
32124 "Verbose messages are normally sent to C<stderr>, unless you register a "
32125 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32126 msgstr ""
32127
32128 #. type: =head2
32129 #: ../src/guestfs-actions.pod:6947
32130 msgid "guestfs_setcon"
32131 msgstr ""
32132
32133 #. type: verbatim
32134 #: ../src/guestfs-actions.pod:6949
32135 #, no-wrap
32136 msgid ""
32137 " int\n"
32138 " guestfs_setcon (guestfs_h *g,\n"
32139 "                 const char *context);\n"
32140 "\n"
32141 msgstr ""
32142
32143 #. type: =head2
32144 #: ../src/guestfs-actions.pod:6962
32145 msgid "guestfs_setxattr"
32146 msgstr ""
32147
32148 #. type: verbatim
32149 #: ../src/guestfs-actions.pod:6964
32150 #, no-wrap
32151 msgid ""
32152 " int\n"
32153 " guestfs_setxattr (guestfs_h *g,\n"
32154 "                   const char *xattr,\n"
32155 "                   const char *val,\n"
32156 "                   int vallen,\n"
32157 "                   const char *path);\n"
32158 "\n"
32159 msgstr ""
32160
32161 #. type: textblock
32162 #: ../src/guestfs-actions.pod:6975
32163 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32164 msgstr ""
32165
32166 #. type: =head2
32167 #: ../src/guestfs-actions.pod:6981
32168 msgid "guestfs_sfdisk"
32169 msgstr ""
32170
32171 #. type: verbatim
32172 #: ../src/guestfs-actions.pod:6983
32173 #, no-wrap
32174 msgid ""
32175 " int\n"
32176 " guestfs_sfdisk (guestfs_h *g,\n"
32177 "                 const char *device,\n"
32178 "                 int cyls,\n"
32179 "                 int heads,\n"
32180 "                 int sectors,\n"
32181 "                 char *const *lines);\n"
32182 "\n"
32183 msgstr ""
32184
32185 #. type: textblock
32186 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
32187 #: ../src/guestfs-actions.pod:7063
32188 msgid ""
32189 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32190 "call instead."
32191 msgstr ""
32192
32193 #. type: textblock
32194 #: ../src/guestfs-actions.pod:7018
32195 msgid ""
32196 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32197 msgstr ""
32198
32199 #. type: =head2
32200 #: ../src/guestfs-actions.pod:7025
32201 msgid "guestfs_sfdiskM"
32202 msgstr ""
32203
32204 #. type: verbatim
32205 #: ../src/guestfs-actions.pod:7027
32206 #, no-wrap
32207 msgid ""
32208 " int\n"
32209 " guestfs_sfdiskM (guestfs_h *g,\n"
32210 "                  const char *device,\n"
32211 "                  char *const *lines);\n"
32212 "\n"
32213 msgstr ""
32214
32215 #. type: textblock
32216 #: ../src/guestfs-actions.pod:7039
32217 msgid ""
32218 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32219 "partition sizes are specified in megabytes only (rounded to the nearest "
32220 "cylinder) and you don't need to specify the cyls, heads and sectors "
32221 "parameters which were rarely if ever used anyway."
32222 msgstr ""
32223
32224 #. type: textblock
32225 #: ../src/guestfs-actions.pod:7045
32226 msgid ""
32227 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32228 "C<guestfs_part_disk>"
32229 msgstr ""
32230
32231 #. type: =head2
32232 #: ../src/guestfs-actions.pod:7052
32233 msgid "guestfs_sfdisk_N"
32234 msgstr ""
32235
32236 #. type: verbatim
32237 #: ../src/guestfs-actions.pod:7054
32238 #, no-wrap
32239 msgid ""
32240 " int\n"
32241 " guestfs_sfdisk_N (guestfs_h *g,\n"
32242 "                   const char *device,\n"
32243 "                   int partnum,\n"
32244 "                   int cyls,\n"
32245 "                   int heads,\n"
32246 "                   int sectors,\n"
32247 "                   const char *line);\n"
32248 "\n"
32249 msgstr ""
32250
32251 #. type: textblock
32252 #: ../src/guestfs-actions.pod:7073
32253 msgid ""
32254 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32255 "for the cyls/heads/sectors parameters."
32256 msgstr ""
32257
32258 #. type: textblock
32259 #: ../src/guestfs-actions.pod:7076
32260 msgid "See also: C<guestfs_part_add>"
32261 msgstr ""
32262
32263 #. type: =head2
32264 #: ../src/guestfs-actions.pod:7082
32265 msgid "guestfs_sfdisk_disk_geometry"
32266 msgstr ""
32267
32268 #. type: verbatim
32269 #: ../src/guestfs-actions.pod:7084
32270 #, no-wrap
32271 msgid ""
32272 " char *\n"
32273 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32274 "                               const char *device);\n"
32275 "\n"
32276 msgstr ""
32277
32278 #. type: textblock
32279 #: ../src/guestfs-actions.pod:7088
32280 msgid ""
32281 "This displays the disk geometry of C<device> read from the partition table.  "
32282 "Especially in the case where the underlying block device has been resized, "
32283 "this can be different from the kernel's idea of the geometry (see "
32284 "C<guestfs_sfdisk_kernel_geometry>)."
32285 msgstr ""
32286
32287 #. type: =head2
32288 #: ../src/guestfs-actions.pod:7101
32289 msgid "guestfs_sfdisk_kernel_geometry"
32290 msgstr ""
32291
32292 #. type: verbatim
32293 #: ../src/guestfs-actions.pod:7103
32294 #, no-wrap
32295 msgid ""
32296 " char *\n"
32297 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32298 "                                 const char *device);\n"
32299 "\n"
32300 msgstr ""
32301
32302 #. type: =head2
32303 #: ../src/guestfs-actions.pod:7117
32304 msgid "guestfs_sfdisk_l"
32305 msgstr ""
32306
32307 #. type: verbatim
32308 #: ../src/guestfs-actions.pod:7119
32309 #, no-wrap
32310 msgid ""
32311 " char *\n"
32312 " guestfs_sfdisk_l (guestfs_h *g,\n"
32313 "                   const char *device);\n"
32314 "\n"
32315 msgstr ""
32316
32317 #. type: textblock
32318 #: ../src/guestfs-actions.pod:7123
32319 msgid ""
32320 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32321 "call instead."
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs-actions.pod:7134
32326 msgid "See also: C<guestfs_part_list>"
32327 msgstr ""
32328
32329 #. type: =head2
32330 #: ../src/guestfs-actions.pod:7141
32331 msgid "guestfs_sh"
32332 msgstr ""
32333
32334 #. type: verbatim
32335 #: ../src/guestfs-actions.pod:7143
32336 #, no-wrap
32337 msgid ""
32338 " char *\n"
32339 " guestfs_sh (guestfs_h *g,\n"
32340 "             const char *command);\n"
32341 "\n"
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs-actions.pod:7150
32346 msgid "This is like C<guestfs_command>, but passes the command to:"
32347 msgstr ""
32348
32349 #. type: textblock
32350 #: ../src/guestfs-actions.pod:7158
32351 msgid "All the provisos about C<guestfs_command> apply to this call."
32352 msgstr ""
32353
32354 #. type: =head2
32355 #: ../src/guestfs-actions.pod:7165
32356 msgid "guestfs_sh_lines"
32357 msgstr ""
32358
32359 #. type: verbatim
32360 #: ../src/guestfs-actions.pod:7167
32361 #, no-wrap
32362 msgid ""
32363 " char **\n"
32364 " guestfs_sh_lines (guestfs_h *g,\n"
32365 "                   const char *command);\n"
32366 "\n"
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs-actions.pod:7171
32371 msgid ""
32372 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32373 "lines."
32374 msgstr ""
32375
32376 #. type: textblock
32377 #: ../src/guestfs-actions.pod:7174
32378 msgid "See also: C<guestfs_command_lines>"
32379 msgstr ""
32380
32381 #. type: =head2
32382 #: ../src/guestfs-actions.pod:7182
32383 msgid "guestfs_sleep"
32384 msgstr ""
32385
32386 #. type: verbatim
32387 #: ../src/guestfs-actions.pod:7184
32388 #, no-wrap
32389 msgid ""
32390 " int\n"
32391 " guestfs_sleep (guestfs_h *g,\n"
32392 "                int secs);\n"
32393 "\n"
32394 msgstr ""
32395
32396 #. type: textblock
32397 #: ../src/guestfs-actions.pod:7192
32398 msgid "(Added in 1.0.41)"
32399 msgstr ""
32400
32401 #. type: =head2
32402 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
32403 msgid "guestfs_stat"
32404 msgstr ""
32405
32406 #. type: verbatim
32407 #: ../src/guestfs-actions.pod:7196
32408 #, no-wrap
32409 msgid ""
32410 " struct guestfs_stat *\n"
32411 " guestfs_stat (guestfs_h *g,\n"
32412 "               const char *path);\n"
32413 "\n"
32414 msgstr ""
32415
32416 #. type: =head2
32417 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
32418 msgid "guestfs_statvfs"
32419 msgstr ""
32420
32421 #. type: verbatim
32422 #: ../src/guestfs-actions.pod:7212
32423 #, no-wrap
32424 msgid ""
32425 " struct guestfs_statvfs *\n"
32426 " guestfs_statvfs (guestfs_h *g,\n"
32427 "                  const char *path);\n"
32428 "\n"
32429 msgstr ""
32430
32431 #. type: textblock
32432 #: ../src/guestfs-actions.pod:7222
32433 msgid ""
32434 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32435 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32436 msgstr ""
32437
32438 #. type: =head2
32439 #: ../src/guestfs-actions.pod:7228
32440 msgid "guestfs_strings"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-actions.pod:7230
32445 #, no-wrap
32446 msgid ""
32447 " char **\n"
32448 " guestfs_strings (guestfs_h *g,\n"
32449 "                  const char *path);\n"
32450 "\n"
32451 msgstr ""
32452
32453 #. type: =head2
32454 #: ../src/guestfs-actions.pod:7246
32455 msgid "guestfs_strings_e"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../src/guestfs-actions.pod:7248
32460 #, no-wrap
32461 msgid ""
32462 " char **\n"
32463 " guestfs_strings_e (guestfs_h *g,\n"
32464 "                    const char *encoding,\n"
32465 "                    const char *path);\n"
32466 "\n"
32467 msgstr ""
32468
32469 #. type: textblock
32470 #: ../src/guestfs-actions.pod:7253
32471 msgid ""
32472 "This is like the C<guestfs_strings> command, but allows you to specify the "
32473 "encoding of strings that are looked for in the source file C<path>."
32474 msgstr ""
32475
32476 #. type: textblock
32477 #: ../src/guestfs-actions.pod:7263
32478 msgid ""
32479 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32480 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32481 msgstr ""
32482
32483 #. type: =head2
32484 #: ../src/guestfs-actions.pod:7301
32485 msgid "guestfs_swapoff_device"
32486 msgstr ""
32487
32488 #. type: verbatim
32489 #: ../src/guestfs-actions.pod:7303
32490 #, no-wrap
32491 msgid ""
32492 " int\n"
32493 " guestfs_swapoff_device (guestfs_h *g,\n"
32494 "                         const char *device);\n"
32495 "\n"
32496 msgstr ""
32497
32498 #. type: textblock
32499 #: ../src/guestfs-actions.pod:7307
32500 msgid ""
32501 "This command disables the libguestfs appliance swap device or partition "
32502 "named C<device>.  See C<guestfs_swapon_device>."
32503 msgstr ""
32504
32505 #. type: =head2
32506 #: ../src/guestfs-actions.pod:7315
32507 msgid "guestfs_swapoff_file"
32508 msgstr ""
32509
32510 #. type: verbatim
32511 #: ../src/guestfs-actions.pod:7317
32512 #, no-wrap
32513 msgid ""
32514 " int\n"
32515 " guestfs_swapoff_file (guestfs_h *g,\n"
32516 "                       const char *file);\n"
32517 "\n"
32518 msgstr ""
32519
32520 #. type: =head2
32521 #: ../src/guestfs-actions.pod:7327
32522 msgid "guestfs_swapoff_label"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-actions.pod:7329
32527 #, no-wrap
32528 msgid ""
32529 " int\n"
32530 " guestfs_swapoff_label (guestfs_h *g,\n"
32531 "                        const char *label);\n"
32532 "\n"
32533 msgstr ""
32534
32535 #. type: =head2
32536 #: ../src/guestfs-actions.pod:7340
32537 msgid "guestfs_swapoff_uuid"
32538 msgstr ""
32539
32540 #. type: verbatim
32541 #: ../src/guestfs-actions.pod:7342
32542 #, no-wrap
32543 msgid ""
32544 " int\n"
32545 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32546 "                       const char *uuid);\n"
32547 "\n"
32548 msgstr ""
32549
32550 #. type: =head2
32551 #: ../src/guestfs-actions.pod:7353
32552 msgid "guestfs_swapon_device"
32553 msgstr ""
32554
32555 #. type: verbatim
32556 #: ../src/guestfs-actions.pod:7355
32557 #, no-wrap
32558 msgid ""
32559 " int\n"
32560 " guestfs_swapon_device (guestfs_h *g,\n"
32561 "                        const char *device);\n"
32562 "\n"
32563 msgstr ""
32564
32565 #. type: textblock
32566 #: ../src/guestfs-actions.pod:7359
32567 msgid ""
32568 "This command enables the libguestfs appliance to use the swap device or "
32569 "partition named C<device>.  The increased memory is made available for all "
32570 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32571 msgstr ""
32572
32573 #. type: =head2
32574 #: ../src/guestfs-actions.pod:7375
32575 msgid "guestfs_swapon_file"
32576 msgstr ""
32577
32578 #. type: verbatim
32579 #: ../src/guestfs-actions.pod:7377
32580 #, no-wrap
32581 msgid ""
32582 " int\n"
32583 " guestfs_swapon_file (guestfs_h *g,\n"
32584 "                      const char *file);\n"
32585 "\n"
32586 msgstr ""
32587
32588 #. type: textblock
32589 #: ../src/guestfs-actions.pod:7381
32590 msgid ""
32591 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32592 "notes."
32593 msgstr ""
32594
32595 #. type: =head2
32596 #: ../src/guestfs-actions.pod:7388
32597 msgid "guestfs_swapon_label"
32598 msgstr ""
32599
32600 #. type: verbatim
32601 #: ../src/guestfs-actions.pod:7390
32602 #, no-wrap
32603 msgid ""
32604 " int\n"
32605 " guestfs_swapon_label (guestfs_h *g,\n"
32606 "                       const char *label);\n"
32607 "\n"
32608 msgstr ""
32609
32610 #. type: textblock
32611 #: ../src/guestfs-actions.pod:7394
32612 msgid ""
32613 "This command enables swap to a labeled swap partition.  See "
32614 "C<guestfs_swapon_device> for other notes."
32615 msgstr ""
32616
32617 #. type: =head2
32618 #: ../src/guestfs-actions.pod:7401
32619 msgid "guestfs_swapon_uuid"
32620 msgstr ""
32621
32622 #. type: verbatim
32623 #: ../src/guestfs-actions.pod:7403
32624 #, no-wrap
32625 msgid ""
32626 " int\n"
32627 " guestfs_swapon_uuid (guestfs_h *g,\n"
32628 "                      const char *uuid);\n"
32629 "\n"
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs-actions.pod:7407
32634 msgid ""
32635 "This command enables swap to a swap partition with the given UUID.  See "
32636 "C<guestfs_swapon_device> for other notes."
32637 msgstr ""
32638
32639 #. type: =head2
32640 #: ../src/guestfs-actions.pod:7414
32641 msgid "guestfs_sync"
32642 msgstr ""
32643
32644 #. type: verbatim
32645 #: ../src/guestfs-actions.pod:7416
32646 #, no-wrap
32647 msgid ""
32648 " int\n"
32649 " guestfs_sync (guestfs_h *g);\n"
32650 "\n"
32651 msgstr ""
32652
32653 #. type: =head2
32654 #: ../src/guestfs-actions.pod:7429
32655 msgid "guestfs_tail"
32656 msgstr ""
32657
32658 #. type: verbatim
32659 #: ../src/guestfs-actions.pod:7431
32660 #, no-wrap
32661 msgid ""
32662 " char **\n"
32663 " guestfs_tail (guestfs_h *g,\n"
32664 "               const char *path);\n"
32665 "\n"
32666 msgstr ""
32667
32668 #. type: =head2
32669 #: ../src/guestfs-actions.pod:7447
32670 msgid "guestfs_tail_n"
32671 msgstr ""
32672
32673 #. type: verbatim
32674 #: ../src/guestfs-actions.pod:7449
32675 #, no-wrap
32676 msgid ""
32677 " char **\n"
32678 " guestfs_tail_n (guestfs_h *g,\n"
32679 "                 int nrlines,\n"
32680 "                 const char *path);\n"
32681 "\n"
32682 msgstr ""
32683
32684 #. type: =head2
32685 #: ../src/guestfs-actions.pod:7471
32686 msgid "guestfs_tar_in"
32687 msgstr ""
32688
32689 #. type: verbatim
32690 #: ../src/guestfs-actions.pod:7473
32691 #, no-wrap
32692 msgid ""
32693 " int\n"
32694 " guestfs_tar_in (guestfs_h *g,\n"
32695 "                 const char *tarfile,\n"
32696 "                 const char *directory);\n"
32697 "\n"
32698 msgstr ""
32699
32700 #. type: textblock
32701 #: ../src/guestfs-actions.pod:7481
32702 msgid ""
32703 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32704 msgstr ""
32705
32706 #. type: textblock
32707 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
32708 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
32709 msgid "(Added in 1.0.3)"
32710 msgstr ""
32711
32712 #. type: =head2
32713 #: ../src/guestfs-actions.pod:7488
32714 msgid "guestfs_tar_out"
32715 msgstr ""
32716
32717 #. type: verbatim
32718 #: ../src/guestfs-actions.pod:7490
32719 #, no-wrap
32720 msgid ""
32721 " int\n"
32722 " guestfs_tar_out (guestfs_h *g,\n"
32723 "                  const char *directory,\n"
32724 "                  const char *tarfile);\n"
32725 "\n"
32726 msgstr ""
32727
32728 #. type: textblock
32729 #: ../src/guestfs-actions.pod:7498
32730 msgid ""
32731 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32732 "C<guestfs_txz_out>."
32733 msgstr ""
32734
32735 #. type: =head2
32736 #: ../src/guestfs-actions.pod:7505
32737 msgid "guestfs_tgz_in"
32738 msgstr ""
32739
32740 #. type: verbatim
32741 #: ../src/guestfs-actions.pod:7507
32742 #, no-wrap
32743 msgid ""
32744 " int\n"
32745 " guestfs_tgz_in (guestfs_h *g,\n"
32746 "                 const char *tarball,\n"
32747 "                 const char *directory);\n"
32748 "\n"
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs-actions.pod:7515
32753 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32754 msgstr ""
32755
32756 #. type: =head2
32757 #: ../src/guestfs-actions.pod:7521
32758 msgid "guestfs_tgz_out"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs-actions.pod:7523
32763 #, no-wrap
32764 msgid ""
32765 " int\n"
32766 " guestfs_tgz_out (guestfs_h *g,\n"
32767 "                  const char *directory,\n"
32768 "                  const char *tarball);\n"
32769 "\n"
32770 msgstr ""
32771
32772 #. type: textblock
32773 #: ../src/guestfs-actions.pod:7531
32774 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32775 msgstr ""
32776
32777 #. type: =head2
32778 #: ../src/guestfs-actions.pod:7537
32779 msgid "guestfs_touch"
32780 msgstr ""
32781
32782 #. type: verbatim
32783 #: ../src/guestfs-actions.pod:7539
32784 #, no-wrap
32785 msgid ""
32786 " int\n"
32787 " guestfs_touch (guestfs_h *g,\n"
32788 "                const char *path);\n"
32789 "\n"
32790 msgstr ""
32791
32792 #. type: =head2
32793 #: ../src/guestfs-actions.pod:7554
32794 msgid "guestfs_truncate"
32795 msgstr ""
32796
32797 #. type: verbatim
32798 #: ../src/guestfs-actions.pod:7556
32799 #, no-wrap
32800 msgid ""
32801 " int\n"
32802 " guestfs_truncate (guestfs_h *g,\n"
32803 "                   const char *path);\n"
32804 "\n"
32805 msgstr ""
32806
32807 #. type: =head2
32808 #: ../src/guestfs-actions.pod:7567
32809 msgid "guestfs_truncate_size"
32810 msgstr ""
32811
32812 #. type: verbatim
32813 #: ../src/guestfs-actions.pod:7569
32814 #, no-wrap
32815 msgid ""
32816 " int\n"
32817 " guestfs_truncate_size (guestfs_h *g,\n"
32818 "                        const char *path,\n"
32819 "                        int64_t size);\n"
32820 "\n"
32821 msgstr ""
32822
32823 #. type: textblock
32824 #: ../src/guestfs-actions.pod:7577
32825 msgid ""
32826 "If the current file size is less than C<size> then the file is extended to "
32827 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32828 "blocks are not allocated for the file until you write to it).  To create a "
32829 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32830 msgstr ""
32831
32832 #. type: =head2
32833 #: ../src/guestfs-actions.pod:7587
32834 msgid "guestfs_tune2fs_l"
32835 msgstr ""
32836
32837 #. type: verbatim
32838 #: ../src/guestfs-actions.pod:7589
32839 #, no-wrap
32840 msgid ""
32841 " char **\n"
32842 " guestfs_tune2fs_l (guestfs_h *g,\n"
32843 "                    const char *device);\n"
32844 "\n"
32845 msgstr ""
32846
32847 #. type: =head2
32848 #: ../src/guestfs-actions.pod:7609
32849 msgid "guestfs_txz_in"
32850 msgstr ""
32851
32852 #. type: verbatim
32853 #: ../src/guestfs-actions.pod:7611
32854 #, no-wrap
32855 msgid ""
32856 " int\n"
32857 " guestfs_txz_in (guestfs_h *g,\n"
32858 "                 const char *tarball,\n"
32859 "                 const char *directory);\n"
32860 "\n"
32861 msgstr ""
32862
32863 #. type: =head2
32864 #: ../src/guestfs-actions.pod:7623
32865 msgid "guestfs_txz_out"
32866 msgstr ""
32867
32868 #. type: verbatim
32869 #: ../src/guestfs-actions.pod:7625
32870 #, no-wrap
32871 msgid ""
32872 " int\n"
32873 " guestfs_txz_out (guestfs_h *g,\n"
32874 "                  const char *directory,\n"
32875 "                  const char *tarball);\n"
32876 "\n"
32877 msgstr ""
32878
32879 #. type: =head2
32880 #: ../src/guestfs-actions.pod:7637
32881 msgid "guestfs_umask"
32882 msgstr ""
32883
32884 #. type: verbatim
32885 #: ../src/guestfs-actions.pod:7639
32886 #, no-wrap
32887 msgid ""
32888 " int\n"
32889 " guestfs_umask (guestfs_h *g,\n"
32890 "                int mask);\n"
32891 "\n"
32892 msgstr ""
32893
32894 #. type: textblock
32895 #: ../src/guestfs-actions.pod:7655
32896 msgid ""
32897 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32898 "C<guestfs_mkdir>."
32899 msgstr ""
32900
32901 #. type: =head2
32902 #: ../src/guestfs-actions.pod:7664
32903 msgid "guestfs_umount"
32904 msgstr ""
32905
32906 #. type: verbatim
32907 #: ../src/guestfs-actions.pod:7666
32908 #, no-wrap
32909 msgid ""
32910 " int\n"
32911 " guestfs_umount (guestfs_h *g,\n"
32912 "                 const char *pathordevice);\n"
32913 "\n"
32914 msgstr ""
32915
32916 #. type: =head2
32917 #: ../src/guestfs-actions.pod:7678
32918 msgid "guestfs_umount_all"
32919 msgstr ""
32920
32921 #. type: verbatim
32922 #: ../src/guestfs-actions.pod:7680
32923 #, no-wrap
32924 msgid ""
32925 " int\n"
32926 " guestfs_umount_all (guestfs_h *g);\n"
32927 "\n"
32928 msgstr ""
32929
32930 #. type: =head2
32931 #: ../src/guestfs-actions.pod:7691
32932 msgid "guestfs_upload"
32933 msgstr ""
32934
32935 #. type: verbatim
32936 #: ../src/guestfs-actions.pod:7693
32937 #, no-wrap
32938 msgid ""
32939 " int\n"
32940 " guestfs_upload (guestfs_h *g,\n"
32941 "                 const char *filename,\n"
32942 "                 const char *remotefilename);\n"
32943 "\n"
32944 msgstr ""
32945
32946 #. type: textblock
32947 #: ../src/guestfs-actions.pod:7703
32948 msgid "See also C<guestfs_download>."
32949 msgstr ""
32950
32951 #. type: =head2
32952 #: ../src/guestfs-actions.pod:7714
32953 msgid "guestfs_upload_offset"
32954 msgstr ""
32955
32956 #. type: verbatim
32957 #: ../src/guestfs-actions.pod:7716
32958 #, no-wrap
32959 msgid ""
32960 " int\n"
32961 " guestfs_upload_offset (guestfs_h *g,\n"
32962 "                        const char *filename,\n"
32963 "                        const char *remotefilename,\n"
32964 "                        int64_t offset);\n"
32965 "\n"
32966 msgstr ""
32967
32968 #. type: textblock
32969 #: ../src/guestfs-actions.pod:7732
32970 msgid ""
32971 "Note that there is no limit on the amount of data that can be uploaded with "
32972 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32973 "full amount unless an error occurs."
32974 msgstr ""
32975
32976 #. type: textblock
32977 #: ../src/guestfs-actions.pod:7737
32978 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32979 msgstr ""
32980
32981 #. type: =head2
32982 #: ../src/guestfs-actions.pod:7748
32983 msgid "guestfs_utimens"
32984 msgstr ""
32985
32986 #. type: verbatim
32987 #: ../src/guestfs-actions.pod:7750
32988 #, no-wrap
32989 msgid ""
32990 " int\n"
32991 " guestfs_utimens (guestfs_h *g,\n"
32992 "                  const char *path,\n"
32993 "                  int64_t atsecs,\n"
32994 "                  int64_t atnsecs,\n"
32995 "                  int64_t mtsecs,\n"
32996 "                  int64_t mtnsecs);\n"
32997 "\n"
32998 msgstr ""
32999
33000 #. type: =head2
33001 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
33002 msgid "guestfs_version"
33003 msgstr ""
33004
33005 #. type: verbatim
33006 #: ../src/guestfs-actions.pod:7781
33007 #, no-wrap
33008 msgid ""
33009 " struct guestfs_version *\n"
33010 " guestfs_version (guestfs_h *g);\n"
33011 "\n"
33012 msgstr ""
33013
33014 #. type: textblock
33015 #: ../src/guestfs-actions.pod:7809
33016 msgid ""
33017 "I<Note:> Don't use this call to test for availability of features.  In "
33018 "enterprise distributions we backport features from later versions into "
33019 "earlier versions, making this an unreliable way to test for features.  Use "
33020 "C<guestfs_available> instead."
33021 msgstr ""
33022
33023 #. type: textblock
33024 #: ../src/guestfs-actions.pod:7815
33025 msgid ""
33026 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33027 "error.  I<The caller must call C<guestfs_free_version> after use>."
33028 msgstr ""
33029
33030 #. type: textblock
33031 #: ../src/guestfs-actions.pod:7819
33032 msgid "(Added in 1.0.58)"
33033 msgstr ""
33034
33035 #. type: =head2
33036 #: ../src/guestfs-actions.pod:7821
33037 msgid "guestfs_vfs_label"
33038 msgstr ""
33039
33040 #. type: verbatim
33041 #: ../src/guestfs-actions.pod:7823
33042 #, no-wrap
33043 msgid ""
33044 " char *\n"
33045 " guestfs_vfs_label (guestfs_h *g,\n"
33046 "                    const char *device);\n"
33047 "\n"
33048 msgstr ""
33049
33050 #. type: textblock
33051 #: ../src/guestfs-actions.pod:7832
33052 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33053 msgstr ""
33054
33055 #. type: textblock
33056 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
33057 msgid "(Added in 1.3.18)"
33058 msgstr ""
33059
33060 #. type: =head2
33061 #: ../src/guestfs-actions.pod:7839
33062 msgid "guestfs_vfs_type"
33063 msgstr ""
33064
33065 #. type: verbatim
33066 #: ../src/guestfs-actions.pod:7841
33067 #, no-wrap
33068 msgid ""
33069 " char *\n"
33070 " guestfs_vfs_type (guestfs_h *g,\n"
33071 "                   const char *device);\n"
33072 "\n"
33073 msgstr ""
33074
33075 #. type: =head2
33076 #: ../src/guestfs-actions.pod:7858
33077 msgid "guestfs_vfs_uuid"
33078 msgstr ""
33079
33080 #. type: verbatim
33081 #: ../src/guestfs-actions.pod:7860
33082 #, no-wrap
33083 msgid ""
33084 " char *\n"
33085 " guestfs_vfs_uuid (guestfs_h *g,\n"
33086 "                   const char *device);\n"
33087 "\n"
33088 msgstr ""
33089
33090 #. type: textblock
33091 #: ../src/guestfs-actions.pod:7869
33092 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33093 msgstr ""
33094
33095 #. type: =head2
33096 #: ../src/guestfs-actions.pod:7876
33097 msgid "guestfs_vg_activate"
33098 msgstr ""
33099
33100 #. type: verbatim
33101 #: ../src/guestfs-actions.pod:7878
33102 #, no-wrap
33103 msgid ""
33104 " int\n"
33105 " guestfs_vg_activate (guestfs_h *g,\n"
33106 "                      int activate,\n"
33107 "                      char *const *volgroups);\n"
33108 "\n"
33109 msgstr ""
33110
33111 #. type: =head2
33112 #: ../src/guestfs-actions.pod:7895
33113 msgid "guestfs_vg_activate_all"
33114 msgstr ""
33115
33116 #. type: verbatim
33117 #: ../src/guestfs-actions.pod:7897
33118 #, no-wrap
33119 msgid ""
33120 " int\n"
33121 " guestfs_vg_activate_all (guestfs_h *g,\n"
33122 "                          int activate);\n"
33123 "\n"
33124 msgstr ""
33125
33126 #. type: =head2
33127 #: ../src/guestfs-actions.pod:7910
33128 msgid "guestfs_vgcreate"
33129 msgstr ""
33130
33131 #. type: verbatim
33132 #: ../src/guestfs-actions.pod:7912
33133 #, no-wrap
33134 msgid ""
33135 " int\n"
33136 " guestfs_vgcreate (guestfs_h *g,\n"
33137 "                   const char *volgroup,\n"
33138 "                   char *const *physvols);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs-actions.pod:7924
33144 msgid "guestfs_vglvuuids"
33145 msgstr ""
33146
33147 #. type: verbatim
33148 #: ../src/guestfs-actions.pod:7926
33149 #, no-wrap
33150 msgid ""
33151 " char **\n"
33152 " guestfs_vglvuuids (guestfs_h *g,\n"
33153 "                    const char *vgname);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs-actions.pod:7933
33159 msgid ""
33160 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33161 "associate logical volumes and volume groups."
33162 msgstr ""
33163
33164 #. type: textblock
33165 #: ../src/guestfs-actions.pod:7936
33166 msgid "See also C<guestfs_vgpvuuids>."
33167 msgstr ""
33168
33169 #. type: =head2
33170 #: ../src/guestfs-actions.pod:7944
33171 msgid "guestfs_vgpvuuids"
33172 msgstr ""
33173
33174 #. type: verbatim
33175 #: ../src/guestfs-actions.pod:7946
33176 #, no-wrap
33177 msgid ""
33178 " char **\n"
33179 " guestfs_vgpvuuids (guestfs_h *g,\n"
33180 "                    const char *vgname);\n"
33181 "\n"
33182 msgstr ""
33183
33184 #. type: textblock
33185 #: ../src/guestfs-actions.pod:7953
33186 msgid ""
33187 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33188 "associate physical volumes and volume groups."
33189 msgstr ""
33190
33191 #. type: textblock
33192 #: ../src/guestfs-actions.pod:7956
33193 msgid "See also C<guestfs_vglvuuids>."
33194 msgstr ""
33195
33196 #. type: =head2
33197 #: ../src/guestfs-actions.pod:7964
33198 msgid "guestfs_vgremove"
33199 msgstr ""
33200
33201 #. type: verbatim
33202 #: ../src/guestfs-actions.pod:7966
33203 #, no-wrap
33204 msgid ""
33205 " int\n"
33206 " guestfs_vgremove (guestfs_h *g,\n"
33207 "                   const char *vgname);\n"
33208 "\n"
33209 msgstr ""
33210
33211 #. type: =head2
33212 #: ../src/guestfs-actions.pod:7979
33213 msgid "guestfs_vgrename"
33214 msgstr ""
33215
33216 #. type: verbatim
33217 #: ../src/guestfs-actions.pod:7981
33218 #, no-wrap
33219 msgid ""
33220 " int\n"
33221 " guestfs_vgrename (guestfs_h *g,\n"
33222 "                   const char *volgroup,\n"
33223 "                   const char *newvolgroup);\n"
33224 "\n"
33225 msgstr ""
33226
33227 #. type: =head2
33228 #: ../src/guestfs-actions.pod:7992
33229 msgid "guestfs_vgs"
33230 msgstr ""
33231
33232 #. type: verbatim
33233 #: ../src/guestfs-actions.pod:7994
33234 #, no-wrap
33235 msgid ""
33236 " char **\n"
33237 " guestfs_vgs (guestfs_h *g);\n"
33238 "\n"
33239 msgstr ""
33240
33241 #. type: textblock
33242 #: ../src/guestfs-actions.pod:8003
33243 msgid "See also C<guestfs_vgs_full>."
33244 msgstr ""
33245
33246 #. type: =head2
33247 #: ../src/guestfs-actions.pod:8011
33248 msgid "guestfs_vgs_full"
33249 msgstr ""
33250
33251 #. type: verbatim
33252 #: ../src/guestfs-actions.pod:8013
33253 #, no-wrap
33254 msgid ""
33255 " struct guestfs_lvm_vg_list *\n"
33256 " guestfs_vgs_full (guestfs_h *g);\n"
33257 "\n"
33258 msgstr ""
33259
33260 #. type: textblock
33261 #: ../src/guestfs-actions.pod:8019
33262 msgid ""
33263 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33264 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33265 msgstr ""
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:8025
33269 msgid "guestfs_vgscan"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:8027
33274 #, no-wrap
33275 msgid ""
33276 " int\n"
33277 " guestfs_vgscan (guestfs_h *g);\n"
33278 "\n"
33279 msgstr ""
33280
33281 #. type: =head2
33282 #: ../src/guestfs-actions.pod:8037
33283 msgid "guestfs_vguuid"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs-actions.pod:8039
33288 #, no-wrap
33289 msgid ""
33290 " char *\n"
33291 " guestfs_vguuid (guestfs_h *g,\n"
33292 "                 const char *vgname);\n"
33293 "\n"
33294 msgstr ""
33295
33296 #. type: =head2
33297 #: ../src/guestfs-actions.pod:8050
33298 msgid "guestfs_wait_ready"
33299 msgstr ""
33300
33301 #. type: verbatim
33302 #: ../src/guestfs-actions.pod:8052
33303 #, no-wrap
33304 msgid ""
33305 " int\n"
33306 " guestfs_wait_ready (guestfs_h *g);\n"
33307 "\n"
33308 msgstr ""
33309
33310 #. type: textblock
33311 #: ../src/guestfs-actions.pod:8055
33312 msgid ""
33313 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33314 "instead."
33315 msgstr ""
33316
33317 #. type: textblock
33318 #: ../src/guestfs-actions.pod:8062
33319 msgid "This function is a no op."
33320 msgstr ""
33321
33322 #. type: textblock
33323 #: ../src/guestfs-actions.pod:8064
33324 msgid ""
33325 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33326 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33327 "is no longer necessary because C<guestfs_launch> now does the waiting."
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs-actions.pod:8069
33332 msgid ""
33333 "If you see any calls to this function in code then you can just remove them, "
33334 "unless you want to retain compatibility with older versions of the API."
33335 msgstr ""
33336
33337 #. type: =head2
33338 #: ../src/guestfs-actions.pod:8077
33339 msgid "guestfs_wc_c"
33340 msgstr ""
33341
33342 #. type: verbatim
33343 #: ../src/guestfs-actions.pod:8079
33344 #, no-wrap
33345 msgid ""
33346 " int\n"
33347 " guestfs_wc_c (guestfs_h *g,\n"
33348 "               const char *path);\n"
33349 "\n"
33350 msgstr ""
33351
33352 #. type: =head2
33353 #: ../src/guestfs-actions.pod:8090
33354 msgid "guestfs_wc_l"
33355 msgstr ""
33356
33357 #. type: verbatim
33358 #: ../src/guestfs-actions.pod:8092
33359 #, no-wrap
33360 msgid ""
33361 " int\n"
33362 " guestfs_wc_l (guestfs_h *g,\n"
33363 "               const char *path);\n"
33364 "\n"
33365 msgstr ""
33366
33367 #. type: =head2
33368 #: ../src/guestfs-actions.pod:8103
33369 msgid "guestfs_wc_w"
33370 msgstr ""
33371
33372 #. type: verbatim
33373 #: ../src/guestfs-actions.pod:8105
33374 #, no-wrap
33375 msgid ""
33376 " int\n"
33377 " guestfs_wc_w (guestfs_h *g,\n"
33378 "               const char *path);\n"
33379 "\n"
33380 msgstr ""
33381
33382 #. type: =head2
33383 #: ../src/guestfs-actions.pod:8116
33384 msgid "guestfs_write"
33385 msgstr ""
33386
33387 #. type: verbatim
33388 #: ../src/guestfs-actions.pod:8118
33389 #, no-wrap
33390 msgid ""
33391 " int\n"
33392 " guestfs_write (guestfs_h *g,\n"
33393 "                const char *path,\n"
33394 "                const char *content,\n"
33395 "                size_t content_size);\n"
33396 "\n"
33397 msgstr ""
33398
33399 #. type: textblock
33400 #: ../src/guestfs-actions.pod:8127
33401 msgid "See also C<guestfs_write_append>."
33402 msgstr ""
33403
33404 #. type: =head2
33405 #: ../src/guestfs-actions.pod:8136
33406 msgid "guestfs_write_append"
33407 msgstr ""
33408
33409 #. type: verbatim
33410 #: ../src/guestfs-actions.pod:8138
33411 #, no-wrap
33412 msgid ""
33413 " int\n"
33414 " guestfs_write_append (guestfs_h *g,\n"
33415 "                       const char *path,\n"
33416 "                       const char *content,\n"
33417 "                       size_t content_size);\n"
33418 "\n"
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs-actions.pod:8147
33423 msgid "See also C<guestfs_write>."
33424 msgstr ""
33425
33426 #. type: =head2
33427 #: ../src/guestfs-actions.pod:8156
33428 msgid "guestfs_write_file"
33429 msgstr ""
33430
33431 #. type: verbatim
33432 #: ../src/guestfs-actions.pod:8158
33433 #, no-wrap
33434 msgid ""
33435 " int\n"
33436 " guestfs_write_file (guestfs_h *g,\n"
33437 "                     const char *path,\n"
33438 "                     const char *content,\n"
33439 "                     int size);\n"
33440 "\n"
33441 msgstr ""
33442
33443 #. type: textblock
33444 #: ../src/guestfs-actions.pod:8164
33445 msgid ""
33446 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33447 "instead."
33448 msgstr ""
33449
33450 #. type: =head2
33451 #: ../src/guestfs-actions.pod:8189
33452 msgid "guestfs_zegrep"
33453 msgstr ""
33454
33455 #. type: verbatim
33456 #: ../src/guestfs-actions.pod:8191
33457 #, no-wrap
33458 msgid ""
33459 " char **\n"
33460 " guestfs_zegrep (guestfs_h *g,\n"
33461 "                 const char *regex,\n"
33462 "                 const char *path);\n"
33463 "\n"
33464 msgstr ""
33465
33466 #. type: =head2
33467 #: ../src/guestfs-actions.pod:8208
33468 msgid "guestfs_zegrepi"
33469 msgstr ""
33470
33471 #. type: verbatim
33472 #: ../src/guestfs-actions.pod:8210
33473 #, no-wrap
33474 msgid ""
33475 " char **\n"
33476 " guestfs_zegrepi (guestfs_h *g,\n"
33477 "                  const char *regex,\n"
33478 "                  const char *path);\n"
33479 "\n"
33480 msgstr ""
33481
33482 #. type: =head2
33483 #: ../src/guestfs-actions.pod:8227
33484 msgid "guestfs_zero"
33485 msgstr ""
33486
33487 #. type: verbatim
33488 #: ../src/guestfs-actions.pod:8229
33489 #, no-wrap
33490 msgid ""
33491 " int\n"
33492 " guestfs_zero (guestfs_h *g,\n"
33493 "               const char *device);\n"
33494 "\n"
33495 msgstr ""
33496
33497 #. type: textblock
33498 #: ../src/guestfs-actions.pod:8243
33499 msgid ""
33500 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33501 "C<guestfs_is_zero_device>"
33502 msgstr ""
33503
33504 #. type: =head2
33505 #: ../src/guestfs-actions.pod:8255
33506 msgid "guestfs_zero_device"
33507 msgstr ""
33508
33509 #. type: verbatim
33510 #: ../src/guestfs-actions.pod:8257
33511 #, no-wrap
33512 msgid ""
33513 " int\n"
33514 " guestfs_zero_device (guestfs_h *g,\n"
33515 "                      const char *device);\n"
33516 "\n"
33517 msgstr ""
33518
33519 #. type: textblock
33520 #: ../src/guestfs-actions.pod:8261
33521 msgid ""
33522 "This command writes zeroes over the entire C<device>.  Compare with "
33523 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33524 msgstr ""
33525
33526 #. type: textblock
33527 #: ../src/guestfs-actions.pod:8276
33528 msgid "(Added in 1.3.1)"
33529 msgstr ""
33530
33531 #. type: =head2
33532 #: ../src/guestfs-actions.pod:8278
33533 msgid "guestfs_zerofree"
33534 msgstr ""
33535
33536 #. type: verbatim
33537 #: ../src/guestfs-actions.pod:8280
33538 #, no-wrap
33539 msgid ""
33540 " int\n"
33541 " guestfs_zerofree (guestfs_h *g,\n"
33542 "                   const char *device);\n"
33543 "\n"
33544 msgstr ""
33545
33546 #. type: =head2
33547 #: ../src/guestfs-actions.pod:8299
33548 msgid "guestfs_zfgrep"
33549 msgstr ""
33550
33551 #. type: verbatim
33552 #: ../src/guestfs-actions.pod:8301
33553 #, no-wrap
33554 msgid ""
33555 " char **\n"
33556 " guestfs_zfgrep (guestfs_h *g,\n"
33557 "                 const char *pattern,\n"
33558 "                 const char *path);\n"
33559 "\n"
33560 msgstr ""
33561
33562 #. type: =head2
33563 #: ../src/guestfs-actions.pod:8318
33564 msgid "guestfs_zfgrepi"
33565 msgstr ""
33566
33567 #. type: verbatim
33568 #: ../src/guestfs-actions.pod:8320
33569 #, no-wrap
33570 msgid ""
33571 " char **\n"
33572 " guestfs_zfgrepi (guestfs_h *g,\n"
33573 "                  const char *pattern,\n"
33574 "                  const char *path);\n"
33575 "\n"
33576 msgstr ""
33577
33578 #. type: =head2
33579 #: ../src/guestfs-actions.pod:8337
33580 msgid "guestfs_zfile"
33581 msgstr ""
33582
33583 #. type: verbatim
33584 #: ../src/guestfs-actions.pod:8339
33585 #, no-wrap
33586 msgid ""
33587 " char *\n"
33588 " guestfs_zfile (guestfs_h *g,\n"
33589 "                const char *meth,\n"
33590 "                const char *path);\n"
33591 "\n"
33592 msgstr ""
33593
33594 #. type: textblock
33595 #: ../src/guestfs-actions.pod:8344
33596 msgid ""
33597 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33598 "instead."
33599 msgstr ""
33600
33601 #. type: textblock
33602 #: ../src/guestfs-actions.pod:8356
33603 msgid ""
33604 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33605 "files."
33606 msgstr ""
33607
33608 #. type: =head2
33609 #: ../src/guestfs-actions.pod:8364
33610 msgid "guestfs_zgrep"
33611 msgstr ""
33612
33613 #. type: verbatim
33614 #: ../src/guestfs-actions.pod:8366
33615 #, no-wrap
33616 msgid ""
33617 " char **\n"
33618 " guestfs_zgrep (guestfs_h *g,\n"
33619 "                const char *regex,\n"
33620 "                const char *path);\n"
33621 "\n"
33622 msgstr ""
33623
33624 #. type: =head2
33625 #: ../src/guestfs-actions.pod:8383
33626 msgid "guestfs_zgrepi"
33627 msgstr ""
33628
33629 #. type: verbatim
33630 #: ../src/guestfs-actions.pod:8385
33631 #, no-wrap
33632 msgid ""
33633 " char **\n"
33634 " guestfs_zgrepi (guestfs_h *g,\n"
33635 "                 const char *regex,\n"
33636 "                 const char *path);\n"
33637 "\n"
33638 msgstr ""
33639
33640 #. type: =item
33641 #: ../src/guestfs-availability.pod:3
33642 msgid "B<augeas>"
33643 msgstr ""
33644
33645 #. type: textblock
33646 #: ../src/guestfs-availability.pod:5
33647 msgid ""
33648 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33649 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33650 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33651 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33652 "L</guestfs_aug_save> L</guestfs_aug_set>"
33653 msgstr ""
33654
33655 #. type: =item
33656 #: ../src/guestfs-availability.pod:21
33657 msgid "B<btrfs>"
33658 msgstr ""
33659
33660 #. type: textblock
33661 #: ../src/guestfs-availability.pod:23
33662 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33663 msgstr ""
33664
33665 #. type: =item
33666 #: ../src/guestfs-availability.pod:26
33667 msgid "B<grub>"
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs-availability.pod:28
33672 msgid "The following functions: L</guestfs_grub_install>"
33673 msgstr ""
33674
33675 #. type: =item
33676 #: ../src/guestfs-availability.pod:31
33677 msgid "B<inotify>"
33678 msgstr ""
33679
33680 #. type: textblock
33681 #: ../src/guestfs-availability.pod:33
33682 msgid ""
33683 "The following functions: L</guestfs_inotify_add_watch> L</"
33684 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33685 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33686 msgstr ""
33687
33688 #. type: =item
33689 #: ../src/guestfs-availability.pod:41
33690 msgid "B<linuxfsuuid>"
33691 msgstr ""
33692
33693 #. type: textblock
33694 #: ../src/guestfs-availability.pod:43
33695 msgid ""
33696 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33697 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33698 msgstr ""
33699
33700 #. type: =item
33701 #: ../src/guestfs-availability.pod:50
33702 msgid "B<linuxmodules>"
33703 msgstr ""
33704
33705 #. type: textblock
33706 #: ../src/guestfs-availability.pod:52
33707 msgid "The following functions: L</guestfs_modprobe>"
33708 msgstr ""
33709
33710 #. type: =item
33711 #: ../src/guestfs-availability.pod:55
33712 msgid "B<linuxxattrs>"
33713 msgstr ""
33714
33715 #. type: textblock
33716 #: ../src/guestfs-availability.pod:57
33717 msgid ""
33718 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33719 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33720 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33721 "guestfs_setxattr>"
33722 msgstr ""
33723
33724 #. type: =item
33725 #: ../src/guestfs-availability.pod:68
33726 msgid "B<luks>"
33727 msgstr ""
33728
33729 #. type: textblock
33730 #: ../src/guestfs-availability.pod:70
33731 msgid ""
33732 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33733 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33734 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33735 msgstr ""
33736
33737 #. type: =item
33738 #: ../src/guestfs-availability.pod:79
33739 msgid "B<lvm2>"
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs-availability.pod:81
33744 msgid ""
33745 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33746 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33747 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33748 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33749 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33750 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33751 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33752 msgstr ""
33753
33754 #. type: =item
33755 #: ../src/guestfs-availability.pod:104
33756 msgid "B<mknod>"
33757 msgstr ""
33758
33759 #. type: textblock
33760 #: ../src/guestfs-availability.pod:106
33761 msgid ""
33762 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33763 "guestfs_mknod_b> L</guestfs_mknod_c>"
33764 msgstr ""
33765
33766 #. type: =item
33767 #: ../src/guestfs-availability.pod:112
33768 msgid "B<ntfs3g>"
33769 msgstr ""
33770
33771 #. type: textblock
33772 #: ../src/guestfs-availability.pod:114
33773 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33774 msgstr ""
33775
33776 #. type: =item
33777 #: ../src/guestfs-availability.pod:117
33778 msgid "B<ntfsprogs>"
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs-availability.pod:119
33783 msgid ""
33784 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33785 "L</guestfs_ntfsresize_size>"
33786 msgstr ""
33787
33788 #. type: =item
33789 #: ../src/guestfs-availability.pod:124
33790 msgid "B<realpath>"
33791 msgstr ""
33792
33793 #. type: textblock
33794 #: ../src/guestfs-availability.pod:126
33795 msgid "The following functions: L</guestfs_realpath>"
33796 msgstr ""
33797
33798 #. type: =item
33799 #: ../src/guestfs-availability.pod:129
33800 msgid "B<scrub>"
33801 msgstr ""
33802
33803 #. type: textblock
33804 #: ../src/guestfs-availability.pod:131
33805 msgid ""
33806 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33807 "guestfs_scrub_freespace>"
33808 msgstr ""
33809
33810 #. type: =item
33811 #: ../src/guestfs-availability.pod:136
33812 msgid "B<selinux>"
33813 msgstr ""
33814
33815 #. type: textblock
33816 #: ../src/guestfs-availability.pod:138
33817 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33818 msgstr ""
33819
33820 #. type: =item
33821 #: ../src/guestfs-availability.pod:142
33822 msgid "B<xz>"
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs-availability.pod:144
33827 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33828 msgstr ""
33829
33830 #. type: =item
33831 #: ../src/guestfs-availability.pod:148
33832 msgid "B<zerofree>"
33833 msgstr ""
33834
33835 #. type: textblock
33836 #: ../src/guestfs-availability.pod:150
33837 msgid "The following functions: L</guestfs_zerofree>"
33838 msgstr ""
33839
33840 #. type: =head2
33841 #: ../src/guestfs-structs.pod:1
33842 msgid "guestfs_int_bool"
33843 msgstr ""
33844
33845 #. type: verbatim
33846 #: ../src/guestfs-structs.pod:3
33847 #, no-wrap
33848 msgid ""
33849 " struct guestfs_int_bool {\n"
33850 "   int32_t i;\n"
33851 "   int32_t b;\n"
33852 " };\n"
33853 " \n"
33854 msgstr ""
33855
33856 #. type: verbatim
33857 #: ../src/guestfs-structs.pod:8
33858 #, no-wrap
33859 msgid ""
33860 " struct guestfs_int_bool_list {\n"
33861 "   uint32_t len; /* Number of elements in list. */\n"
33862 "   struct guestfs_int_bool *val; /* Elements. */\n"
33863 " };\n"
33864 " \n"
33865 msgstr ""
33866
33867 #. type: verbatim
33868 #: ../src/guestfs-structs.pod:13
33869 #, no-wrap
33870 msgid ""
33871 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33872 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: =head2
33877 #: ../src/guestfs-structs.pod:16
33878 msgid "guestfs_lvm_pv"
33879 msgstr ""
33880
33881 #. type: verbatim
33882 #: ../src/guestfs-structs.pod:18
33883 #, no-wrap
33884 msgid ""
33885 " struct guestfs_lvm_pv {\n"
33886 "   char *pv_name;\n"
33887 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33888 "   char pv_uuid[32];\n"
33889 "   char *pv_fmt;\n"
33890 "   uint64_t pv_size;\n"
33891 "   uint64_t dev_size;\n"
33892 "   uint64_t pv_free;\n"
33893 "   uint64_t pv_used;\n"
33894 "   char *pv_attr;\n"
33895 "   int64_t pv_pe_count;\n"
33896 "   int64_t pv_pe_alloc_count;\n"
33897 "   char *pv_tags;\n"
33898 "   uint64_t pe_start;\n"
33899 "   int64_t pv_mda_count;\n"
33900 "   uint64_t pv_mda_free;\n"
33901 " };\n"
33902 " \n"
33903 msgstr ""
33904
33905 #. type: verbatim
33906 #: ../src/guestfs-structs.pod:36
33907 #, no-wrap
33908 msgid ""
33909 " struct guestfs_lvm_pv_list {\n"
33910 "   uint32_t len; /* Number of elements in list. */\n"
33911 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33912 " };\n"
33913 " \n"
33914 msgstr ""
33915
33916 #. type: verbatim
33917 #: ../src/guestfs-structs.pod:41
33918 #, no-wrap
33919 msgid ""
33920 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33921 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33922 "\n"
33923 msgstr ""
33924
33925 #. type: =head2
33926 #: ../src/guestfs-structs.pod:44
33927 msgid "guestfs_lvm_vg"
33928 msgstr ""
33929
33930 #. type: verbatim
33931 #: ../src/guestfs-structs.pod:46
33932 #, no-wrap
33933 msgid ""
33934 " struct guestfs_lvm_vg {\n"
33935 "   char *vg_name;\n"
33936 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33937 "   char vg_uuid[32];\n"
33938 "   char *vg_fmt;\n"
33939 "   char *vg_attr;\n"
33940 "   uint64_t vg_size;\n"
33941 "   uint64_t vg_free;\n"
33942 "   char *vg_sysid;\n"
33943 "   uint64_t vg_extent_size;\n"
33944 "   int64_t vg_extent_count;\n"
33945 "   int64_t vg_free_count;\n"
33946 "   int64_t max_lv;\n"
33947 "   int64_t max_pv;\n"
33948 "   int64_t pv_count;\n"
33949 "   int64_t lv_count;\n"
33950 "   int64_t snap_count;\n"
33951 "   int64_t vg_seqno;\n"
33952 "   char *vg_tags;\n"
33953 "   int64_t vg_mda_count;\n"
33954 "   uint64_t vg_mda_free;\n"
33955 " };\n"
33956 " \n"
33957 msgstr ""
33958
33959 #. type: verbatim
33960 #: ../src/guestfs-structs.pod:69
33961 #, no-wrap
33962 msgid ""
33963 " struct guestfs_lvm_vg_list {\n"
33964 "   uint32_t len; /* Number of elements in list. */\n"
33965 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33966 " };\n"
33967 " \n"
33968 msgstr ""
33969
33970 #. type: verbatim
33971 #: ../src/guestfs-structs.pod:74
33972 #, no-wrap
33973 msgid ""
33974 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33975 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33976 "\n"
33977 msgstr ""
33978
33979 #. type: =head2
33980 #: ../src/guestfs-structs.pod:77
33981 msgid "guestfs_lvm_lv"
33982 msgstr ""
33983
33984 #. type: verbatim
33985 #: ../src/guestfs-structs.pod:79
33986 #, no-wrap
33987 msgid ""
33988 " struct guestfs_lvm_lv {\n"
33989 "   char *lv_name;\n"
33990 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33991 "   char lv_uuid[32];\n"
33992 "   char *lv_attr;\n"
33993 "   int64_t lv_major;\n"
33994 "   int64_t lv_minor;\n"
33995 "   int64_t lv_kernel_major;\n"
33996 "   int64_t lv_kernel_minor;\n"
33997 "   uint64_t lv_size;\n"
33998 "   int64_t seg_count;\n"
33999 "   char *origin;\n"
34000 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34001 "   float snap_percent;\n"
34002 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34003 "   float copy_percent;\n"
34004 "   char *move_pv;\n"
34005 "   char *lv_tags;\n"
34006 "   char *mirror_log;\n"
34007 "   char *modules;\n"
34008 " };\n"
34009 " \n"
34010 msgstr ""
34011
34012 #. type: verbatim
34013 #: ../src/guestfs-structs.pod:101
34014 #, no-wrap
34015 msgid ""
34016 " struct guestfs_lvm_lv_list {\n"
34017 "   uint32_t len; /* Number of elements in list. */\n"
34018 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34019 " };\n"
34020 " \n"
34021 msgstr ""
34022
34023 #. type: verbatim
34024 #: ../src/guestfs-structs.pod:106
34025 #, no-wrap
34026 msgid ""
34027 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34028 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34029 "\n"
34030 msgstr ""
34031
34032 #. type: verbatim
34033 #: ../src/guestfs-structs.pod:111
34034 #, no-wrap
34035 msgid ""
34036 " struct guestfs_stat {\n"
34037 "   int64_t dev;\n"
34038 "   int64_t ino;\n"
34039 "   int64_t mode;\n"
34040 "   int64_t nlink;\n"
34041 "   int64_t uid;\n"
34042 "   int64_t gid;\n"
34043 "   int64_t rdev;\n"
34044 "   int64_t size;\n"
34045 "   int64_t blksize;\n"
34046 "   int64_t blocks;\n"
34047 "   int64_t atime;\n"
34048 "   int64_t mtime;\n"
34049 "   int64_t ctime;\n"
34050 " };\n"
34051 " \n"
34052 msgstr ""
34053
34054 #. type: verbatim
34055 #: ../src/guestfs-structs.pod:127
34056 #, no-wrap
34057 msgid ""
34058 " struct guestfs_stat_list {\n"
34059 "   uint32_t len; /* Number of elements in list. */\n"
34060 "   struct guestfs_stat *val; /* Elements. */\n"
34061 " };\n"
34062 " \n"
34063 msgstr ""
34064
34065 #. type: verbatim
34066 #: ../src/guestfs-structs.pod:132
34067 #, no-wrap
34068 msgid ""
34069 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34070 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34071 "\n"
34072 msgstr ""
34073
34074 #. type: verbatim
34075 #: ../src/guestfs-structs.pod:137
34076 #, no-wrap
34077 msgid ""
34078 " struct guestfs_statvfs {\n"
34079 "   int64_t bsize;\n"
34080 "   int64_t frsize;\n"
34081 "   int64_t blocks;\n"
34082 "   int64_t bfree;\n"
34083 "   int64_t bavail;\n"
34084 "   int64_t files;\n"
34085 "   int64_t ffree;\n"
34086 "   int64_t favail;\n"
34087 "   int64_t fsid;\n"
34088 "   int64_t flag;\n"
34089 "   int64_t namemax;\n"
34090 " };\n"
34091 " \n"
34092 msgstr ""
34093
34094 #. type: verbatim
34095 #: ../src/guestfs-structs.pod:151
34096 #, no-wrap
34097 msgid ""
34098 " struct guestfs_statvfs_list {\n"
34099 "   uint32_t len; /* Number of elements in list. */\n"
34100 "   struct guestfs_statvfs *val; /* Elements. */\n"
34101 " };\n"
34102 " \n"
34103 msgstr ""
34104
34105 #. type: verbatim
34106 #: ../src/guestfs-structs.pod:156
34107 #, no-wrap
34108 msgid ""
34109 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34110 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34111 "\n"
34112 msgstr ""
34113
34114 #. type: =head2
34115 #: ../src/guestfs-structs.pod:159
34116 msgid "guestfs_dirent"
34117 msgstr ""
34118
34119 #. type: verbatim
34120 #: ../src/guestfs-structs.pod:161
34121 #, no-wrap
34122 msgid ""
34123 " struct guestfs_dirent {\n"
34124 "   int64_t ino;\n"
34125 "   char ftyp;\n"
34126 "   char *name;\n"
34127 " };\n"
34128 " \n"
34129 msgstr ""
34130
34131 #. type: verbatim
34132 #: ../src/guestfs-structs.pod:167
34133 #, no-wrap
34134 msgid ""
34135 " struct guestfs_dirent_list {\n"
34136 "   uint32_t len; /* Number of elements in list. */\n"
34137 "   struct guestfs_dirent *val; /* Elements. */\n"
34138 " };\n"
34139 " \n"
34140 msgstr ""
34141
34142 #. type: verbatim
34143 #: ../src/guestfs-structs.pod:172
34144 #, no-wrap
34145 msgid ""
34146 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34147 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34148 "\n"
34149 msgstr ""
34150
34151 #. type: verbatim
34152 #: ../src/guestfs-structs.pod:177
34153 #, no-wrap
34154 msgid ""
34155 " struct guestfs_version {\n"
34156 "   int64_t major;\n"
34157 "   int64_t minor;\n"
34158 "   int64_t release;\n"
34159 "   char *extra;\n"
34160 " };\n"
34161 " \n"
34162 msgstr ""
34163
34164 #. type: verbatim
34165 #: ../src/guestfs-structs.pod:184
34166 #, no-wrap
34167 msgid ""
34168 " struct guestfs_version_list {\n"
34169 "   uint32_t len; /* Number of elements in list. */\n"
34170 "   struct guestfs_version *val; /* Elements. */\n"
34171 " };\n"
34172 " \n"
34173 msgstr ""
34174
34175 #. type: verbatim
34176 #: ../src/guestfs-structs.pod:189
34177 #, no-wrap
34178 msgid ""
34179 " void guestfs_free_version (struct guestfs_free_version *);\n"
34180 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34181 "\n"
34182 msgstr ""
34183
34184 #. type: =head2
34185 #: ../src/guestfs-structs.pod:192
34186 msgid "guestfs_xattr"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs-structs.pod:194
34191 #, no-wrap
34192 msgid ""
34193 " struct guestfs_xattr {\n"
34194 "   char *attrname;\n"
34195 "   /* The next two fields describe a byte array. */\n"
34196 "   uint32_t attrval_len;\n"
34197 "   char *attrval;\n"
34198 " };\n"
34199 " \n"
34200 msgstr ""
34201
34202 #. type: verbatim
34203 #: ../src/guestfs-structs.pod:201
34204 #, no-wrap
34205 msgid ""
34206 " struct guestfs_xattr_list {\n"
34207 "   uint32_t len; /* Number of elements in list. */\n"
34208 "   struct guestfs_xattr *val; /* Elements. */\n"
34209 " };\n"
34210 " \n"
34211 msgstr ""
34212
34213 #. type: verbatim
34214 #: ../src/guestfs-structs.pod:206
34215 #, no-wrap
34216 msgid ""
34217 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34218 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34219 "\n"
34220 msgstr ""
34221
34222 #. type: =head2
34223 #: ../src/guestfs-structs.pod:209
34224 msgid "guestfs_inotify_event"
34225 msgstr ""
34226
34227 #. type: verbatim
34228 #: ../src/guestfs-structs.pod:211
34229 #, no-wrap
34230 msgid ""
34231 " struct guestfs_inotify_event {\n"
34232 "   int64_t in_wd;\n"
34233 "   uint32_t in_mask;\n"
34234 "   uint32_t in_cookie;\n"
34235 "   char *in_name;\n"
34236 " };\n"
34237 " \n"
34238 msgstr ""
34239
34240 #. type: verbatim
34241 #: ../src/guestfs-structs.pod:218
34242 #, no-wrap
34243 msgid ""
34244 " struct guestfs_inotify_event_list {\n"
34245 "   uint32_t len; /* Number of elements in list. */\n"
34246 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34247 " };\n"
34248 " \n"
34249 msgstr ""
34250
34251 #. type: verbatim
34252 #: ../src/guestfs-structs.pod:223
34253 #, no-wrap
34254 msgid ""
34255 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34256 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34257 "\n"
34258 msgstr ""
34259
34260 #. type: =head2
34261 #: ../src/guestfs-structs.pod:226
34262 msgid "guestfs_partition"
34263 msgstr ""
34264
34265 #. type: verbatim
34266 #: ../src/guestfs-structs.pod:228
34267 #, no-wrap
34268 msgid ""
34269 " struct guestfs_partition {\n"
34270 "   int32_t part_num;\n"
34271 "   uint64_t part_start;\n"
34272 "   uint64_t part_end;\n"
34273 "   uint64_t part_size;\n"
34274 " };\n"
34275 " \n"
34276 msgstr ""
34277
34278 #. type: verbatim
34279 #: ../src/guestfs-structs.pod:235
34280 #, no-wrap
34281 msgid ""
34282 " struct guestfs_partition_list {\n"
34283 "   uint32_t len; /* Number of elements in list. */\n"
34284 "   struct guestfs_partition *val; /* Elements. */\n"
34285 " };\n"
34286 " \n"
34287 msgstr ""
34288
34289 #. type: verbatim
34290 #: ../src/guestfs-structs.pod:240
34291 #, no-wrap
34292 msgid ""
34293 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34294 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34295 "\n"
34296 msgstr ""
34297
34298 #. type: =head2
34299 #: ../src/guestfs-structs.pod:243
34300 msgid "guestfs_application"
34301 msgstr ""
34302
34303 #. type: verbatim
34304 #: ../src/guestfs-structs.pod:245
34305 #, no-wrap
34306 msgid ""
34307 " struct guestfs_application {\n"
34308 "   char *app_name;\n"
34309 "   char *app_display_name;\n"
34310 "   int32_t app_epoch;\n"
34311 "   char *app_version;\n"
34312 "   char *app_release;\n"
34313 "   char *app_install_path;\n"
34314 "   char *app_trans_path;\n"
34315 "   char *app_publisher;\n"
34316 "   char *app_url;\n"
34317 "   char *app_source_package;\n"
34318 "   char *app_summary;\n"
34319 "   char *app_description;\n"
34320 " };\n"
34321 " \n"
34322 msgstr ""
34323
34324 #. type: verbatim
34325 #: ../src/guestfs-structs.pod:260
34326 #, no-wrap
34327 msgid ""
34328 " struct guestfs_application_list {\n"
34329 "   uint32_t len; /* Number of elements in list. */\n"
34330 "   struct guestfs_application *val; /* Elements. */\n"
34331 " };\n"
34332 " \n"
34333 msgstr ""
34334
34335 #. type: verbatim
34336 #: ../src/guestfs-structs.pod:265
34337 #, no-wrap
34338 msgid ""
34339 " void guestfs_free_application (struct guestfs_free_application *);\n"
34340 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34341 "\n"
34342 msgstr ""
34343
34344 #. type: textblock
34345 #: ../src/guestfs.pod:5
34346 msgid "guestfs - Library for accessing and modifying virtual machine images"
34347 msgstr ""
34348
34349 #. type: verbatim
34350 #: ../src/guestfs.pod:11
34351 #, no-wrap
34352 msgid ""
34353 " guestfs_h *g = guestfs_create ();\n"
34354 " guestfs_add_drive (g, \"guest.img\");\n"
34355 " guestfs_launch (g);\n"
34356 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34357 " guestfs_touch (g, \"/hello\");\n"
34358 " guestfs_umount (g, \"/\");\n"
34359 " guestfs_close (g);\n"
34360 "\n"
34361 msgstr ""
34362 " guestfs_h *g = guestfs_create ();\n"
34363 " guestfs_add_drive (g, \"guest.img\");\n"
34364 " guestfs_launch (g);\n"
34365 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34366 " guestfs_touch (g, \"/hello\");\n"
34367 " guestfs_umount (g, \"/\");\n"
34368 " guestfs_close (g);\n"
34369 "\n"
34370
34371 #. type: textblock
34372 #: ../src/guestfs.pod:25
34373 msgid ""
34374 "Libguestfs is a library for accessing and modifying guest disk images.  "
34375 "Amongst the things this is good for: making batch configuration changes to "
34376 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34377 "between virtualization systems (see also: virt-p2v), performing partial "
34378 "backups, performing partial guest clones, cloning guests and changing "
34379 "registry/UUID/hostname info, and much else besides."
34380 msgstr ""
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:33
34384 msgid ""
34385 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34386 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34387 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34388 "qcow2, vmdk."
34389 msgstr ""
34390
34391 #. type: textblock
34392 #: ../src/guestfs.pod:38
34393 msgid ""
34394 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34395 "what filesystem is in each LV, etc.).  It can also run commands in the "
34396 "context of the guest.  Also you can access filesystems over FUSE."
34397 msgstr ""
34398
34399 #. type: textblock
34400 #: ../src/guestfs.pod:43
34401 msgid ""
34402 "Libguestfs is a library that can be linked with C and C++ management "
34403 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34404 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34405 "command line."
34406 msgstr ""
34407
34408 #. type: textblock
34409 #: ../src/guestfs.pod:48
34410 msgid ""
34411 "You don't need to be root to use libguestfs, although obviously you do need "
34412 "enough permissions to access the disk images."
34413 msgstr ""
34414
34415 #. type: textblock
34416 #: ../src/guestfs.pod:51
34417 msgid ""
34418 "Libguestfs is a large API because it can do many things.  For a gentle "
34419 "introduction, please read the L</API OVERVIEW> section next."
34420 msgstr ""
34421
34422 #. type: textblock
34423 #: ../src/guestfs.pod:54
34424 msgid ""
34425 "There are also some example programs in the L<guestfs-examples(3)> manual "
34426 "page."
34427 msgstr ""
34428
34429 #. type: =head1
34430 #: ../src/guestfs.pod:57
34431 msgid "API OVERVIEW"
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:59
34436 msgid ""
34437 "This section provides a gentler overview of the libguestfs API.  We also try "
34438 "to group API calls together, where that may not be obvious from reading "
34439 "about the individual calls in the main section of this manual."
34440 msgstr ""
34441
34442 #. type: =head2
34443 #: ../src/guestfs.pod:64
34444 msgid "HANDLES"
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs.pod:66
34449 msgid ""
34450 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34451 "must add at least one disk image to the handle, followed by launching the "
34452 "handle, then performing whatever operations you want, and finally closing "
34453 "the handle.  By convention we use the single letter C<g> for the name of the "
34454 "handle variable, although of course you can use any name you want."
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs.pod:73
34459 msgid "The general structure of all libguestfs-using programs looks like this:"
34460 msgstr ""
34461
34462 #. type: verbatim
34463 #: ../src/guestfs.pod:76
34464 #, no-wrap
34465 msgid ""
34466 " guestfs_h *g = guestfs_create ();\n"
34467 " \n"
34468 msgstr ""
34469
34470 #. type: verbatim
34471 #: ../src/guestfs.pod:78
34472 #, no-wrap
34473 msgid ""
34474 " /* Call guestfs_add_drive additional times if there are\n"
34475 "  * multiple disk images.\n"
34476 "  */\n"
34477 " guestfs_add_drive (g, \"guest.img\");\n"
34478 " \n"
34479 msgstr ""
34480
34481 #. type: verbatim
34482 #: ../src/guestfs.pod:83
34483 #, no-wrap
34484 msgid ""
34485 " /* Most manipulation calls won't work until you've launched\n"
34486 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34487 "  * and _before_ other commands.\n"
34488 "  */\n"
34489 " guestfs_launch (g);\n"
34490 " \n"
34491 msgstr ""
34492
34493 #. type: verbatim
34494 #: ../src/guestfs.pod:89
34495 #, no-wrap
34496 msgid ""
34497 " /* Now you can examine what partitions, LVs etc are available.\n"
34498 "  */\n"
34499 " char **partitions = guestfs_list_partitions (g);\n"
34500 " char **logvols = guestfs_lvs (g);\n"
34501 " \n"
34502 msgstr ""
34503
34504 #. type: verbatim
34505 #: ../src/guestfs.pod:94
34506 #, no-wrap
34507 msgid ""
34508 " /* To access a filesystem in the image, you must mount it.\n"
34509 "  */\n"
34510 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34511 " \n"
34512 msgstr ""
34513
34514 #. type: verbatim
34515 #: ../src/guestfs.pod:98
34516 #, no-wrap
34517 msgid ""
34518 " /* Now you can perform filesystem actions on the guest\n"
34519 "  * disk image.\n"
34520 "  */\n"
34521 " guestfs_touch (g, \"/hello\");\n"
34522 " \n"
34523 msgstr ""
34524
34525 #. type: verbatim
34526 #: ../src/guestfs.pod:103
34527 #, no-wrap
34528 msgid ""
34529 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34530 "  * it is done automatically when you close the handle.  See\n"
34531 "  * discussion of autosync in this page.\n"
34532 "  */\n"
34533 " guestfs_sync (g);\n"
34534 " \n"
34535 msgstr ""
34536
34537 #. type: verbatim
34538 #: ../src/guestfs.pod:109
34539 #, no-wrap
34540 msgid ""
34541 " /* Close the handle 'g'. */\n"
34542 " guestfs_close (g);\n"
34543 "\n"
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:112
34548 msgid ""
34549 "The code above doesn't include any error checking.  In real code you should "
34550 "check return values carefully for errors.  In general all functions that "
34551 "return integers return C<-1> on error, and all functions that return "
34552 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34553 "how to handle errors, and consult the documentation for each function call "
34554 "below to see precisely how they return error indications.  See L<guestfs-"
34555 "examples(3)> for fully worked examples."
34556 msgstr ""
34557
34558 #. type: =head2
34559 #: ../src/guestfs.pod:121
34560 msgid "DISK IMAGES"
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:123
34565 msgid ""
34566 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34567 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34568 "actual block device, or simply an empty file of zeroes that you have created "
34569 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34570 "of these."
34571 msgstr ""
34572
34573 #. type: textblock
34574 #: ../src/guestfs.pod:129
34575 msgid ""
34576 "The call you should use in modern code for adding drives is L</"
34577 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34578 "specifying that the format is raw, do:"
34579 msgstr ""
34580
34581 #. type: verbatim
34582 #: ../src/guestfs.pod:133
34583 #, no-wrap
34584 msgid ""
34585 " guestfs_add_drive_opts (g, filename,\n"
34586 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34587 "                         -1);\n"
34588 "\n"
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:137
34593 msgid "You can add a disk read-only using:"
34594 msgstr ""
34595
34596 #. type: verbatim
34597 #: ../src/guestfs.pod:139
34598 #, no-wrap
34599 msgid ""
34600 " guestfs_add_drive_opts (g, filename,\n"
34601 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34602 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34603 "                         -1);\n"
34604 "\n"
34605 msgstr ""
34606
34607 #. type: textblock
34608 #: ../src/guestfs.pod:144
34609 msgid ""
34610 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34611 "libguestfs won't modify the file."
34612 msgstr ""
34613
34614 #. type: textblock
34615 #: ../src/guestfs.pod:147
34616 msgid ""
34617 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34618 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34619 "corruption, but adding it read-only is safe."
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:151
34624 msgid ""
34625 "You must add at least one disk image, and you may add multiple disk images.  "
34626 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34627 "first one you added), C</dev/sdb> (for the second one you added), etc."
34628 msgstr ""
34629
34630 #. type: textblock
34631 #: ../src/guestfs.pod:156
34632 msgid ""
34633 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34634 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34635 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34636 msgstr ""
34637
34638 #. type: =head2
34639 #: ../src/guestfs.pod:161
34640 msgid "MOUNTING"
34641 msgstr ""
34642
34643 #. type: textblock
34644 #: ../src/guestfs.pod:163
34645 msgid ""
34646 "Before you can read or write files, create directories and so on in a disk "
34647 "image that contains filesystems, you have to mount those filesystems using "
34648 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34649 "a disk image contains (for example) one partition with a filesystem on that "
34650 "partition, then you can mount it directly:"
34651 msgstr ""
34652
34653 #. type: verbatim
34654 #: ../src/guestfs.pod:170
34655 #, no-wrap
34656 msgid ""
34657 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34658 "\n"
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs.pod:172
34663 msgid ""
34664 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34665 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34666 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34667 "that these are libguestfs virtual devices, and are nothing to do with host "
34668 "devices."
34669 msgstr ""
34670
34671 #. type: textblock
34672 #: ../src/guestfs.pod:178
34673 msgid ""
34674 "If you are given a disk image and you don't know what it contains then you "
34675 "have to find out.  Libguestfs can do that too: use L</"
34676 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34677 "LVs, and either try mounting each to see what is mountable, or else examine "
34678 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34679 "filesystems, use L</guestfs_list_filesystems>."
34680 msgstr ""
34681
34682 #. type: textblock
34683 #: ../src/guestfs.pod:186
34684 msgid ""
34685 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34686 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34687 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34688 msgstr ""
34689
34690 #. type: textblock
34691 #: ../src/guestfs.pod:191
34692 msgid ""
34693 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34694 "several other variations of the C<guestfs_mount_*> call."
34695 msgstr ""
34696
34697 #. type: =head2
34698 #: ../src/guestfs.pod:194
34699 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34700 msgstr ""
34701
34702 #. type: textblock
34703 #: ../src/guestfs.pod:196
34704 msgid ""
34705 "The majority of the libguestfs API consists of fairly low-level calls for "
34706 "accessing and modifying the files, directories, symlinks etc on mounted "
34707 "filesystems.  There are over a hundred such calls which you can find listed "
34708 "in detail below in this man page, and we don't even pretend to cover them "
34709 "all in this overview."
34710 msgstr ""
34711
34712 #. type: textblock
34713 #: ../src/guestfs.pod:202
34714 msgid ""
34715 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34716 "mount point."
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:205
34721 msgid ""
34722 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34723 "the file called C<\"etc/passwd\"> then you could do:"
34724 msgstr ""
34725
34726 #. type: verbatim
34727 #: ../src/guestfs.pod:208
34728 #, no-wrap
34729 msgid ""
34730 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34731 "\n"
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:210
34736 msgid ""
34737 "This would return C<data> as a newly allocated buffer containing the full "
34738 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34739 "or C<NULL> if there was an error."
34740 msgstr ""
34741
34742 #. type: textblock
34743 #: ../src/guestfs.pod:214
34744 msgid ""
34745 "As another example, to create a top-level directory on that filesystem "
34746 "called C<\"var\"> you would do:"
34747 msgstr ""
34748
34749 #. type: verbatim
34750 #: ../src/guestfs.pod:217
34751 #, no-wrap
34752 msgid ""
34753 " guestfs_mkdir (g, \"/var\");\n"
34754 "\n"
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:219
34759 msgid "To create a symlink you could do:"
34760 msgstr ""
34761
34762 #. type: verbatim
34763 #: ../src/guestfs.pod:221
34764 #, no-wrap
34765 msgid ""
34766 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34767 "               \"/etc/rc3.d/S30portmap\");\n"
34768 "\n"
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:224
34773 msgid ""
34774 "Libguestfs will reject attempts to use relative paths and there is no "
34775 "concept of a current working directory."
34776 msgstr ""
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:227
34780 msgid ""
34781 "Libguestfs can return errors in many situations: for example if the "
34782 "filesystem isn't writable, or if a file or directory that you requested "
34783 "doesn't exist.  If you are using the C API (documented here)  you have to "
34784 "check for those error conditions after each call.  (Other language bindings "
34785 "turn these errors into exceptions)."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:233
34790 msgid ""
34791 "File writes are affected by the per-handle umask, set by calling L</"
34792 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34793 msgstr ""
34794
34795 #. type: =head2
34796 #: ../src/guestfs.pod:236
34797 msgid "PARTITIONING"
34798 msgstr ""
34799
34800 #. type: textblock
34801 #: ../src/guestfs.pod:238
34802 msgid ""
34803 "Libguestfs contains API calls to read, create and modify partition tables on "
34804 "disk images."
34805 msgstr ""
34806
34807 #. type: textblock
34808 #: ../src/guestfs.pod:241
34809 msgid ""
34810 "In the common case where you want to create a single partition covering the "
34811 "whole disk, you should use the L</guestfs_part_disk> call:"
34812 msgstr ""
34813
34814 #. type: verbatim
34815 #: ../src/guestfs.pod:245
34816 #, no-wrap
34817 msgid ""
34818 " const char *parttype = \"mbr\";\n"
34819 " if (disk_is_larger_than_2TB)\n"
34820 "   parttype = \"gpt\";\n"
34821 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34822 "\n"
34823 msgstr ""
34824
34825 #. type: textblock
34826 #: ../src/guestfs.pod:250
34827 msgid ""
34828 "Obviously this effectively wipes anything that was on that disk image before."
34829 msgstr ""
34830
34831 #. type: =head2
34832 #: ../src/guestfs.pod:253
34833 msgid "LVM2"
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:255
34838 msgid ""
34839 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34840 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34841 "you familiarize yourself with the concepts of physical volumes, volume "
34842 "groups and logical volumes."
34843 msgstr ""
34844
34845 #. type: textblock
34846 #: ../src/guestfs.pod:260
34847 msgid ""
34848 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34849 "tldp.org/HOWTO/LVM-HOWTO/>."
34850 msgstr ""
34851
34852 #. type: =head2
34853 #: ../src/guestfs.pod:263
34854 msgid "DOWNLOADING"
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:265
34859 msgid ""
34860 "Use L</guestfs_cat> to download small, text only files.  This call is "
34861 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34862 "NUL (C<\\0>) characters.  However the API is very simple to use."
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:269
34867 msgid ""
34868 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34869 "bit data, since it returns a (pointer, size) pair.  However it is still "
34870 "limited to \"small\" files, less than 2 MB."
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:273
34875 msgid ""
34876 "L</guestfs_download> can be used to download any file, with no limits on "
34877 "content or size (even files larger than 4 GB)."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:276
34882 msgid ""
34883 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34884 msgstr ""
34885
34886 #. type: =head2
34887 #: ../src/guestfs.pod:279
34888 msgid "UPLOADING"
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs.pod:281
34893 msgid ""
34894 "It's often the case that you want to write a file or files to the disk image."
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:284
34899 msgid ""
34900 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34901 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34902 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34903 "of other functions for creating test files, for example L</guestfs_fill> and "
34904 "L</guestfs_fill_pattern>."
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs.pod:290
34909 msgid ""
34910 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34911 "file content or size (even files larger than 4 GB)."
34912 msgstr ""
34913
34914 #. type: textblock
34915 #: ../src/guestfs.pod:293
34916 msgid ""
34917 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34918 msgstr ""
34919
34920 #. type: textblock
34921 #: ../src/guestfs.pod:295
34922 msgid ""
34923 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34924 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34925 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34926 "in a predictable way (eg. adding it last after all other drives) then you "
34927 "can get the device name from L</guestfs_list_devices> and mount it directly "
34928 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34929 "portable between kernel versions, and they don't support labels or UUIDs.  "
34930 "If you want to pre-build an image or you need to mount it using a label or "
34931 "UUID, use an ISO image instead."
34932 msgstr ""
34933
34934 #. type: =head2
34935 #: ../src/guestfs.pod:306
34936 msgid "COPYING"
34937 msgstr ""
34938
34939 #. type: textblock
34940 #: ../src/guestfs.pod:308
34941 msgid ""
34942 "There are various different commands for copying between files and devices "
34943 "and in and out of the guest filesystem.  These are summarised in the table "
34944 "below."
34945 msgstr ""
34946
34947 #. type: =item
34948 #: ../src/guestfs.pod:314
34949 msgid "B<file> to B<file>"
34950 msgstr ""
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:316
34954 msgid ""
34955 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34956 "directories recursively."
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:319
34961 msgid ""
34962 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34963 msgstr ""
34964
34965 #. type: =item
34966 #: ../src/guestfs.pod:322
34967 msgid "B<file> to B<device>"
34968 msgstr ""
34969
34970 #. type: =item
34971 #: ../src/guestfs.pod:324
34972 msgid "B<device> to B<file>"
34973 msgstr ""
34974
34975 #. type: =item
34976 #: ../src/guestfs.pod:326
34977 msgid "B<device> to B<device>"
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:328
34982 msgid ""
34983 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
34984 "guestfs_copy_device_to_device>."
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:331
34989 msgid "Example: duplicate the contents of an LV:"
34990 msgstr ""
34991
34992 #. type: verbatim
34993 #: ../src/guestfs.pod:333
34994 #, no-wrap
34995 msgid ""
34996 " guestfs_copy_device_to_device (g,\n"
34997 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34998 "         /* -1 marks the end of the list of optional parameters */\n"
34999 "         -1);\n"
35000 "\n"
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:338
35005 msgid ""
35006 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35007 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35008 "optional C<size> parameter:"
35009 msgstr ""
35010
35011 #. type: verbatim
35012 #: ../src/guestfs.pod:342
35013 #, no-wrap
35014 msgid ""
35015 " guestfs_copy_device_to_device (g,\n"
35016 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35017 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35018 "         -1);\n"
35019 "\n"
35020 msgstr ""
35021
35022 #. type: =item
35023 #: ../src/guestfs.pod:347
35024 msgid "B<file on the host> to B<file or device>"
35025 msgstr ""
35026
35027 #. type: textblock
35028 #: ../src/guestfs.pod:349
35029 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35030 msgstr ""
35031
35032 #. type: =item
35033 #: ../src/guestfs.pod:351
35034 msgid "B<file or device> to B<file on the host>"
35035 msgstr ""
35036
35037 #. type: textblock
35038 #: ../src/guestfs.pod:353
35039 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35040 msgstr ""
35041
35042 #. type: =head2
35043 #: ../src/guestfs.pod:357
35044 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:359
35049 msgid ""
35050 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35051 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35052 "appears you can only upload and download to files.  However many Un*x-like "
35053 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35054 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35055 "and arbitrary file descriptor N."
35056 msgstr ""
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:367
35060 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35061 msgstr ""
35062
35063 #. type: verbatim
35064 #: ../src/guestfs.pod:370
35065 #, no-wrap
35066 msgid ""
35067 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35068 "\n"
35069 msgstr ""
35070
35071 #. type: textblock
35072 #: ../src/guestfs.pod:372
35073 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35074 msgstr ""
35075
35076 #. type: verbatim
35077 #: ../src/guestfs.pod:374
35078 #, no-wrap
35079 msgid ""
35080 " char devfd[64];\n"
35081 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35082 " guestfs_tar_out (g, \"/\", devfd);\n"
35083 "\n"
35084 msgstr ""
35085
35086 #. type: =head2
35087 #: ../src/guestfs.pod:378
35088 msgid "LISTING FILES"
35089 msgstr ""
35090
35091 #. type: textblock
35092 #: ../src/guestfs.pod:380
35093 msgid ""
35094 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35095 "L<guestfish(1)>-equivalent command C<ll>)."
35096 msgstr ""
35097
35098 #. type: textblock
35099 #: ../src/guestfs.pod:383
35100 msgid ""
35101 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35102 "programs, as a flat list of strings."
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:386
35107 msgid ""
35108 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35109 "directory, plus additional information about each one.  It is more "
35110 "equivalent to using the L<readdir(3)> call on a local filesystem."
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:390
35115 msgid ""
35116 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35117 msgstr ""
35118
35119 #. type: =head2
35120 #: ../src/guestfs.pod:393
35121 msgid "RUNNING COMMANDS"
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:395
35126 msgid ""
35127 "Although libguestfs is primarily an API for manipulating files inside guest "
35128 "images, we also provide some limited facilities for running commands inside "
35129 "guests."
35130 msgstr ""
35131
35132 #. type: textblock
35133 #: ../src/guestfs.pod:399
35134 msgid "There are many limitations to this:"
35135 msgstr ""
35136
35137 #. type: textblock
35138 #: ../src/guestfs.pod:405
35139 msgid ""
35140 "The kernel version that the command runs under will be different from what "
35141 "it expects."
35142 msgstr ""
35143
35144 #. type: textblock
35145 #: ../src/guestfs.pod:410
35146 msgid ""
35147 "If the command needs to communicate with daemons, then most likely they "
35148 "won't be running."
35149 msgstr ""
35150
35151 #. type: textblock
35152 #: ../src/guestfs.pod:415
35153 msgid "The command will be running in limited memory."
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs.pod:419
35158 msgid ""
35159 "The network may not be available unless you enable it (see L</"
35160 "guestfs_set_network>)."
35161 msgstr ""
35162
35163 #. type: textblock
35164 #: ../src/guestfs.pod:424
35165 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35166 msgstr ""
35167
35168 #. type: textblock
35169 #: ../src/guestfs.pod:428
35170 msgid ""
35171 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:433
35176 msgid ""
35177 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35178 "See L</SELINUX> in this manpage."
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:438
35183 msgid ""
35184 "I<Security:> It is not safe to run commands from untrusted, possibly "
35185 "malicious guests.  These commands may attempt to exploit your program by "
35186 "sending unexpected output.  They could also try to exploit the Linux kernel "
35187 "or qemu provided by the libguestfs appliance.  They could use the network "
35188 "provided by the libguestfs appliance to bypass ordinary network partitions "
35189 "and firewalls.  They could use the elevated privileges or different SELinux "
35190 "context of your program to their advantage."
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:447
35195 msgid ""
35196 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35197 "(a script which runs when the guest next boots normally), and to have this "
35198 "script run the commands you want in the normal context of the running guest, "
35199 "network security and so on.  For information about other security issues, "
35200 "see L</SECURITY>."
35201 msgstr ""
35202
35203 #. type: textblock
35204 #: ../src/guestfs.pod:455
35205 msgid ""
35206 "The two main API calls to run commands are L</guestfs_command> and L</"
35207 "guestfs_sh> (there are also variations)."
35208 msgstr ""
35209
35210 #. type: textblock
35211 #: ../src/guestfs.pod:458
35212 msgid ""
35213 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35214 "shell globs, redirections, etc will work."
35215 msgstr ""
35216
35217 #. type: =head2
35218 #: ../src/guestfs.pod:461
35219 msgid "CONFIGURATION FILES"
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:463
35224 msgid ""
35225 "To read and write configuration files in Linux guest filesystems, we "
35226 "strongly recommend using Augeas.  For example, Augeas understands how to "
35227 "read and write, say, a Linux shadow password file or X.org configuration "
35228 "file, and so avoids you having to write that code."
35229 msgstr ""
35230
35231 #. type: textblock
35232 #: ../src/guestfs.pod:468
35233 msgid ""
35234 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35235 "document Augeas itself here because there is excellent documentation on the "
35236 "L<http://augeas.net/> website."
35237 msgstr ""
35238
35239 #. type: textblock
35240 #: ../src/guestfs.pod:472
35241 msgid ""
35242 "If you don't want to use Augeas (you fool!) then try calling L</"
35243 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35244 "over."
35245 msgstr ""
35246
35247 #. type: =head2
35248 #: ../src/guestfs.pod:476
35249 msgid "SELINUX"
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs.pod:478
35254 msgid ""
35255 "We support SELinux guests.  To ensure that labeling happens correctly in "
35256 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:486
35261 msgid "Before launching, do:"
35262 msgstr ""
35263
35264 #. type: verbatim
35265 #: ../src/guestfs.pod:488
35266 #, no-wrap
35267 msgid ""
35268 " guestfs_set_selinux (g, 1);\n"
35269 "\n"
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:492
35274 msgid ""
35275 "After mounting the guest's filesystem(s), load the policy.  This is best "
35276 "done by running the L<load_policy(8)> command in the guest itself:"
35277 msgstr ""
35278
35279 #. type: verbatim
35280 #: ../src/guestfs.pod:496
35281 #, no-wrap
35282 msgid ""
35283 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35284 "\n"
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:498
35289 msgid ""
35290 "(Older versions of C<load_policy> require you to specify the name of the "
35291 "policy file)."
35292 msgstr ""
35293
35294 #. type: textblock
35295 #: ../src/guestfs.pod:503
35296 msgid ""
35297 "Optionally, set the security context for the API.  The correct security "
35298 "context to use can only be known by inspecting the guest.  As an example:"
35299 msgstr ""
35300
35301 #. type: verbatim
35302 #: ../src/guestfs.pod:507
35303 #, no-wrap
35304 msgid ""
35305 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35306 "\n"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:511
35311 msgid "This will work for running commands and editing existing files."
35312 msgstr ""
35313
35314 #. type: textblock
35315 #: ../src/guestfs.pod:513
35316 msgid ""
35317 "When new files are created, you may need to label them explicitly, for "
35318 "example by running the external command C<restorecon pathname>."
35319 msgstr ""
35320
35321 #. type: =head2
35322 #: ../src/guestfs.pod:517
35323 msgid "UMASK"
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs.pod:519
35328 msgid ""
35329 "Certain calls are affected by the current file mode creation mask (the "
35330 "\"umask\").  In particular ones which create files or directories, such as "
35331 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35332 "either the default mode that the file is created with or modifies the mode "
35333 "that you supply."
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:525
35338 msgid ""
35339 "The default umask is C<022>, so files are created with modes such as C<0644> "
35340 "and directories with C<0755>."
35341 msgstr ""
35342
35343 #. type: textblock
35344 #: ../src/guestfs.pod:528
35345 msgid ""
35346 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35347 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35348 "guestfs_chmod> after creating each file or directory."
35349 msgstr ""
35350
35351 #. type: textblock
35352 #: ../src/guestfs.pod:532
35353 msgid "For more information about umask, see L<umask(2)>."
35354 msgstr ""
35355
35356 #. type: textblock
35357 #: ../src/guestfs.pod:536
35358 msgid ""
35359 "Libguestfs allows you to access Linux guests which have been encrypted using "
35360 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35361 "standard.  This includes nearly all whole disk encryption systems used by "
35362 "modern Linux guests."
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:542
35367 msgid ""
35368 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35369 "returns the string C<crypto_LUKS>)."
35370 msgstr ""
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:545
35374 msgid ""
35375 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35376 "will require the passphrase!"
35377 msgstr ""
35378
35379 #. type: textblock
35380 #: ../src/guestfs.pod:548
35381 msgid ""
35382 "Opening a LUKS device creates a new device mapper device called C</dev/"
35383 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35384 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35385 "from and encrypted to the underlying block device respectively."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:554
35390 msgid ""
35391 "LVM volume groups on the device can be made visible by calling L</"
35392 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35393 "(s) can now be mounted in the usual way."
35394 msgstr ""
35395
35396 #. type: textblock
35397 #: ../src/guestfs.pod:558
35398 msgid ""
35399 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35400 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35401 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35402 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35403 "underlying encrypted block device)."
35404 msgstr ""
35405
35406 #. type: =head2
35407 #: ../src/guestfs.pod:565
35408 msgid "INSPECTION"
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:567
35413 msgid ""
35414 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35415 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35416 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35417 "version 1.5.3 the most frequently used part of this library has been "
35418 "rewritten in C and moved into the core code)."
35419 msgstr ""
35420
35421 #. type: textblock
35422 #: ../src/guestfs.pod:574
35423 msgid ""
35424 "Add all disks belonging to the unknown virtual machine and call L</"
35425 "guestfs_launch> in the usual way."
35426 msgstr ""
35427
35428 #. type: textblock
35429 #: ../src/guestfs.pod:577
35430 msgid ""
35431 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35432 "and certain heuristics, and returns a list of operating systems that were "
35433 "found.  An empty list means none were found.  A single element is the root "
35434 "filesystem of the operating system.  For dual- or multi-boot guests, "
35435 "multiple roots can be returned, each one corresponding to a separate "
35436 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35437 "world of virtualization, but since this scenario can happen, we have built "
35438 "libguestfs to deal with it.)"
35439 msgstr ""
35440
35441 #. type: textblock
35442 #: ../src/guestfs.pod:586
35443 msgid ""
35444 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35445 "to get additional details about that operating system.  For example, call L</"
35446 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35447 "Windows and Linux-based operating systems respectively."
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:592
35452 msgid ""
35453 "Un*x-like and Linux-based operating systems usually consist of several "
35454 "filesystems which are mounted at boot time (for example, a separate boot "
35455 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35456 "filesystems correspond to mount points.  Call "
35457 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35458 "hash table like this example:"
35459 msgstr ""
35460
35461 #. type: verbatim
35462 #: ../src/guestfs.pod:599
35463 #, no-wrap
35464 msgid ""
35465 " /boot => /dev/sda1\n"
35466 " /     => /dev/vg_guest/lv_root\n"
35467 " /usr  => /dev/vg_guest/lv_usr\n"
35468 "\n"
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:603
35473 msgid ""
35474 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35475 "filesystems as suggested."
35476 msgstr ""
35477
35478 #. type: textblock
35479 #: ../src/guestfs.pod:606
35480 msgid ""
35481 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35482 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:610
35487 msgid ""
35488 "Inspection currently only works for some common operating systems.  "
35489 "Contributors are welcome to send patches for other operating systems that we "
35490 "currently cannot detect."
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:614
35495 msgid ""
35496 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35497 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35498 "encrypted devices."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:618
35503 msgid ""
35504 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35505 "inspection and caches the results in the guest handle.  Subsequent calls to "
35506 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35507 "read the disks.  If you change the content of the guest disks, you can redo "
35508 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35509 "guestfs_inspect_list_applications> works a little differently from the other "
35510 "calls and does read the disks.  See documentation for that function for "
35511 "details)."
35512 msgstr ""
35513
35514 #. type: =head3
35515 #: ../src/guestfs.pod:627
35516 msgid "INSPECTING INSTALL DISKS"
35517 msgstr ""
35518
35519 #. type: textblock
35520 #: ../src/guestfs.pod:629
35521 msgid ""
35522 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35523 "CDs and more."
35524 msgstr ""
35525
35526 #. type: textblock
35527 #: ../src/guestfs.pod:632
35528 msgid ""
35529 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35530 "system, which currently can be C<installed> (a regular operating system) or "
35531 "C<installer> (some sort of install disk)."
35532 msgstr ""
35533
35534 #. type: textblock
35535 #: ../src/guestfs.pod:636
35536 msgid ""
35537 "Further information is available about the operating system that can be "
35538 "installed using the regular inspection APIs like L</"
35539 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35540 msgstr ""
35541
35542 #. type: textblock
35543 #: ../src/guestfs.pod:641
35544 msgid ""
35545 "Some additional information specific to installer disks is also available "
35546 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35547 "guestfs_inspect_is_multipart> calls."
35548 msgstr ""
35549
35550 #. type: =head2
35551 #: ../src/guestfs.pod:646
35552 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35553 msgstr ""
35554
35555 #. type: textblock
35556 #: ../src/guestfs.pod:648
35557 msgid ""
35558 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35559 "ntfs-3g.org/> driver."
35560 msgstr ""
35561
35562 #. type: =head3
35563 #: ../src/guestfs.pod:651
35564 msgid "DRIVE LETTERS AND PATHS"
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:653
35569 msgid ""
35570 "DOS and Windows still use drive letters, and the filesystems are always "
35571 "treated as case insensitive by Windows itself, and therefore you might find "
35572 "a Windows configuration file referring to a path like C<c:\\windows"
35573 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35574 "might be referred to as C</WINDOWS/System32>."
35575 msgstr ""
35576
35577 #. type: textblock
35578 #: ../src/guestfs.pod:659
35579 msgid ""
35580 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35581 "L</guestfs_inspect_get_drive_mappings>)"
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:662
35586 msgid ""
35587 "Dealing with separator characters (backslash vs forward slash) is outside "
35588 "the scope of libguestfs, but usually a simple character replacement will "
35589 "work."
35590 msgstr ""
35591
35592 #. type: textblock
35593 #: ../src/guestfs.pod:666
35594 msgid ""
35595 "To resolve the case insensitivity of paths, call L</"
35596 "guestfs_case_sensitive_path>."
35597 msgstr ""
35598
35599 #. type: =head3
35600 #: ../src/guestfs.pod:669
35601 msgid "ACCESSING THE WINDOWS REGISTRY"
35602 msgstr ""
35603
35604 #. type: textblock
35605 #: ../src/guestfs.pod:671
35606 msgid ""
35607 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35608 "files, through the library C<hivex> which is part of the libguestfs project "
35609 "although ships as a separate tarball.  You have to locate and download the "
35610 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35611 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35612 "reg(1)> for more help on this issue."
35613 msgstr ""
35614
35615 #. type: =head3
35616 #: ../src/guestfs.pod:679
35617 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:681
35622 msgid ""
35623 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35624 "provide something which looks like a Linux symlink.  The way it tries to do "
35625 "the rewriting is described here:"
35626 msgstr ""
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:685
35630 msgid ""
35631 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35632 "symbolic-links/>"
35633 msgstr ""
35634
35635 #. type: textblock
35636 #: ../src/guestfs.pod:687
35637 msgid ""
35638 "The essential problem is that ntfs-3g simply does not have enough "
35639 "information to do a correct job.  NTFS links can contain drive letters and "
35640 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35641 "It is almost certainly the case that libguestfs callers should ignore what "
35642 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35643 msgstr ""
35644
35645 #. type: textblock
35646 #: ../src/guestfs.pod:694
35647 msgid ""
35648 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35649 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35650 "attribute, and read the raw reparse data from that (you can find the format "
35651 "documented in various places around the web)."
35652 msgstr ""
35653
35654 #. type: =head3
35655 #: ../src/guestfs.pod:699
35656 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:701
35661 msgid ""
35662 "There are other useful extended attributes that can be read from ntfs-3g "
35663 "filesystems (using L</guestfs_getxattr>).  See:"
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:704
35668 msgid ""
35669 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35670 msgstr ""
35671
35672 #. type: =head2
35673 #: ../src/guestfs.pod:706
35674 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35675 msgstr ""
35676
35677 #. type: textblock
35678 #: ../src/guestfs.pod:708
35679 msgid ""
35680 "Although we don't want to discourage you from using the C API, we will "
35681 "mention here that the same API is also available in other languages."
35682 msgstr ""
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:711
35686 msgid ""
35687 "The API is broadly identical in all supported languages.  This means that "
35688 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35689 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35690 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35691 "each language."
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:717
35696 msgid ""
35697 "Error messages are automatically transformed into exceptions if the language "
35698 "supports it."
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:720
35703 msgid ""
35704 "We don't try to \"object orientify\" parts of the API in OO languages, "
35705 "although contributors are welcome to write higher level APIs above what we "
35706 "provide in their favourite languages if they wish."
35707 msgstr ""
35708
35709 #. type: =item
35710 #: ../src/guestfs.pod:726
35711 msgid "B<C++>"
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:728
35716 msgid ""
35717 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35718 "identical to the C API.  C++ classes and exceptions are not used."
35719 msgstr ""
35720
35721 #. type: =item
35722 #: ../src/guestfs.pod:732
35723 msgid "B<C#>"
35724 msgstr ""
35725
35726 #. type: textblock
35727 #: ../src/guestfs.pod:734
35728 msgid ""
35729 "The C# bindings are highly experimental.  Please read the warnings at the "
35730 "top of C<csharp/Libguestfs.cs>."
35731 msgstr ""
35732
35733 #. type: =item
35734 #: ../src/guestfs.pod:737
35735 msgid "B<Erlang>"
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:739
35740 msgid "See L<guestfs-erlang(3)>."
35741 msgstr ""
35742
35743 #. type: =item
35744 #: ../src/guestfs.pod:741
35745 msgid "B<Haskell>"
35746 msgstr ""
35747
35748 #. type: textblock
35749 #: ../src/guestfs.pod:743
35750 msgid ""
35751 "This is the only language binding that is working but incomplete.  Only "
35752 "calls which return simple integers have been bound in Haskell, and we are "
35753 "looking for help to complete this binding."
35754 msgstr ""
35755
35756 #. type: =item
35757 #: ../src/guestfs.pod:747
35758 msgid "B<Java>"
35759 msgstr ""
35760
35761 #. type: textblock
35762 #: ../src/guestfs.pod:749
35763 msgid ""
35764 "Full documentation is contained in the Javadoc which is distributed with "
35765 "libguestfs.  For examples, see L<guestfs-java(3)>."
35766 msgstr ""
35767
35768 #. type: =item
35769 #: ../src/guestfs.pod:752
35770 msgid "B<OCaml>"
35771 msgstr ""
35772
35773 #. type: textblock
35774 #: ../src/guestfs.pod:754
35775 msgid "See L<guestfs-ocaml(3)>."
35776 msgstr ""
35777
35778 #. type: =item
35779 #: ../src/guestfs.pod:756
35780 msgid "B<Perl>"
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:758
35785 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35786 msgstr ""
35787
35788 #. type: =item
35789 #: ../src/guestfs.pod:760
35790 msgid "B<PHP>"
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:762
35795 msgid ""
35796 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35797 "the php-libguestfs package for your distribution."
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:765
35802 msgid "The PHP binding only works correctly on 64 bit machines."
35803 msgstr ""
35804
35805 #. type: =item
35806 #: ../src/guestfs.pod:767
35807 msgid "B<Python>"
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../src/guestfs.pod:769
35812 msgid "See L<guestfs-python(3)>."
35813 msgstr ""
35814
35815 #. type: =item
35816 #: ../src/guestfs.pod:771
35817 msgid "B<Ruby>"
35818 msgstr ""
35819
35820 #. type: textblock
35821 #: ../src/guestfs.pod:773
35822 msgid "See L<guestfs-ruby(3)>."
35823 msgstr ""
35824
35825 #. type: =item
35826 #: ../src/guestfs.pod:775
35827 msgid "B<shell scripts>"
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:777
35832 msgid "See L<guestfish(1)>."
35833 msgstr ""
35834
35835 #. type: =head2
35836 #: ../src/guestfs.pod:781
35837 msgid "LIBGUESTFS GOTCHAS"
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:783
35842 msgid ""
35843 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35844 "system [...] that works in the way it is documented but is counterintuitive "
35845 "and almost invites mistakes.\""
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:787
35850 msgid ""
35851 "Since we developed libguestfs and the associated tools, there are several "
35852 "things we would have designed differently, but are now stuck with for "
35853 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35854 "release, you can expect these to change.  Beware of them."
35855 msgstr ""
35856
35857 #. type: =item
35858 #: ../src/guestfs.pod:795
35859 msgid "Autosync / forgetting to sync."
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:797
35864 msgid ""
35865 "I<Update:> Autosync is enabled by default for all API users starting from "
35866 "libguestfs 1.5.24.  This section only applies to older versions."
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../src/guestfs.pod:800
35871 msgid ""
35872 "When modifying a filesystem from C or another language, you B<must> unmount "
35873 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35874 "libguestfs handle.  You can also call:"
35875 msgstr ""
35876
35877 #. type: verbatim
35878 #: ../src/guestfs.pod:804
35879 #, no-wrap
35880 msgid ""
35881 " guestfs_set_autosync (g, 1);\n"
35882 "\n"
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:806
35887 msgid ""
35888 "to have the unmount/sync done automatically for you when the handle 'g' is "
35889 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:810
35894 msgid ""
35895 "If you forget to do this, then it is entirely possible that your changes "
35896 "won't be written out, or will be partially written, or (very rarely) that "
35897 "you'll get disk corruption."
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:814
35902 msgid ""
35903 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35904 "guestfish scripts that forget to sync will work just fine, which can make "
35905 "this very puzzling if you are trying to debug a problem."
35906 msgstr ""
35907
35908 #. type: =item
35909 #: ../src/guestfs.pod:818
35910 msgid "Mount option C<-o sync> should not be the default."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:820
35915 msgid ""
35916 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35917 "libguestfs 1.13.16.  This section only applies to older versions."
35918 msgstr ""
35919
35920 #. type: textblock
35921 #: ../src/guestfs.pod:823
35922 msgid ""
35923 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35924 "However C<-o sync> does not add any reliability benefit, but does have a "
35925 "very large performance impact."
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../src/guestfs.pod:827
35930 msgid ""
35931 "The work around is to use L</guestfs_mount_options> and set the mount "
35932 "options that you actually want to use."
35933 msgstr ""
35934
35935 #. type: =item
35936 #: ../src/guestfs.pod:830
35937 msgid "Read-only should be the default."
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:832
35942 msgid ""
35943 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35944 "specify I<--rw> if you want to make changes to the image."
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:835
35949 msgid "This would reduce the potential to corrupt live VM images."
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:837
35954 msgid ""
35955 "Note that many filesystems change the disk when you just mount and unmount, "
35956 "even if you didn't perform any writes.  You need to use L</"
35957 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35958 msgstr ""
35959
35960 #. type: =item
35961 #: ../src/guestfs.pod:841
35962 msgid "guestfish command line is hard to use."
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:843
35967 msgid ""
35968 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35969 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35970 "exist, so it fails.  In earlier versions of guestfish the error message was "
35971 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35972 "we should have used C<guestfish -c command> to run commands."
35973 msgstr ""
35974
35975 #. type: =item
35976 #: ../src/guestfs.pod:850
35977 msgid "guestfish megabyte modifiers don't work right on all commands"
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:852
35982 msgid ""
35983 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35984 "other modifiers).  What guestfish actually does is to multiply the number "
35985 "part by the modifier part and pass the result to the C API.  However this "
35986 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35987 "expecting some other unit (eg. megabytes)."
35988 msgstr ""
35989
35990 #. type: textblock
35991 #: ../src/guestfs.pod:859
35992 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35993 msgstr ""
35994
35995 #. type: verbatim
35996 #: ../src/guestfs.pod:861
35997 #, no-wrap
35998 msgid ""
35999 " lvcreate LV VG 100M\n"
36000 "\n"
36001 msgstr ""
36002
36003 #. type: textblock
36004 #: ../src/guestfs.pod:863
36005 msgid ""
36006 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36007 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36008 "megabytes * megabytes) logical volume.  The error message you get from this "
36009 "is also a little obscure."
36010 msgstr ""
36011
36012 #. type: textblock
36013 #: ../src/guestfs.pod:868
36014 msgid ""
36015 "This could be fixed in the generator by specially marking parameters and "
36016 "return values which take bytes or other units."
36017 msgstr ""
36018
36019 #. type: =item
36020 #: ../src/guestfs.pod:871
36021 msgid "Ambiguity between devices and paths"
36022 msgstr ""
36023
36024 #. type: textblock
36025 #: ../src/guestfs.pod:873
36026 msgid ""
36027 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36028 "sdb2>) and a similar pathname.  A file might just happen to be called "
36029 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:878
36034 msgid ""
36035 "In the current API we usually resolve this ambiguity by having two separate "
36036 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36037 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36038 "detecting if the path supplied begins with C</dev/>."
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:884
36043 msgid ""
36044 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36045 "make paths/devices into structured names.  One way to do this would be to "
36046 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36047 "aspect of grub.  Another way would be to use a structured type, equivalent "
36048 "to this OCaml type:"
36049 msgstr ""
36050
36051 #. type: verbatim
36052 #: ../src/guestfs.pod:890
36053 #, no-wrap
36054 msgid ""
36055 " type path = Path of string | Device of int | Partition of int * int\n"
36056 "\n"
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:892
36061 msgid "which would allow you to pass arguments like:"
36062 msgstr ""
36063
36064 #. type: verbatim
36065 #: ../src/guestfs.pod:894
36066 #, no-wrap
36067 msgid ""
36068 " Path \"/foo/bar\"\n"
36069 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36070 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36071 " Path \"/dev/sdb2\"    (* not a device *)\n"
36072 "\n"
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs.pod:899
36077 msgid ""
36078 "As you can see there are still problems to resolve even with this "
36079 "representation.  Also consider how it might work in guestfish."
36080 msgstr ""
36081
36082 #. type: =head2
36083 #: ../src/guestfs.pod:904
36084 msgid "KEYS AND PASSPHRASES"
36085 msgstr ""
36086
36087 #. type: textblock
36088 #: ../src/guestfs.pod:906
36089 msgid ""
36090 "Certain libguestfs calls take a parameter that contains sensitive key "
36091 "material, passed in as a C string."
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:909
36096 msgid ""
36097 "In the future we would hope to change the libguestfs implementation so that "
36098 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36099 "swap.  However this is I<not> done at the moment, because of the complexity "
36100 "of such an implementation."
36101 msgstr ""
36102
36103 #. type: textblock
36104 #: ../src/guestfs.pod:914
36105 msgid ""
36106 "Therefore you should be aware that any key parameter you pass to libguestfs "
36107 "might end up being written out to the swap partition.  If this is a concern, "
36108 "scrub the swap partition or don't use libguestfs on encrypted devices."
36109 msgstr ""
36110
36111 #. type: =head2
36112 #: ../src/guestfs.pod:919
36113 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:921
36118 msgid ""
36119 "All high-level libguestfs actions are synchronous.  If you want to use "
36120 "libguestfs asynchronously then you must create a thread."
36121 msgstr ""
36122
36123 #. type: textblock
36124 #: ../src/guestfs.pod:924
36125 msgid ""
36126 "Only use the handle from a single thread.  Either use the handle exclusively "
36127 "from one thread, or provide your own mutex so that two threads cannot issue "
36128 "calls on the same handle at the same time."
36129 msgstr ""
36130
36131 #. type: textblock
36132 #: ../src/guestfs.pod:928
36133 msgid ""
36134 "See the graphical program guestfs-browser for one possible architecture for "
36135 "multithreaded programs using libvirt and libguestfs."
36136 msgstr ""
36137
36138 #. type: =head2
36139 #: ../src/guestfs.pod:931
36140 msgid "PATH"
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:933
36145 msgid ""
36146 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36147 "internal path."
36148 msgstr ""
36149
36150 #. type: textblock
36151 #: ../src/guestfs.pod:936
36152 msgid ""
36153 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36154 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36155 msgstr ""
36156
36157 #. type: textblock
36158 #: ../src/guestfs.pod:939
36159 msgid ""
36160 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36161 "to change the directories that libguestfs will search in.  The value is a "
36162 "colon-separated list of paths.  The current directory is I<not> searched "
36163 "unless the path contains an empty element or C<.>.  For example "
36164 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36165 "then C</usr/lib/guestfs>."
36166 msgstr ""
36167
36168 #. type: =head2
36169 #: ../src/guestfs.pod:946
36170 msgid "QEMU WRAPPERS"
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:948
36175 msgid ""
36176 "If you want to compile your own qemu, run qemu from a non-standard location, "
36177 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36178 "around qemu."
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:952
36183 msgid ""
36184 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36185 "last command in the shell script (so that qemu replaces the shell and "
36186 "becomes the direct child of the libguestfs-using program).  If you don't do "
36187 "this, then the qemu process won't be cleaned up correctly."
36188 msgstr ""
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:957
36192 msgid ""
36193 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36194 "source:"
36195 msgstr ""
36196
36197 #. type: verbatim
36198 #: ../src/guestfs.pod:960
36199 #, no-wrap
36200 msgid ""
36201 " #!/bin/sh -\n"
36202 " qemudir=/home/rjones/d/qemu\n"
36203 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36204 "\n"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:964
36209 msgid ""
36210 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36211 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36212 "example:"
36213 msgstr ""
36214
36215 #. type: verbatim
36216 #: ../src/guestfs.pod:968
36217 #, no-wrap
36218 msgid ""
36219 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36220 "\n"
36221 msgstr ""
36222
36223 #. type: textblock
36224 #: ../src/guestfs.pod:970
36225 msgid ""
36226 "Note that libguestfs also calls qemu with the -help and -version options in "
36227 "order to determine features."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:973
36232 msgid ""
36233 "Wrappers can also be used to edit the options passed to qemu.  In the "
36234 "following example, the C<-machine ...> option (C<-machine> and the following "
36235 "argument) are removed from the command line and replaced with C<-machine pc,"
36236 "accel=tcg>.  The while loop iterates over the options until it finds the "
36237 "right one to remove, putting the remaining options into the C<args> array."
36238 msgstr ""
36239
36240 #. type: verbatim
36241 #: ../src/guestfs.pod:982
36242 #, no-wrap
36243 msgid ""
36244 " i=0\n"
36245 " while [ $# -gt 0 ]; do\n"
36246 "     case \"$1\" in\n"
36247 "     -machine)\n"
36248 "         shift 2;;\n"
36249 "     *)\n"
36250 "         args[i]=\"$1\"\n"
36251 "         (( i++ ))\n"
36252 "         shift ;;\n"
36253 "     esac\n"
36254 " done\n"
36255 " \n"
36256 msgstr ""
36257
36258 #. type: verbatim
36259 #: ../src/guestfs.pod:994
36260 #, no-wrap
36261 msgid ""
36262 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36263 "\n"
36264 msgstr ""
36265
36266 #. type: =head2
36267 #: ../src/guestfs.pod:996
36268 msgid "ATTACHING TO RUNNING DAEMONS"
36269 msgstr ""
36270
36271 #. type: textblock
36272 #: ../src/guestfs.pod:998
36273 msgid ""
36274 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36275 "babies.  Use with caution."
36276 msgstr ""
36277
36278 #. type: textblock
36279 #: ../src/guestfs.pod:1001
36280 msgid ""
36281 "I<Note (2):> This section explains how to attach to a running daemon from a "
36282 "low level perspective.  For most users, simply using virt tools such as "
36283 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36284 msgstr ""
36285
36286 #. type: =head3
36287 #: ../src/guestfs.pod:1005
36288 msgid "Using guestfs_set_attach_method"
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:1007
36293 msgid ""
36294 "By calling L</guestfs_set_attach_method> you can change how the library "
36295 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36296 "ARCHITECTURE> for some background)."
36297 msgstr ""
36298
36299 #. type: textblock
36300 #: ../src/guestfs.pod:1011
36301 msgid ""
36302 "The normal attach method is C<appliance>, where a small appliance is created "
36303 "containing the daemon, and then the library connects to this."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:1014
36308 msgid ""
36309 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36310 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36311 "daemon over the Unix domain socket."
36312 msgstr ""
36313
36314 #. type: textblock
36315 #: ../src/guestfs.pod:1018
36316 msgid ""
36317 "The normal use for this is to connect to a running virtual machine that "
36318 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36319 "files inside the live virtual machine."
36320 msgstr ""
36321
36322 #. type: =head3
36323 #: ../src/guestfs.pod:1022
36324 msgid "Using guestfs_add_domain with live flag"
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:1024
36329 msgid ""
36330 "L</guestfs_add_domain> provides some help for getting the correct attach "
36331 "method.  If you pass the C<live> option to this function, then (if the "
36332 "virtual machine is running) it will examine the libvirt XML looking for a "
36333 "virtio-serial channel to connect to:"
36334 msgstr ""
36335
36336 #. type: verbatim
36337 #: ../src/guestfs.pod:1030
36338 #, no-wrap
36339 msgid ""
36340 " <domain>\n"
36341 "   ...\n"
36342 "   <devices>\n"
36343 "     ...\n"
36344 "     <channel type='unix'>\n"
36345 "       <source mode='bind' path='/path/to/socket'/>\n"
36346 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36347 "     </channel>\n"
36348 "     ...\n"
36349 "   </devices>\n"
36350 " </domain>\n"
36351 "\n"
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:1042
36356 msgid ""
36357 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36358 "method to C<unix:/path/to/socket>."
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:1045
36363 msgid ""
36364 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36365 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36366 "to attach to and modify live virtual machines."
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:1049
36371 msgid ""
36372 "The virtual machine needs to have been set up beforehand so that it has the "
36373 "virtio-serial channel and so that guestfsd is running inside it."
36374 msgstr ""
36375
36376 #. type: =head2
36377 #: ../src/guestfs.pod:1053
36378 msgid "ABI GUARANTEE"
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:1055
36383 msgid ""
36384 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36385 "actions as outlined in this section.  Although we will deprecate some "
36386 "actions, for example if they get replaced by newer calls, we will keep the "
36387 "old actions forever.  This allows you the developer to program in confidence "
36388 "against the libguestfs API."
36389 msgstr ""
36390
36391 #. type: =head2
36392 #: ../src/guestfs.pod:1061
36393 msgid "BLOCK DEVICE NAMING"
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:1063
36398 msgid ""
36399 "In the kernel there is now quite a profusion of schemata for naming block "
36400 "devices (in this context, by I<block device> I mean a physical or virtual "
36401 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36402 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36403 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36404 "for the old IDE driver (particularly for SATA devices) those devices also "
36405 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36406 "paravirtualized drivers.  This has created several different naming systems, "
36407 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:1075
36412 msgid ""
36413 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36414 "Linux kernel to access block devices.  We can run a variety of appliances "
36415 "based on a variety of Linux kernels."
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:1079
36420 msgid ""
36421 "This causes a problem for libguestfs because many API calls use device or "
36422 "partition names.  Working scripts and the recipe (example) scripts that we "
36423 "make available over the internet could fail if the naming scheme changes."
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:1084
36428 msgid ""
36429 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36430 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36431 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36432 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:1090
36437 msgid ""
36438 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36439 "L</guestfs_list_partitions> and similar calls return the true names of the "
36440 "devices and partitions as known to the appliance."
36441 msgstr ""
36442
36443 #. type: =head3
36444 #: ../src/guestfs.pod:1095
36445 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:1097
36450 msgid ""
36451 "Usually this translation is transparent.  However in some (very rare)  cases "
36452 "you may need to know the exact algorithm.  Such cases include where you use "
36453 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36454 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../src/guestfs.pod:1103
36459 msgid ""
36460 "The algorithm is applied only to I<parameters> which are known to be either "
36461 "device or partition names.  Return values from functions such as L</"
36462 "guestfs_list_devices> are never changed."
36463 msgstr ""
36464
36465 #. type: textblock
36466 #: ../src/guestfs.pod:1111
36467 msgid "Is the string a parameter which is a device or partition name?"
36468 msgstr ""
36469
36470 #. type: textblock
36471 #: ../src/guestfs.pod:1115
36472 msgid "Does the string begin with C</dev/sd>?"
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:1119
36477 msgid ""
36478 "Does the named device exist? If so, we use that device.  However if I<not> "
36479 "then we continue with this algorithm."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:1124
36484 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:1126
36489 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:1128
36494 msgid "If that named device exists, use it.  If not, continue."
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:1132
36499 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:1134
36504 msgid "If that named device exists, use it.  If not, return an error."
36505 msgstr ""
36506
36507 #. type: =head3
36508 #: ../src/guestfs.pod:1138
36509 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:1140
36514 msgid ""
36515 "Although the standard naming scheme and automatic translation is useful for "
36516 "simple programs and guestfish scripts, for larger programs it is best not to "
36517 "rely on this mechanism."
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:1144
36522 msgid ""
36523 "Where possible for maximum future portability programs using libguestfs "
36524 "should use these future-proof techniques:"
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:1151
36529 msgid ""
36530 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36531 "device names, and then use those names directly."
36532 msgstr ""
36533
36534 #. type: textblock
36535 #: ../src/guestfs.pod:1154
36536 msgid ""
36537 "Since those device names exist by definition, they will never be translated."
36538 msgstr ""
36539
36540 #. type: textblock
36541 #: ../src/guestfs.pod:1159
36542 msgid ""
36543 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36544 "filesystem labels."
36545 msgstr ""
36546
36547 #. type: textblock
36548 #: ../src/guestfs.pod:1166
36549 msgid ""
36550 "This section discusses security implications of using libguestfs, "
36551 "particularly with untrusted or malicious guests or disk images."
36552 msgstr ""
36553
36554 #. type: =head2
36555 #: ../src/guestfs.pod:1169
36556 msgid "GENERAL SECURITY CONSIDERATIONS"
36557 msgstr ""
36558
36559 #. type: textblock
36560 #: ../src/guestfs.pod:1171
36561 msgid ""
36562 "Be careful with any files or data that you download from a guest (by "
36563 "\"download\" we mean not just the L</guestfs_download> command but any "
36564 "command that reads files, filenames, directories or anything else from a "
36565 "disk image).  An attacker could manipulate the data to fool your program "
36566 "into doing the wrong thing.  Consider cases such as:"
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:1181
36571 msgid "the data (file etc) not being present"
36572 msgstr ""
36573
36574 #. type: textblock
36575 #: ../src/guestfs.pod:1185
36576 msgid "being present but empty"
36577 msgstr ""
36578
36579 #. type: textblock
36580 #: ../src/guestfs.pod:1189
36581 msgid "being much larger than normal"
36582 msgstr ""
36583
36584 #. type: textblock
36585 #: ../src/guestfs.pod:1193
36586 msgid "containing arbitrary 8 bit data"
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../src/guestfs.pod:1197
36591 msgid "being in an unexpected character encoding"
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:1201
36596 msgid "containing homoglyphs."
36597 msgstr ""
36598
36599 #. type: =head2
36600 #: ../src/guestfs.pod:1205
36601 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:1207
36606 msgid ""
36607 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36608 "(VFS) module can sometimes be escalated into exploits by deliberately "
36609 "creating a malicious, malformed filesystem.  These exploits are very severe "
36610 "for two reasons.  Firstly there are very many filesystem drivers in the "
36611 "kernel, and many of them are infrequently used and not much developer "
36612 "attention has been paid to the code.  Linux userspace helps potential "
36613 "crackers by detecting the filesystem type and automatically choosing the "
36614 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36615 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36616 "exploit (worse in some ways), giving immediate and total access to the "
36617 "system right down to the hardware level."
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:1220
36622 msgid ""
36623 "That explains why you should never mount a filesystem from an untrusted "
36624 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36625 "inside a qemu virtual machine, usually running as a non-root user.  The "
36626 "attacker would need to write a filesystem which first exploited the kernel, "
36627 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36628 "the libguestfs protocol, and finally to be as serious as the host kernel "
36629 "exploit it would need to escalate its privileges to root.  This multi-step "
36630 "escalation, performed by a static piece of data, is thought to be extremely "
36631 "hard to do, although we never say 'never' about security issues."
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:1231
36636 msgid ""
36637 "In any case callers can reduce the attack surface by forcing the filesystem "
36638 "type when mounting (use L</guestfs_mount_vfs>)."
36639 msgstr ""
36640
36641 #. type: =head2
36642 #: ../src/guestfs.pod:1234
36643 msgid "PROTOCOL SECURITY"
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../src/guestfs.pod:1236
36648 msgid ""
36649 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36650 "defined upper message size.  However a program that uses libguestfs must "
36651 "also take care - for example you can write a program that downloads a binary "
36652 "from a disk image and executes it locally, and no amount of protocol "
36653 "security will save you from the consequences."
36654 msgstr ""
36655
36656 #. type: =head2
36657 #: ../src/guestfs.pod:1242
36658 msgid "INSPECTION SECURITY"
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:1244
36663 msgid ""
36664 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36665 "directly from the guest, and these could contain any 8 bit data.  Callers "
36666 "should be careful to escape these before printing them to a structured file "
36667 "(for example, use HTML escaping if creating a web page)."
36668 msgstr ""
36669
36670 #. type: textblock
36671 #: ../src/guestfs.pod:1250
36672 msgid ""
36673 "Guest configuration may be altered in unusual ways by the administrator of "
36674 "the virtual machine, and may not reflect reality (particularly for untrusted "
36675 "or actively malicious guests).  For example we parse the hostname from "
36676 "configuration files like C</etc/sysconfig/network> that we find in the "
36677 "guest, but the guest administrator can easily manipulate these files to "
36678 "provide the wrong hostname."
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:1258
36683 msgid ""
36684 "The inspection API parses guest configuration using two external libraries: "
36685 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36686 "designed to be robust in the face of malicious data, although denial of "
36687 "service attacks are still possible, for example with oversized configuration "
36688 "files."
36689 msgstr ""
36690
36691 #. type: =head2
36692 #: ../src/guestfs.pod:1264
36693 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:1266
36698 msgid ""
36699 "Be very cautious about running commands from the guest.  By running a "
36700 "command in the guest, you are giving CPU time to a binary that you do not "
36701 "control, under the same user account as the library, albeit wrapped in qemu "
36702 "virtualization.  More information and alternatives can be found in the "
36703 "section L</RUNNING COMMANDS>."
36704 msgstr ""
36705
36706 #. type: =head2
36707 #: ../src/guestfs.pod:1272
36708 msgid "CVE-2010-3851"
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:1274
36713 msgid "https://bugzilla.redhat.com/642934"
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:1276
36718 msgid ""
36719 "This security bug concerns the automatic disk format detection that qemu "
36720 "does on disk images."
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:1279
36725 msgid ""
36726 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36727 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36728 "for one of the known headers, and if none is found then assuming the disk "
36729 "image must be raw."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:1284
36734 msgid ""
36735 "This allows a guest which has been given a raw disk image to write some "
36736 "other header.  At next boot (or when the disk image is accessed by "
36737 "libguestfs) qemu would do autodetection and think the disk image format was, "
36738 "say, qcow2 based on the header written by the guest."
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../src/guestfs.pod:1289
36743 msgid ""
36744 "This in itself would not be a problem, but qcow2 offers many features, one "
36745 "of which is to allow a disk image to refer to another image (called the "
36746 "\"backing disk\").  It does this by placing the path to the backing disk "
36747 "into the qcow2 header.  This path is not validated and could point to any "
36748 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36749 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36750 "control of the attacker."
36751 msgstr ""
36752
36753 #. type: textblock
36754 #: ../src/guestfs.pod:1297
36755 msgid ""
36756 "In libguestfs this is rather hard to exploit except under two circumstances:"
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../src/guestfs.pod:1304
36761 msgid "You have enabled the network or have opened the disk in write mode."
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../src/guestfs.pod:1308
36766 msgid ""
36767 "You are also running untrusted code from the guest (see L</RUNNING "
36768 "COMMANDS>)."
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../src/guestfs.pod:1313
36773 msgid ""
36774 "The way to avoid this is to specify the expected disk format when adding "
36775 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36776 "should always do this if the disk is raw format, and it's a good idea for "
36777 "other cases too."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:1318
36782 msgid ""
36783 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36784 "format is fetched from libvirt and passed through."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:1321
36789 msgid ""
36790 "For libguestfs tools, use the I<--format> command line parameter as "
36791 "appropriate."
36792 msgstr ""
36793
36794 #. type: =head1
36795 #: ../src/guestfs.pod:1324
36796 msgid "CONNECTION MANAGEMENT"
36797 msgstr ""
36798
36799 #. type: =head2
36800 #: ../src/guestfs.pod:1326
36801 msgid "guestfs_h *"
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:1328
36806 msgid ""
36807 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36808 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36809 "handle and release all resources used."
36810 msgstr ""
36811
36812 #. type: textblock
36813 #: ../src/guestfs.pod:1332
36814 msgid ""
36815 "For information on using multiple handles and threads, see the section L</"
36816 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36817 msgstr ""
36818
36819 #. type: =head2
36820 #: ../src/guestfs.pod:1335
36821 msgid "guestfs_create"
36822 msgstr ""
36823
36824 #. type: verbatim
36825 #: ../src/guestfs.pod:1337
36826 #, no-wrap
36827 msgid ""
36828 " guestfs_h *guestfs_create (void);\n"
36829 "\n"
36830 msgstr ""
36831
36832 #. type: textblock
36833 #: ../src/guestfs.pod:1339
36834 msgid "Create a connection handle."
36835 msgstr ""
36836
36837 #. type: textblock
36838 #: ../src/guestfs.pod:1341
36839 msgid ""
36840 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36841 "NULL."
36842 msgstr ""
36843
36844 #. type: textblock
36845 #: ../src/guestfs.pod:1344
36846 msgid ""
36847 "You have to \"configure\" the handle after creating it.  This includes "
36848 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36849 "handle at least once."
36850 msgstr ""
36851
36852 #. type: textblock
36853 #: ../src/guestfs.pod:1348
36854 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:1350
36859 msgid ""
36860 "You may also want to configure error handling for the handle.  See the L</"
36861 "ERROR HANDLING> section below."
36862 msgstr ""
36863
36864 #. type: =head2
36865 #: ../src/guestfs.pod:1353
36866 msgid "guestfs_close"
36867 msgstr ""
36868
36869 #. type: verbatim
36870 #: ../src/guestfs.pod:1355
36871 #, no-wrap
36872 msgid ""
36873 " void guestfs_close (guestfs_h *g);\n"
36874 "\n"
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:1357
36879 msgid "This closes the connection handle and frees up all resources used."
36880 msgstr ""
36881
36882 #. type: textblock
36883 #: ../src/guestfs.pod:1359
36884 msgid ""
36885 "If autosync was set on the handle and the handle was launched, then this "
36886 "implicitly calls various functions to unmount filesystems and sync the "
36887 "disk.  See L</guestfs_set_autosync> for more details."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:1363
36892 msgid "If a close callback was set on the handle, then it is called."
36893 msgstr ""
36894
36895 #. type: =head1
36896 #: ../src/guestfs.pod:1365
36897 msgid "ERROR HANDLING"
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:1367
36902 msgid ""
36903 "API functions can return errors.  For example, almost all functions that "
36904 "return C<int> will return C<-1> to indicate an error."
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:1370
36909 msgid ""
36910 "Additional information is available for errors: an error message string and "
36911 "optionally an error number (errno) if the thing that failed was a system "
36912 "call."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:1374
36917 msgid ""
36918 "You can get at the additional information about the last error on the handle "
36919 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36920 "up an error handler with L</guestfs_set_error_handler>."
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:1379
36925 msgid ""
36926 "When the handle is created, a default error handler is installed which "
36927 "prints the error message string to C<stderr>.  For small short-running "
36928 "command line programs it is sufficient to do:"
36929 msgstr ""
36930
36931 #. type: verbatim
36932 #: ../src/guestfs.pod:1383
36933 #, no-wrap
36934 msgid ""
36935 " if (guestfs_launch (g) == -1)\n"
36936 "   exit (EXIT_FAILURE);\n"
36937 "\n"
36938 msgstr ""
36939
36940 #. type: textblock
36941 #: ../src/guestfs.pod:1386
36942 msgid ""
36943 "since the default error handler will ensure that an error message has been "
36944 "printed to C<stderr> before the program exits."
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../src/guestfs.pod:1389
36949 msgid ""
36950 "For other programs the caller will almost certainly want to install an "
36951 "alternate error handler or do error handling in-line like this:"
36952 msgstr ""
36953
36954 #. type: verbatim
36955 #: ../src/guestfs.pod:1392
36956 #, no-wrap
36957 msgid ""
36958 " /* This disables the default behaviour of printing errors\n"
36959 "    on stderr. */\n"
36960 " guestfs_set_error_handler (g, NULL, NULL);\n"
36961 " \n"
36962 msgstr ""
36963
36964 #. type: verbatim
36965 #: ../src/guestfs.pod:1396
36966 #, no-wrap
36967 msgid ""
36968 " if (guestfs_launch (g) == -1) {\n"
36969 "   /* Examine the error message and print it etc. */\n"
36970 "   char *msg = guestfs_last_error (g);\n"
36971 "   int errnum = guestfs_last_errno (g);\n"
36972 "   fprintf (stderr, \"%s\", msg);\n"
36973 "   if (errnum != 0)\n"
36974 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36975 "   fprintf (stderr, \"\\n\");\n"
36976 "   /* ... */\n"
36977 " }\n"
36978 "\n"
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:1407
36983 msgid ""
36984 "Out of memory errors are handled differently.  The default action is to call "
36985 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36986 "guestfs_set_out_of_memory_handler>."
36987 msgstr ""
36988
36989 #. type: textblock
36990 #: ../src/guestfs.pod:1411
36991 msgid ""
36992 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36993 "because there is no handle if this happens there is no way to get additional "
36994 "error information.  However L</guestfs_create> is supposed to be a "
36995 "lightweight operation which can only fail because of insufficient memory (it "
36996 "returns NULL in this case)."
36997 msgstr ""
36998
36999 #. type: =head2
37000 #: ../src/guestfs.pod:1417
37001 msgid "guestfs_last_error"
37002 msgstr ""
37003
37004 #. type: verbatim
37005 #: ../src/guestfs.pod:1419
37006 #, no-wrap
37007 msgid ""
37008 " const char *guestfs_last_error (guestfs_h *g);\n"
37009 "\n"
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:1421
37014 msgid ""
37015 "This returns the last error message that happened on C<g>.  If there has not "
37016 "been an error since the handle was created, then this returns C<NULL>."
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:1425
37021 msgid ""
37022 "The lifetime of the returned string is until the next error occurs, or L</"
37023 "guestfs_close> is called."
37024 msgstr ""
37025
37026 #. type: =head2
37027 #: ../src/guestfs.pod:1428
37028 msgid "guestfs_last_errno"
37029 msgstr ""
37030
37031 #. type: verbatim
37032 #: ../src/guestfs.pod:1430
37033 #, no-wrap
37034 msgid ""
37035 " int guestfs_last_errno (guestfs_h *g);\n"
37036 "\n"
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../src/guestfs.pod:1432
37041 msgid "This returns the last error number (errno) that happened on C<g>."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:1434
37046 msgid "If successful, an errno integer not equal to zero is returned."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:1436
37051 msgid ""
37052 "If no error, this returns 0.  This call can return 0 in three situations:"
37053 msgstr ""
37054
37055 #. type: textblock
37056 #: ../src/guestfs.pod:1443
37057 msgid "There has not been any error on the handle."
37058 msgstr ""
37059
37060 #. type: textblock
37061 #: ../src/guestfs.pod:1447
37062 msgid ""
37063 "There has been an error but the errno was meaningless.  This corresponds to "
37064 "the case where the error did not come from a failed system call, but for "
37065 "some other reason."
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:1453
37070 msgid ""
37071 "There was an error from a failed system call, but for some reason the errno "
37072 "was not captured and returned.  This usually indicates a bug in libguestfs."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:1459
37077 msgid ""
37078 "Libguestfs tries to convert the errno from inside the applicance into a "
37079 "corresponding errno for the caller (not entirely trivial: the appliance "
37080 "might be running a completely different operating system from the library "
37081 "and error numbers are not standardized across Un*xen).  If this could not be "
37082 "done, then the error is translated to C<EINVAL>.  In practice this should "
37083 "only happen in very rare circumstances."
37084 msgstr ""
37085
37086 #. type: =head2
37087 #: ../src/guestfs.pod:1467
37088 msgid "guestfs_set_error_handler"
37089 msgstr ""
37090
37091 #. type: verbatim
37092 #: ../src/guestfs.pod:1469
37093 #, no-wrap
37094 msgid ""
37095 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37096 "                                           void *opaque,\n"
37097 "                                           const char *msg);\n"
37098 " void guestfs_set_error_handler (guestfs_h *g,\n"
37099 "                                 guestfs_error_handler_cb cb,\n"
37100 "                                 void *opaque);\n"
37101 "\n"
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:1476
37106 msgid ""
37107 "The callback C<cb> will be called if there is an error.  The parameters "
37108 "passed to the callback are an opaque data pointer and the error message "
37109 "string."
37110 msgstr ""
37111
37112 #. type: textblock
37113 #: ../src/guestfs.pod:1480
37114 msgid ""
37115 "C<errno> is not passed to the callback.  To get that the callback must call "
37116 "L</guestfs_last_errno>."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:1483
37121 msgid ""
37122 "Note that the message string C<msg> is freed as soon as the callback "
37123 "function returns, so if you want to stash it somewhere you must make your "
37124 "own copy."
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:1487
37129 msgid "The default handler prints messages on C<stderr>."
37130 msgstr ""
37131
37132 #. type: textblock
37133 #: ../src/guestfs.pod:1489
37134 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37135 msgstr ""
37136
37137 #. type: =head2
37138 #: ../src/guestfs.pod:1491
37139 msgid "guestfs_get_error_handler"
37140 msgstr ""
37141
37142 #. type: verbatim
37143 #: ../src/guestfs.pod:1493
37144 #, no-wrap
37145 msgid ""
37146 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37147 "                                                     void **opaque_rtn);\n"
37148 "\n"
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:1496
37153 msgid "Returns the current error handler callback."
37154 msgstr ""
37155
37156 #. type: =head2
37157 #: ../src/guestfs.pod:1498
37158 msgid "guestfs_set_out_of_memory_handler"
37159 msgstr ""
37160
37161 #. type: verbatim
37162 #: ../src/guestfs.pod:1500
37163 #, no-wrap
37164 msgid ""
37165 " typedef void (*guestfs_abort_cb) (void);\n"
37166 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37167 "                                         guestfs_abort_cb);\n"
37168 "\n"
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../src/guestfs.pod:1504
37173 msgid ""
37174 "The callback C<cb> will be called if there is an out of memory situation.  "
37175 "I<Note this callback must not return>."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:1507
37180 msgid "The default is to call L<abort(3)>."
37181 msgstr ""
37182
37183 #. type: textblock
37184 #: ../src/guestfs.pod:1509
37185 msgid ""
37186 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37187 msgstr ""
37188
37189 #. type: =head2
37190 #: ../src/guestfs.pod:1512
37191 msgid "guestfs_get_out_of_memory_handler"
37192 msgstr ""
37193
37194 #. type: verbatim
37195 #: ../src/guestfs.pod:1514
37196 #, no-wrap
37197 msgid ""
37198 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37199 "\n"
37200 msgstr ""
37201
37202 #. type: textblock
37203 #: ../src/guestfs.pod:1516
37204 msgid "This returns the current out of memory handler."
37205 msgstr ""
37206
37207 #. type: =head1
37208 #: ../src/guestfs.pod:1518
37209 msgid "API CALLS"
37210 msgstr ""
37211
37212 #. type: =head1
37213 #: ../src/guestfs.pod:1522
37214 msgid "STRUCTURES"
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:1524
37219 msgid "@STRUCTS@"
37220 msgstr ""
37221
37222 #. type: =head1
37223 #: ../src/guestfs.pod:1526
37224 msgid "AVAILABILITY"
37225 msgstr ""
37226
37227 #. type: =head2
37228 #: ../src/guestfs.pod:1528
37229 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:1530
37234 msgid ""
37235 "Using L</guestfs_available> you can test availability of the following "
37236 "groups of functions.  This test queries the appliance to see if the "
37237 "appliance you are currently using supports the functionality."
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:1535
37242 msgid "@AVAILABILITY@"
37243 msgstr ""
37244
37245 #. type: =head2
37246 #: ../src/guestfs.pod:1537
37247 msgid "GUESTFISH supported COMMAND"
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../src/guestfs.pod:1539
37252 msgid ""
37253 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37254 "prints out the available groups and whether they are supported by this build "
37255 "of libguestfs.  Note however that you have to do C<run> first."
37256 msgstr ""
37257
37258 #. type: =head2
37259 #: ../src/guestfs.pod:1544
37260 msgid "SINGLE CALLS AT COMPILE TIME"
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1546
37265 msgid ""
37266 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37267 "function, such as:"
37268 msgstr ""
37269
37270 #. type: verbatim
37271 #: ../src/guestfs.pod:1549
37272 #, no-wrap
37273 msgid ""
37274 " #define LIBGUESTFS_HAVE_DD 1\n"
37275 "\n"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../src/guestfs.pod:1551
37280 msgid "if L</guestfs_dd> is available."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:1553
37285 msgid ""
37286 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37287 "function is available at compile time, we recommended using build tools such "
37288 "as autoconf or cmake.  For example in autotools you could use:"
37289 msgstr ""
37290
37291 #. type: verbatim
37292 #: ../src/guestfs.pod:1558
37293 #, no-wrap
37294 msgid ""
37295 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37296 " AC_CHECK_FUNCS([guestfs_dd])\n"
37297 "\n"
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:1561
37302 msgid ""
37303 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37304 "in your program."
37305 msgstr ""
37306
37307 #. type: =head2
37308 #: ../src/guestfs.pod:1564
37309 msgid "SINGLE CALLS AT RUN TIME"
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:1566
37314 msgid ""
37315 "Testing at compile time doesn't guarantee that a function really exists in "
37316 "the library.  The reason is that you might be dynamically linked against a "
37317 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37318 "This situation unfortunately results in a segmentation fault, which is a "
37319 "shortcoming of the C dynamic linking system itself."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:1573
37324 msgid ""
37325 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37326 "in this example program (note that you still need the compile time check as "
37327 "well):"
37328 msgstr ""
37329
37330 #. type: verbatim
37331 #: ../src/guestfs.pod:1577
37332 #, no-wrap
37333 msgid ""
37334 " #include <stdio.h>\n"
37335 " #include <stdlib.h>\n"
37336 " #include <unistd.h>\n"
37337 " #include <dlfcn.h>\n"
37338 " #include <guestfs.h>\n"
37339 " \n"
37340 msgstr ""
37341
37342 #. type: verbatim
37343 #: ../src/guestfs.pod:1583
37344 #, no-wrap
37345 msgid ""
37346 " main ()\n"
37347 " {\n"
37348 " #ifdef LIBGUESTFS_HAVE_DD\n"
37349 "   void *dl;\n"
37350 "   int has_function;\n"
37351 " \n"
37352 msgstr ""
37353
37354 #. type: verbatim
37355 #: ../src/guestfs.pod:1589
37356 #, no-wrap
37357 msgid ""
37358 "   /* Test if the function guestfs_dd is really available. */\n"
37359 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37360 "   if (!dl) {\n"
37361 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37362 "     exit (EXIT_FAILURE);\n"
37363 "   }\n"
37364 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37365 "   dlclose (dl);\n"
37366 " \n"
37367 msgstr ""
37368
37369 #. type: verbatim
37370 #: ../src/guestfs.pod:1598
37371 #, no-wrap
37372 msgid ""
37373 "   if (!has_function)\n"
37374 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37375 "   else {\n"
37376 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37377 "     /* Now it's safe to call\n"
37378 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37379 "     */\n"
37380 "   }\n"
37381 " #else\n"
37382 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37383 " #endif\n"
37384 "  }\n"
37385 "\n"
37386 msgstr ""
37387
37388 #. type: textblock
37389 #: ../src/guestfs.pod:1611
37390 msgid ""
37391 "You may think the above is an awful lot of hassle, and it is.  There are "
37392 "other ways outside of the C linking system to ensure that this kind of "
37393 "incompatibility never arises, such as using package versioning:"
37394 msgstr ""
37395
37396 #. type: verbatim
37397 #: ../src/guestfs.pod:1616
37398 #, no-wrap
37399 msgid ""
37400 " Requires: libguestfs >= 1.0.80\n"
37401 "\n"
37402 msgstr ""
37403
37404 #. type: =head1
37405 #: ../src/guestfs.pod:1618
37406 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37407 msgstr ""
37408
37409 #. type: textblock
37410 #: ../src/guestfs.pod:1620
37411 msgid ""
37412 "A recent feature of the API is the introduction of calls which take optional "
37413 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37414 "takes variable arguments (ie. C<...>), as in this example:"
37415 msgstr ""
37416
37417 #. type: verbatim
37418 #: ../src/guestfs.pod:1625
37419 #, no-wrap
37420 msgid ""
37421 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37422 "\n"
37423 msgstr ""
37424
37425 #. type: textblock
37426 #: ../src/guestfs.pod:1627
37427 msgid ""
37428 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37429 "call with no optional arguments specified:"
37430 msgstr ""
37431
37432 #. type: verbatim
37433 #: ../src/guestfs.pod:1630
37434 #, no-wrap
37435 msgid ""
37436 " guestfs_add_drive_opts (g, filename, -1);\n"
37437 "\n"
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../src/guestfs.pod:1632
37442 msgid "With a single optional argument:"
37443 msgstr ""
37444
37445 #. type: verbatim
37446 #: ../src/guestfs.pod:1634
37447 #, no-wrap
37448 msgid ""
37449 " guestfs_add_drive_opts (g, filename,\n"
37450 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37451 "                         -1);\n"
37452 "\n"
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../src/guestfs.pod:1638
37457 msgid "With two:"
37458 msgstr ""
37459
37460 #. type: verbatim
37461 #: ../src/guestfs.pod:1640
37462 #, no-wrap
37463 msgid ""
37464 " guestfs_add_drive_opts (g, filename,\n"
37465 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37466 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37467 "                         -1);\n"
37468 "\n"
37469 msgstr ""
37470
37471 #. type: textblock
37472 #: ../src/guestfs.pod:1645
37473 msgid ""
37474 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37475 "happen!"
37476 msgstr ""
37477
37478 #. type: =head2
37479 #: ../src/guestfs.pod:1648
37480 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37481 msgstr ""
37482
37483 #. type: textblock
37484 #: ../src/guestfs.pod:1650
37485 msgid ""
37486 "The second variant has the same name with the suffix C<_va>, which works the "
37487 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37488 "example function, this is declared:"
37489 msgstr ""
37490
37491 #. type: verbatim
37492 #: ../src/guestfs.pod:1654
37493 #, no-wrap
37494 msgid ""
37495 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37496 "                                va_list args);\n"
37497 "\n"
37498 msgstr ""
37499
37500 #. type: =head2
37501 #: ../src/guestfs.pod:1657
37502 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37503 msgstr ""
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:1659
37507 msgid ""
37508 "The third variant is useful where you need to construct these calls.  You "
37509 "pass in a structure where you fill in the optional fields.  The structure "
37510 "has a bitmask as the first element which you must set to indicate which "
37511 "fields you have filled in.  For our example function the structure and call "
37512 "are declared:"
37513 msgstr ""
37514
37515 #. type: verbatim
37516 #: ../src/guestfs.pod:1665
37517 #, no-wrap
37518 msgid ""
37519 " struct guestfs_add_drive_opts_argv {\n"
37520 "   uint64_t bitmask;\n"
37521 "   int readonly;\n"
37522 "   const char *format;\n"
37523 "   /* ... */\n"
37524 " };\n"
37525 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37526 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37527 "\n"
37528 msgstr ""
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:1674
37532 msgid "You could call it like this:"
37533 msgstr ""
37534
37535 #. type: verbatim
37536 #: ../src/guestfs.pod:1676
37537 #, no-wrap
37538 msgid ""
37539 " struct guestfs_add_drive_opts_argv optargs = {\n"
37540 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37541 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37542 "   .readonly = 1,\n"
37543 "   .format = \"qcow2\"\n"
37544 " };\n"
37545 " \n"
37546 msgstr ""
37547
37548 #. type: verbatim
37549 #: ../src/guestfs.pod:1683
37550 #, no-wrap
37551 msgid ""
37552 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37553 "\n"
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:1691
37558 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37559 msgstr ""
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:1696
37563 msgid "You do not need to fill in all fields of the structure."
37564 msgstr ""
37565
37566 #. type: textblock
37567 #: ../src/guestfs.pod:1700
37568 msgid ""
37569 "There must be a one-to-one correspondence between fields of the structure "
37570 "that are filled in, and bits set in the bitmask."
37571 msgstr ""
37572
37573 #. type: =head2
37574 #: ../src/guestfs.pod:1705
37575 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1707
37580 msgid ""
37581 "In other languages, optional arguments are expressed in the way that is "
37582 "natural for that language.  We refer you to the language-specific "
37583 "documentation for more details on that."
37584 msgstr ""
37585
37586 #. type: textblock
37587 #: ../src/guestfs.pod:1711
37588 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37589 msgstr ""
37590
37591 #. type: =head2
37592 #: ../src/guestfs.pod:1713
37593 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37594 msgstr ""
37595
37596 #. type: textblock
37597 #: ../src/guestfs.pod:1715
37598 msgid ""
37599 "B<Note:> This section documents the generic event mechanism introduced in "
37600 "libguestfs 1.10, which you should use in new code if possible.  The old "
37601 "functions C<guestfs_set_log_message_callback>, "
37602 "C<guestfs_set_subprocess_quit_callback>, "
37603 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37604 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37605 "page.  Because of the ABI guarantee, the old functions continue to work."
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:1724
37610 msgid ""
37611 "Handles generate events when certain things happen, such as log messages "
37612 "being generated, progress messages during long-running operations, or the "
37613 "handle being closed.  The API calls described below let you register a "
37614 "callback to be called when events happen.  You can register multiple "
37615 "callbacks (for the same, different or overlapping sets of events), and "
37616 "individually remove callbacks.  If callbacks are not removed, then they "
37617 "remain in force until the handle is closed."
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:1732
37622 msgid ""
37623 "In the current implementation, events are only generated synchronously: that "
37624 "means that events (and hence callbacks) can only happen while you are in the "
37625 "middle of making another libguestfs call.  The callback is called in the "
37626 "same thread."
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:1737
37631 msgid ""
37632 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37633 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37634 msgstr ""
37635
37636 #. type: =head3
37637 #: ../src/guestfs.pod:1741
37638 msgid "CLASSES OF EVENTS"
37639 msgstr ""
37640
37641 #. type: =item
37642 #: ../src/guestfs.pod:1745
37643 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:1748
37648 msgid ""
37649 "The callback function will be called while the handle is being closed "
37650 "(synchronously from L</guestfs_close>)."
37651 msgstr ""
37652
37653 #. type: textblock
37654 #: ../src/guestfs.pod:1751
37655 msgid ""
37656 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37657 "handles that are open when the program exits.  This means that this callback "
37658 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37659 "problems in higher-level languages (eg. if your HLL interpreter has already "
37660 "been cleaned up by the time this is called, and if your callback then jumps "
37661 "into some HLL function)."
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../src/guestfs.pod:1758
37666 msgid ""
37667 "If no callback is registered: the handle is closed without any callback "
37668 "being invoked."
37669 msgstr ""
37670
37671 #. type: =item
37672 #: ../src/guestfs.pod:1761
37673 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:1764
37678 msgid ""
37679 "The callback function will be called when the child process quits, either "
37680 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37681 "corresponds to a transition from any state to the CONFIG state)."
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37686 msgid "If no callback is registered: the event is ignored."
37687 msgstr ""
37688
37689 #. type: =item
37690 #: ../src/guestfs.pod:1770
37691 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37692 msgstr ""
37693
37694 #. type: textblock
37695 #: ../src/guestfs.pod:1773
37696 msgid ""
37697 "The callback function will be called when the child process becomes ready "
37698 "first time after it has been launched.  (This corresponds to a transition "
37699 "from LAUNCHING to the READY state)."
37700 msgstr ""
37701
37702 #. type: =item
37703 #: ../src/guestfs.pod:1779
37704 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:1782
37709 msgid ""
37710 "Some long-running operations can generate progress messages.  If this "
37711 "callback is registered, then it will be called each time a progress message "
37712 "is generated (usually two seconds after the operation started, and three "
37713 "times per second thereafter until it completes, although the frequency may "
37714 "change in future versions)."
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../src/guestfs.pod:1788
37719 msgid ""
37720 "The callback receives in the payload four unsigned 64 bit numbers which are "
37721 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../src/guestfs.pod:1791
37726 msgid ""
37727 "The units of C<total> are not defined, although for some operations C<total> "
37728 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37729 "or megabytes), and C<position> may be the portion which has been transferred."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:1796
37734 msgid "The only defined and stable parts of the API are:"
37735 msgstr ""
37736
37737 #. type: textblock
37738 #: ../src/guestfs.pod:1802
37739 msgid ""
37740 "The callback can display to the user some type of progress bar or indicator "
37741 "which shows the ratio of C<position>:C<total>."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:1807
37746 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:1811
37751 msgid ""
37752 "If any progress notification is sent during a call, then a final progress "
37753 "notification is always sent when C<position> = C<total> (I<unless> the call "
37754 "fails with an error)."
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:1815
37759 msgid ""
37760 "This is to simplify caller code, so callers can easily set the progress "
37761 "indicator to \"100%\" at the end of the operation, without requiring special "
37762 "code to detect this case."
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:1821
37767 msgid ""
37768 "For some calls we are unable to estimate the progress of the call, but we "
37769 "can still generate progress messages to indicate activity.  This is known as "
37770 "\"pulse mode\", and is directly supported by certain progress bar "
37771 "implementations (eg. GtkProgressBar)."
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../src/guestfs.pod:1826
37776 msgid ""
37777 "For these calls, zero or more progress messages are generated with "
37778 "C<position = 0> and C<total = 1>, followed by a final message with "
37779 "C<position = total = 1>."
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:1830
37784 msgid ""
37785 "As noted above, if the call fails with an error then the final message may "
37786 "not be generated."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:1835
37791 msgid ""
37792 "The callback also receives the procedure number (C<proc_nr>) and serial "
37793 "number (C<serial>) of the call.  These are only useful for debugging "
37794 "protocol issues, and the callback can normally ignore them.  The callback "
37795 "may want to print these numbers in error messages or debugging messages."
37796 msgstr ""
37797
37798 #. type: textblock
37799 #: ../src/guestfs.pod:1841
37800 msgid "If no callback is registered: progress messages are discarded."
37801 msgstr ""
37802
37803 #. type: =item
37804 #: ../src/guestfs.pod:1843
37805 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../src/guestfs.pod:1846
37810 msgid ""
37811 "The callback function is called whenever a log message is generated by qemu, "
37812 "the appliance kernel, guestfsd (daemon), or utility programs."
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../src/guestfs.pod:1849
37817 msgid ""
37818 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37819 "guestfs_launch>) then additional debug messages are generated."
37820 msgstr ""
37821
37822 #. type: textblock
37823 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37824 msgid ""
37825 "If no callback is registered: the messages are discarded unless the verbose "
37826 "flag is set in which case they are sent to stderr.  You can override the "
37827 "printing of verbose messages to stderr by setting up a callback."
37828 msgstr ""
37829
37830 #. type: =item
37831 #: ../src/guestfs.pod:1857
37832 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37833 msgstr ""
37834
37835 #. type: textblock
37836 #: ../src/guestfs.pod:1860
37837 msgid ""
37838 "The callback function is called whenever a log message is generated by the "
37839 "library part of libguestfs."
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:1863
37844 msgid ""
37845 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37846 "messages are generated."
37847 msgstr ""
37848
37849 #. type: =item
37850 #: ../src/guestfs.pod:1871
37851 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37852 msgstr ""
37853
37854 #. type: textblock
37855 #: ../src/guestfs.pod:1874
37856 msgid ""
37857 "The callback function is called whenever a trace message is generated.  This "
37858 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37859 msgstr ""
37860
37861 #. type: textblock
37862 #: ../src/guestfs.pod:1877
37863 msgid ""
37864 "If no callback is registered: the messages are sent to stderr.  You can "
37865 "override the printing of trace messages to stderr by setting up a callback."
37866 msgstr ""
37867
37868 #. type: =item
37869 #: ../src/guestfs.pod:1881
37870 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:1884
37875 msgid ""
37876 "The callback function is called whenever a libguestfs function is entered."
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../src/guestfs.pod:1887
37881 msgid ""
37882 "The payload is a string which contains the name of the function that we are "
37883 "entering (not including C<guestfs_> prefix)."
37884 msgstr ""
37885
37886 #. type: textblock
37887 #: ../src/guestfs.pod:1890
37888 msgid ""
37889 "Note that libguestfs functions can call themselves, so you may see many "
37890 "events from a single call.  A few libguestfs functions do not generate this "
37891 "event."
37892 msgstr ""
37893
37894 #. type: =head3
37895 #: ../src/guestfs.pod:1898
37896 msgid "guestfs_set_event_callback"
37897 msgstr ""
37898
37899 #. type: verbatim
37900 #: ../src/guestfs.pod:1900
37901 #, no-wrap
37902 msgid ""
37903 " int guestfs_set_event_callback (guestfs_h *g,\n"
37904 "                                 guestfs_event_callback cb,\n"
37905 "                                 uint64_t event_bitmask,\n"
37906 "                                 int flags,\n"
37907 "                                 void *opaque);\n"
37908 "\n"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:1906
37913 msgid ""
37914 "This function registers a callback (C<cb>) for all event classes in the "
37915 "C<event_bitmask>."
37916 msgstr ""
37917
37918 #. type: textblock
37919 #: ../src/guestfs.pod:1909
37920 msgid ""
37921 "For example, to register for all log message events, you could call this "
37922 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37923 "To register a single callback for all possible classes of events, use "
37924 "C<GUESTFS_EVENT_ALL>."
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../src/guestfs.pod:1915
37929 msgid "C<flags> should always be passed as 0."
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:1917
37934 msgid ""
37935 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37936 "it for any purpose."
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:1920
37941 msgid ""
37942 "The return value is the event handle (an integer) which you can use to "
37943 "delete the callback (see below)."
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:1923
37948 msgid ""
37949 "If there is an error, this function returns C<-1>, and sets the error in the "
37950 "handle in the usual way (see L</guestfs_last_error> etc.)"
37951 msgstr ""
37952
37953 #. type: textblock
37954 #: ../src/guestfs.pod:1926
37955 msgid ""
37956 "Callbacks remain in effect until they are deleted, or until the handle is "
37957 "closed."
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:1929
37962 msgid ""
37963 "In the case where multiple callbacks are registered for a particular event "
37964 "class, all of the callbacks are called.  The order in which multiple "
37965 "callbacks are called is not defined."
37966 msgstr ""
37967
37968 #. type: =head3
37969 #: ../src/guestfs.pod:1933
37970 msgid "guestfs_delete_event_callback"
37971 msgstr ""
37972
37973 #. type: verbatim
37974 #: ../src/guestfs.pod:1935
37975 #, no-wrap
37976 msgid ""
37977 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37978 "\n"
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:1937
37983 msgid ""
37984 "Delete a callback that was previously registered.  C<event_handle> should be "
37985 "the integer that was returned by a previous call to "
37986 "C<guestfs_set_event_callback> on the same handle."
37987 msgstr ""
37988
37989 #. type: =head3
37990 #: ../src/guestfs.pod:1941
37991 msgid "guestfs_event_callback"
37992 msgstr ""
37993
37994 #. type: verbatim
37995 #: ../src/guestfs.pod:1943
37996 #, no-wrap
37997 msgid ""
37998 " typedef void (*guestfs_event_callback) (\n"
37999 "                  guestfs_h *g,\n"
38000 "                  void *opaque,\n"
38001 "                  uint64_t event,\n"
38002 "                  int event_handle,\n"
38003 "                  int flags,\n"
38004 "                  const char *buf, size_t buf_len,\n"
38005 "                  const uint64_t *array, size_t array_len);\n"
38006 "\n"
38007 msgstr ""
38008
38009 #. type: textblock
38010 #: ../src/guestfs.pod:1952
38011 msgid ""
38012 "This is the type of the event callback function that you have to provide."
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:1955
38017 msgid ""
38018 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38019 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38020 "handle, and C<flags> which in the current API you should ignore."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:1959
38025 msgid ""
38026 "The remaining parameters contain the event payload (if any).  Each event may "
38027 "contain a payload, which usually relates to the event class, but for future "
38028 "proofing your code should be written to handle any payload for any event "
38029 "class."
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:1964
38034 msgid ""
38035 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38036 "there is no message buffer).  Note that this message buffer can contain "
38037 "arbitrary 8 bit data, including NUL bytes."
38038 msgstr ""
38039
38040 #. type: textblock
38041 #: ../src/guestfs.pod:1968
38042 msgid ""
38043 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38044 "moment this is only used for progress messages."
38045 msgstr ""
38046
38047 #. type: =head3
38048 #: ../src/guestfs.pod:1971
38049 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:1973
38054 msgid ""
38055 "One motivation for the generic event API was to allow GUI programs to "
38056 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38057 "unconditionally to C<stderr>."
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:1977
38062 msgid ""
38063 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38064 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38065 "messages are not events; you must capture error messages separately)."
38066 msgstr ""
38067
38068 #. type: textblock
38069 #: ../src/guestfs.pod:1982
38070 msgid ""
38071 "Programs have to set up a callback to capture the classes of events of "
38072 "interest:"
38073 msgstr ""
38074
38075 #. type: verbatim
38076 #: ../src/guestfs.pod:1985
38077 #, no-wrap
38078 msgid ""
38079 " int eh =\n"
38080 "   guestfs_set_event_callback\n"
38081 "     (g, message_callback,\n"
38082 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38083 "      GUESTFS_EVENT_TRACE,\n"
38084 "      0, NULL) == -1)\n"
38085 " if (eh == -1) {\n"
38086 "   // handle error in the usual way\n"
38087 " }\n"
38088 "\n"
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../src/guestfs.pod:1995
38093 msgid ""
38094 "The callback can then direct messages to the appropriate place.  In this "
38095 "example, messages are directed to syslog:"
38096 msgstr ""
38097
38098 #. type: verbatim
38099 #: ../src/guestfs.pod:1998
38100 #, no-wrap
38101 msgid ""
38102 " static void\n"
38103 " message_callback (\n"
38104 "         guestfs_h *g,\n"
38105 "         void *opaque,\n"
38106 "         uint64_t event,\n"
38107 "         int event_handle,\n"
38108 "         int flags,\n"
38109 "         const char *buf, size_t buf_len,\n"
38110 "         const uint64_t *array, size_t array_len)\n"
38111 " {\n"
38112 "   const int priority = LOG_USER|LOG_INFO;\n"
38113 "   if (buf_len > 0)\n"
38114 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38115 " }\n"
38116 "\n"
38117 msgstr ""
38118
38119 #. type: =head1
38120 #: ../src/guestfs.pod:2013
38121 msgid "CANCELLING LONG TRANSFERS"
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:2015
38126 msgid ""
38127 "Some operations can be cancelled by the caller while they are in progress.  "
38128 "Currently only operations that involve uploading or downloading data can be "
38129 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38130 "parameters in the generator)."
38131 msgstr ""
38132
38133 #. type: =head2
38134 #: ../src/guestfs.pod:2020
38135 msgid "guestfs_user_cancel"
38136 msgstr ""
38137
38138 #. type: verbatim
38139 #: ../src/guestfs.pod:2022
38140 #, no-wrap
38141 msgid ""
38142 " void guestfs_user_cancel (guestfs_h *g);\n"
38143 "\n"
38144 msgstr ""
38145
38146 #. type: textblock
38147 #: ../src/guestfs.pod:2024
38148 msgid ""
38149 "C<guestfs_user_cancel> cancels the current upload or download operation."
38150 msgstr ""
38151
38152 #. type: textblock
38153 #: ../src/guestfs.pod:2027
38154 msgid ""
38155 "Unlike most other libguestfs calls, this function is signal safe and thread "
38156 "safe.  You can call it from a signal handler or from another thread, without "
38157 "needing to do any locking."
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:2031
38162 msgid ""
38163 "The transfer that was in progress (if there is one) will stop shortly "
38164 "afterwards, and will return an error.  The errno (see L</"
38165 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38166 "out if the operation was cancelled or failed because of another error."
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:2037
38171 msgid ""
38172 "No cleanup is performed: for example, if a file was being uploaded then "
38173 "after cancellation there may be a partially uploaded file.  It is the "
38174 "caller's responsibility to clean up if necessary."
38175 msgstr ""
38176
38177 #. type: textblock
38178 #: ../src/guestfs.pod:2041
38179 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:2043
38184 msgid ""
38185 "In an interactive text-based program, you might call it from a C<SIGINT> "
38186 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38187 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38188 "receive the C<^C> signal)."
38189 msgstr ""
38190
38191 #. type: textblock
38192 #: ../src/guestfs.pod:2048
38193 msgid ""
38194 "In a graphical program, when the main thread is displaying a progress bar "
38195 "with a cancel button, wire up the cancel button to call this function."
38196 msgstr ""
38197
38198 #. type: =head1
38199 #: ../src/guestfs.pod:2052
38200 msgid "PRIVATE DATA AREA"
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:2054
38205 msgid ""
38206 "You can attach named pieces of private data to the libguestfs handle, fetch "
38207 "them by name, and walk over them, for the lifetime of the handle.  This is "
38208 "called the private data area and is only available from the C API."
38209 msgstr ""
38210
38211 #. type: textblock
38212 #: ../src/guestfs.pod:2059
38213 msgid "To attach a named piece of data, use the following call:"
38214 msgstr ""
38215
38216 #. type: verbatim
38217 #: ../src/guestfs.pod:2061
38218 #, no-wrap
38219 msgid ""
38220 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38221 "\n"
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../src/guestfs.pod:2063
38226 msgid ""
38227 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38228 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38229 "overwritten."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:2067
38234 msgid ""
38235 "You can use any C<key> you want, but your key should I<not> start with an "
38236 "underscore character.  Keys beginning with an underscore character are "
38237 "reserved for internal libguestfs purposes (eg. for implementing language "
38238 "bindings).  It is recommended that you prefix the key with some unique "
38239 "string to avoid collisions with other users."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2073
38244 msgid "To retrieve the pointer, use:"
38245 msgstr ""
38246
38247 #. type: verbatim
38248 #: ../src/guestfs.pod:2075
38249 #, no-wrap
38250 msgid ""
38251 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38252 "\n"
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:2077
38257 msgid ""
38258 "This function returns C<NULL> if either no data is found associated with "
38259 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38260 "C<NULL>."
38261 msgstr ""
38262
38263 #. type: textblock
38264 #: ../src/guestfs.pod:2081
38265 msgid ""
38266 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38267 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38268 "all.  In particular, libguestfs does I<not> try to free the data when the "
38269 "handle is closed.  If the data must be freed, then the caller must either "
38270 "free it before calling L</guestfs_close> or must set up a close callback to "
38271 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:2088
38276 msgid "To walk over all entries, use these two functions:"
38277 msgstr ""
38278
38279 #. type: verbatim
38280 #: ../src/guestfs.pod:2090
38281 #, no-wrap
38282 msgid ""
38283 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38284 "\n"
38285 msgstr ""
38286
38287 #. type: verbatim
38288 #: ../src/guestfs.pod:2092
38289 #, no-wrap
38290 msgid ""
38291 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38292 "\n"
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../src/guestfs.pod:2094
38297 msgid ""
38298 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38299 "not have any particular meaning -- keys are not returned in any defined "
38300 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38301 "corresponding data pointer is returned from the function.  C<NULL> is "
38302 "returned if there are no keys stored in the handle."
38303 msgstr ""
38304
38305 #. type: textblock
38306 #: ../src/guestfs.pod:2100
38307 msgid ""
38308 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38309 "value of this function is also C<NULL> is there are no further entries to "
38310 "return."
38311 msgstr ""
38312
38313 #. type: textblock
38314 #: ../src/guestfs.pod:2104
38315 msgid "Notes about walking over entries:"
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:2110
38320 msgid ""
38321 "You must not call C<guestfs_set_private> while walking over the entries."
38322 msgstr ""
38323
38324 #. type: textblock
38325 #: ../src/guestfs.pod:2115
38326 msgid ""
38327 "The handle maintains an internal iterator which is reset when you call "
38328 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38329 "call C<guestfs_set_private>."
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:2121
38334 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38335 msgstr ""
38336
38337 #. type: verbatim
38338 #: ../src/guestfs.pod:2123
38339 #, no-wrap
38340 msgid ""
38341 " guestfs_set_private (g, key, NULL);\n"
38342 "\n"
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:2125
38347 msgid "then that C<key> is not returned when walking."
38348 msgstr ""
38349
38350 #. type: textblock
38351 #: ../src/guestfs.pod:2129
38352 msgid ""
38353 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38354 "C<guestfs_next_private> or C<guestfs_set_private>."
38355 msgstr ""
38356
38357 #. type: textblock
38358 #: ../src/guestfs.pod:2135
38359 msgid ""
38360 "The following example code shows how to print all keys and data pointers "
38361 "that are associated with the handle C<g>:"
38362 msgstr ""
38363
38364 #. type: verbatim
38365 #: ../src/guestfs.pod:2138
38366 #, no-wrap
38367 msgid ""
38368 " const char *key;\n"
38369 " void *data = guestfs_first_private (g, &key);\n"
38370 " while (data != NULL)\n"
38371 "   {\n"
38372 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38373 "     data = guestfs_next_private (g, &key);\n"
38374 "   }\n"
38375 "\n"
38376 msgstr ""
38377
38378 #. type: textblock
38379 #: ../src/guestfs.pod:2146
38380 msgid ""
38381 "More commonly you are only interested in keys that begin with an application-"
38382 "specific prefix C<foo_>.  Modify the loop like so:"
38383 msgstr ""
38384
38385 #. type: verbatim
38386 #: ../src/guestfs.pod:2149
38387 #, no-wrap
38388 msgid ""
38389 " const char *key;\n"
38390 " void *data = guestfs_first_private (g, &key);\n"
38391 " while (data != NULL)\n"
38392 "   {\n"
38393 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38394 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38395 "     data = guestfs_next_private (g, &key);\n"
38396 "   }\n"
38397 "\n"
38398 msgstr ""
38399
38400 #. type: textblock
38401 #: ../src/guestfs.pod:2158
38402 msgid ""
38403 "If you need to modify keys while walking, then you have to jump back to the "
38404 "beginning of the loop.  For example, to delete all keys prefixed with "
38405 "C<foo_>:"
38406 msgstr ""
38407
38408 #. type: verbatim
38409 #: ../src/guestfs.pod:2162
38410 #, no-wrap
38411 msgid ""
38412 "  const char *key;\n"
38413 "  void *data;\n"
38414 " again:\n"
38415 "  data = guestfs_first_private (g, &key);\n"
38416 "  while (data != NULL)\n"
38417 "    {\n"
38418 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38419 "        {\n"
38420 "          guestfs_set_private (g, key, NULL);\n"
38421 "          /* note that 'key' pointer is now invalid, and so is\n"
38422 "             the internal iterator */\n"
38423 "          goto again;\n"
38424 "        }\n"
38425 "      data = guestfs_next_private (g, &key);\n"
38426 "    }\n"
38427 "\n"
38428 msgstr ""
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:2178
38432 msgid ""
38433 "Note that the above loop is guaranteed to terminate because the keys are "
38434 "being deleted, but other manipulations of keys within the loop might not "
38435 "terminate unless you also maintain an indication of which keys have been "
38436 "visited."
38437 msgstr ""
38438
38439 #. type: =head1
38440 #: ../src/guestfs.pod:2183
38441 msgid "SYSTEMTAP"
38442 msgstr ""
38443
38444 #. type: textblock
38445 #: ../src/guestfs.pod:2185
38446 msgid ""
38447 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38448 "true of any library, not just libguestfs.  However libguestfs also contains "
38449 "static markers to help in probing internal operations."
38450 msgstr ""
38451
38452 #. type: textblock
38453 #: ../src/guestfs.pod:2189
38454 msgid "You can list all the static markers by doing:"
38455 msgstr ""
38456
38457 #. type: verbatim
38458 #: ../src/guestfs.pod:2191
38459 #, no-wrap
38460 msgid ""
38461 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38462 "              .provider(\"guestfs\").mark(\"*\")'\n"
38463 "\n"
38464 msgstr ""
38465
38466 #. type: textblock
38467 #: ../src/guestfs.pod:2194
38468 msgid ""
38469 "B<Note:> These static markers are I<not> part of the stable API and may "
38470 "change in future versions."
38471 msgstr ""
38472
38473 #. type: =head2
38474 #: ../src/guestfs.pod:2197
38475 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:2199
38480 msgid ""
38481 "This script contains examples of displaying both the static markers and some "
38482 "ordinary C entry points:"
38483 msgstr ""
38484
38485 #. type: verbatim
38486 #: ../src/guestfs.pod:2202
38487 #, no-wrap
38488 msgid ""
38489 " global last;\n"
38490 " \n"
38491 msgstr ""
38492
38493 #. type: verbatim
38494 #: ../src/guestfs.pod:2204
38495 #, no-wrap
38496 msgid ""
38497 " function display_time () {\n"
38498 "       now = gettimeofday_us ();\n"
38499 "       delta = 0;\n"
38500 "       if (last > 0)\n"
38501 "             delta = now - last;\n"
38502 "       last = now;\n"
38503 " \n"
38504 msgstr ""
38505
38506 #. type: verbatim
38507 #: ../src/guestfs.pod:2211
38508 #, no-wrap
38509 msgid ""
38510 "       printf (\"%d (+%d):\", now, delta);\n"
38511 " }\n"
38512 " \n"
38513 msgstr ""
38514
38515 #. type: verbatim
38516 #: ../src/guestfs.pod:2214
38517 #, no-wrap
38518 msgid ""
38519 " probe begin {\n"
38520 "       last = 0;\n"
38521 "       printf (\"ready\\n\");\n"
38522 " }\n"
38523 " \n"
38524 msgstr ""
38525
38526 #. type: verbatim
38527 #: ../src/guestfs.pod:2219
38528 #, no-wrap
38529 msgid ""
38530 " /* Display all calls to static markers. */\n"
38531 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38532 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38533 "       display_time();\n"
38534 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38535 " }\n"
38536 " \n"
38537 msgstr ""
38538
38539 #. type: verbatim
38540 #: ../src/guestfs.pod:2226
38541 #, no-wrap
38542 msgid ""
38543 " /* Display all calls to guestfs_mkfs* functions. */\n"
38544 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38545 "           .function(\"guestfs_mkfs*\") ? {\n"
38546 "       display_time();\n"
38547 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38548 " }\n"
38549 "\n"
38550 msgstr ""
38551
38552 #. type: textblock
38553 #: ../src/guestfs.pod:2233
38554 msgid ""
38555 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38556 "program.  Note that you either have to be root, or you have to add yourself "
38557 "to several special stap groups.  Consult the systemtap documentation for "
38558 "more information."
38559 msgstr ""
38560
38561 #. type: verbatim
38562 #: ../src/guestfs.pod:2238
38563 #, no-wrap
38564 msgid ""
38565 " # stap /tmp/test.stap\n"
38566 " ready\n"
38567 "\n"
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../src/guestfs.pod:2241
38572 msgid "In another terminal, run a guestfish command such as this:"
38573 msgstr ""
38574
38575 #. type: textblock
38576 #: ../src/guestfs.pod:2245
38577 msgid "In the first terminal, stap trace output similar to this is shown:"
38578 msgstr ""
38579
38580 #. type: verbatim
38581 #: ../src/guestfs.pod:2247
38582 #, no-wrap
38583 msgid ""
38584 " 1318248056692655 (+0):\tlaunch_start\n"
38585 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38586 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38587 " 1318248056838059 (+19774):     launch_run_qemu\n"
38588 " 1318248061071167 (+4233108):   launch_end\n"
38589 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38590 "\n"
38591 msgstr ""
38592
38593 #. type: =end
38594 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38595 msgid "html"
38596 msgstr ""
38597
38598 #. type: textblock
38599 #: ../src/guestfs.pod:2256
38600 msgid ""
38601 "<!-- old anchor for the next section --> <a name="
38602 "\"state_machine_and_low_level_event_api\"/>"
38603 msgstr ""
38604
38605 #. type: =head1
38606 #: ../src/guestfs.pod:2261
38607 msgid "ARCHITECTURE"
38608 msgstr ""
38609
38610 #. type: textblock
38611 #: ../src/guestfs.pod:2263
38612 msgid ""
38613 "Internally, libguestfs is implemented by running an appliance (a special "
38614 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38615 "process of the main program."
38616 msgstr ""
38617
38618 #. type: verbatim
38619 #: ../src/guestfs.pod:2267
38620 #, no-wrap
38621 msgid ""
38622 "  ___________________\n"
38623 " /                   \\\n"
38624 " | main program      |\n"
38625 " |                   |\n"
38626 " |                   |           child process / appliance\n"
38627 " |                   |           __________________________\n"
38628 " |                   |          / qemu                     \\\n"
38629 " +-------------------+   RPC    |      +-----------------+ |\n"
38630 " | libguestfs     <--------------------> guestfsd        | |\n"
38631 " |                   |          |      +-----------------+ |\n"
38632 " \\___________________/          |      | Linux kernel    | |\n"
38633 "                                |      +--^--------------+ |\n"
38634 "                                \\_________|________________/\n"
38635 "                                          |\n"
38636 "                                   _______v______\n"
38637 "                                  /              \\\n"
38638 "                                  | Device or    |\n"
38639 "                                  | disk image   |\n"
38640 "                                  \\______________/\n"
38641 "\n"
38642 msgstr ""
38643
38644 #. type: textblock
38645 #: ../src/guestfs.pod:2287
38646 msgid ""
38647 "The library, linked to the main program, creates the child process and hence "
38648 "the appliance in the L</guestfs_launch> function."
38649 msgstr ""
38650
38651 #. type: textblock
38652 #: ../src/guestfs.pod:2290
38653 msgid ""
38654 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38655 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38656 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38657 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38658 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38659 "attached to the qemu process which translates device access by the "
38660 "appliance's Linux kernel into accesses to the image."
38661 msgstr ""
38662
38663 #. type: textblock
38664 #: ../src/guestfs.pod:2299
38665 msgid ""
38666 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38667 "Although the disk image you are attached to might also be used by some "
38668 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38669 "care if both libguestfs's qemu process and your virtual machine are trying "
38670 "to update the disk image at the same time, since these usually results in "
38671 "massive disk corruption)."
38672 msgstr ""
38673
38674 #. type: =head1
38675 #: ../src/guestfs.pod:2306
38676 msgid "STATE MACHINE"
38677 msgstr ""
38678
38679 #. type: textblock
38680 #: ../src/guestfs.pod:2308
38681 msgid "libguestfs uses a state machine to model the child process:"
38682 msgstr ""
38683
38684 #. type: verbatim
38685 #: ../src/guestfs.pod:2310
38686 #, no-wrap
38687 msgid ""
38688 "                         |\n"
38689 "                    guestfs_create\n"
38690 "                         |\n"
38691 "                         |\n"
38692 "                     ____V_____\n"
38693 "                    /          \\\n"
38694 "                    |  CONFIG  |\n"
38695 "                    \\__________/\n"
38696 "                     ^ ^   ^  \\\n"
38697 "                    /  |    \\  \\ guestfs_launch\n"
38698 "                   /   |    _\\__V______\n"
38699 "                  /    |   /           \\\n"
38700 "                 /     |   | LAUNCHING |\n"
38701 "                /      |   \\___________/\n"
38702 "               /       |       /\n"
38703 "              /        |  guestfs_launch\n"
38704 "             /         |     /\n"
38705 "    ______  /        __|____V\n"
38706 "   /      \\ ------> /        \\\n"
38707 "   | BUSY |         | READY  |\n"
38708 "   \\______/ <------ \\________/\n"
38709 "\n"
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2332
38714 msgid ""
38715 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38716 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38717 "(3) alternating between READY and BUSY as commands are issued to, and "
38718 "carried out by, the child process."
38719 msgstr ""
38720
38721 #. type: textblock
38722 #: ../src/guestfs.pod:2337
38723 msgid ""
38724 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38725 "asynchronously at any time (eg. due to some internal error), and that causes "
38726 "the state to transition back to CONFIG."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../src/guestfs.pod:2341
38731 msgid ""
38732 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38733 "issued when in the CONFIG state."
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:2344
38738 msgid ""
38739 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38740 "L</guestfs_launch> blocks until the child process is READY to accept "
38741 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38742 "moves the state from CONFIG to LAUNCHING while it is running."
38743 msgstr ""
38744
38745 #. type: textblock
38746 #: ../src/guestfs.pod:2350
38747 msgid ""
38748 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38749 "state.  These API calls block waiting for the command to be carried out (ie. "
38750 "the state to transition to BUSY and then back to READY).  There are no non-"
38751 "blocking versions, and no way to issue more than one command per handle at "
38752 "the same time."
38753 msgstr ""
38754
38755 #. type: textblock
38756 #: ../src/guestfs.pod:2356
38757 msgid ""
38758 "Finally, the child process sends asynchronous messages back to the main "
38759 "program, such as kernel log messages.  You can register a callback to "
38760 "receive these messages."
38761 msgstr ""
38762
38763 #. type: =head1
38764 #: ../src/guestfs.pod:2360
38765 msgid "INTERNALS"
38766 msgstr ""
38767
38768 #. type: =head2
38769 #: ../src/guestfs.pod:2362
38770 msgid "APPLIANCE BOOT PROCESS"
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../src/guestfs.pod:2364
38775 msgid ""
38776 "This process has evolved and continues to evolve.  The description here "
38777 "corresponds only to the current version of libguestfs and is provided for "
38778 "information only."
38779 msgstr ""
38780
38781 #. type: textblock
38782 #: ../src/guestfs.pod:2368
38783 msgid ""
38784 "In order to follow the stages involved below, enable libguestfs debugging "
38785 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38786 msgstr ""
38787
38788 #. type: =item
38789 #: ../src/guestfs.pod:2373
38790 msgid "Create the appliance"
38791 msgstr ""
38792
38793 #. type: textblock
38794 #: ../src/guestfs.pod:2375
38795 msgid ""
38796 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38797 "initrd and the appliance."
38798 msgstr ""
38799
38800 #. type: textblock
38801 #: ../src/guestfs.pod:2378
38802 msgid ""
38803 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38804 "directory if C<TMPDIR> is set)."
38805 msgstr ""
38806
38807 #. type: textblock
38808 #: ../src/guestfs.pod:2381
38809 msgid ""
38810 "For a complete description of how the appliance is created and cached, read "
38811 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38812 msgstr ""
38813
38814 #. type: =item
38815 #: ../src/guestfs.pod:2385
38816 msgid "Start qemu and boot the kernel"
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../src/guestfs.pod:2387
38821 msgid "qemu is invoked to boot the kernel."
38822 msgstr ""
38823
38824 #. type: =item
38825 #: ../src/guestfs.pod:2389
38826 msgid "Run the initrd"
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:2391
38831 msgid ""
38832 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38833 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38834 "order that the appliance itself can be mounted and started."
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../src/guestfs.pod:2395
38839 msgid ""
38840 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38841 "initrd>."
38842 msgstr ""
38843
38844 #. type: textblock
38845 #: ../src/guestfs.pod:2398
38846 msgid ""
38847 "When the initrd has started you will see messages showing that kernel "
38848 "modules are being loaded, similar to this:"
38849 msgstr ""
38850
38851 #. type: verbatim
38852 #: ../src/guestfs.pod:2401
38853 #, no-wrap
38854 msgid ""
38855 " febootstrap: ext2 mini initrd starting up\n"
38856 " febootstrap: mounting /sys\n"
38857 " febootstrap: internal insmod libcrc32c.ko\n"
38858 " febootstrap: internal insmod crc32c-intel.ko\n"
38859 "\n"
38860 msgstr ""
38861
38862 #. type: =item
38863 #: ../src/guestfs.pod:2406
38864 msgid "Find and mount the appliance device"
38865 msgstr ""
38866
38867 #. type: textblock
38868 #: ../src/guestfs.pod:2408
38869 msgid ""
38870 "The appliance is a sparse file containing an ext2 filesystem which contains "
38871 "a familiar (although reduced in size) Linux operating system.  It would "
38872 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38873 msgstr ""
38874
38875 #. type: textblock
38876 #: ../src/guestfs.pod:2412
38877 msgid ""
38878 "The regular disks being inspected by libguestfs are the first devices "
38879 "exposed by qemu (eg. as C</dev/vda>)."
38880 msgstr ""
38881
38882 #. type: textblock
38883 #: ../src/guestfs.pod:2415
38884 msgid ""
38885 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38886 "there was only one regular disk)."
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:2418
38891 msgid ""
38892 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38893 "and switch root into the appliance, and run C</init> from the appliance."
38894 msgstr ""
38895
38896 #. type: textblock
38897 #: ../src/guestfs.pod:2422
38898 msgid "If this works successfully you will see messages such as:"
38899 msgstr ""
38900
38901 #. type: verbatim
38902 #: ../src/guestfs.pod:2424
38903 #, no-wrap
38904 msgid ""
38905 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38906 " febootstrap: creating /dev/root as block special 252:16\n"
38907 " febootstrap: mounting new root on /root\n"
38908 " febootstrap: chroot\n"
38909 " Starting /init script ...\n"
38910 "\n"
38911 msgstr ""
38912
38913 #. type: textblock
38914 #: ../src/guestfs.pod:2430
38915 msgid ""
38916 "Note that C<Starting /init script ...> indicates that the appliance's init "
38917 "script is now running."
38918 msgstr ""
38919
38920 #. type: =item
38921 #: ../src/guestfs.pod:2433
38922 msgid "Initialize the appliance"
38923 msgstr ""
38924
38925 #. type: textblock
38926 #: ../src/guestfs.pod:2435
38927 msgid ""
38928 "The appliance itself now initializes itself.  This involves starting certain "
38929 "processes like C<udev>, possibly printing some debug information, and "
38930 "finally running the daemon (C<guestfsd>)."
38931 msgstr ""
38932
38933 #. type: =item
38934 #: ../src/guestfs.pod:2439
38935 msgid "The daemon"
38936 msgstr ""
38937
38938 #. type: textblock
38939 #: ../src/guestfs.pod:2441
38940 msgid ""
38941 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38942 "should see:"
38943 msgstr ""
38944
38945 #. type: verbatim
38946 #: ../src/guestfs.pod:2444
38947 #, no-wrap
38948 msgid ""
38949 " verbose daemon enabled\n"
38950 "\n"
38951 msgstr ""
38952
38953 #. type: textblock
38954 #: ../src/guestfs.pod:2446
38955 msgid ""
38956 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38957 "connected on the other end to the library."
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../src/guestfs.pod:2449
38962 msgid ""
38963 "The daemon connects to this port (and hence to the library) and sends a four "
38964 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38965 "protocol (see below)."
38966 msgstr ""
38967
38968 #. type: =head2
38969 #: ../src/guestfs.pod:2455
38970 msgid "COMMUNICATION PROTOCOL"
38971 msgstr ""
38972
38973 #. type: textblock
38974 #: ../src/guestfs.pod:2457
38975 msgid ""
38976 "Don't rely on using this protocol directly.  This section documents how it "
38977 "currently works, but it may change at any time."
38978 msgstr ""
38979
38980 #. type: textblock
38981 #: ../src/guestfs.pod:2460
38982 msgid ""
38983 "The protocol used to talk between the library and the daemon running inside "
38984 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38985 "1014, RFC 1832, RFC 4506)."
38986 msgstr ""
38987
38988 #. type: textblock
38989 #: ../src/guestfs.pod:2464
38990 msgid ""
38991 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38992 "this file is automatically generated)."
38993 msgstr ""
38994
38995 #. type: textblock
38996 #: ../src/guestfs.pod:2467
38997 msgid ""
38998 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38999 "and C<FileOut> parameters, which are handled with very simple request/reply "
39000 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39001 "parameters, which use the same request and reply messages, but they may also "
39002 "be followed by files sent using a chunked encoding."
39003 msgstr ""
39004
39005 #. type: =head3
39006 #: ../src/guestfs.pod:2474
39007 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:2476
39012 msgid "For ordinary functions, the request message is:"
39013 msgstr ""
39014
39015 #. type: verbatim
39016 #: ../src/guestfs.pod:2478
39017 #, no-wrap
39018 msgid ""
39019 " total length (header + arguments,\n"
39020 "      but not including the length word itself)\n"
39021 " struct guestfs_message_header (encoded as XDR)\n"
39022 " struct guestfs_<foo>_args (encoded as XDR)\n"
39023 "\n"
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:2483
39028 msgid ""
39029 "The total length field allows the daemon to allocate a fixed size buffer "
39030 "into which it slurps the rest of the message.  As a result, the total length "
39031 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39032 "effective size of any request is limited to somewhere under this size."
39033 msgstr ""
39034
39035 #. type: textblock
39036 #: ../src/guestfs.pod:2489
39037 msgid ""
39038 "Note also that many functions don't take any arguments, in which case the "
39039 "C<guestfs_I<foo>_args> is completely omitted."
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:2492
39044 msgid ""
39045 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39046 "receiver knows what type of args structure to expect, or none at all."
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../src/guestfs.pod:2496
39051 msgid ""
39052 "For functions that take optional arguments, the optional arguments are "
39053 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39054 "arguments.  A bitmask in the header indicates which optional arguments are "
39055 "meaningful.  The bitmask is also checked to see if it contains bits set "
39056 "which the daemon does not know about (eg. if more optional arguments were "
39057 "added in a later version of the library), and this causes the call to be "
39058 "rejected."
39059 msgstr ""
39060
39061 #. type: textblock
39062 #: ../src/guestfs.pod:2504
39063 msgid "The reply message for ordinary functions is:"
39064 msgstr ""
39065
39066 #. type: verbatim
39067 #: ../src/guestfs.pod:2506
39068 #, no-wrap
39069 msgid ""
39070 " total length (header + ret,\n"
39071 "      but not including the length word itself)\n"
39072 " struct guestfs_message_header (encoded as XDR)\n"
39073 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39074 "\n"
39075 msgstr ""
39076
39077 #. type: textblock
39078 #: ../src/guestfs.pod:2511
39079 msgid ""
39080 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39081 "functions that return no formal return values."
39082 msgstr ""
39083
39084 #. type: textblock
39085 #: ../src/guestfs.pod:2514
39086 msgid ""
39087 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39088 msgstr ""
39089
39090 #. type: textblock
39091 #: ../src/guestfs.pod:2517
39092 msgid ""
39093 "In the case of an error, a flag is set in the header, and the reply message "
39094 "is slightly changed:"
39095 msgstr ""
39096
39097 #. type: verbatim
39098 #: ../src/guestfs.pod:2520
39099 #, no-wrap
39100 msgid ""
39101 " total length (header + error,\n"
39102 "      but not including the length word itself)\n"
39103 " struct guestfs_message_header (encoded as XDR)\n"
39104 " struct guestfs_message_error (encoded as XDR)\n"
39105 "\n"
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../src/guestfs.pod:2525
39110 msgid ""
39111 "The C<guestfs_message_error> structure contains the error message as a "
39112 "string."
39113 msgstr ""
39114
39115 #. type: =head3
39116 #: ../src/guestfs.pod:2528
39117 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../src/guestfs.pod:2530
39122 msgid ""
39123 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39124 "The normal request message is sent (see above).  However this is followed by "
39125 "a sequence of file chunks."
39126 msgstr ""
39127
39128 #. type: verbatim
39129 #: ../src/guestfs.pod:2534
39130 #, no-wrap
39131 msgid ""
39132 " total length (header + arguments,\n"
39133 "      but not including the length word itself,\n"
39134 "      and not including the chunks)\n"
39135 " struct guestfs_message_header (encoded as XDR)\n"
39136 " struct guestfs_<foo>_args (encoded as XDR)\n"
39137 " sequence of chunks for FileIn param #0\n"
39138 " sequence of chunks for FileIn param #1 etc.\n"
39139 "\n"
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:2542
39144 msgid "The \"sequence of chunks\" is:"
39145 msgstr ""
39146
39147 #. type: verbatim
39148 #: ../src/guestfs.pod:2544
39149 #, no-wrap
39150 msgid ""
39151 " length of chunk (not including length word itself)\n"
39152 " struct guestfs_chunk (encoded as XDR)\n"
39153 " length of chunk\n"
39154 " struct guestfs_chunk (encoded as XDR)\n"
39155 "   ...\n"
39156 " length of chunk\n"
39157 " struct guestfs_chunk (with data.data_len == 0)\n"
39158 "\n"
39159 msgstr ""
39160
39161 #. type: textblock
39162 #: ../src/guestfs.pod:2552
39163 msgid ""
39164 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39165 "is set in the final chunk to indicate either successful completion or early "
39166 "cancellation."
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:2556
39171 msgid ""
39172 "At time of writing there are no functions that have more than one FileIn "
39173 "parameter.  However this is (theoretically) supported, by sending the "
39174 "sequence of chunks for each FileIn parameter one after another (from left to "
39175 "right)."
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../src/guestfs.pod:2561
39180 msgid ""
39181 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39182 "transfer.  The library does this by sending a chunk with a special flag set "
39183 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39184 "RPC, does I<not> send any reply, and goes back to reading the next request."
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../src/guestfs.pod:2567
39189 msgid ""
39190 "The daemon may also cancel.  It does this by writing a special word "
39191 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39192 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39193 "cancel chunk).  The special word is chosen so that even if cancellation "
39194 "happens right at the end of the transfer (after the library has finished "
39195 "writing and has started listening for the reply), the \"spurious\" cancel "
39196 "flag will not be confused with the reply message."
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../src/guestfs.pod:2576
39201 msgid ""
39202 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39203 "limit), and also files where the size is not known in advance (eg. from "
39204 "pipes or sockets).  However the chunks are rather small "
39205 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39206 "to keep much in memory."
39207 msgstr ""
39208
39209 #. type: =head3
39210 #: ../src/guestfs.pod:2582
39211 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39212 msgstr ""
39213
39214 #. type: textblock
39215 #: ../src/guestfs.pod:2584
39216 msgid ""
39217 "The protocol for FileOut parameters is exactly the same as for FileIn "
39218 "parameters, but with the roles of daemon and library reversed."
39219 msgstr ""
39220
39221 #. type: verbatim
39222 #: ../src/guestfs.pod:2587
39223 #, no-wrap
39224 msgid ""
39225 " total length (header + ret,\n"
39226 "      but not including the length word itself,\n"
39227 "      and not including the chunks)\n"
39228 " struct guestfs_message_header (encoded as XDR)\n"
39229 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39230 " sequence of chunks for FileOut param #0\n"
39231 " sequence of chunks for FileOut param #1 etc.\n"
39232 "\n"
39233 msgstr ""
39234
39235 #. type: =head3
39236 #: ../src/guestfs.pod:2595
39237 msgid "INITIAL MESSAGE"
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:2597
39242 msgid ""
39243 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39244 "which indicates that the guest and daemon is alive.  This is what L</"
39245 "guestfs_launch> waits for."
39246 msgstr ""
39247
39248 #. type: =head3
39249 #: ../src/guestfs.pod:2601
39250 msgid "PROGRESS NOTIFICATION MESSAGES"
39251 msgstr ""
39252
39253 #. type: textblock
39254 #: ../src/guestfs.pod:2603
39255 msgid ""
39256 "The daemon may send progress notification messages at any time.  These are "
39257 "distinguished by the normal length word being replaced by "
39258 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39259 msgstr ""
39260
39261 #. type: textblock
39262 #: ../src/guestfs.pod:2607
39263 msgid ""
39264 "The library turns them into progress callbacks (see L</"
39265 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39266 "if not."
39267 msgstr ""
39268
39269 #. type: textblock
39270 #: ../src/guestfs.pod:2611
39271 msgid ""
39272 "The daemon self-limits the frequency of progress messages it sends (see "
39273 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39274 "messages."
39275 msgstr ""
39276
39277 #. type: =head1
39278 #: ../src/guestfs.pod:2615
39279 msgid "LIBGUESTFS VERSION NUMBERS"
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:2617
39284 msgid ""
39285 "Since April 2010, libguestfs has started to make separate development and "
39286 "stable releases, along with corresponding branches in our git repository.  "
39287 "These separate releases can be identified by version number:"
39288 msgstr ""
39289
39290 #. type: verbatim
39291 #: ../src/guestfs.pod:2622
39292 #, no-wrap
39293 msgid ""
39294 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39295 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39296 "       |\n"
39297 "       v\n"
39298 " 1  .  3  .  5\n"
39299 " ^           ^\n"
39300 " |           |\n"
39301 " |           `-------- sub-version\n"
39302 " |\n"
39303 " `------ always '1' because we don't change the ABI\n"
39304 "\n"
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../src/guestfs.pod:2633
39309 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39310 msgstr ""
39311
39312 #. type: textblock
39313 #: ../src/guestfs.pod:2635
39314 msgid ""
39315 "As time passes we cherry pick fixes from the development branch and backport "
39316 "those into the stable branch, the effect being that the stable branch should "
39317 "get more stable and less buggy over time.  So the stable releases are ideal "
39318 "for people who don't need new features but would just like the software to "
39319 "work."
39320 msgstr ""
39321
39322 #. type: textblock
39323 #: ../src/guestfs.pod:2641
39324 msgid "Our criteria for backporting changes are:"
39325 msgstr ""
39326
39327 #. type: textblock
39328 #: ../src/guestfs.pod:2647
39329 msgid ""
39330 "Documentation changes which don't affect any code are backported unless the "
39331 "documentation refers to a future feature which is not in stable."
39332 msgstr ""
39333
39334 #. type: textblock
39335 #: ../src/guestfs.pod:2653
39336 msgid ""
39337 "Bug fixes which are not controversial, fix obvious problems, and have been "
39338 "well tested are backported."
39339 msgstr ""
39340
39341 #. type: textblock
39342 #: ../src/guestfs.pod:2658
39343 msgid ""
39344 "Simple rearrangements of code which shouldn't affect how it works get "
39345 "backported.  This is so that the code in the two branches doesn't get too "
39346 "far out of step, allowing us to backport future fixes more easily."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../src/guestfs.pod:2664
39351 msgid ""
39352 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39353 "exceptional case: the new feature is required in order to implement an "
39354 "important bug fix."
39355 msgstr ""
39356
39357 #. type: textblock
39358 #: ../src/guestfs.pod:2670
39359 msgid ""
39360 "A new stable branch starts when we think the new features in development are "
39361 "substantial and compelling enough over the current stable branch to warrant "
39362 "it.  When that happens we create new stable and development versions 1.N.0 "
39363 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39364 "stable at this point, but by backporting fixes from development, that branch "
39365 "will stabilize over time."
39366 msgstr ""
39367
39368 #. type: =head1
39369 #: ../src/guestfs.pod:2678
39370 msgid "EXTENDING LIBGUESTFS"
39371 msgstr ""
39372
39373 #. type: =head2
39374 #: ../src/guestfs.pod:2680
39375 msgid "ADDING A NEW API ACTION"
39376 msgstr ""
39377
39378 #. type: textblock
39379 #: ../src/guestfs.pod:2682
39380 msgid ""
39381 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39382 "documentation) are generated, and this makes it easy to extend the "
39383 "libguestfs API."
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../src/guestfs.pod:2686
39388 msgid "To add a new API action there are two changes:"
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../src/guestfs.pod:2692
39393 msgid ""
39394 "You need to add a description of the call (name, parameters, return type, "
39395 "tests, documentation) to C<generator/generator_actions.ml>."
39396 msgstr ""
39397
39398 #. type: textblock
39399 #: ../src/guestfs.pod:2695
39400 msgid ""
39401 "There are two sorts of API action, depending on whether the call goes "
39402 "through to the daemon in the appliance, or is serviced entirely by the "
39403 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39404 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39405 "an example of the latter, since a trace flag is maintained in the handle and "
39406 "all tracing is done on the library side."
39407 msgstr ""
39408
39409 #. type: textblock
39410 #: ../src/guestfs.pod:2703
39411 msgid ""
39412 "Most new actions are of the first type, and get added to the "
39413 "C<daemon_functions> list.  Each function has a unique procedure number used "
39414 "in the RPC protocol which is assigned to that action when we publish "
39415 "libguestfs and cannot be reused.  Take the latest procedure number and "
39416 "increment it."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2709
39421 msgid ""
39422 "For library-only actions of the second type, add to the "
39423 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39424 "library and do not travel over the RPC mechanism to the daemon, these "
39425 "functions do not need a procedure number, and so the procedure number is set "
39426 "to C<-1>."
39427 msgstr ""
39428
39429 #. type: textblock
39430 #: ../src/guestfs.pod:2717
39431 msgid "Implement the action (in C):"
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:2719
39436 msgid ""
39437 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39438 "C<daemon/> directory."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../src/guestfs.pod:2722
39443 msgid ""
39444 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39445 "(note: double underscore) in the C<src/> directory."
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../src/guestfs.pod:2725
39450 msgid "In either case, use another function as an example of what to do."
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../src/guestfs.pod:2729
39455 msgid "After making these changes, use C<make> to compile."
39456 msgstr ""
39457
39458 #. type: textblock
39459 #: ../src/guestfs.pod:2731
39460 msgid ""
39461 "Note that you don't need to implement the RPC, language bindings, manual "
39462 "pages or anything else.  It's all automatically generated from the OCaml "
39463 "description."
39464 msgstr ""
39465
39466 #. type: =head2
39467 #: ../src/guestfs.pod:2735
39468 msgid "ADDING TESTS FOR AN API ACTION"
39469 msgstr ""
39470
39471 #. type: textblock
39472 #: ../src/guestfs.pod:2737
39473 msgid ""
39474 "You can supply zero or as many tests as you want per API call.  The tests "
39475 "can either be added as part of the API description (C<generator/"
39476 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39477 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39478 "slower, so if possible use the first method."
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../src/guestfs.pod:2743
39483 msgid ""
39484 "The following describes the test environment used when you add an API test "
39485 "in C<generator_actions.ml>."
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../src/guestfs.pod:2746
39490 msgid "The test environment has 4 block devices:"
39491 msgstr ""
39492
39493 #. type: =item
39494 #: ../src/guestfs.pod:2750
39495 msgid "C</dev/sda> 500MB"
39496 msgstr ""
39497
39498 #. type: textblock
39499 #: ../src/guestfs.pod:2752
39500 msgid "General block device for testing."
39501 msgstr ""
39502
39503 #. type: =item
39504 #: ../src/guestfs.pod:2754
39505 msgid "C</dev/sdb> 50MB"
39506 msgstr ""
39507
39508 #. type: textblock
39509 #: ../src/guestfs.pod:2756
39510 msgid ""
39511 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39512 "operations."
39513 msgstr ""
39514
39515 #. type: =item
39516 #: ../src/guestfs.pod:2759
39517 msgid "C</dev/sdc> 10MB"
39518 msgstr ""
39519
39520 #. type: textblock
39521 #: ../src/guestfs.pod:2761
39522 msgid "Used in a few tests where two block devices are needed."
39523 msgstr ""
39524
39525 #. type: =item
39526 #: ../src/guestfs.pod:2763
39527 msgid "C</dev/sdd>"
39528 msgstr ""
39529
39530 #. type: textblock
39531 #: ../src/guestfs.pod:2765
39532 msgid "ISO with fixed content (see C<images/test.iso>)."
39533 msgstr ""
39534
39535 #. type: textblock
39536 #: ../src/guestfs.pod:2769
39537 msgid ""
39538 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39539 "appliance and block devices are reused between tests.  So don't try testing "
39540 "L</guestfs_kill_subprocess> :-x"
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:2773
39545 msgid ""
39546 "Each test starts with an initial scenario, selected using one of the "
39547 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39548 "initialize the disks mentioned above in a particular way as documented in "
39549 "C<generator_types.ml>.  You should not assume anything about the previous "
39550 "contents of other disks that are not initialized."
39551 msgstr ""
39552
39553 #. type: textblock
39554 #: ../src/guestfs.pod:2779
39555 msgid ""
39556 "You can add a prerequisite clause to any individual test.  This is a run-"
39557 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39558 "testing a command which might not work on all variations of libguestfs "
39559 "builds.  A test that has prerequisite of C<Always> means to run "
39560 "unconditionally."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:2785
39565 msgid ""
39566 "In addition, packagers can skip individual tests by setting environment "
39567 "variables before running C<make check>."
39568 msgstr ""
39569
39570 #. type: verbatim
39571 #: ../src/guestfs.pod:2788
39572 #, no-wrap
39573 msgid ""
39574 " SKIP_TEST_<CMD>_<NUM>=1\n"
39575 "\n"
39576 msgstr ""
39577
39578 #. type: textblock
39579 #: ../src/guestfs.pod:2790
39580 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39581 msgstr ""
39582
39583 #. type: textblock
39584 #: ../src/guestfs.pod:2792
39585 msgid "or:"
39586 msgstr ""
39587
39588 #. type: verbatim
39589 #: ../src/guestfs.pod:2794
39590 #, no-wrap
39591 msgid ""
39592 " SKIP_TEST_<CMD>=1\n"
39593 "\n"
39594 msgstr ""
39595
39596 #. type: textblock
39597 #: ../src/guestfs.pod:2796
39598 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:2798
39603 msgid "Packagers can run only certain tests by setting for example:"
39604 msgstr ""
39605
39606 #. type: verbatim
39607 #: ../src/guestfs.pod:2800
39608 #, no-wrap
39609 msgid ""
39610 " TEST_ONLY=\"vfs_type zerofree\"\n"
39611 "\n"
39612 msgstr ""
39613
39614 #. type: textblock
39615 #: ../src/guestfs.pod:2802
39616 msgid ""
39617 "See C<capitests/tests.c> for more details of how these environment variables "
39618 "work."
39619 msgstr ""
39620
39621 #. type: =head2
39622 #: ../src/guestfs.pod:2805
39623 msgid "DEBUGGING NEW API ACTIONS"
39624 msgstr ""
39625
39626 #. type: textblock
39627 #: ../src/guestfs.pod:2807
39628 msgid "Test new actions work before submitting them."
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../src/guestfs.pod:2809
39633 msgid "You can use guestfish to try out new commands."
39634 msgstr ""
39635
39636 #. type: textblock
39637 #: ../src/guestfs.pod:2811
39638 msgid ""
39639 "Debugging the daemon is a problem because it runs inside a minimal "
39640 "environment.  However you can fprintf messages in the daemon to stderr, and "
39641 "they will show up if you use C<guestfish -v>."
39642 msgstr ""
39643
39644 #. type: =head2
39645 #: ../src/guestfs.pod:2815
39646 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../src/guestfs.pod:2817
39651 msgid ""
39652 "Our C source code generally adheres to some basic code-formatting "
39653 "conventions.  The existing code base is not totally consistent on this "
39654 "front, but we do prefer that contributed code be formatted similarly.  In "
39655 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39656 "indentation level, and other than that, follow the K&R style."
39657 msgstr ""
39658
39659 #. type: textblock
39660 #: ../src/guestfs.pod:2823
39661 msgid ""
39662 "If you use Emacs, add the following to one of one of your start-up files (e."
39663 "g., ~/.emacs), to help ensure that you get indentation right:"
39664 msgstr ""
39665
39666 #. type: verbatim
39667 #: ../src/guestfs.pod:2826
39668 #, no-wrap
39669 msgid ""
39670 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39671 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39672 " (add-hook 'find-file-hook\n"
39673 "     '(lambda () (if (and buffer-file-name\n"
39674 "                          (string-match \"/libguestfs\\\\>\"\n"
39675 "                              (buffer-file-name))\n"
39676 "                          (not (string-equal mode-name \"Change Log\"))\n"
39677 "                          (not (string-equal mode-name \"Makefile\")))\n"
39678 "                     (setq indent-tabs-mode nil))))\n"
39679 " \n"
39680 msgstr ""
39681
39682 #. type: verbatim
39683 #: ../src/guestfs.pod:2836
39684 #, no-wrap
39685 msgid ""
39686 " ;;; When editing C sources in libguestfs, use this style.\n"
39687 " (defun libguestfs-c-mode ()\n"
39688 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39689 "   (interactive)\n"
39690 "   (c-set-style \"K&R\")\n"
39691 "   (setq c-indent-level 2)\n"
39692 "   (setq c-basic-offset 2))\n"
39693 " (add-hook 'c-mode-hook\n"
39694 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39695 "                               (buffer-file-name))\n"
39696 "                           (libguestfs-c-mode))))\n"
39697 "\n"
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../src/guestfs.pod:2848
39702 msgid "Enable warnings when compiling (and fix any problems this finds):"
39703 msgstr ""
39704
39705 #. type: verbatim
39706 #: ../src/guestfs.pod:2851
39707 #, no-wrap
39708 msgid ""
39709 " ./configure --enable-gcc-warnings\n"
39710 "\n"
39711 msgstr ""
39712
39713 #. type: textblock
39714 #: ../src/guestfs.pod:2853
39715 msgid "Useful targets are:"
39716 msgstr ""
39717
39718 #. type: verbatim
39719 #: ../src/guestfs.pod:2855
39720 #, no-wrap
39721 msgid ""
39722 " make syntax-check  # checks the syntax of the C code\n"
39723 " make check         # runs the test suite\n"
39724 "\n"
39725 msgstr ""
39726
39727 #. type: =head2
39728 #: ../src/guestfs.pod:2858
39729 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39730 msgstr ""
39731
39732 #. type: textblock
39733 #: ../src/guestfs.pod:2860
39734 msgid ""
39735 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39736 "which are used to do shell quoting."
39737 msgstr ""
39738
39739 #. type: =item
39740 #: ../src/guestfs.pod:2865
39741 msgid "%Q"
39742 msgstr ""
39743
39744 #. type: textblock
39745 #: ../src/guestfs.pod:2867
39746 msgid ""
39747 "Simple shell quoted string.  Any spaces or other shell characters are "
39748 "escaped for you."
39749 msgstr ""
39750
39751 #. type: =item
39752 #: ../src/guestfs.pod:2870
39753 msgid "%R"
39754 msgstr ""
39755
39756 #. type: textblock
39757 #: ../src/guestfs.pod:2872
39758 msgid ""
39759 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39760 "the sysroot."
39761 msgstr ""
39762
39763 #. type: verbatim
39764 #: ../src/guestfs.pod:2879
39765 #, no-wrap
39766 msgid ""
39767 " asprintf (&cmd, \"cat %R\", path);\n"
39768 "\n"
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../src/guestfs.pod:2881
39773 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../src/guestfs.pod:2883
39778 msgid ""
39779 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39780 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39781 "they are not passed via the shell (instead, straight to exec).  You probably "
39782 "want to use the C<sysroot_path()> function however."
39783 msgstr ""
39784
39785 #. type: =head2
39786 #: ../src/guestfs.pod:2889
39787 msgid "SUBMITTING YOUR NEW API ACTIONS"
39788 msgstr ""
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:2891
39792 msgid ""
39793 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39794 "libguestfs> and CC to L<rjones@redhat.com>."
39795 msgstr ""
39796
39797 #. type: =head2
39798 #: ../src/guestfs.pod:2895
39799 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39800 msgstr ""
39801
39802 #. type: textblock
39803 #: ../src/guestfs.pod:2897
39804 msgid "We support i18n (gettext anyhow) in the library."
39805 msgstr ""
39806
39807 #. type: textblock
39808 #: ../src/guestfs.pod:2899
39809 msgid ""
39810 "However many messages come from the daemon, and we don't translate those at "
39811 "the moment.  One reason is that the appliance generally has all locale files "
39812 "removed from it, because they take up a lot of space.  So we'd have to readd "
39813 "some of those, as well as copying our PO files into the appliance."
39814 msgstr ""
39815
39816 #. type: textblock
39817 #: ../src/guestfs.pod:2905
39818 msgid ""
39819 "Debugging messages are never translated, since they are intended for the "
39820 "programmers."
39821 msgstr ""
39822
39823 #. type: =head2
39824 #: ../src/guestfs.pod:2908
39825 msgid "SOURCE CODE SUBDIRECTORIES"
39826 msgstr ""
39827
39828 #. type: =item
39829 #: ../src/guestfs.pod:2912
39830 msgid "C<align>"
39831 msgstr ""
39832
39833 #. type: textblock
39834 #: ../src/guestfs.pod:2914
39835 msgid "L<virt-alignment-scan(1)> command and documentation."
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../src/guestfs.pod:2918
39840 msgid "The libguestfs appliance, build scripts and so on."
39841 msgstr ""
39842
39843 #. type: =item
39844 #: ../src/guestfs.pod:2920
39845 msgid "C<capitests>"
39846 msgstr ""
39847
39848 #. type: textblock
39849 #: ../src/guestfs.pod:2922
39850 msgid "Automated tests of the C API."
39851 msgstr ""
39852
39853 #. type: =item
39854 #: ../src/guestfs.pod:2924
39855 msgid "C<cat>"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../src/guestfs.pod:2926
39860 msgid ""
39861 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39862 "documentation."
39863 msgstr ""
39864
39865 #. type: =item
39866 #: ../src/guestfs.pod:2929
39867 msgid "C<caution>"
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../src/guestfs.pod:2931
39872 msgid ""
39873 "Safety and liveness tests of components that libguestfs depends upon (not of "
39874 "libguestfs itself).  Mainly this is for qemu and the kernel."
39875 msgstr ""
39876
39877 #. type: =item
39878 #: ../src/guestfs.pod:2934
39879 msgid "C<clone>"
39880 msgstr ""
39881
39882 #. type: textblock
39883 #: ../src/guestfs.pod:2936
39884 msgid ""
39885 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39886 "command and documentation."
39887 msgstr ""
39888
39889 #. type: =item
39890 #: ../src/guestfs.pod:2939
39891 msgid "C<contrib>"
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../src/guestfs.pod:2941
39896 msgid "Outside contributions, experimental parts."
39897 msgstr ""
39898
39899 #. type: =item
39900 #: ../src/guestfs.pod:2943
39901 msgid "C<daemon>"
39902 msgstr ""
39903
39904 #. type: textblock
39905 #: ../src/guestfs.pod:2945
39906 msgid ""
39907 "The daemon that runs inside the libguestfs appliance and carries out actions."
39908 msgstr ""
39909
39910 #. type: =item
39911 #: ../src/guestfs.pod:2948
39912 msgid "C<df>"
39913 msgstr ""
39914
39915 #. type: textblock
39916 #: ../src/guestfs.pod:2950
39917 msgid "L<virt-df(1)> command and documentation."
39918 msgstr ""
39919
39920 #. type: =item
39921 #: ../src/guestfs.pod:2952
39922 msgid "C<edit>"
39923 msgstr ""
39924
39925 #. type: textblock
39926 #: ../src/guestfs.pod:2954
39927 msgid "L<virt-edit(1)> command and documentation."
39928 msgstr ""
39929
39930 #. type: =item
39931 #: ../src/guestfs.pod:2956
39932 msgid "C<examples>"
39933 msgstr ""
39934
39935 #. type: textblock
39936 #: ../src/guestfs.pod:2958
39937 msgid "C API example code."
39938 msgstr ""
39939
39940 #. type: =item
39941 #: ../src/guestfs.pod:2960
39942 msgid "C<fish>"
39943 msgstr ""
39944
39945 #. type: textblock
39946 #: ../src/guestfs.pod:2962
39947 msgid ""
39948 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39949 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39950 "L<virt-tar-out(1)>."
39951 msgstr ""
39952
39953 #. type: =item
39954 #: ../src/guestfs.pod:2966
39955 msgid "C<fuse>"
39956 msgstr ""
39957
39958 #. type: textblock
39959 #: ../src/guestfs.pod:2968
39960 msgid ""
39961 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39962 msgstr ""
39963
39964 #. type: =item
39965 #: ../src/guestfs.pod:2970
39966 msgid "C<generator>"
39967 msgstr ""
39968
39969 #. type: textblock
39970 #: ../src/guestfs.pod:2972
39971 msgid ""
39972 "The crucially important generator, used to automatically generate large "
39973 "amounts of boilerplate C code for things like RPC and bindings."
39974 msgstr ""
39975
39976 #. type: =item
39977 #: ../src/guestfs.pod:2975
39978 msgid "C<images>"
39979 msgstr ""
39980
39981 #. type: textblock
39982 #: ../src/guestfs.pod:2977
39983 msgid "Files used by the test suite."
39984 msgstr ""
39985
39986 #. type: textblock
39987 #: ../src/guestfs.pod:2979
39988 msgid "Some \"phony\" guest images which we test against."
39989 msgstr ""
39990
39991 #. type: =item
39992 #: ../src/guestfs.pod:2981
39993 msgid "C<inspector>"
39994 msgstr ""
39995
39996 #. type: textblock
39997 #: ../src/guestfs.pod:2983
39998 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39999 msgstr ""
40000
40001 #. type: =item
40002 #: ../src/guestfs.pod:2985
40003 msgid "C<logo>"
40004 msgstr ""
40005
40006 #. type: textblock
40007 #: ../src/guestfs.pod:2987
40008 msgid "Logo used on the website.  The fish is called Arthur by the way."
40009 msgstr ""
40010
40011 #. type: =item
40012 #: ../src/guestfs.pod:2989
40013 msgid "C<m4>"
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:2991
40018 msgid "M4 macros used by autoconf."
40019 msgstr ""
40020
40021 #. type: =item
40022 #: ../src/guestfs.pod:2993
40023 msgid "C<po>"
40024 msgstr ""
40025
40026 #. type: textblock
40027 #: ../src/guestfs.pod:2995
40028 msgid "Translations of simple gettext strings."
40029 msgstr ""
40030
40031 #. type: =item
40032 #: ../src/guestfs.pod:2997
40033 msgid "C<po-docs>"
40034 msgstr ""
40035
40036 #. type: textblock
40037 #: ../src/guestfs.pod:2999
40038 msgid ""
40039 "The build infrastructure and PO files for translations of manpages and POD "
40040 "files.  Eventually this will be combined with the C<po> directory, but that "
40041 "is rather complicated."
40042 msgstr ""
40043
40044 #. type: =item
40045 #: ../src/guestfs.pod:3003
40046 msgid "C<regressions>"
40047 msgstr ""
40048
40049 #. type: textblock
40050 #: ../src/guestfs.pod:3005
40051 msgid "Regression tests."
40052 msgstr ""
40053
40054 #. type: =item
40055 #: ../src/guestfs.pod:3007
40056 msgid "C<rescue>"
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../src/guestfs.pod:3009
40061 msgid "L<virt-rescue(1)> command and documentation."
40062 msgstr ""
40063
40064 #. type: =item
40065 #: ../src/guestfs.pod:3011
40066 msgid "C<resize>"
40067 msgstr ""
40068
40069 #. type: textblock
40070 #: ../src/guestfs.pod:3013
40071 msgid "L<virt-resize(1)> command and documentation."
40072 msgstr ""
40073
40074 #. type: =item
40075 #: ../src/guestfs.pod:3015
40076 msgid "C<sparsify>"
40077 msgstr ""
40078
40079 #. type: textblock
40080 #: ../src/guestfs.pod:3017
40081 msgid "L<virt-sparsify(1)> command and documentation."
40082 msgstr ""
40083
40084 #. type: =item
40085 #: ../src/guestfs.pod:3019
40086 msgid "C<src>"
40087 msgstr ""
40088
40089 #. type: textblock
40090 #: ../src/guestfs.pod:3021
40091 msgid "Source code to the C library."
40092 msgstr ""
40093
40094 #. type: =item
40095 #: ../src/guestfs.pod:3023
40096 msgid "C<tools>"
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:3025
40101 msgid ""
40102 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40103 msgstr ""
40104
40105 #. type: =item
40106 #: ../src/guestfs.pod:3027
40107 msgid "C<test-tool>"
40108 msgstr ""
40109
40110 #. type: textblock
40111 #: ../src/guestfs.pod:3029
40112 msgid ""
40113 "Test tool for end users to test if their qemu/kernel combination will work "
40114 "with libguestfs."
40115 msgstr ""
40116
40117 #. type: =item
40118 #: ../src/guestfs.pod:3032
40119 msgid "C<csharp>"
40120 msgstr ""
40121
40122 #. type: =item
40123 #: ../src/guestfs.pod:3034
40124 msgid "C<erlang>"
40125 msgstr ""
40126
40127 #. type: =item
40128 #: ../src/guestfs.pod:3036
40129 msgid "C<haskell>"
40130 msgstr ""
40131
40132 #. type: =item
40133 #: ../src/guestfs.pod:3038
40134 msgid "C<java>"
40135 msgstr ""
40136
40137 #. type: =item
40138 #: ../src/guestfs.pod:3040
40139 msgid "C<ocaml>"
40140 msgstr ""
40141
40142 #. type: =item
40143 #: ../src/guestfs.pod:3042
40144 msgid "C<php>"
40145 msgstr ""
40146
40147 #. type: =item
40148 #: ../src/guestfs.pod:3044
40149 msgid "C<perl>"
40150 msgstr ""
40151
40152 #. type: =item
40153 #: ../src/guestfs.pod:3046
40154 msgid "C<python>"
40155 msgstr ""
40156
40157 #. type: =item
40158 #: ../src/guestfs.pod:3048
40159 msgid "C<ruby>"
40160 msgstr ""
40161
40162 #. type: textblock
40163 #: ../src/guestfs.pod:3050
40164 msgid "Language bindings."
40165 msgstr ""
40166
40167 #. type: =head2
40168 #: ../src/guestfs.pod:3054
40169 msgid "MAKING A STABLE RELEASE"
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../src/guestfs.pod:3056
40174 msgid ""
40175 "When we make a stable release, there are several steps documented here.  See "
40176 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40177 "branch policy."
40178 msgstr ""
40179
40180 #. type: textblock
40181 #: ../src/guestfs.pod:3064
40182 msgid ""
40183 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40184 msgstr ""
40185
40186 #. type: textblock
40187 #: ../src/guestfs.pod:3069
40188 msgid "Finalize RELEASE-NOTES."
40189 msgstr ""
40190
40191 #. type: textblock
40192 #: ../src/guestfs.pod:3073
40193 msgid "Update ROADMAP."
40194 msgstr ""
40195
40196 #. type: textblock
40197 #: ../src/guestfs.pod:3077
40198 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:3081
40203 msgid "Push and pull from Transifex."
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../src/guestfs.pod:3083
40208 msgid "Run:"
40209 msgstr ""
40210
40211 #. type: verbatim
40212 #: ../src/guestfs.pod:3085
40213 #, no-wrap
40214 msgid ""
40215 " tx push -s\n"
40216 "\n"
40217 msgstr ""
40218
40219 #. type: textblock
40220 #: ../src/guestfs.pod:3087
40221 msgid "to push the latest POT files to Transifex.  Then run:"
40222 msgstr ""
40223
40224 #. type: verbatim
40225 #: ../src/guestfs.pod:3089
40226 #, no-wrap
40227 msgid ""
40228 " ./tx-pull.sh\n"
40229 "\n"
40230 msgstr ""
40231
40232 #. type: textblock
40233 #: ../src/guestfs.pod:3091
40234 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40235 msgstr ""
40236
40237 #. type: textblock
40238 #: ../src/guestfs.pod:3095
40239 msgid ""
40240 "Create new stable and development directories under L<http://libguestfs.org/"
40241 "download>."
40242 msgstr ""
40243
40244 #. type: textblock
40245 #: ../src/guestfs.pod:3100
40246 msgid "Create the branch in git:"
40247 msgstr ""
40248
40249 #. type: verbatim
40250 #: ../src/guestfs.pod:3102
40251 #, no-wrap
40252 msgid ""
40253 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40254 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40255 " git branch stable-1.XX\n"
40256 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40257 "\n"
40258 msgstr ""
40259
40260 #. type: =head1
40261 #: ../src/guestfs.pod:3109
40262 msgid "LIMITS"
40263 msgstr ""
40264
40265 #. type: =head2
40266 #: ../src/guestfs.pod:3111
40267 msgid "PROTOCOL LIMITS"
40268 msgstr ""
40269
40270 #. type: textblock
40271 #: ../src/guestfs.pod:3113
40272 msgid ""
40273 "Internally libguestfs uses a message-based protocol to pass API calls and "
40274 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40275 "plenty more detail about this).  The maximum message size used by the "
40276 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40277 "aware of this limit.  The API calls which may be affected are individually "
40278 "documented, with a link back to this section of the documentation."
40279 msgstr ""
40280
40281 #. type: textblock
40282 #: ../src/guestfs.pod:3121
40283 msgid ""
40284 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40285 "a simple string.  Because this string is at some point internally encoded as "
40286 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40287 "the requested file is larger than this then you will get an error."
40288 msgstr ""
40289
40290 #. type: textblock
40291 #: ../src/guestfs.pod:3127
40292 msgid ""
40293 "In order to transfer large files into and out of the guest filesystem, you "
40294 "need to use particular calls that support this.  The sections L</UPLOADING> "
40295 "and L</DOWNLOADING> document how to do this."
40296 msgstr ""
40297
40298 #. type: textblock
40299 #: ../src/guestfs.pod:3131
40300 msgid ""
40301 "You might also consider mounting the disk image using our FUSE filesystem "
40302 "support (L<guestmount(1)>)."
40303 msgstr ""
40304
40305 #. type: =head2
40306 #: ../src/guestfs.pod:3134
40307 msgid "MAXIMUM NUMBER OF DISKS"
40308 msgstr ""
40309
40310 #. type: textblock
40311 #: ../src/guestfs.pod:3136
40312 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40313 msgstr ""
40314
40315 #. type: textblock
40316 #: ../src/guestfs.pod:3139
40317 msgid ""
40318 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40319 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40320 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40321 "purposes."
40322 msgstr ""
40323
40324 #. type: textblock
40325 #: ../src/guestfs.pod:3144
40326 msgid ""
40327 "We are working to substantially raise this limit in future versions but it "
40328 "requires complex changes to qemu."
40329 msgstr ""
40330
40331 #. type: textblock
40332 #: ../src/guestfs.pod:3147
40333 msgid ""
40334 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40335 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40336 "requires changes to qemu."
40337 msgstr ""
40338
40339 #. type: =head2
40340 #: ../src/guestfs.pod:3151
40341 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40342 msgstr ""
40343
40344 #. type: textblock
40345 #: ../src/guestfs.pod:3153
40346 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40347 msgstr ""
40348
40349 #. type: textblock
40350 #: ../src/guestfs.pod:3155
40351 msgid ""
40352 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40353 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40354 msgstr ""
40355
40356 #. type: textblock
40357 #: ../src/guestfs.pod:3158
40358 msgid ""
40359 "If you attach a disk with more than 15 partitions, the extra partitions are "
40360 "ignored by libguestfs."
40361 msgstr ""
40362
40363 #. type: =head2
40364 #: ../src/guestfs.pod:3161
40365 msgid "MAXIMUM SIZE OF A DISK"
40366 msgstr ""
40367
40368 #. type: textblock
40369 #: ../src/guestfs.pod:3163
40370 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40371 msgstr ""
40372
40373 #. type: textblock
40374 #: ../src/guestfs.pod:3165
40375 msgid ""
40376 "We have tested block devices up to 1 exabyte (2**60 or "
40377 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40378 "filesystem."
40379 msgstr ""
40380
40381 #. type: textblock
40382 #: ../src/guestfs.pod:3169
40383 msgid ""
40384 "Although libguestfs probably does not impose any limit, the underlying host "
40385 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40386 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40387 "TB).  If you store disk images as host logical volumes then you are limited "
40388 "by the maximum size of an LV."
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../src/guestfs.pod:3175
40393 msgid ""
40394 "For the hugest disk image files, we recommend using XFS on the host for "
40395 "storage."
40396 msgstr ""
40397
40398 #. type: =head2
40399 #: ../src/guestfs.pod:3178
40400 msgid "MAXIMUM SIZE OF A PARTITION"
40401 msgstr ""
40402
40403 #. type: textblock
40404 #: ../src/guestfs.pod:3180
40405 msgid ""
40406 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40407 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40408 "address a partition located beyond 2 TB on the disk."
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:3184
40413 msgid ""
40414 "It is recommended that you use GPT partitions on disks which are larger than "
40415 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40416 "which are theoretically larger than the largest disk we could support."
40417 msgstr ""
40418
40419 #. type: =head2
40420 #: ../src/guestfs.pod:3189
40421 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40422 msgstr ""
40423
40424 #. type: textblock
40425 #: ../src/guestfs.pod:3191
40426 msgid ""
40427 "This depends on the filesystem type.  libguestfs itself does not impose any "
40428 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40429 "what these limits are."
40430 msgstr ""
40431
40432 #. type: =head2
40433 #: ../src/guestfs.pod:3195
40434 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40435 msgstr ""
40436
40437 #. type: textblock
40438 #: ../src/guestfs.pod:3197
40439 msgid ""
40440 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40441 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40442 "uploads and downloads."
40443 msgstr ""
40444
40445 #. type: =head2
40446 #: ../src/guestfs.pod:3201
40447 msgid "INSPECTION LIMITS"
40448 msgstr ""
40449
40450 #. type: textblock
40451 #: ../src/guestfs.pod:3203
40452 msgid ""
40453 "The inspection code has several arbitrary limits on things like the size of "
40454 "Windows Registry hive it will read, and the length of product name.  These "
40455 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40456 "memory and disk space on the host, and should not be reached in practice.  "
40457 "See the source code for more information."
40458 msgstr ""
40459
40460 #. type: textblock
40461 #: ../src/guestfs.pod:3229
40462 msgid ""
40463 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40464 "effect as calling C<guestfs_set_verbose (g, 1)>."
40465 msgstr ""
40466
40467 #. type: textblock
40468 #: ../src/guestfs.pod:3241
40469 msgid ""
40470 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40471 "the discussion of paths in section L</PATH> above."
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../src/guestfs.pod:3250
40476 msgid "See also L</QEMU WRAPPERS> above."
40477 msgstr ""
40478
40479 #. type: textblock
40480 #: ../src/guestfs.pod:3254
40481 msgid ""
40482 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40483 "effect as calling C<guestfs_set_trace (g, 1)>."
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../src/guestfs.pod:3272
40488 msgid ""
40489 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40490 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40491 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40492 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40493 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40494 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40495 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40496 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40497 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40498 ">, L<http://libguestfs.org/>."
40499 msgstr ""
40500
40501 #. type: textblock
40502 #: ../src/guestfs.pod:3308
40503 msgid ""
40504 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40505 "(8)>, L<disktype(1)>."
40506 msgstr ""
40507
40508 #. type: =head1
40509 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
40510 #: ../tools/virt-win-reg.pl:772
40511 msgid "BUGS"
40512 msgstr ""
40513
40514 #. type: textblock
40515 #: ../src/guestfs.pod:3317
40516 msgid "To get a list of bugs against libguestfs use this link:"
40517 msgstr ""
40518
40519 #. type: textblock
40520 #: ../src/guestfs.pod:3319
40521 msgid ""
40522 "L<https://bugzilla.redhat.com/buglist.cgi?"
40523 "component=libguestfs&product=Virtualization+Tools>"
40524 msgstr ""
40525
40526 #. type: textblock
40527 #: ../src/guestfs.pod:3321
40528 msgid "To report a new bug against libguestfs use this link:"
40529 msgstr ""
40530
40531 #. type: textblock
40532 #: ../src/guestfs.pod:3323
40533 msgid ""
40534 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40535 "component=libguestfs&product=Virtualization+Tools>"
40536 msgstr ""
40537
40538 #. type: textblock
40539 #: ../src/guestfs.pod:3325
40540 msgid "When reporting a bug, please check:"
40541 msgstr ""
40542
40543 #. type: textblock
40544 #: ../src/guestfs.pod:3331
40545 msgid "That the bug hasn't been reported already."
40546 msgstr ""
40547
40548 #. type: textblock
40549 #: ../src/guestfs.pod:3335
40550 msgid "That you are testing a recent version."
40551 msgstr ""
40552
40553 #. type: textblock
40554 #: ../src/guestfs.pod:3339
40555 msgid "Describe the bug accurately, and give a way to reproduce it."
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../src/guestfs.pod:3343
40560 msgid ""
40561 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40562 "bug report."
40563 msgstr ""
40564
40565 #. type: textblock
40566 #: ../test-tool/libguestfs-test-tool.pod:5
40567 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40568 msgstr ""
40569
40570 #. type: verbatim
40571 #: ../test-tool/libguestfs-test-tool.pod:9
40572 #, no-wrap
40573 msgid ""
40574 " libguestfs-test-tool [--options]\n"
40575 "\n"
40576 msgstr ""
40577
40578 #. type: textblock
40579 #: ../test-tool/libguestfs-test-tool.pod:13
40580 msgid ""
40581 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40582 "to check basic libguestfs functionality is working.  This is needed because "
40583 "libguestfs occasionally breaks for reasons beyond our control: usually "
40584 "because of changes in the underlying qemu or kernel packages, or the host "
40585 "environment."
40586 msgstr ""
40587
40588 #. type: textblock
40589 #: ../test-tool/libguestfs-test-tool.pod:19
40590 msgid "If you suspect a problem in libguestfs, then just run:"
40591 msgstr ""
40592
40593 #. type: verbatim
40594 #: ../test-tool/libguestfs-test-tool.pod:21
40595 #, no-wrap
40596 msgid ""
40597 " libguestfs-test-tool\n"
40598 "\n"
40599 msgstr ""
40600
40601 #. type: textblock
40602 #: ../test-tool/libguestfs-test-tool.pod:23
40603 msgid "It will print lots of diagnostic messages."
40604 msgstr ""
40605
40606 #. type: textblock
40607 #: ../test-tool/libguestfs-test-tool.pod:25
40608 msgid "If it runs to completion successfully, you will see this near the end:"
40609 msgstr ""
40610
40611 #. type: verbatim
40612 #: ../test-tool/libguestfs-test-tool.pod:27
40613 #, no-wrap
40614 msgid ""
40615 " ===== TEST FINISHED OK =====\n"
40616 "\n"
40617 msgstr ""
40618
40619 #. type: textblock
40620 #: ../test-tool/libguestfs-test-tool.pod:29
40621 msgid "and the test tool will exit with code 0."
40622 msgstr ""
40623
40624 #. type: textblock
40625 #: ../test-tool/libguestfs-test-tool.pod:31
40626 msgid ""
40627 "If it fails (and/or exits with non-zero error code), please paste the "
40628 "I<complete, unedited> output of the test tool into a bug report.  More "
40629 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40630 "> website."
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../test-tool/libguestfs-test-tool.pod:42
40635 msgid "Display short usage information and exit."
40636 msgstr ""
40637
40638 #. type: =item
40639 #: ../test-tool/libguestfs-test-tool.pod:44
40640 msgid "B<--qemu qemu_binary>"
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../test-tool/libguestfs-test-tool.pod:46
40645 msgid ""
40646 "If you have downloaded another qemu binary, point this option at the full "
40647 "path of the binary to try it."
40648 msgstr ""
40649
40650 #. type: =item
40651 #: ../test-tool/libguestfs-test-tool.pod:49
40652 msgid "B<--qemudir qemu_source_dir>"
40653 msgstr ""
40654
40655 #. type: textblock
40656 #: ../test-tool/libguestfs-test-tool.pod:51
40657 msgid ""
40658 "If you have compiled qemu from source, point this option at the source "
40659 "directory to try it."
40660 msgstr ""
40661
40662 #. type: =item
40663 #: ../test-tool/libguestfs-test-tool.pod:54
40664 msgid "B<-t N>"
40665 msgstr ""
40666
40667 #. type: =item
40668 #: ../test-tool/libguestfs-test-tool.pod:56
40669 msgid "B<--timeout N>"
40670 msgstr ""
40671
40672 #. type: textblock
40673 #: ../test-tool/libguestfs-test-tool.pod:58
40674 msgid ""
40675 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40676 "minutes) which does not usually need to be adjusted."
40677 msgstr ""
40678
40679 #. type: =head1
40680 #: ../test-tool/libguestfs-test-tool.pod:63
40681 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40682 msgstr ""
40683
40684 #. type: textblock
40685 #: ../test-tool/libguestfs-test-tool.pod:65
40686 msgid ""
40687 "If you have compiled another version of qemu from source and would like to "
40688 "try that, then you can use the I<--qemudir> option to point to the qemu "
40689 "source directory."
40690 msgstr ""
40691
40692 #. type: textblock
40693 #: ../test-tool/libguestfs-test-tool.pod:69
40694 msgid ""
40695 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40696 "option to point to the binary."
40697 msgstr ""
40698
40699 #. type: textblock
40700 #: ../test-tool/libguestfs-test-tool.pod:72
40701 msgid ""
40702 "Note when using these options, you can ignore the business of qemu wrapper "
40703 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40704 "wrapper script for you if one is needed."
40705 msgstr ""
40706
40707 #. type: =head1
40708 #: ../test-tool/libguestfs-test-tool.pod:76
40709 msgid "TRYING OUT A DIFFERENT KERNEL"
40710 msgstr ""
40711
40712 #. type: textblock
40713 #: ../test-tool/libguestfs-test-tool.pod:78
40714 msgid ""
40715 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40716 "libguestfs tries.  You do this by setting the environment variables "
40717 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40718 msgstr ""
40719
40720 #. type: textblock
40721 #: ../test-tool/libguestfs-test-tool.pod:82
40722 msgid ""
40723 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40724 "information."
40725 msgstr ""
40726
40727 #. type: =head1
40728 #: ../test-tool/libguestfs-test-tool.pod:85
40729 msgid "SELF-DIAGNOSIS"
40730 msgstr ""
40731
40732 #. type: textblock
40733 #: ../test-tool/libguestfs-test-tool.pod:87
40734 msgid ""
40735 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40736 "produced by libguestfs-test-tool and/or possible errors."
40737 msgstr ""
40738
40739 #. type: textblock
40740 #: ../test-tool/libguestfs-test-tool.pod:92
40741 msgid ""
40742 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40743 "I<1> if there was an error."
40744 msgstr ""
40745
40746 #. type: textblock
40747 #: ../test-tool/libguestfs-test-tool.pod:97
40748 msgid ""
40749 "For the full list of environment variables which may affect libguestfs, "
40750 "please see the L<guestfs(3)> manual page."
40751 msgstr ""
40752
40753 #. type: textblock
40754 #: ../test-tool/libguestfs-test-tool.pod:102
40755 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40756 msgstr ""
40757
40758 #. type: textblock
40759 #: ../tools/virt-list-filesystems.pl:32
40760 msgid ""
40761 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40762 msgstr ""
40763
40764 #. type: verbatim
40765 #: ../tools/virt-list-filesystems.pl:36
40766 #, no-wrap
40767 msgid ""
40768 " virt-list-filesystems [--options] domname\n"
40769 "\n"
40770 msgstr ""
40771
40772 #. type: verbatim
40773 #: ../tools/virt-list-filesystems.pl:38
40774 #, no-wrap
40775 msgid ""
40776 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40777 "\n"
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40782 msgid ""
40783 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40784 "replacement."
40785 msgstr ""
40786
40787 #. type: textblock
40788 #: ../tools/virt-list-filesystems.pl:45
40789 msgid ""
40790 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40791 "are contained in a virtual machine or disk image."
40792 msgstr ""
40793
40794 #. type: textblock
40795 #: ../tools/virt-list-filesystems.pl:49
40796 msgid ""
40797 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40798 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40799 "> tool."
40800 msgstr ""
40801
40802 #. type: textblock
40803 #: ../tools/virt-list-filesystems.pl:112
40804 msgid ""
40805 "With this option, C<virt-list-filesystems> displays the type of each "
40806 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40807 msgstr ""
40808
40809 #. type: =item
40810 #: ../tools/virt-list-filesystems.pl:119
40811 msgid "B<-a>"
40812 msgstr ""
40813
40814 #. type: textblock
40815 #: ../tools/virt-list-filesystems.pl:123
40816 msgid ""
40817 "Normally we only show mountable filesystems.  If this option is given then "
40818 "swap devices are shown too."
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../tools/virt-list-filesystems.pl:197
40823 msgid ""
40824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40825 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40826 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40827 msgstr ""
40828
40829 #. type: textblock
40830 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40831 msgid "Copyright (C) 2009 Red Hat Inc."
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../tools/virt-list-partitions.pl:32
40836 msgid ""
40837 "virt-list-partitions - List partitions in a virtual machine or disk image"
40838 msgstr ""
40839
40840 #. type: verbatim
40841 #: ../tools/virt-list-partitions.pl:36
40842 #, no-wrap
40843 msgid ""
40844 " virt-list-partitions [--options] domname\n"
40845 "\n"
40846 msgstr ""
40847
40848 #. type: verbatim
40849 #: ../tools/virt-list-partitions.pl:38
40850 #, no-wrap
40851 msgid ""
40852 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40853 "\n"
40854 msgstr ""
40855
40856 #. type: textblock
40857 #: ../tools/virt-list-partitions.pl:45
40858 msgid ""
40859 "C<virt-list-partitions> is a command line tool to list the partitions that "
40860 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40861 "first step to using L<virt-resize(1)>."
40862 msgstr ""
40863
40864 #. type: textblock
40865 #: ../tools/virt-list-partitions.pl:50
40866 msgid ""
40867 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40868 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40869 "> tool."
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../tools/virt-list-partitions.pl:113
40874 msgid "Show sizes in human-readable form (eg. \"1G\")."
40875 msgstr ""
40876
40877 #. type: textblock
40878 #: ../tools/virt-list-partitions.pl:123
40879 msgid ""
40880 "With this option, C<virt-list-partitions> displays the type and size of each "
40881 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40882 msgstr ""
40883
40884 #. type: =item
40885 #: ../tools/virt-list-partitions.pl:130
40886 msgid "B<-t>"
40887 msgstr ""
40888
40889 #. type: =item
40890 #: ../tools/virt-list-partitions.pl:132
40891 msgid "B<--total>"
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../tools/virt-list-partitions.pl:134
40896 msgid ""
40897 "Display the total size of each block device (as a separate row or rows)."
40898 msgstr ""
40899
40900 #. type: textblock
40901 #: ../tools/virt-list-partitions.pl:267
40902 msgid ""
40903 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40904 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40905 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40906 msgstr ""
40907
40908 #. type: textblock
40909 #: ../tools/virt-list-partitions.pl:283
40910 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40911 msgstr ""
40912
40913 #. type: textblock
40914 #: ../tools/virt-make-fs.pl:37
40915 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40916 msgstr ""
40917
40918 #. type: verbatim
40919 #: ../tools/virt-make-fs.pl:41
40920 #, no-wrap
40921 msgid ""
40922 " virt-make-fs [--options] input.tar output.img\n"
40923 "\n"
40924 msgstr ""
40925
40926 #. type: verbatim
40927 #: ../tools/virt-make-fs.pl:43
40928 #, no-wrap
40929 msgid ""
40930 " virt-make-fs [--options] input.tar.gz output.img\n"
40931 "\n"
40932 msgstr ""
40933
40934 #. type: verbatim
40935 #: ../tools/virt-make-fs.pl:45
40936 #, no-wrap
40937 msgid ""
40938 " virt-make-fs [--options] directory output.img\n"
40939 "\n"
40940 msgstr ""
40941
40942 #. type: textblock
40943 #: ../tools/virt-make-fs.pl:49
40944 msgid ""
40945 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40946 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40947 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40948 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40949 "you want to attach these filesystems to existing virtual machines (eg. to "
40950 "import large amounts of read-only data to a VM)."
40951 msgstr ""
40952
40953 #. type: textblock
40954 #: ../tools/virt-make-fs.pl:57
40955 msgid "Basic usage is:"
40956 msgstr ""
40957
40958 #. type: verbatim
40959 #: ../tools/virt-make-fs.pl:59
40960 #, no-wrap
40961 msgid ""
40962 " virt-make-fs input output.img\n"
40963 "\n"
40964 msgstr ""
40965
40966 #. type: textblock
40967 #: ../tools/virt-make-fs.pl:61
40968 msgid ""
40969 "where C<input> is either a directory containing files that you want to add, "
40970 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40971 "C<output.img> is a disk image.  The input type is detected automatically.  "
40972 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40973 "extra flags (see L</OPTIONS> below)."
40974 msgstr ""
40975
40976 #. type: =head2
40977 #: ../tools/virt-make-fs.pl:67
40978 msgid "FILESYSTEM TYPE"
40979 msgstr ""
40980
40981 #. type: textblock
40982 #: ../tools/virt-make-fs.pl:69
40983 msgid ""
40984 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40985 "libguestfs supports can be used (but I<not> read-only formats like "
40986 "ISO9660).  Here are some of the more common choices:"
40987 msgstr ""
40988
40989 #. type: =item
40990 #: ../tools/virt-make-fs.pl:75
40991 msgid "I<ext3>"
40992 msgstr ""
40993
40994 #. type: textblock
40995 #: ../tools/virt-make-fs.pl:77
40996 msgid ""
40997 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40998 "you are not going to use the filesystem in a way that requires the journal, "
40999 "then this is just wasted overhead."
41000 msgstr ""
41001
41002 #. type: =item
41003 #: ../tools/virt-make-fs.pl:81
41004 msgid "I<ntfs> or I<vfat>"
41005 msgstr ""
41006
41007 #. type: textblock
41008 #: ../tools/virt-make-fs.pl:83
41009 msgid "Useful if exporting data to a Windows guest."
41010 msgstr ""
41011
41012 #. type: textblock
41013 #: ../tools/virt-make-fs.pl:85
41014 msgid ""
41015 "I<Note for vfat>: The tar archive or local directory must only contain files "
41016 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41017 "program running within libguestfs is unable to change the ownership of non-"
41018 "root files, since vfat itself does not support this."
41019 msgstr ""
41020
41021 #. type: =item
41022 #: ../tools/virt-make-fs.pl:90
41023 msgid "I<minix>"
41024 msgstr ""
41025
41026 #. type: textblock
41027 #: ../tools/virt-make-fs.pl:92
41028 msgid ""
41029 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41030 "total filesystem size."
41031 msgstr ""
41032
41033 #. type: =head3
41034 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
41035 #: ../tools/virt-make-fs.pl:149
41036 msgid "EXAMPLE"
41037 msgstr ""
41038
41039 #. type: verbatim
41040 #: ../tools/virt-make-fs.pl:99
41041 #, no-wrap
41042 msgid ""
41043 " virt-make-fs --type=minix input minixfs.img\n"
41044 "\n"
41045 msgstr ""
41046
41047 #. type: =head2
41048 #: ../tools/virt-make-fs.pl:101
41049 msgid "TO PARTITION OR NOT TO PARTITION"
41050 msgstr ""
41051
41052 #. type: textblock
41053 #: ../tools/virt-make-fs.pl:103
41054 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41055 msgstr ""
41056
41057 #. type: textblock
41058 #: ../tools/virt-make-fs.pl:105
41059 msgid ""
41060 "Adding a partition can make the disk image more compatible with certain "
41061 "virtualized operating systems which don't expect to see a filesystem "
41062 "directly located on a block device (Linux doesn't care and will happily "
41063 "handle both types)."
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../tools/virt-make-fs.pl:110
41068 msgid ""
41069 "On the other hand, if you have a partition table then the output image is no "
41070 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41071 "directly on a partitioned disk image.  (However libguestfs tools such as "
41072 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../tools/virt-make-fs.pl:118
41077 msgid "Add an MBR partition:"
41078 msgstr ""
41079
41080 #. type: verbatim
41081 #: ../tools/virt-make-fs.pl:120
41082 #, no-wrap
41083 msgid ""
41084 " virt-make-fs --partition -- input disk.img\n"
41085 "\n"
41086 msgstr ""
41087
41088 #. type: textblock
41089 #: ../tools/virt-make-fs.pl:122
41090 msgid ""
41091 "If the output disk image could be terabyte-sized or larger, it's better to "
41092 "use an EFI/GPT-compatible partition table:"
41093 msgstr ""
41094
41095 #. type: verbatim
41096 #: ../tools/virt-make-fs.pl:125
41097 #, no-wrap
41098 msgid ""
41099 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41100 "\n"
41101 msgstr ""
41102
41103 #. type: =head2
41104 #: ../tools/virt-make-fs.pl:127
41105 msgid "EXTRA SPACE"
41106 msgstr ""
41107
41108 #. type: textblock
41109 #: ../tools/virt-make-fs.pl:129
41110 msgid ""
41111 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41112 "the files that it contains, but might have extra space.  Depending on how "
41113 "you are going to use the output, you might think this extra space is wasted "
41114 "and want to minimize it, or you might want to leave space so that more files "
41115 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41116 "but you can use the I<--size> flag to leave space in the filesystem if you "
41117 "want it."
41118 msgstr ""
41119
41120 #. type: textblock
41121 #: ../tools/virt-make-fs.pl:137
41122 msgid ""
41123 "An alternative way to leave extra space but not make the output image any "
41124 "bigger is to use an alternative disk image format (instead of the default "
41125 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41126 "image format (check your hypervisor supports this before using it).  This "
41127 "allows you to choose a large I<--size> but the extra space won't actually be "
41128 "allocated in the image until you try to store something in it."
41129 msgstr ""
41130
41131 #. type: textblock
41132 #: ../tools/virt-make-fs.pl:145
41133 msgid ""
41134 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41135 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41136 "to build another image from scratch."
41137 msgstr ""
41138
41139 #. type: verbatim
41140 #: ../tools/virt-make-fs.pl:151
41141 #, no-wrap
41142 msgid ""
41143 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41144 "\n"
41145 msgstr ""
41146
41147 #. type: textblock
41148 #: ../tools/virt-make-fs.pl:179
41149 msgid "Enable debugging information."
41150 msgstr ""
41151
41152 #. type: =item
41153 #: ../tools/virt-make-fs.pl:185
41154 msgid "B<--size=E<lt>NE<gt>>"
41155 msgstr ""
41156
41157 #. type: =item
41158 #: ../tools/virt-make-fs.pl:187
41159 msgid "B<--size=+E<lt>NE<gt>>"
41160 msgstr ""
41161
41162 #. type: =item
41163 #: ../tools/virt-make-fs.pl:189
41164 msgid "B<-s E<lt>NE<gt>>"
41165 msgstr ""
41166
41167 #. type: =item
41168 #: ../tools/virt-make-fs.pl:191
41169 msgid "B<-s +E<lt>NE<gt>>"
41170 msgstr ""
41171
41172 #. type: textblock
41173 #: ../tools/virt-make-fs.pl:193
41174 msgid ""
41175 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41176 msgstr ""
41177
41178 #. type: textblock
41179 #: ../tools/virt-make-fs.pl:196
41180 msgid ""
41181 "If this option is I<not> given, then the output image will be just large "
41182 "enough to contain all the files, with not much wasted space."
41183 msgstr ""
41184
41185 #. type: textblock
41186 #: ../tools/virt-make-fs.pl:199
41187 msgid ""
41188 "To choose a fixed size output disk, specify an absolute number followed by b/"
41189 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41190 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41191 "files, else you will get an error."
41192 msgstr ""
41193
41194 #. type: textblock
41195 #: ../tools/virt-make-fs.pl:204
41196 msgid ""
41197 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41198 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41199 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41200 "the input files, and (approximately) an extra 200 MB free space."
41201 msgstr ""
41202
41203 #. type: textblock
41204 #: ../tools/virt-make-fs.pl:210
41205 msgid ""
41206 "Note that virt-make-fs estimates free space, and therefore will not produce "
41207 "filesystems containing precisely the free space requested.  (It is much more "
41208 "expensive and time-consuming to produce a filesystem which has precisely the "
41209 "desired free space)."
41210 msgstr ""
41211
41212 #. type: =item
41213 #: ../tools/virt-make-fs.pl:219
41214 msgid "B<--format=E<lt>fmtE<gt>>"
41215 msgstr ""
41216
41217 #. type: =item
41218 #: ../tools/virt-make-fs.pl:221
41219 msgid "B<-F E<lt>fmtE<gt>>"
41220 msgstr ""
41221
41222 #. type: textblock
41223 #: ../tools/virt-make-fs.pl:223
41224 msgid "Choose the output disk image format."
41225 msgstr ""
41226
41227 #. type: textblock
41228 #: ../tools/virt-make-fs.pl:225
41229 msgid "The default is C<raw> (raw sparse disk image)."
41230 msgstr ""
41231
41232 #. type: textblock
41233 #: ../tools/virt-make-fs.pl:227
41234 msgid ""
41235 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41236 "that would really make sense here is C<qcow2>."
41237 msgstr ""
41238
41239 #. type: =item
41240 #: ../tools/virt-make-fs.pl:234
41241 msgid "B<--type=E<lt>fsE<gt>>"
41242 msgstr ""
41243
41244 #. type: =item
41245 #: ../tools/virt-make-fs.pl:236
41246 msgid "B<-t E<lt>fsE<gt>>"
41247 msgstr ""
41248
41249 #. type: textblock
41250 #: ../tools/virt-make-fs.pl:238
41251 msgid "Choose the output filesystem type."
41252 msgstr ""
41253
41254 #. type: textblock
41255 #: ../tools/virt-make-fs.pl:240
41256 msgid "The default is C<ext2>."
41257 msgstr ""
41258
41259 #. type: textblock
41260 #: ../tools/virt-make-fs.pl:242
41261 msgid ""
41262 "Any filesystem which is supported read-write by libguestfs can be used here."
41263 msgstr ""
41264
41265 #. type: =item
41266 #: ../tools/virt-make-fs.pl:249
41267 msgid "B<--partition>"
41268 msgstr ""
41269
41270 #. type: =item
41271 #: ../tools/virt-make-fs.pl:251
41272 msgid "B<--partition=E<lt>parttypeE<gt>>"
41273 msgstr ""
41274
41275 #. type: textblock
41276 #: ../tools/virt-make-fs.pl:253
41277 msgid ""
41278 "If specified, this flag adds an MBR partition table to the output disk image."
41279 msgstr ""
41280
41281 #. type: textblock
41282 #: ../tools/virt-make-fs.pl:256
41283 msgid ""
41284 "You can change the partition table type, eg. I<--partition=gpt> for large "
41285 "disks."
41286 msgstr ""
41287
41288 #. type: textblock
41289 #: ../tools/virt-make-fs.pl:259
41290 msgid ""
41291 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41292 "might consider the next parameter to be the partition type.  For example:"
41293 msgstr ""
41294
41295 #. type: verbatim
41296 #: ../tools/virt-make-fs.pl:263
41297 #, no-wrap
41298 msgid ""
41299 " virt-make-fs --partition input.tar output.img\n"
41300 "\n"
41301 msgstr ""
41302
41303 #. type: textblock
41304 #: ../tools/virt-make-fs.pl:265
41305 msgid ""
41306 "would cause virt-make-fs to think you wanted to use a partition type of "
41307 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41308 "dash) between options and the input and output arguments:"
41309 msgstr ""
41310
41311 #. type: verbatim
41312 #: ../tools/virt-make-fs.pl:269
41313 #, no-wrap
41314 msgid ""
41315 " virt-make-fs --partition -- input.tar output.img\n"
41316 "\n"
41317 msgstr ""
41318
41319 #. type: textblock
41320 #: ../tools/virt-make-fs.pl:271
41321 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41322 msgstr ""
41323
41324 #. type: textblock
41325 #: ../tools/virt-make-fs.pl:559
41326 msgid ""
41327 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41328 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41329 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41330 msgstr ""
41331
41332 #. type: textblock
41333 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41334 msgid ""
41335 "When reporting bugs, please enable debugging and capture the I<complete> "
41336 "output:"
41337 msgstr ""
41338
41339 #. type: verbatim
41340 #: ../tools/virt-make-fs.pl:576
41341 #, no-wrap
41342 msgid ""
41343 " export LIBGUESTFS_DEBUG=1\n"
41344 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41345 "\n"
41346 msgstr ""
41347
41348 #. type: textblock
41349 #: ../tools/virt-make-fs.pl:579
41350 msgid ""
41351 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41352 "redhat.com/>"
41353 msgstr ""
41354
41355 #. type: textblock
41356 #: ../tools/virt-tar.pl:33
41357 msgid "virt-tar - Extract or upload files to a virtual machine"
41358 msgstr ""
41359
41360 #. type: verbatim
41361 #: ../tools/virt-tar.pl:37
41362 #, no-wrap
41363 msgid ""
41364 " virt-tar [--options] -x domname directory tarball\n"
41365 "\n"
41366 msgstr ""
41367
41368 #. type: verbatim
41369 #: ../tools/virt-tar.pl:39
41370 #, no-wrap
41371 msgid ""
41372 " virt-tar [--options] -u domname tarball directory\n"
41373 "\n"
41374 msgstr ""
41375
41376 #. type: verbatim
41377 #: ../tools/virt-tar.pl:41
41378 #, no-wrap
41379 msgid ""
41380 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41381 "\n"
41382 msgstr ""
41383
41384 #. type: verbatim
41385 #: ../tools/virt-tar.pl:43
41386 #, no-wrap
41387 msgid ""
41388 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41389 "\n"
41390 msgstr ""
41391
41392 #. type: =head2
41393 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41394 msgid "NOTE"
41395 msgstr ""
41396
41397 #. type: textblock
41398 #: ../tools/virt-tar.pl:47
41399 msgid ""
41400 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41401 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41402 msgstr ""
41403
41404 #. type: textblock
41405 #: ../tools/virt-tar.pl:52
41406 msgid "Download C</home> from the VM into a local tarball:"
41407 msgstr ""
41408
41409 #. type: verbatim
41410 #: ../tools/virt-tar.pl:54
41411 #, no-wrap
41412 msgid ""
41413 " virt-tar -x domname /home home.tar\n"
41414 "\n"
41415 msgstr ""
41416
41417 #. type: verbatim
41418 #: ../tools/virt-tar.pl:56
41419 #, no-wrap
41420 msgid ""
41421 " virt-tar -zx domname /home home.tar.gz\n"
41422 "\n"
41423 msgstr ""
41424
41425 #. type: textblock
41426 #: ../tools/virt-tar.pl:58
41427 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41428 msgstr ""
41429
41430 #. type: verbatim
41431 #: ../tools/virt-tar.pl:60
41432 #, no-wrap
41433 msgid ""
41434 " virt-tar -u domname uploadstuff.tar /tmp\n"
41435 "\n"
41436 msgstr ""
41437
41438 #. type: verbatim
41439 #: ../tools/virt-tar.pl:62
41440 #, no-wrap
41441 msgid ""
41442 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41443 "\n"
41444 msgstr ""
41445
41446 #. type: textblock
41447 #: ../tools/virt-tar.pl:66
41448 msgid ""
41449 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41450 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41451 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41452 msgstr ""
41453
41454 #. type: textblock
41455 #: ../tools/virt-tar.pl:71
41456 msgid ""
41457 "You can use I<-x> (extract) on live virtual machines, but you might get "
41458 "inconsistent results or errors if there is filesystem activity inside the "
41459 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41460 "work, but the only way to guarantee consistent results is if the virtual "
41461 "machine is shut down."
41462 msgstr ""
41463
41464 #. type: textblock
41465 #: ../tools/virt-tar.pl:79
41466 msgid ""
41467 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41468 "parts of a guest filesystem.  There are many possibilities: making backups, "
41469 "uploading data files, snooping on guest activity, fixing or customizing "
41470 "guests, etc."
41471 msgstr ""
41472
41473 #. type: textblock
41474 #: ../tools/virt-tar.pl:84
41475 msgid ""
41476 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41477 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41478 "should look at the L<guestfish(1)> tool."
41479 msgstr ""
41480
41481 #. type: textblock
41482 #: ../tools/virt-tar.pl:88
41483 msgid ""
41484 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41485 "its contents (recursively) from the virtual machine into a local tarball.  "
41486 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41487 "virtual machine.  You cannot use these two options together."
41488 msgstr ""
41489
41490 #. type: textblock
41491 #: ../tools/virt-tar.pl:94
41492 msgid ""
41493 "In addition, you may need to use the I<-z> (gZip) option to enable "
41494 "compression.  When uploading, you have to specify I<-z> if the upload file "
41495 "is compressed because virt-tar won't detect this on its own."
41496 msgstr ""
41497
41498 #. type: textblock
41499 #: ../tools/virt-tar.pl:98
41500 msgid ""
41501 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41502 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41503 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41504 "the L<libguestfs(3)> API)."
41505 msgstr ""
41506
41507 #. type: =item
41508 #: ../tools/virt-tar.pl:160
41509 msgid "B<--extract>"
41510 msgstr ""
41511
41512 #. type: =item
41513 #: ../tools/virt-tar.pl:162
41514 msgid "B<--download>"
41515 msgstr ""
41516
41517 #. type: =item
41518 #: ../tools/virt-tar.pl:164
41519 msgid "B<-u>"
41520 msgstr ""
41521
41522 #. type: =item
41523 #: ../tools/virt-tar.pl:166
41524 msgid "B<--upload>"
41525 msgstr ""
41526
41527 #. type: textblock
41528 #: ../tools/virt-tar.pl:168
41529 msgid ""
41530 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41531 "local tarball."
41532 msgstr ""
41533
41534 #. type: textblock
41535 #: ../tools/virt-tar.pl:171
41536 msgid ""
41537 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41538 "Please read the L</WARNING> section above before using this option."
41539 msgstr ""
41540
41541 #. type: textblock
41542 #: ../tools/virt-tar.pl:175
41543 msgid "You must specify exactly one of these options."
41544 msgstr ""
41545
41546 #. type: =item
41547 #: ../tools/virt-tar.pl:181
41548 msgid "B<-z>"
41549 msgstr ""
41550
41551 #. type: =item
41552 #: ../tools/virt-tar.pl:183
41553 msgid "B<--gzip>"
41554 msgstr ""
41555
41556 #. type: textblock
41557 #: ../tools/virt-tar.pl:185
41558 msgid "Specify that the input or output tarball is gzip-compressed."
41559 msgstr ""
41560
41561 #. type: textblock
41562 #: ../tools/virt-tar.pl:298
41563 msgid ""
41564 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41565 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41566 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41567 "org/>."
41568 msgstr ""
41569
41570 #. type: textblock
41571 #: ../tools/virt-win-reg.pl:37
41572 msgid ""
41573 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41574 msgstr ""
41575
41576 #. type: verbatim
41577 #: ../tools/virt-win-reg.pl:41
41578 #, no-wrap
41579 msgid ""
41580 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41581 "\n"
41582 msgstr ""
41583
41584 #. type: verbatim
41585 #: ../tools/virt-win-reg.pl:43
41586 #, no-wrap
41587 msgid ""
41588 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41589 "\n"
41590 msgstr ""
41591
41592 #. type: verbatim
41593 #: ../tools/virt-win-reg.pl:45
41594 #, no-wrap
41595 msgid ""
41596 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41597 "\n"
41598 msgstr ""
41599
41600 #. type: verbatim
41601 #: ../tools/virt-win-reg.pl:47
41602 #, no-wrap
41603 msgid ""
41604 " virt-win-reg --merge domname [input.reg ...]\n"
41605 "\n"
41606 msgstr ""
41607
41608 #. type: verbatim
41609 #: ../tools/virt-win-reg.pl:49
41610 #, no-wrap
41611 msgid ""
41612 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41613 "\n"
41614 msgstr ""
41615
41616 #. type: textblock
41617 #: ../tools/virt-win-reg.pl:53
41618 msgid ""
41619 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41620 "virtual machines.  If you do this, you I<will> get irreversible disk "
41621 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41622 "but doesn't catch all cases."
41623 msgstr ""
41624
41625 #. type: textblock
41626 #: ../tools/virt-win-reg.pl:58
41627 msgid ""
41628 "Modifying the Windows Registry is an inherently risky operation.  The format "
41629 "is deliberately obscure and undocumented, and Registry changes can leave the "
41630 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41631 "you have a reliable backup first."
41632 msgstr ""
41633
41634 #. type: textblock
41635 #: ../tools/virt-win-reg.pl:65
41636 msgid ""
41637 "This program can export and merge Windows Registry entries from a Windows "
41638 "guest."
41639 msgstr ""
41640
41641 #. type: textblock
41642 #: ../tools/virt-win-reg.pl:68
41643 msgid ""
41644 "The first parameter is the libvirt guest name or the raw disk image of a "
41645 "Windows guest."
41646 msgstr ""
41647
41648 #. type: textblock
41649 #: ../tools/virt-win-reg.pl:71
41650 msgid ""
41651 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41652 "exported (recursively).  For example:"
41653 msgstr ""
41654
41655 #. type: verbatim
41656 #: ../tools/virt-win-reg.pl:74
41657 #, no-wrap
41658 msgid ""
41659 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41660 "\n"
41661 msgstr ""
41662
41663 #. type: textblock
41664 #: ../tools/virt-win-reg.pl:76
41665 msgid ""
41666 "You can also display single values from within registry keys, for example:"
41667 msgstr ""
41668
41669 #. type: verbatim
41670 #: ../tools/virt-win-reg.pl:79
41671 #, no-wrap
41672 msgid ""
41673 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41674 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41675 " Windows 7 Enterprise\n"
41676 "\n"
41677 msgstr ""
41678
41679 #. type: textblock
41680 #: ../tools/virt-win-reg.pl:83
41681 msgid ""
41682 "With I<--merge>, you can merge a textual regedit file into the Windows "
41683 "Registry:"
41684 msgstr ""
41685
41686 #. type: verbatim
41687 #: ../tools/virt-win-reg.pl:86
41688 #, no-wrap
41689 msgid ""
41690 " $ virt-win-reg --merge Windows7 changes.reg\n"
41691 "\n"
41692 msgstr ""
41693
41694 #. type: textblock
41695 #: ../tools/virt-win-reg.pl:90
41696 msgid ""
41697 "This program is only meant for simple access to the registry.  If you want "
41698 "to do complicated things with the registry, we suggest you download the "
41699 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41700 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41701 "L<hivexregedit(1)>."
41702 msgstr ""
41703
41704 #. type: =item
41705 #: ../tools/virt-win-reg.pl:159
41706 msgid "B<--merge>"
41707 msgstr ""
41708
41709 #. type: textblock
41710 #: ../tools/virt-win-reg.pl:161
41711 msgid ""
41712 "In merge mode, this merges a textual regedit file into the Windows Registry "
41713 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41714 "displays or exports Registry entries instead."
41715 msgstr ""
41716
41717 #. type: textblock
41718 #: ../tools/virt-win-reg.pl:165
41719 msgid ""
41720 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41721 "result in disk corruption.  However exporting (without this flag)  is always "
41722 "safe."
41723 msgstr ""
41724
41725 #. type: =item
41726 #: ../tools/virt-win-reg.pl:173
41727 msgid "B<--encoding> UTF-16LE|ASCII"
41728 msgstr ""
41729
41730 #. type: textblock
41731 #: ../tools/virt-win-reg.pl:175
41732 msgid ""
41733 "When merging (only), you may need to specify the encoding for strings to be "
41734 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41735 "(3)/ENCODING STRINGS>."
41736 msgstr ""
41737
41738 #. type: textblock
41739 #: ../tools/virt-win-reg.pl:179
41740 msgid ""
41741 "The default is to use UTF-16LE, which should work with recent versions of "
41742 "Windows."
41743 msgstr ""
41744
41745 #. type: =item
41746 #: ../tools/virt-win-reg.pl:186
41747 msgid "B<--unsafe-printable-strings>"
41748 msgstr ""
41749
41750 #. type: textblock
41751 #: ../tools/virt-win-reg.pl:188
41752 msgid ""
41753 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41754 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41755 "present."
41756 msgstr ""
41757
41758 #. type: textblock
41759 #: ../tools/virt-win-reg.pl:192
41760 msgid ""
41761 "This is unsafe and does not preserve the fidelity of strings in the original "
41762 "Registry for various reasons:"
41763 msgstr ""
41764
41765 #. type: textblock
41766 #: ../tools/virt-win-reg.pl:199
41767 msgid ""
41768 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41769 "other encodings will be corrupted by this transformation."
41770 msgstr ""
41771
41772 #. type: textblock
41773 #: ../tools/virt-win-reg.pl:204
41774 msgid ""
41775 "Assumes that everything which has type 1 or 2 is really a string and that "
41776 "everything else is not a string, but the type field in real Registries is "
41777 "not reliable."
41778 msgstr ""
41779
41780 #. type: textblock
41781 #: ../tools/virt-win-reg.pl:210
41782 msgid ""
41783 "Loses information about whether a zero codepoint followed the string in the "
41784 "Registry or not."
41785 msgstr ""
41786
41787 #. type: textblock
41788 #: ../tools/virt-win-reg.pl:215
41789 msgid ""
41790 "This all happens because the Registry itself contains no information about "
41791 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41792 msgstr ""
41793
41794 #. type: textblock
41795 #: ../tools/virt-win-reg.pl:219
41796 msgid ""
41797 "You should only use this option for quick hacking and debugging of the "
41798 "Registry contents, and I<never> use it if the output is going to be passed "
41799 "into another program or stored in another Registry."
41800 msgstr ""
41801
41802 #. type: =head1
41803 #: ../tools/virt-win-reg.pl:556
41804 msgid "SUPPORTED SYSTEMS"
41805 msgstr ""
41806
41807 #. type: textblock
41808 #: ../tools/virt-win-reg.pl:558
41809 msgid ""
41810 "The program currently supports Windows NT-derived guests starting with "
41811 "Windows XP through to at least Windows 7."
41812 msgstr ""
41813
41814 #. type: textblock
41815 #: ../tools/virt-win-reg.pl:561
41816 msgid "The following Registry keys are supported:"
41817 msgstr ""
41818
41819 #. type: =item
41820 #: ../tools/virt-win-reg.pl:565
41821 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41822 msgstr ""
41823
41824 #. type: =item
41825 #: ../tools/virt-win-reg.pl:567
41826 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41827 msgstr ""
41828
41829 #. type: =item
41830 #: ../tools/virt-win-reg.pl:569
41831 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41832 msgstr ""
41833
41834 #. type: =item
41835 #: ../tools/virt-win-reg.pl:571
41836 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41837 msgstr ""
41838
41839 #. type: =item
41840 #: ../tools/virt-win-reg.pl:573
41841 msgid "C<HKEY_USERS\\.DEFAULT>"
41842 msgstr ""
41843
41844 #. type: =item
41845 #: ../tools/virt-win-reg.pl:575
41846 msgid "C<HKEY_USERS\\I<SID>>"
41847 msgstr ""
41848
41849 #. type: textblock
41850 #: ../tools/virt-win-reg.pl:577
41851 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41852 msgstr ""
41853
41854 #. type: =item
41855 #: ../tools/virt-win-reg.pl:579
41856 msgid "C<HKEY_USERS\\I<username>>"
41857 msgstr ""
41858
41859 #. type: textblock
41860 #: ../tools/virt-win-reg.pl:581
41861 msgid ""
41862 "where I<username> is a local user name (this is a libguestfs extension)."
41863 msgstr ""
41864
41865 #. type: textblock
41866 #: ../tools/virt-win-reg.pl:585
41867 msgid ""
41868 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41869 "C<HKEY_USERS>."
41870 msgstr ""
41871
41872 #. type: textblock
41873 #: ../tools/virt-win-reg.pl:588
41874 msgid ""
41875 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41876 "supported (there is no \"current user\")."
41877 msgstr ""
41878
41879 #. type: =head1
41880 #: ../tools/virt-win-reg.pl:591
41881 msgid "ENCODING"
41882 msgstr ""
41883
41884 #. type: textblock
41885 #: ../tools/virt-win-reg.pl:593
41886 msgid ""
41887 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41888 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41889 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41890 "Windows-style line endings, you may need to reencode the whole file before "
41891 "or after processing."
41892 msgstr ""
41893
41894 #. type: textblock
41895 #: ../tools/virt-win-reg.pl:599
41896 msgid ""
41897 "To reencode a file from Windows format to Linux (before processing it with "
41898 "the I<--merge> option), you would do something like this:"
41899 msgstr ""
41900
41901 #. type: verbatim
41902 #: ../tools/virt-win-reg.pl:602
41903 #, no-wrap
41904 msgid ""
41905 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41906 "\n"
41907 msgstr ""
41908
41909 #. type: textblock
41910 #: ../tools/virt-win-reg.pl:604
41911 msgid ""
41912 "To go in the opposite direction, after exporting and before sending the file "
41913 "to a Windows user, do something like this:"
41914 msgstr ""
41915
41916 #. type: verbatim
41917 #: ../tools/virt-win-reg.pl:607
41918 #, no-wrap
41919 msgid ""
41920 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41921 "\n"
41922 msgstr ""
41923
41924 #. type: textblock
41925 #: ../tools/virt-win-reg.pl:609
41926 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41927 msgstr ""
41928
41929 #. type: textblock
41930 #: ../tools/virt-win-reg.pl:611
41931 msgid ""
41932 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41933 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41934 "style (CRLF) line endings, like this:"
41935 msgstr ""
41936
41937 #. type: verbatim
41938 #: ../tools/virt-win-reg.pl:615
41939 #, no-wrap
41940 msgid ""
41941 " $ file software.reg\n"
41942 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41943 " with CRLF line terminators\n"
41944 "\n"
41945 msgstr ""
41946
41947 #. type: textblock
41948 #: ../tools/virt-win-reg.pl:619
41949 msgid "This file would need conversion before you could I<--merge> it."
41950 msgstr ""
41951
41952 #. type: =head1
41953 #: ../tools/virt-win-reg.pl:621
41954 msgid "CurrentControlSet etc."
41955 msgstr ""
41956
41957 #. type: textblock
41958 #: ../tools/virt-win-reg.pl:623
41959 msgid ""
41960 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41961 "Registry at the level of the hive file, and therefore you cannot modify "
41962 "these."
41963 msgstr ""
41964
41965 #. type: textblock
41966 #: ../tools/virt-win-reg.pl:627
41967 msgid ""
41968 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41969 "circumstances it might refer to another control set.  The way to find out is "
41970 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41971 msgstr ""
41972
41973 #. type: verbatim
41974 #: ../tools/virt-win-reg.pl:631
41975 #, no-wrap
41976 msgid ""
41977 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41978 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41979 " \"Current\"=dword:00000001\n"
41980 " \"Default\"=dword:00000001\n"
41981 " \"Failed\"=dword:00000000\n"
41982 " \"LastKnownGood\"=dword:00000002\n"
41983 "\n"
41984 msgstr ""
41985
41986 #. type: textblock
41987 #: ../tools/virt-win-reg.pl:638
41988 msgid "\"Current\" is the one which Windows will choose when it boots."
41989 msgstr ""
41990
41991 #. type: textblock
41992 #: ../tools/virt-win-reg.pl:640
41993 msgid ""
41994 "Similarly, other C<Current...> keys in the path may need to be replaced."
41995 msgstr ""
41996
41997 #. type: =head1
41998 #: ../tools/virt-win-reg.pl:643
41999 msgid "DELETING REGISTRY KEYS AND VALUES"
42000 msgstr ""
42001
42002 #. type: textblock
42003 #: ../tools/virt-win-reg.pl:645
42004 msgid "To delete a whole registry key, use the syntax:"
42005 msgstr ""
42006
42007 #. type: verbatim
42008 #: ../tools/virt-win-reg.pl:647
42009 #, no-wrap
42010 msgid ""
42011 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42012 "\n"
42013 msgstr ""
42014
42015 #. type: textblock
42016 #: ../tools/virt-win-reg.pl:649
42017 msgid "To delete a single value within a key, use the syntax:"
42018 msgstr ""
42019
42020 #. type: verbatim
42021 #: ../tools/virt-win-reg.pl:651
42022 #, no-wrap
42023 msgid ""
42024 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42025 " \"Value\"=-\n"
42026 "\n"
42027 msgstr ""
42028
42029 #. type: =head1
42030 #: ../tools/virt-win-reg.pl:654
42031 msgid "WINDOWS TIPS"
42032 msgstr ""
42033
42034 #. type: textblock
42035 #: ../tools/virt-win-reg.pl:656
42036 msgid ""
42037 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42038 "be shut off, else you will get disk corruption."
42039 msgstr ""
42040
42041 #. type: =head2
42042 #: ../tools/virt-win-reg.pl:659
42043 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42044 msgstr ""
42045
42046 #. type: textblock
42047 #: ../tools/virt-win-reg.pl:661
42048 msgid ""
42049 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42050 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42051 "is uploaded into C<C:\\>:"
42052 msgstr ""
42053
42054 #. type: verbatim
42055 #: ../tools/virt-win-reg.pl:665
42056 #, no-wrap
42057 msgid ""
42058 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42059 "\n"
42060 msgstr ""
42061
42062 #. type: textblock
42063 #: ../tools/virt-win-reg.pl:667
42064 msgid "Prepare a regedit file containing the registry change:"
42065 msgstr ""
42066
42067 #. type: verbatim
42068 #: ../tools/virt-win-reg.pl:669
42069 #, no-wrap
42070 msgid ""
42071 " cat > test.reg <<'EOF'\n"
42072 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42073 " \"Test\"=\"c:\\\\test.bat\"\n"
42074 " EOF\n"
42075 "\n"
42076 msgstr ""
42077
42078 #. type: textblock
42079 #: ../tools/virt-win-reg.pl:674
42080 msgid ""
42081 "In this example we use the key C<RunOnce> which means that the script will "
42082 "run precisely once when the first user logs in.  If you want it to run every "
42083 "time a user logs in, replace C<RunOnce> with C<Run>."
42084 msgstr ""
42085
42086 #. type: textblock
42087 #: ../tools/virt-win-reg.pl:678
42088 msgid "Now update the registry:"
42089 msgstr ""
42090
42091 #. type: verbatim
42092 #: ../tools/virt-win-reg.pl:680
42093 #, no-wrap
42094 msgid ""
42095 " virt-win-reg --merge WindowsGuest test.reg\n"
42096 "\n"
42097 msgstr ""
42098
42099 #. type: =head2
42100 #: ../tools/virt-win-reg.pl:682
42101 msgid "INSTALLING A SERVICE"
42102 msgstr ""
42103
42104 #. type: textblock
42105 #: ../tools/virt-win-reg.pl:684
42106 msgid ""
42107 "This section assumes you are familiar with Windows services, and you either "
42108 "have a program which handles the Windows Service Control Protocol directly "
42109 "or you want to run any program using a service wrapper like SrvAny or the "
42110 "free RHSrvAny."
42111 msgstr ""
42112
42113 #. type: textblock
42114 #: ../tools/virt-win-reg.pl:689
42115 msgid ""
42116 "First upload the program and optionally the service wrapper.  In this case "
42117 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42118 msgstr ""
42119
42120 #. type: verbatim
42121 #: ../tools/virt-win-reg.pl:693
42122 #, no-wrap
42123 msgid ""
42124 " guestfish -i -d WindowsGuest <<EOF\n"
42125 "   upload rhsrvany.exe /rhsrvany.exe\n"
42126 "   upload test.exe /test.exe\n"
42127 " EOF\n"
42128 "\n"
42129 msgstr ""
42130
42131 #. type: textblock
42132 #: ../tools/virt-win-reg.pl:698
42133 msgid ""
42134 "Prepare a regedit file containing the registry changes.  In this example, "
42135 "the first registry change is needed for the service itself or the service "
42136 "wrapper (if used).  The second registry change is only needed because I am "
42137 "using the RHSrvAny service wrapper."
42138 msgstr ""
42139
42140 #. type: verbatim
42141 #: ../tools/virt-win-reg.pl:703
42142 #, no-wrap
42143 msgid ""
42144 " cat > service.reg <<'EOF'\n"
42145 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42146 " \"Type\"=dword:00000010\n"
42147 " \"Start\"=dword:00000002\n"
42148 " \"ErrorControl\"=dword:00000001\n"
42149 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42150 " \"DisplayName\"=\"RHSrvAny\"\n"
42151 " \"ObjectName\"=\"NetworkService\"\n"
42152 " \n"
42153 msgstr ""
42154
42155 #. type: verbatim
42156 #: ../tools/virt-win-reg.pl:712
42157 #, no-wrap
42158 msgid ""
42159 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42160 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42161 " \"PWD\"=\"c:\\\\Temp\"\n"
42162 " EOF\n"
42163 "\n"
42164 msgstr ""
42165
42166 #. type: textblock
42167 #: ../tools/virt-win-reg.pl:723
42168 msgid ""
42169 "For use of C<ControlSet001> see the section above in this manual page.  You "
42170 "may need to adjust this according to the control set that is in use by the "
42171 "guest."
42172 msgstr ""
42173
42174 #. type: textblock
42175 #: ../tools/virt-win-reg.pl:729
42176 msgid ""
42177 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42178 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42179 "privileged account."
42180 msgstr ""
42181
42182 #. type: textblock
42183 #: ../tools/virt-win-reg.pl:735
42184 msgid ""
42185 "For the meaning of the magic numbers, see this Microsoft KB article: "
42186 "L<http://support.microsoft.com/kb/103000>."
42187 msgstr ""
42188
42189 #. type: textblock
42190 #: ../tools/virt-win-reg.pl:740
42191 msgid "Update the registry:"
42192 msgstr ""
42193
42194 #. type: verbatim
42195 #: ../tools/virt-win-reg.pl:742
42196 #, no-wrap
42197 msgid ""
42198 " virt-win-reg --merge WindowsGuest service.reg\n"
42199 "\n"
42200 msgstr ""
42201
42202 #. type: textblock
42203 #: ../tools/virt-win-reg.pl:746
42204 msgid ""
42205 "Be careful when passing parameters containing C<\\> (backslash) in the "
42206 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42207 "(but not both) to protect them from the shell."
42208 msgstr ""
42209
42210 #. type: textblock
42211 #: ../tools/virt-win-reg.pl:750
42212 msgid "Paths and value names are case-insensitive."
42213 msgstr ""
42214
42215 #. type: textblock
42216 #: ../tools/virt-win-reg.pl:759
42217 msgid ""
42218 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42219 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42220 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42221 msgstr ""
42222
42223 #. type: verbatim
42224 #: ../tools/virt-win-reg.pl:777
42225 #, no-wrap
42226 msgid ""
42227 " export LIBGUESTFS_DEBUG=1\n"
42228 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42229 "\n"
42230 msgstr ""
42231
42232 #. type: textblock
42233 #: ../tools/virt-win-reg.pl:780
42234 msgid ""
42235 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42236 "redhat.com/>"
42237 msgstr ""