Pushed and pulled latest translations from Transifex.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-10-19 17:23+0200\n"
13 "PO-Revision-Date: 2011-10-19 15:46+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "名前"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414
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:416
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "Currently there is no virt tool for fixing alignment problems in guests.  "
805 "This is a difficult problem to fix because simply moving partitions around "
806 "breaks the bootloader, necessitating either manual reinstallation of the "
807 "bootloader using a rescue disk, or complex and error-prone hacks."
808 msgstr ""
809
810 #. type: textblock
811 #: ../align/virt-alignment-scan.pod:284
812 msgid ""
813 "L<virt-resize(1)> does not change the alignment of the first partition, but "
814 "it does align the second and subsequent partitions to a multiple of 64 or "
815 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
816 "E<ge> 1.13.19).  For operating systems that have a separate boot partition, "
817 "virt-resize could be used to align the main OS partition, so that the "
818 "majority of OS accesses except at boot will be aligned."
819 msgstr ""
820
821 #. type: textblock
822 #: ../align/virt-alignment-scan.pod:292
823 msgid ""
824 "The easiest way to correct partition alignment problems is to reinstall your "
825 "guest operating systems.  If you install operating systems from templates, "
826 "ensure these have correct partition alignment too."
827 msgstr ""
828
829 #. type: textblock
830 #: ../align/virt-alignment-scan.pod:297
831 msgid ""
832 "For older versions of Windows, the following NetApp document contains useful "
833 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
834 msgstr ""
835
836 #. type: textblock
837 #: ../align/virt-alignment-scan.pod:300
838 msgid ""
839 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
840 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
841 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
842 "contains an example."
843 msgstr ""
844
845 #. type: =head1
846 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191
847 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
848 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
849 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
850 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601
851 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
852 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
853 #: ../tools/virt-win-reg.pl:733
854 msgid "SHELL QUOTING"
855 msgstr ""
856
857 #. type: textblock
858 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193
859 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
860 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
861 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
862 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603
863 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
864 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
865 #: ../tools/virt-win-reg.pl:741
866 msgid ""
867 "Libvirt guest names can contain arbitrary characters, some of which have "
868 "meaning to the shell such as C<#> and space.  You may need to quote or "
869 "escape these characters on the command line.  See the shell manual page L<sh"
870 "(1)> for details."
871 msgstr ""
872
873 #. type: =head1
874 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198
875 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
876 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
877 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
878 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
879 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
880 #: ../test-tool/libguestfs-test-tool.pod:90
881 msgid "EXIT STATUS"
882 msgstr ""
883
884 #. type: textblock
885 #: ../align/virt-alignment-scan.pod:314
886 msgid "This program returns:"
887 msgstr ""
888
889 #. type: =item
890 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324
891 #: ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337
892 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
893 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
894 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
895 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
896 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
897 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
898 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
899 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
900 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
901 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
902 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
903 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
904 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
905 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
906 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
907 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
908 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
909 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
910 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
911 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
912 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
913 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
914 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
915 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
916 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
917 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
918 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
919 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
920 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
921 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
922 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
923 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
924 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
925 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
926 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
927 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
928 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
929 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
930 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
931 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
932 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
933 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
934 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
935 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
936 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
937 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
938 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
939 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
940 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
941 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
942 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
943 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
944 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
945 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
946 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
947 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
948 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
949 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
950 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
951 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
952 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
953 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
954 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
955 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
956 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
957 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
958 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
959 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
960 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
961 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
962 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
963 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
964 #: ../tools/virt-win-reg.pl:722
965 msgid "*"
966 msgstr ""
967
968 #. type: textblock
969 #: ../align/virt-alignment-scan.pod:320
970 msgid "0"
971 msgstr ""
972
973 #. type: textblock
974 #: ../align/virt-alignment-scan.pod:322
975 msgid ""
976 "successful exit, all partitions are aligned E<ge> 64K for best performance"
977 msgstr ""
978
979 #. type: textblock
980 #: ../align/virt-alignment-scan.pod:326
981 msgid "1"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:328
986 msgid "an error scanning the disk image or guest"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:332
991 msgid "2"
992 msgstr ""
993
994 #. type: textblock
995 #: ../align/virt-alignment-scan.pod:334
996 msgid ""
997 "successful exit, some partitions have alignment E<lt> 64K which can result "
998 "in poor performance on high end network storage"
999 msgstr ""
1000
1001 #. type: textblock
1002 #: ../align/virt-alignment-scan.pod:339
1003 msgid "3"
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../align/virt-alignment-scan.pod:341
1008 msgid ""
1009 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1010 "poor performance on most hypervisors"
1011 msgstr ""
1012
1013 #. type: =head1
1014 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203
1015 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1016 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1017 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1018 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1019 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1020 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1021 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1022 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1023 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1024 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1025 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
1026 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1027 #: ../test-tool/libguestfs-test-tool.pod:100
1028 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1029 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1030 #: ../tools/virt-win-reg.pl:746
1031 msgid "SEE ALSO"
1032 msgstr ""
1033
1034 #. type: textblock
1035 #: ../align/virt-alignment-scan.pod:348
1036 msgid ""
1037 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1038 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1039 msgstr ""
1040
1041 #. type: =head1
1042 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212
1043 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1044 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1045 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1046 #: ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264
1047 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1048 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1049 #: ../tools/virt-win-reg.pl:772
1050 msgid "AUTHOR"
1051 msgstr ""
1052
1053 #. type: textblock
1054 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214
1055 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1056 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1057 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1058 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637
1059 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1060 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1061 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1062 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1063 msgstr ""
1064
1065 #. type: =head1
1066 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216
1067 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1068 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1069 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1070 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1071 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1072 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1073 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1074 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1075 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1076 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1077 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
1078 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1079 #: ../test-tool/libguestfs-test-tool.pod:110
1080 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1081 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1082 #: ../tools/virt-win-reg.pl:776
1083 msgid "COPYRIGHT"
1084 msgstr ""
1085
1086 #. type: textblock
1087 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:507
1088 #: ../sparsify/virt-sparsify.pod:270
1089 msgid "Copyright (C) 2011 Red Hat Inc."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220
1094 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1095 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1096 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1097 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1098 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1099 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1100 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
1101 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1102 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1103 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1104 #: ../tools/virt-win-reg.pl:780
1105 msgid ""
1106 "This program is free software; you can redistribute it and/or modify it "
1107 "under the terms of the GNU General Public License as published by the Free "
1108 "Software Foundation; either version 2 of the License, or (at your option) "
1109 "any later version."
1110 msgstr ""
1111
1112 #. type: textblock
1113 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225
1114 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1115 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1116 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1117 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1118 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1119 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1120 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
1121 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1122 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1123 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1124 #: ../tools/virt-win-reg.pl:785
1125 msgid ""
1126 "This program is distributed in the hope that it will be useful, but WITHOUT "
1127 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1128 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1129 "more details."
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230
1134 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1135 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1136 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1137 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1138 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1139 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1140 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
1141 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1142 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1143 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1144 #: ../tools/virt-win-reg.pl:790
1145 msgid ""
1146 "You should have received a copy of the GNU General Public License along with "
1147 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1148 "Ave, Cambridge, MA 02139, USA."
1149 msgstr ""
1150
1151 #. type: textblock
1152 #: ../cat/virt-cat.pod:5
1153 msgid "virt-cat - Display files in a virtual machine"
1154 msgstr ""
1155
1156 #. type: verbatim
1157 #: ../cat/virt-cat.pod:9
1158 #, no-wrap
1159 msgid ""
1160 " virt-cat [--options] -d domname file [file ...]\n"
1161 "\n"
1162 msgstr ""
1163
1164 #. type: verbatim
1165 #: ../cat/virt-cat.pod:11
1166 #, no-wrap
1167 msgid ""
1168 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1169 "\n"
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1174 #: ../inspector/virt-inspector.pod:13
1175 msgid "Old-style:"
1176 msgstr ""
1177
1178 #. type: verbatim
1179 #: ../cat/virt-cat.pod:15
1180 #, no-wrap
1181 msgid ""
1182 " virt-cat domname file\n"
1183 "\n"
1184 msgstr ""
1185
1186 #. type: verbatim
1187 #: ../cat/virt-cat.pod:17
1188 #, no-wrap
1189 msgid ""
1190 " virt-cat disk.img file\n"
1191 "\n"
1192 msgstr ""
1193
1194 #. type: textblock
1195 #: ../cat/virt-cat.pod:21
1196 msgid ""
1197 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1198 "C<file> exists in the named virtual machine (or disk image)."
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-cat.pod:24
1203 msgid ""
1204 "Multiple filenames can be given, in which case they are concatenated "
1205 "together.  Each filename must be a full path, starting at the root directory "
1206 "(starting with '/')."
1207 msgstr ""
1208
1209 #. type: textblock
1210 #: ../cat/virt-cat.pod:28
1211 msgid ""
1212 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1213 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1214 "(see L</USING GUESTFISH> below)."
1215 msgstr ""
1216
1217 #. type: =head1
1218 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1219 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1220 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1221 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1222 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1223 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1224 #: ../tools/virt-tar.pl:50
1225 msgid "EXAMPLES"
1226 msgstr ""
1227
1228 #. type: textblock
1229 #: ../cat/virt-cat.pod:34
1230 msgid ""
1231 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1232 msgstr ""
1233
1234 #. type: verbatim
1235 #: ../cat/virt-cat.pod:37
1236 #, no-wrap
1237 msgid ""
1238 " virt-cat -d mydomain /etc/fstab\n"
1239 "\n"
1240 msgstr ""
1241
1242 #. type: textblock
1243 #: ../cat/virt-cat.pod:39
1244 msgid "List syslog messages from a VM disk image file:"
1245 msgstr ""
1246
1247 #. type: verbatim
1248 #: ../cat/virt-cat.pod:41
1249 #, no-wrap
1250 msgid ""
1251 " virt-cat -a disk.img /var/log/messages | tail\n"
1252 "\n"
1253 msgstr ""
1254
1255 #. type: textblock
1256 #: ../cat/virt-cat.pod:43
1257 msgid "Find out what DHCP IP address a VM acquired:"
1258 msgstr ""
1259
1260 #. type: verbatim
1261 #: ../cat/virt-cat.pod:45
1262 #, no-wrap
1263 msgid ""
1264 " virt-cat -d mydomain /var/log/messages | \\\n"
1265 "   grep 'dhclient: bound to' | tail\n"
1266 "\n"
1267 msgstr ""
1268
1269 #. type: textblock
1270 #: ../cat/virt-cat.pod:48
1271 msgid "Find out what packages were recently installed:"
1272 msgstr ""
1273
1274 #. type: verbatim
1275 #: ../cat/virt-cat.pod:50
1276 #, no-wrap
1277 msgid ""
1278 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1279 "\n"
1280 msgstr ""
1281
1282 #. type: textblock
1283 #: ../cat/virt-cat.pod:52
1284 msgid "Find out who is logged on inside a virtual machine:"
1285 msgstr ""
1286
1287 #. type: verbatim
1288 #: ../cat/virt-cat.pod:54
1289 #, no-wrap
1290 msgid ""
1291 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1292 " who /tmp/utmp\n"
1293 "\n"
1294 msgstr ""
1295
1296 #. type: textblock
1297 #: ../cat/virt-cat.pod:57
1298 msgid "or who was logged on:"
1299 msgstr ""
1300
1301 #. type: verbatim
1302 #: ../cat/virt-cat.pod:59
1303 #, no-wrap
1304 msgid ""
1305 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1306 " last -f /tmp/wtmp\n"
1307 "\n"
1308 msgstr ""
1309
1310 #. type: textblock
1311 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1312 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1313 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1314 msgid ""
1315 "Add I<file> which should be a disk image from a virtual machine.  If the "
1316 "virtual machine has multiple block devices, you must supply all of them with "
1317 "separate I<-a> options."
1318 msgstr ""
1319
1320 #. type: =item
1321 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1322 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1323 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1324 msgid "B<--echo-keys>"
1325 msgstr ""
1326
1327 #. type: textblock
1328 #: ../cat/virt-cat.pod:100
1329 msgid ""
1330 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1331 "so you cannot see what you are typing.  If you are not worried about Tempest "
1332 "attacks and there is no one else in the room you can specify this flag to "
1333 "see what you are typing."
1334 msgstr ""
1335
1336 #. type: verbatim
1337 #: ../cat/virt-cat.pod:116
1338 #, no-wrap
1339 msgid ""
1340 " virt-cat --format=raw -a disk.img file\n"
1341 "\n"
1342 msgstr ""
1343
1344 #. type: verbatim
1345 #: ../cat/virt-cat.pod:120
1346 #, no-wrap
1347 msgid ""
1348 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1349 "\n"
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1354 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1355 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1356 msgid "B<--keys-from-stdin>"
1357 msgstr ""
1358
1359 #. type: textblock
1360 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1361 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1362 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1363 msgid ""
1364 "Read key or passphrase parameters from stdin.  The default is to try to read "
1365 "passphrases from the user by opening C</dev/tty>."
1366 msgstr ""
1367
1368 #. type: =head1
1369 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1370 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1371 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../cat/virt-cat.pod:154
1376 msgid "Previous versions of virt-cat allowed you to write either:"
1377 msgstr ""
1378
1379 #. type: verbatim
1380 #: ../cat/virt-cat.pod:156
1381 #, no-wrap
1382 msgid ""
1383 " virt-cat disk.img [disk.img ...] file\n"
1384 "\n"
1385 msgstr ""
1386
1387 #. type: textblock
1388 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1389 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1390 msgid "or"
1391 msgstr ""
1392
1393 #. type: verbatim
1394 #: ../cat/virt-cat.pod:160
1395 #, no-wrap
1396 msgid ""
1397 " virt-cat guestname file\n"
1398 "\n"
1399 msgstr ""
1400
1401 #. type: textblock
1402 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1403 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1404 msgid ""
1405 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1406 "the confusing case where a disk image might have the same name as a guest."
1407 msgstr ""
1408
1409 #. type: textblock
1410 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1411 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1412 msgid "For compatibility the old style is still supported."
1413 msgstr ""
1414
1415 #. type: =head1
1416 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1417 msgid "USING GUESTFISH"
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../cat/virt-cat.pod:170
1422 msgid ""
1423 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1424 "C<virt-cat> doesn't work."
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../cat/virt-cat.pod:173
1429 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1430 msgstr ""
1431
1432 #. type: verbatim
1433 #: ../cat/virt-cat.pod:175
1434 #, no-wrap
1435 msgid ""
1436 " guestfish --ro -i -d domname download file -\n"
1437 "\n"
1438 msgstr ""
1439
1440 #. type: textblock
1441 #: ../cat/virt-cat.pod:177
1442 msgid ""
1443 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1444 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1445 msgstr ""
1446
1447 #. type: textblock
1448 #: ../cat/virt-cat.pod:181
1449 msgid ""
1450 "The command above uses libguestfs's guest inspection feature and so does not "
1451 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1452 "disk images that don't contain guests.  To display a file from a disk image "
1453 "directly, use:"
1454 msgstr ""
1455
1456 #. type: verbatim
1457 #: ../cat/virt-cat.pod:186
1458 #, no-wrap
1459 msgid ""
1460 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1461 "\n"
1462 msgstr ""
1463
1464 #. type: textblock
1465 #: ../cat/virt-cat.pod:188
1466 msgid ""
1467 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1468 "the disk image, and C<file> is the full path to the file."
1469 msgstr ""
1470
1471 #. type: textblock
1472 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1473 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1474 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1475 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1476 msgid ""
1477 "This program returns 0 if successful, or non-zero if there was an error."
1478 msgstr ""
1479
1480 #. type: textblock
1481 #: ../cat/virt-cat.pod:205
1482 msgid ""
1483 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1484 "tar-out(1)>, L<http://libguestfs.org/>."
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1489 #: ../resize/virt-resize.pod:641
1490 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-filesystems.pod:5
1495 msgid ""
1496 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1497 "virtual machine or disk image"
1498 msgstr ""
1499
1500 #. type: verbatim
1501 #: ../cat/virt-filesystems.pod:9
1502 #, no-wrap
1503 msgid ""
1504 " virt-filesystems [--options] -d domname\n"
1505 "\n"
1506 msgstr ""
1507
1508 #. type: verbatim
1509 #: ../cat/virt-filesystems.pod:11
1510 #, no-wrap
1511 msgid ""
1512 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1513 "\n"
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-filesystems.pod:15
1518 msgid ""
1519 "This tool allows you to discover filesystems, partitions, logical volumes, "
1520 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1521 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-filesystems.pod:20
1526 msgid ""
1527 "One use for this tool is from shell scripts to iterate over all filesystems "
1528 "from a disk image:"
1529 msgstr ""
1530
1531 #. type: verbatim
1532 #: ../cat/virt-filesystems.pod:23
1533 #, no-wrap
1534 msgid ""
1535 " for fs in $(virt-filesystems -a disk.img); do\n"
1536 "   # ...\n"
1537 " done\n"
1538 "\n"
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-filesystems.pod:27
1543 msgid ""
1544 "Another use is to list partitions before using another tool to modify those "
1545 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1546 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1547 msgstr ""
1548
1549 #. type: textblock
1550 #: ../cat/virt-filesystems.pod:32
1551 msgid ""
1552 "Various command line options control what this program displays.  You need "
1553 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1554 "guest respectively.  If you just specify that then the program shows "
1555 "filesystems found, one per line, like this:"
1556 msgstr ""
1557
1558 #. type: verbatim
1559 #: ../cat/virt-filesystems.pod:37
1560 #, no-wrap
1561 msgid ""
1562 " $ virt-filesystems -a disk.img\n"
1563 " /dev/sda1\n"
1564 " /dev/vg_guest/lv_root\n"
1565 "\n"
1566 msgstr ""
1567
1568 #. type: textblock
1569 #: ../cat/virt-filesystems.pod:41
1570 msgid ""
1571 "If you add I<-l> or I<--long> then the output includes extra information:"
1572 msgstr ""
1573
1574 #. type: verbatim
1575 #: ../cat/virt-filesystems.pod:44
1576 #, no-wrap
1577 msgid ""
1578 " $ virt-filesystems -a disk.img -l\n"
1579 " Name                   Type         VFS   Label  Size\n"
1580 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1581 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1582 "\n"
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-filesystems.pod:49
1587 msgid ""
1588 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1589 "shown as well:"
1590 msgstr ""
1591
1592 #. type: verbatim
1593 #: ../cat/virt-filesystems.pod:52
1594 #, no-wrap
1595 msgid ""
1596 " $ virt-filesystems -a disk.img --extra\n"
1597 " /dev/sda1\n"
1598 " /dev/vg_guest/lv_root\n"
1599 " /dev/vg_guest/lv_swap\n"
1600 " /dev/vg_guest/lv_data\n"
1601 "\n"
1602 msgstr ""
1603
1604 #. type: textblock
1605 #: ../cat/virt-filesystems.pod:58
1606 msgid ""
1607 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1608 msgstr ""
1609
1610 #. type: verbatim
1611 #: ../cat/virt-filesystems.pod:60
1612 #, no-wrap
1613 msgid ""
1614 " $ virt-filesystems -a disk.img --partitions\n"
1615 " /dev/sda1\n"
1616 " /dev/sda2\n"
1617 "\n"
1618 msgstr ""
1619
1620 #. type: textblock
1621 #: ../cat/virt-filesystems.pod:64
1622 msgid ""
1623 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1624 "volumes>, I<--block-devices> to list those items."
1625 msgstr ""
1626
1627 #. type: textblock
1628 #: ../cat/virt-filesystems.pod:67
1629 msgid ""
1630 "You can use these options in combination as well (if you want a combination "
1631 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1632 "items fall into several categories (eg. C</dev/sda1> might be both a "
1633 "partition and a filesystem).  These items are listed several times.  To get "
1634 "a list which includes absolutely everything that virt-filesystems knows "
1635 "about, use the I<--all> option."
1636 msgstr ""
1637
1638 #. type: textblock
1639 #: ../cat/virt-filesystems.pod:74
1640 msgid ""
1641 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1642 "uuid> option to display device and filesystem UUIDs in the long output."
1643 msgstr ""
1644
1645 #. type: textblock
1646 #: ../cat/virt-filesystems.pod:78
1647 msgid ""
1648 "I<--all --long --uuid> is a useful combination to display all possible "
1649 "information about everything."
1650 msgstr ""
1651
1652 #. type: verbatim
1653 #: ../cat/virt-filesystems.pod:81
1654 #, no-wrap
1655 msgid ""
1656 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1657 " Name      Type       VFS  Label           Size Parent   UUID\n"
1658 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1659 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1660 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1661 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1662 " /dev/sda  device     -    -               20G  -        -\n"
1663 "\n"
1664 msgstr ""
1665
1666 #. type: textblock
1667 #: ../cat/virt-filesystems.pod:89
1668 msgid ""
1669 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1670 msgstr ""
1671
1672 #. type: =item
1673 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1674 msgid "B<--all>"
1675 msgstr ""
1676
1677 #. type: textblock
1678 #: ../cat/virt-filesystems.pod:112
1679 msgid ""
1680 "Display everything.  This is currently the same as specifying these options: "
1681 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1682 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1683 "added to this list in future)."
1684 msgstr ""
1685
1686 #. type: textblock
1687 #: ../cat/virt-filesystems.pod:117
1688 msgid "See also I<--long>."
1689 msgstr ""
1690
1691 #. type: =item
1692 #: ../cat/virt-filesystems.pod:119
1693 msgid "B<--blkdevs>"
1694 msgstr ""
1695
1696 #. type: =item
1697 #: ../cat/virt-filesystems.pod:121
1698 msgid "B<--block-devices>"
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:123
1703 msgid "Display block devices."
1704 msgstr ""
1705
1706 #. type: =item
1707 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1708 msgid "B<--csv>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1713 msgid ""
1714 "Write out the results in CSV format (comma-separated values).  This format "
1715 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1716 "ABOUT CSV FORMAT> below."
1717 msgstr ""
1718
1719 #. type: textblock
1720 #: ../cat/virt-filesystems.pod:150
1721 msgid ""
1722 "When prompting for keys and passphrases, virt-filesystems normally turns "
1723 "echoing off so you cannot see what you are typing.  If you are not worried "
1724 "about Tempest attacks and there is no one else in the room you can specify "
1725 "this flag to see what you are typing."
1726 msgstr ""
1727
1728 #. type: =item
1729 #: ../cat/virt-filesystems.pod:155
1730 msgid "B<--extra>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:157
1735 msgid ""
1736 "This causes filesystems that are not ordinary, mountable filesystems to be "
1737 "displayed.  This category includes swapspace, and filesystems that are empty "
1738 "or contain unknown data."
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../cat/virt-filesystems.pod:161
1743 msgid "This option implies I<--filesystems>."
1744 msgstr ""
1745
1746 #. type: =item
1747 #: ../cat/virt-filesystems.pod:163
1748 msgid "B<--filesystems>"
1749 msgstr ""
1750
1751 #. type: textblock
1752 #: ../cat/virt-filesystems.pod:165
1753 msgid ""
1754 "Display mountable filesystems.  If no display option was selected then this "
1755 "option is implied."
1756 msgstr ""
1757
1758 #. type: textblock
1759 #: ../cat/virt-filesystems.pod:168
1760 msgid "With I<--extra>, non-mountable filesystems are shown too."
1761 msgstr ""
1762
1763 #. type: verbatim
1764 #: ../cat/virt-filesystems.pod:181
1765 #, no-wrap
1766 msgid ""
1767 " virt-filesystems --format=raw -a disk.img\n"
1768 "\n"
1769 msgstr ""
1770
1771 #. type: verbatim
1772 #: ../cat/virt-filesystems.pod:185
1773 #, no-wrap
1774 msgid ""
1775 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1776 "\n"
1777 msgstr ""
1778
1779 #. type: =item
1780 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1781 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1782 #: ../tools/virt-list-partitions.pl:109
1783 msgid "B<-h>"
1784 msgstr ""
1785
1786 #. type: =item
1787 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1788 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1789 msgid "B<--human-readable>"
1790 msgstr ""
1791
1792 #. type: textblock
1793 #: ../cat/virt-filesystems.pod:198
1794 msgid "In I<--long> mode, display sizes in human-readable format."
1795 msgstr ""
1796
1797 #. type: =item
1798 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1799 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1800 msgid "B<-l>"
1801 msgstr ""
1802
1803 #. type: =item
1804 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1805 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1806 msgid "B<--long>"
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:209
1811 msgid "Display extra columns of data (\"long format\")."
1812 msgstr ""
1813
1814 #. type: textblock
1815 #: ../cat/virt-filesystems.pod:211
1816 msgid "A title row is added unless you also specify I<--no-title>."
1817 msgstr ""
1818
1819 #. type: textblock
1820 #: ../cat/virt-filesystems.pod:213
1821 msgid ""
1822 "The extra columns displayed depend on what output you select, and the "
1823 "ordering of columns may change in future versions.  Use the title row, I<--"
1824 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1825 "programs."
1826 msgstr ""
1827
1828 #. type: textblock
1829 #: ../cat/virt-filesystems.pod:218
1830 msgid ""
1831 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1832 "default is to show raw numbers of I<bytes>."
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../cat/virt-filesystems.pod:221
1837 msgid "Use I<--uuid> to display UUIDs too."
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-filesystems.pod:223
1842 msgid "B<--lvs>"
1843 msgstr ""
1844
1845 #. type: =item
1846 #: ../cat/virt-filesystems.pod:225
1847 msgid "B<--logvols>"
1848 msgstr ""
1849
1850 #. type: =item
1851 #: ../cat/virt-filesystems.pod:227
1852 msgid "B<--logical-volumes>"
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-filesystems.pod:229
1857 msgid ""
1858 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1859 "of whether the LVs contain filesystems."
1860 msgstr ""
1861
1862 #. type: =item
1863 #: ../cat/virt-filesystems.pod:232
1864 msgid "B<--no-title>"
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-filesystems.pod:234
1869 msgid "In I<--long> mode, don't add a title row."
1870 msgstr ""
1871
1872 #. type: textblock
1873 #: ../cat/virt-filesystems.pod:236
1874 msgid ""
1875 "Note that the order of the columns is not fixed, and may change in future "
1876 "versions of virt-filesystems, so using this option may give you unexpected "
1877 "surprises."
1878 msgstr ""
1879
1880 #. type: =item
1881 #: ../cat/virt-filesystems.pod:240
1882 msgid "B<--parts>"
1883 msgstr ""
1884
1885 #. type: =item
1886 #: ../cat/virt-filesystems.pod:242
1887 msgid "B<--partitions>"
1888 msgstr ""
1889
1890 #. type: textblock
1891 #: ../cat/virt-filesystems.pod:244
1892 msgid ""
1893 "Display partitions.  In this mode, these are displayed irrespective of "
1894 "whether the partitions contain filesystems."
1895 msgstr ""
1896
1897 #. type: =item
1898 #: ../cat/virt-filesystems.pod:247
1899 msgid "B<--pvs>"
1900 msgstr ""
1901
1902 #. type: =item
1903 #: ../cat/virt-filesystems.pod:249
1904 msgid "B<--physvols>"
1905 msgstr ""
1906
1907 #. type: =item
1908 #: ../cat/virt-filesystems.pod:251
1909 msgid "B<--physical-volumes>"
1910 msgstr ""
1911
1912 #. type: textblock
1913 #: ../cat/virt-filesystems.pod:253
1914 msgid "Display LVM physical volumes."
1915 msgstr ""
1916
1917 #. type: =item
1918 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1919 msgid "B<--uuid>"
1920 msgstr ""
1921
1922 #. type: =item
1923 #: ../cat/virt-filesystems.pod:257
1924 msgid "B<--uuids>"
1925 msgstr ""
1926
1927 #. type: textblock
1928 #: ../cat/virt-filesystems.pod:259
1929 msgid "In I<--long> mode, display UUIDs as well."
1930 msgstr ""
1931
1932 #. type: =item
1933 #: ../cat/virt-filesystems.pod:273
1934 msgid "B<--vgs>"
1935 msgstr ""
1936
1937 #. type: =item
1938 #: ../cat/virt-filesystems.pod:275
1939 msgid "B<--volgroups>"
1940 msgstr ""
1941
1942 #. type: =item
1943 #: ../cat/virt-filesystems.pod:277
1944 msgid "B<--volume-groups>"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-filesystems.pod:279
1949 msgid "Display LVM volume groups."
1950 msgstr ""
1951
1952 #. type: =head1
1953 #: ../cat/virt-filesystems.pod:287
1954 msgid "COLUMNS"
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:289
1959 msgid ""
1960 "Note that columns in the output are subject to reordering and change in "
1961 "future versions of this tool."
1962 msgstr ""
1963
1964 #. type: =item
1965 #: ../cat/virt-filesystems.pod:294
1966 msgid "B<Name>"
1967 msgstr ""
1968
1969 #. type: textblock
1970 #: ../cat/virt-filesystems.pod:296
1971 msgid "The filesystem, partition, block device or LVM name."
1972 msgstr ""
1973
1974 #. type: textblock
1975 #: ../cat/virt-filesystems.pod:298
1976 msgid ""
1977 "For device and partition names these are displayed as canonical libguestfs "
1978 "names, so that for example C</dev/sda2> is the second partition on the first "
1979 "device."
1980 msgstr ""
1981
1982 #. type: textblock
1983 #: ../cat/virt-filesystems.pod:302
1984 msgid ""
1985 "If the I<--long> option is B<not> specified, then only the name column is "
1986 "shown in the output."
1987 msgstr ""
1988
1989 #. type: =item
1990 #: ../cat/virt-filesystems.pod:305
1991 msgid "B<Type>"
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../cat/virt-filesystems.pod:307
1996 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1997 msgstr ""
1998
1999 #. type: =item
2000 #: ../cat/virt-filesystems.pod:309
2001 msgid "B<VFS>"
2002 msgstr ""
2003
2004 #. type: textblock
2005 #: ../cat/virt-filesystems.pod:311
2006 msgid ""
2007 "If there is a filesystem, then this column displays the filesystem type if "
2008 "one could be detected, eg. C<ext4>."
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:314
2013 msgid "B<Label>"
2014 msgstr ""
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:316
2018 msgid ""
2019 "If the object has a label (used for identifying and mounting filesystems) "
2020 "then this column contains the label."
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:319
2025 msgid "B<Size>"
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-filesystems.pod:321
2030 msgid ""
2031 "The size of the object in bytes.  If the I<--human> option is used then the "
2032 "size is displayed in a human-readable form."
2033 msgstr ""
2034
2035 #. type: =item
2036 #: ../cat/virt-filesystems.pod:324
2037 msgid "B<Parent>"
2038 msgstr ""
2039
2040 #. type: textblock
2041 #: ../cat/virt-filesystems.pod:326
2042 msgid ""
2043 "The parent column records the parent relationship between objects.  For "
2044 "example, if the object is a partition, then this column contains the name of "
2045 "the containing device.  If the object is a logical volume, then this column "
2046 "is the name of the volume group."
2047 msgstr ""
2048
2049 #. type: =item
2050 #: ../cat/virt-filesystems.pod:331
2051 msgid "B<UUID>"
2052 msgstr ""
2053
2054 #. type: textblock
2055 #: ../cat/virt-filesystems.pod:333
2056 msgid ""
2057 "If the object has a UUID (used for identifying and mounting filesystems and "
2058 "block devices) then this column contains the UUID as a string."
2059 msgstr ""
2060
2061 #. type: textblock
2062 #: ../cat/virt-filesystems.pod:337
2063 msgid "The UUID is only displayed if the I<--uuid> option is given."
2064 msgstr ""
2065
2066 #. type: =head1
2067 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2068 #: ../df/virt-df.pod:191
2069 msgid "NOTE ABOUT CSV FORMAT"
2070 msgstr ""
2071
2072 #. type: textblock
2073 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2074 #: ../df/virt-df.pod:193
2075 msgid ""
2076 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2077 "should be easy to parse, but it is definitely not easy to parse."
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2082 #: ../df/virt-df.pod:196
2083 msgid ""
2084 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2085 "reliably.  This example has two columns:"
2086 msgstr ""
2087
2088 #. type: verbatim
2089 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2090 #: ../df/virt-df.pod:199
2091 #, no-wrap
2092 msgid ""
2093 " \"foo,bar\",baz\n"
2094 "\n"
2095 msgstr ""
2096
2097 #. type: textblock
2098 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2099 #: ../df/virt-df.pod:201
2100 msgid ""
2101 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2102 "reliably.  This example has one row:"
2103 msgstr ""
2104
2105 #. type: verbatim
2106 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2107 #: ../df/virt-df.pod:204
2108 #, no-wrap
2109 msgid ""
2110 " \"foo\n"
2111 " bar\",baz\n"
2112 "\n"
2113 msgstr ""
2114
2115 #. type: textblock
2116 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2117 #: ../df/virt-df.pod:207
2118 msgid ""
2119 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2120 "packaged in major Linux distributions)."
2121 msgstr ""
2122
2123 #. type: textblock
2124 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2125 #: ../df/virt-df.pod:210
2126 msgid ""
2127 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2128 "or Python's built-in csv library)."
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2133 #: ../df/virt-df.pod:213
2134 msgid "Most spreadsheets and databases can import CSV directly."
2135 msgstr ""
2136
2137 #. type: textblock
2138 #: ../cat/virt-filesystems.pod:379
2139 msgid ""
2140 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2141 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2142 "libguestfs.org/>."
2143 msgstr ""
2144
2145 #. type: textblock
2146 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2147 #: ../tools/virt-win-reg.pl:778
2148 msgid "Copyright (C) 2010 Red Hat Inc."
2149 msgstr ""
2150
2151 #. type: textblock
2152 #: ../cat/virt-ls.pod:5
2153 msgid "virt-ls - List files in a virtual machine"
2154 msgstr ""
2155
2156 #. type: verbatim
2157 #: ../cat/virt-ls.pod:9
2158 #, no-wrap
2159 msgid ""
2160 " virt-ls [--options] -d domname directory [directory ...]\n"
2161 "\n"
2162 msgstr ""
2163
2164 #. type: verbatim
2165 #: ../cat/virt-ls.pod:11
2166 #, no-wrap
2167 msgid ""
2168 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2169 "\n"
2170 msgstr ""
2171
2172 #. type: textblock
2173 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2174 msgid "Old style:"
2175 msgstr ""
2176
2177 #. type: verbatim
2178 #: ../cat/virt-ls.pod:15
2179 #, no-wrap
2180 msgid ""
2181 " virt-ls [--options] domname directory\n"
2182 "\n"
2183 msgstr ""
2184
2185 #. type: verbatim
2186 #: ../cat/virt-ls.pod:17
2187 #, no-wrap
2188 msgid ""
2189 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2190 "\n"
2191 msgstr ""
2192
2193 #. type: textblock
2194 #: ../cat/virt-ls.pod:21
2195 msgid ""
2196 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2197 "more from a virtual machine or disk image."
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../cat/virt-ls.pod:24
2202 msgid ""
2203 "Multiple directory names can be given, in which case the output from each is "
2204 "concatenated."
2205 msgstr ""
2206
2207 #. type: textblock
2208 #: ../cat/virt-ls.pod:27
2209 msgid ""
2210 "To list directories from a libvirt guest use the I<-d> option to specify the "
2211 "name of the guest.  For a disk image, use the I<-a> option."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:31
2216 msgid ""
2217 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2218 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2219 "(3)> API."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../cat/virt-ls.pod:37
2224 msgid "Get a list of all files and directories in a virtual machine:"
2225 msgstr ""
2226
2227 #. type: verbatim
2228 #: ../cat/virt-ls.pod:39
2229 #, no-wrap
2230 msgid ""
2231 " virt-ls -R -d guest /\n"
2232 "\n"
2233 msgstr ""
2234
2235 #. type: textblock
2236 #: ../cat/virt-ls.pod:41
2237 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2238 msgstr ""
2239
2240 #. type: verbatim
2241 #: ../cat/virt-ls.pod:43
2242 #, no-wrap
2243 msgid ""
2244 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2245 "\n"
2246 msgstr ""
2247
2248 #. type: textblock
2249 #: ../cat/virt-ls.pod:45
2250 msgid "List all public-writable directories in a Linux virtual machine:"
2251 msgstr ""
2252
2253 #. type: verbatim
2254 #: ../cat/virt-ls.pod:47
2255 #, no-wrap
2256 msgid ""
2257 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2258 "\n"
2259 msgstr ""
2260
2261 #. type: textblock
2262 #: ../cat/virt-ls.pod:49
2263 msgid "List all Unix domain sockets in a Linux virtual machine:"
2264 msgstr ""
2265
2266 #. type: verbatim
2267 #: ../cat/virt-ls.pod:51
2268 #, no-wrap
2269 msgid ""
2270 " virt-ls -lR -d guest / | grep '^s'\n"
2271 "\n"
2272 msgstr ""
2273
2274 #. type: textblock
2275 #: ../cat/virt-ls.pod:53
2276 msgid "List all regular files with filenames ending in '.png':"
2277 msgstr ""
2278
2279 #. type: verbatim
2280 #: ../cat/virt-ls.pod:55
2281 #, no-wrap
2282 msgid ""
2283 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2284 "\n"
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../cat/virt-ls.pod:57
2289 msgid "To display files larger than 10MB in home directories:"
2290 msgstr ""
2291
2292 #. type: verbatim
2293 #: ../cat/virt-ls.pod:59
2294 #, no-wrap
2295 msgid ""
2296 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2297 "\n"
2298 msgstr ""
2299
2300 #. type: textblock
2301 #: ../cat/virt-ls.pod:61
2302 msgid "Find everything modified in the last 7 days:"
2303 msgstr ""
2304
2305 #. type: verbatim
2306 #: ../cat/virt-ls.pod:63
2307 #, no-wrap
2308 msgid ""
2309 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2310 "\n"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:65
2315 msgid "Find regular files modified in the last 24 hours:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../cat/virt-ls.pod:67
2320 #, no-wrap
2321 msgid ""
2322 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2323 "\n"
2324 msgstr ""
2325
2326 #. type: =head2
2327 #: ../cat/virt-ls.pod:69
2328 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../cat/virt-ls.pod:71
2333 msgid ""
2334 "Find the differences between files in a guest and an earlier snapshot of the "
2335 "same guest."
2336 msgstr ""
2337
2338 #. type: verbatim
2339 #: ../cat/virt-ls.pod:74
2340 #, no-wrap
2341 msgid ""
2342 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2343 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2344 " diff -u old new | less\n"
2345 "\n"
2346 msgstr ""
2347
2348 #. type: textblock
2349 #: ../cat/virt-ls.pod:78
2350 msgid ""
2351 "The commands above won't find files where the content has changed but the "
2352 "metadata (eg. file size and modification date) is the same.  To do that, you "
2353 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2354 "checksum> can be quite slow since it has to read and compute a checksum of "
2355 "every regular file in the virtual machine."
2356 msgstr ""
2357
2358 #. type: =head1
2359 #: ../cat/virt-ls.pod:84
2360 msgid "OUTPUT MODES"
2361 msgstr ""
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:86
2365 msgid ""
2366 "C<virt-ls> has four output modes, controlled by different combinations of "
2367 "the I<-l> and I<-R> options."
2368 msgstr ""
2369
2370 #. type: =head2
2371 #: ../cat/virt-ls.pod:89
2372 msgid "SIMPLE LISTING"
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../cat/virt-ls.pod:91
2377 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2378 msgstr ""
2379
2380 #. type: verbatim
2381 #: ../cat/virt-ls.pod:93
2382 #, no-wrap
2383 msgid ""
2384 " $ virt-ls -d guest /\n"
2385 " bin\n"
2386 " boot\n"
2387 " [etc.]\n"
2388 "\n"
2389 msgstr ""
2390
2391 #. type: =head2
2392 #: ../cat/virt-ls.pod:98
2393 msgid "LONG LISTING"
2394 msgstr ""
2395
2396 #. type: textblock
2397 #: ../cat/virt-ls.pod:100
2398 msgid ""
2399 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2400 "(more specifically, like the C<guestfs_ll> function)."
2401 msgstr ""
2402
2403 #. type: verbatim
2404 #: ../cat/virt-ls.pod:103
2405 #, no-wrap
2406 msgid ""
2407 " $ virt-ls -l -d guest /\n"
2408 " total 204\n"
2409 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2410 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2411 " [etc.]\n"
2412 "\n"
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:109
2417 msgid ""
2418 "Note that while this is useful for displaying a directory, do not try "
2419 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2420 "instead."
2421 msgstr ""
2422
2423 #. type: =head2
2424 #: ../cat/virt-ls.pod:113
2425 msgid "RECURSIVE LISTING"
2426 msgstr ""
2427
2428 #. type: textblock
2429 #: ../cat/virt-ls.pod:115
2430 msgid ""
2431 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2432 "and directories recursively:"
2433 msgstr ""
2434
2435 #. type: verbatim
2436 #: ../cat/virt-ls.pod:118
2437 #, no-wrap
2438 msgid ""
2439 " $ virt-ls -R -d guest /tmp\n"
2440 " foo\n"
2441 " foo/bar\n"
2442 " [etc.]\n"
2443 "\n"
2444 msgstr ""
2445
2446 #. type: textblock
2447 #: ../cat/virt-ls.pod:123
2448 msgid ""
2449 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2450 "converts C<\\0> characters to C<\\n>."
2451 msgstr ""
2452
2453 #. type: =head2
2454 #: ../cat/virt-ls.pod:126
2455 msgid "RECURSIVE LONG LISTING"
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:128
2460 msgid ""
2461 "Using I<-lR> options together changes the output to display directories "
2462 "recursively, with file stats, and optionally other features such as "
2463 "checksums and extended attributes."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:132
2468 msgid ""
2469 "Most of the interesting features of C<virt-ls> are only available when using "
2470 "I<-lR> mode."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:135
2475 msgid ""
2476 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2477 "you cannot use the output in another program (because filenames can contain "
2478 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2479 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2480 "on you by creating filenames with embedded newline characters.  To B<safely> "
2481 "parse the output in another program, use the I<--csv> (Comma-Separated "
2482 "Values) option."
2483 msgstr ""
2484
2485 #. type: textblock
2486 #: ../cat/virt-ls.pod:143
2487 msgid ""
2488 "Note that this output format is completely unrelated to the C<ls -lR> "
2489 "command."
2490 msgstr ""
2491
2492 #. type: verbatim
2493 #: ../cat/virt-ls.pod:146
2494 #, no-wrap
2495 msgid ""
2496 " $ virt-ls -lR -d guest /bin\n"
2497 " d 0555       4096 /bin\n"
2498 " - 0755        123 /bin/alsaunmute\n"
2499 " - 0755      28328 /bin/arch\n"
2500 " l 0777          4 /bin/awk -> gawk\n"
2501 " - 0755      27216 /bin/basename\n"
2502 " - 0755     943360 /bin/bash\n"
2503 " [etc.]\n"
2504 "\n"
2505 msgstr ""
2506
2507 #. type: textblock
2508 #: ../cat/virt-ls.pod:155
2509 msgid "These basic fields are always shown:"
2510 msgstr ""
2511
2512 #. type: =item
2513 #: ../cat/virt-ls.pod:159
2514 msgid "type"
2515 msgstr ""
2516
2517 #. type: textblock
2518 #: ../cat/virt-ls.pod:161
2519 msgid ""
2520 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2521 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2522 "link), C<s> (socket) or C<u> (unknown)."
2523 msgstr ""
2524
2525 #. type: =item
2526 #: ../cat/virt-ls.pod:171
2527 msgid "permissions"
2528 msgstr ""
2529
2530 #. type: textblock
2531 #: ../cat/virt-ls.pod:173
2532 msgid "The Unix permissions, displayed as a 4 digit octal number."
2533 msgstr ""
2534
2535 #. type: =item
2536 #: ../cat/virt-ls.pod:175
2537 msgid "size"
2538 msgstr ""
2539
2540 #. type: textblock
2541 #: ../cat/virt-ls.pod:177
2542 msgid ""
2543 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2544 "readable> option is given, in which case this is shown as a human-readable "
2545 "number."
2546 msgstr ""
2547
2548 #. type: =head2
2549 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2550 msgid "path"
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../cat/virt-ls.pod:183
2555 msgid "The full path of the file or directory."
2556 msgstr ""
2557
2558 #. type: =item
2559 #: ../cat/virt-ls.pod:185
2560 msgid "link"
2561 msgstr ""
2562
2563 #. type: textblock
2564 #: ../cat/virt-ls.pod:187
2565 msgid "For symbolic links only, the link target."
2566 msgstr ""
2567
2568 #. type: textblock
2569 #: ../cat/virt-ls.pod:191
2570 msgid ""
2571 "In I<-lR> mode, additional command line options enable the display of more "
2572 "fields."
2573 msgstr ""
2574
2575 #. type: textblock
2576 #: ../cat/virt-ls.pod:194
2577 msgid ""
2578 "With the I<--uids> flag, these additional fields are displayed before the "
2579 "path:"
2580 msgstr ""
2581
2582 #. type: =item
2583 #: ../cat/virt-ls.pod:199
2584 msgid "uid"
2585 msgstr ""
2586
2587 #. type: =item
2588 #: ../cat/virt-ls.pod:201
2589 msgid "gid"
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../cat/virt-ls.pod:203
2594 msgid ""
2595 "The UID and GID of the owner of the file (displayed numerically).  Note "
2596 "these only make sense in the context of a Unix-like guest."
2597 msgstr ""
2598
2599 #. type: textblock
2600 #: ../cat/virt-ls.pod:208
2601 msgid "With the I<--times> flag, these additional fields are displayed:"
2602 msgstr ""
2603
2604 #. type: =item
2605 #: ../cat/virt-ls.pod:212
2606 msgid "atime"
2607 msgstr ""
2608
2609 #. type: textblock
2610 #: ../cat/virt-ls.pod:214
2611 msgid "The time of last access."
2612 msgstr ""
2613
2614 #. type: =item
2615 #: ../cat/virt-ls.pod:216
2616 msgid "mtime"
2617 msgstr ""
2618
2619 #. type: textblock
2620 #: ../cat/virt-ls.pod:218
2621 msgid "The time of last modification."
2622 msgstr ""
2623
2624 #. type: =item
2625 #: ../cat/virt-ls.pod:220
2626 msgid "ctime"
2627 msgstr ""
2628
2629 #. type: textblock
2630 #: ../cat/virt-ls.pod:222
2631 msgid "The time of last status change."
2632 msgstr ""
2633
2634 #. type: textblock
2635 #: ../cat/virt-ls.pod:226
2636 msgid ""
2637 "The time fields are displayed as string dates and times, unless one of the "
2638 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../cat/virt-ls.pod:229
2643 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2644 msgstr ""
2645
2646 #. type: =item
2647 #: ../cat/virt-ls.pod:233
2648 msgid "device"
2649 msgstr ""
2650
2651 #. type: textblock
2652 #: ../cat/virt-ls.pod:235
2653 msgid ""
2654 "The device containing the file (displayed as major:minor).  This may not "
2655 "match devices as known to the guest."
2656 msgstr ""
2657
2658 #. type: =item
2659 #: ../cat/virt-ls.pod:238
2660 msgid "inode"
2661 msgstr ""
2662
2663 #. type: textblock
2664 #: ../cat/virt-ls.pod:240
2665 msgid "The inode number."
2666 msgstr ""
2667
2668 #. type: =item
2669 #: ../cat/virt-ls.pod:242
2670 msgid "nlink"
2671 msgstr ""
2672
2673 #. type: textblock
2674 #: ../cat/virt-ls.pod:244
2675 msgid "The number of hard links."
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../cat/virt-ls.pod:246
2680 msgid "rdev"
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:248
2685 msgid ""
2686 "For block and char special files, the device (displayed as major:minor)."
2687 msgstr ""
2688
2689 #. type: =item
2690 #: ../cat/virt-ls.pod:251
2691 msgid "blocks"
2692 msgstr ""
2693
2694 #. type: textblock
2695 #: ../cat/virt-ls.pod:253
2696 msgid "The number of 512 byte blocks allocated to the file."
2697 msgstr ""
2698
2699 #. type: textblock
2700 #: ../cat/virt-ls.pod:257
2701 msgid ""
2702 "With the I<--checksum> flag, the checksum of the file contents is shown "
2703 "(only for regular files).  Computing file checksums can take a considerable "
2704 "amount of time."
2705 msgstr ""
2706
2707 #. type: =item
2708 #: ../cat/virt-ls.pod:280
2709 msgid "B<--checksum>"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../cat/virt-ls.pod:282
2714 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../cat/virt-ls.pod:284
2719 msgid ""
2720 "Display checksum over file contents for regular files.  With no argument, "
2721 "this defaults to using I<md5>.  Using an argument, you can select the "
2722 "checksum type to use."
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2727 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2728 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2729 msgid ""
2730 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2731 "LISTING> above."
2732 msgstr ""
2733
2734 #. type: textblock
2735 #: ../cat/virt-ls.pod:316
2736 msgid ""
2737 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2738 "so you cannot see what you are typing.  If you are not worried about Tempest "
2739 "attacks and there is no one else in the room you can specify this flag to "
2740 "see what you are typing."
2741 msgstr ""
2742
2743 #. type: =item
2744 #: ../cat/virt-ls.pod:321
2745 msgid "B<--extra-stats>"
2746 msgstr ""
2747
2748 #. type: textblock
2749 #: ../cat/virt-ls.pod:323
2750 msgid "Display extra stats."
2751 msgstr ""
2752
2753 #. type: verbatim
2754 #: ../cat/virt-ls.pod:339
2755 #, no-wrap
2756 msgid ""
2757 " virt-ls --format=raw -a disk.img /dir\n"
2758 "\n"
2759 msgstr ""
2760
2761 #. type: verbatim
2762 #: ../cat/virt-ls.pod:343
2763 #, no-wrap
2764 msgid ""
2765 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2766 "\n"
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../cat/virt-ls.pod:356
2771 msgid "Display file sizes in human-readable format."
2772 msgstr ""
2773
2774 #. type: =item
2775 #: ../cat/virt-ls.pod:370
2776 msgid "B<-R>"
2777 msgstr ""
2778
2779 #. type: =item
2780 #: ../cat/virt-ls.pod:372
2781 msgid "B<--recursive>"
2782 msgstr ""
2783
2784 #. type: textblock
2785 #: ../cat/virt-ls.pod:374
2786 msgid ""
2787 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2788 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2789 "LISTING>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../cat/virt-ls.pod:378
2794 msgid ""
2795 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2796 "LONG LISTING>."
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../cat/virt-ls.pod:381
2801 msgid ""
2802 "C<virt-ls -R> produces a recursive list of files starting at the named "
2803 "directory.  See L</RECURSIVE LISTING>."
2804 msgstr ""
2805
2806 #. type: textblock
2807 #: ../cat/virt-ls.pod:384
2808 msgid ""
2809 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2810 "parsed.  See L</RECURSIVE LONG LISTING>."
2811 msgstr ""
2812
2813 #. type: =item
2814 #: ../cat/virt-ls.pod:387
2815 msgid "B<--times>"
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../cat/virt-ls.pod:389
2820 msgid "Display time fields."
2821 msgstr ""
2822
2823 #. type: =item
2824 #: ../cat/virt-ls.pod:394
2825 msgid "B<--time-days>"
2826 msgstr ""
2827
2828 #. type: textblock
2829 #: ../cat/virt-ls.pod:396
2830 msgid "Display time fields as days before now (negative if in the future)."
2831 msgstr ""
2832
2833 #. type: textblock
2834 #: ../cat/virt-ls.pod:398
2835 msgid ""
2836 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2837 "of the file is between 0 and 86399 seconds."
2838 msgstr ""
2839
2840 #. type: =item
2841 #: ../cat/virt-ls.pod:404
2842 msgid "B<--time-relative>"
2843 msgstr ""
2844
2845 #. type: textblock
2846 #: ../cat/virt-ls.pod:406
2847 msgid "Display time fields as seconds before now (negative if in the future)."
2848 msgstr ""
2849
2850 #. type: =item
2851 #: ../cat/virt-ls.pod:411
2852 msgid "B<--time-t>"
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:413
2857 msgid "Display time fields as seconds since the Unix epoch."
2858 msgstr ""
2859
2860 #. type: =item
2861 #: ../cat/virt-ls.pod:418
2862 msgid "B<--uids>"
2863 msgstr ""
2864
2865 #. type: textblock
2866 #: ../cat/virt-ls.pod:420
2867 msgid "Display UID and GID fields."
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../cat/virt-ls.pod:445
2872 msgid "Previous versions of virt-ls allowed you to write either:"
2873 msgstr ""
2874
2875 #. type: verbatim
2876 #: ../cat/virt-ls.pod:447
2877 #, no-wrap
2878 msgid ""
2879 " virt-ls disk.img [disk.img ...] /dir\n"
2880 "\n"
2881 msgstr ""
2882
2883 #. type: verbatim
2884 #: ../cat/virt-ls.pod:451
2885 #, no-wrap
2886 msgid ""
2887 " virt-ls guestname /dir\n"
2888 "\n"
2889 msgstr ""
2890
2891 #. type: textblock
2892 #: ../cat/virt-ls.pod:497
2893 msgid ""
2894 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2895 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2896 "L<http://libguestfs.org/>."
2897 msgstr ""
2898
2899 #. type: textblock
2900 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2901 #: ../rescue/virt-rescue.pod:302
2902 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2903 msgstr ""
2904
2905 #. type: textblock
2906 #: ../clone/virt-sysprep.pod:5
2907 msgid ""
2908 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2909 msgstr ""
2910
2911 #. type: verbatim
2912 #: ../clone/virt-sysprep.pod:9
2913 #, no-wrap
2914 msgid ""
2915 " virt-sysprep [--options] -d domname\n"
2916 "\n"
2917 msgstr ""
2918
2919 #. type: verbatim
2920 #: ../clone/virt-sysprep.pod:11
2921 #, no-wrap
2922 msgid ""
2923 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2924 "\n"
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../clone/virt-sysprep.pod:15
2929 msgid ""
2930 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2931 "can be made from it.  Steps in this process include removing SSH host keys, "
2932 "removing persistent network MAC configuration, and removing user accounts.  "
2933 "Each step can be enabled or disabled as required."
2934 msgstr ""
2935
2936 #. type: textblock
2937 #: ../clone/virt-sysprep.pod:21
2938 msgid ""
2939 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2940 "customization by the system administrator."
2941 msgstr ""
2942
2943 #. type: textblock
2944 #: ../clone/virt-sysprep.pod:24
2945 msgid ""
2946 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2947 "be shut down.  If you want to preserve the existing contents of the guest, "
2948 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../clone/virt-sysprep.pod:29
2953 msgid ""
2954 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2955 "recommend that you don't.  The time you might want to run it as root is when "
2956 "you need root in order to access the disk image, but even in this case it "
2957 "would be better to change the permissions on the disk image to be writable "
2958 "as the non-root user running virt-sysprep."
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../clone/virt-sysprep.pod:35
2963 msgid ""
2964 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2965 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2966 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2967 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2968 "Windows sysprepping in a future version, and we already have code to do it."
2969 msgstr ""
2970
2971 #. type: =item
2972 #: ../clone/virt-sysprep.pod:76
2973 msgid "B<--enable=...>"
2974 msgstr ""
2975
2976 #. type: textblock
2977 #: ../clone/virt-sysprep.pod:78
2978 msgid ""
2979 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2980 "operations, for example:"
2981 msgstr ""
2982
2983 #. type: verbatim
2984 #: ../clone/virt-sysprep.pod:81
2985 #, no-wrap
2986 msgid ""
2987 " --enable=ssh-hostkeys,udev-persistent-net\n"
2988 "\n"
2989 msgstr ""
2990
2991 #. type: textblock
2992 #: ../clone/virt-sysprep.pod:83
2993 msgid ""
2994 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../clone/virt-sysprep.pod:85
2999 msgid ""
3000 "If the I<--enable> option is not given, then we default to trying all "
3001 "possible sysprep operations.  But some sysprep operations are skipped for "
3002 "some guest types."
3003 msgstr ""
3004
3005 #. type: textblock
3006 #: ../clone/virt-sysprep.pod:89
3007 msgid ""
3008 "Use I<--list-operations> to list operations supported by a particular "
3009 "version of virt-sysprep."
3010 msgstr ""
3011
3012 #. type: textblock
3013 #: ../clone/virt-sysprep.pod:92
3014 msgid ""
3015 "See L</OPERATIONS> below for a list and an explanation of each operation."
3016 msgstr ""
3017
3018 #. type: verbatim
3019 #: ../clone/virt-sysprep.pod:106
3020 #, no-wrap
3021 msgid ""
3022 " virt-sysprep --format=raw -a disk.img\n"
3023 "\n"
3024 msgstr ""
3025
3026 #. type: verbatim
3027 #: ../clone/virt-sysprep.pod:110
3028 #, no-wrap
3029 msgid ""
3030 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3031 "\n"
3032 msgstr ""
3033
3034 #. type: =item
3035 #: ../clone/virt-sysprep.pod:119
3036 msgid "B<--hostname> newhostname"
3037 msgstr ""
3038
3039 #. type: textblock
3040 #: ../clone/virt-sysprep.pod:121
3041 msgid ""
3042 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3043 "defaults to C<localhost.localdomain>."
3044 msgstr ""
3045
3046 #. type: =item
3047 #: ../clone/virt-sysprep.pod:124
3048 msgid "B<--list-operations>"
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:126
3053 msgid "List the operations supported by the virt-sysprep program."
3054 msgstr ""
3055
3056 #. type: =item
3057 #: ../clone/virt-sysprep.pod:128
3058 msgid "B<--selinux-relabel>"
3059 msgstr ""
3060
3061 #. type: =item
3062 #: ../clone/virt-sysprep.pod:130
3063 msgid "B<--no-selinux-relabel>"
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../clone/virt-sysprep.pod:132
3068 msgid ""
3069 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3070 "I<--no-selinux-relabel> disables relabelling."
3071 msgstr ""
3072
3073 #. type: textblock
3074 #: ../clone/virt-sysprep.pod:135
3075 msgid ""
3076 "The default is to try to detect if SELinux relabelling is required.  See L</"
3077 "SELINUX RELABELLING> below for more details."
3078 msgstr ""
3079
3080 #. type: =head1
3081 #: ../clone/virt-sysprep.pod:156
3082 msgid "OPERATIONS"
3083 msgstr ""
3084
3085 #. type: textblock
3086 #: ../clone/virt-sysprep.pod:158
3087 msgid ""
3088 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3089 "enabled>, although some are skipped depending on the type of guest."
3090 msgstr ""
3091
3092 #. type: textblock
3093 #: ../clone/virt-sysprep.pod:162
3094 msgid ""
3095 "Operations can be individually enabled using the I<--enable> option.  Use a "
3096 "comma-separated list, for example:"
3097 msgstr ""
3098
3099 #. type: verbatim
3100 #: ../clone/virt-sysprep.pod:165
3101 #, no-wrap
3102 msgid ""
3103 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3104 "\n"
3105 msgstr ""
3106
3107 #. type: textblock
3108 #: ../clone/virt-sysprep.pod:167
3109 msgid ""
3110 "To list the operations supported by the current version of virt-sysprep, use "
3111 "I<--list-operations>."
3112 msgstr ""
3113
3114 #. type: textblock
3115 #: ../clone/virt-sysprep.pod:170
3116 msgid ""
3117 "Future versions of virt-sysprep may add more operations.  If you are using "
3118 "virt-sysprep and want predictable behaviour, specify only the operations "
3119 "that you want to have enabled."
3120 msgstr ""
3121
3122 #. type: =head2
3123 #: ../clone/virt-sysprep.pod:174
3124 msgid "cron-spool"
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../clone/virt-sysprep.pod:176
3129 msgid "Remove user at-jobs and cron-jobs."
3130 msgstr ""
3131
3132 #. type: =head2
3133 #: ../clone/virt-sysprep.pod:178
3134 msgid "dhcp-client-state"
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:180
3139 msgid "Remove DHCP client leases."
3140 msgstr ""
3141
3142 #. type: =head2
3143 #: ../clone/virt-sysprep.pod:182
3144 msgid "dhcp-server-state"
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../clone/virt-sysprep.pod:184
3149 msgid "Remove DHCP server leases."
3150 msgstr ""
3151
3152 #. type: =head2
3153 #: ../clone/virt-sysprep.pod:186
3154 msgid "hostname"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../clone/virt-sysprep.pod:188
3159 msgid ""
3160 "Changes the hostname of the guest to the value given in the I<--hostname> "
3161 "parameter."
3162 msgstr ""
3163
3164 #. type: textblock
3165 #: ../clone/virt-sysprep.pod:191
3166 msgid ""
3167 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3168 "C<localhost.localdomain>."
3169 msgstr ""
3170
3171 #. type: =head2
3172 #: ../clone/virt-sysprep.pod:194
3173 msgid "logfiles"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:196
3178 msgid "Remove many log files."
3179 msgstr ""
3180
3181 #. type: =head2
3182 #: ../clone/virt-sysprep.pod:198
3183 msgid "mail-spool"
3184 msgstr ""
3185
3186 #. type: textblock
3187 #: ../clone/virt-sysprep.pod:200
3188 msgid "Remove email from the local mail spool directory."
3189 msgstr ""
3190
3191 #. type: =head2
3192 #: ../clone/virt-sysprep.pod:202
3193 msgid "net-hwaddr"
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../clone/virt-sysprep.pod:204
3198 msgid ""
3199 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3200 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3201 msgstr ""
3202
3203 #. type: =head2
3204 #: ../clone/virt-sysprep.pod:207
3205 msgid "random-seed"
3206 msgstr ""
3207
3208 #. type: textblock
3209 #: ../clone/virt-sysprep.pod:209
3210 msgid ""
3211 "Write some random bytes from the host into the random seed file of the guest."
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../clone/virt-sysprep.pod:212
3216 msgid "See L</RANDOM SEED> below."
3217 msgstr ""
3218
3219 #. type: =head2
3220 #: ../clone/virt-sysprep.pod:214
3221 msgid "rhn-systemid"
3222 msgstr ""
3223
3224 #. type: textblock
3225 #: ../clone/virt-sysprep.pod:216
3226 msgid "Remove the RHN system ID."
3227 msgstr ""
3228
3229 #. type: =head2
3230 #: ../clone/virt-sysprep.pod:218
3231 msgid "smolt-uuid"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:220
3236 msgid "Remove the Smolt hardware UUID."
3237 msgstr ""
3238
3239 #. type: =head2
3240 #: ../clone/virt-sysprep.pod:222
3241 msgid "ssh-hostkeys"
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../clone/virt-sysprep.pod:224
3246 msgid "Remove the SSH host keys in the guest."
3247 msgstr ""
3248
3249 #. type: textblock
3250 #: ../clone/virt-sysprep.pod:226
3251 msgid ""
3252 "The SSH host keys are regenerated (differently) next time the guest is "
3253 "booted."
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../clone/virt-sysprep.pod:229
3258 msgid ""
3259 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3260 "stark warning about the host key changing:"
3261 msgstr ""
3262
3263 #. type: verbatim
3264 #: ../clone/virt-sysprep.pod:232
3265 #, no-wrap
3266 msgid ""
3267 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3268 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3269 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3270 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3271 "\n"
3272 msgstr ""
3273
3274 #. type: =head2
3275 #: ../clone/virt-sysprep.pod:237
3276 msgid "udev-persistent-net"
3277 msgstr ""
3278
3279 #. type: textblock
3280 #: ../clone/virt-sysprep.pod:239
3281 msgid ""
3282 "Remove udev persistent net rules which map the guest's existing MAC address "
3283 "to a fixed ethernet device (eg. eth0)."
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../clone/virt-sysprep.pod:242
3288 msgid ""
3289 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3290 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3291 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3292 "Erasing the udev persistent net rules avoids this."
3293 msgstr ""
3294
3295 #. type: =head2
3296 #: ../clone/virt-sysprep.pod:247
3297 msgid "utmp"
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:249
3302 msgid "Remove the utmp file."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../clone/virt-sysprep.pod:251
3307 msgid ""
3308 "This records who is currently logged in on a machine.  In modern Linux "
3309 "distros it is stored in a ramdisk and hence not part of the virtual "
3310 "machine's disk, but it was stored on disk in older distros."
3311 msgstr ""
3312
3313 #. type: =head2
3314 #: ../clone/virt-sysprep.pod:255
3315 msgid "yum-uuid"
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../clone/virt-sysprep.pod:257
3320 msgid "Remove the yum UUID."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../clone/virt-sysprep.pod:259
3325 msgid ""
3326 "Yum creates a fresh UUID the next time it runs when it notices that the "
3327 "original UUID has been erased."
3328 msgstr ""
3329
3330 #. type: =head1
3331 #: ../clone/virt-sysprep.pod:262
3332 msgid "COPYING AND CLONING"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:264
3337 msgid ""
3338 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3339 "prepare a template from which guests can be cloned.  There are many "
3340 "different ways to achieve this using the virt tools, and this section is "
3341 "just an introduction."
3342 msgstr ""
3343
3344 #. type: textblock
3345 #: ../clone/virt-sysprep.pod:269
3346 msgid "A virtual machine (when switched off) consists of two parts:"
3347 msgstr ""
3348
3349 #. type: =item
3350 #: ../clone/virt-sysprep.pod:273
3351 msgid "I<configuration>"
3352 msgstr ""
3353
3354 #. type: textblock
3355 #: ../clone/virt-sysprep.pod:275
3356 msgid ""
3357 "The configuration or description of the guest.  eg. The libvirt XML (see "
3358 "C<virsh dumpxml>), the running configuration of the guest, or another "
3359 "external format like OVF."
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:279
3364 msgid "Some configuration items that might need to be changed:"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:285
3369 msgid "name"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3374 msgid "UUID"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../clone/virt-sysprep.pod:293
3379 msgid "path to block device(s)"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../clone/virt-sysprep.pod:297
3384 msgid "network card MAC address"
3385 msgstr ""
3386
3387 #. type: =item
3388 #: ../clone/virt-sysprep.pod:301
3389 msgid "I<block device(s)>"
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../clone/virt-sysprep.pod:303
3394 msgid ""
3395 "One or more hard disk images, themselves containing files, directories, "
3396 "applications, kernels, configuration, etc."
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../clone/virt-sysprep.pod:306
3401 msgid "Some things inside the block devices that might need to be changed:"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../clone/virt-sysprep.pod:312
3406 msgid "hostname and other net configuration"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:320
3411 msgid "SSH host keys"
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../clone/virt-sysprep.pod:324
3416 msgid "Windows unique security ID (SID)"
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../clone/virt-sysprep.pod:328
3421 msgid "Puppet registration"
3422 msgstr ""
3423
3424 #. type: =head2
3425 #: ../clone/virt-sysprep.pod:334
3426 msgid "COPYING THE BLOCK DEVICE"
3427 msgstr ""
3428
3429 #. type: textblock
3430 #: ../clone/virt-sysprep.pod:336
3431 msgid ""
3432 "Starting with an original guest, you probably wish to copy the guest block "
3433 "device and its configuration to make a template.  Then once you are happy "
3434 "with the template, you will want to make many clones from it."
3435 msgstr ""
3436
3437 #. type: verbatim
3438 #: ../clone/virt-sysprep.pod:341
3439 #, no-wrap
3440 msgid ""
3441 "                        virt-sysprep\n"
3442 "                             |\n"
3443 "                             v\n"
3444 " original guest --------> template ---------->\n"
3445 "                                      \\------> cloned\n"
3446 "                                       \\-----> guests\n"
3447 "                                        \\---->\n"
3448 "\n"
3449 msgstr ""
3450
3451 #. type: textblock
3452 #: ../clone/virt-sysprep.pod:349
3453 msgid ""
3454 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3455 "L<dd(1)>."
3456 msgstr ""
3457
3458 #. type: verbatim
3459 #: ../clone/virt-sysprep.pod:352
3460 #, no-wrap
3461 msgid ""
3462 "                   dd                 dd\n"
3463 " original guest --------> template ---------->\n"
3464 "                                      \\------> cloned\n"
3465 "                                       \\-----> guests\n"
3466 "                                        \\---->\n"
3467 "\n"
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../clone/virt-sysprep.pod:358
3472 msgid "There are some smarter (and faster) ways too:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../clone/virt-sysprep.pod:364
3477 #, no-wrap
3478 msgid ""
3479 "                          snapshot\n"
3480 "                template ---------->\n"
3481 "                            \\------> cloned\n"
3482 "                             \\-----> guests\n"
3483 "                              \\---->\n"
3484 "\n"
3485 msgstr ""
3486
3487 #. type: textblock
3488 #: ../clone/virt-sysprep.pod:370
3489 msgid ""
3490 "Use the block device as a backing file and create a snapshot on top for each "
3491 "guest.  The advantage is that you don't need to copy the block device (very "
3492 "fast) and only changes are stored (less storage required)."
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:375
3497 msgid ""
3498 "Note that writing to the backing file once you have created guests on top of "
3499 "it is not possible: you will corrupt the guests."
3500 msgstr ""
3501
3502 #. type: textblock
3503 #: ../clone/virt-sysprep.pod:378
3504 msgid ""
3505 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3506 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3507 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3508 "also create cheap snapshots from files or LUNs."
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../clone/virt-sysprep.pod:386
3513 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3514 msgstr ""
3515
3516 #. type: textblock
3517 #: ../clone/virt-sysprep.pod:390
3518 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3519 msgstr ""
3520
3521 #. type: =head2
3522 #: ../clone/virt-sysprep.pod:394
3523 msgid "VIRT-CLONE"
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../clone/virt-sysprep.pod:396
3528 msgid ""
3529 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3530 "and/or modify the external libvirt configuration of a guest.  It will reset "
3531 "the name, UUID and MAC address of the guest in the libvirt XML."
3532 msgstr ""
3533
3534 #. type: textblock
3535 #: ../clone/virt-sysprep.pod:401
3536 msgid ""
3537 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3538 "image.  This was the original motivation to write virt-sysprep."
3539 msgstr ""
3540
3541 #. type: =head2
3542 #: ../clone/virt-sysprep.pod:404
3543 msgid "SPARSIFY"
3544 msgstr ""
3545
3546 #. type: verbatim
3547 #: ../clone/virt-sysprep.pod:406
3548 #, no-wrap
3549 msgid ""
3550 "              virt-sparsify\n"
3551 " original guest --------> template\n"
3552 "\n"
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../clone/virt-sysprep.pod:409
3557 msgid ""
3558 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3559 "it easier to compress and/or faster to copy."
3560 msgstr ""
3561
3562 #. type: textblock
3563 #: ../clone/virt-sysprep.pod:412
3564 msgid ""
3565 "Notice that since virt-sparsify also copies the image, you can use it to "
3566 "make the initial copy (instead of C<dd>)."
3567 msgstr ""
3568
3569 #. type: =head2
3570 #: ../clone/virt-sysprep.pod:415
3571 msgid "RESIZE"
3572 msgstr ""
3573
3574 #. type: verbatim
3575 #: ../clone/virt-sysprep.pod:417
3576 #, no-wrap
3577 msgid ""
3578 "                         virt-resize\n"
3579 "                template ---------->\n"
3580 "                            \\------> cloned\n"
3581 "                             \\-----> guests\n"
3582 "                              \\---->\n"
3583 "\n"
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../clone/virt-sysprep.pod:423
3588 msgid ""
3589 "If you want to give people cloned guests, but let them pick the size of the "
3590 "guest themselves (eg. depending on how much they are prepared to pay for "
3591 "disk space), then instead of copying the template, you can run L<virt-resize"
3592 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3593 "guests from a template."
3594 msgstr ""
3595
3596 #. type: =head1
3597 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3598 msgid "SECURITY"
3599 msgstr ""
3600
3601 #. type: textblock
3602 #: ../clone/virt-sysprep.pod:431
3603 msgid ""
3604 "Although virt-sysprep removes some sensitive information from the guest, it "
3605 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3606 "above, and the implementation of the operations in the shell script.  You "
3607 "should also examine the guest afterwards."
3608 msgstr ""
3609
3610 #. type: textblock
3611 #: ../clone/virt-sysprep.pod:436
3612 msgid ""
3613 "Sensitive files are simply removed.  The data they contained may still exist "
3614 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3615 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3616 "(1)> command to get rid of deleted content in directory entries and inodes."
3617 msgstr ""
3618
3619 #. type: =head2
3620 #: ../clone/virt-sysprep.pod:442
3621 msgid "RANDOM SEED"
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../clone/virt-sysprep.pod:444
3626 msgid "I<(This section applies to Linux guests only)>"
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../clone/virt-sysprep.pod:446
3631 msgid ""
3632 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3633 "from the host into the guest's random seed file."
3634 msgstr ""
3635
3636 #. type: textblock
3637 #: ../clone/virt-sysprep.pod:449
3638 msgid ""
3639 "If this is just done once and the guest is cloned from the same template, "
3640 "then each guest will start with the same entropy, and things like SSH host "
3641 "keys and TCP sequence numbers may be predictable."
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../clone/virt-sysprep.pod:453
3646 msgid ""
3647 "Therefore you should arrange to add more randomness I<after> cloning from a "
3648 "template too, which can be done by just enabling the C<random-seed> "
3649 "operation:"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../clone/virt-sysprep.pod:457
3654 #, no-wrap
3655 msgid ""
3656 " cp template.img newguest.img\n"
3657 " virt-sysprep --enable=random-seed -a newguest.img\n"
3658 "\n"
3659 msgstr ""
3660
3661 #. type: =head2
3662 #: ../clone/virt-sysprep.pod:460
3663 msgid "SELINUX RELABELLING"
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../clone/virt-sysprep.pod:462
3668 msgid "I<(This section applies to Linux guests using SELinux only)>"
3669 msgstr ""
3670
3671 #. type: textblock
3672 #: ../clone/virt-sysprep.pod:464
3673 msgid ""
3674 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3675 "autorelabel> so that these will be correctly labelled by SELinux the next "
3676 "time the guest is booted.  This process interrupts boot and can take some "
3677 "time."
3678 msgstr ""
3679
3680 #. type: textblock
3681 #: ../clone/virt-sysprep.pod:469
3682 msgid ""
3683 "You can force relabelling for all guests by supplying the I<--selinux-"
3684 "relabel> option."
3685 msgstr ""
3686
3687 #. type: textblock
3688 #: ../clone/virt-sysprep.pod:472
3689 msgid ""
3690 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3691 "relabel> option."
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../clone/virt-sysprep.pod:484
3696 msgid "This program returns 0 on success, or 1 if there was an error."
3697 msgstr ""
3698
3699 #. type: textblock
3700 #: ../clone/virt-sysprep.pod:488
3701 msgid ""
3702 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3703 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3704 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3705 msgstr ""
3706
3707 #. type: textblock
3708 #: ../df/virt-df.pod:5
3709 msgid "virt-df - Display free space on virtual filesystems"
3710 msgstr ""
3711
3712 #. type: verbatim
3713 #: ../df/virt-df.pod:9
3714 #, no-wrap
3715 msgid ""
3716 " virt-df [--options]\n"
3717 "\n"
3718 msgstr ""
3719
3720 #. type: verbatim
3721 #: ../df/virt-df.pod:11
3722 #, no-wrap
3723 msgid ""
3724 " virt-df [--options] -d domname\n"
3725 "\n"
3726 msgstr ""
3727
3728 #. type: verbatim
3729 #: ../df/virt-df.pod:13
3730 #, no-wrap
3731 msgid ""
3732 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3733 "\n"
3734 msgstr ""
3735
3736 #. type: verbatim
3737 #: ../df/virt-df.pod:17
3738 #, no-wrap
3739 msgid ""
3740 " virt-df [--options] domname\n"
3741 "\n"
3742 msgstr ""
3743
3744 #. type: verbatim
3745 #: ../df/virt-df.pod:19
3746 #, no-wrap
3747 msgid ""
3748 " virt-df [--options] disk.img [disk.img ...]\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: textblock
3753 #: ../df/virt-df.pod:23
3754 msgid ""
3755 "C<virt-df> is a command line tool to display free space on virtual machine "
3756 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3757 "allocated to a virtual machine, but can look inside disk images to see how "
3758 "much space is really being used."
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../df/virt-df.pod:28
3763 msgid ""
3764 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3765 "to get a list of all active and inactive guests, and performs a C<df>-type "
3766 "operation on each one in turn, printing out the results."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../df/virt-df.pod:32
3771 msgid ""
3772 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3773 "type operation on either the single named libvirt domain, or on the disk "
3774 "image(s) listed on the command line (which must all belong to a single VM).  "
3775 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3776 "guest>.  If you want to run on multiple guests, then you have to invoke "
3777 "C<virt-df> multiple times."
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../df/virt-df.pod:39
3782 msgid ""
3783 "Use the I<--csv> option to get a format which can be easily parsed by other "
3784 "programs.  Other options are similar to the standard L<df(1)> command."
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../df/virt-df.pod:45
3789 msgid ""
3790 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3791 "output human-readable:"
3792 msgstr ""
3793
3794 #. type: verbatim
3795 #: ../df/virt-df.pod:48
3796 #, no-wrap
3797 msgid ""
3798 " # virt-df -d F14x64 -h\n"
3799 " Filesystem                       Size     Used  Available  Use%\n"
3800 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3801 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3802 "\n"
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../df/virt-df.pod:53
3807 msgid "Show disk usage for a disk image file called C<test.img>:"
3808 msgstr ""
3809
3810 #. type: verbatim
3811 #: ../df/virt-df.pod:55
3812 #, no-wrap
3813 msgid ""
3814 " $ virt-df -a test1.img\n"
3815 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3816 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: verbatim
3821 #: ../df/virt-df.pod:112
3822 #, no-wrap
3823 msgid ""
3824 " virt-df --format=raw -a disk.img\n"
3825 "\n"
3826 msgstr ""
3827
3828 #. type: verbatim
3829 #: ../df/virt-df.pod:116
3830 #, no-wrap
3831 msgid ""
3832 " virt-df --format=raw -a disk.img --format -a another.img\n"
3833 "\n"
3834 msgstr ""
3835
3836 #. type: textblock
3837 #: ../df/virt-df.pod:129
3838 msgid "Print sizes in human-readable format."
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../df/virt-df.pod:131
3843 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3844 msgstr ""
3845
3846 #. type: =item
3847 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3848 msgid "B<-i>"
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../df/virt-df.pod:135
3853 msgid "B<--inodes>"
3854 msgstr ""
3855
3856 #. type: textblock
3857 #: ../df/virt-df.pod:137
3858 msgid "Print inodes instead of blocks."
3859 msgstr ""
3860
3861 #. type: =item
3862 #: ../df/virt-df.pod:139
3863 msgid "B<--one-per-guest>"
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../df/virt-df.pod:141
3868 msgid ""
3869 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3870 "disks from several guests to a single libguestfs appliance."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../df/virt-df.pod:144
3875 msgid "You might use this option in the following circumstances:"
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../df/virt-df.pod:150
3880 msgid ""
3881 "If you think an untrusted guest might actively try to exploit the libguestfs "
3882 "appliance kernel, then this prevents one guest from interfering with the "
3883 "stats printed for another guest."
3884 msgstr ""
3885
3886 #. type: textblock
3887 #: ../df/virt-df.pod:156
3888 msgid ""
3889 "If the kernel has a bug which stops it from accessing a filesystem in one "
3890 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3891 "and report stats for further guests."
3892 msgstr ""
3893
3894 #. type: textblock
3895 #: ../df/virt-df.pod:165
3896 msgid ""
3897 "Print UUIDs instead of names.  This is useful for following a guest even "
3898 "when the guest is migrated or renamed, or when two guests happen to have the "
3899 "same name."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../df/virt-df.pod:169
3904 msgid ""
3905 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3906 "images, we still print the disk image name even when this option is "
3907 "specified."
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../df/virt-df.pod:229
3912 msgid ""
3913 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3914 "libguestfs.org/>."
3915 msgstr ""
3916
3917 #. type: textblock
3918 #: ../edit/virt-edit.pod:5
3919 msgid "virt-edit - Edit a file in a virtual machine"
3920 msgstr ""
3921
3922 #. type: verbatim
3923 #: ../edit/virt-edit.pod:9
3924 #, no-wrap
3925 msgid ""
3926 " virt-edit [--options] -d domname file [file ...]\n"
3927 "\n"
3928 msgstr ""
3929
3930 #. type: verbatim
3931 #: ../edit/virt-edit.pod:11
3932 #, no-wrap
3933 msgid ""
3934 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3935 "\n"
3936 msgstr ""
3937
3938 #. type: verbatim
3939 #: ../edit/virt-edit.pod:13
3940 #, no-wrap
3941 msgid ""
3942 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3943 "\n"
3944 msgstr ""
3945
3946 #. type: verbatim
3947 #: ../edit/virt-edit.pod:17
3948 #, no-wrap
3949 msgid ""
3950 " virt-edit domname file\n"
3951 "\n"
3952 msgstr ""
3953
3954 #. type: verbatim
3955 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3956 #, no-wrap
3957 msgid ""
3958 " virt-edit disk.img [disk.img ...] file\n"
3959 "\n"
3960 msgstr ""
3961
3962 #. type: =head1
3963 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
3964 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
3965 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
3966 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3967 msgid "WARNING"
3968 msgstr ""
3969
3970 #. type: textblock
3971 #: ../edit/virt-edit.pod:23
3972 msgid ""
3973 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3974 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3975 "doing this, but doesn't catch all cases."
3976 msgstr ""
3977
3978 #. type: textblock
3979 #: ../edit/virt-edit.pod:29
3980 msgid ""
3981 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3982 "exists in the named virtual machine (or disk image)."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../edit/virt-edit.pod:32
3987 msgid ""
3988 "Multiple filenames can be given, in which case they are each edited in "
3989 "turn.  Each filename must be a full path, starting at the root directory "
3990 "(starting with '/')."
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../edit/virt-edit.pod:36
3995 msgid "If you want to just view a file, use L<virt-cat(1)>."
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../edit/virt-edit.pod:38
4000 msgid ""
4001 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4002 "USING GUESTFISH> below)."
4003 msgstr ""
4004
4005 #. type: textblock
4006 #: ../edit/virt-edit.pod:41
4007 msgid ""
4008 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4009 "that and much more."
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../edit/virt-edit.pod:46
4014 msgid "Edit the named files interactively:"
4015 msgstr ""
4016
4017 #. type: verbatim
4018 #: ../edit/virt-edit.pod:48
4019 #, no-wrap
4020 msgid ""
4021 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4022 "\n"
4023 msgstr ""
4024
4025 #. type: verbatim
4026 #: ../edit/virt-edit.pod:50
4027 #, no-wrap
4028 msgid ""
4029 " virt-edit -d mydomain /etc/passwd\n"
4030 "\n"
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../edit/virt-edit.pod:52
4035 msgid "For Windows guests, some Windows paths are understood:"
4036 msgstr ""
4037
4038 #. type: verbatim
4039 #: ../edit/virt-edit.pod:54
4040 #, no-wrap
4041 msgid ""
4042 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4043 "\n"
4044 msgstr ""
4045
4046 #. type: textblock
4047 #: ../edit/virt-edit.pod:56
4048 msgid ""
4049 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4050 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4051 msgstr ""
4052
4053 #. type: verbatim
4054 #: ../edit/virt-edit.pod:60
4055 #, no-wrap
4056 msgid ""
4057 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4058 "\n"
4059 msgstr ""
4060
4061 #. type: =item
4062 #: ../edit/virt-edit.pod:81
4063 msgid "B<-b> extension"
4064 msgstr ""
4065
4066 #. type: =item
4067 #: ../edit/virt-edit.pod:83
4068 msgid "B<--backup> extension"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../edit/virt-edit.pod:85
4073 msgid ""
4074 "Create a backup of the original file I<in the guest disk image>.  The backup "
4075 "has the original filename with C<extension> added."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../edit/virt-edit.pod:88
4080 msgid ""
4081 "Usually the first character of C<extension> would be a dot C<.> so you would "
4082 "write:"
4083 msgstr ""
4084
4085 #. type: verbatim
4086 #: ../edit/virt-edit.pod:91
4087 #, no-wrap
4088 msgid ""
4089 " virt-edit -b .orig [etc]\n"
4090 "\n"
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../edit/virt-edit.pod:93
4095 msgid "By default, no backup file is made."
4096 msgstr ""
4097
4098 #. type: =item
4099 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4100 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4101 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4102 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4103 msgid "B<-c URI>"
4104 msgstr ""
4105
4106 #. type: =item
4107 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4108 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4109 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4110 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4111 msgid "B<--connect URI>"
4112 msgstr ""
4113
4114 #. type: textblock
4115 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4116 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4117 #: ../tools/virt-win-reg.pl:135
4118 msgid ""
4119 "If you specify guest block devices directly, then libvirt is not used at all."
4120 msgstr ""
4121
4122 #. type: textblock
4123 #: ../edit/virt-edit.pod:114
4124 msgid ""
4125 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4126 "off so you cannot see what you are typing.  If you are not worried about "
4127 "Tempest attacks and there is no one else in the room you can specify this "
4128 "flag to see what you are typing."
4129 msgstr ""
4130
4131 #. type: =item
4132 #: ../edit/virt-edit.pod:119
4133 msgid "B<-e> EXPR"
4134 msgstr ""
4135
4136 #. type: =item
4137 #: ../edit/virt-edit.pod:121
4138 msgid "B<--expr> EXPR"
4139 msgstr ""
4140
4141 #. type: textblock
4142 #: ../edit/virt-edit.pod:123
4143 msgid ""
4144 "Instead of launching the external editor, non-interactively apply the Perl "
4145 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4146 "EDITING> below."
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../edit/virt-edit.pod:127
4151 msgid ""
4152 "Be careful to properly quote the expression to prevent it from being altered "
4153 "by the shell."
4154 msgstr ""
4155
4156 #. type: textblock
4157 #: ../edit/virt-edit.pod:130
4158 msgid "Note that this option is only available when Perl 5 is installed."
4159 msgstr ""
4160
4161 #. type: =item
4162 #: ../edit/virt-edit.pod:132
4163 msgid "B<--format> raw|qcow2|..."
4164 msgstr ""
4165
4166 #. type: verbatim
4167 #: ../edit/virt-edit.pod:143
4168 #, no-wrap
4169 msgid ""
4170 " virt-edit --format=raw -a disk.img file\n"
4171 "\n"
4172 msgstr ""
4173
4174 #. type: verbatim
4175 #: ../edit/virt-edit.pod:147
4176 #, no-wrap
4177 msgid ""
4178 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4179 "\n"
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../edit/virt-edit.pod:181
4184 msgid "Previous versions of virt-edit allowed you to write either:"
4185 msgstr ""
4186
4187 #. type: verbatim
4188 #: ../edit/virt-edit.pod:187
4189 #, no-wrap
4190 msgid ""
4191 " virt-edit guestname file\n"
4192 "\n"
4193 msgstr ""
4194
4195 #. type: =head1
4196 #: ../edit/virt-edit.pod:195
4197 msgid "NON-INTERACTIVE EDITING"
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../edit/virt-edit.pod:197
4202 msgid ""
4203 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4204 "administrator can interactively edit the file."
4205 msgstr ""
4206
4207 #. type: textblock
4208 #: ../edit/virt-edit.pod:200
4209 msgid ""
4210 "There are two ways also to use C<virt-edit> from scripts in order to make "
4211 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4212 "like this, it's less error-prone to write scripts directly using the "
4213 "libguestfs API and Augeas for configuration file editing.)"
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../edit/virt-edit.pod:206
4218 msgid ""
4219 "The first method is to temporarily set C<$EDITOR> to any script or program "
4220 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4221 "update C<tmpfile> in place however it likes."
4222 msgstr ""
4223
4224 #. type: textblock
4225 #: ../edit/virt-edit.pod:210
4226 msgid ""
4227 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4228 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4229 "instances of C<foo> with C<bar> in a file:"
4230 msgstr ""
4231
4232 #. type: verbatim
4233 #: ../edit/virt-edit.pod:214
4234 #, no-wrap
4235 msgid ""
4236 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4237 "\n"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../edit/virt-edit.pod:216
4242 msgid ""
4243 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4244 "For example to delete root's password you could do:"
4245 msgstr ""
4246
4247 #. type: verbatim
4248 #: ../edit/virt-edit.pod:219
4249 #, no-wrap
4250 msgid ""
4251 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4252 "\n"
4253 msgstr ""
4254
4255 #. type: textblock
4256 #: ../edit/virt-edit.pod:221
4257 msgid ""
4258 "What really happens is that the snippet is evaluated as a Perl expression "
4259 "for each line of the file.  The line, including the final C<\\n>, is passed "
4260 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4261 msgstr ""
4262
4263 #. type: textblock
4264 #: ../edit/virt-edit.pod:226
4265 msgid ""
4266 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4267 "C<apache> user account from the password file you can do:"
4268 msgstr ""
4269
4270 #. type: verbatim
4271 #: ../edit/virt-edit.pod:229
4272 #, no-wrap
4273 msgid ""
4274 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4275 "\n"
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../edit/virt-edit.pod:231
4280 msgid ""
4281 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4282 "the end of the file is rather difficult this way since there is no concept "
4283 "of \"last line of the file\" - your expression just doesn't get called "
4284 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4285 "want to do this."
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../edit/virt-edit.pod:237
4290 msgid ""
4291 "The variable C<$lineno> contains the current line number.  As is "
4292 "traditional, the first line in the file is number C<1>."
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../edit/virt-edit.pod:240
4297 msgid ""
4298 "The return value from the expression is ignored, but the expression may call "
4299 "C<die> in order to abort the whole program, leaving the original file "
4300 "untouched."
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../edit/virt-edit.pod:244
4305 msgid ""
4306 "Remember when matching the end of a line that C<$_> may contain the final C<"
4307 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4308 "newline then neither of these.  Thus to match or substitute some text at the "
4309 "end of a line, use this regular expression:"
4310 msgstr ""
4311
4312 #. type: verbatim
4313 #: ../edit/virt-edit.pod:249
4314 #, no-wrap
4315 msgid ""
4316 " /some text(\\r?\\n)?$/\n"
4317 "\n"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../edit/virt-edit.pod:251
4322 msgid ""
4323 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4324 "$_> itself (since that would remove all newlines from the file):"
4325 msgstr ""
4326
4327 #. type: verbatim
4328 #: ../edit/virt-edit.pod:255
4329 #, no-wrap
4330 msgid ""
4331 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4332 "\n"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4337 msgid "WINDOWS PATHS"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../edit/virt-edit.pod:259
4342 msgid ""
4343 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4344 "paths (eg. C<E:\\foo\\bar.txt>)."
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../edit/virt-edit.pod:262
4349 msgid "If and only if the guest is running Windows then:"
4350 msgstr ""
4351
4352 #. type: textblock
4353 #: ../edit/virt-edit.pod:268
4354 msgid ""
4355 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4356 "to the correct filesystem."
4357 msgstr ""
4358
4359 #. type: textblock
4360 #: ../edit/virt-edit.pod:273
4361 msgid ""
4362 "Any backslash (C<\\>) characters in the path are replaced with forward "
4363 "slashes so that libguestfs can process it."
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../edit/virt-edit.pod:278
4368 msgid ""
4369 "The path is resolved case insensitively to locate the file that should be "
4370 "edited."
4371 msgstr ""
4372
4373 #. type: textblock
4374 #: ../edit/virt-edit.pod:283
4375 msgid "There are some known shortcomings:"
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../edit/virt-edit.pod:289
4380 msgid "Some NTFS symbolic links may not be followed correctly."
4381 msgstr ""
4382
4383 #. type: textblock
4384 #: ../edit/virt-edit.pod:293
4385 msgid "NTFS junction points that cross filesystems are not followed."
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../edit/virt-edit.pod:299
4390 msgid ""
4391 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4392 "C<virt-edit> doesn't work."
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../edit/virt-edit.pod:302
4397 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4398 msgstr ""
4399
4400 #. type: verbatim
4401 #: ../edit/virt-edit.pod:304
4402 #, no-wrap
4403 msgid ""
4404 " guestfish --rw -i -d domname edit /file\n"
4405 "\n"
4406 msgstr ""
4407
4408 #. type: textblock
4409 #: ../edit/virt-edit.pod:306
4410 msgid ""
4411 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4412 "path to the file."
4413 msgstr ""
4414
4415 #. type: textblock
4416 #: ../edit/virt-edit.pod:309
4417 msgid ""
4418 "The command above uses libguestfs's guest inspection feature and so does not "
4419 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4420 "disk images that don't contain guests.  To edit a file on a disk image "
4421 "directly, use:"
4422 msgstr ""
4423
4424 #. type: verbatim
4425 #: ../edit/virt-edit.pod:314
4426 #, no-wrap
4427 msgid ""
4428 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4429 "\n"
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../edit/virt-edit.pod:316
4434 msgid ""
4435 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4436 "the disk image to edit, and C</file> is the full path to the file."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../edit/virt-edit.pod:320
4441 msgid ""
4442 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4443 "C<write> or C<upload> instead:"
4444 msgstr ""
4445
4446 #. type: verbatim
4447 #: ../edit/virt-edit.pod:323
4448 #, no-wrap
4449 msgid ""
4450 " guestfish --rw -i -d domname touch /newfile\n"
4451 "\n"
4452 msgstr ""
4453
4454 #. type: verbatim
4455 #: ../edit/virt-edit.pod:325
4456 #, no-wrap
4457 msgid ""
4458 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4459 "\n"
4460 msgstr ""
4461
4462 #. type: verbatim
4463 #: ../edit/virt-edit.pod:327
4464 #, no-wrap
4465 msgid ""
4466 " guestfish --rw -i -d domname upload localfile /newfile\n"
4467 "\n"
4468 msgstr ""
4469
4470 #. type: =head1
4471 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4472 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4473 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4474 msgid "ENVIRONMENT VARIABLES"
4475 msgstr ""
4476
4477 #. type: =item
4478 #: ../edit/virt-edit.pod:333
4479 msgid "C<EDITOR>"
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../edit/virt-edit.pod:335
4484 msgid ""
4485 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4486 "\"emacs -nw\">"
4487 msgstr ""
4488
4489 #. type: textblock
4490 #: ../edit/virt-edit.pod:338
4491 msgid "If not set, C<vi> is used."
4492 msgstr ""
4493
4494 #. type: textblock
4495 #: ../edit/virt-edit.pod:356
4496 msgid ""
4497 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4498 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4499 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4500 msgstr ""
4501
4502 #. type: textblock
4503 #: ../erlang/examples/guestfs-erlang.pod:5
4504 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4505 msgstr ""
4506
4507 #. type: verbatim
4508 #: ../erlang/examples/guestfs-erlang.pod:9
4509 #, no-wrap
4510 msgid ""
4511 " {ok, G} = guestfs:create(),\n"
4512 " ok = guestfs:add_drive_opts(G, Disk,\n"
4513 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4514 " ok = guestfs:launch(G),\n"
4515 " [Device] = guestfs:list_devices(G),\n"
4516 " ok = guestfs:close(G).\n"
4517 "\n"
4518 msgstr ""
4519
4520 #. type: textblock
4521 #: ../erlang/examples/guestfs-erlang.pod:18
4522 msgid ""
4523 "This manual page documents how to call libguestfs from the Erlang "
4524 "programming language.  This page just documents the differences from the C "
4525 "API and gives some examples.  If you are not familiar with using libguestfs, "
4526 "you also need to read L<guestfs(3)>."
4527 msgstr ""
4528
4529 #. type: =head2
4530 #: ../erlang/examples/guestfs-erlang.pod:23
4531 msgid "OPENING AND CLOSING THE HANDLE"
4532 msgstr ""
4533
4534 #. type: textblock
4535 #: ../erlang/examples/guestfs-erlang.pod:25
4536 msgid ""
4537 "The Erlang bindings are implemented using an external program called C<erl-"
4538 "guestfs>.  This program must be on the current PATH, or else you should "
4539 "specify the full path to the program:"
4540 msgstr ""
4541
4542 #. type: verbatim
4543 #: ../erlang/examples/guestfs-erlang.pod:29
4544 #, no-wrap
4545 msgid ""
4546 " {ok, G} = guestfs:create().\n"
4547 "\n"
4548 msgstr ""
4549
4550 #. type: verbatim
4551 #: ../erlang/examples/guestfs-erlang.pod:31
4552 #, no-wrap
4553 msgid ""
4554 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4555 "\n"
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../erlang/examples/guestfs-erlang.pod:33
4560 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4561 msgstr ""
4562
4563 #. type: textblock
4564 #: ../erlang/examples/guestfs-erlang.pod:36
4565 msgid "To close the handle:"
4566 msgstr ""
4567
4568 #. type: verbatim
4569 #: ../erlang/examples/guestfs-erlang.pod:38
4570 #, no-wrap
4571 msgid ""
4572 " ok = guestfs:close(G).\n"
4573 "\n"
4574 msgstr ""
4575
4576 #. type: =head2
4577 #: ../erlang/examples/guestfs-erlang.pod:40
4578 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../erlang/examples/guestfs-erlang.pod:42
4583 msgid ""
4584 "For functions that take optional arguments, the first arguments are the non-"
4585 "optional ones.  The last argument is a list of tuples supplying the "
4586 "remaining optional arguments."
4587 msgstr ""
4588
4589 #. type: verbatim
4590 #: ../erlang/examples/guestfs-erlang.pod:46
4591 #, no-wrap
4592 msgid ""
4593 " ok = guestfs:add_drive_opts(G, Disk,\n"
4594 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4595 "\n"
4596 msgstr ""
4597
4598 #. type: textblock
4599 #: ../erlang/examples/guestfs-erlang.pod:49
4600 msgid "If the last argument would be an empty list, you can also omit it:"
4601 msgstr ""
4602
4603 #. type: verbatim
4604 #: ../erlang/examples/guestfs-erlang.pod:51
4605 #, no-wrap
4606 msgid ""
4607 " ok = guestfs:add_drive_opts(G, Disk).\n"
4608 "\n"
4609 msgstr ""
4610
4611 #. type: =head2
4612 #: ../erlang/examples/guestfs-erlang.pod:53
4613 msgid "RETURN VALUES AND ERRORS"
4614 msgstr ""
4615
4616 #. type: textblock
4617 #: ../erlang/examples/guestfs-erlang.pod:55
4618 msgid ""
4619 "On success, most functions return a C<Result> term (which could be a list, "
4620 "string, tuple etc.).  If there is nothing for the function to return, then "
4621 "the atom C<ok> is returned."
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../erlang/examples/guestfs-erlang.pod:59
4626 msgid "On error, you would see one of the following tuples:"
4627 msgstr ""
4628
4629 #. type: =item
4630 #: ../erlang/examples/guestfs-erlang.pod:63
4631 msgid "C<{error, Msg, Errno}>"
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../erlang/examples/guestfs-erlang.pod:65
4636 msgid "This indicates an ordinary error from the function."
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../erlang/examples/guestfs-erlang.pod:67
4641 msgid ""
4642 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4643 "(integer)."
4644 msgstr ""
4645
4646 #. type: textblock
4647 #: ../erlang/examples/guestfs-erlang.pod:70
4648 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4649 msgstr ""
4650
4651 #. type: =item
4652 #: ../erlang/examples/guestfs-erlang.pod:72
4653 msgid "C<{unknown, Function}>"
4654 msgstr ""
4655
4656 #. type: textblock
4657 #: ../erlang/examples/guestfs-erlang.pod:74
4658 msgid ""
4659 "This indicates that the function you called is not known.  Generally this "
4660 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4661 "which you should not do."
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../erlang/examples/guestfs-erlang.pod:78
4666 msgid "C<Function> is the name of the unknown function."
4667 msgstr ""
4668
4669 #. type: =item
4670 #: ../erlang/examples/guestfs-erlang.pod:80
4671 msgid "C<{unknownarg, Arg}>"
4672 msgstr ""
4673
4674 #. type: textblock
4675 #: ../erlang/examples/guestfs-erlang.pod:82
4676 msgid ""
4677 "This indicates that you called a function with optional arguments, with an "
4678 "unknown argument name."
4679 msgstr ""
4680
4681 #. type: textblock
4682 #: ../erlang/examples/guestfs-erlang.pod:85
4683 msgid "C<Arg> is the name of the unknown argument."
4684 msgstr ""
4685
4686 #. type: =head1
4687 #: ../erlang/examples/guestfs-erlang.pod:89
4688 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4689 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4690 #: ../python/examples/guestfs-python.pod:34
4691 #: ../ruby/examples/guestfs-ruby.pod:28
4692 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4693 msgstr ""
4694
4695 #. type: textblock
4696 #: ../erlang/examples/guestfs-erlang.pod:91
4697 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4698 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4699 #: ../python/examples/guestfs-python.pod:36
4700 #: ../ruby/examples/guestfs-ruby.pod:30
4701 msgid "@EXAMPLE1@"
4702 msgstr ""
4703
4704 #. type: =head1
4705 #: ../erlang/examples/guestfs-erlang.pod:93
4706 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4707 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4708 #: ../python/examples/guestfs-python.pod:38
4709 #: ../ruby/examples/guestfs-ruby.pod:32
4710 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../erlang/examples/guestfs-erlang.pod:95
4715 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4716 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4717 #: ../python/examples/guestfs-python.pod:40
4718 #: ../ruby/examples/guestfs-ruby.pod:34
4719 msgid "@EXAMPLE2@"
4720 msgstr ""
4721
4722 #. type: textblock
4723 #: ../erlang/examples/guestfs-erlang.pod:99
4724 msgid ""
4725 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4726 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4727 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4728 msgstr ""
4729
4730 #. type: =head1
4731 #: ../erlang/examples/guestfs-erlang.pod:110
4732 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4733 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4734 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4735 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4736 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4737 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4738 #: ../python/examples/guestfs-python.pod:54
4739 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4740 #: ../test-tool/libguestfs-test-tool.pod:106
4741 msgid "AUTHORS"
4742 msgstr ""
4743
4744 #. type: textblock
4745 #: ../erlang/examples/guestfs-erlang.pod:112
4746 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4747 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4748 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4749 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4750 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4751 #: ../perl/examples/guestfs-perl.pod:54
4752 #: ../python/examples/guestfs-python.pod:56
4753 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4754 #: ../test-tool/libguestfs-test-tool.pod:108
4755 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../erlang/examples/guestfs-erlang.pod:116
4760 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4761 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4762 msgstr ""
4763
4764 #. type: textblock
4765 #: ../erlang/examples/guestfs-erlang.pod:118
4766 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4767 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4768 #: ../perl/examples/guestfs-perl.pod:60
4769 #: ../python/examples/guestfs-python.pod:62
4770 #: ../ruby/examples/guestfs-ruby.pod:56
4771 msgid ""
4772 "The examples in this manual page may be freely copied, modified and "
4773 "distributed without any restrictions."
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../erlang/examples/guestfs-erlang.pod:121
4778 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4779 #: ../java/examples/guestfs-java.pod:69
4780 #: ../ocaml/examples/guestfs-ocaml.pod:102
4781 #: ../perl/examples/guestfs-perl.pod:63
4782 #: ../python/examples/guestfs-python.pod:65
4783 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4784 msgid ""
4785 "This library is free software; you can redistribute it and/or modify it "
4786 "under the terms of the GNU Lesser General Public License as published by the "
4787 "Free Software Foundation; either version 2 of the License, or (at your "
4788 "option) any later version."
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../erlang/examples/guestfs-erlang.pod:126
4793 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4794 #: ../java/examples/guestfs-java.pod:74
4795 #: ../ocaml/examples/guestfs-ocaml.pod:107
4796 #: ../perl/examples/guestfs-perl.pod:68
4797 #: ../python/examples/guestfs-python.pod:70
4798 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4799 msgid ""
4800 "This library is distributed in the hope that it will be useful, but WITHOUT "
4801 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4802 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4803 "for more details."
4804 msgstr ""
4805
4806 #. type: textblock
4807 #: ../erlang/examples/guestfs-erlang.pod:131
4808 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4809 #: ../java/examples/guestfs-java.pod:79
4810 #: ../ocaml/examples/guestfs-ocaml.pod:112
4811 #: ../perl/examples/guestfs-perl.pod:73
4812 #: ../python/examples/guestfs-python.pod:75
4813 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4814 msgid ""
4815 "You should have received a copy of the GNU Lesser General Public License "
4816 "along with this library; if not, write to the Free Software Foundation, "
4817 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../examples/guestfs-examples.pod:5
4822 msgid "guestfs-examples - Examples of using libguestfs from C"
4823 msgstr ""
4824
4825 #. type: verbatim
4826 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4827 #, no-wrap
4828 msgid ""
4829 " #include <guestfs.h>\n"
4830 " \n"
4831 msgstr "#include <guestfs.h>\n"
4832
4833 #. type: verbatim
4834 #: ../examples/guestfs-examples.pod:11
4835 #, no-wrap
4836 msgid ""
4837 " guestfs_h *g = guestfs_create ();\n"
4838 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4839 " guestfs_launch (g);\n"
4840 "\n"
4841 msgstr ""
4842
4843 #. type: verbatim
4844 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4845 #, no-wrap
4846 msgid ""
4847 " cc prog.c -o prog -lguestfs\n"
4848 "or:\n"
4849 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4850 "\n"
4851 msgstr ""
4852 " cc prog.c -o prog -lguestfs\n"
4853 "or:\n"
4854 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4855 "\n"
4856
4857 #. type: textblock
4858 #: ../examples/guestfs-examples.pod:21
4859 msgid ""
4860 "This manual page contains examples of calling libguestfs from the C "
4861 "programming language.  If you are not familiar with using libguestfs, you "
4862 "also need to read L<guestfs(3)>."
4863 msgstr ""
4864
4865 #. type: textblock
4866 #: ../examples/guestfs-examples.pod:35
4867 msgid ""
4868 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4869 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4870 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4875 #: ../python/examples/guestfs-python.pod:60
4876 #: ../ruby/examples/guestfs-ruby.pod:54
4877 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4878 msgstr ""
4879
4880 #. type: =end
4881 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4882 msgid "comment"
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../examples/guestfs-recipes.pod:5
4887 msgid ""
4888 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4889 "here.  The only way which works for both sorts of output is to just write "
4890 "the URL directly.  Do NOT use L<...> for URLs."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../examples/guestfs-recipes.pod:9
4895 msgid ""
4896 "We break with tradition here and don't use ALL CAPS for the section "
4897 "headings, as this makes them much easier to read."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../examples/guestfs-recipes.pod:16
4902 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../examples/guestfs-recipes.pod:20
4907 msgid ""
4908 "This page contains recipes for and links to things you can do using "
4909 "libguestfs, L<guestfish(1)> and the virt tools."
4910 msgstr ""
4911
4912 #. type: =head1
4913 #: ../examples/guestfs-recipes.pod:23
4914 msgid "Audit a virtual machine for setuid files"
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../examples/guestfs-recipes.pod:25
4919 msgid ""
4920 "The link below contains a small program which can be used to audit a Linux "
4921 "virtual machine to see what setuid and setgid files it contains."
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../examples/guestfs-recipes.pod:28
4926 msgid ""
4927 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4928 "files/#content"
4929 msgstr ""
4930
4931 #. type: =head1
4932 #: ../examples/guestfs-recipes.pod:30
4933 msgid "Change the background image in a Windows XP VM"
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../examples/guestfs-recipes.pod:32
4938 msgid ""
4939 "The links below explain how to use L<guestfish(1)> to change the background "
4940 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4941 "be substantially different for each version of Windows."
4942 msgstr ""
4943
4944 #. type: textblock
4945 #: ../examples/guestfs-recipes.pod:37
4946 msgid ""
4947 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4948 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4949 msgstr ""
4950
4951 #. type: =head1
4952 #: ../examples/guestfs-recipes.pod:40
4953 msgid "Cloning a virtual machine (Linux)"
4954 msgstr ""
4955
4956 #. type: textblock
4957 #: ../examples/guestfs-recipes.pod:42
4958 msgid ""
4959 "The guestfish technique described in the link below works well for most "
4960 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4961 "slightly."
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../examples/guestfs-recipes.pod:46
4966 msgid ""
4967 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4968 "vm/#content"
4969 msgstr ""
4970
4971 #. type: textblock
4972 #: ../examples/guestfs-recipes.pod:48
4973 msgid ""
4974 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4975 "discussion."
4976 msgstr ""
4977
4978 #. type: textblock
4979 #: ../examples/guestfs-recipes.pod:51
4980 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4981 msgstr ""
4982
4983 #. type: =head1
4984 #: ../examples/guestfs-recipes.pod:53
4985 msgid "Cloning a virtual machine (Windows)"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../examples/guestfs-recipes.pod:55
4990 msgid ""
4991 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4992 "straightforward.  Currently there is code in the Aeolus Oz project which "
4993 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4994 "we may add sysprepping ability."
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../examples/guestfs-recipes.pod:60
4999 msgid ""
5000 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5001 "list/2011-May/msg00019.html"
5002 msgstr ""
5003
5004 #. type: =head1
5005 #: ../examples/guestfs-recipes.pod:63
5006 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../examples/guestfs-recipes.pod:65
5011 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5012 msgstr ""
5013
5014 #. type: verbatim
5015 #: ../examples/guestfs-recipes.pod:67
5016 #, no-wrap
5017 msgid ""
5018 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5019 "\n"
5020 msgstr ""
5021
5022 #. type: textblock
5023 #: ../examples/guestfs-recipes.pod:69
5024 msgid "To export just a subdirectory, eg. C</files>, do:"
5025 msgstr ""
5026
5027 #. type: verbatim
5028 #: ../examples/guestfs-recipes.pod:71
5029 #, no-wrap
5030 msgid ""
5031 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5032 "\n"
5033 msgstr ""
5034
5035 #. type: =head1
5036 #: ../examples/guestfs-recipes.pod:73
5037 msgid "Create empty disk images"
5038 msgstr ""
5039
5040 #. type: textblock
5041 #: ../examples/guestfs-recipes.pod:75
5042 msgid ""
5043 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5044 "The useful guide below explains the options available."
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:78
5049 msgid ""
5050 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5051 "#content"
5052 msgstr ""
5053
5054 #. type: =head1
5055 #: ../examples/guestfs-recipes.pod:80
5056 msgid "Dump raw filesystem content from inside a disk image or VM"
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:82
5061 msgid ""
5062 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5063 "filesystem content from any filesystem in a disk image or a VM (even one "
5064 "which is encrypted or buried inside an LV):"
5065 msgstr ""
5066
5067 #. type: verbatim
5068 #: ../examples/guestfs-recipes.pod:86
5069 #, no-wrap
5070 msgid ""
5071 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5072 "\n"
5073 msgstr ""
5074
5075 #. type: verbatim
5076 #: ../examples/guestfs-recipes.pod:88
5077 #, no-wrap
5078 msgid ""
5079 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5080 "\n"
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../examples/guestfs-recipes.pod:90
5085 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5086 msgstr ""
5087
5088 #. type: =head1
5089 #: ../examples/guestfs-recipes.pod:92
5090 msgid "Edit grub configuration in a VM"
5091 msgstr ""
5092
5093 #. type: textblock
5094 #: ../examples/guestfs-recipes.pod:94
5095 msgid "You can use this to:"
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../examples/guestfs-recipes.pod:100
5100 msgid "Fix a virtual machine that does not boot."
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../examples/guestfs-recipes.pod:104
5105 msgid "Change which kernel is used to boot the VM."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:108
5110 msgid "Change kernel command line options."
5111 msgstr ""
5112
5113 #. type: textblock
5114 #: ../examples/guestfs-recipes.pod:112
5115 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5116 msgstr ""
5117
5118 #. type: verbatim
5119 #: ../examples/guestfs-recipes.pod:114
5120 #, no-wrap
5121 msgid ""
5122 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5123 "\n"
5124 msgstr ""
5125
5126 #. type: textblock
5127 #: ../examples/guestfs-recipes.pod:116
5128 msgid ""
5129 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5130 "this:"
5131 msgstr ""
5132
5133 #. type: verbatim
5134 #: ../examples/guestfs-recipes.pod:119
5135 #, no-wrap
5136 msgid ""
5137 " virt-rescue -d BrokenGuest\n"
5138 "\n"
5139 msgstr ""
5140
5141 #. type: =head1
5142 #: ../examples/guestfs-recipes.pod:121
5143 msgid "Export any directory from a VM"
5144 msgstr ""
5145
5146 #. type: textblock
5147 #: ../examples/guestfs-recipes.pod:123
5148 msgid ""
5149 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5150 msgstr ""
5151
5152 #. type: verbatim
5153 #: ../examples/guestfs-recipes.pod:126
5154 #, no-wrap
5155 msgid ""
5156 " virt-copy-out -d Guest /home .\n"
5157 "\n"
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5162 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5163 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5164 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5165 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5166 #: ../tools/virt-win-reg.pl:706
5167 msgid "Notes:"
5168 msgstr ""
5169
5170 #. type: textblock
5171 #: ../examples/guestfs-recipes.pod:134
5172 msgid ""
5173 "The final dot of the command is not a printing error.  It means we want to "
5174 "copy out to the current directory."
5175 msgstr ""
5176
5177 #. type: textblock
5178 #: ../examples/guestfs-recipes.pod:139
5179 msgid "This creates a directory called C<home> under the current directory."
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../examples/guestfs-recipes.pod:143
5184 msgid ""
5185 "If the guest is a Windows guest then you can use drive letters and "
5186 "backslashes, but you must prefix the path with C<win:> and quote it to "
5187 "protect it from the shell, like this:"
5188 msgstr ""
5189
5190 #. type: verbatim
5191 #: ../examples/guestfs-recipes.pod:147
5192 #, no-wrap
5193 msgid ""
5194 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5195 "\n"
5196 msgstr ""
5197
5198 #. type: textblock
5199 #: ../examples/guestfs-recipes.pod:149
5200 msgid "To get the output as a compressed tarball, do:"
5201 msgstr ""
5202
5203 #. type: verbatim
5204 #: ../examples/guestfs-recipes.pod:151
5205 #, no-wrap
5206 msgid ""
5207 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5208 "\n"
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../examples/guestfs-recipes.pod:153
5213 msgid ""
5214 "Although it sounds tempting, this is usually not a reliable way to get a "
5215 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5216 "org/FAQ.html#backup"
5217 msgstr ""
5218
5219 #. type: =head1
5220 #: ../examples/guestfs-recipes.pod:157
5221 msgid "Find out which user is using the most space"
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../examples/guestfs-recipes.pod:159
5226 msgid ""
5227 "This simple script examines a Linux guest to find out which user is using "
5228 "the most space in their home directory:"
5229 msgstr ""
5230
5231 #. type: verbatim
5232 #: ../examples/guestfs-recipes.pod:162
5233 #, no-wrap
5234 msgid ""
5235 " #!/bin/sh -\n"
5236 " \n"
5237 msgstr ""
5238
5239 #. type: verbatim
5240 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5241 #, no-wrap
5242 msgid ""
5243 " set -e\n"
5244 " \n"
5245 msgstr ""
5246
5247 #. type: verbatim
5248 #: ../examples/guestfs-recipes.pod:166
5249 #, no-wrap
5250 msgid ""
5251 " vm=\"$1\"\n"
5252 " dir=/home\n"
5253 " \n"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../examples/guestfs-recipes.pod:169
5258 #, no-wrap
5259 msgid ""
5260 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5261 " \n"
5262 msgstr ""
5263
5264 #. type: verbatim
5265 #: ../examples/guestfs-recipes.pod:171
5266 #, no-wrap
5267 msgid ""
5268 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5269 "     echo -n \"$dir/$d\"\n"
5270 "     echo -ne '\\t'\n"
5271 "     guestfish --remote du \"$dir/$d\";\n"
5272 " done | sort -nr -k 2\n"
5273 " \n"
5274 msgstr ""
5275
5276 #. type: verbatim
5277 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5278 #, no-wrap
5279 msgid ""
5280 " guestfish --remote exit\n"
5281 "\n"
5282 msgstr ""
5283
5284 #. type: =head1
5285 #: ../examples/guestfs-recipes.pod:179
5286 msgid "Get DHCP address from a VM"
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-recipes.pod:181
5291 msgid ""
5292 "The link below explains the many different possible techniques for getting "
5293 "the last assigned DHCP address of a virtual machine."
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../examples/guestfs-recipes.pod:184
5298 msgid ""
5299 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5300 "a-virtual-machine-disk-image/#content"
5301 msgstr ""
5302
5303 #. type: textblock
5304 #: ../examples/guestfs-recipes.pod:186
5305 msgid ""
5306 "In the libguestfs source examples directory you will find the latest version "
5307 "of the C<virt-dhcp-address.c> program."
5308 msgstr ""
5309
5310 #. type: =head1
5311 #: ../examples/guestfs-recipes.pod:189
5312 msgid "Get the operating system product name string"
5313 msgstr ""
5314
5315 #. type: textblock
5316 #: ../examples/guestfs-recipes.pod:191
5317 msgid "Save the following script into a file called C<product-name.sh>:"
5318 msgstr ""
5319
5320 #. type: verbatim
5321 #: ../examples/guestfs-recipes.pod:193
5322 #, no-wrap
5323 msgid ""
5324 " #!/bin/sh -\n"
5325 " set -e\n"
5326 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5327 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5328 " guestfish --remote inspect-get-product-name \"$root\"\n"
5329 " guestfish --remote exit\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-recipes.pod:200
5335 msgid "Make the script executable and run it on a named guest:"
5336 msgstr ""
5337
5338 #. type: verbatim
5339 #: ../examples/guestfs-recipes.pod:202
5340 #, no-wrap
5341 msgid ""
5342 " # product-name.sh RHEL60x64\n"
5343 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5344 "\n"
5345 msgstr ""
5346
5347 #. type: textblock
5348 #: ../examples/guestfs-recipes.pod:205
5349 msgid ""
5350 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5351 "C<xpath> command line tool or from your favourite programming language:"
5352 msgstr ""
5353
5354 #. type: verbatim
5355 #: ../examples/guestfs-recipes.pod:209
5356 #, no-wrap
5357 msgid ""
5358 " # virt-inspector RHEL60x64 > xml\n"
5359 " # xpath '//product_name' < xml\n"
5360 " Found 1 nodes:\n"
5361 " -- NODE --\n"
5362 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5363 "\n"
5364 msgstr ""
5365
5366 #. type: =head1
5367 #: ../examples/guestfs-recipes.pod:215
5368 msgid "Get the default boot kernel for a Linux VM"
5369 msgstr ""
5370
5371 #. type: textblock
5372 #: ../examples/guestfs-recipes.pod:217
5373 msgid ""
5374 "The link below contains a program to print the default boot kernel for a "
5375 "Linux VM."
5376 msgstr ""
5377
5378 #. type: textblock
5379 #: ../examples/guestfs-recipes.pod:220
5380 msgid ""
5381 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5382 "kernel-for-a-vm/#content"
5383 msgstr ""
5384
5385 #. type: textblock
5386 #: ../examples/guestfs-recipes.pod:222
5387 msgid ""
5388 "It uses Augeas, and the technique is generally applicable for many different "
5389 "tasks, such as:"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../examples/guestfs-recipes.pod:229
5394 msgid "listing the user accounts in the guest"
5395 msgstr ""
5396
5397 #. type: textblock
5398 #: ../examples/guestfs-recipes.pod:233
5399 msgid "what repositories is it configured to use"
5400 msgstr ""
5401
5402 #. type: textblock
5403 #: ../examples/guestfs-recipes.pod:237
5404 msgid "what NTP servers does it connect to"
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../examples/guestfs-recipes.pod:241
5409 msgid "what were the boot messages last time it booted"
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../examples/guestfs-recipes.pod:245
5414 msgid "listing who was logged in recently"
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../examples/guestfs-recipes.pod:249
5419 msgid "http://augeas.net/"
5420 msgstr ""
5421
5422 #. type: =head1
5423 #: ../examples/guestfs-recipes.pod:251
5424 msgid "Install RPMs in a guest"
5425 msgstr ""
5426
5427 #. type: textblock
5428 #: ../examples/guestfs-recipes.pod:253
5429 msgid ""
5430 "The link below contains a method to install RPMs in a guest.  In fact the "
5431 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5432 "installs them next time the guest is booted.  You could use this technique "
5433 "to install vital security updates in an offline guest."
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../examples/guestfs-recipes.pod:259
5438 msgid ""
5439 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5440 msgstr ""
5441
5442 #. type: =head1
5443 #: ../examples/guestfs-recipes.pod:261
5444 msgid "List applications installed in a VM"
5445 msgstr ""
5446
5447 #. type: textblock
5448 #: ../examples/guestfs-recipes.pod:263
5449 msgid "Save the following to a file C<list-apps.sh>:"
5450 msgstr ""
5451
5452 #. type: verbatim
5453 #: ../examples/guestfs-recipes.pod:265
5454 #, no-wrap
5455 msgid ""
5456 " #!/bin/sh -\n"
5457 " set -e\n"
5458 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5459 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5460 " guestfish --remote inspect-list-applications \"$root\"\n"
5461 " guestfish --remote exit\n"
5462 "\n"
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../examples/guestfs-recipes.pod:272
5467 msgid ""
5468 "Make the file executable and then you can run it on any named virtual "
5469 "machine:"
5470 msgstr ""
5471
5472 #. type: verbatim
5473 #: ../examples/guestfs-recipes.pod:275
5474 #, no-wrap
5475 msgid ""
5476 " # list-apps.sh WinGuest\n"
5477 " [0] = {\n"
5478 "   app_name: Mozilla Firefox (3.6.12)\n"
5479 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5480 "   app_epoch: 0\n"
5481 "   app_version: 3.6.12 (en-GB)\n"
5482 "   app_release:\n"
5483 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5484 "   app_trans_path:\n"
5485 "   app_publisher: Mozilla\n"
5486 "   app_url: http://www.mozilla.com/en-GB/\n"
5487 "   app_source_package:\n"
5488 "   app_summary:\n"
5489 "   app_description: Mozilla Firefox\n"
5490 " }\n"
5491 " [1] = {\n"
5492 "   app_name: VLC media player\n"
5493 "   app_display_name: VLC media player 1.1.5\n"
5494 "   app_epoch: 0\n"
5495 "   app_version: 1.1.5\n"
5496 "   app_release:\n"
5497 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5498 "   app_trans_path:\n"
5499 "   app_publisher: VideoLAN\n"
5500 "   app_url: http://www.videolan.org/\n"
5501 "   app_source_package:\n"
5502 "   app_summary:\n"
5503 "   app_description:\n"
5504 " }\n"
5505 "\n"
5506 msgstr ""
5507
5508 #. type: textblock
5509 #: ../examples/guestfs-recipes.pod:305
5510 msgid ""
5511 "If you want to run the script on disk images (instead of libvirt virtual "
5512 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5513 ">."
5514 msgstr ""
5515
5516 #. type: =head1
5517 #: ../examples/guestfs-recipes.pod:309
5518 msgid "List files and directories in a VM"
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../examples/guestfs-recipes.pod:311
5523 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5524 msgstr ""
5525
5526 #. type: verbatim
5527 #: ../examples/guestfs-recipes.pod:313
5528 #, no-wrap
5529 msgid ""
5530 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5531 "\n"
5532 msgstr ""
5533
5534 #. type: =head1
5535 #: ../examples/guestfs-recipes.pod:315
5536 msgid "List services in a Windows VM"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../examples/guestfs-recipes.pod:317
5541 msgid ""
5542 "The link below contains a script that can be used to list out the services "
5543 "from a Windows VM, and whether those services run at boot time or are loaded "
5544 "on demand."
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../examples/guestfs-recipes.pod:321
5549 msgid ""
5550 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5551 "#content"
5552 msgstr ""
5553
5554 #. type: =head1
5555 #: ../examples/guestfs-recipes.pod:323
5556 msgid "Make a disk image sparse"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../examples/guestfs-recipes.pod:325
5561 msgid ""
5562 "The link below contains some guides for making a disk image sparse (or "
5563 "reintroducing sparseness)."
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-recipes.pod:328
5568 msgid ""
5569 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5570 msgstr ""
5571
5572 #. type: =head1
5573 #: ../examples/guestfs-recipes.pod:330
5574 msgid "Monitor disk usage over time"
5575 msgstr ""
5576
5577 #. type: textblock
5578 #: ../examples/guestfs-recipes.pod:332
5579 msgid ""
5580 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5581 "The link below contains a guide."
5582 msgstr ""
5583
5584 #. type: textblock
5585 #: ../examples/guestfs-recipes.pod:335
5586 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5587 msgstr ""
5588
5589 #. type: =head1
5590 #: ../examples/guestfs-recipes.pod:337
5591 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../examples/guestfs-recipes.pod:339
5596 msgid ""
5597 "L<guestfish(1)> plus the tools described in the link below can be used to "
5598 "read out the Windows Event Log from any virtual machine running Windows "
5599 "Vista or a later version."
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../examples/guestfs-recipes.pod:343
5604 msgid ""
5605 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5606 "guestfish/#content"
5607 msgstr ""
5608
5609 #. type: =head1
5610 #: ../examples/guestfs-recipes.pod:345
5611 msgid "Remove root password (Linux)"
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../examples/guestfs-recipes.pod:347
5616 msgid ""
5617 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5618 "files.  One use is to remove the root password from a Linux guest:"
5619 msgstr ""
5620
5621 #. type: verbatim
5622 #: ../examples/guestfs-recipes.pod:350
5623 #, no-wrap
5624 msgid ""
5625 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5626 "\n"
5627 msgstr ""
5628
5629 #. type: =head1
5630 #: ../examples/guestfs-recipes.pod:352
5631 msgid "Remove Administrator password (Windows)"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../examples/guestfs-recipes.pod:354
5636 msgid ""
5637 "The link below contains one technique for removing the Administrator "
5638 "password from a Windows VM, or to be more precise, it gives you a command "
5639 "prompt the next time you log in which you can use to bypass any security:"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../examples/guestfs-recipes.pod:359
5644 msgid ""
5645 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5646 "administrator-password-with-guestfish/"
5647 msgstr ""
5648
5649 #. type: =head1
5650 #: ../examples/guestfs-recipes.pod:361
5651 msgid "Unpack a live CD"
5652 msgstr ""
5653
5654 #. type: textblock
5655 #: ../examples/guestfs-recipes.pod:363
5656 msgid ""
5657 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5658 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5659 "layers, as outlined in the guide below."
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:367
5664 msgid ""
5665 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5666 "cd/#content"
5667 msgstr ""
5668
5669 #. type: =head1
5670 #: ../examples/guestfs-recipes.pod:369
5671 msgid "Uploading and downloading files"
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../examples/guestfs-recipes.pod:371
5676 msgid ""
5677 "The link below contains general tips on uploading (copying in)  and "
5678 "downloading (copying out) files from VMs."
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../examples/guestfs-recipes.pod:374
5683 msgid ""
5684 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5685 msgstr ""
5686
5687 #. type: =head1
5688 #: ../examples/guestfs-recipes.pod:376
5689 msgid "Use libguestfs tools on VMware ESX guests"
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../examples/guestfs-recipes.pod:378
5694 msgid ""
5695 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5696 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../examples/guestfs-recipes.pod:382
5701 msgid ""
5702 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5703 "guests/#content"
5704 msgstr ""
5705
5706 #. type: textblock
5707 #: ../examples/guestfs-recipes.pod:386
5708 msgid ""
5709 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5710 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5711 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../examples/guestfs-recipes.pod:403
5716 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5717 msgstr ""
5718
5719 #. type: =head2
5720 #: ../fish/guestfish-actions.pod:1
5721 msgid "add-cdrom"
5722 msgstr ""
5723
5724 #. type: verbatim
5725 #: ../fish/guestfish-actions.pod:3
5726 #, no-wrap
5727 msgid ""
5728 " add-cdrom filename\n"
5729 "\n"
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5734 msgid "This function adds a virtual CD-ROM disk image to the guest."
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5739 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5740 msgstr ""
5741
5742 #. type: textblock
5743 #: ../fish/guestfish-actions.pod:15
5744 msgid ""
5745 "This call checks for the existence of C<filename>.  This stops you from "
5746 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5747 "and C<http:> URLs.  To specify those, use the general L</config> call "
5748 "instead."
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../fish/guestfish-actions.pod:22
5753 msgid ""
5754 "If you just want to add an ISO file (often you use this as an efficient way "
5755 "to transfer large files into the guest), then you should probably use L</add-"
5756 "drive-ro> instead."
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5761 #: ../fish/guestfish-actions.pod:182
5762 msgid ""
5763 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5764 "instead."
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5769 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5770 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5771 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5772 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5773 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5774 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5775 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5776 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5777 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5778 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5779 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5780 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5781 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5782 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5783 #: ../src/guestfs-actions.pod:8059
5784 msgid ""
5785 "Deprecated functions will not be removed from the API, but the fact that "
5786 "they are deprecated indicates that there are problems with correct use of "
5787 "these functions."
5788 msgstr ""
5789
5790 #. type: =head2
5791 #: ../fish/guestfish-actions.pod:35
5792 msgid "add-domain"
5793 msgstr ""
5794
5795 #. type: =head2
5796 #: ../fish/guestfish-actions.pod:37
5797 msgid "domain"
5798 msgstr ""
5799
5800 #. type: verbatim
5801 #: ../fish/guestfish-actions.pod:39
5802 #, no-wrap
5803 msgid ""
5804 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5805 "\n"
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../fish/guestfish-actions.pod:41
5810 msgid ""
5811 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5812 "It works by connecting to libvirt, requesting the domain and domain XML from "
5813 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5818 msgid ""
5819 "The number of disks added is returned.  This operation is atomic: if an "
5820 "error is returned, then no disks are added."
5821 msgstr ""
5822
5823 #. type: textblock
5824 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5825 msgid ""
5826 "This function does some minimal checks to make sure the libvirt domain is "
5827 "not running (unless C<readonly> is true).  In a future version we will try "
5828 "to acquire the libvirt lock on each disk."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5833 msgid ""
5834 "Disks must be accessible locally.  This often means that adding disks from a "
5835 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5836 "unless those disks are accessible via the same device path locally too."
5837 msgstr ""
5838
5839 #. type: textblock
5840 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5841 msgid ""
5842 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5843 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5844 "libvirt URI (or one set through an environment variable, see the libvirt "
5845 "documentation for full details)."
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5850 msgid ""
5851 "The optional C<live> flag controls whether this call will try to connect to "
5852 "a running virtual machine C<guestfsd> process if it sees a suitable "
5853 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5854 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5855 "DAEMONS> for more information."
5856 msgstr ""
5857
5858 #. type: textblock
5859 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5860 msgid ""
5861 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5862 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5863 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5864 "as usual."
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../fish/guestfish-actions.pod:76
5869 msgid ""
5870 "The other optional parameters are passed directly through to L</add-drive-"
5871 "opts>."
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5876 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5877 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5878 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5879 #: ../fish/guestfish-actions.pod:3522
5880 msgid ""
5881 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5882 msgstr ""
5883
5884 #. type: =head2
5885 #: ../fish/guestfish-actions.pod:81
5886 msgid "add-drive"
5887 msgstr ""
5888
5889 #. type: verbatim
5890 #: ../fish/guestfish-actions.pod:83
5891 #, no-wrap
5892 msgid ""
5893 " add-drive filename\n"
5894 "\n"
5895 msgstr ""
5896
5897 #. type: textblock
5898 #: ../fish/guestfish-actions.pod:85
5899 msgid ""
5900 "This function is the equivalent of calling L</add-drive-opts> with no "
5901 "optional parameters, so the disk is added writable, with the format being "
5902 "detected automatically."
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../fish/guestfish-actions.pod:89
5907 msgid ""
5908 "Automatic detection of the format opens you up to a potential security hole "
5909 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5910 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5911 "you should think about replacing calls to this function with calls to L</add-"
5912 "drive-opts>, and specifying the format."
5913 msgstr ""
5914
5915 #. type: =head2
5916 #: ../fish/guestfish-actions.pod:96
5917 msgid "add-drive-opts"
5918 msgstr ""
5919
5920 #. type: =head2
5921 #: ../fish/guestfish-actions.pod:98
5922 msgid "add"
5923 msgstr ""
5924
5925 #. type: verbatim
5926 #: ../fish/guestfish-actions.pod:100
5927 #, no-wrap
5928 msgid ""
5929 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5930 "\n"
5931 msgstr ""
5932
5933 #. type: textblock
5934 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
5935 msgid ""
5936 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5937 "The first time you call this function, the disk appears as C</dev/sda>, the "
5938 "second time as C</dev/sdb>, and so on."
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
5943 msgid ""
5944 "You don't necessarily need to be root when using libguestfs.  However you "
5945 "obviously do need sufficient permissions to access the filename for whatever "
5946 "operations you want to perform (ie. read access if you just want to read the "
5947 "image or write access if you want to modify the image)."
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
5952 msgid "This call checks that C<filename> exists."
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
5957 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
5958 msgid "The optional arguments are:"
5959 msgstr ""
5960
5961 #. type: =item
5962 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
5963 msgid "C<readonly>"
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
5968 msgid ""
5969 "If true then the image is treated as read-only.  Writes are still allowed, "
5970 "but they are stored in a temporary snapshot overlay which is discarded at "
5971 "the end.  The disk that you add is not modified."
5972 msgstr ""
5973
5974 #. type: =item
5975 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
5976 msgid "C<format>"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../fish/guestfish-actions.pod:127
5981 msgid ""
5982 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5983 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5984 "include C<raw> and C<qcow2>."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
5989 msgid ""
5990 "Automatic detection of the format opens you up to a potential security hole "
5991 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5992 "RHBZ#642934.  Specifying the format closes this security hole."
5993 msgstr ""
5994
5995 #. type: =item
5996 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
5997 msgid "C<iface>"
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:138
6002 msgid ""
6003 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6004 "add-drive-with-if> call (q.v.)"
6005 msgstr ""
6006
6007 #. type: =item
6008 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6009 msgid "C<name>"
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6014 msgid ""
6015 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6016 "a hint to the guest inspection process if it is available."
6017 msgstr ""
6018
6019 #. type: =head2
6020 #: ../fish/guestfish-actions.pod:150
6021 msgid "add-drive-ro"
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../fish/guestfish-actions.pod:152
6026 msgid "add-ro"
6027 msgstr ""
6028
6029 #. type: verbatim
6030 #: ../fish/guestfish-actions.pod:154
6031 #, no-wrap
6032 msgid ""
6033 " add-drive-ro filename\n"
6034 "\n"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:156
6039 msgid ""
6040 "This function is the equivalent of calling L</add-drive-opts> with the "
6041 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6042 "is added read-only, with the format being detected automatically."
6043 msgstr ""
6044
6045 #. type: =head2
6046 #: ../fish/guestfish-actions.pod:161
6047 msgid "add-drive-ro-with-if"
6048 msgstr ""
6049
6050 #. type: verbatim
6051 #: ../fish/guestfish-actions.pod:163
6052 #, no-wrap
6053 msgid ""
6054 " add-drive-ro-with-if filename iface\n"
6055 "\n"
6056 msgstr ""
6057
6058 #. type: textblock
6059 #: ../fish/guestfish-actions.pod:165
6060 msgid ""
6061 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6062 "interface emulation to use at run time."
6063 msgstr ""
6064
6065 #. type: =head2
6066 #: ../fish/guestfish-actions.pod:175
6067 msgid "add-drive-with-if"
6068 msgstr ""
6069
6070 #. type: verbatim
6071 #: ../fish/guestfish-actions.pod:177
6072 #, no-wrap
6073 msgid ""
6074 " add-drive-with-if filename iface\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:179
6080 msgid ""
6081 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6082 "interface emulation to use at run time."
6083 msgstr ""
6084
6085 #. type: =head2
6086 #: ../fish/guestfish-actions.pod:189
6087 msgid "aug-clear"
6088 msgstr ""
6089
6090 #. type: verbatim
6091 #: ../fish/guestfish-actions.pod:191
6092 #, no-wrap
6093 msgid ""
6094 " aug-clear augpath\n"
6095 "\n"
6096 msgstr ""
6097
6098 #. type: textblock
6099 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6100 msgid ""
6101 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6102 "L<augtool(1)> C<clear> command."
6103 msgstr ""
6104
6105 #. type: =head2
6106 #: ../fish/guestfish-actions.pod:196
6107 msgid "aug-close"
6108 msgstr ""
6109
6110 #. type: verbatim
6111 #: ../fish/guestfish-actions.pod:198
6112 #, no-wrap
6113 msgid ""
6114 " aug-close\n"
6115 "\n"
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../fish/guestfish-actions.pod:200
6120 msgid ""
6121 "Close the current Augeas handle and free up any resources used by it.  After "
6122 "calling this, you have to call L</aug-init> again before you can use any "
6123 "other Augeas functions."
6124 msgstr ""
6125
6126 #. type: =head2
6127 #: ../fish/guestfish-actions.pod:205
6128 msgid "aug-defnode"
6129 msgstr ""
6130
6131 #. type: verbatim
6132 #: ../fish/guestfish-actions.pod:207
6133 #, no-wrap
6134 msgid ""
6135 " aug-defnode name expr val\n"
6136 "\n"
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6141 msgid ""
6142 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6143 msgstr ""
6144
6145 #. type: textblock
6146 #: ../fish/guestfish-actions.pod:212
6147 msgid ""
6148 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6149 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6150 "containing that single node."
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6155 msgid ""
6156 "On success this returns a pair containing the number of nodes in the "
6157 "nodeset, and a boolean flag if a node was created."
6158 msgstr ""
6159
6160 #. type: =head2
6161 #: ../fish/guestfish-actions.pod:220
6162 msgid "aug-defvar"
6163 msgstr ""
6164
6165 #. type: verbatim
6166 #: ../fish/guestfish-actions.pod:222
6167 #, no-wrap
6168 msgid ""
6169 " aug-defvar name expr\n"
6170 "\n"
6171 msgstr ""
6172
6173 #. type: textblock
6174 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6175 msgid ""
6176 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6177 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6182 msgid ""
6183 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6184 "evaluates to something which is not a nodeset."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:231
6189 msgid "aug-get"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:233
6194 #, no-wrap
6195 msgid ""
6196 " aug-get augpath\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6202 msgid ""
6203 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6204 "node, the C<value> is returned."
6205 msgstr ""
6206
6207 #. type: =head2
6208 #: ../fish/guestfish-actions.pod:238
6209 msgid "aug-init"
6210 msgstr ""
6211
6212 #. type: verbatim
6213 #: ../fish/guestfish-actions.pod:240
6214 #, no-wrap
6215 msgid ""
6216 " aug-init root flags\n"
6217 "\n"
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6222 msgid ""
6223 "Create a new Augeas handle for editing configuration files.  If there was "
6224 "any previous Augeas handle associated with this guestfs session, then it is "
6225 "closed."
6226 msgstr ""
6227
6228 #. type: textblock
6229 #: ../fish/guestfish-actions.pod:246
6230 msgid "You must call this before using any other L</aug-*> commands."
6231 msgstr ""
6232
6233 #. type: textblock
6234 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6235 msgid ""
6236 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6241 msgid ""
6242 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6243 "logical I<or> of the following integers:"
6244 msgstr ""
6245
6246 #. type: =item
6247 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6248 msgid "C<AUG_SAVE_BACKUP> = 1"
6249 msgstr ""
6250
6251 #. type: textblock
6252 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6253 msgid "Keep the original file with a C<.augsave> extension."
6254 msgstr ""
6255
6256 #. type: =item
6257 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6258 msgid "C<AUG_SAVE_NEWFILE> = 2"
6259 msgstr ""
6260
6261 #. type: textblock
6262 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6263 msgid ""
6264 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6265 "original.  Overrides C<AUG_SAVE_BACKUP>."
6266 msgstr ""
6267
6268 #. type: =item
6269 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6270 msgid "C<AUG_TYPE_CHECK> = 4"
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6275 msgid "Typecheck lenses."
6276 msgstr ""
6277
6278 #. type: textblock
6279 #: ../fish/guestfish-actions.pod:271
6280 msgid ""
6281 "This option is only useful when debugging Augeas lenses.  Use of this option "
6282 "may require additional memory for the libguestfs appliance.  You may need to "
6283 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6284 msgstr ""
6285
6286 #. type: =item
6287 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6288 msgid "C<AUG_NO_STDINC> = 8"
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6293 msgid "Do not use standard load path for modules."
6294 msgstr ""
6295
6296 #. type: =item
6297 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6298 msgid "C<AUG_SAVE_NOOP> = 16"
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6303 msgid "Make save a no-op, just record what would have been changed."
6304 msgstr ""
6305
6306 #. type: =item
6307 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6308 msgid "C<AUG_NO_LOAD> = 32"
6309 msgstr ""
6310
6311 #. type: textblock
6312 #: ../fish/guestfish-actions.pod:286
6313 msgid "Do not load the tree in L</aug-init>."
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../fish/guestfish-actions.pod:290
6318 msgid "To close the handle, you can call L</aug-close>."
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6323 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6324 msgstr ""
6325
6326 #. type: =head2
6327 #: ../fish/guestfish-actions.pod:294
6328 msgid "aug-insert"
6329 msgstr ""
6330
6331 #. type: verbatim
6332 #: ../fish/guestfish-actions.pod:296
6333 #, no-wrap
6334 msgid ""
6335 " aug-insert augpath label true|false\n"
6336 "\n"
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6341 msgid ""
6342 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6343 "or after C<path> (depending on the boolean flag C<before>)."
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6348 msgid ""
6349 "C<path> must match exactly one existing node in the tree, and C<label> must "
6350 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6351 msgstr ""
6352
6353 #. type: =head2
6354 #: ../fish/guestfish-actions.pod:306
6355 msgid "aug-load"
6356 msgstr ""
6357
6358 #. type: verbatim
6359 #: ../fish/guestfish-actions.pod:308
6360 #, no-wrap
6361 msgid ""
6362 " aug-load\n"
6363 "\n"
6364 msgstr ""
6365
6366 #. type: textblock
6367 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6368 msgid "Load files into the tree."
6369 msgstr ""
6370
6371 #. type: textblock
6372 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6373 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6374 msgstr ""
6375
6376 #. type: =head2
6377 #: ../fish/guestfish-actions.pod:315
6378 msgid "aug-ls"
6379 msgstr ""
6380
6381 #. type: verbatim
6382 #: ../fish/guestfish-actions.pod:317
6383 #, no-wrap
6384 msgid ""
6385 " aug-ls augpath\n"
6386 "\n"
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:319
6391 msgid ""
6392 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6393 "resulting nodes into alphabetical order."
6394 msgstr ""
6395
6396 #. type: =head2
6397 #: ../fish/guestfish-actions.pod:322
6398 msgid "aug-match"
6399 msgstr ""
6400
6401 #. type: verbatim
6402 #: ../fish/guestfish-actions.pod:324
6403 #, no-wrap
6404 msgid ""
6405 " aug-match augpath\n"
6406 "\n"
6407 msgstr ""
6408
6409 #. type: textblock
6410 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6411 msgid ""
6412 "Returns a list of paths which match the path expression C<path>.  The "
6413 "returned paths are sufficiently qualified so that they match exactly one "
6414 "node in the current tree."
6415 msgstr ""
6416
6417 #. type: =head2
6418 #: ../fish/guestfish-actions.pod:330
6419 msgid "aug-mv"
6420 msgstr ""
6421
6422 #. type: verbatim
6423 #: ../fish/guestfish-actions.pod:332
6424 #, no-wrap
6425 msgid ""
6426 " aug-mv src dest\n"
6427 "\n"
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6432 msgid ""
6433 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6434 "C<dest> is overwritten if it exists."
6435 msgstr ""
6436
6437 #. type: =head2
6438 #: ../fish/guestfish-actions.pod:337
6439 msgid "aug-rm"
6440 msgstr ""
6441
6442 #. type: verbatim
6443 #: ../fish/guestfish-actions.pod:339
6444 #, no-wrap
6445 msgid ""
6446 " aug-rm augpath\n"
6447 "\n"
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6452 msgid "Remove C<path> and all of its children."
6453 msgstr ""
6454
6455 #. type: textblock
6456 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6457 msgid "On success this returns the number of entries which were removed."
6458 msgstr ""
6459
6460 #. type: =head2
6461 #: ../fish/guestfish-actions.pod:345
6462 msgid "aug-save"
6463 msgstr ""
6464
6465 #. type: verbatim
6466 #: ../fish/guestfish-actions.pod:347
6467 #, no-wrap
6468 msgid ""
6469 " aug-save\n"
6470 "\n"
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6475 msgid "This writes all pending changes to disk."
6476 msgstr ""
6477
6478 #. type: textblock
6479 #: ../fish/guestfish-actions.pod:351
6480 msgid ""
6481 "The flags which were passed to L</aug-init> affect exactly how files are "
6482 "saved."
6483 msgstr ""
6484
6485 #. type: =head2
6486 #: ../fish/guestfish-actions.pod:354
6487 msgid "aug-set"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../fish/guestfish-actions.pod:356
6492 #, no-wrap
6493 msgid ""
6494 " aug-set augpath val\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6500 msgid "Set the value associated with C<path> to C<val>."
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:360
6505 msgid ""
6506 "In the Augeas API, it is possible to clear a node by setting the value to "
6507 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6508 "this call.  Instead you must use the L</aug-clear> call."
6509 msgstr ""
6510
6511 #. type: =head2
6512 #: ../fish/guestfish-actions.pod:365
6513 msgid "available"
6514 msgstr ""
6515
6516 #. type: verbatim
6517 #: ../fish/guestfish-actions.pod:367
6518 #, no-wrap
6519 msgid ""
6520 " available 'groups ...'\n"
6521 "\n"
6522 msgstr ""
6523
6524 #. type: textblock
6525 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6526 msgid ""
6527 "This command is used to check the availability of some groups of "
6528 "functionality in the appliance, which not all builds of the libguestfs "
6529 "appliance will be able to provide."
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:373
6534 msgid ""
6535 "The libguestfs groups, and the functions that those groups correspond to, "
6536 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6537 "runtime by calling L</available-all-groups>."
6538 msgstr ""
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6542 msgid ""
6543 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6544 "\"]> would check for the availability of the Linux inotify functions and "
6545 "Augeas (configuration file editing) functions."
6546 msgstr ""
6547
6548 #. type: textblock
6549 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6550 msgid "The command returns no error if I<all> requested groups are available."
6551 msgstr ""
6552
6553 #. type: textblock
6554 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6555 msgid ""
6556 "It fails with an error if one or more of the requested groups is unavailable "
6557 "in the appliance."
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6562 msgid ""
6563 "If an unknown group name is included in the list of groups then an error is "
6564 "always returned."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6569 msgid "I<Notes:>"
6570 msgstr ""
6571
6572 #. type: textblock
6573 #: ../fish/guestfish-actions.pod:397
6574 msgid "You must call L</launch> before calling this function."
6575 msgstr ""
6576
6577 #. type: textblock
6578 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6579 msgid ""
6580 "The reason is because we don't know what groups are supported by the "
6581 "appliance/daemon until it is running and can be queried."
6582 msgstr ""
6583
6584 #. type: textblock
6585 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6586 msgid ""
6587 "If a group of functions is available, this does not necessarily mean that "
6588 "they will work.  You still have to check for errors when calling individual "
6589 "API functions even if they are available."
6590 msgstr ""
6591
6592 #. type: textblock
6593 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6594 msgid ""
6595 "It is usually the job of distro packagers to build complete functionality "
6596 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6597 "with all requirements satisfied, will support everything."
6598 msgstr ""
6599
6600 #. type: textblock
6601 #: ../fish/guestfish-actions.pod:419
6602 msgid ""
6603 "This call was added in version C<1.0.80>.  In previous versions of "
6604 "libguestfs all you could do would be to speculatively execute a command to "
6605 "find out if the daemon implemented it.  See also L</version>."
6606 msgstr ""
6607
6608 #. type: =head2
6609 #: ../fish/guestfish-actions.pod:426
6610 msgid "available-all-groups"
6611 msgstr ""
6612
6613 #. type: verbatim
6614 #: ../fish/guestfish-actions.pod:428
6615 #, no-wrap
6616 msgid ""
6617 " available-all-groups\n"
6618 "\n"
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:430
6623 msgid ""
6624 "This command returns a list of all optional groups that this daemon knows "
6625 "about.  Note this returns both supported and unsupported groups.  To find "
6626 "out which ones the daemon can actually support you have to call L</"
6627 "available> on each member of the returned list."
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../fish/guestfish-actions.pod:436
6632 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6633 msgstr ""
6634
6635 #. type: =head2
6636 #: ../fish/guestfish-actions.pod:438
6637 msgid "base64-in"
6638 msgstr ""
6639
6640 #. type: verbatim
6641 #: ../fish/guestfish-actions.pod:440
6642 #, no-wrap
6643 msgid ""
6644 " base64-in (base64file|-) filename\n"
6645 "\n"
6646 msgstr ""
6647
6648 #. type: textblock
6649 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6650 msgid ""
6651 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6656 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6657 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6658 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6659 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6660 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6661 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6662 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6663 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:447
6668 msgid "base64-out"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:449
6673 #, no-wrap
6674 msgid ""
6675 " base64-out filename (base64file|-)\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6681 msgid ""
6682 "This command downloads the contents of C<filename>, writing it out to local "
6683 "file C<base64file> encoded as base64."
6684 msgstr ""
6685
6686 #. type: =head2
6687 #: ../fish/guestfish-actions.pod:456
6688 msgid "blockdev-flushbufs"
6689 msgstr ""
6690
6691 #. type: verbatim
6692 #: ../fish/guestfish-actions.pod:458
6693 #, no-wrap
6694 msgid ""
6695 " blockdev-flushbufs device\n"
6696 "\n"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6701 msgid ""
6702 "This tells the kernel to flush internal buffers associated with C<device>."
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6707 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6708 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6709 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6710 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6711 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6712 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6713 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6714 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6715 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6716 msgid "This uses the L<blockdev(8)> command."
6717 msgstr ""
6718
6719 #. type: =head2
6720 #: ../fish/guestfish-actions.pod:465
6721 msgid "blockdev-getbsz"
6722 msgstr ""
6723
6724 #. type: verbatim
6725 #: ../fish/guestfish-actions.pod:467
6726 #, no-wrap
6727 msgid ""
6728 " blockdev-getbsz device\n"
6729 "\n"
6730 msgstr ""
6731
6732 #. type: textblock
6733 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6734 msgid "This returns the block size of a device."
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6739 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6740 msgid ""
6741 "(Note this is different from both I<size in blocks> and I<filesystem block "
6742 "size>)."
6743 msgstr ""
6744
6745 #. type: =head2
6746 #: ../fish/guestfish-actions.pod:476
6747 msgid "blockdev-getro"
6748 msgstr ""
6749
6750 #. type: verbatim
6751 #: ../fish/guestfish-actions.pod:478
6752 #, no-wrap
6753 msgid ""
6754 " blockdev-getro device\n"
6755 "\n"
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6760 msgid ""
6761 "Returns a boolean indicating if the block device is read-only (true if read-"
6762 "only, false if not)."
6763 msgstr ""
6764
6765 #. type: =head2
6766 #: ../fish/guestfish-actions.pod:485
6767 msgid "blockdev-getsize64"
6768 msgstr ""
6769
6770 #. type: verbatim
6771 #: ../fish/guestfish-actions.pod:487
6772 #, no-wrap
6773 msgid ""
6774 " blockdev-getsize64 device\n"
6775 "\n"
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6780 msgid "This returns the size of the device in bytes."
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:491
6785 msgid "See also L</blockdev-getsz>."
6786 msgstr ""
6787
6788 #. type: =head2
6789 #: ../fish/guestfish-actions.pod:495
6790 msgid "blockdev-getss"
6791 msgstr ""
6792
6793 #. type: verbatim
6794 #: ../fish/guestfish-actions.pod:497
6795 #, no-wrap
6796 msgid ""
6797 " blockdev-getss device\n"
6798 "\n"
6799 msgstr ""
6800
6801 #. type: textblock
6802 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6803 msgid ""
6804 "This returns the size of sectors on a block device.  Usually 512, but can be "
6805 "larger for modern devices."
6806 msgstr ""
6807
6808 #. type: textblock
6809 #: ../fish/guestfish-actions.pod:502
6810 msgid ""
6811 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6812 msgstr ""
6813
6814 #. type: =head2
6815 #: ../fish/guestfish-actions.pod:507
6816 msgid "blockdev-getsz"
6817 msgstr ""
6818
6819 #. type: verbatim
6820 #: ../fish/guestfish-actions.pod:509
6821 #, no-wrap
6822 msgid ""
6823 " blockdev-getsz device\n"
6824 "\n"
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6829 msgid ""
6830 "This returns the size of the device in units of 512-byte sectors (even if "
6831 "the sectorsize isn't 512 bytes ... weird)."
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../fish/guestfish-actions.pod:514
6836 msgid ""
6837 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6838 "blockdev-getsize64> for the more useful I<size in bytes>."
6839 msgstr ""
6840
6841 #. type: =head2
6842 #: ../fish/guestfish-actions.pod:520
6843 msgid "blockdev-rereadpt"
6844 msgstr ""
6845
6846 #. type: verbatim
6847 #: ../fish/guestfish-actions.pod:522
6848 #, no-wrap
6849 msgid ""
6850 " blockdev-rereadpt device\n"
6851 "\n"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6856 msgid "Reread the partition table on C<device>."
6857 msgstr ""
6858
6859 #. type: =head2
6860 #: ../fish/guestfish-actions.pod:528
6861 msgid "blockdev-setbsz"
6862 msgstr ""
6863
6864 #. type: verbatim
6865 #: ../fish/guestfish-actions.pod:530
6866 #, no-wrap
6867 msgid ""
6868 " blockdev-setbsz device blocksize\n"
6869 "\n"
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6874 msgid "This sets the block size of a device."
6875 msgstr ""
6876
6877 #. type: =head2
6878 #: ../fish/guestfish-actions.pod:539
6879 msgid "blockdev-setro"
6880 msgstr ""
6881
6882 #. type: verbatim
6883 #: ../fish/guestfish-actions.pod:541
6884 #, no-wrap
6885 msgid ""
6886 " blockdev-setro device\n"
6887 "\n"
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
6892 msgid "Sets the block device named C<device> to read-only."
6893 msgstr ""
6894
6895 #. type: =head2
6896 #: ../fish/guestfish-actions.pod:547
6897 msgid "blockdev-setrw"
6898 msgstr ""
6899
6900 #. type: verbatim
6901 #: ../fish/guestfish-actions.pod:549
6902 #, no-wrap
6903 msgid ""
6904 " blockdev-setrw device\n"
6905 "\n"
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
6910 msgid "Sets the block device named C<device> to read-write."
6911 msgstr ""
6912
6913 #. type: =head2
6914 #: ../fish/guestfish-actions.pod:555
6915 msgid "btrfs-filesystem-resize"
6916 msgstr ""
6917
6918 #. type: verbatim
6919 #: ../fish/guestfish-actions.pod:557
6920 #, no-wrap
6921 msgid ""
6922 " btrfs-filesystem-resize mountpoint [size:..]\n"
6923 "\n"
6924 msgstr ""
6925
6926 #. type: textblock
6927 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
6928 msgid "This command resizes a btrfs filesystem."
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
6933 msgid ""
6934 "Note that unlike other resize calls, the filesystem has to be mounted and "
6935 "the parameter is the mountpoint not the device (this is a requirement of "
6936 "btrfs itself)."
6937 msgstr ""
6938
6939 #. type: textblock
6940 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
6941 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
6942 msgid "The optional parameters are:"
6943 msgstr ""
6944
6945 #. type: =item
6946 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
6947 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
6948 msgid "C<size>"
6949 msgstr ""
6950
6951 #. type: textblock
6952 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
6953 msgid ""
6954 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6955 "resized to the maximum size."
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
6960 msgid "See also L<btrfs(8)>."
6961 msgstr ""
6962
6963 #. type: =head2
6964 #: ../fish/guestfish-actions.pod:580
6965 msgid "case-sensitive-path"
6966 msgstr ""
6967
6968 #. type: verbatim
6969 #: ../fish/guestfish-actions.pod:582
6970 #, no-wrap
6971 msgid ""
6972 " case-sensitive-path path\n"
6973 "\n"
6974 msgstr ""
6975
6976 #. type: textblock
6977 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
6978 msgid ""
6979 "This can be used to resolve case insensitive paths on a filesystem which is "
6980 "case sensitive.  The use case is to resolve paths which you have read from "
6981 "Windows configuration files or the Windows Registry, to the true path."
6982 msgstr ""
6983
6984 #. type: textblock
6985 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
6986 msgid ""
6987 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6988 "(and probably others), which is that although the underlying filesystem is "
6989 "case-insensitive, the driver exports the filesystem to Linux as case-"
6990 "sensitive."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
6995 msgid ""
6996 "One consequence of this is that special directories such as C<c:\\windows> "
6997 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6998 "precise details of how they were created.  In Windows itself this would not "
6999 "be a problem."
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7004 msgid ""
7005 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7006 "#posixfilenames1>"
7007 msgstr ""
7008
7009 #. type: textblock
7010 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7011 msgid ""
7012 "This function resolves the true case of each element in the path and returns "
7013 "the case-sensitive path."
7014 msgstr ""
7015
7016 #. type: textblock
7017 #: ../fish/guestfish-actions.pod:606
7018 msgid ""
7019 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7020 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7021 "the directories were originally created under Windows)."
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7026 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:614
7031 msgid "See also L</realpath>."
7032 msgstr ""
7033
7034 #. type: =head2
7035 #: ../fish/guestfish-actions.pod:616
7036 msgid "cat"
7037 msgstr ""
7038
7039 #. type: verbatim
7040 #: ../fish/guestfish-actions.pod:618
7041 #, no-wrap
7042 msgid ""
7043 " cat path\n"
7044 "\n"
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7049 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7050 msgid "Return the contents of the file named C<path>."
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../fish/guestfish-actions.pod:622
7055 msgid ""
7056 "Note that this function cannot correctly handle binary files (specifically, "
7057 "files containing C<\\0> character which is treated as end of string).  For "
7058 "those you need to use the L</read-file> or L</download> functions which have "
7059 "a more complex interface."
7060 msgstr ""
7061
7062 #. type: textblock
7063 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7064 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7065 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7066 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7067 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7068 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7069 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7070 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7071 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7072 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7073 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7074 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7075 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7076 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7077 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7078 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7079 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7080 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7081 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7082 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7083 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7084 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7085 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7086 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7087 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7088 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7089 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7090 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7091 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7092 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7093 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7094 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7095 msgid ""
7096 "Because of the message protocol, there is a transfer limit of somewhere "
7097 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7098 msgstr ""
7099
7100 #. type: =head2
7101 #: ../fish/guestfish-actions.pod:630
7102 msgid "checksum"
7103 msgstr ""
7104
7105 #. type: verbatim
7106 #: ../fish/guestfish-actions.pod:632
7107 #, no-wrap
7108 msgid ""
7109 " checksum csumtype path\n"
7110 "\n"
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7115 msgid ""
7116 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7117 msgstr ""
7118
7119 #. type: textblock
7120 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7121 msgid ""
7122 "The type of checksum to compute is given by the C<csumtype> parameter which "
7123 "must have one of the following values:"
7124 msgstr ""
7125
7126 #. type: =item
7127 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7128 msgid "C<crc>"
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7133 msgid ""
7134 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7135 "C<cksum> command."
7136 msgstr ""
7137
7138 #. type: =item
7139 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7140 msgid "C<md5>"
7141 msgstr ""
7142
7143 #. type: textblock
7144 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7145 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7146 msgstr ""
7147
7148 #. type: =item
7149 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7150 msgid "C<sha1>"
7151 msgstr ""
7152
7153 #. type: textblock
7154 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7155 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7156 msgstr ""
7157
7158 #. type: =item
7159 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7160 msgid "C<sha224>"
7161 msgstr ""
7162
7163 #. type: textblock
7164 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7165 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7166 msgstr ""
7167
7168 #. type: =item
7169 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7170 msgid "C<sha256>"
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7175 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7176 msgstr ""
7177
7178 #. type: =item
7179 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7180 msgid "C<sha384>"
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7185 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7186 msgstr ""
7187
7188 #. type: =item
7189 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7190 msgid "C<sha512>"
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7195 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7196 msgstr ""
7197
7198 #. type: textblock
7199 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7200 msgid "The checksum is returned as a printable string."
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../fish/guestfish-actions.pod:675
7205 msgid "To get the checksum for a device, use L</checksum-device>."
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:677
7210 msgid "To get the checksums for many files, use L</checksums-out>."
7211 msgstr ""
7212
7213 #. type: =head2
7214 #: ../fish/guestfish-actions.pod:679
7215 msgid "checksum-device"
7216 msgstr ""
7217
7218 #. type: verbatim
7219 #: ../fish/guestfish-actions.pod:681
7220 #, no-wrap
7221 msgid ""
7222 " checksum-device csumtype device\n"
7223 "\n"
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:683
7228 msgid ""
7229 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7230 "device named C<device>.  For the types of checksums supported see the L</"
7231 "checksum> command."
7232 msgstr ""
7233
7234 #. type: =head2
7235 #: ../fish/guestfish-actions.pod:687
7236 msgid "checksums-out"
7237 msgstr ""
7238
7239 #. type: verbatim
7240 #: ../fish/guestfish-actions.pod:689
7241 #, no-wrap
7242 msgid ""
7243 " checksums-out csumtype directory (sumsfile|-)\n"
7244 "\n"
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7249 msgid ""
7250 "This command computes the checksums of all regular files in C<directory> and "
7251 "then emits a list of those checksums to the local output file C<sumsfile>."
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7256 msgid ""
7257 "This can be used for verifying the integrity of a virtual machine.  However "
7258 "to be properly secure you should pay attention to the output of the checksum "
7259 "command (it uses the ones from GNU coreutils).  In particular when the "
7260 "filename is not printable, coreutils uses a special backslash syntax.  For "
7261 "more information, see the GNU coreutils info file."
7262 msgstr ""
7263
7264 #. type: =head2
7265 #: ../fish/guestfish-actions.pod:705
7266 msgid "chmod"
7267 msgstr ""
7268
7269 #. type: verbatim
7270 #: ../fish/guestfish-actions.pod:707
7271 #, no-wrap
7272 msgid ""
7273 " chmod mode path\n"
7274 "\n"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7279 msgid ""
7280 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7281 "supported."
7282 msgstr ""
7283
7284 #. type: textblock
7285 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7286 msgid ""
7287 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7288 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7289 "C<700>."
7290 msgstr ""
7291
7292 #. type: textblock
7293 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7294 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7295 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7296 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7297 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7298 msgid "The mode actually set is affected by the umask."
7299 msgstr ""
7300
7301 #. type: =head2
7302 #: ../fish/guestfish-actions.pod:718
7303 msgid "chown"
7304 msgstr ""
7305
7306 #. type: verbatim
7307 #: ../fish/guestfish-actions.pod:720
7308 #, no-wrap
7309 msgid ""
7310 " chown owner group path\n"
7311 "\n"
7312 msgstr ""
7313
7314 #. type: textblock
7315 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7316 msgid "Change the file owner to C<owner> and group to C<group>."
7317 msgstr ""
7318
7319 #. type: textblock
7320 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7321 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7322 msgid ""
7323 "Only numeric uid and gid are supported.  If you want to use names, you will "
7324 "need to locate and parse the password file yourself (Augeas support makes "
7325 "this relatively easy)."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:728
7330 msgid "command"
7331 msgstr ""
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:730
7335 #, no-wrap
7336 msgid ""
7337 " command 'arguments ...'\n"
7338 "\n"
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7343 msgid ""
7344 "This call runs a command from the guest filesystem.  The filesystem must be "
7345 "mounted, and must contain a compatible operating system (ie. something "
7346 "Linux, with the same or compatible processor architecture)."
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:737
7351 msgid ""
7352 "The single parameter is an argv-style list of arguments.  The first element "
7353 "is the name of the program to run.  Subsequent elements are parameters.  The "
7354 "list must be non-empty (ie. must contain a program name).  Note that the "
7355 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7356 msgstr ""
7357
7358 #. type: textblock
7359 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7360 msgid "The return value is anything printed to I<stdout> by the command."
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7365 msgid ""
7366 "If the command returns a non-zero exit status, then this function returns an "
7367 "error message.  The error message string is the content of I<stderr> from "
7368 "the command."
7369 msgstr ""
7370
7371 #. type: textblock
7372 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7373 msgid ""
7374 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7375 "bin>.  If you require a program from another location, you should provide "
7376 "the full path in the first parameter."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7381 msgid ""
7382 "Shared libraries and data files required by the program must be available on "
7383 "filesystems which are mounted in the correct places.  It is the caller's "
7384 "responsibility to ensure all filesystems that are needed are mounted at the "
7385 "right locations."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:765
7390 msgid "command-lines"
7391 msgstr ""
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:767
7395 #, no-wrap
7396 msgid ""
7397 " command-lines 'arguments ...'\n"
7398 "\n"
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:769
7403 msgid ""
7404 "This is the same as L</command>, but splits the result into a list of lines."
7405 msgstr ""
7406
7407 #. type: textblock
7408 #: ../fish/guestfish-actions.pod:772
7409 msgid "See also: L</sh-lines>"
7410 msgstr ""
7411
7412 #. type: =head2
7413 #: ../fish/guestfish-actions.pod:777
7414 msgid "compress-device-out"
7415 msgstr ""
7416
7417 #. type: verbatim
7418 #: ../fish/guestfish-actions.pod:779
7419 #, no-wrap
7420 msgid ""
7421 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7422 "\n"
7423 msgstr ""
7424
7425 #. type: textblock
7426 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7427 msgid ""
7428 "This command compresses C<device> and writes it out to the local file "
7429 "C<zdevice>."
7430 msgstr ""
7431
7432 #. type: textblock
7433 #: ../fish/guestfish-actions.pod:784
7434 msgid ""
7435 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7436 "compress-out>."
7437 msgstr ""
7438
7439 #. type: =head2
7440 #: ../fish/guestfish-actions.pod:791
7441 msgid "compress-out"
7442 msgstr ""
7443
7444 #. type: verbatim
7445 #: ../fish/guestfish-actions.pod:793
7446 #, no-wrap
7447 msgid ""
7448 " compress-out ctype file (zfile|-) [level:..]\n"
7449 "\n"
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7454 msgid ""
7455 "This command compresses C<file> and writes it out to the local file C<zfile>."
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7460 msgid ""
7461 "The compression program used is controlled by the C<ctype> parameter.  "
7462 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7463 "Some compression types may not be supported by particular builds of "
7464 "libguestfs, in which case you will get an error containing the substring "
7465 "\"not supported\"."
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7470 msgid ""
7471 "The optional C<level> parameter controls compression level.  The meaning and "
7472 "default for this parameter depends on the compression program being used."
7473 msgstr ""
7474
7475 #. type: =head2
7476 #: ../fish/guestfish-actions.pod:812
7477 msgid "config"
7478 msgstr ""
7479
7480 #. type: verbatim
7481 #: ../fish/guestfish-actions.pod:814
7482 #, no-wrap
7483 msgid ""
7484 " config qemuparam qemuvalue\n"
7485 "\n"
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7490 msgid ""
7491 "This can be used to add arbitrary qemu command line parameters of the form "
7492 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7493 "setting some parameters which would interfere with parameters that we use."
7494 msgstr ""
7495
7496 #. type: textblock
7497 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7498 msgid "The first character of C<param> string must be a C<-> (dash)."
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7503 msgid "C<value> can be NULL."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:825
7508 msgid "copy-size"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:827
7513 #, no-wrap
7514 msgid ""
7515 " copy-size src dest size\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7521 msgid ""
7522 "This command copies exactly C<size> bytes from one source device or file "
7523 "C<src> to another destination device or file C<dest>."
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7528 msgid ""
7529 "Note this will fail if the source is too short or if the destination is not "
7530 "large enough."
7531 msgstr ""
7532
7533 #. type: =head2
7534 #: ../fish/guestfish-actions.pod:835
7535 msgid "cp"
7536 msgstr ""
7537
7538 #. type: verbatim
7539 #: ../fish/guestfish-actions.pod:837
7540 #, no-wrap
7541 msgid ""
7542 " cp src dest\n"
7543 "\n"
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7548 msgid ""
7549 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7550 "destination filename or destination directory."
7551 msgstr ""
7552
7553 #. type: =head2
7554 #: ../fish/guestfish-actions.pod:842
7555 msgid "cp-a"
7556 msgstr ""
7557
7558 #. type: verbatim
7559 #: ../fish/guestfish-actions.pod:844
7560 #, no-wrap
7561 msgid ""
7562 " cp-a src dest\n"
7563 "\n"
7564 msgstr ""
7565
7566 #. type: textblock
7567 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7568 msgid ""
7569 "This copies a file or directory from C<src> to C<dest> recursively using the "
7570 "C<cp -a> command."
7571 msgstr ""
7572
7573 #. type: =head2
7574 #: ../fish/guestfish-actions.pod:849
7575 msgid "dd"
7576 msgstr ""
7577
7578 #. type: verbatim
7579 #: ../fish/guestfish-actions.pod:851
7580 #, no-wrap
7581 msgid ""
7582 " dd src dest\n"
7583 "\n"
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7588 msgid ""
7589 "This command copies from one source device or file C<src> to another "
7590 "destination device or file C<dest>.  Normally you would use this to copy to "
7591 "or from a device or partition, for example to duplicate a filesystem."
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:858
7596 msgid ""
7597 "If the destination is a device, it must be as large or larger than the "
7598 "source file or device, otherwise the copy will fail.  This command cannot do "
7599 "partial copies (see L</copy-size>)."
7600 msgstr ""
7601
7602 #. type: =head2
7603 #: ../fish/guestfish-actions.pod:862
7604 msgid "df"
7605 msgstr ""
7606
7607 #. type: verbatim
7608 #: ../fish/guestfish-actions.pod:864
7609 #, no-wrap
7610 msgid ""
7611 " df\n"
7612 "\n"
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7617 msgid "This command runs the C<df> command to report disk space used."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7622 msgid ""
7623 "This command is mostly useful for interactive sessions.  It is I<not> "
7624 "intended that you try to parse the output string.  Use L</statvfs> from "
7625 "programs."
7626 msgstr ""
7627
7628 #. type: =head2
7629 #: ../fish/guestfish-actions.pod:872
7630 msgid "df-h"
7631 msgstr ""
7632
7633 #. type: verbatim
7634 #: ../fish/guestfish-actions.pod:874
7635 #, no-wrap
7636 msgid ""
7637 " df-h\n"
7638 "\n"
7639 msgstr ""
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7643 msgid ""
7644 "This command runs the C<df -h> command to report disk space used in human-"
7645 "readable format."
7646 msgstr ""
7647
7648 #. type: =head2
7649 #: ../fish/guestfish-actions.pod:883
7650 msgid "dmesg"
7651 msgstr ""
7652
7653 #. type: verbatim
7654 #: ../fish/guestfish-actions.pod:885
7655 #, no-wrap
7656 msgid ""
7657 " dmesg\n"
7658 "\n"
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7663 msgid ""
7664 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7665 "This is sometimes useful for extended debugging of problems."
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:891
7670 msgid ""
7671 "Another way to get the same information is to enable verbose messages with "
7672 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7673 "before running the program."
7674 msgstr ""
7675
7676 #. type: =head2
7677 #: ../fish/guestfish-actions.pod:896
7678 msgid "download"
7679 msgstr ""
7680
7681 #. type: verbatim
7682 #: ../fish/guestfish-actions.pod:898
7683 #, no-wrap
7684 msgid ""
7685 " download remotefilename (filename|-)\n"
7686 "\n"
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7691 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7692 msgid ""
7693 "Download file C<remotefilename> and save it as C<filename> on the local "
7694 "machine."
7695 msgstr ""
7696
7697 #. type: textblock
7698 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7699 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7700 msgid "C<filename> can also be a named pipe."
7701 msgstr ""
7702
7703 #. type: textblock
7704 #: ../fish/guestfish-actions.pod:905
7705 msgid "See also L</upload>, L</cat>."
7706 msgstr ""
7707
7708 #. type: =head2
7709 #: ../fish/guestfish-actions.pod:909
7710 msgid "download-offset"
7711 msgstr ""
7712
7713 #. type: verbatim
7714 #: ../fish/guestfish-actions.pod:911
7715 #, no-wrap
7716 msgid ""
7717 " download-offset remotefilename (filename|-) offset size\n"
7718 "\n"
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7723 msgid ""
7724 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7725 "region must be within the file or device)."
7726 msgstr ""
7727
7728 #. type: textblock
7729 #: ../fish/guestfish-actions.pod:919
7730 msgid ""
7731 "Note that there is no limit on the amount of data that can be downloaded "
7732 "with this call, unlike with L</pread>, and this call always reads the full "
7733 "amount unless an error occurs."
7734 msgstr ""
7735
7736 #. type: textblock
7737 #: ../fish/guestfish-actions.pod:924
7738 msgid "See also L</download>, L</pread>."
7739 msgstr ""
7740
7741 #. type: =head2
7742 #: ../fish/guestfish-actions.pod:928
7743 msgid "drop-caches"
7744 msgstr ""
7745
7746 #. type: verbatim
7747 #: ../fish/guestfish-actions.pod:930
7748 #, no-wrap
7749 msgid ""
7750 " drop-caches whattodrop\n"
7751 "\n"
7752 msgstr ""
7753
7754 #. type: textblock
7755 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7756 msgid ""
7757 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7758 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7759 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7764 msgid "Setting C<whattodrop> to 3 should drop everything."
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7769 msgid ""
7770 "This automatically calls L<sync(2)> before the operation, so that the "
7771 "maximum guest memory is freed."
7772 msgstr ""
7773
7774 #. type: =head2
7775 #: ../fish/guestfish-actions.pod:942
7776 msgid "du"
7777 msgstr ""
7778
7779 #. type: verbatim
7780 #: ../fish/guestfish-actions.pod:944
7781 #, no-wrap
7782 msgid ""
7783 " du path\n"
7784 "\n"
7785 msgstr ""
7786
7787 #. type: textblock
7788 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7789 msgid ""
7790 "This command runs the C<du -s> command to estimate file space usage for "
7791 "C<path>."
7792 msgstr ""
7793
7794 #. type: textblock
7795 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7796 msgid ""
7797 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7798 "estimate includes the contents of the directory and all subdirectories "
7799 "(recursively)."
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7804 msgid ""
7805 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7806 msgstr ""
7807
7808 #. type: =head2
7809 #: ../fish/guestfish-actions.pod:956
7810 msgid "e2fsck-f"
7811 msgstr ""
7812
7813 #. type: verbatim
7814 #: ../fish/guestfish-actions.pod:958
7815 #, no-wrap
7816 msgid ""
7817 " e2fsck-f device\n"
7818 "\n"
7819 msgstr ""
7820
7821 #. type: textblock
7822 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7823 msgid ""
7824 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7825 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7826 "clean (I<-f>)."
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:964
7831 msgid ""
7832 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7833 "should use L</fsck>."
7834 msgstr ""
7835
7836 #. type: =head2
7837 #: ../fish/guestfish-actions.pod:967
7838 msgid "echo-daemon"
7839 msgstr ""
7840
7841 #. type: verbatim
7842 #: ../fish/guestfish-actions.pod:969
7843 #, no-wrap
7844 msgid ""
7845 " echo-daemon 'words ...'\n"
7846 "\n"
7847 msgstr ""
7848
7849 #. type: textblock
7850 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7851 msgid ""
7852 "This command concatenates the list of C<words> passed with single spaces "
7853 "between them and returns the resulting string."
7854 msgstr ""
7855
7856 #. type: textblock
7857 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7858 msgid "You can use this command to test the connection through to the daemon."
7859 msgstr ""
7860
7861 #. type: textblock
7862 #: ../fish/guestfish-actions.pod:976
7863 msgid "See also L</ping-daemon>."
7864 msgstr ""
7865
7866 #. type: =head2
7867 #: ../fish/guestfish-actions.pod:978
7868 msgid "egrep"
7869 msgstr ""
7870
7871 #. type: verbatim
7872 #: ../fish/guestfish-actions.pod:980
7873 #, no-wrap
7874 msgid ""
7875 " egrep regex path\n"
7876 "\n"
7877 msgstr ""
7878
7879 #. type: textblock
7880 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
7881 msgid ""
7882 "This calls the external C<egrep> program and returns the matching lines."
7883 msgstr ""
7884
7885 #. type: =head2
7886 #: ../fish/guestfish-actions.pod:988
7887 msgid "egrepi"
7888 msgstr ""
7889
7890 #. type: verbatim
7891 #: ../fish/guestfish-actions.pod:990
7892 #, no-wrap
7893 msgid ""
7894 " egrepi regex path\n"
7895 "\n"
7896 msgstr ""
7897
7898 #. type: textblock
7899 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
7900 msgid ""
7901 "This calls the external C<egrep -i> program and returns the matching lines."
7902 msgstr ""
7903
7904 #. type: =head2
7905 #: ../fish/guestfish-actions.pod:998
7906 msgid "equal"
7907 msgstr ""
7908
7909 #. type: verbatim
7910 #: ../fish/guestfish-actions.pod:1000
7911 #, no-wrap
7912 msgid ""
7913 " equal file1 file2\n"
7914 "\n"
7915 msgstr ""
7916
7917 #. type: textblock
7918 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
7919 msgid ""
7920 "This compares the two files C<file1> and C<file2> and returns true if their "
7921 "content is exactly equal, or false otherwise."
7922 msgstr ""
7923
7924 #. type: textblock
7925 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
7926 msgid "The external L<cmp(1)> program is used for the comparison."
7927 msgstr ""
7928
7929 #. type: =head2
7930 #: ../fish/guestfish-actions.pod:1007
7931 msgid "exists"
7932 msgstr ""
7933
7934 #. type: verbatim
7935 #: ../fish/guestfish-actions.pod:1009
7936 #, no-wrap
7937 msgid ""
7938 " exists path\n"
7939 "\n"
7940 msgstr ""
7941
7942 #. type: textblock
7943 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
7944 msgid ""
7945 "This returns C<true> if and only if there is a file, directory (or anything) "
7946 "with the given C<path> name."
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../fish/guestfish-actions.pod:1014
7951 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7952 msgstr ""
7953
7954 #. type: =head2
7955 #: ../fish/guestfish-actions.pod:1016
7956 msgid "fallocate"
7957 msgstr ""
7958
7959 #. type: verbatim
7960 #: ../fish/guestfish-actions.pod:1018
7961 #, no-wrap
7962 msgid ""
7963 " fallocate path len\n"
7964 "\n"
7965 msgstr ""
7966
7967 #. type: textblock
7968 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
7969 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
7970 msgid ""
7971 "This command preallocates a file (containing zero bytes) named C<path> of "
7972 "size C<len> bytes.  If the file exists already, it is overwritten."
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
7977 msgid ""
7978 "Do not confuse this with the guestfish-specific C<alloc> command which "
7979 "allocates a file in the host and attaches it as a device."
7980 msgstr ""
7981
7982 #. type: textblock
7983 #: ../fish/guestfish-actions.pod:1028
7984 msgid ""
7985 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7986 "instead."
7987 msgstr ""
7988
7989 #. type: =head2
7990 #: ../fish/guestfish-actions.pod:1035
7991 msgid "fallocate64"
7992 msgstr ""
7993
7994 #. type: verbatim
7995 #: ../fish/guestfish-actions.pod:1037
7996 #, no-wrap
7997 msgid ""
7998 " fallocate64 path len\n"
7999 "\n"
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:1043
8004 msgid ""
8005 "Note that this call allocates disk blocks for the file.  To create a sparse "
8006 "file use L</truncate-size> instead."
8007 msgstr ""
8008
8009 #. type: textblock
8010 #: ../fish/guestfish-actions.pod:1046
8011 msgid ""
8012 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8013 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8014 "maximum size of files created through that call to 1GB."
8015 msgstr ""
8016
8017 #. type: textblock
8018 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8019 msgid ""
8020 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8021 "commands which create a file in the host and attach it as a device."
8022 msgstr ""
8023
8024 #. type: =head2
8025 #: ../fish/guestfish-actions.pod:1055
8026 msgid "fgrep"
8027 msgstr ""
8028
8029 #. type: verbatim
8030 #: ../fish/guestfish-actions.pod:1057
8031 #, no-wrap
8032 msgid ""
8033 " fgrep pattern path\n"
8034 "\n"
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8039 msgid ""
8040 "This calls the external C<fgrep> program and returns the matching lines."
8041 msgstr ""
8042
8043 #. type: =head2
8044 #: ../fish/guestfish-actions.pod:1065
8045 msgid "fgrepi"
8046 msgstr ""
8047
8048 #. type: verbatim
8049 #: ../fish/guestfish-actions.pod:1067
8050 #, no-wrap
8051 msgid ""
8052 " fgrepi pattern path\n"
8053 "\n"
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8058 msgid ""
8059 "This calls the external C<fgrep -i> program and returns the matching lines."
8060 msgstr ""
8061
8062 #. type: =head2
8063 #: ../fish/guestfish-actions.pod:1075
8064 msgid "file"
8065 msgstr ""
8066
8067 #. type: verbatim
8068 #: ../fish/guestfish-actions.pod:1077
8069 #, no-wrap
8070 msgid ""
8071 " file path\n"
8072 "\n"
8073 msgstr ""
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8077 msgid ""
8078 "This call uses the standard L<file(1)> command to determine the type or "
8079 "contents of the file."
8080 msgstr ""
8081
8082 #. type: textblock
8083 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8084 msgid ""
8085 "This call will also transparently look inside various types of compressed "
8086 "file."
8087 msgstr ""
8088
8089 #. type: textblock
8090 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8091 msgid ""
8092 "The exact command which runs is C<file -zb path>.  Note in particular that "
8093 "the filename is not prepended to the output (the I<-b> option)."
8094 msgstr ""
8095
8096 #. type: textblock
8097 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8098 msgid ""
8099 "The output depends on the output of the underlying L<file(1)> command and it "
8100 "can change in future in ways beyond our control.  In other words, the output "
8101 "is not guaranteed by the ABI."
8102 msgstr ""
8103
8104 #. type: textblock
8105 #: ../fish/guestfish-actions.pod:1093
8106 msgid ""
8107 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8108 "(etc), L</is-zero>."
8109 msgstr ""
8110
8111 #. type: =head2
8112 #: ../fish/guestfish-actions.pod:1096
8113 msgid "file-architecture"
8114 msgstr ""
8115
8116 #. type: verbatim
8117 #: ../fish/guestfish-actions.pod:1098
8118 #, no-wrap
8119 msgid ""
8120 " file-architecture filename\n"
8121 "\n"
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8126 msgid ""
8127 "This detects the architecture of the binary C<filename>, and returns it if "
8128 "known."
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8133 msgid "Currently defined architectures are:"
8134 msgstr ""
8135
8136 #. type: =item
8137 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8138 msgid "\"i386\""
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8143 msgid ""
8144 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8145 "irrespective of the precise processor requirements of the binary."
8146 msgstr ""
8147
8148 #. type: =item
8149 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8150 msgid "\"x86_64\""
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8155 msgid "64 bit x86-64."
8156 msgstr ""
8157
8158 #. type: =item
8159 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8160 msgid "\"sparc\""
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8165 msgid "32 bit SPARC."
8166 msgstr ""
8167
8168 #. type: =item
8169 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8170 msgid "\"sparc64\""
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8175 msgid "64 bit SPARC V9 and above."
8176 msgstr ""
8177
8178 #. type: =item
8179 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8180 msgid "\"ia64\""
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8185 msgid "Intel Itanium."
8186 msgstr ""
8187
8188 #. type: =item
8189 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8190 msgid "\"ppc\""
8191 msgstr ""
8192
8193 #. type: textblock
8194 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8195 msgid "32 bit Power PC."
8196 msgstr ""
8197
8198 #. type: =item
8199 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8200 msgid "\"ppc64\""
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8205 msgid "64 bit Power PC."
8206 msgstr ""
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8210 msgid "Libguestfs may return other architecture strings in future."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8215 msgid "The function works on at least the following types of files:"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8220 msgid "many types of Un*x and Linux binary"
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8225 msgid "many types of Un*x and Linux shared library"
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8230 msgid "Windows Win32 and Win64 binaries"
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8235 msgid "Windows Win32 and Win64 DLLs"
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8240 msgid "Win32 binaries and DLLs return C<i386>."
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8245 msgid "Win64 binaries and DLLs return C<x86_64>."
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8250 msgid "Linux kernel modules"
8251 msgstr ""
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8255 msgid "Linux new-style initrd images"
8256 msgstr ""
8257
8258 #. type: textblock
8259 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8260 msgid "some non-x86 Linux vmlinuz kernels"
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8265 msgid "What it can't do currently:"
8266 msgstr ""
8267
8268 #. type: textblock
8269 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8270 msgid "static libraries (libfoo.a)"
8271 msgstr ""
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8275 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8276 msgstr ""
8277
8278 #. type: textblock
8279 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8280 msgid "x86 Linux vmlinuz kernels"
8281 msgstr ""
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8285 msgid ""
8286 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8287 "compressed code, and are horribly hard to unpack.  If you want to find the "
8288 "architecture of a kernel, use the architecture of the associated initrd or "
8289 "kernel module(s) instead."
8290 msgstr ""
8291
8292 #. type: =head2
8293 #: ../fish/guestfish-actions.pod:1201
8294 msgid "filesize"
8295 msgstr ""
8296
8297 #. type: verbatim
8298 #: ../fish/guestfish-actions.pod:1203
8299 #, no-wrap
8300 msgid ""
8301 " filesize file\n"
8302 "\n"
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8307 msgid "This command returns the size of C<file> in bytes."
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../fish/guestfish-actions.pod:1207
8312 msgid ""
8313 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8314 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8315 msgstr ""
8316
8317 #. type: =head2
8318 #: ../fish/guestfish-actions.pod:1211
8319 msgid "fill"
8320 msgstr ""
8321
8322 #. type: verbatim
8323 #: ../fish/guestfish-actions.pod:1213
8324 #, no-wrap
8325 msgid ""
8326 " fill c len path\n"
8327 "\n"
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8332 msgid ""
8333 "This command creates a new file called C<path>.  The initial content of the "
8334 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8335 "[0..255]>."
8336 msgstr ""
8337
8338 #. type: textblock
8339 #: ../fish/guestfish-actions.pod:1219
8340 msgid ""
8341 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8342 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8343 "L</fill-pattern>."
8344 msgstr ""
8345
8346 #. type: =head2
8347 #: ../fish/guestfish-actions.pod:1224
8348 msgid "fill-pattern"
8349 msgstr ""
8350
8351 #. type: verbatim
8352 #: ../fish/guestfish-actions.pod:1226
8353 #, no-wrap
8354 msgid ""
8355 " fill-pattern pattern len path\n"
8356 "\n"
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1228
8361 msgid ""
8362 "This function is like L</fill> except that it creates a new file of length "
8363 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8364 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8365 "bytes."
8366 msgstr ""
8367
8368 #. type: =head2
8369 #: ../fish/guestfish-actions.pod:1233
8370 msgid "find"
8371 msgstr ""
8372
8373 #. type: verbatim
8374 #: ../fish/guestfish-actions.pod:1235
8375 #, no-wrap
8376 msgid ""
8377 " find directory\n"
8378 "\n"
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8383 msgid ""
8384 "This command lists out all files and directories, recursively, starting at "
8385 "C<directory>.  It is essentially equivalent to running the shell command "
8386 "C<find directory -print> but some post-processing happens on the output, "
8387 "described below."
8388 msgstr ""
8389
8390 #. type: textblock
8391 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8392 msgid ""
8393 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8394 "structure was:"
8395 msgstr ""
8396
8397 #. type: verbatim
8398 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8399 #, no-wrap
8400 msgid ""
8401 " /tmp/a\n"
8402 " /tmp/b\n"
8403 " /tmp/c/d\n"
8404 "\n"
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:1249
8409 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8410 msgstr ""
8411
8412 #. type: verbatim
8413 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8414 #, no-wrap
8415 msgid ""
8416 " a\n"
8417 " b\n"
8418 " c\n"
8419 " c/d\n"
8420 "\n"
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8425 msgid "If C<directory> is not a directory, then this command returns an error."
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8430 msgid "The returned list is sorted."
8431 msgstr ""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:1262
8435 msgid "See also L</find0>."
8436 msgstr ""
8437
8438 #. type: =head2
8439 #: ../fish/guestfish-actions.pod:1267
8440 msgid "find0"
8441 msgstr ""
8442
8443 #. type: verbatim
8444 #: ../fish/guestfish-actions.pod:1269
8445 #, no-wrap
8446 msgid ""
8447 " find0 directory (files|-)\n"
8448 "\n"
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8453 msgid ""
8454 "This command lists out all files and directories, recursively, starting at "
8455 "C<directory>, placing the resulting list in the external file called "
8456 "C<files>."
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:1275
8461 msgid ""
8462 "This command works the same way as L</find> with the following exceptions:"
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8467 msgid "The resulting list is written to an external file."
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8472 msgid ""
8473 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8474 "L<find(1)> option I<-print0>."
8475 msgstr ""
8476
8477 #. type: textblock
8478 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8479 msgid "This command is not limited in the number of names that it can return."
8480 msgstr ""
8481
8482 #. type: textblock
8483 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8484 msgid "The result list is not sorted."
8485 msgstr ""
8486
8487 #. type: =head2
8488 #: ../fish/guestfish-actions.pod:1302
8489 msgid "findfs-label"
8490 msgstr ""
8491
8492 #. type: verbatim
8493 #: ../fish/guestfish-actions.pod:1304
8494 #, no-wrap
8495 msgid ""
8496 " findfs-label label\n"
8497 "\n"
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8502 msgid ""
8503 "This command searches the filesystems and returns the one which has the "
8504 "given label.  An error is returned if no such filesystem can be found."
8505 msgstr ""
8506
8507 #. type: textblock
8508 #: ../fish/guestfish-actions.pod:1310
8509 msgid "To find the label of a filesystem, use L</vfs-label>."
8510 msgstr ""
8511
8512 #. type: =head2
8513 #: ../fish/guestfish-actions.pod:1312
8514 msgid "findfs-uuid"
8515 msgstr ""
8516
8517 #. type: verbatim
8518 #: ../fish/guestfish-actions.pod:1314
8519 #, no-wrap
8520 msgid ""
8521 " findfs-uuid uuid\n"
8522 "\n"
8523 msgstr ""
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8527 msgid ""
8528 "This command searches the filesystems and returns the one which has the "
8529 "given UUID.  An error is returned if no such filesystem can be found."
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:1320
8534 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8535 msgstr ""
8536
8537 #. type: =head2
8538 #: ../fish/guestfish-actions.pod:1322
8539 msgid "fsck"
8540 msgstr ""
8541
8542 #. type: verbatim
8543 #: ../fish/guestfish-actions.pod:1324
8544 #, no-wrap
8545 msgid ""
8546 " fsck fstype device\n"
8547 "\n"
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8552 msgid ""
8553 "This runs the filesystem checker (fsck) on C<device> which should have "
8554 "filesystem type C<fstype>."
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8559 msgid ""
8560 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8561 "codes from C<fsck>."
8562 msgstr ""
8563
8564 #. type: textblock
8565 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8566 msgid "Multiple status codes can be summed together."
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8571 msgid ""
8572 "A non-zero return code can mean \"success\", for example if errors have been "
8573 "corrected on the filesystem."
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8578 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8583 msgid ""
8584 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8585 msgstr ""
8586
8587 #. type: =head2
8588 #: ../fish/guestfish-actions.pod:1354
8589 msgid "get-append"
8590 msgstr ""
8591
8592 #. type: verbatim
8593 #: ../fish/guestfish-actions.pod:1356
8594 #, no-wrap
8595 msgid ""
8596 " get-append\n"
8597 "\n"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8602 msgid ""
8603 "Return the additional kernel options which are added to the guest kernel "
8604 "command line."
8605 msgstr ""
8606
8607 #. type: textblock
8608 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8609 msgid "If C<NULL> then no options are added."
8610 msgstr ""
8611
8612 #. type: =head2
8613 #: ../fish/guestfish-actions.pod:1363
8614 msgid "get-attach-method"
8615 msgstr ""
8616
8617 #. type: verbatim
8618 #: ../fish/guestfish-actions.pod:1365
8619 #, no-wrap
8620 msgid ""
8621 " get-attach-method\n"
8622 "\n"
8623 msgstr ""
8624
8625 #. type: textblock
8626 #: ../fish/guestfish-actions.pod:1367
8627 msgid "Return the current attach method.  See L</set-attach-method>."
8628 msgstr ""
8629
8630 #. type: =head2
8631 #: ../fish/guestfish-actions.pod:1369
8632 msgid "get-autosync"
8633 msgstr ""
8634
8635 #. type: verbatim
8636 #: ../fish/guestfish-actions.pod:1371
8637 #, no-wrap
8638 msgid ""
8639 " get-autosync\n"
8640 "\n"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8645 msgid "Get the autosync flag."
8646 msgstr ""
8647
8648 #. type: =head2
8649 #: ../fish/guestfish-actions.pod:1375
8650 msgid "get-direct"
8651 msgstr ""
8652
8653 #. type: verbatim
8654 #: ../fish/guestfish-actions.pod:1377
8655 #, no-wrap
8656 msgid ""
8657 " get-direct\n"
8658 "\n"
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8663 msgid "Return the direct appliance mode flag."
8664 msgstr ""
8665
8666 #. type: =head2
8667 #: ../fish/guestfish-actions.pod:1381
8668 msgid "get-e2label"
8669 msgstr ""
8670
8671 #. type: verbatim
8672 #: ../fish/guestfish-actions.pod:1383
8673 #, no-wrap
8674 msgid ""
8675 " get-e2label device\n"
8676 "\n"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8681 msgid ""
8682 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1388
8687 msgid ""
8688 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8689 "instead."
8690 msgstr ""
8691
8692 #. type: =head2
8693 #: ../fish/guestfish-actions.pod:1395
8694 msgid "get-e2uuid"
8695 msgstr ""
8696
8697 #. type: verbatim
8698 #: ../fish/guestfish-actions.pod:1397
8699 #, no-wrap
8700 msgid ""
8701 " get-e2uuid device\n"
8702 "\n"
8703 msgstr ""
8704
8705 #. type: textblock
8706 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8707 msgid ""
8708 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8709 msgstr ""
8710
8711 #. type: textblock
8712 #: ../fish/guestfish-actions.pod:1402
8713 msgid ""
8714 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8715 "instead."
8716 msgstr ""
8717
8718 #. type: =head2
8719 #: ../fish/guestfish-actions.pod:1409
8720 msgid "get-memsize"
8721 msgstr ""
8722
8723 #. type: verbatim
8724 #: ../fish/guestfish-actions.pod:1411
8725 #, no-wrap
8726 msgid ""
8727 " get-memsize\n"
8728 "\n"
8729 msgstr ""
8730
8731 #. type: textblock
8732 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8733 msgid ""
8734 "This gets the memory size in megabytes allocated to the qemu subprocess."
8735 msgstr ""
8736
8737 #. type: textblock
8738 #: ../fish/guestfish-actions.pod:1416
8739 msgid ""
8740 "If L</set-memsize> was not called on this handle, and if "
8741 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8742 "value for memsize."
8743 msgstr ""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8747 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8748 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8749 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8750 msgid ""
8751 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8752 msgstr ""
8753
8754 #. type: =head2
8755 #: ../fish/guestfish-actions.pod:1423
8756 msgid "get-network"
8757 msgstr ""
8758
8759 #. type: verbatim
8760 #: ../fish/guestfish-actions.pod:1425
8761 #, no-wrap
8762 msgid ""
8763 " get-network\n"
8764 "\n"
8765 msgstr ""
8766
8767 #. type: textblock
8768 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8769 msgid "This returns the enable network flag."
8770 msgstr ""
8771
8772 #. type: =head2
8773 #: ../fish/guestfish-actions.pod:1429
8774 msgid "get-path"
8775 msgstr ""
8776
8777 #. type: verbatim
8778 #: ../fish/guestfish-actions.pod:1431
8779 #, no-wrap
8780 msgid ""
8781 " get-path\n"
8782 "\n"
8783 msgstr ""
8784
8785 #. type: textblock
8786 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8787 msgid "Return the current search path."
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8792 msgid ""
8793 "This is always non-NULL.  If it wasn't set already, then this will return "
8794 "the default path."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:1438
8799 msgid "get-pgroup"
8800 msgstr ""
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:1440
8804 #, no-wrap
8805 msgid ""
8806 " get-pgroup\n"
8807 "\n"
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8812 msgid "This returns the process group flag."
8813 msgstr ""
8814
8815 #. type: =head2
8816 #: ../fish/guestfish-actions.pod:1444
8817 msgid "get-pid"
8818 msgstr ""
8819
8820 #. type: =head2
8821 #: ../fish/guestfish-actions.pod:1446
8822 msgid "pid"
8823 msgstr ""
8824
8825 #. type: verbatim
8826 #: ../fish/guestfish-actions.pod:1448
8827 #, no-wrap
8828 msgid ""
8829 " get-pid\n"
8830 "\n"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
8835 msgid ""
8836 "Return the process ID of the qemu subprocess.  If there is no qemu "
8837 "subprocess, then this will return an error."
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
8842 msgid "This is an internal call used for debugging and testing."
8843 msgstr ""
8844
8845 #. type: =head2
8846 #: ../fish/guestfish-actions.pod:1455
8847 msgid "get-qemu"
8848 msgstr ""
8849
8850 #. type: verbatim
8851 #: ../fish/guestfish-actions.pod:1457
8852 #, no-wrap
8853 msgid ""
8854 " get-qemu\n"
8855 "\n"
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
8860 msgid "Return the current qemu binary."
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
8865 msgid ""
8866 "This is always non-NULL.  If it wasn't set already, then this will return "
8867 "the default qemu binary name."
8868 msgstr ""
8869
8870 #. type: =head2
8871 #: ../fish/guestfish-actions.pod:1464
8872 msgid "get-recovery-proc"
8873 msgstr ""
8874
8875 #. type: verbatim
8876 #: ../fish/guestfish-actions.pod:1466
8877 #, no-wrap
8878 msgid ""
8879 " get-recovery-proc\n"
8880 "\n"
8881 msgstr ""
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
8885 msgid "Return the recovery process enabled flag."
8886 msgstr ""
8887
8888 #. type: =head2
8889 #: ../fish/guestfish-actions.pod:1470
8890 msgid "get-selinux"
8891 msgstr ""
8892
8893 #. type: verbatim
8894 #: ../fish/guestfish-actions.pod:1472
8895 #, no-wrap
8896 msgid ""
8897 " get-selinux\n"
8898 "\n"
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../fish/guestfish-actions.pod:1474
8903 msgid ""
8904 "This returns the current setting of the selinux flag which is passed to the "
8905 "appliance at boot time.  See L</set-selinux>."
8906 msgstr ""
8907
8908 #. type: =head2
8909 #: ../fish/guestfish-actions.pod:1480
8910 msgid "get-smp"
8911 msgstr ""
8912
8913 #. type: verbatim
8914 #: ../fish/guestfish-actions.pod:1482
8915 #, no-wrap
8916 msgid ""
8917 " get-smp\n"
8918 "\n"
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
8923 msgid "This returns the number of virtual CPUs assigned to the appliance."
8924 msgstr ""
8925
8926 #. type: =head2
8927 #: ../fish/guestfish-actions.pod:1486
8928 msgid "get-state"
8929 msgstr ""
8930
8931 #. type: verbatim
8932 #: ../fish/guestfish-actions.pod:1488
8933 #, no-wrap
8934 msgid ""
8935 " get-state\n"
8936 "\n"
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
8941 msgid ""
8942 "This returns the current state as an opaque integer.  This is only useful "
8943 "for printing debug and internal error messages."
8944 msgstr ""
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
8948 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
8949 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
8950 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
8951 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
8952 msgid "For more information on states, see L<guestfs(3)>."
8953 msgstr ""
8954
8955 #. type: =head2
8956 #: ../fish/guestfish-actions.pod:1495
8957 msgid "get-trace"
8958 msgstr ""
8959
8960 #. type: verbatim
8961 #: ../fish/guestfish-actions.pod:1497
8962 #, no-wrap
8963 msgid ""
8964 " get-trace\n"
8965 "\n"
8966 msgstr ""
8967
8968 #. type: textblock
8969 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
8970 msgid "Return the command trace flag."
8971 msgstr ""
8972
8973 #. type: =head2
8974 #: ../fish/guestfish-actions.pod:1501
8975 msgid "get-umask"
8976 msgstr ""
8977
8978 #. type: verbatim
8979 #: ../fish/guestfish-actions.pod:1503
8980 #, no-wrap
8981 msgid ""
8982 " get-umask\n"
8983 "\n"
8984 msgstr ""
8985
8986 #. type: textblock
8987 #: ../fish/guestfish-actions.pod:1505
8988 msgid ""
8989 "Return the current umask.  By default the umask is C<022> unless it has been "
8990 "set by calling L</umask>."
8991 msgstr ""
8992
8993 #. type: =head2
8994 #: ../fish/guestfish-actions.pod:1508
8995 msgid "get-verbose"
8996 msgstr ""
8997
8998 #. type: verbatim
8999 #: ../fish/guestfish-actions.pod:1510
9000 #, no-wrap
9001 msgid ""
9002 " get-verbose\n"
9003 "\n"
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9008 msgid "This returns the verbose messages flag."
9009 msgstr ""
9010
9011 #. type: =head2
9012 #: ../fish/guestfish-actions.pod:1514
9013 msgid "getcon"
9014 msgstr ""
9015
9016 #. type: verbatim
9017 #: ../fish/guestfish-actions.pod:1516
9018 #, no-wrap
9019 msgid ""
9020 " getcon\n"
9021 "\n"
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9026 msgid "This gets the SELinux security context of the daemon."
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:1520
9031 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9032 msgstr ""
9033
9034 #. type: =head2
9035 #: ../fish/guestfish-actions.pod:1523
9036 msgid "getxattr"
9037 msgstr ""
9038
9039 #. type: verbatim
9040 #: ../fish/guestfish-actions.pod:1525
9041 #, no-wrap
9042 msgid ""
9043 " getxattr path name\n"
9044 "\n"
9045 msgstr ""
9046
9047 #. type: textblock
9048 #: ../fish/guestfish-actions.pod:1527
9049 msgid ""
9050 "Get a single extended attribute from file C<path> named C<name>.  This call "
9051 "follows symlinks.  If you want to lookup an extended attribute for the "
9052 "symlink itself, use L</lgetxattr>."
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9057 msgid ""
9058 "Normally it is better to get all extended attributes from a file in one go "
9059 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9060 "buggy and do not provide a way to list out attributes.  For these "
9061 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9062 "attributes you want in advance and call this function."
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9067 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9068 msgid ""
9069 "Extended attribute values are blobs of binary data.  If there is no extended "
9070 "attribute named C<name>, this returns an error."
9071 msgstr ""
9072
9073 #. type: textblock
9074 #: ../fish/guestfish-actions.pod:1541
9075 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9076 msgstr ""
9077
9078 #. type: =head2
9079 #: ../fish/guestfish-actions.pod:1543
9080 msgid "getxattrs"
9081 msgstr ""
9082
9083 #. type: verbatim
9084 #: ../fish/guestfish-actions.pod:1545
9085 #, no-wrap
9086 msgid ""
9087 " getxattrs path\n"
9088 "\n"
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9093 msgid ""
9094 "This call lists the extended attributes of the file or directory C<path>."
9095 msgstr ""
9096
9097 #. type: textblock
9098 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9099 msgid ""
9100 "At the system call level, this is a combination of the L<listxattr(2)> and "
9101 "L<getxattr(2)> calls."
9102 msgstr ""
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:1553
9106 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9107 msgstr ""
9108
9109 #. type: =head2
9110 #: ../fish/guestfish-actions.pod:1555
9111 msgid "glob-expand"
9112 msgstr ""
9113
9114 #. type: verbatim
9115 #: ../fish/guestfish-actions.pod:1557
9116 #, no-wrap
9117 msgid ""
9118 " glob-expand pattern\n"
9119 "\n"
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9124 msgid ""
9125 "This command searches for all the pathnames matching C<pattern> according to "
9126 "the wildcard expansion rules used by the shell."
9127 msgstr ""
9128
9129 #. type: textblock
9130 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9131 msgid ""
9132 "If no paths match, then this returns an empty list (note: not an error)."
9133 msgstr ""
9134
9135 #. type: textblock
9136 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9137 msgid ""
9138 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9139 "GLOB_BRACE>.  See that manual page for more details."
9140 msgstr ""
9141
9142 #. type: =head2
9143 #: ../fish/guestfish-actions.pod:1570
9144 msgid "grep"
9145 msgstr ""
9146
9147 #. type: verbatim
9148 #: ../fish/guestfish-actions.pod:1572
9149 #, no-wrap
9150 msgid ""
9151 " grep regex path\n"
9152 "\n"
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9157 msgid "This calls the external C<grep> program and returns the matching lines."
9158 msgstr ""
9159
9160 #. type: =head2
9161 #: ../fish/guestfish-actions.pod:1580
9162 msgid "grepi"
9163 msgstr ""
9164
9165 #. type: verbatim
9166 #: ../fish/guestfish-actions.pod:1582
9167 #, no-wrap
9168 msgid ""
9169 " grepi regex path\n"
9170 "\n"
9171 msgstr ""
9172
9173 #. type: textblock
9174 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9175 msgid ""
9176 "This calls the external C<grep -i> program and returns the matching lines."
9177 msgstr ""
9178
9179 #. type: =head2
9180 #: ../fish/guestfish-actions.pod:1590
9181 msgid "grub-install"
9182 msgstr ""
9183
9184 #. type: verbatim
9185 #: ../fish/guestfish-actions.pod:1592
9186 #, no-wrap
9187 msgid ""
9188 " grub-install root device\n"
9189 "\n"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9194 msgid ""
9195 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9196 "with the root directory being C<root>."
9197 msgstr ""
9198
9199 #. type: textblock
9200 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9201 msgid ""
9202 "There is currently no way in the API to install grub2, which is used by most "
9203 "modern Linux guests.  It is possible to run the grub2 command from the "
9204 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9205 msgstr ""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9209 msgid ""
9210 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9211 "compatible with itself, so this only works in rather narrow circumstances.  "
9212 "Careful testing with each guest version is advisable."
9213 msgstr ""
9214
9215 #. type: textblock
9216 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9217 msgid ""
9218 "If grub-install reports the error \"No suitable drive was found in the "
9219 "generated device map.\" it may be that you need to create a C</boot/grub/"
9220 "device.map> file first that contains the mapping between grub device names "
9221 "and Linux device names.  It is usually sufficient to create a file "
9222 "containing:"
9223 msgstr ""
9224
9225 #. type: verbatim
9226 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9227 #, no-wrap
9228 msgid ""
9229 " (hd0) /dev/vda\n"
9230 "\n"
9231 msgstr ""
9232
9233 #. type: textblock
9234 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9235 msgid "replacing C</dev/vda> with the name of the installation device."
9236 msgstr ""
9237
9238 #. type: =head2
9239 #: ../fish/guestfish-actions.pod:1630
9240 msgid "head"
9241 msgstr ""
9242
9243 #. type: verbatim
9244 #: ../fish/guestfish-actions.pod:1632
9245 #, no-wrap
9246 msgid ""
9247 " head path\n"
9248 "\n"
9249 msgstr ""
9250
9251 #. type: textblock
9252 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9253 msgid ""
9254 "This command returns up to the first 10 lines of a file as a list of strings."
9255 msgstr ""
9256
9257 #. type: =head2
9258 #: ../fish/guestfish-actions.pod:1640
9259 msgid "head-n"
9260 msgstr ""
9261
9262 #. type: verbatim
9263 #: ../fish/guestfish-actions.pod:1642
9264 #, no-wrap
9265 msgid ""
9266 " head-n nrlines path\n"
9267 "\n"
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9272 msgid ""
9273 "If the parameter C<nrlines> is a positive number, this returns the first "
9274 "C<nrlines> lines of the file C<path>."
9275 msgstr ""
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9279 msgid ""
9280 "If the parameter C<nrlines> is a negative number, this returns lines from "
9281 "the file C<path>, excluding the last C<nrlines> lines."
9282 msgstr ""
9283
9284 #. type: textblock
9285 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9286 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9287 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9288 msgstr ""
9289
9290 #. type: =head2
9291 #: ../fish/guestfish-actions.pod:1655
9292 msgid "hexdump"
9293 msgstr ""
9294
9295 #. type: verbatim
9296 #: ../fish/guestfish-actions.pod:1657
9297 #, no-wrap
9298 msgid ""
9299 " hexdump path\n"
9300 "\n"
9301 msgstr ""
9302
9303 #. type: textblock
9304 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9305 msgid ""
9306 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9307 "readable, canonical hex dump of the file."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:1665
9312 msgid "initrd-cat"
9313 msgstr ""
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:1667
9317 #, no-wrap
9318 msgid ""
9319 " initrd-cat initrdpath filename\n"
9320 "\n"
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9325 msgid ""
9326 "This command unpacks the file C<filename> from the initrd file called "
9327 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9328 "character."
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9333 msgid ""
9334 "For example, in guestfish you could use the following command to examine the "
9335 "boot script (usually called C</init>)  contained in a Linux initrd or "
9336 "initramfs image:"
9337 msgstr ""
9338
9339 #. type: verbatim
9340 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9341 #, no-wrap
9342 msgid ""
9343 " initrd-cat /boot/initrd-<version>.img init\n"
9344 "\n"
9345 msgstr ""
9346
9347 #. type: textblock
9348 #: ../fish/guestfish-actions.pod:1679
9349 msgid "See also L</initrd-list>."
9350 msgstr ""
9351
9352 #. type: =head2
9353 #: ../fish/guestfish-actions.pod:1684
9354 msgid "initrd-list"
9355 msgstr ""
9356
9357 #. type: verbatim
9358 #: ../fish/guestfish-actions.pod:1686
9359 #, no-wrap
9360 msgid ""
9361 " initrd-list path\n"
9362 "\n"
9363 msgstr ""
9364
9365 #. type: textblock
9366 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9367 msgid "This command lists out files contained in an initrd."
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9372 msgid ""
9373 "The files are listed without any initial C</> character.  The files are "
9374 "listed in the order they appear (not necessarily alphabetical).  Directory "
9375 "names are listed as separate items."
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9380 msgid ""
9381 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9382 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9383 "files)."
9384 msgstr ""
9385
9386 #. type: =head2
9387 #: ../fish/guestfish-actions.pod:1698
9388 msgid "inotify-add-watch"
9389 msgstr ""
9390
9391 #. type: verbatim
9392 #: ../fish/guestfish-actions.pod:1700
9393 #, no-wrap
9394 msgid ""
9395 " inotify-add-watch path mask\n"
9396 "\n"
9397 msgstr ""
9398
9399 #. type: textblock
9400 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9401 msgid "Watch C<path> for the events listed in C<mask>."
9402 msgstr ""
9403
9404 #. type: textblock
9405 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9406 msgid ""
9407 "Note that if C<path> is a directory then events within that directory are "
9408 "watched, but this does I<not> happen recursively (in subdirectories)."
9409 msgstr ""
9410
9411 #. type: textblock
9412 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9413 msgid ""
9414 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9415 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9416 msgstr ""
9417
9418 #. type: =head2
9419 #: ../fish/guestfish-actions.pod:1712
9420 msgid "inotify-close"
9421 msgstr ""
9422
9423 #. type: verbatim
9424 #: ../fish/guestfish-actions.pod:1714
9425 #, no-wrap
9426 msgid ""
9427 " inotify-close\n"
9428 "\n"
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9433 msgid ""
9434 "This closes the inotify handle which was previously opened by inotify_init.  "
9435 "It removes all watches, throws away any pending events, and deallocates all "
9436 "resources."
9437 msgstr ""
9438
9439 #. type: =head2
9440 #: ../fish/guestfish-actions.pod:1720
9441 msgid "inotify-files"
9442 msgstr ""
9443
9444 #. type: verbatim
9445 #: ../fish/guestfish-actions.pod:1722
9446 #, no-wrap
9447 msgid ""
9448 " inotify-files\n"
9449 "\n"
9450 msgstr ""
9451
9452 #. type: textblock
9453 #: ../fish/guestfish-actions.pod:1724
9454 msgid ""
9455 "This function is a helpful wrapper around L</inotify-read> which just "
9456 "returns a list of pathnames of objects that were touched.  The returned "
9457 "pathnames are sorted and deduplicated."
9458 msgstr ""
9459
9460 #. type: =head2
9461 #: ../fish/guestfish-actions.pod:1728
9462 msgid "inotify-init"
9463 msgstr ""
9464
9465 #. type: verbatim
9466 #: ../fish/guestfish-actions.pod:1730
9467 #, no-wrap
9468 msgid ""
9469 " inotify-init maxevents\n"
9470 "\n"
9471 msgstr ""
9472
9473 #. type: textblock
9474 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9475 msgid ""
9476 "This command creates a new inotify handle.  The inotify subsystem can be "
9477 "used to notify events which happen to objects in the guest filesystem."
9478 msgstr ""
9479
9480 #. type: textblock
9481 #: ../fish/guestfish-actions.pod:1736
9482 msgid ""
9483 "C<maxevents> is the maximum number of events which will be queued up between "
9484 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9485 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9486 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9487 "but records the fact that it threw them away by setting a flag "
9488 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9489 msgstr ""
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:1746
9493 msgid ""
9494 "Before any events are generated, you have to add some watches to the "
9495 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9496 "L</inotify-watch-all>."
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:1752
9501 msgid ""
9502 "Queued up events should be read periodically by calling L</inotify-read> (or "
9503 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9504 "If you don't read the events out often enough then you risk the internal "
9505 "queue overflowing."
9506 msgstr ""
9507
9508 #. type: textblock
9509 #: ../fish/guestfish-actions.pod:1759
9510 msgid ""
9511 "The handle should be closed after use by calling L</inotify-close>.  This "
9512 "also removes any watches automatically."
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9517 msgid ""
9518 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9519 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9520 "that there is one global inotify handle per libguestfs instance."
9521 msgstr ""
9522
9523 #. type: =head2
9524 #: ../fish/guestfish-actions.pod:1768
9525 msgid "inotify-read"
9526 msgstr ""
9527
9528 #. type: verbatim
9529 #: ../fish/guestfish-actions.pod:1770
9530 #, no-wrap
9531 msgid ""
9532 " inotify-read\n"
9533 "\n"
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9538 msgid ""
9539 "Return the complete queue of events that have happened since the previous "
9540 "read call."
9541 msgstr ""
9542
9543 #. type: textblock
9544 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9545 msgid "If no events have happened, this returns an empty list."
9546 msgstr ""
9547
9548 #. type: textblock
9549 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9550 msgid ""
9551 "I<Note>: In order to make sure that all events have been read, you must call "
9552 "this function repeatedly until it returns an empty list.  The reason is that "
9553 "the call will read events up to the maximum appliance-to-host message size "
9554 "and leave remaining events in the queue."
9555 msgstr ""
9556
9557 #. type: =head2
9558 #: ../fish/guestfish-actions.pod:1783
9559 msgid "inotify-rm-watch"
9560 msgstr ""
9561
9562 #. type: verbatim
9563 #: ../fish/guestfish-actions.pod:1785
9564 #, no-wrap
9565 msgid ""
9566 " inotify-rm-watch wd\n"
9567 "\n"
9568 msgstr ""
9569
9570 #. type: textblock
9571 #: ../fish/guestfish-actions.pod:1787
9572 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9573 msgstr ""
9574
9575 #. type: =head2
9576 #: ../fish/guestfish-actions.pod:1790
9577 msgid "inspect-get-arch"
9578 msgstr ""
9579
9580 #. type: verbatim
9581 #: ../fish/guestfish-actions.pod:1792
9582 #, no-wrap
9583 msgid ""
9584 " inspect-get-arch root\n"
9585 "\n"
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:1794
9590 msgid ""
9591 "This returns the architecture of the inspected operating system.  The "
9592 "possible return values are listed under L</file-architecture>."
9593 msgstr ""
9594
9595 #. type: textblock
9596 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9597 msgid ""
9598 "If the architecture could not be determined, then the string C<unknown> is "
9599 "returned."
9600 msgstr ""
9601
9602 #. type: textblock
9603 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9604 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9605 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9606 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9607 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9608 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9609 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9610 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9611 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9612 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9613 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9614 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9615 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9616 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9617 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9618 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9619 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9620 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9621 msgstr ""
9622
9623 #. type: =head2
9624 #: ../fish/guestfish-actions.pod:1803
9625 msgid "inspect-get-distro"
9626 msgstr ""
9627
9628 #. type: verbatim
9629 #: ../fish/guestfish-actions.pod:1805
9630 #, no-wrap
9631 msgid ""
9632 " inspect-get-distro root\n"
9633 "\n"
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9638 msgid ""
9639 "This returns the distro (distribution) of the inspected operating system."
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9644 msgid "Currently defined distros are:"
9645 msgstr ""
9646
9647 #. type: =item
9648 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9649 msgid "\"archlinux\""
9650 msgstr ""
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9654 msgid "Arch Linux."
9655 msgstr ""
9656
9657 #. type: =item
9658 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9659 msgid "\"centos\""
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9664 msgid "CentOS."
9665 msgstr ""
9666
9667 #. type: =item
9668 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9669 msgid "\"debian\""
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9674 msgid "Debian."
9675 msgstr ""
9676
9677 #. type: =item
9678 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9679 msgid "\"fedora\""
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9684 msgid "Fedora."
9685 msgstr ""
9686
9687 #. type: =item
9688 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9689 msgid "\"gentoo\""
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9694 msgid "Gentoo."
9695 msgstr ""
9696
9697 #. type: =item
9698 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9699 msgid "\"linuxmint\""
9700 msgstr ""
9701
9702 #. type: textblock
9703 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9704 msgid "Linux Mint."
9705 msgstr ""
9706
9707 #. type: =item
9708 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9709 msgid "\"mageia\""
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9714 msgid "Mageia."
9715 msgstr ""
9716
9717 #. type: =item
9718 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9719 msgid "\"mandriva\""
9720 msgstr ""
9721
9722 #. type: textblock
9723 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9724 msgid "Mandriva."
9725 msgstr ""
9726
9727 #. type: =item
9728 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9729 msgid "\"meego\""
9730 msgstr ""
9731
9732 #. type: textblock
9733 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9734 msgid "MeeGo."
9735 msgstr ""
9736
9737 #. type: =item
9738 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9739 msgid "\"opensuse\""
9740 msgstr ""
9741
9742 #. type: textblock
9743 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9744 msgid "OpenSUSE."
9745 msgstr ""
9746
9747 #. type: =item
9748 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9749 msgid "\"pardus\""
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9754 msgid "Pardus."
9755 msgstr ""
9756
9757 #. type: =item
9758 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9759 msgid "\"redhat-based\""
9760 msgstr ""
9761
9762 #. type: textblock
9763 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9764 msgid "Some Red Hat-derived distro."
9765 msgstr ""
9766
9767 #. type: =item
9768 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9769 msgid "\"rhel\""
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9774 msgid "Red Hat Enterprise Linux."
9775 msgstr ""
9776
9777 #. type: =item
9778 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9779 msgid "\"scientificlinux\""
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
9784 msgid "Scientific Linux."
9785 msgstr ""
9786
9787 #. type: =item
9788 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
9789 msgid "\"slackware\""
9790 msgstr ""
9791
9792 #. type: textblock
9793 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
9794 msgid "Slackware."
9795 msgstr ""
9796
9797 #. type: =item
9798 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
9799 msgid "\"ttylinux\""
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
9804 msgid "ttylinux."
9805 msgstr ""
9806
9807 #. type: =item
9808 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
9809 msgid "\"ubuntu\""
9810 msgstr ""
9811
9812 #. type: textblock
9813 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
9814 msgid "Ubuntu."
9815 msgstr ""
9816
9817 #. type: =item
9818 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
9819 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
9820 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
9821 msgid "\"unknown\""
9822 msgstr ""
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
9826 msgid "The distro could not be determined."
9827 msgstr ""
9828
9829 #. type: =item
9830 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
9831 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
9832 msgid "\"windows\""
9833 msgstr ""
9834
9835 #. type: textblock
9836 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
9837 msgid ""
9838 "Windows does not have distributions.  This string is returned if the OS type "
9839 "is Windows."
9840 msgstr ""
9841
9842 #. type: textblock
9843 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
9844 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
9845 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
9846 msgid ""
9847 "Future versions of libguestfs may return other strings here.  The caller "
9848 "should be prepared to handle any string."
9849 msgstr ""
9850
9851 #. type: =head2
9852 #: ../fish/guestfish-actions.pod:1898
9853 msgid "inspect-get-drive-mappings"
9854 msgstr ""
9855
9856 #. type: verbatim
9857 #: ../fish/guestfish-actions.pod:1900
9858 #, no-wrap
9859 msgid ""
9860 " inspect-get-drive-mappings root\n"
9861 "\n"
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
9866 msgid ""
9867 "This call is useful for Windows which uses a primitive system of assigning "
9868 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9869 "Windows Registry to find out how disks/partitions are mapped to drive "
9870 "letters, and returns a hash table as in the example below:"
9871 msgstr ""
9872
9873 #. type: verbatim
9874 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
9875 #, no-wrap
9876 msgid ""
9877 " C      =>     /dev/vda2\n"
9878 " E      =>     /dev/vdb1\n"
9879 " F      =>     /dev/vdc1\n"
9880 "\n"
9881 msgstr ""
9882
9883 #. type: textblock
9884 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
9885 msgid ""
9886 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9887 "and just contains the drive letter, without the customary colon separator "
9888 "character."
9889 msgstr ""
9890
9891 #. type: textblock
9892 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
9893 msgid ""
9894 "In future we may support other operating systems that also used drive "
9895 "letters, but the keys for those might not be case insensitive and might be "
9896 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9897 "C<h1> etc."
9898 msgstr ""
9899
9900 #. type: textblock
9901 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
9902 msgid ""
9903 "For Windows guests, currently only hard drive mappings are returned.  "
9904 "Removable disks (eg. DVD-ROMs) are ignored."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
9909 msgid ""
9910 "For guests that do not use drive mappings, or if the drive mappings could "
9911 "not be determined, this returns an empty hash table."
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:1927
9916 msgid ""
9917 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9918 "get-mountpoints>, L</inspect-get-filesystems>."
9919 msgstr ""
9920
9921 #. type: =head2
9922 #: ../fish/guestfish-actions.pod:1931
9923 msgid "inspect-get-filesystems"
9924 msgstr ""
9925
9926 #. type: verbatim
9927 #: ../fish/guestfish-actions.pod:1933
9928 #, no-wrap
9929 msgid ""
9930 " inspect-get-filesystems root\n"
9931 "\n"
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
9936 msgid ""
9937 "This returns a list of all the filesystems that we think are associated with "
9938 "this operating system.  This includes the root filesystem, other ordinary "
9939 "filesystems, and non-mounted devices like swap partitions."
9940 msgstr ""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
9944 msgid ""
9945 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9946 "to be shared between operating systems."
9947 msgstr ""
9948
9949 #. type: textblock
9950 #: ../fish/guestfish-actions.pod:1943
9951 msgid ""
9952 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9953 "get-mountpoints>."
9954 msgstr ""
9955
9956 #. type: =head2
9957 #: ../fish/guestfish-actions.pod:1946
9958 msgid "inspect-get-format"
9959 msgstr ""
9960
9961 #. type: verbatim
9962 #: ../fish/guestfish-actions.pod:1948
9963 #, no-wrap
9964 msgid ""
9965 " inspect-get-format root\n"
9966 "\n"
9967 msgstr ""
9968
9969 #. type: textblock
9970 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
9971 msgid ""
9972 "This returns the format of the inspected operating system.  You can use it "
9973 "to detect install images, live CDs and similar."
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
9978 msgid "Currently defined formats are:"
9979 msgstr ""
9980
9981 #. type: =item
9982 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
9983 msgid "\"installed\""
9984 msgstr ""
9985
9986 #. type: textblock
9987 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
9988 msgid "This is an installed operating system."
9989 msgstr ""
9990
9991 #. type: =item
9992 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
9993 msgid "\"installer\""
9994 msgstr ""
9995
9996 #. type: textblock
9997 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
9998 msgid ""
9999 "The disk image being inspected is not an installed operating system, but a "
10000 "I<bootable> install disk, live CD, or similar."
10001 msgstr ""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10005 msgid "The format of this disk image is not known."
10006 msgstr ""
10007
10008 #. type: =head2
10009 #: ../fish/guestfish-actions.pod:1977
10010 msgid "inspect-get-hostname"
10011 msgstr ""
10012
10013 #. type: verbatim
10014 #: ../fish/guestfish-actions.pod:1979
10015 #, no-wrap
10016 msgid ""
10017 " inspect-get-hostname root\n"
10018 "\n"
10019 msgstr ""
10020
10021 #. type: textblock
10022 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10023 msgid ""
10024 "This function returns the hostname of the operating system as found by "
10025 "inspection of the guest's configuration files."
10026 msgstr ""
10027
10028 #. type: textblock
10029 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10030 msgid ""
10031 "If the hostname could not be determined, then the string C<unknown> is "
10032 "returned."
10033 msgstr ""
10034
10035 #. type: =head2
10036 #: ../fish/guestfish-actions.pod:1989
10037 msgid "inspect-get-icon"
10038 msgstr ""
10039
10040 #. type: verbatim
10041 #: ../fish/guestfish-actions.pod:1991
10042 #, no-wrap
10043 msgid ""
10044 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10045 "\n"
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10050 msgid ""
10051 "This function returns an icon corresponding to the inspected operating "
10052 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10053 "to PNG if necessary)."
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10058 msgid ""
10059 "If it was not possible to get an icon this function returns a zero-length "
10060 "(non-NULL) buffer.  I<Callers must check for this case>."
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10065 msgid ""
10066 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10067 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10068 "this file will be returned.  You can disable favicons by passing the "
10069 "optional C<favicon> boolean as false (default is true)."
10070 msgstr ""
10071
10072 #. type: textblock
10073 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10074 msgid ""
10075 "If finding the favicon fails, then we look in other places in the guest for "
10076 "a suitable icon."
10077 msgstr ""
10078
10079 #. type: textblock
10080 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10081 msgid ""
10082 "If the optional C<highquality> boolean is true then only high quality icons "
10083 "are returned, which means only icons of high resolution with an alpha "
10084 "channel.  The default (false) is to return any icon we can, even if it is of "
10085 "substandard quality."
10086 msgstr ""
10087
10088 #. type: textblock
10089 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10090 msgid ""
10091 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10092 "before you call this, since it needs to read information from the guest "
10093 "filesystem during the call."
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10098 msgid ""
10099 "B<Security:> The icon data comes from the untrusted guest, and should be "
10100 "treated with caution.  PNG files have been known to contain exploits.  "
10101 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10102 "trying to process or display the icon."
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10107 msgid ""
10108 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10109 "tries to return the largest, highest quality icon available.  The "
10110 "application must scale the icon to the required size."
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10115 msgid ""
10116 "Extracting icons from Windows guests requires the external C<wrestool> "
10117 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10118 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10119 "installed separately."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10124 msgid ""
10125 "Operating system icons are usually trademarks.  Seek legal advice before "
10126 "using trademarks in applications."
10127 msgstr ""
10128
10129 #. type: =head2
10130 #: ../fish/guestfish-actions.pod:2055
10131 msgid "inspect-get-major-version"
10132 msgstr ""
10133
10134 #. type: verbatim
10135 #: ../fish/guestfish-actions.pod:2057
10136 #, no-wrap
10137 msgid ""
10138 " inspect-get-major-version root\n"
10139 "\n"
10140 msgstr ""
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10144 msgid ""
10145 "This returns the major version number of the inspected operating system."
10146 msgstr ""
10147
10148 #. type: textblock
10149 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10150 msgid ""
10151 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10152 "popular public names used by the operating system.  Notably the operating "
10153 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10154 "1).  You can find out the real versions corresponding to releases of Windows "
10155 "by consulting Wikipedia or MSDN."
10156 msgstr ""
10157
10158 #. type: textblock
10159 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10160 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10161 msgid "If the version could not be determined, then C<0> is returned."
10162 msgstr ""
10163
10164 #. type: =head2
10165 #: ../fish/guestfish-actions.pod:2073
10166 msgid "inspect-get-minor-version"
10167 msgstr ""
10168
10169 #. type: verbatim
10170 #: ../fish/guestfish-actions.pod:2075
10171 #, no-wrap
10172 msgid ""
10173 " inspect-get-minor-version root\n"
10174 "\n"
10175 msgstr ""
10176
10177 #. type: textblock
10178 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10179 msgid ""
10180 "This returns the minor version number of the inspected operating system."
10181 msgstr ""
10182
10183 #. type: textblock
10184 #: ../fish/guestfish-actions.pod:2082
10185 msgid ""
10186 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10187 "get-major-version>."
10188 msgstr ""
10189
10190 #. type: =head2
10191 #: ../fish/guestfish-actions.pod:2085
10192 msgid "inspect-get-mountpoints"
10193 msgstr ""
10194
10195 #. type: verbatim
10196 #: ../fish/guestfish-actions.pod:2087
10197 #, no-wrap
10198 msgid ""
10199 " inspect-get-mountpoints root\n"
10200 "\n"
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10205 msgid ""
10206 "This returns a hash of where we think the filesystems associated with this "
10207 "operating system should be mounted.  Callers should note that this is at "
10208 "best an educated guess made by reading configuration files such as C</etc/"
10209 "fstab>.  I<In particular note> that this may return filesystems which are "
10210 "non-existent or not mountable and callers should be prepared to handle or "
10211 "ignore failures if they try to mount them."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10216 msgid ""
10217 "Each element in the returned hashtable has a key which is the path of the "
10218 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10219 "mounted there (eg. C</dev/sda1>)."
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10224 msgid ""
10225 "Non-mounted devices such as swap devices are I<not> returned in this list."
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2106
10230 msgid ""
10231 "For operating systems like Windows which still use drive letters, this call "
10232 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10233 "information about the mapping of drive letters to partitions, see L</inspect-"
10234 "get-drive-mappings>."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2112
10239 msgid ""
10240 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10241 "get-filesystems>."
10242 msgstr ""
10243
10244 #. type: =head2
10245 #: ../fish/guestfish-actions.pod:2115
10246 msgid "inspect-get-package-format"
10247 msgstr ""
10248
10249 #. type: verbatim
10250 #: ../fish/guestfish-actions.pod:2117
10251 #, no-wrap
10252 msgid ""
10253 " inspect-get-package-format root\n"
10254 "\n"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2119
10259 msgid ""
10260 "This function and L</inspect-get-package-management> return the package "
10261 "format and package management tool used by the inspected operating system.  "
10262 "For example for Fedora these functions would return C<rpm> (package format) "
10263 "and C<yum> (package management)."
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10268 msgid ""
10269 "This returns the string C<unknown> if we could not determine the package "
10270 "format I<or> if the operating system does not have a real packaging system "
10271 "(eg. Windows)."
10272 msgstr ""
10273
10274 #. type: textblock
10275 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10276 msgid ""
10277 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10278 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10279 msgstr ""
10280
10281 #. type: =head2
10282 #: ../fish/guestfish-actions.pod:2135
10283 msgid "inspect-get-package-management"
10284 msgstr ""
10285
10286 #. type: verbatim
10287 #: ../fish/guestfish-actions.pod:2137
10288 #, no-wrap
10289 msgid ""
10290 " inspect-get-package-management root\n"
10291 "\n"
10292 msgstr ""
10293
10294 #. type: textblock
10295 #: ../fish/guestfish-actions.pod:2139
10296 msgid ""
10297 "L</inspect-get-package-format> and this function return the package format "
10298 "and package management tool used by the inspected operating system.  For "
10299 "example for Fedora these functions would return C<rpm> (package format) and "
10300 "C<yum> (package management)."
10301 msgstr ""
10302
10303 #. type: textblock
10304 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10305 msgid ""
10306 "This returns the string C<unknown> if we could not determine the package "
10307 "management tool I<or> if the operating system does not have a real packaging "
10308 "system (eg. Windows)."
10309 msgstr ""
10310
10311 #. type: textblock
10312 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10313 msgid ""
10314 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10315 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10316 "versions of libguestfs may return other strings."
10317 msgstr ""
10318
10319 #. type: =head2
10320 #: ../fish/guestfish-actions.pod:2156
10321 msgid "inspect-get-product-name"
10322 msgstr ""
10323
10324 #. type: verbatim
10325 #: ../fish/guestfish-actions.pod:2158
10326 #, no-wrap
10327 msgid ""
10328 " inspect-get-product-name root\n"
10329 "\n"
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10334 msgid ""
10335 "This returns the product name of the inspected operating system.  The "
10336 "product name is generally some freeform string which can be displayed to the "
10337 "user, but should not be parsed by programs."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10342 msgid ""
10343 "If the product name could not be determined, then the string C<unknown> is "
10344 "returned."
10345 msgstr ""
10346
10347 #. type: =head2
10348 #: ../fish/guestfish-actions.pod:2170
10349 msgid "inspect-get-product-variant"
10350 msgstr ""
10351
10352 #. type: verbatim
10353 #: ../fish/guestfish-actions.pod:2172
10354 #, no-wrap
10355 msgid ""
10356 " inspect-get-product-variant root\n"
10357 "\n"
10358 msgstr ""
10359
10360 #. type: textblock
10361 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10362 msgid "This returns the product variant of the inspected operating system."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10367 msgid ""
10368 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10369 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10370 "is usually a string such as C<Client> or C<Server> (other values are "
10371 "possible).  This can be used to distinguish consumer and enterprise versions "
10372 "of Windows that have the same version number (for example, Windows 7 and "
10373 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10374 "the latter is C<Server>)."
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10379 msgid ""
10380 "For enterprise Linux guests, in future we intend this to return the product "
10381 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10382 "implemented at present."
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10387 msgid ""
10388 "If the product variant could not be determined, then the string C<unknown> "
10389 "is returned."
10390 msgstr ""
10391
10392 #. type: textblock
10393 #: ../fish/guestfish-actions.pod:2193
10394 msgid ""
10395 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10396 "get-product-name>, L</inspect-get-major-version>."
10397 msgstr ""
10398
10399 #. type: =head2
10400 #: ../fish/guestfish-actions.pod:2197
10401 msgid "inspect-get-roots"
10402 msgstr ""
10403
10404 #. type: verbatim
10405 #: ../fish/guestfish-actions.pod:2199
10406 #, no-wrap
10407 msgid ""
10408 " inspect-get-roots\n"
10409 "\n"
10410 msgstr ""
10411
10412 #. type: textblock
10413 #: ../fish/guestfish-actions.pod:2201
10414 msgid ""
10415 "This function is a convenient way to get the list of root devices, as "
10416 "returned from a previous call to L</inspect-os>, but without redoing the "
10417 "whole inspection process."
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../fish/guestfish-actions.pod:2205
10422 msgid ""
10423 "This returns an empty list if either no root devices were found or the "
10424 "caller has not called L</inspect-os>."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../fish/guestfish-actions.pod:2210
10429 msgid "inspect-get-type"
10430 msgstr ""
10431
10432 #. type: verbatim
10433 #: ../fish/guestfish-actions.pod:2212
10434 #, no-wrap
10435 msgid ""
10436 " inspect-get-type root\n"
10437 "\n"
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10442 msgid ""
10443 "This returns the type of the inspected operating system.  Currently defined "
10444 "types are:"
10445 msgstr ""
10446
10447 #. type: =item
10448 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10449 msgid "\"linux\""
10450 msgstr ""
10451
10452 #. type: textblock
10453 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10454 msgid "Any Linux-based operating system."
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10459 msgid "Any Microsoft Windows operating system."
10460 msgstr ""
10461
10462 #. type: =item
10463 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10464 msgid "\"freebsd\""
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10469 msgid "FreeBSD."
10470 msgstr ""
10471
10472 #. type: =item
10473 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10474 msgid "\"netbsd\""
10475 msgstr ""
10476
10477 #. type: textblock
10478 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10479 msgid "NetBSD."
10480 msgstr ""
10481
10482 #. type: textblock
10483 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10484 msgid "The operating system type could not be determined."
10485 msgstr ""
10486
10487 #. type: =head2
10488 #: ../fish/guestfish-actions.pod:2246
10489 msgid "inspect-get-windows-current-control-set"
10490 msgstr ""
10491
10492 #. type: verbatim
10493 #: ../fish/guestfish-actions.pod:2248
10494 #, no-wrap
10495 msgid ""
10496 " inspect-get-windows-current-control-set root\n"
10497 "\n"
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10502 msgid ""
10503 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10504 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10509 msgid ""
10510 "This call assumes that the guest is Windows and that the Registry could be "
10511 "examined by inspection.  If this is not the case then an error is returned."
10512 msgstr ""
10513
10514 #. type: =head2
10515 #: ../fish/guestfish-actions.pod:2259
10516 msgid "inspect-get-windows-systemroot"
10517 msgstr ""
10518
10519 #. type: verbatim
10520 #: ../fish/guestfish-actions.pod:2261
10521 #, no-wrap
10522 msgid ""
10523 " inspect-get-windows-systemroot root\n"
10524 "\n"
10525 msgstr ""
10526
10527 #. type: textblock
10528 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10529 msgid ""
10530 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10531 "is a directory path such as C</WINDOWS>."
10532 msgstr ""
10533
10534 #. type: textblock
10535 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10536 msgid ""
10537 "This call assumes that the guest is Windows and that the systemroot could be "
10538 "determined by inspection.  If this is not the case then an error is returned."
10539 msgstr ""
10540
10541 #. type: =head2
10542 #: ../fish/guestfish-actions.pod:2272
10543 msgid "inspect-is-live"
10544 msgstr ""
10545
10546 #. type: verbatim
10547 #: ../fish/guestfish-actions.pod:2274
10548 #, no-wrap
10549 msgid ""
10550 " inspect-is-live root\n"
10551 "\n"
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:2276
10556 msgid ""
10557 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10558 "then this returns true if a live image was detected on the disk."
10559 msgstr ""
10560
10561 #. type: =head2
10562 #: ../fish/guestfish-actions.pod:2282
10563 msgid "inspect-is-multipart"
10564 msgstr ""
10565
10566 #. type: verbatim
10567 #: ../fish/guestfish-actions.pod:2284
10568 #, no-wrap
10569 msgid ""
10570 " inspect-is-multipart root\n"
10571 "\n"
10572 msgstr ""
10573
10574 #. type: textblock
10575 #: ../fish/guestfish-actions.pod:2286
10576 msgid ""
10577 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10578 "then this returns true if the disk is part of a set."
10579 msgstr ""
10580
10581 #. type: =head2
10582 #: ../fish/guestfish-actions.pod:2292
10583 msgid "inspect-is-netinst"
10584 msgstr ""
10585
10586 #. type: verbatim
10587 #: ../fish/guestfish-actions.pod:2294
10588 #, no-wrap
10589 msgid ""
10590 " inspect-is-netinst root\n"
10591 "\n"
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../fish/guestfish-actions.pod:2296
10596 msgid ""
10597 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10598 "then this returns true if the disk is a network installer, ie. not a self-"
10599 "contained install CD but one which is likely to require network access to "
10600 "complete the install."
10601 msgstr ""
10602
10603 #. type: =head2
10604 #: ../fish/guestfish-actions.pod:2304
10605 msgid "inspect-list-applications"
10606 msgstr ""
10607
10608 #. type: verbatim
10609 #: ../fish/guestfish-actions.pod:2306
10610 #, no-wrap
10611 msgid ""
10612 " inspect-list-applications root\n"
10613 "\n"
10614 msgstr ""
10615
10616 #. type: textblock
10617 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10618 msgid "Return the list of applications installed in the operating system."
10619 msgstr ""
10620
10621 #. type: textblock
10622 #: ../fish/guestfish-actions.pod:2310
10623 msgid ""
10624 "I<Note:> This call works differently from other parts of the inspection "
10625 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10626 "then mount up the disks, before calling this.  Listing applications is a "
10627 "significantly more difficult operation which requires access to the full "
10628 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10629 "are just returning data cached in the libguestfs handle, this call actually "
10630 "reads parts of the mounted filesystems during the call."
10631 msgstr ""
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10635 msgid ""
10636 "This returns an empty list if the inspection code was not able to determine "
10637 "the list of applications."
10638 msgstr ""
10639
10640 #. type: textblock
10641 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10642 msgid "The application structure contains the following fields:"
10643 msgstr ""
10644
10645 #. type: =item
10646 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10647 msgid "C<app_name>"
10648 msgstr ""
10649
10650 #. type: textblock
10651 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10652 msgid ""
10653 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10654 "guests, this is the package name."
10655 msgstr ""
10656
10657 #. type: =item
10658 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10659 msgid "C<app_display_name>"
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10664 msgid ""
10665 "The display name of the application, sometimes localized to the install "
10666 "language of the guest operating system."
10667 msgstr ""
10668
10669 #. type: textblock
10670 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10671 msgid ""
10672 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10673 "to display something can use C<app_name> instead."
10674 msgstr ""
10675
10676 #. type: =item
10677 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10678 msgid "C<app_epoch>"
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10683 msgid ""
10684 "For package managers which use epochs, this contains the epoch of the "
10685 "package (an integer).  If unavailable, this is returned as C<0>."
10686 msgstr ""
10687
10688 #. type: =item
10689 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10690 msgid "C<app_version>"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10695 msgid ""
10696 "The version string of the application or package.  If unavailable this is "
10697 "returned as an empty string C<\"\">."
10698 msgstr ""
10699
10700 #. type: =item
10701 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10702 msgid "C<app_release>"
10703 msgstr ""
10704
10705 #. type: textblock
10706 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10707 msgid ""
10708 "The release string of the application or package, for package managers that "
10709 "use this.  If unavailable this is returned as an empty string C<\"\">."
10710 msgstr ""
10711
10712 #. type: =item
10713 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10714 msgid "C<app_install_path>"
10715 msgstr ""
10716
10717 #. type: textblock
10718 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10719 msgid ""
10720 "The installation path of the application (on operating systems such as "
10721 "Windows which use installation paths).  This path is in the format used by "
10722 "the guest operating system, it is not a libguestfs path."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10727 msgid "If unavailable this is returned as an empty string C<\"\">."
10728 msgstr ""
10729
10730 #. type: =item
10731 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10732 msgid "C<app_trans_path>"
10733 msgstr ""
10734
10735 #. type: textblock
10736 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10737 msgid ""
10738 "The install path translated into a libguestfs path.  If unavailable this is "
10739 "returned as an empty string C<\"\">."
10740 msgstr ""
10741
10742 #. type: =item
10743 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10744 msgid "C<app_publisher>"
10745 msgstr ""
10746
10747 #. type: textblock
10748 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
10749 msgid ""
10750 "The name of the publisher of the application, for package managers that use "
10751 "this.  If unavailable this is returned as an empty string C<\"\">."
10752 msgstr ""
10753
10754 #. type: =item
10755 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
10756 msgid "C<app_url>"
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
10761 msgid ""
10762 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10763 "returned as an empty string C<\"\">."
10764 msgstr ""
10765
10766 #. type: =item
10767 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
10768 msgid "C<app_source_package>"
10769 msgstr ""
10770
10771 #. type: textblock
10772 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
10773 msgid ""
10774 "For packaging systems which support this, the name of the source package.  "
10775 "If unavailable this is returned as an empty string C<\"\">."
10776 msgstr ""
10777
10778 #. type: =item
10779 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
10780 msgid "C<app_summary>"
10781 msgstr ""
10782
10783 #. type: textblock
10784 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
10785 msgid ""
10786 "A short (usually one line) description of the application or package.  If "
10787 "unavailable this is returned as an empty string C<\"\">."
10788 msgstr ""
10789
10790 #. type: =item
10791 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
10792 msgid "C<app_description>"
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
10797 msgid ""
10798 "A longer description of the application or package.  If unavailable this is "
10799 "returned as an empty string C<\"\">."
10800 msgstr ""
10801
10802 #. type: =head2
10803 #: ../fish/guestfish-actions.pod:2400
10804 msgid "inspect-os"
10805 msgstr ""
10806
10807 #. type: verbatim
10808 #: ../fish/guestfish-actions.pod:2402
10809 #, no-wrap
10810 msgid ""
10811 " inspect-os\n"
10812 "\n"
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
10817 msgid ""
10818 "This function uses other libguestfs functions and certain heuristics to "
10819 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10820 "for operating systems."
10821 msgstr ""
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
10825 msgid "The list returned is empty if no operating systems were found."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
10830 msgid ""
10831 "If one operating system was found, then this returns a list with a single "
10832 "element, which is the name of the root filesystem of this operating system.  "
10833 "It is also possible for this function to return a list containing more than "
10834 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10835 "element being the root filesystem of one of the operating systems."
10836 msgstr ""
10837
10838 #. type: textblock
10839 #: ../fish/guestfish-actions.pod:2417
10840 msgid ""
10841 "You can pass the root string(s) returned to other L</inspect-get-*> "
10842 "functions in order to query further information about each operating system, "
10843 "such as the name and version."
10844 msgstr ""
10845
10846 #. type: textblock
10847 #: ../fish/guestfish-actions.pod:2422
10848 msgid ""
10849 "This function uses other libguestfs features such as L</mount-ro> and L</"
10850 "umount-all> in order to mount and unmount filesystems and look at the "
10851 "contents.  This should be called with no disks currently mounted.  The "
10852 "function may also use Augeas, so any existing Augeas handle will be closed."
10853 msgstr ""
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
10857 msgid ""
10858 "This function cannot decrypt encrypted disks.  The caller must do that first "
10859 "(supplying the necessary keys) if the disk is encrypted."
10860 msgstr ""
10861
10862 #. type: textblock
10863 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
10864 #: ../fish/guestfish-actions.pod:2691
10865 msgid "See also L</list-filesystems>."
10866 msgstr ""
10867
10868 #. type: =head2
10869 #: ../fish/guestfish-actions.pod:2436
10870 msgid "is-blockdev"
10871 msgstr ""
10872
10873 #. type: verbatim
10874 #: ../fish/guestfish-actions.pod:2438
10875 #, no-wrap
10876 msgid ""
10877 " is-blockdev path\n"
10878 "\n"
10879 msgstr ""
10880
10881 #. type: textblock
10882 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
10883 msgid ""
10884 "This returns C<true> if and only if there is a block device with the given "
10885 "C<path> name."
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
10890 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
10891 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
10892 #: ../fish/guestfish-actions.pod:2542
10893 msgid "See also L</stat>."
10894 msgstr ""
10895
10896 #. type: =head2
10897 #: ../fish/guestfish-actions.pod:2445
10898 msgid "is-busy"
10899 msgstr ""
10900
10901 #. type: verbatim
10902 #: ../fish/guestfish-actions.pod:2447
10903 #, no-wrap
10904 msgid ""
10905 " is-busy\n"
10906 "\n"
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
10911 msgid ""
10912 "This returns true iff this handle is busy processing a command (in the "
10913 "C<BUSY> state)."
10914 msgstr ""
10915
10916 #. type: =head2
10917 #: ../fish/guestfish-actions.pod:2454
10918 msgid "is-chardev"
10919 msgstr ""
10920
10921 #. type: verbatim
10922 #: ../fish/guestfish-actions.pod:2456
10923 #, no-wrap
10924 msgid ""
10925 " is-chardev path\n"
10926 "\n"
10927 msgstr ""
10928
10929 #. type: textblock
10930 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
10931 msgid ""
10932 "This returns C<true> if and only if there is a character device with the "
10933 "given C<path> name."
10934 msgstr ""
10935
10936 #. type: =head2
10937 #: ../fish/guestfish-actions.pod:2463
10938 msgid "is-config"
10939 msgstr ""
10940
10941 #. type: verbatim
10942 #: ../fish/guestfish-actions.pod:2465
10943 #, no-wrap
10944 msgid ""
10945 " is-config\n"
10946 "\n"
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
10951 msgid ""
10952 "This returns true iff this handle is being configured (in the C<CONFIG> "
10953 "state)."
10954 msgstr ""
10955
10956 #. type: =head2
10957 #: ../fish/guestfish-actions.pod:2472
10958 msgid "is-dir"
10959 msgstr ""
10960
10961 #. type: verbatim
10962 #: ../fish/guestfish-actions.pod:2474
10963 #, no-wrap
10964 msgid ""
10965 " is-dir path\n"
10966 "\n"
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
10971 msgid ""
10972 "This returns C<true> if and only if there is a directory with the given "
10973 "C<path> name.  Note that it returns false for other objects like files."
10974 msgstr ""
10975
10976 #. type: =head2
10977 #: ../fish/guestfish-actions.pod:2482
10978 msgid "is-fifo"
10979 msgstr ""
10980
10981 #. type: verbatim
10982 #: ../fish/guestfish-actions.pod:2484
10983 #, no-wrap
10984 msgid ""
10985 " is-fifo path\n"
10986 "\n"
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
10991 msgid ""
10992 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10993 "given C<path> name."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:2491
10998 msgid "is-file"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:2493
11003 #, no-wrap
11004 msgid ""
11005 " is-file path\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11011 msgid ""
11012 "This returns C<true> if and only if there is a regular file with the given "
11013 "C<path> name.  Note that it returns false for other objects like directories."
11014 msgstr ""
11015
11016 #. type: =head2
11017 #: ../fish/guestfish-actions.pod:2501
11018 msgid "is-launching"
11019 msgstr ""
11020
11021 #. type: verbatim
11022 #: ../fish/guestfish-actions.pod:2503
11023 #, no-wrap
11024 msgid ""
11025 " is-launching\n"
11026 "\n"
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11031 msgid ""
11032 "This returns true iff this handle is launching the subprocess (in the "
11033 "C<LAUNCHING> state)."
11034 msgstr ""
11035
11036 #. type: =head2
11037 #: ../fish/guestfish-actions.pod:2510
11038 msgid "is-lv"
11039 msgstr ""
11040
11041 #. type: verbatim
11042 #: ../fish/guestfish-actions.pod:2512
11043 #, no-wrap
11044 msgid ""
11045 " is-lv device\n"
11046 "\n"
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11051 msgid ""
11052 "This command tests whether C<device> is a logical volume, and returns true "
11053 "iff this is the case."
11054 msgstr ""
11055
11056 #. type: =head2
11057 #: ../fish/guestfish-actions.pod:2517
11058 msgid "is-ready"
11059 msgstr ""
11060
11061 #. type: verbatim
11062 #: ../fish/guestfish-actions.pod:2519
11063 #, no-wrap
11064 msgid ""
11065 " is-ready\n"
11066 "\n"
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11071 msgid ""
11072 "This returns true iff this handle is ready to accept commands (in the "
11073 "C<READY> state)."
11074 msgstr ""
11075
11076 #. type: =head2
11077 #: ../fish/guestfish-actions.pod:2526
11078 msgid "is-socket"
11079 msgstr ""
11080
11081 #. type: verbatim
11082 #: ../fish/guestfish-actions.pod:2528
11083 #, no-wrap
11084 msgid ""
11085 " is-socket path\n"
11086 "\n"
11087 msgstr ""
11088
11089 #. type: textblock
11090 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11091 msgid ""
11092 "This returns C<true> if and only if there is a Unix domain socket with the "
11093 "given C<path> name."
11094 msgstr ""
11095
11096 #. type: =head2
11097 #: ../fish/guestfish-actions.pod:2535
11098 msgid "is-symlink"
11099 msgstr ""
11100
11101 #. type: verbatim
11102 #: ../fish/guestfish-actions.pod:2537
11103 #, no-wrap
11104 msgid ""
11105 " is-symlink path\n"
11106 "\n"
11107 msgstr ""
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11111 msgid ""
11112 "This returns C<true> if and only if there is a symbolic link with the given "
11113 "C<path> name."
11114 msgstr ""
11115
11116 #. type: =head2
11117 #: ../fish/guestfish-actions.pod:2544
11118 msgid "is-zero"
11119 msgstr ""
11120
11121 #. type: verbatim
11122 #: ../fish/guestfish-actions.pod:2546
11123 #, no-wrap
11124 msgid ""
11125 " is-zero path\n"
11126 "\n"
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11131 msgid ""
11132 "This returns true iff the file exists and the file is empty or it contains "
11133 "all zero bytes."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:2551
11138 msgid "is-zero-device"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:2553
11143 #, no-wrap
11144 msgid ""
11145 " is-zero-device device\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11151 msgid "This returns true iff the device exists and contains all zero bytes."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11156 msgid "Note that for large devices this can take a long time to run."
11157 msgstr ""
11158
11159 #. type: =head2
11160 #: ../fish/guestfish-actions.pod:2559
11161 msgid "kill-subprocess"
11162 msgstr ""
11163
11164 #. type: verbatim
11165 #: ../fish/guestfish-actions.pod:2561
11166 #, no-wrap
11167 msgid ""
11168 " kill-subprocess\n"
11169 "\n"
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11174 msgid "This kills the qemu subprocess.  You should never need to call this."
11175 msgstr ""
11176
11177 #. type: =head2
11178 #: ../fish/guestfish-actions.pod:2565
11179 msgid "launch"
11180 msgstr ""
11181
11182 #. type: =head2
11183 #: ../fish/guestfish-actions.pod:2567
11184 msgid "run"
11185 msgstr ""
11186
11187 #. type: verbatim
11188 #: ../fish/guestfish-actions.pod:2569
11189 #, no-wrap
11190 msgid ""
11191 " launch\n"
11192 "\n"
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11197 msgid ""
11198 "Internally libguestfs is implemented by running a virtual machine using "
11199 "L<qemu(1)>."
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11204 msgid ""
11205 "You should call this after configuring the handle (eg. adding drives) but "
11206 "before performing any actions."
11207 msgstr ""
11208
11209 #. type: =head2
11210 #: ../fish/guestfish-actions.pod:2577
11211 msgid "lchown"
11212 msgstr ""
11213
11214 #. type: verbatim
11215 #: ../fish/guestfish-actions.pod:2579
11216 #, no-wrap
11217 msgid ""
11218 " lchown owner group path\n"
11219 "\n"
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:2581
11224 msgid ""
11225 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11226 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11227 "target."
11228 msgstr ""
11229
11230 #. type: =head2
11231 #: ../fish/guestfish-actions.pod:2589
11232 msgid "lgetxattr"
11233 msgstr ""
11234
11235 #. type: verbatim
11236 #: ../fish/guestfish-actions.pod:2591
11237 #, no-wrap
11238 msgid ""
11239 " lgetxattr path name\n"
11240 "\n"
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11245 msgid ""
11246 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11247 "is a symlink, then this call returns an extended attribute from the symlink."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:2607
11252 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11253 msgstr ""
11254
11255 #. type: =head2
11256 #: ../fish/guestfish-actions.pod:2609
11257 msgid "lgetxattrs"
11258 msgstr ""
11259
11260 #. type: verbatim
11261 #: ../fish/guestfish-actions.pod:2611
11262 #, no-wrap
11263 msgid ""
11264 " lgetxattrs path\n"
11265 "\n"
11266 msgstr ""
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2613
11270 msgid ""
11271 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11272 "it returns the extended attributes of the link itself."
11273 msgstr ""
11274
11275 #. type: =head2
11276 #: ../fish/guestfish-actions.pod:2617
11277 msgid "list-9p"
11278 msgstr ""
11279
11280 #. type: verbatim
11281 #: ../fish/guestfish-actions.pod:2619
11282 #, no-wrap
11283 msgid ""
11284 " list-9p\n"
11285 "\n"
11286 msgstr ""
11287
11288 #. type: textblock
11289 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11290 msgid ""
11291 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11292 "returned."
11293 msgstr ""
11294
11295 #. type: =head2
11296 #: ../fish/guestfish-actions.pod:2624
11297 msgid "list-devices"
11298 msgstr ""
11299
11300 #. type: verbatim
11301 #: ../fish/guestfish-actions.pod:2626
11302 #, no-wrap
11303 msgid ""
11304 " list-devices\n"
11305 "\n"
11306 msgstr ""
11307
11308 #. type: textblock
11309 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11310 msgid "List all the block devices."
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11315 msgid "The full block device names are returned, eg. C</dev/sda>."
11316 msgstr ""
11317
11318 #. type: =head2
11319 #: ../fish/guestfish-actions.pod:2634
11320 msgid "list-dm-devices"
11321 msgstr ""
11322
11323 #. type: verbatim
11324 #: ../fish/guestfish-actions.pod:2636
11325 #, no-wrap
11326 msgid ""
11327 " list-dm-devices\n"
11328 "\n"
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11333 msgid "List all device mapper devices."
11334 msgstr ""
11335
11336 #. type: textblock
11337 #: ../fish/guestfish-actions.pod:2640
11338 msgid ""
11339 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11340 "previous call to L</luks-open>."
11341 msgstr ""
11342
11343 #. type: textblock
11344 #: ../fish/guestfish-actions.pod:2643
11345 msgid ""
11346 "Device mapper devices which correspond to logical volumes are I<not> "
11347 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11348 msgstr ""
11349
11350 #. type: =head2
11351 #: ../fish/guestfish-actions.pod:2647
11352 msgid "list-filesystems"
11353 msgstr ""
11354
11355 #. type: verbatim
11356 #: ../fish/guestfish-actions.pod:2649
11357 #, no-wrap
11358 msgid ""
11359 " list-filesystems\n"
11360 "\n"
11361 msgstr ""
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11365 msgid ""
11366 "This inspection command looks for filesystems on partitions, block devices "
11367 "and logical volumes, returning a list of devices containing filesystems and "
11368 "their type."
11369 msgstr ""
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11373 msgid ""
11374 "The return value is a hash, where the keys are the devices containing "
11375 "filesystems, and the values are the filesystem types.  For example:"
11376 msgstr ""
11377
11378 #. type: verbatim
11379 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11380 #, no-wrap
11381 msgid ""
11382 " \"/dev/sda1\" => \"ntfs\"\n"
11383 " \"/dev/sda2\" => \"ext2\"\n"
11384 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11385 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11386 "\n"
11387 msgstr ""
11388
11389 #. type: textblock
11390 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11391 msgid ""
11392 "The value can have the special value \"unknown\", meaning the content of the "
11393 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11394 msgstr ""
11395
11396 #. type: textblock
11397 #: ../fish/guestfish-actions.pod:2668
11398 msgid ""
11399 "This command runs other libguestfs commands, which might include L</mount> "
11400 "and L</umount>, and therefore you should use this soon after launch and only "
11401 "when nothing is mounted."
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:2672
11406 msgid ""
11407 "Not all of the filesystems returned will be mountable.  In particular, swap "
11408 "partitions are returned in the list.  Also this command does not check that "
11409 "each filesystem found is valid and mountable, and some filesystems might be "
11410 "mountable but require special options.  Filesystems may not all belong to a "
11411 "single logical operating system (use L</inspect-os> to look for OSes)."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2680
11416 msgid "list-partitions"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2682
11421 #, no-wrap
11422 msgid ""
11423 " list-partitions\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11429 msgid "List all the partitions detected on all block devices."
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11434 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../fish/guestfish-actions.pod:2688
11439 msgid ""
11440 "This does not return logical volumes.  For that you will need to call L</"
11441 "lvs>."
11442 msgstr ""
11443
11444 #. type: =head2
11445 #: ../fish/guestfish-actions.pod:2693
11446 msgid "ll"
11447 msgstr ""
11448
11449 #. type: verbatim
11450 #: ../fish/guestfish-actions.pod:2695
11451 #, no-wrap
11452 msgid ""
11453 " ll directory\n"
11454 "\n"
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11459 msgid ""
11460 "List the files in C<directory> (relative to the root directory, there is no "
11461 "cwd) in the format of 'ls -la'."
11462 msgstr ""
11463
11464 #. type: textblock
11465 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11466 msgid ""
11467 "This command is mostly useful for interactive sessions.  It is I<not> "
11468 "intended that you try to parse the output string."
11469 msgstr ""
11470
11471 #. type: =head2
11472 #: ../fish/guestfish-actions.pod:2703
11473 msgid "ln"
11474 msgstr ""
11475
11476 #. type: verbatim
11477 #: ../fish/guestfish-actions.pod:2705
11478 #, no-wrap
11479 msgid ""
11480 " ln target linkname\n"
11481 "\n"
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11486 msgid "This command creates a hard link using the C<ln> command."
11487 msgstr ""
11488
11489 #. type: =head2
11490 #: ../fish/guestfish-actions.pod:2709
11491 msgid "ln-f"
11492 msgstr ""
11493
11494 #. type: verbatim
11495 #: ../fish/guestfish-actions.pod:2711
11496 #, no-wrap
11497 msgid ""
11498 " ln-f target linkname\n"
11499 "\n"
11500 msgstr ""
11501
11502 #. type: textblock
11503 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11504 msgid ""
11505 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11506 "option removes the link (C<linkname>) if it exists already."
11507 msgstr ""
11508
11509 #. type: =head2
11510 #: ../fish/guestfish-actions.pod:2716
11511 msgid "ln-s"
11512 msgstr ""
11513
11514 #. type: verbatim
11515 #: ../fish/guestfish-actions.pod:2718
11516 #, no-wrap
11517 msgid ""
11518 " ln-s target linkname\n"
11519 "\n"
11520 msgstr ""
11521
11522 #. type: textblock
11523 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11524 msgid "This command creates a symbolic link using the C<ln -s> command."
11525 msgstr ""
11526
11527 #. type: =head2
11528 #: ../fish/guestfish-actions.pod:2722
11529 msgid "ln-sf"
11530 msgstr ""
11531
11532 #. type: verbatim
11533 #: ../fish/guestfish-actions.pod:2724
11534 #, no-wrap
11535 msgid ""
11536 " ln-sf target linkname\n"
11537 "\n"
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11542 msgid ""
11543 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11544 "option removes the link (C<linkname>) if it exists already."
11545 msgstr ""
11546
11547 #. type: =head2
11548 #: ../fish/guestfish-actions.pod:2729
11549 msgid "lremovexattr"
11550 msgstr ""
11551
11552 #. type: verbatim
11553 #: ../fish/guestfish-actions.pod:2731
11554 #, no-wrap
11555 msgid ""
11556 " lremovexattr xattr path\n"
11557 "\n"
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:2733
11562 msgid ""
11563 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11564 "it removes an extended attribute of the link itself."
11565 msgstr ""
11566
11567 #. type: =head2
11568 #: ../fish/guestfish-actions.pod:2737
11569 msgid "ls"
11570 msgstr ""
11571
11572 #. type: verbatim
11573 #: ../fish/guestfish-actions.pod:2739
11574 #, no-wrap
11575 msgid ""
11576 " ls directory\n"
11577 "\n"
11578 msgstr ""
11579
11580 #. type: textblock
11581 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11582 msgid ""
11583 "List the files in C<directory> (relative to the root directory, there is no "
11584 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11585 msgstr ""
11586
11587 #. type: textblock
11588 #: ../fish/guestfish-actions.pod:2745
11589 msgid ""
11590 "This command is mostly useful for interactive sessions.  Programs should "
11591 "probably use L</readdir> instead."
11592 msgstr ""
11593
11594 #. type: =head2
11595 #: ../fish/guestfish-actions.pod:2748
11596 msgid "lsetxattr"
11597 msgstr ""
11598
11599 #. type: verbatim
11600 #: ../fish/guestfish-actions.pod:2750
11601 #, no-wrap
11602 msgid ""
11603 " lsetxattr xattr val vallen path\n"
11604 "\n"
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:2752
11609 msgid ""
11610 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11611 "sets an extended attribute of the link itself."
11612 msgstr ""
11613
11614 #. type: =head2
11615 #: ../fish/guestfish-actions.pod:2756
11616 msgid "lstat"
11617 msgstr ""
11618
11619 #. type: verbatim
11620 #: ../fish/guestfish-actions.pod:2758
11621 #, no-wrap
11622 msgid ""
11623 " lstat path\n"
11624 "\n"
11625 msgstr ""
11626
11627 #. type: textblock
11628 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11629 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11630 msgid "Returns file information for the given C<path>."
11631 msgstr ""
11632
11633 #. type: textblock
11634 #: ../fish/guestfish-actions.pod:2762
11635 msgid ""
11636 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11637 "the link is stat-ed, not the file it refers to."
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11642 msgid "This is the same as the C<lstat(2)> system call."
11643 msgstr ""
11644
11645 #. type: =head2
11646 #: ../fish/guestfish-actions.pod:2768
11647 msgid "lstatlist"
11648 msgstr ""
11649
11650 #. type: verbatim
11651 #: ../fish/guestfish-actions.pod:2770
11652 #, no-wrap
11653 msgid ""
11654 " lstatlist path 'names ...'\n"
11655 "\n"
11656 msgstr ""
11657
11658 #. type: textblock
11659 #: ../fish/guestfish-actions.pod:2772
11660 msgid ""
11661 "This call allows you to perform the L</lstat> operation on multiple files, "
11662 "where all files are in the directory C<path>.  C<names> is the list of files "
11663 "from this directory."
11664 msgstr ""
11665
11666 #. type: textblock
11667 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11668 msgid ""
11669 "On return you get a list of stat structs, with a one-to-one correspondence "
11670 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11671 "then the C<ino> field of that structure is set to C<-1>."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:2781
11676 msgid ""
11677 "This call is intended for programs that want to efficiently list a directory "
11678 "contents without making many round-trips.  See also L</lxattrlist> for a "
11679 "similarly efficient call for getting extended attributes.  Very long "
11680 "directory listings might cause the protocol message size to be exceeded, "
11681 "causing this call to fail.  The caller must split up such requests into "
11682 "smaller groups of names."
11683 msgstr ""
11684
11685 #. type: =head2
11686 #: ../fish/guestfish-actions.pod:2789
11687 msgid "luks-add-key"
11688 msgstr ""
11689
11690 #. type: verbatim
11691 #: ../fish/guestfish-actions.pod:2791
11692 #, no-wrap
11693 msgid ""
11694 " luks-add-key device keyslot\n"
11695 "\n"
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
11700 msgid ""
11701 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11702 "existing key, and is used to access the device.  C<newkey> is the new key to "
11703 "add.  C<keyslot> is the key slot that will be replaced."
11704 msgstr ""
11705
11706 #. type: textblock
11707 #: ../fish/guestfish-actions.pod:2798
11708 msgid ""
11709 "Note that if C<keyslot> already contains a key, then this command will "
11710 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11711 msgstr ""
11712
11713 #. type: textblock
11714 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
11715 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
11716 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
11717 msgid ""
11718 "This command has one or more key or passphrase parameters.  Guestfish will "
11719 "prompt for these separately."
11720 msgstr ""
11721
11722 #. type: =head2
11723 #: ../fish/guestfish-actions.pod:2805
11724 msgid "luks-close"
11725 msgstr ""
11726
11727 #. type: verbatim
11728 #: ../fish/guestfish-actions.pod:2807
11729 #, no-wrap
11730 msgid ""
11731 " luks-close device\n"
11732 "\n"
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:2809
11737 msgid ""
11738 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11739 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11740 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11741 "block device."
11742 msgstr ""
11743
11744 #. type: =head2
11745 #: ../fish/guestfish-actions.pod:2815
11746 msgid "luks-format"
11747 msgstr ""
11748
11749 #. type: verbatim
11750 #: ../fish/guestfish-actions.pod:2817
11751 #, no-wrap
11752 msgid ""
11753 " luks-format device keyslot\n"
11754 "\n"
11755 msgstr ""
11756
11757 #. type: textblock
11758 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
11759 msgid ""
11760 "This command erases existing data on C<device> and formats the device as a "
11761 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11762 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11763 msgstr ""
11764
11765 #. type: textblock
11766 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
11767 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
11768 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
11769 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
11770 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
11771 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
11772 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
11773 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
11774 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
11775 msgid ""
11776 "B<This command is dangerous.  Without careful use you can easily destroy all "
11777 "your data>."
11778 msgstr ""
11779
11780 #. type: =head2
11781 #: ../fish/guestfish-actions.pod:2830
11782 msgid "luks-format-cipher"
11783 msgstr ""
11784
11785 #. type: verbatim
11786 #: ../fish/guestfish-actions.pod:2832
11787 #, no-wrap
11788 msgid ""
11789 " luks-format-cipher device keyslot cipher\n"
11790 "\n"
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../fish/guestfish-actions.pod:2834
11795 msgid ""
11796 "This command is the same as L</luks-format> but it also allows you to set "
11797 "the C<cipher> used."
11798 msgstr ""
11799
11800 #. type: =head2
11801 #: ../fish/guestfish-actions.pod:2843
11802 msgid "luks-kill-slot"
11803 msgstr ""
11804
11805 #. type: verbatim
11806 #: ../fish/guestfish-actions.pod:2845
11807 #, no-wrap
11808 msgid ""
11809 " luks-kill-slot device keyslot\n"
11810 "\n"
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
11815 msgid ""
11816 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11817 "device C<device>.  C<key> must be one of the I<other> keys."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2854
11822 msgid "luks-open"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2856
11827 #, no-wrap
11828 msgid ""
11829 " luks-open device mapname\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
11835 msgid ""
11836 "This command opens a block device which has been encrypted according to the "
11837 "Linux Unified Key Setup (LUKS) standard."
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
11842 msgid "C<device> is the encrypted block device or partition."
11843 msgstr ""
11844
11845 #. type: textblock
11846 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
11847 msgid ""
11848 "The caller must supply one of the keys associated with the LUKS block "
11849 "device, in the C<key> parameter."
11850 msgstr ""
11851
11852 #. type: textblock
11853 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
11854 msgid ""
11855 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11856 "writes to this block device are decrypted from and encrypted to the "
11857 "underlying C<device> respectively."
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../fish/guestfish-actions.pod:2870
11862 msgid ""
11863 "If this block device contains LVM volume groups, then calling L</vgscan> "
11864 "followed by L</vg-activate-all> will make them visible."
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:2874
11869 msgid "Use L</list-dm-devices> to list all device mapper devices."
11870 msgstr ""
11871
11872 #. type: =head2
11873 #: ../fish/guestfish-actions.pod:2880
11874 msgid "luks-open-ro"
11875 msgstr ""
11876
11877 #. type: verbatim
11878 #: ../fish/guestfish-actions.pod:2882
11879 #, no-wrap
11880 msgid ""
11881 " luks-open-ro device mapname\n"
11882 "\n"
11883 msgstr ""
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:2884
11887 msgid ""
11888 "This is the same as L</luks-open> except that a read-only mapping is created."
11889 msgstr ""
11890
11891 #. type: =head2
11892 #: ../fish/guestfish-actions.pod:2890
11893 msgid "lvcreate"
11894 msgstr ""
11895
11896 #. type: verbatim
11897 #: ../fish/guestfish-actions.pod:2892
11898 #, no-wrap
11899 msgid ""
11900 " lvcreate logvol volgroup mbytes\n"
11901 "\n"
11902 msgstr ""
11903
11904 #. type: textblock
11905 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
11906 msgid ""
11907 "This creates an LVM logical volume called C<logvol> on the volume group "
11908 "C<volgroup>, with C<size> megabytes."
11909 msgstr ""
11910
11911 #. type: =head2
11912 #: ../fish/guestfish-actions.pod:2897
11913 msgid "lvm-canonical-lv-name"
11914 msgstr ""
11915
11916 #. type: verbatim
11917 #: ../fish/guestfish-actions.pod:2899
11918 #, no-wrap
11919 msgid ""
11920 " lvm-canonical-lv-name lvname\n"
11921 "\n"
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
11926 msgid ""
11927 "This converts alternative naming schemes for LVs that you might find to the "
11928 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11929 "LV>."
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
11934 msgid ""
11935 "This command returns an error if the C<lvname> parameter does not refer to a "
11936 "logical volume."
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2908
11941 msgid "See also L</is-lv>."
11942 msgstr ""
11943
11944 #. type: =head2
11945 #: ../fish/guestfish-actions.pod:2910
11946 msgid "lvm-clear-filter"
11947 msgstr ""
11948
11949 #. type: verbatim
11950 #: ../fish/guestfish-actions.pod:2912
11951 #, no-wrap
11952 msgid ""
11953 " lvm-clear-filter\n"
11954 "\n"
11955 msgstr ""
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:2914
11959 msgid ""
11960 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11961 "block device."
11962 msgstr ""
11963
11964 #. type: textblock
11965 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
11966 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
11967 msgid ""
11968 "This command also clears the LVM cache and performs a volume group scan."
11969 msgstr ""
11970
11971 #. type: =head2
11972 #: ../fish/guestfish-actions.pod:2920
11973 msgid "lvm-remove-all"
11974 msgstr ""
11975
11976 #. type: verbatim
11977 #: ../fish/guestfish-actions.pod:2922
11978 #, no-wrap
11979 msgid ""
11980 " lvm-remove-all\n"
11981 "\n"
11982 msgstr ""
11983
11984 #. type: textblock
11985 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
11986 msgid ""
11987 "This command removes all LVM logical volumes, volume groups and physical "
11988 "volumes."
11989 msgstr ""
11990
11991 #. type: =head2
11992 #: ../fish/guestfish-actions.pod:2930
11993 msgid "lvm-set-filter"
11994 msgstr ""
11995
11996 #. type: verbatim
11997 #: ../fish/guestfish-actions.pod:2932
11998 #, no-wrap
11999 msgid ""
12000 " lvm-set-filter 'devices ...'\n"
12001 "\n"
12002 msgstr ""
12003
12004 #. type: textblock
12005 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12006 msgid ""
12007 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12008 "block devices in the list C<devices>, and will ignore all other attached "
12009 "block devices."
12010 msgstr ""
12011
12012 #. type: textblock
12013 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12014 msgid ""
12015 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12016 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12017 "there are two types of duplication possible: either cloned PVs/VGs which "
12018 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12019 "same name.  In normal operation you cannot create this situation, but you "
12020 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12021 "inside the LVM metadata."
12022 msgstr ""
12023
12024 #. type: textblock
12025 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12026 msgid "You can filter whole block devices or individual partitions."
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12031 msgid ""
12032 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12033 "filesystem), even if you are not filtering out that VG."
12034 msgstr ""
12035
12036 #. type: =head2
12037 #: ../fish/guestfish-actions.pod:2957
12038 msgid "lvremove"
12039 msgstr ""
12040
12041 #. type: verbatim
12042 #: ../fish/guestfish-actions.pod:2959
12043 #, no-wrap
12044 msgid ""
12045 " lvremove device\n"
12046 "\n"
12047 msgstr ""
12048
12049 #. type: textblock
12050 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12051 msgid ""
12052 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12053 "LV, such as C</dev/VG/LV>."
12054 msgstr ""
12055
12056 #. type: textblock
12057 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12058 msgid ""
12059 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12060 "dev/VG>."
12061 msgstr ""
12062
12063 #. type: =head2
12064 #: ../fish/guestfish-actions.pod:2967
12065 msgid "lvrename"
12066 msgstr ""
12067
12068 #. type: verbatim
12069 #: ../fish/guestfish-actions.pod:2969
12070 #, no-wrap
12071 msgid ""
12072 " lvrename logvol newlogvol\n"
12073 "\n"
12074 msgstr ""
12075
12076 #. type: textblock
12077 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12078 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12079 msgstr ""
12080
12081 #. type: =head2
12082 #: ../fish/guestfish-actions.pod:2973
12083 msgid "lvresize"
12084 msgstr ""
12085
12086 #. type: verbatim
12087 #: ../fish/guestfish-actions.pod:2975
12088 #, no-wrap
12089 msgid ""
12090 " lvresize device mbytes\n"
12091 "\n"
12092 msgstr ""
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12096 msgid ""
12097 "This resizes (expands or shrinks) an existing LVM logical volume to "
12098 "C<mbytes>.  When reducing, data in the reduced part is lost."
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:2981
12103 msgid "lvresize-free"
12104 msgstr ""
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:2983
12108 #, no-wrap
12109 msgid ""
12110 " lvresize-free lv percent\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12116 msgid ""
12117 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12118 "remaining free space in the volume group.  Commonly you would call this with "
12119 "pc = 100 which expands the logical volume as much as possible, using all "
12120 "remaining free space in the volume group."
12121 msgstr ""
12122
12123 #. type: =head2
12124 #: ../fish/guestfish-actions.pod:2991
12125 msgid "lvs"
12126 msgstr ""
12127
12128 #. type: verbatim
12129 #: ../fish/guestfish-actions.pod:2993
12130 #, no-wrap
12131 msgid ""
12132 " lvs\n"
12133 "\n"
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12138 msgid ""
12139 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12140 "(8)> command."
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12145 msgid ""
12146 "This returns a list of the logical volume device names (eg. C</dev/"
12147 "VolGroup00/LogVol00>)."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:3001
12152 msgid "See also L</lvs-full>, L</list-filesystems>."
12153 msgstr ""
12154
12155 #. type: =head2
12156 #: ../fish/guestfish-actions.pod:3003
12157 msgid "lvs-full"
12158 msgstr ""
12159
12160 #. type: verbatim
12161 #: ../fish/guestfish-actions.pod:3005
12162 #, no-wrap
12163 msgid ""
12164 " lvs-full\n"
12165 "\n"
12166 msgstr ""
12167
12168 #. type: textblock
12169 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12170 msgid ""
12171 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12172 "(8)> command.  The \"full\" version includes all fields."
12173 msgstr ""
12174
12175 #. type: =head2
12176 #: ../fish/guestfish-actions.pod:3010
12177 msgid "lvuuid"
12178 msgstr ""
12179
12180 #. type: verbatim
12181 #: ../fish/guestfish-actions.pod:3012
12182 #, no-wrap
12183 msgid ""
12184 " lvuuid device\n"
12185 "\n"
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12190 msgid "This command returns the UUID of the LVM LV C<device>."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:3016
12195 msgid "lxattrlist"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:3018
12200 #, no-wrap
12201 msgid ""
12202 " lxattrlist path 'names ...'\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12208 msgid ""
12209 "This call allows you to get the extended attributes of multiple files, where "
12210 "all files are in the directory C<path>.  C<names> is the list of files from "
12211 "this directory."
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12216 msgid ""
12217 "On return you get a flat list of xattr structs which must be interpreted "
12218 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12219 "C<attrval> in this struct is zero-length to indicate there was an error "
12220 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12221 "number (the number of following attributes for this file, which could be C<"
12222 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12223 "for the first named file.  This repeats for the second and subsequent files."
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../fish/guestfish-actions.pod:3034
12228 msgid ""
12229 "This call is intended for programs that want to efficiently list a directory "
12230 "contents without making many round-trips.  See also L</lstatlist> for a "
12231 "similarly efficient call for getting standard stats.  Very long directory "
12232 "listings might cause the protocol message size to be exceeded, causing this "
12233 "call to fail.  The caller must split up such requests into smaller groups of "
12234 "names."
12235 msgstr ""
12236
12237 #. type: =head2
12238 #: ../fish/guestfish-actions.pod:3042
12239 msgid "mkdir"
12240 msgstr ""
12241
12242 #. type: verbatim
12243 #: ../fish/guestfish-actions.pod:3044
12244 #, no-wrap
12245 msgid ""
12246 " mkdir path\n"
12247 "\n"
12248 msgstr ""
12249
12250 #. type: textblock
12251 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12252 msgid "Create a directory named C<path>."
12253 msgstr ""
12254
12255 #. type: =head2
12256 #: ../fish/guestfish-actions.pod:3048
12257 msgid "mkdir-mode"
12258 msgstr ""
12259
12260 #. type: verbatim
12261 #: ../fish/guestfish-actions.pod:3050
12262 #, no-wrap
12263 msgid ""
12264 " mkdir-mode path mode\n"
12265 "\n"
12266 msgstr ""
12267
12268 #. type: textblock
12269 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12270 msgid ""
12271 "This command creates a directory, setting the initial permissions of the "
12272 "directory to C<mode>."
12273 msgstr ""
12274
12275 #. type: textblock
12276 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12277 msgid ""
12278 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12279 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12280 "other ways."
12281 msgstr ""
12282
12283 #. type: textblock
12284 #: ../fish/guestfish-actions.pod:3059
12285 msgid "See also L</mkdir>, L</umask>"
12286 msgstr ""
12287
12288 #. type: =head2
12289 #: ../fish/guestfish-actions.pod:3061
12290 msgid "mkdir-p"
12291 msgstr ""
12292
12293 #. type: verbatim
12294 #: ../fish/guestfish-actions.pod:3063
12295 #, no-wrap
12296 msgid ""
12297 " mkdir-p path\n"
12298 "\n"
12299 msgstr ""
12300
12301 #. type: textblock
12302 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12303 msgid ""
12304 "Create a directory named C<path>, creating any parent directories as "
12305 "necessary.  This is like the C<mkdir -p> shell command."
12306 msgstr ""
12307
12308 #. type: =head2
12309 #: ../fish/guestfish-actions.pod:3068
12310 msgid "mkdtemp"
12311 msgstr ""
12312
12313 #. type: verbatim
12314 #: ../fish/guestfish-actions.pod:3070
12315 #, no-wrap
12316 msgid ""
12317 " mkdtemp template\n"
12318 "\n"
12319 msgstr ""
12320
12321 #. type: textblock
12322 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12323 msgid ""
12324 "This command creates a temporary directory.  The C<template> parameter "
12325 "should be a full pathname for the temporary directory name with the final "
12326 "six characters being \"XXXXXX\"."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12331 msgid ""
12332 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12333 "being suitable for Windows filesystems."
12334 msgstr ""
12335
12336 #. type: textblock
12337 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12338 msgid "The name of the temporary directory that was created is returned."
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12343 msgid "The temporary directory is created with mode 0700 and is owned by root."
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12348 msgid ""
12349 "The caller is responsible for deleting the temporary directory and its "
12350 "contents after use."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12355 msgid "See also: L<mkdtemp(3)>"
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:3091
12360 msgid "mke2fs-J"
12361 msgstr ""
12362
12363 #. type: verbatim
12364 #: ../fish/guestfish-actions.pod:3093
12365 #, no-wrap
12366 msgid ""
12367 " mke2fs-J fstype blocksize device journal\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12373 msgid ""
12374 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12375 "C<journal>.  It is equivalent to the command:"
12376 msgstr ""
12377
12378 #. type: verbatim
12379 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12380 #, no-wrap
12381 msgid ""
12382 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12383 "\n"
12384 msgstr ""
12385
12386 #. type: textblock
12387 #: ../fish/guestfish-actions.pod:3101
12388 msgid "See also L</mke2journal>."
12389 msgstr ""
12390
12391 #. type: =head2
12392 #: ../fish/guestfish-actions.pod:3103
12393 msgid "mke2fs-JL"
12394 msgstr ""
12395
12396 #. type: verbatim
12397 #: ../fish/guestfish-actions.pod:3105
12398 #, no-wrap
12399 msgid ""
12400 " mke2fs-JL fstype blocksize device label\n"
12401 "\n"
12402 msgstr ""
12403
12404 #. type: textblock
12405 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12406 msgid ""
12407 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12408 "the journal labeled C<label>."
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:3110
12413 msgid "See also L</mke2journal-L>."
12414 msgstr ""
12415
12416 #. type: =head2
12417 #: ../fish/guestfish-actions.pod:3112
12418 msgid "mke2fs-JU"
12419 msgstr ""
12420
12421 #. type: verbatim
12422 #: ../fish/guestfish-actions.pod:3114
12423 #, no-wrap
12424 msgid ""
12425 " mke2fs-JU fstype blocksize device uuid\n"
12426 "\n"
12427 msgstr ""
12428
12429 #. type: textblock
12430 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12431 msgid ""
12432 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12433 "the journal with UUID C<uuid>."
12434 msgstr ""
12435
12436 #. type: textblock
12437 #: ../fish/guestfish-actions.pod:3119
12438 msgid "See also L</mke2journal-U>."
12439 msgstr ""
12440
12441 #. type: =head2
12442 #: ../fish/guestfish-actions.pod:3121
12443 msgid "mke2journal"
12444 msgstr ""
12445
12446 #. type: verbatim
12447 #: ../fish/guestfish-actions.pod:3123
12448 #, no-wrap
12449 msgid ""
12450 " mke2journal blocksize device\n"
12451 "\n"
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12456 msgid ""
12457 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12458 "command:"
12459 msgstr ""
12460
12461 #. type: verbatim
12462 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12463 #, no-wrap
12464 msgid ""
12465 " mke2fs -O journal_dev -b blocksize device\n"
12466 "\n"
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../fish/guestfish-actions.pod:3130
12471 msgid "mke2journal-L"
12472 msgstr ""
12473
12474 #. type: verbatim
12475 #: ../fish/guestfish-actions.pod:3132
12476 #, no-wrap
12477 msgid ""
12478 " mke2journal-L blocksize label device\n"
12479 "\n"
12480 msgstr ""
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12484 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12485 msgstr ""
12486
12487 #. type: =head2
12488 #: ../fish/guestfish-actions.pod:3136
12489 msgid "mke2journal-U"
12490 msgstr ""
12491
12492 #. type: verbatim
12493 #: ../fish/guestfish-actions.pod:3138
12494 #, no-wrap
12495 msgid ""
12496 " mke2journal-U blocksize uuid device\n"
12497 "\n"
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12502 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12503 msgstr ""
12504
12505 #. type: =head2
12506 #: ../fish/guestfish-actions.pod:3142
12507 msgid "mkfifo"
12508 msgstr ""
12509
12510 #. type: verbatim
12511 #: ../fish/guestfish-actions.pod:3144
12512 #, no-wrap
12513 msgid ""
12514 " mkfifo mode path\n"
12515 "\n"
12516 msgstr ""
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3146
12520 msgid ""
12521 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12522 "is just a convenient wrapper around L</mknod>."
12523 msgstr ""
12524
12525 #. type: =head2
12526 #: ../fish/guestfish-actions.pod:3152
12527 msgid "mkfs"
12528 msgstr ""
12529
12530 #. type: verbatim
12531 #: ../fish/guestfish-actions.pod:3154
12532 #, no-wrap
12533 msgid ""
12534 " mkfs fstype device\n"
12535 "\n"
12536 msgstr ""
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12540 msgid ""
12541 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12542 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12543 msgstr ""
12544
12545 #. type: =head2
12546 #: ../fish/guestfish-actions.pod:3160
12547 msgid "mkfs-b"
12548 msgstr ""
12549
12550 #. type: verbatim
12551 #: ../fish/guestfish-actions.pod:3162
12552 #, no-wrap
12553 msgid ""
12554 " mkfs-b fstype blocksize device\n"
12555 "\n"
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3164
12560 msgid ""
12561 "This call is similar to L</mkfs>, but it allows you to control the block "
12562 "size of the resulting filesystem.  Supported block sizes depend on the "
12563 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12564 msgstr ""
12565
12566 #. type: textblock
12567 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12568 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12569 msgid ""
12570 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12571 "cluster size."
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:3172
12576 msgid ""
12577 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12578 "instead."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../fish/guestfish-actions.pod:3179
12583 msgid "mkfs-opts"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../fish/guestfish-actions.pod:3181
12588 #, no-wrap
12589 msgid ""
12590 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12591 "\n"
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12596 msgid ""
12597 "This function creates a filesystem on C<device>.  The filesystem type is "
12598 "C<fstype>, for example C<ext3>."
12599 msgstr ""
12600
12601 #. type: =item
12602 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12603 msgid "C<blocksize>"
12604 msgstr ""
12605
12606 #. type: textblock
12607 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12608 msgid ""
12609 "The filesystem block size.  Supported block sizes depend on the filesystem "
12610 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12611 "filesystems."
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12616 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12617 msgstr ""
12618
12619 #. type: =item
12620 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12621 msgid "C<features>"
12622 msgstr ""
12623
12624 #. type: textblock
12625 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12626 msgid "This passes the I<-O> parameter to the external mkfs program."
12627 msgstr ""
12628
12629 #. type: textblock
12630 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12631 msgid ""
12632 "For certain filesystem types, this allows extra filesystem features to be "
12633 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12634 msgstr ""
12635
12636 #. type: textblock
12637 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12638 msgid ""
12639 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12640 "type."
12641 msgstr ""
12642
12643 #. type: =item
12644 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12645 msgid "C<inode>"
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12650 msgid ""
12651 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12652 "sets the inode size (only for ext2/3/4 filesystems at present)."
12653 msgstr ""
12654
12655 #. type: =item
12656 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12657 msgid "C<sectorsize>"
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
12662 msgid ""
12663 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12664 "sets sector size for ufs filesystem."
12665 msgstr ""
12666
12667 #. type: =head2
12668 #: ../fish/guestfish-actions.pod:3226
12669 msgid "mkmountpoint"
12670 msgstr ""
12671
12672 #. type: verbatim
12673 #: ../fish/guestfish-actions.pod:3228
12674 #, no-wrap
12675 msgid ""
12676 " mkmountpoint exemptpath\n"
12677 "\n"
12678 msgstr ""
12679
12680 #. type: textblock
12681 #: ../fish/guestfish-actions.pod:3230
12682 msgid ""
12683 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12684 "to create extra mountpoints before mounting the first filesystem."
12685 msgstr ""
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
12689 msgid ""
12690 "These calls are I<only> necessary in some very limited circumstances, mainly "
12691 "the case where you want to mount a mix of unrelated and/or read-only "
12692 "filesystems together."
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
12697 msgid ""
12698 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12699 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12700 "inside that.  You can unpack this as follows in guestfish:"
12701 msgstr ""
12702
12703 #. type: verbatim
12704 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
12705 #, no-wrap
12706 msgid ""
12707 " add-ro Fedora-11-i686-Live.iso\n"
12708 " run\n"
12709 " mkmountpoint /cd\n"
12710 " mkmountpoint /sqsh\n"
12711 " mkmountpoint /ext3fs\n"
12712 " mount /dev/sda /cd\n"
12713 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12714 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
12720 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12721 msgstr ""
12722
12723 #. type: textblock
12724 #: ../fish/guestfish-actions.pod:3254
12725 msgid ""
12726 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12727 "unexpected errors if you try to mix these calls.  It is safest to manually "
12728 "unmount filesystems and remove mountpoints after use."
12729 msgstr ""
12730
12731 #. type: textblock
12732 #: ../fish/guestfish-actions.pod:3258
12733 msgid ""
12734 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12735 "for this to work for manual mountpoints, you must ensure that the innermost "
12736 "mountpoints have the longest pathnames, as in the example code above."
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
12741 msgid ""
12742 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3265
12747 msgid ""
12748 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12749 "L</umount-all> to be called when the handle is closed which can also trigger "
12750 "these issues."
12751 msgstr ""
12752
12753 #. type: =head2
12754 #: ../fish/guestfish-actions.pod:3269
12755 msgid "mknod"
12756 msgstr ""
12757
12758 #. type: verbatim
12759 #: ../fish/guestfish-actions.pod:3271
12760 #, no-wrap
12761 msgid ""
12762 " mknod mode devmajor devminor path\n"
12763 "\n"
12764 msgstr ""
12765
12766 #. type: textblock
12767 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
12768 msgid ""
12769 "This call creates block or character special devices, or named pipes (FIFOs)."
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
12774 msgid ""
12775 "The C<mode> parameter should be the mode, using the standard constants.  "
12776 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12777 "used when creating block and character special devices."
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../fish/guestfish-actions.pod:3281
12782 msgid ""
12783 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12784 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12785 "regular file).  These constants are available in the standard Linux header "
12786 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12787 "wrappers around this command which bitwise OR in the appropriate constant "
12788 "for you."
12789 msgstr ""
12790
12791 #. type: =head2
12792 #: ../fish/guestfish-actions.pod:3291
12793 msgid "mknod-b"
12794 msgstr ""
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:3293
12798 #, no-wrap
12799 msgid ""
12800 " mknod-b mode devmajor devminor path\n"
12801 "\n"
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:3295
12806 msgid ""
12807 "This call creates a block device node called C<path> with mode C<mode> and "
12808 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12809 "wrapper around L</mknod>."
12810 msgstr ""
12811
12812 #. type: =head2
12813 #: ../fish/guestfish-actions.pod:3301
12814 msgid "mknod-c"
12815 msgstr ""
12816
12817 #. type: verbatim
12818 #: ../fish/guestfish-actions.pod:3303
12819 #, no-wrap
12820 msgid ""
12821 " mknod-c mode devmajor devminor path\n"
12822 "\n"
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3305
12827 msgid ""
12828 "This call creates a char device node called C<path> with mode C<mode> and "
12829 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12830 "wrapper around L</mknod>."
12831 msgstr ""
12832
12833 #. type: =head2
12834 #: ../fish/guestfish-actions.pod:3311
12835 msgid "mkswap"
12836 msgstr ""
12837
12838 #. type: verbatim
12839 #: ../fish/guestfish-actions.pod:3313
12840 #, no-wrap
12841 msgid ""
12842 " mkswap device\n"
12843 "\n"
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
12848 msgid "Create a swap partition on C<device>."
12849 msgstr ""
12850
12851 #. type: =head2
12852 #: ../fish/guestfish-actions.pod:3317
12853 msgid "mkswap-L"
12854 msgstr ""
12855
12856 #. type: verbatim
12857 #: ../fish/guestfish-actions.pod:3319
12858 #, no-wrap
12859 msgid ""
12860 " mkswap-L label device\n"
12861 "\n"
12862 msgstr ""
12863
12864 #. type: textblock
12865 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
12866 msgid "Create a swap partition on C<device> with label C<label>."
12867 msgstr ""
12868
12869 #. type: textblock
12870 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
12871 msgid ""
12872 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12873 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12874 "or swap tools."
12875 msgstr ""
12876
12877 #. type: =head2
12878 #: ../fish/guestfish-actions.pod:3327
12879 msgid "mkswap-U"
12880 msgstr ""
12881
12882 #. type: verbatim
12883 #: ../fish/guestfish-actions.pod:3329
12884 #, no-wrap
12885 msgid ""
12886 " mkswap-U uuid device\n"
12887 "\n"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
12892 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12893 msgstr ""
12894
12895 #. type: =head2
12896 #: ../fish/guestfish-actions.pod:3333
12897 msgid "mkswap-file"
12898 msgstr ""
12899
12900 #. type: verbatim
12901 #: ../fish/guestfish-actions.pod:3335
12902 #, no-wrap
12903 msgid ""
12904 " mkswap-file path\n"
12905 "\n"
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
12910 msgid "Create a swap file."
12911 msgstr ""
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3339
12915 msgid ""
12916 "This command just writes a swap file signature to an existing file.  To "
12917 "create the file itself, use something like L</fallocate>."
12918 msgstr ""
12919
12920 #. type: =head2
12921 #: ../fish/guestfish-actions.pod:3342
12922 msgid "modprobe"
12923 msgstr ""
12924
12925 #. type: verbatim
12926 #: ../fish/guestfish-actions.pod:3344
12927 #, no-wrap
12928 msgid ""
12929 " modprobe modulename\n"
12930 "\n"
12931 msgstr ""
12932
12933 #. type: textblock
12934 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
12935 msgid "This loads a kernel module in the appliance."
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12940 msgid ""
12941 "The kernel module must have been whitelisted when libguestfs was built (see "
12942 "C<appliance/kmod.whitelist.in> in the source)."
12943 msgstr ""
12944
12945 #. type: =head2
12946 #: ../fish/guestfish-actions.pod:3351
12947 msgid "mount"
12948 msgstr ""
12949
12950 #. type: verbatim
12951 #: ../fish/guestfish-actions.pod:3353
12952 #, no-wrap
12953 msgid ""
12954 " mount device mountpoint\n"
12955 "\n"
12956 msgstr ""
12957
12958 #. type: textblock
12959 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
12960 msgid ""
12961 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12962 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12963 "those block devices contain partitions, they will have the usual names (eg. "
12964 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12969 msgid ""
12970 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12971 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12972 "mounted on directories which already exist."
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
12977 msgid ""
12978 "The mounted filesystem is writable, if we have sufficient permissions on the "
12979 "underlying device."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3369
12984 msgid ""
12985 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12986 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12987 "problems for users.  If your program might need to work with older versions "
12988 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12989 "first parameter if you don't want any options)."
12990 msgstr ""
12991
12992 #. type: =head2
12993 #: ../fish/guestfish-actions.pod:3376
12994 msgid "mount-9p"
12995 msgstr ""
12996
12997 #. type: verbatim
12998 #: ../fish/guestfish-actions.pod:3378
12999 #, no-wrap
13000 msgid ""
13001 " mount-9p mounttag mountpoint [options:..]\n"
13002 "\n"
13003 msgstr ""
13004
13005 #. type: textblock
13006 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13007 msgid ""
13008 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13009 "C<mountpoint>."
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13014 msgid ""
13015 "If required, C<trans=virtio> will be automatically added to the options.  "
13016 "Any other options required can be passed in the optional C<options> "
13017 "parameter."
13018 msgstr ""
13019
13020 #. type: =head2
13021 #: ../fish/guestfish-actions.pod:3389
13022 msgid "mount-loop"
13023 msgstr ""
13024
13025 #. type: verbatim
13026 #: ../fish/guestfish-actions.pod:3391
13027 #, no-wrap
13028 msgid ""
13029 " mount-loop file mountpoint\n"
13030 "\n"
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13035 msgid ""
13036 "This command lets you mount C<file> (a filesystem image in a file) on a "
13037 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13038 "mountpoint>."
13039 msgstr ""
13040
13041 #. type: =head2
13042 #: ../fish/guestfish-actions.pod:3397
13043 msgid "mount-options"
13044 msgstr ""
13045
13046 #. type: verbatim
13047 #: ../fish/guestfish-actions.pod:3399
13048 #, no-wrap
13049 msgid ""
13050 " mount-options options device mountpoint\n"
13051 "\n"
13052 msgstr ""
13053
13054 #. type: textblock
13055 #: ../fish/guestfish-actions.pod:3401
13056 msgid ""
13057 "This is the same as the L</mount> command, but it allows you to set the "
13058 "mount options as for the L<mount(8)> I<-o> flag."
13059 msgstr ""
13060
13061 #. type: textblock
13062 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13063 msgid ""
13064 "If the C<options> parameter is an empty string, then no options are passed "
13065 "(all options default to whatever the filesystem uses)."
13066 msgstr ""
13067
13068 #. type: =head2
13069 #: ../fish/guestfish-actions.pod:3409
13070 msgid "mount-ro"
13071 msgstr ""
13072
13073 #. type: verbatim
13074 #: ../fish/guestfish-actions.pod:3411
13075 #, no-wrap
13076 msgid ""
13077 " mount-ro device mountpoint\n"
13078 "\n"
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:3413
13083 msgid ""
13084 "This is the same as the L</mount> command, but it mounts the filesystem with "
13085 "the read-only (I<-o ro>) flag."
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:3416
13090 msgid "mount-vfs"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:3418
13095 #, no-wrap
13096 msgid ""
13097 " mount-vfs options vfstype device mountpoint\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:3420
13103 msgid ""
13104 "This is the same as the L</mount> command, but it allows you to set both the "
13105 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13106 msgstr ""
13107
13108 #. type: =head2
13109 #: ../fish/guestfish-actions.pod:3424
13110 msgid "mountpoints"
13111 msgstr ""
13112
13113 #. type: verbatim
13114 #: ../fish/guestfish-actions.pod:3426
13115 #, no-wrap
13116 msgid ""
13117 " mountpoints\n"
13118 "\n"
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:3428
13123 msgid ""
13124 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13125 "This one returns a hash table (map) of device name to directory where the "
13126 "device is mounted."
13127 msgstr ""
13128
13129 #. type: =head2
13130 #: ../fish/guestfish-actions.pod:3432
13131 msgid "mounts"
13132 msgstr ""
13133
13134 #. type: verbatim
13135 #: ../fish/guestfish-actions.pod:3434
13136 #, no-wrap
13137 msgid ""
13138 " mounts\n"
13139 "\n"
13140 msgstr ""
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13144 msgid ""
13145 "This returns the list of currently mounted filesystems.  It returns the list "
13146 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13147 msgstr ""
13148
13149 #. type: textblock
13150 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13151 msgid "Some internal mounts are not shown."
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../fish/guestfish-actions.pod:3441
13156 msgid "See also: L</mountpoints>"
13157 msgstr ""
13158
13159 #. type: =head2
13160 #: ../fish/guestfish-actions.pod:3443
13161 msgid "mv"
13162 msgstr ""
13163
13164 #. type: verbatim
13165 #: ../fish/guestfish-actions.pod:3445
13166 #, no-wrap
13167 msgid ""
13168 " mv src dest\n"
13169 "\n"
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13174 msgid ""
13175 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13176 "destination filename or destination directory."
13177 msgstr ""
13178
13179 #. type: =head2
13180 #: ../fish/guestfish-actions.pod:3450
13181 msgid "ntfs-3g-probe"
13182 msgstr ""
13183
13184 #. type: verbatim
13185 #: ../fish/guestfish-actions.pod:3452
13186 #, no-wrap
13187 msgid ""
13188 " ntfs-3g-probe true|false device\n"
13189 "\n"
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13194 msgid ""
13195 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13196 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13197 "write, and some cannot be mounted at all)."
13198 msgstr ""
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13202 msgid ""
13203 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13204 "can be mounted read-write.  Set it to false if you want to test if the "
13205 "volume can be mounted read-only."
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13210 msgid ""
13211 "The return value is an integer which C<0> if the operation would succeed, or "
13212 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13213 msgstr ""
13214
13215 #. type: =head2
13216 #: ../fish/guestfish-actions.pod:3466
13217 msgid "ntfsresize"
13218 msgstr ""
13219
13220 #. type: verbatim
13221 #: ../fish/guestfish-actions.pod:3468
13222 #, no-wrap
13223 msgid ""
13224 " ntfsresize device\n"
13225 "\n"
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13230 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13231 msgid ""
13232 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13233 "size of the underlying device."
13234 msgstr ""
13235
13236 #. type: textblock
13237 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13238 msgid ""
13239 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13240 "consistency check (for safety).  You have to boot into Windows to perform "
13241 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13242 "resize filesystems which have been marked in this way.  So in effect it is "
13243 "not possible to call ntfsresize multiple times on a single filesystem "
13244 "without booting into Windows between each resize."
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13249 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13250 msgid "See also L<ntfsresize(8)>."
13251 msgstr ""
13252
13253 #. type: textblock
13254 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13255 msgid ""
13256 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13257 "call instead."
13258 msgstr ""
13259
13260 #. type: =head2
13261 #: ../fish/guestfish-actions.pod:3490
13262 msgid "ntfsresize-opts"
13263 msgstr ""
13264
13265 #. type: verbatim
13266 #: ../fish/guestfish-actions.pod:3492
13267 #, no-wrap
13268 msgid ""
13269 " ntfsresize-opts device [size:..] [force:..]\n"
13270 "\n"
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13275 msgid ""
13276 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13277 "resized to fit the container (eg. partition)."
13278 msgstr ""
13279
13280 #. type: =item
13281 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13282 msgid "C<force>"
13283 msgstr ""
13284
13285 #. type: textblock
13286 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13287 msgid ""
13288 "If this option is true, then force the resize of the filesystem even if the "
13289 "filesystem is marked as requiring a consistency check."
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:3511
13294 msgid ""
13295 "After the resize operation, the filesystem is always marked as requiring a "
13296 "consistency check (for safety).  You have to boot into Windows to perform "
13297 "this check and clear this condition.  If you I<don't> set the C<force> "
13298 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13299 "a single filesystem without booting into Windows between each resize."
13300 msgstr ""
13301
13302 #. type: =head2
13303 #: ../fish/guestfish-actions.pod:3524
13304 msgid "ntfsresize-size"
13305 msgstr ""
13306
13307 #. type: verbatim
13308 #: ../fish/guestfish-actions.pod:3526
13309 #, no-wrap
13310 msgid ""
13311 " ntfsresize-size device size\n"
13312 "\n"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3528
13317 msgid ""
13318 "This command is the same as L</ntfsresize> except that it allows you to "
13319 "specify the new size (in bytes) explicitly."
13320 msgstr ""
13321
13322 #. type: =head2
13323 #: ../fish/guestfish-actions.pod:3538
13324 msgid "part-add"
13325 msgstr ""
13326
13327 #. type: verbatim
13328 #: ../fish/guestfish-actions.pod:3540
13329 #, no-wrap
13330 msgid ""
13331 " part-add device prlogex startsect endsect\n"
13332 "\n"
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:3542
13337 msgid ""
13338 "This command adds a partition to C<device>.  If there is no partition table "
13339 "on the device, call L</part-init> first."
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13344 msgid ""
13345 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13346 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13347 "C<logical>) and C<e> (or C<extended>) partition types."
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13352 msgid ""
13353 "C<startsect> and C<endsect> are the start and end of the partition in "
13354 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13355 "from the end of the disk (C<-1> is the last sector)."
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3554
13360 msgid ""
13361 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13362 "part-disk> to do that."
13363 msgstr ""
13364
13365 #. type: =head2
13366 #: ../fish/guestfish-actions.pod:3557
13367 msgid "part-del"
13368 msgstr ""
13369
13370 #. type: verbatim
13371 #: ../fish/guestfish-actions.pod:3559
13372 #, no-wrap
13373 msgid ""
13374 " part-del device partnum\n"
13375 "\n"
13376 msgstr ""
13377
13378 #. type: textblock
13379 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13380 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13381 msgstr ""
13382
13383 #. type: textblock
13384 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13385 msgid ""
13386 "Note that in the case of MBR partitioning, deleting an extended partition "
13387 "also deletes any logical partitions it contains."
13388 msgstr ""
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:3567
13392 msgid "part-disk"
13393 msgstr ""
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:3569
13397 #, no-wrap
13398 msgid ""
13399 " part-disk device parttype\n"
13400 "\n"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3571
13405 msgid ""
13406 "This command is simply a combination of L</part-init> followed by L</part-"
13407 "add> to create a single primary partition covering the whole disk."
13408 msgstr ""
13409
13410 #. type: textblock
13411 #: ../fish/guestfish-actions.pod:3575
13412 msgid ""
13413 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13414 "possible values are described in L</part-init>."
13415 msgstr ""
13416
13417 #. type: =head2
13418 #: ../fish/guestfish-actions.pod:3581
13419 msgid "part-get-bootable"
13420 msgstr ""
13421
13422 #. type: verbatim
13423 #: ../fish/guestfish-actions.pod:3583
13424 #, no-wrap
13425 msgid ""
13426 " part-get-bootable device partnum\n"
13427 "\n"
13428 msgstr ""
13429
13430 #. type: textblock
13431 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13432 msgid ""
13433 "This command returns true if the partition C<partnum> on C<device> has the "
13434 "bootable flag set."
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../fish/guestfish-actions.pod:3588
13439 msgid "See also L</part-set-bootable>."
13440 msgstr ""
13441
13442 #. type: =head2
13443 #: ../fish/guestfish-actions.pod:3590
13444 msgid "part-get-mbr-id"
13445 msgstr ""
13446
13447 #. type: verbatim
13448 #: ../fish/guestfish-actions.pod:3592
13449 #, no-wrap
13450 msgid ""
13451 " part-get-mbr-id device partnum\n"
13452 "\n"
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13457 msgid ""
13458 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13459 "partition C<partnum>."
13460 msgstr ""
13461
13462 #. type: textblock
13463 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13464 msgid ""
13465 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13466 "undefined results for other partition table types (see L</part-get-"
13467 "parttype>)."
13468 msgstr ""
13469
13470 #. type: =head2
13471 #: ../fish/guestfish-actions.pod:3601
13472 msgid "part-get-parttype"
13473 msgstr ""
13474
13475 #. type: verbatim
13476 #: ../fish/guestfish-actions.pod:3603
13477 #, no-wrap
13478 msgid ""
13479 " part-get-parttype device\n"
13480 "\n"
13481 msgstr ""
13482
13483 #. type: textblock
13484 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13485 msgid ""
13486 "This command examines the partition table on C<device> and returns the "
13487 "partition table type (format) being used."
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:3608
13492 msgid ""
13493 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13494 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13495 "possible, although unusual.  See L</part-init> for a full list."
13496 msgstr ""
13497
13498 #. type: =head2
13499 #: ../fish/guestfish-actions.pod:3613
13500 msgid "part-init"
13501 msgstr ""
13502
13503 #. type: verbatim
13504 #: ../fish/guestfish-actions.pod:3615
13505 #, no-wrap
13506 msgid ""
13507 " part-init device parttype\n"
13508 "\n"
13509 msgstr ""
13510
13511 #. type: textblock
13512 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13513 msgid ""
13514 "This creates an empty partition table on C<device> of one of the partition "
13515 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13516 "(for large disks)."
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../fish/guestfish-actions.pod:3621
13521 msgid ""
13522 "Initially there are no partitions.  Following this, you should call L</part-"
13523 "add> for each partition required."
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13528 msgid "Possible values for C<parttype> are:"
13529 msgstr ""
13530
13531 #. type: =item
13532 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13533 msgid "B<efi>"
13534 msgstr ""
13535
13536 #. type: =item
13537 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13538 msgid "B<gpt>"
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13543 msgid "Intel EFI / GPT partition table."
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13548 msgid ""
13549 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13550 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13551 "the C<mbr> format."
13552 msgstr ""
13553
13554 #. type: =item
13555 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13556 msgid "B<mbr>"
13557 msgstr ""
13558
13559 #. type: =item
13560 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13561 msgid "B<msdos>"
13562 msgstr ""
13563
13564 #. type: textblock
13565 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13566 msgid ""
13567 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13568 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13569 "TB.  For large disks we recommend using C<gpt>."
13570 msgstr ""
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13574 msgid ""
13575 "Other partition table types that may work but are not supported include:"
13576 msgstr ""
13577
13578 #. type: =item
13579 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13580 msgid "B<aix>"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13585 msgid "AIX disk labels."
13586 msgstr ""
13587
13588 #. type: =item
13589 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13590 msgid "B<amiga>"
13591 msgstr ""
13592
13593 #. type: =item
13594 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13595 msgid "B<rdb>"
13596 msgstr ""
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13600 msgid "Amiga \"Rigid Disk Block\" format."
13601 msgstr ""
13602
13603 #. type: =item
13604 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13605 msgid "B<bsd>"
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13610 msgid "BSD disk labels."
13611 msgstr ""
13612
13613 #. type: =item
13614 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13615 msgid "B<dasd>"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13620 msgid "DASD, used on IBM mainframes."
13621 msgstr ""
13622
13623 #. type: =item
13624 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
13625 msgid "B<dvh>"
13626 msgstr ""
13627
13628 #. type: textblock
13629 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
13630 msgid "MIPS/SGI volumes."
13631 msgstr ""
13632
13633 #. type: =item
13634 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
13635 msgid "B<mac>"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
13640 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13641 msgstr ""
13642
13643 #. type: =item
13644 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
13645 msgid "B<pc98>"
13646 msgstr ""
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
13650 msgid "NEC PC-98 format, common in Japan apparently."
13651 msgstr ""
13652
13653 #. type: =item
13654 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
13655 msgid "B<sun>"
13656 msgstr ""
13657
13658 #. type: textblock
13659 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
13660 msgid "Sun disk labels."
13661 msgstr ""
13662
13663 #. type: =head2
13664 #: ../fish/guestfish-actions.pod:3690
13665 msgid "part-list"
13666 msgstr ""
13667
13668 #. type: verbatim
13669 #: ../fish/guestfish-actions.pod:3692
13670 #, no-wrap
13671 msgid ""
13672 " part-list device\n"
13673 "\n"
13674 msgstr ""
13675
13676 #. type: textblock
13677 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
13678 msgid ""
13679 "This command parses the partition table on C<device> and returns the list of "
13680 "partitions found."
13681 msgstr ""
13682
13683 #. type: textblock
13684 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
13685 msgid "The fields in the returned structure are:"
13686 msgstr ""
13687
13688 #. type: =item
13689 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
13690 msgid "B<part_num>"
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
13695 msgid "Partition number, counting from 1."
13696 msgstr ""
13697
13698 #. type: =item
13699 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
13700 msgid "B<part_start>"
13701 msgstr ""
13702
13703 #. type: textblock
13704 #: ../fish/guestfish-actions.pod:3707
13705 msgid ""
13706 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13707 "the device's sector size, see L</blockdev-getss>."
13708 msgstr ""
13709
13710 #. type: =item
13711 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
13712 msgid "B<part_end>"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
13717 msgid "End of the partition in bytes."
13718 msgstr ""
13719
13720 #. type: =item
13721 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
13722 msgid "B<part_size>"
13723 msgstr ""
13724
13725 #. type: textblock
13726 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
13727 msgid "Size of the partition in bytes."
13728 msgstr ""
13729
13730 #. type: =head2
13731 #: ../fish/guestfish-actions.pod:3720
13732 msgid "part-set-bootable"
13733 msgstr ""
13734
13735 #. type: verbatim
13736 #: ../fish/guestfish-actions.pod:3722
13737 #, no-wrap
13738 msgid ""
13739 " part-set-bootable device partnum true|false\n"
13740 "\n"
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
13745 msgid ""
13746 "This sets the bootable flag on partition numbered C<partnum> on device "
13747 "C<device>.  Note that partitions are numbered from 1."
13748 msgstr ""
13749
13750 #. type: textblock
13751 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
13752 msgid ""
13753 "The bootable flag is used by some operating systems (notably Windows) to "
13754 "determine which partition to boot from.  It is by no means universally "
13755 "recognized."
13756 msgstr ""
13757
13758 #. type: =head2
13759 #: ../fish/guestfish-actions.pod:3731
13760 msgid "part-set-mbr-id"
13761 msgstr ""
13762
13763 #. type: verbatim
13764 #: ../fish/guestfish-actions.pod:3733
13765 #, no-wrap
13766 msgid ""
13767 " part-set-mbr-id device partnum idbyte\n"
13768 "\n"
13769 msgstr ""
13770
13771 #. type: textblock
13772 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
13773 msgid ""
13774 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13775 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13776 "documentation are in fact hexadecimal numbers, but usually documented "
13777 "without any leading \"0x\" which might be confusing."
13778 msgstr ""
13779
13780 #. type: =head2
13781 #: ../fish/guestfish-actions.pod:3745
13782 msgid "part-set-name"
13783 msgstr ""
13784
13785 #. type: verbatim
13786 #: ../fish/guestfish-actions.pod:3747
13787 #, no-wrap
13788 msgid ""
13789 " part-set-name device partnum name\n"
13790 "\n"
13791 msgstr ""
13792
13793 #. type: textblock
13794 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
13795 msgid ""
13796 "This sets the partition name on partition numbered C<partnum> on device "
13797 "C<device>.  Note that partitions are numbered from 1."
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
13802 msgid ""
13803 "The partition name can only be set on certain types of partition table.  "
13804 "This works on C<gpt> but not on C<mbr> partitions."
13805 msgstr ""
13806
13807 #. type: =head2
13808 #: ../fish/guestfish-actions.pod:3755
13809 msgid "part-to-dev"
13810 msgstr ""
13811
13812 #. type: verbatim
13813 #: ../fish/guestfish-actions.pod:3757
13814 #, no-wrap
13815 msgid ""
13816 " part-to-dev partition\n"
13817 "\n"
13818 msgstr ""
13819
13820 #. type: textblock
13821 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
13822 msgid ""
13823 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13824 "partition number, returning the device name (eg. \"/dev/sdb\")."
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:3763
13829 msgid ""
13830 "The named partition must exist, for example as a string returned from L</"
13831 "list-partitions>."
13832 msgstr ""
13833
13834 #. type: =head2
13835 #: ../fish/guestfish-actions.pod:3766
13836 msgid "ping-daemon"
13837 msgstr ""
13838
13839 #. type: verbatim
13840 #: ../fish/guestfish-actions.pod:3768
13841 #, no-wrap
13842 msgid ""
13843 " ping-daemon\n"
13844 "\n"
13845 msgstr ""
13846
13847 #. type: textblock
13848 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
13849 msgid ""
13850 "This is a test probe into the guestfs daemon running inside the qemu "
13851 "subprocess.  Calling this function checks that the daemon responds to the "
13852 "ping message, without affecting the daemon or attached block device(s) in "
13853 "any other way."
13854 msgstr ""
13855
13856 #. type: =head2
13857 #: ../fish/guestfish-actions.pod:3775
13858 msgid "pread"
13859 msgstr ""
13860
13861 #. type: verbatim
13862 #: ../fish/guestfish-actions.pod:3777
13863 #, no-wrap
13864 msgid ""
13865 " pread path count offset\n"
13866 "\n"
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
13871 msgid ""
13872 "This command lets you read part of a file.  It reads C<count> bytes of the "
13873 "file, starting at C<offset>, from file C<path>."
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
13878 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
13879 msgid ""
13880 "This may read fewer bytes than requested.  For further details see the "
13881 "L<pread(2)> system call."
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../fish/guestfish-actions.pod:3785
13886 msgid "See also L</pwrite>, L</pread-device>."
13887 msgstr ""
13888
13889 #. type: =head2
13890 #: ../fish/guestfish-actions.pod:3790
13891 msgid "pread-device"
13892 msgstr ""
13893
13894 #. type: verbatim
13895 #: ../fish/guestfish-actions.pod:3792
13896 #, no-wrap
13897 msgid ""
13898 " pread-device device count offset\n"
13899 "\n"
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
13904 msgid ""
13905 "This command lets you read part of a file.  It reads C<count> bytes of "
13906 "C<device>, starting at C<offset>."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3800
13911 msgid "See also L</pread>."
13912 msgstr ""
13913
13914 #. type: =head2
13915 #: ../fish/guestfish-actions.pod:3805
13916 msgid "pvcreate"
13917 msgstr ""
13918
13919 #. type: verbatim
13920 #: ../fish/guestfish-actions.pod:3807
13921 #, no-wrap
13922 msgid ""
13923 " pvcreate device\n"
13924 "\n"
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
13929 msgid ""
13930 "This creates an LVM physical volume on the named C<device>, where C<device> "
13931 "should usually be a partition name such as C</dev/sda1>."
13932 msgstr ""
13933
13934 #. type: =head2
13935 #: ../fish/guestfish-actions.pod:3813
13936 msgid "pvremove"
13937 msgstr ""
13938
13939 #. type: verbatim
13940 #: ../fish/guestfish-actions.pod:3815
13941 #, no-wrap
13942 msgid ""
13943 " pvremove device\n"
13944 "\n"
13945 msgstr ""
13946
13947 #. type: textblock
13948 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
13949 msgid ""
13950 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13951 "it."
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
13956 msgid ""
13957 "The implementation uses the C<pvremove> command which refuses to wipe "
13958 "physical volumes that contain any volume groups, so you have to remove those "
13959 "first."
13960 msgstr ""
13961
13962 #. type: =head2
13963 #: ../fish/guestfish-actions.pod:3824
13964 msgid "pvresize"
13965 msgstr ""
13966
13967 #. type: verbatim
13968 #: ../fish/guestfish-actions.pod:3826
13969 #, no-wrap
13970 msgid ""
13971 " pvresize device\n"
13972 "\n"
13973 msgstr ""
13974
13975 #. type: textblock
13976 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
13977 msgid ""
13978 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13979 "the new size of the underlying device."
13980 msgstr ""
13981
13982 #. type: =head2
13983 #: ../fish/guestfish-actions.pod:3831
13984 msgid "pvresize-size"
13985 msgstr ""
13986
13987 #. type: verbatim
13988 #: ../fish/guestfish-actions.pod:3833
13989 #, no-wrap
13990 msgid ""
13991 " pvresize-size device size\n"
13992 "\n"
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:3835
13997 msgid ""
13998 "This command is the same as L</pvresize> except that it allows you to "
13999 "specify the new size (in bytes) explicitly."
14000 msgstr ""
14001
14002 #. type: =head2
14003 #: ../fish/guestfish-actions.pod:3838
14004 msgid "pvs"
14005 msgstr ""
14006
14007 #. type: verbatim
14008 #: ../fish/guestfish-actions.pod:3840
14009 #, no-wrap
14010 msgid ""
14011 " pvs\n"
14012 "\n"
14013 msgstr ""
14014
14015 #. type: textblock
14016 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14017 msgid ""
14018 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14019 "(8)> command."
14020 msgstr ""
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14024 msgid ""
14025 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14026 "sda2>)."
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:3848
14031 msgid "See also L</pvs-full>."
14032 msgstr ""
14033
14034 #. type: =head2
14035 #: ../fish/guestfish-actions.pod:3850
14036 msgid "pvs-full"
14037 msgstr ""
14038
14039 #. type: verbatim
14040 #: ../fish/guestfish-actions.pod:3852
14041 #, no-wrap
14042 msgid ""
14043 " pvs-full\n"
14044 "\n"
14045 msgstr ""
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14049 msgid ""
14050 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14051 "(8)> command.  The \"full\" version includes all fields."
14052 msgstr ""
14053
14054 #. type: =head2
14055 #: ../fish/guestfish-actions.pod:3857
14056 msgid "pvuuid"
14057 msgstr ""
14058
14059 #. type: verbatim
14060 #: ../fish/guestfish-actions.pod:3859
14061 #, no-wrap
14062 msgid ""
14063 " pvuuid device\n"
14064 "\n"
14065 msgstr ""
14066
14067 #. type: textblock
14068 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14069 msgid "This command returns the UUID of the LVM PV C<device>."
14070 msgstr ""
14071
14072 #. type: =head2
14073 #: ../fish/guestfish-actions.pod:3863
14074 msgid "pwrite"
14075 msgstr ""
14076
14077 #. type: verbatim
14078 #: ../fish/guestfish-actions.pod:3865
14079 #, no-wrap
14080 msgid ""
14081 " pwrite path content offset\n"
14082 "\n"
14083 msgstr ""
14084
14085 #. type: textblock
14086 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14087 msgid ""
14088 "This command writes to part of a file.  It writes the data buffer C<content> "
14089 "to the file C<path> starting at offset C<offset>."
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14094 msgid ""
14095 "This command implements the L<pwrite(2)> system call, and like that system "
14096 "call it may not write the full data requested.  The return value is the "
14097 "number of bytes that were actually written to the file.  This could even be "
14098 "0, although short writes are unlikely for regular files in ordinary "
14099 "circumstances."
14100 msgstr ""
14101
14102 #. type: textblock
14103 #: ../fish/guestfish-actions.pod:3876
14104 msgid "See also L</pread>, L</pwrite-device>."
14105 msgstr ""
14106
14107 #. type: =head2
14108 #: ../fish/guestfish-actions.pod:3881
14109 msgid "pwrite-device"
14110 msgstr ""
14111
14112 #. type: verbatim
14113 #: ../fish/guestfish-actions.pod:3883
14114 #, no-wrap
14115 msgid ""
14116 " pwrite-device device content offset\n"
14117 "\n"
14118 msgstr ""
14119
14120 #. type: textblock
14121 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14122 msgid ""
14123 "This command writes to part of a device.  It writes the data buffer "
14124 "C<content> to C<device> starting at offset C<offset>."
14125 msgstr ""
14126
14127 #. type: textblock
14128 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14129 msgid ""
14130 "This command implements the L<pwrite(2)> system call, and like that system "
14131 "call it may not write the full data requested (although short writes to disk "
14132 "devices and partitions are probably impossible with standard Linux kernels)."
14133 msgstr ""
14134
14135 #. type: textblock
14136 #: ../fish/guestfish-actions.pod:3893
14137 msgid "See also L</pwrite>."
14138 msgstr ""
14139
14140 #. type: =head2
14141 #: ../fish/guestfish-actions.pod:3898
14142 msgid "read-file"
14143 msgstr ""
14144
14145 #. type: verbatim
14146 #: ../fish/guestfish-actions.pod:3900
14147 #, no-wrap
14148 msgid ""
14149 " read-file path\n"
14150 "\n"
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14155 msgid "This calls returns the contents of the file C<path> as a buffer."
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:3905
14160 msgid ""
14161 "Unlike L</cat>, this function can correctly handle files that contain "
14162 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14163 "is limited in the total size of file that can be handled."
14164 msgstr ""
14165
14166 #. type: =head2
14167 #: ../fish/guestfish-actions.pod:3913
14168 msgid "read-lines"
14169 msgstr ""
14170
14171 #. type: verbatim
14172 #: ../fish/guestfish-actions.pod:3915
14173 #, no-wrap
14174 msgid ""
14175 " read-lines path\n"
14176 "\n"
14177 msgstr ""
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14181 msgid ""
14182 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14183 "C<CRLF> character sequences are I<not> returned."
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:3922
14188 msgid ""
14189 "Note that this function cannot correctly handle binary files (specifically, "
14190 "files containing C<\\0> character which is treated as end of line).  For "
14191 "those you need to use the L</read-file> function which has a more complex "
14192 "interface."
14193 msgstr ""
14194
14195 #. type: =head2
14196 #: ../fish/guestfish-actions.pod:3927
14197 msgid "readdir"
14198 msgstr ""
14199
14200 #. type: verbatim
14201 #: ../fish/guestfish-actions.pod:3929
14202 #, no-wrap
14203 msgid ""
14204 " readdir dir\n"
14205 "\n"
14206 msgstr ""
14207
14208 #. type: textblock
14209 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14210 msgid "This returns the list of directory entries in directory C<dir>."
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14215 msgid ""
14216 "All entries in the directory are returned, including C<.> and C<..>.  The "
14217 "entries are I<not> sorted, but returned in the same order as the underlying "
14218 "filesystem."
14219 msgstr ""
14220
14221 #. type: textblock
14222 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14223 msgid ""
14224 "Also this call returns basic file type information about each file.  The "
14225 "C<ftyp> field will contain one of the following characters:"
14226 msgstr ""
14227
14228 #. type: =item
14229 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14230 msgid "'b'"
14231 msgstr ""
14232
14233 #. type: textblock
14234 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14235 msgid "Block special"
14236 msgstr ""
14237
14238 #. type: =item
14239 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14240 msgid "'c'"
14241 msgstr ""
14242
14243 #. type: textblock
14244 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14245 msgid "Char special"
14246 msgstr ""
14247
14248 #. type: =item
14249 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14250 msgid "'d'"
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14255 msgid "Directory"
14256 msgstr ""
14257
14258 #. type: =item
14259 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14260 msgid "'f'"
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14265 msgid "FIFO (named pipe)"
14266 msgstr ""
14267
14268 #. type: =item
14269 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14270 msgid "'l'"
14271 msgstr ""
14272
14273 #. type: textblock
14274 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14275 msgid "Symbolic link"
14276 msgstr ""
14277
14278 #. type: =item
14279 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14280 msgid "'r'"
14281 msgstr ""
14282
14283 #. type: textblock
14284 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14285 msgid "Regular file"
14286 msgstr ""
14287
14288 #. type: =item
14289 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14290 msgid "'s'"
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14295 msgid "Socket"
14296 msgstr ""
14297
14298 #. type: =item
14299 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14300 msgid "'u'"
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14305 msgid "Unknown file type"
14306 msgstr ""
14307
14308 #. type: =item
14309 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14310 msgid "'?'"
14311 msgstr ""
14312
14313 #. type: textblock
14314 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14315 msgid ""
14316 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3981
14321 msgid ""
14322 "This function is primarily intended for use by programs.  To get a simple "
14323 "list of names, use L</ls>.  To get a printable directory for human "
14324 "consumption, use L</ll>."
14325 msgstr ""
14326
14327 #. type: =head2
14328 #: ../fish/guestfish-actions.pod:3985
14329 msgid "readlink"
14330 msgstr ""
14331
14332 #. type: verbatim
14333 #: ../fish/guestfish-actions.pod:3987
14334 #, no-wrap
14335 msgid ""
14336 " readlink path\n"
14337 "\n"
14338 msgstr ""
14339
14340 #. type: textblock
14341 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14342 msgid "This command reads the target of a symbolic link."
14343 msgstr ""
14344
14345 #. type: =head2
14346 #: ../fish/guestfish-actions.pod:3991
14347 msgid "readlinklist"
14348 msgstr ""
14349
14350 #. type: verbatim
14351 #: ../fish/guestfish-actions.pod:3993
14352 #, no-wrap
14353 msgid ""
14354 " readlinklist path 'names ...'\n"
14355 "\n"
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14360 msgid ""
14361 "This call allows you to do a C<readlink> operation on multiple files, where "
14362 "all files are in the directory C<path>.  C<names> is the list of files from "
14363 "this directory."
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14368 msgid ""
14369 "On return you get a list of strings, with a one-to-one correspondence to the "
14370 "C<names> list.  Each string is the value of the symbolic link."
14371 msgstr ""
14372
14373 #. type: textblock
14374 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14375 msgid ""
14376 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14377 "result string is the empty string C<\"\">.  However the whole operation is "
14378 "completed even if there were C<readlink(2)> errors, and so you can call this "
14379 "function with names where you don't know if they are symbolic links already "
14380 "(albeit slightly less efficient)."
14381 msgstr ""
14382
14383 #. type: textblock
14384 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14385 msgid ""
14386 "This call is intended for programs that want to efficiently list a directory "
14387 "contents without making many round-trips.  Very long directory listings "
14388 "might cause the protocol message size to be exceeded, causing this call to "
14389 "fail.  The caller must split up such requests into smaller groups of names."
14390 msgstr ""
14391
14392 #. type: =head2
14393 #: ../fish/guestfish-actions.pod:4017
14394 msgid "realpath"
14395 msgstr ""
14396
14397 #. type: verbatim
14398 #: ../fish/guestfish-actions.pod:4019
14399 #, no-wrap
14400 msgid ""
14401 " realpath path\n"
14402 "\n"
14403 msgstr ""
14404
14405 #. type: textblock
14406 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14407 msgid ""
14408 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14409 "has no C<.>, C<..> or symbolic link path elements."
14410 msgstr ""
14411
14412 #. type: =head2
14413 #: ../fish/guestfish-actions.pod:4024
14414 msgid "removexattr"
14415 msgstr ""
14416
14417 #. type: verbatim
14418 #: ../fish/guestfish-actions.pod:4026
14419 #, no-wrap
14420 msgid ""
14421 " removexattr xattr path\n"
14422 "\n"
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14427 msgid ""
14428 "This call removes the extended attribute named C<xattr> of the file C<path>."
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4031
14433 msgid "See also: L</lremovexattr>, L<attr(5)>."
14434 msgstr ""
14435
14436 #. type: =head2
14437 #: ../fish/guestfish-actions.pod:4033
14438 msgid "resize2fs"
14439 msgstr ""
14440
14441 #. type: verbatim
14442 #: ../fish/guestfish-actions.pod:4035
14443 #, no-wrap
14444 msgid ""
14445 " resize2fs device\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14451 msgid ""
14452 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14453 "underlying device."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4040
14458 msgid ""
14459 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14460 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14461 "gives an error about this and sometimes not.  In any case, it is always safe "
14462 "to call L</e2fsck-f> before calling this function."
14463 msgstr ""
14464
14465 #. type: =head2
14466 #: ../fish/guestfish-actions.pod:4046
14467 msgid "resize2fs-M"
14468 msgstr ""
14469
14470 #. type: verbatim
14471 #: ../fish/guestfish-actions.pod:4048
14472 #, no-wrap
14473 msgid ""
14474 " resize2fs-M device\n"
14475 "\n"
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:4050
14480 msgid ""
14481 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14482 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14483 "command."
14484 msgstr ""
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:4054
14488 msgid ""
14489 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14490 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14491 "multiplied together, give the resulting size of the minimal filesystem in "
14492 "bytes."
14493 msgstr ""
14494
14495 #. type: =head2
14496 #: ../fish/guestfish-actions.pod:4059
14497 msgid "resize2fs-size"
14498 msgstr ""
14499
14500 #. type: verbatim
14501 #: ../fish/guestfish-actions.pod:4061
14502 #, no-wrap
14503 msgid ""
14504 " resize2fs-size device size\n"
14505 "\n"
14506 msgstr ""
14507
14508 #. type: textblock
14509 #: ../fish/guestfish-actions.pod:4063
14510 msgid ""
14511 "This command is the same as L</resize2fs> except that it allows you to "
14512 "specify the new size (in bytes) explicitly."
14513 msgstr ""
14514
14515 #. type: =head2
14516 #: ../fish/guestfish-actions.pod:4066
14517 msgid "rm"
14518 msgstr ""
14519
14520 #. type: verbatim
14521 #: ../fish/guestfish-actions.pod:4068
14522 #, no-wrap
14523 msgid ""
14524 " rm path\n"
14525 "\n"
14526 msgstr ""
14527
14528 #. type: textblock
14529 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14530 msgid "Remove the single file C<path>."
14531 msgstr ""
14532
14533 #. type: =head2
14534 #: ../fish/guestfish-actions.pod:4072
14535 msgid "rm-rf"
14536 msgstr ""
14537
14538 #. type: verbatim
14539 #: ../fish/guestfish-actions.pod:4074
14540 #, no-wrap
14541 msgid ""
14542 " rm-rf path\n"
14543 "\n"
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14548 msgid ""
14549 "Remove the file or directory C<path>, recursively removing the contents if "
14550 "its a directory.  This is like the C<rm -rf> shell command."
14551 msgstr ""
14552
14553 #. type: =head2
14554 #: ../fish/guestfish-actions.pod:4080
14555 msgid "rmdir"
14556 msgstr ""
14557
14558 #. type: verbatim
14559 #: ../fish/guestfish-actions.pod:4082
14560 #, no-wrap
14561 msgid ""
14562 " rmdir path\n"
14563 "\n"
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14568 msgid "Remove the single directory C<path>."
14569 msgstr ""
14570
14571 #. type: =head2
14572 #: ../fish/guestfish-actions.pod:4086
14573 msgid "rmmountpoint"
14574 msgstr ""
14575
14576 #. type: verbatim
14577 #: ../fish/guestfish-actions.pod:4088
14578 #, no-wrap
14579 msgid ""
14580 " rmmountpoint exemptpath\n"
14581 "\n"
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../fish/guestfish-actions.pod:4090
14586 msgid ""
14587 "This calls removes a mountpoint that was previously created with L</"
14588 "mkmountpoint>.  See L</mkmountpoint> for full details."
14589 msgstr ""
14590
14591 #. type: =head2
14592 #: ../fish/guestfish-actions.pod:4094
14593 msgid "scrub-device"
14594 msgstr ""
14595
14596 #. type: verbatim
14597 #: ../fish/guestfish-actions.pod:4096
14598 #, no-wrap
14599 msgid ""
14600 " scrub-device device\n"
14601 "\n"
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
14606 msgid ""
14607 "This command writes patterns over C<device> to make data retrieval more "
14608 "difficult."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
14613 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
14614 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
14615 msgid ""
14616 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14617 "more details."
14618 msgstr ""
14619
14620 #. type: =head2
14621 #: ../fish/guestfish-actions.pod:4107
14622 msgid "scrub-file"
14623 msgstr ""
14624
14625 #. type: verbatim
14626 #: ../fish/guestfish-actions.pod:4109
14627 #, no-wrap
14628 msgid ""
14629 " scrub-file file\n"
14630 "\n"
14631 msgstr ""
14632
14633 #. type: textblock
14634 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
14635 msgid ""
14636 "This command writes patterns over a file to make data retrieval more "
14637 "difficult."
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
14642 msgid "The file is I<removed> after scrubbing."
14643 msgstr ""
14644
14645 #. type: =head2
14646 #: ../fish/guestfish-actions.pod:4119
14647 msgid "scrub-freespace"
14648 msgstr ""
14649
14650 #. type: verbatim
14651 #: ../fish/guestfish-actions.pod:4121
14652 #, no-wrap
14653 msgid ""
14654 " scrub-freespace dir\n"
14655 "\n"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4123
14660 msgid ""
14661 "This command creates the directory C<dir> and then fills it with files until "
14662 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14663 "deletes them.  The intention is to scrub any free space on the partition "
14664 "containing C<dir>."
14665 msgstr ""
14666
14667 #. type: =head2
14668 #: ../fish/guestfish-actions.pod:4132
14669 msgid "set-append"
14670 msgstr ""
14671
14672 #. type: =head2
14673 #: ../fish/guestfish-actions.pod:4134
14674 msgid "append"
14675 msgstr ""
14676
14677 #. type: verbatim
14678 #: ../fish/guestfish-actions.pod:4136
14679 #, no-wrap
14680 msgid ""
14681 " set-append append\n"
14682 "\n"
14683 msgstr ""
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
14687 msgid ""
14688 "This function is used to add additional options to the guest kernel command "
14689 "line."
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
14694 msgid ""
14695 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14696 "environment variable."
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
14701 msgid ""
14702 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14703 "(libguestfs always adds a few of its own)."
14704 msgstr ""
14705
14706 #. type: =head2
14707 #: ../fish/guestfish-actions.pod:4147
14708 msgid "set-attach-method"
14709 msgstr ""
14710
14711 #. type: =head2
14712 #: ../fish/guestfish-actions.pod:4149
14713 msgid "attach-method"
14714 msgstr ""
14715
14716 #. type: verbatim
14717 #: ../fish/guestfish-actions.pod:4151
14718 #, no-wrap
14719 msgid ""
14720 " set-attach-method attachmethod\n"
14721 "\n"
14722 msgstr ""
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
14726 msgid ""
14727 "Set the method that libguestfs uses to connect to the back end guestfsd "
14728 "daemon.  Possible methods are:"
14729 msgstr ""
14730
14731 #. type: =item
14732 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
14733 #: ../src/guestfs.pod:2901
14734 msgid "C<appliance>"
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
14739 msgid ""
14740 "Launch an appliance and connect to it.  This is the ordinary method and the "
14741 "default."
14742 msgstr ""
14743
14744 #. type: =item
14745 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
14746 msgid "C<unix:I<path>>"
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
14751 msgid "Connect to the Unix domain socket I<path>."
14752 msgstr ""
14753
14754 #. type: textblock
14755 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
14756 msgid ""
14757 "This method lets you connect to an existing daemon or (using virtio-serial) "
14758 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14759 "RUNNING DAEMONS>."
14760 msgstr ""
14761
14762 #. type: =head2
14763 #: ../fish/guestfish-actions.pod:4173
14764 msgid "set-autosync"
14765 msgstr ""
14766
14767 #. type: =head2
14768 #: ../fish/guestfish-actions.pod:4175
14769 msgid "autosync"
14770 msgstr ""
14771
14772 #. type: verbatim
14773 #: ../fish/guestfish-actions.pod:4177
14774 #, no-wrap
14775 msgid ""
14776 " set-autosync true|false\n"
14777 "\n"
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
14782 msgid ""
14783 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14784 "effort attempt to make filesystems consistent and synchronized when the "
14785 "handle is closed (also if the program exits without closing handles)."
14786 msgstr ""
14787
14788 #. type: textblock
14789 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
14790 msgid ""
14791 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14792 "disabled by default)."
14793 msgstr ""
14794
14795 #. type: =head2
14796 #: ../fish/guestfish-actions.pod:4187
14797 msgid "set-direct"
14798 msgstr ""
14799
14800 #. type: =head2
14801 #: ../fish/guestfish-actions.pod:4189
14802 msgid "direct"
14803 msgstr ""
14804
14805 #. type: verbatim
14806 #: ../fish/guestfish-actions.pod:4191
14807 #, no-wrap
14808 msgid ""
14809 " set-direct true|false\n"
14810 "\n"
14811 msgstr ""
14812
14813 #. type: textblock
14814 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
14815 msgid ""
14816 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14817 "passed directly through to the appliance once it is launched."
14818 msgstr ""
14819
14820 #. type: textblock
14821 #: ../fish/guestfish-actions.pod:4197
14822 msgid ""
14823 "One consequence of this is that log messages aren't caught by the library "
14824 "and handled by L</set-log-message-callback>, but go straight to stdout."
14825 msgstr ""
14826
14827 #. type: textblock
14828 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
14829 msgid "You probably don't want to use this unless you know what you are doing."
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
14834 msgid "The default is disabled."
14835 msgstr ""
14836
14837 #. type: =head2
14838 #: ../fish/guestfish-actions.pod:4206
14839 msgid "set-e2label"
14840 msgstr ""
14841
14842 #. type: verbatim
14843 #: ../fish/guestfish-actions.pod:4208
14844 #, no-wrap
14845 msgid ""
14846 " set-e2label device label\n"
14847 "\n"
14848 msgstr ""
14849
14850 #. type: textblock
14851 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
14852 msgid ""
14853 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14854 "C<label>.  Filesystem labels are limited to 16 characters."
14855 msgstr ""
14856
14857 #. type: textblock
14858 #: ../fish/guestfish-actions.pod:4214
14859 msgid ""
14860 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14861 "label on a filesystem."
14862 msgstr ""
14863
14864 #. type: =head2
14865 #: ../fish/guestfish-actions.pod:4217
14866 msgid "set-e2uuid"
14867 msgstr ""
14868
14869 #. type: verbatim
14870 #: ../fish/guestfish-actions.pod:4219
14871 #, no-wrap
14872 msgid ""
14873 " set-e2uuid device uuid\n"
14874 "\n"
14875 msgstr ""
14876
14877 #. type: textblock
14878 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
14879 msgid ""
14880 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14881 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14882 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:4226
14887 msgid ""
14888 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14889 "UUID of a filesystem."
14890 msgstr ""
14891
14892 #. type: =head2
14893 #: ../fish/guestfish-actions.pod:4229
14894 msgid "set-memsize"
14895 msgstr ""
14896
14897 #. type: =head2
14898 #: ../fish/guestfish-actions.pod:4231
14899 msgid "memsize"
14900 msgstr ""
14901
14902 #. type: verbatim
14903 #: ../fish/guestfish-actions.pod:4233
14904 #, no-wrap
14905 msgid ""
14906 " set-memsize memsize\n"
14907 "\n"
14908 msgstr ""
14909
14910 #. type: textblock
14911 #: ../fish/guestfish-actions.pod:4235
14912 msgid ""
14913 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14914 "This only has any effect if called before L</launch>."
14915 msgstr ""
14916
14917 #. type: textblock
14918 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
14919 msgid ""
14920 "You can also change this by setting the environment variable "
14921 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14922 msgstr ""
14923
14924 #. type: =head2
14925 #: ../fish/guestfish-actions.pod:4246
14926 msgid "set-network"
14927 msgstr ""
14928
14929 #. type: =head2
14930 #: ../fish/guestfish-actions.pod:4248
14931 msgid "network"
14932 msgstr ""
14933
14934 #. type: verbatim
14935 #: ../fish/guestfish-actions.pod:4250
14936 #, no-wrap
14937 msgid ""
14938 " set-network true|false\n"
14939 "\n"
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
14944 msgid ""
14945 "If C<network> is true, then the network is enabled in the libguestfs "
14946 "appliance.  The default is false."
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
14951 msgid ""
14952 "This affects whether commands are able to access the network (see L<guestfs"
14953 "(3)/RUNNING COMMANDS>)."
14954 msgstr ""
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4258
14958 msgid ""
14959 "You must call this before calling L</launch>, otherwise it has no effect."
14960 msgstr ""
14961
14962 #. type: =head2
14963 #: ../fish/guestfish-actions.pod:4261
14964 msgid "set-path"
14965 msgstr ""
14966
14967 #. type: verbatim
14968 #: ../fish/guestfish-actions.pod:4265
14969 #, no-wrap
14970 msgid ""
14971 " set-path searchpath\n"
14972 "\n"
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
14977 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14978 msgstr ""
14979
14980 #. type: textblock
14981 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
14982 msgid ""
14983 "The default is C<$libdir/guestfs> unless overridden by setting "
14984 "C<LIBGUESTFS_PATH> environment variable."
14985 msgstr ""
14986
14987 #. type: textblock
14988 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
14989 msgid "Setting C<path> to C<NULL> restores the default path."
14990 msgstr ""
14991
14992 #. type: =head2
14993 #: ../fish/guestfish-actions.pod:4274
14994 msgid "set-pgroup"
14995 msgstr ""
14996
14997 #. type: =head2
14998 #: ../fish/guestfish-actions.pod:4276
14999 msgid "pgroup"
15000 msgstr ""
15001
15002 #. type: verbatim
15003 #: ../fish/guestfish-actions.pod:4278
15004 #, no-wrap
15005 msgid ""
15006 " set-pgroup true|false\n"
15007 "\n"
15008 msgstr ""
15009
15010 #. type: textblock
15011 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15012 msgid ""
15013 "If C<pgroup> is true, child processes are placed into their own process "
15014 "group."
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15019 msgid ""
15020 "The practical upshot of this is that signals like C<SIGINT> (from users "
15021 "pressing C<^C>) won't be received by the child process."
15022 msgstr ""
15023
15024 #. type: textblock
15025 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15026 msgid ""
15027 "The default for this flag is false, because usually you want C<^C> to kill "
15028 "the subprocess."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-actions.pod:4289
15033 msgid "set-qemu"
15034 msgstr ""
15035
15036 #. type: =head2
15037 #: ../fish/guestfish-actions.pod:4291
15038 msgid "qemu"
15039 msgstr ""
15040
15041 #. type: verbatim
15042 #: ../fish/guestfish-actions.pod:4293
15043 #, no-wrap
15044 msgid ""
15045 " set-qemu qemu\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15051 msgid "Set the qemu binary that we will use."
15052 msgstr ""
15053
15054 #. type: textblock
15055 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15056 msgid ""
15057 "The default is chosen when the library was compiled by the configure script."
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15062 msgid ""
15063 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15064 "variable."
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15069 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15074 msgid ""
15075 "Note that you should call this function as early as possible after creating "
15076 "the handle.  This is because some pre-launch operations depend on testing "
15077 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15078 "don't retest features, and so you might see inconsistent results.  Using the "
15079 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15080 "the qemu binary at the same time as the handle is created."
15081 msgstr ""
15082
15083 #. type: =head2
15084 #: ../fish/guestfish-actions.pod:4313
15085 msgid "set-recovery-proc"
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../fish/guestfish-actions.pod:4315
15090 msgid "recovery-proc"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../fish/guestfish-actions.pod:4317
15095 #, no-wrap
15096 msgid ""
15097 " set-recovery-proc true|false\n"
15098 "\n"
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:4319
15103 msgid ""
15104 "If this is called with the parameter C<false> then L</launch> does not "
15105 "create a recovery process.  The purpose of the recovery process is to stop "
15106 "runaway qemu processes in the case where the main program aborts abruptly."
15107 msgstr ""
15108
15109 #. type: textblock
15110 #: ../fish/guestfish-actions.pod:4324
15111 msgid ""
15112 "This only has any effect if called before L</launch>, and the default is "
15113 "true."
15114 msgstr ""
15115
15116 #. type: textblock
15117 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15118 msgid ""
15119 "About the only time when you would want to disable this is if the main "
15120 "process will fork itself into the background (\"daemonize\" itself).  In "
15121 "this case the recovery process thinks that the main program has disappeared "
15122 "and so kills qemu, which is not very helpful."
15123 msgstr ""
15124
15125 #. type: =head2
15126 #: ../fish/guestfish-actions.pod:4333
15127 msgid "set-selinux"
15128 msgstr ""
15129
15130 #. type: =head2
15131 #: ../fish/guestfish-actions.pod:4335
15132 msgid "selinux"
15133 msgstr ""
15134
15135 #. type: verbatim
15136 #: ../fish/guestfish-actions.pod:4337
15137 #, no-wrap
15138 msgid ""
15139 " set-selinux true|false\n"
15140 "\n"
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15145 msgid ""
15146 "This sets the selinux flag that is passed to the appliance at boot time.  "
15147 "The default is C<selinux=0> (disabled)."
15148 msgstr ""
15149
15150 #. type: textblock
15151 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15152 msgid ""
15153 "Note that if SELinux is enabled, it is always in Permissive mode "
15154 "(C<enforcing=0>)."
15155 msgstr ""
15156
15157 #. type: =head2
15158 #: ../fish/guestfish-actions.pod:4348
15159 msgid "set-smp"
15160 msgstr ""
15161
15162 #. type: =head2
15163 #: ../fish/guestfish-actions.pod:4350
15164 msgid "smp"
15165 msgstr ""
15166
15167 #. type: verbatim
15168 #: ../fish/guestfish-actions.pod:4352
15169 #, no-wrap
15170 msgid ""
15171 " set-smp smp\n"
15172 "\n"
15173 msgstr ""
15174
15175 #. type: textblock
15176 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15177 msgid ""
15178 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15179 "C<1>.  Increasing this may improve performance, though often it has no "
15180 "effect."
15181 msgstr ""
15182
15183 #. type: textblock
15184 #: ../fish/guestfish-actions.pod:4358
15185 msgid "This function must be called before L</launch>."
15186 msgstr ""
15187
15188 #. type: =head2
15189 #: ../fish/guestfish-actions.pod:4360
15190 msgid "set-trace"
15191 msgstr ""
15192
15193 #. type: =head2
15194 #: ../fish/guestfish-actions.pod:4362
15195 msgid "trace"
15196 msgstr ""
15197
15198 #. type: verbatim
15199 #: ../fish/guestfish-actions.pod:4364
15200 #, no-wrap
15201 msgid ""
15202 " set-trace true|false\n"
15203 "\n"
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15208 msgid ""
15209 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15210 "return values are traced."
15211 msgstr ""
15212
15213 #. type: textblock
15214 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15215 msgid ""
15216 "If you want to trace C API calls into libguestfs (and other libraries) then "
15217 "possibly a better way is to use the external ltrace(1) command."
15218 msgstr ""
15219
15220 #. type: textblock
15221 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15222 msgid ""
15223 "Command traces are disabled unless the environment variable "
15224 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-actions.pod:4376
15229 msgid ""
15230 "Trace messages are normally sent to C<stderr>, unless you register a "
15231 "callback to send them somewhere else (see L</set-event-callback>)."
15232 msgstr ""
15233
15234 #. type: =head2
15235 #: ../fish/guestfish-actions.pod:4380
15236 msgid "set-verbose"
15237 msgstr ""
15238
15239 #. type: =head2
15240 #: ../fish/guestfish-actions.pod:4382
15241 msgid "verbose"
15242 msgstr ""
15243
15244 #. type: verbatim
15245 #: ../fish/guestfish-actions.pod:4384
15246 #, no-wrap
15247 msgid ""
15248 " set-verbose true|false\n"
15249 "\n"
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15254 msgid "If C<verbose> is true, this turns on verbose messages."
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15259 msgid ""
15260 "Verbose messages are disabled unless the environment variable "
15261 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4391
15266 msgid ""
15267 "Verbose messages are normally sent to C<stderr>, unless you register a "
15268 "callback to send them somewhere else (see L</set-event-callback>)."
15269 msgstr ""
15270
15271 #. type: =head2
15272 #: ../fish/guestfish-actions.pod:4395
15273 msgid "setcon"
15274 msgstr ""
15275
15276 #. type: verbatim
15277 #: ../fish/guestfish-actions.pod:4397
15278 #, no-wrap
15279 msgid ""
15280 " setcon context\n"
15281 "\n"
15282 msgstr ""
15283
15284 #. type: textblock
15285 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15286 msgid ""
15287 "This sets the SELinux security context of the daemon to the string "
15288 "C<context>."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15293 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15294 msgstr ""
15295
15296 #. type: =head2
15297 #: ../fish/guestfish-actions.pod:4404
15298 msgid "setxattr"
15299 msgstr ""
15300
15301 #. type: verbatim
15302 #: ../fish/guestfish-actions.pod:4406
15303 #, no-wrap
15304 msgid ""
15305 " setxattr xattr val vallen path\n"
15306 "\n"
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15311 msgid ""
15312 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15313 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15314 msgstr ""
15315
15316 #. type: textblock
15317 #: ../fish/guestfish-actions.pod:4412
15318 msgid "See also: L</lsetxattr>, L<attr(5)>."
15319 msgstr ""
15320
15321 #. type: =head2
15322 #: ../fish/guestfish-actions.pod:4414
15323 msgid "sfdisk"
15324 msgstr ""
15325
15326 #. type: verbatim
15327 #: ../fish/guestfish-actions.pod:4416
15328 #, no-wrap
15329 msgid ""
15330 " sfdisk device cyls heads sectors 'lines ...'\n"
15331 "\n"
15332 msgstr ""
15333
15334 #. type: textblock
15335 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15336 msgid ""
15337 "This is a direct interface to the L<sfdisk(8)> program for creating "
15338 "partitions on block devices."
15339 msgstr ""
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15343 msgid "C<device> should be a block device, for example C</dev/sda>."
15344 msgstr ""
15345
15346 #. type: textblock
15347 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15348 msgid ""
15349 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15350 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15351 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15352 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15353 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15354 "the kernel) cannot work out the right geometry and you will need to tell it."
15355 msgstr ""
15356
15357 #. type: textblock
15358 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15359 msgid ""
15360 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15361 "refer to the L<sfdisk(8)> manpage."
15362 msgstr ""
15363
15364 #. type: textblock
15365 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15366 msgid ""
15367 "To create a single partition occupying the whole disk, you would pass "
15368 "C<lines> as a single element list, when the single element being the string "
15369 "C<,> (comma)."
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:4438
15374 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15375 msgstr ""
15376
15377 #. type: textblock
15378 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15379 #: ../fish/guestfish-actions.pod:4489
15380 msgid ""
15381 "I<This function is deprecated.> In new code, use the L</part_add> call "
15382 "instead."
15383 msgstr ""
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-actions.pod:4451
15387 msgid "sfdiskM"
15388 msgstr ""
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-actions.pod:4453
15392 #, no-wrap
15393 msgid ""
15394 " sfdiskM device 'lines ...'\n"
15395 "\n"
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../fish/guestfish-actions.pod:4455
15400 msgid ""
15401 "This is a simplified interface to the L</sfdisk> command, where partition "
15402 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15403 "you don't need to specify the cyls, heads and sectors parameters which were "
15404 "rarely if ever used anyway."
15405 msgstr ""
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-actions.pod:4461
15409 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15410 msgstr ""
15411
15412 #. type: =head2
15413 #: ../fish/guestfish-actions.pod:4474
15414 msgid "sfdisk-N"
15415 msgstr ""
15416
15417 #. type: verbatim
15418 #: ../fish/guestfish-actions.pod:4476
15419 #, no-wrap
15420 msgid ""
15421 " sfdisk-N device partnum cyls heads sectors line\n"
15422 "\n"
15423 msgstr ""
15424
15425 #. type: textblock
15426 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15427 msgid ""
15428 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15429 "(note: C<n> counts from 1)."
15430 msgstr ""
15431
15432 #. type: textblock
15433 #: ../fish/guestfish-actions.pod:4481
15434 msgid ""
15435 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15436 "cyls/heads/sectors parameters."
15437 msgstr ""
15438
15439 #. type: textblock
15440 #: ../fish/guestfish-actions.pod:4484
15441 msgid "See also: L</part-add>"
15442 msgstr ""
15443
15444 #. type: =head2
15445 #: ../fish/guestfish-actions.pod:4496
15446 msgid "sfdisk-disk-geometry"
15447 msgstr ""
15448
15449 #. type: verbatim
15450 #: ../fish/guestfish-actions.pod:4498
15451 #, no-wrap
15452 msgid ""
15453 " sfdisk-disk-geometry device\n"
15454 "\n"
15455 msgstr ""
15456
15457 #. type: textblock
15458 #: ../fish/guestfish-actions.pod:4500
15459 msgid ""
15460 "This displays the disk geometry of C<device> read from the partition table.  "
15461 "Especially in the case where the underlying block device has been resized, "
15462 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15463 "kernel-geometry>)."
15464 msgstr ""
15465
15466 #. type: textblock
15467 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15468 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15469 msgid "The result is in human-readable format, and not designed to be parsed."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../fish/guestfish-actions.pod:4508
15474 msgid "sfdisk-kernel-geometry"
15475 msgstr ""
15476
15477 #. type: verbatim
15478 #: ../fish/guestfish-actions.pod:4510
15479 #, no-wrap
15480 msgid ""
15481 " sfdisk-kernel-geometry device\n"
15482 "\n"
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15487 msgid "This displays the kernel's idea of the geometry of C<device>."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-actions.pod:4517
15492 msgid "sfdisk-l"
15493 msgstr ""
15494
15495 #. type: verbatim
15496 #: ../fish/guestfish-actions.pod:4519
15497 #, no-wrap
15498 msgid ""
15499 " sfdisk-l device\n"
15500 "\n"
15501 msgstr ""
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15505 msgid ""
15506 "This displays the partition table on C<device>, in the human-readable output "
15507 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-actions.pod:4525
15512 msgid "See also: L</part-list>"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../fish/guestfish-actions.pod:4527
15517 msgid ""
15518 "I<This function is deprecated.> In new code, use the L</part_list> call "
15519 "instead."
15520 msgstr ""
15521
15522 #. type: =head2
15523 #: ../fish/guestfish-actions.pod:4534
15524 msgid "sh"
15525 msgstr ""
15526
15527 #. type: verbatim
15528 #: ../fish/guestfish-actions.pod:4536
15529 #, no-wrap
15530 msgid ""
15531 " sh command\n"
15532 "\n"
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15537 msgid ""
15538 "This call runs a command from the guest filesystem via the guest's C</bin/"
15539 "sh>."
15540 msgstr ""
15541
15542 #. type: textblock
15543 #: ../fish/guestfish-actions.pod:4541
15544 msgid "This is like L</command>, but passes the command to:"
15545 msgstr ""
15546
15547 #. type: verbatim
15548 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15549 #, no-wrap
15550 msgid ""
15551 " /bin/sh -c \"command\"\n"
15552 "\n"
15553 msgstr ""
15554
15555 #. type: textblock
15556 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
15557 msgid ""
15558 "Depending on the guest's shell, this usually results in wildcards being "
15559 "expanded, shell expressions being interpolated and so on."
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-actions.pod:4549
15564 msgid "All the provisos about L</command> apply to this call."
15565 msgstr ""
15566
15567 #. type: =head2
15568 #: ../fish/guestfish-actions.pod:4551
15569 msgid "sh-lines"
15570 msgstr ""
15571
15572 #. type: verbatim
15573 #: ../fish/guestfish-actions.pod:4553
15574 #, no-wrap
15575 msgid ""
15576 " sh-lines command\n"
15577 "\n"
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-actions.pod:4555
15582 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4558
15587 msgid "See also: L</command-lines>"
15588 msgstr ""
15589
15590 #. type: =head2
15591 #: ../fish/guestfish-actions.pod:4560
15592 msgid "sleep"
15593 msgstr ""
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-actions.pod:4562
15597 #, no-wrap
15598 msgid ""
15599 " sleep secs\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
15605 msgid "Sleep for C<secs> seconds."
15606 msgstr ""
15607
15608 #. type: =head2
15609 #: ../fish/guestfish-actions.pod:4566
15610 msgid "stat"
15611 msgstr ""
15612
15613 #. type: verbatim
15614 #: ../fish/guestfish-actions.pod:4568
15615 #, no-wrap
15616 msgid ""
15617 " stat path\n"
15618 "\n"
15619 msgstr ""
15620
15621 #. type: textblock
15622 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
15623 msgid "This is the same as the C<stat(2)> system call."
15624 msgstr ""
15625
15626 #. type: =head2
15627 #: ../fish/guestfish-actions.pod:4574
15628 msgid "statvfs"
15629 msgstr ""
15630
15631 #. type: verbatim
15632 #: ../fish/guestfish-actions.pod:4576
15633 #, no-wrap
15634 msgid ""
15635 " statvfs path\n"
15636 "\n"
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
15641 msgid ""
15642 "Returns file system statistics for any mounted file system.  C<path> should "
15643 "be a file or directory in the mounted file system (typically it is the mount "
15644 "point itself, but it doesn't need to be)."
15645 msgstr ""
15646
15647 #. type: textblock
15648 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
15649 msgid "This is the same as the C<statvfs(2)> system call."
15650 msgstr ""
15651
15652 #. type: =head2
15653 #: ../fish/guestfish-actions.pod:4584
15654 msgid "strings"
15655 msgstr ""
15656
15657 #. type: verbatim
15658 #: ../fish/guestfish-actions.pod:4586
15659 #, no-wrap
15660 msgid ""
15661 " strings path\n"
15662 "\n"
15663 msgstr ""
15664
15665 #. type: textblock
15666 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
15667 msgid ""
15668 "This runs the L<strings(1)> command on a file and returns the list of "
15669 "printable strings found."
15670 msgstr ""
15671
15672 #. type: =head2
15673 #: ../fish/guestfish-actions.pod:4594
15674 msgid "strings-e"
15675 msgstr ""
15676
15677 #. type: verbatim
15678 #: ../fish/guestfish-actions.pod:4596
15679 #, no-wrap
15680 msgid ""
15681 " strings-e encoding path\n"
15682 "\n"
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-actions.pod:4598
15687 msgid ""
15688 "This is like the L</strings> command, but allows you to specify the encoding "
15689 "of strings that are looked for in the source file C<path>."
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
15694 msgid "Allowed encodings are:"
15695 msgstr ""
15696
15697 #. type: =item
15698 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
15699 msgid "s"
15700 msgstr ""
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-actions.pod:4608
15704 msgid ""
15705 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15706 "ISO-8859-X (this is what L</strings> uses)."
15707 msgstr ""
15708
15709 #. type: =item
15710 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
15711 msgid "S"
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
15716 msgid "Single 8-bit-byte characters."
15717 msgstr ""
15718
15719 #. type: =item
15720 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
15721 msgid "b"
15722 msgstr ""
15723
15724 #. type: textblock
15725 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
15726 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15727 msgstr ""
15728
15729 #. type: =item
15730 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
15731 msgid "l (lower case letter L)"
15732 msgstr ""
15733
15734 #. type: textblock
15735 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
15736 msgid ""
15737 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15738 "examining binaries in Windows guests."
15739 msgstr ""
15740
15741 #. type: =item
15742 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
15743 msgid "B"
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
15748 msgid "32-bit big endian such as UCS-4BE."
15749 msgstr ""
15750
15751 #. type: =item
15752 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
15753 msgid "L"
15754 msgstr ""
15755
15756 #. type: textblock
15757 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
15758 msgid "32-bit little endian such as UCS-4LE."
15759 msgstr ""
15760
15761 #. type: textblock
15762 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
15763 msgid "The returned strings are transcoded to UTF-8."
15764 msgstr ""
15765
15766 #. type: =head2
15767 #: ../fish/guestfish-actions.pod:4640
15768 msgid "swapoff-device"
15769 msgstr ""
15770
15771 #. type: verbatim
15772 #: ../fish/guestfish-actions.pod:4642
15773 #, no-wrap
15774 msgid ""
15775 " swapoff-device device\n"
15776 "\n"
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:4644
15781 msgid ""
15782 "This command disables the libguestfs appliance swap device or partition "
15783 "named C<device>.  See L</swapon-device>."
15784 msgstr ""
15785
15786 #. type: =head2
15787 #: ../fish/guestfish-actions.pod:4648
15788 msgid "swapoff-file"
15789 msgstr ""
15790
15791 #. type: verbatim
15792 #: ../fish/guestfish-actions.pod:4650
15793 #, no-wrap
15794 msgid ""
15795 " swapoff-file file\n"
15796 "\n"
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
15801 msgid "This command disables the libguestfs appliance swap on file."
15802 msgstr ""
15803
15804 #. type: =head2
15805 #: ../fish/guestfish-actions.pod:4654
15806 msgid "swapoff-label"
15807 msgstr ""
15808
15809 #. type: verbatim
15810 #: ../fish/guestfish-actions.pod:4656
15811 #, no-wrap
15812 msgid ""
15813 " swapoff-label label\n"
15814 "\n"
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
15819 msgid ""
15820 "This command disables the libguestfs appliance swap on labeled swap "
15821 "partition."
15822 msgstr ""
15823
15824 #. type: =head2
15825 #: ../fish/guestfish-actions.pod:4661
15826 msgid "swapoff-uuid"
15827 msgstr ""
15828
15829 #. type: verbatim
15830 #: ../fish/guestfish-actions.pod:4663
15831 #, no-wrap
15832 msgid ""
15833 " swapoff-uuid uuid\n"
15834 "\n"
15835 msgstr ""
15836
15837 #. type: textblock
15838 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
15839 msgid ""
15840 "This command disables the libguestfs appliance swap partition with the given "
15841 "UUID."
15842 msgstr ""
15843
15844 #. type: =head2
15845 #: ../fish/guestfish-actions.pod:4668
15846 msgid "swapon-device"
15847 msgstr ""
15848
15849 #. type: verbatim
15850 #: ../fish/guestfish-actions.pod:4670
15851 #, no-wrap
15852 msgid ""
15853 " swapon-device device\n"
15854 "\n"
15855 msgstr ""
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-actions.pod:4672
15859 msgid ""
15860 "This command enables the libguestfs appliance to use the swap device or "
15861 "partition named C<device>.  The increased memory is made available for all "
15862 "commands, for example those run using L</command> or L</sh>."
15863 msgstr ""
15864
15865 #. type: textblock
15866 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
15867 msgid ""
15868 "Note that you should not swap to existing guest swap partitions unless you "
15869 "know what you are doing.  They may contain hibernation information, or other "
15870 "information that the guest doesn't want you to trash.  You also risk leaking "
15871 "information about the host to the guest this way.  Instead, attach a new "
15872 "host device to the guest and swap on that."
15873 msgstr ""
15874
15875 #. type: =head2
15876 #: ../fish/guestfish-actions.pod:4684
15877 msgid "swapon-file"
15878 msgstr ""
15879
15880 #. type: verbatim
15881 #: ../fish/guestfish-actions.pod:4686
15882 #, no-wrap
15883 msgid ""
15884 " swapon-file file\n"
15885 "\n"
15886 msgstr ""
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:4688
15890 msgid ""
15891 "This command enables swap to a file.  See L</swapon-device> for other notes."
15892 msgstr ""
15893
15894 #. type: =head2
15895 #: ../fish/guestfish-actions.pod:4691
15896 msgid "swapon-label"
15897 msgstr ""
15898
15899 #. type: verbatim
15900 #: ../fish/guestfish-actions.pod:4693
15901 #, no-wrap
15902 msgid ""
15903 " swapon-label label\n"
15904 "\n"
15905 msgstr ""
15906
15907 #. type: textblock
15908 #: ../fish/guestfish-actions.pod:4695
15909 msgid ""
15910 "This command enables swap to a labeled swap partition.  See L</swapon-"
15911 "device> for other notes."
15912 msgstr ""
15913
15914 #. type: =head2
15915 #: ../fish/guestfish-actions.pod:4698
15916 msgid "swapon-uuid"
15917 msgstr ""
15918
15919 #. type: verbatim
15920 #: ../fish/guestfish-actions.pod:4700
15921 #, no-wrap
15922 msgid ""
15923 " swapon-uuid uuid\n"
15924 "\n"
15925 msgstr ""
15926
15927 #. type: textblock
15928 #: ../fish/guestfish-actions.pod:4702
15929 msgid ""
15930 "This command enables swap to a swap partition with the given UUID.  See L</"
15931 "swapon-device> for other notes."
15932 msgstr ""
15933
15934 #. type: =head2
15935 #: ../fish/guestfish-actions.pod:4705
15936 msgid "sync"
15937 msgstr ""
15938
15939 #. type: verbatim
15940 #: ../fish/guestfish-actions.pod:4707
15941 #, no-wrap
15942 msgid ""
15943 " sync\n"
15944 "\n"
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
15949 msgid ""
15950 "This syncs the disk, so that any writes are flushed through to the "
15951 "underlying disk image."
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
15956 msgid ""
15957 "You should always call this if you have modified a disk image, before "
15958 "closing the handle."
15959 msgstr ""
15960
15961 #. type: =head2
15962 #: ../fish/guestfish-actions.pod:4715
15963 msgid "tail"
15964 msgstr ""
15965
15966 #. type: verbatim
15967 #: ../fish/guestfish-actions.pod:4717
15968 #, no-wrap
15969 msgid ""
15970 " tail path\n"
15971 "\n"
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
15976 msgid ""
15977 "This command returns up to the last 10 lines of a file as a list of strings."
15978 msgstr ""
15979
15980 #. type: =head2
15981 #: ../fish/guestfish-actions.pod:4725
15982 msgid "tail-n"
15983 msgstr ""
15984
15985 #. type: verbatim
15986 #: ../fish/guestfish-actions.pod:4727
15987 #, no-wrap
15988 msgid ""
15989 " tail-n nrlines path\n"
15990 "\n"
15991 msgstr ""
15992
15993 #. type: textblock
15994 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
15995 msgid ""
15996 "If the parameter C<nrlines> is a positive number, this returns the last "
15997 "C<nrlines> lines of the file C<path>."
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16002 msgid ""
16003 "If the parameter C<nrlines> is a negative number, this returns lines from "
16004 "the file C<path>, starting with the C<-nrlines>th line."
16005 msgstr ""
16006
16007 #. type: =head2
16008 #: ../fish/guestfish-actions.pod:4740
16009 msgid "tar-in"
16010 msgstr ""
16011
16012 #. type: verbatim
16013 #: ../fish/guestfish-actions.pod:4742
16014 #, no-wrap
16015 msgid ""
16016 " tar-in (tarfile|-) directory\n"
16017 "\n"
16018 msgstr ""
16019
16020 #. type: textblock
16021 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16022 msgid ""
16023 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16024 "tar file) into C<directory>."
16025 msgstr ""
16026
16027 #. type: textblock
16028 #: ../fish/guestfish-actions.pod:4747
16029 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16030 msgstr ""
16031
16032 #. type: =head2
16033 #: ../fish/guestfish-actions.pod:4752
16034 msgid "tar-out"
16035 msgstr ""
16036
16037 #. type: verbatim
16038 #: ../fish/guestfish-actions.pod:4754
16039 #, no-wrap
16040 msgid ""
16041 " tar-out directory (tarfile|-)\n"
16042 "\n"
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16047 msgid ""
16048 "This command packs the contents of C<directory> and downloads it to local "
16049 "file C<tarfile>."
16050 msgstr ""
16051
16052 #. type: textblock
16053 #: ../fish/guestfish-actions.pod:4759
16054 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16055 msgstr ""
16056
16057 #. type: =head2
16058 #: ../fish/guestfish-actions.pod:4764
16059 msgid "tgz-in"
16060 msgstr ""
16061
16062 #. type: verbatim
16063 #: ../fish/guestfish-actions.pod:4766
16064 #, no-wrap
16065 msgid ""
16066 " tgz-in (tarball|-) directory\n"
16067 "\n"
16068 msgstr ""
16069
16070 #. type: textblock
16071 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16072 msgid ""
16073 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16074 "tar file) into C<directory>."
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-actions.pod:4771
16079 msgid "To upload an uncompressed tarball, use L</tar-in>."
16080 msgstr ""
16081
16082 #. type: =head2
16083 #: ../fish/guestfish-actions.pod:4775
16084 msgid "tgz-out"
16085 msgstr ""
16086
16087 #. type: verbatim
16088 #: ../fish/guestfish-actions.pod:4777
16089 #, no-wrap
16090 msgid ""
16091 " tgz-out directory (tarball|-)\n"
16092 "\n"
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16097 msgid ""
16098 "This command packs the contents of C<directory> and downloads it to local "
16099 "file C<tarball>."
16100 msgstr ""
16101
16102 #. type: textblock
16103 #: ../fish/guestfish-actions.pod:4782
16104 msgid "To download an uncompressed tarball, use L</tar-out>."
16105 msgstr ""
16106
16107 #. type: =head2
16108 #: ../fish/guestfish-actions.pod:4786
16109 msgid "touch"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish-actions.pod:4788
16114 #, no-wrap
16115 msgid ""
16116 " touch path\n"
16117 "\n"
16118 msgstr ""
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16122 msgid ""
16123 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16124 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16125 "length file."
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16130 msgid ""
16131 "This command only works on regular files, and will fail on other file types "
16132 "such as directories, symbolic links, block special etc."
16133 msgstr ""
16134
16135 #. type: =head2
16136 #: ../fish/guestfish-actions.pod:4797
16137 msgid "truncate"
16138 msgstr ""
16139
16140 #. type: verbatim
16141 #: ../fish/guestfish-actions.pod:4799
16142 #, no-wrap
16143 msgid ""
16144 " truncate path\n"
16145 "\n"
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16150 msgid ""
16151 "This command truncates C<path> to a zero-length file.  The file must exist "
16152 "already."
16153 msgstr ""
16154
16155 #. type: =head2
16156 #: ../fish/guestfish-actions.pod:4804
16157 msgid "truncate-size"
16158 msgstr ""
16159
16160 #. type: verbatim
16161 #: ../fish/guestfish-actions.pod:4806
16162 #, no-wrap
16163 msgid ""
16164 " truncate-size path size\n"
16165 "\n"
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16170 msgid ""
16171 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16172 "already."
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../fish/guestfish-actions.pod:4811
16177 msgid ""
16178 "If the current file size is less than C<size> then the file is extended to "
16179 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16180 "blocks are not allocated for the file until you write to it).  To create a "
16181 "non-sparse file of zeroes, use L</fallocate64> instead."
16182 msgstr ""
16183
16184 #. type: =head2
16185 #: ../fish/guestfish-actions.pod:4817
16186 msgid "tune2fs-l"
16187 msgstr ""
16188
16189 #. type: verbatim
16190 #: ../fish/guestfish-actions.pod:4819
16191 #, no-wrap
16192 msgid ""
16193 " tune2fs-l device\n"
16194 "\n"
16195 msgstr ""
16196
16197 #. type: textblock
16198 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16199 msgid ""
16200 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16201 "C<device>."
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16206 msgid ""
16207 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16208 "for more details.  The list of fields returned isn't clearly defined, and "
16209 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16210 "and the filesystem itself."
16211 msgstr ""
16212
16213 #. type: =head2
16214 #: ../fish/guestfish-actions.pod:4829
16215 msgid "txz-in"
16216 msgstr ""
16217
16218 #. type: verbatim
16219 #: ../fish/guestfish-actions.pod:4831
16220 #, no-wrap
16221 msgid ""
16222 " txz-in (tarball|-) directory\n"
16223 "\n"
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16228 msgid ""
16229 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16230 "tar file) into C<directory>."
16231 msgstr ""
16232
16233 #. type: =head2
16234 #: ../fish/guestfish-actions.pod:4838
16235 msgid "txz-out"
16236 msgstr ""
16237
16238 #. type: verbatim
16239 #: ../fish/guestfish-actions.pod:4840
16240 #, no-wrap
16241 msgid ""
16242 " txz-out directory (tarball|-)\n"
16243 "\n"
16244 msgstr ""
16245
16246 #. type: textblock
16247 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16248 msgid ""
16249 "This command packs the contents of C<directory> and downloads it to local "
16250 "file C<tarball> (as an xz compressed tar archive)."
16251 msgstr ""
16252
16253 #. type: =head2
16254 #: ../fish/guestfish-actions.pod:4847
16255 msgid "umask"
16256 msgstr ""
16257
16258 #. type: verbatim
16259 #: ../fish/guestfish-actions.pod:4849
16260 #, no-wrap
16261 msgid ""
16262 " umask mask\n"
16263 "\n"
16264 msgstr ""
16265
16266 #. type: textblock
16267 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16268 msgid ""
16269 "This function sets the mask used for creating new files and device nodes to "
16270 "C<mask & 0777>."
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16275 msgid ""
16276 "Typical umask values would be C<022> which creates new files with "
16277 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16278 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16279 msgstr ""
16280
16281 #. type: textblock
16282 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16283 msgid ""
16284 "The default umask is C<022>.  This is important because it means that "
16285 "directories and device nodes will be created with C<0644> or C<0755> mode "
16286 "even if you specify C<0777>."
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-actions.pod:4863
16291 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16292 msgstr ""
16293
16294 #. type: textblock
16295 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16296 msgid "This call returns the previous umask."
16297 msgstr ""
16298
16299 #. type: =head2
16300 #: ../fish/guestfish-actions.pod:4868
16301 msgid "umount"
16302 msgstr ""
16303
16304 #. type: =head2
16305 #: ../fish/guestfish-actions.pod:4870
16306 msgid "unmount"
16307 msgstr ""
16308
16309 #. type: verbatim
16310 #: ../fish/guestfish-actions.pod:4872
16311 #, no-wrap
16312 msgid ""
16313 " umount pathordevice\n"
16314 "\n"
16315 msgstr ""
16316
16317 #. type: textblock
16318 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16319 msgid ""
16320 "This unmounts the given filesystem.  The filesystem may be specified either "
16321 "by its mountpoint (path) or the device which contains the filesystem."
16322 msgstr ""
16323
16324 #. type: =head2
16325 #: ../fish/guestfish-actions.pod:4878
16326 msgid "umount-all"
16327 msgstr ""
16328
16329 #. type: =head2
16330 #: ../fish/guestfish-actions.pod:4880
16331 msgid "unmount-all"
16332 msgstr ""
16333
16334 #. type: verbatim
16335 #: ../fish/guestfish-actions.pod:4882
16336 #, no-wrap
16337 msgid ""
16338 " umount-all\n"
16339 "\n"
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16344 msgid "This unmounts all mounted filesystems."
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16349 msgid "Some internal mounts are not unmounted by this call."
16350 msgstr ""
16351
16352 #. type: =head2
16353 #: ../fish/guestfish-actions.pod:4888
16354 msgid "upload"
16355 msgstr ""
16356
16357 #. type: verbatim
16358 #: ../fish/guestfish-actions.pod:4890
16359 #, no-wrap
16360 msgid ""
16361 " upload (filename|-) remotefilename\n"
16362 "\n"
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16367 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16368 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16369 msgstr ""
16370
16371 #. type: textblock
16372 #: ../fish/guestfish-actions.pod:4897
16373 msgid "See also L</download>."
16374 msgstr ""
16375
16376 #. type: =head2
16377 #: ../fish/guestfish-actions.pod:4901
16378 msgid "upload-offset"
16379 msgstr ""
16380
16381 #. type: verbatim
16382 #: ../fish/guestfish-actions.pod:4903
16383 #, no-wrap
16384 msgid ""
16385 " upload-offset (filename|-) remotefilename offset\n"
16386 "\n"
16387 msgstr ""
16388
16389 #. type: textblock
16390 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16391 msgid ""
16392 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16393 "The intention is to overwrite parts of existing files or devices, although "
16394 "if a non-existant file is specified then it is created with a \"hole\" "
16395 "before C<offset>.  The size of the data written is implicit in the size of "
16396 "the source C<filename>."
16397 msgstr ""
16398
16399 #. type: textblock
16400 #: ../fish/guestfish-actions.pod:4915
16401 msgid ""
16402 "Note that there is no limit on the amount of data that can be uploaded with "
16403 "this call, unlike with L</pwrite>, and this call always writes the full "
16404 "amount unless an error occurs."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:4920
16409 msgid "See also L</upload>, L</pwrite>."
16410 msgstr ""
16411
16412 #. type: =head2
16413 #: ../fish/guestfish-actions.pod:4924
16414 msgid "utimens"
16415 msgstr ""
16416
16417 #. type: verbatim
16418 #: ../fish/guestfish-actions.pod:4926
16419 #, no-wrap
16420 msgid ""
16421 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16422 "\n"
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16427 msgid "This command sets the timestamps of a file with nanosecond precision."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16432 msgid ""
16433 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16434 "from the epoch."
16435 msgstr ""
16436
16437 #. type: textblock
16438 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16439 msgid ""
16440 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16441 "nanoseconds from the epoch."
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16446 msgid ""
16447 "If the C<*nsecs> field contains the special value C<-1> then the "
16448 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16449 "ignored in this case)."
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16454 msgid ""
16455 "If the C<*nsecs> field contains the special value C<-2> then the "
16456 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16457 "in this case)."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4945
16462 msgid "version"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:4947
16467 #, no-wrap
16468 msgid ""
16469 " version\n"
16470 "\n"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16475 msgid ""
16476 "Return the libguestfs version number that the program is linked against."
16477 msgstr ""
16478
16479 #. type: textblock
16480 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16481 msgid ""
16482 "Note that because of dynamic linking this is not necessarily the version of "
16483 "libguestfs that you compiled against.  You can compile the program, and then "
16484 "at runtime dynamically link against a completely different C<libguestfs.so> "
16485 "library."
16486 msgstr ""
16487
16488 #. type: textblock
16489 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
16490 msgid ""
16491 "This call was added in version C<1.0.58>.  In previous versions of "
16492 "libguestfs there was no way to get the version number.  From C code you can "
16493 "use dynamic linker functions to find out if this symbol exists (if it "
16494 "doesn't, then it's an earlier version)."
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
16499 msgid ""
16500 "The call returns a structure with four elements.  The first three (C<major>, "
16501 "C<minor> and C<release>) are numbers and correspond to the usual version "
16502 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16503 "but may be used for distro-specific information."
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
16508 msgid ""
16509 "To construct the original version string: C<$major.$minor.$release$extra>"
16510 msgstr ""
16511
16512 #. type: textblock
16513 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
16514 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16515 msgstr ""
16516
16517 #. type: textblock
16518 #: ../fish/guestfish-actions.pod:4974
16519 msgid ""
16520 "I<Note:> Don't use this call to test for availability of features.  In "
16521 "enterprise distributions we backport features from later versions into "
16522 "earlier versions, making this an unreliable way to test for features.  Use "
16523 "L</available> instead."
16524 msgstr ""
16525
16526 #. type: =head2
16527 #: ../fish/guestfish-actions.pod:4980
16528 msgid "vfs-label"
16529 msgstr ""
16530
16531 #. type: verbatim
16532 #: ../fish/guestfish-actions.pod:4982
16533 #, no-wrap
16534 msgid ""
16535 " vfs-label device\n"
16536 "\n"
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
16541 msgid "This returns the filesystem label of the filesystem on C<device>."
16542 msgstr ""
16543
16544 #. type: textblock
16545 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
16546 msgid "If the filesystem is unlabeled, this returns the empty string."
16547 msgstr ""
16548
16549 #. type: textblock
16550 #: ../fish/guestfish-actions.pod:4989
16551 msgid "To find a filesystem from the label, use L</findfs-label>."
16552 msgstr ""
16553
16554 #. type: =head2
16555 #: ../fish/guestfish-actions.pod:4991
16556 msgid "vfs-type"
16557 msgstr ""
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish-actions.pod:4993
16561 #, no-wrap
16562 msgid ""
16563 " vfs-type device\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: textblock
16568 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
16569 msgid ""
16570 "This command gets the filesystem type corresponding to the filesystem on "
16571 "C<device>."
16572 msgstr ""
16573
16574 #. type: textblock
16575 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
16576 msgid ""
16577 "For most filesystems, the result is the name of the Linux VFS module which "
16578 "would be used to mount this filesystem if you mounted it without specifying "
16579 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16580 msgstr ""
16581
16582 #. type: =head2
16583 #: ../fish/guestfish-actions.pod:5003
16584 msgid "vfs-uuid"
16585 msgstr ""
16586
16587 #. type: verbatim
16588 #: ../fish/guestfish-actions.pod:5005
16589 #, no-wrap
16590 msgid ""
16591 " vfs-uuid device\n"
16592 "\n"
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
16597 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16598 msgstr ""
16599
16600 #. type: textblock
16601 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
16602 msgid "If the filesystem does not have a UUID, this returns the empty string."
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-actions.pod:5012
16607 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16608 msgstr ""
16609
16610 #. type: =head2
16611 #: ../fish/guestfish-actions.pod:5014
16612 msgid "vg-activate"
16613 msgstr ""
16614
16615 #. type: verbatim
16616 #: ../fish/guestfish-actions.pod:5016
16617 #, no-wrap
16618 msgid ""
16619 " vg-activate true|false 'volgroups ...'\n"
16620 "\n"
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
16625 msgid ""
16626 "This command activates or (if C<activate> is false) deactivates all logical "
16627 "volumes in the listed volume groups C<volgroups>."
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
16632 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16633 msgstr ""
16634
16635 #. type: textblock
16636 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
16637 msgid ""
16638 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16639 "activated or deactivated."
16640 msgstr ""
16641
16642 #. type: =head2
16643 #: ../fish/guestfish-actions.pod:5026
16644 msgid "vg-activate-all"
16645 msgstr ""
16646
16647 #. type: verbatim
16648 #: ../fish/guestfish-actions.pod:5028
16649 #, no-wrap
16650 msgid ""
16651 " vg-activate-all true|false\n"
16652 "\n"
16653 msgstr ""
16654
16655 #. type: textblock
16656 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
16657 msgid ""
16658 "This command activates or (if C<activate> is false) deactivates all logical "
16659 "volumes in all volume groups."
16660 msgstr ""
16661
16662 #. type: textblock
16663 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
16664 msgid "This command is the same as running C<vgchange -a y|n>"
16665 msgstr ""
16666
16667 #. type: =head2
16668 #: ../fish/guestfish-actions.pod:5035
16669 msgid "vgcreate"
16670 msgstr ""
16671
16672 #. type: verbatim
16673 #: ../fish/guestfish-actions.pod:5037
16674 #, no-wrap
16675 msgid ""
16676 " vgcreate volgroup 'physvols ...'\n"
16677 "\n"
16678 msgstr ""
16679
16680 #. type: textblock
16681 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
16682 msgid ""
16683 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16684 "of physical volumes C<physvols>."
16685 msgstr ""
16686
16687 #. type: =head2
16688 #: ../fish/guestfish-actions.pod:5042
16689 msgid "vglvuuids"
16690 msgstr ""
16691
16692 #. type: verbatim
16693 #: ../fish/guestfish-actions.pod:5044
16694 #, no-wrap
16695 msgid ""
16696 " vglvuuids vgname\n"
16697 "\n"
16698 msgstr ""
16699
16700 #. type: textblock
16701 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
16702 msgid ""
16703 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16704 "volumes created in this volume group."
16705 msgstr ""
16706
16707 #. type: textblock
16708 #: ../fish/guestfish-actions.pod:5049
16709 msgid ""
16710 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16711 "logical volumes and volume groups."
16712 msgstr ""
16713
16714 #. type: textblock
16715 #: ../fish/guestfish-actions.pod:5052
16716 msgid "See also L</vgpvuuids>."
16717 msgstr ""
16718
16719 #. type: =head2
16720 #: ../fish/guestfish-actions.pod:5054
16721 msgid "vgpvuuids"
16722 msgstr ""
16723
16724 #. type: verbatim
16725 #: ../fish/guestfish-actions.pod:5056
16726 #, no-wrap
16727 msgid ""
16728 " vgpvuuids vgname\n"
16729 "\n"
16730 msgstr ""
16731
16732 #. type: textblock
16733 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
16734 msgid ""
16735 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16736 "volumes that this volume group resides on."
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish-actions.pod:5061
16741 msgid ""
16742 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16743 "physical volumes and volume groups."
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish-actions.pod:5064
16748 msgid "See also L</vglvuuids>."
16749 msgstr ""
16750
16751 #. type: =head2
16752 #: ../fish/guestfish-actions.pod:5066
16753 msgid "vgremove"
16754 msgstr ""
16755
16756 #. type: verbatim
16757 #: ../fish/guestfish-actions.pod:5068
16758 #, no-wrap
16759 msgid ""
16760 " vgremove vgname\n"
16761 "\n"
16762 msgstr ""
16763
16764 #. type: textblock
16765 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
16766 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16767 msgstr ""
16768
16769 #. type: textblock
16770 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
16771 msgid ""
16772 "This also forcibly removes all logical volumes in the volume group (if any)."
16773 msgstr ""
16774
16775 #. type: =head2
16776 #: ../fish/guestfish-actions.pod:5075
16777 msgid "vgrename"
16778 msgstr ""
16779
16780 #. type: verbatim
16781 #: ../fish/guestfish-actions.pod:5077
16782 #, no-wrap
16783 msgid ""
16784 " vgrename volgroup newvolgroup\n"
16785 "\n"
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
16790 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16791 msgstr ""
16792
16793 #. type: =head2
16794 #: ../fish/guestfish-actions.pod:5081
16795 msgid "vgs"
16796 msgstr ""
16797
16798 #. type: verbatim
16799 #: ../fish/guestfish-actions.pod:5083
16800 #, no-wrap
16801 msgid ""
16802 " vgs\n"
16803 "\n"
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
16808 msgid ""
16809 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16810 "> command."
16811 msgstr ""
16812
16813 #. type: textblock
16814 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
16815 msgid ""
16816 "This returns a list of just the volume group names that were detected (eg. "
16817 "C<VolGroup00>)."
16818 msgstr ""
16819
16820 #. type: textblock
16821 #: ../fish/guestfish-actions.pod:5091
16822 msgid "See also L</vgs-full>."
16823 msgstr ""
16824
16825 #. type: =head2
16826 #: ../fish/guestfish-actions.pod:5093
16827 msgid "vgs-full"
16828 msgstr ""
16829
16830 #. type: verbatim
16831 #: ../fish/guestfish-actions.pod:5095
16832 #, no-wrap
16833 msgid ""
16834 " vgs-full\n"
16835 "\n"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
16840 msgid ""
16841 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16842 "> command.  The \"full\" version includes all fields."
16843 msgstr ""
16844
16845 #. type: =head2
16846 #: ../fish/guestfish-actions.pod:5100
16847 msgid "vgscan"
16848 msgstr ""
16849
16850 #. type: verbatim
16851 #: ../fish/guestfish-actions.pod:5102
16852 #, no-wrap
16853 msgid ""
16854 " vgscan\n"
16855 "\n"
16856 msgstr ""
16857
16858 #. type: textblock
16859 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
16860 msgid ""
16861 "This rescans all block devices and rebuilds the list of LVM physical "
16862 "volumes, volume groups and logical volumes."
16863 msgstr ""
16864
16865 #. type: =head2
16866 #: ../fish/guestfish-actions.pod:5107
16867 msgid "vguuid"
16868 msgstr ""
16869
16870 #. type: verbatim
16871 #: ../fish/guestfish-actions.pod:5109
16872 #, no-wrap
16873 msgid ""
16874 " vguuid vgname\n"
16875 "\n"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
16880 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16881 msgstr ""
16882
16883 #. type: =head2
16884 #: ../fish/guestfish-actions.pod:5113
16885 msgid "wc-c"
16886 msgstr ""
16887
16888 #. type: verbatim
16889 #: ../fish/guestfish-actions.pod:5115
16890 #, no-wrap
16891 msgid ""
16892 " wc-c path\n"
16893 "\n"
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
16898 msgid ""
16899 "This command counts the characters in a file, using the C<wc -c> external "
16900 "command."
16901 msgstr ""
16902
16903 #. type: =head2
16904 #: ../fish/guestfish-actions.pod:5120
16905 msgid "wc-l"
16906 msgstr ""
16907
16908 #. type: verbatim
16909 #: ../fish/guestfish-actions.pod:5122
16910 #, no-wrap
16911 msgid ""
16912 " wc-l path\n"
16913 "\n"
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
16918 msgid ""
16919 "This command counts the lines in a file, using the C<wc -l> external command."
16920 msgstr ""
16921
16922 #. type: =head2
16923 #: ../fish/guestfish-actions.pod:5127
16924 msgid "wc-w"
16925 msgstr ""
16926
16927 #. type: verbatim
16928 #: ../fish/guestfish-actions.pod:5129
16929 #, no-wrap
16930 msgid ""
16931 " wc-w path\n"
16932 "\n"
16933 msgstr ""
16934
16935 #. type: textblock
16936 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
16937 msgid ""
16938 "This command counts the words in a file, using the C<wc -w> external command."
16939 msgstr ""
16940
16941 #. type: =head2
16942 #: ../fish/guestfish-actions.pod:5134
16943 msgid "write"
16944 msgstr ""
16945
16946 #. type: verbatim
16947 #: ../fish/guestfish-actions.pod:5136
16948 #, no-wrap
16949 msgid ""
16950 " write path content\n"
16951 "\n"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
16956 msgid ""
16957 "This call creates a file called C<path>.  The content of the file is the "
16958 "string C<content> (which can contain any 8 bit data)."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5141
16963 msgid "See also L</write-append>."
16964 msgstr ""
16965
16966 #. type: =head2
16967 #: ../fish/guestfish-actions.pod:5146
16968 msgid "write-append"
16969 msgstr ""
16970
16971 #. type: verbatim
16972 #: ../fish/guestfish-actions.pod:5148
16973 #, no-wrap
16974 msgid ""
16975 " write-append path content\n"
16976 "\n"
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
16981 msgid ""
16982 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16983 "not exist, then a new file is created."
16984 msgstr ""
16985
16986 #. type: textblock
16987 #: ../fish/guestfish-actions.pod:5153
16988 msgid "See also L</write>."
16989 msgstr ""
16990
16991 #. type: =head2
16992 #: ../fish/guestfish-actions.pod:5158
16993 msgid "write-file"
16994 msgstr ""
16995
16996 #. type: verbatim
16997 #: ../fish/guestfish-actions.pod:5160
16998 #, no-wrap
16999 msgid ""
17000 " write-file path content size\n"
17001 "\n"
17002 msgstr ""
17003
17004 #. type: textblock
17005 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17006 msgid ""
17007 "This call creates a file called C<path>.  The contents of the file is the "
17008 "string C<content> (which can contain any 8 bit data), with length C<size>."
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17013 msgid ""
17014 "As a special case, if C<size> is C<0> then the length is calculated using "
17015 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17016 msgstr ""
17017
17018 #. type: textblock
17019 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17020 msgid ""
17021 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17022 "I<not> work, even if the length is specified."
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish-actions.pod:5176
17027 msgid ""
17028 "I<This function is deprecated.> In new code, use the L</write> call instead."
17029 msgstr ""
17030
17031 #. type: =head2
17032 #: ../fish/guestfish-actions.pod:5183
17033 msgid "zegrep"
17034 msgstr ""
17035
17036 #. type: verbatim
17037 #: ../fish/guestfish-actions.pod:5185
17038 #, no-wrap
17039 msgid ""
17040 " zegrep regex path\n"
17041 "\n"
17042 msgstr ""
17043
17044 #. type: textblock
17045 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17046 msgid ""
17047 "This calls the external C<zegrep> program and returns the matching lines."
17048 msgstr ""
17049
17050 #. type: =head2
17051 #: ../fish/guestfish-actions.pod:5193
17052 msgid "zegrepi"
17053 msgstr ""
17054
17055 #. type: verbatim
17056 #: ../fish/guestfish-actions.pod:5195
17057 #, no-wrap
17058 msgid ""
17059 " zegrepi regex path\n"
17060 "\n"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17065 msgid ""
17066 "This calls the external C<zegrep -i> program and returns the matching lines."
17067 msgstr ""
17068
17069 #. type: =head2
17070 #: ../fish/guestfish-actions.pod:5203
17071 msgid "zero"
17072 msgstr ""
17073
17074 #. type: verbatim
17075 #: ../fish/guestfish-actions.pod:5205
17076 #, no-wrap
17077 msgid ""
17078 " zero device\n"
17079 "\n"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17084 msgid "This command writes zeroes over the first few blocks of C<device>."
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17089 msgid ""
17090 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17091 "securely wipe the device).  It should be sufficient to remove any partition "
17092 "tables, filesystem superblocks and so on."
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17097 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17098 msgid ""
17099 "If blocks are already zero, then this command avoids writing zeroes.  This "
17100 "prevents the underlying device from becoming non-sparse or growing "
17101 "unnecessarily."
17102 msgstr ""
17103
17104 #. type: textblock
17105 #: ../fish/guestfish-actions.pod:5217
17106 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17107 msgstr ""
17108
17109 #. type: =head2
17110 #: ../fish/guestfish-actions.pod:5220
17111 msgid "zero-device"
17112 msgstr ""
17113
17114 #. type: verbatim
17115 #: ../fish/guestfish-actions.pod:5222
17116 #, no-wrap
17117 msgid ""
17118 " zero-device device\n"
17119 "\n"
17120 msgstr ""
17121
17122 #. type: textblock
17123 #: ../fish/guestfish-actions.pod:5224
17124 msgid ""
17125 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17126 "which just zeroes the first few blocks of a device."
17127 msgstr ""
17128
17129 #. type: =head2
17130 #: ../fish/guestfish-actions.pod:5235
17131 msgid "zerofree"
17132 msgstr ""
17133
17134 #. type: verbatim
17135 #: ../fish/guestfish-actions.pod:5237
17136 #, no-wrap
17137 msgid ""
17138 " zerofree device\n"
17139 "\n"
17140 msgstr ""
17141
17142 #. type: textblock
17143 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17144 msgid ""
17145 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17146 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17147 "possible to compress the filesystem more effectively."
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17152 msgid "You should B<not> run this program if the filesystem is mounted."
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17157 msgid ""
17158 "It is possible that using this program can damage the filesystem or data on "
17159 "the filesystem."
17160 msgstr ""
17161
17162 #. type: =head2
17163 #: ../fish/guestfish-actions.pod:5250
17164 msgid "zfgrep"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish-actions.pod:5252
17169 #, no-wrap
17170 msgid ""
17171 " zfgrep pattern path\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17177 msgid ""
17178 "This calls the external C<zfgrep> program and returns the matching lines."
17179 msgstr ""
17180
17181 #. type: =head2
17182 #: ../fish/guestfish-actions.pod:5260
17183 msgid "zfgrepi"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish-actions.pod:5262
17188 #, no-wrap
17189 msgid ""
17190 " zfgrepi pattern path\n"
17191 "\n"
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17196 msgid ""
17197 "This calls the external C<zfgrep -i> program and returns the matching lines."
17198 msgstr ""
17199
17200 #. type: =head2
17201 #: ../fish/guestfish-actions.pod:5270
17202 msgid "zfile"
17203 msgstr ""
17204
17205 #. type: verbatim
17206 #: ../fish/guestfish-actions.pod:5272
17207 #, no-wrap
17208 msgid ""
17209 " zfile meth path\n"
17210 "\n"
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17215 msgid ""
17216 "This command runs C<file> after first decompressing C<path> using C<method>."
17217 msgstr ""
17218
17219 #. type: textblock
17220 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17221 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5279
17226 msgid ""
17227 "Since 1.0.63, use L</file> instead which can now process compressed files."
17228 msgstr ""
17229
17230 #. type: textblock
17231 #: ../fish/guestfish-actions.pod:5282
17232 msgid ""
17233 "I<This function is deprecated.> In new code, use the L</file> call instead."
17234 msgstr ""
17235
17236 #. type: =head2
17237 #: ../fish/guestfish-actions.pod:5289
17238 msgid "zgrep"
17239 msgstr ""
17240
17241 #. type: verbatim
17242 #: ../fish/guestfish-actions.pod:5291
17243 #, no-wrap
17244 msgid ""
17245 " zgrep regex path\n"
17246 "\n"
17247 msgstr ""
17248
17249 #. type: textblock
17250 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17251 msgid ""
17252 "This calls the external C<zgrep> program and returns the matching lines."
17253 msgstr ""
17254
17255 #. type: =head2
17256 #: ../fish/guestfish-actions.pod:5299
17257 msgid "zgrepi"
17258 msgstr ""
17259
17260 #. type: verbatim
17261 #: ../fish/guestfish-actions.pod:5301
17262 #, no-wrap
17263 msgid ""
17264 " zgrepi regex path\n"
17265 "\n"
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17270 msgid ""
17271 "This calls the external C<zgrep -i> program and returns the matching lines."
17272 msgstr ""
17273
17274 #. type: =head2
17275 #: ../fish/guestfish-commands.pod:1
17276 msgid "alloc"
17277 msgstr ""
17278
17279 #. type: =head2
17280 #: ../fish/guestfish-commands.pod:3
17281 msgid "allocate"
17282 msgstr ""
17283
17284 #. type: verbatim
17285 #: ../fish/guestfish-commands.pod:5
17286 #, no-wrap
17287 msgid ""
17288 " alloc filename size\n"
17289 "\n"
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish-commands.pod:7
17294 msgid ""
17295 "This creates an empty (zeroed) file of the given size, and then adds so it "
17296 "can be further examined."
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17301 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17302 msgstr ""
17303
17304 #. type: textblock
17305 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17306 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../fish/guestfish-commands.pod:14
17311 msgid ""
17312 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17313 "image, see L</PREPARED DISK IMAGES>."
17314 msgstr ""
17315
17316 #. type: =head2
17317 #: ../fish/guestfish-commands.pod:17
17318 msgid "copy-in"
17319 msgstr ""
17320
17321 #. type: verbatim
17322 #: ../fish/guestfish-commands.pod:19
17323 #, no-wrap
17324 msgid ""
17325 " copy-in local [local ...] /remotedir\n"
17326 "\n"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish-commands.pod:21
17331 msgid ""
17332 "C<copy-in> copies local files or directories recursively into the disk "
17333 "image, placing them in the directory called C</remotedir> (which must "
17334 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17335 "other commands as necessary."
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish-commands.pod:26
17340 msgid ""
17341 "Multiple local files and directories can be specified, but the last "
17342 "parameter must always be a remote directory.  Wildcards cannot be used."
17343 msgstr ""
17344
17345 #. type: =head2
17346 #: ../fish/guestfish-commands.pod:30
17347 msgid "copy-out"
17348 msgstr ""
17349
17350 #. type: verbatim
17351 #: ../fish/guestfish-commands.pod:32
17352 #, no-wrap
17353 msgid ""
17354 " copy-out remote [remote ...] localdir\n"
17355 "\n"
17356 msgstr ""
17357
17358 #. type: textblock
17359 #: ../fish/guestfish-commands.pod:34
17360 msgid ""
17361 "C<copy-out> copies remote files or directories recursively out of the disk "
17362 "image, placing them on the host disk in a local directory called C<localdir> "
17363 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17364 "download>, L</tar-out> and other commands as necessary."
17365 msgstr ""
17366
17367 #. type: textblock
17368 #: ../fish/guestfish-commands.pod:40
17369 msgid ""
17370 "Multiple remote files and directories can be specified, but the last "
17371 "parameter must always be a local directory.  To download to the current "
17372 "directory, use C<.> as in:"
17373 msgstr ""
17374
17375 #. type: verbatim
17376 #: ../fish/guestfish-commands.pod:44
17377 #, no-wrap
17378 msgid ""
17379 " copy-out /home .\n"
17380 "\n"
17381 msgstr ""
17382
17383 #. type: textblock
17384 #: ../fish/guestfish-commands.pod:46
17385 msgid ""
17386 "Wildcards cannot be used in the ordinary command, but you can use them with "
17387 "the help of L</glob> like this:"
17388 msgstr ""
17389
17390 #. type: verbatim
17391 #: ../fish/guestfish-commands.pod:49
17392 #, no-wrap
17393 msgid ""
17394 " glob copy-out /home/* .\n"
17395 "\n"
17396 msgstr ""
17397
17398 #. type: =head2
17399 #: ../fish/guestfish-commands.pod:51
17400 msgid "display"
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish-commands.pod:53
17405 #, no-wrap
17406 msgid ""
17407 " display filename\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-commands.pod:55
17413 msgid ""
17414 "Use C<display> (a graphical display program) to display an image file.  It "
17415 "downloads the file, and runs C<display> on it."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish-commands.pod:58
17420 msgid ""
17421 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17422 "environment variable.  For example to use the GNOME display program:"
17423 msgstr ""
17424
17425 #. type: verbatim
17426 #: ../fish/guestfish-commands.pod:61
17427 #, no-wrap
17428 msgid ""
17429 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17430 "\n"
17431 msgstr ""
17432
17433 #. type: textblock
17434 #: ../fish/guestfish-commands.pod:63
17435 msgid "See also L<display(1)>."
17436 msgstr ""
17437
17438 #. type: =head2
17439 #: ../fish/guestfish-commands.pod:65
17440 msgid "echo"
17441 msgstr ""
17442
17443 #. type: verbatim
17444 #: ../fish/guestfish-commands.pod:67
17445 #, no-wrap
17446 msgid ""
17447 " echo [params ...]\n"
17448 "\n"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish-commands.pod:69
17453 msgid "This echos the parameters to the terminal."
17454 msgstr ""
17455
17456 #. type: =head2
17457 #: ../fish/guestfish-commands.pod:71
17458 msgid "edit"
17459 msgstr ""
17460
17461 #. type: =head2
17462 #: ../fish/guestfish-commands.pod:73
17463 msgid "vi"
17464 msgstr ""
17465
17466 #. type: =head2
17467 #: ../fish/guestfish-commands.pod:75
17468 msgid "emacs"
17469 msgstr ""
17470
17471 #. type: verbatim
17472 #: ../fish/guestfish-commands.pod:77
17473 #, no-wrap
17474 msgid ""
17475 " edit filename\n"
17476 "\n"
17477 msgstr ""
17478
17479 #. type: textblock
17480 #: ../fish/guestfish-commands.pod:79
17481 msgid ""
17482 "This is used to edit a file.  It downloads the file, edits it locally using "
17483 "your editor, then uploads the result."
17484 msgstr ""
17485
17486 #. type: textblock
17487 #: ../fish/guestfish-commands.pod:82
17488 msgid ""
17489 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17490 "or C<emacs> you will get those corresponding editors."
17491 msgstr ""
17492
17493 #. type: =head2
17494 #: ../fish/guestfish-commands.pod:86
17495 msgid "glob"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish-commands.pod:88
17500 #, no-wrap
17501 msgid ""
17502 " glob command args...\n"
17503 "\n"
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish-commands.pod:90
17508 msgid ""
17509 "Expand wildcards in any paths in the args list, and run C<command> "
17510 "repeatedly on each matching path."
17511 msgstr ""
17512
17513 #. type: textblock
17514 #: ../fish/guestfish-commands.pod:93
17515 msgid "See L</WILDCARDS AND GLOBBING>."
17516 msgstr ""
17517
17518 #. type: =head2
17519 #: ../fish/guestfish-commands.pod:95
17520 msgid "hexedit"
17521 msgstr ""
17522
17523 #. type: verbatim
17524 #: ../fish/guestfish-commands.pod:97
17525 #, no-wrap
17526 msgid ""
17527 " hexedit <filename|device>\n"
17528 " hexedit <filename|device> <max>\n"
17529 " hexedit <filename|device> <start> <max>\n"
17530 "\n"
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish-commands.pod:101
17535 msgid ""
17536 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17537 "device."
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish-commands.pod:104
17542 msgid ""
17543 "This command works by downloading potentially the whole file or device, "
17544 "editing it locally, then uploading it.  If the file or device is large, you "
17545 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17546 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17547 "usual modifiers allowed such as C<1M> (1 megabyte)."
17548 msgstr ""
17549
17550 #. type: textblock
17551 #: ../fish/guestfish-commands.pod:111
17552 msgid "For example to edit the first few sectors of a disk you might do:"
17553 msgstr ""
17554
17555 #. type: verbatim
17556 #: ../fish/guestfish-commands.pod:114
17557 #, no-wrap
17558 msgid ""
17559 " hexedit /dev/sda 1M\n"
17560 "\n"
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish-commands.pod:116
17565 msgid ""
17566 "which would allow you to edit anywhere within the first megabyte of the disk."
17567 msgstr ""
17568
17569 #. type: textblock
17570 #: ../fish/guestfish-commands.pod:119
17571 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17572 msgstr ""
17573
17574 #. type: verbatim
17575 #: ../fish/guestfish-commands.pod:121
17576 #, no-wrap
17577 msgid ""
17578 " hexedit /dev/sda1 0x400 0x400\n"
17579 "\n"
17580 msgstr ""
17581
17582 #. type: textblock
17583 #: ../fish/guestfish-commands.pod:123
17584 msgid "(assuming the superblock is in the standard location)."
17585 msgstr ""
17586
17587 #. type: textblock
17588 #: ../fish/guestfish-commands.pod:125
17589 msgid ""
17590 "This command requires the external L<hexedit(1)> program.  You can specify "
17591 "another program to use by setting the C<HEXEDITOR> environment variable."
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../fish/guestfish-commands.pod:129
17596 msgid "See also L</hexdump>."
17597 msgstr ""
17598
17599 #. type: =head2
17600 #: ../fish/guestfish-commands.pod:131
17601 msgid "lcd"
17602 msgstr ""
17603
17604 #. type: verbatim
17605 #: ../fish/guestfish-commands.pod:133
17606 #, no-wrap
17607 msgid ""
17608 " lcd directory\n"
17609 "\n"
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish-commands.pod:135
17614 msgid ""
17615 "Change the local directory, ie. the current directory of guestfish itself."
17616 msgstr ""
17617
17618 #. type: textblock
17619 #: ../fish/guestfish-commands.pod:138
17620 msgid "Note that C<!cd> won't do what you might expect."
17621 msgstr ""
17622
17623 #. type: =head2
17624 #: ../fish/guestfish-commands.pod:140
17625 msgid "man"
17626 msgstr ""
17627
17628 #. type: =head2
17629 #: ../fish/guestfish-commands.pod:142
17630 msgid "manual"
17631 msgstr ""
17632
17633 #. type: verbatim
17634 #: ../fish/guestfish-commands.pod:144
17635 #, no-wrap
17636 msgid ""
17637 "  man\n"
17638 "\n"
17639 msgstr ""
17640
17641 #. type: textblock
17642 #: ../fish/guestfish-commands.pod:146
17643 msgid "Opens the manual page for guestfish."
17644 msgstr ""
17645
17646 #. type: =head2
17647 #: ../fish/guestfish-commands.pod:148
17648 msgid "more"
17649 msgstr ""
17650
17651 #. type: =head2
17652 #: ../fish/guestfish-commands.pod:150
17653 msgid "less"
17654 msgstr ""
17655
17656 #. type: verbatim
17657 #: ../fish/guestfish-commands.pod:152
17658 #, no-wrap
17659 msgid ""
17660 " more filename\n"
17661 "\n"
17662 msgstr ""
17663
17664 #. type: verbatim
17665 #: ../fish/guestfish-commands.pod:154
17666 #, no-wrap
17667 msgid ""
17668 " less filename\n"
17669 "\n"
17670 msgstr ""
17671
17672 #. type: textblock
17673 #: ../fish/guestfish-commands.pod:156
17674 msgid "This is used to view a file."
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../fish/guestfish-commands.pod:158
17679 msgid ""
17680 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17681 "C<less> you will get the C<less> command specifically."
17682 msgstr ""
17683
17684 #. type: =head2
17685 #: ../fish/guestfish-commands.pod:161
17686 msgid "reopen"
17687 msgstr ""
17688
17689 #. type: verbatim
17690 #: ../fish/guestfish-commands.pod:163
17691 #, no-wrap
17692 msgid ""
17693 "  reopen\n"
17694 "\n"
17695 msgstr ""
17696
17697 #. type: textblock
17698 #: ../fish/guestfish-commands.pod:165
17699 msgid ""
17700 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17701 "normally, because the handle is closed properly when guestfish exits.  "
17702 "However this is occasionally useful for testing."
17703 msgstr ""
17704
17705 #. type: =head2
17706 #: ../fish/guestfish-commands.pod:169
17707 msgid "setenv"
17708 msgstr ""
17709
17710 #. type: verbatim
17711 #: ../fish/guestfish-commands.pod:171
17712 #, no-wrap
17713 msgid ""
17714 "  setenv VAR value\n"
17715 "\n"
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../fish/guestfish-commands.pod:173
17720 msgid "Set the environment variable C<VAR> to the string C<value>."
17721 msgstr ""
17722
17723 #. type: textblock
17724 #: ../fish/guestfish-commands.pod:175
17725 msgid ""
17726 "To print the value of an environment variable use a shell command such as:"
17727 msgstr ""
17728
17729 #. type: verbatim
17730 #: ../fish/guestfish-commands.pod:178
17731 #, no-wrap
17732 msgid ""
17733 " !echo $VAR\n"
17734 "\n"
17735 msgstr ""
17736
17737 #. type: =head2
17738 #: ../fish/guestfish-commands.pod:180
17739 msgid "sparse"
17740 msgstr ""
17741
17742 #. type: verbatim
17743 #: ../fish/guestfish-commands.pod:182
17744 #, no-wrap
17745 msgid ""
17746 " sparse filename size\n"
17747 "\n"
17748 msgstr ""
17749
17750 #. type: textblock
17751 #: ../fish/guestfish-commands.pod:184
17752 msgid ""
17753 "This creates an empty sparse file of the given size, and then adds so it can "
17754 "be further examined."
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish-commands.pod:187
17759 msgid ""
17760 "In all respects it works the same as the L</alloc> command, except that the "
17761 "image file is allocated sparsely, which means that disk blocks are not "
17762 "assigned to the file until they are needed.  Sparse disk files only use "
17763 "space when written to, but they are slower and there is a danger you could "
17764 "run out of real disk space during a write operation."
17765 msgstr ""
17766
17767 #. type: =head2
17768 #: ../fish/guestfish-commands.pod:197
17769 msgid "supported"
17770 msgstr ""
17771
17772 #. type: verbatim
17773 #: ../fish/guestfish-commands.pod:199
17774 #, no-wrap
17775 msgid ""
17776 " supported\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../fish/guestfish-commands.pod:201
17782 msgid ""
17783 "This command returns a list of the optional groups known to the daemon, and "
17784 "indicates which ones are supported by this build of the libguestfs appliance."
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish-commands.pod:205
17789 msgid "See also L<guestfs(3)/AVAILABILITY>."
17790 msgstr ""
17791
17792 #. type: =head2
17793 #: ../fish/guestfish-commands.pod:207
17794 msgid "time"
17795 msgstr ""
17796
17797 #. type: verbatim
17798 #: ../fish/guestfish-commands.pod:209
17799 #, no-wrap
17800 msgid ""
17801 " time command args...\n"
17802 "\n"
17803 msgstr ""
17804
17805 #. type: textblock
17806 #: ../fish/guestfish-commands.pod:211
17807 msgid ""
17808 "Run the command as usual, but print the elapsed time afterwards.  This can "
17809 "be useful for benchmarking operations."
17810 msgstr ""
17811
17812 #. type: =head2
17813 #: ../fish/guestfish-commands.pod:214
17814 msgid "unsetenv"
17815 msgstr ""
17816
17817 #. type: verbatim
17818 #: ../fish/guestfish-commands.pod:216
17819 #, no-wrap
17820 msgid ""
17821 "  unsetenv VAR\n"
17822 "\n"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish-commands.pod:218
17827 msgid "Remove C<VAR> from the environment."
17828 msgstr ""
17829
17830 #. type: textblock
17831 #: ../fish/guestfish.pod:5
17832 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17833 msgstr ""
17834
17835 #. type: verbatim
17836 #: ../fish/guestfish.pod:9
17837 #, no-wrap
17838 msgid ""
17839 " guestfish [--options] [commands]\n"
17840 "\n"
17841 msgstr ""
17842
17843 #. type: verbatim
17844 #: ../fish/guestfish.pod:11
17845 #, no-wrap
17846 msgid ""
17847 " guestfish\n"
17848 "\n"
17849 msgstr ""
17850
17851 #. type: verbatim
17852 #: ../fish/guestfish.pod:13
17853 #, no-wrap
17854 msgid ""
17855 " guestfish [--ro|--rw] -a disk.img\n"
17856 "\n"
17857 msgstr ""
17858
17859 #. type: verbatim
17860 #: ../fish/guestfish.pod:15
17861 #, no-wrap
17862 msgid ""
17863 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17864 "\n"
17865 msgstr ""
17866
17867 #. type: verbatim
17868 #: ../fish/guestfish.pod:17
17869 #, no-wrap
17870 msgid ""
17871 " guestfish -d libvirt-domain\n"
17872 "\n"
17873 msgstr ""
17874
17875 #. type: verbatim
17876 #: ../fish/guestfish.pod:19
17877 #, no-wrap
17878 msgid ""
17879 " guestfish [--ro|--rw] -a disk.img -i\n"
17880 "\n"
17881 msgstr ""
17882
17883 #. type: verbatim
17884 #: ../fish/guestfish.pod:21
17885 #, no-wrap
17886 msgid ""
17887 " guestfish -d libvirt-domain -i\n"
17888 "\n"
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../fish/guestfish.pod:25
17893 msgid ""
17894 "Using guestfish in read/write mode on live virtual machines can be "
17895 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17896 "option to use guestfish safely if the disk image or virtual machine might be "
17897 "live."
17898 msgstr ""
17899
17900 #. type: textblock
17901 #: ../fish/guestfish.pod:32
17902 msgid ""
17903 "Guestfish is a shell and command-line tool for examining and modifying "
17904 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17905 "functionality of the guestfs API, see L<guestfs(3)>."
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:36
17910 msgid ""
17911 "Guestfish gives you structured access to the libguestfs API, from shell "
17912 "scripts or the command line or interactively.  If you want to rescue a "
17913 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17914 "command."
17915 msgstr ""
17916
17917 #. type: =head2
17918 #: ../fish/guestfish.pod:43
17919 msgid "As an interactive shell"
17920 msgstr ""
17921
17922 #. type: verbatim
17923 #: ../fish/guestfish.pod:45
17924 #, no-wrap
17925 msgid ""
17926 " $ guestfish\n"
17927 " \n"
17928 msgstr ""
17929
17930 #. type: verbatim
17931 #: ../fish/guestfish.pod:47
17932 #, no-wrap
17933 msgid ""
17934 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17935 " editing virtual machine filesystems.\n"
17936 " \n"
17937 msgstr ""
17938
17939 #. type: verbatim
17940 #: ../fish/guestfish.pod:50
17941 #, no-wrap
17942 msgid ""
17943 " Type: 'help' for a list of commands\n"
17944 "       'man' to read the manual\n"
17945 "       'quit' to quit the shell\n"
17946 " \n"
17947 msgstr ""
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish.pod:54
17951 #, no-wrap
17952 msgid ""
17953 " ><fs> add-ro disk.img\n"
17954 " ><fs> run\n"
17955 " ><fs> list-filesystems\n"
17956 " /dev/sda1: ext4\n"
17957 " /dev/vg_guest/lv_root: ext4\n"
17958 " /dev/vg_guest/lv_swap: swap\n"
17959 " ><fs> mount /dev/vg_guest/lv_root /\n"
17960 " ><fs> cat /etc/fstab\n"
17961 " # /etc/fstab\n"
17962 " # Created by anaconda\n"
17963 " [...]\n"
17964 " ><fs> exit\n"
17965 "\n"
17966 msgstr ""
17967
17968 #. type: =head2
17969 #: ../fish/guestfish.pod:67
17970 msgid "From shell scripts"
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish.pod:69
17975 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17976 msgstr ""
17977
17978 #. type: verbatim
17979 #: ../fish/guestfish.pod:71
17980 #, no-wrap
17981 msgid ""
17982 " guestfish <<_EOF_\n"
17983 " add disk.img\n"
17984 " run\n"
17985 " mount /dev/vg_guest/lv_root /\n"
17986 " write /etc/motd \"Welcome, new users\"\n"
17987 " _EOF_\n"
17988 "\n"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../fish/guestfish.pod:78
17993 msgid "List the LVM logical volumes in a disk image:"
17994 msgstr ""
17995
17996 #. type: verbatim
17997 #: ../fish/guestfish.pod:80
17998 #, no-wrap
17999 msgid ""
18000 " guestfish -a disk.img --ro <<_EOF_\n"
18001 " run\n"
18002 " lvs\n"
18003 " _EOF_\n"
18004 "\n"
18005 msgstr ""
18006
18007 #. type: textblock
18008 #: ../fish/guestfish.pod:85
18009 msgid "List all the filesystems in a disk image:"
18010 msgstr ""
18011
18012 #. type: verbatim
18013 #: ../fish/guestfish.pod:87
18014 #, no-wrap
18015 msgid ""
18016 " guestfish -a disk.img --ro <<_EOF_\n"
18017 " run\n"
18018 " list-filesystems\n"
18019 " _EOF_\n"
18020 "\n"
18021 msgstr ""
18022
18023 #. type: =head2
18024 #: ../fish/guestfish.pod:92
18025 msgid "On one command line"
18026 msgstr ""
18027
18028 #. type: textblock
18029 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18030 msgid "Update C</etc/resolv.conf> in a guest:"
18031 msgstr ""
18032
18033 #. type: verbatim
18034 #: ../fish/guestfish.pod:96
18035 #, no-wrap
18036 msgid ""
18037 " guestfish \\\n"
18038 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18039 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18040 "\n"
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../fish/guestfish.pod:100
18045 msgid "Edit C</boot/grub/grub.conf> interactively:"
18046 msgstr ""
18047
18048 #. type: verbatim
18049 #: ../fish/guestfish.pod:102
18050 #, no-wrap
18051 msgid ""
18052 " guestfish --rw --add disk.img \\\n"
18053 "   --mount /dev/vg_guest/lv_root \\\n"
18054 "   --mount /dev/sda1:/boot \\\n"
18055 "   edit /boot/grub/grub.conf\n"
18056 "\n"
18057 msgstr ""
18058
18059 #. type: =head2
18060 #: ../fish/guestfish.pod:107
18061 msgid "Mount disks automatically"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:109
18066 msgid ""
18067 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18068 msgstr ""
18069
18070 #. type: verbatim
18071 #: ../fish/guestfish.pod:112
18072 #, no-wrap
18073 msgid ""
18074 " guestfish --ro -a disk.img -i cat /etc/group\n"
18075 "\n"
18076 msgstr ""
18077
18078 #. type: verbatim
18079 #: ../fish/guestfish.pod:114
18080 #, no-wrap
18081 msgid ""
18082 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18083 "\n"
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../fish/guestfish.pod:116
18088 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18089 msgstr ""
18090
18091 #. type: verbatim
18092 #: ../fish/guestfish.pod:118
18093 #, no-wrap
18094 msgid ""
18095 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18096 "\n"
18097 msgstr ""
18098
18099 #. type: =head2
18100 #: ../fish/guestfish.pod:120
18101 msgid "As a script interpreter"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish.pod:122
18106 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18107 msgstr ""
18108
18109 #. type: verbatim
18110 #: ../fish/guestfish.pod:124
18111 #, no-wrap
18112 msgid ""
18113 " #!/usr/bin/guestfish -f\n"
18114 " sparse test1.img 100M\n"
18115 " run\n"
18116 " part-disk /dev/sda mbr\n"
18117 " mkfs ext2 /dev/sda1\n"
18118 "\n"
18119 msgstr ""
18120
18121 #. type: =head2
18122 #: ../fish/guestfish.pod:130
18123 msgid "Start with a prepared disk"
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish.pod:132
18128 msgid ""
18129 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18130 "single ext2-formatted partition:"
18131 msgstr ""
18132
18133 #. type: verbatim
18134 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18135 #, no-wrap
18136 msgid ""
18137 " guestfish -N fs\n"
18138 "\n"
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish.pod:137
18143 msgid "To list what is available do:"
18144 msgstr ""
18145
18146 #. type: verbatim
18147 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18148 #, no-wrap
18149 msgid ""
18150 " guestfish -N help | less\n"
18151 "\n"
18152 msgstr ""
18153
18154 #. type: =head2
18155 #: ../fish/guestfish.pod:141
18156 msgid "Remote control"
18157 msgstr ""
18158
18159 #. type: verbatim
18160 #: ../fish/guestfish.pod:143
18161 #, no-wrap
18162 msgid ""
18163 " eval \"`guestfish --listen`\"\n"
18164 " guestfish --remote add-ro disk.img\n"
18165 " guestfish --remote run\n"
18166 " guestfish --remote lvs\n"
18167 "\n"
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish.pod:154
18172 msgid "Displays general help on options."
18173 msgstr ""
18174
18175 #. type: =item
18176 #: ../fish/guestfish.pod:158
18177 msgid "B<--cmd-help>"
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../fish/guestfish.pod:160
18182 msgid "Lists all available guestfish commands."
18183 msgstr ""
18184
18185 #. type: =item
18186 #: ../fish/guestfish.pod:162
18187 msgid "B<-h cmd>"
18188 msgstr ""
18189
18190 #. type: =item
18191 #: ../fish/guestfish.pod:164
18192 msgid "B<--cmd-help cmd>"
18193 msgstr ""
18194
18195 #. type: textblock
18196 #: ../fish/guestfish.pod:166
18197 msgid "Displays detailed help on a single command C<cmd>."
18198 msgstr ""
18199
18200 #. type: =item
18201 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18202 msgid "B<-a image>"
18203 msgstr ""
18204
18205 #. type: =item
18206 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18207 msgid "B<--add image>"
18208 msgstr ""
18209
18210 #. type: textblock
18211 #: ../fish/guestfish.pod:172
18212 msgid "Add a block device or virtual machine image to the shell."
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish.pod:177
18217 msgid ""
18218 "Using this flag is mostly equivalent to using the C<add> command, with "
18219 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18220 "the I<--format=...> flag was given."
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18225 msgid ""
18226 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18227 "URI to use.  The default is to use the default libvirt connection."
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish.pod:189
18232 msgid "B<--csh>"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish.pod:191
18237 msgid ""
18238 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18239 "section L</REMOTE CONTROL AND CSH> below."
18240 msgstr ""
18241
18242 #. type: =item
18243 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18244 msgid "B<-d libvirt-domain>"
18245 msgstr ""
18246
18247 #. type: =item
18248 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18249 msgid "B<--domain libvirt-domain>"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18254 msgid ""
18255 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18256 "used, then any libvirt domain can be used.  However in write mode, only "
18257 "libvirt domains which are shut down can be named here."
18258 msgstr ""
18259
18260 #. type: textblock
18261 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18262 msgid "Domain UUIDs can be used instead of names."
18263 msgstr ""
18264
18265 #. type: textblock
18266 #: ../fish/guestfish.pod:204
18267 msgid ""
18268 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18269 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18270 "if the I<--format:...> flag was given."
18271 msgstr ""
18272
18273 #. type: =item
18274 #: ../fish/guestfish.pod:208
18275 msgid "B<-D>"
18276 msgstr ""
18277
18278 #. type: =item
18279 #: ../fish/guestfish.pod:210
18280 msgid "B<--no-dest-paths>"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:212
18285 msgid ""
18286 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18287 "to hit the tab key to complete paths on the guest filesystem, but this "
18288 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18289 "allow this feature to be disabled."
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18294 msgid ""
18295 "When prompting for keys and passphrases, guestfish normally turns echoing "
18296 "off so you cannot see what you are typing.  If you are not worried about "
18297 "Tempest attacks and there is no one else in the room you can specify this "
18298 "flag to see what you are typing."
18299 msgstr ""
18300
18301 #. type: =item
18302 #: ../fish/guestfish.pod:224
18303 msgid "B<-f file>"
18304 msgstr ""
18305
18306 #. type: =item
18307 #: ../fish/guestfish.pod:226
18308 msgid "B<--file file>"
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/guestfish.pod:228
18313 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18314 msgstr ""
18315
18316 #. type: verbatim
18317 #: ../fish/guestfish.pod:231
18318 #, no-wrap
18319 msgid ""
18320 " #!/usr/bin/guestfish -f\n"
18321 "\n"
18322 msgstr ""
18323
18324 #. type: verbatim
18325 #: ../fish/guestfish.pod:244
18326 #, no-wrap
18327 msgid ""
18328 " guestfish --format=raw -a disk.img\n"
18329 "\n"
18330 msgstr ""
18331
18332 #. type: verbatim
18333 #: ../fish/guestfish.pod:248
18334 #, no-wrap
18335 msgid ""
18336 " guestfish --format=raw -a disk.img --format -a another.img\n"
18337 "\n"
18338 msgstr ""
18339
18340 #. type: textblock
18341 #: ../fish/guestfish.pod:253
18342 msgid ""
18343 "If you have untrusted raw-format guest disk images, you should use this "
18344 "option to specify the disk format.  This avoids a possible security problem "
18345 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18346 msgstr ""
18347
18348 #. type: =item
18349 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18350 msgid "B<--inspector>"
18351 msgstr ""
18352
18353 #. type: textblock
18354 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18355 msgid ""
18356 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18357 "system and mount filesystems as they would be mounted on the real virtual "
18358 "machine."
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:266
18363 msgid "Typical usage is either:"
18364 msgstr ""
18365
18366 #. type: verbatim
18367 #: ../fish/guestfish.pod:268
18368 #, no-wrap
18369 msgid ""
18370 " guestfish -d myguest -i\n"
18371 "\n"
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish.pod:270
18376 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18377 msgstr ""
18378
18379 #. type: verbatim
18380 #: ../fish/guestfish.pod:272
18381 #, no-wrap
18382 msgid ""
18383 " guestfish --ro -d myguest -i\n"
18384 "\n"
18385 msgstr ""
18386
18387 #. type: textblock
18388 #: ../fish/guestfish.pod:274
18389 msgid "(for active domains, readonly), or specify the block device directly:"
18390 msgstr ""
18391
18392 #. type: verbatim
18393 #: ../fish/guestfish.pod:276
18394 #, no-wrap
18395 msgid ""
18396 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18397 "\n"
18398 msgstr ""
18399
18400 #. type: textblock
18401 #: ../fish/guestfish.pod:278
18402 msgid ""
18403 "Note that the command line syntax changed slightly over older versions of "
18404 "guestfish.  You can still use the old syntax:"
18405 msgstr ""
18406
18407 #. type: verbatim
18408 #: ../fish/guestfish.pod:281
18409 #, no-wrap
18410 msgid ""
18411 " guestfish [--ro] -i disk.img\n"
18412 "\n"
18413 msgstr ""
18414
18415 #. type: verbatim
18416 #: ../fish/guestfish.pod:283
18417 #, no-wrap
18418 msgid ""
18419 " guestfish [--ro] -i libvirt-domain\n"
18420 "\n"
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish.pod:285
18425 msgid ""
18426 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18427 "then using other commands to mount the filesystems that were found."
18428 msgstr ""
18429
18430 #. type: =item
18431 #: ../fish/guestfish.pod:294
18432 msgid "B<--listen>"
18433 msgstr ""
18434
18435 #. type: textblock
18436 #: ../fish/guestfish.pod:296
18437 msgid ""
18438 "Fork into the background and listen for remote commands.  See section L</"
18439 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18440 msgstr ""
18441
18442 #. type: =item
18443 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18444 msgid "B<--live>"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18449 msgid ""
18450 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18451 "ATTACHING TO RUNNING DAEMONS>)."
18452 msgstr ""
18453
18454 #. type: =item
18455 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18456 msgid "B<-m dev[:mountpoint[:options]]>"
18457 msgstr ""
18458
18459 #. type: =item
18460 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18461 msgid "B<--mount dev[:mountpoint[:options]]>"
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../fish/guestfish.pod:308
18466 msgid "Mount the named partition or logical volume on the given mountpoint."
18467 msgstr ""
18468
18469 #. type: textblock
18470 #: ../fish/guestfish.pod:310
18471 msgid "If the mountpoint is omitted, it defaults to C</>."
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../fish/guestfish.pod:312
18476 msgid "You have to mount something on C</> before most commands will work."
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish.pod:314
18481 msgid ""
18482 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18483 "launched."
18484 msgstr ""
18485
18486 #. type: textblock
18487 #: ../fish/guestfish.pod:317
18488 msgid ""
18489 "If you don't know what filesystems a disk image contains, you can either run "
18490 "guestfish without this option, then list the partitions, filesystems and LVs "
18491 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18492 "commands), or you can use the L<virt-filesystems(1)> program."
18493 msgstr ""
18494
18495 #. type: textblock
18496 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18497 msgid ""
18498 "The third (and rarely used) part of the mount parameter is the list of mount "
18499 "options used to mount the underlying filesystem.  If this is not given, then "
18500 "the mount options are either the empty string or C<ro> (the latter if the "
18501 "I<--ro> flag is used).  By specifying the mount options, you override this "
18502 "default choice.  Probably the only time you would use this is to enable ACLs "
18503 "and/or extended attributes if the filesystem can support them:"
18504 msgstr ""
18505
18506 #. type: verbatim
18507 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18508 #, no-wrap
18509 msgid ""
18510 " -m /dev/sda1:/:acl,user_xattr\n"
18511 "\n"
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish.pod:333
18516 msgid "Using this flag is equivalent to using the C<mount-options> command."
18517 msgstr ""
18518
18519 #. type: =item
18520 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18521 #: ../resize/virt-resize.pod:358
18522 msgid "B<-n>"
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18527 msgid "B<--no-sync>"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:339
18532 msgid ""
18533 "Disable autosync.  This is enabled by default.  See the discussion of "
18534 "autosync in the L<guestfs(3)> manpage."
18535 msgstr ""
18536
18537 #. type: =item
18538 #: ../fish/guestfish.pod:342
18539 msgid "B<-N type>"
18540 msgstr ""
18541
18542 #. type: =item
18543 #: ../fish/guestfish.pod:344
18544 msgid "B<--new type>"
18545 msgstr ""
18546
18547 #. type: =item
18548 #: ../fish/guestfish.pod:346
18549 msgid "B<-N help>"
18550 msgstr ""
18551
18552 #. type: textblock
18553 #: ../fish/guestfish.pod:348
18554 msgid ""
18555 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18556 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18557 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18558 "IMAGES> below."
18559 msgstr ""
18560
18561 #. type: =item
18562 #: ../fish/guestfish.pod:353
18563 msgid "B<--progress-bars>"
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish.pod:355
18568 msgid "Enable progress bars, even when guestfish is used non-interactively."
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish.pod:357
18573 msgid ""
18574 "Progress bars are enabled by default when guestfish is used as an "
18575 "interactive shell."
18576 msgstr ""
18577
18578 #. type: =item
18579 #: ../fish/guestfish.pod:360
18580 msgid "B<--no-progress-bars>"
18581 msgstr ""
18582
18583 #. type: textblock
18584 #: ../fish/guestfish.pod:362
18585 msgid "Disable progress bars."
18586 msgstr ""
18587
18588 #. type: =item
18589 #: ../fish/guestfish.pod:364
18590 msgid "B<--remote[=pid]>"
18591 msgstr ""
18592
18593 #. type: textblock
18594 #: ../fish/guestfish.pod:366
18595 msgid ""
18596 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18597 "CONTROL GUESTFISH OVER A SOCKET> below."
18598 msgstr ""
18599
18600 #. type: =item
18601 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18602 #: ../rescue/virt-rescue.pod:161
18603 msgid "B<-r>"
18604 msgstr ""
18605
18606 #. type: =item
18607 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18608 #: ../rescue/virt-rescue.pod:163
18609 msgid "B<--ro>"
18610 msgstr ""
18611
18612 #. type: textblock
18613 #: ../fish/guestfish.pod:373
18614 msgid ""
18615 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18616 "mounts are done read-only."
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18621 msgid ""
18622 "The option must always be used if the disk image or virtual machine might be "
18623 "running, and is generally recommended in cases where you don't need write "
18624 "access to the disk."
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/guestfish.pod:380
18629 msgid ""
18630 "Note that prepared disk images created with I<-N> are not affected by this "
18631 "option.  Also commands like C<add> are not affected - you have to specify "
18632 "the C<readonly:true> option explicitly if you need it."
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish.pod:384
18637 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18638 msgstr ""
18639
18640 #. type: =item
18641 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18642 #: ../rescue/virt-rescue.pod:173
18643 msgid "B<--selinux>"
18644 msgstr ""
18645
18646 #. type: textblock
18647 #: ../fish/guestfish.pod:388
18648 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18649 msgstr ""
18650
18651 #. type: textblock
18652 #: ../fish/guestfish.pod:394
18653 msgid ""
18654 "Enable very verbose messages.  This is particularly useful if you find a bug."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:401
18659 msgid "Display the guestfish / libguestfs version number and exit."
18660 msgstr ""
18661
18662 #. type: =item
18663 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18664 #: ../rescue/virt-rescue.pod:194
18665 msgid "B<-w>"
18666 msgstr ""
18667
18668 #. type: =item
18669 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18670 #: ../rescue/virt-rescue.pod:196
18671 msgid "B<--rw>"
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18676 msgid ""
18677 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18678 "mounts are done read-write."
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../fish/guestfish.pod:410
18683 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish.pod:414
18688 msgid "Echo each command before executing it."
18689 msgstr ""
18690
18691 #. type: =head1
18692 #: ../fish/guestfish.pod:418
18693 msgid "COMMANDS ON COMMAND LINE"
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/guestfish.pod:420
18698 msgid ""
18699 "Any additional (non-option) arguments are treated as commands to execute."
18700 msgstr ""
18701
18702 #. type: textblock
18703 #: ../fish/guestfish.pod:423
18704 msgid ""
18705 "Commands to execute should be separated by a colon (C<:>), where the colon "
18706 "is a separate parameter.  Thus:"
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../fish/guestfish.pod:426
18711 #, no-wrap
18712 msgid ""
18713 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18714 "\n"
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:428
18719 msgid ""
18720 "If there are no additional arguments, then we enter a shell, either an "
18721 "interactive shell with a prompt (if the input is a terminal) or a non-"
18722 "interactive shell."
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish.pod:432
18727 msgid ""
18728 "In either command line mode or non-interactive shell, the first command that "
18729 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18730 "prompt) if a command fails, you can continue to enter commands."
18731 msgstr ""
18732
18733 #. type: =head1
18734 #: ../fish/guestfish.pod:437
18735 msgid "USING launch (OR run)"
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../fish/guestfish.pod:439
18740 msgid ""
18741 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18742 "then launch it, then mount any disks you need, and finally issue actions/"
18743 "commands.  So the general order of the day is:"
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/guestfish.pod:447
18748 msgid "add or -a/--add"
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:451
18753 msgid "launch (aka run)"
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fish/guestfish.pod:455
18758 msgid "mount or -m/--mount"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:459
18763 msgid "any other commands"
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish.pod:463
18768 msgid ""
18769 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18770 "guest before mounting or performing any other commands."
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/guestfish.pod:466
18775 msgid ""
18776 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18777 "I<--new> options were given then C<run> is done automatically, simply "
18778 "because guestfish can't perform the action you asked for without doing this."
18779 msgstr ""
18780
18781 #. type: =head1
18782 #: ../fish/guestfish.pod:471
18783 msgid "OPENING DISKS FOR READ AND WRITE"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:473
18788 msgid ""
18789 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18790 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18791 "I<-i> and I<-m> open disk images read-only or for writing."
18792 msgstr ""
18793
18794 #. type: textblock
18795 #: ../fish/guestfish.pod:478
18796 msgid ""
18797 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18798 "opening disk images supplied on the command line for write.  To open a disk "
18799 "image read-only you have to do I<-a image --ro>."
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/guestfish.pod:482
18804 msgid ""
18805 "This matters: If you accidentally open a live VM disk image writable then "
18806 "you will cause irreversible disk corruption."
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:485
18811 msgid ""
18812 "In a future libguestfs we intend to change the default the other way.  Disk "
18813 "images will be opened read-only.  You will have to either specify "
18814 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18815 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18816 "access for disk images specified by those other command line options."
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fish/guestfish.pod:492
18821 msgid ""
18822 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18823 "which does nothing (it is already the default).  However it is highly "
18824 "recommended that you use this option to indicate that you need write access, "
18825 "and prepare your scripts for the day when this option will be required for "
18826 "write access."
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../fish/guestfish.pod:498
18831 msgid ""
18832 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18833 "other libguestfs program apart from guestfish and guestmount."
18834 msgstr ""
18835
18836 #. type: =head1
18837 #: ../fish/guestfish.pod:501
18838 msgid "QUOTING"
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../fish/guestfish.pod:503
18843 msgid ""
18844 "You can quote ordinary parameters using either single or double quotes.  For "
18845 "example:"
18846 msgstr ""
18847
18848 #. type: verbatim
18849 #: ../fish/guestfish.pod:506
18850 #, no-wrap
18851 msgid ""
18852 " add \"file with a space.img\"\n"
18853 "\n"
18854 msgstr ""
18855
18856 #. type: verbatim
18857 #: ../fish/guestfish.pod:508
18858 #, no-wrap
18859 msgid ""
18860 " rm '/file name'\n"
18861 "\n"
18862 msgstr ""
18863
18864 #. type: verbatim
18865 #: ../fish/guestfish.pod:510
18866 #, no-wrap
18867 msgid ""
18868 " rm '/\"'\n"
18869 "\n"
18870 msgstr ""
18871
18872 #. type: textblock
18873 #: ../fish/guestfish.pod:512
18874 msgid ""
18875 "A few commands require a list of strings to be passed.  For these, use a "
18876 "whitespace-separated list, enclosed in quotes.  Strings containing "
18877 "whitespace to be passed through must be enclosed in single quotes.  A "
18878 "literal single quote must be escaped with a backslash."
18879 msgstr ""
18880
18881 #. type: verbatim
18882 #: ../fish/guestfish.pod:517
18883 #, no-wrap
18884 msgid ""
18885 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18886 " command \"/bin/echo 'foo      bar'\"\n"
18887 " command \"/bin/echo \\'foo\\'\"\n"
18888 "\n"
18889 msgstr ""
18890
18891 #. type: =head2
18892 #: ../fish/guestfish.pod:521
18893 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fish/guestfish.pod:523
18898 msgid ""
18899 "In double-quoted arguments (only) use backslash to insert special characters:"
18900 msgstr ""
18901
18902 #. type: =item
18903 #: ../fish/guestfish.pod:528
18904 msgid "C<\\a>"
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish.pod:530
18909 msgid "Alert (bell) character."
18910 msgstr ""
18911
18912 #. type: =item
18913 #: ../fish/guestfish.pod:532
18914 msgid "C<\\b>"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:534
18919 msgid "Backspace character."
18920 msgstr ""
18921
18922 #. type: =item
18923 #: ../fish/guestfish.pod:536
18924 msgid "C<\\f>"
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../fish/guestfish.pod:538
18929 msgid "Form feed character."
18930 msgstr ""
18931
18932 #. type: =item
18933 #: ../fish/guestfish.pod:540
18934 msgid "C<\\n>"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:542
18939 msgid "Newline character."
18940 msgstr ""
18941
18942 #. type: =item
18943 #: ../fish/guestfish.pod:544
18944 msgid "C<\\r>"
18945 msgstr ""
18946
18947 #. type: textblock
18948 #: ../fish/guestfish.pod:546
18949 msgid "Carriage return character."
18950 msgstr ""
18951
18952 #. type: =item
18953 #: ../fish/guestfish.pod:548
18954 msgid "C<\\t>"
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fish/guestfish.pod:550
18959 msgid "Horizontal tab character."
18960 msgstr ""
18961
18962 #. type: =item
18963 #: ../fish/guestfish.pod:552
18964 msgid "C<\\v>"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fish/guestfish.pod:554
18969 msgid "Vertical tab character."
18970 msgstr ""
18971
18972 #. type: =item
18973 #: ../fish/guestfish.pod:556
18974 msgid "C<\\\">"
18975 msgstr ""
18976
18977 #. type: textblock
18978 #: ../fish/guestfish.pod:558
18979 msgid "A literal double quote character."
18980 msgstr ""
18981
18982 #. type: =item
18983 #: ../fish/guestfish.pod:560
18984 msgid "C<\\ooo>"
18985 msgstr ""
18986
18987 #. type: textblock
18988 #: ../fish/guestfish.pod:562
18989 msgid ""
18990 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18991 "(unlike C)."
18992 msgstr ""
18993
18994 #. type: =item
18995 #: ../fish/guestfish.pod:565
18996 msgid "C<\\xhh>"
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:567
19001 msgid ""
19002 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19003 msgstr ""
19004
19005 #. type: textblock
19006 #: ../fish/guestfish.pod:570
19007 msgid ""
19008 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19009 "strings."
19010 msgstr ""
19011
19012 #. type: =item
19013 #: ../fish/guestfish.pod:573
19014 msgid "C<\\\\>"
19015 msgstr ""
19016
19017 #. type: textblock
19018 #: ../fish/guestfish.pod:575
19019 msgid "A literal backslash character."
19020 msgstr ""
19021
19022 #. type: =head1
19023 #: ../fish/guestfish.pod:579
19024 msgid "OPTIONAL ARGUMENTS"
19025 msgstr ""
19026
19027 #. type: textblock
19028 #: ../fish/guestfish.pod:581
19029 msgid ""
19030 "Some commands take optional arguments.  These arguments appear in this "
19031 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../fish/guestfish.pod:585
19036 #, no-wrap
19037 msgid ""
19038 " add-drive-opts filename\n"
19039 "\n"
19040 msgstr ""
19041
19042 #. type: verbatim
19043 #: ../fish/guestfish.pod:587
19044 #, no-wrap
19045 msgid ""
19046 " add-drive-opts filename readonly:true\n"
19047 "\n"
19048 msgstr ""
19049
19050 #. type: verbatim
19051 #: ../fish/guestfish.pod:589
19052 #, no-wrap
19053 msgid ""
19054 " add-drive-opts filename format:qcow2 readonly:false\n"
19055 "\n"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/guestfish.pod:591
19060 msgid ""
19061 "Each optional argument can appear at most once.  All optional arguments must "
19062 "appear after the required ones."
19063 msgstr ""
19064
19065 #. type: =head1
19066 #: ../fish/guestfish.pod:594
19067 msgid "NUMBERS"
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:596
19072 msgid ""
19073 "This section applies to all commands which can take integers as parameters."
19074 msgstr ""
19075
19076 #. type: =head2
19077 #: ../fish/guestfish.pod:599
19078 msgid "SIZE SUFFIX"
19079 msgstr ""
19080
19081 #. type: textblock
19082 #: ../fish/guestfish.pod:601
19083 msgid ""
19084 "When the command takes a parameter measured in bytes, you can use one of the "
19085 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19086 msgstr ""
19087
19088 #. type: =item
19089 #: ../fish/guestfish.pod:607
19090 msgid "B<k> or B<K> or B<KiB>"
19091 msgstr ""
19092
19093 #. type: textblock
19094 #: ../fish/guestfish.pod:609
19095 msgid "The size in kilobytes (multiplied by 1024)."
19096 msgstr ""
19097
19098 #. type: =item
19099 #: ../fish/guestfish.pod:611
19100 msgid "B<KB>"
19101 msgstr ""
19102
19103 #. type: textblock
19104 #: ../fish/guestfish.pod:613
19105 msgid "The size in SI 1000 byte units."
19106 msgstr ""
19107
19108 #. type: =item
19109 #: ../fish/guestfish.pod:615
19110 msgid "B<M> or B<MiB>"
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:617
19115 msgid "The size in megabytes (multiplied by 1048576)."
19116 msgstr ""
19117
19118 #. type: =item
19119 #: ../fish/guestfish.pod:619
19120 msgid "B<MB>"
19121 msgstr ""
19122
19123 #. type: textblock
19124 #: ../fish/guestfish.pod:621
19125 msgid "The size in SI 1000000 byte units."
19126 msgstr ""
19127
19128 #. type: =item
19129 #: ../fish/guestfish.pod:623
19130 msgid "B<G> or B<GiB>"
19131 msgstr ""
19132
19133 #. type: textblock
19134 #: ../fish/guestfish.pod:625
19135 msgid "The size in gigabytes (multiplied by 2**30)."
19136 msgstr ""
19137
19138 #. type: =item
19139 #: ../fish/guestfish.pod:627
19140 msgid "B<GB>"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:629
19145 msgid "The size in SI 10**9 byte units."
19146 msgstr ""
19147
19148 #. type: =item
19149 #: ../fish/guestfish.pod:631
19150 msgid "B<T> or B<TiB>"
19151 msgstr ""
19152
19153 #. type: textblock
19154 #: ../fish/guestfish.pod:633
19155 msgid "The size in terabytes (multiplied by 2**40)."
19156 msgstr ""
19157
19158 #. type: =item
19159 #: ../fish/guestfish.pod:635
19160 msgid "B<TB>"
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:637
19165 msgid "The size in SI 10**12 byte units."
19166 msgstr ""
19167
19168 #. type: =item
19169 #: ../fish/guestfish.pod:639
19170 msgid "B<P> or B<PiB>"
19171 msgstr ""
19172
19173 #. type: textblock
19174 #: ../fish/guestfish.pod:641
19175 msgid "The size in petabytes (multiplied by 2**50)."
19176 msgstr ""
19177
19178 #. type: =item
19179 #: ../fish/guestfish.pod:643
19180 msgid "B<PB>"
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../fish/guestfish.pod:645
19185 msgid "The size in SI 10**15 byte units."
19186 msgstr ""
19187
19188 #. type: =item
19189 #: ../fish/guestfish.pod:647
19190 msgid "B<E> or B<EiB>"
19191 msgstr ""
19192
19193 #. type: textblock
19194 #: ../fish/guestfish.pod:649
19195 msgid "The size in exabytes (multiplied by 2**60)."
19196 msgstr ""
19197
19198 #. type: =item
19199 #: ../fish/guestfish.pod:651
19200 msgid "B<EB>"
19201 msgstr ""
19202
19203 #. type: textblock
19204 #: ../fish/guestfish.pod:653
19205 msgid "The size in SI 10**18 byte units."
19206 msgstr ""
19207
19208 #. type: =item
19209 #: ../fish/guestfish.pod:655
19210 msgid "B<Z> or B<ZiB>"
19211 msgstr ""
19212
19213 #. type: textblock
19214 #: ../fish/guestfish.pod:657
19215 msgid "The size in zettabytes (multiplied by 2**70)."
19216 msgstr ""
19217
19218 #. type: =item
19219 #: ../fish/guestfish.pod:659
19220 msgid "B<ZB>"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:661
19225 msgid "The size in SI 10**21 byte units."
19226 msgstr ""
19227
19228 #. type: =item
19229 #: ../fish/guestfish.pod:663
19230 msgid "B<Y> or B<YiB>"
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:665
19235 msgid "The size in yottabytes (multiplied by 2**80)."
19236 msgstr ""
19237
19238 #. type: =item
19239 #: ../fish/guestfish.pod:667
19240 msgid "B<YB>"
19241 msgstr ""
19242
19243 #. type: textblock
19244 #: ../fish/guestfish.pod:669
19245 msgid "The size in SI 10**24 byte units."
19246 msgstr ""
19247
19248 #. type: verbatim
19249 #: ../fish/guestfish.pod:675
19250 #, no-wrap
19251 msgid ""
19252 " truncate-size /file 1G\n"
19253 "\n"
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../fish/guestfish.pod:677
19258 msgid "would truncate the file to 1 gigabyte."
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../fish/guestfish.pod:679
19263 msgid ""
19264 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19265 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19266 "suffix will probably not do what you expect."
19267 msgstr ""
19268
19269 #. type: =head2
19270 #: ../fish/guestfish.pod:683
19271 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:685
19276 msgid ""
19277 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19278 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19279 msgstr ""
19280
19281 #. type: verbatim
19282 #: ../fish/guestfish.pod:688
19283 #, no-wrap
19284 msgid ""
19285 " 1234      decimal number 1234\n"
19286 " 02322     octal number, equivalent to decimal 1234\n"
19287 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19288 "\n"
19289 msgstr ""
19290
19291 #. type: textblock
19292 #: ../fish/guestfish.pod:692
19293 msgid ""
19294 "When using the C<chmod> command, you almost always want to specify an octal "
19295 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19296 "L<chmod(1)> program):"
19297 msgstr ""
19298
19299 #. type: verbatim
19300 #: ../fish/guestfish.pod:696
19301 #, no-wrap
19302 msgid ""
19303 " chmod 0777 /public  # OK\n"
19304 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19305 "\n"
19306 msgstr ""
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:699
19310 msgid ""
19311 "Commands that return numbers usually print them in decimal, but some "
19312 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19313 "octal, preceeded by C<0>)."
19314 msgstr ""
19315
19316 #. type: =head1
19317 #: ../fish/guestfish.pod:703
19318 msgid "WILDCARDS AND GLOBBING"
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:705
19323 msgid ""
19324 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19325 "(globbing) by default.  So for example the following will not do what you "
19326 "expect:"
19327 msgstr ""
19328
19329 #. type: verbatim
19330 #: ../fish/guestfish.pod:709
19331 #, no-wrap
19332 msgid ""
19333 " rm-rf /home/*\n"
19334 "\n"
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fish/guestfish.pod:711
19339 msgid ""
19340 "Assuming you don't have a directory called literally C</home/*> then the "
19341 "above command will return an error."
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:714
19346 msgid "To perform wildcard expansion, use the C<glob> command."
19347 msgstr ""
19348
19349 #. type: verbatim
19350 #: ../fish/guestfish.pod:716
19351 #, no-wrap
19352 msgid ""
19353 " glob rm-rf /home/*\n"
19354 "\n"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:718
19359 msgid ""
19360 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19361 "many times), equivalent to:"
19362 msgstr ""
19363
19364 #. type: verbatim
19365 #: ../fish/guestfish.pod:721
19366 #, no-wrap
19367 msgid ""
19368 " rm-rf /home/jim\n"
19369 " rm-rf /home/joe\n"
19370 " rm-rf /home/mary\n"
19371 "\n"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:725
19376 msgid "C<glob> only works on simple guest paths and not on device names."
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../fish/guestfish.pod:727
19381 msgid ""
19382 "If you have several parameters, each containing a wildcard, then glob will "
19383 "perform a Cartesian product."
19384 msgstr ""
19385
19386 #. type: =head1
19387 #: ../fish/guestfish.pod:730
19388 msgid "COMMENTS"
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:732
19393 msgid ""
19394 "Any line which starts with a I<#> character is treated as a comment and "
19395 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19396 "a command.  For example:"
19397 msgstr ""
19398
19399 #. type: verbatim
19400 #: ../fish/guestfish.pod:736
19401 #, no-wrap
19402 msgid ""
19403 " # this is a comment\n"
19404 "         # this is a comment\n"
19405 " foo # NOT a comment\n"
19406 "\n"
19407 msgstr ""
19408
19409 #. type: textblock
19410 #: ../fish/guestfish.pod:740
19411 msgid "Blank lines are also ignored."
19412 msgstr ""
19413
19414 #. type: =head1
19415 #: ../fish/guestfish.pod:742
19416 msgid "RUNNING COMMANDS LOCALLY"
19417 msgstr ""
19418
19419 #. type: textblock
19420 #: ../fish/guestfish.pod:744
19421 msgid ""
19422 "Any line which starts with a I<!> character is treated as a command sent to "
19423 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19424 msgstr ""
19425
19426 #. type: verbatim
19427 #: ../fish/guestfish.pod:748
19428 #, no-wrap
19429 msgid ""
19430 " !mkdir local\n"
19431 " tgz-out /remote local/remote-data.tar.gz\n"
19432 "\n"
19433 msgstr ""
19434
19435 #. type: textblock
19436 #: ../fish/guestfish.pod:751
19437 msgid ""
19438 "will create a directory C<local> on the host, and then export the contents "
19439 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19440 "(See C<tgz-out>)."
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../fish/guestfish.pod:755
19445 msgid ""
19446 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19447 "effect, due to the way that subprocesses work in Unix."
19448 msgstr ""
19449
19450 #. type: =head2
19451 #: ../fish/guestfish.pod:758
19452 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:760
19457 msgid ""
19458 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19459 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19460 "and executed as guestfish commands."
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish.pod:764
19465 msgid ""
19466 "Thus you can use shell script to construct arbitrary guestfish commands "
19467 "which are then parsed by guestfish."
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:767
19472 msgid ""
19473 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19474 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19475 "if we use a shell script to create the guestfish commands for us:"
19476 msgstr ""
19477
19478 #. type: verbatim
19479 #: ../fish/guestfish.pod:772
19480 #, no-wrap
19481 msgid ""
19482 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19483 "\n"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:774
19488 msgid "or with names like C</foo.001>:"
19489 msgstr ""
19490
19491 #. type: verbatim
19492 #: ../fish/guestfish.pod:776
19493 #, no-wrap
19494 msgid ""
19495 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19496 "\n"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:778
19501 msgid ""
19502 "When using guestfish interactively it can be helpful to just run the shell "
19503 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19504 "ordinary I<!> local command), see what guestfish commands it would run, and "
19505 "when you are happy with those prepend the C<E<lt>> character to run the "
19506 "guestfish commands for real."
19507 msgstr ""
19508
19509 #. type: =head1
19510 #: ../fish/guestfish.pod:784
19511 msgid "PIPES"
19512 msgstr ""
19513
19514 #. type: textblock
19515 #: ../fish/guestfish.pod:786
19516 msgid ""
19517 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19518 "command (a guestfish command) to the second command (any host command).  For "
19519 "example:"
19520 msgstr ""
19521
19522 #. type: verbatim
19523 #: ../fish/guestfish.pod:790
19524 #, no-wrap
19525 msgid ""
19526 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19527 "\n"
19528 msgstr ""
19529
19530 #. type: textblock
19531 #: ../fish/guestfish.pod:792
19532 msgid ""
19533 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19534 "program).  The above command would list all accounts in the guest filesystem "
19535 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19536 msgstr ""
19537
19538 #. type: verbatim
19539 #: ../fish/guestfish.pod:797
19540 #, no-wrap
19541 msgid ""
19542 " hexdump /bin/ls | head\n"
19543 " list-devices | tail -1\n"
19544 " tgz-out / - | tar ztf -\n"
19545 "\n"
19546 msgstr ""
19547
19548 #. type: textblock
19549 #: ../fish/guestfish.pod:801
19550 msgid ""
19551 "The space before the pipe symbol is required, any space after the pipe "
19552 "symbol is optional.  Everything after the pipe symbol is just passed "
19553 "straight to the host shell, so it can contain redirections, globs and "
19554 "anything else that makes sense on the host side."
19555 msgstr ""
19556
19557 #. type: textblock
19558 #: ../fish/guestfish.pod:806
19559 msgid ""
19560 "To use a literal argument which begins with a pipe symbol, you have to quote "
19561 "it, eg:"
19562 msgstr ""
19563
19564 #. type: verbatim
19565 #: ../fish/guestfish.pod:809
19566 #, no-wrap
19567 msgid ""
19568 " echo \"|\"\n"
19569 "\n"
19570 msgstr ""
19571
19572 #. type: =head1
19573 #: ../fish/guestfish.pod:811
19574 msgid "HOME DIRECTORIES"
19575 msgstr ""
19576
19577 #. type: textblock
19578 #: ../fish/guestfish.pod:813
19579 msgid ""
19580 "If a parameter starts with the character C<~> then the tilde may be expanded "
19581 "as a home directory path (either C<~> for the current user's home directory, "
19582 "or C<~user> for another user)."
19583 msgstr ""
19584
19585 #. type: textblock
19586 #: ../fish/guestfish.pod:817
19587 msgid ""
19588 "Note that home directory expansion happens for users known I<on the host>, "
19589 "not in the guest filesystem."
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../fish/guestfish.pod:820
19594 msgid ""
19595 "To use a literal argument which begins with a tilde, you have to quote it, "
19596 "eg:"
19597 msgstr ""
19598
19599 #. type: verbatim
19600 #: ../fish/guestfish.pod:823
19601 #, no-wrap
19602 msgid ""
19603 " echo \"~\"\n"
19604 "\n"
19605 msgstr ""
19606
19607 #. type: =head2
19608 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19609 msgid "ENCRYPTED DISKS"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish.pod:827
19614 msgid ""
19615 "Libguestfs has some support for Linux guests encrypted according to the "
19616 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19617 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19618 "LUKS is supported."
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../fish/guestfish.pod:832
19623 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish.pod:834
19628 #, no-wrap
19629 msgid ""
19630 " ><fs> vfs-type /dev/sda2\n"
19631 " crypto_LUKS\n"
19632 "\n"
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:837
19637 msgid ""
19638 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19639 "device called C</dev/mapper/luksdev>."
19640 msgstr ""
19641
19642 #. type: verbatim
19643 #: ../fish/guestfish.pod:840
19644 #, no-wrap
19645 msgid ""
19646 " ><fs> luks-open /dev/sda2 luksdev\n"
19647 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19648 "\n"
19649 msgstr ""
19650
19651 #. type: textblock
19652 #: ../fish/guestfish.pod:843
19653 msgid ""
19654 "Finally you have to tell LVM to scan for volume groups on the newly created "
19655 "mapper device:"
19656 msgstr ""
19657
19658 #. type: verbatim
19659 #: ../fish/guestfish.pod:846
19660 #, no-wrap
19661 msgid ""
19662 " vgscan\n"
19663 " vg-activate-all true\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:849
19669 msgid "The logical volume(s) can now be mounted in the usual way."
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/guestfish.pod:851
19674 msgid ""
19675 "Before closing a LUKS device you must unmount any logical volumes on it and "
19676 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19677 "one.  Then you can close the mapper device:"
19678 msgstr ""
19679
19680 #. type: verbatim
19681 #: ../fish/guestfish.pod:855
19682 #, no-wrap
19683 msgid ""
19684 " vg-activate false /dev/VG\n"
19685 " luks-close /dev/mapper/luksdev\n"
19686 "\n"
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:860
19691 msgid ""
19692 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19693 "letters and paths (with some limitations).  The following commands are "
19694 "equivalent:"
19695 msgstr ""
19696
19697 #. type: verbatim
19698 #: ../fish/guestfish.pod:864
19699 #, no-wrap
19700 msgid ""
19701 " file /WINDOWS/system32/config/system.LOG\n"
19702 "\n"
19703 msgstr ""
19704
19705 #. type: verbatim
19706 #: ../fish/guestfish.pod:866
19707 #, no-wrap
19708 msgid ""
19709 " file win:\\windows\\system32\\config\\system.log\n"
19710 "\n"
19711 msgstr ""
19712
19713 #. type: verbatim
19714 #: ../fish/guestfish.pod:868
19715 #, no-wrap
19716 msgid ""
19717 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19718 "\n"
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/guestfish.pod:870
19723 msgid ""
19724 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19725 "where the drive is mounted, prepending that to the path, changing all "
19726 "backslash characters to forward slash, then resolving the result using L</"
19727 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19728 "the parameter might be rewritten like this:"
19729 msgstr ""
19730
19731 #. type: verbatim
19732 #: ../fish/guestfish.pod:876
19733 #, no-wrap
19734 msgid ""
19735 " win:e:\\foo\\bar => /e/FOO/bar\n"
19736 "\n"
19737 msgstr ""
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:878
19741 msgid "This only works in argument positions that expect a path."
19742 msgstr ""
19743
19744 #. type: =head1
19745 #: ../fish/guestfish.pod:880
19746 msgid "UPLOADING AND DOWNLOADING FILES"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:882
19751 msgid ""
19752 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19753 "others which upload from or download to a local file, you can use the "
19754 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19755 msgstr ""
19756
19757 #. type: verbatim
19758 #: ../fish/guestfish.pod:886
19759 #, no-wrap
19760 msgid ""
19761 " upload - /foo\n"
19762 "\n"
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../fish/guestfish.pod:888
19767 msgid ""
19768 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19769 msgstr ""
19770
19771 #. type: verbatim
19772 #: ../fish/guestfish.pod:891
19773 #, no-wrap
19774 msgid ""
19775 " tar-out /etc - | tar tf -\n"
19776 "\n"
19777 msgstr ""
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:893
19781 msgid ""
19782 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19783 "command (see L</PIPES>)."
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../fish/guestfish.pod:896
19788 msgid ""
19789 "When using C<-> to read from stdin, the input is read up to the end of "
19790 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19791 "some arbitrary end marker:"
19792 msgstr ""
19793
19794 #. type: verbatim
19795 #: ../fish/guestfish.pod:900
19796 #, no-wrap
19797 msgid ""
19798 " upload -<<END /foo\n"
19799 " input line 1\n"
19800 " input line 2\n"
19801 " input line 3\n"
19802 " END\n"
19803 "\n"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:906
19808 msgid ""
19809 "Any string of characters can be used instead of C<END>.  The end marker must "
19810 "appear on a line of its own, without any preceeding or following characters "
19811 "(not even spaces)."
19812 msgstr ""
19813
19814 #. type: textblock
19815 #: ../fish/guestfish.pod:910
19816 msgid ""
19817 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19818 "upload local files (so-called \"FileIn\" parameters in the generator)."
19819 msgstr ""
19820
19821 #. type: =head1
19822 #: ../fish/guestfish.pod:913
19823 msgid "EXIT ON ERROR BEHAVIOUR"
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../fish/guestfish.pod:915
19828 msgid ""
19829 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19830 "taking commands from a human over a tty), and will exit on the first error "
19831 "in non-interactive mode (scripts, commands given on the command line)."
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/guestfish.pod:920
19836 msgid ""
19837 "If you prefix a command with a I<-> character, then that command will not "
19838 "cause guestfish to exit, even if that (one) command returns an error."
19839 msgstr ""
19840
19841 #. type: =head1
19842 #: ../fish/guestfish.pod:924
19843 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:926
19848 msgid ""
19849 "Guestfish can be remote-controlled over a socket.  This is useful "
19850 "particularly in shell scripts where you want to make several different "
19851 "changes to a filesystem, but you don't want the overhead of starting up a "
19852 "guestfish process each time."
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../fish/guestfish.pod:931
19857 msgid "Start a guestfish server process using:"
19858 msgstr ""
19859
19860 #. type: verbatim
19861 #: ../fish/guestfish.pod:933
19862 #, no-wrap
19863 msgid ""
19864 " eval \"`guestfish --listen`\"\n"
19865 "\n"
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fish/guestfish.pod:935
19870 msgid "and then send it commands by doing:"
19871 msgstr ""
19872
19873 #. type: verbatim
19874 #: ../fish/guestfish.pod:937
19875 #, no-wrap
19876 msgid ""
19877 " guestfish --remote cmd [...]\n"
19878 "\n"
19879 msgstr ""
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:939
19883 msgid "To cause the server to exit, send it the exit command:"
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:943
19888 msgid ""
19889 "Note that the server will normally exit if there is an error in a command.  "
19890 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19891 "BEHAVIOUR>."
19892 msgstr ""
19893
19894 #. type: =head2
19895 #: ../fish/guestfish.pod:947
19896 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish.pod:949
19901 msgid ""
19902 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19903 "is how the I<--remote> option knows where to send the commands.  You can "
19904 "have several guestfish listener processes running using:"
19905 msgstr ""
19906
19907 #. type: verbatim
19908 #: ../fish/guestfish.pod:953
19909 #, no-wrap
19910 msgid ""
19911 " eval \"`guestfish --listen`\"\n"
19912 " pid1=$GUESTFISH_PID\n"
19913 " eval \"`guestfish --listen`\"\n"
19914 " pid2=$GUESTFISH_PID\n"
19915 " ...\n"
19916 " guestfish --remote=$pid1 cmd\n"
19917 " guestfish --remote=$pid2 cmd\n"
19918 "\n"
19919 msgstr ""
19920
19921 #. type: =head2
19922 #: ../fish/guestfish.pod:961
19923 msgid "REMOTE CONTROL AND CSH"
19924 msgstr ""
19925
19926 #. type: textblock
19927 #: ../fish/guestfish.pod:963
19928 msgid ""
19929 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19930 "option:"
19931 msgstr ""
19932
19933 #. type: verbatim
19934 #: ../fish/guestfish.pod:966
19935 #, no-wrap
19936 msgid ""
19937 " eval \"`guestfish --listen --csh`\"\n"
19938 "\n"
19939 msgstr ""
19940
19941 #. type: =head2
19942 #: ../fish/guestfish.pod:968
19943 msgid "REMOTE CONTROL DETAILS"
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../fish/guestfish.pod:970
19948 msgid ""
19949 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19950 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19951 "and C<$PID> is the process ID of the server."
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:974
19956 msgid "Guestfish client and server versions must match exactly."
19957 msgstr ""
19958
19959 #. type: =head2
19960 #: ../fish/guestfish.pod:976
19961 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:978
19966 msgid ""
19967 "From Bash, you can use the following code which creates a guestfish "
19968 "instance, correctly quotes the command line, handles failure to start, and "
19969 "cleans up guestfish when the script exits:"
19970 msgstr ""
19971
19972 #. type: verbatim
19973 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19974 #, no-wrap
19975 msgid ""
19976 " #!/bin/bash -\n"
19977 " \n"
19978 msgstr ""
19979
19980 #. type: verbatim
19981 #: ../fish/guestfish.pod:986
19982 #, no-wrap
19983 msgid ""
19984 " guestfish[0]=\"guestfish\"\n"
19985 " guestfish[1]=\"--listen\"\n"
19986 " guestfish[2]=\"--ro\"\n"
19987 " guestfish[3]=\"-a\"\n"
19988 " guestfish[4]=\"disk.img\"\n"
19989 " \n"
19990 msgstr ""
19991
19992 #. type: verbatim
19993 #: ../fish/guestfish.pod:992
19994 #, no-wrap
19995 msgid ""
19996 " GUESTFISH_PID=\n"
19997 " eval $(\"${guestfish[@]}\")\n"
19998 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19999 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20000 "     exit 1\n"
20001 " fi\n"
20002 " \n"
20003 msgstr ""
20004
20005 #. type: verbatim
20006 #: ../fish/guestfish.pod:999
20007 #, no-wrap
20008 msgid ""
20009 " cleanup_guestfish ()\n"
20010 " {\n"
20011 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20012 " }\n"
20013 " trap cleanup_guestfish EXIT ERR\n"
20014 " \n"
20015 msgstr ""
20016
20017 #. type: verbatim
20018 #: ../fish/guestfish.pod:1005
20019 #, no-wrap
20020 msgid ""
20021 " guestfish --remote -- run\n"
20022 " \n"
20023 msgstr ""
20024
20025 #. type: verbatim
20026 #: ../fish/guestfish.pod:1007
20027 #, no-wrap
20028 msgid ""
20029 " # ...\n"
20030 "\n"
20031 msgstr ""
20032
20033 #. type: =head2
20034 #: ../fish/guestfish.pod:1009
20035 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20036 msgstr ""
20037
20038 #. type: textblock
20039 #: ../fish/guestfish.pod:1011
20040 msgid ""
20041 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20042 "context hangs, ie. don't do (note the backquotes):"
20043 msgstr ""
20044
20045 #. type: verbatim
20046 #: ../fish/guestfish.pod:1014
20047 #, no-wrap
20048 msgid ""
20049 " a=`guestfish --remote run`\n"
20050 "\n"
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/guestfish.pod:1016
20055 msgid ""
20056 "Since the C<run> command produces no output on stdout, this is not useful "
20057 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20058 "cgi?id=592910>."
20059 msgstr ""
20060
20061 #. type: =head1
20062 #: ../fish/guestfish.pod:1020
20063 msgid "PREPARED DISK IMAGES"
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish.pod:1022
20068 msgid ""
20069 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20070 "preformatted disk images that guestfish can make for you to save typing.  "
20071 "This is particularly useful for testing purposes.  This option is used "
20072 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20073 "can be mixed with I<-a>)."
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../fish/guestfish.pod:1028
20078 msgid ""
20079 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20080 "the second and so on.  Existing files in the current directory are "
20081 "I<overwritten>."
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:1032
20086 msgid ""
20087 "The type briefly describes how the disk should be sized, partitioned, how "
20088 "filesystem(s) should be created, and how content should be added.  "
20089 "Optionally the type can be followed by extra parameters, separated by C<:> "
20090 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20091 "allocated disk, containing a single partition, with the partition formatted "
20092 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20093 "disk instead."
20094 msgstr ""
20095
20096 #. type: textblock
20097 #: ../fish/guestfish.pod:1040
20098 msgid "To list the available types and any extra parameters they take, run:"
20099 msgstr ""
20100
20101 #. type: textblock
20102 #: ../fish/guestfish.pod:1044
20103 msgid ""
20104 "Note that the prepared filesystem is not mounted.  You would usually have to "
20105 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20106 msgstr ""
20107
20108 #. type: textblock
20109 #: ../fish/guestfish.pod:1048
20110 msgid ""
20111 "If any I<-N> or I<--new> options are given, the guest is automatically "
20112 "launched."
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:1053
20117 msgid "Create a 100MB disk with an ext4-formatted partition:"
20118 msgstr ""
20119
20120 #. type: verbatim
20121 #: ../fish/guestfish.pod:1055
20122 #, no-wrap
20123 msgid ""
20124 " guestfish -N fs:ext4\n"
20125 "\n"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fish/guestfish.pod:1057
20130 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20131 msgstr ""
20132
20133 #. type: verbatim
20134 #: ../fish/guestfish.pod:1059
20135 #, no-wrap
20136 msgid ""
20137 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20138 "\n"
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fish/guestfish.pod:1061
20143 msgid "Create a blank 200MB disk:"
20144 msgstr ""
20145
20146 #. type: verbatim
20147 #: ../fish/guestfish.pod:1063
20148 #, no-wrap
20149 msgid ""
20150 " guestfish -N disk:200M\n"
20151 "\n"
20152 msgstr ""
20153
20154 #. type: =head1
20155 #: ../fish/guestfish.pod:1065
20156 msgid "PROGRESS BARS"
20157 msgstr ""
20158
20159 #. type: textblock
20160 #: ../fish/guestfish.pod:1067
20161 msgid ""
20162 "Some (not all) long-running commands send progress notification messages as "
20163 "they are running.  Guestfish turns these messages into progress bars."
20164 msgstr ""
20165
20166 #. type: textblock
20167 #: ../fish/guestfish.pod:1071
20168 msgid ""
20169 "When a command that supports progress bars takes longer than two seconds to "
20170 "run, and if progress bars are enabled, then you will see one appearing below "
20171 "the command:"
20172 msgstr ""
20173
20174 #. type: verbatim
20175 #: ../fish/guestfish.pod:1075
20176 #, no-wrap
20177 msgid ""
20178 " ><fs> copy-size /large-file /another-file 2048M\n"
20179 " / 10% [#####-----------------------------------------] 00:30\n"
20180 "\n"
20181 msgstr ""
20182
20183 #. type: textblock
20184 #: ../fish/guestfish.pod:1078
20185 msgid ""
20186 "The spinner on the left hand side moves round once for every progress "
20187 "notification received from the backend.  This is a (reasonably) golden "
20188 "assurance that the command is \"doing something\" even if the progress bar "
20189 "is not moving, because the command is able to send the progress "
20190 "notifications.  When the bar reaches 100% and the command finishes, the "
20191 "spinner disappears."
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../fish/guestfish.pod:1085
20196 msgid ""
20197 "Progress bars are enabled by default when guestfish is used interactively.  "
20198 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20199 "and you can disable them completely using I<--no-progress-bars>."
20200 msgstr ""
20201
20202 #. type: =head1
20203 #: ../fish/guestfish.pod:1090
20204 msgid "GUESTFISH COMMANDS"
20205 msgstr ""
20206
20207 #. type: textblock
20208 #: ../fish/guestfish.pod:1092
20209 msgid ""
20210 "The commands in this section are guestfish convenience commands, in other "
20211 "words, they are not part of the L<guestfs(3)> API."
20212 msgstr ""
20213
20214 #. type: =head2
20215 #: ../fish/guestfish.pod:1095
20216 msgid "help"
20217 msgstr ""
20218
20219 #. type: verbatim
20220 #: ../fish/guestfish.pod:1097
20221 #, no-wrap
20222 msgid ""
20223 " help\n"
20224 " help cmd\n"
20225 "\n"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:1100
20230 msgid "Without any parameter, this provides general help."
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:1102
20235 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20236 msgstr ""
20237
20238 #. type: =head2
20239 #: ../fish/guestfish.pod:1104
20240 msgid "quit | exit"
20241 msgstr ""
20242
20243 #. type: textblock
20244 #: ../fish/guestfish.pod:1106
20245 msgid "This exits guestfish.  You can also use C<^D> key."
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish.pod:1108
20250 msgid "@FISH_COMMANDS@"
20251 msgstr ""
20252
20253 #. type: =head1
20254 #: ../fish/guestfish.pod:1110
20255 msgid "COMMANDS"
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20260 msgid "@ACTIONS@"
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:1116
20265 msgid ""
20266 "guestfish returns 0 if the commands completed without error, or 1 if there "
20267 "was an error."
20268 msgstr ""
20269
20270 #. type: =item
20271 #: ../fish/guestfish.pod:1123
20272 msgid "EDITOR"
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../fish/guestfish.pod:1125
20277 msgid ""
20278 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20279 "C<vi>."
20280 msgstr ""
20281
20282 #. type: =item
20283 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20284 msgid "FEBOOTSTRAP_KERNEL"
20285 msgstr ""
20286
20287 #. type: =item
20288 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20289 msgid "FEBOOTSTRAP_MODULES"
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20294 msgid ""
20295 "These two environment variables allow the kernel that libguestfs uses in the "
20296 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20297 "most recent host kernel is chosen.  For more information about kernel "
20298 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20299 "available in febootstrap E<ge> 3.8."
20300 msgstr ""
20301
20302 #. type: =item
20303 #: ../fish/guestfish.pod:1138
20304 msgid "GUESTFISH_DISPLAY_IMAGE"
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:1140
20309 msgid ""
20310 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20311 "If not set, it uses L<display(1)>."
20312 msgstr ""
20313
20314 #. type: =item
20315 #: ../fish/guestfish.pod:1143
20316 msgid "GUESTFISH_PID"
20317 msgstr ""
20318
20319 #. type: textblock
20320 #: ../fish/guestfish.pod:1145
20321 msgid ""
20322 "Used with the I<--remote> option to specify the remote guestfish process to "
20323 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20324 msgstr ""
20325
20326 #. type: =item
20327 #: ../fish/guestfish.pod:1149
20328 msgid "HEXEDITOR"
20329 msgstr ""
20330
20331 #. type: textblock
20332 #: ../fish/guestfish.pod:1151
20333 msgid ""
20334 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20335 "not specified, the external L<hexedit(1)> program is used."
20336 msgstr ""
20337
20338 #. type: =item
20339 #: ../fish/guestfish.pod:1155
20340 msgid "HOME"
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:1157
20345 msgid ""
20346 "If compiled with GNU readline support, various files in the home directory "
20347 "can be used.  See L</FILES>."
20348 msgstr ""
20349
20350 #. type: =item
20351 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20352 msgid "LIBGUESTFS_APPEND"
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20357 msgid "Pass additional options to the guest kernel."
20358 msgstr ""
20359
20360 #. type: =item
20361 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20362 msgid "LIBGUESTFS_DEBUG"
20363 msgstr ""
20364
20365 #. type: textblock
20366 #: ../fish/guestfish.pod:1166
20367 msgid ""
20368 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20369 "effect as using the B<-v> option."
20370 msgstr ""
20371
20372 #. type: =item
20373 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20374 msgid "LIBGUESTFS_MEMSIZE"
20375 msgstr ""
20376
20377 #. type: textblock
20378 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20379 msgid ""
20380 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20381 msgstr ""
20382
20383 #. type: verbatim
20384 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20385 #, no-wrap
20386 msgid ""
20387 " LIBGUESTFS_MEMSIZE=700\n"
20388 "\n"
20389 msgstr ""
20390
20391 #. type: =item
20392 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20393 msgid "LIBGUESTFS_PATH"
20394 msgstr ""
20395
20396 #. type: textblock
20397 #: ../fish/guestfish.pod:1178
20398 msgid ""
20399 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20400 "the discussion of paths in L<guestfs(3)>."
20401 msgstr ""
20402
20403 #. type: =item
20404 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20405 msgid "LIBGUESTFS_QEMU"
20406 msgstr ""
20407
20408 #. type: textblock
20409 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
20410 msgid ""
20411 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20412 "which was found at compile time by the configure script is used."
20413 msgstr ""
20414
20415 #. type: =item
20416 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
20417 msgid "LIBGUESTFS_TRACE"
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../fish/guestfish.pod:1189
20422 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20423 msgstr ""
20424
20425 #. type: =item
20426 #: ../fish/guestfish.pod:1191
20427 msgid "PAGER"
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../fish/guestfish.pod:1193
20432 msgid ""
20433 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20434 "C<more>."
20435 msgstr ""
20436
20437 #. type: =item
20438 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20439 #: ../src/guestfs.pod:3242
20440 msgid "TMPDIR"
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
20445 msgid ""
20446 "Location of temporary directory, defaults to C</tmp> except for the cached "
20447 "supermin appliance which defaults to C</var/tmp>."
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
20452 msgid ""
20453 "If libguestfs was compiled to use the supermin appliance then the real "
20454 "appliance is cached in this directory, shared between all handles belonging "
20455 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20456 "use in case C</var/tmp> is not large enough."
20457 msgstr ""
20458
20459 #. type: =head1
20460 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20461 #: ../rescue/virt-rescue.pod:273
20462 msgid "FILES"
20463 msgstr ""
20464
20465 #. type: =item
20466 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20467 #: ../rescue/virt-rescue.pod:277
20468 msgid "$HOME/.libguestfs-tools.rc"
20469 msgstr ""
20470
20471 #. type: =item
20472 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20473 #: ../rescue/virt-rescue.pod:279
20474 msgid "/etc/libguestfs-tools.conf"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20479 #: ../rescue/virt-rescue.pod:281
20480 msgid ""
20481 "This configuration file controls the default read-only or read-write mode "
20482 "(I<--ro> or I<--rw>)."
20483 msgstr ""
20484
20485 #. type: textblock
20486 #: ../fish/guestfish.pod:1220
20487 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20488 msgstr ""
20489
20490 #. type: =item
20491 #: ../fish/guestfish.pod:1222
20492 msgid "$HOME/.guestfish"
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fish/guestfish.pod:1224
20497 msgid ""
20498 "If compiled with GNU readline support, then the command history is saved in "
20499 "this file."
20500 msgstr ""
20501
20502 #. type: =item
20503 #: ../fish/guestfish.pod:1227
20504 msgid "$HOME/.inputrc"
20505 msgstr ""
20506
20507 #. type: =item
20508 #: ../fish/guestfish.pod:1229
20509 msgid "/etc/inputrc"
20510 msgstr ""
20511
20512 #. type: textblock
20513 #: ../fish/guestfish.pod:1231
20514 msgid ""
20515 "If compiled with GNU readline support, then these files can be used to "
20516 "configure readline.  For further information, please see L<readline(3)/"
20517 "INITIALIZATION FILE>."
20518 msgstr ""
20519
20520 #. type: textblock
20521 #: ../fish/guestfish.pod:1235
20522 msgid "To write rules which only apply to guestfish, use:"
20523 msgstr ""
20524
20525 #. type: verbatim
20526 #: ../fish/guestfish.pod:1237
20527 #, no-wrap
20528 msgid ""
20529 " $if guestfish\n"
20530 " ...\n"
20531 " $endif\n"
20532 "\n"
20533 msgstr ""
20534
20535 #. type: textblock
20536 #: ../fish/guestfish.pod:1241
20537 msgid ""
20538 "Variables that you can set in inputrc that change the behaviour of guestfish "
20539 "in useful ways include:"
20540 msgstr ""
20541
20542 #. type: =item
20543 #: ../fish/guestfish.pod:1246
20544 msgid "completion-ignore-case (default: on)"
20545 msgstr ""
20546
20547 #. type: textblock
20548 #: ../fish/guestfish.pod:1248
20549 msgid ""
20550 "By default, guestfish will ignore case when tab-completing paths on the "
20551 "disk.  Use:"
20552 msgstr ""
20553
20554 #. type: verbatim
20555 #: ../fish/guestfish.pod:1251
20556 #, no-wrap
20557 msgid ""
20558 " set completion-ignore-case off\n"
20559 "\n"
20560 msgstr ""
20561
20562 #. type: textblock
20563 #: ../fish/guestfish.pod:1253
20564 msgid "to make guestfish case sensitive."
20565 msgstr ""
20566
20567 #. type: =item
20568 #: ../fish/guestfish.pod:1257
20569 msgid "test1.img"
20570 msgstr ""
20571
20572 #. type: =item
20573 #: ../fish/guestfish.pod:1259
20574 msgid "test2.img (etc)"
20575 msgstr ""
20576
20577 #. type: textblock
20578 #: ../fish/guestfish.pod:1261
20579 msgid ""
20580 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20581 "will be created in the file C<test1.img> in the current directory.  The "
20582 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20583 "the same name will be overwritten."
20584 msgstr ""
20585
20586 #. type: textblock
20587 #: ../fish/guestfish.pod:1270
20588 msgid ""
20589 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20590 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20591 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20592 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20593 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20594 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20595 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20596 msgstr ""
20597
20598 #. type: textblock
20599 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
20600 #: ../test-tool/libguestfs-test-tool.pod:112
20601 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/virt-copy-in.pod:5
20606 msgid ""
20607 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20608 msgstr ""
20609
20610 #. type: verbatim
20611 #: ../fish/virt-copy-in.pod:9
20612 #, no-wrap
20613 msgid ""
20614 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20615 "\n"
20616 msgstr ""
20617
20618 #. type: verbatim
20619 #: ../fish/virt-copy-in.pod:11
20620 #, no-wrap
20621 msgid ""
20622 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20623 "\n"
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../fish/virt-copy-in.pod:15
20628 msgid ""
20629 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20630 "causing disk corruption.  The virtual machine must be shut down before you "
20631 "use this command."
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fish/virt-copy-in.pod:21
20636 msgid ""
20637 "C<virt-copy-in> copies files and directories from the local disk into a "
20638 "virtual machine disk image or named libvirt domain."
20639 msgstr ""
20640
20641 #. type: textblock
20642 #: ../fish/virt-copy-in.pod:24
20643 msgid ""
20644 "You can give one of more filenames and directories on the command line.  "
20645 "Directories are copied in recursively.  The final parameter must be the "
20646 "destination directory in the disk image which must be an absolute path "
20647 "starting with a C</> character."
20648 msgstr ""
20649
20650 #. type: verbatim
20651 #: ../fish/virt-copy-in.pod:33
20652 #, no-wrap
20653 msgid ""
20654 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20655 "\n"
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20660 msgid "Upload a home directory to a guest:"
20661 msgstr ""
20662
20663 #. type: verbatim
20664 #: ../fish/virt-copy-in.pod:37
20665 #, no-wrap
20666 msgid ""
20667 " virt-copy-in -d MyGuest skel /home\n"
20668 "\n"
20669 msgstr ""
20670
20671 #. type: =head1
20672 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20673 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20674 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fish/virt-copy-in.pod:41
20679 msgid ""
20680 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20681 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20682 "are probably better off using guestfish directly."
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20687 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20688 msgid ""
20689 "Since the shell script just passes options straight to guestfish, read "
20690 "L<guestfish(1)> to see the full list of options."
20691 msgstr ""
20692
20693 #. type: textblock
20694 #: ../fish/virt-copy-in.pod:52
20695 msgid ""
20696 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20697 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20702 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20703 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20704 msgstr ""
20705
20706 #. type: textblock
20707 #: ../fish/virt-copy-out.pod:5
20708 msgid ""
20709 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20710 "image."
20711 msgstr ""
20712
20713 #. type: verbatim
20714 #: ../fish/virt-copy-out.pod:9
20715 #, no-wrap
20716 msgid ""
20717 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20718 "\n"
20719 msgstr ""
20720
20721 #. type: verbatim
20722 #: ../fish/virt-copy-out.pod:11
20723 #, no-wrap
20724 msgid ""
20725 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20726 "\n"
20727 msgstr ""
20728
20729 #. type: textblock
20730 #: ../fish/virt-copy-out.pod:15
20731 msgid ""
20732 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20733 "image or named libvirt domain."
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../fish/virt-copy-out.pod:18
20738 msgid ""
20739 "You can give one of more filenames and directories on the command line.  "
20740 "Directories are copied out recursively."
20741 msgstr ""
20742
20743 #. type: textblock
20744 #: ../fish/virt-copy-out.pod:23
20745 msgid "Download the home directories from a virtual machine:"
20746 msgstr ""
20747
20748 #. type: verbatim
20749 #: ../fish/virt-copy-out.pod:25
20750 #, no-wrap
20751 msgid ""
20752 " mkdir homes\n"
20753 " virt-copy-out -d MyGuest /home homes\n"
20754 "\n"
20755 msgstr ""
20756
20757 #. type: textblock
20758 #: ../fish/virt-copy-out.pod:30
20759 msgid ""
20760 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20761 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20762 "are probably better off using guestfish directly."
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../fish/virt-copy-out.pod:41
20767 msgid ""
20768 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20769 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20770 msgstr ""
20771
20772 #. type: textblock
20773 #: ../fish/virt-tar-in.pod:5
20774 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20775 msgstr ""
20776
20777 #. type: verbatim
20778 #: ../fish/virt-tar-in.pod:9
20779 #, no-wrap
20780 msgid ""
20781 " virt-tar-in -a disk.img data.tar /destination\n"
20782 "\n"
20783 msgstr ""
20784
20785 #. type: verbatim
20786 #: ../fish/virt-tar-in.pod:11
20787 #, no-wrap
20788 msgid ""
20789 " virt-tar-in -d domain data.tar /destination\n"
20790 "\n"
20791 msgstr ""
20792
20793 #. type: verbatim
20794 #: ../fish/virt-tar-in.pod:13
20795 #, no-wrap
20796 msgid ""
20797 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20798 "\n"
20799 msgstr ""
20800
20801 #. type: textblock
20802 #: ../fish/virt-tar-in.pod:17
20803 msgid ""
20804 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20805 "causing disk corruption.  The virtual machine must be shut down before you "
20806 "use this command."
20807 msgstr ""
20808
20809 #. type: textblock
20810 #: ../fish/virt-tar-in.pod:23
20811 msgid ""
20812 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20813 "image or named libvirt domain."
20814 msgstr ""
20815
20816 #. type: textblock
20817 #: ../fish/virt-tar-in.pod:26
20818 msgid ""
20819 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20820 "standard input.  The second parameter is the absolute target directory to "
20821 "unpack into."
20822 msgstr ""
20823
20824 #. type: verbatim
20825 #: ../fish/virt-tar-in.pod:34
20826 #, no-wrap
20827 msgid ""
20828 " virt-tar-in -d MyGuest homes.tar /home\n"
20829 "\n"
20830 msgstr ""
20831
20832 #. type: textblock
20833 #: ../fish/virt-tar-in.pod:38
20834 msgid ""
20835 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20836 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20837 "probably better off using guestfish directly."
20838 msgstr ""
20839
20840 #. type: textblock
20841 #: ../fish/virt-tar-in.pod:49
20842 msgid ""
20843 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20844 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20845 "org/>."
20846 msgstr ""
20847
20848 #. type: textblock
20849 #: ../fish/virt-tar-out.pod:5
20850 msgid ""
20851 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20852 msgstr ""
20853
20854 #. type: verbatim
20855 #: ../fish/virt-tar-out.pod:9
20856 #, no-wrap
20857 msgid ""
20858 " virt-tar-out -a disk.img /dir files.tar\n"
20859 "\n"
20860 msgstr ""
20861
20862 #. type: verbatim
20863 #: ../fish/virt-tar-out.pod:11
20864 #, no-wrap
20865 msgid ""
20866 " virt-tar-out -d domain /dir files.tar\n"
20867 "\n"
20868 msgstr ""
20869
20870 #. type: verbatim
20871 #: ../fish/virt-tar-out.pod:13
20872 #, no-wrap
20873 msgid ""
20874 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20875 "\n"
20876 msgstr ""
20877
20878 #. type: textblock
20879 #: ../fish/virt-tar-out.pod:17
20880 msgid ""
20881 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20882 msgstr ""
20883
20884 #. type: textblock
20885 #: ../fish/virt-tar-out.pod:20
20886 msgid ""
20887 "The first parameter is the absolute path of the virtual machine directory.  "
20888 "The second parameter is the tar file to write.  Use C<-> to write to "
20889 "standard output."
20890 msgstr ""
20891
20892 #. type: textblock
20893 #: ../fish/virt-tar-out.pod:26
20894 msgid "Download the home directories from a guest:"
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../fish/virt-tar-out.pod:28
20899 #, no-wrap
20900 msgid ""
20901 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20902 "\n"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../fish/virt-tar-out.pod:32
20907 msgid ""
20908 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20909 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20910 "are probably better off using guestfish directly."
20911 msgstr ""
20912
20913 #. type: textblock
20914 #: ../fish/virt-tar-out.pod:43
20915 msgid ""
20916 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20917 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../fuse/guestmount.pod:5
20922 msgid ""
20923 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20924 msgstr ""
20925
20926 #. type: verbatim
20927 #: ../fuse/guestmount.pod:9
20928 #, no-wrap
20929 msgid ""
20930 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20931 "\n"
20932 msgstr ""
20933
20934 #. type: verbatim
20935 #: ../fuse/guestmount.pod:11
20936 #, no-wrap
20937 msgid ""
20938 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20939 "\n"
20940 msgstr ""
20941
20942 #. type: verbatim
20943 #: ../fuse/guestmount.pod:13
20944 #, no-wrap
20945 msgid ""
20946 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20947 "\n"
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../fuse/guestmount.pod:17
20952 msgid ""
20953 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20954 "machines.  If you do this, you risk disk corruption in the VM."
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../fuse/guestmount.pod:22
20959 msgid ""
20960 "The guestmount program can be used to mount virtual machine filesystems and "
20961 "other disk images on the host.  It uses libguestfs for access to the guest "
20962 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20963 "a mountable device."
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../fuse/guestmount.pod:27
20968 msgid ""
20969 "Along with other options, you have to give at least one device (I<-a> "
20970 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20971 "option) or use the I<-i> inspection option.  How this works is better "
20972 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20973 "below."
20974 msgstr ""
20975
20976 #. type: textblock
20977 #: ../fuse/guestmount.pod:33
20978 msgid ""
20979 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20980 "by you, and the filesystem will not be visible to any other users unless you "
20981 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20982 "the filesystem, use the C<fusermount -u> command."
20983 msgstr ""
20984
20985 #. type: textblock
20986 #: ../fuse/guestmount.pod:41
20987 msgid ""
20988 "For a typical Windows guest which has its main filesystem on the first "
20989 "partition:"
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../fuse/guestmount.pod:44
20994 #, no-wrap
20995 msgid ""
20996 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20997 "\n"
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fuse/guestmount.pod:46
21002 msgid ""
21003 "For a typical Linux guest which has a /boot filesystem on the first "
21004 "partition, and the root filesystem on a logical volume:"
21005 msgstr ""
21006
21007 #. type: verbatim
21008 #: ../fuse/guestmount.pod:49
21009 #, no-wrap
21010 msgid ""
21011 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21012 "\n"
21013 msgstr ""
21014
21015 #. type: textblock
21016 #: ../fuse/guestmount.pod:51
21017 msgid "To get libguestfs to detect guest mountpoints for you:"
21018 msgstr ""
21019
21020 #. type: verbatim
21021 #: ../fuse/guestmount.pod:53
21022 #, no-wrap
21023 msgid ""
21024 " guestmount -a guest.img -i --ro /mnt\n"
21025 "\n"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fuse/guestmount.pod:55
21030 msgid "For a libvirt guest called \"Guest\" you could do:"
21031 msgstr ""
21032
21033 #. type: verbatim
21034 #: ../fuse/guestmount.pod:57
21035 #, no-wrap
21036 msgid ""
21037 " guestmount -d Guest -i --ro /mnt\n"
21038 "\n"
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../fuse/guestmount.pod:59
21043 msgid ""
21044 "If you don't know what filesystems are contained in a guest or disk image, "
21045 "use L<virt-filesystems(1)> first:"
21046 msgstr ""
21047
21048 #. type: verbatim
21049 #: ../fuse/guestmount.pod:62
21050 #, no-wrap
21051 msgid ""
21052 " virt-filesystems MyGuest\n"
21053 "\n"
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fuse/guestmount.pod:64
21058 msgid ""
21059 "If you want to trace the libguestfs calls but without excessive debugging "
21060 "information, we recommend:"
21061 msgstr ""
21062
21063 #. type: verbatim
21064 #: ../fuse/guestmount.pod:67
21065 #, no-wrap
21066 msgid ""
21067 " guestmount [...] --trace /mnt\n"
21068 "\n"
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../fuse/guestmount.pod:69
21073 msgid "If you want to debug the program, we recommend:"
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../fuse/guestmount.pod:71
21078 #, no-wrap
21079 msgid ""
21080 " guestmount [...] --trace --verbose /mnt\n"
21081 "\n"
21082 msgstr ""
21083
21084 #. type: =head1
21085 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21086 #: ../resize/virt-resize.pod:544
21087 msgid "NOTES"
21088 msgstr ""
21089
21090 #. type: =head2
21091 #: ../fuse/guestmount.pod:75
21092 msgid "Other users cannot see the filesystem by default"
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../fuse/guestmount.pod:77
21097 msgid ""
21098 "If you mount a filesystem as one user (eg. root), then other users will not "
21099 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21100 "option when mounting:"
21101 msgstr ""
21102
21103 #. type: verbatim
21104 #: ../fuse/guestmount.pod:81
21105 #, no-wrap
21106 msgid ""
21107 " sudo guestmount [...] -o allow_other /mnt\n"
21108 "\n"
21109 msgstr ""
21110
21111 #. type: =head2
21112 #: ../fuse/guestmount.pod:83
21113 msgid "Enabling FUSE"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fuse/guestmount.pod:85
21118 msgid ""
21119 "On some distros, you may need to add yourself to a special group (eg. "
21120 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21121 "Debian and derivatives."
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../fuse/guestmount.pod:89
21126 msgid ""
21127 "On other distros, no special group is required.  It is not necessary on "
21128 "Fedora or Red Hat Enterprise Linux."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fuse/guestmount.pod:100
21133 msgid "Add a block device or virtual machine image."
21134 msgstr ""
21135
21136 #. type: =item
21137 #: ../fuse/guestmount.pod:123
21138 msgid "B<--dir-cache-timeout N>"
21139 msgstr ""
21140
21141 #. type: textblock
21142 #: ../fuse/guestmount.pod:125
21143 msgid ""
21144 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21145 "seconds.  The readdir cache [actually, there are several semi-independent "
21146 "caches] is populated after a readdir(2) call with the stat and extended "
21147 "attributes of the files in the directory, in anticipation that they will be "
21148 "requested soon after."
21149 msgstr ""
21150
21151 #. type: textblock
21152 #: ../fuse/guestmount.pod:131
21153 msgid ""
21154 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21155 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21156 "requests, only cache existing ones."
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../fuse/guestmount.pod:151
21161 msgid ""
21162 "If you have untrusted raw-format guest disk images, you should use this "
21163 "option to specify the disk format.  This avoids a possible security problem "
21164 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21165 "guestfs_add_drive_opts>."
21166 msgstr ""
21167
21168 #. type: =item
21169 #: ../fuse/guestmount.pod:156
21170 msgid "B<--fuse-help>"
21171 msgstr ""
21172
21173 #. type: textblock
21174 #: ../fuse/guestmount.pod:158
21175 msgid "Display help on special FUSE options (see I<-o> below)."
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../fuse/guestmount.pod:162
21180 msgid "Display brief help and exit."
21181 msgstr ""
21182
21183 #. type: textblock
21184 #: ../fuse/guestmount.pod:186
21185 msgid ""
21186 "Mount the named partition or logical volume on the given mountpoint B<in the "
21187 "guest> (this has nothing to do with mountpoints in the host)."
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../fuse/guestmount.pod:189
21192 msgid ""
21193 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21194 "something on C</>."
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../fuse/guestmount.pod:206
21199 msgid ""
21200 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21201 "unmounted.  If you specify this option, then we don't attempt to sync the "
21202 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21203 msgstr ""
21204
21205 #. type: =item
21206 #: ../fuse/guestmount.pod:211
21207 msgid "B<-o option>"
21208 msgstr ""
21209
21210 #. type: =item
21211 #: ../fuse/guestmount.pod:213
21212 msgid "B<--option option>"
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../fuse/guestmount.pod:215
21217 msgid "Pass extra options to FUSE."
21218 msgstr ""
21219
21220 #. type: textblock
21221 #: ../fuse/guestmount.pod:217
21222 msgid ""
21223 "To get a list of all the extra options supported by FUSE, use the command "
21224 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21225 "of them are a good idea."
21226 msgstr ""
21227
21228 #. type: verbatim
21229 #: ../fuse/guestmount.pod:221
21230 #, no-wrap
21231 msgid ""
21232 " guestmount --fuse-help\n"
21233 "\n"
21234 msgstr ""
21235
21236 #. type: textblock
21237 #: ../fuse/guestmount.pod:223
21238 msgid "Some potentially useful FUSE options:"
21239 msgstr ""
21240
21241 #. type: =item
21242 #: ../fuse/guestmount.pod:227
21243 msgid "B<-o allow_other>"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fuse/guestmount.pod:229
21248 msgid "Allow other users to see the filesystem."
21249 msgstr ""
21250
21251 #. type: =item
21252 #: ../fuse/guestmount.pod:231
21253 msgid "B<-o attr_timeout=N>"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../fuse/guestmount.pod:233
21258 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21259 msgstr ""
21260
21261 #. type: =item
21262 #: ../fuse/guestmount.pod:235
21263 msgid "B<-o kernel_cache>"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../fuse/guestmount.pod:237
21268 msgid ""
21269 "Allow the kernel to cache files (reduces the number of reads that have to go "
21270 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21271 "afford the extra memory usage."
21272 msgstr ""
21273
21274 #. type: =item
21275 #: ../fuse/guestmount.pod:241
21276 msgid "B<-o uid=N> B<-o gid=N>"
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../fuse/guestmount.pod:243
21281 msgid ""
21282 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21283 "the chosen values."
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../fuse/guestmount.pod:252
21288 msgid ""
21289 "Add devices and mount everything read-only.  Also disallow writes and make "
21290 "the disk appear read-only to FUSE."
21291 msgstr ""
21292
21293 #. type: textblock
21294 #: ../fuse/guestmount.pod:255
21295 msgid ""
21296 "This is highly recommended if you are not going to edit the guest disk.  If "
21297 "the guest is running and this option is I<not> supplied, then there is a "
21298 "strong risk of disk corruption in the guest.  We try to prevent this from "
21299 "happening, but it is not always possible."
21300 msgstr ""
21301
21302 #. type: textblock
21303 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21304 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../fuse/guestmount.pod:264
21309 msgid "Enable SELinux support for the guest."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../fuse/guestmount.pod:270
21314 msgid "Enable verbose messages from underlying libguestfs."
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../fuse/guestmount.pod:276
21319 msgid "Display the program version and exit."
21320 msgstr ""
21321
21322 #. type: textblock
21323 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21324 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21325 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21326 msgstr ""
21327
21328 #. type: =item
21329 #: ../fuse/guestmount.pod:289
21330 msgid "B<--trace>"
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../fuse/guestmount.pod:291
21335 msgid "Trace libguestfs calls and entry into each FUSE function."
21336 msgstr ""
21337
21338 #. type: textblock
21339 #: ../fuse/guestmount.pod:293
21340 msgid "This also stops the daemon from forking into the background."
21341 msgstr ""
21342
21343 #. type: textblock
21344 #: ../fuse/guestmount.pod:319
21345 msgid ""
21346 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21347 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21348 "net/>."
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fuse/guestmount.pod:334
21353 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../inspector/virt-inspector.pod:5
21358 msgid ""
21359 "virt-inspector - Display operating system version and other information "
21360 "about a virtual machine"
21361 msgstr ""
21362
21363 #. type: verbatim
21364 #: ../inspector/virt-inspector.pod:9
21365 #, no-wrap
21366 msgid ""
21367 " virt-inspector [--options] -d domname\n"
21368 "\n"
21369 msgstr ""
21370
21371 #. type: verbatim
21372 #: ../inspector/virt-inspector.pod:11
21373 #, no-wrap
21374 msgid ""
21375 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21376 "\n"
21377 msgstr ""
21378
21379 #. type: verbatim
21380 #: ../inspector/virt-inspector.pod:15
21381 #, no-wrap
21382 msgid ""
21383 " virt-inspector domname\n"
21384 "\n"
21385 msgstr ""
21386
21387 #. type: verbatim
21388 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21389 #, no-wrap
21390 msgid ""
21391 " virt-inspector disk.img [disk.img ...]\n"
21392 "\n"
21393 msgstr ""
21394
21395 #. type: textblock
21396 #: ../inspector/virt-inspector.pod:21
21397 msgid ""
21398 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21399 "determine the version of the operating system and other information about "
21400 "the virtual machine."
21401 msgstr ""
21402
21403 #. type: textblock
21404 #: ../inspector/virt-inspector.pod:25
21405 msgid "Virt-inspector produces XML output for feeding into other programs."
21406 msgstr ""
21407
21408 #. type: textblock
21409 #: ../inspector/virt-inspector.pod:27
21410 msgid ""
21411 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21412 "the libvirt domain (see: C<virsh list --all>)."
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../inspector/virt-inspector.pod:30
21417 msgid ""
21418 "You can also run virt-inspector directly on disk images from a single "
21419 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21420 "has several block devices, in which case you should list several I<-a> "
21421 "options one after another, with the first corresponding to the guest's C</"
21422 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../inspector/virt-inspector.pod:37
21427 msgid ""
21428 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21429 "keys and similar."
21430 msgstr ""
21431
21432 #. type: textblock
21433 #: ../inspector/virt-inspector.pod:40
21434 msgid ""
21435 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21436 "inspect several virtual machines, you have to run virt-inspector several "
21437 "times (for example, from a shell script for-loop)."
21438 msgstr ""
21439
21440 #. type: textblock
21441 #: ../inspector/virt-inspector.pod:45
21442 msgid ""
21443 "Because virt-inspector needs direct access to guest images, it won't "
21444 "normally work over remote libvirt connections."
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../inspector/virt-inspector.pod:48
21449 msgid ""
21450 "All of the information available from virt-inspector is also available "
21451 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21452 "The same information can also be fetched using guestfish or via libguestfs "
21453 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21454 "WITH OTHER PROGRAMMING LANGUAGES>)."
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../inspector/virt-inspector.pod:81
21459 msgid ""
21460 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21461 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21462 "at all."
21463 msgstr ""
21464
21465 #. type: textblock
21466 #: ../inspector/virt-inspector.pod:94
21467 msgid ""
21468 "When prompting for keys and passphrases, virt-inspector normally turns "
21469 "echoing off so you cannot see what you are typing.  If you are not worried "
21470 "about Tempest attacks and there is no one else in the room you can specify "
21471 "this flag to see what you are typing."
21472 msgstr ""
21473
21474 #. type: textblock
21475 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21476 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21477 #: ../tools/virt-win-reg.pl:144
21478 msgid ""
21479 "Specify the format of disk images given on the command line.  If this is "
21480 "omitted then the format is autodetected from the content of the disk image."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21485 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21486 #: ../tools/virt-win-reg.pl:148
21487 msgid ""
21488 "If disk images are requested from libvirt, then this program asks libvirt "
21489 "for this information.  In this case, the value of the format parameter is "
21490 "ignored."
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
21495 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
21496 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21497 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21498 msgid ""
21499 "If working with untrusted raw-format guest disk images, you should ensure "
21500 "the format is always specified."
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../inspector/virt-inspector.pod:139
21505 msgid "Previous versions of virt-inspector allowed you to write either:"
21506 msgstr ""
21507
21508 #. type: verbatim
21509 #: ../inspector/virt-inspector.pod:145
21510 #, no-wrap
21511 msgid ""
21512 " virt-inspector guestname\n"
21513 "\n"
21514 msgstr ""
21515
21516 #. type: =head1
21517 #: ../inspector/virt-inspector.pod:153
21518 msgid "XML FORMAT"
21519 msgstr ""
21520
21521 #. type: textblock
21522 #: ../inspector/virt-inspector.pod:155
21523 msgid ""
21524 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21525 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21526 "just an overview."
21527 msgstr ""
21528
21529 #. type: textblock
21530 #: ../inspector/virt-inspector.pod:159
21531 msgid ""
21532 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21533 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21534 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21535 "which is vanishingly rare in real world VMs."
21536 msgstr ""
21537
21538 #. type: =head2
21539 #: ../inspector/virt-inspector.pod:164
21540 msgid "E<lt>operatingsystemE<gt>"
21541 msgstr ""
21542
21543 #. type: textblock
21544 #: ../inspector/virt-inspector.pod:166
21545 msgid ""
21546 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21547 "describe the operating system, its architecture, the descriptive \"product "
21548 "name\" string, the type of OS and so on, as in this example:"
21549 msgstr ""
21550
21551 #. type: verbatim
21552 #: ../inspector/virt-inspector.pod:170
21553 #, no-wrap
21554 msgid ""
21555 " <operatingsystems>\n"
21556 "   <operatingsystem>\n"
21557 "     <root>/dev/sda2</root>\n"
21558 "     <name>windows</name>\n"
21559 "     <arch>i386</arch>\n"
21560 "     <distro>windows</distro>\n"
21561 "     <product_name>Windows 7 Enterprise</product_name>\n"
21562 "     <product_variant>Client</product_variant>\n"
21563 "     <major_version>6</major_version>\n"
21564 "     <minor_version>1</minor_version>\n"
21565 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21566 "     <format>installed</format>\n"
21567 "\n"
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../inspector/virt-inspector.pod:183
21572 msgid ""
21573 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21574 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21575 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21576 "architecture.  The other fields are fairly self-explanatory, but because "
21577 "these fields are taken directly from the libguestfs inspection API you can "
21578 "find precise information from L<guestfs(3)/INSPECTION>."
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../inspector/virt-inspector.pod:191
21583 msgid ""
21584 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21585 "of view of libguestfs (block devices may have completely different names "
21586 "inside the VM itself)."
21587 msgstr ""
21588
21589 #. type: =head2
21590 #: ../inspector/virt-inspector.pod:195
21591 msgid "E<lt>mountpointsE<gt>"
21592 msgstr ""
21593
21594 #. type: textblock
21595 #: ../inspector/virt-inspector.pod:197
21596 msgid ""
21597 "Un*x-like guests typically have multiple filesystems which are mounted at "
21598 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21599 "element which looks like this:"
21600 msgstr ""
21601
21602 #. type: verbatim
21603 #: ../inspector/virt-inspector.pod:201
21604 #, no-wrap
21605 msgid ""
21606 " <operatingsystems>\n"
21607 "   <operatingsystem>\n"
21608 "     ...\n"
21609 "     <mountpoints>\n"
21610 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21611 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21612 "     </mountpoints>\n"
21613 "\n"
21614 msgstr ""
21615
21616 #. type: textblock
21617 #: ../inspector/virt-inspector.pod:209
21618 msgid ""
21619 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21620 "and may have completely different names inside the guest.  Only mountable "
21621 "filesystems appear in this list, not things like swap devices."
21622 msgstr ""
21623
21624 #. type: =head2
21625 #: ../inspector/virt-inspector.pod:214
21626 msgid "E<lt>filesystemsE<gt>"
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../inspector/virt-inspector.pod:216
21631 msgid ""
21632 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21633 "filesystems belonging to the guest, including swap and empty partitions.  "
21634 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21635 "this OS or shared with this OS and other OSes)."
21636 msgstr ""
21637
21638 #. type: textblock
21639 #: ../inspector/virt-inspector.pod:222
21640 msgid "You might see something like this:"
21641 msgstr ""
21642
21643 #. type: verbatim
21644 #: ../inspector/virt-inspector.pod:224
21645 #, no-wrap
21646 msgid ""
21647 " <operatingsystems>\n"
21648 "   <operatingsystem>\n"
21649 "     ...\n"
21650 "     <filesystems>\n"
21651 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21652 "         <type>ext4</type>\n"
21653 "         <label>Fedora-13-x86_64</label>\n"
21654 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21655 "       </filesystem>\n"
21656 "\n"
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../inspector/virt-inspector.pod:234
21661 msgid ""
21662 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21663 "the label, and the UUID."
21664 msgstr ""
21665
21666 #. type: =head2
21667 #: ../inspector/virt-inspector.pod:237
21668 msgid "E<lt>applicationsE<gt>"
21669 msgstr ""
21670
21671 #. type: textblock
21672 #: ../inspector/virt-inspector.pod:239
21673 msgid ""
21674 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21675 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21676 "machine."
21677 msgstr ""
21678
21679 #. type: textblock
21680 #: ../inspector/virt-inspector.pod:243
21681 msgid ""
21682 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21683 "Typical values would be C<rpm> and C<deb>."
21684 msgstr ""
21685
21686 #. type: textblock
21687 #: ../inspector/virt-inspector.pod:246
21688 msgid ""
21689 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21690 "Typical values include C<yum>, C<up2date> and C<apt>"
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../inspector/virt-inspector.pod:249
21695 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21696 msgstr ""
21697
21698 #. type: verbatim
21699 #: ../inspector/virt-inspector.pod:252
21700 #, no-wrap
21701 msgid ""
21702 " <operatingsystems>\n"
21703 "   <operatingsystem>\n"
21704 "     ...\n"
21705 "     <applications>\n"
21706 "       <application>\n"
21707 "         <name>coreutils</name>\n"
21708 "         <version>8.5</version>\n"
21709 "         <release>1</release>\n"
21710 "       </application>\n"
21711 "\n"
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../inspector/virt-inspector.pod:262
21716 msgid ""
21717 "The version and release fields may not be available for some types guests.  "
21718 "Other fields are possible, see L<guestfs(3)/"
21719 "guestfs_inspect_list_applications>."
21720 msgstr ""
21721
21722 #. type: =head2
21723 #: ../inspector/virt-inspector.pod:266
21724 msgid "E<lt>drive_mappingsE<gt>"
21725 msgstr ""
21726
21727 #. type: textblock
21728 #: ../inspector/virt-inspector.pod:268
21729 msgid ""
21730 "For operating systems like Windows which use drive letters, virt-inspector "
21731 "is able to find out how drive letters map to filesystems."
21732 msgstr ""
21733
21734 #. type: verbatim
21735 #: ../inspector/virt-inspector.pod:272
21736 #, no-wrap
21737 msgid ""
21738 " <operatingsystems>\n"
21739 "   <operatingsystem>\n"
21740 "     ...\n"
21741 "     <drive_mappings>\n"
21742 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21743 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21744 "     </drive_mappings>\n"
21745 "\n"
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../inspector/virt-inspector.pod:280
21750 msgid ""
21751 "In the example above, drive C maps to the filesystem on the second partition "
21752 "on the first disk, and drive E maps to the filesystem on the first partition "
21753 "on the second disk."
21754 msgstr ""
21755
21756 #. type: textblock
21757 #: ../inspector/virt-inspector.pod:284
21758 msgid ""
21759 "Note that this only covers permanent local filesystem mappings, not things "
21760 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21761 "here."
21762 msgstr ""
21763
21764 #. type: =head2
21765 #: ../inspector/virt-inspector.pod:288
21766 msgid "E<lt>iconE<gt>"
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../inspector/virt-inspector.pod:290
21771 msgid ""
21772 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21773 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21774 "very large and high quality."
21775 msgstr ""
21776
21777 #. type: verbatim
21778 #: ../inspector/virt-inspector.pod:294
21779 #, no-wrap
21780 msgid ""
21781 " <operatingsystems>\n"
21782 "   <operatingsystem>\n"
21783 "     ...\n"
21784 "     <icon>\n"
21785 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21786 "       [... many lines of base64 data ...]\n"
21787 "     </icon>\n"
21788 "\n"
21789 msgstr ""
21790
21791 #. type: textblock
21792 #: ../inspector/virt-inspector.pod:302
21793 msgid ""
21794 "To display the icon, you have to extract it and convert the base64 data back "
21795 "to a binary file.  Use an XPath query or simply an editor to extract the "
21796 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21797 "to a PNG file:"
21798 msgstr ""
21799
21800 #. type: verbatim
21801 #: ../inspector/virt-inspector.pod:307
21802 #, no-wrap
21803 msgid ""
21804 " base64 -i -d < icon.data > icon.png\n"
21805 "\n"
21806 msgstr ""
21807
21808 #. type: =head2
21809 #: ../inspector/virt-inspector.pod:309
21810 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21811 msgstr ""
21812
21813 #. type: textblock
21814 #: ../inspector/virt-inspector.pod:311
21815 msgid ""
21816 "Virt-inspector can detect some operating system installers on install disks, "
21817 "live CDs, bootable USB keys and more."
21818 msgstr ""
21819
21820 #. type: textblock
21821 #: ../inspector/virt-inspector.pod:314
21822 msgid ""
21823 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21824 "fields may be present to indicate a live CD, network installer, or one part "
21825 "of a multipart CD.  For example:"
21826 msgstr ""
21827
21828 #. type: verbatim
21829 #: ../inspector/virt-inspector.pod:318
21830 #, no-wrap
21831 msgid ""
21832 " <operatingsystems>\n"
21833 "   <operatingsystem>\n"
21834 "     <root>/dev/sda</root>\n"
21835 "     <name>linux</name>\n"
21836 "     <arch>i386</arch>\n"
21837 "     <distro>ubuntu</distro>\n"
21838 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21839 "     <major_version>10</major_version>\n"
21840 "     <minor_version>10</minor_version>\n"
21841 "     <format>installer</format>\n"
21842 "     <live/>\n"
21843 "\n"
21844 msgstr ""
21845
21846 #. type: =head1
21847 #: ../inspector/virt-inspector.pod:330
21848 msgid "USING XPATH"
21849 msgstr ""
21850
21851 #. type: textblock
21852 #: ../inspector/virt-inspector.pod:332
21853 msgid ""
21854 "You can use the XPath query language to select parts of the XML.  We "
21855 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21856 msgstr ""
21857
21858 #. type: verbatim
21859 #: ../inspector/virt-inspector.pod:338
21860 #, no-wrap
21861 msgid ""
21862 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21863 " <filesystems>\n"
21864 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21865 "        <type>ext4</type>\n"
21866 " [...]\n"
21867 "\n"
21868 msgstr ""
21869
21870 #. type: verbatim
21871 #: ../inspector/virt-inspector.pod:344
21872 #, no-wrap
21873 msgid ""
21874 " $ virt-inspector -d Guest | \\\n"
21875 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21876 " ext4\n"
21877 "\n"
21878 msgstr ""
21879
21880 #. type: verbatim
21881 #: ../inspector/virt-inspector.pod:348
21882 #, no-wrap
21883 msgid ""
21884 " $ virt-inspector -d Guest | \\\n"
21885 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21886 " [displays the guest icon, if there is one]\n"
21887 "\n"
21888 msgstr ""
21889
21890 #. type: =head1
21891 #: ../inspector/virt-inspector.pod:359
21892 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../inspector/virt-inspector.pod:361
21897 msgid ""
21898 "Early versions of libguestfs shipped with a different virt-inspector program "
21899 "written in Perl (the current version is written in C).  The XML output of "
21900 "the Perl virt-inspector was different and it could also output in other "
21901 "formats like text."
21902 msgstr ""
21903
21904 #. type: textblock
21905 #: ../inspector/virt-inspector.pod:366
21906 msgid ""
21907 "The old virt-inspector is no longer supported or shipped with libguestfs."
21908 msgstr ""
21909
21910 #. type: textblock
21911 #: ../inspector/virt-inspector.pod:369
21912 msgid ""
21913 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21914 "versions of virt-inspector with different names:"
21915 msgstr ""
21916
21917 #. type: verbatim
21918 #: ../inspector/virt-inspector.pod:372
21919 #, no-wrap
21920 msgid ""
21921 " virt-inspector     Old Perl version.\n"
21922 " virt-inspector2    New C version.\n"
21923 "\n"
21924 msgstr ""
21925
21926 #. type: textblock
21927 #: ../inspector/virt-inspector.pod:382
21928 msgid ""
21929 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21930 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../inspector/virt-inspector.pod:399
21935 msgid "Matthew Booth L<mbooth@redhat.com>"
21936 msgstr ""
21937
21938 #. type: textblock
21939 #: ../java/examples/guestfs-java.pod:5
21940 msgid "guestfs-java - How to use libguestfs from Java"
21941 msgstr ""
21942
21943 #. type: verbatim
21944 #: ../java/examples/guestfs-java.pod:9
21945 #, no-wrap
21946 msgid ""
21947 " import com.redhat.et.libguestfs.*;\n"
21948 " \n"
21949 msgstr ""
21950
21951 #. type: verbatim
21952 #: ../java/examples/guestfs-java.pod:11
21953 #, no-wrap
21954 msgid ""
21955 " GuestFS g = new GuestFS ();\n"
21956 " g.add_drive_opts (\"disk.img\", null);\n"
21957 " g.launch ();\n"
21958 "\n"
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../java/examples/guestfs-java.pod:17
21963 msgid ""
21964 "This manual page documents how to call libguestfs from the Java programming "
21965 "language.  This page just documents the differences from the C API and gives "
21966 "some examples.  If you are not familiar with using libguestfs, you also need "
21967 "to read L<guestfs(3)>."
21968 msgstr ""
21969
21970 #. type: =head2
21971 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21972 msgid "CLOSING THE HANDLE"
21973 msgstr ""
21974
21975 #. type: textblock
21976 #: ../java/examples/guestfs-java.pod:24
21977 msgid ""
21978 "The handle is closed when it is reaped by the garbage collector.  Because "
21979 "libguestfs handles include a lot of state, it is also possible to close (and "
21980 "hence free) them explicitly by calling the C<close> method."
21981 msgstr ""
21982
21983 #. type: =head2
21984 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21985 #: ../python/examples/guestfs-python.pod:21
21986 #: ../ruby/examples/guestfs-ruby.pod:22
21987 msgid "EXCEPTIONS"
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../java/examples/guestfs-java.pod:31
21992 msgid ""
21993 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21994 "exception.  This has a single parameter which is the error message (a "
21995 "C<String>)."
21996 msgstr ""
21997
21998 #. type: textblock
21999 #: ../java/examples/guestfs-java.pod:35
22000 msgid "Calling any method on a closed handle raises the same exception."
22001 msgstr ""
22002
22003 #. type: textblock
22004 #: ../java/examples/guestfs-java.pod:47
22005 msgid ""
22006 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22007 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22008 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22009 msgstr ""
22010
22011 #. type: textblock
22012 #: ../ocaml/examples/guestfs-ocaml.pod:5
22013 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../ocaml/examples/guestfs-ocaml.pod:9
22018 msgid "Module style:"
22019 msgstr ""
22020
22021 #. type: verbatim
22022 #: ../ocaml/examples/guestfs-ocaml.pod:11
22023 #, no-wrap
22024 msgid ""
22025 " let g = Guestfs.create () in\n"
22026 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22027 " Guestfs.launch g;\n"
22028 "\n"
22029 msgstr ""
22030
22031 #. type: textblock
22032 #: ../ocaml/examples/guestfs-ocaml.pod:15
22033 msgid "Object-oriented style:"
22034 msgstr ""
22035
22036 #. type: verbatim
22037 #: ../ocaml/examples/guestfs-ocaml.pod:17
22038 #, no-wrap
22039 msgid ""
22040 " let g = new Guestfs.guestfs () in\n"
22041 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22042 " g#launch ();\n"
22043 "\n"
22044 msgstr ""
22045
22046 #. type: verbatim
22047 #: ../ocaml/examples/guestfs-ocaml.pod:21
22048 #, no-wrap
22049 msgid ""
22050 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22051 "or:\n"
22052 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22053 "\n"
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../ocaml/examples/guestfs-ocaml.pod:27
22058 msgid ""
22059 "This manual page documents how to call libguestfs from the OCaml programming "
22060 "language.  This page just documents the differences from the C API and gives "
22061 "some examples.  If you are not familiar with using libguestfs, you also need "
22062 "to read L<guestfs(3)>."
22063 msgstr ""
22064
22065 #. type: =head2
22066 #: ../ocaml/examples/guestfs-ocaml.pod:32
22067 msgid "PROGRAMMING STYLES"
22068 msgstr ""
22069
22070 #. type: textblock
22071 #: ../ocaml/examples/guestfs-ocaml.pod:34
22072 msgid ""
22073 "There are two different programming styles supported by the OCaml bindings.  "
22074 "You can use a module style, with each C function mapped to an OCaml function:"
22075 msgstr ""
22076
22077 #. type: verbatim
22078 #: ../ocaml/examples/guestfs-ocaml.pod:38
22079 #, no-wrap
22080 msgid ""
22081 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22082 "\n"
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../ocaml/examples/guestfs-ocaml.pod:40
22087 msgid "becomes:"
22088 msgstr ""
22089
22090 #. type: verbatim
22091 #: ../ocaml/examples/guestfs-ocaml.pod:42
22092 #, no-wrap
22093 msgid ""
22094 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22095 "\n"
22096 msgstr ""
22097
22098 #. type: textblock
22099 #: ../ocaml/examples/guestfs-ocaml.pod:44
22100 msgid ""
22101 "Alternately you can use an object-oriented style, calling methods on the "
22102 "class C<Guestfs.guestfs>:"
22103 msgstr ""
22104
22105 #. type: verbatim
22106 #: ../ocaml/examples/guestfs-ocaml.pod:47
22107 #, no-wrap
22108 msgid ""
22109 " method set_verbose : bool -> unit\n"
22110 "\n"
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../ocaml/examples/guestfs-ocaml.pod:49
22115 msgid ""
22116 "The object-oriented style is usually briefer, and the minor performance "
22117 "penalty isn't noticable in the general overhead of performing libguestfs "
22118 "functions."
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../ocaml/examples/guestfs-ocaml.pod:55
22123 msgid ""
22124 "The handle is closed when it is reaped by the garbage collector.  Because "
22125 "libguestfs handles include a lot of state, it is also possible to close (and "
22126 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22127 "method."
22128 msgstr ""
22129
22130 #. type: textblock
22131 #: ../ocaml/examples/guestfs-ocaml.pod:62
22132 msgid ""
22133 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22134 "exception.  This has a single parameter which is the error message (a "
22135 "string)."
22136 msgstr ""
22137
22138 #. type: textblock
22139 #: ../ocaml/examples/guestfs-ocaml.pod:66
22140 msgid ""
22141 "Calling any function/method on a closed handle raises C<Guestfs."
22142 "Handle_closed>.  The single parameter is the name of the function that you "
22143 "called."
22144 msgstr ""
22145
22146 #. type: textblock
22147 #: ../ocaml/examples/guestfs-ocaml.pod:80
22148 msgid ""
22149 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22150 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22151 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22152 msgstr ""
22153
22154 #. type: textblock
22155 #: ../perl/examples/guestfs-perl.pod:5
22156 msgid "guestfs-perl - How to use libguestfs from Perl"
22157 msgstr ""
22158
22159 #. type: verbatim
22160 #: ../perl/examples/guestfs-perl.pod:9
22161 #, no-wrap
22162 msgid ""
22163 " use Sys::Guestfs;\n"
22164 " \n"
22165 msgstr ""
22166
22167 #. type: verbatim
22168 #: ../perl/examples/guestfs-perl.pod:11
22169 #, no-wrap
22170 msgid ""
22171 " my $h = Sys::Guestfs->new ();\n"
22172 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22173 " $h->launch ();\n"
22174 " $h->mount_options ('', '/dev/sda1', '/');\n"
22175 " $h->touch ('/hello');\n"
22176 " $h->sync ();\n"
22177 "\n"
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../perl/examples/guestfs-perl.pod:20
22182 msgid ""
22183 "This manual page documents how to call libguestfs from the Perl programming "
22184 "language.  This page just documents the differences from the C API and gives "
22185 "some examples.  If you are not familiar with using libguestfs, you also need "
22186 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22187 msgstr ""
22188
22189 #. type: =head2
22190 #: ../perl/examples/guestfs-perl.pod:26
22191 msgid "ERRORS"
22192 msgstr ""
22193
22194 #. type: textblock
22195 #: ../perl/examples/guestfs-perl.pod:28
22196 msgid ""
22197 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22198 ">)."
22199 msgstr ""
22200
22201 #. type: textblock
22202 #: ../perl/examples/guestfs-perl.pod:41
22203 msgid ""
22204 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22205 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22206 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../python/examples/guestfs-python.pod:5
22211 msgid "guestfs-python - How to use libguestfs from Python"
22212 msgstr ""
22213
22214 #. type: verbatim
22215 #: ../python/examples/guestfs-python.pod:9
22216 #, no-wrap
22217 msgid ""
22218 " import guestfs\n"
22219 " g = guestfs.GuestFS ()\n"
22220 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22221 " g.launch\n"
22222 "\n"
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../python/examples/guestfs-python.pod:16
22227 msgid ""
22228 "This manual page documents how to call libguestfs from the Python "
22229 "programming language.  This page just documents the differences from the C "
22230 "API and gives some examples.  If you are not familiar with using libguestfs, "
22231 "you also need to read L<guestfs(3)>."
22232 msgstr ""
22233
22234 #. type: textblock
22235 #: ../python/examples/guestfs-python.pod:23
22236 msgid ""
22237 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22238 "single string argument which is the error message."
22239 msgstr ""
22240
22241 #. type: =head2
22242 #: ../python/examples/guestfs-python.pod:26
22243 msgid "MORE DOCUMENTATION"
22244 msgstr ""
22245
22246 #. type: textblock
22247 #: ../python/examples/guestfs-python.pod:28
22248 msgid "Type:"
22249 msgstr ""
22250
22251 #. type: verbatim
22252 #: ../python/examples/guestfs-python.pod:30
22253 #, no-wrap
22254 msgid ""
22255 " $ python\n"
22256 " >>> import guestfs\n"
22257 " >>> help (guestfs)\n"
22258 "\n"
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../python/examples/guestfs-python.pod:44
22263 msgid ""
22264 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22265 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22266 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../rescue/virt-rescue.pod:5
22271 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22272 msgstr ""
22273
22274 #. type: verbatim
22275 #: ../rescue/virt-rescue.pod:9
22276 #, no-wrap
22277 msgid ""
22278 " virt-rescue [--options] -d domname\n"
22279 "\n"
22280 msgstr ""
22281
22282 #. type: verbatim
22283 #: ../rescue/virt-rescue.pod:11
22284 #, no-wrap
22285 msgid ""
22286 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22287 "\n"
22288 msgstr ""
22289
22290 #. type: verbatim
22291 #: ../rescue/virt-rescue.pod:15
22292 #, no-wrap
22293 msgid ""
22294 " virt-rescue [--options] domname\n"
22295 "\n"
22296 msgstr ""
22297
22298 #. type: verbatim
22299 #: ../rescue/virt-rescue.pod:17
22300 #, no-wrap
22301 msgid ""
22302 " virt-rescue [--options] disk.img [disk.img ...]\n"
22303 "\n"
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../rescue/virt-rescue.pod:21
22308 msgid ""
22309 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22310 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22311 "you from doing this, but doesn't catch all cases."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../rescue/virt-rescue.pod:25
22316 msgid ""
22317 "However if you use the I<--ro> (read only) option, then you can attach a "
22318 "shell to a live virtual machine.  The results might be strange or "
22319 "inconsistent at times but you won't get disk corruption."
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../rescue/virt-rescue.pod:31
22324 msgid ""
22325 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22326 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22327 "recovery tools which you can use to examine or rescue a virtual machine or "
22328 "disk image."
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../rescue/virt-rescue.pod:36
22333 msgid ""
22334 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22335 "on disk image(s):"
22336 msgstr ""
22337
22338 #. type: verbatim
22339 #: ../rescue/virt-rescue.pod:39
22340 #, no-wrap
22341 msgid ""
22342 " virt-rescue -d GuestName\n"
22343 "\n"
22344 msgstr ""
22345
22346 #. type: verbatim
22347 #: ../rescue/virt-rescue.pod:41
22348 #, no-wrap
22349 msgid ""
22350 " virt-rescue --ro -a /path/to/disk.img\n"
22351 "\n"
22352 msgstr ""
22353
22354 #. type: verbatim
22355 #: ../rescue/virt-rescue.pod:43
22356 #, no-wrap
22357 msgid ""
22358 " virt-rescue -a /dev/sdc\n"
22359 "\n"
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../rescue/virt-rescue.pod:45
22364 msgid "For live VMs you I<must> use the --ro option."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../rescue/virt-rescue.pod:47
22369 msgid ""
22370 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22371 "in an interactive bash shell where you can use many ordinary Linux "
22372 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22373 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22374 "is an empty directory called C</sysroot> where you can mount filesystems."
22375 msgstr ""
22376
22377 #. type: textblock
22378 #: ../rescue/virt-rescue.pod:54
22379 msgid ""
22380 "In the example below, we list logical volumes, then choose one to mount "
22381 "under C</sysroot>:"
22382 msgstr ""
22383
22384 #. type: verbatim
22385 #: ../rescue/virt-rescue.pod:57
22386 #, no-wrap
22387 msgid ""
22388 " ><rescue> lvs\n"
22389 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22390 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22391 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22392 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22393 " ><rescue> ls /sysroot\n"
22394 "\n"
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../rescue/virt-rescue.pod:64
22399 msgid ""
22400 "If you don't know what filesystems are available on the virtual machine then "
22401 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22402 msgstr ""
22403
22404 #. type: textblock
22405 #: ../rescue/virt-rescue.pod:70
22406 msgid ""
22407 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22408 "virtual machine.  For example you can use it on a blank file if you want to "
22409 "partition that file (although we would recommend using L<guestfish(1)> "
22410 "instead as it is more suitable for this purpose).  You can even use virt-"
22411 "rescue on things like SD cards."
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../rescue/virt-rescue.pod:76
22416 msgid ""
22417 "Virt-rescue does not require root.  You only need to run it as root if you "
22418 "need root to open the disk image."
22419 msgstr ""
22420
22421 #. type: textblock
22422 #: ../rescue/virt-rescue.pod:79
22423 msgid ""
22424 "This tool is just designed for quick interactive hacking on a virtual "
22425 "machine.  For more structured access to a virtual machine disk image, you "
22426 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22427 "make scripted changes to guests, use L<guestfish(1)>."
22428 msgstr ""
22429
22430 #. type: =item
22431 #: ../rescue/virt-rescue.pod:103
22432 msgid "B<--append kernelopts>"
22433 msgstr ""
22434
22435 #. type: textblock
22436 #: ../rescue/virt-rescue.pod:105
22437 msgid "Pass additional options to the rescue kernel."
22438 msgstr ""
22439
22440 #. type: verbatim
22441 #: ../rescue/virt-rescue.pod:135
22442 #, no-wrap
22443 msgid ""
22444 " virt-rescue --format=raw -a disk.img\n"
22445 "\n"
22446 msgstr ""
22447
22448 #. type: verbatim
22449 #: ../rescue/virt-rescue.pod:139
22450 #, no-wrap
22451 msgid ""
22452 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22453 "\n"
22454 msgstr ""
22455
22456 #. type: =item
22457 #: ../rescue/virt-rescue.pod:148
22458 msgid "B<-m MB>"
22459 msgstr ""
22460
22461 #. type: =item
22462 #: ../rescue/virt-rescue.pod:150
22463 msgid "B<--memsize MB>"
22464 msgstr ""
22465
22466 #. type: textblock
22467 #: ../rescue/virt-rescue.pod:152
22468 msgid ""
22469 "Change the amount of memory allocated to the rescue system.  The default is "
22470 "set by libguestfs and is small but adequate for running system tools.  The "
22471 "occasional program might need more memory.  The parameter is specified in "
22472 "megabytes."
22473 msgstr ""
22474
22475 #. type: =item
22476 #: ../rescue/virt-rescue.pod:157
22477 msgid "B<--network>"
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../rescue/virt-rescue.pod:159
22482 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22483 msgstr ""
22484
22485 #. type: textblock
22486 #: ../rescue/virt-rescue.pod:165
22487 msgid "Open the image read-only."
22488 msgstr ""
22489
22490 #. type: textblock
22491 #: ../rescue/virt-rescue.pod:175
22492 msgid ""
22493 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22494 "SELINUX> before using this option."
22495 msgstr ""
22496
22497 #. type: =item
22498 #: ../rescue/virt-rescue.pod:178
22499 msgid "B<--smp> N"
22500 msgstr ""
22501
22502 #. type: textblock
22503 #: ../rescue/virt-rescue.pod:180
22504 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22505 msgstr ""
22506
22507 #. type: textblock
22508 #: ../rescue/virt-rescue.pod:198
22509 msgid ""
22510 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22511 "are done read-write."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../rescue/virt-rescue.pod:211
22516 msgid "Previous versions of virt-rescue allowed you to write either:"
22517 msgstr ""
22518
22519 #. type: verbatim
22520 #: ../rescue/virt-rescue.pod:213
22521 #, no-wrap
22522 msgid ""
22523 " virt-rescue disk.img [disk.img ...]\n"
22524 "\n"
22525 msgstr ""
22526
22527 #. type: verbatim
22528 #: ../rescue/virt-rescue.pod:217
22529 #, no-wrap
22530 msgid ""
22531 " virt-rescue guestname\n"
22532 "\n"
22533 msgstr ""
22534
22535 #. type: =head1
22536 #: ../rescue/virt-rescue.pod:225
22537 msgid "NETWORK"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../rescue/virt-rescue.pod:227
22542 msgid ""
22543 "Adding the I<--network> option enables QEMU user networking in the rescue "
22544 "appliance.  There are some differences between user networking and ordinary "
22545 "networking:"
22546 msgstr ""
22547
22548 #. type: =item
22549 #: ../rescue/virt-rescue.pod:233
22550 msgid "ping does not work"
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../rescue/virt-rescue.pod:235
22555 msgid ""
22556 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22557 "send the ping packets, and because virt-rescue must be able to run as non-"
22558 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22559 "The ping command will appear to resolve addresses but will not be able to "
22560 "send or receive any packets.  This does not mean that the network is not "
22561 "working."
22562 msgstr ""
22563
22564 #. type: =item
22565 #: ../rescue/virt-rescue.pod:242
22566 msgid "cannot receive connections"
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../rescue/virt-rescue.pod:244
22571 msgid "QEMU user networking cannot receive incoming connections."
22572 msgstr ""
22573
22574 #. type: =item
22575 #: ../rescue/virt-rescue.pod:246
22576 msgid "making TCP connections"
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../rescue/virt-rescue.pod:248
22581 msgid ""
22582 "The virt-rescue appliance needs to be small and so does not include many "
22583 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22584 "make TCP connections from the shell using the magical C</dev/tcp/"
22585 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22586 msgstr ""
22587
22588 #. type: verbatim
22589 #: ../rescue/virt-rescue.pod:253
22590 #, no-wrap
22591 msgid ""
22592 " exec 3<>/dev/tcp/redhat.com/80\n"
22593 " echo \"GET /\" >&3\n"
22594 " cat <&3\n"
22595 "\n"
22596 msgstr ""
22597
22598 #. type: textblock
22599 #: ../rescue/virt-rescue.pod:257
22600 msgid "See L<bash(1)> for more details."
22601 msgstr ""
22602
22603 #. type: textblock
22604 #: ../rescue/virt-rescue.pod:263
22605 msgid ""
22606 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22607 "ENVIRONMENT VARIABLES> for the complete list."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../rescue/virt-rescue.pod:290
22612 msgid ""
22613 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22614 "libguestfs.org/>."
22615 msgstr ""
22616
22617 #. type: textblock
22618 #: ../resize/virt-resize.pod:5
22619 msgid "virt-resize - Resize a virtual machine disk"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../resize/virt-resize.pod:9
22624 #, no-wrap
22625 msgid ""
22626 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22627 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22628 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22629 "\n"
22630 msgstr ""
22631
22632 #. type: textblock
22633 #: ../resize/virt-resize.pod:15
22634 msgid ""
22635 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22636 "larger or smaller overall, and resizing or deleting any partitions contained "
22637 "within."
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../resize/virt-resize.pod:19
22642 msgid ""
22643 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22644 "not> be used on live virtual machines - for consistent results, shut the "
22645 "virtual machine down before resizing it."
22646 msgstr ""
22647
22648 #. type: textblock
22649 #: ../resize/virt-resize.pod:23
22650 msgid ""
22651 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22652 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22653 msgstr ""
22654
22655 #. type: =item
22656 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22657 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22658 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
22659 msgid "1."
22660 msgstr ""
22661
22662 #. type: textblock
22663 #: ../resize/virt-resize.pod:33
22664 msgid ""
22665 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22666 "fill the extra 5GB of space."
22667 msgstr ""
22668
22669 #. type: verbatim
22670 #: ../resize/virt-resize.pod:36
22671 #, no-wrap
22672 msgid ""
22673 " virt-filesystems --long -h --all -a olddisk\n"
22674 " \n"
22675 msgstr ""
22676
22677 #. type: verbatim
22678 #: ../resize/virt-resize.pod:38
22679 #, no-wrap
22680 msgid ""
22681 " truncate -r olddisk newdisk\n"
22682 " truncate -s +5G newdisk\n"
22683 " \n"
22684 msgstr ""
22685
22686 #. type: verbatim
22687 #: ../resize/virt-resize.pod:41
22688 #, no-wrap
22689 msgid ""
22690 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22691 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22692 "\n"
22693 msgstr ""
22694
22695 #. type: =item
22696 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22697 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22698 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
22699 msgid "2."
22700 msgstr ""
22701
22702 #. type: textblock
22703 #: ../resize/virt-resize.pod:46
22704 msgid ""
22705 "As above, but make the /boot partition 200MB bigger, while giving the "
22706 "remaining space to /dev/sda2:"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../resize/virt-resize.pod:49
22711 #, no-wrap
22712 msgid ""
22713 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22714 "   olddisk newdisk\n"
22715 "\n"
22716 msgstr ""
22717
22718 #. type: =item
22719 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22720 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22721 #: ../src/guestfs.pod:1436
22722 msgid "3."
22723 msgstr ""
22724
22725 #. type: textblock
22726 #: ../resize/virt-resize.pod:54
22727 msgid ""
22728 "As in the first example, but expand a logical volume as the final step.  "
22729 "This is what you would typically use for Linux guests that use LVM:"
22730 msgstr ""
22731
22732 #. type: verbatim
22733 #: ../resize/virt-resize.pod:58
22734 #, no-wrap
22735 msgid ""
22736 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22737 "   olddisk newdisk\n"
22738 "\n"
22739 msgstr ""
22740
22741 #. type: =item
22742 #: ../resize/virt-resize.pod:61
22743 msgid "4."
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../resize/virt-resize.pod:63
22748 msgid ""
22749 "As in the first example, but the output format will be qcow2 instead of a "
22750 "raw disk:"
22751 msgstr ""
22752
22753 #. type: verbatim
22754 #: ../resize/virt-resize.pod:66
22755 #, no-wrap
22756 msgid ""
22757 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22758 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22759 "\n"
22760 msgstr ""
22761
22762 #. type: =head1
22763 #: ../resize/virt-resize.pod:71
22764 msgid "DETAILED USAGE"
22765 msgstr ""
22766
22767 #. type: =head2
22768 #: ../resize/virt-resize.pod:73
22769 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22770 msgstr ""
22771
22772 #. type: =item
22773 #: ../resize/virt-resize.pod:77
22774 msgid "1. Shut down the virtual machine"
22775 msgstr ""
22776
22777 #. type: =item
22778 #: ../resize/virt-resize.pod:79
22779 msgid "2. Locate input disk image"
22780 msgstr ""
22781
22782 #. type: textblock
22783 #: ../resize/virt-resize.pod:81
22784 msgid ""
22785 "Locate the input disk image (ie. the file or device on the host containing "
22786 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22787 "dumpxml> like this to find the disk image name:"
22788 msgstr ""
22789
22790 #. type: verbatim
22791 #: ../resize/virt-resize.pod:85
22792 #, no-wrap
22793 msgid ""
22794 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22795 " Found 1 nodes:\n"
22796 " -- NODE --\n"
22797 " <source dev=\"/dev/vg/lv_guest\" />\n"
22798 "\n"
22799 msgstr ""
22800
22801 #. type: =item
22802 #: ../resize/virt-resize.pod:90
22803 msgid "3. Look at current sizing"
22804 msgstr ""
22805
22806 #. type: textblock
22807 #: ../resize/virt-resize.pod:92
22808 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22809 msgstr ""
22810
22811 #. type: verbatim
22812 #: ../resize/virt-resize.pod:95
22813 #, no-wrap
22814 msgid ""
22815 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22816 " Name       Type       Size  Parent\n"
22817 " /dev/sda1  partition  101M  /dev/sda\n"
22818 " /dev/sda2  partition  7.9G  /dev/sda\n"
22819 " /dev/sda   device     8.0G  -\n"
22820 "\n"
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../resize/virt-resize.pod:101
22825 msgid ""
22826 "(This example is a virtual machine with an 8 GB disk which we would like to "
22827 "expand up to 10 GB)."
22828 msgstr ""
22829
22830 #. type: =item
22831 #: ../resize/virt-resize.pod:104
22832 msgid "4. Create output disk"
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../resize/virt-resize.pod:106
22837 msgid ""
22838 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22839 "to store the resized output disk."
22840 msgstr ""
22841
22842 #. type: textblock
22843 #: ../resize/virt-resize.pod:109
22844 msgid ""
22845 "To store the resized disk image in a file, create a file of a suitable size:"
22846 msgstr ""
22847
22848 #. type: verbatim
22849 #: ../resize/virt-resize.pod:112
22850 #, no-wrap
22851 msgid ""
22852 " # rm -f outdisk\n"
22853 " # truncate -s 10G outdisk\n"
22854 "\n"
22855 msgstr ""
22856
22857 #. type: textblock
22858 #: ../resize/virt-resize.pod:115
22859 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22860 msgstr ""
22861
22862 #. type: verbatim
22863 #: ../resize/virt-resize.pod:117
22864 #, no-wrap
22865 msgid ""
22866 " # lvcreate -L 10G -n lv_name vg_name\n"
22867 "\n"
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../resize/virt-resize.pod:119
22872 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22873 msgstr ""
22874
22875 #. type: verbatim
22876 #: ../resize/virt-resize.pod:121
22877 #, no-wrap
22878 msgid ""
22879 " # virsh pool-list\n"
22880 " # virsh vol-create-as poolname newvol 10G\n"
22881 "\n"
22882 msgstr ""
22883
22884 #. type: =item
22885 #: ../resize/virt-resize.pod:124
22886 msgid "5. Resize"
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../resize/virt-resize.pod:126
22891 msgid ""
22892 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22893 "file) and the output disk.  The output disk is the one created in the "
22894 "previous step."
22895 msgstr ""
22896
22897 #. type: verbatim
22898 #: ../resize/virt-resize.pod:130
22899 #, no-wrap
22900 msgid ""
22901 " # virt-resize indisk outdisk\n"
22902 "\n"
22903 msgstr ""
22904
22905 #. type: textblock
22906 #: ../resize/virt-resize.pod:132
22907 msgid ""
22908 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22909 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22910 "larger, then an extra, empty partition is created at the end of the disk "
22911 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22912 "error."
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../resize/virt-resize.pod:138
22917 msgid ""
22918 "More realistically you'd want to expand existing partitions in the disk "
22919 "image by passing extra options (for the full list see the L</OPTIONS> "
22920 "section below)."
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../resize/virt-resize.pod:142
22925 msgid ""
22926 "L</--expand> is the most useful option.  It expands the named partition "
22927 "within the disk to fill any extra space:"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../resize/virt-resize.pod:145
22932 #, no-wrap
22933 msgid ""
22934 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22935 "\n"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../resize/virt-resize.pod:147
22940 msgid ""
22941 "(In this case, an extra partition is I<not> created at the end of the disk, "
22942 "because there will be no unused space)."
22943 msgstr ""
22944
22945 #. type: textblock
22946 #: ../resize/virt-resize.pod:150
22947 msgid ""
22948 "L</--resize> is the other commonly used option.  The following would "
22949 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22950 "rest of the available space:"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../resize/virt-resize.pod:154
22955 #, no-wrap
22956 msgid ""
22957 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22958 "     indisk outdisk\n"
22959 "\n"
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../resize/virt-resize.pod:157
22964 msgid ""
22965 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22966 "if virt-resize knows how, it will resize the contents, the equivalent of "
22967 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22968 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22969 "filesystems, so you would have to online resize them after booting the guest."
22970 msgstr ""
22971
22972 #. type: textblock
22973 #: ../resize/virt-resize.pod:164
22974 msgid "Other options are covered below."
22975 msgstr ""
22976
22977 #. type: =item
22978 #: ../resize/virt-resize.pod:166
22979 msgid "6. Test"
22980 msgstr ""
22981
22982 #. type: textblock
22983 #: ../resize/virt-resize.pod:168
22984 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22985 msgstr ""
22986
22987 #. type: textblock
22988 #: ../resize/virt-resize.pod:170
22989 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../resize/virt-resize.pod:172
22994 #, no-wrap
22995 msgid ""
22996 " # virsh edit guestname\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../resize/virt-resize.pod:174
23002 msgid ""
23003 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23004 "html#elementsDisks>"
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../resize/virt-resize.pod:177
23009 msgid "Then start up the domain with the new, resized disk:"
23010 msgstr ""
23011
23012 #. type: verbatim
23013 #: ../resize/virt-resize.pod:179
23014 #, no-wrap
23015 msgid ""
23016 " # virsh start guestname\n"
23017 "\n"
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../resize/virt-resize.pod:181
23022 msgid ""
23023 "and check that it still works.  See also the L</NOTES> section below for "
23024 "additional information."
23025 msgstr ""
23026
23027 #. type: =item
23028 #: ../resize/virt-resize.pod:184
23029 msgid "7. Resize LVs etc inside the guest"
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../resize/virt-resize.pod:186
23034 msgid "(This can also be done offline using L<guestfish(1)>)"
23035 msgstr ""
23036
23037 #. type: textblock
23038 #: ../resize/virt-resize.pod:188
23039 msgid ""
23040 "Once the guest has booted you should see the new space available, at least "
23041 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23042 "may need to resize LVs inside PVs, and also resize filesystem types that "
23043 "virt-resize does not know how to expand."
23044 msgstr ""
23045
23046 #. type: =head2
23047 #: ../resize/virt-resize.pod:195
23048 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23049 msgstr ""
23050
23051 #. type: textblock
23052 #: ../resize/virt-resize.pod:197
23053 msgid ""
23054 "Shrinking is somewhat more complex than expanding, and only an overview is "
23055 "given here."
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../resize/virt-resize.pod:200
23060 msgid ""
23061 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23062 "filesystems).  The user has to shrink content before passing the disk image "
23063 "to virt-resize, and virt-resize will check that the content has been shrunk "
23064 "properly."
23065 msgstr ""
23066
23067 #. type: textblock
23068 #: ../resize/virt-resize.pod:205
23069 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../resize/virt-resize.pod:207
23074 msgid ""
23075 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23076 "steps 3 and 4 above to allocate a new disk image."
23077 msgstr ""
23078
23079 #. type: textblock
23080 #: ../resize/virt-resize.pod:210
23081 msgid ""
23082 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23083 msgstr ""
23084
23085 #. type: =head2
23086 #: ../resize/virt-resize.pod:213
23087 msgid "IGNORING OR DELETING PARTITIONS"
23088 msgstr ""
23089
23090 #. type: textblock
23091 #: ../resize/virt-resize.pod:215
23092 msgid ""
23093 "virt-resize also gives a convenient way to ignore or delete partitions when "
23094 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23095 "up the copy where you don't care about the existing contents of a "
23096 "partition.  Deleting a partition removes it completely, but note that it "
23097 "also renumbers any partitions after the one which is deleted, which can "
23098 "leave some guests unbootable."
23099 msgstr ""
23100
23101 #. type: =head2
23102 #: ../resize/virt-resize.pod:222
23103 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../resize/virt-resize.pod:224
23108 msgid ""
23109 "If the input disk is in qcow2 format, then you may prefer that the output is "
23110 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23111 "the fly.  The output format is simply determined by the format of the empty "
23112 "output container that you provide.  Thus to create qcow2 output, use:"
23113 msgstr ""
23114
23115 #. type: verbatim
23116 #: ../resize/virt-resize.pod:230
23117 #, no-wrap
23118 msgid ""
23119 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23120 "\n"
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../resize/virt-resize.pod:232
23125 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../resize/virt-resize.pod:234
23130 msgid "Similarly, to get non-sparse raw output use:"
23131 msgstr ""
23132
23133 #. type: verbatim
23134 #: ../resize/virt-resize.pod:236
23135 #, no-wrap
23136 msgid ""
23137 " fallocate -l size outdisk\n"
23138 "\n"
23139 msgstr ""
23140
23141 #. type: textblock
23142 #: ../resize/virt-resize.pod:238
23143 msgid ""
23144 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23145 "dev/zero of=outdisk bs=1M count=..>)"
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23150 msgid "Display help."
23151 msgstr ""
23152
23153 #. type: =item
23154 #: ../resize/virt-resize.pod:249
23155 msgid "B<-d>"
23156 msgstr ""
23157
23158 #. type: =item
23159 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
23160 #: ../tools/virt-win-reg.pl:120
23161 msgid "B<--debug>"
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
23166 msgid "Enable debugging messages."
23167 msgstr ""
23168
23169 #. type: =item
23170 #: ../resize/virt-resize.pod:255
23171 msgid "B<--delete part>"
23172 msgstr ""
23173
23174 #. type: textblock
23175 #: ../resize/virt-resize.pod:257
23176 msgid ""
23177 "Delete the named partition.  It would be more accurate to describe this as "
23178 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23179 "the original disk image is left intact."
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../resize/virt-resize.pod:261
23184 msgid ""
23185 "Note that when you delete a partition, then anything contained in the "
23186 "partition is also deleted.  Furthermore, this causes any partitions that "
23187 "come after to be I<renumbered>, which can easily make your guest unbootable."
23188 msgstr ""
23189
23190 #. type: textblock
23191 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
23192 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
23193 msgid "You can give this option multiple times."
23194 msgstr ""
23195
23196 #. type: =item
23197 #: ../resize/virt-resize.pod:268
23198 msgid "B<--expand part>"
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../resize/virt-resize.pod:270
23203 msgid ""
23204 "Expand the named partition so it uses up all extra space (space left over "
23205 "after any other resize changes that you request have been done)."
23206 msgstr ""
23207
23208 #. type: textblock
23209 #: ../resize/virt-resize.pod:273
23210 msgid ""
23211 "If virt-resize knows how, it will expand the direct content of the "
23212 "partition.  For example, if the partition is an LVM PV, it will expand the "
23213 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23214 "content it doesn't know about alone."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../resize/virt-resize.pod:278
23219 msgid "Currently virt-resize can resize:"
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../resize/virt-resize.pod:284
23224 msgid "ext2, ext3 and ext4 filesystems."
23225 msgstr ""
23226
23227 #. type: textblock
23228 #: ../resize/virt-resize.pod:288
23229 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23230 msgstr ""
23231
23232 #. type: textblock
23233 #: ../resize/virt-resize.pod:290
23234 msgid ""
23235 "The filesystem must have been shut down consistently last time it was used.  "
23236 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23237 "consistency check, so at the first boot after resizing Windows will check "
23238 "the disk."
23239 msgstr ""
23240
23241 #. type: textblock
23242 #: ../resize/virt-resize.pod:297
23243 msgid ""
23244 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23245 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23246 "resize LVs as desired after boot."
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../resize/virt-resize.pod:303
23251 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
23256 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23257 msgstr ""
23258
23259 #. type: =item
23260 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
23261 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23262 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23263 msgid "B<--format> raw"
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
23268 msgid ""
23269 "Specify the format of the input disk image.  If this flag is not given then "
23270 "it is auto-detected from the image itself."
23271 msgstr ""
23272
23273 #. type: textblock
23274 #: ../resize/virt-resize.pod:317
23275 msgid ""
23276 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23277 "AND NON-SPARSE RAW FORMATS>."
23278 msgstr ""
23279
23280 #. type: =item
23281 #: ../resize/virt-resize.pod:320
23282 msgid "B<--ignore part>"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../resize/virt-resize.pod:322
23287 msgid ""
23288 "Ignore the named partition.  Effectively this means the partition is "
23289 "allocated on the destination disk, but the content is not copied across from "
23290 "the source disk.  The content of the partition will be blank (all zero "
23291 "bytes)."
23292 msgstr ""
23293
23294 #. type: =item
23295 #: ../resize/virt-resize.pod:329
23296 msgid "B<--LV-expand logvol>"
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../resize/virt-resize.pod:331
23301 msgid ""
23302 "This takes the logical volume and, as a final step, expands it to fill all "
23303 "the space available in its volume group.  A typical usage, assuming a Linux "
23304 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23305 "lv_root> would be:"
23306 msgstr ""
23307
23308 #. type: verbatim
23309 #: ../resize/virt-resize.pod:336
23310 #, no-wrap
23311 msgid ""
23312 " virt-resize indisk outdisk \\\n"
23313 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23314 "\n"
23315 msgstr ""
23316
23317 #. type: textblock
23318 #: ../resize/virt-resize.pod:339
23319 msgid ""
23320 "This would first expand the partition (and PV), and then expand the root "
23321 "device to fill the extra space in the PV."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../resize/virt-resize.pod:342
23326 msgid ""
23327 "The contents of the LV are also resized if virt-resize knows how to do "
23328 "that.  You can stop virt-resize from trying to expand the content by using "
23329 "the option I<--no-expand-content>."
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../resize/virt-resize.pod:346
23334 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23335 msgstr ""
23336
23337 #. type: textblock
23338 #: ../resize/virt-resize.pod:348
23339 msgid ""
23340 "You can give this option multiple times, I<but> it doesn't make sense to do "
23341 "this unless the logical volumes you specify are all in different volume "
23342 "groups."
23343 msgstr ""
23344
23345 #. type: =item
23346 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
23347 msgid "B<--machine-readable>"
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
23352 msgid ""
23353 "This option is used to make the output more machine friendly when being "
23354 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23355 msgstr ""
23356
23357 #. type: =item
23358 #: ../resize/virt-resize.pod:360
23359 msgid "B<--dryrun>"
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../resize/virt-resize.pod:362
23364 msgid "Print a summary of what would be done, but don't do anything."
23365 msgstr ""
23366
23367 #. type: =item
23368 #: ../resize/virt-resize.pod:364
23369 msgid "B<--no-copy-boot-loader>"
23370 msgstr ""
23371
23372 #. type: textblock
23373 #: ../resize/virt-resize.pod:366
23374 msgid ""
23375 "By default, virt-resize copies over some sectors at the start of the disk "
23376 "(up to the beginning of the first partition).  Commonly these sectors "
23377 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23378 "in order for the guest to boot correctly."
23379 msgstr ""
23380
23381 #. type: textblock
23382 #: ../resize/virt-resize.pod:371
23383 msgid ""
23384 "If you specify this flag, then this initial copy is not done.  You may need "
23385 "to reinstall the boot loader in this case."
23386 msgstr ""
23387
23388 #. type: =item
23389 #: ../resize/virt-resize.pod:374
23390 msgid "B<--no-extra-partition>"
23391 msgstr ""
23392
23393 #. type: textblock
23394 #: ../resize/virt-resize.pod:376
23395 msgid ""
23396 "By default, virt-resize creates an extra partition if there is any extra, "
23397 "unused space after all resizing has happened.  Use this option to prevent "
23398 "the extra partition from being created.  If you do this then the extra space "
23399 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23400 "tool in the guest."
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../resize/virt-resize.pod:382
23405 msgid ""
23406 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23407 "will be created."
23408 msgstr ""
23409
23410 #. type: =item
23411 #: ../resize/virt-resize.pod:385
23412 msgid "B<--no-expand-content>"
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../resize/virt-resize.pod:387
23417 msgid ""
23418 "By default, virt-resize will try to expand the direct contents of "
23419 "partitions, if it knows how (see I<--expand> option above)."
23420 msgstr ""
23421
23422 #. type: textblock
23423 #: ../resize/virt-resize.pod:390
23424 msgid ""
23425 "If you give the I<--no-expand-content> option then virt-resize will not "
23426 "attempt this."
23427 msgstr ""
23428
23429 #. type: =item
23430 #: ../resize/virt-resize.pod:393
23431 msgid "B<--ntfsresize-force>"
23432 msgstr ""
23433
23434 #. type: textblock
23435 #: ../resize/virt-resize.pod:395
23436 msgid ""
23437 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23438 "the NTFS disk is marked as needing a consistency check.  You have to use "
23439 "this option if you want to resize a Windows guest multiple times without "
23440 "booting into Windows between each resize."
23441 msgstr ""
23442
23443 #. type: =item
23444 #: ../resize/virt-resize.pod:401
23445 msgid "B<--output-format> raw"
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../resize/virt-resize.pod:403
23450 msgid ""
23451 "Specify the format of the output disk image.  If this flag is not given then "
23452 "it is auto-detected from the image itself."
23453 msgstr ""
23454
23455 #. type: textblock
23456 #: ../resize/virt-resize.pod:409
23457 msgid ""
23458 "Note that this option I<does not create> the output format.  This option "
23459 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23460 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23461 "SPARSE RAW FORMATS>."
23462 msgstr ""
23463
23464 #. type: textblock
23465 #: ../resize/virt-resize.pod:418
23466 msgid "Don't print the summary."
23467 msgstr ""
23468
23469 #. type: =item
23470 #: ../resize/virt-resize.pod:420
23471 msgid "B<--resize part=size>"
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../resize/virt-resize.pod:422
23476 msgid ""
23477 "Resize the named partition (expanding or shrinking it) so that it has the "
23478 "given size."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../resize/virt-resize.pod:425
23483 msgid ""
23484 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23485 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23486 "size; or as a relative number or percentage.  For example:"
23487 msgstr ""
23488
23489 #. type: verbatim
23490 #: ../resize/virt-resize.pod:431
23491 #, no-wrap
23492 msgid ""
23493 " --resize /dev/sda2=10G\n"
23494 "\n"
23495 msgstr ""
23496
23497 #. type: verbatim
23498 #: ../resize/virt-resize.pod:433
23499 #, no-wrap
23500 msgid ""
23501 " --resize /dev/sda4=90%\n"
23502 "\n"
23503 msgstr ""
23504
23505 #. type: verbatim
23506 #: ../resize/virt-resize.pod:435
23507 #, no-wrap
23508 msgid ""
23509 " --resize /dev/sda2=+1G\n"
23510 "\n"
23511 msgstr ""
23512
23513 #. type: verbatim
23514 #: ../resize/virt-resize.pod:437
23515 #, no-wrap
23516 msgid ""
23517 " --resize /dev/sda2=-200M\n"
23518 "\n"
23519 msgstr ""
23520
23521 #. type: verbatim
23522 #: ../resize/virt-resize.pod:439
23523 #, no-wrap
23524 msgid ""
23525 " --resize /dev/sda1=+128K\n"
23526 "\n"
23527 msgstr ""
23528
23529 #. type: verbatim
23530 #: ../resize/virt-resize.pod:441
23531 #, no-wrap
23532 msgid ""
23533 " --resize /dev/sda1=+10%\n"
23534 "\n"
23535 msgstr ""
23536
23537 #. type: verbatim
23538 #: ../resize/virt-resize.pod:443
23539 #, no-wrap
23540 msgid ""
23541 " --resize /dev/sda1=-10%\n"
23542 "\n"
23543 msgstr ""
23544
23545 #. type: textblock
23546 #: ../resize/virt-resize.pod:445
23547 msgid ""
23548 "You can increase the size of any partition.  Virt-resize will expand the "
23549 "direct content of the partition if it knows how (see I<--expand> below)."
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../resize/virt-resize.pod:449
23554 msgid ""
23555 "You can only I<decrease> the size of partitions that contain filesystems or "
23556 "PVs which have already been shrunk.  Virt-resize will check this has been "
23557 "done before proceeding, or else will print an error (see also I<--resize-"
23558 "force>)."
23559 msgstr ""
23560
23561 #. type: =item
23562 #: ../resize/virt-resize.pod:456
23563 msgid "B<--resize-force part=size>"
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../resize/virt-resize.pod:458
23568 msgid ""
23569 "This is the same as I<--resize> except that it will let you decrease the "
23570 "size of any partition.  Generally this means you will lose any data which "
23571 "was at the end of the partition you shrink, but you may not care about that "
23572 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23573 "as a swap partition)."
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../resize/virt-resize.pod:464
23578 msgid "See also the I<--ignore> option."
23579 msgstr ""
23580
23581 #. type: =item
23582 #: ../resize/virt-resize.pod:466
23583 msgid "B<--shrink part>"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../resize/virt-resize.pod:468
23588 msgid ""
23589 "Shrink the named partition until the overall disk image fits in the "
23590 "destination.  The named partition B<must> contain a filesystem or PV which "
23591 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23592 "online tools).  Virt-resize will check this and give an error if it has not "
23593 "been done."
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../resize/virt-resize.pod:474
23598 msgid ""
23599 "The amount by which the overall disk must be shrunk (after carrying out all "
23600 "other operations requested by the user) is called the \"deficit\".  For "
23601 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23602 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23603 "would give an error unless the user specified a partition to shrink and that "
23604 "partition had more than a gigabyte of free space."
23605 msgstr ""
23606
23607 #. type: =head1
23608 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
23609 msgid "MACHINE READABLE OUTPUT"
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../resize/virt-resize.pod:494
23614 msgid ""
23615 "The I<--machine-readable> option can be used to make the output more machine "
23616 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23617 "etc."
23618 msgstr ""
23619
23620 #. type: textblock
23621 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
23622 msgid "There are two ways to use this option."
23623 msgstr ""
23624
23625 #. type: textblock
23626 #: ../resize/virt-resize.pod:500
23627 msgid ""
23628 "Firstly use the option on its own to query the capabilities of the virt-"
23629 "resize binary.  Typical output looks like this:"
23630 msgstr ""
23631
23632 #. type: verbatim
23633 #: ../resize/virt-resize.pod:503
23634 #, no-wrap
23635 msgid ""
23636 " $ virt-resize --machine-readable\n"
23637 " virt-resize\n"
23638 " ntfsresize-force\n"
23639 " 32bitok\n"
23640 " ntfs\n"
23641 " btrfs\n"
23642 "\n"
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
23647 msgid ""
23648 "A list of features is printed, one per line, and the program exits with "
23649 "status 0."
23650 msgstr ""
23651
23652 #. type: textblock
23653 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
23654 msgid ""
23655 "Secondly use the option in conjunction with other options to make the "
23656 "regular program output more machine friendly."
23657 msgstr ""
23658
23659 #. type: textblock
23660 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
23661 msgid "At the moment this means:"
23662 msgstr ""
23663
23664 #. type: textblock
23665 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
23666 msgid ""
23667 "Progress bar messages can be parsed from stdout by looking for this regular "
23668 "expression:"
23669 msgstr ""
23670
23671 #. type: verbatim
23672 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
23673 #, no-wrap
23674 msgid ""
23675 " ^[0-9]+/[0-9]+$\n"
23676 "\n"
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
23681 msgid ""
23682 "The calling program should treat messages sent to stdout (except for "
23683 "progress bar messages) as status messages.  They can be logged and/or "
23684 "displayed to the user."
23685 msgstr ""
23686
23687 #. type: textblock
23688 #: ../resize/virt-resize.pod:535
23689 msgid ""
23690 "The calling program should treat messages sent to stderr as error messages.  "
23691 "In addition, virt-resize exits with a non-zero status code if there was a "
23692 "fatal error."
23693 msgstr ""
23694
23695 #. type: textblock
23696 #: ../resize/virt-resize.pod:541
23697 msgid ""
23698 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23699 "readable> option and will return an error."
23700 msgstr ""
23701
23702 #. type: =head2
23703 #: ../resize/virt-resize.pod:546
23704 msgid "\"Partition 1 does not end on cylinder boundary.\""
23705 msgstr ""
23706
23707 #. type: textblock
23708 #: ../resize/virt-resize.pod:548
23709 msgid ""
23710 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23711 "means the partitions will not be aligned to the ancient CHS geometry.  "
23712 "However CHS geometry is meaningless for disks manufactured since the early "
23713 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23714 "cylinders is not required by any modern operating system."
23715 msgstr ""
23716
23717 #. type: =head2
23718 #: ../resize/virt-resize.pod:555
23719 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23720 msgstr ""
23721
23722 #. type: textblock
23723 #: ../resize/virt-resize.pod:557
23724 msgid ""
23725 "In Windows Vista and later versions, Microsoft switched to using a separate "
23726 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23727 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23728 "the boot partition.  Doing so seems to break the guest completely.  However "
23729 "expanding the second partition (ie. C: drive) should work."
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../resize/virt-resize.pod:564
23734 msgid ""
23735 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23736 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23737 "it find errors) is nothing to worry about."
23738 msgstr ""
23739
23740 #. type: =head2
23741 #: ../resize/virt-resize.pod:568
23742 msgid "GUEST BOOT STUCK AT \"GRUB\""
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../resize/virt-resize.pod:570
23747 msgid ""
23748 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23749 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23750 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23751 "although we think is to do with partition alignment."
23752 msgstr ""
23753
23754 #. type: verbatim
23755 #: ../resize/virt-resize.pod:575
23756 #, no-wrap
23757 msgid ""
23758 " guestfish -i -a newdisk\n"
23759 " ><fs> cat /boot/grub/device.map\n"
23760 " # check the contents of this file are sensible or\n"
23761 " # edit the file if necessary\n"
23762 " ><fs> grub-install / /dev/vda\n"
23763 " ><fs> exit\n"
23764 "\n"
23765 msgstr ""
23766
23767 #. type: textblock
23768 #: ../resize/virt-resize.pod:582
23769 msgid ""
23770 "For more flexible guest reconfiguration, including if you need to specify "
23771 "other parameters to grub-install, use L<virt-rescue(1)>."
23772 msgstr ""
23773
23774 #. type: =head1
23775 #: ../resize/virt-resize.pod:585
23776 msgid "ALTERNATIVE TOOLS"
23777 msgstr ""
23778
23779 #. type: textblock
23780 #: ../resize/virt-resize.pod:587
23781 msgid ""
23782 "There are several proprietary tools for resizing partitions.  We won't "
23783 "mention any here."
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:590
23788 msgid ""
23789 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23790 "operations on disk images.  They can resize and move partitions, but I don't "
23791 "think they can do anything with the contents, and they certainly don't "
23792 "understand LVM."
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../resize/virt-resize.pod:595
23797 msgid ""
23798 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23799 "but at a much lower level.  You will probably end up hand-calculating sector "
23800 "offsets, which is something that virt-resize was designed to avoid.  If you "
23801 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23802 "I<--debug> flag."
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../resize/virt-resize.pod:615
23807 msgid ""
23808 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23809 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23810 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23811 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23812 "L<http://libguestfs.org/>."
23813 msgstr ""
23814
23815 #. type: textblock
23816 #: ../ruby/examples/guestfs-ruby.pod:5
23817 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23818 msgstr ""
23819
23820 #. type: verbatim
23821 #: ../ruby/examples/guestfs-ruby.pod:9
23822 #, no-wrap
23823 msgid ""
23824 " require 'guestfs'\n"
23825 " g = Guestfs::Guestfs.new()\n"
23826 " g.add_drive_opts(\"disk.img\",\n"
23827 "                  :readonly => 1, :format => \"raw\")\n"
23828 " g.launch()\n"
23829 "\n"
23830 msgstr ""
23831
23832 #. type: textblock
23833 #: ../ruby/examples/guestfs-ruby.pod:17
23834 msgid ""
23835 "This manual page documents how to call libguestfs from the Ruby programming "
23836 "language.  This page just documents the differences from the C API and gives "
23837 "some examples.  If you are not familiar with using libguestfs, you also need "
23838 "to read L<guestfs(3)>."
23839 msgstr ""
23840
23841 #. type: textblock
23842 #: ../ruby/examples/guestfs-ruby.pod:24
23843 msgid ""
23844 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23845 "This has a single parameter which is the error message (a string)."
23846 msgstr ""
23847
23848 #. type: textblock
23849 #: ../ruby/examples/guestfs-ruby.pod:38
23850 msgid ""
23851 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23852 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23853 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23854 msgstr ""
23855
23856 #. type: textblock
23857 #: ../sparsify/virt-sparsify.pod:5
23858 msgid "virt-sparsify - Make a virtual machine disk sparse"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../sparsify/virt-sparsify.pod:9
23863 #, no-wrap
23864 msgid ""
23865 " virt-sparsify [--options] indisk outdisk\n"
23866 "\n"
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../sparsify/virt-sparsify.pod:13
23871 msgid ""
23872 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23873 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23874 "the disk image can be converted back to free space on the host."
23875 msgstr ""
23876
23877 #. type: textblock
23878 #: ../sparsify/virt-sparsify.pod:18
23879 msgid ""
23880 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23881 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23882 msgstr ""
23883
23884 #. type: textblock
23885 #: ../sparsify/virt-sparsify.pod:21
23886 msgid ""
23887 "Virt-sparsify can also convert between some disk formats, for example "
23888 "converting a raw disk image to a thin-provisioned qcow2 image."
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../sparsify/virt-sparsify.pod:24
23893 msgid ""
23894 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23895 "machines.  If a virtual machine has more than one attached disk, you must "
23896 "sparsify each one separately."
23897 msgstr ""
23898
23899 #. type: =head2
23900 #: ../sparsify/virt-sparsify.pod:28
23901 msgid "IMPORTANT LIMITATIONS"
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../sparsify/virt-sparsify.pod:34
23906 msgid ""
23907 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23908 "image to a destination image, leaving the source unchanged.  I<Check that "
23909 "the sparsification was successful before deleting the source image>."
23910 msgstr ""
23911
23912 #. type: textblock
23913 #: ../sparsify/virt-sparsify.pod:41
23914 msgid "The virtual machine I<must be shut down> before using this tool."
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../sparsify/virt-sparsify.pod:45
23919 msgid ""
23920 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23921 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23922 "usually much less space is required."
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../sparsify/virt-sparsify.pod:51
23927 msgid ""
23928 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23929 msgstr ""
23930
23931 #. type: textblock
23932 #: ../sparsify/virt-sparsify.pod:56
23933 msgid "Virt-sparsify cannot handle encrypted disks."
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../sparsify/virt-sparsify.pod:60
23938 msgid ""
23939 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23940 "this space is often used for critical items like bootloaders so it's not "
23941 "really unused."
23942 msgstr ""
23943
23944 #. type: textblock
23945 #: ../sparsify/virt-sparsify.pod:66
23946 msgid ""
23947 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23948 "to do this unless we can be sure there is no hibernation data, so at the "
23949 "moment swap partitions are ignored."
23950 msgstr ""
23951
23952 #. type: textblock
23953 #: ../sparsify/virt-sparsify.pod:72
23954 msgid ""
23955 "You may also want to read the manual pages for the associated tools L<virt-"
23956 "filesystems(1)> and L<virt-df(1)> before starting."
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../sparsify/virt-sparsify.pod:77
23961 msgid "Typical usage is:"
23962 msgstr ""
23963
23964 #. type: verbatim
23965 #: ../sparsify/virt-sparsify.pod:79
23966 #, no-wrap
23967 msgid ""
23968 " virt-sparsify indisk outdisk\n"
23969 "\n"
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../sparsify/virt-sparsify.pod:81
23974 msgid ""
23975 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23976 "is created, or overwritten if it already exists.  The format of the input "
23977 "disk is detected (eg. qcow2) and the same format is used for the output disk."
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../sparsify/virt-sparsify.pod:86
23982 msgid "To convert between formats, use the I<--convert> option:"
23983 msgstr ""
23984
23985 #. type: verbatim
23986 #: ../sparsify/virt-sparsify.pod:88
23987 #, no-wrap
23988 msgid ""
23989 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23990 "\n"
23991 msgstr ""
23992
23993 #. type: textblock
23994 #: ../sparsify/virt-sparsify.pod:90
23995 msgid ""
23996 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23997 "can find within the source disk image.  You can get it to ignore (don't zero "
23998 "free space on) certain filesystems by doing:"
23999 msgstr ""
24000
24001 #. type: verbatim
24002 #: ../sparsify/virt-sparsify.pod:94
24003 #, no-wrap
24004 msgid ""
24005 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24006 "\n"
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../sparsify/virt-sparsify.pod:96
24011 msgid ""
24012 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24013 msgstr ""
24014
24015 #. type: =item
24016 #: ../sparsify/virt-sparsify.pod:107
24017 msgid "B<--convert> raw"
24018 msgstr ""
24019
24020 #. type: =item
24021 #: ../sparsify/virt-sparsify.pod:109
24022 msgid "B<--convert> qcow2"
24023 msgstr ""
24024
24025 #. type: =item
24026 #: ../sparsify/virt-sparsify.pod:111
24027 msgid "B<--convert> [other formats]"
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../sparsify/virt-sparsify.pod:113
24032 msgid ""
24033 "Use C<output-format> as the format for the destination image.  If this is "
24034 "not specified, then the input format is used."
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../sparsify/virt-sparsify.pod:116
24039 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24040 msgstr ""
24041
24042 #. type: textblock
24043 #: ../sparsify/virt-sparsify.pod:118
24044 msgid ""
24045 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24046 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24047 msgstr ""
24048
24049 #. type: textblock
24050 #: ../sparsify/virt-sparsify.pod:122
24051 msgid ""
24052 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24053 "sparsify doesn't need to try to guess the input format."
24054 msgstr ""
24055
24056 #. type: =item
24057 #: ../sparsify/virt-sparsify.pod:127
24058 msgid "B<--format> qcow2"
24059 msgstr ""
24060
24061 #. type: =item
24062 #: ../sparsify/virt-sparsify.pod:135
24063 msgid "B<--ignore> filesystem"
24064 msgstr ""
24065
24066 #. type: =item
24067 #: ../sparsify/virt-sparsify.pod:137
24068 msgid "B<--ignore> volgroup"
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../sparsify/virt-sparsify.pod:139
24073 msgid ""
24074 "Ignore the named filesystem.  Free space on the filesystem will not be "
24075 "zeroed, but existing blocks of zeroes will still be sparsified."
24076 msgstr ""
24077
24078 #. type: textblock
24079 #: ../sparsify/virt-sparsify.pod:142
24080 msgid ""
24081 "In the second form, this ignores the named volume group.  Use the volume "
24082 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24083 msgstr ""
24084
24085 #. type: textblock
24086 #: ../sparsify/virt-sparsify.pod:157
24087 msgid "This disables progress bars and other unnecessary output."
24088 msgstr ""
24089
24090 #. type: textblock
24091 #: ../sparsify/virt-sparsify.pod:179
24092 msgid ""
24093 "The I<--machine-readable> option can be used to make the output more machine "
24094 "friendly, which is useful when calling virt-sparsify from other programs, "
24095 "GUIs etc."
24096 msgstr ""
24097
24098 #. type: textblock
24099 #: ../sparsify/virt-sparsify.pod:185
24100 msgid ""
24101 "Firstly use the option on its own to query the capabilities of the virt-"
24102 "sparsify binary.  Typical output looks like this:"
24103 msgstr ""
24104
24105 #. type: verbatim
24106 #: ../sparsify/virt-sparsify.pod:188
24107 #, no-wrap
24108 msgid ""
24109 " $ virt-sparsify --machine-readable\n"
24110 " virt-sparsify\n"
24111 " ntfs\n"
24112 " btrfs\n"
24113 "\n"
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../sparsify/virt-sparsify.pod:218
24118 msgid ""
24119 "The calling program should treat messages sent to stderr as error messages.  "
24120 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24121 "fatal error."
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../sparsify/virt-sparsify.pod:224
24126 msgid ""
24127 "All versions of virt-sparsify have supported the I<--machine-readable> "
24128 "option."
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../sparsify/virt-sparsify.pod:238
24133 msgid ""
24134 "Location of the temporary directory used for the potentially large temporary "
24135 "overlay file."
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../sparsify/virt-sparsify.pod:241
24140 msgid ""
24141 "You should ensure there is enough free space in the worst case for a full "
24142 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24143 "to another directory that has enough space."
24144 msgstr ""
24145
24146 #. type: textblock
24147 #: ../sparsify/virt-sparsify.pod:245
24148 msgid "This defaults to C</tmp>."
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../sparsify/virt-sparsify.pod:249
24153 msgid ""
24154 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24155 msgstr ""
24156
24157 #. type: textblock
24158 #: ../sparsify/virt-sparsify.pod:253
24159 msgid ""
24160 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24161 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24162 "(1)>, L<http://libguestfs.org/>."
24163 msgstr ""
24164
24165 #. type: =head2
24166 #: ../src/guestfs-actions.pod:1
24167 msgid "guestfs_add_cdrom"
24168 msgstr ""
24169
24170 #. type: verbatim
24171 #: ../src/guestfs-actions.pod:3
24172 #, no-wrap
24173 msgid ""
24174 " int\n"
24175 " guestfs_add_cdrom (guestfs_h *g,\n"
24176 "                    const char *filename);\n"
24177 "\n"
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24182 #: ../src/guestfs-actions.pod:276
24183 msgid ""
24184 "I<This function is deprecated.> In new code, use the L</"
24185 "guestfs_add_drive_opts> call instead."
24186 msgstr ""
24187
24188 #. type: textblock
24189 #: ../src/guestfs-actions.pod:24
24190 msgid ""
24191 "This call checks for the existence of C<filename>.  This stops you from "
24192 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24193 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24194 "instead."
24195 msgstr ""
24196
24197 #. type: textblock
24198 #: ../src/guestfs-actions.pod:31
24199 msgid ""
24200 "If you just want to add an ISO file (often you use this as an efficient way "
24201 "to transfer large files into the guest), then you should probably use "
24202 "C<guestfs_add_drive_ro> instead."
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24207 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24208 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24209 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24210 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24211 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24212 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24213 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24214 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24215 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24216 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24217 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24218 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24219 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24220 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24221 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24222 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24223 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24224 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24225 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24226 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24227 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24228 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24229 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24230 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24231 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24232 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24233 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24234 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24235 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24236 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24237 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24238 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24239 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24240 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24241 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24242 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24243 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24244 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24245 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24246 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24247 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24248 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24249 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24250 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24251 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24252 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24253 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24254 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24255 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24256 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24257 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24258 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24259 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24260 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24261 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24262 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24263 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24264 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24265 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24266 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24267 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24268 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24269 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24270 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24271 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24272 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24273 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24274 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24275 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24276 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24277 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24278 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24279 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24280 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24281 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24282 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24283 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24284 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24285 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24286 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24287 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
24288 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
24289 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
24290 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
24291 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
24292 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
24293 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
24294 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
24295 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
24296 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
24297 #: ../src/guestfs-actions.pod:8007
24298 msgid "This function returns 0 on success or -1 on error."
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24303 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
24304 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
24305 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
24306 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
24307 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
24308 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
24309 #: ../src/guestfs-actions.pod:7784
24310 msgid "(Added in 0.3)"
24311 msgstr ""
24312
24313 #. type: =head2
24314 #: ../src/guestfs-actions.pod:41
24315 msgid "guestfs_add_domain"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../src/guestfs-actions.pod:43
24320 #, no-wrap
24321 msgid ""
24322 " int\n"
24323 " guestfs_add_domain (guestfs_h *g,\n"
24324 "                     const char *dom,\n"
24325 "                     ...);\n"
24326 "\n"
24327 msgstr ""
24328
24329 #. type: textblock
24330 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24331 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
24332 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
24333 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
24334 #: ../src/guestfs-actions.pod:5340
24335 msgid ""
24336 "You may supply a list of optional arguments to this call.  Use zero or more "
24337 "of the following pairs of parameters, and terminate the list with C<-1> on "
24338 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24339 msgstr ""
24340
24341 #. type: verbatim
24342 #: ../src/guestfs-actions.pod:53
24343 #, no-wrap
24344 msgid ""
24345 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24346 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24347 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24348 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24349 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24350 "\n"
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../src/guestfs-actions.pod:59
24355 msgid ""
24356 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24357 "It works by connecting to libvirt, requesting the domain and domain XML from "
24358 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24359 "one."
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../src/guestfs-actions.pod:94
24364 msgid ""
24365 "The other optional parameters are passed directly through to "
24366 "C<guestfs_add_drive_opts>."
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
24371 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
24372 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
24373 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
24374 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
24375 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
24376 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
24377 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
24378 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
24379 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
24380 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
24381 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
24382 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
24383 msgid "On error this function returns -1."
24384 msgstr ""
24385
24386 #. type: textblock
24387 #: ../src/guestfs-actions.pod:99
24388 msgid "(Added in 1.7.4)"
24389 msgstr ""
24390
24391 #. type: =head2
24392 #: ../src/guestfs-actions.pod:101
24393 msgid "guestfs_add_domain_va"
24394 msgstr ""
24395
24396 #. type: verbatim
24397 #: ../src/guestfs-actions.pod:103
24398 #, no-wrap
24399 msgid ""
24400 " int\n"
24401 " guestfs_add_domain_va (guestfs_h *g,\n"
24402 "                        const char *dom,\n"
24403 "                        va_list args);\n"
24404 "\n"
24405 msgstr ""
24406
24407 #. type: textblock
24408 #: ../src/guestfs-actions.pod:108
24409 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24410 msgstr ""
24411
24412 #. type: textblock
24413 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24414 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
24415 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
24416 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
24417 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
24418 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
24419 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
24420 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
24421 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
24422 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24423 msgstr ""
24424
24425 #. type: =head2
24426 #: ../src/guestfs-actions.pod:112
24427 msgid "guestfs_add_domain_argv"
24428 msgstr ""
24429
24430 #. type: verbatim
24431 #: ../src/guestfs-actions.pod:114
24432 #, no-wrap
24433 msgid ""
24434 " int\n"
24435 " guestfs_add_domain_argv (guestfs_h *g,\n"
24436 "                          const char *dom,\n"
24437 "                          const struct guestfs_add_domain_argv *optargs);\n"
24438 "\n"
24439 msgstr ""
24440
24441 #. type: textblock
24442 #: ../src/guestfs-actions.pod:119
24443 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24444 msgstr ""
24445
24446 #. type: =head2
24447 #: ../src/guestfs-actions.pod:123
24448 msgid "guestfs_add_drive"
24449 msgstr ""
24450
24451 #. type: verbatim
24452 #: ../src/guestfs-actions.pod:125
24453 #, no-wrap
24454 msgid ""
24455 " int\n"
24456 " guestfs_add_drive (guestfs_h *g,\n"
24457 "                    const char *filename);\n"
24458 "\n"
24459 msgstr ""
24460
24461 #. type: textblock
24462 #: ../src/guestfs-actions.pod:129
24463 msgid ""
24464 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24465 "optional parameters, so the disk is added writable, with the format being "
24466 "detected automatically."
24467 msgstr ""
24468
24469 #. type: textblock
24470 #: ../src/guestfs-actions.pod:133
24471 msgid ""
24472 "Automatic detection of the format opens you up to a potential security hole "
24473 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24474 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24475 "you should think about replacing calls to this function with calls to "
24476 "C<guestfs_add_drive_opts>, and specifying the format."
24477 msgstr ""
24478
24479 #. type: =head2
24480 #: ../src/guestfs-actions.pod:144
24481 msgid "guestfs_add_drive_opts"
24482 msgstr ""
24483
24484 #. type: verbatim
24485 #: ../src/guestfs-actions.pod:146
24486 #, no-wrap
24487 msgid ""
24488 " int\n"
24489 " guestfs_add_drive_opts (guestfs_h *g,\n"
24490 "                         const char *filename,\n"
24491 "                         ...);\n"
24492 "\n"
24493 msgstr ""
24494
24495 #. type: verbatim
24496 #: ../src/guestfs-actions.pod:156
24497 #, no-wrap
24498 msgid ""
24499 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24500 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24501 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24502 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24503 "\n"
24504 msgstr ""
24505
24506 #. type: textblock
24507 #: ../src/guestfs-actions.pod:186
24508 msgid ""
24509 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24510 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24511 "Possible formats include C<raw> and C<qcow2>."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../src/guestfs-actions.pod:197
24516 msgid ""
24517 "This rarely-used option lets you emulate the behaviour of the deprecated "
24518 "C<guestfs_add_drive_with_if> call (q.v.)"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../src/guestfs-actions.pod:209
24523 msgid "(Added in 1.5.23)"
24524 msgstr ""
24525
24526 #. type: =head2
24527 #: ../src/guestfs-actions.pod:211
24528 msgid "guestfs_add_drive_opts_va"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../src/guestfs-actions.pod:213
24533 #, no-wrap
24534 msgid ""
24535 " int\n"
24536 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24537 "                            const char *filename,\n"
24538 "                            va_list args);\n"
24539 "\n"
24540 msgstr ""
24541
24542 #. type: textblock
24543 #: ../src/guestfs-actions.pod:218
24544 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24545 msgstr ""
24546
24547 #. type: =head2
24548 #: ../src/guestfs-actions.pod:222
24549 msgid "guestfs_add_drive_opts_argv"
24550 msgstr ""
24551
24552 #. type: verbatim
24553 #: ../src/guestfs-actions.pod:224
24554 #, no-wrap
24555 msgid ""
24556 " int\n"
24557 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24558 "                              const char *filename,\n"
24559 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24560 "\n"
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../src/guestfs-actions.pod:229
24565 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24566 msgstr ""
24567
24568 #. type: =head2
24569 #: ../src/guestfs-actions.pod:233
24570 msgid "guestfs_add_drive_ro"
24571 msgstr ""
24572
24573 #. type: verbatim
24574 #: ../src/guestfs-actions.pod:235
24575 #, no-wrap
24576 msgid ""
24577 " int\n"
24578 " guestfs_add_drive_ro (guestfs_h *g,\n"
24579 "                       const char *filename);\n"
24580 "\n"
24581 msgstr ""
24582
24583 #. type: textblock
24584 #: ../src/guestfs-actions.pod:239
24585 msgid ""
24586 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24587 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24588 "disk is added read-only, with the format being detected automatically."
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../src/guestfs-actions.pod:246
24593 msgid "(Added in 1.0.38)"
24594 msgstr ""
24595
24596 #. type: =head2
24597 #: ../src/guestfs-actions.pod:248
24598 msgid "guestfs_add_drive_ro_with_if"
24599 msgstr ""
24600
24601 #. type: verbatim
24602 #: ../src/guestfs-actions.pod:250
24603 #, no-wrap
24604 msgid ""
24605 " int\n"
24606 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24607 "                               const char *filename,\n"
24608 "                               const char *iface);\n"
24609 "\n"
24610 msgstr ""
24611
24612 #. type: textblock
24613 #: ../src/guestfs-actions.pod:262
24614 msgid ""
24615 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24616 "QEMU interface emulation to use at run time."
24617 msgstr ""
24618
24619 #. type: textblock
24620 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
24621 #: ../src/guestfs-actions.pod:2586
24622 msgid "(Added in 1.0.84)"
24623 msgstr ""
24624
24625 #. type: =head2
24626 #: ../src/guestfs-actions.pod:269
24627 msgid "guestfs_add_drive_with_if"
24628 msgstr ""
24629
24630 #. type: verbatim
24631 #: ../src/guestfs-actions.pod:271
24632 #, no-wrap
24633 msgid ""
24634 " int\n"
24635 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24636 "                            const char *filename,\n"
24637 "                            const char *iface);\n"
24638 "\n"
24639 msgstr ""
24640
24641 #. type: textblock
24642 #: ../src/guestfs-actions.pod:283
24643 msgid ""
24644 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24645 "QEMU interface emulation to use at run time."
24646 msgstr ""
24647
24648 #. type: =head2
24649 #: ../src/guestfs-actions.pod:290
24650 msgid "guestfs_aug_clear"
24651 msgstr ""
24652
24653 #. type: verbatim
24654 #: ../src/guestfs-actions.pod:292
24655 #, no-wrap
24656 msgid ""
24657 " int\n"
24658 " guestfs_aug_clear (guestfs_h *g,\n"
24659 "                    const char *augpath);\n"
24660 "\n"
24661 msgstr ""
24662
24663 #. type: textblock
24664 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
24665 msgid "(Added in 1.3.4)"
24666 msgstr ""
24667
24668 #. type: =head2
24669 #: ../src/guestfs-actions.pod:303
24670 msgid "guestfs_aug_close"
24671 msgstr ""
24672
24673 #. type: verbatim
24674 #: ../src/guestfs-actions.pod:305
24675 #, no-wrap
24676 msgid ""
24677 " int\n"
24678 " guestfs_aug_close (guestfs_h *g);\n"
24679 "\n"
24680 msgstr ""
24681
24682 #. type: textblock
24683 #: ../src/guestfs-actions.pod:308
24684 msgid ""
24685 "Close the current Augeas handle and free up any resources used by it.  After "
24686 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24687 "any other Augeas functions."
24688 msgstr ""
24689
24690 #. type: textblock
24691 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
24692 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
24693 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
24694 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
24695 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
24696 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
24697 #: ../src/guestfs-actions.pod:6008
24698 msgid "(Added in 0.7)"
24699 msgstr ""
24700
24701 #. type: =head2
24702 #: ../src/guestfs-actions.pod:317
24703 msgid "guestfs_aug_defnode"
24704 msgstr ""
24705
24706 #. type: verbatim
24707 #: ../src/guestfs-actions.pod:319
24708 #, no-wrap
24709 msgid ""
24710 " struct guestfs_int_bool *\n"
24711 " guestfs_aug_defnode (guestfs_h *g,\n"
24712 "                      const char *name,\n"
24713 "                      const char *expr,\n"
24714 "                      const char *val);\n"
24715 "\n"
24716 msgstr ""
24717
24718 #. type: textblock
24719 #: ../src/guestfs-actions.pod:328
24720 msgid ""
24721 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24722 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24723 "containing that single node."
24724 msgstr ""
24725
24726 #. type: textblock
24727 #: ../src/guestfs-actions.pod:336
24728 msgid ""
24729 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24730 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24731 msgstr ""
24732
24733 #. type: =head2
24734 #: ../src/guestfs-actions.pod:342
24735 msgid "guestfs_aug_defvar"
24736 msgstr ""
24737
24738 #. type: verbatim
24739 #: ../src/guestfs-actions.pod:344
24740 #, no-wrap
24741 msgid ""
24742 " int\n"
24743 " guestfs_aug_defvar (guestfs_h *g,\n"
24744 "                     const char *name,\n"
24745 "                     const char *expr);\n"
24746 "\n"
24747 msgstr ""
24748
24749 #. type: =head2
24750 #: ../src/guestfs-actions.pod:360
24751 msgid "guestfs_aug_get"
24752 msgstr ""
24753
24754 #. type: verbatim
24755 #: ../src/guestfs-actions.pod:362
24756 #, no-wrap
24757 msgid ""
24758 " char *\n"
24759 " guestfs_aug_get (guestfs_h *g,\n"
24760 "                  const char *augpath);\n"
24761 "\n"
24762 msgstr ""
24763
24764 #. type: textblock
24765 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
24766 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
24767 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
24768 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
24769 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
24770 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
24771 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
24772 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
24773 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
24774 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
24775 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
24776 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
24777 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
24778 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
24779 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
24780 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
24781 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
24782 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
24783 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
24784 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
24785 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
24786 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
24787 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
24788 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
24789 msgid ""
24790 "This function returns a string, or NULL on error.  I<The caller must free "
24791 "the returned string after use>."
24792 msgstr ""
24793
24794 #. type: =head2
24795 #: ../src/guestfs-actions.pod:374
24796 msgid "guestfs_aug_init"
24797 msgstr ""
24798
24799 #. type: verbatim
24800 #: ../src/guestfs-actions.pod:376
24801 #, no-wrap
24802 msgid ""
24803 " int\n"
24804 " guestfs_aug_init (guestfs_h *g,\n"
24805 "                   const char *root,\n"
24806 "                   int flags);\n"
24807 "\n"
24808 msgstr ""
24809
24810 #. type: textblock
24811 #: ../src/guestfs-actions.pod:385
24812 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24813 msgstr ""
24814
24815 #. type: textblock
24816 #: ../src/guestfs-actions.pod:410
24817 msgid ""
24818 "This option is only useful when debugging Augeas lenses.  Use of this option "
24819 "may require additional memory for the libguestfs appliance.  You may need to "
24820 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24821 "C<guestfs_set_memsize>."
24822 msgstr ""
24823
24824 #. type: textblock
24825 #: ../src/guestfs-actions.pod:425
24826 msgid "Do not load the tree in C<guestfs_aug_init>."
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../src/guestfs-actions.pod:429
24831 msgid "To close the handle, you can call C<guestfs_aug_close>."
24832 msgstr ""
24833
24834 #. type: =head2
24835 #: ../src/guestfs-actions.pod:437
24836 msgid "guestfs_aug_insert"
24837 msgstr ""
24838
24839 #. type: verbatim
24840 #: ../src/guestfs-actions.pod:439
24841 #, no-wrap
24842 msgid ""
24843 " int\n"
24844 " guestfs_aug_insert (guestfs_h *g,\n"
24845 "                     const char *augpath,\n"
24846 "                     const char *label,\n"
24847 "                     int before);\n"
24848 "\n"
24849 msgstr ""
24850
24851 #. type: =head2
24852 #: ../src/guestfs-actions.pod:457
24853 msgid "guestfs_aug_load"
24854 msgstr ""
24855
24856 #. type: verbatim
24857 #: ../src/guestfs-actions.pod:459
24858 #, no-wrap
24859 msgid ""
24860 " int\n"
24861 " guestfs_aug_load (guestfs_h *g);\n"
24862 "\n"
24863 msgstr ""
24864
24865 #. type: =head2
24866 #: ../src/guestfs-actions.pod:471
24867 msgid "guestfs_aug_ls"
24868 msgstr ""
24869
24870 #. type: verbatim
24871 #: ../src/guestfs-actions.pod:473
24872 #, no-wrap
24873 msgid ""
24874 " char **\n"
24875 " guestfs_aug_ls (guestfs_h *g,\n"
24876 "                 const char *augpath);\n"
24877 "\n"
24878 msgstr ""
24879
24880 #. type: textblock
24881 #: ../src/guestfs-actions.pod:477
24882 msgid ""
24883 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24884 "sorting the resulting nodes into alphabetical order."
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
24889 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
24890 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
24891 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
24892 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
24893 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
24894 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
24895 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
24896 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
24897 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
24898 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
24899 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
24900 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
24901 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
24902 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
24903 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
24904 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
24905 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
24906 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
24907 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
24908 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
24909 #: ../src/guestfs-actions.pod:8105
24910 msgid ""
24911 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24912 ">), or NULL if there was an error.  I<The caller must free the strings and "
24913 "the array after use>."
24914 msgstr ""
24915
24916 #. type: textblock
24917 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
24918 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
24919 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
24920 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
24921 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
24922 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
24923 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
24924 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
24925 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
24926 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
24927 #: ../src/guestfs-actions.pod:7896
24928 msgid "(Added in 0.8)"
24929 msgstr ""
24930
24931 #. type: =head2
24932 #: ../src/guestfs-actions.pod:486
24933 msgid "guestfs_aug_match"
24934 msgstr ""
24935
24936 #. type: verbatim
24937 #: ../src/guestfs-actions.pod:488
24938 #, no-wrap
24939 msgid ""
24940 " char **\n"
24941 " guestfs_aug_match (guestfs_h *g,\n"
24942 "                    const char *augpath);\n"
24943 "\n"
24944 msgstr ""
24945
24946 #. type: =head2
24947 #: ../src/guestfs-actions.pod:502
24948 msgid "guestfs_aug_mv"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../src/guestfs-actions.pod:504
24953 #, no-wrap
24954 msgid ""
24955 " int\n"
24956 " guestfs_aug_mv (guestfs_h *g,\n"
24957 "                 const char *src,\n"
24958 "                 const char *dest);\n"
24959 "\n"
24960 msgstr ""
24961
24962 #. type: =head2
24963 #: ../src/guestfs-actions.pod:516
24964 msgid "guestfs_aug_rm"
24965 msgstr ""
24966
24967 #. type: verbatim
24968 #: ../src/guestfs-actions.pod:518
24969 #, no-wrap
24970 msgid ""
24971 " int\n"
24972 " guestfs_aug_rm (guestfs_h *g,\n"
24973 "                 const char *augpath);\n"
24974 "\n"
24975 msgstr ""
24976
24977 #. type: =head2
24978 #: ../src/guestfs-actions.pod:530
24979 msgid "guestfs_aug_save"
24980 msgstr ""
24981
24982 #. type: verbatim
24983 #: ../src/guestfs-actions.pod:532
24984 #, no-wrap
24985 msgid ""
24986 " int\n"
24987 " guestfs_aug_save (guestfs_h *g);\n"
24988 "\n"
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../src/guestfs-actions.pod:537
24993 msgid ""
24994 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24995 "are saved."
24996 msgstr ""
24997
24998 #. type: =head2
24999 #: ../src/guestfs-actions.pod:544
25000 msgid "guestfs_aug_set"
25001 msgstr ""
25002
25003 #. type: verbatim
25004 #: ../src/guestfs-actions.pod:546
25005 #, no-wrap
25006 msgid ""
25007 " int\n"
25008 " guestfs_aug_set (guestfs_h *g,\n"
25009 "                  const char *augpath,\n"
25010 "                  const char *val);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:553
25016 msgid ""
25017 "In the Augeas API, it is possible to clear a node by setting the value to "
25018 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25019 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25020 msgstr ""
25021
25022 #. type: =head2
25023 #: ../src/guestfs-actions.pod:562
25024 msgid "guestfs_available"
25025 msgstr ""
25026
25027 #. type: verbatim
25028 #: ../src/guestfs-actions.pod:564
25029 #, no-wrap
25030 msgid ""
25031 " int\n"
25032 " guestfs_available (guestfs_h *g,\n"
25033 "                    char *const *groups);\n"
25034 "\n"
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../src/guestfs-actions.pod:572
25039 msgid ""
25040 "The libguestfs groups, and the functions that those groups correspond to, "
25041 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25042 "runtime by calling C<guestfs_available_all_groups>."
25043 msgstr ""
25044
25045 #. type: textblock
25046 #: ../src/guestfs-actions.pod:596
25047 msgid "You must call C<guestfs_launch> before calling this function."
25048 msgstr ""
25049
25050 #. type: textblock
25051 #: ../src/guestfs-actions.pod:618
25052 msgid ""
25053 "This call was added in version C<1.0.80>.  In previous versions of "
25054 "libguestfs all you could do would be to speculatively execute a command to "
25055 "find out if the daemon implemented it.  See also C<guestfs_version>."
25056 msgstr ""
25057
25058 #. type: textblock
25059 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25060 msgid "(Added in 1.0.80)"
25061 msgstr ""
25062
25063 #. type: =head2
25064 #: ../src/guestfs-actions.pod:629
25065 msgid "guestfs_available_all_groups"
25066 msgstr ""
25067
25068 #. type: verbatim
25069 #: ../src/guestfs-actions.pod:631
25070 #, no-wrap
25071 msgid ""
25072 " char **\n"
25073 " guestfs_available_all_groups (guestfs_h *g);\n"
25074 "\n"
25075 msgstr ""
25076
25077 #. type: textblock
25078 #: ../src/guestfs-actions.pod:634
25079 msgid ""
25080 "This command returns a list of all optional groups that this daemon knows "
25081 "about.  Note this returns both supported and unsupported groups.  To find "
25082 "out which ones the daemon can actually support you have to call "
25083 "C<guestfs_available> on each member of the returned list."
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../src/guestfs-actions.pod:640
25088 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25089 msgstr ""
25090
25091 #. type: textblock
25092 #: ../src/guestfs-actions.pod:646
25093 msgid "(Added in 1.3.15)"
25094 msgstr ""
25095
25096 #. type: =head2
25097 #: ../src/guestfs-actions.pod:648
25098 msgid "guestfs_base64_in"
25099 msgstr ""
25100
25101 #. type: verbatim
25102 #: ../src/guestfs-actions.pod:650
25103 #, no-wrap
25104 msgid ""
25105 " int\n"
25106 " guestfs_base64_in (guestfs_h *g,\n"
25107 "                    const char *base64file,\n"
25108 "                    const char *filename);\n"
25109 "\n"
25110 msgstr ""
25111
25112 #. type: textblock
25113 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25114 msgid "(Added in 1.3.5)"
25115 msgstr ""
25116
25117 #. type: =head2
25118 #: ../src/guestfs-actions.pod:662
25119 msgid "guestfs_base64_out"
25120 msgstr ""
25121
25122 #. type: verbatim
25123 #: ../src/guestfs-actions.pod:664
25124 #, no-wrap
25125 msgid ""
25126 " int\n"
25127 " guestfs_base64_out (guestfs_h *g,\n"
25128 "                     const char *filename,\n"
25129 "                     const char *base64file);\n"
25130 "\n"
25131 msgstr ""
25132
25133 #. type: =head2
25134 #: ../src/guestfs-actions.pod:676
25135 msgid "guestfs_blockdev_flushbufs"
25136 msgstr ""
25137
25138 #. type: verbatim
25139 #: ../src/guestfs-actions.pod:678
25140 #, no-wrap
25141 msgid ""
25142 " int\n"
25143 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25144 "                             const char *device);\n"
25145 "\n"
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25150 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25151 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25152 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25153 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25154 msgid "(Added in 0.9.3)"
25155 msgstr ""
25156
25157 #. type: =head2
25158 #: ../src/guestfs-actions.pod:691
25159 msgid "guestfs_blockdev_getbsz"
25160 msgstr ""
25161
25162 #. type: verbatim
25163 #: ../src/guestfs-actions.pod:693
25164 #, no-wrap
25165 msgid ""
25166 " int\n"
25167 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25168 "                          const char *device);\n"
25169 "\n"
25170 msgstr ""
25171
25172 #. type: =head2
25173 #: ../src/guestfs-actions.pod:708
25174 msgid "guestfs_blockdev_getro"
25175 msgstr ""
25176
25177 #. type: verbatim
25178 #: ../src/guestfs-actions.pod:710
25179 #, no-wrap
25180 msgid ""
25181 " int\n"
25182 " guestfs_blockdev_getro (guestfs_h *g,\n"
25183 "                         const char *device);\n"
25184 "\n"
25185 msgstr ""
25186
25187 #. type: textblock
25188 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25189 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25190 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25191 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25192 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25193 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25194 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25195 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25196 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25197 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25198 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25199 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25200 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25201 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25202 #: ../src/guestfs-actions.pod:5501
25203 msgid "This function returns a C truth value on success or -1 on error."
25204 msgstr ""
25205
25206 #. type: =head2
25207 #: ../src/guestfs-actions.pod:723
25208 msgid "guestfs_blockdev_getsize64"
25209 msgstr ""
25210
25211 #. type: verbatim
25212 #: ../src/guestfs-actions.pod:725
25213 #, no-wrap
25214 msgid ""
25215 " int64_t\n"
25216 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25217 "                             const char *device);\n"
25218 "\n"
25219 msgstr ""
25220
25221 #. type: textblock
25222 #: ../src/guestfs-actions.pod:731
25223 msgid "See also C<guestfs_blockdev_getsz>."
25224 msgstr ""
25225
25226 #. type: =head2
25227 #: ../src/guestfs-actions.pod:739
25228 msgid "guestfs_blockdev_getss"
25229 msgstr ""
25230
25231 #. type: verbatim
25232 #: ../src/guestfs-actions.pod:741
25233 #, no-wrap
25234 msgid ""
25235 " int\n"
25236 " guestfs_blockdev_getss (guestfs_h *g,\n"
25237 "                         const char *device);\n"
25238 "\n"
25239 msgstr ""
25240
25241 #. type: textblock
25242 #: ../src/guestfs-actions.pod:748
25243 msgid ""
25244 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25245 "that)."
25246 msgstr ""
25247
25248 #. type: =head2
25249 #: ../src/guestfs-actions.pod:757
25250 msgid "guestfs_blockdev_getsz"
25251 msgstr ""
25252
25253 #. type: verbatim
25254 #: ../src/guestfs-actions.pod:759
25255 #, no-wrap
25256 msgid ""
25257 " int64_t\n"
25258 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25259 "                         const char *device);\n"
25260 "\n"
25261 msgstr ""
25262
25263 #. type: textblock
25264 #: ../src/guestfs-actions.pod:766
25265 msgid ""
25266 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25267 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25268 msgstr ""
25269
25270 #. type: =head2
25271 #: ../src/guestfs-actions.pod:776
25272 msgid "guestfs_blockdev_rereadpt"
25273 msgstr ""
25274
25275 #. type: verbatim
25276 #: ../src/guestfs-actions.pod:778
25277 #, no-wrap
25278 msgid ""
25279 " int\n"
25280 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25281 "                            const char *device);\n"
25282 "\n"
25283 msgstr ""
25284
25285 #. type: =head2
25286 #: ../src/guestfs-actions.pod:790
25287 msgid "guestfs_blockdev_setbsz"
25288 msgstr ""
25289
25290 #. type: verbatim
25291 #: ../src/guestfs-actions.pod:792
25292 #, no-wrap
25293 msgid ""
25294 " int\n"
25295 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25296 "                          const char *device,\n"
25297 "                          int blocksize);\n"
25298 "\n"
25299 msgstr ""
25300
25301 #. type: =head2
25302 #: ../src/guestfs-actions.pod:808
25303 msgid "guestfs_blockdev_setro"
25304 msgstr ""
25305
25306 #. type: verbatim
25307 #: ../src/guestfs-actions.pod:810
25308 #, no-wrap
25309 msgid ""
25310 " int\n"
25311 " guestfs_blockdev_setro (guestfs_h *g,\n"
25312 "                         const char *device);\n"
25313 "\n"
25314 msgstr ""
25315
25316 #. type: =head2
25317 #: ../src/guestfs-actions.pod:822
25318 msgid "guestfs_blockdev_setrw"
25319 msgstr ""
25320
25321 #. type: verbatim
25322 #: ../src/guestfs-actions.pod:824
25323 #, no-wrap
25324 msgid ""
25325 " int\n"
25326 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25327 "                         const char *device);\n"
25328 "\n"
25329 msgstr ""
25330
25331 #. type: =head2
25332 #: ../src/guestfs-actions.pod:836
25333 msgid "guestfs_btrfs_filesystem_resize"
25334 msgstr ""
25335
25336 #. type: verbatim
25337 #: ../src/guestfs-actions.pod:838
25338 #, no-wrap
25339 msgid ""
25340 " int\n"
25341 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25342 "                                  const char *mountpoint,\n"
25343 "                                  ...);\n"
25344 "\n"
25345 msgstr ""
25346
25347 #. type: verbatim
25348 #: ../src/guestfs-actions.pod:848
25349 #, no-wrap
25350 msgid ""
25351 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25352 "\n"
25353 msgstr ""
25354
25355 #. type: textblock
25356 #: ../src/guestfs-actions.pod:871
25357 msgid "(Added in 1.11.17)"
25358 msgstr ""
25359
25360 #. type: =head2
25361 #: ../src/guestfs-actions.pod:873
25362 msgid "guestfs_btrfs_filesystem_resize_va"
25363 msgstr ""
25364
25365 #. type: verbatim
25366 #: ../src/guestfs-actions.pod:875
25367 #, no-wrap
25368 msgid ""
25369 " int\n"
25370 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25371 "                                     const char *mountpoint,\n"
25372 "                                     va_list args);\n"
25373 "\n"
25374 msgstr ""
25375
25376 #. type: textblock
25377 #: ../src/guestfs-actions.pod:880
25378 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25379 msgstr ""
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:884
25383 msgid "guestfs_btrfs_filesystem_resize_argv"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:886
25388 #, no-wrap
25389 msgid ""
25390 " int\n"
25391 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25392 "                                       const char *mountpoint,\n"
25393 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25394 "\n"
25395 msgstr ""
25396
25397 #. type: textblock
25398 #: ../src/guestfs-actions.pod:891
25399 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:895
25404 msgid "guestfs_case_sensitive_path"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:897
25409 #, no-wrap
25410 msgid ""
25411 " char *\n"
25412 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25413 "                              const char *path);\n"
25414 "\n"
25415 msgstr ""
25416
25417 #. type: textblock
25418 #: ../src/guestfs-actions.pod:923
25419 msgid ""
25420 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25421 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25422 "how the directories were originally created under Windows)."
25423 msgstr ""
25424
25425 #. type: textblock
25426 #: ../src/guestfs-actions.pod:931
25427 msgid "See also C<guestfs_realpath>."
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
25432 msgid "(Added in 1.0.75)"
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:938
25437 msgid "guestfs_cat"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:940
25442 #, no-wrap
25443 msgid ""
25444 " char *\n"
25445 " guestfs_cat (guestfs_h *g,\n"
25446 "              const char *path);\n"
25447 "\n"
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../src/guestfs-actions.pod:946
25452 msgid ""
25453 "Note that this function cannot correctly handle binary files (specifically, "
25454 "files containing C<\\0> character which is treated as end of string).  For "
25455 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25456 "functions which have a more complex interface."
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
25461 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
25462 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
25463 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
25464 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
25465 #: ../src/guestfs-actions.pod:7732
25466 msgid "(Added in 0.4)"
25467 msgstr ""
25468
25469 #. type: =head2
25470 #: ../src/guestfs-actions.pod:959
25471 msgid "guestfs_checksum"
25472 msgstr ""
25473
25474 #. type: verbatim
25475 #: ../src/guestfs-actions.pod:961
25476 #, no-wrap
25477 msgid ""
25478 " char *\n"
25479 " guestfs_checksum (guestfs_h *g,\n"
25480 "                   const char *csumtype,\n"
25481 "                   const char *path);\n"
25482 "\n"
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../src/guestfs-actions.pod:1007
25487 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../src/guestfs-actions.pod:1009
25492 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
25497 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
25498 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
25499 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
25500 msgid "(Added in 1.0.2)"
25501 msgstr ""
25502
25503 #. type: =head2
25504 #: ../src/guestfs-actions.pod:1016
25505 msgid "guestfs_checksum_device"
25506 msgstr ""
25507
25508 #. type: verbatim
25509 #: ../src/guestfs-actions.pod:1018
25510 #, no-wrap
25511 msgid ""
25512 " char *\n"
25513 " guestfs_checksum_device (guestfs_h *g,\n"
25514 "                          const char *csumtype,\n"
25515 "                          const char *device);\n"
25516 "\n"
25517 msgstr ""
25518
25519 #. type: textblock
25520 #: ../src/guestfs-actions.pod:1023
25521 msgid ""
25522 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25523 "device named C<device>.  For the types of checksums supported see the "
25524 "C<guestfs_checksum> command."
25525 msgstr ""
25526
25527 #. type: textblock
25528 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
25529 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
25530 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
25531 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
25532 #: ../src/guestfs-actions.pod:7744
25533 msgid "(Added in 1.3.2)"
25534 msgstr ""
25535
25536 #. type: =head2
25537 #: ../src/guestfs-actions.pod:1032
25538 msgid "guestfs_checksums_out"
25539 msgstr ""
25540
25541 #. type: verbatim
25542 #: ../src/guestfs-actions.pod:1034
25543 #, no-wrap
25544 msgid ""
25545 " int\n"
25546 " guestfs_checksums_out (guestfs_h *g,\n"
25547 "                        const char *csumtype,\n"
25548 "                        const char *directory,\n"
25549 "                        const char *sumsfile);\n"
25550 "\n"
25551 msgstr ""
25552
25553 #. type: textblock
25554 #: ../src/guestfs-actions.pod:1054
25555 msgid "(Added in 1.3.7)"
25556 msgstr ""
25557
25558 #. type: =head2
25559 #: ../src/guestfs-actions.pod:1056
25560 msgid "guestfs_chmod"
25561 msgstr ""
25562
25563 #. type: verbatim
25564 #: ../src/guestfs-actions.pod:1058
25565 #, no-wrap
25566 msgid ""
25567 " int\n"
25568 " guestfs_chmod (guestfs_h *g,\n"
25569 "                int mode,\n"
25570 "                const char *path);\n"
25571 "\n"
25572 msgstr ""
25573
25574 #. type: =head2
25575 #: ../src/guestfs-actions.pod:1076
25576 msgid "guestfs_chown"
25577 msgstr ""
25578
25579 #. type: verbatim
25580 #: ../src/guestfs-actions.pod:1078
25581 #, no-wrap
25582 msgid ""
25583 " int\n"
25584 " guestfs_chown (guestfs_h *g,\n"
25585 "                int owner,\n"
25586 "                int group,\n"
25587 "                const char *path);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: =head2
25592 #: ../src/guestfs-actions.pod:1094
25593 msgid "guestfs_command"
25594 msgstr ""
25595
25596 #. type: verbatim
25597 #: ../src/guestfs-actions.pod:1096
25598 #, no-wrap
25599 msgid ""
25600 " char *\n"
25601 " guestfs_command (guestfs_h *g,\n"
25602 "                  char *const *arguments);\n"
25603 "\n"
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:1105
25608 msgid ""
25609 "The single parameter is an argv-style list of arguments.  The first element "
25610 "is the name of the program to run.  Subsequent elements are parameters.  The "
25611 "list must be non-empty (ie. must contain a program name).  Note that the "
25612 "command runs directly, and is I<not> invoked via the shell (see "
25613 "C<guestfs_sh>)."
25614 msgstr ""
25615
25616 #. type: textblock
25617 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
25618 #: ../src/guestfs-actions.pod:1732
25619 msgid "(Added in 0.9.1)"
25620 msgstr ""
25621
25622 #. type: =head2
25623 #: ../src/guestfs-actions.pod:1138
25624 msgid "guestfs_command_lines"
25625 msgstr ""
25626
25627 #. type: verbatim
25628 #: ../src/guestfs-actions.pod:1140
25629 #, no-wrap
25630 msgid ""
25631 " char **\n"
25632 " guestfs_command_lines (guestfs_h *g,\n"
25633 "                        char *const *arguments);\n"
25634 "\n"
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../src/guestfs-actions.pod:1144
25639 msgid ""
25640 "This is the same as C<guestfs_command>, but splits the result into a list of "
25641 "lines."
25642 msgstr ""
25643
25644 #. type: textblock
25645 #: ../src/guestfs-actions.pod:1147
25646 msgid "See also: C<guestfs_sh_lines>"
25647 msgstr ""
25648
25649 #. type: =head2
25650 #: ../src/guestfs-actions.pod:1158
25651 msgid "guestfs_compress_device_out"
25652 msgstr ""
25653
25654 #. type: verbatim
25655 #: ../src/guestfs-actions.pod:1160
25656 #, no-wrap
25657 msgid ""
25658 " int\n"
25659 " guestfs_compress_device_out (guestfs_h *g,\n"
25660 "                              const char *ctype,\n"
25661 "                              const char *device,\n"
25662 "                              const char *zdevice,\n"
25663 "                              ...);\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:1172
25669 #, no-wrap
25670 msgid ""
25671 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25672 "\n"
25673 msgstr ""
25674
25675 #. type: textblock
25676 #: ../src/guestfs-actions.pod:1177
25677 msgid ""
25678 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25679 "C<guestfs_compress_out>."
25680 msgstr ""
25681
25682 #. type: textblock
25683 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
25684 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
25685 msgid "(Added in 1.13.15)"
25686 msgstr ""
25687
25688 #. type: =head2
25689 #: ../src/guestfs-actions.pod:1184
25690 msgid "guestfs_compress_device_out_va"
25691 msgstr ""
25692
25693 #. type: verbatim
25694 #: ../src/guestfs-actions.pod:1186
25695 #, no-wrap
25696 msgid ""
25697 " int\n"
25698 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25699 "                                 const char *ctype,\n"
25700 "                                 const char *device,\n"
25701 "                                 const char *zdevice,\n"
25702 "                                 va_list args);\n"
25703 "\n"
25704 msgstr ""
25705
25706 #. type: textblock
25707 #: ../src/guestfs-actions.pod:1193
25708 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25709 msgstr ""
25710
25711 #. type: =head2
25712 #: ../src/guestfs-actions.pod:1197
25713 msgid "guestfs_compress_device_out_argv"
25714 msgstr ""
25715
25716 #. type: verbatim
25717 #: ../src/guestfs-actions.pod:1199
25718 #, no-wrap
25719 msgid ""
25720 " int\n"
25721 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25722 "                                   const char *ctype,\n"
25723 "                                   const char *device,\n"
25724 "                                   const char *zdevice,\n"
25725 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25726 "\n"
25727 msgstr ""
25728
25729 #. type: textblock
25730 #: ../src/guestfs-actions.pod:1206
25731 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25732 msgstr ""
25733
25734 #. type: =head2
25735 #: ../src/guestfs-actions.pod:1210
25736 msgid "guestfs_compress_out"
25737 msgstr ""
25738
25739 #. type: verbatim
25740 #: ../src/guestfs-actions.pod:1212
25741 #, no-wrap
25742 msgid ""
25743 " int\n"
25744 " guestfs_compress_out (guestfs_h *g,\n"
25745 "                       const char *ctype,\n"
25746 "                       const char *file,\n"
25747 "                       const char *zfile,\n"
25748 "                       ...);\n"
25749 "\n"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../src/guestfs-actions.pod:1224
25754 #, no-wrap
25755 msgid ""
25756 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25757 "\n"
25758 msgstr ""
25759
25760 #. type: =head2
25761 #: ../src/guestfs-actions.pod:1243
25762 msgid "guestfs_compress_out_va"
25763 msgstr ""
25764
25765 #. type: verbatim
25766 #: ../src/guestfs-actions.pod:1245
25767 #, no-wrap
25768 msgid ""
25769 " int\n"
25770 " guestfs_compress_out_va (guestfs_h *g,\n"
25771 "                          const char *ctype,\n"
25772 "                          const char *file,\n"
25773 "                          const char *zfile,\n"
25774 "                          va_list args);\n"
25775 "\n"
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../src/guestfs-actions.pod:1252
25780 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25781 msgstr ""
25782
25783 #. type: =head2
25784 #: ../src/guestfs-actions.pod:1256
25785 msgid "guestfs_compress_out_argv"
25786 msgstr ""
25787
25788 #. type: verbatim
25789 #: ../src/guestfs-actions.pod:1258
25790 #, no-wrap
25791 msgid ""
25792 " int\n"
25793 " guestfs_compress_out_argv (guestfs_h *g,\n"
25794 "                            const char *ctype,\n"
25795 "                            const char *file,\n"
25796 "                            const char *zfile,\n"
25797 "                            const struct guestfs_compress_out_argv *optargs);\n"
25798 "\n"
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:1265
25803 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:1269
25808 msgid "guestfs_config"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:1271
25813 #, no-wrap
25814 msgid ""
25815 " int\n"
25816 " guestfs_config (guestfs_h *g,\n"
25817 "                 const char *qemuparam,\n"
25818 "                 const char *qemuvalue);\n"
25819 "\n"
25820 msgstr ""
25821
25822 #. type: =head2
25823 #: ../src/guestfs-actions.pod:1289
25824 msgid "guestfs_copy_size"
25825 msgstr ""
25826
25827 #. type: verbatim
25828 #: ../src/guestfs-actions.pod:1291
25829 #, no-wrap
25830 msgid ""
25831 " int\n"
25832 " guestfs_copy_size (guestfs_h *g,\n"
25833 "                    const char *src,\n"
25834 "                    const char *dest,\n"
25835 "                    int64_t size);\n"
25836 "\n"
25837 msgstr ""
25838
25839 #. type: textblock
25840 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
25841 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
25842 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
25843 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
25844 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
25845 #: ../src/guestfs-actions.pod:7980
25846 msgid ""
25847 "This long-running command can generate progress notification messages so "
25848 "that the caller can display a progress bar or indicator.  To receive these "
25849 "messages, the caller must register a progress event callback.  See L<guestfs"
25850 "(3)/GUESTFS_EVENT_PROGRESS>."
25851 msgstr ""
25852
25853 #. type: textblock
25854 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
25855 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
25856 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
25857 msgid "(Added in 1.0.87)"
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../src/guestfs-actions.pod:1312
25862 msgid "guestfs_cp"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../src/guestfs-actions.pod:1314
25867 #, no-wrap
25868 msgid ""
25869 " int\n"
25870 " guestfs_cp (guestfs_h *g,\n"
25871 "             const char *src,\n"
25872 "             const char *dest);\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
25878 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
25879 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
25880 #: ../src/guestfs-actions.pod:5753
25881 msgid "(Added in 1.0.18)"
25882 msgstr ""
25883
25884 #. type: =head2
25885 #: ../src/guestfs-actions.pod:1326
25886 msgid "guestfs_cp_a"
25887 msgstr ""
25888
25889 #. type: verbatim
25890 #: ../src/guestfs-actions.pod:1328
25891 #, no-wrap
25892 msgid ""
25893 " int\n"
25894 " guestfs_cp_a (guestfs_h *g,\n"
25895 "               const char *src,\n"
25896 "               const char *dest);\n"
25897 "\n"
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:1340
25902 msgid "guestfs_dd"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:1342
25907 #, no-wrap
25908 msgid ""
25909 " int\n"
25910 " guestfs_dd (guestfs_h *g,\n"
25911 "             const char *src,\n"
25912 "             const char *dest);\n"
25913 "\n"
25914 msgstr ""
25915
25916 #. type: textblock
25917 #: ../src/guestfs-actions.pod:1352
25918 msgid ""
25919 "If the destination is a device, it must be as large or larger than the "
25920 "source file or device, otherwise the copy will fail.  This command cannot do "
25921 "partial copies (see C<guestfs_copy_size>)."
25922 msgstr ""
25923
25924 #. type: =head2
25925 #: ../src/guestfs-actions.pod:1360
25926 msgid "guestfs_df"
25927 msgstr ""
25928
25929 #. type: verbatim
25930 #: ../src/guestfs-actions.pod:1362
25931 #, no-wrap
25932 msgid ""
25933 " char *\n"
25934 " guestfs_df (guestfs_h *g);\n"
25935 "\n"
25936 msgstr ""
25937
25938 #. type: textblock
25939 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
25940 msgid ""
25941 "This command is mostly useful for interactive sessions.  It is I<not> "
25942 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25943 "from programs."
25944 msgstr ""
25945
25946 #. type: textblock
25947 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
25948 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
25949 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
25950 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
25951 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
25952 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
25953 #: ../src/guestfs-actions.pod:7823
25954 msgid "(Added in 1.0.54)"
25955 msgstr ""
25956
25957 #. type: =head2
25958 #: ../src/guestfs-actions.pod:1376
25959 msgid "guestfs_df_h"
25960 msgstr ""
25961
25962 #. type: verbatim
25963 #: ../src/guestfs-actions.pod:1378
25964 #, no-wrap
25965 msgid ""
25966 " char *\n"
25967 " guestfs_df_h (guestfs_h *g);\n"
25968 "\n"
25969 msgstr ""
25970
25971 #. type: =head2
25972 #: ../src/guestfs-actions.pod:1393
25973 msgid "guestfs_dmesg"
25974 msgstr ""
25975
25976 #. type: verbatim
25977 #: ../src/guestfs-actions.pod:1395
25978 #, no-wrap
25979 msgid ""
25980 " char *\n"
25981 " guestfs_dmesg (guestfs_h *g);\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../src/guestfs-actions.pod:1402
25987 msgid ""
25988 "Another way to get the same information is to enable verbose messages with "
25989 "C<guestfs_set_verbose> or by setting the environment variable "
25990 "C<LIBGUESTFS_DEBUG=1> before running the program."
25991 msgstr ""
25992
25993 #. type: =head2
25994 #: ../src/guestfs-actions.pod:1412
25995 msgid "guestfs_download"
25996 msgstr ""
25997
25998 #. type: verbatim
25999 #: ../src/guestfs-actions.pod:1414
26000 #, no-wrap
26001 msgid ""
26002 " int\n"
26003 " guestfs_download (guestfs_h *g,\n"
26004 "                   const char *remotefilename,\n"
26005 "                   const char *filename);\n"
26006 "\n"
26007 msgstr ""
26008
26009 #. type: textblock
26010 #: ../src/guestfs-actions.pod:1424
26011 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26012 msgstr ""
26013
26014 #. type: =head2
26015 #: ../src/guestfs-actions.pod:1435
26016 msgid "guestfs_download_offset"
26017 msgstr ""
26018
26019 #. type: verbatim
26020 #: ../src/guestfs-actions.pod:1437
26021 #, no-wrap
26022 msgid ""
26023 " int\n"
26024 " guestfs_download_offset (guestfs_h *g,\n"
26025 "                          const char *remotefilename,\n"
26026 "                          const char *filename,\n"
26027 "                          int64_t offset,\n"
26028 "                          int64_t size);\n"
26029 "\n"
26030 msgstr ""
26031
26032 #. type: textblock
26033 #: ../src/guestfs-actions.pod:1450
26034 msgid ""
26035 "Note that there is no limit on the amount of data that can be downloaded "
26036 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26037 "full amount unless an error occurs."
26038 msgstr ""
26039
26040 #. type: textblock
26041 #: ../src/guestfs-actions.pod:1455
26042 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26043 msgstr ""
26044
26045 #. type: textblock
26046 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26047 msgid "(Added in 1.5.17)"
26048 msgstr ""
26049
26050 #. type: =head2
26051 #: ../src/guestfs-actions.pod:1466
26052 msgid "guestfs_drop_caches"
26053 msgstr ""
26054
26055 #. type: verbatim
26056 #: ../src/guestfs-actions.pod:1468
26057 #, no-wrap
26058 msgid ""
26059 " int\n"
26060 " guestfs_drop_caches (guestfs_h *g,\n"
26061 "                      int whattodrop);\n"
26062 "\n"
26063 msgstr ""
26064
26065 #. type: =head2
26066 #: ../src/guestfs-actions.pod:1486
26067 msgid "guestfs_du"
26068 msgstr ""
26069
26070 #. type: verbatim
26071 #: ../src/guestfs-actions.pod:1488
26072 #, no-wrap
26073 msgid ""
26074 " int64_t\n"
26075 " guestfs_du (guestfs_h *g,\n"
26076 "             const char *path);\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: =head2
26081 #: ../src/guestfs-actions.pod:1511
26082 msgid "guestfs_e2fsck_f"
26083 msgstr ""
26084
26085 #. type: verbatim
26086 #: ../src/guestfs-actions.pod:1513
26087 #, no-wrap
26088 msgid ""
26089 " int\n"
26090 " guestfs_e2fsck_f (guestfs_h *g,\n"
26091 "                   const char *device);\n"
26092 "\n"
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:1521
26097 msgid ""
26098 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26099 "Normally you should use C<guestfs_fsck>."
26100 msgstr ""
26101
26102 #. type: textblock
26103 #: ../src/guestfs-actions.pod:1526
26104 msgid "(Added in 1.0.29)"
26105 msgstr ""
26106
26107 #. type: =head2
26108 #: ../src/guestfs-actions.pod:1528
26109 msgid "guestfs_echo_daemon"
26110 msgstr ""
26111
26112 #. type: verbatim
26113 #: ../src/guestfs-actions.pod:1530
26114 #, no-wrap
26115 msgid ""
26116 " char *\n"
26117 " guestfs_echo_daemon (guestfs_h *g,\n"
26118 "                      char *const *words);\n"
26119 "\n"
26120 msgstr ""
26121
26122 #. type: textblock
26123 #: ../src/guestfs-actions.pod:1539
26124 msgid "See also C<guestfs_ping_daemon>."
26125 msgstr ""
26126
26127 #. type: textblock
26128 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26129 #: ../src/guestfs-actions.pod:6626
26130 msgid "(Added in 1.0.69)"
26131 msgstr ""
26132
26133 #. type: =head2
26134 #: ../src/guestfs-actions.pod:1546
26135 msgid "guestfs_egrep"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../src/guestfs-actions.pod:1548
26140 #, no-wrap
26141 msgid ""
26142 " char **\n"
26143 " guestfs_egrep (guestfs_h *g,\n"
26144 "                const char *regex,\n"
26145 "                const char *path);\n"
26146 "\n"
26147 msgstr ""
26148
26149 #. type: textblock
26150 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26151 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26152 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26153 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26154 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26155 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26156 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26157 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26158 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26159 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26160 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
26161 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
26162 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
26163 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
26164 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
26165 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
26166 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
26167 msgid "(Added in 1.0.66)"
26168 msgstr ""
26169
26170 #. type: =head2
26171 #: ../src/guestfs-actions.pod:1565
26172 msgid "guestfs_egrepi"
26173 msgstr ""
26174
26175 #. type: verbatim
26176 #: ../src/guestfs-actions.pod:1567
26177 #, no-wrap
26178 msgid ""
26179 " char **\n"
26180 " guestfs_egrepi (guestfs_h *g,\n"
26181 "                 const char *regex,\n"
26182 "                 const char *path);\n"
26183 "\n"
26184 msgstr ""
26185
26186 #. type: =head2
26187 #: ../src/guestfs-actions.pod:1584
26188 msgid "guestfs_equal"
26189 msgstr ""
26190
26191 #. type: verbatim
26192 #: ../src/guestfs-actions.pod:1586
26193 #, no-wrap
26194 msgid ""
26195 " int\n"
26196 " guestfs_equal (guestfs_h *g,\n"
26197 "                const char *file1,\n"
26198 "                const char *file2);\n"
26199 "\n"
26200 msgstr ""
26201
26202 #. type: =head2
26203 #: ../src/guestfs-actions.pod:1600
26204 msgid "guestfs_exists"
26205 msgstr ""
26206
26207 #. type: verbatim
26208 #: ../src/guestfs-actions.pod:1602
26209 #, no-wrap
26210 msgid ""
26211 " int\n"
26212 " guestfs_exists (guestfs_h *g,\n"
26213 "                 const char *path);\n"
26214 "\n"
26215 msgstr ""
26216
26217 #. type: textblock
26218 #: ../src/guestfs-actions.pod:1609
26219 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26220 msgstr ""
26221
26222 #. type: =head2
26223 #: ../src/guestfs-actions.pod:1615
26224 msgid "guestfs_fallocate"
26225 msgstr ""
26226
26227 #. type: verbatim
26228 #: ../src/guestfs-actions.pod:1617
26229 #, no-wrap
26230 msgid ""
26231 " int\n"
26232 " guestfs_fallocate (guestfs_h *g,\n"
26233 "                    const char *path,\n"
26234 "                    int len);\n"
26235 "\n"
26236 msgstr ""
26237
26238 #. type: textblock
26239 #: ../src/guestfs-actions.pod:1622
26240 msgid ""
26241 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26242 "call instead."
26243 msgstr ""
26244
26245 #. type: =head2
26246 #: ../src/guestfs-actions.pod:1641
26247 msgid "guestfs_fallocate64"
26248 msgstr ""
26249
26250 #. type: verbatim
26251 #: ../src/guestfs-actions.pod:1643
26252 #, no-wrap
26253 msgid ""
26254 " int\n"
26255 " guestfs_fallocate64 (guestfs_h *g,\n"
26256 "                      const char *path,\n"
26257 "                      int64_t len);\n"
26258 "\n"
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:1652
26263 msgid ""
26264 "Note that this call allocates disk blocks for the file.  To create a sparse "
26265 "file use C<guestfs_truncate_size> instead."
26266 msgstr ""
26267
26268 #. type: textblock
26269 #: ../src/guestfs-actions.pod:1655
26270 msgid ""
26271 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26272 "oversight it only allowed 30 bit lengths to be specified, effectively "
26273 "limiting the maximum size of files created through that call to 1GB."
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../src/guestfs-actions.pod:1666
26278 msgid "(Added in 1.3.17)"
26279 msgstr ""
26280
26281 #. type: =head2
26282 #: ../src/guestfs-actions.pod:1668
26283 msgid "guestfs_fgrep"
26284 msgstr ""
26285
26286 #. type: verbatim
26287 #: ../src/guestfs-actions.pod:1670
26288 #, no-wrap
26289 msgid ""
26290 " char **\n"
26291 " guestfs_fgrep (guestfs_h *g,\n"
26292 "                const char *pattern,\n"
26293 "                const char *path);\n"
26294 "\n"
26295 msgstr ""
26296
26297 #. type: =head2
26298 #: ../src/guestfs-actions.pod:1687
26299 msgid "guestfs_fgrepi"
26300 msgstr ""
26301
26302 #. type: verbatim
26303 #: ../src/guestfs-actions.pod:1689
26304 #, no-wrap
26305 msgid ""
26306 " char **\n"
26307 " guestfs_fgrepi (guestfs_h *g,\n"
26308 "                 const char *pattern,\n"
26309 "                 const char *path);\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../src/guestfs-actions.pod:1706
26315 msgid "guestfs_file"
26316 msgstr ""
26317
26318 #. type: verbatim
26319 #: ../src/guestfs-actions.pod:1708
26320 #, no-wrap
26321 msgid ""
26322 " char *\n"
26323 " guestfs_file (guestfs_h *g,\n"
26324 "               const char *path);\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../src/guestfs-actions.pod:1726
26330 msgid ""
26331 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26332 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26333 msgstr ""
26334
26335 #. type: =head2
26336 #: ../src/guestfs-actions.pod:1734
26337 msgid "guestfs_file_architecture"
26338 msgstr ""
26339
26340 #. type: verbatim
26341 #: ../src/guestfs-actions.pod:1736
26342 #, no-wrap
26343 msgid ""
26344 " char *\n"
26345 " guestfs_file_architecture (guestfs_h *g,\n"
26346 "                            const char *filename);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: textblock
26351 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
26352 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
26353 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
26354 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
26355 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
26356 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
26357 #: ../src/guestfs-actions.pod:3713
26358 msgid "(Added in 1.5.3)"
26359 msgstr ""
26360
26361 #. type: =head2
26362 #: ../src/guestfs-actions.pod:1846
26363 msgid "guestfs_filesize"
26364 msgstr ""
26365
26366 #. type: verbatim
26367 #: ../src/guestfs-actions.pod:1848
26368 #, no-wrap
26369 msgid ""
26370 " int64_t\n"
26371 " guestfs_filesize (guestfs_h *g,\n"
26372 "                   const char *file);\n"
26373 "\n"
26374 msgstr ""
26375
26376 #. type: textblock
26377 #: ../src/guestfs-actions.pod:1854
26378 msgid ""
26379 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26380 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26381 "devices, use C<guestfs_blockdev_getsize64>."
26382 msgstr ""
26383
26384 #. type: textblock
26385 #: ../src/guestfs-actions.pod:1860
26386 msgid "(Added in 1.0.82)"
26387 msgstr ""
26388
26389 #. type: =head2
26390 #: ../src/guestfs-actions.pod:1862
26391 msgid "guestfs_fill"
26392 msgstr ""
26393
26394 #. type: verbatim
26395 #: ../src/guestfs-actions.pod:1864
26396 #, no-wrap
26397 msgid ""
26398 " int\n"
26399 " guestfs_fill (guestfs_h *g,\n"
26400 "               int c,\n"
26401 "               int len,\n"
26402 "               const char *path);\n"
26403 "\n"
26404 msgstr ""
26405
26406 #. type: textblock
26407 #: ../src/guestfs-actions.pod:1874
26408 msgid ""
26409 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26410 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26411 "bytes use C<guestfs_fill_pattern>."
26412 msgstr ""
26413
26414 #. type: textblock
26415 #: ../src/guestfs-actions.pod:1886
26416 msgid "(Added in 1.0.79)"
26417 msgstr ""
26418
26419 #. type: =head2
26420 #: ../src/guestfs-actions.pod:1888
26421 msgid "guestfs_fill_pattern"
26422 msgstr ""
26423
26424 #. type: verbatim
26425 #: ../src/guestfs-actions.pod:1890
26426 #, no-wrap
26427 msgid ""
26428 " int\n"
26429 " guestfs_fill_pattern (guestfs_h *g,\n"
26430 "                       const char *pattern,\n"
26431 "                       int len,\n"
26432 "                       const char *path);\n"
26433 "\n"
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../src/guestfs-actions.pod:1896
26438 msgid ""
26439 "This function is like C<guestfs_fill> except that it creates a new file of "
26440 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26441 "pattern is truncated if necessary to ensure the length of the file is "
26442 "exactly C<len> bytes."
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:1908
26447 msgid "(Added in 1.3.12)"
26448 msgstr ""
26449
26450 #. type: =head2
26451 #: ../src/guestfs-actions.pod:1910
26452 msgid "guestfs_find"
26453 msgstr ""
26454
26455 #. type: verbatim
26456 #: ../src/guestfs-actions.pod:1912
26457 #, no-wrap
26458 msgid ""
26459 " char **\n"
26460 " guestfs_find (guestfs_h *g,\n"
26461 "               const char *directory);\n"
26462 "\n"
26463 msgstr ""
26464
26465 #. type: textblock
26466 #: ../src/guestfs-actions.pod:1928
26467 msgid ""
26468 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26469 msgstr ""
26470
26471 #. type: textblock
26472 #: ../src/guestfs-actions.pod:1941
26473 msgid "See also C<guestfs_find0>."
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
26478 #: ../src/guestfs-actions.pod:6171
26479 msgid "(Added in 1.0.27)"
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:1952
26484 msgid "guestfs_find0"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:1954
26489 #, no-wrap
26490 msgid ""
26491 " int\n"
26492 " guestfs_find0 (guestfs_h *g,\n"
26493 "                const char *directory,\n"
26494 "                const char *files);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:1963
26500 msgid ""
26501 "This command works the same way as C<guestfs_find> with the following "
26502 "exceptions:"
26503 msgstr ""
26504
26505 #. type: textblock
26506 #: ../src/guestfs-actions.pod:1990
26507 msgid "(Added in 1.0.74)"
26508 msgstr ""
26509
26510 #. type: =head2
26511 #: ../src/guestfs-actions.pod:1992
26512 msgid "guestfs_findfs_label"
26513 msgstr ""
26514
26515 #. type: verbatim
26516 #: ../src/guestfs-actions.pod:1994
26517 #, no-wrap
26518 msgid ""
26519 " char *\n"
26520 " guestfs_findfs_label (guestfs_h *g,\n"
26521 "                       const char *label);\n"
26522 "\n"
26523 msgstr ""
26524
26525 #. type: textblock
26526 #: ../src/guestfs-actions.pod:2002
26527 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26528 msgstr ""
26529
26530 #. type: =head2
26531 #: ../src/guestfs-actions.pod:2009
26532 msgid "guestfs_findfs_uuid"
26533 msgstr ""
26534
26535 #. type: verbatim
26536 #: ../src/guestfs-actions.pod:2011
26537 #, no-wrap
26538 msgid ""
26539 " char *\n"
26540 " guestfs_findfs_uuid (guestfs_h *g,\n"
26541 "                      const char *uuid);\n"
26542 "\n"
26543 msgstr ""
26544
26545 #. type: textblock
26546 #: ../src/guestfs-actions.pod:2019
26547 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../src/guestfs-actions.pod:2026
26552 msgid "guestfs_fsck"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../src/guestfs-actions.pod:2028
26557 #, no-wrap
26558 msgid ""
26559 " int\n"
26560 " guestfs_fsck (guestfs_h *g,\n"
26561 "               const char *fstype,\n"
26562 "               const char *device);\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: textblock
26567 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
26568 msgid "(Added in 1.0.16)"
26569 msgstr ""
26570
26571 #. type: =head2
26572 #: ../src/guestfs-actions.pod:2065
26573 msgid "guestfs_get_append"
26574 msgstr ""
26575
26576 #. type: verbatim
26577 #: ../src/guestfs-actions.pod:2067
26578 #, no-wrap
26579 msgid ""
26580 " const char *\n"
26581 " guestfs_get_append (guestfs_h *g);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: textblock
26586 #: ../src/guestfs-actions.pod:2075
26587 msgid ""
26588 "This function returns a string which may be NULL.  There is no way to return "
26589 "an error from this function.  The string is owned by the guest handle and "
26590 "must I<not> be freed."
26591 msgstr ""
26592
26593 #. type: textblock
26594 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
26595 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
26596 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
26597 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
26598 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
26599 msgid "(Added in 1.0.26)"
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:2081
26604 msgid "guestfs_get_attach_method"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:2083
26609 #, no-wrap
26610 msgid ""
26611 " char *\n"
26612 " guestfs_get_attach_method (guestfs_h *g);\n"
26613 "\n"
26614 msgstr ""
26615
26616 #. type: textblock
26617 #: ../src/guestfs-actions.pod:2086
26618 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
26623 msgid "(Added in 1.9.8)"
26624 msgstr ""
26625
26626 #. type: =head2
26627 #: ../src/guestfs-actions.pod:2093
26628 msgid "guestfs_get_autosync"
26629 msgstr ""
26630
26631 #. type: verbatim
26632 #: ../src/guestfs-actions.pod:2095
26633 #, no-wrap
26634 msgid ""
26635 " int\n"
26636 " guestfs_get_autosync (guestfs_h *g);\n"
26637 "\n"
26638 msgstr ""
26639
26640 #. type: =head2
26641 #: ../src/guestfs-actions.pod:2104
26642 msgid "guestfs_get_direct"
26643 msgstr ""
26644
26645 #. type: verbatim
26646 #: ../src/guestfs-actions.pod:2106
26647 #, no-wrap
26648 msgid ""
26649 " int\n"
26650 " guestfs_get_direct (guestfs_h *g);\n"
26651 "\n"
26652 msgstr ""
26653
26654 #. type: textblock
26655 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
26656 msgid "(Added in 1.0.72)"
26657 msgstr ""
26658
26659 #. type: =head2
26660 #: ../src/guestfs-actions.pod:2115
26661 msgid "guestfs_get_e2label"
26662 msgstr ""
26663
26664 #. type: verbatim
26665 #: ../src/guestfs-actions.pod:2117
26666 #, no-wrap
26667 msgid ""
26668 " char *\n"
26669 " guestfs_get_e2label (guestfs_h *g,\n"
26670 "                      const char *device);\n"
26671 "\n"
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:2121
26676 msgid ""
26677 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26678 "call instead."
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
26683 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
26684 msgid "(Added in 1.0.15)"
26685 msgstr ""
26686
26687 #. type: =head2
26688 #: ../src/guestfs-actions.pod:2136
26689 msgid "guestfs_get_e2uuid"
26690 msgstr ""
26691
26692 #. type: verbatim
26693 #: ../src/guestfs-actions.pod:2138
26694 #, no-wrap
26695 msgid ""
26696 " char *\n"
26697 " guestfs_get_e2uuid (guestfs_h *g,\n"
26698 "                     const char *device);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../src/guestfs-actions.pod:2142
26704 msgid ""
26705 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26706 "call instead."
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../src/guestfs-actions.pod:2157
26711 msgid "guestfs_get_memsize"
26712 msgstr ""
26713
26714 #. type: verbatim
26715 #: ../src/guestfs-actions.pod:2159
26716 #, no-wrap
26717 msgid ""
26718 " int\n"
26719 " guestfs_get_memsize (guestfs_h *g);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:2165
26725 msgid ""
26726 "If C<guestfs_set_memsize> was not called on this handle, and if "
26727 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26728 "value for memsize."
26729 msgstr ""
26730
26731 #. type: textblock
26732 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
26733 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
26734 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
26735 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
26736 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
26737 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
26738 msgid "(Added in 1.0.55)"
26739 msgstr ""
26740
26741 #. type: =head2
26742 #: ../src/guestfs-actions.pod:2176
26743 msgid "guestfs_get_network"
26744 msgstr ""
26745
26746 #. type: verbatim
26747 #: ../src/guestfs-actions.pod:2178
26748 #, no-wrap
26749 msgid ""
26750 " int\n"
26751 " guestfs_get_network (guestfs_h *g);\n"
26752 "\n"
26753 msgstr ""
26754
26755 #. type: textblock
26756 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
26757 msgid "(Added in 1.5.4)"
26758 msgstr ""
26759
26760 #. type: =head2
26761 #: ../src/guestfs-actions.pod:2187
26762 msgid "guestfs_get_path"
26763 msgstr ""
26764
26765 #. type: verbatim
26766 #: ../src/guestfs-actions.pod:2189
26767 #, no-wrap
26768 msgid ""
26769 " const char *\n"
26770 " guestfs_get_path (guestfs_h *g);\n"
26771 "\n"
26772 msgstr ""
26773
26774 #. type: textblock
26775 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
26776 msgid ""
26777 "This function returns a string, or NULL on error.  The string is owned by "
26778 "the guest handle and must I<not> be freed."
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:2202
26783 msgid "guestfs_get_pgroup"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:2204
26788 #, no-wrap
26789 msgid ""
26790 " int\n"
26791 " guestfs_get_pgroup (guestfs_h *g);\n"
26792 "\n"
26793 msgstr ""
26794
26795 #. type: textblock
26796 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
26797 #: ../src/guestfs-actions.pod:7863
26798 msgid "(Added in 1.11.18)"
26799 msgstr ""
26800
26801 #. type: =head2
26802 #: ../src/guestfs-actions.pod:2213
26803 msgid "guestfs_get_pid"
26804 msgstr ""
26805
26806 #. type: verbatim
26807 #: ../src/guestfs-actions.pod:2215
26808 #, no-wrap
26809 msgid ""
26810 " int\n"
26811 " guestfs_get_pid (guestfs_h *g);\n"
26812 "\n"
26813 msgstr ""
26814
26815 #. type: textblock
26816 #: ../src/guestfs-actions.pod:2225
26817 msgid "(Added in 1.0.56)"
26818 msgstr ""
26819
26820 #. type: =head2
26821 #: ../src/guestfs-actions.pod:2227
26822 msgid "guestfs_get_qemu"
26823 msgstr ""
26824
26825 #. type: verbatim
26826 #: ../src/guestfs-actions.pod:2229
26827 #, no-wrap
26828 msgid ""
26829 " const char *\n"
26830 " guestfs_get_qemu (guestfs_h *g);\n"
26831 "\n"
26832 msgstr ""
26833
26834 #. type: textblock
26835 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
26836 msgid "(Added in 1.0.6)"
26837 msgstr ""
26838
26839 #. type: =head2
26840 #: ../src/guestfs-actions.pod:2242
26841 msgid "guestfs_get_recovery_proc"
26842 msgstr ""
26843
26844 #. type: verbatim
26845 #: ../src/guestfs-actions.pod:2244
26846 #, no-wrap
26847 msgid ""
26848 " int\n"
26849 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26850 "\n"
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
26855 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
26856 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
26857 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
26858 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
26859 #: ../src/guestfs-actions.pod:7486
26860 msgid "(Added in 1.0.77)"
26861 msgstr ""
26862
26863 #. type: =head2
26864 #: ../src/guestfs-actions.pod:2253
26865 msgid "guestfs_get_selinux"
26866 msgstr ""
26867
26868 #. type: verbatim
26869 #: ../src/guestfs-actions.pod:2255
26870 #, no-wrap
26871 msgid ""
26872 " int\n"
26873 " guestfs_get_selinux (guestfs_h *g);\n"
26874 "\n"
26875 msgstr ""
26876
26877 #. type: textblock
26878 #: ../src/guestfs-actions.pod:2258
26879 msgid ""
26880 "This returns the current setting of the selinux flag which is passed to the "
26881 "appliance at boot time.  See C<guestfs_set_selinux>."
26882 msgstr ""
26883
26884 #. type: textblock
26885 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
26886 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
26887 msgid "(Added in 1.0.67)"
26888 msgstr ""
26889
26890 #. type: =head2
26891 #: ../src/guestfs-actions.pod:2268
26892 msgid "guestfs_get_smp"
26893 msgstr ""
26894
26895 #. type: verbatim
26896 #: ../src/guestfs-actions.pod:2270
26897 #, no-wrap
26898 msgid ""
26899 " int\n"
26900 " guestfs_get_smp (guestfs_h *g);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: =head2
26905 #: ../src/guestfs-actions.pod:2279
26906 msgid "guestfs_get_state"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:2281
26911 #, no-wrap
26912 msgid ""
26913 " int\n"
26914 " guestfs_get_state (guestfs_h *g);\n"
26915 "\n"
26916 msgstr ""
26917
26918 #. type: =head2
26919 #: ../src/guestfs-actions.pod:2293
26920 msgid "guestfs_get_trace"
26921 msgstr ""
26922
26923 #. type: verbatim
26924 #: ../src/guestfs-actions.pod:2295
26925 #, no-wrap
26926 msgid ""
26927 " int\n"
26928 " guestfs_get_trace (guestfs_h *g);\n"
26929 "\n"
26930 msgstr ""
26931
26932 #. type: =head2
26933 #: ../src/guestfs-actions.pod:2304
26934 msgid "guestfs_get_umask"
26935 msgstr ""
26936
26937 #. type: verbatim
26938 #: ../src/guestfs-actions.pod:2306
26939 #, no-wrap
26940 msgid ""
26941 " int\n"
26942 " guestfs_get_umask (guestfs_h *g);\n"
26943 "\n"
26944 msgstr ""
26945
26946 #. type: textblock
26947 #: ../src/guestfs-actions.pod:2309
26948 msgid ""
26949 "Return the current umask.  By default the umask is C<022> unless it has been "
26950 "set by calling C<guestfs_umask>."
26951 msgstr ""
26952
26953 #. type: =head2
26954 #: ../src/guestfs-actions.pod:2316
26955 msgid "guestfs_get_verbose"
26956 msgstr ""
26957
26958 #. type: verbatim
26959 #: ../src/guestfs-actions.pod:2318
26960 #, no-wrap
26961 msgid ""
26962 " int\n"
26963 " guestfs_get_verbose (guestfs_h *g);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: =head2
26968 #: ../src/guestfs-actions.pod:2327
26969 msgid "guestfs_getcon"
26970 msgstr ""
26971
26972 #. type: verbatim
26973 #: ../src/guestfs-actions.pod:2329
26974 #, no-wrap
26975 msgid ""
26976 " char *\n"
26977 " guestfs_getcon (guestfs_h *g);\n"
26978 "\n"
26979 msgstr ""
26980
26981 #. type: textblock
26982 #: ../src/guestfs-actions.pod:2334
26983 msgid ""
26984 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26985 msgstr ""
26986
26987 #. type: =head2
26988 #: ../src/guestfs-actions.pod:2342
26989 msgid "guestfs_getxattr"
26990 msgstr ""
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:2344
26994 #, no-wrap
26995 msgid ""
26996 " char *\n"
26997 " guestfs_getxattr (guestfs_h *g,\n"
26998 "                   const char *path,\n"
26999 "                   const char *name,\n"
27000 "                   size_t *size_r);\n"
27001 "\n"
27002 msgstr ""
27003
27004 #. type: textblock
27005 #: ../src/guestfs-actions.pod:2350
27006 msgid ""
27007 "Get a single extended attribute from file C<path> named C<name>.  This call "
27008 "follows symlinks.  If you want to lookup an extended attribute for the "
27009 "symlink itself, use C<guestfs_lgetxattr>."
27010 msgstr ""
27011
27012 #. type: textblock
27013 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27014 msgid ""
27015 "Normally it is better to get all extended attributes from a file in one go "
27016 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27017 "implementations are buggy and do not provide a way to list out attributes.  "
27018 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27019 "extended attributes you want in advance and call this function."
27020 msgstr ""
27021
27022 #. type: textblock
27023 #: ../src/guestfs-actions.pod:2364
27024 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27025 msgstr ""
27026
27027 #. type: textblock
27028 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27029 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27030 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27031 #: ../src/guestfs-actions.pod:5979
27032 msgid ""
27033 "This function returns a buffer, or NULL on error.  The size of the returned "
27034 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27035 "after use>."
27036 msgstr ""
27037
27038 #. type: textblock
27039 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27040 msgid "(Added in 1.7.24)"
27041 msgstr ""
27042
27043 #. type: =head2
27044 #: ../src/guestfs-actions.pod:2372
27045 msgid "guestfs_getxattrs"
27046 msgstr ""
27047
27048 #. type: verbatim
27049 #: ../src/guestfs-actions.pod:2374
27050 #, no-wrap
27051 msgid ""
27052 " struct guestfs_xattr_list *\n"
27053 " guestfs_getxattrs (guestfs_h *g,\n"
27054 "                    const char *path);\n"
27055 "\n"
27056 msgstr ""
27057
27058 #. type: textblock
27059 #: ../src/guestfs-actions.pod:2384
27060 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27061 msgstr ""
27062
27063 #. type: textblock
27064 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27065 #: ../src/guestfs-actions.pod:4565
27066 msgid ""
27067 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27068 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27069 msgstr ""
27070
27071 #. type: textblock
27072 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27073 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27074 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27075 #: ../src/guestfs-actions.pod:8074
27076 msgid "(Added in 1.0.59)"
27077 msgstr ""
27078
27079 #. type: =head2
27080 #: ../src/guestfs-actions.pod:2392
27081 msgid "guestfs_glob_expand"
27082 msgstr ""
27083
27084 #. type: verbatim
27085 #: ../src/guestfs-actions.pod:2394
27086 #, no-wrap
27087 msgid ""
27088 " char **\n"
27089 " guestfs_glob_expand (guestfs_h *g,\n"
27090 "                      const char *pattern);\n"
27091 "\n"
27092 msgstr ""
27093
27094 #. type: textblock
27095 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27096 #: ../src/guestfs-actions.pod:6889
27097 msgid "(Added in 1.0.50)"
27098 msgstr ""
27099
27100 #. type: =head2
27101 #: ../src/guestfs-actions.pod:2415
27102 msgid "guestfs_grep"
27103 msgstr ""
27104
27105 #. type: verbatim
27106 #: ../src/guestfs-actions.pod:2417
27107 #, no-wrap
27108 msgid ""
27109 " char **\n"
27110 " guestfs_grep (guestfs_h *g,\n"
27111 "               const char *regex,\n"
27112 "               const char *path);\n"
27113 "\n"
27114 msgstr ""
27115
27116 #. type: =head2
27117 #: ../src/guestfs-actions.pod:2434
27118 msgid "guestfs_grepi"
27119 msgstr ""
27120
27121 #. type: verbatim
27122 #: ../src/guestfs-actions.pod:2436
27123 #, no-wrap
27124 msgid ""
27125 " char **\n"
27126 " guestfs_grepi (guestfs_h *g,\n"
27127 "                const char *regex,\n"
27128 "                const char *path);\n"
27129 "\n"
27130 msgstr ""
27131
27132 #. type: =head2
27133 #: ../src/guestfs-actions.pod:2453
27134 msgid "guestfs_grub_install"
27135 msgstr ""
27136
27137 #. type: verbatim
27138 #: ../src/guestfs-actions.pod:2455
27139 #, no-wrap
27140 msgid ""
27141 " int\n"
27142 " guestfs_grub_install (guestfs_h *g,\n"
27143 "                       const char *root,\n"
27144 "                       const char *device);\n"
27145 "\n"
27146 msgstr ""
27147
27148 #. type: textblock
27149 #: ../src/guestfs-actions.pod:2498
27150 msgid "(Added in 1.0.17)"
27151 msgstr ""
27152
27153 #. type: =head2
27154 #: ../src/guestfs-actions.pod:2500
27155 msgid "guestfs_head"
27156 msgstr ""
27157
27158 #. type: verbatim
27159 #: ../src/guestfs-actions.pod:2502
27160 #, no-wrap
27161 msgid ""
27162 " char **\n"
27163 " guestfs_head (guestfs_h *g,\n"
27164 "               const char *path);\n"
27165 "\n"
27166 msgstr ""
27167
27168 #. type: =head2
27169 #: ../src/guestfs-actions.pod:2518
27170 msgid "guestfs_head_n"
27171 msgstr ""
27172
27173 #. type: verbatim
27174 #: ../src/guestfs-actions.pod:2520
27175 #, no-wrap
27176 msgid ""
27177 " char **\n"
27178 " guestfs_head_n (guestfs_h *g,\n"
27179 "                 int nrlines,\n"
27180 "                 const char *path);\n"
27181 "\n"
27182 msgstr ""
27183
27184 #. type: =head2
27185 #: ../src/guestfs-actions.pod:2542
27186 msgid "guestfs_hexdump"
27187 msgstr ""
27188
27189 #. type: verbatim
27190 #: ../src/guestfs-actions.pod:2544
27191 #, no-wrap
27192 msgid ""
27193 " char *\n"
27194 " guestfs_hexdump (guestfs_h *g,\n"
27195 "                  const char *path);\n"
27196 "\n"
27197 msgstr ""
27198
27199 #. type: textblock
27200 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
27201 #: ../src/guestfs-actions.pod:7008
27202 msgid "(Added in 1.0.22)"
27203 msgstr ""
27204
27205 #. type: =head2
27206 #: ../src/guestfs-actions.pod:2559
27207 msgid "guestfs_initrd_cat"
27208 msgstr ""
27209
27210 #. type: verbatim
27211 #: ../src/guestfs-actions.pod:2561
27212 #, no-wrap
27213 msgid ""
27214 " char *\n"
27215 " guestfs_initrd_cat (guestfs_h *g,\n"
27216 "                     const char *initrdpath,\n"
27217 "                     const char *filename,\n"
27218 "                     size_t *size_r);\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: textblock
27223 #: ../src/guestfs-actions.pod:2577
27224 msgid "See also C<guestfs_initrd_list>."
27225 msgstr ""
27226
27227 #. type: =head2
27228 #: ../src/guestfs-actions.pod:2588
27229 msgid "guestfs_initrd_list"
27230 msgstr ""
27231
27232 #. type: verbatim
27233 #: ../src/guestfs-actions.pod:2590
27234 #, no-wrap
27235 msgid ""
27236 " char **\n"
27237 " guestfs_initrd_list (guestfs_h *g,\n"
27238 "                      const char *path);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: =head2
27243 #: ../src/guestfs-actions.pod:2610
27244 msgid "guestfs_inotify_add_watch"
27245 msgstr ""
27246
27247 #. type: verbatim
27248 #: ../src/guestfs-actions.pod:2612
27249 #, no-wrap
27250 msgid ""
27251 " int64_t\n"
27252 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27253 "                            const char *path,\n"
27254 "                            int mask);\n"
27255 "\n"
27256 msgstr ""
27257
27258 #. type: =head2
27259 #: ../src/guestfs-actions.pod:2631
27260 msgid "guestfs_inotify_close"
27261 msgstr ""
27262
27263 #. type: verbatim
27264 #: ../src/guestfs-actions.pod:2633
27265 #, no-wrap
27266 msgid ""
27267 " int\n"
27268 " guestfs_inotify_close (guestfs_h *g);\n"
27269 "\n"
27270 msgstr ""
27271
27272 #. type: =head2
27273 #: ../src/guestfs-actions.pod:2644
27274 msgid "guestfs_inotify_files"
27275 msgstr ""
27276
27277 #. type: verbatim
27278 #: ../src/guestfs-actions.pod:2646
27279 #, no-wrap
27280 msgid ""
27281 " char **\n"
27282 " guestfs_inotify_files (guestfs_h *g);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../src/guestfs-actions.pod:2649
27288 msgid ""
27289 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27290 "returns a list of pathnames of objects that were touched.  The returned "
27291 "pathnames are sorted and deduplicated."
27292 msgstr ""
27293
27294 #. type: =head2
27295 #: ../src/guestfs-actions.pod:2659
27296 msgid "guestfs_inotify_init"
27297 msgstr ""
27298
27299 #. type: verbatim
27300 #: ../src/guestfs-actions.pod:2661
27301 #, no-wrap
27302 msgid ""
27303 " int\n"
27304 " guestfs_inotify_init (guestfs_h *g,\n"
27305 "                       int maxevents);\n"
27306 "\n"
27307 msgstr ""
27308
27309 #. type: textblock
27310 #: ../src/guestfs-actions.pod:2669
27311 msgid ""
27312 "C<maxevents> is the maximum number of events which will be queued up between "
27313 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27314 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27315 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27316 "throws away events, but records the fact that it threw them away by setting "
27317 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27318 "C<guestfs_inotify_read>)."
27319 msgstr ""
27320
27321 #. type: textblock
27322 #: ../src/guestfs-actions.pod:2679
27323 msgid ""
27324 "Before any events are generated, you have to add some watches to the "
27325 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27326 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27327 msgstr ""
27328
27329 #. type: textblock
27330 #: ../src/guestfs-actions.pod:2685
27331 msgid ""
27332 "Queued up events should be read periodically by calling "
27333 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27334 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27335 "often enough then you risk the internal queue overflowing."
27336 msgstr ""
27337
27338 #. type: textblock
27339 #: ../src/guestfs-actions.pod:2692
27340 msgid ""
27341 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27342 "This also removes any watches automatically."
27343 msgstr ""
27344
27345 #. type: =head2
27346 #: ../src/guestfs-actions.pod:2705
27347 msgid "guestfs_inotify_read"
27348 msgstr ""
27349
27350 #. type: verbatim
27351 #: ../src/guestfs-actions.pod:2707
27352 #, no-wrap
27353 msgid ""
27354 " struct guestfs_inotify_event_list *\n"
27355 " guestfs_inotify_read (guestfs_h *g);\n"
27356 "\n"
27357 msgstr ""
27358
27359 #. type: textblock
27360 #: ../src/guestfs-actions.pod:2721
27361 msgid ""
27362 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27363 "there was an error.  I<The caller must call "
27364 "C<guestfs_free_inotify_event_list> after use>."
27365 msgstr ""
27366
27367 #. type: =head2
27368 #: ../src/guestfs-actions.pod:2727
27369 msgid "guestfs_inotify_rm_watch"
27370 msgstr ""
27371
27372 #. type: verbatim
27373 #: ../src/guestfs-actions.pod:2729
27374 #, no-wrap
27375 msgid ""
27376 " int\n"
27377 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27378 "                           int wd);\n"
27379 "\n"
27380 msgstr ""
27381
27382 #. type: textblock
27383 #: ../src/guestfs-actions.pod:2733
27384 msgid ""
27385 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
27386 msgstr ""
27387
27388 #. type: =head2
27389 #: ../src/guestfs-actions.pod:2740
27390 msgid "guestfs_inspect_get_arch"
27391 msgstr ""
27392
27393 #. type: verbatim
27394 #: ../src/guestfs-actions.pod:2742
27395 #, no-wrap
27396 msgid ""
27397 " char *\n"
27398 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27399 "                           const char *root);\n"
27400 "\n"
27401 msgstr ""
27402
27403 #. type: textblock
27404 #: ../src/guestfs-actions.pod:2746
27405 msgid ""
27406 "This returns the architecture of the inspected operating system.  The "
27407 "possible return values are listed under C<guestfs_file_architecture>."
27408 msgstr ""
27409
27410 #. type: =head2
27411 #: ../src/guestfs-actions.pod:2760
27412 msgid "guestfs_inspect_get_distro"
27413 msgstr ""
27414
27415 #. type: verbatim
27416 #: ../src/guestfs-actions.pod:2762
27417 #, no-wrap
27418 msgid ""
27419 " char *\n"
27420 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27421 "                             const char *root);\n"
27422 "\n"
27423 msgstr ""
27424
27425 #. type: =head2
27426 #: ../src/guestfs-actions.pod:2862
27427 msgid "guestfs_inspect_get_drive_mappings"
27428 msgstr ""
27429
27430 #. type: verbatim
27431 #: ../src/guestfs-actions.pod:2864
27432 #, no-wrap
27433 msgid ""
27434 " char **\n"
27435 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27436 "                                     const char *root);\n"
27437 "\n"
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:2893
27442 msgid ""
27443 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27444 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27445 msgstr ""
27446
27447 #. type: textblock
27448 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
27449 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
27450 #: ../src/guestfs-actions.pod:7310
27451 msgid ""
27452 "This function returns a NULL-terminated array of strings, or NULL if there "
27453 "was an error.  The array of strings will always have length C<2n+1>, where "
27454 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27455 "caller must free the strings and the array after use>."
27456 msgstr ""
27457
27458 #. type: textblock
27459 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
27460 msgid "(Added in 1.9.17)"
27461 msgstr ""
27462
27463 #. type: =head2
27464 #: ../src/guestfs-actions.pod:2905
27465 msgid "guestfs_inspect_get_filesystems"
27466 msgstr ""
27467
27468 #. type: verbatim
27469 #: ../src/guestfs-actions.pod:2907
27470 #, no-wrap
27471 msgid ""
27472 " char **\n"
27473 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27474 "                                  const char *root);\n"
27475 "\n"
27476 msgstr ""
27477
27478 #. type: textblock
27479 #: ../src/guestfs-actions.pod:2919
27480 msgid ""
27481 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27482 "C<guestfs_inspect_get_mountpoints>."
27483 msgstr ""
27484
27485 #. type: =head2
27486 #: ../src/guestfs-actions.pod:2928
27487 msgid "guestfs_inspect_get_format"
27488 msgstr ""
27489
27490 #. type: verbatim
27491 #: ../src/guestfs-actions.pod:2930
27492 #, no-wrap
27493 msgid ""
27494 " char *\n"
27495 " guestfs_inspect_get_format (guestfs_h *g,\n"
27496 "                             const char *root);\n"
27497 "\n"
27498 msgstr ""
27499
27500 #. type: textblock
27501 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
27502 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
27503 #: ../src/guestfs-actions.pod:6190
27504 msgid "(Added in 1.9.4)"
27505 msgstr ""
27506
27507 #. type: =head2
27508 #: ../src/guestfs-actions.pod:2966
27509 msgid "guestfs_inspect_get_hostname"
27510 msgstr ""
27511
27512 #. type: verbatim
27513 #: ../src/guestfs-actions.pod:2968
27514 #, no-wrap
27515 msgid ""
27516 " char *\n"
27517 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27518 "                               const char *root);\n"
27519 "\n"
27520 msgstr ""
27521
27522 #. type: textblock
27523 #: ../src/guestfs-actions.pod:2983
27524 msgid "(Added in 1.7.9)"
27525 msgstr ""
27526
27527 #. type: =head2
27528 #: ../src/guestfs-actions.pod:2985
27529 msgid "guestfs_inspect_get_icon"
27530 msgstr ""
27531
27532 #. type: verbatim
27533 #: ../src/guestfs-actions.pod:2987
27534 #, no-wrap
27535 msgid ""
27536 " char *\n"
27537 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27538 "                           const char *root,\n"
27539 "                           size_t *size_r,\n"
27540 "                           ...);\n"
27541 "\n"
27542 msgstr ""
27543
27544 #. type: verbatim
27545 #: ../src/guestfs-actions.pod:2998
27546 #, no-wrap
27547 msgid ""
27548 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27549 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27550 "\n"
27551 msgstr ""
27552
27553 #. type: textblock
27554 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
27555 #: ../src/guestfs-actions.pod:5139
27556 msgid "(Added in 1.11.12)"
27557 msgstr ""
27558
27559 #. type: =head2
27560 #: ../src/guestfs-actions.pod:3067
27561 msgid "guestfs_inspect_get_icon_va"
27562 msgstr ""
27563
27564 #. type: verbatim
27565 #: ../src/guestfs-actions.pod:3069
27566 #, no-wrap
27567 msgid ""
27568 " char *\n"
27569 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27570 "                              const char *root,\n"
27571 "                              size_t *size_r,\n"
27572 "                              va_list args);\n"
27573 "\n"
27574 msgstr ""
27575
27576 #. type: textblock
27577 #: ../src/guestfs-actions.pod:3075
27578 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27579 msgstr ""
27580
27581 #. type: =head2
27582 #: ../src/guestfs-actions.pod:3079
27583 msgid "guestfs_inspect_get_icon_argv"
27584 msgstr ""
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:3081
27588 #, no-wrap
27589 msgid ""
27590 " char *\n"
27591 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27592 "                                const char *root,\n"
27593 "                                size_t *size_r,\n"
27594 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27595 "\n"
27596 msgstr ""
27597
27598 #. type: textblock
27599 #: ../src/guestfs-actions.pod:3087
27600 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27601 msgstr ""
27602
27603 #. type: =head2
27604 #: ../src/guestfs-actions.pod:3091
27605 msgid "guestfs_inspect_get_major_version"
27606 msgstr ""
27607
27608 #. type: verbatim
27609 #: ../src/guestfs-actions.pod:3093
27610 #, no-wrap
27611 msgid ""
27612 " int\n"
27613 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27614 "                                    const char *root);\n"
27615 "\n"
27616 msgstr ""
27617
27618 #. type: =head2
27619 #: ../src/guestfs-actions.pod:3115
27620 msgid "guestfs_inspect_get_minor_version"
27621 msgstr ""
27622
27623 #. type: verbatim
27624 #: ../src/guestfs-actions.pod:3117
27625 #, no-wrap
27626 msgid ""
27627 " int\n"
27628 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27629 "                                    const char *root);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: textblock
27634 #: ../src/guestfs-actions.pod:3126
27635 msgid ""
27636 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27637 "C<guestfs_inspect_get_major_version>."
27638 msgstr ""
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:3133
27642 msgid "guestfs_inspect_get_mountpoints"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:3135
27647 #, no-wrap
27648 msgid ""
27649 " char **\n"
27650 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27651 "                                  const char *root);\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:3156
27657 msgid ""
27658 "For operating systems like Windows which still use drive letters, this call "
27659 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27660 "information about the mapping of drive letters to partitions, see "
27661 "C<guestfs_inspect_get_drive_mappings>."
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:3162
27666 msgid ""
27667 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27668 "C<guestfs_inspect_get_filesystems>."
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:3173
27673 msgid "guestfs_inspect_get_package_format"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:3175
27678 #, no-wrap
27679 msgid ""
27680 " char *\n"
27681 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27682 "                                     const char *root);\n"
27683 "\n"
27684 msgstr ""
27685
27686 #. type: textblock
27687 #: ../src/guestfs-actions.pod:3179
27688 msgid ""
27689 "This function and C<guestfs_inspect_get_package_management> return the "
27690 "package format and package management tool used by the inspected operating "
27691 "system.  For example for Fedora these functions would return C<rpm> (package "
27692 "format) and C<yum> (package management)."
27693 msgstr ""
27694
27695 #. type: textblock
27696 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
27697 msgid "(Added in 1.7.5)"
27698 msgstr ""
27699
27700 #. type: =head2
27701 #: ../src/guestfs-actions.pod:3200
27702 msgid "guestfs_inspect_get_package_management"
27703 msgstr ""
27704
27705 #. type: verbatim
27706 #: ../src/guestfs-actions.pod:3202
27707 #, no-wrap
27708 msgid ""
27709 " char *\n"
27710 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27711 "                                         const char *root);\n"
27712 "\n"
27713 msgstr ""
27714
27715 #. type: textblock
27716 #: ../src/guestfs-actions.pod:3206
27717 msgid ""
27718 "C<guestfs_inspect_get_package_format> and this function return the package "
27719 "format and package management tool used by the inspected operating system.  "
27720 "For example for Fedora these functions would return C<rpm> (package format) "
27721 "and C<yum> (package management)."
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:3228
27726 msgid "guestfs_inspect_get_product_name"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:3230
27731 #, no-wrap
27732 msgid ""
27733 " char *\n"
27734 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27735 "                                   const char *root);\n"
27736 "\n"
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../src/guestfs-actions.pod:3249
27741 msgid "guestfs_inspect_get_product_variant"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../src/guestfs-actions.pod:3251
27746 #, no-wrap
27747 msgid ""
27748 " char *\n"
27749 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27750 "                                      const char *root);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: textblock
27755 #: ../src/guestfs-actions.pod:3274
27756 msgid ""
27757 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27758 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27759 msgstr ""
27760
27761 #. type: textblock
27762 #: ../src/guestfs-actions.pod:3281
27763 msgid "(Added in 1.9.13)"
27764 msgstr ""
27765
27766 #. type: =head2
27767 #: ../src/guestfs-actions.pod:3283
27768 msgid "guestfs_inspect_get_roots"
27769 msgstr ""
27770
27771 #. type: verbatim
27772 #: ../src/guestfs-actions.pod:3285
27773 #, no-wrap
27774 msgid ""
27775 " char **\n"
27776 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27777 "\n"
27778 msgstr ""
27779
27780 #. type: textblock
27781 #: ../src/guestfs-actions.pod:3288
27782 msgid ""
27783 "This function is a convenient way to get the list of root devices, as "
27784 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27785 "the whole inspection process."
27786 msgstr ""
27787
27788 #. type: textblock
27789 #: ../src/guestfs-actions.pod:3292
27790 msgid ""
27791 "This returns an empty list if either no root devices were found or the "
27792 "caller has not called C<guestfs_inspect_os>."
27793 msgstr ""
27794
27795 #. type: textblock
27796 #: ../src/guestfs-actions.pod:3301
27797 msgid "(Added in 1.7.3)"
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../src/guestfs-actions.pod:3303
27802 msgid "guestfs_inspect_get_type"
27803 msgstr ""
27804
27805 #. type: verbatim
27806 #: ../src/guestfs-actions.pod:3305
27807 #, no-wrap
27808 msgid ""
27809 " char *\n"
27810 " guestfs_inspect_get_type (guestfs_h *g,\n"
27811 "                           const char *root);\n"
27812 "\n"
27813 msgstr ""
27814
27815 #. type: =head2
27816 #: ../src/guestfs-actions.pod:3346
27817 msgid "guestfs_inspect_get_windows_current_control_set"
27818 msgstr ""
27819
27820 #. type: verbatim
27821 #: ../src/guestfs-actions.pod:3348
27822 #, no-wrap
27823 msgid ""
27824 " char *\n"
27825 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27826 "                                                  const char *root);\n"
27827 "\n"
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:3366
27832 msgid "guestfs_inspect_get_windows_systemroot"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:3368
27837 #, no-wrap
27838 msgid ""
27839 " char *\n"
27840 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27841 "                                         const char *root);\n"
27842 "\n"
27843 msgstr ""
27844
27845 #. type: textblock
27846 #: ../src/guestfs-actions.pod:3384
27847 msgid "(Added in 1.5.25)"
27848 msgstr ""
27849
27850 #. type: =head2
27851 #: ../src/guestfs-actions.pod:3386
27852 msgid "guestfs_inspect_is_live"
27853 msgstr ""
27854
27855 #. type: verbatim
27856 #: ../src/guestfs-actions.pod:3388
27857 #, no-wrap
27858 msgid ""
27859 " int\n"
27860 " guestfs_inspect_is_live (guestfs_h *g,\n"
27861 "                          const char *root);\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:3392
27867 msgid ""
27868 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27869 "disk), then this returns true if a live image was detected on the disk."
27870 msgstr ""
27871
27872 #. type: =head2
27873 #: ../src/guestfs-actions.pod:3402
27874 msgid "guestfs_inspect_is_multipart"
27875 msgstr ""
27876
27877 #. type: verbatim
27878 #: ../src/guestfs-actions.pod:3404
27879 #, no-wrap
27880 msgid ""
27881 " int\n"
27882 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27883 "                               const char *root);\n"
27884 "\n"
27885 msgstr ""
27886
27887 #. type: textblock
27888 #: ../src/guestfs-actions.pod:3408
27889 msgid ""
27890 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27891 "disk), then this returns true if the disk is part of a set."
27892 msgstr ""
27893
27894 #. type: =head2
27895 #: ../src/guestfs-actions.pod:3418
27896 msgid "guestfs_inspect_is_netinst"
27897 msgstr ""
27898
27899 #. type: verbatim
27900 #: ../src/guestfs-actions.pod:3420
27901 #, no-wrap
27902 msgid ""
27903 " int\n"
27904 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27905 "                             const char *root);\n"
27906 "\n"
27907 msgstr ""
27908
27909 #. type: textblock
27910 #: ../src/guestfs-actions.pod:3424
27911 msgid ""
27912 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27913 "disk), then this returns true if the disk is a network installer, ie. not a "
27914 "self-contained install CD but one which is likely to require network access "
27915 "to complete the install."
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:3436
27920 msgid "guestfs_inspect_list_applications"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:3438
27925 #, no-wrap
27926 msgid ""
27927 " struct guestfs_application_list *\n"
27928 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27929 "                                    const char *root);\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: textblock
27934 #: ../src/guestfs-actions.pod:3444
27935 msgid ""
27936 "I<Note:> This call works differently from other parts of the inspection "
27937 "API.  You have to call C<guestfs_inspect_os>, then "
27938 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27939 "this.  Listing applications is a significantly more difficult operation "
27940 "which requires access to the full filesystem.  Also note that unlike the "
27941 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27942 "the libguestfs handle, this call actually reads parts of the mounted "
27943 "filesystems during the call."
27944 msgstr ""
27945
27946 #. type: textblock
27947 #: ../src/guestfs-actions.pod:3534
27948 msgid ""
27949 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27950 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27951 "after use>."
27952 msgstr ""
27953
27954 #. type: textblock
27955 #: ../src/guestfs-actions.pod:3538
27956 msgid "(Added in 1.7.8)"
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:3540
27961 msgid "guestfs_inspect_os"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:3542
27966 #, no-wrap
27967 msgid ""
27968 " char **\n"
27969 " guestfs_inspect_os (guestfs_h *g);\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: textblock
27974 #: ../src/guestfs-actions.pod:3558
27975 msgid ""
27976 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27977 "functions in order to query further information about each operating system, "
27978 "such as the name and version."
27979 msgstr ""
27980
27981 #. type: textblock
27982 #: ../src/guestfs-actions.pod:3563
27983 msgid ""
27984 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27985 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27986 "the contents.  This should be called with no disks currently mounted.  The "
27987 "function may also use Augeas, so any existing Augeas handle will be closed."
27988 msgstr ""
27989
27990 #. type: textblock
27991 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
27992 #: ../src/guestfs-actions.pod:3988
27993 msgid "See also C<guestfs_list_filesystems>."
27994 msgstr ""
27995
27996 #. type: =head2
27997 #: ../src/guestfs-actions.pod:3583
27998 msgid "guestfs_is_blockdev"
27999 msgstr ""
28000
28001 #. type: verbatim
28002 #: ../src/guestfs-actions.pod:3585
28003 #, no-wrap
28004 msgid ""
28005 " int\n"
28006 " guestfs_is_blockdev (guestfs_h *g,\n"
28007 "                      const char *path);\n"
28008 "\n"
28009 msgstr ""
28010
28011 #. type: textblock
28012 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28013 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28014 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28015 #: ../src/guestfs-actions.pod:3753
28016 msgid "See also C<guestfs_stat>."
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28021 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28022 #: ../src/guestfs-actions.pod:3757
28023 msgid "(Added in 1.5.10)"
28024 msgstr ""
28025
28026 #. type: =head2
28027 #: ../src/guestfs-actions.pod:3598
28028 msgid "guestfs_is_busy"
28029 msgstr ""
28030
28031 #. type: verbatim
28032 #: ../src/guestfs-actions.pod:3600
28033 #, no-wrap
28034 msgid ""
28035 " int\n"
28036 " guestfs_is_busy (guestfs_h *g);\n"
28037 "\n"
28038 msgstr ""
28039
28040 #. type: =head2
28041 #: ../src/guestfs-actions.pod:3612
28042 msgid "guestfs_is_chardev"
28043 msgstr ""
28044
28045 #. type: verbatim
28046 #: ../src/guestfs-actions.pod:3614
28047 #, no-wrap
28048 msgid ""
28049 " int\n"
28050 " guestfs_is_chardev (guestfs_h *g,\n"
28051 "                     const char *path);\n"
28052 "\n"
28053 msgstr ""
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:3627
28057 msgid "guestfs_is_config"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:3629
28062 #, no-wrap
28063 msgid ""
28064 " int\n"
28065 " guestfs_is_config (guestfs_h *g);\n"
28066 "\n"
28067 msgstr ""
28068
28069 #. type: =head2
28070 #: ../src/guestfs-actions.pod:3641
28071 msgid "guestfs_is_dir"
28072 msgstr ""
28073
28074 #. type: verbatim
28075 #: ../src/guestfs-actions.pod:3643
28076 #, no-wrap
28077 msgid ""
28078 " int\n"
28079 " guestfs_is_dir (guestfs_h *g,\n"
28080 "                 const char *path);\n"
28081 "\n"
28082 msgstr ""
28083
28084 #. type: =head2
28085 #: ../src/guestfs-actions.pod:3657
28086 msgid "guestfs_is_fifo"
28087 msgstr ""
28088
28089 #. type: verbatim
28090 #: ../src/guestfs-actions.pod:3659
28091 #, no-wrap
28092 msgid ""
28093 " int\n"
28094 " guestfs_is_fifo (guestfs_h *g,\n"
28095 "                  const char *path);\n"
28096 "\n"
28097 msgstr ""
28098
28099 #. type: =head2
28100 #: ../src/guestfs-actions.pod:3672
28101 msgid "guestfs_is_file"
28102 msgstr ""
28103
28104 #. type: verbatim
28105 #: ../src/guestfs-actions.pod:3674
28106 #, no-wrap
28107 msgid ""
28108 " int\n"
28109 " guestfs_is_file (guestfs_h *g,\n"
28110 "                  const char *path);\n"
28111 "\n"
28112 msgstr ""
28113
28114 #. type: =head2
28115 #: ../src/guestfs-actions.pod:3688
28116 msgid "guestfs_is_launching"
28117 msgstr ""
28118
28119 #. type: verbatim
28120 #: ../src/guestfs-actions.pod:3690
28121 #, no-wrap
28122 msgid ""
28123 " int\n"
28124 " guestfs_is_launching (guestfs_h *g);\n"
28125 "\n"
28126 msgstr ""
28127
28128 #. type: =head2
28129 #: ../src/guestfs-actions.pod:3702
28130 msgid "guestfs_is_lv"
28131 msgstr ""
28132
28133 #. type: verbatim
28134 #: ../src/guestfs-actions.pod:3704
28135 #, no-wrap
28136 msgid ""
28137 " int\n"
28138 " guestfs_is_lv (guestfs_h *g,\n"
28139 "                const char *device);\n"
28140 "\n"
28141 msgstr ""
28142
28143 #. type: =head2
28144 #: ../src/guestfs-actions.pod:3715
28145 msgid "guestfs_is_ready"
28146 msgstr ""
28147
28148 #. type: verbatim
28149 #: ../src/guestfs-actions.pod:3717
28150 #, no-wrap
28151 msgid ""
28152 " int\n"
28153 " guestfs_is_ready (guestfs_h *g);\n"
28154 "\n"
28155 msgstr ""
28156
28157 #. type: =head2
28158 #: ../src/guestfs-actions.pod:3729
28159 msgid "guestfs_is_socket"
28160 msgstr ""
28161
28162 #. type: verbatim
28163 #: ../src/guestfs-actions.pod:3731
28164 #, no-wrap
28165 msgid ""
28166 " int\n"
28167 " guestfs_is_socket (guestfs_h *g,\n"
28168 "                    const char *path);\n"
28169 "\n"
28170 msgstr ""
28171
28172 #. type: =head2
28173 #: ../src/guestfs-actions.pod:3744
28174 msgid "guestfs_is_symlink"
28175 msgstr ""
28176
28177 #. type: verbatim
28178 #: ../src/guestfs-actions.pod:3746
28179 #, no-wrap
28180 msgid ""
28181 " int\n"
28182 " guestfs_is_symlink (guestfs_h *g,\n"
28183 "                     const char *path);\n"
28184 "\n"
28185 msgstr ""
28186
28187 #. type: =head2
28188 #: ../src/guestfs-actions.pod:3759
28189 msgid "guestfs_is_zero"
28190 msgstr ""
28191
28192 #. type: verbatim
28193 #: ../src/guestfs-actions.pod:3761
28194 #, no-wrap
28195 msgid ""
28196 " int\n"
28197 " guestfs_is_zero (guestfs_h *g,\n"
28198 "                  const char *path);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: textblock
28203 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
28204 msgid "(Added in 1.11.8)"
28205 msgstr ""
28206
28207 #. type: =head2
28208 #: ../src/guestfs-actions.pod:3772
28209 msgid "guestfs_is_zero_device"
28210 msgstr ""
28211
28212 #. type: verbatim
28213 #: ../src/guestfs-actions.pod:3774
28214 #, no-wrap
28215 msgid ""
28216 " int\n"
28217 " guestfs_is_zero_device (guestfs_h *g,\n"
28218 "                         const char *device);\n"
28219 "\n"
28220 msgstr ""
28221
28222 #. type: =head2
28223 #: ../src/guestfs-actions.pod:3786
28224 msgid "guestfs_kill_subprocess"
28225 msgstr ""
28226
28227 #. type: verbatim
28228 #: ../src/guestfs-actions.pod:3788
28229 #, no-wrap
28230 msgid ""
28231 " int\n"
28232 " guestfs_kill_subprocess (guestfs_h *g);\n"
28233 "\n"
28234 msgstr ""
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:3797
28238 msgid "guestfs_launch"
28239 msgstr ""
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:3799
28243 #, no-wrap
28244 msgid ""
28245 " int\n"
28246 " guestfs_launch (guestfs_h *g);\n"
28247 "\n"
28248 msgstr ""
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:3817
28252 msgid "guestfs_lchown"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:3819
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_lchown (guestfs_h *g,\n"
28261 "                 int owner,\n"
28262 "                 int group,\n"
28263 "                 const char *path);\n"
28264 "\n"
28265 msgstr ""
28266
28267 #. type: textblock
28268 #: ../src/guestfs-actions.pod:3825
28269 msgid ""
28270 "Change the file owner to C<owner> and group to C<group>.  This is like "
28271 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28272 "changed, not the target."
28273 msgstr ""
28274
28275 #. type: =head2
28276 #: ../src/guestfs-actions.pod:3837
28277 msgid "guestfs_lgetxattr"
28278 msgstr ""
28279
28280 #. type: verbatim
28281 #: ../src/guestfs-actions.pod:3839
28282 #, no-wrap
28283 msgid ""
28284 " char *\n"
28285 " guestfs_lgetxattr (guestfs_h *g,\n"
28286 "                    const char *path,\n"
28287 "                    const char *name,\n"
28288 "                    size_t *size_r);\n"
28289 "\n"
28290 msgstr ""
28291
28292 #. type: textblock
28293 #: ../src/guestfs-actions.pod:3859
28294 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28295 msgstr ""
28296
28297 #. type: =head2
28298 #: ../src/guestfs-actions.pod:3867
28299 msgid "guestfs_lgetxattrs"
28300 msgstr ""
28301
28302 #. type: verbatim
28303 #: ../src/guestfs-actions.pod:3869
28304 #, no-wrap
28305 msgid ""
28306 " struct guestfs_xattr_list *\n"
28307 " guestfs_lgetxattrs (guestfs_h *g,\n"
28308 "                     const char *path);\n"
28309 "\n"
28310 msgstr ""
28311
28312 #. type: textblock
28313 #: ../src/guestfs-actions.pod:3873
28314 msgid ""
28315 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28316 "then it returns the extended attributes of the link itself."
28317 msgstr ""
28318
28319 #. type: =head2
28320 #: ../src/guestfs-actions.pod:3883
28321 msgid "guestfs_list_9p"
28322 msgstr ""
28323
28324 #. type: verbatim
28325 #: ../src/guestfs-actions.pod:3885
28326 #, no-wrap
28327 msgid ""
28328 " char **\n"
28329 " guestfs_list_9p (guestfs_h *g);\n"
28330 "\n"
28331 msgstr ""
28332
28333 #. type: =head2
28334 #: ../src/guestfs-actions.pod:3897
28335 msgid "guestfs_list_devices"
28336 msgstr ""
28337
28338 #. type: verbatim
28339 #: ../src/guestfs-actions.pod:3899
28340 #, no-wrap
28341 msgid ""
28342 " char **\n"
28343 " guestfs_list_devices (guestfs_h *g);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: =head2
28348 #: ../src/guestfs-actions.pod:3914
28349 msgid "guestfs_list_dm_devices"
28350 msgstr ""
28351
28352 #. type: verbatim
28353 #: ../src/guestfs-actions.pod:3916
28354 #, no-wrap
28355 msgid ""
28356 " char **\n"
28357 " guestfs_list_dm_devices (guestfs_h *g);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:3921
28363 msgid ""
28364 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28365 "previous call to C<guestfs_luks_open>."
28366 msgstr ""
28367
28368 #. type: textblock
28369 #: ../src/guestfs-actions.pod:3924
28370 msgid ""
28371 "Device mapper devices which correspond to logical volumes are I<not> "
28372 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28373 "volumes."
28374 msgstr ""
28375
28376 #. type: textblock
28377 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
28378 msgid "(Added in 1.11.15)"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:3934
28383 msgid "guestfs_list_filesystems"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:3936
28388 #, no-wrap
28389 msgid ""
28390 " char **\n"
28391 " guestfs_list_filesystems (guestfs_h *g);\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:3956
28397 msgid ""
28398 "This command runs other libguestfs commands, which might include "
28399 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28400 "soon after launch and only when nothing is mounted."
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:3960
28405 msgid ""
28406 "Not all of the filesystems returned will be mountable.  In particular, swap "
28407 "partitions are returned in the list.  Also this command does not check that "
28408 "each filesystem found is valid and mountable, and some filesystems might be "
28409 "mountable but require special options.  Filesystems may not all belong to a "
28410 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28411 msgstr ""
28412
28413 #. type: textblock
28414 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
28415 msgid "(Added in 1.5.15)"
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:3976
28420 msgid "guestfs_list_partitions"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:3978
28425 #, no-wrap
28426 msgid ""
28427 " char **\n"
28428 " guestfs_list_partitions (guestfs_h *g);\n"
28429 "\n"
28430 msgstr ""
28431
28432 #. type: textblock
28433 #: ../src/guestfs-actions.pod:3985
28434 msgid ""
28435 "This does not return logical volumes.  For that you will need to call "
28436 "C<guestfs_lvs>."
28437 msgstr ""
28438
28439 #. type: =head2
28440 #: ../src/guestfs-actions.pod:3996
28441 msgid "guestfs_ll"
28442 msgstr ""
28443
28444 #. type: verbatim
28445 #: ../src/guestfs-actions.pod:3998
28446 #, no-wrap
28447 msgid ""
28448 " char *\n"
28449 " guestfs_ll (guestfs_h *g,\n"
28450 "             const char *directory);\n"
28451 "\n"
28452 msgstr ""
28453
28454 #. type: =head2
28455 #: ../src/guestfs-actions.pod:4013
28456 msgid "guestfs_ln"
28457 msgstr ""
28458
28459 #. type: verbatim
28460 #: ../src/guestfs-actions.pod:4015
28461 #, no-wrap
28462 msgid ""
28463 " int\n"
28464 " guestfs_ln (guestfs_h *g,\n"
28465 "             const char *target,\n"
28466 "             const char *linkname);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:4026
28472 msgid "guestfs_ln_f"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:4028
28477 #, no-wrap
28478 msgid ""
28479 " int\n"
28480 " guestfs_ln_f (guestfs_h *g,\n"
28481 "               const char *target,\n"
28482 "               const char *linkname);\n"
28483 "\n"
28484 msgstr ""
28485
28486 #. type: =head2
28487 #: ../src/guestfs-actions.pod:4040
28488 msgid "guestfs_ln_s"
28489 msgstr ""
28490
28491 #. type: verbatim
28492 #: ../src/guestfs-actions.pod:4042
28493 #, no-wrap
28494 msgid ""
28495 " int\n"
28496 " guestfs_ln_s (guestfs_h *g,\n"
28497 "               const char *target,\n"
28498 "               const char *linkname);\n"
28499 "\n"
28500 msgstr ""
28501
28502 #. type: =head2
28503 #: ../src/guestfs-actions.pod:4053
28504 msgid "guestfs_ln_sf"
28505 msgstr ""
28506
28507 #. type: verbatim
28508 #: ../src/guestfs-actions.pod:4055
28509 #, no-wrap
28510 msgid ""
28511 " int\n"
28512 " guestfs_ln_sf (guestfs_h *g,\n"
28513 "                const char *target,\n"
28514 "                const char *linkname);\n"
28515 "\n"
28516 msgstr ""
28517
28518 #. type: =head2
28519 #: ../src/guestfs-actions.pod:4067
28520 msgid "guestfs_lremovexattr"
28521 msgstr ""
28522
28523 #. type: verbatim
28524 #: ../src/guestfs-actions.pod:4069
28525 #, no-wrap
28526 msgid ""
28527 " int\n"
28528 " guestfs_lremovexattr (guestfs_h *g,\n"
28529 "                       const char *xattr,\n"
28530 "                       const char *path);\n"
28531 "\n"
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../src/guestfs-actions.pod:4074
28536 msgid ""
28537 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28538 "link, then it removes an extended attribute of the link itself."
28539 msgstr ""
28540
28541 #. type: =head2
28542 #: ../src/guestfs-actions.pod:4082
28543 msgid "guestfs_ls"
28544 msgstr ""
28545
28546 #. type: verbatim
28547 #: ../src/guestfs-actions.pod:4084
28548 #, no-wrap
28549 msgid ""
28550 " char **\n"
28551 " guestfs_ls (guestfs_h *g,\n"
28552 "             const char *directory);\n"
28553 "\n"
28554 msgstr ""
28555
28556 #. type: textblock
28557 #: ../src/guestfs-actions.pod:4092
28558 msgid ""
28559 "This command is mostly useful for interactive sessions.  Programs should "
28560 "probably use C<guestfs_readdir> instead."
28561 msgstr ""
28562
28563 #. type: =head2
28564 #: ../src/guestfs-actions.pod:4101
28565 msgid "guestfs_lsetxattr"
28566 msgstr ""
28567
28568 #. type: verbatim
28569 #: ../src/guestfs-actions.pod:4103
28570 #, no-wrap
28571 msgid ""
28572 " int\n"
28573 " guestfs_lsetxattr (guestfs_h *g,\n"
28574 "                    const char *xattr,\n"
28575 "                    const char *val,\n"
28576 "                    int vallen,\n"
28577 "                    const char *path);\n"
28578 "\n"
28579 msgstr ""
28580
28581 #. type: textblock
28582 #: ../src/guestfs-actions.pod:4110
28583 msgid ""
28584 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28585 "then it sets an extended attribute of the link itself."
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:4118
28590 msgid "guestfs_lstat"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:4120
28595 #, no-wrap
28596 msgid ""
28597 " struct guestfs_stat *\n"
28598 " guestfs_lstat (guestfs_h *g,\n"
28599 "                const char *path);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: textblock
28604 #: ../src/guestfs-actions.pod:4126
28605 msgid ""
28606 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28607 "link, then the link is stat-ed, not the file it refers to."
28608 msgstr ""
28609
28610 #. type: textblock
28611 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
28612 msgid ""
28613 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28614 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28615 msgstr ""
28616
28617 #. type: textblock
28618 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
28619 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
28620 msgid "(Added in 0.9.2)"
28621 msgstr ""
28622
28623 #. type: =head2
28624 #: ../src/guestfs-actions.pod:4138
28625 msgid "guestfs_lstatlist"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../src/guestfs-actions.pod:4140
28630 #, no-wrap
28631 msgid ""
28632 " struct guestfs_stat_list *\n"
28633 " guestfs_lstatlist (guestfs_h *g,\n"
28634 "                    const char *path,\n"
28635 "                    char *const *names);\n"
28636 "\n"
28637 msgstr ""
28638
28639 #. type: textblock
28640 #: ../src/guestfs-actions.pod:4145
28641 msgid ""
28642 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28643 "files, where all files are in the directory C<path>.  C<names> is the list "
28644 "of files from this directory."
28645 msgstr ""
28646
28647 #. type: textblock
28648 #: ../src/guestfs-actions.pod:4154
28649 msgid ""
28650 "This call is intended for programs that want to efficiently list a directory "
28651 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28652 "for a similarly efficient call for getting extended attributes.  Very long "
28653 "directory listings might cause the protocol message size to be exceeded, "
28654 "causing this call to fail.  The caller must split up such requests into "
28655 "smaller groups of names."
28656 msgstr ""
28657
28658 #. type: textblock
28659 #: ../src/guestfs-actions.pod:4162
28660 msgid ""
28661 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28662 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28663 msgstr ""
28664
28665 #. type: =head2
28666 #: ../src/guestfs-actions.pod:4168
28667 msgid "guestfs_luks_add_key"
28668 msgstr ""
28669
28670 #. type: verbatim
28671 #: ../src/guestfs-actions.pod:4170
28672 #, no-wrap
28673 msgid ""
28674 " int\n"
28675 " guestfs_luks_add_key (guestfs_h *g,\n"
28676 "                       const char *device,\n"
28677 "                       const char *key,\n"
28678 "                       const char *newkey,\n"
28679 "                       int keyslot);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:4182
28685 msgid ""
28686 "Note that if C<keyslot> already contains a key, then this command will "
28687 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28688 msgstr ""
28689
28690 #. type: textblock
28691 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
28692 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
28693 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
28694 msgid ""
28695 "This function takes a key or passphrase parameter which could contain "
28696 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28697 "information."
28698 msgstr ""
28699
28700 #. type: textblock
28701 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
28702 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
28703 msgid "(Added in 1.5.2)"
28704 msgstr ""
28705
28706 #. type: =head2
28707 #: ../src/guestfs-actions.pod:4194
28708 msgid "guestfs_luks_close"
28709 msgstr ""
28710
28711 #. type: verbatim
28712 #: ../src/guestfs-actions.pod:4196
28713 #, no-wrap
28714 msgid ""
28715 " int\n"
28716 " guestfs_luks_close (guestfs_h *g,\n"
28717 "                     const char *device);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: textblock
28722 #: ../src/guestfs-actions.pod:4200
28723 msgid ""
28724 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28725 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28726 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28727 "underlying block device."
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
28732 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
28733 #: ../src/guestfs-actions.pod:4427
28734 msgid "(Added in 1.5.1)"
28735 msgstr ""
28736
28737 #. type: =head2
28738 #: ../src/guestfs-actions.pod:4210
28739 msgid "guestfs_luks_format"
28740 msgstr ""
28741
28742 #. type: verbatim
28743 #: ../src/guestfs-actions.pod:4212
28744 #, no-wrap
28745 msgid ""
28746 " int\n"
28747 " guestfs_luks_format (guestfs_h *g,\n"
28748 "                      const char *device,\n"
28749 "                      const char *key,\n"
28750 "                      int keyslot);\n"
28751 "\n"
28752 msgstr ""
28753
28754 #. type: =head2
28755 #: ../src/guestfs-actions.pod:4234
28756 msgid "guestfs_luks_format_cipher"
28757 msgstr ""
28758
28759 #. type: verbatim
28760 #: ../src/guestfs-actions.pod:4236
28761 #, no-wrap
28762 msgid ""
28763 " int\n"
28764 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28765 "                             const char *device,\n"
28766 "                             const char *key,\n"
28767 "                             int keyslot,\n"
28768 "                             const char *cipher);\n"
28769 "\n"
28770 msgstr ""
28771
28772 #. type: textblock
28773 #: ../src/guestfs-actions.pod:4243
28774 msgid ""
28775 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28776 "set the C<cipher> used."
28777 msgstr ""
28778
28779 #. type: =head2
28780 #: ../src/guestfs-actions.pod:4257
28781 msgid "guestfs_luks_kill_slot"
28782 msgstr ""
28783
28784 #. type: verbatim
28785 #: ../src/guestfs-actions.pod:4259
28786 #, no-wrap
28787 msgid ""
28788 " int\n"
28789 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28790 "                         const char *device,\n"
28791 "                         const char *key,\n"
28792 "                         int keyslot);\n"
28793 "\n"
28794 msgstr ""
28795
28796 #. type: =head2
28797 #: ../src/guestfs-actions.pod:4277
28798 msgid "guestfs_luks_open"
28799 msgstr ""
28800
28801 #. type: verbatim
28802 #: ../src/guestfs-actions.pod:4279
28803 #, no-wrap
28804 msgid ""
28805 " int\n"
28806 " guestfs_luks_open (guestfs_h *g,\n"
28807 "                    const char *device,\n"
28808 "                    const char *key,\n"
28809 "                    const char *mapname);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:4297
28815 msgid ""
28816 "If this block device contains LVM volume groups, then calling "
28817 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28818 "visible."
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:4301
28823 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28824 msgstr ""
28825
28826 #. type: =head2
28827 #: ../src/guestfs-actions.pod:4312
28828 msgid "guestfs_luks_open_ro"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../src/guestfs-actions.pod:4314
28833 #, no-wrap
28834 msgid ""
28835 " int\n"
28836 " guestfs_luks_open_ro (guestfs_h *g,\n"
28837 "                       const char *device,\n"
28838 "                       const char *key,\n"
28839 "                       const char *mapname);\n"
28840 "\n"
28841 msgstr ""
28842
28843 #. type: textblock
28844 #: ../src/guestfs-actions.pod:4320
28845 msgid ""
28846 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28847 "created."
28848 msgstr ""
28849
28850 #. type: =head2
28851 #: ../src/guestfs-actions.pod:4331
28852 msgid "guestfs_lvcreate"
28853 msgstr ""
28854
28855 #. type: verbatim
28856 #: ../src/guestfs-actions.pod:4333
28857 #, no-wrap
28858 msgid ""
28859 " int\n"
28860 " guestfs_lvcreate (guestfs_h *g,\n"
28861 "                   const char *logvol,\n"
28862 "                   const char *volgroup,\n"
28863 "                   int mbytes);\n"
28864 "\n"
28865 msgstr ""
28866
28867 #. type: =head2
28868 #: ../src/guestfs-actions.pod:4346
28869 msgid "guestfs_lvm_canonical_lv_name"
28870 msgstr ""
28871
28872 #. type: verbatim
28873 #: ../src/guestfs-actions.pod:4348
28874 #, no-wrap
28875 msgid ""
28876 " char *\n"
28877 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28878 "                                const char *lvname);\n"
28879 "\n"
28880 msgstr ""
28881
28882 #. type: textblock
28883 #: ../src/guestfs-actions.pod:4359
28884 msgid "See also C<guestfs_is_lv>."
28885 msgstr ""
28886
28887 #. type: textblock
28888 #: ../src/guestfs-actions.pod:4364
28889 msgid "(Added in 1.5.24)"
28890 msgstr ""
28891
28892 #. type: =head2
28893 #: ../src/guestfs-actions.pod:4366
28894 msgid "guestfs_lvm_clear_filter"
28895 msgstr ""
28896
28897 #. type: verbatim
28898 #: ../src/guestfs-actions.pod:4368
28899 #, no-wrap
28900 msgid ""
28901 " int\n"
28902 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28903 "\n"
28904 msgstr ""
28905
28906 #. type: textblock
28907 #: ../src/guestfs-actions.pod:4371
28908 msgid ""
28909 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28910 "see every block device."
28911 msgstr ""
28912
28913 #. type: =head2
28914 #: ../src/guestfs-actions.pod:4381
28915 msgid "guestfs_lvm_remove_all"
28916 msgstr ""
28917
28918 #. type: verbatim
28919 #: ../src/guestfs-actions.pod:4383
28920 #, no-wrap
28921 msgid ""
28922 " int\n"
28923 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28924 "\n"
28925 msgstr ""
28926
28927 #. type: =head2
28928 #: ../src/guestfs-actions.pod:4396
28929 msgid "guestfs_lvm_set_filter"
28930 msgstr ""
28931
28932 #. type: verbatim
28933 #: ../src/guestfs-actions.pod:4398
28934 #, no-wrap
28935 msgid ""
28936 " int\n"
28937 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28938 "                         char *const *devices);\n"
28939 "\n"
28940 msgstr ""
28941
28942 #. type: =head2
28943 #: ../src/guestfs-actions.pod:4429
28944 msgid "guestfs_lvremove"
28945 msgstr ""
28946
28947 #. type: verbatim
28948 #: ../src/guestfs-actions.pod:4431
28949 #, no-wrap
28950 msgid ""
28951 " int\n"
28952 " guestfs_lvremove (guestfs_h *g,\n"
28953 "                   const char *device);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
28959 #: ../src/guestfs-actions.pod:7686
28960 msgid "(Added in 1.0.13)"
28961 msgstr ""
28962
28963 #. type: =head2
28964 #: ../src/guestfs-actions.pod:4445
28965 msgid "guestfs_lvrename"
28966 msgstr ""
28967
28968 #. type: verbatim
28969 #: ../src/guestfs-actions.pod:4447
28970 #, no-wrap
28971 msgid ""
28972 " int\n"
28973 " guestfs_lvrename (guestfs_h *g,\n"
28974 "                   const char *logvol,\n"
28975 "                   const char *newlogvol);\n"
28976 "\n"
28977 msgstr ""
28978
28979 #. type: textblock
28980 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
28981 msgid "(Added in 1.0.83)"
28982 msgstr ""
28983
28984 #. type: =head2
28985 #: ../src/guestfs-actions.pod:4458
28986 msgid "guestfs_lvresize"
28987 msgstr ""
28988
28989 #. type: verbatim
28990 #: ../src/guestfs-actions.pod:4460
28991 #, no-wrap
28992 msgid ""
28993 " int\n"
28994 " guestfs_lvresize (guestfs_h *g,\n"
28995 "                   const char *device,\n"
28996 "                   int mbytes);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: =head2
29001 #: ../src/guestfs-actions.pod:4473
29002 msgid "guestfs_lvresize_free"
29003 msgstr ""
29004
29005 #. type: verbatim
29006 #: ../src/guestfs-actions.pod:4475
29007 #, no-wrap
29008 msgid ""
29009 " int\n"
29010 " guestfs_lvresize_free (guestfs_h *g,\n"
29011 "                        const char *lv,\n"
29012 "                        int percent);\n"
29013 "\n"
29014 msgstr ""
29015
29016 #. type: textblock
29017 #: ../src/guestfs-actions.pod:4488
29018 msgid "(Added in 1.3.3)"
29019 msgstr ""
29020
29021 #. type: =head2
29022 #: ../src/guestfs-actions.pod:4490
29023 msgid "guestfs_lvs"
29024 msgstr ""
29025
29026 #. type: verbatim
29027 #: ../src/guestfs-actions.pod:4492
29028 #, no-wrap
29029 msgid ""
29030 " char **\n"
29031 " guestfs_lvs (guestfs_h *g);\n"
29032 "\n"
29033 msgstr ""
29034
29035 #. type: textblock
29036 #: ../src/guestfs-actions.pod:4501
29037 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29038 msgstr ""
29039
29040 #. type: =head2
29041 #: ../src/guestfs-actions.pod:4509
29042 msgid "guestfs_lvs_full"
29043 msgstr ""
29044
29045 #. type: verbatim
29046 #: ../src/guestfs-actions.pod:4511
29047 #, no-wrap
29048 msgid ""
29049 " struct guestfs_lvm_lv_list *\n"
29050 " guestfs_lvs_full (guestfs_h *g);\n"
29051 "\n"
29052 msgstr ""
29053
29054 #. type: textblock
29055 #: ../src/guestfs-actions.pod:4517
29056 msgid ""
29057 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29058 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:4523
29063 msgid "guestfs_lvuuid"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:4525
29068 #, no-wrap
29069 msgid ""
29070 " char *\n"
29071 " guestfs_lvuuid (guestfs_h *g,\n"
29072 "                 const char *device);\n"
29073 "\n"
29074 msgstr ""
29075
29076 #. type: =head2
29077 #: ../src/guestfs-actions.pod:4536
29078 msgid "guestfs_lxattrlist"
29079 msgstr ""
29080
29081 #. type: verbatim
29082 #: ../src/guestfs-actions.pod:4538
29083 #, no-wrap
29084 msgid ""
29085 " struct guestfs_xattr_list *\n"
29086 " guestfs_lxattrlist (guestfs_h *g,\n"
29087 "                     const char *path,\n"
29088 "                     char *const *names);\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:4557
29094 msgid ""
29095 "This call is intended for programs that want to efficiently list a directory "
29096 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29097 "a similarly efficient call for getting standard stats.  Very long directory "
29098 "listings might cause the protocol message size to be exceeded, causing this "
29099 "call to fail.  The caller must split up such requests into smaller groups of "
29100 "names."
29101 msgstr ""
29102
29103 #. type: =head2
29104 #: ../src/guestfs-actions.pod:4571
29105 msgid "guestfs_mkdir"
29106 msgstr ""
29107
29108 #. type: verbatim
29109 #: ../src/guestfs-actions.pod:4573
29110 #, no-wrap
29111 msgid ""
29112 " int\n"
29113 " guestfs_mkdir (guestfs_h *g,\n"
29114 "                const char *path);\n"
29115 "\n"
29116 msgstr ""
29117
29118 #. type: =head2
29119 #: ../src/guestfs-actions.pod:4583
29120 msgid "guestfs_mkdir_mode"
29121 msgstr ""
29122
29123 #. type: verbatim
29124 #: ../src/guestfs-actions.pod:4585
29125 #, no-wrap
29126 msgid ""
29127 " int\n"
29128 " guestfs_mkdir_mode (guestfs_h *g,\n"
29129 "                     const char *path,\n"
29130 "                     int mode);\n"
29131 "\n"
29132 msgstr ""
29133
29134 #. type: textblock
29135 #: ../src/guestfs-actions.pod:4597
29136 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29137 msgstr ""
29138
29139 #. type: =head2
29140 #: ../src/guestfs-actions.pod:4603
29141 msgid "guestfs_mkdir_p"
29142 msgstr ""
29143
29144 #. type: verbatim
29145 #: ../src/guestfs-actions.pod:4605
29146 #, no-wrap
29147 msgid ""
29148 " int\n"
29149 " guestfs_mkdir_p (guestfs_h *g,\n"
29150 "                  const char *path);\n"
29151 "\n"
29152 msgstr ""
29153
29154 #. type: =head2
29155 #: ../src/guestfs-actions.pod:4616
29156 msgid "guestfs_mkdtemp"
29157 msgstr ""
29158
29159 #. type: verbatim
29160 #: ../src/guestfs-actions.pod:4618
29161 #, no-wrap
29162 msgid ""
29163 " char *\n"
29164 " guestfs_mkdtemp (guestfs_h *g,\n"
29165 "                  const char *template);\n"
29166 "\n"
29167 msgstr ""
29168
29169 #. type: =head2
29170 #: ../src/guestfs-actions.pod:4646
29171 msgid "guestfs_mke2fs_J"
29172 msgstr ""
29173
29174 #. type: verbatim
29175 #: ../src/guestfs-actions.pod:4648
29176 #, no-wrap
29177 msgid ""
29178 " int\n"
29179 " guestfs_mke2fs_J (guestfs_h *g,\n"
29180 "                   const char *fstype,\n"
29181 "                   int blocksize,\n"
29182 "                   const char *device,\n"
29183 "                   const char *journal);\n"
29184 "\n"
29185 msgstr ""
29186
29187 #. type: textblock
29188 #: ../src/guestfs-actions.pod:4661
29189 msgid "See also C<guestfs_mke2journal>."
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
29194 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
29195 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
29196 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
29197 msgid "(Added in 1.0.68)"
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:4667
29202 msgid "guestfs_mke2fs_JL"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:4669
29207 #, no-wrap
29208 msgid ""
29209 " int\n"
29210 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29211 "                    const char *fstype,\n"
29212 "                    int blocksize,\n"
29213 "                    const char *device,\n"
29214 "                    const char *label);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:4679
29220 msgid "See also C<guestfs_mke2journal_L>."
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:4685
29225 msgid "guestfs_mke2fs_JU"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:4687
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29234 "                    const char *fstype,\n"
29235 "                    int blocksize,\n"
29236 "                    const char *device,\n"
29237 "                    const char *uuid);\n"
29238 "\n"
29239 msgstr ""
29240
29241 #. type: textblock
29242 #: ../src/guestfs-actions.pod:4697
29243 msgid "See also C<guestfs_mke2journal_U>."
29244 msgstr ""
29245
29246 #. type: =head2
29247 #: ../src/guestfs-actions.pod:4703
29248 msgid "guestfs_mke2journal"
29249 msgstr ""
29250
29251 #. type: verbatim
29252 #: ../src/guestfs-actions.pod:4705
29253 #, no-wrap
29254 msgid ""
29255 " int\n"
29256 " guestfs_mke2journal (guestfs_h *g,\n"
29257 "                      int blocksize,\n"
29258 "                      const char *device);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:4719
29264 msgid "guestfs_mke2journal_L"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:4721
29269 #, no-wrap
29270 msgid ""
29271 " int\n"
29272 " guestfs_mke2journal_L (guestfs_h *g,\n"
29273 "                        int blocksize,\n"
29274 "                        const char *label,\n"
29275 "                        const char *device);\n"
29276 "\n"
29277 msgstr ""
29278
29279 #. type: =head2
29280 #: ../src/guestfs-actions.pod:4733
29281 msgid "guestfs_mke2journal_U"
29282 msgstr ""
29283
29284 #. type: verbatim
29285 #: ../src/guestfs-actions.pod:4735
29286 #, no-wrap
29287 msgid ""
29288 " int\n"
29289 " guestfs_mke2journal_U (guestfs_h *g,\n"
29290 "                        int blocksize,\n"
29291 "                        const char *uuid,\n"
29292 "                        const char *device);\n"
29293 "\n"
29294 msgstr ""
29295
29296 #. type: =head2
29297 #: ../src/guestfs-actions.pod:4747
29298 msgid "guestfs_mkfifo"
29299 msgstr ""
29300
29301 #. type: verbatim
29302 #: ../src/guestfs-actions.pod:4749
29303 #, no-wrap
29304 msgid ""
29305 " int\n"
29306 " guestfs_mkfifo (guestfs_h *g,\n"
29307 "                 int mode,\n"
29308 "                 const char *path);\n"
29309 "\n"
29310 msgstr ""
29311
29312 #. type: textblock
29313 #: ../src/guestfs-actions.pod:4754
29314 msgid ""
29315 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29316 "is just a convenient wrapper around C<guestfs_mknod>."
29317 msgstr ""
29318
29319 #. type: =head2
29320 #: ../src/guestfs-actions.pod:4764
29321 msgid "guestfs_mkfs"
29322 msgstr ""
29323
29324 #. type: verbatim
29325 #: ../src/guestfs-actions.pod:4766
29326 #, no-wrap
29327 msgid ""
29328 " int\n"
29329 " guestfs_mkfs (guestfs_h *g,\n"
29330 "               const char *fstype,\n"
29331 "               const char *device);\n"
29332 "\n"
29333 msgstr ""
29334
29335 #. type: =head2
29336 #: ../src/guestfs-actions.pod:4779
29337 msgid "guestfs_mkfs_b"
29338 msgstr ""
29339
29340 #. type: verbatim
29341 #: ../src/guestfs-actions.pod:4781
29342 #, no-wrap
29343 msgid ""
29344 " int\n"
29345 " guestfs_mkfs_b (guestfs_h *g,\n"
29346 "                 const char *fstype,\n"
29347 "                 int blocksize,\n"
29348 "                 const char *device);\n"
29349 "\n"
29350 msgstr ""
29351
29352 #. type: textblock
29353 #: ../src/guestfs-actions.pod:4787
29354 msgid ""
29355 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29356 "call instead."
29357 msgstr ""
29358
29359 #. type: textblock
29360 #: ../src/guestfs-actions.pod:4794
29361 msgid ""
29362 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29363 "block size of the resulting filesystem.  Supported block sizes depend on the "
29364 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29365 msgstr ""
29366
29367 #. type: =head2
29368 #: ../src/guestfs-actions.pod:4806
29369 msgid "guestfs_mkfs_opts"
29370 msgstr ""
29371
29372 #. type: verbatim
29373 #: ../src/guestfs-actions.pod:4808
29374 #, no-wrap
29375 msgid ""
29376 " int\n"
29377 " guestfs_mkfs_opts (guestfs_h *g,\n"
29378 "                    const char *fstype,\n"
29379 "                    const char *device,\n"
29380 "                    ...);\n"
29381 "\n"
29382 msgstr ""
29383
29384 #. type: verbatim
29385 #: ../src/guestfs-actions.pod:4819
29386 #, no-wrap
29387 msgid ""
29388 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29389 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29390 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29391 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29392 "\n"
29393 msgstr ""
29394
29395 #. type: textblock
29396 #: ../src/guestfs-actions.pod:4867
29397 msgid "(Added in 1.7.19)"
29398 msgstr ""
29399
29400 #. type: =head2
29401 #: ../src/guestfs-actions.pod:4869
29402 msgid "guestfs_mkfs_opts_va"
29403 msgstr ""
29404
29405 #. type: verbatim
29406 #: ../src/guestfs-actions.pod:4871
29407 #, no-wrap
29408 msgid ""
29409 " int\n"
29410 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29411 "                       const char *fstype,\n"
29412 "                       const char *device,\n"
29413 "                       va_list args);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:4877
29419 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:4881
29424 msgid "guestfs_mkfs_opts_argv"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:4883
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29433 "                         const char *fstype,\n"
29434 "                         const char *device,\n"
29435 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29436 "\n"
29437 msgstr ""
29438
29439 #. type: textblock
29440 #: ../src/guestfs-actions.pod:4889
29441 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29442 msgstr ""
29443
29444 #. type: =head2
29445 #: ../src/guestfs-actions.pod:4893
29446 msgid "guestfs_mkmountpoint"
29447 msgstr ""
29448
29449 #. type: verbatim
29450 #: ../src/guestfs-actions.pod:4895
29451 #, no-wrap
29452 msgid ""
29453 " int\n"
29454 " guestfs_mkmountpoint (guestfs_h *g,\n"
29455 "                       const char *exemptpath);\n"
29456 "\n"
29457 msgstr ""
29458
29459 #. type: textblock
29460 #: ../src/guestfs-actions.pod:4899
29461 msgid ""
29462 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29463 "that can be used to create extra mountpoints before mounting the first "
29464 "filesystem."
29465 msgstr ""
29466
29467 #. type: textblock
29468 #: ../src/guestfs-actions.pod:4923
29469 msgid ""
29470 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29471 "may get unexpected errors if you try to mix these calls.  It is safest to "
29472 "manually unmount filesystems and remove mountpoints after use."
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../src/guestfs-actions.pod:4927
29477 msgid ""
29478 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29479 "first, so for this to work for manual mountpoints, you must ensure that the "
29480 "innermost mountpoints have the longest pathnames, as in the example code "
29481 "above."
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../src/guestfs-actions.pod:4934
29486 msgid ""
29487 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29488 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29489 "can also trigger these issues."
29490 msgstr ""
29491
29492 #. type: textblock
29493 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
29494 #: ../src/guestfs-actions.pod:6256
29495 msgid "(Added in 1.0.62)"
29496 msgstr ""
29497
29498 #. type: =head2
29499 #: ../src/guestfs-actions.pod:4942
29500 msgid "guestfs_mknod"
29501 msgstr ""
29502
29503 #. type: verbatim
29504 #: ../src/guestfs-actions.pod:4944
29505 #, no-wrap
29506 msgid ""
29507 " int\n"
29508 " guestfs_mknod (guestfs_h *g,\n"
29509 "                int mode,\n"
29510 "                int devmajor,\n"
29511 "                int devminor,\n"
29512 "                const char *path);\n"
29513 "\n"
29514 msgstr ""
29515
29516 #. type: textblock
29517 #: ../src/guestfs-actions.pod:4959
29518 msgid ""
29519 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29520 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29521 "regular file).  These constants are available in the standard Linux header "
29522 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29523 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29524 "the appropriate constant for you."
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../src/guestfs-actions.pod:4973
29529 msgid "guestfs_mknod_b"
29530 msgstr ""
29531
29532 #. type: verbatim
29533 #: ../src/guestfs-actions.pod:4975
29534 #, no-wrap
29535 msgid ""
29536 " int\n"
29537 " guestfs_mknod_b (guestfs_h *g,\n"
29538 "                  int mode,\n"
29539 "                  int devmajor,\n"
29540 "                  int devminor,\n"
29541 "                  const char *path);\n"
29542 "\n"
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../src/guestfs-actions.pod:4982
29547 msgid ""
29548 "This call creates a block device node called C<path> with mode C<mode> and "
29549 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29550 "wrapper around C<guestfs_mknod>."
29551 msgstr ""
29552
29553 #. type: =head2
29554 #: ../src/guestfs-actions.pod:4992
29555 msgid "guestfs_mknod_c"
29556 msgstr ""
29557
29558 #. type: verbatim
29559 #: ../src/guestfs-actions.pod:4994
29560 #, no-wrap
29561 msgid ""
29562 " int\n"
29563 " guestfs_mknod_c (guestfs_h *g,\n"
29564 "                  int mode,\n"
29565 "                  int devmajor,\n"
29566 "                  int devminor,\n"
29567 "                  const char *path);\n"
29568 "\n"
29569 msgstr ""
29570
29571 #. type: textblock
29572 #: ../src/guestfs-actions.pod:5001
29573 msgid ""
29574 "This call creates a char device node called C<path> with mode C<mode> and "
29575 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29576 "wrapper around C<guestfs_mknod>."
29577 msgstr ""
29578
29579 #. type: =head2
29580 #: ../src/guestfs-actions.pod:5011
29581 msgid "guestfs_mkswap"
29582 msgstr ""
29583
29584 #. type: verbatim
29585 #: ../src/guestfs-actions.pod:5013
29586 #, no-wrap
29587 msgid ""
29588 " int\n"
29589 " guestfs_mkswap (guestfs_h *g,\n"
29590 "                 const char *device);\n"
29591 "\n"
29592 msgstr ""
29593
29594 #. type: =head2
29595 #: ../src/guestfs-actions.pod:5023
29596 msgid "guestfs_mkswap_L"
29597 msgstr ""
29598
29599 #. type: verbatim
29600 #: ../src/guestfs-actions.pod:5025
29601 #, no-wrap
29602 msgid ""
29603 " int\n"
29604 " guestfs_mkswap_L (guestfs_h *g,\n"
29605 "                   const char *label,\n"
29606 "                   const char *device);\n"
29607 "\n"
29608 msgstr ""
29609
29610 #. type: =head2
29611 #: ../src/guestfs-actions.pod:5040
29612 msgid "guestfs_mkswap_U"
29613 msgstr ""
29614
29615 #. type: verbatim
29616 #: ../src/guestfs-actions.pod:5042
29617 #, no-wrap
29618 msgid ""
29619 " int\n"
29620 " guestfs_mkswap_U (guestfs_h *g,\n"
29621 "                   const char *uuid,\n"
29622 "                   const char *device);\n"
29623 "\n"
29624 msgstr ""
29625
29626 #. type: =head2
29627 #: ../src/guestfs-actions.pod:5053
29628 msgid "guestfs_mkswap_file"
29629 msgstr ""
29630
29631 #. type: verbatim
29632 #: ../src/guestfs-actions.pod:5055
29633 #, no-wrap
29634 msgid ""
29635 " int\n"
29636 " guestfs_mkswap_file (guestfs_h *g,\n"
29637 "                      const char *path);\n"
29638 "\n"
29639 msgstr ""
29640
29641 #. type: textblock
29642 #: ../src/guestfs-actions.pod:5061
29643 msgid ""
29644 "This command just writes a swap file signature to an existing file.  To "
29645 "create the file itself, use something like C<guestfs_fallocate>."
29646 msgstr ""
29647
29648 #. type: =head2
29649 #: ../src/guestfs-actions.pod:5068
29650 msgid "guestfs_modprobe"
29651 msgstr ""
29652
29653 #. type: verbatim
29654 #: ../src/guestfs-actions.pod:5070
29655 #, no-wrap
29656 msgid ""
29657 " int\n"
29658 " guestfs_modprobe (guestfs_h *g,\n"
29659 "                   const char *modulename);\n"
29660 "\n"
29661 msgstr ""
29662
29663 #. type: =head2
29664 #: ../src/guestfs-actions.pod:5083
29665 msgid "guestfs_mount"
29666 msgstr ""
29667
29668 #. type: verbatim
29669 #: ../src/guestfs-actions.pod:5085
29670 #, no-wrap
29671 msgid ""
29672 " int\n"
29673 " guestfs_mount (guestfs_h *g,\n"
29674 "                const char *device,\n"
29675 "                const char *mountpoint);\n"
29676 "\n"
29677 msgstr ""
29678
29679 #. type: textblock
29680 #: ../src/guestfs-actions.pod:5104
29681 msgid ""
29682 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29683 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29684 "problems for users.  If your program might need to work with older versions "
29685 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29686 "for the first parameter if you don't want any options)."
29687 msgstr ""
29688
29689 #. type: =head2
29690 #: ../src/guestfs-actions.pod:5115
29691 msgid "guestfs_mount_9p"
29692 msgstr ""
29693
29694 #. type: verbatim
29695 #: ../src/guestfs-actions.pod:5117
29696 #, no-wrap
29697 msgid ""
29698 " int\n"
29699 " guestfs_mount_9p (guestfs_h *g,\n"
29700 "                   const char *mounttag,\n"
29701 "                   const char *mountpoint,\n"
29702 "                   ...);\n"
29703 "\n"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:5128
29708 #, no-wrap
29709 msgid ""
29710 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29711 "\n"
29712 msgstr ""
29713
29714 #. type: =head2
29715 #: ../src/guestfs-actions.pod:5141
29716 msgid "guestfs_mount_9p_va"
29717 msgstr ""
29718
29719 #. type: verbatim
29720 #: ../src/guestfs-actions.pod:5143
29721 #, no-wrap
29722 msgid ""
29723 " int\n"
29724 " guestfs_mount_9p_va (guestfs_h *g,\n"
29725 "                      const char *mounttag,\n"
29726 "                      const char *mountpoint,\n"
29727 "                      va_list args);\n"
29728 "\n"
29729 msgstr ""
29730
29731 #. type: textblock
29732 #: ../src/guestfs-actions.pod:5149
29733 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29734 msgstr ""
29735
29736 #. type: =head2
29737 #: ../src/guestfs-actions.pod:5153
29738 msgid "guestfs_mount_9p_argv"
29739 msgstr ""
29740
29741 #. type: verbatim
29742 #: ../src/guestfs-actions.pod:5155
29743 #, no-wrap
29744 msgid ""
29745 " int\n"
29746 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29747 "                        const char *mounttag,\n"
29748 "                        const char *mountpoint,\n"
29749 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29750 "\n"
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:5161
29755 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29756 msgstr ""
29757
29758 #. type: =head2
29759 #: ../src/guestfs-actions.pod:5165
29760 msgid "guestfs_mount_loop"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../src/guestfs-actions.pod:5167
29765 #, no-wrap
29766 msgid ""
29767 " int\n"
29768 " guestfs_mount_loop (guestfs_h *g,\n"
29769 "                     const char *file,\n"
29770 "                     const char *mountpoint);\n"
29771 "\n"
29772 msgstr ""
29773
29774 #. type: =head2
29775 #: ../src/guestfs-actions.pod:5180
29776 msgid "guestfs_mount_options"
29777 msgstr ""
29778
29779 #. type: verbatim
29780 #: ../src/guestfs-actions.pod:5182
29781 #, no-wrap
29782 msgid ""
29783 " int\n"
29784 " guestfs_mount_options (guestfs_h *g,\n"
29785 "                        const char *options,\n"
29786 "                        const char *device,\n"
29787 "                        const char *mountpoint);\n"
29788 "\n"
29789 msgstr ""
29790
29791 #. type: textblock
29792 #: ../src/guestfs-actions.pod:5188
29793 msgid ""
29794 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29795 "the mount options as for the L<mount(8)> I<-o> flag."
29796 msgstr ""
29797
29798 #. type: textblock
29799 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
29800 #: ../src/guestfs-actions.pod:5229
29801 msgid "(Added in 1.0.10)"
29802 msgstr ""
29803
29804 #. type: =head2
29805 #: ../src/guestfs-actions.pod:5200
29806 msgid "guestfs_mount_ro"
29807 msgstr ""
29808
29809 #. type: verbatim
29810 #: ../src/guestfs-actions.pod:5202
29811 #, no-wrap
29812 msgid ""
29813 " int\n"
29814 " guestfs_mount_ro (guestfs_h *g,\n"
29815 "                   const char *device,\n"
29816 "                   const char *mountpoint);\n"
29817 "\n"
29818 msgstr ""
29819
29820 #. type: textblock
29821 #: ../src/guestfs-actions.pod:5207
29822 msgid ""
29823 "This is the same as the C<guestfs_mount> command, but it mounts the "
29824 "filesystem with the read-only (I<-o ro>) flag."
29825 msgstr ""
29826
29827 #. type: =head2
29828 #: ../src/guestfs-actions.pod:5214
29829 msgid "guestfs_mount_vfs"
29830 msgstr ""
29831
29832 #. type: verbatim
29833 #: ../src/guestfs-actions.pod:5216
29834 #, no-wrap
29835 msgid ""
29836 " int\n"
29837 " guestfs_mount_vfs (guestfs_h *g,\n"
29838 "                    const char *options,\n"
29839 "                    const char *vfstype,\n"
29840 "                    const char *device,\n"
29841 "                    const char *mountpoint);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: textblock
29846 #: ../src/guestfs-actions.pod:5223
29847 msgid ""
29848 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29849 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29850 "t> flags."
29851 msgstr ""
29852
29853 #. type: =head2
29854 #: ../src/guestfs-actions.pod:5231
29855 msgid "guestfs_mountpoints"
29856 msgstr ""
29857
29858 #. type: verbatim
29859 #: ../src/guestfs-actions.pod:5233
29860 #, no-wrap
29861 msgid ""
29862 " char **\n"
29863 " guestfs_mountpoints (guestfs_h *g);\n"
29864 "\n"
29865 msgstr ""
29866
29867 #. type: textblock
29868 #: ../src/guestfs-actions.pod:5236
29869 msgid ""
29870 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29871 "devices.  This one returns a hash table (map) of device name to directory "
29872 "where the device is mounted."
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:5248
29877 msgid "guestfs_mounts"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:5250
29882 #, no-wrap
29883 msgid ""
29884 " char **\n"
29885 " guestfs_mounts (guestfs_h *g);\n"
29886 "\n"
29887 msgstr ""
29888
29889 #. type: textblock
29890 #: ../src/guestfs-actions.pod:5258
29891 msgid "See also: C<guestfs_mountpoints>"
29892 msgstr ""
29893
29894 #. type: =head2
29895 #: ../src/guestfs-actions.pod:5266
29896 msgid "guestfs_mv"
29897 msgstr ""
29898
29899 #. type: verbatim
29900 #: ../src/guestfs-actions.pod:5268
29901 #, no-wrap
29902 msgid ""
29903 " int\n"
29904 " guestfs_mv (guestfs_h *g,\n"
29905 "             const char *src,\n"
29906 "             const char *dest);\n"
29907 "\n"
29908 msgstr ""
29909
29910 #. type: =head2
29911 #: ../src/guestfs-actions.pod:5280
29912 msgid "guestfs_ntfs_3g_probe"
29913 msgstr ""
29914
29915 #. type: verbatim
29916 #: ../src/guestfs-actions.pod:5282
29917 #, no-wrap
29918 msgid ""
29919 " int\n"
29920 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29921 "                        int rw,\n"
29922 "                        const char *device);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: textblock
29927 #: ../src/guestfs-actions.pod:5301
29928 msgid "(Added in 1.0.43)"
29929 msgstr ""
29930
29931 #. type: =head2
29932 #: ../src/guestfs-actions.pod:5303
29933 msgid "guestfs_ntfsresize"
29934 msgstr ""
29935
29936 #. type: verbatim
29937 #: ../src/guestfs-actions.pod:5305
29938 #, no-wrap
29939 msgid ""
29940 " int\n"
29941 " guestfs_ntfsresize (guestfs_h *g,\n"
29942 "                     const char *device);\n"
29943 "\n"
29944 msgstr ""
29945
29946 #. type: textblock
29947 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
29948 msgid ""
29949 "I<This function is deprecated.> In new code, use the L</"
29950 "guestfs_ntfsresize_opts> call instead."
29951 msgstr ""
29952
29953 #. type: =head2
29954 #: ../src/guestfs-actions.pod:5333
29955 msgid "guestfs_ntfsresize_opts"
29956 msgstr ""
29957
29958 #. type: verbatim
29959 #: ../src/guestfs-actions.pod:5335
29960 #, no-wrap
29961 msgid ""
29962 " int\n"
29963 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29964 "                          const char *device,\n"
29965 "                          ...);\n"
29966 "\n"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-actions.pod:5345
29971 #, no-wrap
29972 msgid ""
29973 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29974 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../src/guestfs-actions.pod:5365
29980 msgid ""
29981 "After the resize operation, the filesystem is always marked as requiring a "
29982 "consistency check (for safety).  You have to boot into Windows to perform "
29983 "this check and clear this condition.  If you I<don't> set the C<force> "
29984 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29985 "times on a single filesystem without booting into Windows between each "
29986 "resize."
29987 msgstr ""
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:5380
29991 msgid "guestfs_ntfsresize_opts_va"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:5382
29996 #, no-wrap
29997 msgid ""
29998 " int\n"
29999 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30000 "                             const char *device,\n"
30001 "                             va_list args);\n"
30002 "\n"
30003 msgstr ""
30004
30005 #. type: textblock
30006 #: ../src/guestfs-actions.pod:5387
30007 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30008 msgstr ""
30009
30010 #. type: =head2
30011 #: ../src/guestfs-actions.pod:5391
30012 msgid "guestfs_ntfsresize_opts_argv"
30013 msgstr ""
30014
30015 #. type: verbatim
30016 #: ../src/guestfs-actions.pod:5393
30017 #, no-wrap
30018 msgid ""
30019 " int\n"
30020 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30021 "                               const char *device,\n"
30022 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: textblock
30027 #: ../src/guestfs-actions.pod:5398
30028 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30029 msgstr ""
30030
30031 #. type: =head2
30032 #: ../src/guestfs-actions.pod:5402
30033 msgid "guestfs_ntfsresize_size"
30034 msgstr ""
30035
30036 #. type: verbatim
30037 #: ../src/guestfs-actions.pod:5404
30038 #, no-wrap
30039 msgid ""
30040 " int\n"
30041 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30042 "                          const char *device,\n"
30043 "                          int64_t size);\n"
30044 "\n"
30045 msgstr ""
30046
30047 #. type: textblock
30048 #: ../src/guestfs-actions.pod:5416
30049 msgid ""
30050 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30051 "to specify the new size (in bytes) explicitly."
30052 msgstr ""
30053
30054 #. type: textblock
30055 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
30056 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
30057 #: ../src/guestfs-actions.pod:7843
30058 msgid "(Added in 1.3.14)"
30059 msgstr ""
30060
30061 #. type: =head2
30062 #: ../src/guestfs-actions.pod:5423
30063 msgid "guestfs_part_add"
30064 msgstr ""
30065
30066 #. type: verbatim
30067 #: ../src/guestfs-actions.pod:5425
30068 #, no-wrap
30069 msgid ""
30070 " int\n"
30071 " guestfs_part_add (guestfs_h *g,\n"
30072 "                   const char *device,\n"
30073 "                   const char *prlogex,\n"
30074 "                   int64_t startsect,\n"
30075 "                   int64_t endsect);\n"
30076 "\n"
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../src/guestfs-actions.pod:5432
30081 msgid ""
30082 "This command adds a partition to C<device>.  If there is no partition table "
30083 "on the device, call C<guestfs_part_init> first."
30084 msgstr ""
30085
30086 #. type: textblock
30087 #: ../src/guestfs-actions.pod:5444
30088 msgid ""
30089 "Creating a partition which covers the whole disk is not so easy.  Use "
30090 "C<guestfs_part_disk> to do that."
30091 msgstr ""
30092
30093 #. type: textblock
30094 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
30095 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
30096 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
30097 #: ../src/guestfs-actions.pod:5721
30098 msgid "(Added in 1.0.78)"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:5451
30103 msgid "guestfs_part_del"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:5453
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_part_del (guestfs_h *g,\n"
30112 "                   const char *device,\n"
30113 "                   int partnum);\n"
30114 "\n"
30115 msgstr ""
30116
30117 #. type: =head2
30118 #: ../src/guestfs-actions.pod:5468
30119 msgid "guestfs_part_disk"
30120 msgstr ""
30121
30122 #. type: verbatim
30123 #: ../src/guestfs-actions.pod:5470
30124 #, no-wrap
30125 msgid ""
30126 " int\n"
30127 " guestfs_part_disk (guestfs_h *g,\n"
30128 "                    const char *device,\n"
30129 "                    const char *parttype);\n"
30130 "\n"
30131 msgstr ""
30132
30133 #. type: textblock
30134 #: ../src/guestfs-actions.pod:5475
30135 msgid ""
30136 "This command is simply a combination of C<guestfs_part_init> followed by "
30137 "C<guestfs_part_add> to create a single primary partition covering the whole "
30138 "disk."
30139 msgstr ""
30140
30141 #. type: textblock
30142 #: ../src/guestfs-actions.pod:5479
30143 msgid ""
30144 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30145 "possible values are described in C<guestfs_part_init>."
30146 msgstr ""
30147
30148 #. type: =head2
30149 #: ../src/guestfs-actions.pod:5489
30150 msgid "guestfs_part_get_bootable"
30151 msgstr ""
30152
30153 #. type: verbatim
30154 #: ../src/guestfs-actions.pod:5491
30155 #, no-wrap
30156 msgid ""
30157 " int\n"
30158 " guestfs_part_get_bootable (guestfs_h *g,\n"
30159 "                            const char *device,\n"
30160 "                            int partnum);\n"
30161 "\n"
30162 msgstr ""
30163
30164 #. type: textblock
30165 #: ../src/guestfs-actions.pod:5499
30166 msgid "See also C<guestfs_part_set_bootable>."
30167 msgstr ""
30168
30169 #. type: =head2
30170 #: ../src/guestfs-actions.pod:5505
30171 msgid "guestfs_part_get_mbr_id"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs-actions.pod:5507
30176 #, no-wrap
30177 msgid ""
30178 " int\n"
30179 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30180 "                          const char *device,\n"
30181 "                          int partnum);\n"
30182 "\n"
30183 msgstr ""
30184
30185 #. type: textblock
30186 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
30187 msgid ""
30188 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30189 "undefined results for other partition table types (see "
30190 "C<guestfs_part_get_parttype>)."
30191 msgstr ""
30192
30193 #. type: =head2
30194 #: ../src/guestfs-actions.pod:5523
30195 msgid "guestfs_part_get_parttype"
30196 msgstr ""
30197
30198 #. type: verbatim
30199 #: ../src/guestfs-actions.pod:5525
30200 #, no-wrap
30201 msgid ""
30202 " char *\n"
30203 " guestfs_part_get_parttype (guestfs_h *g,\n"
30204 "                            const char *device);\n"
30205 "\n"
30206 msgstr ""
30207
30208 #. type: textblock
30209 #: ../src/guestfs-actions.pod:5532
30210 msgid ""
30211 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30212 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30213 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30214 msgstr ""
30215
30216 #. type: =head2
30217 #: ../src/guestfs-actions.pod:5542
30218 msgid "guestfs_part_init"
30219 msgstr ""
30220
30221 #. type: verbatim
30222 #: ../src/guestfs-actions.pod:5544
30223 #, no-wrap
30224 msgid ""
30225 " int\n"
30226 " guestfs_part_init (guestfs_h *g,\n"
30227 "                    const char *device,\n"
30228 "                    const char *parttype);\n"
30229 "\n"
30230 msgstr ""
30231
30232 #. type: textblock
30233 #: ../src/guestfs-actions.pod:5553
30234 msgid ""
30235 "Initially there are no partitions.  Following this, you should call "
30236 "C<guestfs_part_add> for each partition required."
30237 msgstr ""
30238
30239 #. type: =head2
30240 #: ../src/guestfs-actions.pod:5626
30241 msgid "guestfs_part_list"
30242 msgstr ""
30243
30244 #. type: verbatim
30245 #: ../src/guestfs-actions.pod:5628
30246 #, no-wrap
30247 msgid ""
30248 " struct guestfs_partition_list *\n"
30249 " guestfs_part_list (guestfs_h *g,\n"
30250 "                    const char *device);\n"
30251 "\n"
30252 msgstr ""
30253
30254 #. type: textblock
30255 #: ../src/guestfs-actions.pod:5645
30256 msgid ""
30257 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30258 "the device's sector size, see C<guestfs_blockdev_getss>."
30259 msgstr ""
30260
30261 #. type: textblock
30262 #: ../src/guestfs-actions.pod:5658
30263 msgid ""
30264 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30265 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30266 "use>."
30267 msgstr ""
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:5664
30271 msgid "guestfs_part_set_bootable"
30272 msgstr ""
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:5666
30276 #, no-wrap
30277 msgid ""
30278 " int\n"
30279 " guestfs_part_set_bootable (guestfs_h *g,\n"
30280 "                            const char *device,\n"
30281 "                            int partnum,\n"
30282 "                            int bootable);\n"
30283 "\n"
30284 msgstr ""
30285
30286 #. type: =head2
30287 #: ../src/guestfs-actions.pod:5683
30288 msgid "guestfs_part_set_mbr_id"
30289 msgstr ""
30290
30291 #. type: verbatim
30292 #: ../src/guestfs-actions.pod:5685
30293 #, no-wrap
30294 msgid ""
30295 " int\n"
30296 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30297 "                          const char *device,\n"
30298 "                          int partnum,\n"
30299 "                          int idbyte);\n"
30300 "\n"
30301 msgstr ""
30302
30303 #. type: =head2
30304 #: ../src/guestfs-actions.pod:5705
30305 msgid "guestfs_part_set_name"
30306 msgstr ""
30307
30308 #. type: verbatim
30309 #: ../src/guestfs-actions.pod:5707
30310 #, no-wrap
30311 msgid ""
30312 " int\n"
30313 " guestfs_part_set_name (guestfs_h *g,\n"
30314 "                        const char *device,\n"
30315 "                        int partnum,\n"
30316 "                        const char *name);\n"
30317 "\n"
30318 msgstr ""
30319
30320 #. type: =head2
30321 #: ../src/guestfs-actions.pod:5723
30322 msgid "guestfs_part_to_dev"
30323 msgstr ""
30324
30325 #. type: verbatim
30326 #: ../src/guestfs-actions.pod:5725
30327 #, no-wrap
30328 msgid ""
30329 " char *\n"
30330 " guestfs_part_to_dev (guestfs_h *g,\n"
30331 "                      const char *partition);\n"
30332 "\n"
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../src/guestfs-actions.pod:5733
30337 msgid ""
30338 "The named partition must exist, for example as a string returned from "
30339 "C<guestfs_list_partitions>."
30340 msgstr ""
30341
30342 #. type: =head2
30343 #: ../src/guestfs-actions.pod:5741
30344 msgid "guestfs_ping_daemon"
30345 msgstr ""
30346
30347 #. type: verbatim
30348 #: ../src/guestfs-actions.pod:5743
30349 #, no-wrap
30350 msgid ""
30351 " int\n"
30352 " guestfs_ping_daemon (guestfs_h *g);\n"
30353 "\n"
30354 msgstr ""
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:5755
30358 msgid "guestfs_pread"
30359 msgstr ""
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:5757
30363 #, no-wrap
30364 msgid ""
30365 " char *\n"
30366 " guestfs_pread (guestfs_h *g,\n"
30367 "                const char *path,\n"
30368 "                int count,\n"
30369 "                int64_t offset,\n"
30370 "                size_t *size_r);\n"
30371 "\n"
30372 msgstr ""
30373
30374 #. type: textblock
30375 #: ../src/guestfs-actions.pod:5770
30376 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30377 msgstr ""
30378
30379 #. type: =head2
30380 #: ../src/guestfs-actions.pod:5781
30381 msgid "guestfs_pread_device"
30382 msgstr ""
30383
30384 #. type: verbatim
30385 #: ../src/guestfs-actions.pod:5783
30386 #, no-wrap
30387 msgid ""
30388 " char *\n"
30389 " guestfs_pread_device (guestfs_h *g,\n"
30390 "                       const char *device,\n"
30391 "                       int count,\n"
30392 "                       int64_t offset,\n"
30393 "                       size_t *size_r);\n"
30394 "\n"
30395 msgstr ""
30396
30397 #. type: textblock
30398 #: ../src/guestfs-actions.pod:5796
30399 msgid "See also C<guestfs_pread>."
30400 msgstr ""
30401
30402 #. type: textblock
30403 #: ../src/guestfs-actions.pod:5805
30404 msgid "(Added in 1.5.21)"
30405 msgstr ""
30406
30407 #. type: =head2
30408 #: ../src/guestfs-actions.pod:5807
30409 msgid "guestfs_pvcreate"
30410 msgstr ""
30411
30412 #. type: verbatim
30413 #: ../src/guestfs-actions.pod:5809
30414 #, no-wrap
30415 msgid ""
30416 " int\n"
30417 " guestfs_pvcreate (guestfs_h *g,\n"
30418 "                   const char *device);\n"
30419 "\n"
30420 msgstr ""
30421
30422 #. type: =head2
30423 #: ../src/guestfs-actions.pod:5821
30424 msgid "guestfs_pvremove"
30425 msgstr ""
30426
30427 #. type: verbatim
30428 #: ../src/guestfs-actions.pod:5823
30429 #, no-wrap
30430 msgid ""
30431 " int\n"
30432 " guestfs_pvremove (guestfs_h *g,\n"
30433 "                   const char *device);\n"
30434 "\n"
30435 msgstr ""
30436
30437 #. type: =head2
30438 #: ../src/guestfs-actions.pod:5838
30439 msgid "guestfs_pvresize"
30440 msgstr ""
30441
30442 #. type: verbatim
30443 #: ../src/guestfs-actions.pod:5840
30444 #, no-wrap
30445 msgid ""
30446 " int\n"
30447 " guestfs_pvresize (guestfs_h *g,\n"
30448 "                   const char *device);\n"
30449 "\n"
30450 msgstr ""
30451
30452 #. type: =head2
30453 #: ../src/guestfs-actions.pod:5851
30454 msgid "guestfs_pvresize_size"
30455 msgstr ""
30456
30457 #. type: verbatim
30458 #: ../src/guestfs-actions.pod:5853
30459 #, no-wrap
30460 msgid ""
30461 " int\n"
30462 " guestfs_pvresize_size (guestfs_h *g,\n"
30463 "                        const char *device,\n"
30464 "                        int64_t size);\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs-actions.pod:5858
30470 msgid ""
30471 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30472 "specify the new size (in bytes) explicitly."
30473 msgstr ""
30474
30475 #. type: =head2
30476 #: ../src/guestfs-actions.pod:5865
30477 msgid "guestfs_pvs"
30478 msgstr ""
30479
30480 #. type: verbatim
30481 #: ../src/guestfs-actions.pod:5867
30482 #, no-wrap
30483 msgid ""
30484 " char **\n"
30485 " guestfs_pvs (guestfs_h *g);\n"
30486 "\n"
30487 msgstr ""
30488
30489 #. type: textblock
30490 #: ../src/guestfs-actions.pod:5876
30491 msgid "See also C<guestfs_pvs_full>."
30492 msgstr ""
30493
30494 #. type: =head2
30495 #: ../src/guestfs-actions.pod:5884
30496 msgid "guestfs_pvs_full"
30497 msgstr ""
30498
30499 #. type: verbatim
30500 #: ../src/guestfs-actions.pod:5886
30501 #, no-wrap
30502 msgid ""
30503 " struct guestfs_lvm_pv_list *\n"
30504 " guestfs_pvs_full (guestfs_h *g);\n"
30505 "\n"
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs-actions.pod:5892
30510 msgid ""
30511 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30512 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30513 msgstr ""
30514
30515 #. type: =head2
30516 #: ../src/guestfs-actions.pod:5898
30517 msgid "guestfs_pvuuid"
30518 msgstr ""
30519
30520 #. type: verbatim
30521 #: ../src/guestfs-actions.pod:5900
30522 #, no-wrap
30523 msgid ""
30524 " char *\n"
30525 " guestfs_pvuuid (guestfs_h *g,\n"
30526 "                 const char *device);\n"
30527 "\n"
30528 msgstr ""
30529
30530 #. type: =head2
30531 #: ../src/guestfs-actions.pod:5911
30532 msgid "guestfs_pwrite"
30533 msgstr ""
30534
30535 #. type: verbatim
30536 #: ../src/guestfs-actions.pod:5913
30537 #, no-wrap
30538 msgid ""
30539 " int\n"
30540 " guestfs_pwrite (guestfs_h *g,\n"
30541 "                 const char *path,\n"
30542 "                 const char *content,\n"
30543 "                 size_t content_size,\n"
30544 "                 int64_t offset);\n"
30545 "\n"
30546 msgstr ""
30547
30548 #. type: textblock
30549 #: ../src/guestfs-actions.pod:5929
30550 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30551 msgstr ""
30552
30553 #. type: =head2
30554 #: ../src/guestfs-actions.pod:5938
30555 msgid "guestfs_pwrite_device"
30556 msgstr ""
30557
30558 #. type: verbatim
30559 #: ../src/guestfs-actions.pod:5940
30560 #, no-wrap
30561 msgid ""
30562 " int\n"
30563 " guestfs_pwrite_device (guestfs_h *g,\n"
30564 "                        const char *device,\n"
30565 "                        const char *content,\n"
30566 "                        size_t content_size,\n"
30567 "                        int64_t offset);\n"
30568 "\n"
30569 msgstr ""
30570
30571 #. type: textblock
30572 #: ../src/guestfs-actions.pod:5955
30573 msgid "See also C<guestfs_pwrite>."
30574 msgstr ""
30575
30576 #. type: textblock
30577 #: ../src/guestfs-actions.pod:5962
30578 msgid "(Added in 1.5.20)"
30579 msgstr ""
30580
30581 #. type: =head2
30582 #: ../src/guestfs-actions.pod:5964
30583 msgid "guestfs_read_file"
30584 msgstr ""
30585
30586 #. type: verbatim
30587 #: ../src/guestfs-actions.pod:5966
30588 #, no-wrap
30589 msgid ""
30590 " char *\n"
30591 " guestfs_read_file (guestfs_h *g,\n"
30592 "                    const char *path,\n"
30593 "                    size_t *size_r);\n"
30594 "\n"
30595 msgstr ""
30596
30597 #. type: textblock
30598 #: ../src/guestfs-actions.pod:5974
30599 msgid ""
30600 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30601 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30602 "function is limited in the total size of file that can be handled."
30603 msgstr ""
30604
30605 #. type: textblock
30606 #: ../src/guestfs-actions.pod:5986
30607 msgid "(Added in 1.0.63)"
30608 msgstr ""
30609
30610 #. type: =head2
30611 #: ../src/guestfs-actions.pod:5988
30612 msgid "guestfs_read_lines"
30613 msgstr ""
30614
30615 #. type: verbatim
30616 #: ../src/guestfs-actions.pod:5990
30617 #, no-wrap
30618 msgid ""
30619 " char **\n"
30620 " guestfs_read_lines (guestfs_h *g,\n"
30621 "                     const char *path);\n"
30622 "\n"
30623 msgstr ""
30624
30625 #. type: textblock
30626 #: ../src/guestfs-actions.pod:5999
30627 msgid ""
30628 "Note that this function cannot correctly handle binary files (specifically, "
30629 "files containing C<\\0> character which is treated as end of line).  For "
30630 "those you need to use the C<guestfs_read_file> function which has a more "
30631 "complex interface."
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs-actions.pod:6010
30636 msgid "guestfs_readdir"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-actions.pod:6012
30641 #, no-wrap
30642 msgid ""
30643 " struct guestfs_dirent_list *\n"
30644 " guestfs_readdir (guestfs_h *g,\n"
30645 "                  const char *dir);\n"
30646 "\n"
30647 msgstr ""
30648
30649 #. type: textblock
30650 #: ../src/guestfs-actions.pod:6066
30651 msgid ""
30652 "This function is primarily intended for use by programs.  To get a simple "
30653 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30654 "consumption, use C<guestfs_ll>."
30655 msgstr ""
30656
30657 #. type: textblock
30658 #: ../src/guestfs-actions.pod:6070
30659 msgid ""
30660 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30661 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30662 msgstr ""
30663
30664 #. type: =head2
30665 #: ../src/guestfs-actions.pod:6076
30666 msgid "guestfs_readlink"
30667 msgstr ""
30668
30669 #. type: verbatim
30670 #: ../src/guestfs-actions.pod:6078
30671 #, no-wrap
30672 msgid ""
30673 " char *\n"
30674 " guestfs_readlink (guestfs_h *g,\n"
30675 "                   const char *path);\n"
30676 "\n"
30677 msgstr ""
30678
30679 #. type: =head2
30680 #: ../src/guestfs-actions.pod:6089
30681 msgid "guestfs_readlinklist"
30682 msgstr ""
30683
30684 #. type: verbatim
30685 #: ../src/guestfs-actions.pod:6091
30686 #, no-wrap
30687 msgid ""
30688 " char **\n"
30689 " guestfs_readlinklist (guestfs_h *g,\n"
30690 "                       const char *path,\n"
30691 "                       char *const *names);\n"
30692 "\n"
30693 msgstr ""
30694
30695 #. type: =head2
30696 #: ../src/guestfs-actions.pod:6124
30697 msgid "guestfs_realpath"
30698 msgstr ""
30699
30700 #. type: verbatim
30701 #: ../src/guestfs-actions.pod:6126
30702 #, no-wrap
30703 msgid ""
30704 " char *\n"
30705 " guestfs_realpath (guestfs_h *g,\n"
30706 "                   const char *path);\n"
30707 "\n"
30708 msgstr ""
30709
30710 #. type: =head2
30711 #: ../src/guestfs-actions.pod:6138
30712 msgid "guestfs_removexattr"
30713 msgstr ""
30714
30715 #. type: verbatim
30716 #: ../src/guestfs-actions.pod:6140
30717 #, no-wrap
30718 msgid ""
30719 " int\n"
30720 " guestfs_removexattr (guestfs_h *g,\n"
30721 "                      const char *xattr,\n"
30722 "                      const char *path);\n"
30723 "\n"
30724 msgstr ""
30725
30726 #. type: textblock
30727 #: ../src/guestfs-actions.pod:6148
30728 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30729 msgstr ""
30730
30731 #. type: =head2
30732 #: ../src/guestfs-actions.pod:6154
30733 msgid "guestfs_resize2fs"
30734 msgstr ""
30735
30736 #. type: verbatim
30737 #: ../src/guestfs-actions.pod:6156
30738 #, no-wrap
30739 msgid ""
30740 " int\n"
30741 " guestfs_resize2fs (guestfs_h *g,\n"
30742 "                    const char *device);\n"
30743 "\n"
30744 msgstr ""
30745
30746 #. type: textblock
30747 #: ../src/guestfs-actions.pod:6163
30748 msgid ""
30749 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30750 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30751 "sometimes gives an error about this and sometimes not.  In any case, it is "
30752 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30753 msgstr ""
30754
30755 #. type: =head2
30756 #: ../src/guestfs-actions.pod:6173
30757 msgid "guestfs_resize2fs_M"
30758 msgstr ""
30759
30760 #. type: verbatim
30761 #: ../src/guestfs-actions.pod:6175
30762 #, no-wrap
30763 msgid ""
30764 " int\n"
30765 " guestfs_resize2fs_M (guestfs_h *g,\n"
30766 "                      const char *device);\n"
30767 "\n"
30768 msgstr ""
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:6179
30772 msgid ""
30773 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30774 "resized to its minimum size.  This works like the I<-M> option to the "
30775 "C<resize2fs> command."
30776 msgstr ""
30777
30778 #. type: textblock
30779 #: ../src/guestfs-actions.pod:6183
30780 msgid ""
30781 "To get the resulting size of the filesystem you should call "
30782 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30783 "These two numbers, multiplied together, give the resulting size of the "
30784 "minimal filesystem in bytes."
30785 msgstr ""
30786
30787 #. type: =head2
30788 #: ../src/guestfs-actions.pod:6192
30789 msgid "guestfs_resize2fs_size"
30790 msgstr ""
30791
30792 #. type: verbatim
30793 #: ../src/guestfs-actions.pod:6194
30794 #, no-wrap
30795 msgid ""
30796 " int\n"
30797 " guestfs_resize2fs_size (guestfs_h *g,\n"
30798 "                         const char *device,\n"
30799 "                         int64_t size);\n"
30800 "\n"
30801 msgstr ""
30802
30803 #. type: textblock
30804 #: ../src/guestfs-actions.pod:6199
30805 msgid ""
30806 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30807 "to specify the new size (in bytes) explicitly."
30808 msgstr ""
30809
30810 #. type: =head2
30811 #: ../src/guestfs-actions.pod:6206
30812 msgid "guestfs_rm"
30813 msgstr ""
30814
30815 #. type: verbatim
30816 #: ../src/guestfs-actions.pod:6208
30817 #, no-wrap
30818 msgid ""
30819 " int\n"
30820 " guestfs_rm (guestfs_h *g,\n"
30821 "             const char *path);\n"
30822 "\n"
30823 msgstr ""
30824
30825 #. type: =head2
30826 #: ../src/guestfs-actions.pod:6218
30827 msgid "guestfs_rm_rf"
30828 msgstr ""
30829
30830 #. type: verbatim
30831 #: ../src/guestfs-actions.pod:6220
30832 #, no-wrap
30833 msgid ""
30834 " int\n"
30835 " guestfs_rm_rf (guestfs_h *g,\n"
30836 "                const char *path);\n"
30837 "\n"
30838 msgstr ""
30839
30840 #. type: =head2
30841 #: ../src/guestfs-actions.pod:6232
30842 msgid "guestfs_rmdir"
30843 msgstr ""
30844
30845 #. type: verbatim
30846 #: ../src/guestfs-actions.pod:6234
30847 #, no-wrap
30848 msgid ""
30849 " int\n"
30850 " guestfs_rmdir (guestfs_h *g,\n"
30851 "                const char *path);\n"
30852 "\n"
30853 msgstr ""
30854
30855 #. type: =head2
30856 #: ../src/guestfs-actions.pod:6244
30857 msgid "guestfs_rmmountpoint"
30858 msgstr ""
30859
30860 #. type: verbatim
30861 #: ../src/guestfs-actions.pod:6246
30862 #, no-wrap
30863 msgid ""
30864 " int\n"
30865 " guestfs_rmmountpoint (guestfs_h *g,\n"
30866 "                       const char *exemptpath);\n"
30867 "\n"
30868 msgstr ""
30869
30870 #. type: textblock
30871 #: ../src/guestfs-actions.pod:6250
30872 msgid ""
30873 "This calls removes a mountpoint that was previously created with "
30874 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30875 msgstr ""
30876
30877 #. type: =head2
30878 #: ../src/guestfs-actions.pod:6258
30879 msgid "guestfs_scrub_device"
30880 msgstr ""
30881
30882 #. type: verbatim
30883 #: ../src/guestfs-actions.pod:6260
30884 #, no-wrap
30885 msgid ""
30886 " int\n"
30887 " guestfs_scrub_device (guestfs_h *g,\n"
30888 "                       const char *device);\n"
30889 "\n"
30890 msgstr ""
30891
30892 #. type: textblock
30893 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
30894 #: ../src/guestfs-actions.pod:6312
30895 msgid "(Added in 1.0.52)"
30896 msgstr ""
30897
30898 #. type: =head2
30899 #: ../src/guestfs-actions.pod:6277
30900 msgid "guestfs_scrub_file"
30901 msgstr ""
30902
30903 #. type: verbatim
30904 #: ../src/guestfs-actions.pod:6279
30905 #, no-wrap
30906 msgid ""
30907 " int\n"
30908 " guestfs_scrub_file (guestfs_h *g,\n"
30909 "                     const char *file);\n"
30910 "\n"
30911 msgstr ""
30912
30913 #. type: =head2
30914 #: ../src/guestfs-actions.pod:6295
30915 msgid "guestfs_scrub_freespace"
30916 msgstr ""
30917
30918 #. type: verbatim
30919 #: ../src/guestfs-actions.pod:6297
30920 #, no-wrap
30921 msgid ""
30922 " int\n"
30923 " guestfs_scrub_freespace (guestfs_h *g,\n"
30924 "                          const char *dir);\n"
30925 "\n"
30926 msgstr ""
30927
30928 #. type: textblock
30929 #: ../src/guestfs-actions.pod:6301
30930 msgid ""
30931 "This command creates the directory C<dir> and then fills it with files until "
30932 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30933 "and deletes them.  The intention is to scrub any free space on the partition "
30934 "containing C<dir>."
30935 msgstr ""
30936
30937 #. type: =head2
30938 #: ../src/guestfs-actions.pod:6314
30939 msgid "guestfs_set_append"
30940 msgstr ""
30941
30942 #. type: verbatim
30943 #: ../src/guestfs-actions.pod:6316
30944 #, no-wrap
30945 msgid ""
30946 " int\n"
30947 " guestfs_set_append (guestfs_h *g,\n"
30948 "                     const char *append);\n"
30949 "\n"
30950 msgstr ""
30951
30952 #. type: =head2
30953 #: ../src/guestfs-actions.pod:6333
30954 msgid "guestfs_set_attach_method"
30955 msgstr ""
30956
30957 #. type: verbatim
30958 #: ../src/guestfs-actions.pod:6335
30959 #, no-wrap
30960 msgid ""
30961 " int\n"
30962 " guestfs_set_attach_method (guestfs_h *g,\n"
30963 "                            const char *attachmethod);\n"
30964 "\n"
30965 msgstr ""
30966
30967 #. type: =head2
30968 #: ../src/guestfs-actions.pod:6363
30969 msgid "guestfs_set_autosync"
30970 msgstr ""
30971
30972 #. type: verbatim
30973 #: ../src/guestfs-actions.pod:6365
30974 #, no-wrap
30975 msgid ""
30976 " int\n"
30977 " guestfs_set_autosync (guestfs_h *g,\n"
30978 "                       int autosync);\n"
30979 "\n"
30980 msgstr ""
30981
30982 #. type: =head2
30983 #: ../src/guestfs-actions.pod:6381
30984 msgid "guestfs_set_direct"
30985 msgstr ""
30986
30987 #. type: verbatim
30988 #: ../src/guestfs-actions.pod:6383
30989 #, no-wrap
30990 msgid ""
30991 " int\n"
30992 " guestfs_set_direct (guestfs_h *g,\n"
30993 "                     int direct);\n"
30994 "\n"
30995 msgstr ""
30996
30997 #. type: textblock
30998 #: ../src/guestfs-actions.pod:6391
30999 msgid ""
31000 "One consequence of this is that log messages aren't caught by the library "
31001 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31002 "stdout."
31003 msgstr ""
31004
31005 #. type: =head2
31006 #: ../src/guestfs-actions.pod:6404
31007 msgid "guestfs_set_e2label"
31008 msgstr ""
31009
31010 #. type: verbatim
31011 #: ../src/guestfs-actions.pod:6406
31012 #, no-wrap
31013 msgid ""
31014 " int\n"
31015 " guestfs_set_e2label (guestfs_h *g,\n"
31016 "                      const char *device,\n"
31017 "                      const char *label);\n"
31018 "\n"
31019 msgstr ""
31020
31021 #. type: textblock
31022 #: ../src/guestfs-actions.pod:6415
31023 msgid ""
31024 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31025 "the existing label on a filesystem."
31026 msgstr ""
31027
31028 #. type: =head2
31029 #: ../src/guestfs-actions.pod:6422
31030 msgid "guestfs_set_e2uuid"
31031 msgstr ""
31032
31033 #. type: verbatim
31034 #: ../src/guestfs-actions.pod:6424
31035 #, no-wrap
31036 msgid ""
31037 " int\n"
31038 " guestfs_set_e2uuid (guestfs_h *g,\n"
31039 "                     const char *device,\n"
31040 "                     const char *uuid);\n"
31041 "\n"
31042 msgstr ""
31043
31044 #. type: textblock
31045 #: ../src/guestfs-actions.pod:6434
31046 msgid ""
31047 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31048 "the existing UUID of a filesystem."
31049 msgstr ""
31050
31051 #. type: =head2
31052 #: ../src/guestfs-actions.pod:6441
31053 msgid "guestfs_set_memsize"
31054 msgstr ""
31055
31056 #. type: verbatim
31057 #: ../src/guestfs-actions.pod:6443
31058 #, no-wrap
31059 msgid ""
31060 " int\n"
31061 " guestfs_set_memsize (guestfs_h *g,\n"
31062 "                      int memsize);\n"
31063 "\n"
31064 msgstr ""
31065
31066 #. type: textblock
31067 #: ../src/guestfs-actions.pod:6447
31068 msgid ""
31069 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31070 "This only has any effect if called before C<guestfs_launch>."
31071 msgstr ""
31072
31073 #. type: =head2
31074 #: ../src/guestfs-actions.pod:6462
31075 msgid "guestfs_set_network"
31076 msgstr ""
31077
31078 #. type: verbatim
31079 #: ../src/guestfs-actions.pod:6464
31080 #, no-wrap
31081 msgid ""
31082 " int\n"
31083 " guestfs_set_network (guestfs_h *g,\n"
31084 "                      int network);\n"
31085 "\n"
31086 msgstr ""
31087
31088 #. type: textblock
31089 #: ../src/guestfs-actions.pod:6474
31090 msgid ""
31091 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31092 "effect."
31093 msgstr ""
31094
31095 #. type: =head2
31096 #: ../src/guestfs-actions.pod:6481
31097 msgid "guestfs_set_path"
31098 msgstr ""
31099
31100 #. type: verbatim
31101 #: ../src/guestfs-actions.pod:6483
31102 #, no-wrap
31103 msgid ""
31104 " int\n"
31105 " guestfs_set_path (guestfs_h *g,\n"
31106 "                   const char *searchpath);\n"
31107 "\n"
31108 msgstr ""
31109
31110 #. type: =head2
31111 #: ../src/guestfs-actions.pod:6498
31112 msgid "guestfs_set_pgroup"
31113 msgstr ""
31114
31115 #. type: verbatim
31116 #: ../src/guestfs-actions.pod:6500
31117 #, no-wrap
31118 msgid ""
31119 " int\n"
31120 " guestfs_set_pgroup (guestfs_h *g,\n"
31121 "                     int pgroup);\n"
31122 "\n"
31123 msgstr ""
31124
31125 #. type: =head2
31126 #: ../src/guestfs-actions.pod:6517
31127 msgid "guestfs_set_qemu"
31128 msgstr ""
31129
31130 #. type: verbatim
31131 #: ../src/guestfs-actions.pod:6519
31132 #, no-wrap
31133 msgid ""
31134 " int\n"
31135 " guestfs_set_qemu (guestfs_h *g,\n"
31136 "                   const char *qemu);\n"
31137 "\n"
31138 msgstr ""
31139
31140 #. type: =head2
31141 #: ../src/guestfs-actions.pod:6545
31142 msgid "guestfs_set_recovery_proc"
31143 msgstr ""
31144
31145 #. type: verbatim
31146 #: ../src/guestfs-actions.pod:6547
31147 #, no-wrap
31148 msgid ""
31149 " int\n"
31150 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31151 "                            int recoveryproc);\n"
31152 "\n"
31153 msgstr ""
31154
31155 #. type: textblock
31156 #: ../src/guestfs-actions.pod:6551
31157 msgid ""
31158 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31159 "not create a recovery process.  The purpose of the recovery process is to "
31160 "stop runaway qemu processes in the case where the main program aborts "
31161 "abruptly."
31162 msgstr ""
31163
31164 #. type: textblock
31165 #: ../src/guestfs-actions.pod:6556
31166 msgid ""
31167 "This only has any effect if called before C<guestfs_launch>, and the default "
31168 "is true."
31169 msgstr ""
31170
31171 #. type: =head2
31172 #: ../src/guestfs-actions.pod:6569
31173 msgid "guestfs_set_selinux"
31174 msgstr ""
31175
31176 #. type: verbatim
31177 #: ../src/guestfs-actions.pod:6571
31178 #, no-wrap
31179 msgid ""
31180 " int\n"
31181 " guestfs_set_selinux (guestfs_h *g,\n"
31182 "                      int selinux);\n"
31183 "\n"
31184 msgstr ""
31185
31186 #. type: =head2
31187 #: ../src/guestfs-actions.pod:6588
31188 msgid "guestfs_set_smp"
31189 msgstr ""
31190
31191 #. type: verbatim
31192 #: ../src/guestfs-actions.pod:6590
31193 #, no-wrap
31194 msgid ""
31195 " int\n"
31196 " guestfs_set_smp (guestfs_h *g,\n"
31197 "                  int smp);\n"
31198 "\n"
31199 msgstr ""
31200
31201 #. type: textblock
31202 #: ../src/guestfs-actions.pod:6598
31203 msgid "This function must be called before C<guestfs_launch>."
31204 msgstr ""
31205
31206 #. type: =head2
31207 #: ../src/guestfs-actions.pod:6604
31208 msgid "guestfs_set_trace"
31209 msgstr ""
31210
31211 #. type: verbatim
31212 #: ../src/guestfs-actions.pod:6606
31213 #, no-wrap
31214 msgid ""
31215 " int\n"
31216 " guestfs_set_trace (guestfs_h *g,\n"
31217 "                    int trace);\n"
31218 "\n"
31219 msgstr ""
31220
31221 #. type: textblock
31222 #: ../src/guestfs-actions.pod:6620
31223 msgid ""
31224 "Trace messages are normally sent to C<stderr>, unless you register a "
31225 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:6628
31230 msgid "guestfs_set_verbose"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:6630
31235 #, no-wrap
31236 msgid ""
31237 " int\n"
31238 " guestfs_set_verbose (guestfs_h *g,\n"
31239 "                      int verbose);\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../src/guestfs-actions.pod:6639
31245 msgid ""
31246 "Verbose messages are normally sent to C<stderr>, unless you register a "
31247 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31248 msgstr ""
31249
31250 #. type: =head2
31251 #: ../src/guestfs-actions.pod:6647
31252 msgid "guestfs_setcon"
31253 msgstr ""
31254
31255 #. type: verbatim
31256 #: ../src/guestfs-actions.pod:6649
31257 #, no-wrap
31258 msgid ""
31259 " int\n"
31260 " guestfs_setcon (guestfs_h *g,\n"
31261 "                 const char *context);\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: =head2
31266 #: ../src/guestfs-actions.pod:6662
31267 msgid "guestfs_setxattr"
31268 msgstr ""
31269
31270 #. type: verbatim
31271 #: ../src/guestfs-actions.pod:6664
31272 #, no-wrap
31273 msgid ""
31274 " int\n"
31275 " guestfs_setxattr (guestfs_h *g,\n"
31276 "                   const char *xattr,\n"
31277 "                   const char *val,\n"
31278 "                   int vallen,\n"
31279 "                   const char *path);\n"
31280 "\n"
31281 msgstr ""
31282
31283 #. type: textblock
31284 #: ../src/guestfs-actions.pod:6675
31285 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31286 msgstr ""
31287
31288 #. type: =head2
31289 #: ../src/guestfs-actions.pod:6681
31290 msgid "guestfs_sfdisk"
31291 msgstr ""
31292
31293 #. type: verbatim
31294 #: ../src/guestfs-actions.pod:6683
31295 #, no-wrap
31296 msgid ""
31297 " int\n"
31298 " guestfs_sfdisk (guestfs_h *g,\n"
31299 "                 const char *device,\n"
31300 "                 int cyls,\n"
31301 "                 int heads,\n"
31302 "                 int sectors,\n"
31303 "                 char *const *lines);\n"
31304 "\n"
31305 msgstr ""
31306
31307 #. type: textblock
31308 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
31309 #: ../src/guestfs-actions.pod:6769
31310 msgid ""
31311 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31312 "call instead."
31313 msgstr ""
31314
31315 #. type: textblock
31316 #: ../src/guestfs-actions.pod:6718
31317 msgid ""
31318 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31319 msgstr ""
31320
31321 #. type: =head2
31322 #: ../src/guestfs-actions.pod:6728
31323 msgid "guestfs_sfdiskM"
31324 msgstr ""
31325
31326 #. type: verbatim
31327 #: ../src/guestfs-actions.pod:6730
31328 #, no-wrap
31329 msgid ""
31330 " int\n"
31331 " guestfs_sfdiskM (guestfs_h *g,\n"
31332 "                  const char *device,\n"
31333 "                  char *const *lines);\n"
31334 "\n"
31335 msgstr ""
31336
31337 #. type: textblock
31338 #: ../src/guestfs-actions.pod:6742
31339 msgid ""
31340 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31341 "partition sizes are specified in megabytes only (rounded to the nearest "
31342 "cylinder) and you don't need to specify the cyls, heads and sectors "
31343 "parameters which were rarely if ever used anyway."
31344 msgstr ""
31345
31346 #. type: textblock
31347 #: ../src/guestfs-actions.pod:6748
31348 msgid ""
31349 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31350 "C<guestfs_part_disk>"
31351 msgstr ""
31352
31353 #. type: =head2
31354 #: ../src/guestfs-actions.pod:6758
31355 msgid "guestfs_sfdisk_N"
31356 msgstr ""
31357
31358 #. type: verbatim
31359 #: ../src/guestfs-actions.pod:6760
31360 #, no-wrap
31361 msgid ""
31362 " int\n"
31363 " guestfs_sfdisk_N (guestfs_h *g,\n"
31364 "                   const char *device,\n"
31365 "                   int partnum,\n"
31366 "                   int cyls,\n"
31367 "                   int heads,\n"
31368 "                   int sectors,\n"
31369 "                   const char *line);\n"
31370 "\n"
31371 msgstr ""
31372
31373 #. type: textblock
31374 #: ../src/guestfs-actions.pod:6779
31375 msgid ""
31376 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31377 "for the cyls/heads/sectors parameters."
31378 msgstr ""
31379
31380 #. type: textblock
31381 #: ../src/guestfs-actions.pod:6782
31382 msgid "See also: C<guestfs_part_add>"
31383 msgstr ""
31384
31385 #. type: =head2
31386 #: ../src/guestfs-actions.pod:6791
31387 msgid "guestfs_sfdisk_disk_geometry"
31388 msgstr ""
31389
31390 #. type: verbatim
31391 #: ../src/guestfs-actions.pod:6793
31392 #, no-wrap
31393 msgid ""
31394 " char *\n"
31395 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31396 "                               const char *device);\n"
31397 "\n"
31398 msgstr ""
31399
31400 #. type: textblock
31401 #: ../src/guestfs-actions.pod:6797
31402 msgid ""
31403 "This displays the disk geometry of C<device> read from the partition table.  "
31404 "Especially in the case where the underlying block device has been resized, "
31405 "this can be different from the kernel's idea of the geometry (see "
31406 "C<guestfs_sfdisk_kernel_geometry>)."
31407 msgstr ""
31408
31409 #. type: =head2
31410 #: ../src/guestfs-actions.pod:6810
31411 msgid "guestfs_sfdisk_kernel_geometry"
31412 msgstr ""
31413
31414 #. type: verbatim
31415 #: ../src/guestfs-actions.pod:6812
31416 #, no-wrap
31417 msgid ""
31418 " char *\n"
31419 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31420 "                                 const char *device);\n"
31421 "\n"
31422 msgstr ""
31423
31424 #. type: =head2
31425 #: ../src/guestfs-actions.pod:6826
31426 msgid "guestfs_sfdisk_l"
31427 msgstr ""
31428
31429 #. type: verbatim
31430 #: ../src/guestfs-actions.pod:6828
31431 #, no-wrap
31432 msgid ""
31433 " char *\n"
31434 " guestfs_sfdisk_l (guestfs_h *g,\n"
31435 "                   const char *device);\n"
31436 "\n"
31437 msgstr ""
31438
31439 #. type: textblock
31440 #: ../src/guestfs-actions.pod:6832
31441 msgid ""
31442 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31443 "call instead."
31444 msgstr ""
31445
31446 #. type: textblock
31447 #: ../src/guestfs-actions.pod:6843
31448 msgid "See also: C<guestfs_part_list>"
31449 msgstr ""
31450
31451 #. type: =head2
31452 #: ../src/guestfs-actions.pod:6850
31453 msgid "guestfs_sh"
31454 msgstr ""
31455
31456 #. type: verbatim
31457 #: ../src/guestfs-actions.pod:6852
31458 #, no-wrap
31459 msgid ""
31460 " char *\n"
31461 " guestfs_sh (guestfs_h *g,\n"
31462 "             const char *command);\n"
31463 "\n"
31464 msgstr ""
31465
31466 #. type: textblock
31467 #: ../src/guestfs-actions.pod:6859
31468 msgid "This is like C<guestfs_command>, but passes the command to:"
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs-actions.pod:6867
31473 msgid "All the provisos about C<guestfs_command> apply to this call."
31474 msgstr ""
31475
31476 #. type: =head2
31477 #: ../src/guestfs-actions.pod:6874
31478 msgid "guestfs_sh_lines"
31479 msgstr ""
31480
31481 #. type: verbatim
31482 #: ../src/guestfs-actions.pod:6876
31483 #, no-wrap
31484 msgid ""
31485 " char **\n"
31486 " guestfs_sh_lines (guestfs_h *g,\n"
31487 "                   const char *command);\n"
31488 "\n"
31489 msgstr ""
31490
31491 #. type: textblock
31492 #: ../src/guestfs-actions.pod:6880
31493 msgid ""
31494 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31495 "lines."
31496 msgstr ""
31497
31498 #. type: textblock
31499 #: ../src/guestfs-actions.pod:6883
31500 msgid "See also: C<guestfs_command_lines>"
31501 msgstr ""
31502
31503 #. type: =head2
31504 #: ../src/guestfs-actions.pod:6891
31505 msgid "guestfs_sleep"
31506 msgstr ""
31507
31508 #. type: verbatim
31509 #: ../src/guestfs-actions.pod:6893
31510 #, no-wrap
31511 msgid ""
31512 " int\n"
31513 " guestfs_sleep (guestfs_h *g,\n"
31514 "                int secs);\n"
31515 "\n"
31516 msgstr ""
31517
31518 #. type: textblock
31519 #: ../src/guestfs-actions.pod:6901
31520 msgid "(Added in 1.0.41)"
31521 msgstr ""
31522
31523 #. type: =head2
31524 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
31525 msgid "guestfs_stat"
31526 msgstr ""
31527
31528 #. type: verbatim
31529 #: ../src/guestfs-actions.pod:6905
31530 #, no-wrap
31531 msgid ""
31532 " struct guestfs_stat *\n"
31533 " guestfs_stat (guestfs_h *g,\n"
31534 "               const char *path);\n"
31535 "\n"
31536 msgstr ""
31537
31538 #. type: =head2
31539 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
31540 msgid "guestfs_statvfs"
31541 msgstr ""
31542
31543 #. type: verbatim
31544 #: ../src/guestfs-actions.pod:6921
31545 #, no-wrap
31546 msgid ""
31547 " struct guestfs_statvfs *\n"
31548 " guestfs_statvfs (guestfs_h *g,\n"
31549 "                  const char *path);\n"
31550 "\n"
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs-actions.pod:6931
31555 msgid ""
31556 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31557 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31558 msgstr ""
31559
31560 #. type: =head2
31561 #: ../src/guestfs-actions.pod:6937
31562 msgid "guestfs_strings"
31563 msgstr ""
31564
31565 #. type: verbatim
31566 #: ../src/guestfs-actions.pod:6939
31567 #, no-wrap
31568 msgid ""
31569 " char **\n"
31570 " guestfs_strings (guestfs_h *g,\n"
31571 "                  const char *path);\n"
31572 "\n"
31573 msgstr ""
31574
31575 #. type: =head2
31576 #: ../src/guestfs-actions.pod:6955
31577 msgid "guestfs_strings_e"
31578 msgstr ""
31579
31580 #. type: verbatim
31581 #: ../src/guestfs-actions.pod:6957
31582 #, no-wrap
31583 msgid ""
31584 " char **\n"
31585 " guestfs_strings_e (guestfs_h *g,\n"
31586 "                    const char *encoding,\n"
31587 "                    const char *path);\n"
31588 "\n"
31589 msgstr ""
31590
31591 #. type: textblock
31592 #: ../src/guestfs-actions.pod:6962
31593 msgid ""
31594 "This is like the C<guestfs_strings> command, but allows you to specify the "
31595 "encoding of strings that are looked for in the source file C<path>."
31596 msgstr ""
31597
31598 #. type: textblock
31599 #: ../src/guestfs-actions.pod:6972
31600 msgid ""
31601 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31602 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs-actions.pod:7010
31607 msgid "guestfs_swapoff_device"
31608 msgstr ""
31609
31610 #. type: verbatim
31611 #: ../src/guestfs-actions.pod:7012
31612 #, no-wrap
31613 msgid ""
31614 " int\n"
31615 " guestfs_swapoff_device (guestfs_h *g,\n"
31616 "                         const char *device);\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: textblock
31621 #: ../src/guestfs-actions.pod:7016
31622 msgid ""
31623 "This command disables the libguestfs appliance swap device or partition "
31624 "named C<device>.  See C<guestfs_swapon_device>."
31625 msgstr ""
31626
31627 #. type: =head2
31628 #: ../src/guestfs-actions.pod:7024
31629 msgid "guestfs_swapoff_file"
31630 msgstr ""
31631
31632 #. type: verbatim
31633 #: ../src/guestfs-actions.pod:7026
31634 #, no-wrap
31635 msgid ""
31636 " int\n"
31637 " guestfs_swapoff_file (guestfs_h *g,\n"
31638 "                       const char *file);\n"
31639 "\n"
31640 msgstr ""
31641
31642 #. type: =head2
31643 #: ../src/guestfs-actions.pod:7036
31644 msgid "guestfs_swapoff_label"
31645 msgstr ""
31646
31647 #. type: verbatim
31648 #: ../src/guestfs-actions.pod:7038
31649 #, no-wrap
31650 msgid ""
31651 " int\n"
31652 " guestfs_swapoff_label (guestfs_h *g,\n"
31653 "                        const char *label);\n"
31654 "\n"
31655 msgstr ""
31656
31657 #. type: =head2
31658 #: ../src/guestfs-actions.pod:7049
31659 msgid "guestfs_swapoff_uuid"
31660 msgstr ""
31661
31662 #. type: verbatim
31663 #: ../src/guestfs-actions.pod:7051
31664 #, no-wrap
31665 msgid ""
31666 " int\n"
31667 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31668 "                       const char *uuid);\n"
31669 "\n"
31670 msgstr ""
31671
31672 #. type: =head2
31673 #: ../src/guestfs-actions.pod:7062
31674 msgid "guestfs_swapon_device"
31675 msgstr ""
31676
31677 #. type: verbatim
31678 #: ../src/guestfs-actions.pod:7064
31679 #, no-wrap
31680 msgid ""
31681 " int\n"
31682 " guestfs_swapon_device (guestfs_h *g,\n"
31683 "                        const char *device);\n"
31684 "\n"
31685 msgstr ""
31686
31687 #. type: textblock
31688 #: ../src/guestfs-actions.pod:7068
31689 msgid ""
31690 "This command enables the libguestfs appliance to use the swap device or "
31691 "partition named C<device>.  The increased memory is made available for all "
31692 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31693 msgstr ""
31694
31695 #. type: =head2
31696 #: ../src/guestfs-actions.pod:7084
31697 msgid "guestfs_swapon_file"
31698 msgstr ""
31699
31700 #. type: verbatim
31701 #: ../src/guestfs-actions.pod:7086
31702 #, no-wrap
31703 msgid ""
31704 " int\n"
31705 " guestfs_swapon_file (guestfs_h *g,\n"
31706 "                      const char *file);\n"
31707 "\n"
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs-actions.pod:7090
31712 msgid ""
31713 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31714 "notes."
31715 msgstr ""
31716
31717 #. type: =head2
31718 #: ../src/guestfs-actions.pod:7097
31719 msgid "guestfs_swapon_label"
31720 msgstr ""
31721
31722 #. type: verbatim
31723 #: ../src/guestfs-actions.pod:7099
31724 #, no-wrap
31725 msgid ""
31726 " int\n"
31727 " guestfs_swapon_label (guestfs_h *g,\n"
31728 "                       const char *label);\n"
31729 "\n"
31730 msgstr ""
31731
31732 #. type: textblock
31733 #: ../src/guestfs-actions.pod:7103
31734 msgid ""
31735 "This command enables swap to a labeled swap partition.  See "
31736 "C<guestfs_swapon_device> for other notes."
31737 msgstr ""
31738
31739 #. type: =head2
31740 #: ../src/guestfs-actions.pod:7110
31741 msgid "guestfs_swapon_uuid"
31742 msgstr ""
31743
31744 #. type: verbatim
31745 #: ../src/guestfs-actions.pod:7112
31746 #, no-wrap
31747 msgid ""
31748 " int\n"
31749 " guestfs_swapon_uuid (guestfs_h *g,\n"
31750 "                      const char *uuid);\n"
31751 "\n"
31752 msgstr ""
31753
31754 #. type: textblock
31755 #: ../src/guestfs-actions.pod:7116
31756 msgid ""
31757 "This command enables swap to a swap partition with the given UUID.  See "
31758 "C<guestfs_swapon_device> for other notes."
31759 msgstr ""
31760
31761 #. type: =head2
31762 #: ../src/guestfs-actions.pod:7123
31763 msgid "guestfs_sync"
31764 msgstr ""
31765
31766 #. type: verbatim
31767 #: ../src/guestfs-actions.pod:7125
31768 #, no-wrap
31769 msgid ""
31770 " int\n"
31771 " guestfs_sync (guestfs_h *g);\n"
31772 "\n"
31773 msgstr ""
31774
31775 #. type: =head2
31776 #: ../src/guestfs-actions.pod:7138
31777 msgid "guestfs_tail"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:7140
31782 #, no-wrap
31783 msgid ""
31784 " char **\n"
31785 " guestfs_tail (guestfs_h *g,\n"
31786 "               const char *path);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: =head2
31791 #: ../src/guestfs-actions.pod:7156
31792 msgid "guestfs_tail_n"
31793 msgstr ""
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-actions.pod:7158
31797 #, no-wrap
31798 msgid ""
31799 " char **\n"
31800 " guestfs_tail_n (guestfs_h *g,\n"
31801 "                 int nrlines,\n"
31802 "                 const char *path);\n"
31803 "\n"
31804 msgstr ""
31805
31806 #. type: =head2
31807 #: ../src/guestfs-actions.pod:7180
31808 msgid "guestfs_tar_in"
31809 msgstr ""
31810
31811 #. type: verbatim
31812 #: ../src/guestfs-actions.pod:7182
31813 #, no-wrap
31814 msgid ""
31815 " int\n"
31816 " guestfs_tar_in (guestfs_h *g,\n"
31817 "                 const char *tarfile,\n"
31818 "                 const char *directory);\n"
31819 "\n"
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs-actions.pod:7190
31824 msgid ""
31825 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31826 msgstr ""
31827
31828 #. type: textblock
31829 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
31830 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
31831 msgid "(Added in 1.0.3)"
31832 msgstr ""
31833
31834 #. type: =head2
31835 #: ../src/guestfs-actions.pod:7197
31836 msgid "guestfs_tar_out"
31837 msgstr ""
31838
31839 #. type: verbatim
31840 #: ../src/guestfs-actions.pod:7199
31841 #, no-wrap
31842 msgid ""
31843 " int\n"
31844 " guestfs_tar_out (guestfs_h *g,\n"
31845 "                  const char *directory,\n"
31846 "                  const char *tarfile);\n"
31847 "\n"
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs-actions.pod:7207
31852 msgid ""
31853 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31854 "C<guestfs_txz_out>."
31855 msgstr ""
31856
31857 #. type: =head2
31858 #: ../src/guestfs-actions.pod:7214
31859 msgid "guestfs_tgz_in"
31860 msgstr ""
31861
31862 #. type: verbatim
31863 #: ../src/guestfs-actions.pod:7216
31864 #, no-wrap
31865 msgid ""
31866 " int\n"
31867 " guestfs_tgz_in (guestfs_h *g,\n"
31868 "                 const char *tarball,\n"
31869 "                 const char *directory);\n"
31870 "\n"
31871 msgstr ""
31872
31873 #. type: textblock
31874 #: ../src/guestfs-actions.pod:7224
31875 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31876 msgstr ""
31877
31878 #. type: =head2
31879 #: ../src/guestfs-actions.pod:7230
31880 msgid "guestfs_tgz_out"
31881 msgstr ""
31882
31883 #. type: verbatim
31884 #: ../src/guestfs-actions.pod:7232
31885 #, no-wrap
31886 msgid ""
31887 " int\n"
31888 " guestfs_tgz_out (guestfs_h *g,\n"
31889 "                  const char *directory,\n"
31890 "                  const char *tarball);\n"
31891 "\n"
31892 msgstr ""
31893
31894 #. type: textblock
31895 #: ../src/guestfs-actions.pod:7240
31896 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31897 msgstr ""
31898
31899 #. type: =head2
31900 #: ../src/guestfs-actions.pod:7246
31901 msgid "guestfs_touch"
31902 msgstr ""
31903
31904 #. type: verbatim
31905 #: ../src/guestfs-actions.pod:7248
31906 #, no-wrap
31907 msgid ""
31908 " int\n"
31909 " guestfs_touch (guestfs_h *g,\n"
31910 "                const char *path);\n"
31911 "\n"
31912 msgstr ""
31913
31914 #. type: =head2
31915 #: ../src/guestfs-actions.pod:7263
31916 msgid "guestfs_truncate"
31917 msgstr ""
31918
31919 #. type: verbatim
31920 #: ../src/guestfs-actions.pod:7265
31921 #, no-wrap
31922 msgid ""
31923 " int\n"
31924 " guestfs_truncate (guestfs_h *g,\n"
31925 "                   const char *path);\n"
31926 "\n"
31927 msgstr ""
31928
31929 #. type: =head2
31930 #: ../src/guestfs-actions.pod:7276
31931 msgid "guestfs_truncate_size"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs-actions.pod:7278
31936 #, no-wrap
31937 msgid ""
31938 " int\n"
31939 " guestfs_truncate_size (guestfs_h *g,\n"
31940 "                        const char *path,\n"
31941 "                        int64_t size);\n"
31942 "\n"
31943 msgstr ""
31944
31945 #. type: textblock
31946 #: ../src/guestfs-actions.pod:7286
31947 msgid ""
31948 "If the current file size is less than C<size> then the file is extended to "
31949 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31950 "blocks are not allocated for the file until you write to it).  To create a "
31951 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31952 msgstr ""
31953
31954 #. type: =head2
31955 #: ../src/guestfs-actions.pod:7296
31956 msgid "guestfs_tune2fs_l"
31957 msgstr ""
31958
31959 #. type: verbatim
31960 #: ../src/guestfs-actions.pod:7298
31961 #, no-wrap
31962 msgid ""
31963 " char **\n"
31964 " guestfs_tune2fs_l (guestfs_h *g,\n"
31965 "                    const char *device);\n"
31966 "\n"
31967 msgstr ""
31968
31969 #. type: =head2
31970 #: ../src/guestfs-actions.pod:7318
31971 msgid "guestfs_txz_in"
31972 msgstr ""
31973
31974 #. type: verbatim
31975 #: ../src/guestfs-actions.pod:7320
31976 #, no-wrap
31977 msgid ""
31978 " int\n"
31979 " guestfs_txz_in (guestfs_h *g,\n"
31980 "                 const char *tarball,\n"
31981 "                 const char *directory);\n"
31982 "\n"
31983 msgstr ""
31984
31985 #. type: =head2
31986 #: ../src/guestfs-actions.pod:7332
31987 msgid "guestfs_txz_out"
31988 msgstr ""
31989
31990 #. type: verbatim
31991 #: ../src/guestfs-actions.pod:7334
31992 #, no-wrap
31993 msgid ""
31994 " int\n"
31995 " guestfs_txz_out (guestfs_h *g,\n"
31996 "                  const char *directory,\n"
31997 "                  const char *tarball);\n"
31998 "\n"
31999 msgstr ""
32000
32001 #. type: =head2
32002 #: ../src/guestfs-actions.pod:7346
32003 msgid "guestfs_umask"
32004 msgstr ""
32005
32006 #. type: verbatim
32007 #: ../src/guestfs-actions.pod:7348
32008 #, no-wrap
32009 msgid ""
32010 " int\n"
32011 " guestfs_umask (guestfs_h *g,\n"
32012 "                int mask);\n"
32013 "\n"
32014 msgstr ""
32015
32016 #. type: textblock
32017 #: ../src/guestfs-actions.pod:7364
32018 msgid ""
32019 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32020 "C<guestfs_mkdir>."
32021 msgstr ""
32022
32023 #. type: =head2
32024 #: ../src/guestfs-actions.pod:7373
32025 msgid "guestfs_umount"
32026 msgstr ""
32027
32028 #. type: verbatim
32029 #: ../src/guestfs-actions.pod:7375
32030 #, no-wrap
32031 msgid ""
32032 " int\n"
32033 " guestfs_umount (guestfs_h *g,\n"
32034 "                 const char *pathordevice);\n"
32035 "\n"
32036 msgstr ""
32037
32038 #. type: =head2
32039 #: ../src/guestfs-actions.pod:7387
32040 msgid "guestfs_umount_all"
32041 msgstr ""
32042
32043 #. type: verbatim
32044 #: ../src/guestfs-actions.pod:7389
32045 #, no-wrap
32046 msgid ""
32047 " int\n"
32048 " guestfs_umount_all (guestfs_h *g);\n"
32049 "\n"
32050 msgstr ""
32051
32052 #. type: =head2
32053 #: ../src/guestfs-actions.pod:7400
32054 msgid "guestfs_upload"
32055 msgstr ""
32056
32057 #. type: verbatim
32058 #: ../src/guestfs-actions.pod:7402
32059 #, no-wrap
32060 msgid ""
32061 " int\n"
32062 " guestfs_upload (guestfs_h *g,\n"
32063 "                 const char *filename,\n"
32064 "                 const char *remotefilename);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: textblock
32069 #: ../src/guestfs-actions.pod:7412
32070 msgid "See also C<guestfs_download>."
32071 msgstr ""
32072
32073 #. type: =head2
32074 #: ../src/guestfs-actions.pod:7423
32075 msgid "guestfs_upload_offset"
32076 msgstr ""
32077
32078 #. type: verbatim
32079 #: ../src/guestfs-actions.pod:7425
32080 #, no-wrap
32081 msgid ""
32082 " int\n"
32083 " guestfs_upload_offset (guestfs_h *g,\n"
32084 "                        const char *filename,\n"
32085 "                        const char *remotefilename,\n"
32086 "                        int64_t offset);\n"
32087 "\n"
32088 msgstr ""
32089
32090 #. type: textblock
32091 #: ../src/guestfs-actions.pod:7441
32092 msgid ""
32093 "Note that there is no limit on the amount of data that can be uploaded with "
32094 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32095 "full amount unless an error occurs."
32096 msgstr ""
32097
32098 #. type: textblock
32099 #: ../src/guestfs-actions.pod:7446
32100 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32101 msgstr ""
32102
32103 #. type: =head2
32104 #: ../src/guestfs-actions.pod:7457
32105 msgid "guestfs_utimens"
32106 msgstr ""
32107
32108 #. type: verbatim
32109 #: ../src/guestfs-actions.pod:7459
32110 #, no-wrap
32111 msgid ""
32112 " int\n"
32113 " guestfs_utimens (guestfs_h *g,\n"
32114 "                  const char *path,\n"
32115 "                  int64_t atsecs,\n"
32116 "                  int64_t atnsecs,\n"
32117 "                  int64_t mtsecs,\n"
32118 "                  int64_t mtnsecs);\n"
32119 "\n"
32120 msgstr ""
32121
32122 #. type: =head2
32123 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
32124 msgid "guestfs_version"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-actions.pod:7490
32129 #, no-wrap
32130 msgid ""
32131 " struct guestfs_version *\n"
32132 " guestfs_version (guestfs_h *g);\n"
32133 "\n"
32134 msgstr ""
32135
32136 #. type: textblock
32137 #: ../src/guestfs-actions.pod:7518
32138 msgid ""
32139 "I<Note:> Don't use this call to test for availability of features.  In "
32140 "enterprise distributions we backport features from later versions into "
32141 "earlier versions, making this an unreliable way to test for features.  Use "
32142 "C<guestfs_available> instead."
32143 msgstr ""
32144
32145 #. type: textblock
32146 #: ../src/guestfs-actions.pod:7524
32147 msgid ""
32148 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32149 "error.  I<The caller must call C<guestfs_free_version> after use>."
32150 msgstr ""
32151
32152 #. type: textblock
32153 #: ../src/guestfs-actions.pod:7528
32154 msgid "(Added in 1.0.58)"
32155 msgstr ""
32156
32157 #. type: =head2
32158 #: ../src/guestfs-actions.pod:7530
32159 msgid "guestfs_vfs_label"
32160 msgstr ""
32161
32162 #. type: verbatim
32163 #: ../src/guestfs-actions.pod:7532
32164 #, no-wrap
32165 msgid ""
32166 " char *\n"
32167 " guestfs_vfs_label (guestfs_h *g,\n"
32168 "                    const char *device);\n"
32169 "\n"
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs-actions.pod:7541
32174 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32175 msgstr ""
32176
32177 #. type: textblock
32178 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
32179 msgid "(Added in 1.3.18)"
32180 msgstr ""
32181
32182 #. type: =head2
32183 #: ../src/guestfs-actions.pod:7548
32184 msgid "guestfs_vfs_type"
32185 msgstr ""
32186
32187 #. type: verbatim
32188 #: ../src/guestfs-actions.pod:7550
32189 #, no-wrap
32190 msgid ""
32191 " char *\n"
32192 " guestfs_vfs_type (guestfs_h *g,\n"
32193 "                   const char *device);\n"
32194 "\n"
32195 msgstr ""
32196
32197 #. type: =head2
32198 #: ../src/guestfs-actions.pod:7567
32199 msgid "guestfs_vfs_uuid"
32200 msgstr ""
32201
32202 #. type: verbatim
32203 #: ../src/guestfs-actions.pod:7569
32204 #, no-wrap
32205 msgid ""
32206 " char *\n"
32207 " guestfs_vfs_uuid (guestfs_h *g,\n"
32208 "                   const char *device);\n"
32209 "\n"
32210 msgstr ""
32211
32212 #. type: textblock
32213 #: ../src/guestfs-actions.pod:7578
32214 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32215 msgstr ""
32216
32217 #. type: =head2
32218 #: ../src/guestfs-actions.pod:7585
32219 msgid "guestfs_vg_activate"
32220 msgstr ""
32221
32222 #. type: verbatim
32223 #: ../src/guestfs-actions.pod:7587
32224 #, no-wrap
32225 msgid ""
32226 " int\n"
32227 " guestfs_vg_activate (guestfs_h *g,\n"
32228 "                      int activate,\n"
32229 "                      char *const *volgroups);\n"
32230 "\n"
32231 msgstr ""
32232
32233 #. type: =head2
32234 #: ../src/guestfs-actions.pod:7604
32235 msgid "guestfs_vg_activate_all"
32236 msgstr ""
32237
32238 #. type: verbatim
32239 #: ../src/guestfs-actions.pod:7606
32240 #, no-wrap
32241 msgid ""
32242 " int\n"
32243 " guestfs_vg_activate_all (guestfs_h *g,\n"
32244 "                          int activate);\n"
32245 "\n"
32246 msgstr ""
32247
32248 #. type: =head2
32249 #: ../src/guestfs-actions.pod:7619
32250 msgid "guestfs_vgcreate"
32251 msgstr ""
32252
32253 #. type: verbatim
32254 #: ../src/guestfs-actions.pod:7621
32255 #, no-wrap
32256 msgid ""
32257 " int\n"
32258 " guestfs_vgcreate (guestfs_h *g,\n"
32259 "                   const char *volgroup,\n"
32260 "                   char *const *physvols);\n"
32261 "\n"
32262 msgstr ""
32263
32264 #. type: =head2
32265 #: ../src/guestfs-actions.pod:7633
32266 msgid "guestfs_vglvuuids"
32267 msgstr ""
32268
32269 #. type: verbatim
32270 #: ../src/guestfs-actions.pod:7635
32271 #, no-wrap
32272 msgid ""
32273 " char **\n"
32274 " guestfs_vglvuuids (guestfs_h *g,\n"
32275 "                    const char *vgname);\n"
32276 "\n"
32277 msgstr ""
32278
32279 #. type: textblock
32280 #: ../src/guestfs-actions.pod:7642
32281 msgid ""
32282 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32283 "associate logical volumes and volume groups."
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs-actions.pod:7645
32288 msgid "See also C<guestfs_vgpvuuids>."
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-actions.pod:7653
32293 msgid "guestfs_vgpvuuids"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-actions.pod:7655
32298 #, no-wrap
32299 msgid ""
32300 " char **\n"
32301 " guestfs_vgpvuuids (guestfs_h *g,\n"
32302 "                    const char *vgname);\n"
32303 "\n"
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs-actions.pod:7662
32308 msgid ""
32309 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32310 "associate physical volumes and volume groups."
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs-actions.pod:7665
32315 msgid "See also C<guestfs_vglvuuids>."
32316 msgstr ""
32317
32318 #. type: =head2
32319 #: ../src/guestfs-actions.pod:7673
32320 msgid "guestfs_vgremove"
32321 msgstr ""
32322
32323 #. type: verbatim
32324 #: ../src/guestfs-actions.pod:7675
32325 #, no-wrap
32326 msgid ""
32327 " int\n"
32328 " guestfs_vgremove (guestfs_h *g,\n"
32329 "                   const char *vgname);\n"
32330 "\n"
32331 msgstr ""
32332
32333 #. type: =head2
32334 #: ../src/guestfs-actions.pod:7688
32335 msgid "guestfs_vgrename"
32336 msgstr ""
32337
32338 #. type: verbatim
32339 #: ../src/guestfs-actions.pod:7690
32340 #, no-wrap
32341 msgid ""
32342 " int\n"
32343 " guestfs_vgrename (guestfs_h *g,\n"
32344 "                   const char *volgroup,\n"
32345 "                   const char *newvolgroup);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs-actions.pod:7701
32351 msgid "guestfs_vgs"
32352 msgstr ""
32353
32354 #. type: verbatim
32355 #: ../src/guestfs-actions.pod:7703
32356 #, no-wrap
32357 msgid ""
32358 " char **\n"
32359 " guestfs_vgs (guestfs_h *g);\n"
32360 "\n"
32361 msgstr ""
32362
32363 #. type: textblock
32364 #: ../src/guestfs-actions.pod:7712
32365 msgid "See also C<guestfs_vgs_full>."
32366 msgstr ""
32367
32368 #. type: =head2
32369 #: ../src/guestfs-actions.pod:7720
32370 msgid "guestfs_vgs_full"
32371 msgstr ""
32372
32373 #. type: verbatim
32374 #: ../src/guestfs-actions.pod:7722
32375 #, no-wrap
32376 msgid ""
32377 " struct guestfs_lvm_vg_list *\n"
32378 " guestfs_vgs_full (guestfs_h *g);\n"
32379 "\n"
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs-actions.pod:7728
32384 msgid ""
32385 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32386 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32387 msgstr ""
32388
32389 #. type: =head2
32390 #: ../src/guestfs-actions.pod:7734
32391 msgid "guestfs_vgscan"
32392 msgstr ""
32393
32394 #. type: verbatim
32395 #: ../src/guestfs-actions.pod:7736
32396 #, no-wrap
32397 msgid ""
32398 " int\n"
32399 " guestfs_vgscan (guestfs_h *g);\n"
32400 "\n"
32401 msgstr ""
32402
32403 #. type: =head2
32404 #: ../src/guestfs-actions.pod:7746
32405 msgid "guestfs_vguuid"
32406 msgstr ""
32407
32408 #. type: verbatim
32409 #: ../src/guestfs-actions.pod:7748
32410 #, no-wrap
32411 msgid ""
32412 " char *\n"
32413 " guestfs_vguuid (guestfs_h *g,\n"
32414 "                 const char *vgname);\n"
32415 "\n"
32416 msgstr ""
32417
32418 #. type: =head2
32419 #: ../src/guestfs-actions.pod:7759
32420 msgid "guestfs_wait_ready"
32421 msgstr ""
32422
32423 #. type: verbatim
32424 #: ../src/guestfs-actions.pod:7761
32425 #, no-wrap
32426 msgid ""
32427 " int\n"
32428 " guestfs_wait_ready (guestfs_h *g);\n"
32429 "\n"
32430 msgstr ""
32431
32432 #. type: textblock
32433 #: ../src/guestfs-actions.pod:7764
32434 msgid ""
32435 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32436 "instead."
32437 msgstr ""
32438
32439 #. type: textblock
32440 #: ../src/guestfs-actions.pod:7771
32441 msgid "This function is a no op."
32442 msgstr ""
32443
32444 #. type: textblock
32445 #: ../src/guestfs-actions.pod:7773
32446 msgid ""
32447 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32448 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32449 "is no longer necessary because C<guestfs_launch> now does the waiting."
32450 msgstr ""
32451
32452 #. type: textblock
32453 #: ../src/guestfs-actions.pod:7778
32454 msgid ""
32455 "If you see any calls to this function in code then you can just remove them, "
32456 "unless you want to retain compatibility with older versions of the API."
32457 msgstr ""
32458
32459 #. type: =head2
32460 #: ../src/guestfs-actions.pod:7786
32461 msgid "guestfs_wc_c"
32462 msgstr ""
32463
32464 #. type: verbatim
32465 #: ../src/guestfs-actions.pod:7788
32466 #, no-wrap
32467 msgid ""
32468 " int\n"
32469 " guestfs_wc_c (guestfs_h *g,\n"
32470 "               const char *path);\n"
32471 "\n"
32472 msgstr ""
32473
32474 #. type: =head2
32475 #: ../src/guestfs-actions.pod:7799
32476 msgid "guestfs_wc_l"
32477 msgstr ""
32478
32479 #. type: verbatim
32480 #: ../src/guestfs-actions.pod:7801
32481 #, no-wrap
32482 msgid ""
32483 " int\n"
32484 " guestfs_wc_l (guestfs_h *g,\n"
32485 "               const char *path);\n"
32486 "\n"
32487 msgstr ""
32488
32489 #. type: =head2
32490 #: ../src/guestfs-actions.pod:7812
32491 msgid "guestfs_wc_w"
32492 msgstr ""
32493
32494 #. type: verbatim
32495 #: ../src/guestfs-actions.pod:7814
32496 #, no-wrap
32497 msgid ""
32498 " int\n"
32499 " guestfs_wc_w (guestfs_h *g,\n"
32500 "               const char *path);\n"
32501 "\n"
32502 msgstr ""
32503
32504 #. type: =head2
32505 #: ../src/guestfs-actions.pod:7825
32506 msgid "guestfs_write"
32507 msgstr ""
32508
32509 #. type: verbatim
32510 #: ../src/guestfs-actions.pod:7827
32511 #, no-wrap
32512 msgid ""
32513 " int\n"
32514 " guestfs_write (guestfs_h *g,\n"
32515 "                const char *path,\n"
32516 "                const char *content,\n"
32517 "                size_t content_size);\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: textblock
32522 #: ../src/guestfs-actions.pod:7836
32523 msgid "See also C<guestfs_write_append>."
32524 msgstr ""
32525
32526 #. type: =head2
32527 #: ../src/guestfs-actions.pod:7845
32528 msgid "guestfs_write_append"
32529 msgstr ""
32530
32531 #. type: verbatim
32532 #: ../src/guestfs-actions.pod:7847
32533 #, no-wrap
32534 msgid ""
32535 " int\n"
32536 " guestfs_write_append (guestfs_h *g,\n"
32537 "                       const char *path,\n"
32538 "                       const char *content,\n"
32539 "                       size_t content_size);\n"
32540 "\n"
32541 msgstr ""
32542
32543 #. type: textblock
32544 #: ../src/guestfs-actions.pod:7856
32545 msgid "See also C<guestfs_write>."
32546 msgstr ""
32547
32548 #. type: =head2
32549 #: ../src/guestfs-actions.pod:7865
32550 msgid "guestfs_write_file"
32551 msgstr ""
32552
32553 #. type: verbatim
32554 #: ../src/guestfs-actions.pod:7867
32555 #, no-wrap
32556 msgid ""
32557 " int\n"
32558 " guestfs_write_file (guestfs_h *g,\n"
32559 "                     const char *path,\n"
32560 "                     const char *content,\n"
32561 "                     int size);\n"
32562 "\n"
32563 msgstr ""
32564
32565 #. type: textblock
32566 #: ../src/guestfs-actions.pod:7873
32567 msgid ""
32568 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32569 "instead."
32570 msgstr ""
32571
32572 #. type: =head2
32573 #: ../src/guestfs-actions.pod:7898
32574 msgid "guestfs_zegrep"
32575 msgstr ""
32576
32577 #. type: verbatim
32578 #: ../src/guestfs-actions.pod:7900
32579 #, no-wrap
32580 msgid ""
32581 " char **\n"
32582 " guestfs_zegrep (guestfs_h *g,\n"
32583 "                 const char *regex,\n"
32584 "                 const char *path);\n"
32585 "\n"
32586 msgstr ""
32587
32588 #. type: =head2
32589 #: ../src/guestfs-actions.pod:7917
32590 msgid "guestfs_zegrepi"
32591 msgstr ""
32592
32593 #. type: verbatim
32594 #: ../src/guestfs-actions.pod:7919
32595 #, no-wrap
32596 msgid ""
32597 " char **\n"
32598 " guestfs_zegrepi (guestfs_h *g,\n"
32599 "                  const char *regex,\n"
32600 "                  const char *path);\n"
32601 "\n"
32602 msgstr ""
32603
32604 #. type: =head2
32605 #: ../src/guestfs-actions.pod:7936
32606 msgid "guestfs_zero"
32607 msgstr ""
32608
32609 #. type: verbatim
32610 #: ../src/guestfs-actions.pod:7938
32611 #, no-wrap
32612 msgid ""
32613 " int\n"
32614 " guestfs_zero (guestfs_h *g,\n"
32615 "               const char *device);\n"
32616 "\n"
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs-actions.pod:7952
32621 msgid ""
32622 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32623 "C<guestfs_is_zero_device>"
32624 msgstr ""
32625
32626 #. type: =head2
32627 #: ../src/guestfs-actions.pod:7964
32628 msgid "guestfs_zero_device"
32629 msgstr ""
32630
32631 #. type: verbatim
32632 #: ../src/guestfs-actions.pod:7966
32633 #, no-wrap
32634 msgid ""
32635 " int\n"
32636 " guestfs_zero_device (guestfs_h *g,\n"
32637 "                      const char *device);\n"
32638 "\n"
32639 msgstr ""
32640
32641 #. type: textblock
32642 #: ../src/guestfs-actions.pod:7970
32643 msgid ""
32644 "This command writes zeroes over the entire C<device>.  Compare with "
32645 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32646 msgstr ""
32647
32648 #. type: textblock
32649 #: ../src/guestfs-actions.pod:7988
32650 msgid "(Added in 1.3.1)"
32651 msgstr ""
32652
32653 #. type: =head2
32654 #: ../src/guestfs-actions.pod:7990
32655 msgid "guestfs_zerofree"
32656 msgstr ""
32657
32658 #. type: verbatim
32659 #: ../src/guestfs-actions.pod:7992
32660 #, no-wrap
32661 msgid ""
32662 " int\n"
32663 " guestfs_zerofree (guestfs_h *g,\n"
32664 "                   const char *device);\n"
32665 "\n"
32666 msgstr ""
32667
32668 #. type: =head2
32669 #: ../src/guestfs-actions.pod:8011
32670 msgid "guestfs_zfgrep"
32671 msgstr ""
32672
32673 #. type: verbatim
32674 #: ../src/guestfs-actions.pod:8013
32675 #, no-wrap
32676 msgid ""
32677 " char **\n"
32678 " guestfs_zfgrep (guestfs_h *g,\n"
32679 "                 const char *pattern,\n"
32680 "                 const char *path);\n"
32681 "\n"
32682 msgstr ""
32683
32684 #. type: =head2
32685 #: ../src/guestfs-actions.pod:8030
32686 msgid "guestfs_zfgrepi"
32687 msgstr ""
32688
32689 #. type: verbatim
32690 #: ../src/guestfs-actions.pod:8032
32691 #, no-wrap
32692 msgid ""
32693 " char **\n"
32694 " guestfs_zfgrepi (guestfs_h *g,\n"
32695 "                  const char *pattern,\n"
32696 "                  const char *path);\n"
32697 "\n"
32698 msgstr ""
32699
32700 #. type: =head2
32701 #: ../src/guestfs-actions.pod:8049
32702 msgid "guestfs_zfile"
32703 msgstr ""
32704
32705 #. type: verbatim
32706 #: ../src/guestfs-actions.pod:8051
32707 #, no-wrap
32708 msgid ""
32709 " char *\n"
32710 " guestfs_zfile (guestfs_h *g,\n"
32711 "                const char *meth,\n"
32712 "                const char *path);\n"
32713 "\n"
32714 msgstr ""
32715
32716 #. type: textblock
32717 #: ../src/guestfs-actions.pod:8056
32718 msgid ""
32719 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32720 "instead."
32721 msgstr ""
32722
32723 #. type: textblock
32724 #: ../src/guestfs-actions.pod:8068
32725 msgid ""
32726 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32727 "files."
32728 msgstr ""
32729
32730 #. type: =head2
32731 #: ../src/guestfs-actions.pod:8076
32732 msgid "guestfs_zgrep"
32733 msgstr ""
32734
32735 #. type: verbatim
32736 #: ../src/guestfs-actions.pod:8078
32737 #, no-wrap
32738 msgid ""
32739 " char **\n"
32740 " guestfs_zgrep (guestfs_h *g,\n"
32741 "                const char *regex,\n"
32742 "                const char *path);\n"
32743 "\n"
32744 msgstr ""
32745
32746 #. type: =head2
32747 #: ../src/guestfs-actions.pod:8095
32748 msgid "guestfs_zgrepi"
32749 msgstr ""
32750
32751 #. type: verbatim
32752 #: ../src/guestfs-actions.pod:8097
32753 #, no-wrap
32754 msgid ""
32755 " char **\n"
32756 " guestfs_zgrepi (guestfs_h *g,\n"
32757 "                 const char *regex,\n"
32758 "                 const char *path);\n"
32759 "\n"
32760 msgstr ""
32761
32762 #. type: =item
32763 #: ../src/guestfs-availability.pod:3
32764 msgid "B<augeas>"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs-availability.pod:5
32769 msgid ""
32770 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32771 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32772 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32773 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32774 "L</guestfs_aug_save> L</guestfs_aug_set>"
32775 msgstr ""
32776
32777 #. type: =item
32778 #: ../src/guestfs-availability.pod:21
32779 msgid "B<btrfs>"
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs-availability.pod:23
32784 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32785 msgstr ""
32786
32787 #. type: =item
32788 #: ../src/guestfs-availability.pod:26
32789 msgid "B<grub>"
32790 msgstr ""
32791
32792 #. type: textblock
32793 #: ../src/guestfs-availability.pod:28
32794 msgid "The following functions: L</guestfs_grub_install>"
32795 msgstr ""
32796
32797 #. type: =item
32798 #: ../src/guestfs-availability.pod:31
32799 msgid "B<inotify>"
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs-availability.pod:33
32804 msgid ""
32805 "The following functions: L</guestfs_inotify_add_watch> L</"
32806 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32807 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32808 msgstr ""
32809
32810 #. type: =item
32811 #: ../src/guestfs-availability.pod:41
32812 msgid "B<linuxfsuuid>"
32813 msgstr ""
32814
32815 #. type: textblock
32816 #: ../src/guestfs-availability.pod:43
32817 msgid ""
32818 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32819 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32820 msgstr ""
32821
32822 #. type: =item
32823 #: ../src/guestfs-availability.pod:50
32824 msgid "B<linuxmodules>"
32825 msgstr ""
32826
32827 #. type: textblock
32828 #: ../src/guestfs-availability.pod:52
32829 msgid "The following functions: L</guestfs_modprobe>"
32830 msgstr ""
32831
32832 #. type: =item
32833 #: ../src/guestfs-availability.pod:55
32834 msgid "B<linuxxattrs>"
32835 msgstr ""
32836
32837 #. type: textblock
32838 #: ../src/guestfs-availability.pod:57
32839 msgid ""
32840 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32841 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32842 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32843 "guestfs_setxattr>"
32844 msgstr ""
32845
32846 #. type: =item
32847 #: ../src/guestfs-availability.pod:68
32848 msgid "B<luks>"
32849 msgstr ""
32850
32851 #. type: textblock
32852 #: ../src/guestfs-availability.pod:70
32853 msgid ""
32854 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32855 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32856 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32857 msgstr ""
32858
32859 #. type: =item
32860 #: ../src/guestfs-availability.pod:79
32861 msgid "B<lvm2>"
32862 msgstr ""
32863
32864 #. type: textblock
32865 #: ../src/guestfs-availability.pod:81
32866 msgid ""
32867 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32868 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32869 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32870 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32871 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32872 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32873 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32874 msgstr ""
32875
32876 #. type: =item
32877 #: ../src/guestfs-availability.pod:104
32878 msgid "B<mknod>"
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs-availability.pod:106
32883 msgid ""
32884 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32885 "guestfs_mknod_b> L</guestfs_mknod_c>"
32886 msgstr ""
32887
32888 #. type: =item
32889 #: ../src/guestfs-availability.pod:112
32890 msgid "B<ntfs3g>"
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs-availability.pod:114
32895 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32896 msgstr ""
32897
32898 #. type: =item
32899 #: ../src/guestfs-availability.pod:117
32900 msgid "B<ntfsprogs>"
32901 msgstr ""
32902
32903 #. type: textblock
32904 #: ../src/guestfs-availability.pod:119
32905 msgid ""
32906 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32907 "L</guestfs_ntfsresize_size>"
32908 msgstr ""
32909
32910 #. type: =item
32911 #: ../src/guestfs-availability.pod:124
32912 msgid "B<realpath>"
32913 msgstr ""
32914
32915 #. type: textblock
32916 #: ../src/guestfs-availability.pod:126
32917 msgid "The following functions: L</guestfs_realpath>"
32918 msgstr ""
32919
32920 #. type: =item
32921 #: ../src/guestfs-availability.pod:129
32922 msgid "B<scrub>"
32923 msgstr ""
32924
32925 #. type: textblock
32926 #: ../src/guestfs-availability.pod:131
32927 msgid ""
32928 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32929 "guestfs_scrub_freespace>"
32930 msgstr ""
32931
32932 #. type: =item
32933 #: ../src/guestfs-availability.pod:136
32934 msgid "B<selinux>"
32935 msgstr ""
32936
32937 #. type: textblock
32938 #: ../src/guestfs-availability.pod:138
32939 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32940 msgstr ""
32941
32942 #. type: =item
32943 #: ../src/guestfs-availability.pod:142
32944 msgid "B<xz>"
32945 msgstr ""
32946
32947 #. type: textblock
32948 #: ../src/guestfs-availability.pod:144
32949 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32950 msgstr ""
32951
32952 #. type: =item
32953 #: ../src/guestfs-availability.pod:148
32954 msgid "B<zerofree>"
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs-availability.pod:150
32959 msgid "The following functions: L</guestfs_zerofree>"
32960 msgstr ""
32961
32962 #. type: =head2
32963 #: ../src/guestfs-structs.pod:1
32964 msgid "guestfs_int_bool"
32965 msgstr ""
32966
32967 #. type: verbatim
32968 #: ../src/guestfs-structs.pod:3
32969 #, no-wrap
32970 msgid ""
32971 " struct guestfs_int_bool {\n"
32972 "   int32_t i;\n"
32973 "   int32_t b;\n"
32974 " };\n"
32975 " \n"
32976 msgstr ""
32977
32978 #. type: verbatim
32979 #: ../src/guestfs-structs.pod:8
32980 #, no-wrap
32981 msgid ""
32982 " struct guestfs_int_bool_list {\n"
32983 "   uint32_t len; /* Number of elements in list. */\n"
32984 "   struct guestfs_int_bool *val; /* Elements. */\n"
32985 " };\n"
32986 " \n"
32987 msgstr ""
32988
32989 #. type: verbatim
32990 #: ../src/guestfs-structs.pod:13
32991 #, no-wrap
32992 msgid ""
32993 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32994 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32995 "\n"
32996 msgstr ""
32997
32998 #. type: =head2
32999 #: ../src/guestfs-structs.pod:16
33000 msgid "guestfs_lvm_pv"
33001 msgstr ""
33002
33003 #. type: verbatim
33004 #: ../src/guestfs-structs.pod:18
33005 #, no-wrap
33006 msgid ""
33007 " struct guestfs_lvm_pv {\n"
33008 "   char *pv_name;\n"
33009 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33010 "   char pv_uuid[32];\n"
33011 "   char *pv_fmt;\n"
33012 "   uint64_t pv_size;\n"
33013 "   uint64_t dev_size;\n"
33014 "   uint64_t pv_free;\n"
33015 "   uint64_t pv_used;\n"
33016 "   char *pv_attr;\n"
33017 "   int64_t pv_pe_count;\n"
33018 "   int64_t pv_pe_alloc_count;\n"
33019 "   char *pv_tags;\n"
33020 "   uint64_t pe_start;\n"
33021 "   int64_t pv_mda_count;\n"
33022 "   uint64_t pv_mda_free;\n"
33023 " };\n"
33024 " \n"
33025 msgstr ""
33026
33027 #. type: verbatim
33028 #: ../src/guestfs-structs.pod:36
33029 #, no-wrap
33030 msgid ""
33031 " struct guestfs_lvm_pv_list {\n"
33032 "   uint32_t len; /* Number of elements in list. */\n"
33033 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33034 " };\n"
33035 " \n"
33036 msgstr ""
33037
33038 #. type: verbatim
33039 #: ../src/guestfs-structs.pod:41
33040 #, no-wrap
33041 msgid ""
33042 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33043 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33044 "\n"
33045 msgstr ""
33046
33047 #. type: =head2
33048 #: ../src/guestfs-structs.pod:44
33049 msgid "guestfs_lvm_vg"
33050 msgstr ""
33051
33052 #. type: verbatim
33053 #: ../src/guestfs-structs.pod:46
33054 #, no-wrap
33055 msgid ""
33056 " struct guestfs_lvm_vg {\n"
33057 "   char *vg_name;\n"
33058 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33059 "   char vg_uuid[32];\n"
33060 "   char *vg_fmt;\n"
33061 "   char *vg_attr;\n"
33062 "   uint64_t vg_size;\n"
33063 "   uint64_t vg_free;\n"
33064 "   char *vg_sysid;\n"
33065 "   uint64_t vg_extent_size;\n"
33066 "   int64_t vg_extent_count;\n"
33067 "   int64_t vg_free_count;\n"
33068 "   int64_t max_lv;\n"
33069 "   int64_t max_pv;\n"
33070 "   int64_t pv_count;\n"
33071 "   int64_t lv_count;\n"
33072 "   int64_t snap_count;\n"
33073 "   int64_t vg_seqno;\n"
33074 "   char *vg_tags;\n"
33075 "   int64_t vg_mda_count;\n"
33076 "   uint64_t vg_mda_free;\n"
33077 " };\n"
33078 " \n"
33079 msgstr ""
33080
33081 #. type: verbatim
33082 #: ../src/guestfs-structs.pod:69
33083 #, no-wrap
33084 msgid ""
33085 " struct guestfs_lvm_vg_list {\n"
33086 "   uint32_t len; /* Number of elements in list. */\n"
33087 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33088 " };\n"
33089 " \n"
33090 msgstr ""
33091
33092 #. type: verbatim
33093 #: ../src/guestfs-structs.pod:74
33094 #, no-wrap
33095 msgid ""
33096 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33097 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33098 "\n"
33099 msgstr ""
33100
33101 #. type: =head2
33102 #: ../src/guestfs-structs.pod:77
33103 msgid "guestfs_lvm_lv"
33104 msgstr ""
33105
33106 #. type: verbatim
33107 #: ../src/guestfs-structs.pod:79
33108 #, no-wrap
33109 msgid ""
33110 " struct guestfs_lvm_lv {\n"
33111 "   char *lv_name;\n"
33112 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33113 "   char lv_uuid[32];\n"
33114 "   char *lv_attr;\n"
33115 "   int64_t lv_major;\n"
33116 "   int64_t lv_minor;\n"
33117 "   int64_t lv_kernel_major;\n"
33118 "   int64_t lv_kernel_minor;\n"
33119 "   uint64_t lv_size;\n"
33120 "   int64_t seg_count;\n"
33121 "   char *origin;\n"
33122 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33123 "   float snap_percent;\n"
33124 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33125 "   float copy_percent;\n"
33126 "   char *move_pv;\n"
33127 "   char *lv_tags;\n"
33128 "   char *mirror_log;\n"
33129 "   char *modules;\n"
33130 " };\n"
33131 " \n"
33132 msgstr ""
33133
33134 #. type: verbatim
33135 #: ../src/guestfs-structs.pod:101
33136 #, no-wrap
33137 msgid ""
33138 " struct guestfs_lvm_lv_list {\n"
33139 "   uint32_t len; /* Number of elements in list. */\n"
33140 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33141 " };\n"
33142 " \n"
33143 msgstr ""
33144
33145 #. type: verbatim
33146 #: ../src/guestfs-structs.pod:106
33147 #, no-wrap
33148 msgid ""
33149 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33150 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33151 "\n"
33152 msgstr ""
33153
33154 #. type: verbatim
33155 #: ../src/guestfs-structs.pod:111
33156 #, no-wrap
33157 msgid ""
33158 " struct guestfs_stat {\n"
33159 "   int64_t dev;\n"
33160 "   int64_t ino;\n"
33161 "   int64_t mode;\n"
33162 "   int64_t nlink;\n"
33163 "   int64_t uid;\n"
33164 "   int64_t gid;\n"
33165 "   int64_t rdev;\n"
33166 "   int64_t size;\n"
33167 "   int64_t blksize;\n"
33168 "   int64_t blocks;\n"
33169 "   int64_t atime;\n"
33170 "   int64_t mtime;\n"
33171 "   int64_t ctime;\n"
33172 " };\n"
33173 " \n"
33174 msgstr ""
33175
33176 #. type: verbatim
33177 #: ../src/guestfs-structs.pod:127
33178 #, no-wrap
33179 msgid ""
33180 " struct guestfs_stat_list {\n"
33181 "   uint32_t len; /* Number of elements in list. */\n"
33182 "   struct guestfs_stat *val; /* Elements. */\n"
33183 " };\n"
33184 " \n"
33185 msgstr ""
33186
33187 #. type: verbatim
33188 #: ../src/guestfs-structs.pod:132
33189 #, no-wrap
33190 msgid ""
33191 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33192 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33193 "\n"
33194 msgstr ""
33195
33196 #. type: verbatim
33197 #: ../src/guestfs-structs.pod:137
33198 #, no-wrap
33199 msgid ""
33200 " struct guestfs_statvfs {\n"
33201 "   int64_t bsize;\n"
33202 "   int64_t frsize;\n"
33203 "   int64_t blocks;\n"
33204 "   int64_t bfree;\n"
33205 "   int64_t bavail;\n"
33206 "   int64_t files;\n"
33207 "   int64_t ffree;\n"
33208 "   int64_t favail;\n"
33209 "   int64_t fsid;\n"
33210 "   int64_t flag;\n"
33211 "   int64_t namemax;\n"
33212 " };\n"
33213 " \n"
33214 msgstr ""
33215
33216 #. type: verbatim
33217 #: ../src/guestfs-structs.pod:151
33218 #, no-wrap
33219 msgid ""
33220 " struct guestfs_statvfs_list {\n"
33221 "   uint32_t len; /* Number of elements in list. */\n"
33222 "   struct guestfs_statvfs *val; /* Elements. */\n"
33223 " };\n"
33224 " \n"
33225 msgstr ""
33226
33227 #. type: verbatim
33228 #: ../src/guestfs-structs.pod:156
33229 #, no-wrap
33230 msgid ""
33231 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33232 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33233 "\n"
33234 msgstr ""
33235
33236 #. type: =head2
33237 #: ../src/guestfs-structs.pod:159
33238 msgid "guestfs_dirent"
33239 msgstr ""
33240
33241 #. type: verbatim
33242 #: ../src/guestfs-structs.pod:161
33243 #, no-wrap
33244 msgid ""
33245 " struct guestfs_dirent {\n"
33246 "   int64_t ino;\n"
33247 "   char ftyp;\n"
33248 "   char *name;\n"
33249 " };\n"
33250 " \n"
33251 msgstr ""
33252
33253 #. type: verbatim
33254 #: ../src/guestfs-structs.pod:167
33255 #, no-wrap
33256 msgid ""
33257 " struct guestfs_dirent_list {\n"
33258 "   uint32_t len; /* Number of elements in list. */\n"
33259 "   struct guestfs_dirent *val; /* Elements. */\n"
33260 " };\n"
33261 " \n"
33262 msgstr ""
33263
33264 #. type: verbatim
33265 #: ../src/guestfs-structs.pod:172
33266 #, no-wrap
33267 msgid ""
33268 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33269 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33270 "\n"
33271 msgstr ""
33272
33273 #. type: verbatim
33274 #: ../src/guestfs-structs.pod:177
33275 #, no-wrap
33276 msgid ""
33277 " struct guestfs_version {\n"
33278 "   int64_t major;\n"
33279 "   int64_t minor;\n"
33280 "   int64_t release;\n"
33281 "   char *extra;\n"
33282 " };\n"
33283 " \n"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs-structs.pod:184
33288 #, no-wrap
33289 msgid ""
33290 " struct guestfs_version_list {\n"
33291 "   uint32_t len; /* Number of elements in list. */\n"
33292 "   struct guestfs_version *val; /* Elements. */\n"
33293 " };\n"
33294 " \n"
33295 msgstr ""
33296
33297 #. type: verbatim
33298 #: ../src/guestfs-structs.pod:189
33299 #, no-wrap
33300 msgid ""
33301 " void guestfs_free_version (struct guestfs_free_version *);\n"
33302 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33303 "\n"
33304 msgstr ""
33305
33306 #. type: =head2
33307 #: ../src/guestfs-structs.pod:192
33308 msgid "guestfs_xattr"
33309 msgstr ""
33310
33311 #. type: verbatim
33312 #: ../src/guestfs-structs.pod:194
33313 #, no-wrap
33314 msgid ""
33315 " struct guestfs_xattr {\n"
33316 "   char *attrname;\n"
33317 "   /* The next two fields describe a byte array. */\n"
33318 "   uint32_t attrval_len;\n"
33319 "   char *attrval;\n"
33320 " };\n"
33321 " \n"
33322 msgstr ""
33323
33324 #. type: verbatim
33325 #: ../src/guestfs-structs.pod:201
33326 #, no-wrap
33327 msgid ""
33328 " struct guestfs_xattr_list {\n"
33329 "   uint32_t len; /* Number of elements in list. */\n"
33330 "   struct guestfs_xattr *val; /* Elements. */\n"
33331 " };\n"
33332 " \n"
33333 msgstr ""
33334
33335 #. type: verbatim
33336 #: ../src/guestfs-structs.pod:206
33337 #, no-wrap
33338 msgid ""
33339 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33340 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33341 "\n"
33342 msgstr ""
33343
33344 #. type: =head2
33345 #: ../src/guestfs-structs.pod:209
33346 msgid "guestfs_inotify_event"
33347 msgstr ""
33348
33349 #. type: verbatim
33350 #: ../src/guestfs-structs.pod:211
33351 #, no-wrap
33352 msgid ""
33353 " struct guestfs_inotify_event {\n"
33354 "   int64_t in_wd;\n"
33355 "   uint32_t in_mask;\n"
33356 "   uint32_t in_cookie;\n"
33357 "   char *in_name;\n"
33358 " };\n"
33359 " \n"
33360 msgstr ""
33361
33362 #. type: verbatim
33363 #: ../src/guestfs-structs.pod:218
33364 #, no-wrap
33365 msgid ""
33366 " struct guestfs_inotify_event_list {\n"
33367 "   uint32_t len; /* Number of elements in list. */\n"
33368 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33369 " };\n"
33370 " \n"
33371 msgstr ""
33372
33373 #. type: verbatim
33374 #: ../src/guestfs-structs.pod:223
33375 #, no-wrap
33376 msgid ""
33377 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33378 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33379 "\n"
33380 msgstr ""
33381
33382 #. type: =head2
33383 #: ../src/guestfs-structs.pod:226
33384 msgid "guestfs_partition"
33385 msgstr ""
33386
33387 #. type: verbatim
33388 #: ../src/guestfs-structs.pod:228
33389 #, no-wrap
33390 msgid ""
33391 " struct guestfs_partition {\n"
33392 "   int32_t part_num;\n"
33393 "   uint64_t part_start;\n"
33394 "   uint64_t part_end;\n"
33395 "   uint64_t part_size;\n"
33396 " };\n"
33397 " \n"
33398 msgstr ""
33399
33400 #. type: verbatim
33401 #: ../src/guestfs-structs.pod:235
33402 #, no-wrap
33403 msgid ""
33404 " struct guestfs_partition_list {\n"
33405 "   uint32_t len; /* Number of elements in list. */\n"
33406 "   struct guestfs_partition *val; /* Elements. */\n"
33407 " };\n"
33408 " \n"
33409 msgstr ""
33410
33411 #. type: verbatim
33412 #: ../src/guestfs-structs.pod:240
33413 #, no-wrap
33414 msgid ""
33415 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33416 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33417 "\n"
33418 msgstr ""
33419
33420 #. type: =head2
33421 #: ../src/guestfs-structs.pod:243
33422 msgid "guestfs_application"
33423 msgstr ""
33424
33425 #. type: verbatim
33426 #: ../src/guestfs-structs.pod:245
33427 #, no-wrap
33428 msgid ""
33429 " struct guestfs_application {\n"
33430 "   char *app_name;\n"
33431 "   char *app_display_name;\n"
33432 "   int32_t app_epoch;\n"
33433 "   char *app_version;\n"
33434 "   char *app_release;\n"
33435 "   char *app_install_path;\n"
33436 "   char *app_trans_path;\n"
33437 "   char *app_publisher;\n"
33438 "   char *app_url;\n"
33439 "   char *app_source_package;\n"
33440 "   char *app_summary;\n"
33441 "   char *app_description;\n"
33442 " };\n"
33443 " \n"
33444 msgstr ""
33445
33446 #. type: verbatim
33447 #: ../src/guestfs-structs.pod:260
33448 #, no-wrap
33449 msgid ""
33450 " struct guestfs_application_list {\n"
33451 "   uint32_t len; /* Number of elements in list. */\n"
33452 "   struct guestfs_application *val; /* Elements. */\n"
33453 " };\n"
33454 " \n"
33455 msgstr ""
33456
33457 #. type: verbatim
33458 #: ../src/guestfs-structs.pod:265
33459 #, no-wrap
33460 msgid ""
33461 " void guestfs_free_application (struct guestfs_free_application *);\n"
33462 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33463 "\n"
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:5
33468 msgid "guestfs - Library for accessing and modifying virtual machine images"
33469 msgstr ""
33470
33471 #. type: verbatim
33472 #: ../src/guestfs.pod:11
33473 #, no-wrap
33474 msgid ""
33475 " guestfs_h *g = guestfs_create ();\n"
33476 " guestfs_add_drive (g, \"guest.img\");\n"
33477 " guestfs_launch (g);\n"
33478 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33479 " guestfs_touch (g, \"/hello\");\n"
33480 " guestfs_umount (g, \"/\");\n"
33481 " guestfs_close (g);\n"
33482 "\n"
33483 msgstr ""
33484 " guestfs_h *g = guestfs_create ();\n"
33485 " guestfs_add_drive (g, \"guest.img\");\n"
33486 " guestfs_launch (g);\n"
33487 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33488 " guestfs_touch (g, \"/hello\");\n"
33489 " guestfs_umount (g, \"/\");\n"
33490 " guestfs_close (g);\n"
33491 "\n"
33492
33493 #. type: textblock
33494 #: ../src/guestfs.pod:25
33495 msgid ""
33496 "Libguestfs is a library for accessing and modifying guest disk images.  "
33497 "Amongst the things this is good for: making batch configuration changes to "
33498 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33499 "between virtualization systems (see also: virt-p2v), performing partial "
33500 "backups, performing partial guest clones, cloning guests and changing "
33501 "registry/UUID/hostname info, and much else besides."
33502 msgstr ""
33503
33504 #. type: textblock
33505 #: ../src/guestfs.pod:33
33506 msgid ""
33507 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33508 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33509 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33510 "qcow2, vmdk."
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs.pod:38
33515 msgid ""
33516 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33517 "what filesystem is in each LV, etc.).  It can also run commands in the "
33518 "context of the guest.  Also you can access filesystems over FUSE."
33519 msgstr ""
33520
33521 #. type: textblock
33522 #: ../src/guestfs.pod:43
33523 msgid ""
33524 "Libguestfs is a library that can be linked with C and C++ management "
33525 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33526 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33527 "command line."
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:48
33532 msgid ""
33533 "You don't need to be root to use libguestfs, although obviously you do need "
33534 "enough permissions to access the disk images."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:51
33539 msgid ""
33540 "Libguestfs is a large API because it can do many things.  For a gentle "
33541 "introduction, please read the L</API OVERVIEW> section next."
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs.pod:54
33546 msgid ""
33547 "There are also some example programs in the L<guestfs-examples(3)> manual "
33548 "page."
33549 msgstr ""
33550
33551 #. type: =head1
33552 #: ../src/guestfs.pod:57
33553 msgid "API OVERVIEW"
33554 msgstr ""
33555
33556 #. type: textblock
33557 #: ../src/guestfs.pod:59
33558 msgid ""
33559 "This section provides a gentler overview of the libguestfs API.  We also try "
33560 "to group API calls together, where that may not be obvious from reading "
33561 "about the individual calls in the main section of this manual."
33562 msgstr ""
33563
33564 #. type: =head2
33565 #: ../src/guestfs.pod:64
33566 msgid "HANDLES"
33567 msgstr ""
33568
33569 #. type: textblock
33570 #: ../src/guestfs.pod:66
33571 msgid ""
33572 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33573 "must add at least one disk image to the handle, followed by launching the "
33574 "handle, then performing whatever operations you want, and finally closing "
33575 "the handle.  By convention we use the single letter C<g> for the name of the "
33576 "handle variable, although of course you can use any name you want."
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs.pod:73
33581 msgid "The general structure of all libguestfs-using programs looks like this:"
33582 msgstr ""
33583
33584 #. type: verbatim
33585 #: ../src/guestfs.pod:76
33586 #, no-wrap
33587 msgid ""
33588 " guestfs_h *g = guestfs_create ();\n"
33589 " \n"
33590 msgstr ""
33591
33592 #. type: verbatim
33593 #: ../src/guestfs.pod:78
33594 #, no-wrap
33595 msgid ""
33596 " /* Call guestfs_add_drive additional times if there are\n"
33597 "  * multiple disk images.\n"
33598 "  */\n"
33599 " guestfs_add_drive (g, \"guest.img\");\n"
33600 " \n"
33601 msgstr ""
33602
33603 #. type: verbatim
33604 #: ../src/guestfs.pod:83
33605 #, no-wrap
33606 msgid ""
33607 " /* Most manipulation calls won't work until you've launched\n"
33608 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33609 "  * and _before_ other commands.\n"
33610 "  */\n"
33611 " guestfs_launch (g);\n"
33612 " \n"
33613 msgstr ""
33614
33615 #. type: verbatim
33616 #: ../src/guestfs.pod:89
33617 #, no-wrap
33618 msgid ""
33619 " /* Now you can examine what partitions, LVs etc are available.\n"
33620 "  */\n"
33621 " char **partitions = guestfs_list_partitions (g);\n"
33622 " char **logvols = guestfs_lvs (g);\n"
33623 " \n"
33624 msgstr ""
33625
33626 #. type: verbatim
33627 #: ../src/guestfs.pod:94
33628 #, no-wrap
33629 msgid ""
33630 " /* To access a filesystem in the image, you must mount it.\n"
33631 "  */\n"
33632 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33633 " \n"
33634 msgstr ""
33635
33636 #. type: verbatim
33637 #: ../src/guestfs.pod:98
33638 #, no-wrap
33639 msgid ""
33640 " /* Now you can perform filesystem actions on the guest\n"
33641 "  * disk image.\n"
33642 "  */\n"
33643 " guestfs_touch (g, \"/hello\");\n"
33644 " \n"
33645 msgstr ""
33646
33647 #. type: verbatim
33648 #: ../src/guestfs.pod:103
33649 #, no-wrap
33650 msgid ""
33651 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33652 "  * it is done automatically when you close the handle.  See\n"
33653 "  * discussion of autosync in this page.\n"
33654 "  */\n"
33655 " guestfs_sync (g);\n"
33656 " \n"
33657 msgstr ""
33658
33659 #. type: verbatim
33660 #: ../src/guestfs.pod:109
33661 #, no-wrap
33662 msgid ""
33663 " /* Close the handle 'g'. */\n"
33664 " guestfs_close (g);\n"
33665 "\n"
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:112
33670 msgid ""
33671 "The code above doesn't include any error checking.  In real code you should "
33672 "check return values carefully for errors.  In general all functions that "
33673 "return integers return C<-1> on error, and all functions that return "
33674 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33675 "how to handle errors, and consult the documentation for each function call "
33676 "below to see precisely how they return error indications.  See L<guestfs-"
33677 "examples(3)> for fully worked examples."
33678 msgstr ""
33679
33680 #. type: =head2
33681 #: ../src/guestfs.pod:121
33682 msgid "DISK IMAGES"
33683 msgstr ""
33684
33685 #. type: textblock
33686 #: ../src/guestfs.pod:123
33687 msgid ""
33688 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33689 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33690 "actual block device, or simply an empty file of zeroes that you have created "
33691 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33692 "of these."
33693 msgstr ""
33694
33695 #. type: textblock
33696 #: ../src/guestfs.pod:129
33697 msgid ""
33698 "The call you should use in modern code for adding drives is L</"
33699 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33700 "specifying that the format is raw, do:"
33701 msgstr ""
33702
33703 #. type: verbatim
33704 #: ../src/guestfs.pod:133
33705 #, no-wrap
33706 msgid ""
33707 " guestfs_add_drive_opts (g, filename,\n"
33708 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33709 "                         -1);\n"
33710 "\n"
33711 msgstr ""
33712
33713 #. type: textblock
33714 #: ../src/guestfs.pod:137
33715 msgid "You can add a disk read-only using:"
33716 msgstr ""
33717
33718 #. type: verbatim
33719 #: ../src/guestfs.pod:139
33720 #, no-wrap
33721 msgid ""
33722 " guestfs_add_drive_opts (g, filename,\n"
33723 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33724 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33725 "                         -1);\n"
33726 "\n"
33727 msgstr ""
33728
33729 #. type: textblock
33730 #: ../src/guestfs.pod:144
33731 msgid ""
33732 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33733 "libguestfs won't modify the file."
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:147
33738 msgid ""
33739 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33740 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33741 "corruption, but adding it read-only is safe."
33742 msgstr ""
33743
33744 #. type: textblock
33745 #: ../src/guestfs.pod:151
33746 msgid ""
33747 "You must add at least one disk image, and you may add multiple disk images.  "
33748 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33749 "first one you added), C</dev/sdb> (for the second one you added), etc."
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs.pod:156
33754 msgid ""
33755 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33756 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33757 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33758 msgstr ""
33759
33760 #. type: =head2
33761 #: ../src/guestfs.pod:161
33762 msgid "MOUNTING"
33763 msgstr ""
33764
33765 #. type: textblock
33766 #: ../src/guestfs.pod:163
33767 msgid ""
33768 "Before you can read or write files, create directories and so on in a disk "
33769 "image that contains filesystems, you have to mount those filesystems using "
33770 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33771 "a disk image contains (for example) one partition with a filesystem on that "
33772 "partition, then you can mount it directly:"
33773 msgstr ""
33774
33775 #. type: verbatim
33776 #: ../src/guestfs.pod:170
33777 #, no-wrap
33778 msgid ""
33779 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33780 "\n"
33781 msgstr ""
33782
33783 #. type: textblock
33784 #: ../src/guestfs.pod:172
33785 msgid ""
33786 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33787 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33788 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33789 "that these are libguestfs virtual devices, and are nothing to do with host "
33790 "devices."
33791 msgstr ""
33792
33793 #. type: textblock
33794 #: ../src/guestfs.pod:178
33795 msgid ""
33796 "If you are given a disk image and you don't know what it contains then you "
33797 "have to find out.  Libguestfs can do that too: use L</"
33798 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33799 "LVs, and either try mounting each to see what is mountable, or else examine "
33800 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33801 "filesystems, use L</guestfs_list_filesystems>."
33802 msgstr ""
33803
33804 #. type: textblock
33805 #: ../src/guestfs.pod:186
33806 msgid ""
33807 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33808 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33809 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33810 msgstr ""
33811
33812 #. type: textblock
33813 #: ../src/guestfs.pod:191
33814 msgid ""
33815 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33816 "several other variations of the C<guestfs_mount_*> call."
33817 msgstr ""
33818
33819 #. type: =head2
33820 #: ../src/guestfs.pod:194
33821 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33822 msgstr ""
33823
33824 #. type: textblock
33825 #: ../src/guestfs.pod:196
33826 msgid ""
33827 "The majority of the libguestfs API consists of fairly low-level calls for "
33828 "accessing and modifying the files, directories, symlinks etc on mounted "
33829 "filesystems.  There are over a hundred such calls which you can find listed "
33830 "in detail below in this man page, and we don't even pretend to cover them "
33831 "all in this overview."
33832 msgstr ""
33833
33834 #. type: textblock
33835 #: ../src/guestfs.pod:202
33836 msgid ""
33837 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33838 "mount point."
33839 msgstr ""
33840
33841 #. type: textblock
33842 #: ../src/guestfs.pod:205
33843 msgid ""
33844 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33845 "the file called C<\"etc/passwd\"> then you could do:"
33846 msgstr ""
33847
33848 #. type: verbatim
33849 #: ../src/guestfs.pod:208
33850 #, no-wrap
33851 msgid ""
33852 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33853 "\n"
33854 msgstr ""
33855
33856 #. type: textblock
33857 #: ../src/guestfs.pod:210
33858 msgid ""
33859 "This would return C<data> as a newly allocated buffer containing the full "
33860 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33861 "or C<NULL> if there was an error."
33862 msgstr ""
33863
33864 #. type: textblock
33865 #: ../src/guestfs.pod:214
33866 msgid ""
33867 "As another example, to create a top-level directory on that filesystem "
33868 "called C<\"var\"> you would do:"
33869 msgstr ""
33870
33871 #. type: verbatim
33872 #: ../src/guestfs.pod:217
33873 #, no-wrap
33874 msgid ""
33875 " guestfs_mkdir (g, \"/var\");\n"
33876 "\n"
33877 msgstr ""
33878
33879 #. type: textblock
33880 #: ../src/guestfs.pod:219
33881 msgid "To create a symlink you could do:"
33882 msgstr ""
33883
33884 #. type: verbatim
33885 #: ../src/guestfs.pod:221
33886 #, no-wrap
33887 msgid ""
33888 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33889 "               \"/etc/rc3.d/S30portmap\");\n"
33890 "\n"
33891 msgstr ""
33892
33893 #. type: textblock
33894 #: ../src/guestfs.pod:224
33895 msgid ""
33896 "Libguestfs will reject attempts to use relative paths and there is no "
33897 "concept of a current working directory."
33898 msgstr ""
33899
33900 #. type: textblock
33901 #: ../src/guestfs.pod:227
33902 msgid ""
33903 "Libguestfs can return errors in many situations: for example if the "
33904 "filesystem isn't writable, or if a file or directory that you requested "
33905 "doesn't exist.  If you are using the C API (documented here)  you have to "
33906 "check for those error conditions after each call.  (Other language bindings "
33907 "turn these errors into exceptions)."
33908 msgstr ""
33909
33910 #. type: textblock
33911 #: ../src/guestfs.pod:233
33912 msgid ""
33913 "File writes are affected by the per-handle umask, set by calling L</"
33914 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33915 msgstr ""
33916
33917 #. type: =head2
33918 #: ../src/guestfs.pod:236
33919 msgid "PARTITIONING"
33920 msgstr ""
33921
33922 #. type: textblock
33923 #: ../src/guestfs.pod:238
33924 msgid ""
33925 "Libguestfs contains API calls to read, create and modify partition tables on "
33926 "disk images."
33927 msgstr ""
33928
33929 #. type: textblock
33930 #: ../src/guestfs.pod:241
33931 msgid ""
33932 "In the common case where you want to create a single partition covering the "
33933 "whole disk, you should use the L</guestfs_part_disk> call:"
33934 msgstr ""
33935
33936 #. type: verbatim
33937 #: ../src/guestfs.pod:245
33938 #, no-wrap
33939 msgid ""
33940 " const char *parttype = \"mbr\";\n"
33941 " if (disk_is_larger_than_2TB)\n"
33942 "   parttype = \"gpt\";\n"
33943 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33944 "\n"
33945 msgstr ""
33946
33947 #. type: textblock
33948 #: ../src/guestfs.pod:250
33949 msgid ""
33950 "Obviously this effectively wipes anything that was on that disk image before."
33951 msgstr ""
33952
33953 #. type: =head2
33954 #: ../src/guestfs.pod:253
33955 msgid "LVM2"
33956 msgstr ""
33957
33958 #. type: textblock
33959 #: ../src/guestfs.pod:255
33960 msgid ""
33961 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33962 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33963 "you familiarize yourself with the concepts of physical volumes, volume "
33964 "groups and logical volumes."
33965 msgstr ""
33966
33967 #. type: textblock
33968 #: ../src/guestfs.pod:260
33969 msgid ""
33970 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33971 "tldp.org/HOWTO/LVM-HOWTO/>."
33972 msgstr ""
33973
33974 #. type: =head2
33975 #: ../src/guestfs.pod:263
33976 msgid "DOWNLOADING"
33977 msgstr ""
33978
33979 #. type: textblock
33980 #: ../src/guestfs.pod:265
33981 msgid ""
33982 "Use L</guestfs_cat> to download small, text only files.  This call is "
33983 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33984 "NUL (C<\\0>) characters.  However the API is very simple to use."
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs.pod:269
33989 msgid ""
33990 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33991 "bit data, since it returns a (pointer, size) pair.  However it is still "
33992 "limited to \"small\" files, less than 2 MB."
33993 msgstr ""
33994
33995 #. type: textblock
33996 #: ../src/guestfs.pod:273
33997 msgid ""
33998 "L</guestfs_download> can be used to download any file, with no limits on "
33999 "content or size (even files larger than 4 GB)."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:276
34004 msgid ""
34005 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34006 msgstr ""
34007
34008 #. type: =head2
34009 #: ../src/guestfs.pod:279
34010 msgid "UPLOADING"
34011 msgstr ""
34012
34013 #. type: textblock
34014 #: ../src/guestfs.pod:281
34015 msgid ""
34016 "It's often the case that you want to write a file or files to the disk image."
34017 msgstr ""
34018
34019 #. type: textblock
34020 #: ../src/guestfs.pod:284
34021 msgid ""
34022 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34023 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34024 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34025 "of other functions for creating test files, for example L</guestfs_fill> and "
34026 "L</guestfs_fill_pattern>."
34027 msgstr ""
34028
34029 #. type: textblock
34030 #: ../src/guestfs.pod:290
34031 msgid ""
34032 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34033 "file content or size (even files larger than 4 GB)."
34034 msgstr ""
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:293
34038 msgid ""
34039 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34040 msgstr ""
34041
34042 #. type: textblock
34043 #: ../src/guestfs.pod:295
34044 msgid ""
34045 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34046 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34047 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34048 "in a predictable way (eg. adding it last after all other drives) then you "
34049 "can get the device name from L</guestfs_list_devices> and mount it directly "
34050 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34051 "portable between kernel versions, and they don't support labels or UUIDs.  "
34052 "If you want to pre-build an image or you need to mount it using a label or "
34053 "UUID, use an ISO image instead."
34054 msgstr ""
34055
34056 #. type: =head2
34057 #: ../src/guestfs.pod:306
34058 msgid "COPYING"
34059 msgstr ""
34060
34061 #. type: textblock
34062 #: ../src/guestfs.pod:308
34063 msgid ""
34064 "There are various different commands for copying between files and devices "
34065 "and in and out of the guest filesystem.  These are summarised in the table "
34066 "below."
34067 msgstr ""
34068
34069 #. type: =item
34070 #: ../src/guestfs.pod:314
34071 msgid "B<file> to B<file>"
34072 msgstr ""
34073
34074 #. type: textblock
34075 #: ../src/guestfs.pod:316
34076 msgid ""
34077 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34078 "directories recursively."
34079 msgstr ""
34080
34081 #. type: =item
34082 #: ../src/guestfs.pod:319
34083 msgid "B<file or device> to B<file or device>"
34084 msgstr ""
34085
34086 #. type: textblock
34087 #: ../src/guestfs.pod:321
34088 msgid ""
34089 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34090 "devices in the guest."
34091 msgstr ""
34092
34093 #. type: textblock
34094 #: ../src/guestfs.pod:324
34095 msgid "Example: duplicate the contents of an LV:"
34096 msgstr ""
34097
34098 #. type: verbatim
34099 #: ../src/guestfs.pod:326
34100 #, no-wrap
34101 msgid ""
34102 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34103 "\n"
34104 msgstr ""
34105
34106 #. type: textblock
34107 #: ../src/guestfs.pod:328
34108 msgid ""
34109 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34110 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
34111 "guestfs_copy_size>."
34112 msgstr ""
34113
34114 #. type: =item
34115 #: ../src/guestfs.pod:332
34116 msgid "B<file on the host> to B<file or device>"
34117 msgstr ""
34118
34119 #. type: textblock
34120 #: ../src/guestfs.pod:334
34121 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34122 msgstr ""
34123
34124 #. type: =item
34125 #: ../src/guestfs.pod:336
34126 msgid "B<file or device> to B<file on the host>"
34127 msgstr ""
34128
34129 #. type: textblock
34130 #: ../src/guestfs.pod:338
34131 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34132 msgstr ""
34133
34134 #. type: =head2
34135 #: ../src/guestfs.pod:342
34136 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34137 msgstr ""
34138
34139 #. type: textblock
34140 #: ../src/guestfs.pod:344
34141 msgid ""
34142 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34143 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34144 "appears you can only upload and download to files.  However many Un*x-like "
34145 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34146 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34147 "and arbitrary file descriptor N."
34148 msgstr ""
34149
34150 #. type: textblock
34151 #: ../src/guestfs.pod:352
34152 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34153 msgstr ""
34154
34155 #. type: verbatim
34156 #: ../src/guestfs.pod:355
34157 #, no-wrap
34158 msgid ""
34159 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34160 "\n"
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:357
34165 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34166 msgstr ""
34167
34168 #. type: verbatim
34169 #: ../src/guestfs.pod:359
34170 #, no-wrap
34171 msgid ""
34172 " char devfd[64];\n"
34173 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34174 " guestfs_tar_out (g, \"/\", devfd);\n"
34175 "\n"
34176 msgstr ""
34177
34178 #. type: =head2
34179 #: ../src/guestfs.pod:363
34180 msgid "LISTING FILES"
34181 msgstr ""
34182
34183 #. type: textblock
34184 #: ../src/guestfs.pod:365
34185 msgid ""
34186 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34187 "L<guestfish(1)>-equivalent command C<ll>)."
34188 msgstr ""
34189
34190 #. type: textblock
34191 #: ../src/guestfs.pod:368
34192 msgid ""
34193 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34194 "programs, as a flat list of strings."
34195 msgstr ""
34196
34197 #. type: textblock
34198 #: ../src/guestfs.pod:371
34199 msgid ""
34200 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34201 "directory, plus additional information about each one.  It is more "
34202 "equivalent to using the L<readdir(3)> call on a local filesystem."
34203 msgstr ""
34204
34205 #. type: textblock
34206 #: ../src/guestfs.pod:375
34207 msgid ""
34208 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34209 msgstr ""
34210
34211 #. type: =head2
34212 #: ../src/guestfs.pod:378
34213 msgid "RUNNING COMMANDS"
34214 msgstr ""
34215
34216 #. type: textblock
34217 #: ../src/guestfs.pod:380
34218 msgid ""
34219 "Although libguestfs is primarily an API for manipulating files inside guest "
34220 "images, we also provide some limited facilities for running commands inside "
34221 "guests."
34222 msgstr ""
34223
34224 #. type: textblock
34225 #: ../src/guestfs.pod:384
34226 msgid "There are many limitations to this:"
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs.pod:390
34231 msgid ""
34232 "The kernel version that the command runs under will be different from what "
34233 "it expects."
34234 msgstr ""
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:395
34238 msgid ""
34239 "If the command needs to communicate with daemons, then most likely they "
34240 "won't be running."
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs.pod:400
34245 msgid "The command will be running in limited memory."
34246 msgstr ""
34247
34248 #. type: textblock
34249 #: ../src/guestfs.pod:404
34250 msgid ""
34251 "The network may not be available unless you enable it (see L</"
34252 "guestfs_set_network>)."
34253 msgstr ""
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:409
34257 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34258 msgstr ""
34259
34260 #. type: textblock
34261 #: ../src/guestfs.pod:413
34262 msgid ""
34263 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:418
34268 msgid ""
34269 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34270 "See L</SELINUX> in this manpage."
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:423
34275 msgid ""
34276 "I<Security:> It is not safe to run commands from untrusted, possibly "
34277 "malicious guests.  These commands may attempt to exploit your program by "
34278 "sending unexpected output.  They could also try to exploit the Linux kernel "
34279 "or qemu provided by the libguestfs appliance.  They could use the network "
34280 "provided by the libguestfs appliance to bypass ordinary network partitions "
34281 "and firewalls.  They could use the elevated privileges or different SELinux "
34282 "context of your program to their advantage."
34283 msgstr ""
34284
34285 #. type: textblock
34286 #: ../src/guestfs.pod:432
34287 msgid ""
34288 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34289 "(a script which runs when the guest next boots normally), and to have this "
34290 "script run the commands you want in the normal context of the running guest, "
34291 "network security and so on.  For information about other security issues, "
34292 "see L</SECURITY>."
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs.pod:440
34297 msgid ""
34298 "The two main API calls to run commands are L</guestfs_command> and L</"
34299 "guestfs_sh> (there are also variations)."
34300 msgstr ""
34301
34302 #. type: textblock
34303 #: ../src/guestfs.pod:443
34304 msgid ""
34305 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34306 "shell globs, redirections, etc will work."
34307 msgstr ""
34308
34309 #. type: =head2
34310 #: ../src/guestfs.pod:446
34311 msgid "CONFIGURATION FILES"
34312 msgstr ""
34313
34314 #. type: textblock
34315 #: ../src/guestfs.pod:448
34316 msgid ""
34317 "To read and write configuration files in Linux guest filesystems, we "
34318 "strongly recommend using Augeas.  For example, Augeas understands how to "
34319 "read and write, say, a Linux shadow password file or X.org configuration "
34320 "file, and so avoids you having to write that code."
34321 msgstr ""
34322
34323 #. type: textblock
34324 #: ../src/guestfs.pod:453
34325 msgid ""
34326 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34327 "document Augeas itself here because there is excellent documentation on the "
34328 "L<http://augeas.net/> website."
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:457
34333 msgid ""
34334 "If you don't want to use Augeas (you fool!) then try calling L</"
34335 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34336 "over."
34337 msgstr ""
34338
34339 #. type: =head2
34340 #: ../src/guestfs.pod:461
34341 msgid "SELINUX"
34342 msgstr ""
34343
34344 #. type: textblock
34345 #: ../src/guestfs.pod:463
34346 msgid ""
34347 "We support SELinux guests.  To ensure that labeling happens correctly in "
34348 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:471
34353 msgid "Before launching, do:"
34354 msgstr ""
34355
34356 #. type: verbatim
34357 #: ../src/guestfs.pod:473
34358 #, no-wrap
34359 msgid ""
34360 " guestfs_set_selinux (g, 1);\n"
34361 "\n"
34362 msgstr ""
34363
34364 #. type: textblock
34365 #: ../src/guestfs.pod:477
34366 msgid ""
34367 "After mounting the guest's filesystem(s), load the policy.  This is best "
34368 "done by running the L<load_policy(8)> command in the guest itself:"
34369 msgstr ""
34370
34371 #. type: verbatim
34372 #: ../src/guestfs.pod:481
34373 #, no-wrap
34374 msgid ""
34375 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34376 "\n"
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs.pod:483
34381 msgid ""
34382 "(Older versions of C<load_policy> require you to specify the name of the "
34383 "policy file)."
34384 msgstr ""
34385
34386 #. type: textblock
34387 #: ../src/guestfs.pod:488
34388 msgid ""
34389 "Optionally, set the security context for the API.  The correct security "
34390 "context to use can only be known by inspecting the guest.  As an example:"
34391 msgstr ""
34392
34393 #. type: verbatim
34394 #: ../src/guestfs.pod:492
34395 #, no-wrap
34396 msgid ""
34397 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34398 "\n"
34399 msgstr ""
34400
34401 #. type: textblock
34402 #: ../src/guestfs.pod:496
34403 msgid "This will work for running commands and editing existing files."
34404 msgstr ""
34405
34406 #. type: textblock
34407 #: ../src/guestfs.pod:498
34408 msgid ""
34409 "When new files are created, you may need to label them explicitly, for "
34410 "example by running the external command C<restorecon pathname>."
34411 msgstr ""
34412
34413 #. type: =head2
34414 #: ../src/guestfs.pod:502
34415 msgid "UMASK"
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../src/guestfs.pod:504
34420 msgid ""
34421 "Certain calls are affected by the current file mode creation mask (the "
34422 "\"umask\").  In particular ones which create files or directories, such as "
34423 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34424 "either the default mode that the file is created with or modifies the mode "
34425 "that you supply."
34426 msgstr ""
34427
34428 #. type: textblock
34429 #: ../src/guestfs.pod:510
34430 msgid ""
34431 "The default umask is C<022>, so files are created with modes such as C<0644> "
34432 "and directories with C<0755>."
34433 msgstr ""
34434
34435 #. type: textblock
34436 #: ../src/guestfs.pod:513
34437 msgid ""
34438 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34439 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34440 "guestfs_chmod> after creating each file or directory."
34441 msgstr ""
34442
34443 #. type: textblock
34444 #: ../src/guestfs.pod:517
34445 msgid "For more information about umask, see L<umask(2)>."
34446 msgstr ""
34447
34448 #. type: textblock
34449 #: ../src/guestfs.pod:521
34450 msgid ""
34451 "Libguestfs allows you to access Linux guests which have been encrypted using "
34452 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34453 "standard.  This includes nearly all whole disk encryption systems used by "
34454 "modern Linux guests."
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs.pod:527
34459 msgid ""
34460 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34461 "returns the string C<crypto_LUKS>)."
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:530
34466 msgid ""
34467 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34468 "will require the passphrase!"
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:533
34473 msgid ""
34474 "Opening a LUKS device creates a new device mapper device called C</dev/"
34475 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34476 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34477 "from and encrypted to the underlying block device respectively."
34478 msgstr ""
34479
34480 #. type: textblock
34481 #: ../src/guestfs.pod:539
34482 msgid ""
34483 "LVM volume groups on the device can be made visible by calling L</"
34484 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34485 "(s) can now be mounted in the usual way."
34486 msgstr ""
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:543
34490 msgid ""
34491 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34492 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34493 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34494 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34495 "underlying encrypted block device)."
34496 msgstr ""
34497
34498 #. type: =head2
34499 #: ../src/guestfs.pod:550
34500 msgid "INSPECTION"
34501 msgstr ""
34502
34503 #. type: textblock
34504 #: ../src/guestfs.pod:552
34505 msgid ""
34506 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34507 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34508 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34509 "version 1.5.3 the most frequently used part of this library has been "
34510 "rewritten in C and moved into the core code)."
34511 msgstr ""
34512
34513 #. type: textblock
34514 #: ../src/guestfs.pod:559
34515 msgid ""
34516 "Add all disks belonging to the unknown virtual machine and call L</"
34517 "guestfs_launch> in the usual way."
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:562
34522 msgid ""
34523 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34524 "and certain heuristics, and returns a list of operating systems that were "
34525 "found.  An empty list means none were found.  A single element is the root "
34526 "filesystem of the operating system.  For dual- or multi-boot guests, "
34527 "multiple roots can be returned, each one corresponding to a separate "
34528 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34529 "world of virtualization, but since this scenario can happen, we have built "
34530 "libguestfs to deal with it.)"
34531 msgstr ""
34532
34533 #. type: textblock
34534 #: ../src/guestfs.pod:571
34535 msgid ""
34536 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34537 "to get additional details about that operating system.  For example, call L</"
34538 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34539 "Windows and Linux-based operating systems respectively."
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:577
34544 msgid ""
34545 "Un*x-like and Linux-based operating systems usually consist of several "
34546 "filesystems which are mounted at boot time (for example, a separate boot "
34547 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34548 "filesystems correspond to mount points.  Call "
34549 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34550 "hash table like this example:"
34551 msgstr ""
34552
34553 #. type: verbatim
34554 #: ../src/guestfs.pod:584
34555 #, no-wrap
34556 msgid ""
34557 " /boot => /dev/sda1\n"
34558 " /     => /dev/vg_guest/lv_root\n"
34559 " /usr  => /dev/vg_guest/lv_usr\n"
34560 "\n"
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:588
34565 msgid ""
34566 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34567 "filesystems as suggested."
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:591
34572 msgid ""
34573 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34574 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34575 msgstr ""
34576
34577 #. type: textblock
34578 #: ../src/guestfs.pod:595
34579 msgid ""
34580 "Inspection currently only works for some common operating systems.  "
34581 "Contributors are welcome to send patches for other operating systems that we "
34582 "currently cannot detect."
34583 msgstr ""
34584
34585 #. type: textblock
34586 #: ../src/guestfs.pod:599
34587 msgid ""
34588 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34589 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34590 "encrypted devices."
34591 msgstr ""
34592
34593 #. type: textblock
34594 #: ../src/guestfs.pod:603
34595 msgid ""
34596 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34597 "inspection and caches the results in the guest handle.  Subsequent calls to "
34598 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34599 "read the disks.  If you change the content of the guest disks, you can redo "
34600 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34601 "guestfs_inspect_list_applications> works a little differently from the other "
34602 "calls and does read the disks.  See documentation for that function for "
34603 "details)."
34604 msgstr ""
34605
34606 #. type: =head3
34607 #: ../src/guestfs.pod:612
34608 msgid "INSPECTING INSTALL DISKS"
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:614
34613 msgid ""
34614 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34615 "CDs and more."
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:617
34620 msgid ""
34621 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34622 "system, which currently can be C<installed> (a regular operating system) or "
34623 "C<installer> (some sort of install disk)."
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs.pod:621
34628 msgid ""
34629 "Further information is available about the operating system that can be "
34630 "installed using the regular inspection APIs like L</"
34631 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34632 msgstr ""
34633
34634 #. type: textblock
34635 #: ../src/guestfs.pod:626
34636 msgid ""
34637 "Some additional information specific to installer disks is also available "
34638 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34639 "guestfs_inspect_is_multipart> calls."
34640 msgstr ""
34641
34642 #. type: =head2
34643 #: ../src/guestfs.pod:631
34644 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:633
34649 msgid ""
34650 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34651 "ntfs-3g.org/> driver."
34652 msgstr ""
34653
34654 #. type: =head3
34655 #: ../src/guestfs.pod:636
34656 msgid "DRIVE LETTERS AND PATHS"
34657 msgstr ""
34658
34659 #. type: textblock
34660 #: ../src/guestfs.pod:638
34661 msgid ""
34662 "DOS and Windows still use drive letters, and the filesystems are always "
34663 "treated as case insensitive by Windows itself, and therefore you might find "
34664 "a Windows configuration file referring to a path like C<c:\\windows"
34665 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34666 "might be referred to as C</WINDOWS/System32>."
34667 msgstr ""
34668
34669 #. type: textblock
34670 #: ../src/guestfs.pod:644
34671 msgid ""
34672 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34673 "L</guestfs_inspect_get_drive_mappings>)"
34674 msgstr ""
34675
34676 #. type: textblock
34677 #: ../src/guestfs.pod:647
34678 msgid ""
34679 "Dealing with separator characters (backslash vs forward slash) is outside "
34680 "the scope of libguestfs, but usually a simple character replacement will "
34681 "work."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:651
34686 msgid ""
34687 "To resolve the case insensitivity of paths, call L</"
34688 "guestfs_case_sensitive_path>."
34689 msgstr ""
34690
34691 #. type: =head3
34692 #: ../src/guestfs.pod:654
34693 msgid "ACCESSING THE WINDOWS REGISTRY"
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:656
34698 msgid ""
34699 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34700 "files, through the library C<hivex> which is part of the libguestfs project "
34701 "although ships as a separate tarball.  You have to locate and download the "
34702 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34703 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34704 "reg(1)> for more help on this issue."
34705 msgstr ""
34706
34707 #. type: =head3
34708 #: ../src/guestfs.pod:664
34709 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34710 msgstr ""
34711
34712 #. type: textblock
34713 #: ../src/guestfs.pod:666
34714 msgid ""
34715 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34716 "provide something which looks like a Linux symlink.  The way it tries to do "
34717 "the rewriting is described here:"
34718 msgstr ""
34719
34720 #. type: textblock
34721 #: ../src/guestfs.pod:670
34722 msgid ""
34723 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34724 "symbolic-links/>"
34725 msgstr ""
34726
34727 #. type: textblock
34728 #: ../src/guestfs.pod:672
34729 msgid ""
34730 "The essential problem is that ntfs-3g simply does not have enough "
34731 "information to do a correct job.  NTFS links can contain drive letters and "
34732 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34733 "It is almost certainly the case that libguestfs callers should ignore what "
34734 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34735 msgstr ""
34736
34737 #. type: textblock
34738 #: ../src/guestfs.pod:679
34739 msgid ""
34740 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34741 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34742 "attribute, and read the raw reparse data from that (you can find the format "
34743 "documented in various places around the web)."
34744 msgstr ""
34745
34746 #. type: =head3
34747 #: ../src/guestfs.pod:684
34748 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34749 msgstr ""
34750
34751 #. type: textblock
34752 #: ../src/guestfs.pod:686
34753 msgid ""
34754 "There are other useful extended attributes that can be read from ntfs-3g "
34755 "filesystems (using L</guestfs_getxattr>).  See:"
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:689
34760 msgid ""
34761 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34762 msgstr ""
34763
34764 #. type: =head2
34765 #: ../src/guestfs.pod:691
34766 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs.pod:693
34771 msgid ""
34772 "Although we don't want to discourage you from using the C API, we will "
34773 "mention here that the same API is also available in other languages."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:696
34778 msgid ""
34779 "The API is broadly identical in all supported languages.  This means that "
34780 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34781 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34782 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34783 "each language."
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:702
34788 msgid ""
34789 "Error messages are automatically transformed into exceptions if the language "
34790 "supports it."
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:705
34795 msgid ""
34796 "We don't try to \"object orientify\" parts of the API in OO languages, "
34797 "although contributors are welcome to write higher level APIs above what we "
34798 "provide in their favourite languages if they wish."
34799 msgstr ""
34800
34801 #. type: =item
34802 #: ../src/guestfs.pod:711
34803 msgid "B<C++>"
34804 msgstr ""
34805
34806 #. type: textblock
34807 #: ../src/guestfs.pod:713
34808 msgid ""
34809 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34810 "identical to the C API.  C++ classes and exceptions are not used."
34811 msgstr ""
34812
34813 #. type: =item
34814 #: ../src/guestfs.pod:717
34815 msgid "B<C#>"
34816 msgstr ""
34817
34818 #. type: textblock
34819 #: ../src/guestfs.pod:719
34820 msgid ""
34821 "The C# bindings are highly experimental.  Please read the warnings at the "
34822 "top of C<csharp/Libguestfs.cs>."
34823 msgstr ""
34824
34825 #. type: =item
34826 #: ../src/guestfs.pod:722
34827 msgid "B<Erlang>"
34828 msgstr ""
34829
34830 #. type: textblock
34831 #: ../src/guestfs.pod:724
34832 msgid "See L<guestfs-erlang(3)>."
34833 msgstr ""
34834
34835 #. type: =item
34836 #: ../src/guestfs.pod:726
34837 msgid "B<Haskell>"
34838 msgstr ""
34839
34840 #. type: textblock
34841 #: ../src/guestfs.pod:728
34842 msgid ""
34843 "This is the only language binding that is working but incomplete.  Only "
34844 "calls which return simple integers have been bound in Haskell, and we are "
34845 "looking for help to complete this binding."
34846 msgstr ""
34847
34848 #. type: =item
34849 #: ../src/guestfs.pod:732
34850 msgid "B<Java>"
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:734
34855 msgid ""
34856 "Full documentation is contained in the Javadoc which is distributed with "
34857 "libguestfs.  For examples, see L<guestfs-java(3)>."
34858 msgstr ""
34859
34860 #. type: =item
34861 #: ../src/guestfs.pod:737
34862 msgid "B<OCaml>"
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:739
34867 msgid "See L<guestfs-ocaml(3)>."
34868 msgstr ""
34869
34870 #. type: =item
34871 #: ../src/guestfs.pod:741
34872 msgid "B<Perl>"
34873 msgstr ""
34874
34875 #. type: textblock
34876 #: ../src/guestfs.pod:743
34877 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34878 msgstr ""
34879
34880 #. type: =item
34881 #: ../src/guestfs.pod:745
34882 msgid "B<PHP>"
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:747
34887 msgid ""
34888 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34889 "the php-libguestfs package for your distribution."
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:750
34894 msgid "The PHP binding only works correctly on 64 bit machines."
34895 msgstr ""
34896
34897 #. type: =item
34898 #: ../src/guestfs.pod:752
34899 msgid "B<Python>"
34900 msgstr ""
34901
34902 #. type: textblock
34903 #: ../src/guestfs.pod:754
34904 msgid "See L<guestfs-python(3)>."
34905 msgstr ""
34906
34907 #. type: =item
34908 #: ../src/guestfs.pod:756
34909 msgid "B<Ruby>"
34910 msgstr ""
34911
34912 #. type: textblock
34913 #: ../src/guestfs.pod:758
34914 msgid "See L<guestfs-ruby(3)>."
34915 msgstr ""
34916
34917 #. type: =item
34918 #: ../src/guestfs.pod:760
34919 msgid "B<shell scripts>"
34920 msgstr ""
34921
34922 #. type: textblock
34923 #: ../src/guestfs.pod:762
34924 msgid "See L<guestfish(1)>."
34925 msgstr ""
34926
34927 #. type: =head2
34928 #: ../src/guestfs.pod:766
34929 msgid "LIBGUESTFS GOTCHAS"
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:768
34934 msgid ""
34935 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34936 "system [...] that works in the way it is documented but is counterintuitive "
34937 "and almost invites mistakes.\""
34938 msgstr ""
34939
34940 #. type: textblock
34941 #: ../src/guestfs.pod:772
34942 msgid ""
34943 "Since we developed libguestfs and the associated tools, there are several "
34944 "things we would have designed differently, but are now stuck with for "
34945 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34946 "release, you can expect these to change.  Beware of them."
34947 msgstr ""
34948
34949 #. type: =item
34950 #: ../src/guestfs.pod:780
34951 msgid "Autosync / forgetting to sync."
34952 msgstr ""
34953
34954 #. type: textblock
34955 #: ../src/guestfs.pod:782
34956 msgid ""
34957 "I<Update:> Autosync is enabled by default for all API users starting from "
34958 "libguestfs 1.5.24.  This section only applies to older versions."
34959 msgstr ""
34960
34961 #. type: textblock
34962 #: ../src/guestfs.pod:785
34963 msgid ""
34964 "When modifying a filesystem from C or another language, you B<must> unmount "
34965 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34966 "libguestfs handle.  You can also call:"
34967 msgstr ""
34968
34969 #. type: verbatim
34970 #: ../src/guestfs.pod:789
34971 #, no-wrap
34972 msgid ""
34973 " guestfs_set_autosync (g, 1);\n"
34974 "\n"
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:791
34979 msgid ""
34980 "to have the unmount/sync done automatically for you when the handle 'g' is "
34981 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:795
34986 msgid ""
34987 "If you forget to do this, then it is entirely possible that your changes "
34988 "won't be written out, or will be partially written, or (very rarely) that "
34989 "you'll get disk corruption."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:799
34994 msgid ""
34995 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34996 "guestfish scripts that forget to sync will work just fine, which can make "
34997 "this very puzzling if you are trying to debug a problem."
34998 msgstr ""
34999
35000 #. type: =item
35001 #: ../src/guestfs.pod:803
35002 msgid "Mount option C<-o sync> should not be the default."
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:805
35007 msgid ""
35008 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35009 "libguestfs 1.13.16.  This section only applies to older versions."
35010 msgstr ""
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:808
35014 msgid ""
35015 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35016 "However C<-o sync> does not add any reliability benefit, but does have a "
35017 "very large performance impact."
35018 msgstr ""
35019
35020 #. type: textblock
35021 #: ../src/guestfs.pod:812
35022 msgid ""
35023 "The work around is to use L</guestfs_mount_options> and set the mount "
35024 "options that you actually want to use."
35025 msgstr ""
35026
35027 #. type: =item
35028 #: ../src/guestfs.pod:815
35029 msgid "Read-only should be the default."
35030 msgstr ""
35031
35032 #. type: textblock
35033 #: ../src/guestfs.pod:817
35034 msgid ""
35035 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35036 "specify I<--rw> if you want to make changes to the image."
35037 msgstr ""
35038
35039 #. type: textblock
35040 #: ../src/guestfs.pod:820
35041 msgid "This would reduce the potential to corrupt live VM images."
35042 msgstr ""
35043
35044 #. type: textblock
35045 #: ../src/guestfs.pod:822
35046 msgid ""
35047 "Note that many filesystems change the disk when you just mount and unmount, "
35048 "even if you didn't perform any writes.  You need to use L</"
35049 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35050 msgstr ""
35051
35052 #. type: =item
35053 #: ../src/guestfs.pod:826
35054 msgid "guestfish command line is hard to use."
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:828
35059 msgid ""
35060 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35061 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35062 "exist, so it fails.  In earlier versions of guestfish the error message was "
35063 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35064 "we should have used C<guestfish -c command> to run commands."
35065 msgstr ""
35066
35067 #. type: =item
35068 #: ../src/guestfs.pod:835
35069 msgid "guestfish megabyte modifiers don't work right on all commands"
35070 msgstr ""
35071
35072 #. type: textblock
35073 #: ../src/guestfs.pod:837
35074 msgid ""
35075 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35076 "other modifiers).  What guestfish actually does is to multiply the number "
35077 "part by the modifier part and pass the result to the C API.  However this "
35078 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35079 "expecting some other unit (eg. megabytes)."
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:844
35084 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35085 msgstr ""
35086
35087 #. type: verbatim
35088 #: ../src/guestfs.pod:846
35089 #, no-wrap
35090 msgid ""
35091 " lvcreate LV VG 100M\n"
35092 "\n"
35093 msgstr ""
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:848
35097 msgid ""
35098 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35099 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35100 "megabytes * megabytes) logical volume.  The error message you get from this "
35101 "is also a little obscure."
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:853
35106 msgid ""
35107 "This could be fixed in the generator by specially marking parameters and "
35108 "return values which take bytes or other units."
35109 msgstr ""
35110
35111 #. type: =item
35112 #: ../src/guestfs.pod:856
35113 msgid "Ambiguity between devices and paths"
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:858
35118 msgid ""
35119 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35120 "sdb2>) and a similar pathname.  A file might just happen to be called "
35121 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:863
35126 msgid ""
35127 "In the current API we usually resolve this ambiguity by having two separate "
35128 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35129 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35130 "detecting if the path supplied begins with C</dev/>."
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:869
35135 msgid ""
35136 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35137 "make paths/devices into structured names.  One way to do this would be to "
35138 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35139 "aspect of grub.  Another way would be to use a structured type, equivalent "
35140 "to this OCaml type:"
35141 msgstr ""
35142
35143 #. type: verbatim
35144 #: ../src/guestfs.pod:875
35145 #, no-wrap
35146 msgid ""
35147 " type path = Path of string | Device of int | Partition of int * int\n"
35148 "\n"
35149 msgstr ""
35150
35151 #. type: textblock
35152 #: ../src/guestfs.pod:877
35153 msgid "which would allow you to pass arguments like:"
35154 msgstr ""
35155
35156 #. type: verbatim
35157 #: ../src/guestfs.pod:879
35158 #, no-wrap
35159 msgid ""
35160 " Path \"/foo/bar\"\n"
35161 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35162 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35163 " Path \"/dev/sdb2\"    (* not a device *)\n"
35164 "\n"
35165 msgstr ""
35166
35167 #. type: textblock
35168 #: ../src/guestfs.pod:884
35169 msgid ""
35170 "As you can see there are still problems to resolve even with this "
35171 "representation.  Also consider how it might work in guestfish."
35172 msgstr ""
35173
35174 #. type: =head2
35175 #: ../src/guestfs.pod:889
35176 msgid "KEYS AND PASSPHRASES"
35177 msgstr ""
35178
35179 #. type: textblock
35180 #: ../src/guestfs.pod:891
35181 msgid ""
35182 "Certain libguestfs calls take a parameter that contains sensitive key "
35183 "material, passed in as a C string."
35184 msgstr ""
35185
35186 #. type: textblock
35187 #: ../src/guestfs.pod:894
35188 msgid ""
35189 "In the future we would hope to change the libguestfs implementation so that "
35190 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35191 "swap.  However this is I<not> done at the moment, because of the complexity "
35192 "of such an implementation."
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:899
35197 msgid ""
35198 "Therefore you should be aware that any key parameter you pass to libguestfs "
35199 "might end up being written out to the swap partition.  If this is a concern, "
35200 "scrub the swap partition or don't use libguestfs on encrypted devices."
35201 msgstr ""
35202
35203 #. type: =head2
35204 #: ../src/guestfs.pod:904
35205 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35206 msgstr ""
35207
35208 #. type: textblock
35209 #: ../src/guestfs.pod:906
35210 msgid ""
35211 "All high-level libguestfs actions are synchronous.  If you want to use "
35212 "libguestfs asynchronously then you must create a thread."
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs.pod:909
35217 msgid ""
35218 "Only use the handle from a single thread.  Either use the handle exclusively "
35219 "from one thread, or provide your own mutex so that two threads cannot issue "
35220 "calls on the same handle at the same time."
35221 msgstr ""
35222
35223 #. type: textblock
35224 #: ../src/guestfs.pod:913
35225 msgid ""
35226 "See the graphical program guestfs-browser for one possible architecture for "
35227 "multithreaded programs using libvirt and libguestfs."
35228 msgstr ""
35229
35230 #. type: =head2
35231 #: ../src/guestfs.pod:916
35232 msgid "PATH"
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:918
35237 msgid ""
35238 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35239 "internal path."
35240 msgstr ""
35241
35242 #. type: textblock
35243 #: ../src/guestfs.pod:921
35244 msgid ""
35245 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35246 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35247 msgstr ""
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:924
35251 msgid ""
35252 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35253 "to change the directories that libguestfs will search in.  The value is a "
35254 "colon-separated list of paths.  The current directory is I<not> searched "
35255 "unless the path contains an empty element or C<.>.  For example "
35256 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35257 "then C</usr/lib/guestfs>."
35258 msgstr ""
35259
35260 #. type: =head2
35261 #: ../src/guestfs.pod:931
35262 msgid "QEMU WRAPPERS"
35263 msgstr ""
35264
35265 #. type: textblock
35266 #: ../src/guestfs.pod:933
35267 msgid ""
35268 "If you want to compile your own qemu, run qemu from a non-standard location, "
35269 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35270 "around qemu."
35271 msgstr ""
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:937
35275 msgid ""
35276 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35277 "last command in the shell script (so that qemu replaces the shell and "
35278 "becomes the direct child of the libguestfs-using program).  If you don't do "
35279 "this, then the qemu process won't be cleaned up correctly."
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:942
35284 msgid ""
35285 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35286 "source:"
35287 msgstr ""
35288
35289 #. type: verbatim
35290 #: ../src/guestfs.pod:945
35291 #, no-wrap
35292 msgid ""
35293 " #!/bin/sh -\n"
35294 " qemudir=/home/rjones/d/qemu\n"
35295 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35296 "\n"
35297 msgstr ""
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:949
35301 msgid ""
35302 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35303 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35304 "example:"
35305 msgstr ""
35306
35307 #. type: verbatim
35308 #: ../src/guestfs.pod:953
35309 #, no-wrap
35310 msgid ""
35311 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35312 "\n"
35313 msgstr ""
35314
35315 #. type: textblock
35316 #: ../src/guestfs.pod:955
35317 msgid ""
35318 "Note that libguestfs also calls qemu with the -help and -version options in "
35319 "order to determine features."
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:958
35324 msgid ""
35325 "Wrappers can also be used to edit the options passed to qemu.  In the "
35326 "following example, the C<-machine ...> option (C<-machine> and the following "
35327 "argument) are removed from the command line and replaced with C<-machine pc,"
35328 "accel=tcg>.  The while loop iterates over the options until it finds the "
35329 "right one to remove, putting the remaining options into the C<args> array."
35330 msgstr ""
35331
35332 #. type: verbatim
35333 #: ../src/guestfs.pod:967
35334 #, no-wrap
35335 msgid ""
35336 " i=0\n"
35337 " while [ $# -gt 0 ]; do\n"
35338 "     case \"$1\" in\n"
35339 "     -machine)\n"
35340 "         shift 2;;\n"
35341 "     *)\n"
35342 "         args[i]=\"$1\"\n"
35343 "         (( i++ ))\n"
35344 "         shift ;;\n"
35345 "     esac\n"
35346 " done\n"
35347 " \n"
35348 msgstr ""
35349
35350 #. type: verbatim
35351 #: ../src/guestfs.pod:979
35352 #, no-wrap
35353 msgid ""
35354 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35355 "\n"
35356 msgstr ""
35357
35358 #. type: =head2
35359 #: ../src/guestfs.pod:981
35360 msgid "ATTACHING TO RUNNING DAEMONS"
35361 msgstr ""
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:983
35365 msgid ""
35366 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35367 "babies.  Use with caution."
35368 msgstr ""
35369
35370 #. type: textblock
35371 #: ../src/guestfs.pod:986
35372 msgid ""
35373 "I<Note (2):> This section explains how to attach to a running daemon from a "
35374 "low level perspective.  For most users, simply using virt tools such as "
35375 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35376 msgstr ""
35377
35378 #. type: =head3
35379 #: ../src/guestfs.pod:990
35380 msgid "Using guestfs_set_attach_method"
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:992
35385 msgid ""
35386 "By calling L</guestfs_set_attach_method> you can change how the library "
35387 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35388 "ARCHITECTURE> for some background)."
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:996
35393 msgid ""
35394 "The normal attach method is C<appliance>, where a small appliance is created "
35395 "containing the daemon, and then the library connects to this."
35396 msgstr ""
35397
35398 #. type: textblock
35399 #: ../src/guestfs.pod:999
35400 msgid ""
35401 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35402 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35403 "daemon over the Unix domain socket."
35404 msgstr ""
35405
35406 #. type: textblock
35407 #: ../src/guestfs.pod:1003
35408 msgid ""
35409 "The normal use for this is to connect to a running virtual machine that "
35410 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35411 "files inside the live virtual machine."
35412 msgstr ""
35413
35414 #. type: =head3
35415 #: ../src/guestfs.pod:1007
35416 msgid "Using guestfs_add_domain with live flag"
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:1009
35421 msgid ""
35422 "L</guestfs_add_domain> provides some help for getting the correct attach "
35423 "method.  If you pass the C<live> option to this function, then (if the "
35424 "virtual machine is running) it will examine the libvirt XML looking for a "
35425 "virtio-serial channel to connect to:"
35426 msgstr ""
35427
35428 #. type: verbatim
35429 #: ../src/guestfs.pod:1015
35430 #, no-wrap
35431 msgid ""
35432 " <domain>\n"
35433 "   ...\n"
35434 "   <devices>\n"
35435 "     ...\n"
35436 "     <channel type='unix'>\n"
35437 "       <source mode='bind' path='/path/to/socket'/>\n"
35438 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35439 "     </channel>\n"
35440 "     ...\n"
35441 "   </devices>\n"
35442 " </domain>\n"
35443 "\n"
35444 msgstr ""
35445
35446 #. type: textblock
35447 #: ../src/guestfs.pod:1027
35448 msgid ""
35449 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35450 "method to C<unix:/path/to/socket>."
35451 msgstr ""
35452
35453 #. type: textblock
35454 #: ../src/guestfs.pod:1030
35455 msgid ""
35456 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35457 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35458 "to attach to and modify live virtual machines."
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:1034
35463 msgid ""
35464 "The virtual machine needs to have been set up beforehand so that it has the "
35465 "virtio-serial channel and so that guestfsd is running inside it."
35466 msgstr ""
35467
35468 #. type: =head2
35469 #: ../src/guestfs.pod:1038
35470 msgid "ABI GUARANTEE"
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:1040
35475 msgid ""
35476 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35477 "actions as outlined in this section.  Although we will deprecate some "
35478 "actions, for example if they get replaced by newer calls, we will keep the "
35479 "old actions forever.  This allows you the developer to program in confidence "
35480 "against the libguestfs API."
35481 msgstr ""
35482
35483 #. type: =head2
35484 #: ../src/guestfs.pod:1046
35485 msgid "BLOCK DEVICE NAMING"
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:1048
35490 msgid ""
35491 "In the kernel there is now quite a profusion of schemata for naming block "
35492 "devices (in this context, by I<block device> I mean a physical or virtual "
35493 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35494 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35495 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35496 "for the old IDE driver (particularly for SATA devices) those devices also "
35497 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35498 "paravirtualized drivers.  This has created several different naming systems, "
35499 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35500 msgstr ""
35501
35502 #. type: textblock
35503 #: ../src/guestfs.pod:1060
35504 msgid ""
35505 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35506 "Linux kernel to access block devices.  We can run a variety of appliances "
35507 "based on a variety of Linux kernels."
35508 msgstr ""
35509
35510 #. type: textblock
35511 #: ../src/guestfs.pod:1064
35512 msgid ""
35513 "This causes a problem for libguestfs because many API calls use device or "
35514 "partition names.  Working scripts and the recipe (example) scripts that we "
35515 "make available over the internet could fail if the naming scheme changes."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:1069
35520 msgid ""
35521 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35522 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35523 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35524 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35525 msgstr ""
35526
35527 #. type: textblock
35528 #: ../src/guestfs.pod:1075
35529 msgid ""
35530 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35531 "L</guestfs_list_partitions> and similar calls return the true names of the "
35532 "devices and partitions as known to the appliance."
35533 msgstr ""
35534
35535 #. type: =head3
35536 #: ../src/guestfs.pod:1080
35537 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:1082
35542 msgid ""
35543 "Usually this translation is transparent.  However in some (very rare)  cases "
35544 "you may need to know the exact algorithm.  Such cases include where you use "
35545 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35546 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:1088
35551 msgid ""
35552 "The algorithm is applied only to I<parameters> which are known to be either "
35553 "device or partition names.  Return values from functions such as L</"
35554 "guestfs_list_devices> are never changed."
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:1096
35559 msgid "Is the string a parameter which is a device or partition name?"
35560 msgstr ""
35561
35562 #. type: textblock
35563 #: ../src/guestfs.pod:1100
35564 msgid "Does the string begin with C</dev/sd>?"
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:1104
35569 msgid ""
35570 "Does the named device exist? If so, we use that device.  However if I<not> "
35571 "then we continue with this algorithm."
35572 msgstr ""
35573
35574 #. type: textblock
35575 #: ../src/guestfs.pod:1109
35576 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35577 msgstr ""
35578
35579 #. type: textblock
35580 #: ../src/guestfs.pod:1111
35581 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:1113
35586 msgid "If that named device exists, use it.  If not, continue."
35587 msgstr ""
35588
35589 #. type: textblock
35590 #: ../src/guestfs.pod:1117
35591 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35592 msgstr ""
35593
35594 #. type: textblock
35595 #: ../src/guestfs.pod:1119
35596 msgid "If that named device exists, use it.  If not, return an error."
35597 msgstr ""
35598
35599 #. type: =head3
35600 #: ../src/guestfs.pod:1123
35601 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35602 msgstr ""
35603
35604 #. type: textblock
35605 #: ../src/guestfs.pod:1125
35606 msgid ""
35607 "Although the standard naming scheme and automatic translation is useful for "
35608 "simple programs and guestfish scripts, for larger programs it is best not to "
35609 "rely on this mechanism."
35610 msgstr ""
35611
35612 #. type: textblock
35613 #: ../src/guestfs.pod:1129
35614 msgid ""
35615 "Where possible for maximum future portability programs using libguestfs "
35616 "should use these future-proof techniques:"
35617 msgstr ""
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:1136
35621 msgid ""
35622 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35623 "device names, and then use those names directly."
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:1139
35628 msgid ""
35629 "Since those device names exist by definition, they will never be translated."
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:1144
35634 msgid ""
35635 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35636 "filesystem labels."
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:1151
35641 msgid ""
35642 "This section discusses security implications of using libguestfs, "
35643 "particularly with untrusted or malicious guests or disk images."
35644 msgstr ""
35645
35646 #. type: =head2
35647 #: ../src/guestfs.pod:1154
35648 msgid "GENERAL SECURITY CONSIDERATIONS"
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:1156
35653 msgid ""
35654 "Be careful with any files or data that you download from a guest (by "
35655 "\"download\" we mean not just the L</guestfs_download> command but any "
35656 "command that reads files, filenames, directories or anything else from a "
35657 "disk image).  An attacker could manipulate the data to fool your program "
35658 "into doing the wrong thing.  Consider cases such as:"
35659 msgstr ""
35660
35661 #. type: textblock
35662 #: ../src/guestfs.pod:1166
35663 msgid "the data (file etc) not being present"
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:1170
35668 msgid "being present but empty"
35669 msgstr ""
35670
35671 #. type: textblock
35672 #: ../src/guestfs.pod:1174
35673 msgid "being much larger than normal"
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:1178
35678 msgid "containing arbitrary 8 bit data"
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:1182
35683 msgid "being in an unexpected character encoding"
35684 msgstr ""
35685
35686 #. type: textblock
35687 #: ../src/guestfs.pod:1186
35688 msgid "containing homoglyphs."
35689 msgstr ""
35690
35691 #. type: =head2
35692 #: ../src/guestfs.pod:1190
35693 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:1192
35698 msgid ""
35699 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35700 "(VFS) module can sometimes be escalated into exploits by deliberately "
35701 "creating a malicious, malformed filesystem.  These exploits are very severe "
35702 "for two reasons.  Firstly there are very many filesystem drivers in the "
35703 "kernel, and many of them are infrequently used and not much developer "
35704 "attention has been paid to the code.  Linux userspace helps potential "
35705 "crackers by detecting the filesystem type and automatically choosing the "
35706 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35707 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35708 "exploit (worse in some ways), giving immediate and total access to the "
35709 "system right down to the hardware level."
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:1205
35714 msgid ""
35715 "That explains why you should never mount a filesystem from an untrusted "
35716 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35717 "inside a qemu virtual machine, usually running as a non-root user.  The "
35718 "attacker would need to write a filesystem which first exploited the kernel, "
35719 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35720 "the libguestfs protocol, and finally to be as serious as the host kernel "
35721 "exploit it would need to escalate its privileges to root.  This multi-step "
35722 "escalation, performed by a static piece of data, is thought to be extremely "
35723 "hard to do, although we never say 'never' about security issues."
35724 msgstr ""
35725
35726 #. type: textblock
35727 #: ../src/guestfs.pod:1216
35728 msgid ""
35729 "In any case callers can reduce the attack surface by forcing the filesystem "
35730 "type when mounting (use L</guestfs_mount_vfs>)."
35731 msgstr ""
35732
35733 #. type: =head2
35734 #: ../src/guestfs.pod:1219
35735 msgid "PROTOCOL SECURITY"
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:1221
35740 msgid ""
35741 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35742 "defined upper message size.  However a program that uses libguestfs must "
35743 "also take care - for example you can write a program that downloads a binary "
35744 "from a disk image and executes it locally, and no amount of protocol "
35745 "security will save you from the consequences."
35746 msgstr ""
35747
35748 #. type: =head2
35749 #: ../src/guestfs.pod:1227
35750 msgid "INSPECTION SECURITY"
35751 msgstr ""
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:1229
35755 msgid ""
35756 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35757 "directly from the guest, and these could contain any 8 bit data.  Callers "
35758 "should be careful to escape these before printing them to a structured file "
35759 "(for example, use HTML escaping if creating a web page)."
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:1235
35764 msgid ""
35765 "Guest configuration may be altered in unusual ways by the administrator of "
35766 "the virtual machine, and may not reflect reality (particularly for untrusted "
35767 "or actively malicious guests).  For example we parse the hostname from "
35768 "configuration files like C</etc/sysconfig/network> that we find in the "
35769 "guest, but the guest administrator can easily manipulate these files to "
35770 "provide the wrong hostname."
35771 msgstr ""
35772
35773 #. type: textblock
35774 #: ../src/guestfs.pod:1243
35775 msgid ""
35776 "The inspection API parses guest configuration using two external libraries: "
35777 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35778 "designed to be robust in the face of malicious data, although denial of "
35779 "service attacks are still possible, for example with oversized configuration "
35780 "files."
35781 msgstr ""
35782
35783 #. type: =head2
35784 #: ../src/guestfs.pod:1249
35785 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:1251
35790 msgid ""
35791 "Be very cautious about running commands from the guest.  By running a "
35792 "command in the guest, you are giving CPU time to a binary that you do not "
35793 "control, under the same user account as the library, albeit wrapped in qemu "
35794 "virtualization.  More information and alternatives can be found in the "
35795 "section L</RUNNING COMMANDS>."
35796 msgstr ""
35797
35798 #. type: =head2
35799 #: ../src/guestfs.pod:1257
35800 msgid "CVE-2010-3851"
35801 msgstr ""
35802
35803 #. type: textblock
35804 #: ../src/guestfs.pod:1259
35805 msgid "https://bugzilla.redhat.com/642934"
35806 msgstr ""
35807
35808 #. type: textblock
35809 #: ../src/guestfs.pod:1261
35810 msgid ""
35811 "This security bug concerns the automatic disk format detection that qemu "
35812 "does on disk images."
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../src/guestfs.pod:1264
35817 msgid ""
35818 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35819 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35820 "for one of the known headers, and if none is found then assuming the disk "
35821 "image must be raw."
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../src/guestfs.pod:1269
35826 msgid ""
35827 "This allows a guest which has been given a raw disk image to write some "
35828 "other header.  At next boot (or when the disk image is accessed by "
35829 "libguestfs) qemu would do autodetection and think the disk image format was, "
35830 "say, qcow2 based on the header written by the guest."
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../src/guestfs.pod:1274
35835 msgid ""
35836 "This in itself would not be a problem, but qcow2 offers many features, one "
35837 "of which is to allow a disk image to refer to another image (called the "
35838 "\"backing disk\").  It does this by placing the path to the backing disk "
35839 "into the qcow2 header.  This path is not validated and could point to any "
35840 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35841 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35842 "control of the attacker."
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:1282
35847 msgid ""
35848 "In libguestfs this is rather hard to exploit except under two circumstances:"
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:1289
35853 msgid "You have enabled the network or have opened the disk in write mode."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:1293
35858 msgid ""
35859 "You are also running untrusted code from the guest (see L</RUNNING "
35860 "COMMANDS>)."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:1298
35865 msgid ""
35866 "The way to avoid this is to specify the expected disk format when adding "
35867 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35868 "should always do this if the disk is raw format, and it's a good idea for "
35869 "other cases too."
35870 msgstr ""
35871
35872 #. type: textblock
35873 #: ../src/guestfs.pod:1303
35874 msgid ""
35875 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35876 "format is fetched from libvirt and passed through."
35877 msgstr ""
35878
35879 #. type: textblock
35880 #: ../src/guestfs.pod:1306
35881 msgid ""
35882 "For libguestfs tools, use the I<--format> command line parameter as "
35883 "appropriate."
35884 msgstr ""
35885
35886 #. type: =head1
35887 #: ../src/guestfs.pod:1309
35888 msgid "CONNECTION MANAGEMENT"
35889 msgstr ""
35890
35891 #. type: =head2
35892 #: ../src/guestfs.pod:1311
35893 msgid "guestfs_h *"
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:1313
35898 msgid ""
35899 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35900 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35901 "handle and release all resources used."
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:1317
35906 msgid ""
35907 "For information on using multiple handles and threads, see the section L</"
35908 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35909 msgstr ""
35910
35911 #. type: =head2
35912 #: ../src/guestfs.pod:1320
35913 msgid "guestfs_create"
35914 msgstr ""
35915
35916 #. type: verbatim
35917 #: ../src/guestfs.pod:1322
35918 #, no-wrap
35919 msgid ""
35920 " guestfs_h *guestfs_create (void);\n"
35921 "\n"
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:1324
35926 msgid "Create a connection handle."
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:1326
35931 msgid ""
35932 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35933 "NULL."
35934 msgstr ""
35935
35936 #. type: textblock
35937 #: ../src/guestfs.pod:1329
35938 msgid ""
35939 "You have to \"configure\" the handle after creating it.  This includes "
35940 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35941 "handle at least once."
35942 msgstr ""
35943
35944 #. type: textblock
35945 #: ../src/guestfs.pod:1333
35946 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:1335
35951 msgid ""
35952 "You may also want to configure error handling for the handle.  See the L</"
35953 "ERROR HANDLING> section below."
35954 msgstr ""
35955
35956 #. type: =head2
35957 #: ../src/guestfs.pod:1338
35958 msgid "guestfs_close"
35959 msgstr ""
35960
35961 #. type: verbatim
35962 #: ../src/guestfs.pod:1340
35963 #, no-wrap
35964 msgid ""
35965 " void guestfs_close (guestfs_h *g);\n"
35966 "\n"
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:1342
35971 msgid "This closes the connection handle and frees up all resources used."
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:1344
35976 msgid ""
35977 "If autosync was set on the handle and the handle was launched, then this "
35978 "implicitly calls various functions to unmount filesystems and sync the "
35979 "disk.  See L</guestfs_set_autosync> for more details."
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:1348
35984 msgid "If a close callback was set on the handle, then it is called."
35985 msgstr ""
35986
35987 #. type: =head1
35988 #: ../src/guestfs.pod:1350
35989 msgid "ERROR HANDLING"
35990 msgstr ""
35991
35992 #. type: textblock
35993 #: ../src/guestfs.pod:1352
35994 msgid ""
35995 "API functions can return errors.  For example, almost all functions that "
35996 "return C<int> will return C<-1> to indicate an error."
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:1355
36001 msgid ""
36002 "Additional information is available for errors: an error message string and "
36003 "optionally an error number (errno) if the thing that failed was a system "
36004 "call."
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:1359
36009 msgid ""
36010 "You can get at the additional information about the last error on the handle "
36011 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36012 "up an error handler with L</guestfs_set_error_handler>."
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:1364
36017 msgid ""
36018 "When the handle is created, a default error handler is installed which "
36019 "prints the error message string to C<stderr>.  For small short-running "
36020 "command line programs it is sufficient to do:"
36021 msgstr ""
36022
36023 #. type: verbatim
36024 #: ../src/guestfs.pod:1368
36025 #, no-wrap
36026 msgid ""
36027 " if (guestfs_launch (g) == -1)\n"
36028 "   exit (EXIT_FAILURE);\n"
36029 "\n"
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:1371
36034 msgid ""
36035 "since the default error handler will ensure that an error message has been "
36036 "printed to C<stderr> before the program exits."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:1374
36041 msgid ""
36042 "For other programs the caller will almost certainly want to install an "
36043 "alternate error handler or do error handling in-line like this:"
36044 msgstr ""
36045
36046 #. type: verbatim
36047 #: ../src/guestfs.pod:1377
36048 #, no-wrap
36049 msgid ""
36050 " /* This disables the default behaviour of printing errors\n"
36051 "    on stderr. */\n"
36052 " guestfs_set_error_handler (g, NULL, NULL);\n"
36053 " \n"
36054 msgstr ""
36055
36056 #. type: verbatim
36057 #: ../src/guestfs.pod:1381
36058 #, no-wrap
36059 msgid ""
36060 " if (guestfs_launch (g) == -1) {\n"
36061 "   /* Examine the error message and print it etc. */\n"
36062 "   char *msg = guestfs_last_error (g);\n"
36063 "   int errnum = guestfs_last_errno (g);\n"
36064 "   fprintf (stderr, \"%s\", msg);\n"
36065 "   if (errnum != 0)\n"
36066 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36067 "   fprintf (stderr, \"\\n\");\n"
36068 "   /* ... */\n"
36069 " }\n"
36070 "\n"
36071 msgstr ""
36072
36073 #. type: textblock
36074 #: ../src/guestfs.pod:1392
36075 msgid ""
36076 "Out of memory errors are handled differently.  The default action is to call "
36077 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36078 "guestfs_set_out_of_memory_handler>."
36079 msgstr ""
36080
36081 #. type: textblock
36082 #: ../src/guestfs.pod:1396
36083 msgid ""
36084 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36085 "because there is no handle if this happens there is no way to get additional "
36086 "error information.  However L</guestfs_create> is supposed to be a "
36087 "lightweight operation which can only fail because of insufficient memory (it "
36088 "returns NULL in this case)."
36089 msgstr ""
36090
36091 #. type: =head2
36092 #: ../src/guestfs.pod:1402
36093 msgid "guestfs_last_error"
36094 msgstr ""
36095
36096 #. type: verbatim
36097 #: ../src/guestfs.pod:1404
36098 #, no-wrap
36099 msgid ""
36100 " const char *guestfs_last_error (guestfs_h *g);\n"
36101 "\n"
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:1406
36106 msgid ""
36107 "This returns the last error message that happened on C<g>.  If there has not "
36108 "been an error since the handle was created, then this returns C<NULL>."
36109 msgstr ""
36110
36111 #. type: textblock
36112 #: ../src/guestfs.pod:1410
36113 msgid ""
36114 "The lifetime of the returned string is until the next error occurs, or L</"
36115 "guestfs_close> is called."
36116 msgstr ""
36117
36118 #. type: =head2
36119 #: ../src/guestfs.pod:1413
36120 msgid "guestfs_last_errno"
36121 msgstr ""
36122
36123 #. type: verbatim
36124 #: ../src/guestfs.pod:1415
36125 #, no-wrap
36126 msgid ""
36127 " int guestfs_last_errno (guestfs_h *g);\n"
36128 "\n"
36129 msgstr ""
36130
36131 #. type: textblock
36132 #: ../src/guestfs.pod:1417
36133 msgid "This returns the last error number (errno) that happened on C<g>."
36134 msgstr ""
36135
36136 #. type: textblock
36137 #: ../src/guestfs.pod:1419
36138 msgid "If successful, an errno integer not equal to zero is returned."
36139 msgstr ""
36140
36141 #. type: textblock
36142 #: ../src/guestfs.pod:1421
36143 msgid ""
36144 "If no error, this returns 0.  This call can return 0 in three situations:"
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:1428
36149 msgid "There has not been any error on the handle."
36150 msgstr ""
36151
36152 #. type: textblock
36153 #: ../src/guestfs.pod:1432
36154 msgid ""
36155 "There has been an error but the errno was meaningless.  This corresponds to "
36156 "the case where the error did not come from a failed system call, but for "
36157 "some other reason."
36158 msgstr ""
36159
36160 #. type: textblock
36161 #: ../src/guestfs.pod:1438
36162 msgid ""
36163 "There was an error from a failed system call, but for some reason the errno "
36164 "was not captured and returned.  This usually indicates a bug in libguestfs."
36165 msgstr ""
36166
36167 #. type: textblock
36168 #: ../src/guestfs.pod:1444
36169 msgid ""
36170 "Libguestfs tries to convert the errno from inside the applicance into a "
36171 "corresponding errno for the caller (not entirely trivial: the appliance "
36172 "might be running a completely different operating system from the library "
36173 "and error numbers are not standardized across Un*xen).  If this could not be "
36174 "done, then the error is translated to C<EINVAL>.  In practice this should "
36175 "only happen in very rare circumstances."
36176 msgstr ""
36177
36178 #. type: =head2
36179 #: ../src/guestfs.pod:1452
36180 msgid "guestfs_set_error_handler"
36181 msgstr ""
36182
36183 #. type: verbatim
36184 #: ../src/guestfs.pod:1454
36185 #, no-wrap
36186 msgid ""
36187 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36188 "                                           void *opaque,\n"
36189 "                                           const char *msg);\n"
36190 " void guestfs_set_error_handler (guestfs_h *g,\n"
36191 "                                 guestfs_error_handler_cb cb,\n"
36192 "                                 void *opaque);\n"
36193 "\n"
36194 msgstr ""
36195
36196 #. type: textblock
36197 #: ../src/guestfs.pod:1461
36198 msgid ""
36199 "The callback C<cb> will be called if there is an error.  The parameters "
36200 "passed to the callback are an opaque data pointer and the error message "
36201 "string."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:1465
36206 msgid ""
36207 "C<errno> is not passed to the callback.  To get that the callback must call "
36208 "L</guestfs_last_errno>."
36209 msgstr ""
36210
36211 #. type: textblock
36212 #: ../src/guestfs.pod:1468
36213 msgid ""
36214 "Note that the message string C<msg> is freed as soon as the callback "
36215 "function returns, so if you want to stash it somewhere you must make your "
36216 "own copy."
36217 msgstr ""
36218
36219 #. type: textblock
36220 #: ../src/guestfs.pod:1472
36221 msgid "The default handler prints messages on C<stderr>."
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../src/guestfs.pod:1474
36226 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36227 msgstr ""
36228
36229 #. type: =head2
36230 #: ../src/guestfs.pod:1476
36231 msgid "guestfs_get_error_handler"
36232 msgstr ""
36233
36234 #. type: verbatim
36235 #: ../src/guestfs.pod:1478
36236 #, no-wrap
36237 msgid ""
36238 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36239 "                                                     void **opaque_rtn);\n"
36240 "\n"
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:1481
36245 msgid "Returns the current error handler callback."
36246 msgstr ""
36247
36248 #. type: =head2
36249 #: ../src/guestfs.pod:1483
36250 msgid "guestfs_set_out_of_memory_handler"
36251 msgstr ""
36252
36253 #. type: verbatim
36254 #: ../src/guestfs.pod:1485
36255 #, no-wrap
36256 msgid ""
36257 " typedef void (*guestfs_abort_cb) (void);\n"
36258 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36259 "                                         guestfs_abort_cb);\n"
36260 "\n"
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:1489
36265 msgid ""
36266 "The callback C<cb> will be called if there is an out of memory situation.  "
36267 "I<Note this callback must not return>."
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:1492
36272 msgid "The default is to call L<abort(3)>."
36273 msgstr ""
36274
36275 #. type: textblock
36276 #: ../src/guestfs.pod:1494
36277 msgid ""
36278 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36279 msgstr ""
36280
36281 #. type: =head2
36282 #: ../src/guestfs.pod:1497
36283 msgid "guestfs_get_out_of_memory_handler"
36284 msgstr ""
36285
36286 #. type: verbatim
36287 #: ../src/guestfs.pod:1499
36288 #, no-wrap
36289 msgid ""
36290 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36291 "\n"
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:1501
36296 msgid "This returns the current out of memory handler."
36297 msgstr ""
36298
36299 #. type: =head1
36300 #: ../src/guestfs.pod:1503
36301 msgid "API CALLS"
36302 msgstr ""
36303
36304 #. type: =head1
36305 #: ../src/guestfs.pod:1507
36306 msgid "STRUCTURES"
36307 msgstr ""
36308
36309 #. type: textblock
36310 #: ../src/guestfs.pod:1509
36311 msgid "@STRUCTS@"
36312 msgstr ""
36313
36314 #. type: =head1
36315 #: ../src/guestfs.pod:1511
36316 msgid "AVAILABILITY"
36317 msgstr ""
36318
36319 #. type: =head2
36320 #: ../src/guestfs.pod:1513
36321 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36322 msgstr ""
36323
36324 #. type: textblock
36325 #: ../src/guestfs.pod:1515
36326 msgid ""
36327 "Using L</guestfs_available> you can test availability of the following "
36328 "groups of functions.  This test queries the appliance to see if the "
36329 "appliance you are currently using supports the functionality."
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:1520
36334 msgid "@AVAILABILITY@"
36335 msgstr ""
36336
36337 #. type: =head2
36338 #: ../src/guestfs.pod:1522
36339 msgid "GUESTFISH supported COMMAND"
36340 msgstr ""
36341
36342 #. type: textblock
36343 #: ../src/guestfs.pod:1524
36344 msgid ""
36345 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36346 "prints out the available groups and whether they are supported by this build "
36347 "of libguestfs.  Note however that you have to do C<run> first."
36348 msgstr ""
36349
36350 #. type: =head2
36351 #: ../src/guestfs.pod:1529
36352 msgid "SINGLE CALLS AT COMPILE TIME"
36353 msgstr ""
36354
36355 #. type: textblock
36356 #: ../src/guestfs.pod:1531
36357 msgid ""
36358 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36359 "function, such as:"
36360 msgstr ""
36361
36362 #. type: verbatim
36363 #: ../src/guestfs.pod:1534
36364 #, no-wrap
36365 msgid ""
36366 " #define LIBGUESTFS_HAVE_DD 1\n"
36367 "\n"
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:1536
36372 msgid "if L</guestfs_dd> is available."
36373 msgstr ""
36374
36375 #. type: textblock
36376 #: ../src/guestfs.pod:1538
36377 msgid ""
36378 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36379 "function is available at compile time, we recommended using build tools such "
36380 "as autoconf or cmake.  For example in autotools you could use:"
36381 msgstr ""
36382
36383 #. type: verbatim
36384 #: ../src/guestfs.pod:1543
36385 #, no-wrap
36386 msgid ""
36387 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36388 " AC_CHECK_FUNCS([guestfs_dd])\n"
36389 "\n"
36390 msgstr ""
36391
36392 #. type: textblock
36393 #: ../src/guestfs.pod:1546
36394 msgid ""
36395 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36396 "in your program."
36397 msgstr ""
36398
36399 #. type: =head2
36400 #: ../src/guestfs.pod:1549
36401 msgid "SINGLE CALLS AT RUN TIME"
36402 msgstr ""
36403
36404 #. type: textblock
36405 #: ../src/guestfs.pod:1551
36406 msgid ""
36407 "Testing at compile time doesn't guarantee that a function really exists in "
36408 "the library.  The reason is that you might be dynamically linked against a "
36409 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36410 "This situation unfortunately results in a segmentation fault, which is a "
36411 "shortcoming of the C dynamic linking system itself."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:1558
36416 msgid ""
36417 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36418 "in this example program (note that you still need the compile time check as "
36419 "well):"
36420 msgstr ""
36421
36422 #. type: verbatim
36423 #: ../src/guestfs.pod:1562
36424 #, no-wrap
36425 msgid ""
36426 " #include <stdio.h>\n"
36427 " #include <stdlib.h>\n"
36428 " #include <unistd.h>\n"
36429 " #include <dlfcn.h>\n"
36430 " #include <guestfs.h>\n"
36431 " \n"
36432 msgstr ""
36433
36434 #. type: verbatim
36435 #: ../src/guestfs.pod:1568
36436 #, no-wrap
36437 msgid ""
36438 " main ()\n"
36439 " {\n"
36440 " #ifdef LIBGUESTFS_HAVE_DD\n"
36441 "   void *dl;\n"
36442 "   int has_function;\n"
36443 " \n"
36444 msgstr ""
36445
36446 #. type: verbatim
36447 #: ../src/guestfs.pod:1574
36448 #, no-wrap
36449 msgid ""
36450 "   /* Test if the function guestfs_dd is really available. */\n"
36451 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36452 "   if (!dl) {\n"
36453 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36454 "     exit (EXIT_FAILURE);\n"
36455 "   }\n"
36456 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36457 "   dlclose (dl);\n"
36458 " \n"
36459 msgstr ""
36460
36461 #. type: verbatim
36462 #: ../src/guestfs.pod:1583
36463 #, no-wrap
36464 msgid ""
36465 "   if (!has_function)\n"
36466 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36467 "   else {\n"
36468 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36469 "     /* Now it's safe to call\n"
36470 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36471 "     */\n"
36472 "   }\n"
36473 " #else\n"
36474 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36475 " #endif\n"
36476 "  }\n"
36477 "\n"
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:1596
36482 msgid ""
36483 "You may think the above is an awful lot of hassle, and it is.  There are "
36484 "other ways outside of the C linking system to ensure that this kind of "
36485 "incompatibility never arises, such as using package versioning:"
36486 msgstr ""
36487
36488 #. type: verbatim
36489 #: ../src/guestfs.pod:1601
36490 #, no-wrap
36491 msgid ""
36492 " Requires: libguestfs >= 1.0.80\n"
36493 "\n"
36494 msgstr ""
36495
36496 #. type: =head1
36497 #: ../src/guestfs.pod:1603
36498 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36499 msgstr ""
36500
36501 #. type: textblock
36502 #: ../src/guestfs.pod:1605
36503 msgid ""
36504 "A recent feature of the API is the introduction of calls which take optional "
36505 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36506 "takes variable arguments (ie. C<...>), as in this example:"
36507 msgstr ""
36508
36509 #. type: verbatim
36510 #: ../src/guestfs.pod:1610
36511 #, no-wrap
36512 msgid ""
36513 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36514 "\n"
36515 msgstr ""
36516
36517 #. type: textblock
36518 #: ../src/guestfs.pod:1612
36519 msgid ""
36520 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36521 "call with no optional arguments specified:"
36522 msgstr ""
36523
36524 #. type: verbatim
36525 #: ../src/guestfs.pod:1615
36526 #, no-wrap
36527 msgid ""
36528 " guestfs_add_drive_opts (g, filename, -1);\n"
36529 "\n"
36530 msgstr ""
36531
36532 #. type: textblock
36533 #: ../src/guestfs.pod:1617
36534 msgid "With a single optional argument:"
36535 msgstr ""
36536
36537 #. type: verbatim
36538 #: ../src/guestfs.pod:1619
36539 #, no-wrap
36540 msgid ""
36541 " guestfs_add_drive_opts (g, filename,\n"
36542 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36543 "                         -1);\n"
36544 "\n"
36545 msgstr ""
36546
36547 #. type: textblock
36548 #: ../src/guestfs.pod:1623
36549 msgid "With two:"
36550 msgstr ""
36551
36552 #. type: verbatim
36553 #: ../src/guestfs.pod:1625
36554 #, no-wrap
36555 msgid ""
36556 " guestfs_add_drive_opts (g, filename,\n"
36557 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36558 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36559 "                         -1);\n"
36560 "\n"
36561 msgstr ""
36562
36563 #. type: textblock
36564 #: ../src/guestfs.pod:1630
36565 msgid ""
36566 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36567 "happen!"
36568 msgstr ""
36569
36570 #. type: =head2
36571 #: ../src/guestfs.pod:1633
36572 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36573 msgstr ""
36574
36575 #. type: textblock
36576 #: ../src/guestfs.pod:1635
36577 msgid ""
36578 "The second variant has the same name with the suffix C<_va>, which works the "
36579 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36580 "example function, this is declared:"
36581 msgstr ""
36582
36583 #. type: verbatim
36584 #: ../src/guestfs.pod:1639
36585 #, no-wrap
36586 msgid ""
36587 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36588 "                                va_list args);\n"
36589 "\n"
36590 msgstr ""
36591
36592 #. type: =head2
36593 #: ../src/guestfs.pod:1642
36594 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:1644
36599 msgid ""
36600 "The third variant is useful where you need to construct these calls.  You "
36601 "pass in a structure where you fill in the optional fields.  The structure "
36602 "has a bitmask as the first element which you must set to indicate which "
36603 "fields you have filled in.  For our example function the structure and call "
36604 "are declared:"
36605 msgstr ""
36606
36607 #. type: verbatim
36608 #: ../src/guestfs.pod:1650
36609 #, no-wrap
36610 msgid ""
36611 " struct guestfs_add_drive_opts_argv {\n"
36612 "   uint64_t bitmask;\n"
36613 "   int readonly;\n"
36614 "   const char *format;\n"
36615 "   /* ... */\n"
36616 " };\n"
36617 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36618 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36619 "\n"
36620 msgstr ""
36621
36622 #. type: textblock
36623 #: ../src/guestfs.pod:1659
36624 msgid "You could call it like this:"
36625 msgstr ""
36626
36627 #. type: verbatim
36628 #: ../src/guestfs.pod:1661
36629 #, no-wrap
36630 msgid ""
36631 " struct guestfs_add_drive_opts_argv optargs = {\n"
36632 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36633 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36634 "   .readonly = 1,\n"
36635 "   .format = \"qcow2\"\n"
36636 " };\n"
36637 " \n"
36638 msgstr ""
36639
36640 #. type: verbatim
36641 #: ../src/guestfs.pod:1668
36642 #, no-wrap
36643 msgid ""
36644 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36645 "\n"
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:1676
36650 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../src/guestfs.pod:1681
36655 msgid "You do not need to fill in all fields of the structure."
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:1685
36660 msgid ""
36661 "There must be a one-to-one correspondence between fields of the structure "
36662 "that are filled in, and bits set in the bitmask."
36663 msgstr ""
36664
36665 #. type: =head2
36666 #: ../src/guestfs.pod:1690
36667 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36668 msgstr ""
36669
36670 #. type: textblock
36671 #: ../src/guestfs.pod:1692
36672 msgid ""
36673 "In other languages, optional arguments are expressed in the way that is "
36674 "natural for that language.  We refer you to the language-specific "
36675 "documentation for more details on that."
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:1696
36680 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36681 msgstr ""
36682
36683 #. type: =head2
36684 #: ../src/guestfs.pod:1698
36685 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1700
36690 msgid ""
36691 "B<Note:> This section documents the generic event mechanism introduced in "
36692 "libguestfs 1.10, which you should use in new code if possible.  The old "
36693 "functions C<guestfs_set_log_message_callback>, "
36694 "C<guestfs_set_subprocess_quit_callback>, "
36695 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36696 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36697 "page.  Because of the ABI guarantee, the old functions continue to work."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:1709
36702 msgid ""
36703 "Handles generate events when certain things happen, such as log messages "
36704 "being generated, progress messages during long-running operations, or the "
36705 "handle being closed.  The API calls described below let you register a "
36706 "callback to be called when events happen.  You can register multiple "
36707 "callbacks (for the same, different or overlapping sets of events), and "
36708 "individually remove callbacks.  If callbacks are not removed, then they "
36709 "remain in force until the handle is closed."
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:1717
36714 msgid ""
36715 "In the current implementation, events are only generated synchronously: that "
36716 "means that events (and hence callbacks) can only happen while you are in the "
36717 "middle of making another libguestfs call.  The callback is called in the "
36718 "same thread."
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../src/guestfs.pod:1722
36723 msgid ""
36724 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36725 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36726 msgstr ""
36727
36728 #. type: =head3
36729 #: ../src/guestfs.pod:1726
36730 msgid "CLASSES OF EVENTS"
36731 msgstr ""
36732
36733 #. type: =item
36734 #: ../src/guestfs.pod:1730
36735 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:1733
36740 msgid ""
36741 "The callback function will be called while the handle is being closed "
36742 "(synchronously from L</guestfs_close>)."
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:1736
36747 msgid ""
36748 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36749 "handles that are open when the program exits.  This means that this callback "
36750 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36751 "problems in higher-level languages (eg. if your HLL interpreter has already "
36752 "been cleaned up by the time this is called, and if your callback then jumps "
36753 "into some HLL function)."
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../src/guestfs.pod:1743
36758 msgid ""
36759 "If no callback is registered: the handle is closed without any callback "
36760 "being invoked."
36761 msgstr ""
36762
36763 #. type: =item
36764 #: ../src/guestfs.pod:1746
36765 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36766 msgstr ""
36767
36768 #. type: textblock
36769 #: ../src/guestfs.pod:1749
36770 msgid ""
36771 "The callback function will be called when the child process quits, either "
36772 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36773 "corresponds to a transition from any state to the CONFIG state)."
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
36778 msgid "If no callback is registered: the event is ignored."
36779 msgstr ""
36780
36781 #. type: =item
36782 #: ../src/guestfs.pod:1755
36783 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:1758
36788 msgid ""
36789 "The callback function will be called when the child process becomes ready "
36790 "first time after it has been launched.  (This corresponds to a transition "
36791 "from LAUNCHING to the READY state)."
36792 msgstr ""
36793
36794 #. type: =item
36795 #: ../src/guestfs.pod:1764
36796 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36797 msgstr ""
36798
36799 #. type: textblock
36800 #: ../src/guestfs.pod:1767
36801 msgid ""
36802 "Some long-running operations can generate progress messages.  If this "
36803 "callback is registered, then it will be called each time a progress message "
36804 "is generated (usually two seconds after the operation started, and three "
36805 "times per second thereafter until it completes, although the frequency may "
36806 "change in future versions)."
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:1773
36811 msgid ""
36812 "The callback receives in the payload four unsigned 64 bit numbers which are "
36813 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:1776
36818 msgid ""
36819 "The units of C<total> are not defined, although for some operations C<total> "
36820 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36821 "or megabytes), and C<position> may be the portion which has been transferred."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:1781
36826 msgid "The only defined and stable parts of the API are:"
36827 msgstr ""
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:1787
36831 msgid ""
36832 "The callback can display to the user some type of progress bar or indicator "
36833 "which shows the ratio of C<position>:C<total>."
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1792
36838 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:1796
36843 msgid ""
36844 "If any progress notification is sent during a call, then a final progress "
36845 "notification is always sent when C<position> = C<total> (I<unless> the call "
36846 "fails with an error)."
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:1800
36851 msgid ""
36852 "This is to simplify caller code, so callers can easily set the progress "
36853 "indicator to \"100%\" at the end of the operation, without requiring special "
36854 "code to detect this case."
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:1806
36859 msgid ""
36860 "For some calls we are unable to estimate the progress of the call, but we "
36861 "can still generate progress messages to indicate activity.  This is known as "
36862 "\"pulse mode\", and is directly supported by certain progress bar "
36863 "implementations (eg. GtkProgressBar)."
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:1811
36868 msgid ""
36869 "For these calls, zero or more progress messages are generated with "
36870 "C<position = 0> and C<total = 1>, followed by a final message with "
36871 "C<position = total = 1>."
36872 msgstr ""
36873
36874 #. type: textblock
36875 #: ../src/guestfs.pod:1815
36876 msgid ""
36877 "As noted above, if the call fails with an error then the final message may "
36878 "not be generated."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:1820
36883 msgid ""
36884 "The callback also receives the procedure number (C<proc_nr>) and serial "
36885 "number (C<serial>) of the call.  These are only useful for debugging "
36886 "protocol issues, and the callback can normally ignore them.  The callback "
36887 "may want to print these numbers in error messages or debugging messages."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:1826
36892 msgid "If no callback is registered: progress messages are discarded."
36893 msgstr ""
36894
36895 #. type: =item
36896 #: ../src/guestfs.pod:1828
36897 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:1831
36902 msgid ""
36903 "The callback function is called whenever a log message is generated by qemu, "
36904 "the appliance kernel, guestfsd (daemon), or utility programs."
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:1834
36909 msgid ""
36910 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36911 "guestfs_launch>) then additional debug messages are generated."
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
36916 msgid ""
36917 "If no callback is registered: the messages are discarded unless the verbose "
36918 "flag is set in which case they are sent to stderr.  You can override the "
36919 "printing of verbose messages to stderr by setting up a callback."
36920 msgstr ""
36921
36922 #. type: =item
36923 #: ../src/guestfs.pod:1842
36924 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../src/guestfs.pod:1845
36929 msgid ""
36930 "The callback function is called whenever a log message is generated by the "
36931 "library part of libguestfs."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../src/guestfs.pod:1848
36936 msgid ""
36937 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36938 "messages are generated."
36939 msgstr ""
36940
36941 #. type: =item
36942 #: ../src/guestfs.pod:1856
36943 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36944 msgstr ""
36945
36946 #. type: textblock
36947 #: ../src/guestfs.pod:1859
36948 msgid ""
36949 "The callback function is called whenever a trace message is generated.  This "
36950 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36951 msgstr ""
36952
36953 #. type: textblock
36954 #: ../src/guestfs.pod:1862
36955 msgid ""
36956 "If no callback is registered: the messages are sent to stderr.  You can "
36957 "override the printing of trace messages to stderr by setting up a callback."
36958 msgstr ""
36959
36960 #. type: =item
36961 #: ../src/guestfs.pod:1866
36962 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36963 msgstr ""
36964
36965 #. type: textblock
36966 #: ../src/guestfs.pod:1869
36967 msgid ""
36968 "The callback function is called whenever a libguestfs function is entered."
36969 msgstr ""
36970
36971 #. type: textblock
36972 #: ../src/guestfs.pod:1872
36973 msgid ""
36974 "The payload is a string which contains the name of the function that we are "
36975 "entering (not including C<guestfs_> prefix)."
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:1875
36980 msgid ""
36981 "Note that libguestfs functions can call themselves, so you may see many "
36982 "events from a single call.  A few libguestfs functions do not generate this "
36983 "event."
36984 msgstr ""
36985
36986 #. type: =head3
36987 #: ../src/guestfs.pod:1883
36988 msgid "guestfs_set_event_callback"
36989 msgstr ""
36990
36991 #. type: verbatim
36992 #: ../src/guestfs.pod:1885
36993 #, no-wrap
36994 msgid ""
36995 " int guestfs_set_event_callback (guestfs_h *g,\n"
36996 "                                 guestfs_event_callback cb,\n"
36997 "                                 uint64_t event_bitmask,\n"
36998 "                                 int flags,\n"
36999 "                                 void *opaque);\n"
37000 "\n"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1891
37005 msgid ""
37006 "This function registers a callback (C<cb>) for all event classes in the "
37007 "C<event_bitmask>."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../src/guestfs.pod:1894
37012 msgid ""
37013 "For example, to register for all log message events, you could call this "
37014 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37015 "To register a single callback for all possible classes of events, use "
37016 "C<GUESTFS_EVENT_ALL>."
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:1900
37021 msgid "C<flags> should always be passed as 0."
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:1902
37026 msgid ""
37027 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37028 "it for any purpose."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../src/guestfs.pod:1905
37033 msgid ""
37034 "The return value is the event handle (an integer) which you can use to "
37035 "delete the callback (see below)."
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:1908
37040 msgid ""
37041 "If there is an error, this function returns C<-1>, and sets the error in the "
37042 "handle in the usual way (see L</guestfs_last_error> etc.)"
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:1911
37047 msgid ""
37048 "Callbacks remain in effect until they are deleted, or until the handle is "
37049 "closed."
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:1914
37054 msgid ""
37055 "In the case where multiple callbacks are registered for a particular event "
37056 "class, all of the callbacks are called.  The order in which multiple "
37057 "callbacks are called is not defined."
37058 msgstr ""
37059
37060 #. type: =head3
37061 #: ../src/guestfs.pod:1918
37062 msgid "guestfs_delete_event_callback"
37063 msgstr ""
37064
37065 #. type: verbatim
37066 #: ../src/guestfs.pod:1920
37067 #, no-wrap
37068 msgid ""
37069 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37070 "\n"
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../src/guestfs.pod:1922
37075 msgid ""
37076 "Delete a callback that was previously registered.  C<event_handle> should be "
37077 "the integer that was returned by a previous call to "
37078 "C<guestfs_set_event_callback> on the same handle."
37079 msgstr ""
37080
37081 #. type: =head3
37082 #: ../src/guestfs.pod:1926
37083 msgid "guestfs_event_callback"
37084 msgstr ""
37085
37086 #. type: verbatim
37087 #: ../src/guestfs.pod:1928
37088 #, no-wrap
37089 msgid ""
37090 " typedef void (*guestfs_event_callback) (\n"
37091 "                  guestfs_h *g,\n"
37092 "                  void *opaque,\n"
37093 "                  uint64_t event,\n"
37094 "                  int event_handle,\n"
37095 "                  int flags,\n"
37096 "                  const char *buf, size_t buf_len,\n"
37097 "                  const uint64_t *array, size_t array_len);\n"
37098 "\n"
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../src/guestfs.pod:1937
37103 msgid ""
37104 "This is the type of the event callback function that you have to provide."
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../src/guestfs.pod:1940
37109 msgid ""
37110 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37111 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37112 "handle, and C<flags> which in the current API you should ignore."
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../src/guestfs.pod:1944
37117 msgid ""
37118 "The remaining parameters contain the event payload (if any).  Each event may "
37119 "contain a payload, which usually relates to the event class, but for future "
37120 "proofing your code should be written to handle any payload for any event "
37121 "class."
37122 msgstr ""
37123
37124 #. type: textblock
37125 #: ../src/guestfs.pod:1949
37126 msgid ""
37127 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37128 "there is no message buffer).  Note that this message buffer can contain "
37129 "arbitrary 8 bit data, including NUL bytes."
37130 msgstr ""
37131
37132 #. type: textblock
37133 #: ../src/guestfs.pod:1953
37134 msgid ""
37135 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37136 "moment this is only used for progress messages."
37137 msgstr ""
37138
37139 #. type: =head3
37140 #: ../src/guestfs.pod:1956
37141 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37142 msgstr ""
37143
37144 #. type: textblock
37145 #: ../src/guestfs.pod:1958
37146 msgid ""
37147 "One motivation for the generic event API was to allow GUI programs to "
37148 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37149 "unconditionally to C<stderr>."
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../src/guestfs.pod:1962
37154 msgid ""
37155 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37156 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37157 "messages are not events; you must capture error messages separately)."
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:1967
37162 msgid ""
37163 "Programs have to set up a callback to capture the classes of events of "
37164 "interest:"
37165 msgstr ""
37166
37167 #. type: verbatim
37168 #: ../src/guestfs.pod:1970
37169 #, no-wrap
37170 msgid ""
37171 " int eh =\n"
37172 "   guestfs_set_event_callback\n"
37173 "     (g, message_callback,\n"
37174 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37175 "      GUESTFS_EVENT_TRACE,\n"
37176 "      0, NULL) == -1)\n"
37177 " if (eh == -1) {\n"
37178 "   // handle error in the usual way\n"
37179 " }\n"
37180 "\n"
37181 msgstr ""
37182
37183 #. type: textblock
37184 #: ../src/guestfs.pod:1980
37185 msgid ""
37186 "The callback can then direct messages to the appropriate place.  In this "
37187 "example, messages are directed to syslog:"
37188 msgstr ""
37189
37190 #. type: verbatim
37191 #: ../src/guestfs.pod:1983
37192 #, no-wrap
37193 msgid ""
37194 " static void\n"
37195 " message_callback (\n"
37196 "         guestfs_h *g,\n"
37197 "         void *opaque,\n"
37198 "         uint64_t event,\n"
37199 "         int event_handle,\n"
37200 "         int flags,\n"
37201 "         const char *buf, size_t buf_len,\n"
37202 "         const uint64_t *array, size_t array_len)\n"
37203 " {\n"
37204 "   const int priority = LOG_USER|LOG_INFO;\n"
37205 "   if (buf_len > 0)\n"
37206 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37207 " }\n"
37208 "\n"
37209 msgstr ""
37210
37211 #. type: =head1
37212 #: ../src/guestfs.pod:1998
37213 msgid "CANCELLING LONG TRANSFERS"
37214 msgstr ""
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:2000
37218 msgid ""
37219 "Some operations can be cancelled by the caller while they are in progress.  "
37220 "Currently only operations that involve uploading or downloading data can be "
37221 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37222 "parameters in the generator)."
37223 msgstr ""
37224
37225 #. type: =head2
37226 #: ../src/guestfs.pod:2005
37227 msgid "guestfs_user_cancel"
37228 msgstr ""
37229
37230 #. type: verbatim
37231 #: ../src/guestfs.pod:2007
37232 #, no-wrap
37233 msgid ""
37234 " void guestfs_user_cancel (guestfs_h *g);\n"
37235 "\n"
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:2009
37240 msgid ""
37241 "C<guestfs_user_cancel> cancels the current upload or download operation."
37242 msgstr ""
37243
37244 #. type: textblock
37245 #: ../src/guestfs.pod:2012
37246 msgid ""
37247 "Unlike most other libguestfs calls, this function is signal safe and thread "
37248 "safe.  You can call it from a signal handler or from another thread, without "
37249 "needing to do any locking."
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../src/guestfs.pod:2016
37254 msgid ""
37255 "The transfer that was in progress (if there is one) will stop shortly "
37256 "afterwards, and will return an error.  The errno (see L</"
37257 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37258 "out if the operation was cancelled or failed because of another error."
37259 msgstr ""
37260
37261 #. type: textblock
37262 #: ../src/guestfs.pod:2022
37263 msgid ""
37264 "No cleanup is performed: for example, if a file was being uploaded then "
37265 "after cancellation there may be a partially uploaded file.  It is the "
37266 "caller's responsibility to clean up if necessary."
37267 msgstr ""
37268
37269 #. type: textblock
37270 #: ../src/guestfs.pod:2026
37271 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:2028
37276 msgid ""
37277 "In an interactive text-based program, you might call it from a C<SIGINT> "
37278 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37279 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37280 "receive the C<^C> signal)."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:2033
37285 msgid ""
37286 "In a graphical program, when the main thread is displaying a progress bar "
37287 "with a cancel button, wire up the cancel button to call this function."
37288 msgstr ""
37289
37290 #. type: =head1
37291 #: ../src/guestfs.pod:2037
37292 msgid "PRIVATE DATA AREA"
37293 msgstr ""
37294
37295 #. type: textblock
37296 #: ../src/guestfs.pod:2039
37297 msgid ""
37298 "You can attach named pieces of private data to the libguestfs handle, fetch "
37299 "them by name, and walk over them, for the lifetime of the handle.  This is "
37300 "called the private data area and is only available from the C API."
37301 msgstr ""
37302
37303 #. type: textblock
37304 #: ../src/guestfs.pod:2044
37305 msgid "To attach a named piece of data, use the following call:"
37306 msgstr ""
37307
37308 #. type: verbatim
37309 #: ../src/guestfs.pod:2046
37310 #, no-wrap
37311 msgid ""
37312 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37313 "\n"
37314 msgstr ""
37315
37316 #. type: textblock
37317 #: ../src/guestfs.pod:2048
37318 msgid ""
37319 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37320 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37321 "overwritten."
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:2052
37326 msgid ""
37327 "You can use any C<key> you want, but your key should I<not> start with an "
37328 "underscore character.  Keys beginning with an underscore character are "
37329 "reserved for internal libguestfs purposes (eg. for implementing language "
37330 "bindings).  It is recommended that you prefix the key with some unique "
37331 "string to avoid collisions with other users."
37332 msgstr ""
37333
37334 #. type: textblock
37335 #: ../src/guestfs.pod:2058
37336 msgid "To retrieve the pointer, use:"
37337 msgstr ""
37338
37339 #. type: verbatim
37340 #: ../src/guestfs.pod:2060
37341 #, no-wrap
37342 msgid ""
37343 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37344 "\n"
37345 msgstr ""
37346
37347 #. type: textblock
37348 #: ../src/guestfs.pod:2062
37349 msgid ""
37350 "This function returns C<NULL> if either no data is found associated with "
37351 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37352 "C<NULL>."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2066
37357 msgid ""
37358 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37359 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37360 "all.  In particular, libguestfs does I<not> try to free the data when the "
37361 "handle is closed.  If the data must be freed, then the caller must either "
37362 "free it before calling L</guestfs_close> or must set up a close callback to "
37363 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37364 msgstr ""
37365
37366 #. type: textblock
37367 #: ../src/guestfs.pod:2073
37368 msgid "To walk over all entries, use these two functions:"
37369 msgstr ""
37370
37371 #. type: verbatim
37372 #: ../src/guestfs.pod:2075
37373 #, no-wrap
37374 msgid ""
37375 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37376 "\n"
37377 msgstr ""
37378
37379 #. type: verbatim
37380 #: ../src/guestfs.pod:2077
37381 #, no-wrap
37382 msgid ""
37383 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37384 "\n"
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:2079
37389 msgid ""
37390 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37391 "not have any particular meaning -- keys are not returned in any defined "
37392 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37393 "corresponding data pointer is returned from the function.  C<NULL> is "
37394 "returned if there are no keys stored in the handle."
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../src/guestfs.pod:2085
37399 msgid ""
37400 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37401 "value of this function is also C<NULL> is there are no further entries to "
37402 "return."
37403 msgstr ""
37404
37405 #. type: textblock
37406 #: ../src/guestfs.pod:2089
37407 msgid "Notes about walking over entries:"
37408 msgstr ""
37409
37410 #. type: textblock
37411 #: ../src/guestfs.pod:2095
37412 msgid ""
37413 "You must not call C<guestfs_set_private> while walking over the entries."
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:2100
37418 msgid ""
37419 "The handle maintains an internal iterator which is reset when you call "
37420 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37421 "call C<guestfs_set_private>."
37422 msgstr ""
37423
37424 #. type: textblock
37425 #: ../src/guestfs.pod:2106
37426 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37427 msgstr ""
37428
37429 #. type: verbatim
37430 #: ../src/guestfs.pod:2108
37431 #, no-wrap
37432 msgid ""
37433 " guestfs_set_private (g, key, NULL);\n"
37434 "\n"
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:2110
37439 msgid "then that C<key> is not returned when walking."
37440 msgstr ""
37441
37442 #. type: textblock
37443 #: ../src/guestfs.pod:2114
37444 msgid ""
37445 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37446 "C<guestfs_next_private> or C<guestfs_set_private>."
37447 msgstr ""
37448
37449 #. type: textblock
37450 #: ../src/guestfs.pod:2120
37451 msgid ""
37452 "The following example code shows how to print all keys and data pointers "
37453 "that are associated with the handle C<g>:"
37454 msgstr ""
37455
37456 #. type: verbatim
37457 #: ../src/guestfs.pod:2123
37458 #, no-wrap
37459 msgid ""
37460 " const char *key;\n"
37461 " void *data = guestfs_first_private (g, &key);\n"
37462 " while (data != NULL)\n"
37463 "   {\n"
37464 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37465 "     data = guestfs_next_private (g, &key);\n"
37466 "   }\n"
37467 "\n"
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../src/guestfs.pod:2131
37472 msgid ""
37473 "More commonly you are only interested in keys that begin with an application-"
37474 "specific prefix C<foo_>.  Modify the loop like so:"
37475 msgstr ""
37476
37477 #. type: verbatim
37478 #: ../src/guestfs.pod:2134
37479 #, no-wrap
37480 msgid ""
37481 " const char *key;\n"
37482 " void *data = guestfs_first_private (g, &key);\n"
37483 " while (data != NULL)\n"
37484 "   {\n"
37485 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37486 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37487 "     data = guestfs_next_private (g, &key);\n"
37488 "   }\n"
37489 "\n"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:2143
37494 msgid ""
37495 "If you need to modify keys while walking, then you have to jump back to the "
37496 "beginning of the loop.  For example, to delete all keys prefixed with "
37497 "C<foo_>:"
37498 msgstr ""
37499
37500 #. type: verbatim
37501 #: ../src/guestfs.pod:2147
37502 #, no-wrap
37503 msgid ""
37504 "  const char *key;\n"
37505 "  void *data;\n"
37506 " again:\n"
37507 "  data = guestfs_first_private (g, &key);\n"
37508 "  while (data != NULL)\n"
37509 "    {\n"
37510 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37511 "        {\n"
37512 "          guestfs_set_private (g, key, NULL);\n"
37513 "          /* note that 'key' pointer is now invalid, and so is\n"
37514 "             the internal iterator */\n"
37515 "          goto again;\n"
37516 "        }\n"
37517 "      data = guestfs_next_private (g, &key);\n"
37518 "    }\n"
37519 "\n"
37520 msgstr ""
37521
37522 #. type: textblock
37523 #: ../src/guestfs.pod:2163
37524 msgid ""
37525 "Note that the above loop is guaranteed to terminate because the keys are "
37526 "being deleted, but other manipulations of keys within the loop might not "
37527 "terminate unless you also maintain an indication of which keys have been "
37528 "visited."
37529 msgstr ""
37530
37531 #. type: =head1
37532 #: ../src/guestfs.pod:2168
37533 msgid "SYSTEMTAP"
37534 msgstr ""
37535
37536 #. type: textblock
37537 #: ../src/guestfs.pod:2170
37538 msgid ""
37539 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
37540 "true of any library, not just libguestfs.  However libguestfs also contains "
37541 "static markers to help in probing internal operations."
37542 msgstr ""
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:2174
37546 msgid "You can list all the static markers by doing:"
37547 msgstr ""
37548
37549 #. type: verbatim
37550 #: ../src/guestfs.pod:2176
37551 #, no-wrap
37552 msgid ""
37553 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
37554 "              .provider(\"guestfs\").mark(\"*\")'\n"
37555 "\n"
37556 msgstr ""
37557
37558 #. type: textblock
37559 #: ../src/guestfs.pod:2179
37560 msgid ""
37561 "B<Note:> These static markers are I<not> part of the stable API and may "
37562 "change in future versions."
37563 msgstr ""
37564
37565 #. type: =head2
37566 #: ../src/guestfs.pod:2182
37567 msgid "SYSTEMTAP SCRIPT EXAMPLE"
37568 msgstr ""
37569
37570 #. type: textblock
37571 #: ../src/guestfs.pod:2184
37572 msgid ""
37573 "This script contains examples of displaying both the static markers and some "
37574 "ordinary C entry points:"
37575 msgstr ""
37576
37577 #. type: verbatim
37578 #: ../src/guestfs.pod:2187
37579 #, no-wrap
37580 msgid ""
37581 " global last;\n"
37582 " \n"
37583 msgstr ""
37584
37585 #. type: verbatim
37586 #: ../src/guestfs.pod:2189
37587 #, no-wrap
37588 msgid ""
37589 " function display_time () {\n"
37590 "       now = gettimeofday_us ();\n"
37591 "       delta = 0;\n"
37592 "       if (last > 0)\n"
37593 "             delta = now - last;\n"
37594 "       last = now;\n"
37595 " \n"
37596 msgstr ""
37597
37598 #. type: verbatim
37599 #: ../src/guestfs.pod:2196
37600 #, no-wrap
37601 msgid ""
37602 "       printf (\"%d (+%d):\", now, delta);\n"
37603 " }\n"
37604 " \n"
37605 msgstr ""
37606
37607 #. type: verbatim
37608 #: ../src/guestfs.pod:2199
37609 #, no-wrap
37610 msgid ""
37611 " probe begin {\n"
37612 "       last = 0;\n"
37613 "       printf (\"ready\\n\");\n"
37614 " }\n"
37615 " \n"
37616 msgstr ""
37617
37618 #. type: verbatim
37619 #: ../src/guestfs.pod:2204
37620 #, no-wrap
37621 msgid ""
37622 " /* Display all calls to static markers. */\n"
37623 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37624 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
37625 "       display_time();\n"
37626 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
37627 " }\n"
37628 " \n"
37629 msgstr ""
37630
37631 #. type: verbatim
37632 #: ../src/guestfs.pod:2211
37633 #, no-wrap
37634 msgid ""
37635 " /* Display all calls to guestfs_mkfs* functions. */\n"
37636 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37637 "           .function(\"guestfs_mkfs*\") ? {\n"
37638 "       display_time();\n"
37639 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
37640 " }\n"
37641 "\n"
37642 msgstr ""
37643
37644 #. type: textblock
37645 #: ../src/guestfs.pod:2218
37646 msgid ""
37647 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
37648 "program.  Note that you either have to be root, or you have to add yourself "
37649 "to several special stap groups.  Consult the systemtap documentation for "
37650 "more information."
37651 msgstr ""
37652
37653 #. type: verbatim
37654 #: ../src/guestfs.pod:2223
37655 #, no-wrap
37656 msgid ""
37657 " # stap /tmp/test.stap\n"
37658 " ready\n"
37659 "\n"
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:2226
37664 msgid "In another terminal, run a guestfish command such as this:"
37665 msgstr ""
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:2230
37669 msgid "In the first terminal, stap trace output similar to this is shown:"
37670 msgstr ""
37671
37672 #. type: verbatim
37673 #: ../src/guestfs.pod:2232
37674 #, no-wrap
37675 msgid ""
37676 " 1318248056692655 (+0):\tlaunch_start\n"
37677 " 1318248056692850 (+195):       launch_build_appliance_start\n"
37678 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
37679 " 1318248056838059 (+19774):     launch_run_qemu\n"
37680 " 1318248061071167 (+4233108):   launch_end\n"
37681 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
37682 "\n"
37683 msgstr ""
37684
37685 #. type: =end
37686 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
37687 msgid "html"
37688 msgstr ""
37689
37690 #. type: textblock
37691 #: ../src/guestfs.pod:2241
37692 msgid ""
37693 "<!-- old anchor for the next section --> <a name="
37694 "\"state_machine_and_low_level_event_api\"/>"
37695 msgstr ""
37696
37697 #. type: =head1
37698 #: ../src/guestfs.pod:2246
37699 msgid "ARCHITECTURE"
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:2248
37704 msgid ""
37705 "Internally, libguestfs is implemented by running an appliance (a special "
37706 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37707 "process of the main program."
37708 msgstr ""
37709
37710 #. type: verbatim
37711 #: ../src/guestfs.pod:2252
37712 #, no-wrap
37713 msgid ""
37714 "  ___________________\n"
37715 " /                   \\\n"
37716 " | main program      |\n"
37717 " |                   |\n"
37718 " |                   |           child process / appliance\n"
37719 " |                   |           __________________________\n"
37720 " |                   |          / qemu                     \\\n"
37721 " +-------------------+   RPC    |      +-----------------+ |\n"
37722 " | libguestfs     <--------------------> guestfsd        | |\n"
37723 " |                   |          |      +-----------------+ |\n"
37724 " \\___________________/          |      | Linux kernel    | |\n"
37725 "                                |      +--^--------------+ |\n"
37726 "                                \\_________|________________/\n"
37727 "                                          |\n"
37728 "                                   _______v______\n"
37729 "                                  /              \\\n"
37730 "                                  | Device or    |\n"
37731 "                                  | disk image   |\n"
37732 "                                  \\______________/\n"
37733 "\n"
37734 msgstr ""
37735
37736 #. type: textblock
37737 #: ../src/guestfs.pod:2272
37738 msgid ""
37739 "The library, linked to the main program, creates the child process and hence "
37740 "the appliance in the L</guestfs_launch> function."
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:2275
37745 msgid ""
37746 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37747 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37748 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37749 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37750 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37751 "attached to the qemu process which translates device access by the "
37752 "appliance's Linux kernel into accesses to the image."
37753 msgstr ""
37754
37755 #. type: textblock
37756 #: ../src/guestfs.pod:2284
37757 msgid ""
37758 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37759 "Although the disk image you are attached to might also be used by some "
37760 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37761 "care if both libguestfs's qemu process and your virtual machine are trying "
37762 "to update the disk image at the same time, since these usually results in "
37763 "massive disk corruption)."
37764 msgstr ""
37765
37766 #. type: =head1
37767 #: ../src/guestfs.pod:2291
37768 msgid "STATE MACHINE"
37769 msgstr ""
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:2293
37773 msgid "libguestfs uses a state machine to model the child process:"
37774 msgstr ""
37775
37776 #. type: verbatim
37777 #: ../src/guestfs.pod:2295
37778 #, no-wrap
37779 msgid ""
37780 "                         |\n"
37781 "                    guestfs_create\n"
37782 "                         |\n"
37783 "                         |\n"
37784 "                     ____V_____\n"
37785 "                    /          \\\n"
37786 "                    |  CONFIG  |\n"
37787 "                    \\__________/\n"
37788 "                     ^ ^   ^  \\\n"
37789 "                    /  |    \\  \\ guestfs_launch\n"
37790 "                   /   |    _\\__V______\n"
37791 "                  /    |   /           \\\n"
37792 "                 /     |   | LAUNCHING |\n"
37793 "                /      |   \\___________/\n"
37794 "               /       |       /\n"
37795 "              /        |  guestfs_launch\n"
37796 "             /         |     /\n"
37797 "    ______  /        __|____V\n"
37798 "   /      \\ ------> /        \\\n"
37799 "   | BUSY |         | READY  |\n"
37800 "   \\______/ <------ \\________/\n"
37801 "\n"
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:2317
37806 msgid ""
37807 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37808 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37809 "(3) alternating between READY and BUSY as commands are issued to, and "
37810 "carried out by, the child process."
37811 msgstr ""
37812
37813 #. type: textblock
37814 #: ../src/guestfs.pod:2322
37815 msgid ""
37816 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37817 "asynchronously at any time (eg. due to some internal error), and that causes "
37818 "the state to transition back to CONFIG."
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:2326
37823 msgid ""
37824 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37825 "issued when in the CONFIG state."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:2329
37830 msgid ""
37831 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37832 "L</guestfs_launch> blocks until the child process is READY to accept "
37833 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37834 "moves the state from CONFIG to LAUNCHING while it is running."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:2335
37839 msgid ""
37840 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37841 "state.  These API calls block waiting for the command to be carried out (ie. "
37842 "the state to transition to BUSY and then back to READY).  There are no non-"
37843 "blocking versions, and no way to issue more than one command per handle at "
37844 "the same time."
37845 msgstr ""
37846
37847 #. type: textblock
37848 #: ../src/guestfs.pod:2341
37849 msgid ""
37850 "Finally, the child process sends asynchronous messages back to the main "
37851 "program, such as kernel log messages.  You can register a callback to "
37852 "receive these messages."
37853 msgstr ""
37854
37855 #. type: =head1
37856 #: ../src/guestfs.pod:2345
37857 msgid "INTERNALS"
37858 msgstr ""
37859
37860 #. type: =head2
37861 #: ../src/guestfs.pod:2347
37862 msgid "APPLIANCE BOOT PROCESS"
37863 msgstr ""
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:2349
37867 msgid ""
37868 "This process has evolved and continues to evolve.  The description here "
37869 "corresponds only to the current version of libguestfs and is provided for "
37870 "information only."
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:2353
37875 msgid ""
37876 "In order to follow the stages involved below, enable libguestfs debugging "
37877 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37878 msgstr ""
37879
37880 #. type: =item
37881 #: ../src/guestfs.pod:2358
37882 msgid "Create the appliance"
37883 msgstr ""
37884
37885 #. type: textblock
37886 #: ../src/guestfs.pod:2360
37887 msgid ""
37888 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37889 "initrd and the appliance."
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../src/guestfs.pod:2363
37894 msgid ""
37895 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37896 "directory if C<TMPDIR> is set)."
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../src/guestfs.pod:2366
37901 msgid ""
37902 "For a complete description of how the appliance is created and cached, read "
37903 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37904 msgstr ""
37905
37906 #. type: =item
37907 #: ../src/guestfs.pod:2370
37908 msgid "Start qemu and boot the kernel"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:2372
37913 msgid "qemu is invoked to boot the kernel."
37914 msgstr ""
37915
37916 #. type: =item
37917 #: ../src/guestfs.pod:2374
37918 msgid "Run the initrd"
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:2376
37923 msgid ""
37924 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37925 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37926 "order that the appliance itself can be mounted and started."
37927 msgstr ""
37928
37929 #. type: textblock
37930 #: ../src/guestfs.pod:2380
37931 msgid ""
37932 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37933 "initrd>."
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:2383
37938 msgid ""
37939 "When the initrd has started you will see messages showing that kernel "
37940 "modules are being loaded, similar to this:"
37941 msgstr ""
37942
37943 #. type: verbatim
37944 #: ../src/guestfs.pod:2386
37945 #, no-wrap
37946 msgid ""
37947 " febootstrap: ext2 mini initrd starting up\n"
37948 " febootstrap: mounting /sys\n"
37949 " febootstrap: internal insmod libcrc32c.ko\n"
37950 " febootstrap: internal insmod crc32c-intel.ko\n"
37951 "\n"
37952 msgstr ""
37953
37954 #. type: =item
37955 #: ../src/guestfs.pod:2391
37956 msgid "Find and mount the appliance device"
37957 msgstr ""
37958
37959 #. type: textblock
37960 #: ../src/guestfs.pod:2393
37961 msgid ""
37962 "The appliance is a sparse file containing an ext2 filesystem which contains "
37963 "a familiar (although reduced in size) Linux operating system.  It would "
37964 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:2397
37969 msgid ""
37970 "The regular disks being inspected by libguestfs are the first devices "
37971 "exposed by qemu (eg. as C</dev/vda>)."
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:2400
37976 msgid ""
37977 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37978 "there was only one regular disk)."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:2403
37983 msgid ""
37984 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37985 "and switch root into the appliance, and run C</init> from the appliance."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:2407
37990 msgid "If this works successfully you will see messages such as:"
37991 msgstr ""
37992
37993 #. type: verbatim
37994 #: ../src/guestfs.pod:2409
37995 #, no-wrap
37996 msgid ""
37997 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37998 " febootstrap: creating /dev/root as block special 252:16\n"
37999 " febootstrap: mounting new root on /root\n"
38000 " febootstrap: chroot\n"
38001 " Starting /init script ...\n"
38002 "\n"
38003 msgstr ""
38004
38005 #. type: textblock
38006 #: ../src/guestfs.pod:2415
38007 msgid ""
38008 "Note that C<Starting /init script ...> indicates that the appliance's init "
38009 "script is now running."
38010 msgstr ""
38011
38012 #. type: =item
38013 #: ../src/guestfs.pod:2418
38014 msgid "Initialize the appliance"
38015 msgstr ""
38016
38017 #. type: textblock
38018 #: ../src/guestfs.pod:2420
38019 msgid ""
38020 "The appliance itself now initializes itself.  This involves starting certain "
38021 "processes like C<udev>, possibly printing some debug information, and "
38022 "finally running the daemon (C<guestfsd>)."
38023 msgstr ""
38024
38025 #. type: =item
38026 #: ../src/guestfs.pod:2424
38027 msgid "The daemon"
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../src/guestfs.pod:2426
38032 msgid ""
38033 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38034 "should see:"
38035 msgstr ""
38036
38037 #. type: verbatim
38038 #: ../src/guestfs.pod:2429
38039 #, no-wrap
38040 msgid ""
38041 " verbose daemon enabled\n"
38042 "\n"
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:2431
38047 msgid ""
38048 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38049 "connected on the other end to the library."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:2434
38054 msgid ""
38055 "The daemon connects to this port (and hence to the library) and sends a four "
38056 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38057 "protocol (see below)."
38058 msgstr ""
38059
38060 #. type: =head2
38061 #: ../src/guestfs.pod:2440
38062 msgid "COMMUNICATION PROTOCOL"
38063 msgstr ""
38064
38065 #. type: textblock
38066 #: ../src/guestfs.pod:2442
38067 msgid ""
38068 "Don't rely on using this protocol directly.  This section documents how it "
38069 "currently works, but it may change at any time."
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../src/guestfs.pod:2445
38074 msgid ""
38075 "The protocol used to talk between the library and the daemon running inside "
38076 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38077 "1014, RFC 1832, RFC 4506)."
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:2449
38082 msgid ""
38083 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38084 "this file is automatically generated)."
38085 msgstr ""
38086
38087 #. type: textblock
38088 #: ../src/guestfs.pod:2452
38089 msgid ""
38090 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38091 "and C<FileOut> parameters, which are handled with very simple request/reply "
38092 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38093 "parameters, which use the same request and reply messages, but they may also "
38094 "be followed by files sent using a chunked encoding."
38095 msgstr ""
38096
38097 #. type: =head3
38098 #: ../src/guestfs.pod:2459
38099 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:2461
38104 msgid "For ordinary functions, the request message is:"
38105 msgstr ""
38106
38107 #. type: verbatim
38108 #: ../src/guestfs.pod:2463
38109 #, no-wrap
38110 msgid ""
38111 " total length (header + arguments,\n"
38112 "      but not including the length word itself)\n"
38113 " struct guestfs_message_header (encoded as XDR)\n"
38114 " struct guestfs_<foo>_args (encoded as XDR)\n"
38115 "\n"
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:2468
38120 msgid ""
38121 "The total length field allows the daemon to allocate a fixed size buffer "
38122 "into which it slurps the rest of the message.  As a result, the total length "
38123 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38124 "effective size of any request is limited to somewhere under this size."
38125 msgstr ""
38126
38127 #. type: textblock
38128 #: ../src/guestfs.pod:2474
38129 msgid ""
38130 "Note also that many functions don't take any arguments, in which case the "
38131 "C<guestfs_I<foo>_args> is completely omitted."
38132 msgstr ""
38133
38134 #. type: textblock
38135 #: ../src/guestfs.pod:2477
38136 msgid ""
38137 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38138 "receiver knows what type of args structure to expect, or none at all."
38139 msgstr ""
38140
38141 #. type: textblock
38142 #: ../src/guestfs.pod:2481
38143 msgid ""
38144 "For functions that take optional arguments, the optional arguments are "
38145 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38146 "arguments.  A bitmask in the header indicates which optional arguments are "
38147 "meaningful.  The bitmask is also checked to see if it contains bits set "
38148 "which the daemon does not know about (eg. if more optional arguments were "
38149 "added in a later version of the library), and this causes the call to be "
38150 "rejected."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:2489
38155 msgid "The reply message for ordinary functions is:"
38156 msgstr ""
38157
38158 #. type: verbatim
38159 #: ../src/guestfs.pod:2491
38160 #, no-wrap
38161 msgid ""
38162 " total length (header + ret,\n"
38163 "      but not including the length word itself)\n"
38164 " struct guestfs_message_header (encoded as XDR)\n"
38165 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38166 "\n"
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:2496
38171 msgid ""
38172 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38173 "functions that return no formal return values."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:2499
38178 msgid ""
38179 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:2502
38184 msgid ""
38185 "In the case of an error, a flag is set in the header, and the reply message "
38186 "is slightly changed:"
38187 msgstr ""
38188
38189 #. type: verbatim
38190 #: ../src/guestfs.pod:2505
38191 #, no-wrap
38192 msgid ""
38193 " total length (header + error,\n"
38194 "      but not including the length word itself)\n"
38195 " struct guestfs_message_header (encoded as XDR)\n"
38196 " struct guestfs_message_error (encoded as XDR)\n"
38197 "\n"
38198 msgstr ""
38199
38200 #. type: textblock
38201 #: ../src/guestfs.pod:2510
38202 msgid ""
38203 "The C<guestfs_message_error> structure contains the error message as a "
38204 "string."
38205 msgstr ""
38206
38207 #. type: =head3
38208 #: ../src/guestfs.pod:2513
38209 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:2515
38214 msgid ""
38215 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38216 "The normal request message is sent (see above).  However this is followed by "
38217 "a sequence of file chunks."
38218 msgstr ""
38219
38220 #. type: verbatim
38221 #: ../src/guestfs.pod:2519
38222 #, no-wrap
38223 msgid ""
38224 " total length (header + arguments,\n"
38225 "      but not including the length word itself,\n"
38226 "      and not including the chunks)\n"
38227 " struct guestfs_message_header (encoded as XDR)\n"
38228 " struct guestfs_<foo>_args (encoded as XDR)\n"
38229 " sequence of chunks for FileIn param #0\n"
38230 " sequence of chunks for FileIn param #1 etc.\n"
38231 "\n"
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:2527
38236 msgid "The \"sequence of chunks\" is:"
38237 msgstr ""
38238
38239 #. type: verbatim
38240 #: ../src/guestfs.pod:2529
38241 #, no-wrap
38242 msgid ""
38243 " length of chunk (not including length word itself)\n"
38244 " struct guestfs_chunk (encoded as XDR)\n"
38245 " length of chunk\n"
38246 " struct guestfs_chunk (encoded as XDR)\n"
38247 "   ...\n"
38248 " length of chunk\n"
38249 " struct guestfs_chunk (with data.data_len == 0)\n"
38250 "\n"
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:2537
38255 msgid ""
38256 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38257 "is set in the final chunk to indicate either successful completion or early "
38258 "cancellation."
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../src/guestfs.pod:2541
38263 msgid ""
38264 "At time of writing there are no functions that have more than one FileIn "
38265 "parameter.  However this is (theoretically) supported, by sending the "
38266 "sequence of chunks for each FileIn parameter one after another (from left to "
38267 "right)."
38268 msgstr ""
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:2546
38272 msgid ""
38273 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38274 "transfer.  The library does this by sending a chunk with a special flag set "
38275 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38276 "RPC, does I<not> send any reply, and goes back to reading the next request."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:2552
38281 msgid ""
38282 "The daemon may also cancel.  It does this by writing a special word "
38283 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38284 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38285 "cancel chunk).  The special word is chosen so that even if cancellation "
38286 "happens right at the end of the transfer (after the library has finished "
38287 "writing and has started listening for the reply), the \"spurious\" cancel "
38288 "flag will not be confused with the reply message."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:2561
38293 msgid ""
38294 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38295 "limit), and also files where the size is not known in advance (eg. from "
38296 "pipes or sockets).  However the chunks are rather small "
38297 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38298 "to keep much in memory."
38299 msgstr ""
38300
38301 #. type: =head3
38302 #: ../src/guestfs.pod:2567
38303 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38304 msgstr ""
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:2569
38308 msgid ""
38309 "The protocol for FileOut parameters is exactly the same as for FileIn "
38310 "parameters, but with the roles of daemon and library reversed."
38311 msgstr ""
38312
38313 #. type: verbatim
38314 #: ../src/guestfs.pod:2572
38315 #, no-wrap
38316 msgid ""
38317 " total length (header + ret,\n"
38318 "      but not including the length word itself,\n"
38319 "      and not including the chunks)\n"
38320 " struct guestfs_message_header (encoded as XDR)\n"
38321 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38322 " sequence of chunks for FileOut param #0\n"
38323 " sequence of chunks for FileOut param #1 etc.\n"
38324 "\n"
38325 msgstr ""
38326
38327 #. type: =head3
38328 #: ../src/guestfs.pod:2580
38329 msgid "INITIAL MESSAGE"
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:2582
38334 msgid ""
38335 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38336 "which indicates that the guest and daemon is alive.  This is what L</"
38337 "guestfs_launch> waits for."
38338 msgstr ""
38339
38340 #. type: =head3
38341 #: ../src/guestfs.pod:2586
38342 msgid "PROGRESS NOTIFICATION MESSAGES"
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:2588
38347 msgid ""
38348 "The daemon may send progress notification messages at any time.  These are "
38349 "distinguished by the normal length word being replaced by "
38350 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38351 msgstr ""
38352
38353 #. type: textblock
38354 #: ../src/guestfs.pod:2592
38355 msgid ""
38356 "The library turns them into progress callbacks (see L</"
38357 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38358 "if not."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:2596
38363 msgid ""
38364 "The daemon self-limits the frequency of progress messages it sends (see "
38365 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38366 "messages."
38367 msgstr ""
38368
38369 #. type: =head1
38370 #: ../src/guestfs.pod:2600
38371 msgid "LIBGUESTFS VERSION NUMBERS"
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:2602
38376 msgid ""
38377 "Since April 2010, libguestfs has started to make separate development and "
38378 "stable releases, along with corresponding branches in our git repository.  "
38379 "These separate releases can be identified by version number:"
38380 msgstr ""
38381
38382 #. type: verbatim
38383 #: ../src/guestfs.pod:2607
38384 #, no-wrap
38385 msgid ""
38386 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38387 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38388 "       |\n"
38389 "       v\n"
38390 " 1  .  3  .  5\n"
38391 " ^           ^\n"
38392 " |           |\n"
38393 " |           `-------- sub-version\n"
38394 " |\n"
38395 " `------ always '1' because we don't change the ABI\n"
38396 "\n"
38397 msgstr ""
38398
38399 #. type: textblock
38400 #: ../src/guestfs.pod:2618
38401 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38402 msgstr ""
38403
38404 #. type: textblock
38405 #: ../src/guestfs.pod:2620
38406 msgid ""
38407 "As time passes we cherry pick fixes from the development branch and backport "
38408 "those into the stable branch, the effect being that the stable branch should "
38409 "get more stable and less buggy over time.  So the stable releases are ideal "
38410 "for people who don't need new features but would just like the software to "
38411 "work."
38412 msgstr ""
38413
38414 #. type: textblock
38415 #: ../src/guestfs.pod:2626
38416 msgid "Our criteria for backporting changes are:"
38417 msgstr ""
38418
38419 #. type: textblock
38420 #: ../src/guestfs.pod:2632
38421 msgid ""
38422 "Documentation changes which don't affect any code are backported unless the "
38423 "documentation refers to a future feature which is not in stable."
38424 msgstr ""
38425
38426 #. type: textblock
38427 #: ../src/guestfs.pod:2638
38428 msgid ""
38429 "Bug fixes which are not controversial, fix obvious problems, and have been "
38430 "well tested are backported."
38431 msgstr ""
38432
38433 #. type: textblock
38434 #: ../src/guestfs.pod:2643
38435 msgid ""
38436 "Simple rearrangements of code which shouldn't affect how it works get "
38437 "backported.  This is so that the code in the two branches doesn't get too "
38438 "far out of step, allowing us to backport future fixes more easily."
38439 msgstr ""
38440
38441 #. type: textblock
38442 #: ../src/guestfs.pod:2649
38443 msgid ""
38444 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38445 "exceptional case: the new feature is required in order to implement an "
38446 "important bug fix."
38447 msgstr ""
38448
38449 #. type: textblock
38450 #: ../src/guestfs.pod:2655
38451 msgid ""
38452 "A new stable branch starts when we think the new features in development are "
38453 "substantial and compelling enough over the current stable branch to warrant "
38454 "it.  When that happens we create new stable and development versions 1.N.0 "
38455 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38456 "stable at this point, but by backporting fixes from development, that branch "
38457 "will stabilize over time."
38458 msgstr ""
38459
38460 #. type: =head1
38461 #: ../src/guestfs.pod:2663
38462 msgid "EXTENDING LIBGUESTFS"
38463 msgstr ""
38464
38465 #. type: =head2
38466 #: ../src/guestfs.pod:2665
38467 msgid "ADDING A NEW API ACTION"
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../src/guestfs.pod:2667
38472 msgid ""
38473 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38474 "documentation) are generated, and this makes it easy to extend the "
38475 "libguestfs API."
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:2671
38480 msgid "To add a new API action there are two changes:"
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:2677
38485 msgid ""
38486 "You need to add a description of the call (name, parameters, return type, "
38487 "tests, documentation) to C<generator/generator_actions.ml>."
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:2680
38492 msgid ""
38493 "There are two sorts of API action, depending on whether the call goes "
38494 "through to the daemon in the appliance, or is serviced entirely by the "
38495 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38496 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38497 "an example of the latter, since a trace flag is maintained in the handle and "
38498 "all tracing is done on the library side."
38499 msgstr ""
38500
38501 #. type: textblock
38502 #: ../src/guestfs.pod:2688
38503 msgid ""
38504 "Most new actions are of the first type, and get added to the "
38505 "C<daemon_functions> list.  Each function has a unique procedure number used "
38506 "in the RPC protocol which is assigned to that action when we publish "
38507 "libguestfs and cannot be reused.  Take the latest procedure number and "
38508 "increment it."
38509 msgstr ""
38510
38511 #. type: textblock
38512 #: ../src/guestfs.pod:2694
38513 msgid ""
38514 "For library-only actions of the second type, add to the "
38515 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38516 "library and do not travel over the RPC mechanism to the daemon, these "
38517 "functions do not need a procedure number, and so the procedure number is set "
38518 "to C<-1>."
38519 msgstr ""
38520
38521 #. type: textblock
38522 #: ../src/guestfs.pod:2702
38523 msgid "Implement the action (in C):"
38524 msgstr ""
38525
38526 #. type: textblock
38527 #: ../src/guestfs.pod:2704
38528 msgid ""
38529 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38530 "C<daemon/> directory."
38531 msgstr ""
38532
38533 #. type: textblock
38534 #: ../src/guestfs.pod:2707
38535 msgid ""
38536 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38537 "(note: double underscore) in the C<src/> directory."
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:2710
38542 msgid "In either case, use another function as an example of what to do."
38543 msgstr ""
38544
38545 #. type: textblock
38546 #: ../src/guestfs.pod:2714
38547 msgid "After making these changes, use C<make> to compile."
38548 msgstr ""
38549
38550 #. type: textblock
38551 #: ../src/guestfs.pod:2716
38552 msgid ""
38553 "Note that you don't need to implement the RPC, language bindings, manual "
38554 "pages or anything else.  It's all automatically generated from the OCaml "
38555 "description."
38556 msgstr ""
38557
38558 #. type: =head2
38559 #: ../src/guestfs.pod:2720
38560 msgid "ADDING TESTS FOR AN API ACTION"
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:2722
38565 msgid ""
38566 "You can supply zero or as many tests as you want per API call.  The tests "
38567 "can either be added as part of the API description (C<generator/"
38568 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38569 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38570 "slower, so if possible use the first method."
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:2728
38575 msgid ""
38576 "The following describes the test environment used when you add an API test "
38577 "in C<generator_actions.ml>."
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:2731
38582 msgid "The test environment has 4 block devices:"
38583 msgstr ""
38584
38585 #. type: =item
38586 #: ../src/guestfs.pod:2735
38587 msgid "C</dev/sda> 500MB"
38588 msgstr ""
38589
38590 #. type: textblock
38591 #: ../src/guestfs.pod:2737
38592 msgid "General block device for testing."
38593 msgstr ""
38594
38595 #. type: =item
38596 #: ../src/guestfs.pod:2739
38597 msgid "C</dev/sdb> 50MB"
38598 msgstr ""
38599
38600 #. type: textblock
38601 #: ../src/guestfs.pod:2741
38602 msgid ""
38603 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38604 "operations."
38605 msgstr ""
38606
38607 #. type: =item
38608 #: ../src/guestfs.pod:2744
38609 msgid "C</dev/sdc> 10MB"
38610 msgstr ""
38611
38612 #. type: textblock
38613 #: ../src/guestfs.pod:2746
38614 msgid "Used in a few tests where two block devices are needed."
38615 msgstr ""
38616
38617 #. type: =item
38618 #: ../src/guestfs.pod:2748
38619 msgid "C</dev/sdd>"
38620 msgstr ""
38621
38622 #. type: textblock
38623 #: ../src/guestfs.pod:2750
38624 msgid "ISO with fixed content (see C<images/test.iso>)."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:2754
38629 msgid ""
38630 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38631 "appliance and block devices are reused between tests.  So don't try testing "
38632 "L</guestfs_kill_subprocess> :-x"
38633 msgstr ""
38634
38635 #. type: textblock
38636 #: ../src/guestfs.pod:2758
38637 msgid ""
38638 "Each test starts with an initial scenario, selected using one of the "
38639 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38640 "initialize the disks mentioned above in a particular way as documented in "
38641 "C<generator_types.ml>.  You should not assume anything about the previous "
38642 "contents of other disks that are not initialized."
38643 msgstr ""
38644
38645 #. type: textblock
38646 #: ../src/guestfs.pod:2764
38647 msgid ""
38648 "You can add a prerequisite clause to any individual test.  This is a run-"
38649 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38650 "testing a command which might not work on all variations of libguestfs "
38651 "builds.  A test that has prerequisite of C<Always> means to run "
38652 "unconditionally."
38653 msgstr ""
38654
38655 #. type: textblock
38656 #: ../src/guestfs.pod:2770
38657 msgid ""
38658 "In addition, packagers can skip individual tests by setting environment "
38659 "variables before running C<make check>."
38660 msgstr ""
38661
38662 #. type: verbatim
38663 #: ../src/guestfs.pod:2773
38664 #, no-wrap
38665 msgid ""
38666 " SKIP_TEST_<CMD>_<NUM>=1\n"
38667 "\n"
38668 msgstr ""
38669
38670 #. type: textblock
38671 #: ../src/guestfs.pod:2775
38672 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38673 msgstr ""
38674
38675 #. type: textblock
38676 #: ../src/guestfs.pod:2777
38677 msgid "or:"
38678 msgstr ""
38679
38680 #. type: verbatim
38681 #: ../src/guestfs.pod:2779
38682 #, no-wrap
38683 msgid ""
38684 " SKIP_TEST_<CMD>=1\n"
38685 "\n"
38686 msgstr ""
38687
38688 #. type: textblock
38689 #: ../src/guestfs.pod:2781
38690 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:2783
38695 msgid "Packagers can run only certain tests by setting for example:"
38696 msgstr ""
38697
38698 #. type: verbatim
38699 #: ../src/guestfs.pod:2785
38700 #, no-wrap
38701 msgid ""
38702 " TEST_ONLY=\"vfs_type zerofree\"\n"
38703 "\n"
38704 msgstr ""
38705
38706 #. type: textblock
38707 #: ../src/guestfs.pod:2787
38708 msgid ""
38709 "See C<capitests/tests.c> for more details of how these environment variables "
38710 "work."
38711 msgstr ""
38712
38713 #. type: =head2
38714 #: ../src/guestfs.pod:2790
38715 msgid "DEBUGGING NEW API ACTIONS"
38716 msgstr ""
38717
38718 #. type: textblock
38719 #: ../src/guestfs.pod:2792
38720 msgid "Test new actions work before submitting them."
38721 msgstr ""
38722
38723 #. type: textblock
38724 #: ../src/guestfs.pod:2794
38725 msgid "You can use guestfish to try out new commands."
38726 msgstr ""
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:2796
38730 msgid ""
38731 "Debugging the daemon is a problem because it runs inside a minimal "
38732 "environment.  However you can fprintf messages in the daemon to stderr, and "
38733 "they will show up if you use C<guestfish -v>."
38734 msgstr ""
38735
38736 #. type: =head2
38737 #: ../src/guestfs.pod:2800
38738 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38739 msgstr ""
38740
38741 #. type: textblock
38742 #: ../src/guestfs.pod:2802
38743 msgid ""
38744 "Our C source code generally adheres to some basic code-formatting "
38745 "conventions.  The existing code base is not totally consistent on this "
38746 "front, but we do prefer that contributed code be formatted similarly.  In "
38747 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38748 "indentation level, and other than that, follow the K&R style."
38749 msgstr ""
38750
38751 #. type: textblock
38752 #: ../src/guestfs.pod:2808
38753 msgid ""
38754 "If you use Emacs, add the following to one of one of your start-up files (e."
38755 "g., ~/.emacs), to help ensure that you get indentation right:"
38756 msgstr ""
38757
38758 #. type: verbatim
38759 #: ../src/guestfs.pod:2811
38760 #, no-wrap
38761 msgid ""
38762 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38763 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38764 " (add-hook 'find-file-hook\n"
38765 "     '(lambda () (if (and buffer-file-name\n"
38766 "                          (string-match \"/libguestfs\\\\>\"\n"
38767 "                              (buffer-file-name))\n"
38768 "                          (not (string-equal mode-name \"Change Log\"))\n"
38769 "                          (not (string-equal mode-name \"Makefile\")))\n"
38770 "                     (setq indent-tabs-mode nil))))\n"
38771 " \n"
38772 msgstr ""
38773
38774 #. type: verbatim
38775 #: ../src/guestfs.pod:2821
38776 #, no-wrap
38777 msgid ""
38778 " ;;; When editing C sources in libguestfs, use this style.\n"
38779 " (defun libguestfs-c-mode ()\n"
38780 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38781 "   (interactive)\n"
38782 "   (c-set-style \"K&R\")\n"
38783 "   (setq c-indent-level 2)\n"
38784 "   (setq c-basic-offset 2))\n"
38785 " (add-hook 'c-mode-hook\n"
38786 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38787 "                               (buffer-file-name))\n"
38788 "                           (libguestfs-c-mode))))\n"
38789 "\n"
38790 msgstr ""
38791
38792 #. type: textblock
38793 #: ../src/guestfs.pod:2833
38794 msgid "Enable warnings when compiling (and fix any problems this finds):"
38795 msgstr ""
38796
38797 #. type: verbatim
38798 #: ../src/guestfs.pod:2836
38799 #, no-wrap
38800 msgid ""
38801 " ./configure --enable-gcc-warnings\n"
38802 "\n"
38803 msgstr ""
38804
38805 #. type: textblock
38806 #: ../src/guestfs.pod:2838
38807 msgid "Useful targets are:"
38808 msgstr ""
38809
38810 #. type: verbatim
38811 #: ../src/guestfs.pod:2840
38812 #, no-wrap
38813 msgid ""
38814 " make syntax-check  # checks the syntax of the C code\n"
38815 " make check         # runs the test suite\n"
38816 "\n"
38817 msgstr ""
38818
38819 #. type: =head2
38820 #: ../src/guestfs.pod:2843
38821 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38822 msgstr ""
38823
38824 #. type: textblock
38825 #: ../src/guestfs.pod:2845
38826 msgid ""
38827 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38828 "which are used to do shell quoting."
38829 msgstr ""
38830
38831 #. type: =item
38832 #: ../src/guestfs.pod:2850
38833 msgid "%Q"
38834 msgstr ""
38835
38836 #. type: textblock
38837 #: ../src/guestfs.pod:2852
38838 msgid ""
38839 "Simple shell quoted string.  Any spaces or other shell characters are "
38840 "escaped for you."
38841 msgstr ""
38842
38843 #. type: =item
38844 #: ../src/guestfs.pod:2855
38845 msgid "%R"
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../src/guestfs.pod:2857
38850 msgid ""
38851 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38852 "the sysroot."
38853 msgstr ""
38854
38855 #. type: verbatim
38856 #: ../src/guestfs.pod:2864
38857 #, no-wrap
38858 msgid ""
38859 " asprintf (&cmd, \"cat %R\", path);\n"
38860 "\n"
38861 msgstr ""
38862
38863 #. type: textblock
38864 #: ../src/guestfs.pod:2866
38865 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../src/guestfs.pod:2868
38870 msgid ""
38871 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38872 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38873 "they are not passed via the shell (instead, straight to exec).  You probably "
38874 "want to use the C<sysroot_path()> function however."
38875 msgstr ""
38876
38877 #. type: =head2
38878 #: ../src/guestfs.pod:2874
38879 msgid "SUBMITTING YOUR NEW API ACTIONS"
38880 msgstr ""
38881
38882 #. type: textblock
38883 #: ../src/guestfs.pod:2876
38884 msgid ""
38885 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38886 "libguestfs> and CC to L<rjones@redhat.com>."
38887 msgstr ""
38888
38889 #. type: =head2
38890 #: ../src/guestfs.pod:2880
38891 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../src/guestfs.pod:2882
38896 msgid "We support i18n (gettext anyhow) in the library."
38897 msgstr ""
38898
38899 #. type: textblock
38900 #: ../src/guestfs.pod:2884
38901 msgid ""
38902 "However many messages come from the daemon, and we don't translate those at "
38903 "the moment.  One reason is that the appliance generally has all locale files "
38904 "removed from it, because they take up a lot of space.  So we'd have to readd "
38905 "some of those, as well as copying our PO files into the appliance."
38906 msgstr ""
38907
38908 #. type: textblock
38909 #: ../src/guestfs.pod:2890
38910 msgid ""
38911 "Debugging messages are never translated, since they are intended for the "
38912 "programmers."
38913 msgstr ""
38914
38915 #. type: =head2
38916 #: ../src/guestfs.pod:2893
38917 msgid "SOURCE CODE SUBDIRECTORIES"
38918 msgstr ""
38919
38920 #. type: =item
38921 #: ../src/guestfs.pod:2897
38922 msgid "C<align>"
38923 msgstr ""
38924
38925 #. type: textblock
38926 #: ../src/guestfs.pod:2899
38927 msgid "L<virt-alignment-scan(1)> command and documentation."
38928 msgstr ""
38929
38930 #. type: textblock
38931 #: ../src/guestfs.pod:2903
38932 msgid "The libguestfs appliance, build scripts and so on."
38933 msgstr ""
38934
38935 #. type: =item
38936 #: ../src/guestfs.pod:2905
38937 msgid "C<capitests>"
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:2907
38942 msgid "Automated tests of the C API."
38943 msgstr ""
38944
38945 #. type: =item
38946 #: ../src/guestfs.pod:2909
38947 msgid "C<cat>"
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:2911
38952 msgid ""
38953 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38954 "documentation."
38955 msgstr ""
38956
38957 #. type: =item
38958 #: ../src/guestfs.pod:2914
38959 msgid "C<caution>"
38960 msgstr ""
38961
38962 #. type: textblock
38963 #: ../src/guestfs.pod:2916
38964 msgid ""
38965 "Safety and liveness tests of components that libguestfs depends upon (not of "
38966 "libguestfs itself).  Mainly this is for qemu and the kernel."
38967 msgstr ""
38968
38969 #. type: =item
38970 #: ../src/guestfs.pod:2919
38971 msgid "C<clone>"
38972 msgstr ""
38973
38974 #. type: textblock
38975 #: ../src/guestfs.pod:2921
38976 msgid ""
38977 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
38978 "command and documentation."
38979 msgstr ""
38980
38981 #. type: =item
38982 #: ../src/guestfs.pod:2924
38983 msgid "C<contrib>"
38984 msgstr ""
38985
38986 #. type: textblock
38987 #: ../src/guestfs.pod:2926
38988 msgid "Outside contributions, experimental parts."
38989 msgstr ""
38990
38991 #. type: =item
38992 #: ../src/guestfs.pod:2928
38993 msgid "C<daemon>"
38994 msgstr ""
38995
38996 #. type: textblock
38997 #: ../src/guestfs.pod:2930
38998 msgid ""
38999 "The daemon that runs inside the libguestfs appliance and carries out actions."
39000 msgstr ""
39001
39002 #. type: =item
39003 #: ../src/guestfs.pod:2933
39004 msgid "C<df>"
39005 msgstr ""
39006
39007 #. type: textblock
39008 #: ../src/guestfs.pod:2935
39009 msgid "L<virt-df(1)> command and documentation."
39010 msgstr ""
39011
39012 #. type: =item
39013 #: ../src/guestfs.pod:2937
39014 msgid "C<edit>"
39015 msgstr ""
39016
39017 #. type: textblock
39018 #: ../src/guestfs.pod:2939
39019 msgid "L<virt-edit(1)> command and documentation."
39020 msgstr ""
39021
39022 #. type: =item
39023 #: ../src/guestfs.pod:2941
39024 msgid "C<examples>"
39025 msgstr ""
39026
39027 #. type: textblock
39028 #: ../src/guestfs.pod:2943
39029 msgid "C API example code."
39030 msgstr ""
39031
39032 #. type: =item
39033 #: ../src/guestfs.pod:2945
39034 msgid "C<fish>"
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:2947
39039 msgid ""
39040 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39041 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39042 "L<virt-tar-out(1)>."
39043 msgstr ""
39044
39045 #. type: =item
39046 #: ../src/guestfs.pod:2951
39047 msgid "C<fuse>"
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../src/guestfs.pod:2953
39052 msgid ""
39053 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39054 msgstr ""
39055
39056 #. type: =item
39057 #: ../src/guestfs.pod:2955
39058 msgid "C<generator>"
39059 msgstr ""
39060
39061 #. type: textblock
39062 #: ../src/guestfs.pod:2957
39063 msgid ""
39064 "The crucially important generator, used to automatically generate large "
39065 "amounts of boilerplate C code for things like RPC and bindings."
39066 msgstr ""
39067
39068 #. type: =item
39069 #: ../src/guestfs.pod:2960
39070 msgid "C<images>"
39071 msgstr ""
39072
39073 #. type: textblock
39074 #: ../src/guestfs.pod:2962
39075 msgid "Files used by the test suite."
39076 msgstr ""
39077
39078 #. type: textblock
39079 #: ../src/guestfs.pod:2964
39080 msgid "Some \"phony\" guest images which we test against."
39081 msgstr ""
39082
39083 #. type: =item
39084 #: ../src/guestfs.pod:2966
39085 msgid "C<inspector>"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:2968
39090 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39091 msgstr ""
39092
39093 #. type: =item
39094 #: ../src/guestfs.pod:2970
39095 msgid "C<logo>"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2972
39100 msgid "Logo used on the website.  The fish is called Arthur by the way."
39101 msgstr ""
39102
39103 #. type: =item
39104 #: ../src/guestfs.pod:2974
39105 msgid "C<m4>"
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../src/guestfs.pod:2976
39110 msgid "M4 macros used by autoconf."
39111 msgstr ""
39112
39113 #. type: =item
39114 #: ../src/guestfs.pod:2978
39115 msgid "C<po>"
39116 msgstr ""
39117
39118 #. type: textblock
39119 #: ../src/guestfs.pod:2980
39120 msgid "Translations of simple gettext strings."
39121 msgstr ""
39122
39123 #. type: =item
39124 #: ../src/guestfs.pod:2982
39125 msgid "C<po-docs>"
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:2984
39130 msgid ""
39131 "The build infrastructure and PO files for translations of manpages and POD "
39132 "files.  Eventually this will be combined with the C<po> directory, but that "
39133 "is rather complicated."
39134 msgstr ""
39135
39136 #. type: =item
39137 #: ../src/guestfs.pod:2988
39138 msgid "C<regressions>"
39139 msgstr ""
39140
39141 #. type: textblock
39142 #: ../src/guestfs.pod:2990
39143 msgid "Regression tests."
39144 msgstr ""
39145
39146 #. type: =item
39147 #: ../src/guestfs.pod:2992
39148 msgid "C<rescue>"
39149 msgstr ""
39150
39151 #. type: textblock
39152 #: ../src/guestfs.pod:2994
39153 msgid "L<virt-rescue(1)> command and documentation."
39154 msgstr ""
39155
39156 #. type: =item
39157 #: ../src/guestfs.pod:2996
39158 msgid "C<resize>"
39159 msgstr ""
39160
39161 #. type: textblock
39162 #: ../src/guestfs.pod:2998
39163 msgid "L<virt-resize(1)> command and documentation."
39164 msgstr ""
39165
39166 #. type: =item
39167 #: ../src/guestfs.pod:3000
39168 msgid "C<sparsify>"
39169 msgstr ""
39170
39171 #. type: textblock
39172 #: ../src/guestfs.pod:3002
39173 msgid "L<virt-sparsify(1)> command and documentation."
39174 msgstr ""
39175
39176 #. type: =item
39177 #: ../src/guestfs.pod:3004
39178 msgid "C<src>"
39179 msgstr ""
39180
39181 #. type: textblock
39182 #: ../src/guestfs.pod:3006
39183 msgid "Source code to the C library."
39184 msgstr ""
39185
39186 #. type: =item
39187 #: ../src/guestfs.pod:3008
39188 msgid "C<tools>"
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:3010
39193 msgid ""
39194 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39195 msgstr ""
39196
39197 #. type: =item
39198 #: ../src/guestfs.pod:3012
39199 msgid "C<test-tool>"
39200 msgstr ""
39201
39202 #. type: textblock
39203 #: ../src/guestfs.pod:3014
39204 msgid ""
39205 "Test tool for end users to test if their qemu/kernel combination will work "
39206 "with libguestfs."
39207 msgstr ""
39208
39209 #. type: =item
39210 #: ../src/guestfs.pod:3017
39211 msgid "C<csharp>"
39212 msgstr ""
39213
39214 #. type: =item
39215 #: ../src/guestfs.pod:3019
39216 msgid "C<erlang>"
39217 msgstr ""
39218
39219 #. type: =item
39220 #: ../src/guestfs.pod:3021
39221 msgid "C<haskell>"
39222 msgstr ""
39223
39224 #. type: =item
39225 #: ../src/guestfs.pod:3023
39226 msgid "C<java>"
39227 msgstr ""
39228
39229 #. type: =item
39230 #: ../src/guestfs.pod:3025
39231 msgid "C<ocaml>"
39232 msgstr ""
39233
39234 #. type: =item
39235 #: ../src/guestfs.pod:3027
39236 msgid "C<php>"
39237 msgstr ""
39238
39239 #. type: =item
39240 #: ../src/guestfs.pod:3029
39241 msgid "C<perl>"
39242 msgstr ""
39243
39244 #. type: =item
39245 #: ../src/guestfs.pod:3031
39246 msgid "C<python>"
39247 msgstr ""
39248
39249 #. type: =item
39250 #: ../src/guestfs.pod:3033
39251 msgid "C<ruby>"
39252 msgstr ""
39253
39254 #. type: textblock
39255 #: ../src/guestfs.pod:3035
39256 msgid "Language bindings."
39257 msgstr ""
39258
39259 #. type: =head2
39260 #: ../src/guestfs.pod:3039
39261 msgid "MAKING A STABLE RELEASE"
39262 msgstr ""
39263
39264 #. type: textblock
39265 #: ../src/guestfs.pod:3041
39266 msgid ""
39267 "When we make a stable release, there are several steps documented here.  See "
39268 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39269 "branch policy."
39270 msgstr ""
39271
39272 #. type: textblock
39273 #: ../src/guestfs.pod:3049
39274 msgid ""
39275 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../src/guestfs.pod:3054
39280 msgid "Finalize RELEASE-NOTES."
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../src/guestfs.pod:3058
39285 msgid "Update ROADMAP."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:3062
39290 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39291 msgstr ""
39292
39293 #. type: textblock
39294 #: ../src/guestfs.pod:3066
39295 msgid "Push and pull from Transifex."
39296 msgstr ""
39297
39298 #. type: textblock
39299 #: ../src/guestfs.pod:3068
39300 msgid "Run:"
39301 msgstr ""
39302
39303 #. type: verbatim
39304 #: ../src/guestfs.pod:3070
39305 #, no-wrap
39306 msgid ""
39307 " tx push -s\n"
39308 "\n"
39309 msgstr ""
39310
39311 #. type: textblock
39312 #: ../src/guestfs.pod:3072
39313 msgid "to push the latest POT files to Transifex.  Then run:"
39314 msgstr ""
39315
39316 #. type: verbatim
39317 #: ../src/guestfs.pod:3074
39318 #, no-wrap
39319 msgid ""
39320 " ./tx-pull.sh\n"
39321 "\n"
39322 msgstr ""
39323
39324 #. type: textblock
39325 #: ../src/guestfs.pod:3076
39326 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39327 msgstr ""
39328
39329 #. type: textblock
39330 #: ../src/guestfs.pod:3080
39331 msgid ""
39332 "Create new stable and development directories under L<http://libguestfs.org/"
39333 "download>."
39334 msgstr ""
39335
39336 #. type: textblock
39337 #: ../src/guestfs.pod:3085
39338 msgid "Create the branch in git:"
39339 msgstr ""
39340
39341 #. type: verbatim
39342 #: ../src/guestfs.pod:3087
39343 #, no-wrap
39344 msgid ""
39345 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39346 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39347 " git branch stable-1.XX\n"
39348 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39349 "\n"
39350 msgstr ""
39351
39352 #. type: =head1
39353 #: ../src/guestfs.pod:3094
39354 msgid "LIMITS"
39355 msgstr ""
39356
39357 #. type: =head2
39358 #: ../src/guestfs.pod:3096
39359 msgid "PROTOCOL LIMITS"
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../src/guestfs.pod:3098
39364 msgid ""
39365 "Internally libguestfs uses a message-based protocol to pass API calls and "
39366 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39367 "plenty more detail about this).  The maximum message size used by the "
39368 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39369 "aware of this limit.  The API calls which may be affected are individually "
39370 "documented, with a link back to this section of the documentation."
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:3106
39375 msgid ""
39376 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39377 "a simple string.  Because this string is at some point internally encoded as "
39378 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39379 "the requested file is larger than this then you will get an error."
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:3112
39384 msgid ""
39385 "In order to transfer large files into and out of the guest filesystem, you "
39386 "need to use particular calls that support this.  The sections L</UPLOADING> "
39387 "and L</DOWNLOADING> document how to do this."
39388 msgstr ""
39389
39390 #. type: textblock
39391 #: ../src/guestfs.pod:3116
39392 msgid ""
39393 "You might also consider mounting the disk image using our FUSE filesystem "
39394 "support (L<guestmount(1)>)."
39395 msgstr ""
39396
39397 #. type: =head2
39398 #: ../src/guestfs.pod:3119
39399 msgid "MAXIMUM NUMBER OF DISKS"
39400 msgstr ""
39401
39402 #. type: textblock
39403 #: ../src/guestfs.pod:3121
39404 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39405 msgstr ""
39406
39407 #. type: textblock
39408 #: ../src/guestfs.pod:3124
39409 msgid ""
39410 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39411 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39412 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39413 "purposes."
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:3129
39418 msgid ""
39419 "We are working to substantially raise this limit in future versions but it "
39420 "requires complex changes to qemu."
39421 msgstr ""
39422
39423 #. type: textblock
39424 #: ../src/guestfs.pod:3132
39425 msgid ""
39426 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39427 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39428 "requires changes to qemu."
39429 msgstr ""
39430
39431 #. type: =head2
39432 #: ../src/guestfs.pod:3136
39433 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39434 msgstr ""
39435
39436 #. type: textblock
39437 #: ../src/guestfs.pod:3138
39438 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../src/guestfs.pod:3140
39443 msgid ""
39444 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39445 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../src/guestfs.pod:3143
39450 msgid ""
39451 "If you attach a disk with more than 15 partitions, the extra partitions are "
39452 "ignored by libguestfs."
39453 msgstr ""
39454
39455 #. type: =head2
39456 #: ../src/guestfs.pod:3146
39457 msgid "MAXIMUM SIZE OF A DISK"
39458 msgstr ""
39459
39460 #. type: textblock
39461 #: ../src/guestfs.pod:3148
39462 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39463 msgstr ""
39464
39465 #. type: textblock
39466 #: ../src/guestfs.pod:3150
39467 msgid ""
39468 "We have tested block devices up to 1 exabyte (2**60 or "
39469 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39470 "filesystem."
39471 msgstr ""
39472
39473 #. type: textblock
39474 #: ../src/guestfs.pod:3154
39475 msgid ""
39476 "Although libguestfs probably does not impose any limit, the underlying host "
39477 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39478 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39479 "TB).  If you store disk images as host logical volumes then you are limited "
39480 "by the maximum size of an LV."
39481 msgstr ""
39482
39483 #. type: textblock
39484 #: ../src/guestfs.pod:3160
39485 msgid ""
39486 "For the hugest disk image files, we recommend using XFS on the host for "
39487 "storage."
39488 msgstr ""
39489
39490 #. type: =head2
39491 #: ../src/guestfs.pod:3163
39492 msgid "MAXIMUM SIZE OF A PARTITION"
39493 msgstr ""
39494
39495 #. type: textblock
39496 #: ../src/guestfs.pod:3165
39497 msgid ""
39498 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39499 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39500 "address a partition located beyond 2 TB on the disk."
39501 msgstr ""
39502
39503 #. type: textblock
39504 #: ../src/guestfs.pod:3169
39505 msgid ""
39506 "It is recommended that you use GPT partitions on disks which are larger than "
39507 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39508 "which are theoretically larger than the largest disk we could support."
39509 msgstr ""
39510
39511 #. type: =head2
39512 #: ../src/guestfs.pod:3174
39513 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39514 msgstr ""
39515
39516 #. type: textblock
39517 #: ../src/guestfs.pod:3176
39518 msgid ""
39519 "This depends on the filesystem type.  libguestfs itself does not impose any "
39520 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39521 "what these limits are."
39522 msgstr ""
39523
39524 #. type: =head2
39525 #: ../src/guestfs.pod:3180
39526 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39527 msgstr ""
39528
39529 #. type: textblock
39530 #: ../src/guestfs.pod:3182
39531 msgid ""
39532 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39533 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39534 "uploads and downloads."
39535 msgstr ""
39536
39537 #. type: =head2
39538 #: ../src/guestfs.pod:3186
39539 msgid "INSPECTION LIMITS"
39540 msgstr ""
39541
39542 #. type: textblock
39543 #: ../src/guestfs.pod:3188
39544 msgid ""
39545 "The inspection code has several arbitrary limits on things like the size of "
39546 "Windows Registry hive it will read, and the length of product name.  These "
39547 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39548 "memory and disk space on the host, and should not be reached in practice.  "
39549 "See the source code for more information."
39550 msgstr ""
39551
39552 #. type: textblock
39553 #: ../src/guestfs.pod:3214
39554 msgid ""
39555 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39556 "effect as calling C<guestfs_set_verbose (g, 1)>."
39557 msgstr ""
39558
39559 #. type: textblock
39560 #: ../src/guestfs.pod:3226
39561 msgid ""
39562 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39563 "the discussion of paths in section L</PATH> above."
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../src/guestfs.pod:3235
39568 msgid "See also L</QEMU WRAPPERS> above."
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:3239
39573 msgid ""
39574 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39575 "effect as calling C<guestfs_set_trace (g, 1)>."
39576 msgstr ""
39577
39578 #. type: textblock
39579 #: ../src/guestfs.pod:3257
39580 msgid ""
39581 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39582 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39583 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
39584 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
39585 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
39586 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
39587 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
39588 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39589 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
39590 ">, L<http://libguestfs.org/>."
39591 msgstr ""
39592
39593 #. type: textblock
39594 #: ../src/guestfs.pod:3293
39595 msgid ""
39596 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39597 "(8)>, L<disktype(1)>."
39598 msgstr ""
39599
39600 #. type: =head1
39601 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
39602 #: ../tools/virt-win-reg.pl:761
39603 msgid "BUGS"
39604 msgstr ""
39605
39606 #. type: textblock
39607 #: ../src/guestfs.pod:3302
39608 msgid "To get a list of bugs against libguestfs use this link:"
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../src/guestfs.pod:3304
39613 msgid ""
39614 "L<https://bugzilla.redhat.com/buglist.cgi?"
39615 "component=libguestfs&product=Virtualization+Tools>"
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:3306
39620 msgid "To report a new bug against libguestfs use this link:"
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../src/guestfs.pod:3308
39625 msgid ""
39626 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39627 "component=libguestfs&product=Virtualization+Tools>"
39628 msgstr ""
39629
39630 #. type: textblock
39631 #: ../src/guestfs.pod:3310
39632 msgid "When reporting a bug, please check:"
39633 msgstr ""
39634
39635 #. type: textblock
39636 #: ../src/guestfs.pod:3316
39637 msgid "That the bug hasn't been reported already."
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../src/guestfs.pod:3320
39642 msgid "That you are testing a recent version."
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../src/guestfs.pod:3324
39647 msgid "Describe the bug accurately, and give a way to reproduce it."
39648 msgstr ""
39649
39650 #. type: textblock
39651 #: ../src/guestfs.pod:3328
39652 msgid ""
39653 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39654 "bug report."
39655 msgstr ""
39656
39657 #. type: textblock
39658 #: ../test-tool/libguestfs-test-tool.pod:5
39659 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39660 msgstr ""
39661
39662 #. type: verbatim
39663 #: ../test-tool/libguestfs-test-tool.pod:9
39664 #, no-wrap
39665 msgid ""
39666 " libguestfs-test-tool [--options]\n"
39667 "\n"
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../test-tool/libguestfs-test-tool.pod:13
39672 msgid ""
39673 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39674 "to check basic libguestfs functionality is working.  This is needed because "
39675 "libguestfs occasionally breaks for reasons beyond our control: usually "
39676 "because of changes in the underlying qemu or kernel packages, or the host "
39677 "environment."
39678 msgstr ""
39679
39680 #. type: textblock
39681 #: ../test-tool/libguestfs-test-tool.pod:19
39682 msgid "If you suspect a problem in libguestfs, then just run:"
39683 msgstr ""
39684
39685 #. type: verbatim
39686 #: ../test-tool/libguestfs-test-tool.pod:21
39687 #, no-wrap
39688 msgid ""
39689 " libguestfs-test-tool\n"
39690 "\n"
39691 msgstr ""
39692
39693 #. type: textblock
39694 #: ../test-tool/libguestfs-test-tool.pod:23
39695 msgid "It will print lots of diagnostic messages."
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../test-tool/libguestfs-test-tool.pod:25
39700 msgid "If it runs to completion successfully, you will see this near the end:"
39701 msgstr ""
39702
39703 #. type: verbatim
39704 #: ../test-tool/libguestfs-test-tool.pod:27
39705 #, no-wrap
39706 msgid ""
39707 " ===== TEST FINISHED OK =====\n"
39708 "\n"
39709 msgstr ""
39710
39711 #. type: textblock
39712 #: ../test-tool/libguestfs-test-tool.pod:29
39713 msgid "and the test tool will exit with code 0."
39714 msgstr ""
39715
39716 #. type: textblock
39717 #: ../test-tool/libguestfs-test-tool.pod:31
39718 msgid ""
39719 "If it fails (and/or exits with non-zero error code), please paste the "
39720 "I<complete, unedited> output of the test tool into a bug report.  More "
39721 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39722 "> website."
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../test-tool/libguestfs-test-tool.pod:42
39727 msgid "Display short usage information and exit."
39728 msgstr ""
39729
39730 #. type: =item
39731 #: ../test-tool/libguestfs-test-tool.pod:44
39732 msgid "B<--qemu qemu_binary>"
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../test-tool/libguestfs-test-tool.pod:46
39737 msgid ""
39738 "If you have downloaded another qemu binary, point this option at the full "
39739 "path of the binary to try it."
39740 msgstr ""
39741
39742 #. type: =item
39743 #: ../test-tool/libguestfs-test-tool.pod:49
39744 msgid "B<--qemudir qemu_source_dir>"
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../test-tool/libguestfs-test-tool.pod:51
39749 msgid ""
39750 "If you have compiled qemu from source, point this option at the source "
39751 "directory to try it."
39752 msgstr ""
39753
39754 #. type: =item
39755 #: ../test-tool/libguestfs-test-tool.pod:54
39756 msgid "B<-t N>"
39757 msgstr ""
39758
39759 #. type: =item
39760 #: ../test-tool/libguestfs-test-tool.pod:56
39761 msgid "B<--timeout N>"
39762 msgstr ""
39763
39764 #. type: textblock
39765 #: ../test-tool/libguestfs-test-tool.pod:58
39766 msgid ""
39767 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39768 "minutes) which does not usually need to be adjusted."
39769 msgstr ""
39770
39771 #. type: =head1
39772 #: ../test-tool/libguestfs-test-tool.pod:63
39773 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../test-tool/libguestfs-test-tool.pod:65
39778 msgid ""
39779 "If you have compiled another version of qemu from source and would like to "
39780 "try that, then you can use the I<--qemudir> option to point to the qemu "
39781 "source directory."
39782 msgstr ""
39783
39784 #. type: textblock
39785 #: ../test-tool/libguestfs-test-tool.pod:69
39786 msgid ""
39787 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39788 "option to point to the binary."
39789 msgstr ""
39790
39791 #. type: textblock
39792 #: ../test-tool/libguestfs-test-tool.pod:72
39793 msgid ""
39794 "Note when using these options, you can ignore the business of qemu wrapper "
39795 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39796 "wrapper script for you if one is needed."
39797 msgstr ""
39798
39799 #. type: =head1
39800 #: ../test-tool/libguestfs-test-tool.pod:76
39801 msgid "TRYING OUT A DIFFERENT KERNEL"
39802 msgstr ""
39803
39804 #. type: textblock
39805 #: ../test-tool/libguestfs-test-tool.pod:78
39806 msgid ""
39807 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39808 "libguestfs tries.  You do this by setting the environment variables "
39809 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../test-tool/libguestfs-test-tool.pod:82
39814 msgid ""
39815 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39816 "information."
39817 msgstr ""
39818
39819 #. type: =head1
39820 #: ../test-tool/libguestfs-test-tool.pod:85
39821 msgid "SELF-DIAGNOSIS"
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../test-tool/libguestfs-test-tool.pod:87
39826 msgid ""
39827 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39828 "produced by libguestfs-test-tool and/or possible errors."
39829 msgstr ""
39830
39831 #. type: textblock
39832 #: ../test-tool/libguestfs-test-tool.pod:92
39833 msgid ""
39834 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39835 "I<1> if there was an error."
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../test-tool/libguestfs-test-tool.pod:97
39840 msgid ""
39841 "For the full list of environment variables which may affect libguestfs, "
39842 "please see the L<guestfs(3)> manual page."
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../test-tool/libguestfs-test-tool.pod:102
39847 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39848 msgstr ""
39849
39850 #. type: textblock
39851 #: ../tools/virt-list-filesystems.pl:32
39852 msgid ""
39853 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39854 msgstr ""
39855
39856 #. type: verbatim
39857 #: ../tools/virt-list-filesystems.pl:36
39858 #, no-wrap
39859 msgid ""
39860 " virt-list-filesystems [--options] domname\n"
39861 "\n"
39862 msgstr ""
39863
39864 #. type: verbatim
39865 #: ../tools/virt-list-filesystems.pl:38
39866 #, no-wrap
39867 msgid ""
39868 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39869 "\n"
39870 msgstr ""
39871
39872 #. type: textblock
39873 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39874 msgid ""
39875 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39876 "replacement."
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../tools/virt-list-filesystems.pl:45
39881 msgid ""
39882 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39883 "are contained in a virtual machine or disk image."
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../tools/virt-list-filesystems.pl:49
39888 msgid ""
39889 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39890 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39891 "> tool."
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../tools/virt-list-filesystems.pl:112
39896 msgid ""
39897 "With this option, C<virt-list-filesystems> displays the type of each "
39898 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39899 msgstr ""
39900
39901 #. type: =item
39902 #: ../tools/virt-list-filesystems.pl:119
39903 msgid "B<-a>"
39904 msgstr ""
39905
39906 #. type: textblock
39907 #: ../tools/virt-list-filesystems.pl:123
39908 msgid ""
39909 "Normally we only show mountable filesystems.  If this option is given then "
39910 "swap devices are shown too."
39911 msgstr ""
39912
39913 #. type: textblock
39914 #: ../tools/virt-list-filesystems.pl:197
39915 msgid ""
39916 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39917 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39918 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39919 msgstr ""
39920
39921 #. type: textblock
39922 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39923 msgid "Copyright (C) 2009 Red Hat Inc."
39924 msgstr ""
39925
39926 #. type: textblock
39927 #: ../tools/virt-list-partitions.pl:32
39928 msgid ""
39929 "virt-list-partitions - List partitions in a virtual machine or disk image"
39930 msgstr ""
39931
39932 #. type: verbatim
39933 #: ../tools/virt-list-partitions.pl:36
39934 #, no-wrap
39935 msgid ""
39936 " virt-list-partitions [--options] domname\n"
39937 "\n"
39938 msgstr ""
39939
39940 #. type: verbatim
39941 #: ../tools/virt-list-partitions.pl:38
39942 #, no-wrap
39943 msgid ""
39944 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39945 "\n"
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../tools/virt-list-partitions.pl:45
39950 msgid ""
39951 "C<virt-list-partitions> is a command line tool to list the partitions that "
39952 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39953 "first step to using L<virt-resize(1)>."
39954 msgstr ""
39955
39956 #. type: textblock
39957 #: ../tools/virt-list-partitions.pl:50
39958 msgid ""
39959 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39960 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39961 "> tool."
39962 msgstr ""
39963
39964 #. type: textblock
39965 #: ../tools/virt-list-partitions.pl:113
39966 msgid "Show sizes in human-readable form (eg. \"1G\")."
39967 msgstr ""
39968
39969 #. type: textblock
39970 #: ../tools/virt-list-partitions.pl:123
39971 msgid ""
39972 "With this option, C<virt-list-partitions> displays the type and size of each "
39973 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39974 msgstr ""
39975
39976 #. type: =item
39977 #: ../tools/virt-list-partitions.pl:130
39978 msgid "B<-t>"
39979 msgstr ""
39980
39981 #. type: =item
39982 #: ../tools/virt-list-partitions.pl:132
39983 msgid "B<--total>"
39984 msgstr ""
39985
39986 #. type: textblock
39987 #: ../tools/virt-list-partitions.pl:134
39988 msgid ""
39989 "Display the total size of each block device (as a separate row or rows)."
39990 msgstr ""
39991
39992 #. type: textblock
39993 #: ../tools/virt-list-partitions.pl:267
39994 msgid ""
39995 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39996 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39997 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39998 msgstr ""
39999
40000 #. type: textblock
40001 #: ../tools/virt-list-partitions.pl:283
40002 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40003 msgstr ""
40004
40005 #. type: textblock
40006 #: ../tools/virt-make-fs.pl:37
40007 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40008 msgstr ""
40009
40010 #. type: verbatim
40011 #: ../tools/virt-make-fs.pl:41
40012 #, no-wrap
40013 msgid ""
40014 " virt-make-fs [--options] input.tar output.img\n"
40015 "\n"
40016 msgstr ""
40017
40018 #. type: verbatim
40019 #: ../tools/virt-make-fs.pl:43
40020 #, no-wrap
40021 msgid ""
40022 " virt-make-fs [--options] input.tar.gz output.img\n"
40023 "\n"
40024 msgstr ""
40025
40026 #. type: verbatim
40027 #: ../tools/virt-make-fs.pl:45
40028 #, no-wrap
40029 msgid ""
40030 " virt-make-fs [--options] directory output.img\n"
40031 "\n"
40032 msgstr ""
40033
40034 #. type: textblock
40035 #: ../tools/virt-make-fs.pl:49
40036 msgid ""
40037 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40038 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40039 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40040 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40041 "you want to attach these filesystems to existing virtual machines (eg. to "
40042 "import large amounts of read-only data to a VM)."
40043 msgstr ""
40044
40045 #. type: textblock
40046 #: ../tools/virt-make-fs.pl:57
40047 msgid "Basic usage is:"
40048 msgstr ""
40049
40050 #. type: verbatim
40051 #: ../tools/virt-make-fs.pl:59
40052 #, no-wrap
40053 msgid ""
40054 " virt-make-fs input output\n"
40055 "\n"
40056 msgstr ""
40057
40058 #. type: textblock
40059 #: ../tools/virt-make-fs.pl:61
40060 msgid ""
40061 "where C<input> is either a directory containing files that you want to add, "
40062 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40063 "C<output> is a disk image.  The input type is detected automatically.  The "
40064 "output disk image defaults to a raw ext2 image unless you specify extra "
40065 "flags (see L</OPTIONS> below)."
40066 msgstr ""
40067
40068 #. type: =head2
40069 #: ../tools/virt-make-fs.pl:67
40070 msgid "EXTRA SPACE"
40071 msgstr ""
40072
40073 #. type: textblock
40074 #: ../tools/virt-make-fs.pl:69
40075 msgid ""
40076 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40077 "the files that it contains, but might have extra space.  Depending on how "
40078 "you are going to use the output, you might think this extra space is wasted "
40079 "and want to minimize it, or you might want to leave space so that more files "
40080 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40081 "but you can use the I<--size> flag to leave space in the filesystem if you "
40082 "want it."
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../tools/virt-make-fs.pl:77
40087 msgid ""
40088 "An alternative way to leave extra space but not make the output image any "
40089 "bigger is to use an alternative disk image format (instead of the default "
40090 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40091 "image format (check your hypervisor supports this before using it).  This "
40092 "allows you to choose a large I<--size> but the extra space won't actually be "
40093 "allocated in the image until you try to store something in it."
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../tools/virt-make-fs.pl:85
40098 msgid ""
40099 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40100 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40101 "to build another image from scratch."
40102 msgstr ""
40103
40104 #. type: =head3
40105 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
40106 #: ../tools/virt-make-fs.pl:142
40107 msgid "EXAMPLE"
40108 msgstr ""
40109
40110 #. type: verbatim
40111 #: ../tools/virt-make-fs.pl:91
40112 #, no-wrap
40113 msgid ""
40114 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40115 "\n"
40116 msgstr ""
40117
40118 #. type: =head2
40119 #: ../tools/virt-make-fs.pl:93
40120 msgid "FILESYSTEM TYPE"
40121 msgstr ""
40122
40123 #. type: textblock
40124 #: ../tools/virt-make-fs.pl:95
40125 msgid ""
40126 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40127 "libguestfs supports can be used (but I<not> read-only formats like "
40128 "ISO9660).  Here are some of the more common choices:"
40129 msgstr ""
40130
40131 #. type: =item
40132 #: ../tools/virt-make-fs.pl:101
40133 msgid "I<ext3>"
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../tools/virt-make-fs.pl:103
40138 msgid ""
40139 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40140 "you are not going to use the filesystem in a way that requires the journal, "
40141 "then this is just wasted overhead."
40142 msgstr ""
40143
40144 #. type: =item
40145 #: ../tools/virt-make-fs.pl:107
40146 msgid "I<ntfs> or I<vfat>"
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../tools/virt-make-fs.pl:109
40151 msgid "Useful if exporting data to a Windows guest."
40152 msgstr ""
40153
40154 #. type: textblock
40155 #: ../tools/virt-make-fs.pl:111
40156 msgid ""
40157 "I<Note for vfat>: The tar archive or local directory must only contain files "
40158 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40159 "program running within libguestfs is unable to change the ownership of non-"
40160 "root files, since vfat itself does not support this."
40161 msgstr ""
40162
40163 #. type: =item
40164 #: ../tools/virt-make-fs.pl:116
40165 msgid "I<minix>"
40166 msgstr ""
40167
40168 #. type: textblock
40169 #: ../tools/virt-make-fs.pl:118
40170 msgid ""
40171 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40172 "total filesystem size."
40173 msgstr ""
40174
40175 #. type: verbatim
40176 #: ../tools/virt-make-fs.pl:125
40177 #, no-wrap
40178 msgid ""
40179 " virt-make-fs --type=minix input minixfs.img\n"
40180 "\n"
40181 msgstr ""
40182
40183 #. type: =head2
40184 #: ../tools/virt-make-fs.pl:127
40185 msgid "TO PARTITION OR NOT TO PARTITION"
40186 msgstr ""
40187
40188 #. type: textblock
40189 #: ../tools/virt-make-fs.pl:129
40190 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40191 msgstr ""
40192
40193 #. type: textblock
40194 #: ../tools/virt-make-fs.pl:131
40195 msgid ""
40196 "Adding a partition can make the disk image more compatible with certain "
40197 "virtualized operating systems which don't expect to see a filesystem "
40198 "directly located on a block device (Linux doesn't care and will happily "
40199 "handle both types)."
40200 msgstr ""
40201
40202 #. type: textblock
40203 #: ../tools/virt-make-fs.pl:136
40204 msgid ""
40205 "On the other hand, if you have a partition table then the output image is no "
40206 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40207 "directly on a partitioned disk image.  (However libguestfs tools such as "
40208 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40209 msgstr ""
40210
40211 #. type: textblock
40212 #: ../tools/virt-make-fs.pl:144
40213 msgid "Add an MBR partition:"
40214 msgstr ""
40215
40216 #. type: verbatim
40217 #: ../tools/virt-make-fs.pl:146
40218 #, no-wrap
40219 msgid ""
40220 " virt-make-fs --partition -- input disk.img\n"
40221 "\n"
40222 msgstr ""
40223
40224 #. type: textblock
40225 #: ../tools/virt-make-fs.pl:148
40226 msgid ""
40227 "If the output disk image could be terabyte-sized or larger, it's better to "
40228 "use an EFI/GPT-compatible partition table:"
40229 msgstr ""
40230
40231 #. type: verbatim
40232 #: ../tools/virt-make-fs.pl:151
40233 #, no-wrap
40234 msgid ""
40235 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40236 "\n"
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../tools/virt-make-fs.pl:179
40241 msgid "Enable debugging information."
40242 msgstr ""
40243
40244 #. type: =item
40245 #: ../tools/virt-make-fs.pl:185
40246 msgid "B<--size=E<lt>NE<gt>>"
40247 msgstr ""
40248
40249 #. type: =item
40250 #: ../tools/virt-make-fs.pl:187
40251 msgid "B<--size=+E<lt>NE<gt>>"
40252 msgstr ""
40253
40254 #. type: =item
40255 #: ../tools/virt-make-fs.pl:189
40256 msgid "B<-s E<lt>NE<gt>>"
40257 msgstr ""
40258
40259 #. type: =item
40260 #: ../tools/virt-make-fs.pl:191
40261 msgid "B<-s +E<lt>NE<gt>>"
40262 msgstr ""
40263
40264 #. type: textblock
40265 #: ../tools/virt-make-fs.pl:193
40266 msgid ""
40267 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40268 msgstr ""
40269
40270 #. type: textblock
40271 #: ../tools/virt-make-fs.pl:196
40272 msgid ""
40273 "If this option is I<not> given, then the output image will be just large "
40274 "enough to contain all the files, with not much wasted space."
40275 msgstr ""
40276
40277 #. type: textblock
40278 #: ../tools/virt-make-fs.pl:199
40279 msgid ""
40280 "To choose a fixed size output disk, specify an absolute number followed by b/"
40281 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40282 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40283 "files, else you will get an error."
40284 msgstr ""
40285
40286 #. type: textblock
40287 #: ../tools/virt-make-fs.pl:204
40288 msgid ""
40289 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40290 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40291 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40292 "the input files, and (approximately) an extra 200 MB free space."
40293 msgstr ""
40294
40295 #. type: textblock
40296 #: ../tools/virt-make-fs.pl:210
40297 msgid ""
40298 "Note that virt-make-fs estimates free space, and therefore will not produce "
40299 "filesystems containing precisely the free space requested.  (It is much more "
40300 "expensive and time-consuming to produce a filesystem which has precisely the "
40301 "desired free space)."
40302 msgstr ""
40303
40304 #. type: =item
40305 #: ../tools/virt-make-fs.pl:219
40306 msgid "B<--format=E<lt>fmtE<gt>>"
40307 msgstr ""
40308
40309 #. type: =item
40310 #: ../tools/virt-make-fs.pl:221
40311 msgid "B<-F E<lt>fmtE<gt>>"
40312 msgstr ""
40313
40314 #. type: textblock
40315 #: ../tools/virt-make-fs.pl:223
40316 msgid "Choose the output disk image format."
40317 msgstr ""
40318
40319 #. type: textblock
40320 #: ../tools/virt-make-fs.pl:225
40321 msgid "The default is C<raw> (raw disk image)."
40322 msgstr ""
40323
40324 #. type: textblock
40325 #: ../tools/virt-make-fs.pl:227
40326 msgid ""
40327 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40328 "that would really make sense here is C<qcow2>."
40329 msgstr ""
40330
40331 #. type: =item
40332 #: ../tools/virt-make-fs.pl:234
40333 msgid "B<--type=E<lt>fsE<gt>>"
40334 msgstr ""
40335
40336 #. type: =item
40337 #: ../tools/virt-make-fs.pl:236
40338 msgid "B<-t E<lt>fsE<gt>>"
40339 msgstr ""
40340
40341 #. type: textblock
40342 #: ../tools/virt-make-fs.pl:238
40343 msgid "Choose the output filesystem type."
40344 msgstr ""
40345
40346 #. type: textblock
40347 #: ../tools/virt-make-fs.pl:240
40348 msgid "The default is C<ext2>."
40349 msgstr ""
40350
40351 #. type: textblock
40352 #: ../tools/virt-make-fs.pl:242
40353 msgid ""
40354 "Any filesystem which is supported read-write by libguestfs can be used here."
40355 msgstr ""
40356
40357 #. type: =item
40358 #: ../tools/virt-make-fs.pl:249
40359 msgid "B<--partition>"
40360 msgstr ""
40361
40362 #. type: =item
40363 #: ../tools/virt-make-fs.pl:251
40364 msgid "B<--partition=E<lt>parttypeE<gt>>"
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../tools/virt-make-fs.pl:253
40369 msgid ""
40370 "If specified, this flag adds an MBR partition table to the output disk image."
40371 msgstr ""
40372
40373 #. type: textblock
40374 #: ../tools/virt-make-fs.pl:256
40375 msgid ""
40376 "You can change the partition table type, eg. I<--partition=gpt> for large "
40377 "disks."
40378 msgstr ""
40379
40380 #. type: textblock
40381 #: ../tools/virt-make-fs.pl:259
40382 msgid ""
40383 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40384 "might consider the next parameter to be the partition type.  For example:"
40385 msgstr ""
40386
40387 #. type: verbatim
40388 #: ../tools/virt-make-fs.pl:263
40389 #, no-wrap
40390 msgid ""
40391 " virt-make-fs --partition input.tar ...\n"
40392 "\n"
40393 msgstr ""
40394
40395 #. type: textblock
40396 #: ../tools/virt-make-fs.pl:265
40397 msgid ""
40398 "would cause virt-make-fs to think you wanted to use a partition type of "
40399 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40400 "dash) between options and the input file argument:"
40401 msgstr ""
40402
40403 #. type: verbatim
40404 #: ../tools/virt-make-fs.pl:269
40405 #, no-wrap
40406 msgid ""
40407 " virt-make-fs --partition -- input.tar ...\n"
40408 "\n"
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../tools/virt-make-fs.pl:541
40413 msgid ""
40414 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40415 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40416 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40421 msgid ""
40422 "When reporting bugs, please enable debugging and capture the I<complete> "
40423 "output:"
40424 msgstr ""
40425
40426 #. type: verbatim
40427 #: ../tools/virt-make-fs.pl:558
40428 #, no-wrap
40429 msgid ""
40430 " export LIBGUESTFS_DEBUG=1\n"
40431 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40432 "\n"
40433 msgstr ""
40434
40435 #. type: textblock
40436 #: ../tools/virt-make-fs.pl:561
40437 msgid ""
40438 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40439 "redhat.com/>"
40440 msgstr ""
40441
40442 #. type: textblock
40443 #: ../tools/virt-tar.pl:33
40444 msgid "virt-tar - Extract or upload files to a virtual machine"
40445 msgstr ""
40446
40447 #. type: verbatim
40448 #: ../tools/virt-tar.pl:37
40449 #, no-wrap
40450 msgid ""
40451 " virt-tar [--options] -x domname directory tarball\n"
40452 "\n"
40453 msgstr ""
40454
40455 #. type: verbatim
40456 #: ../tools/virt-tar.pl:39
40457 #, no-wrap
40458 msgid ""
40459 " virt-tar [--options] -u domname tarball directory\n"
40460 "\n"
40461 msgstr ""
40462
40463 #. type: verbatim
40464 #: ../tools/virt-tar.pl:41
40465 #, no-wrap
40466 msgid ""
40467 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40468 "\n"
40469 msgstr ""
40470
40471 #. type: verbatim
40472 #: ../tools/virt-tar.pl:43
40473 #, no-wrap
40474 msgid ""
40475 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40476 "\n"
40477 msgstr ""
40478
40479 #. type: =head2
40480 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40481 msgid "NOTE"
40482 msgstr ""
40483
40484 #. type: textblock
40485 #: ../tools/virt-tar.pl:47
40486 msgid ""
40487 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40488 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40489 msgstr ""
40490
40491 #. type: textblock
40492 #: ../tools/virt-tar.pl:52
40493 msgid "Download C</home> from the VM into a local tarball:"
40494 msgstr ""
40495
40496 #. type: verbatim
40497 #: ../tools/virt-tar.pl:54
40498 #, no-wrap
40499 msgid ""
40500 " virt-tar -x domname /home home.tar\n"
40501 "\n"
40502 msgstr ""
40503
40504 #. type: verbatim
40505 #: ../tools/virt-tar.pl:56
40506 #, no-wrap
40507 msgid ""
40508 " virt-tar -zx domname /home home.tar.gz\n"
40509 "\n"
40510 msgstr ""
40511
40512 #. type: textblock
40513 #: ../tools/virt-tar.pl:58
40514 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40515 msgstr ""
40516
40517 #. type: verbatim
40518 #: ../tools/virt-tar.pl:60
40519 #, no-wrap
40520 msgid ""
40521 " virt-tar -u domname uploadstuff.tar /tmp\n"
40522 "\n"
40523 msgstr ""
40524
40525 #. type: verbatim
40526 #: ../tools/virt-tar.pl:62
40527 #, no-wrap
40528 msgid ""
40529 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40530 "\n"
40531 msgstr ""
40532
40533 #. type: textblock
40534 #: ../tools/virt-tar.pl:66
40535 msgid ""
40536 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40537 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40538 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../tools/virt-tar.pl:71
40543 msgid ""
40544 "You can use I<-x> (extract) on live virtual machines, but you might get "
40545 "inconsistent results or errors if there is filesystem activity inside the "
40546 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40547 "work, but the only way to guarantee consistent results is if the virtual "
40548 "machine is shut down."
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../tools/virt-tar.pl:79
40553 msgid ""
40554 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40555 "parts of a guest filesystem.  There are many possibilities: making backups, "
40556 "uploading data files, snooping on guest activity, fixing or customizing "
40557 "guests, etc."
40558 msgstr ""
40559
40560 #. type: textblock
40561 #: ../tools/virt-tar.pl:84
40562 msgid ""
40563 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40564 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40565 "should look at the L<guestfish(1)> tool."
40566 msgstr ""
40567
40568 #. type: textblock
40569 #: ../tools/virt-tar.pl:88
40570 msgid ""
40571 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40572 "its contents (recursively) from the virtual machine into a local tarball.  "
40573 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40574 "virtual machine.  You cannot use these two options together."
40575 msgstr ""
40576
40577 #. type: textblock
40578 #: ../tools/virt-tar.pl:94
40579 msgid ""
40580 "In addition, you may need to use the I<-z> (gZip) option to enable "
40581 "compression.  When uploading, you have to specify I<-z> if the upload file "
40582 "is compressed because virt-tar won't detect this on its own."
40583 msgstr ""
40584
40585 #. type: textblock
40586 #: ../tools/virt-tar.pl:98
40587 msgid ""
40588 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40589 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40590 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40591 "the L<libguestfs(3)> API)."
40592 msgstr ""
40593
40594 #. type: =item
40595 #: ../tools/virt-tar.pl:160
40596 msgid "B<--extract>"
40597 msgstr ""
40598
40599 #. type: =item
40600 #: ../tools/virt-tar.pl:162
40601 msgid "B<--download>"
40602 msgstr ""
40603
40604 #. type: =item
40605 #: ../tools/virt-tar.pl:164
40606 msgid "B<-u>"
40607 msgstr ""
40608
40609 #. type: =item
40610 #: ../tools/virt-tar.pl:166
40611 msgid "B<--upload>"
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../tools/virt-tar.pl:168
40616 msgid ""
40617 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40618 "local tarball."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../tools/virt-tar.pl:171
40623 msgid ""
40624 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40625 "Please read the L</WARNING> section above before using this option."
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../tools/virt-tar.pl:175
40630 msgid "You must specify exactly one of these options."
40631 msgstr ""
40632
40633 #. type: =item
40634 #: ../tools/virt-tar.pl:181
40635 msgid "B<-z>"
40636 msgstr ""
40637
40638 #. type: =item
40639 #: ../tools/virt-tar.pl:183
40640 msgid "B<--gzip>"
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../tools/virt-tar.pl:185
40645 msgid "Specify that the input or output tarball is gzip-compressed."
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../tools/virt-tar.pl:298
40650 msgid ""
40651 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40652 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40653 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40654 "org/>."
40655 msgstr ""
40656
40657 #. type: textblock
40658 #: ../tools/virt-win-reg.pl:37
40659 msgid ""
40660 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40661 msgstr ""
40662
40663 #. type: verbatim
40664 #: ../tools/virt-win-reg.pl:41
40665 #, no-wrap
40666 msgid ""
40667 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40668 "\n"
40669 msgstr ""
40670
40671 #. type: verbatim
40672 #: ../tools/virt-win-reg.pl:43
40673 #, no-wrap
40674 msgid ""
40675 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40676 "\n"
40677 msgstr ""
40678
40679 #. type: verbatim
40680 #: ../tools/virt-win-reg.pl:45
40681 #, no-wrap
40682 msgid ""
40683 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40684 "\n"
40685 msgstr ""
40686
40687 #. type: verbatim
40688 #: ../tools/virt-win-reg.pl:47
40689 #, no-wrap
40690 msgid ""
40691 " virt-win-reg --merge domname [input.reg ...]\n"
40692 "\n"
40693 msgstr ""
40694
40695 #. type: verbatim
40696 #: ../tools/virt-win-reg.pl:49
40697 #, no-wrap
40698 msgid ""
40699 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40700 "\n"
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../tools/virt-win-reg.pl:53
40705 msgid ""
40706 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40707 "virtual machines.  If you do this, you I<will> get irreversible disk "
40708 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40709 "but doesn't catch all cases."
40710 msgstr ""
40711
40712 #. type: textblock
40713 #: ../tools/virt-win-reg.pl:58
40714 msgid ""
40715 "Modifying the Windows Registry is an inherently risky operation.  The format "
40716 "is deliberately obscure and undocumented, and Registry changes can leave the "
40717 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40718 "you have a reliable backup first."
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../tools/virt-win-reg.pl:65
40723 msgid ""
40724 "This program can export and merge Windows Registry entries from a Windows "
40725 "guest."
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../tools/virt-win-reg.pl:68
40730 msgid ""
40731 "The first parameter is the libvirt guest name or the raw disk image of a "
40732 "Windows guest."
40733 msgstr ""
40734
40735 #. type: textblock
40736 #: ../tools/virt-win-reg.pl:71
40737 msgid ""
40738 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40739 "exported (recursively).  For example:"
40740 msgstr ""
40741
40742 #. type: verbatim
40743 #: ../tools/virt-win-reg.pl:74
40744 #, no-wrap
40745 msgid ""
40746 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40747 "\n"
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../tools/virt-win-reg.pl:76
40752 msgid ""
40753 "You can also display single values from within registry keys, for example:"
40754 msgstr ""
40755
40756 #. type: verbatim
40757 #: ../tools/virt-win-reg.pl:79
40758 #, no-wrap
40759 msgid ""
40760 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40761 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40762 " Windows 7 Enterprise\n"
40763 "\n"
40764 msgstr ""
40765
40766 #. type: textblock
40767 #: ../tools/virt-win-reg.pl:83
40768 msgid ""
40769 "With I<--merge>, you can merge a textual regedit file into the Windows "
40770 "Registry:"
40771 msgstr ""
40772
40773 #. type: verbatim
40774 #: ../tools/virt-win-reg.pl:86
40775 #, no-wrap
40776 msgid ""
40777 " $ virt-win-reg --merge Windows7 changes.reg\n"
40778 "\n"
40779 msgstr ""
40780
40781 #. type: textblock
40782 #: ../tools/virt-win-reg.pl:90
40783 msgid ""
40784 "This program is only meant for simple access to the registry.  If you want "
40785 "to do complicated things with the registry, we suggest you download the "
40786 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40787 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40788 "L<hivexregedit(1)>."
40789 msgstr ""
40790
40791 #. type: =item
40792 #: ../tools/virt-win-reg.pl:159
40793 msgid "B<--merge>"
40794 msgstr ""
40795
40796 #. type: textblock
40797 #: ../tools/virt-win-reg.pl:161
40798 msgid ""
40799 "In merge mode, this merges a textual regedit file into the Windows Registry "
40800 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40801 "displays or exports Registry entries instead."
40802 msgstr ""
40803
40804 #. type: textblock
40805 #: ../tools/virt-win-reg.pl:165
40806 msgid ""
40807 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40808 "result in disk corruption.  However exporting (without this flag)  is always "
40809 "safe."
40810 msgstr ""
40811
40812 #. type: =item
40813 #: ../tools/virt-win-reg.pl:173
40814 msgid "B<--encoding> UTF-16LE|ASCII"
40815 msgstr ""
40816
40817 #. type: textblock
40818 #: ../tools/virt-win-reg.pl:175
40819 msgid ""
40820 "When merging (only), you may need to specify the encoding for strings to be "
40821 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40822 "(3)/ENCODING STRINGS>."
40823 msgstr ""
40824
40825 #. type: textblock
40826 #: ../tools/virt-win-reg.pl:179
40827 msgid ""
40828 "The default is to use UTF-16LE, which should work with recent versions of "
40829 "Windows."
40830 msgstr ""
40831
40832 #. type: =item
40833 #: ../tools/virt-win-reg.pl:186
40834 msgid "B<--unsafe-printable-strings>"
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../tools/virt-win-reg.pl:188
40839 msgid ""
40840 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40841 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40842 "present."
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../tools/virt-win-reg.pl:192
40847 msgid ""
40848 "This is unsafe and does not preserve the fidelity of strings in the original "
40849 "Registry for various reasons:"
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../tools/virt-win-reg.pl:199
40854 msgid ""
40855 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40856 "other encodings will be corrupted by this transformation."
40857 msgstr ""
40858
40859 #. type: textblock
40860 #: ../tools/virt-win-reg.pl:204
40861 msgid ""
40862 "Assumes that everything which has type 1 or 2 is really a string and that "
40863 "everything else is not a string, but the type field in real Registries is "
40864 "not reliable."
40865 msgstr ""
40866
40867 #. type: textblock
40868 #: ../tools/virt-win-reg.pl:210
40869 msgid ""
40870 "Loses information about whether a zero codepoint followed the string in the "
40871 "Registry or not."
40872 msgstr ""
40873
40874 #. type: textblock
40875 #: ../tools/virt-win-reg.pl:215
40876 msgid ""
40877 "This all happens because the Registry itself contains no information about "
40878 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40879 msgstr ""
40880
40881 #. type: textblock
40882 #: ../tools/virt-win-reg.pl:219
40883 msgid ""
40884 "You should only use this option for quick hacking and debugging of the "
40885 "Registry contents, and I<never> use it if the output is going to be passed "
40886 "into another program or stored in another Registry."
40887 msgstr ""
40888
40889 #. type: =head1
40890 #: ../tools/virt-win-reg.pl:556
40891 msgid "SUPPORTED SYSTEMS"
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../tools/virt-win-reg.pl:558
40896 msgid ""
40897 "The program currently supports Windows NT-derived guests starting with "
40898 "Windows XP through to at least Windows 7."
40899 msgstr ""
40900
40901 #. type: textblock
40902 #: ../tools/virt-win-reg.pl:561
40903 msgid "The following Registry keys are supported:"
40904 msgstr ""
40905
40906 #. type: =item
40907 #: ../tools/virt-win-reg.pl:565
40908 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40909 msgstr ""
40910
40911 #. type: =item
40912 #: ../tools/virt-win-reg.pl:567
40913 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40914 msgstr ""
40915
40916 #. type: =item
40917 #: ../tools/virt-win-reg.pl:569
40918 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40919 msgstr ""
40920
40921 #. type: =item
40922 #: ../tools/virt-win-reg.pl:571
40923 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40924 msgstr ""
40925
40926 #. type: =item
40927 #: ../tools/virt-win-reg.pl:573
40928 msgid "C<HKEY_USERS\\.DEFAULT>"
40929 msgstr ""
40930
40931 #. type: =item
40932 #: ../tools/virt-win-reg.pl:575
40933 msgid "C<HKEY_USERS\\I<SID>>"
40934 msgstr ""
40935
40936 #. type: textblock
40937 #: ../tools/virt-win-reg.pl:577
40938 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40939 msgstr ""
40940
40941 #. type: =item
40942 #: ../tools/virt-win-reg.pl:579
40943 msgid "C<HKEY_USERS\\I<username>>"
40944 msgstr ""
40945
40946 #. type: textblock
40947 #: ../tools/virt-win-reg.pl:581
40948 msgid ""
40949 "where I<username> is a local user name (this is a libguestfs extension)."
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../tools/virt-win-reg.pl:585
40954 msgid ""
40955 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40956 "C<HKEY_USERS>."
40957 msgstr ""
40958
40959 #. type: textblock
40960 #: ../tools/virt-win-reg.pl:588
40961 msgid ""
40962 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40963 "supported (there is no \"current user\")."
40964 msgstr ""
40965
40966 #. type: =head1
40967 #: ../tools/virt-win-reg.pl:591
40968 msgid "ENCODING"
40969 msgstr ""
40970
40971 #. type: textblock
40972 #: ../tools/virt-win-reg.pl:593
40973 msgid ""
40974 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40975 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40976 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40977 "Windows-style line endings, you may need to reencode the whole file before "
40978 "or after processing."
40979 msgstr ""
40980
40981 #. type: textblock
40982 #: ../tools/virt-win-reg.pl:599
40983 msgid ""
40984 "To reencode a file from Windows format to Linux (before processing it with "
40985 "the I<--merge> option), you would do something like this:"
40986 msgstr ""
40987
40988 #. type: verbatim
40989 #: ../tools/virt-win-reg.pl:602
40990 #, no-wrap
40991 msgid ""
40992 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40993 "\n"
40994 msgstr ""
40995
40996 #. type: textblock
40997 #: ../tools/virt-win-reg.pl:604
40998 msgid ""
40999 "To go in the opposite direction, after exporting and before sending the file "
41000 "to a Windows user, do something like this:"
41001 msgstr ""
41002
41003 #. type: verbatim
41004 #: ../tools/virt-win-reg.pl:607
41005 #, no-wrap
41006 msgid ""
41007 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41008 "\n"
41009 msgstr ""
41010
41011 #. type: textblock
41012 #: ../tools/virt-win-reg.pl:609
41013 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41014 msgstr ""
41015
41016 #. type: textblock
41017 #: ../tools/virt-win-reg.pl:611
41018 msgid ""
41019 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41020 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41021 "style (CRLF) line endings, like this:"
41022 msgstr ""
41023
41024 #. type: verbatim
41025 #: ../tools/virt-win-reg.pl:615
41026 #, no-wrap
41027 msgid ""
41028 " $ file software.reg\n"
41029 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41030 " with CRLF line terminators\n"
41031 "\n"
41032 msgstr ""
41033
41034 #. type: textblock
41035 #: ../tools/virt-win-reg.pl:619
41036 msgid "This file would need conversion before you could I<--merge> it."
41037 msgstr ""
41038
41039 #. type: =head1
41040 #: ../tools/virt-win-reg.pl:621
41041 msgid "CurrentControlSet etc."
41042 msgstr ""
41043
41044 #. type: textblock
41045 #: ../tools/virt-win-reg.pl:623
41046 msgid ""
41047 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41048 "Registry at the level of the hive file, and therefore you cannot modify "
41049 "these."
41050 msgstr ""
41051
41052 #. type: textblock
41053 #: ../tools/virt-win-reg.pl:627
41054 msgid ""
41055 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41056 "circumstances it might refer to another control set.  The way to find out is "
41057 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41058 msgstr ""
41059
41060 #. type: verbatim
41061 #: ../tools/virt-win-reg.pl:631
41062 #, no-wrap
41063 msgid ""
41064 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41065 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41066 " \"Current\"=dword:00000001\n"
41067 " \"Default\"=dword:00000001\n"
41068 " \"Failed\"=dword:00000000\n"
41069 " \"LastKnownGood\"=dword:00000002\n"
41070 "\n"
41071 msgstr ""
41072
41073 #. type: textblock
41074 #: ../tools/virt-win-reg.pl:638
41075 msgid "\"Current\" is the one which Windows will choose when it boots."
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../tools/virt-win-reg.pl:640
41080 msgid ""
41081 "Similarly, other C<Current...> keys in the path may need to be replaced."
41082 msgstr ""
41083
41084 #. type: =head1
41085 #: ../tools/virt-win-reg.pl:643
41086 msgid "WINDOWS TIPS"
41087 msgstr ""
41088
41089 #. type: textblock
41090 #: ../tools/virt-win-reg.pl:645
41091 msgid ""
41092 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41093 "be shut off, else you will get disk corruption."
41094 msgstr ""
41095
41096 #. type: =head2
41097 #: ../tools/virt-win-reg.pl:648
41098 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41099 msgstr ""
41100
41101 #. type: textblock
41102 #: ../tools/virt-win-reg.pl:650
41103 msgid ""
41104 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41105 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41106 "is uploaded into C<C:\\>:"
41107 msgstr ""
41108
41109 #. type: verbatim
41110 #: ../tools/virt-win-reg.pl:654
41111 #, no-wrap
41112 msgid ""
41113 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41114 "\n"
41115 msgstr ""
41116
41117 #. type: textblock
41118 #: ../tools/virt-win-reg.pl:656
41119 msgid "Prepare a regedit file containing the registry change:"
41120 msgstr ""
41121
41122 #. type: verbatim
41123 #: ../tools/virt-win-reg.pl:658
41124 #, no-wrap
41125 msgid ""
41126 " cat > test.reg <<'EOF'\n"
41127 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41128 " \"Test\"=\"c:\\\\test.bat\"\n"
41129 " EOF\n"
41130 "\n"
41131 msgstr ""
41132
41133 #. type: textblock
41134 #: ../tools/virt-win-reg.pl:663
41135 msgid ""
41136 "In this example we use the key C<RunOnce> which means that the script will "
41137 "run precisely once when the first user logs in.  If you want it to run every "
41138 "time a user logs in, replace C<RunOnce> with C<Run>."
41139 msgstr ""
41140
41141 #. type: textblock
41142 #: ../tools/virt-win-reg.pl:667
41143 msgid "Now update the registry:"
41144 msgstr ""
41145
41146 #. type: verbatim
41147 #: ../tools/virt-win-reg.pl:669
41148 #, no-wrap
41149 msgid ""
41150 " virt-win-reg --merge WindowsGuest test.reg\n"
41151 "\n"
41152 msgstr ""
41153
41154 #. type: =head2
41155 #: ../tools/virt-win-reg.pl:671
41156 msgid "INSTALLING A SERVICE"
41157 msgstr ""
41158
41159 #. type: textblock
41160 #: ../tools/virt-win-reg.pl:673
41161 msgid ""
41162 "This section assumes you are familiar with Windows services, and you either "
41163 "have a program which handles the Windows Service Control Protocol directly "
41164 "or you want to run any program using a service wrapper like SrvAny or the "
41165 "free RHSrvAny."
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../tools/virt-win-reg.pl:678
41170 msgid ""
41171 "First upload the program and optionally the service wrapper.  In this case "
41172 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41173 msgstr ""
41174
41175 #. type: verbatim
41176 #: ../tools/virt-win-reg.pl:682
41177 #, no-wrap
41178 msgid ""
41179 " guestfish -i -d WindowsGuest <<EOF\n"
41180 "   upload rhsrvany.exe /rhsrvany.exe\n"
41181 "   upload test.exe /test.exe\n"
41182 " EOF\n"
41183 "\n"
41184 msgstr ""
41185
41186 #. type: textblock
41187 #: ../tools/virt-win-reg.pl:687
41188 msgid ""
41189 "Prepare a regedit file containing the registry changes.  In this example, "
41190 "the first registry change is needed for the service itself or the service "
41191 "wrapper (if used).  The second registry change is only needed because I am "
41192 "using the RHSrvAny service wrapper."
41193 msgstr ""
41194
41195 #. type: verbatim
41196 #: ../tools/virt-win-reg.pl:692
41197 #, no-wrap
41198 msgid ""
41199 " cat > service.reg <<'EOF'\n"
41200 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41201 " \"Type\"=dword:00000010\n"
41202 " \"Start\"=dword:00000002\n"
41203 " \"ErrorControl\"=dword:00000001\n"
41204 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41205 " \"DisplayName\"=\"RHSrvAny\"\n"
41206 " \"ObjectName\"=\"NetworkService\"\n"
41207 " \n"
41208 msgstr ""
41209
41210 #. type: verbatim
41211 #: ../tools/virt-win-reg.pl:701
41212 #, no-wrap
41213 msgid ""
41214 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41215 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41216 " \"PWD\"=\"c:\\\\Temp\"\n"
41217 " EOF\n"
41218 "\n"
41219 msgstr ""
41220
41221 #. type: textblock
41222 #: ../tools/virt-win-reg.pl:712
41223 msgid ""
41224 "For use of C<ControlSet001> see the section above in this manual page.  You "
41225 "may need to adjust this according to the control set that is in use by the "
41226 "guest."
41227 msgstr ""
41228
41229 #. type: textblock
41230 #: ../tools/virt-win-reg.pl:718
41231 msgid ""
41232 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41233 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41234 "privileged account."
41235 msgstr ""
41236
41237 #. type: textblock
41238 #: ../tools/virt-win-reg.pl:724
41239 msgid ""
41240 "For the meaning of the magic numbers, see this Microsoft KB article: "
41241 "L<http://support.microsoft.com/kb/103000>."
41242 msgstr ""
41243
41244 #. type: textblock
41245 #: ../tools/virt-win-reg.pl:729
41246 msgid "Update the registry:"
41247 msgstr ""
41248
41249 #. type: verbatim
41250 #: ../tools/virt-win-reg.pl:731
41251 #, no-wrap
41252 msgid ""
41253 " virt-win-reg --merge WindowsGuest service.reg\n"
41254 "\n"
41255 msgstr ""
41256
41257 #. type: textblock
41258 #: ../tools/virt-win-reg.pl:735
41259 msgid ""
41260 "Be careful when passing parameters containing C<\\> (backslash) in the "
41261 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41262 "(but not both) to protect them from the shell."
41263 msgstr ""
41264
41265 #. type: textblock
41266 #: ../tools/virt-win-reg.pl:739
41267 msgid "Paths and value names are case-insensitive."
41268 msgstr ""
41269
41270 #. type: textblock
41271 #: ../tools/virt-win-reg.pl:748
41272 msgid ""
41273 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41274 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41275 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41276 msgstr ""
41277
41278 #. type: verbatim
41279 #: ../tools/virt-win-reg.pl:766
41280 #, no-wrap
41281 msgid ""
41282 " export LIBGUESTFS_DEBUG=1\n"
41283 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41284 "\n"
41285 msgstr ""
41286
41287 #. type: textblock
41288 #: ../tools/virt-win-reg.pl:769
41289 msgid ""
41290 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41291 "redhat.com/>"
41292 msgstr ""